@templatical/editor 0.44.3 → 0.46.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{AiChatSidebar-BUR5Jshu.js → AiChatSidebar-DGcH4Lyo.js} +15 -19
- package/dist/{AiFeatureMenu-CXqrbDNb.js → AiFeatureMenu-B4q-0g1S.js} +7 -7
- package/dist/{BlockIssueBadge-CWZEwMXX.js → BlockIssueBadge-CZA1XvAh.js} +5 -5
- package/dist/{BlockPreviewCanvas-DCeZid0G.js → BlockPreviewCanvas-DIZ0KgUD.js} +5 -5
- package/dist/{CloudHeaderExtras-B38fU84y.js → CloudHeaderExtras-ehMYJP68.js} +5 -5
- package/dist/{CloudPanels-B2Mz-TwS.js → CloudPanels-BwOaAlKz.js} +8 -8
- package/dist/{CollaboratorBar-CL70aVnL.js → CollaboratorBar-qOZFRNPx.js} +4 -4
- package/dist/{CommentsPanel-CYMHfFcn.js → CommentsPanel-Bn6P5crU.js} +2 -2
- package/dist/{CommentsSidebar-uvQyCMUe.js → CommentsSidebar-B8wT932T.js} +14 -14
- package/dist/{CountdownBlock-C6R-hn7D.js → CountdownBlock-RNx3hIu0.js} +3 -3
- package/dist/{CountdownToolbar-C052mx2P.js → CountdownToolbar-BeF21SeB.js} +62 -61
- package/dist/{DesignReferenceSidebar-ZKJ7y7-G.js → DesignReferenceSidebar-zH93uB15.js} +25 -26
- package/dist/{IssuesPanel-DAlNiJX_.js → IssuesPanel-Dltw9haP.js} +8 -8
- package/dist/{LoadingTrack-C1Epulqq.js → LoadingTrack-DROqNuuD.js} +1 -1
- package/dist/{LogicTagInsertButton-DMUfVsPr.js → LogicTagInsertButton-CHa-UD76.js} +22 -28
- package/dist/{MediaEditModal-Cmd9tQXZ.js → MediaEditModal-EY1YYcpw.js} +6 -14
- package/dist/{MediaPanels-DoBhG5gg.js → MediaPanels-CRVFGFZW.js} +2 -2
- package/dist/{MergeTagInput-DoQWMSW4.js → MergeTagInput-B3ntd4dN.js} +2 -2
- package/dist/{MergeTagModeToggle-DOHixe4G.js → MergeTagModeToggle-C_06ZL0Q.js} +7 -7
- package/dist/{ParagraphEditor-CHlX3nAk.js → ParagraphEditor-CxuW3TV0.js} +140 -139
- package/dist/{RestoreVersionDialog-C8Qt-sJV.js → RestoreVersionDialog-B1n37M1Z.js} +5 -5
- package/dist/{RichTextEditorContent-BedBVHXS.js → RichTextEditorContent-CP_uULWB.js} +9 -9
- package/dist/{SaveBlockDialog-CsielLi1.js → SaveBlockDialog-BSKX_7_v.js} +12 -12
- package/dist/{SavedBlocksBrowserModal-RKo9mq3U.js → SavedBlocksBrowserModal-CHKrH1gO.js} +15 -18
- package/dist/{SavedBlocksPanels-B7IlFCQp.js → SavedBlocksPanels-B-xDqBcz.js} +2 -2
- package/dist/{SavedBlocksPickBar-BYCwMUR6.js → SavedBlocksPickBar-D2J-g82g.js} +4 -4
- package/dist/{TemplateScoringPanel-DXsyp0_A.js → TemplateScoringPanel-3lHzuCl0.js} +16 -16
- package/dist/TemplateSettings-D07K_Y4m.js +246 -0
- package/dist/{TestEmailModal-Btbk0B1s.js → TestEmailModal-BNPw_lID.js} +11 -11
- package/dist/{TestEmailPanel-kdF_QluO.js → TestEmailPanel-8klWo8hE.js} +2 -2
- package/dist/{TitleEditor-Cl6AmEy9.js → TitleEditor-CmC9OuhA.js} +13 -13
- package/dist/{ToggleSwitch-D7GLaT8s.js → ToggleSwitch-COeyWGfT.js} +2 -2
- package/dist/{Toolbar-CWxqqBHE.js → Toolbar-CqhRb6EM.js} +522 -524
- package/dist/{TplModal-DD1xZyBq.js → TplModal-BGFawHY9.js} +5 -5
- package/dist/{VersionHistoryMenu-fLrx-Lvi.js → VersionHistoryMenu-D7zaTMrb.js} +10 -10
- package/dist/{VersionHistoryPanels-Caa2_niu.js → VersionHistoryPanels-DdbGjEOR.js} +2 -2
- package/dist/{VersionPreviewBanner-CWuxq_bb.js → VersionPreviewBanner-BUKb9gc6.js} +3 -3
- package/dist/{WrapperBlock-Do8kLejT.js → WrapperBlock-CTkmA887.js} +3 -3
- package/dist/{blockTypeIcons-DEvNVvBj.js → blockTypeIcons-CVKo6V_v.js} +2 -2
- package/dist/bundle-stats.json +7 -7
- package/dist/{ca-DES69VJW.js → ca-C__Dzq--.js} +5 -0
- package/dist/cdn/chunks/{AiChatSidebar-Cvp9beXR.js → AiChatSidebar-kCK4NZM9.js} +9 -13
- package/dist/cdn/chunks/{AiChatSidebar-Cvp9beXR.js.map → AiChatSidebar-kCK4NZM9.js.map} +1 -1
- package/dist/cdn/chunks/{AiFeatureMenu-B291Us2g.js → AiFeatureMenu-K1dLeDft.js} +6 -6
- package/dist/cdn/chunks/{AiFeatureMenu-B291Us2g.js.map → AiFeatureMenu-K1dLeDft.js.map} +1 -1
- package/dist/cdn/chunks/{BlockIssueBadge-CKIrYROg.js → BlockIssueBadge-05Q3L4RV.js} +5 -5
- package/dist/cdn/chunks/{BlockIssueBadge-CKIrYROg.js.map → BlockIssueBadge-05Q3L4RV.js.map} +1 -1
- package/dist/cdn/chunks/{BlockPreviewCanvas-CRJZBmwV.js → BlockPreviewCanvas-Djz9YAFx.js} +6 -6
- package/dist/cdn/chunks/{BlockPreviewCanvas-CRJZBmwV.js.map → BlockPreviewCanvas-Djz9YAFx.js.map} +1 -1
- package/dist/cdn/chunks/{CloudHeaderExtras-BvCPpih5.js → CloudHeaderExtras-5ONQ1RCa.js} +5 -5
- package/dist/cdn/chunks/{CloudHeaderExtras-BvCPpih5.js.map → CloudHeaderExtras-5ONQ1RCa.js.map} +1 -1
- package/dist/cdn/chunks/{CloudPanels-vlPH6N3s.js → CloudPanels-_irSdWbi.js} +7 -7
- package/dist/cdn/chunks/{CloudPanels-vlPH6N3s.js.map → CloudPanels-_irSdWbi.js.map} +1 -1
- package/dist/cdn/chunks/{CollaboratorBar-Xt3WJ-rn.js → CollaboratorBar-CZufI1On.js} +5 -5
- package/dist/cdn/chunks/{CollaboratorBar-Xt3WJ-rn.js.map → CollaboratorBar-CZufI1On.js.map} +1 -1
- package/dist/cdn/chunks/{CommentsPanel-BjHRj_Yw.js → CommentsPanel-VH_NJ5HZ.js} +3 -3
- package/dist/cdn/chunks/{CommentsPanel-BjHRj_Yw.js.map → CommentsPanel-VH_NJ5HZ.js.map} +1 -1
- package/dist/cdn/chunks/{CommentsSidebar-CpCfqSq4.js → CommentsSidebar-CYPH5rVi.js} +5 -5
- package/dist/cdn/chunks/{CommentsSidebar-CpCfqSq4.js.map → CommentsSidebar-CYPH5rVi.js.map} +1 -1
- package/dist/cdn/chunks/{CountdownBlock-sVDjKkRw.js → CountdownBlock-lHU3Lu7Q.js} +4 -4
- package/dist/cdn/chunks/{CountdownBlock-sVDjKkRw.js.map → CountdownBlock-lHU3Lu7Q.js.map} +1 -1
- package/dist/cdn/chunks/{CountdownToolbar-C9QpHQcv.js → CountdownToolbar-BaXCefQM.js} +63 -62
- package/dist/cdn/chunks/CountdownToolbar-BaXCefQM.js.map +1 -0
- package/dist/cdn/chunks/{DesignReferenceSidebar-BO0xz1wC.js → DesignReferenceSidebar-GjkpHylX.js} +21 -22
- package/dist/cdn/chunks/{DesignReferenceSidebar-BO0xz1wC.js.map → DesignReferenceSidebar-GjkpHylX.js.map} +1 -1
- package/dist/cdn/chunks/{IssuesPanel--62qud8w.js → IssuesPanel-C1Lv2y_O.js} +6 -6
- package/dist/cdn/chunks/{IssuesPanel--62qud8w.js.map → IssuesPanel-C1Lv2y_O.js.map} +1 -1
- package/dist/cdn/chunks/{LoadingTrack-_7DH_5aw.js → LoadingTrack-Cg1HRIND.js} +2 -2
- package/dist/cdn/chunks/{LoadingTrack-_7DH_5aw.js.map → LoadingTrack-Cg1HRIND.js.map} +1 -1
- package/dist/cdn/chunks/{LogicTagInsertButton-gc8ICURV.js → LogicTagInsertButton-BYjdrDnQ.js} +11 -17
- package/dist/cdn/chunks/{LogicTagInsertButton-gc8ICURV.js.map → LogicTagInsertButton-BYjdrDnQ.js.map} +1 -1
- package/dist/cdn/chunks/{MediaEditModal-BuDXKwx4.js → MediaEditModal-CD3fVbWI.js} +6 -14
- package/dist/cdn/chunks/{MediaEditModal-BuDXKwx4.js.map → MediaEditModal-CD3fVbWI.js.map} +1 -1
- package/dist/cdn/chunks/{MediaPanels-xFpaxFRH.js → MediaPanels-B2AyUUcf.js} +3 -3
- package/dist/cdn/chunks/{MediaPanels-xFpaxFRH.js.map → MediaPanels-B2AyUUcf.js.map} +1 -1
- package/dist/cdn/chunks/{MergeTagInput-DsPKWbWr.js → MergeTagInput-Cx67J_vg.js} +3 -3
- package/dist/cdn/chunks/{MergeTagInput-DsPKWbWr.js.map → MergeTagInput-Cx67J_vg.js.map} +1 -1
- package/dist/cdn/chunks/{MergeTagModeToggle-DU0WqgVH.js → MergeTagModeToggle-DZ4EuXVp.js} +6 -6
- package/dist/cdn/chunks/{MergeTagModeToggle-DU0WqgVH.js.map → MergeTagModeToggle-DZ4EuXVp.js.map} +1 -1
- package/dist/cdn/chunks/{ParagraphEditor-BWfx94pb.js → ParagraphEditor-DndEFXmR.js} +145 -144
- package/dist/cdn/chunks/ParagraphEditor-DndEFXmR.js.map +1 -0
- package/dist/cdn/chunks/{RestoreVersionDialog-DWUnyA0B.js → RestoreVersionDialog-CFYs13a4.js} +5 -5
- package/dist/cdn/chunks/{RestoreVersionDialog-DWUnyA0B.js.map → RestoreVersionDialog-CFYs13a4.js.map} +1 -1
- package/dist/cdn/chunks/{RichTextEditorContent-Dkcts8Vh.js → RichTextEditorContent-DKkDQ0dc.js} +8 -8
- package/dist/cdn/chunks/{RichTextEditorContent-Dkcts8Vh.js.map → RichTextEditorContent-DKkDQ0dc.js.map} +1 -1
- package/dist/cdn/chunks/{SaveBlockDialog-CcfyxDfZ.js → SaveBlockDialog-BOA2RaC_.js} +10 -10
- package/dist/cdn/chunks/{SaveBlockDialog-CcfyxDfZ.js.map → SaveBlockDialog-BOA2RaC_.js.map} +1 -1
- package/dist/cdn/chunks/{SavedBlocksBrowserModal-DauQ_V9N.js → SavedBlocksBrowserModal-DQDVek3K.js} +11 -14
- package/dist/cdn/chunks/{SavedBlocksBrowserModal-DauQ_V9N.js.map → SavedBlocksBrowserModal-DQDVek3K.js.map} +1 -1
- package/dist/cdn/chunks/{SavedBlocksPanels-J5v2PsFv.js → SavedBlocksPanels-Lu3tJ3QA.js} +3 -3
- package/dist/cdn/chunks/{SavedBlocksPanels-J5v2PsFv.js.map → SavedBlocksPanels-Lu3tJ3QA.js.map} +1 -1
- package/dist/cdn/chunks/{SavedBlocksPickBar-v3AMSqli.js → SavedBlocksPickBar-D7MtqG6r.js} +5 -5
- package/dist/cdn/chunks/{SavedBlocksPickBar-v3AMSqli.js.map → SavedBlocksPickBar-D7MtqG6r.js.map} +1 -1
- package/dist/cdn/chunks/{TemplateScoringPanel-BBRHCNcR.js → TemplateScoringPanel-C_57Bfkf.js} +8 -8
- package/dist/cdn/chunks/{TemplateScoringPanel-BBRHCNcR.js.map → TemplateScoringPanel-C_57Bfkf.js.map} +1 -1
- package/dist/cdn/chunks/{TemplateSettings-vsFOU0oA.js → TemplateSettings-rZiHmq24.js} +48 -47
- package/dist/cdn/chunks/TemplateSettings-rZiHmq24.js.map +1 -0
- package/dist/cdn/chunks/{TestEmailModal-CW9EFpFR.js → TestEmailModal-DWEyHXH2.js} +10 -10
- package/dist/cdn/chunks/{TestEmailModal-CW9EFpFR.js.map → TestEmailModal-DWEyHXH2.js.map} +1 -1
- package/dist/cdn/chunks/{TestEmailPanel-D1Hchlr7.js → TestEmailPanel-XXMD-Lnr.js} +3 -3
- package/dist/cdn/chunks/{TestEmailPanel-D1Hchlr7.js.map → TestEmailPanel-XXMD-Lnr.js.map} +1 -1
- package/dist/cdn/chunks/{TitleEditor-nDV6P-ag.js → TitleEditor-D1F0YoE-.js} +12 -12
- package/dist/cdn/chunks/{TitleEditor-nDV6P-ag.js.map → TitleEditor-D1F0YoE-.js.map} +1 -1
- package/dist/cdn/chunks/{ToggleSwitch-DoUNcLPP.js → ToggleSwitch-B5U9cqhi.js} +3 -3
- package/dist/cdn/chunks/{ToggleSwitch-DoUNcLPP.js.map → ToggleSwitch-B5U9cqhi.js.map} +1 -1
- package/dist/cdn/chunks/{Toolbar-CnfNUkOY.js → Toolbar-C_5HfUQq.js} +422 -424
- package/dist/cdn/chunks/Toolbar-C_5HfUQq.js.map +1 -0
- package/dist/cdn/chunks/{TplModal-VuZ9bDw9.js → TplModal-CYBbPCHL.js} +5 -5
- package/dist/cdn/chunks/{TplModal-VuZ9bDw9.js.map → TplModal-CYBbPCHL.js.map} +1 -1
- package/dist/cdn/chunks/{VersionHistoryMenu-Cp3EHO_P.js → VersionHistoryMenu-DbxuJgDO.js} +6 -6
- package/dist/cdn/chunks/{VersionHistoryMenu-Cp3EHO_P.js.map → VersionHistoryMenu-DbxuJgDO.js.map} +1 -1
- package/dist/cdn/chunks/{VersionHistoryPanels-BChjjMC6.js → VersionHistoryPanels-Dq12VsTX.js} +3 -3
- package/dist/cdn/chunks/{VersionHistoryPanels-BChjjMC6.js.map → VersionHistoryPanels-Dq12VsTX.js.map} +1 -1
- package/dist/cdn/chunks/{VersionPreviewBanner-BgkroXnG.js → VersionPreviewBanner-HRERIH-v.js} +4 -4
- package/dist/cdn/chunks/{VersionPreviewBanner-BgkroXnG.js.map → VersionPreviewBanner-HRERIH-v.js.map} +1 -1
- package/dist/cdn/chunks/{WrapperBlock-DDnue8oy.js → WrapperBlock-CJ0CLqi2.js} +4 -4
- package/dist/cdn/chunks/{WrapperBlock-DDnue8oy.js.map → WrapperBlock-CJ0CLqi2.js.map} +1 -1
- package/dist/cdn/chunks/{blockTypeIcons-BMZi7sdX.js → blockTypeIcons-DdZP-3FM.js} +2 -2
- package/dist/cdn/chunks/{blockTypeIcons-BMZi7sdX.js.map → blockTypeIcons-DdZP-3FM.js.map} +1 -1
- package/dist/cdn/chunks/{ca-DES69VJW.js → ca-C__Dzq--.js} +6 -1
- package/dist/cdn/chunks/ca-C__Dzq--.js.map +1 -0
- package/dist/cdn/chunks/{cloud-DLQU5l0Z.js → cloud-h1vaHp2p.js} +4 -4
- package/dist/cdn/chunks/{cloud-DLQU5l0Z.js.map → cloud-h1vaHp2p.js.map} +1 -1
- package/dist/cdn/chunks/{createCloudRuntime-Mnx8kV2W.js → createCloudRuntime-bJN9EM1H.js} +9 -12
- package/dist/cdn/chunks/{createCloudRuntime-Mnx8kV2W.js.map → createCloudRuntime-bJN9EM1H.js.map} +1 -1
- package/dist/{de-MlrDhC3Y.js → cdn/chunks/de-CGjbQ2mt.js} +7 -0
- package/dist/cdn/chunks/de-CGjbQ2mt.js.map +1 -0
- package/dist/cdn/chunks/{dist-BRZhN8qJ.js → dist-B7W-Lb65.js} +2 -2
- package/dist/cdn/chunks/{dist-BRZhN8qJ.js.map → dist-B7W-Lb65.js.map} +1 -1
- package/dist/cdn/chunks/{dist-CXB2_kBa.js → dist-C5nRd_ua.js} +5 -13
- package/dist/cdn/chunks/{dist-CXB2_kBa.js.map → dist-C5nRd_ua.js.map} +1 -1
- package/dist/cdn/chunks/{draggable-IB4x6w2O.js → draggable-BUTN5vZC.js} +32 -77
- package/dist/cdn/chunks/{draggable-IB4x6w2O.js.map → draggable-BUTN5vZC.js.map} +1 -1
- package/dist/cdn/chunks/{editor-modal-B7NNAFI5.js → editor-modal-BpsbYA4_.js} +14 -34
- package/dist/cdn/chunks/{editor-modal-B7NNAFI5.js.map → editor-modal-BpsbYA4_.js.map} +1 -1
- package/dist/{en-6vJh7KCM.js → cdn/chunks/en-BTiiAC-B.js} +7 -0
- package/dist/cdn/chunks/en-BTiiAC-B.js.map +1 -0
- package/dist/cdn/chunks/en-CAt6y87e.js +1 -0
- package/dist/{es-ewL03EaP.js → cdn/chunks/es-CdTOcSTf.js} +7 -0
- package/dist/cdn/chunks/es-CdTOcSTf.js.map +1 -0
- package/dist/cdn/chunks/{extensions-ClmkNA8R.js → extensions-CrmXF4MW.js} +11 -19
- package/dist/cdn/chunks/extensions-CrmXF4MW.js.map +1 -0
- package/dist/{fr-D1syuxs1.js → cdn/chunks/fr-B6lcLLzC.js} +7 -0
- package/dist/cdn/chunks/fr-B6lcLLzC.js.map +1 -0
- package/dist/cdn/chunks/{htmlparser-ClUZ6waR.js → htmlparser-CDRsn-gn.js} +3 -11
- package/dist/cdn/chunks/{htmlparser-ClUZ6waR.js.map → htmlparser-CDRsn-gn.js.map} +1 -1
- package/dist/cdn/chunks/{icons-BjvraR-Y.js → icons-Dr9erFGs.js} +48 -48
- package/dist/cdn/chunks/{icons-BjvraR-Y.js.map → icons-Dr9erFGs.js.map} +1 -1
- package/dist/{ja-Dd_nytwe.js → cdn/chunks/ja-BhdkqENz.js} +7 -0
- package/dist/cdn/chunks/ja-BhdkqENz.js.map +1 -0
- package/dist/cdn/chunks/{keys-DCWeHkSF.js → keys-BKu-LOk5.js} +2 -2
- package/dist/cdn/chunks/{keys-DCWeHkSF.js.map → keys-BKu-LOk5.js.map} +1 -1
- package/dist/cdn/chunks/{liquid.browser-DXPjcePu.js → liquid.browser-Bbt17cVz.js} +30 -56
- package/dist/cdn/chunks/{liquid.browser-DXPjcePu.js.map → liquid.browser-Bbt17cVz.js.map} +1 -1
- package/dist/{nl-DD1t_qxS.js → cdn/chunks/nl-CE3YItYg.js} +7 -0
- package/dist/cdn/chunks/nl-CE3YItYg.js.map +1 -0
- package/dist/{preRenderCustomBlocks-C_PIxBp7.js → cdn/chunks/preRenderCustomBlocks-CyGB3lZr.js} +5 -3
- package/dist/cdn/chunks/{preRenderCustomBlocks-Bg3rIgGJ.js.map → preRenderCustomBlocks-CyGB3lZr.js.map} +1 -1
- package/dist/{pt-BR-BmtO0R7k.js → cdn/chunks/pt-BR-CUIT4rq4.js} +7 -0
- package/dist/cdn/chunks/pt-BR-CUIT4rq4.js.map +1 -0
- package/dist/cdn/chunks/{pusher-BbIHJKf3.js → pusher-C8DeiO2X.js} +18 -57
- package/dist/cdn/chunks/{pusher-BbIHJKf3.js.map → pusher-C8DeiO2X.js.map} +1 -1
- package/dist/cdn/chunks/{socialIcons-CnUJBZTO.js → socialIcons-ClJVDZwt.js} +90 -119
- package/dist/cdn/chunks/socialIcons-ClJVDZwt.js.map +1 -0
- package/dist/cdn/chunks/{src-B5-VKcRQ.js → src-B0pZeTYO.js} +194 -215
- package/dist/cdn/chunks/src-B0pZeTYO.js.map +1 -0
- package/dist/cdn/chunks/{src-CjjJWoUZ.js → src-BMw3u-iV.js} +225 -232
- package/dist/cdn/chunks/src-BMw3u-iV.js.map +1 -0
- package/dist/cdn/chunks/{src-QIGNPFkl.js → src-Bh0MoJ67.js} +360 -246
- package/dist/cdn/chunks/src-Bh0MoJ67.js.map +1 -0
- package/dist/cdn/chunks/{tiptap-02G9FGkl.js → tiptap-CYDXLO17.js} +87 -134
- package/dist/cdn/chunks/{tiptap-02G9FGkl.js.map → tiptap-CYDXLO17.js.map} +1 -1
- package/dist/cdn/chunks/{useAliveFlag-DAlQLbM2.js → useAliveFlag-DzyXG-8A.js} +2 -2
- package/dist/cdn/chunks/{useAliveFlag-DAlQLbM2.js.map → useAliveFlag-DzyXG-8A.js.map} +1 -1
- package/dist/cdn/chunks/{useCloudI18n-CrjWbpbu.js → useCloudI18n-Cgk0ts_F.js} +3 -3
- package/dist/cdn/chunks/{useCloudI18n-CrjWbpbu.js.map → useCloudI18n-Cgk0ts_F.js.map} +1 -1
- package/dist/cdn/chunks/{useEditorCore-q0G4q-52.js → useEditorCore-DuC7kVti.js} +559 -599
- package/dist/cdn/chunks/useEditorCore-DuC7kVti.js.map +1 -0
- package/dist/cdn/chunks/useEditorRoot-DDPIcEOO.js +10 -0
- package/dist/cdn/chunks/{useEditorRoot-CshefZLP.js.map → useEditorRoot-DDPIcEOO.js.map} +1 -1
- package/dist/cdn/chunks/{useI18n-CyO_Nmca.js → useI18n-DO4NTunW.js} +3 -3
- package/dist/cdn/chunks/{useI18n-CyO_Nmca.js.map → useI18n-DO4NTunW.js.map} +1 -1
- package/dist/cdn/chunks/{useLogicTag-D6lWY0bD.js → useLogicTag-B3uV3XHG.js} +4 -4
- package/dist/cdn/chunks/{useLogicTag-D6lWY0bD.js.map → useLogicTag-B3uV3XHG.js.map} +1 -1
- package/dist/cdn/chunks/{useMergeTag-2iW-BKWW.js → useMergeTag-DJLM-7WQ.js} +4 -4
- package/dist/cdn/chunks/{useMergeTag-2iW-BKWW.js.map → useMergeTag-DJLM-7WQ.js.map} +1 -1
- package/dist/cdn/chunks/{usePopoverPosition-DGXjXKjM.js → usePopoverPosition-CtVNwoHj.js} +3 -3
- package/dist/cdn/chunks/{usePopoverPosition-DGXjXKjM.js.map → usePopoverPosition-CtVNwoHj.js.map} +1 -1
- package/dist/cdn/chunks/{useScrollToBlock-DgHZJvID.js → useScrollToBlock-CpmB5KxW.js} +4 -5
- package/dist/cdn/chunks/useScrollToBlock-CpmB5KxW.js.map +1 -0
- package/dist/cdn/chunks/withCurrentFont-isIyuezD.js +21 -0
- package/dist/cdn/chunks/withCurrentFont-isIyuezD.js.map +1 -0
- package/dist/cdn/editor.css +1 -1
- package/dist/cdn/editor.js +472 -491
- package/dist/cdn/editor.js.map +1 -1
- package/dist/{check-DNyj-E0y.js → check-ZKvtMdpe.js} +1 -1
- package/dist/{chevron-down-BYnhkMsA.js → chevron-down-RrwkYMlp.js} +1 -1
- package/dist/{chevron-right-D9HGBqJo.js → chevron-right-CklHaa1U.js} +1 -1
- package/dist/{chevron-up-BnIR1-ma.js → chevron-up-DjN2NTbo.js} +1 -1
- package/dist/{circle-alert-B6xl1B_M.js → circle-alert-BR1_Yfb-.js} +1 -1
- package/dist/{clock-Cs5Wd3dW.js → clock-BEagNj21.js} +1 -1
- package/dist/{cloud-BNEL7bxL.js → cloud-DPGjMGfv.js} +2 -2
- package/dist/{copy-6uKc-WBk.js → copy-D6DNoSq1.js} +1 -1
- package/dist/{createCloudRuntime-CaZapQZ6.js → createCloudRuntime-D0RRgWab.js} +8 -11
- package/dist/{createLucideIcon-BVcoovvP.js → createLucideIcon-BAPyioGd.js} +6 -6
- package/dist/{cdn/chunks/de-MlrDhC3Y.js → de-CGjbQ2mt.js} +5 -2
- package/dist/{dist-CmwBvyW0.js → dist-1H4cnaoD.js} +3 -3
- package/dist/{dist-D4HP93ZF.js → dist-5DAb7bYT.js} +1 -1
- package/dist/{dist-DdSWMtEP.js → dist-5KNKxglR.js} +1 -1
- package/dist/{dist-HjILVdTA.js → dist-BI_LeQGl.js} +289 -201
- package/dist/{dist-BDuPwOyn.js → dist-B_vYjCsk.js} +4 -12
- package/dist/{dist-Ceew_u40.js → dist-Bc30883t.js} +6 -22
- package/dist/{dist-Czzst9ng.js → dist-Bd7khQsg.js} +3 -11
- package/dist/{dist-8VFzbeu9.js → dist-C-VFTX82.js} +1 -1
- package/dist/{dist-BYg1EL5g.js → dist-C3eH9-N2.js} +1 -1
- package/dist/{dist-Dw2_11LA.js → dist-CFC4pg2o.js} +1 -1
- package/dist/{dist-BgSLW3Hn.js → dist-CMcFD7gP.js} +72 -87
- package/dist/{dist-DmQckB4p.js → dist-DHensKDY.js} +1 -1
- package/dist/{dist-CWc7nIkA.js → dist-DapsJxn_.js} +1 -1
- package/dist/{dist-D2m55Lvs.js → dist-j2FavQmU.js} +1 -1
- package/dist/{dist-8By0p8ah.js → dist-lL3nVbxV.js} +1 -1
- package/dist/{editor-modal-Co-rZGaf.js → editor-modal-oRmkDlUs.js} +27 -47
- package/dist/{cdn/chunks/en-6vJh7KCM.js → en-BTiiAC-B.js} +5 -2
- package/dist/en-Bk4iCfjp.js +1 -0
- package/dist/{cdn/chunks/es-ewL03EaP.js → es-CdTOcSTf.js} +5 -2
- package/dist/{extensions-DXSI8Dyj.js → extensions-CYigjb1g.js} +52 -68
- package/dist/{eye-Nbtw_q05.js → eye-DvsTBI57.js} +1 -1
- package/dist/{cdn/chunks/fr-D1syuxs1.js → fr-B6lcLLzC.js} +5 -2
- package/dist/{image-up-C1jC7NzQ.js → image-up-BoFGZm5Q.js} +1 -1
- package/dist/index.d.ts +46 -13
- package/dist/{info-ClH66pKN.js → info-0bQQGjTV.js} +1 -1
- package/dist/{cdn/chunks/ja-Dd_nytwe.js → ja-BhdkqENz.js} +5 -2
- package/dist/{keys-CDqfZIRt.js → keys-injl74ob.js} +1 -1
- package/dist/{link-y47GNW0o.js → link-Cstrr3Ep.js} +1 -1
- package/dist/{liquid.browser-Cs4gOjeX.js → liquid.browser-Ct2-EezB.js} +29 -55
- package/dist/{list-DiLMlMaE.js → list-Dx9Rmy5s.js} +1 -1
- package/dist/{loader-circle-BRdCPW5h.js → loader-circle-D8Qqs0MG.js} +1 -1
- package/dist/{message-circle-CNgIpVJv.js → message-circle-D78ELX6I.js} +1 -1
- package/dist/{cdn/chunks/nl-DD1t_qxS.js → nl-CE3YItYg.js} +5 -2
- package/dist/{package-B9OWk-Kp.js → package-DOvM9sHE.js} +1 -1
- package/dist/{pencil-BDnjo24u.js → pencil-B6m0OG0n.js} +1 -1
- package/dist/{plus-BMgjN7lI.js → plus-D-nEKxTc.js} +1 -1
- package/dist/{cdn/chunks/preRenderCustomBlocks-Bg3rIgGJ.js → preRenderCustomBlocks-DokBGA_M.js} +3 -5
- package/dist/{cdn/chunks/pt-BR-BmtO0R7k.js → pt-BR-CUIT4rq4.js} +5 -2
- package/dist/{refresh-cw-CR5lenxl.js → refresh-cw-CXZS-R1U.js} +1 -1
- package/dist/{runtime-dom.esm-bundler-BGbPz4-g.js → runtime-dom.esm-bundler-CO67ema2.js} +15 -16
- package/dist/{search-CxRUiOSF.js → search-DSvil0jo.js} +1 -1
- package/dist/{send-Bu2RysGL.js → send-BBR28V94.js} +1 -1
- package/dist/{shield-check-Cg8f4LB0.js → shield-check-ByxUnaU9.js} +1 -1
- package/dist/{smartphone-CHf-8lHp.js → smartphone-CNOwGf5T.js} +1 -1
- package/dist/{socialIcons-D1gkHc_i.js → socialIcons-Ct_IoqPQ.js} +112 -141
- package/dist/{sparkles-_DQGv4ub.js → sparkles-DO1hzwzf.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/templatical-editor.js +504 -523
- package/dist/{text-align-start-PHo-Ep5i.js → text-align-start-BKEKMheq.js} +13 -13
- package/dist/{trash-BxIzHAri.js → trash-CKEQH4vH.js} +1 -1
- package/dist/{triangle-alert-fcb2KoA-.js → triangle-alert-BHnfd3fV.js} +1 -1
- package/dist/{upload-BxBtMPMv.js → upload-C8uO7KsR.js} +1 -1
- package/dist/{useAliveFlag-BkKyhkwZ.js → useAliveFlag-6PtarpNZ.js} +1 -1
- package/dist/{useCloudI18n-DpEsiLeR.js → useCloudI18n-GvIOLziA.js} +2 -2
- package/dist/{useEditorCore-B1CWeFTj.js → useEditorCore-BJAQMvNW.js} +950 -1013
- package/dist/{useEditorRoot-CkB_5d0h.js → useEditorRoot-OWzNpDdT.js} +2 -2
- package/dist/{useI18n-B_CdcBwG.js → useI18n-uF11q85g.js} +2 -2
- package/dist/{useLogicTag-wqfdwYYR.js → useLogicTag-B5gjcMzn.js} +3 -3
- package/dist/{useMergeTag-D3XDE_58.js → useMergeTag-BwsBIDzR.js} +5 -5
- package/dist/{usePopoverPosition-BYmd-lhR.js → usePopoverPosition-DkBrHfCo.js} +2 -2
- package/dist/{useScrollToBlock-DA_aIJXS.js → useScrollToBlock-JRxhT1u_.js} +4 -5
- package/dist/{vue.runtime.esm-bundler-CyqhBwpY.js → vue.runtime.esm-bundler-CctRY8kr.js} +13 -45
- package/dist/withCurrentFont-C9vqrduu.js +19 -0
- package/dist/{x-DrZO5tt0.js → x-gEC0yMci.js} +1 -1
- package/package.json +12 -12
- package/dist/TemplateSettings-Bh10NFIN.js +0 -245
- package/dist/cdn/chunks/CountdownToolbar-C9QpHQcv.js.map +0 -1
- package/dist/cdn/chunks/ParagraphEditor-BWfx94pb.js.map +0 -1
- package/dist/cdn/chunks/TemplateSettings-vsFOU0oA.js.map +0 -1
- package/dist/cdn/chunks/Toolbar-CnfNUkOY.js.map +0 -1
- package/dist/cdn/chunks/ca-DES69VJW.js.map +0 -1
- package/dist/cdn/chunks/de-MlrDhC3Y.js.map +0 -1
- package/dist/cdn/chunks/en-6vJh7KCM.js.map +0 -1
- package/dist/cdn/chunks/en-C3n0qWte.js +0 -2
- package/dist/cdn/chunks/es-ewL03EaP.js.map +0 -1
- package/dist/cdn/chunks/extensions-ClmkNA8R.js.map +0 -1
- package/dist/cdn/chunks/fr-D1syuxs1.js.map +0 -1
- package/dist/cdn/chunks/ja-Dd_nytwe.js.map +0 -1
- package/dist/cdn/chunks/nl-DD1t_qxS.js.map +0 -1
- package/dist/cdn/chunks/pt-BR-BmtO0R7k.js.map +0 -1
- package/dist/cdn/chunks/socialIcons-CnUJBZTO.js.map +0 -1
- package/dist/cdn/chunks/src-B5-VKcRQ.js.map +0 -1
- package/dist/cdn/chunks/src-CjjJWoUZ.js.map +0 -1
- package/dist/cdn/chunks/src-QIGNPFkl.js.map +0 -1
- package/dist/cdn/chunks/useEditorCore-q0G4q-52.js.map +0 -1
- package/dist/cdn/chunks/useEditorRoot-CshefZLP.js +0 -10
- package/dist/cdn/chunks/useScrollToBlock-DgHZJvID.js.map +0 -1
- package/dist/en-B-xoKkWi.js +0 -2
|
@@ -1,34 +1,35 @@
|
|
|
1
1
|
import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
|
|
2
|
-
import { A as t, At as n, B as r, F as i, M as a, N as o, R as s, S as c, V as l, Y as u, Z as d, _ as f, at as p, c as m, d as h, g, h as _, jt as v, kt as y, l as b, r as x, s as S, u as C, v as w } from "./vue.runtime.esm-bundler-
|
|
3
|
-
import { a as T, o as E } from "./runtime-dom.esm-bundler-
|
|
4
|
-
import {
|
|
5
|
-
import { c as
|
|
6
|
-
import { _ as
|
|
7
|
-
import { $ as
|
|
8
|
-
import { t as
|
|
9
|
-
import { o as
|
|
10
|
-
import { t as
|
|
11
|
-
import { c as
|
|
12
|
-
import { t as
|
|
13
|
-
import { t as
|
|
14
|
-
import { n as
|
|
15
|
-
import { t as
|
|
16
|
-
import { t as
|
|
17
|
-
import { t as
|
|
18
|
-
import { t as
|
|
19
|
-
import { n as
|
|
20
|
-
import { t as
|
|
21
|
-
import { t as
|
|
22
|
-
import { n as
|
|
23
|
-
import { t as Me } from "./trash-
|
|
24
|
-
import { t as Ne } from "./upload-
|
|
25
|
-
import { t as Pe } from "./x-
|
|
2
|
+
import { A as t, At as n, B as r, F as i, M as a, N as o, R as s, S as c, V as l, Y as u, Z as d, _ as f, at as p, c as m, d as h, g, h as _, jt as v, kt as y, l as b, r as x, s as S, u as C, v as w } from "./vue.runtime.esm-bundler-CctRY8kr.js";
|
|
3
|
+
import { a as T, o as E } from "./runtime-dom.esm-bundler-CO67ema2.js";
|
|
4
|
+
import { I as D, U as O, X as k, dt as A, h as j, l as ee, n as M, s as te, t as N, ut as ne } from "./dist-BI_LeQGl.js";
|
|
5
|
+
import { c as re, f as ie, i as ae, l as P, r as oe, u as se, x as ce } from "./socialIcons-Ct_IoqPQ.js";
|
|
6
|
+
import { _ as le } from "./dist-C-VFTX82.js";
|
|
7
|
+
import { $ as F, C as ue, G as de, L as fe, P as pe, c as me, d as he, h as ge, n as _e, p as ve, v as ye } from "./keys-injl74ob.js";
|
|
8
|
+
import { t as I } from "./useI18n-uF11q85g.js";
|
|
9
|
+
import { o as be } from "./usePopoverPosition-DkBrHfCo.js";
|
|
10
|
+
import { t as xe } from "./createLucideIcon-BAPyioGd.js";
|
|
11
|
+
import { c as L } from "./LogicTagInsertButton-CHa-UD76.js";
|
|
12
|
+
import { t as Se } from "./chevron-down-RrwkYMlp.js";
|
|
13
|
+
import { t as Ce } from "./circle-alert-BR1_Yfb-.js";
|
|
14
|
+
import { n as R, t as we } from "./blockTypeIcons-CVKo6V_v.js";
|
|
15
|
+
import { t as Te } from "./copy-D6DNoSq1.js";
|
|
16
|
+
import { t as Ee } from "./info-0bQQGjTV.js";
|
|
17
|
+
import { t as De } from "./link-Cstrr3Ep.js";
|
|
18
|
+
import { t as Oe } from "./loader-circle-D8Qqs0MG.js";
|
|
19
|
+
import { n as ke, t as Ae } from "./smartphone-CNOwGf5T.js";
|
|
20
|
+
import { t as z } from "./plus-D-nEKxTc.js";
|
|
21
|
+
import { t as je } from "./refresh-cw-CXZS-R1U.js";
|
|
22
|
+
import { n as B, r as V, t as H } from "./text-align-start-BKEKMheq.js";
|
|
23
|
+
import { t as Me } from "./trash-CKEQH4vH.js";
|
|
24
|
+
import { t as Ne } from "./upload-C8uO7KsR.js";
|
|
25
|
+
import { t as Pe } from "./x-gEC0yMci.js";
|
|
26
26
|
import { t as Fe } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
27
|
-
import { t as Ie } from "./useAliveFlag-
|
|
27
|
+
import { t as Ie } from "./useAliveFlag-6PtarpNZ.js";
|
|
28
28
|
import { _ as Le, b as Re, c as ze, g as U, h as W, m as G, p as K, r as Be, v as Ve } from "./styleConstants-C_YAPdQS.js";
|
|
29
|
-
import { n as He, t as q } from "./ToggleSwitch-
|
|
30
|
-
import { t as
|
|
31
|
-
|
|
29
|
+
import { n as He, t as q } from "./ToggleSwitch-COeyWGfT.js";
|
|
30
|
+
import { n as Ue, t as We } from "./withCurrentFont-C9vqrduu.js";
|
|
31
|
+
import { t as J } from "./MergeTagInput-B3ntd4dN.js";
|
|
32
|
+
var Ge = xe({
|
|
32
33
|
name: "lock-open",
|
|
33
34
|
size: 24,
|
|
34
35
|
node: [["rect", {
|
|
@@ -44,7 +45,7 @@ var Ue = ye({
|
|
|
44
45
|
key: "1mm8w8"
|
|
45
46
|
}]],
|
|
46
47
|
aliases: ["unlock"]
|
|
47
|
-
}),
|
|
48
|
+
}), Ke = xe({
|
|
48
49
|
name: "lock",
|
|
49
50
|
size: 24,
|
|
50
51
|
node: [["rect", {
|
|
@@ -59,7 +60,7 @@ var Ue = ye({
|
|
|
59
60
|
d: "M7 11V7a5 5 0 0 1 10 0v4",
|
|
60
61
|
key: "fwvmzm"
|
|
61
62
|
}]]
|
|
62
|
-
}),
|
|
63
|
+
}), qe = xe({
|
|
63
64
|
name: "unlink",
|
|
64
65
|
size: 24,
|
|
65
66
|
node: [
|
|
@@ -100,12 +101,12 @@ var Ue = ye({
|
|
|
100
101
|
key: "ox905f"
|
|
101
102
|
}]
|
|
102
103
|
]
|
|
103
|
-
}),
|
|
104
|
+
}), Je = [
|
|
104
105
|
"aria-checked",
|
|
105
106
|
"aria-label",
|
|
106
107
|
"title",
|
|
107
108
|
"onClick"
|
|
108
|
-
],
|
|
109
|
+
], Ye = { key: 1 }, Y = /* @__PURE__ */ w({
|
|
109
110
|
__name: "SlidingPillSelect",
|
|
110
111
|
props: {
|
|
111
112
|
options: {},
|
|
@@ -148,9 +149,9 @@ var Ue = ye({
|
|
|
148
149
|
key: 0,
|
|
149
150
|
size: 14,
|
|
150
151
|
"stroke-width": 2
|
|
151
|
-
})) : (t(), h("span",
|
|
152
|
+
})) : (t(), h("span", Ye, v(r.label), 1))], 12, Je))), 128))], 4));
|
|
152
153
|
}
|
|
153
|
-
}),
|
|
154
|
+
}), Xe = { class: "tpl:flex tpl:items-stretch" }, Ze = [
|
|
154
155
|
"data-testid",
|
|
155
156
|
"value",
|
|
156
157
|
"min",
|
|
@@ -171,7 +172,7 @@ var Ue = ye({
|
|
|
171
172
|
let t = e.target;
|
|
172
173
|
t.validity?.badInput || r("update:modelValue", Number(t.value));
|
|
173
174
|
}
|
|
174
|
-
return (n, r) => (t(), h("div",
|
|
175
|
+
return (n, r) => (t(), h("div", Xe, [m("input", {
|
|
175
176
|
type: "number",
|
|
176
177
|
"data-testid": e.testid,
|
|
177
178
|
class: y(p(G)),
|
|
@@ -179,14 +180,14 @@ var Ue = ye({
|
|
|
179
180
|
min: e.min,
|
|
180
181
|
max: e.max,
|
|
181
182
|
onInput: i
|
|
182
|
-
}, null, 42,
|
|
183
|
+
}, null, 42, Ze), m("span", { class: y(p(W)) }, v(e.suffix), 3)]));
|
|
183
184
|
}
|
|
184
|
-
}),
|
|
185
|
+
}), Qe = [
|
|
185
186
|
"aria-pressed",
|
|
186
187
|
"aria-label",
|
|
187
188
|
"title",
|
|
188
189
|
"data-testid"
|
|
189
|
-
],
|
|
190
|
+
], $e = /* @__PURE__ */ w({
|
|
190
191
|
__name: "LinkToggle",
|
|
191
192
|
props: {
|
|
192
193
|
linked: { type: Boolean },
|
|
@@ -205,20 +206,20 @@ var Ue = ye({
|
|
|
205
206
|
title: e.linked ? e.unlinkLabel : e.linkLabel,
|
|
206
207
|
"data-testid": e.testid,
|
|
207
208
|
onClick: i[0] ||= (e) => r("toggle")
|
|
208
|
-
}, [e.linked ? (t(), b(p(
|
|
209
|
+
}, [e.linked ? (t(), b(p(De), {
|
|
209
210
|
key: 0,
|
|
210
211
|
size: 14,
|
|
211
212
|
"stroke-width": 2
|
|
212
|
-
})) : (t(), b(p(
|
|
213
|
+
})) : (t(), b(p(qe), {
|
|
213
214
|
key: 1,
|
|
214
215
|
size: 14,
|
|
215
216
|
"stroke-width": 2
|
|
216
|
-
}))], 10,
|
|
217
|
+
}))], 10, Qe));
|
|
217
218
|
}
|
|
218
|
-
}),
|
|
219
|
+
}), et = { class: "tpl:mb-3.5" }, tt = { class: "tpl:mb-2 tpl:flex tpl:items-center tpl:justify-between" }, nt = { class: "tpl:text-sm tpl:font-medium tpl:text-[var(--tpl-text-muted)]" }, rt = {
|
|
219
220
|
key: 0,
|
|
220
221
|
class: "tpl:mb-3.5"
|
|
221
|
-
},
|
|
222
|
+
}, it = { class: "tpl:mb-3.5" }, at = { class: "tpl:mb-3.5" }, ot = /* @__PURE__ */ w({
|
|
222
223
|
__name: "BorderControl",
|
|
223
224
|
props: {
|
|
224
225
|
modelValue: {},
|
|
@@ -226,7 +227,7 @@ var Ue = ye({
|
|
|
226
227
|
},
|
|
227
228
|
emits: ["update:modelValue"],
|
|
228
229
|
setup(e, { emit: n }) {
|
|
229
|
-
let r = e, i = n, { t: a } =
|
|
230
|
+
let r = e, i = n, { t: a } = I(), o = {
|
|
230
231
|
width: 0,
|
|
231
232
|
style: "solid",
|
|
232
233
|
color: "#000000"
|
|
@@ -236,7 +237,7 @@ var Ue = ye({
|
|
|
236
237
|
}
|
|
237
238
|
let l = S(() => {
|
|
238
239
|
let e = r.modelValue;
|
|
239
|
-
return !e ||
|
|
240
|
+
return !e || M.every((t) => c(e[t], e.top));
|
|
240
241
|
}), u = d(l.value);
|
|
241
242
|
s(l, (e) => {
|
|
242
243
|
!e && u.value && (u.value = !1);
|
|
@@ -253,7 +254,7 @@ var Ue = ye({
|
|
|
253
254
|
let t = {
|
|
254
255
|
...r.modelValue ?? A(o),
|
|
255
256
|
[f.value]: e
|
|
256
|
-
}, n =
|
|
257
|
+
}, n = M.some((e) => b(t[e]));
|
|
257
258
|
i("update:modelValue", n ? t : void 0);
|
|
258
259
|
}
|
|
259
260
|
function T(e) {
|
|
@@ -276,15 +277,15 @@ var Ue = ye({
|
|
|
276
277
|
u.value = !0;
|
|
277
278
|
let e = r.modelValue;
|
|
278
279
|
if (!e) return;
|
|
279
|
-
let t = b(e[f.value]) ? e[f.value] :
|
|
280
|
+
let t = b(e[f.value]) ? e[f.value] : M.map((t) => e[t]).find(b);
|
|
280
281
|
i("update:modelValue", t ? A(t) : void 0);
|
|
281
282
|
}
|
|
282
|
-
let O = S(() =>
|
|
283
|
+
let O = S(() => M.map((e) => ({
|
|
283
284
|
value: e,
|
|
284
285
|
label: a.spacingControl[e]
|
|
285
286
|
})));
|
|
286
|
-
return (n, r) => (t(), h("div",
|
|
287
|
-
m("div",
|
|
287
|
+
return (n, r) => (t(), h("div", et, [
|
|
288
|
+
m("div", tt, [m("span", nt, v(p(a).blockSettings.border), 1), g($e, {
|
|
288
289
|
linked: u.value,
|
|
289
290
|
"link-label": p(a).blockSettings.linkSides,
|
|
290
291
|
"unlink-label": p(a).blockSettings.unlinkSides,
|
|
@@ -296,19 +297,19 @@ var Ue = ye({
|
|
|
296
297
|
"unlink-label",
|
|
297
298
|
"testid"
|
|
298
299
|
])]),
|
|
299
|
-
u.value ? C("", !0) : (t(), h("div",
|
|
300
|
+
u.value ? C("", !0) : (t(), h("div", rt, [m("label", { class: y(p(U)) }, v(p(a).blockSettings.borderSide), 3), g(Y, {
|
|
300
301
|
options: O.value,
|
|
301
302
|
"model-value": f.value,
|
|
302
303
|
"onUpdate:modelValue": r[0] ||= (e) => f.value = e
|
|
303
304
|
}, null, 8, ["options", "model-value"])])),
|
|
304
|
-
m("div",
|
|
305
|
+
m("div", it, [m("label", { class: y(p(U)) }, v(p(a).blockSettings.borderWidth), 3), g(X, {
|
|
305
306
|
"model-value": _.value.width,
|
|
306
307
|
min: 0,
|
|
307
308
|
suffix: "px",
|
|
308
309
|
testid: `${e.testidPrefix}-border-width-input`,
|
|
309
310
|
"onUpdate:modelValue": T
|
|
310
311
|
}, null, 8, ["model-value", "testid"])]),
|
|
311
|
-
_.value.width > 0 ? (t(), h(x, { key: 1 }, [m("div",
|
|
312
|
+
_.value.width > 0 ? (t(), h(x, { key: 1 }, [m("div", at, [m("label", { class: y(p(U)) }, v(p(a).blockSettings.borderStyle), 3), g(Y, {
|
|
312
313
|
options: [
|
|
313
314
|
{
|
|
314
315
|
value: "solid",
|
|
@@ -325,16 +326,16 @@ var Ue = ye({
|
|
|
325
326
|
],
|
|
326
327
|
"model-value": _.value.style,
|
|
327
328
|
"onUpdate:modelValue": r[1] ||= (e) => E({ style: e })
|
|
328
|
-
}, null, 8, ["options", "model-value"])]), m("div", null, [m("label", { class: y(p(U)) }, v(p(a).blockSettings.borderColor), 3), g(
|
|
329
|
+
}, null, 8, ["options", "model-value"])]), m("div", null, [m("label", { class: y(p(U)) }, v(p(a).blockSettings.borderColor), 3), g(L, {
|
|
329
330
|
"model-value": _.value.color,
|
|
330
331
|
"onUpdate:modelValue": r[2] ||= (e) => E({ color: e })
|
|
331
332
|
}, null, 8, ["model-value"])])], 64)) : C("", !0)
|
|
332
333
|
]));
|
|
333
334
|
}
|
|
334
|
-
}),
|
|
335
|
+
}), st = { class: "tpl:mb-3.5" }, ct = { class: "tpl:mb-2 tpl:flex tpl:items-center tpl:justify-between" }, lt = { class: "tpl:text-sm tpl:font-medium tpl:text-[var(--tpl-text-muted)]" }, ut = {
|
|
335
336
|
key: 1,
|
|
336
337
|
class: "tpl:grid tpl:grid-cols-2 tpl:gap-2"
|
|
337
|
-
},
|
|
338
|
+
}, dt = { class: "tpl:mb-1 tpl:block tpl:text-[10px] tpl:font-medium tpl:text-[var(--tpl-text-muted)]" }, ft = /* @__PURE__ */ w({
|
|
338
339
|
__name: "RadiusControl",
|
|
339
340
|
props: {
|
|
340
341
|
modelValue: {},
|
|
@@ -344,7 +345,7 @@ var Ue = ye({
|
|
|
344
345
|
},
|
|
345
346
|
emits: ["update:modelValue"],
|
|
346
347
|
setup(e, { emit: n }) {
|
|
347
|
-
let r = e, i = n, { t: o } =
|
|
348
|
+
let r = e, i = n, { t: o } = I(), c = {
|
|
348
349
|
topLeft: "cornerTopLeft",
|
|
349
350
|
topRight: "cornerTopRight",
|
|
350
351
|
bottomRight: "cornerBottomRight",
|
|
@@ -362,7 +363,7 @@ var Ue = ye({
|
|
|
362
363
|
bottomRight: e,
|
|
363
364
|
bottomLeft: e
|
|
364
365
|
} : e;
|
|
365
|
-
}), f = S(() =>
|
|
366
|
+
}), f = S(() => N.every((e) => u.value[e] === u.value.topLeft)), _ = d(f.value);
|
|
366
367
|
s(f, (e) => {
|
|
367
368
|
!e && _.value && (_.value = !1);
|
|
368
369
|
});
|
|
@@ -381,7 +382,7 @@ var Ue = ye({
|
|
|
381
382
|
function T() {
|
|
382
383
|
_.value = !_.value, _.value && i("update:modelValue", u.value.topLeft);
|
|
383
384
|
}
|
|
384
|
-
return (n, r) => (t(), h("div",
|
|
385
|
+
return (n, r) => (t(), h("div", st, [m("div", ct, [m("span", lt, v(e.label), 1), g($e, {
|
|
385
386
|
linked: _.value,
|
|
386
387
|
"link-label": p(o).blockSettings.linkCorners,
|
|
387
388
|
"unlink-label": p(o).blockSettings.unlinkCorners,
|
|
@@ -404,7 +405,7 @@ var Ue = ye({
|
|
|
404
405
|
"model-value",
|
|
405
406
|
"max",
|
|
406
407
|
"testid"
|
|
407
|
-
])) : (t(), h("div",
|
|
408
|
+
])) : (t(), h("div", ut, [(t(), h(x, null, a(l, (t) => m("div", { key: t }, [m("label", dt, v(p(o).blockSettings[c[t]]), 1), g(X, {
|
|
408
409
|
"model-value": u.value[t],
|
|
409
410
|
min: 0,
|
|
410
411
|
max: e.max,
|
|
@@ -418,10 +419,10 @@ var Ue = ye({
|
|
|
418
419
|
"onUpdate:modelValue"
|
|
419
420
|
])])), 64))]))]));
|
|
420
421
|
}
|
|
421
|
-
}),
|
|
422
|
+
}), pt = { class: "tpl:mb-3.5" }, mt = ["value"], ht = { value: "" }, gt = ["value"], _t = { class: "tpl:mb-3.5" }, vt = { class: "tpl:mb-3.5" }, yt = { class: "tpl:mb-3.5" }, bt = { class: "tpl:mb-3.5" }, xt = { class: "tpl:mb-3.5" }, St = { class: "tpl:flex tpl:items-stretch" }, Ct = ["value"], wt = { class: "tpl:mb-3.5" }, Tt = ["value"], Et = { value: "auto" }, Dt = { value: "full" }, Ot = { value: "custom" }, kt = {
|
|
422
423
|
key: 0,
|
|
423
424
|
class: "tpl:mt-2 tpl:flex tpl:items-stretch"
|
|
424
|
-
},
|
|
425
|
+
}, At = ["value"], jt = { class: "tpl:mb-3.5" }, Mt = 200, Nt = /* @__PURE__ */ w({
|
|
425
426
|
__name: "ButtonToolbar",
|
|
426
427
|
props: {
|
|
427
428
|
block: {},
|
|
@@ -429,40 +430,32 @@ var Ue = ye({
|
|
|
429
430
|
},
|
|
430
431
|
emits: ["update"],
|
|
431
432
|
setup(e, { emit: n }) {
|
|
432
|
-
let r = e, i = n, { t: o } =
|
|
433
|
+
let r = e, i = n, { t: o } = I(), s = S(() => r.block.width === "full" ? "full" : typeof r.block.width == "number" ? "custom" : "auto");
|
|
433
434
|
function c(e, t) {
|
|
434
435
|
i("update", { [e]: t });
|
|
435
436
|
}
|
|
436
437
|
function l(e) {
|
|
437
|
-
|
|
438
|
-
c("width", "full");
|
|
439
|
-
return;
|
|
440
|
-
}
|
|
441
|
-
if (e === "custom") {
|
|
442
|
-
c("width", typeof r.block.width == "number" ? r.block.width : At);
|
|
443
|
-
return;
|
|
444
|
-
}
|
|
445
|
-
c("width", void 0);
|
|
438
|
+
e === "full" ? c("width", "full") : e === "custom" ? c("width", typeof r.block.width == "number" ? r.block.width : Mt) : c("width", void 0);
|
|
446
439
|
}
|
|
447
440
|
function u(e) {
|
|
448
441
|
let t = Number(e);
|
|
449
442
|
!Number.isFinite(t) || t <= 0 || c("width", t);
|
|
450
443
|
}
|
|
451
444
|
return (n, r) => (t(), h(x, null, [
|
|
452
|
-
m("div",
|
|
445
|
+
m("div", pt, [m("label", { class: y(p(U)) }, v(p(o).button.fontFamily), 3), m("select", {
|
|
453
446
|
class: y(p(K)),
|
|
454
|
-
value: e.block.fontFamily
|
|
447
|
+
value: p(We)(e.block.fontFamily),
|
|
455
448
|
onChange: r[0] ||= (e) => c("fontFamily", e.target.value || void 0)
|
|
456
|
-
}, [m("option",
|
|
449
|
+
}, [m("option", ht, v(p(o).button.inheritFont), 1), (t(!0), h(x, null, a(e.fontFamilies, (e) => (t(), h("option", {
|
|
457
450
|
key: e.value,
|
|
458
451
|
value: e.value
|
|
459
|
-
}, v(e.label), 9,
|
|
460
|
-
m("div",
|
|
452
|
+
}, v(e.label), 9, gt))), 128))], 42, mt)]),
|
|
453
|
+
m("div", _t, [m("label", { class: y(p(U)) }, v(p(o).button.text), 3), g(J, {
|
|
461
454
|
"model-value": e.block.text,
|
|
462
455
|
type: "text",
|
|
463
456
|
"onUpdate:modelValue": r[1] ||= (e) => c("text", e)
|
|
464
457
|
}, null, 8, ["model-value"])]),
|
|
465
|
-
m("div",
|
|
458
|
+
m("div", vt, [
|
|
466
459
|
m("label", { class: y(p(U)) }, v(p(o).button.url), 3),
|
|
467
460
|
g(J, {
|
|
468
461
|
"model-value": e.block.url,
|
|
@@ -478,55 +471,55 @@ var Ue = ye({
|
|
|
478
471
|
"onUpdate:modelValue": r[3] ||= (e) => c("openInNewTab", e)
|
|
479
472
|
}, null, 8, ["model-value", "label"])) : C("", !0)
|
|
480
473
|
]),
|
|
481
|
-
m("div",
|
|
474
|
+
m("div", yt, [m("label", { class: y(p(U)) }, v(p(o).button.background), 3), g(L, {
|
|
482
475
|
"model-value": e.block.backgroundColor,
|
|
483
476
|
"allow-transparent": "",
|
|
484
477
|
"onUpdate:modelValue": r[4] ||= (e) => c("backgroundColor", e)
|
|
485
478
|
}, null, 8, ["model-value"])]),
|
|
486
|
-
m("div",
|
|
479
|
+
m("div", bt, [m("label", { class: y(p(U)) }, v(p(o).button.textColor), 3), g(L, {
|
|
487
480
|
"model-value": e.block.textColor,
|
|
488
481
|
"onUpdate:modelValue": r[5] ||= (e) => c("textColor", e)
|
|
489
482
|
}, null, 8, ["model-value"])]),
|
|
490
|
-
g(
|
|
483
|
+
g(ot, {
|
|
491
484
|
"model-value": e.block.border,
|
|
492
485
|
"testid-prefix": "button",
|
|
493
486
|
"onUpdate:modelValue": r[6] ||= (e) => c("border", e)
|
|
494
487
|
}, null, 8, ["model-value"]),
|
|
495
|
-
g(
|
|
488
|
+
g(ft, {
|
|
496
489
|
"model-value": e.block.borderRadius,
|
|
497
490
|
label: p(o).button.borderRadius,
|
|
498
491
|
max: 50,
|
|
499
492
|
"testid-prefix": "button",
|
|
500
493
|
"onUpdate:modelValue": r[7] ||= (e) => c("borderRadius", e)
|
|
501
494
|
}, null, 8, ["model-value", "label"]),
|
|
502
|
-
m("div",
|
|
495
|
+
m("div", xt, [m("label", { class: y(p(U)) }, v(p(o).button.fontSize), 3), m("div", St, [m("input", {
|
|
503
496
|
type: "number",
|
|
504
497
|
class: y(p(G)),
|
|
505
498
|
value: e.block.fontSize,
|
|
506
499
|
min: "10",
|
|
507
500
|
max: "36",
|
|
508
501
|
onInput: r[8] ||= (e) => c("fontSize", Number(e.target.value))
|
|
509
|
-
}, null, 42,
|
|
510
|
-
m("div",
|
|
502
|
+
}, null, 42, Ct), m("span", { class: y(p(W)) }, "px", 2)])]),
|
|
503
|
+
m("div", wt, [
|
|
511
504
|
m("label", { class: y(p(U)) }, v(p(o).button.width), 3),
|
|
512
505
|
m("select", {
|
|
513
506
|
class: y(p(K)),
|
|
514
507
|
value: s.value,
|
|
515
508
|
onChange: r[9] ||= (e) => l(e.target.value)
|
|
516
509
|
}, [
|
|
517
|
-
m("option",
|
|
518
|
-
m("option",
|
|
519
|
-
m("option",
|
|
520
|
-
], 42,
|
|
521
|
-
s.value === "custom" ? (t(), h("div",
|
|
510
|
+
m("option", Et, v(p(o).button.widthAuto), 1),
|
|
511
|
+
m("option", Dt, v(p(o).button.fullWidth), 1),
|
|
512
|
+
m("option", Ot, v(p(o).button.widthCustom), 1)
|
|
513
|
+
], 42, Tt),
|
|
514
|
+
s.value === "custom" ? (t(), h("div", kt, [m("input", {
|
|
522
515
|
type: "number",
|
|
523
516
|
class: y(p(G)),
|
|
524
|
-
value: typeof e.block.width == "number" ? e.block.width :
|
|
517
|
+
value: typeof e.block.width == "number" ? e.block.width : Mt,
|
|
525
518
|
min: "20",
|
|
526
519
|
onInput: r[10] ||= (e) => u(e.target.value)
|
|
527
|
-
}, null, 42,
|
|
520
|
+
}, null, 42, At), m("span", { class: y(p(W)) }, "px", 2)])) : C("", !0)
|
|
528
521
|
]),
|
|
529
|
-
m("div",
|
|
522
|
+
m("div", jt, [m("label", { class: y(p(U)) }, v(p(o).title.align), 3), g(Y, {
|
|
530
523
|
options: [
|
|
531
524
|
{
|
|
532
525
|
value: "left",
|
|
@@ -546,7 +539,7 @@ var Ue = ye({
|
|
|
546
539
|
}, null, 8, ["options", "model-value"])])
|
|
547
540
|
], 64));
|
|
548
541
|
}
|
|
549
|
-
}),
|
|
542
|
+
}), Pt = { class: "spacing-control" }, Ft = { class: "tpl:mb-2 tpl:block tpl:text-sm tpl:font-medium tpl:text-[var(--tpl-text-muted)]" }, It = { class: "tpl:flex tpl:flex-col tpl:items-center tpl:gap-1.5" }, Lt = { class: "tpl:flex tpl:items-center" }, Rt = ["aria-label"], zt = ["value", "aria-label"], Bt = ["aria-label"], Vt = { class: "tpl:flex tpl:items-center tpl:gap-2" }, Ht = { class: "tpl:flex tpl:items-center" }, Ut = ["aria-label"], Wt = ["value", "aria-label"], Gt = ["aria-label"], Kt = ["aria-label", "title"], qt = { class: "tpl:flex tpl:items-center" }, Jt = ["aria-label"], Yt = ["value", "aria-label"], Xt = ["aria-label"], Zt = { class: "tpl:flex tpl:items-center" }, Qt = ["aria-label"], $t = ["value", "aria-label"], en = ["aria-label"], Z = "tpl:flex tpl:items-center tpl:justify-center tpl:w-8 tpl:h-8 tpl:text-[var(--tpl-text-muted)] tpl:bg-[var(--tpl-bg)] tpl:border tpl:border-[var(--tpl-border)] tpl:cursor-pointer tpl:transition-all tpl:duration-[120ms] tpl:ease-[cubic-bezier(0.16,1,0.3,1)] tpl:hover:bg-[var(--tpl-bg-hover)] tpl:hover:text-[var(--tpl-text)] tpl:active:bg-[var(--tpl-bg-active)]", tn = "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)]", nn = /*#__PURE__*/ Fe(/* @__PURE__ */ w({
|
|
550
543
|
__name: "SpacingControl",
|
|
551
544
|
props: {
|
|
552
545
|
modelValue: {},
|
|
@@ -554,7 +547,7 @@ var Ue = ye({
|
|
|
554
547
|
},
|
|
555
548
|
emits: ["update:modelValue"],
|
|
556
549
|
setup(e, { emit: n }) {
|
|
557
|
-
let r = e, i = n, { t: a } =
|
|
550
|
+
let r = e, i = n, { t: a } = I(), o = S(() => r.modelValue.top === r.modelValue.right && r.modelValue.right === r.modelValue.bottom && r.modelValue.bottom === r.modelValue.left), c = d(o.value);
|
|
558
551
|
s(o, (e) => {
|
|
559
552
|
!e && c.value && (c.value = !1);
|
|
560
553
|
});
|
|
@@ -593,130 +586,130 @@ var Ue = ye({
|
|
|
593
586
|
});
|
|
594
587
|
}
|
|
595
588
|
}
|
|
596
|
-
return (n, r) => (t(), h("div",
|
|
597
|
-
m("div",
|
|
589
|
+
return (n, r) => (t(), h("div", Pt, [m("label", Ft, v(e.label), 1), m("div", It, [
|
|
590
|
+
m("div", Lt, [
|
|
598
591
|
m("button", {
|
|
599
592
|
"aria-label": p(a).spacingControl.decreaseTop,
|
|
600
593
|
class: y([Z, "tpl:rounded-l-[var(--tpl-radius-sm)]"]),
|
|
601
594
|
onClick: r[0] ||= (e) => l("top", -1)
|
|
602
|
-
}, [g(p(
|
|
595
|
+
}, [g(p(R), {
|
|
603
596
|
size: 12,
|
|
604
597
|
"stroke-width": 2
|
|
605
|
-
})], 10,
|
|
598
|
+
})], 10, Rt),
|
|
606
599
|
m("input", {
|
|
607
600
|
type: "number",
|
|
608
|
-
class: y(
|
|
601
|
+
class: y(tn),
|
|
609
602
|
value: e.modelValue.top,
|
|
610
603
|
"aria-label": p(a).spacingControl.top,
|
|
611
604
|
min: "0",
|
|
612
605
|
onInput: r[1] ||= (e) => u("top", Number(e.target.value))
|
|
613
|
-
}, null, 40,
|
|
606
|
+
}, null, 40, zt),
|
|
614
607
|
m("button", {
|
|
615
608
|
"aria-label": p(a).spacingControl.increaseTop,
|
|
616
609
|
class: y([Z, "tpl:rounded-r-[var(--tpl-radius-sm)]"]),
|
|
617
610
|
onClick: r[2] ||= (e) => l("top", 1)
|
|
618
|
-
}, [g(p(
|
|
611
|
+
}, [g(p(z), {
|
|
619
612
|
size: 12,
|
|
620
613
|
"stroke-width": 2
|
|
621
|
-
})], 10,
|
|
614
|
+
})], 10, Bt)
|
|
622
615
|
]),
|
|
623
|
-
m("div",
|
|
624
|
-
m("div",
|
|
616
|
+
m("div", Vt, [
|
|
617
|
+
m("div", Ht, [
|
|
625
618
|
m("button", {
|
|
626
619
|
"aria-label": p(a).spacingControl.decreaseLeft,
|
|
627
620
|
class: y([Z, "tpl:rounded-l-[var(--tpl-radius-sm)]"]),
|
|
628
621
|
onClick: r[3] ||= (e) => l("left", -1)
|
|
629
|
-
}, [g(p(
|
|
622
|
+
}, [g(p(R), {
|
|
630
623
|
size: 12,
|
|
631
624
|
"stroke-width": 2
|
|
632
|
-
})], 10,
|
|
625
|
+
})], 10, Ut),
|
|
633
626
|
m("input", {
|
|
634
627
|
type: "number",
|
|
635
|
-
class: y(
|
|
628
|
+
class: y(tn),
|
|
636
629
|
value: e.modelValue.left,
|
|
637
630
|
"aria-label": p(a).spacingControl.left,
|
|
638
631
|
min: "0",
|
|
639
632
|
onInput: r[4] ||= (e) => u("left", Number(e.target.value))
|
|
640
|
-
}, null, 40,
|
|
633
|
+
}, null, 40, Wt),
|
|
641
634
|
m("button", {
|
|
642
635
|
"aria-label": p(a).spacingControl.increaseLeft,
|
|
643
636
|
class: y([Z, "tpl:rounded-r-[var(--tpl-radius-sm)]"]),
|
|
644
637
|
onClick: r[5] ||= (e) => l("left", 1)
|
|
645
|
-
}, [g(p(
|
|
638
|
+
}, [g(p(z), {
|
|
646
639
|
size: 12,
|
|
647
640
|
"stroke-width": 2
|
|
648
|
-
})], 10,
|
|
641
|
+
})], 10, Gt)
|
|
649
642
|
]),
|
|
650
643
|
m("button", {
|
|
651
644
|
class: y(["tpl:flex tpl:h-8 tpl:w-8 tpl:cursor-pointer tpl:items-center tpl:justify-center tpl:rounded-[var(--tpl-radius-sm)] tpl:border tpl:transition-all tpl:duration-[120ms] tpl:ease-[cubic-bezier(0.16,1,0.3,1)]", c.value ? "tpl:border-[var(--tpl-primary)] tpl:bg-[var(--tpl-primary-light)] tpl:text-[var(--tpl-primary)]" : "tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:text-[var(--tpl-text-muted)] tpl:hover:bg-[var(--tpl-bg-hover)]"]),
|
|
652
645
|
"aria-label": c.value ? p(a).spacingControl.unlock : p(a).spacingControl.lockAll,
|
|
653
646
|
title: c.value ? p(a).spacingControl.unlock : p(a).spacingControl.lockAll,
|
|
654
647
|
onClick: f
|
|
655
|
-
}, [c.value ? (t(), b(p(
|
|
648
|
+
}, [c.value ? (t(), b(p(Ke), {
|
|
656
649
|
key: 0,
|
|
657
650
|
size: 14,
|
|
658
651
|
"stroke-width": 2
|
|
659
|
-
})) : (t(), b(p(
|
|
652
|
+
})) : (t(), b(p(Ge), {
|
|
660
653
|
key: 1,
|
|
661
654
|
size: 14,
|
|
662
655
|
"stroke-width": 2
|
|
663
|
-
}))], 10,
|
|
664
|
-
m("div",
|
|
656
|
+
}))], 10, Kt),
|
|
657
|
+
m("div", qt, [
|
|
665
658
|
m("button", {
|
|
666
659
|
"aria-label": p(a).spacingControl.decreaseRight,
|
|
667
660
|
class: y([Z, "tpl:rounded-l-[var(--tpl-radius-sm)]"]),
|
|
668
661
|
onClick: r[6] ||= (e) => l("right", -1)
|
|
669
|
-
}, [g(p(
|
|
662
|
+
}, [g(p(R), {
|
|
670
663
|
size: 12,
|
|
671
664
|
"stroke-width": 2
|
|
672
|
-
})], 10,
|
|
665
|
+
})], 10, Jt),
|
|
673
666
|
m("input", {
|
|
674
667
|
type: "number",
|
|
675
|
-
class: y(
|
|
668
|
+
class: y(tn),
|
|
676
669
|
value: e.modelValue.right,
|
|
677
670
|
"aria-label": p(a).spacingControl.right,
|
|
678
671
|
min: "0",
|
|
679
672
|
onInput: r[7] ||= (e) => u("right", Number(e.target.value))
|
|
680
|
-
}, null, 40,
|
|
673
|
+
}, null, 40, Yt),
|
|
681
674
|
m("button", {
|
|
682
675
|
"aria-label": p(a).spacingControl.increaseRight,
|
|
683
676
|
class: y([Z, "tpl:rounded-r-[var(--tpl-radius-sm)]"]),
|
|
684
677
|
onClick: r[8] ||= (e) => l("right", 1)
|
|
685
|
-
}, [g(p(
|
|
678
|
+
}, [g(p(z), {
|
|
686
679
|
size: 12,
|
|
687
680
|
"stroke-width": 2
|
|
688
|
-
})], 10,
|
|
681
|
+
})], 10, Xt)
|
|
689
682
|
])
|
|
690
683
|
]),
|
|
691
|
-
m("div",
|
|
684
|
+
m("div", Zt, [
|
|
692
685
|
m("button", {
|
|
693
686
|
"aria-label": p(a).spacingControl.decreaseBottom,
|
|
694
687
|
class: y([Z, "tpl:rounded-l-[var(--tpl-radius-sm)]"]),
|
|
695
688
|
onClick: r[9] ||= (e) => l("bottom", -1)
|
|
696
|
-
}, [g(p(
|
|
689
|
+
}, [g(p(R), {
|
|
697
690
|
size: 12,
|
|
698
691
|
"stroke-width": 2
|
|
699
|
-
})], 10,
|
|
692
|
+
})], 10, Qt),
|
|
700
693
|
m("input", {
|
|
701
694
|
type: "number",
|
|
702
|
-
class: y(
|
|
695
|
+
class: y(tn),
|
|
703
696
|
value: e.modelValue.bottom,
|
|
704
697
|
"aria-label": p(a).spacingControl.bottom,
|
|
705
698
|
min: "0",
|
|
706
699
|
onInput: r[10] ||= (e) => u("bottom", Number(e.target.value))
|
|
707
|
-
}, null, 40,
|
|
700
|
+
}, null, 40, $t),
|
|
708
701
|
m("button", {
|
|
709
702
|
"aria-label": p(a).spacingControl.increaseBottom,
|
|
710
703
|
class: y([Z, "tpl:rounded-r-[var(--tpl-radius-sm)]"]),
|
|
711
704
|
onClick: r[11] ||= (e) => l("bottom", 1)
|
|
712
|
-
}, [g(p(
|
|
705
|
+
}, [g(p(z), {
|
|
713
706
|
size: 12,
|
|
714
707
|
"stroke-width": 2
|
|
715
|
-
})], 10,
|
|
708
|
+
})], 10, en)
|
|
716
709
|
])
|
|
717
710
|
])]));
|
|
718
711
|
}
|
|
719
|
-
}), [["__scopeId", "data-v-69591c1e"]]),
|
|
712
|
+
}), [["__scopeId", "data-v-69591c1e"]]), rn = ["data-testid"], an = { class: "tpl:mt-3" }, on = /* @__PURE__ */ w({
|
|
720
713
|
__name: "CollapsibleSection",
|
|
721
714
|
props: {
|
|
722
715
|
title: {},
|
|
@@ -731,25 +724,25 @@ var Ue = ye({
|
|
|
731
724
|
"data-testid": e.headerTestId,
|
|
732
725
|
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)]",
|
|
733
726
|
onClick: r[0] ||= (e) => n.$emit("toggle")
|
|
734
|
-
}, [g(p(
|
|
727
|
+
}, [g(p(Se), {
|
|
735
728
|
class: y(["tpl:transition-transform tpl:duration-200", e.open ? "tpl:rotate-0" : "tpl:-rotate-90"]),
|
|
736
729
|
size: 12,
|
|
737
730
|
"stroke-width": 2
|
|
738
|
-
}, null, 8, ["class"]), m("span", null, v(e.title), 1)], 8,
|
|
731
|
+
}, null, 8, ["class"]), m("span", null, v(e.title), 1)], 8, rn), l(m("div", an, [o(n.$slots, "default")], 512), [[E, e.open]])], 2));
|
|
739
732
|
}
|
|
740
|
-
}),
|
|
733
|
+
}), sn = { class: "tpl:space-y-2" }, cn = { class: "tpl:flex tpl:items-center tpl:gap-2" }, ln = { class: "tpl:space-y-2" }, un = ["value"], dn = { value: "" }, fn = ["label"], pn = ["value"], mn = ["value"], hn = {
|
|
741
734
|
key: 0,
|
|
742
735
|
value: "__custom__"
|
|
743
|
-
},
|
|
736
|
+
}, gn = {
|
|
744
737
|
key: 0,
|
|
745
738
|
class: "tpl:space-y-2"
|
|
746
|
-
},
|
|
739
|
+
}, _n = { class: "tpl:mb-1 tpl:block tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-text-muted)]" }, vn = { class: "tpl:mb-1 tpl:block tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-text-muted)]" }, yn = { class: "tpl:flex tpl:justify-end" }, bn = ["disabled"], xn = {
|
|
747
740
|
key: 0,
|
|
748
741
|
class: "tpl:text-[10px] tpl:text-[var(--tpl-text-muted)]"
|
|
749
|
-
},
|
|
742
|
+
}, Sn = { class: "tpl:space-y-1" }, Cn = { 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)]" }, wn = {
|
|
750
743
|
key: 0,
|
|
751
744
|
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)]"
|
|
752
|
-
},
|
|
745
|
+
}, Tn = /* @__PURE__ */ w({
|
|
753
746
|
__name: "CommonBlockSettings",
|
|
754
747
|
props: {
|
|
755
748
|
block: {},
|
|
@@ -757,23 +750,23 @@ var Ue = ye({
|
|
|
757
750
|
},
|
|
758
751
|
emits: ["update"],
|
|
759
752
|
setup(e, { emit: n }) {
|
|
760
|
-
let o = e, f = n, { t: w } =
|
|
753
|
+
let o = e, f = n, { t: w } = I(), E = c(ge, []), D = c(_e, !1), O = u(/* @__PURE__ */ new Set()), k = d(!1), A = d(""), j = d(""), ee = [{
|
|
761
754
|
key: "desktop",
|
|
762
|
-
icon:
|
|
755
|
+
icon: ke,
|
|
763
756
|
labelKey: "showOnDesktop"
|
|
764
757
|
}, {
|
|
765
758
|
key: "mobile",
|
|
766
|
-
icon:
|
|
759
|
+
icon: Ae,
|
|
767
760
|
labelKey: "showOnMobile"
|
|
768
761
|
}];
|
|
769
762
|
function M(e) {
|
|
770
763
|
O.has(e) ? O.delete(e) : O.add(e);
|
|
771
764
|
}
|
|
772
|
-
let
|
|
773
|
-
function te() {
|
|
774
|
-
k.value = !0, P.value && o.block.displayCondition ? (A.value = o.block.displayCondition.before, j.value = o.block.displayCondition.after ?? "") : (A.value = "", j.value = "");
|
|
775
|
-
}
|
|
765
|
+
let te = S(() => E.length > 0 || D), N = S(() => o.block.displayCondition ? !E.some((e) => e.label === o.block.displayCondition?.label) : !1);
|
|
776
766
|
function ne() {
|
|
767
|
+
k.value = !0, N.value && o.block.displayCondition ? (A.value = o.block.displayCondition.before, j.value = o.block.displayCondition.after ?? "") : (A.value = "", j.value = "");
|
|
768
|
+
}
|
|
769
|
+
function re() {
|
|
777
770
|
A.value.trim() && (f("update", { displayCondition: {
|
|
778
771
|
label: w.blockSettings.customCondition,
|
|
779
772
|
before: A.value.trim(),
|
|
@@ -781,13 +774,9 @@ var Ue = ye({
|
|
|
781
774
|
} }), k.value = !1, A.value = "", j.value = "");
|
|
782
775
|
}
|
|
783
776
|
s(() => o.block.displayCondition, (e) => {
|
|
784
|
-
|
|
785
|
-
k.value = !1, A.value = "", j.value = "";
|
|
786
|
-
return;
|
|
787
|
-
}
|
|
788
|
-
P.value && (A.value = e.before, j.value = e.after ?? "");
|
|
777
|
+
e ? N.value && (A.value = e.before, j.value = e.after ?? "") : (k.value = !1, A.value = "", j.value = "");
|
|
789
778
|
}, { immediate: !0 });
|
|
790
|
-
let
|
|
779
|
+
let ie = S(() => {
|
|
791
780
|
let e = {};
|
|
792
781
|
for (let t of E) {
|
|
793
782
|
let n = t.group ?? "";
|
|
@@ -795,33 +784,33 @@ var Ue = ye({
|
|
|
795
784
|
}
|
|
796
785
|
return e;
|
|
797
786
|
});
|
|
798
|
-
function
|
|
787
|
+
function ae(e, t) {
|
|
799
788
|
f("update", { styles: {
|
|
800
789
|
...o.block.styles,
|
|
801
790
|
[e]: t
|
|
802
791
|
} });
|
|
803
792
|
}
|
|
804
|
-
function
|
|
793
|
+
function P(e) {
|
|
805
794
|
return o.block.visibility?.[e] !== !1;
|
|
806
795
|
}
|
|
807
|
-
function
|
|
796
|
+
function oe(e) {
|
|
808
797
|
let t = {
|
|
809
|
-
desktop:
|
|
810
|
-
mobile:
|
|
798
|
+
desktop: P("desktop"),
|
|
799
|
+
mobile: P("mobile")
|
|
811
800
|
};
|
|
812
801
|
t[e] = !t[e], f("update", { visibility: t });
|
|
813
802
|
}
|
|
814
803
|
return (n, o) => (t(), h("div", { class: y(["tpl:flex tpl:flex-col", e.isFirstSection ? "" : "tpl:mt-4"]) }, [
|
|
815
|
-
g(
|
|
804
|
+
g(on, {
|
|
816
805
|
title: p(w).blockSettings.spacing,
|
|
817
806
|
open: O.has("spacing"),
|
|
818
807
|
"no-border": e.isFirstSection,
|
|
819
808
|
onToggle: o[1] ||= (e) => M("spacing")
|
|
820
809
|
}, {
|
|
821
|
-
default: r(() => [g(
|
|
810
|
+
default: r(() => [g(nn, {
|
|
822
811
|
label: p(w).blockSettings.padding,
|
|
823
812
|
"model-value": e.block.styles.padding,
|
|
824
|
-
"onUpdate:modelValue": o[0] ||= (e) =>
|
|
813
|
+
"onUpdate:modelValue": o[0] ||= (e) => ae("padding", e)
|
|
825
814
|
}, null, 8, ["label", "model-value"])]),
|
|
826
815
|
_: 1
|
|
827
816
|
}, 8, [
|
|
@@ -829,31 +818,31 @@ var Ue = ye({
|
|
|
829
818
|
"open",
|
|
830
819
|
"no-border"
|
|
831
820
|
]),
|
|
832
|
-
g(
|
|
821
|
+
g(on, {
|
|
833
822
|
title: p(w).blockSettings.background,
|
|
834
823
|
open: O.has("bg"),
|
|
835
824
|
onToggle: o[3] ||= (e) => M("bg")
|
|
836
825
|
}, {
|
|
837
|
-
default: r(() => [m("label", { class: y(p(U)) }, v(p(w).blockSettings.color), 3), g(
|
|
826
|
+
default: r(() => [m("label", { class: y(p(U)) }, v(p(w).blockSettings.color), 3), g(L, {
|
|
838
827
|
"model-value": e.block.styles.backgroundColor ?? "",
|
|
839
828
|
"allow-transparent": "",
|
|
840
|
-
"onUpdate:modelValue": o[2] ||= (e) =>
|
|
829
|
+
"onUpdate:modelValue": o[2] ||= (e) => ae("backgroundColor", e)
|
|
841
830
|
}, null, 8, ["model-value"])]),
|
|
842
831
|
_: 1
|
|
843
832
|
}, 8, ["title", "open"]),
|
|
844
|
-
g(
|
|
833
|
+
g(on, {
|
|
845
834
|
title: p(w).blockSettings.display,
|
|
846
835
|
open: O.has("display"),
|
|
847
836
|
onToggle: o[4] ||= (e) => M("display")
|
|
848
837
|
}, {
|
|
849
|
-
default: r(() => [m("div",
|
|
838
|
+
default: r(() => [m("div", sn, [(t(), h(x, null, a(ee, (e) => g(q, {
|
|
850
839
|
key: e.key,
|
|
851
840
|
class: "tpl:text-xs tpl:text-[var(--tpl-text)]",
|
|
852
|
-
"model-value":
|
|
841
|
+
"model-value": P(e.key),
|
|
853
842
|
label: p(w).blockSettings[e.labelKey],
|
|
854
|
-
"onUpdate:modelValue": (t) =>
|
|
843
|
+
"onUpdate:modelValue": (t) => oe(e.key)
|
|
855
844
|
}, {
|
|
856
|
-
default: r(() => [m("span",
|
|
845
|
+
default: r(() => [m("span", cn, [(t(), b(i(e.icon), {
|
|
857
846
|
size: 14,
|
|
858
847
|
"stroke-width": 1.5
|
|
859
848
|
})), _(" " + v(p(w).blockSettings[e.labelKey]), 1)])]),
|
|
@@ -865,21 +854,21 @@ var Ue = ye({
|
|
|
865
854
|
])), 64))])]),
|
|
866
855
|
_: 1
|
|
867
856
|
}, 8, ["title", "open"]),
|
|
868
|
-
|
|
857
|
+
te.value ? (t(), b(on, {
|
|
869
858
|
key: 0,
|
|
870
859
|
"header-test-id": "display-condition-section",
|
|
871
860
|
title: p(w).blockSettings.displayCondition,
|
|
872
861
|
open: O.has("condition"),
|
|
873
862
|
onToggle: o[8] ||= (e) => M("condition")
|
|
874
863
|
}, {
|
|
875
|
-
default: r(() => [m("div",
|
|
864
|
+
default: r(() => [m("div", ln, [m("select", {
|
|
876
865
|
"data-testid": "display-condition-select",
|
|
877
866
|
class: y(["tpl:w-full tpl:rounded-md tpl:border tpl:px-2.5 tpl:py-2 tpl:text-xs tpl:outline-none tpl:transition-all tpl:focus:border-[var(--tpl-primary)] tpl:focus:shadow-[0_0_0_3px_var(--tpl-primary-light)]", e.block.displayCondition ? "tpl:border-[var(--tpl-primary)] tpl:bg-[var(--tpl-primary-light)] tpl:text-[var(--tpl-text)]" : "tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:text-[var(--tpl-text)]"]),
|
|
878
|
-
value: k.value ||
|
|
867
|
+
value: k.value || N.value ? "__custom__" : e.block.displayCondition?.label ?? "",
|
|
879
868
|
onChange: o[5] ||= (e) => {
|
|
880
869
|
let t = e.target.value;
|
|
881
870
|
if (t === "__custom__") {
|
|
882
|
-
|
|
871
|
+
ne();
|
|
883
872
|
return;
|
|
884
873
|
}
|
|
885
874
|
if (k.value = !1, !t) {
|
|
@@ -890,41 +879,41 @@ var Ue = ye({
|
|
|
890
879
|
n && f("update", { displayCondition: n });
|
|
891
880
|
}
|
|
892
881
|
}, [
|
|
893
|
-
m("option",
|
|
894
|
-
(t(!0), h(x, null, a(
|
|
882
|
+
m("option", dn, v(p(w).blockSettings.noCondition), 1),
|
|
883
|
+
(t(!0), h(x, null, a(ie.value, (e, n) => (t(), h(x, { key: n }, [n ? (t(), h("optgroup", {
|
|
895
884
|
key: 0,
|
|
896
885
|
label: String(n)
|
|
897
886
|
}, [(t(!0), h(x, null, a(e, (e) => (t(), h("option", {
|
|
898
887
|
key: e.label,
|
|
899
888
|
value: e.label
|
|
900
|
-
}, v(e.label), 9,
|
|
889
|
+
}, v(e.label), 9, pn))), 128))], 8, fn)) : (t(!0), h(x, { key: 1 }, a(e, (e) => (t(), h("option", {
|
|
901
890
|
key: e.label,
|
|
902
891
|
value: e.label
|
|
903
|
-
}, v(e.label), 9,
|
|
904
|
-
p(D) ? (t(), h("option",
|
|
905
|
-
], 42,
|
|
906
|
-
m("div", null, [m("label",
|
|
892
|
+
}, v(e.label), 9, mn))), 128))], 64))), 128)),
|
|
893
|
+
p(D) ? (t(), h("option", hn, v(p(w).blockSettings.customCondition), 1)) : C("", !0)
|
|
894
|
+
], 42, un), k.value || N.value ? (t(), h("div", gn, [
|
|
895
|
+
m("div", null, [m("label", _n, v(p(w).blockSettings.customConditionBefore), 1), l(m("textarea", {
|
|
907
896
|
"onUpdate:modelValue": o[6] ||= (e) => A.value = e,
|
|
908
897
|
rows: "2",
|
|
909
898
|
class: y(p(Le))
|
|
910
899
|
}, null, 2), [[T, A.value]])]),
|
|
911
|
-
m("div", null, [m("label",
|
|
900
|
+
m("div", null, [m("label", vn, v(p(w).blockSettings.customConditionAfter), 1), l(m("textarea", {
|
|
912
901
|
"onUpdate:modelValue": o[7] ||= (e) => j.value = e,
|
|
913
902
|
rows: "2",
|
|
914
903
|
class: y(p(Le))
|
|
915
904
|
}, null, 2), [[T, j.value]])]),
|
|
916
|
-
m("div",
|
|
905
|
+
m("div", yn, [m("button", {
|
|
917
906
|
type: "button",
|
|
918
907
|
class: y(p(Ve)),
|
|
919
908
|
disabled: !A.value.trim(),
|
|
920
|
-
onClick:
|
|
921
|
-
}, v(p(w).blockSettings.applyCondition), 11,
|
|
922
|
-
])) : e.block.displayCondition && !
|
|
909
|
+
onClick: re
|
|
910
|
+
}, v(p(w).blockSettings.applyCondition), 11, bn)])
|
|
911
|
+
])) : e.block.displayCondition && !N.value ? (t(), h(x, { key: 1 }, [e.block.displayCondition.description ? (t(), h("p", xn, v(e.block.displayCondition.description), 1)) : C("", !0), m("div", Sn, [m("pre", Cn, v(e.block.displayCondition.before), 1), e.block.displayCondition.after ? (t(), h("pre", wn, v(e.block.displayCondition.after), 1)) : C("", !0)])], 64)) : C("", !0)])]),
|
|
923
912
|
_: 1
|
|
924
913
|
}, 8, ["title", "open"])) : C("", !0)
|
|
925
914
|
], 2));
|
|
926
915
|
}
|
|
927
|
-
}),
|
|
916
|
+
}), En = ["title"], Dn = /* @__PURE__ */ w({
|
|
928
917
|
__name: "BooleanField",
|
|
929
918
|
props: {
|
|
930
919
|
field: {},
|
|
@@ -933,7 +922,7 @@ var Ue = ye({
|
|
|
933
922
|
},
|
|
934
923
|
emits: ["update:modelValue"],
|
|
935
924
|
setup(e, { emit: n }) {
|
|
936
|
-
let i = n, { t: a } =
|
|
925
|
+
let i = n, { t: a } = I();
|
|
937
926
|
return (n, o) => (t(), h("div", {
|
|
938
927
|
class: "tpl:mb-3.5",
|
|
939
928
|
title: e.readOnly ? p(a).customBlocks.dataSource.readOnlyTooltip : void 0
|
|
@@ -945,7 +934,7 @@ var Ue = ye({
|
|
|
945
934
|
disabled: e.readOnly,
|
|
946
935
|
"onUpdate:modelValue": o[0] ||= (e) => i("update:modelValue", e)
|
|
947
936
|
}, {
|
|
948
|
-
default: r(() => [_(v(e.field.label) + " ", 1), e.readOnly ? (t(), b(p(
|
|
937
|
+
default: r(() => [_(v(e.field.label) + " ", 1), e.readOnly ? (t(), b(p(Ke), {
|
|
949
938
|
key: 0,
|
|
950
939
|
size: 12,
|
|
951
940
|
class: "tpl:inline tpl:text-[var(--tpl-text-dim)]"
|
|
@@ -956,9 +945,9 @@ var Ue = ye({
|
|
|
956
945
|
"label",
|
|
957
946
|
"required",
|
|
958
947
|
"disabled"
|
|
959
|
-
])], 8,
|
|
948
|
+
])], 8, En));
|
|
960
949
|
}
|
|
961
|
-
}),
|
|
950
|
+
}), On = { class: "tpl:mb-3.5" }, kn = ["title"], An = { class: "tpl-sr-only" }, jn = ["title"], Mn = { class: "tpl-sr-only" }, Q = /* @__PURE__ */ w({
|
|
962
951
|
__name: "FieldWrapper",
|
|
963
952
|
props: {
|
|
964
953
|
label: {},
|
|
@@ -966,25 +955,25 @@ var Ue = ye({
|
|
|
966
955
|
readOnly: { type: Boolean }
|
|
967
956
|
},
|
|
968
957
|
setup(e) {
|
|
969
|
-
let { t: n } =
|
|
970
|
-
return (r, i) => (t(), h("div",
|
|
958
|
+
let { t: n } = I();
|
|
959
|
+
return (r, i) => (t(), h("div", On, [m("label", { class: y(p(U)) }, [
|
|
971
960
|
_(v(e.label) + " ", 1),
|
|
972
961
|
e.readOnly ? (t(), h("span", {
|
|
973
962
|
key: 0,
|
|
974
963
|
title: p(n).customBlocks.dataSource.readOnlyTooltip
|
|
975
|
-
}, [g(p(
|
|
964
|
+
}, [g(p(Ke), {
|
|
976
965
|
size: 12,
|
|
977
966
|
class: "tpl:inline tpl:text-[var(--tpl-text-dim)]",
|
|
978
967
|
"aria-hidden": "true"
|
|
979
|
-
}), m("span",
|
|
968
|
+
}), m("span", An, v(p(n).customBlocks.dataSource.readOnlyTooltip), 1)], 8, kn)) : C("", !0),
|
|
980
969
|
e.required ? (t(), h("span", {
|
|
981
970
|
key: 1,
|
|
982
971
|
class: "tpl:text-[var(--tpl-danger)]",
|
|
983
972
|
title: p(n).customBlocks.fields.required
|
|
984
|
-
}, [i[0] ||= m("span", { "aria-hidden": "true" }, "*", -1), m("span",
|
|
973
|
+
}, [i[0] ||= m("span", { "aria-hidden": "true" }, "*", -1), m("span", Mn, v(p(n).customBlocks.fields.required), 1)], 8, jn)) : C("", !0)
|
|
985
974
|
], 2), o(r.$slots, "default")]));
|
|
986
975
|
}
|
|
987
|
-
}),
|
|
976
|
+
}), Nn = /* @__PURE__ */ w({
|
|
988
977
|
__name: "ColorField",
|
|
989
978
|
props: {
|
|
990
979
|
field: {},
|
|
@@ -993,13 +982,13 @@ var Ue = ye({
|
|
|
993
982
|
},
|
|
994
983
|
emits: ["update:modelValue"],
|
|
995
984
|
setup(e, { emit: n }) {
|
|
996
|
-
let i = e, a = n, { t: o } =
|
|
985
|
+
let i = e, a = n, { t: o } = I(), s = c(he, be), l = S(() => se(i.field, s));
|
|
997
986
|
return (n, i) => (t(), b(Q, {
|
|
998
987
|
label: e.field.label,
|
|
999
988
|
required: e.field.required,
|
|
1000
989
|
"read-only": e.readOnly
|
|
1001
990
|
}, {
|
|
1002
|
-
default: r(() => [g(
|
|
991
|
+
default: r(() => [g(L, {
|
|
1003
992
|
"model-value": e.modelValue,
|
|
1004
993
|
placeholder: e.field.placeholder,
|
|
1005
994
|
disabled: e.readOnly,
|
|
@@ -1022,15 +1011,15 @@ var Ue = ye({
|
|
|
1022
1011
|
"read-only"
|
|
1023
1012
|
]));
|
|
1024
1013
|
}
|
|
1025
|
-
}),
|
|
1014
|
+
}), Pn = {
|
|
1026
1015
|
key: 0,
|
|
1027
1016
|
class: "tpl:pointer-events-none tpl:absolute tpl:inset-0 tpl:z-10 tpl:flex tpl:flex-col tpl:items-center tpl:justify-center tpl:gap-1.5 tpl:rounded tpl:border-2 tpl:border-dashed tpl:text-xs tpl:font-medium tpl:border-[var(--tpl-primary)] tpl:text-[var(--tpl-primary)]",
|
|
1028
1017
|
style: { "background-color": "color-mix(in srgb, var(--tpl-bg) 90%, transparent)" }
|
|
1029
|
-
},
|
|
1018
|
+
}, Fn = [
|
|
1030
1019
|
"value",
|
|
1031
1020
|
"placeholder",
|
|
1032
1021
|
"title"
|
|
1033
|
-
],
|
|
1022
|
+
], In = ["value", "placeholder"], Ln = /* @__PURE__ */ w({
|
|
1034
1023
|
__name: "ImageField",
|
|
1035
1024
|
props: {
|
|
1036
1025
|
field: {},
|
|
@@ -1039,7 +1028,7 @@ var Ue = ye({
|
|
|
1039
1028
|
},
|
|
1040
1029
|
emits: ["update:modelValue"],
|
|
1041
1030
|
setup(e, { emit: n }) {
|
|
1042
|
-
let i = e, a = n, { t: o } =
|
|
1031
|
+
let i = e, a = n, { t: o } = I(), s = c(fe, null), l = c(me, null), u = Ie(), f = S(() => !!s);
|
|
1043
1032
|
async function w() {
|
|
1044
1033
|
let e = await s?.({ accept: ["images"] });
|
|
1045
1034
|
u.alive && e && a("update:modelValue", e.url);
|
|
@@ -1060,7 +1049,7 @@ var Ue = ye({
|
|
|
1060
1049
|
}
|
|
1061
1050
|
}
|
|
1062
1051
|
}
|
|
1063
|
-
let { isOver: k } =
|
|
1052
|
+
let { isOver: k } = ae({
|
|
1064
1053
|
target: T,
|
|
1065
1054
|
enabled: D,
|
|
1066
1055
|
onFiles: O
|
|
@@ -1075,7 +1064,7 @@ var Ue = ye({
|
|
|
1075
1064
|
ref: T,
|
|
1076
1065
|
class: "tpl:relative"
|
|
1077
1066
|
}, [
|
|
1078
|
-
D.value && (p(k) || E.value) ? (t(), h("div",
|
|
1067
|
+
D.value && (p(k) || E.value) ? (t(), h("div", Pn, [E.value ? (t(), h(x, { key: 0 }, [g(p(Oe), {
|
|
1079
1068
|
class: "tpl-spinner",
|
|
1080
1069
|
size: 18,
|
|
1081
1070
|
"stroke-width": 2
|
|
@@ -1091,19 +1080,19 @@ var Ue = ye({
|
|
|
1091
1080
|
placeholder: e.field.placeholder || "https://...",
|
|
1092
1081
|
disabled: "",
|
|
1093
1082
|
title: p(o).customBlocks.dataSource.readOnlyTooltip
|
|
1094
|
-
}, null, 10,
|
|
1083
|
+
}, null, 10, Fn)) : (t(), h("input", {
|
|
1095
1084
|
key: 2,
|
|
1096
1085
|
type: "url",
|
|
1097
1086
|
class: y(p(K)),
|
|
1098
1087
|
value: e.modelValue,
|
|
1099
1088
|
placeholder: e.field.placeholder || "https://...",
|
|
1100
1089
|
onInput: i[0] ||= (e) => a("update:modelValue", e.target.value)
|
|
1101
|
-
}, null, 42,
|
|
1090
|
+
}, null, 42, In)),
|
|
1102
1091
|
f.value && !e.readOnly ? (t(), h("button", {
|
|
1103
1092
|
key: 3,
|
|
1104
1093
|
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)]",
|
|
1105
1094
|
onClick: i[1] ||= (e) => w()
|
|
1106
|
-
}, [g(p(
|
|
1095
|
+
}, [g(p(re), {
|
|
1107
1096
|
size: 14,
|
|
1108
1097
|
"stroke-width": 1.5
|
|
1109
1098
|
}), _(" " + v(p(o).image.browseMedia), 1)])) : C("", !0)
|
|
@@ -1115,7 +1104,7 @@ var Ue = ye({
|
|
|
1115
1104
|
"read-only"
|
|
1116
1105
|
]));
|
|
1117
1106
|
}
|
|
1118
|
-
}),
|
|
1107
|
+
}), Rn = [
|
|
1119
1108
|
"value",
|
|
1120
1109
|
"placeholder",
|
|
1121
1110
|
"min",
|
|
@@ -1123,7 +1112,7 @@ var Ue = ye({
|
|
|
1123
1112
|
"step",
|
|
1124
1113
|
"disabled",
|
|
1125
1114
|
"title"
|
|
1126
|
-
],
|
|
1115
|
+
], zn = /* @__PURE__ */ w({
|
|
1127
1116
|
__name: "NumberField",
|
|
1128
1117
|
props: {
|
|
1129
1118
|
field: {},
|
|
@@ -1132,7 +1121,7 @@ var Ue = ye({
|
|
|
1132
1121
|
},
|
|
1133
1122
|
emits: ["update:modelValue"],
|
|
1134
1123
|
setup(e, { emit: n }) {
|
|
1135
|
-
let i = n, { t: a } =
|
|
1124
|
+
let i = n, { t: a } = I();
|
|
1136
1125
|
return (n, o) => (t(), b(Q, {
|
|
1137
1126
|
label: e.field.label,
|
|
1138
1127
|
required: e.field.required,
|
|
@@ -1149,7 +1138,7 @@ var Ue = ye({
|
|
|
1149
1138
|
disabled: e.readOnly,
|
|
1150
1139
|
title: e.readOnly ? p(a).customBlocks.dataSource.readOnlyTooltip : void 0,
|
|
1151
1140
|
onInput: o[0] ||= (t) => !e.readOnly && i("update:modelValue", Number(t.target.value))
|
|
1152
|
-
}, null, 42,
|
|
1141
|
+
}, null, 42, Rn)]),
|
|
1153
1142
|
_: 1
|
|
1154
1143
|
}, 8, [
|
|
1155
1144
|
"label",
|
|
@@ -1157,13 +1146,13 @@ var Ue = ye({
|
|
|
1157
1146
|
"read-only"
|
|
1158
1147
|
]));
|
|
1159
1148
|
}
|
|
1160
|
-
}),
|
|
1149
|
+
}), Bn = { class: "tpl:flex tpl:flex-col tpl:gap-2" }, Vn = { class: "tpl:mb-2 tpl:flex tpl:items-center tpl:justify-between" }, Hn = { class: "tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-text-dim)]" }, Un = ["title", "onClick"], Wn = {
|
|
1161
1150
|
key: 1,
|
|
1162
1151
|
class: "tpl:m-0 tpl:text-center tpl:text-xs tpl:text-[var(--tpl-text-dim)]"
|
|
1163
|
-
},
|
|
1152
|
+
}, Gn = {
|
|
1164
1153
|
key: 2,
|
|
1165
1154
|
class: "tpl:m-0 tpl:text-center tpl:text-xs tpl:text-[var(--tpl-text-dim)]"
|
|
1166
|
-
},
|
|
1155
|
+
}, Kn = /* @__PURE__ */ w({
|
|
1167
1156
|
__name: "RepeatableField",
|
|
1168
1157
|
props: {
|
|
1169
1158
|
field: {},
|
|
@@ -1172,7 +1161,7 @@ var Ue = ye({
|
|
|
1172
1161
|
},
|
|
1173
1162
|
emits: ["update:modelValue"],
|
|
1174
1163
|
setup(e, { emit: n }) {
|
|
1175
|
-
let o = e, s = n, { t: c, format: l } =
|
|
1164
|
+
let o = e, s = n, { t: c, format: l } = I(), u = S(() => o.modelValue || []), d = S(() => !o.field.maxItems || u.value.length < o.field.maxItems), f = S(() => !o.field.minItems || u.value.length > o.field.minItems);
|
|
1176
1165
|
function w() {
|
|
1177
1166
|
if (!d.value || o.readOnly) return;
|
|
1178
1167
|
let e = {};
|
|
@@ -1196,11 +1185,11 @@ var Ue = ye({
|
|
|
1196
1185
|
required: e.field.required,
|
|
1197
1186
|
"read-only": e.readOnly
|
|
1198
1187
|
}, {
|
|
1199
|
-
default: r(() => [m("div",
|
|
1188
|
+
default: r(() => [m("div", Bn, [
|
|
1200
1189
|
(t(!0), h(x, null, a(u.value, (n, r) => (t(), h("div", {
|
|
1201
1190
|
key: `${e.field.key}-${r}`,
|
|
1202
1191
|
class: "tpl:rounded-md tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg-hover)] tpl:p-3"
|
|
1203
|
-
}, [m("div",
|
|
1192
|
+
}, [m("div", Vn, [m("span", Hn, " #" + v(r + 1), 1), f.value && !e.readOnly ? (t(), h("button", {
|
|
1204
1193
|
key: 0,
|
|
1205
1194
|
type: "button",
|
|
1206
1195
|
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)]",
|
|
@@ -1209,7 +1198,7 @@ var Ue = ye({
|
|
|
1209
1198
|
}, [g(p(Me), {
|
|
1210
1199
|
size: 12,
|
|
1211
1200
|
"stroke-width": 2
|
|
1212
|
-
})], 8,
|
|
1201
|
+
})], 8, Un)) : C("", !0)]), (t(!0), h(x, null, a(e.field.fields, (a) => (t(), b(i(p(tr)(a.type)), {
|
|
1213
1202
|
key: a.key,
|
|
1214
1203
|
field: a,
|
|
1215
1204
|
"model-value": n[a.key],
|
|
@@ -1226,12 +1215,12 @@ var Ue = ye({
|
|
|
1226
1215
|
type: "button",
|
|
1227
1216
|
class: y(p(ze)),
|
|
1228
1217
|
onClick: w
|
|
1229
|
-
}, [g(p(
|
|
1218
|
+
}, [g(p(z), {
|
|
1230
1219
|
size: 14,
|
|
1231
1220
|
"stroke-width": 2
|
|
1232
1221
|
}), _(" " + v(p(c).customBlocks.fields.addItem), 1)], 2)) : C("", !0),
|
|
1233
|
-
!d.value && !e.readOnly ? (t(), h("p",
|
|
1234
|
-
!f.value && !e.readOnly ? (t(), h("p",
|
|
1222
|
+
!d.value && !e.readOnly ? (t(), h("p", Wn, v(p(c).customBlocks.fields.maxItemsReached), 1)) : C("", !0),
|
|
1223
|
+
!f.value && !e.readOnly ? (t(), h("p", Gn, v(p(l)(p(c).customBlocks.fields.minItemsRequired, { count: e.field.minItems ?? 0 })), 1)) : C("", !0)
|
|
1235
1224
|
])]),
|
|
1236
1225
|
_: 1
|
|
1237
1226
|
}, 8, [
|
|
@@ -1240,11 +1229,11 @@ var Ue = ye({
|
|
|
1240
1229
|
"read-only"
|
|
1241
1230
|
]));
|
|
1242
1231
|
}
|
|
1243
|
-
}),
|
|
1232
|
+
}), qn = [
|
|
1244
1233
|
"value",
|
|
1245
1234
|
"disabled",
|
|
1246
1235
|
"title"
|
|
1247
|
-
],
|
|
1236
|
+
], Jn = ["value"], Yn = /* @__PURE__ */ w({
|
|
1248
1237
|
__name: "SelectField",
|
|
1249
1238
|
props: {
|
|
1250
1239
|
field: {},
|
|
@@ -1253,7 +1242,7 @@ var Ue = ye({
|
|
|
1253
1242
|
},
|
|
1254
1243
|
emits: ["update:modelValue"],
|
|
1255
1244
|
setup(e, { emit: n }) {
|
|
1256
|
-
let i = n, { t: o } =
|
|
1245
|
+
let i = n, { t: o } = I();
|
|
1257
1246
|
return (n, s) => (t(), b(Q, {
|
|
1258
1247
|
label: e.field.label,
|
|
1259
1248
|
required: e.field.required,
|
|
@@ -1268,7 +1257,7 @@ var Ue = ye({
|
|
|
1268
1257
|
}, [(t(!0), h(x, null, a(e.field.options, (e) => (t(), h("option", {
|
|
1269
1258
|
key: e.value,
|
|
1270
1259
|
value: e.value
|
|
1271
|
-
}, v(e.label), 9,
|
|
1260
|
+
}, v(e.label), 9, Jn))), 128))], 42, qn)]),
|
|
1272
1261
|
_: 1
|
|
1273
1262
|
}, 8, [
|
|
1274
1263
|
"label",
|
|
@@ -1276,11 +1265,11 @@ var Ue = ye({
|
|
|
1276
1265
|
"read-only"
|
|
1277
1266
|
]));
|
|
1278
1267
|
}
|
|
1279
|
-
}),
|
|
1268
|
+
}), Xn = [
|
|
1280
1269
|
"value",
|
|
1281
1270
|
"placeholder",
|
|
1282
1271
|
"title"
|
|
1283
|
-
],
|
|
1272
|
+
], Zn = /* @__PURE__ */ w({
|
|
1284
1273
|
__name: "TextField",
|
|
1285
1274
|
props: {
|
|
1286
1275
|
field: {},
|
|
@@ -1289,7 +1278,7 @@ var Ue = ye({
|
|
|
1289
1278
|
},
|
|
1290
1279
|
emits: ["update:modelValue"],
|
|
1291
1280
|
setup(e, { emit: n }) {
|
|
1292
|
-
let i = n, { t: a } =
|
|
1281
|
+
let i = n, { t: a } = I();
|
|
1293
1282
|
return (n, o) => (t(), b(Q, {
|
|
1294
1283
|
label: e.field.label,
|
|
1295
1284
|
required: e.field.required,
|
|
@@ -1303,7 +1292,7 @@ var Ue = ye({
|
|
|
1303
1292
|
placeholder: e.field.placeholder,
|
|
1304
1293
|
disabled: "",
|
|
1305
1294
|
title: p(a).customBlocks.dataSource.readOnlyTooltip
|
|
1306
|
-
}, null, 10,
|
|
1295
|
+
}, null, 10, Xn)) : (t(), b(J, {
|
|
1307
1296
|
key: 1,
|
|
1308
1297
|
"model-value": e.modelValue,
|
|
1309
1298
|
placeholder: e.field.placeholder,
|
|
@@ -1316,12 +1305,12 @@ var Ue = ye({
|
|
|
1316
1305
|
"read-only"
|
|
1317
1306
|
]));
|
|
1318
1307
|
}
|
|
1319
|
-
}),
|
|
1308
|
+
}), Qn = [
|
|
1320
1309
|
"value",
|
|
1321
1310
|
"placeholder",
|
|
1322
1311
|
"title"
|
|
1323
|
-
],
|
|
1324
|
-
text:
|
|
1312
|
+
], $n = "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", er = {
|
|
1313
|
+
text: Zn,
|
|
1325
1314
|
textarea: /* @__PURE__ */ w({
|
|
1326
1315
|
__name: "TextareaField",
|
|
1327
1316
|
props: {
|
|
@@ -1331,7 +1320,7 @@ var Ue = ye({
|
|
|
1331
1320
|
},
|
|
1332
1321
|
emits: ["update:modelValue"],
|
|
1333
1322
|
setup(e, { emit: n }) {
|
|
1334
|
-
let i = n, { t: a } =
|
|
1323
|
+
let i = n, { t: a } = I();
|
|
1335
1324
|
return (n, o) => (t(), b(Q, {
|
|
1336
1325
|
label: e.field.label,
|
|
1337
1326
|
required: e.field.required,
|
|
@@ -1344,8 +1333,8 @@ var Ue = ye({
|
|
|
1344
1333
|
rows: "3",
|
|
1345
1334
|
disabled: "",
|
|
1346
1335
|
title: p(a).customBlocks.dataSource.readOnlyTooltip,
|
|
1347
|
-
class: y(
|
|
1348
|
-
}, null, 8,
|
|
1336
|
+
class: y($n)
|
|
1337
|
+
}, null, 8, Qn)) : (t(), b(He, {
|
|
1349
1338
|
key: 1,
|
|
1350
1339
|
"model-value": e.modelValue,
|
|
1351
1340
|
placeholder: e.field.placeholder,
|
|
@@ -1359,42 +1348,42 @@ var Ue = ye({
|
|
|
1359
1348
|
]));
|
|
1360
1349
|
}
|
|
1361
1350
|
}),
|
|
1362
|
-
image:
|
|
1363
|
-
color:
|
|
1364
|
-
number:
|
|
1365
|
-
select:
|
|
1366
|
-
boolean:
|
|
1367
|
-
repeatable:
|
|
1351
|
+
image: Ln,
|
|
1352
|
+
color: Nn,
|
|
1353
|
+
number: zn,
|
|
1354
|
+
select: Yn,
|
|
1355
|
+
boolean: Dn,
|
|
1356
|
+
repeatable: Kn
|
|
1368
1357
|
};
|
|
1369
|
-
function
|
|
1370
|
-
return
|
|
1358
|
+
function tr(e) {
|
|
1359
|
+
return er[e] ?? Zn;
|
|
1371
1360
|
}
|
|
1372
1361
|
//#endregion
|
|
1373
1362
|
//#region src/components/toolbar/CustomBlockToolbar.vue?vue&type=script&setup=true&lang.ts
|
|
1374
|
-
var
|
|
1363
|
+
var nr = {
|
|
1375
1364
|
key: 0,
|
|
1376
1365
|
class: "tpl:p-4"
|
|
1377
|
-
},
|
|
1366
|
+
}, rr = { class: "tpl:m-0 tpl:text-center tpl:text-sm tpl:text-[var(--tpl-text-muted)]" }, ir = { key: 1 }, ar = {
|
|
1378
1367
|
key: 0,
|
|
1379
1368
|
class: "tpl:m-0 tpl:mb-3 tpl:text-xs tpl:text-[var(--tpl-text-dim)]"
|
|
1380
|
-
},
|
|
1369
|
+
}, or = {
|
|
1381
1370
|
key: 1,
|
|
1382
1371
|
class: "tpl:mb-4"
|
|
1383
|
-
},
|
|
1372
|
+
}, sr = {
|
|
1384
1373
|
key: 1,
|
|
1385
1374
|
class: "tpl:flex tpl:h-[32px] tpl:items-center"
|
|
1386
|
-
},
|
|
1375
|
+
}, cr = {
|
|
1387
1376
|
key: 0,
|
|
1388
1377
|
class: "tpl:w-full tpl:text-center tpl:text-xs tpl:text-[var(--tpl-text-muted)]"
|
|
1389
|
-
},
|
|
1378
|
+
}, lr = {
|
|
1390
1379
|
key: 2,
|
|
1391
1380
|
class: "tpl:m-0 tpl:mt-2 tpl:flex tpl:items-center tpl:gap-1.5 tpl:text-xs tpl:text-[var(--tpl-danger)]"
|
|
1392
|
-
},
|
|
1381
|
+
}, ur = /* @__PURE__ */ w({
|
|
1393
1382
|
__name: "CustomBlockToolbar",
|
|
1394
1383
|
props: { block: {} },
|
|
1395
1384
|
emits: ["updateFieldValues", "updateDataSourceFetched"],
|
|
1396
1385
|
setup(e, { emit: n }) {
|
|
1397
|
-
let r = e, o = n, { t: s } =
|
|
1386
|
+
let r = e, o = n, { t: s } = I(), l = c(ve, []), u = S(() => l.find((e) => e.type === r.block.customType)), d = S(() => r.block), { isFetching: f, fetchError: y, fetch: w, hasDataSource: T, needsFetch: E } = ce({
|
|
1398
1387
|
definition: u,
|
|
1399
1388
|
block: d,
|
|
1400
1389
|
onUpdate: (e, t) => {
|
|
@@ -1410,23 +1399,23 @@ var er = {
|
|
|
1410
1399
|
[e]: t
|
|
1411
1400
|
});
|
|
1412
1401
|
}
|
|
1413
|
-
return (n, r) => u.value ? (t(), h("div",
|
|
1414
|
-
u.value.description ? (t(), h("p",
|
|
1415
|
-
p(T) ? (t(), h("div",
|
|
1402
|
+
return (n, r) => u.value ? (t(), h("div", ir, [
|
|
1403
|
+
u.value.description ? (t(), h("p", ar, v(u.value.description), 1)) : C("", !0),
|
|
1404
|
+
p(T) ? (t(), h("div", or, [p(E) && !p(f) ? (t(), h("button", {
|
|
1416
1405
|
key: 0,
|
|
1417
1406
|
type: "button",
|
|
1418
1407
|
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)]",
|
|
1419
1408
|
onClick: r[0] ||= (...e) => p(w) && p(w)(...e)
|
|
1420
|
-
}, v(u.value?.dataSource?.label || p(s).customBlocks.dataSource.fetchButton), 1)) : (t(), h("div",
|
|
1409
|
+
}, v(u.value?.dataSource?.label || p(s).customBlocks.dataSource.fetchButton), 1)) : (t(), h("div", sr, [p(f) ? (t(), h("div", cr, v(p(s).customBlocks.dataSource.fetching), 1)) : (t(), h("button", {
|
|
1421
1410
|
key: 1,
|
|
1422
1411
|
type: "button",
|
|
1423
1412
|
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)]",
|
|
1424
1413
|
onClick: r[1] ||= (...e) => p(w) && p(w)(...e)
|
|
1425
|
-
}, [g(p(
|
|
1414
|
+
}, [g(p(je), { size: 12 }), _(" " + v(p(s).customBlocks.dataSource.changeButton), 1)]))])), p(y) ? (t(), h("p", lr, [g(p(Ce), {
|
|
1426
1415
|
size: 14,
|
|
1427
1416
|
class: "tpl:shrink-0"
|
|
1428
1417
|
}), _(" " + v(p(s).customBlocks.dataSource.fetchError), 1)])) : C("", !0)])) : C("", !0),
|
|
1429
|
-
(t(!0), h(x, null, a(u.value.fields, (n) => (t(), b(i(p(
|
|
1418
|
+
(t(!0), h(x, null, a(u.value.fields, (n) => (t(), b(i(p(tr)(n.type)), {
|
|
1430
1419
|
key: n.key,
|
|
1431
1420
|
field: n,
|
|
1432
1421
|
"model-value": e.block.fieldValues[n.key],
|
|
@@ -1438,19 +1427,19 @@ var er = {
|
|
|
1438
1427
|
"read-only",
|
|
1439
1428
|
"onUpdate:modelValue"
|
|
1440
1429
|
]))), 128))
|
|
1441
|
-
])) : (t(), h("div",
|
|
1430
|
+
])) : (t(), h("div", nr, [m("p", rr, v(p(s).customBlocks.toolbar.noDefinition), 1)]));
|
|
1442
1431
|
}
|
|
1443
|
-
}),
|
|
1432
|
+
}), dr = { class: "tpl:mb-3.5" }, fr = { class: "tpl:mb-3.5" }, pr = { class: "tpl:mb-3.5" }, mr = { class: "tpl:flex tpl:items-stretch" }, hr = ["value"], gr = /* @__PURE__ */ w({
|
|
1444
1433
|
__name: "DividerToolbar",
|
|
1445
1434
|
props: { block: {} },
|
|
1446
1435
|
emits: ["update"],
|
|
1447
1436
|
setup(e, { emit: n }) {
|
|
1448
|
-
let r = n, { t: i } =
|
|
1437
|
+
let r = n, { t: i } = I();
|
|
1449
1438
|
function a(e, t) {
|
|
1450
1439
|
r("update", { [e]: t });
|
|
1451
1440
|
}
|
|
1452
1441
|
return (n, r) => (t(), h(x, null, [
|
|
1453
|
-
m("div",
|
|
1442
|
+
m("div", dr, [m("label", { class: y(p(U)) }, v(p(i).divider.style), 3), g(Y, {
|
|
1454
1443
|
options: [
|
|
1455
1444
|
{
|
|
1456
1445
|
value: "solid",
|
|
@@ -1468,27 +1457,27 @@ var er = {
|
|
|
1468
1457
|
"model-value": e.block.lineStyle,
|
|
1469
1458
|
"onUpdate:modelValue": r[0] ||= (e) => a("lineStyle", e)
|
|
1470
1459
|
}, null, 8, ["options", "model-value"])]),
|
|
1471
|
-
m("div",
|
|
1460
|
+
m("div", fr, [m("label", { class: y(p(U)) }, v(p(i).divider.color), 3), g(L, {
|
|
1472
1461
|
"model-value": e.block.color,
|
|
1473
1462
|
"onUpdate:modelValue": r[1] ||= (e) => a("color", e)
|
|
1474
1463
|
}, null, 8, ["model-value"])]),
|
|
1475
|
-
m("div",
|
|
1464
|
+
m("div", pr, [m("label", { class: y(p(U)) }, v(p(i).divider.thickness), 3), m("div", mr, [m("input", {
|
|
1476
1465
|
type: "number",
|
|
1477
1466
|
class: y(p(G)),
|
|
1478
1467
|
value: e.block.thickness,
|
|
1479
1468
|
min: "1",
|
|
1480
1469
|
max: "10",
|
|
1481
1470
|
onInput: r[2] ||= (e) => a("thickness", Number(e.target.value))
|
|
1482
|
-
}, null, 42,
|
|
1471
|
+
}, null, 42, hr), m("span", { class: y(p(W)) }, "px", 2)])])
|
|
1483
1472
|
], 64));
|
|
1484
1473
|
}
|
|
1485
|
-
}),
|
|
1474
|
+
}), _r = { class: "tpl:mb-3.5" }, vr = ["value"], yr = { class: "tpl:mt-1.5 tpl:flex tpl:items-start tpl:gap-1.5 tpl:text-[10px] tpl:text-[var(--tpl-text-dim)]" }, br = /* @__PURE__ */ w({
|
|
1486
1475
|
__name: "HtmlToolbar",
|
|
1487
1476
|
props: { block: {} },
|
|
1488
1477
|
emits: ["update"],
|
|
1489
1478
|
setup(e, { emit: n }) {
|
|
1490
|
-
let r = n, { t: i } =
|
|
1491
|
-
return (n, a) => (t(), h("div",
|
|
1479
|
+
let r = n, { t: i } = I();
|
|
1480
|
+
return (n, a) => (t(), h("div", _r, [
|
|
1492
1481
|
m("label", { class: y(p(U)) }, v(p(i).html.content), 3),
|
|
1493
1482
|
m("textarea", {
|
|
1494
1483
|
value: e.block.content,
|
|
@@ -1496,36 +1485,36 @@ var er = {
|
|
|
1496
1485
|
rows: "10",
|
|
1497
1486
|
class: y(p(Le)),
|
|
1498
1487
|
onInput: a[0] ||= (e) => r("update", { content: e.target.value })
|
|
1499
|
-
}, null, 42,
|
|
1500
|
-
m("p",
|
|
1488
|
+
}, null, 42, vr),
|
|
1489
|
+
m("p", yr, [g(p(Ee), {
|
|
1501
1490
|
size: 12,
|
|
1502
1491
|
class: "tpl:mt-0.5 tpl:shrink-0"
|
|
1503
1492
|
}), _(" " + v(p(i).html.sanitizationHint), 1)])
|
|
1504
1493
|
]));
|
|
1505
1494
|
}
|
|
1506
|
-
}),
|
|
1495
|
+
}), xr = { class: "tpl:mb-3.5" }, Sr = {
|
|
1507
1496
|
key: 0,
|
|
1508
1497
|
class: "tpl:pointer-events-none tpl:absolute tpl:inset-0 tpl:z-10 tpl:flex tpl:flex-col tpl:items-center tpl:justify-center tpl:gap-1.5 tpl:rounded tpl:border-2 tpl:border-dashed tpl:text-xs tpl:font-medium tpl:border-[var(--tpl-primary)] tpl:text-[var(--tpl-primary)]",
|
|
1509
1498
|
style: { "background-color": "color-mix(in srgb, var(--tpl-bg) 90%, transparent)" }
|
|
1510
|
-
},
|
|
1499
|
+
}, Cr = {
|
|
1511
1500
|
key: 0,
|
|
1512
1501
|
class: "tpl:mb-3.5"
|
|
1513
|
-
},
|
|
1502
|
+
}, wr = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, Tr = [
|
|
1514
1503
|
"value",
|
|
1515
1504
|
"placeholder",
|
|
1516
1505
|
"title"
|
|
1517
|
-
],
|
|
1506
|
+
], Er = { class: "tpl:mb-3.5" }, Dr = { class: "tpl:block tpl:text-[var(--tpl-text-dim)]" }, Or = { class: "tpl:mb-3.5" }, kr = ["value"], Ar = { value: "full" }, jr = { value: "custom" }, Mr = {
|
|
1518
1507
|
key: 0,
|
|
1519
1508
|
class: "tpl:mt-2 tpl:flex tpl:items-stretch"
|
|
1520
|
-
},
|
|
1509
|
+
}, Nr = ["value"], Pr = { class: "tpl:mb-3.5" }, Fr = ["value"], Ir = { value: "auto" }, Lr = { value: "custom" }, Rr = {
|
|
1521
1510
|
key: 0,
|
|
1522
1511
|
class: "tpl:mt-2 tpl:flex tpl:items-stretch"
|
|
1523
|
-
},
|
|
1512
|
+
}, zr = ["value"], Br = { class: "tpl:mb-3.5" }, Vr = { class: "tpl:mb-3.5" }, Hr = 350, Ur = 200, Wr = /* @__PURE__ */ w({
|
|
1524
1513
|
__name: "ImageToolbar",
|
|
1525
1514
|
props: { block: {} },
|
|
1526
1515
|
emits: ["update"],
|
|
1527
1516
|
setup(e, { emit: n }) {
|
|
1528
|
-
let i = e, a = n, { t: o } =
|
|
1517
|
+
let i = e, a = n, { t: o } = I(), s = c(fe, null), l = c(me, null), u = c(pe, ee.liquid), f = Ie(), w = S(() => !!s), T = d(!1), E = d(!1), { start: D } = le(() => {
|
|
1529
1518
|
T.value = !1;
|
|
1530
1519
|
}, 1e3, { immediate: !1 }), O = [
|
|
1531
1520
|
300,
|
|
@@ -1535,63 +1524,61 @@ var er = {
|
|
|
1535
1524
|
let e = i.block.width;
|
|
1536
1525
|
return e === "full" ? "full" : O.includes(e) ? String(e) : "custom";
|
|
1537
1526
|
}), A = S(() => typeof i.block.height == "number" ? "custom" : "auto");
|
|
1538
|
-
function
|
|
1527
|
+
function M(e, t) {
|
|
1539
1528
|
a("update", { [e]: t });
|
|
1540
1529
|
}
|
|
1541
|
-
function
|
|
1530
|
+
function te(e) {
|
|
1542
1531
|
if (e === "custom") {
|
|
1543
1532
|
let e = i.block.width;
|
|
1544
|
-
(typeof e != "number" || O.includes(e)) &&
|
|
1545
|
-
|
|
1546
|
-
}
|
|
1547
|
-
N("width", e === "full" ? "full" : Number(e));
|
|
1533
|
+
(typeof e != "number" || O.includes(e)) && M("width", Hr);
|
|
1534
|
+
} else M("width", e === "full" ? "full" : Number(e));
|
|
1548
1535
|
}
|
|
1549
|
-
function
|
|
1550
|
-
|
|
1536
|
+
function N(e) {
|
|
1537
|
+
M("height", e === "custom" ? Ur : void 0);
|
|
1551
1538
|
}
|
|
1552
|
-
function
|
|
1539
|
+
function ie(e) {
|
|
1553
1540
|
let t = Number(e);
|
|
1554
|
-
!Number.isFinite(t) || t <= 0 ||
|
|
1541
|
+
!Number.isFinite(t) || t <= 0 || M("height", t);
|
|
1555
1542
|
}
|
|
1556
|
-
function
|
|
1557
|
-
|
|
1543
|
+
function P(e) {
|
|
1544
|
+
M("borderRadius", ne(e) === null ? void 0 : e);
|
|
1558
1545
|
}
|
|
1559
|
-
function
|
|
1546
|
+
function oe(e) {
|
|
1560
1547
|
let t = Number(e);
|
|
1561
|
-
!Number.isFinite(t) || t <= 0 ||
|
|
1548
|
+
!Number.isFinite(t) || t <= 0 || M("width", t);
|
|
1562
1549
|
}
|
|
1563
|
-
async function
|
|
1550
|
+
async function se() {
|
|
1564
1551
|
let e = await s?.({ accept: ["images"] });
|
|
1565
|
-
f.alive && e && (
|
|
1552
|
+
f.alive && e && (M("src", e.url), e.alt && (M("alt", e.alt), E.value = !0), T.value = !0, D());
|
|
1566
1553
|
}
|
|
1567
|
-
let
|
|
1568
|
-
async function
|
|
1554
|
+
let ce = d(), F = d(!1), ue = S(() => j(i.block.src, u)), de = S(() => (l?.value ?? !!s) && !F.value && !ue.value);
|
|
1555
|
+
async function he(e) {
|
|
1569
1556
|
if (s) {
|
|
1570
|
-
|
|
1557
|
+
F.value = !0;
|
|
1571
1558
|
try {
|
|
1572
1559
|
let t = await s({
|
|
1573
1560
|
accept: ["images"],
|
|
1574
1561
|
files: e
|
|
1575
1562
|
});
|
|
1576
1563
|
if (!f.alive) return;
|
|
1577
|
-
t && (
|
|
1564
|
+
t && (M("src", t.url), t.alt && (M("alt", t.alt), E.value = !0), T.value = !0, D());
|
|
1578
1565
|
} finally {
|
|
1579
|
-
f.alive && (
|
|
1566
|
+
f.alive && (F.value = !1);
|
|
1580
1567
|
}
|
|
1581
1568
|
}
|
|
1582
1569
|
}
|
|
1583
|
-
let { isOver:
|
|
1584
|
-
target:
|
|
1585
|
-
enabled:
|
|
1586
|
-
onFiles:
|
|
1570
|
+
let { isOver: ge } = ae({
|
|
1571
|
+
target: ce,
|
|
1572
|
+
enabled: de,
|
|
1573
|
+
onFiles: he
|
|
1587
1574
|
});
|
|
1588
1575
|
return (n, i) => (t(), h(x, null, [
|
|
1589
|
-
m("div",
|
|
1576
|
+
m("div", xr, [m("label", { class: y(p(U)) }, v(p(o).image.imageUrl), 3), m("div", {
|
|
1590
1577
|
ref_key: "dropZoneRef",
|
|
1591
|
-
ref:
|
|
1578
|
+
ref: ce,
|
|
1592
1579
|
class: "tpl:relative"
|
|
1593
1580
|
}, [
|
|
1594
|
-
|
|
1581
|
+
de.value && (p(ge) || F.value) ? (t(), h("div", Sr, [F.value ? (t(), h(x, { key: 0 }, [g(p(Oe), {
|
|
1595
1582
|
class: "tpl-spinner",
|
|
1596
1583
|
size: 18,
|
|
1597
1584
|
"stroke-width": 2
|
|
@@ -1604,7 +1591,7 @@ var er = {
|
|
|
1604
1591
|
type: "url",
|
|
1605
1592
|
placeholder: p(o).image.imageUrlPlaceholder,
|
|
1606
1593
|
pulse: T.value,
|
|
1607
|
-
"onUpdate:modelValue": i[0] ||= (e) =>
|
|
1594
|
+
"onUpdate:modelValue": i[0] ||= (e) => M("src", e)
|
|
1608
1595
|
}, null, 8, [
|
|
1609
1596
|
"model-value",
|
|
1610
1597
|
"placeholder",
|
|
@@ -1618,21 +1605,21 @@ var er = {
|
|
|
1618
1605
|
color: "var(--tpl-primary)",
|
|
1619
1606
|
"background-color": "var(--tpl-bg)"
|
|
1620
1607
|
},
|
|
1621
|
-
onClick:
|
|
1622
|
-
}, [g(p(
|
|
1608
|
+
onClick: se
|
|
1609
|
+
}, [g(p(re), {
|
|
1623
1610
|
size: 14,
|
|
1624
1611
|
"stroke-width": 1.5
|
|
1625
1612
|
}), _(" " + v(p(o).image.browseMedia), 1)])) : C("", !0)
|
|
1626
1613
|
], 512)]),
|
|
1627
|
-
p(
|
|
1614
|
+
p(j)(e.block.src, p(u)) ? (t(), h("div", Cr, [m("label", { class: y(p(U)) }, [_(v(p(o).image.placeholderUrl) + " ", 1), m("span", wr, v(p(o).image.optional), 1)], 2), m("input", {
|
|
1628
1615
|
type: "url",
|
|
1629
1616
|
class: y(p(K)),
|
|
1630
1617
|
value: e.block.placeholderUrl || "",
|
|
1631
1618
|
placeholder: p(o).image.placeholderUrlPlaceholder,
|
|
1632
1619
|
title: p(o).image.placeholderUrlTooltip,
|
|
1633
|
-
onInput: i[1] ||= (e) =>
|
|
1634
|
-
}, null, 42,
|
|
1635
|
-
m("div",
|
|
1620
|
+
onInput: i[1] ||= (e) => M("placeholderUrl", e.target.value)
|
|
1621
|
+
}, null, 42, Tr)])) : C("", !0),
|
|
1622
|
+
m("div", Er, [
|
|
1636
1623
|
m("label", { class: y(p(U)) }, v(p(o).image.altText), 3),
|
|
1637
1624
|
g(J, {
|
|
1638
1625
|
"model-value": e.block.alt,
|
|
@@ -1640,7 +1627,7 @@ var er = {
|
|
|
1640
1627
|
placeholder: p(o).image.altTextPlaceholder,
|
|
1641
1628
|
pulse: E.value,
|
|
1642
1629
|
disabled: e.block.decorative === !0,
|
|
1643
|
-
"onUpdate:modelValue": i[2] ||= (e) =>
|
|
1630
|
+
"onUpdate:modelValue": i[2] ||= (e) => M("alt", e)
|
|
1644
1631
|
}, null, 8, [
|
|
1645
1632
|
"model-value",
|
|
1646
1633
|
"placeholder",
|
|
@@ -1651,62 +1638,62 @@ var er = {
|
|
|
1651
1638
|
class: "tpl:mt-2 tpl:text-[12px] tpl:text-[var(--tpl-text-muted)]",
|
|
1652
1639
|
"model-value": e.block.decorative === !0,
|
|
1653
1640
|
label: p(o).image.decorative,
|
|
1654
|
-
"onUpdate:modelValue": i[3] ||= (e) =>
|
|
1641
|
+
"onUpdate:modelValue": i[3] ||= (e) => M("decorative", e)
|
|
1655
1642
|
}, {
|
|
1656
|
-
default: r(() => [m("span", null, [_(v(p(o).image.decorative) + " ", 1), m("span",
|
|
1643
|
+
default: r(() => [m("span", null, [_(v(p(o).image.decorative) + " ", 1), m("span", Dr, v(p(o).image.decorativeHint), 1)])]),
|
|
1657
1644
|
_: 1
|
|
1658
1645
|
}, 8, ["model-value", "label"])
|
|
1659
1646
|
]),
|
|
1660
|
-
m("div",
|
|
1647
|
+
m("div", Or, [
|
|
1661
1648
|
m("label", { class: y(p(U)) }, v(p(o).image.width), 3),
|
|
1662
1649
|
m("select", {
|
|
1663
1650
|
class: y(p(K)),
|
|
1664
1651
|
value: k.value,
|
|
1665
|
-
onChange: i[4] ||= (e) =>
|
|
1652
|
+
onChange: i[4] ||= (e) => te(e.target.value)
|
|
1666
1653
|
}, [
|
|
1667
|
-
m("option",
|
|
1654
|
+
m("option", Ar, v(p(o).image.fullWidth), 1),
|
|
1668
1655
|
i[12] ||= m("option", { value: "300" }, "300px", -1),
|
|
1669
1656
|
i[13] ||= m("option", { value: "400" }, "400px", -1),
|
|
1670
1657
|
i[14] ||= m("option", { value: "500" }, "500px", -1),
|
|
1671
|
-
m("option",
|
|
1672
|
-
], 42,
|
|
1673
|
-
k.value === "custom" ? (t(), h("div",
|
|
1658
|
+
m("option", jr, v(p(o).image.widthCustom), 1)
|
|
1659
|
+
], 42, kr),
|
|
1660
|
+
k.value === "custom" ? (t(), h("div", Mr, [m("input", {
|
|
1674
1661
|
type: "number",
|
|
1675
1662
|
class: y(p(G)),
|
|
1676
|
-
value: typeof e.block.width == "number" ? e.block.width :
|
|
1663
|
+
value: typeof e.block.width == "number" ? e.block.width : Hr,
|
|
1677
1664
|
min: "20",
|
|
1678
|
-
onInput: i[5] ||= (e) =>
|
|
1679
|
-
}, null, 42,
|
|
1665
|
+
onInput: i[5] ||= (e) => oe(e.target.value)
|
|
1666
|
+
}, null, 42, Nr), m("span", { class: y(p(W)) }, "px", 2)])) : C("", !0)
|
|
1680
1667
|
]),
|
|
1681
|
-
m("div",
|
|
1668
|
+
m("div", Pr, [
|
|
1682
1669
|
m("label", { class: y(p(U)) }, v(p(o).image.height), 3),
|
|
1683
1670
|
m("select", {
|
|
1684
1671
|
class: y(p(K)),
|
|
1685
1672
|
"data-testid": "image-height-mode",
|
|
1686
1673
|
value: A.value,
|
|
1687
|
-
onChange: i[6] ||= (e) =>
|
|
1688
|
-
}, [m("option",
|
|
1689
|
-
A.value === "custom" ? (t(), h("div",
|
|
1674
|
+
onChange: i[6] ||= (e) => N(e.target.value)
|
|
1675
|
+
}, [m("option", Ir, v(p(o).image.heightAuto), 1), m("option", Lr, v(p(o).image.heightCustom), 1)], 42, Fr),
|
|
1676
|
+
A.value === "custom" ? (t(), h("div", Rr, [m("input", {
|
|
1690
1677
|
type: "number",
|
|
1691
1678
|
"data-testid": "image-height-input",
|
|
1692
1679
|
class: y(p(G)),
|
|
1693
1680
|
value: e.block.height,
|
|
1694
1681
|
min: "20",
|
|
1695
|
-
onInput: i[7] ||= (e) =>
|
|
1696
|
-
}, null, 42,
|
|
1682
|
+
onInput: i[7] ||= (e) => ie(e.target.value)
|
|
1683
|
+
}, null, 42, zr), m("span", { class: y(p(W)) }, "px", 2)])) : C("", !0)
|
|
1697
1684
|
]),
|
|
1698
|
-
g(
|
|
1685
|
+
g(ft, {
|
|
1699
1686
|
"model-value": e.block.borderRadius,
|
|
1700
1687
|
label: p(o).image.borderRadius,
|
|
1701
1688
|
"testid-prefix": "image",
|
|
1702
|
-
"onUpdate:modelValue":
|
|
1689
|
+
"onUpdate:modelValue": P
|
|
1703
1690
|
}, null, 8, ["model-value", "label"]),
|
|
1704
|
-
g(
|
|
1691
|
+
g(ot, {
|
|
1705
1692
|
"model-value": e.block.border,
|
|
1706
1693
|
"testid-prefix": "image",
|
|
1707
|
-
"onUpdate:modelValue": i[8] ||= (e) =>
|
|
1694
|
+
"onUpdate:modelValue": i[8] ||= (e) => M("border", e)
|
|
1708
1695
|
}, null, 8, ["model-value"]),
|
|
1709
|
-
m("div",
|
|
1696
|
+
m("div", Br, [m("label", { class: y(p(U)) }, v(p(o).title.align), 3), g(Y, {
|
|
1710
1697
|
options: [
|
|
1711
1698
|
{
|
|
1712
1699
|
value: "left",
|
|
@@ -1722,40 +1709,40 @@ var er = {
|
|
|
1722
1709
|
}
|
|
1723
1710
|
],
|
|
1724
1711
|
"model-value": e.block.align,
|
|
1725
|
-
"onUpdate:modelValue": i[9] ||= (e) =>
|
|
1712
|
+
"onUpdate:modelValue": i[9] ||= (e) => M("align", e)
|
|
1726
1713
|
}, null, 8, ["options", "model-value"])]),
|
|
1727
|
-
m("div",
|
|
1714
|
+
m("div", Vr, [
|
|
1728
1715
|
m("label", { class: y(p(U)) }, v(p(o).image.linkUrl), 3),
|
|
1729
1716
|
g(J, {
|
|
1730
1717
|
"model-value": e.block.linkUrl || "",
|
|
1731
1718
|
type: "url",
|
|
1732
1719
|
placeholder: p(o).image.imageUrlPlaceholder,
|
|
1733
|
-
"onUpdate:modelValue": i[10] ||= (e) =>
|
|
1720
|
+
"onUpdate:modelValue": i[10] ||= (e) => M("linkUrl", e)
|
|
1734
1721
|
}, null, 8, ["model-value", "placeholder"]),
|
|
1735
1722
|
e.block.linkUrl ? (t(), b(q, {
|
|
1736
1723
|
key: 0,
|
|
1737
1724
|
class: "tpl:mt-2 tpl:text-[12px] tpl:text-[var(--tpl-text-muted)]",
|
|
1738
1725
|
"model-value": e.block.linkOpenInNewTab ?? !1,
|
|
1739
1726
|
label: p(o).image.openInNewTab,
|
|
1740
|
-
"onUpdate:modelValue": i[11] ||= (e) =>
|
|
1727
|
+
"onUpdate:modelValue": i[11] ||= (e) => M("linkOpenInNewTab", e)
|
|
1741
1728
|
}, null, 8, ["model-value", "label"])) : C("", !0)
|
|
1742
1729
|
])
|
|
1743
1730
|
], 64));
|
|
1744
1731
|
}
|
|
1745
|
-
}),
|
|
1732
|
+
}), Gr = { class: "tpl:mb-3.5" }, $ = /* @__PURE__ */ w({
|
|
1746
1733
|
__name: "FieldRow",
|
|
1747
1734
|
props: { label: {} },
|
|
1748
1735
|
setup(e) {
|
|
1749
|
-
return (n, r) => (t(), h("div",
|
|
1736
|
+
return (n, r) => (t(), h("div", Gr, [e.label ? (t(), h("label", {
|
|
1750
1737
|
key: 0,
|
|
1751
1738
|
class: y(p(U))
|
|
1752
1739
|
}, v(e.label), 3)) : C("", !0), o(n.$slots, "default")]));
|
|
1753
1740
|
}
|
|
1754
|
-
}),
|
|
1741
|
+
}), Kr = { class: "tpl:flex tpl:flex-col tpl:gap-2" }, qr = { class: "tpl:flex tpl:items-center tpl:gap-2" }, Jr = [
|
|
1755
1742
|
"value",
|
|
1756
1743
|
"placeholder",
|
|
1757
1744
|
"onInput"
|
|
1758
|
-
],
|
|
1745
|
+
], Yr = ["title", "onClick"], Xr = { 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)]" }, Zr = { class: "tpl:flex tpl:items-center tpl:gap-2" }, Qr = ["value"], $r = { value: "" }, ei = ["value"], ti = ["value"], ni = /* @__PURE__ */ w({
|
|
1759
1746
|
__name: "MenuToolbar",
|
|
1760
1747
|
props: {
|
|
1761
1748
|
block: {},
|
|
@@ -1763,7 +1750,7 @@ var er = {
|
|
|
1763
1750
|
},
|
|
1764
1751
|
emits: ["update"],
|
|
1765
1752
|
setup(e, { emit: n }) {
|
|
1766
|
-
let i = e, o = n, { t: s } =
|
|
1753
|
+
let i = e, o = n, { t: s } = I(), c = S(() => [
|
|
1767
1754
|
{
|
|
1768
1755
|
key: "openInNewTab",
|
|
1769
1756
|
label: s.menu.openInNewTab
|
|
@@ -1780,17 +1767,17 @@ var er = {
|
|
|
1780
1767
|
{
|
|
1781
1768
|
value: "left",
|
|
1782
1769
|
label: s.title.alignLeft,
|
|
1783
|
-
icon:
|
|
1770
|
+
icon: H
|
|
1784
1771
|
},
|
|
1785
1772
|
{
|
|
1786
1773
|
value: "center",
|
|
1787
1774
|
label: s.title.alignCenter,
|
|
1788
|
-
icon:
|
|
1775
|
+
icon: V
|
|
1789
1776
|
},
|
|
1790
1777
|
{
|
|
1791
1778
|
value: "right",
|
|
1792
1779
|
label: s.title.alignRight,
|
|
1793
|
-
icon:
|
|
1780
|
+
icon: B
|
|
1794
1781
|
}
|
|
1795
1782
|
]);
|
|
1796
1783
|
function u(e, t) {
|
|
@@ -1798,7 +1785,7 @@ var er = {
|
|
|
1798
1785
|
}
|
|
1799
1786
|
function d() {
|
|
1800
1787
|
let e = {
|
|
1801
|
-
id:
|
|
1788
|
+
id: D(),
|
|
1802
1789
|
text: "",
|
|
1803
1790
|
url: "",
|
|
1804
1791
|
openInNewTab: !1,
|
|
@@ -1819,24 +1806,24 @@ var er = {
|
|
|
1819
1806
|
}
|
|
1820
1807
|
return (n, i) => (t(), h(x, null, [
|
|
1821
1808
|
g($, { label: p(s).menu.items }, {
|
|
1822
|
-
default: r(() => [m("div",
|
|
1809
|
+
default: r(() => [m("div", Kr, [(t(!0), h(x, null, a(e.block.items, (n) => (t(), h("div", {
|
|
1823
1810
|
key: n.id,
|
|
1824
1811
|
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"
|
|
1825
1812
|
}, [
|
|
1826
|
-
m("div",
|
|
1813
|
+
m("div", qr, [m("input", {
|
|
1827
1814
|
type: "text",
|
|
1828
1815
|
class: y([p(K), "tpl:flex-1"]),
|
|
1829
1816
|
value: n.text,
|
|
1830
1817
|
placeholder: p(s).menu.text,
|
|
1831
1818
|
onInput: (e) => f(n.id, "text", e.target.value)
|
|
1832
|
-
}, null, 42,
|
|
1819
|
+
}, null, 42, Jr), m("button", {
|
|
1833
1820
|
class: y(p(Re)),
|
|
1834
1821
|
title: p(s).menu.removeItem,
|
|
1835
1822
|
onClick: (e) => C(n.id)
|
|
1836
1823
|
}, [g(p(Pe), {
|
|
1837
1824
|
size: 14,
|
|
1838
1825
|
"stroke-width": 2
|
|
1839
|
-
})], 10,
|
|
1826
|
+
})], 10, Yr)]),
|
|
1840
1827
|
g(J, {
|
|
1841
1828
|
"model-value": n.url,
|
|
1842
1829
|
type: "url",
|
|
@@ -1847,7 +1834,7 @@ var er = {
|
|
|
1847
1834
|
"placeholder",
|
|
1848
1835
|
"onUpdate:modelValue"
|
|
1849
1836
|
]),
|
|
1850
|
-
m("div",
|
|
1837
|
+
m("div", Xr, [(t(!0), h(x, null, a(c.value, (e) => (t(), b(q, {
|
|
1851
1838
|
key: e.key,
|
|
1852
1839
|
"model-value": n[e.key],
|
|
1853
1840
|
label: e.label,
|
|
@@ -1857,7 +1844,7 @@ var er = {
|
|
|
1857
1844
|
"label",
|
|
1858
1845
|
"onUpdate:modelValue"
|
|
1859
1846
|
]))), 128))]),
|
|
1860
|
-
m("div",
|
|
1847
|
+
m("div", Zr, [m("label", { class: y([p(U), "tpl:!mb-0"]) }, v(p(s).menu.color), 3), g(L, {
|
|
1861
1848
|
"swatch-only": "",
|
|
1862
1849
|
"model-value": n.color || e.block.linkColor || e.block.color || "",
|
|
1863
1850
|
"onUpdate:modelValue": (e) => f(n.id, "color", e)
|
|
@@ -1865,7 +1852,7 @@ var er = {
|
|
|
1865
1852
|
]))), 128)), m("button", {
|
|
1866
1853
|
class: y(p(ze)),
|
|
1867
1854
|
onClick: d
|
|
1868
|
-
}, [g(p(
|
|
1855
|
+
}, [g(p(z), {
|
|
1869
1856
|
size: 14,
|
|
1870
1857
|
"stroke-width": 2
|
|
1871
1858
|
}), _(" " + v(p(s).menu.addItem), 1)], 2)])]),
|
|
@@ -1874,12 +1861,12 @@ var er = {
|
|
|
1874
1861
|
g($, { label: p(s).menu.fontFamily }, {
|
|
1875
1862
|
default: r(() => [m("select", {
|
|
1876
1863
|
class: y(p(K)),
|
|
1877
|
-
value: e.block.fontFamily
|
|
1864
|
+
value: p(We)(e.block.fontFamily),
|
|
1878
1865
|
onChange: i[0] ||= (e) => u("fontFamily", e.target.value || void 0)
|
|
1879
|
-
}, [m("option",
|
|
1866
|
+
}, [m("option", $r, v(p(s).title.inheritFont), 1), (t(!0), h(x, null, a(e.fontFamilies, (e) => (t(), h("option", {
|
|
1880
1867
|
key: e.value,
|
|
1881
1868
|
value: e.value
|
|
1882
|
-
}, v(e.label), 9,
|
|
1869
|
+
}, v(e.label), 9, ei))), 128))], 42, Qr)]),
|
|
1883
1870
|
_: 1
|
|
1884
1871
|
}, 8, ["label"]),
|
|
1885
1872
|
g($, { label: p(s).menu.fontSize }, {
|
|
@@ -1893,14 +1880,14 @@ var er = {
|
|
|
1893
1880
|
_: 1
|
|
1894
1881
|
}, 8, ["label"]),
|
|
1895
1882
|
g($, { label: p(s).menu.color }, {
|
|
1896
|
-
default: r(() => [g(
|
|
1883
|
+
default: r(() => [g(L, {
|
|
1897
1884
|
"model-value": e.block.color ?? "",
|
|
1898
1885
|
"onUpdate:modelValue": i[2] ||= (e) => u("color", e || void 0)
|
|
1899
1886
|
}, null, 8, ["model-value"])]),
|
|
1900
1887
|
_: 1
|
|
1901
1888
|
}, 8, ["label"]),
|
|
1902
1889
|
g($, { label: p(s).menu.linkColor }, {
|
|
1903
|
-
default: r(() => [g(
|
|
1890
|
+
default: r(() => [g(L, {
|
|
1904
1891
|
"model-value": e.block.linkColor || e.block.color || "",
|
|
1905
1892
|
"onUpdate:modelValue": i[3] ||= (e) => u("linkColor", e || void 0)
|
|
1906
1893
|
}, null, 8, ["model-value"])]),
|
|
@@ -1920,11 +1907,11 @@ var er = {
|
|
|
1920
1907
|
class: y(p(K)),
|
|
1921
1908
|
value: e.block.separator,
|
|
1922
1909
|
onInput: i[5] ||= (e) => u("separator", e.target.value)
|
|
1923
|
-
}, null, 42,
|
|
1910
|
+
}, null, 42, ti)]),
|
|
1924
1911
|
_: 1
|
|
1925
1912
|
}, 8, ["label"]),
|
|
1926
1913
|
g($, { label: p(s).menu.separatorColor }, {
|
|
1927
|
-
default: r(() => [g(
|
|
1914
|
+
default: r(() => [g(L, {
|
|
1928
1915
|
"model-value": e.block.separatorColor,
|
|
1929
1916
|
"onUpdate:modelValue": i[6] ||= (e) => u("separatorColor", e)
|
|
1930
1917
|
}, null, 8, ["model-value"])]),
|
|
@@ -1942,32 +1929,32 @@ var er = {
|
|
|
1942
1929
|
}, 8, ["label"])
|
|
1943
1930
|
], 64));
|
|
1944
1931
|
}
|
|
1945
|
-
}),
|
|
1932
|
+
}), ri = {
|
|
1946
1933
|
class: "tpl:mb-3.5",
|
|
1947
1934
|
"data-testid": "paragraph-spacing"
|
|
1948
|
-
},
|
|
1935
|
+
}, ii = { class: "tpl:flex tpl:items-stretch" }, ai = ["value"], oi = /* @__PURE__ */ w({
|
|
1949
1936
|
__name: "ParagraphToolbar",
|
|
1950
1937
|
props: { block: {} },
|
|
1951
1938
|
emits: ["update"],
|
|
1952
1939
|
setup(e, { emit: n }) {
|
|
1953
|
-
let r = n, { t: i } =
|
|
1954
|
-
return (n, a) => (t(), h("div",
|
|
1940
|
+
let r = n, { t: i } = I();
|
|
1941
|
+
return (n, a) => (t(), h("div", ri, [m("label", { class: y(p(U)) }, v(p(i).paragraph.paragraphSpacing), 3), m("div", ii, [m("input", {
|
|
1955
1942
|
type: "number",
|
|
1956
1943
|
class: y(p(G)),
|
|
1957
|
-
value: e.block.paragraphSpacing ?? p(
|
|
1944
|
+
value: e.block.paragraphSpacing ?? p(te).paragraphGap,
|
|
1958
1945
|
min: "0",
|
|
1959
1946
|
max: "64",
|
|
1960
1947
|
onInput: a[0] ||= (e) => r("update", { paragraphSpacing: Number(e.target.value) })
|
|
1961
|
-
}, null, 42,
|
|
1948
|
+
}, null, 42, ai), m("span", { class: y(p(W)) }, "px", 2)])]));
|
|
1962
1949
|
}
|
|
1963
1950
|
});
|
|
1964
1951
|
//#endregion
|
|
1965
1952
|
//#region src/utils/rebalanceColumnChildren.ts
|
|
1966
|
-
function
|
|
1953
|
+
function si(e) {
|
|
1967
1954
|
return e === "1" ? 1 : e === "3" ? 3 : 2;
|
|
1968
1955
|
}
|
|
1969
|
-
function
|
|
1970
|
-
let n =
|
|
1956
|
+
function ci(e, t) {
|
|
1957
|
+
let n = si(t);
|
|
1971
1958
|
if (e.length === n) return e;
|
|
1972
1959
|
if (e.length < n) {
|
|
1973
1960
|
let t = Array.from({ length: n - e.length }, () => []);
|
|
@@ -1978,24 +1965,24 @@ function oi(e, t) {
|
|
|
1978
1965
|
}
|
|
1979
1966
|
//#endregion
|
|
1980
1967
|
//#region src/components/toolbar/SectionToolbar.vue?vue&type=script&setup=true&lang.ts
|
|
1981
|
-
var
|
|
1968
|
+
var li = { class: "tpl:mb-3.5" }, ui = ["value"], di = ["value"], fi = {
|
|
1982
1969
|
key: 0,
|
|
1983
1970
|
class: "tpl:mb-3.5"
|
|
1984
|
-
},
|
|
1971
|
+
}, pi = {
|
|
1985
1972
|
key: 1,
|
|
1986
1973
|
class: "tpl:mb-3.5"
|
|
1987
|
-
},
|
|
1974
|
+
}, mi = {
|
|
1988
1975
|
key: 0,
|
|
1989
1976
|
class: "tpl:mt-1.5 tpl:text-xs tpl:text-[var(--tpl-text-muted)]"
|
|
1990
|
-
},
|
|
1977
|
+
}, hi = {
|
|
1991
1978
|
key: 1,
|
|
1992
1979
|
class: "tpl:mt-3 tpl:ml-0.5 tpl:space-y-3 tpl:border-l tpl:border-[var(--tpl-border)] tpl:pl-3"
|
|
1993
|
-
},
|
|
1980
|
+
}, gi = /* @__PURE__ */ w({
|
|
1994
1981
|
__name: "SectionToolbar",
|
|
1995
1982
|
props: { block: {} },
|
|
1996
1983
|
emits: ["update"],
|
|
1997
1984
|
setup(e, { emit: n }) {
|
|
1998
|
-
let r = e, i = n, { t: o } =
|
|
1985
|
+
let r = e, i = n, { t: o } = I(), s = c(ue, void 0), l = c(de, void 0), u = s !== void 0 && k(s), d = S(() => l !== !1 || !!r.block.wrapper), f = S(() => u && !r.block.wrapper), _ = S(() => u && d.value), b = S(() => [
|
|
1999
1986
|
{
|
|
2000
1987
|
value: "1",
|
|
2001
1988
|
label: o.section.column1
|
|
@@ -2018,7 +2005,7 @@ var si = { class: "tpl:mb-3.5" }, ci = ["value"], li = ["value"], ui = {
|
|
|
2018
2005
|
}
|
|
2019
2006
|
]);
|
|
2020
2007
|
function w(e) {
|
|
2021
|
-
let t = e.target.value, n =
|
|
2008
|
+
let t = e.target.value, n = ci(r.block.children, t);
|
|
2022
2009
|
i("update", {
|
|
2023
2010
|
columns: t,
|
|
2024
2011
|
children: n
|
|
@@ -2030,7 +2017,7 @@ var si = { class: "tpl:mb-3.5" }, ci = ["value"], li = ["value"], ui = {
|
|
|
2030
2017
|
function E(e) {
|
|
2031
2018
|
i("update", { borderRadius: e });
|
|
2032
2019
|
}
|
|
2033
|
-
function
|
|
2020
|
+
function D(e) {
|
|
2034
2021
|
i("update", { wrapper: e ? { padding: {
|
|
2035
2022
|
top: 20,
|
|
2036
2023
|
right: 20,
|
|
@@ -2038,65 +2025,65 @@ var si = { class: "tpl:mb-3.5" }, ci = ["value"], li = ["value"], ui = {
|
|
|
2038
2025
|
left: 20
|
|
2039
2026
|
} } : void 0 });
|
|
2040
2027
|
}
|
|
2041
|
-
function
|
|
2028
|
+
function O(e) {
|
|
2042
2029
|
i("update", { wrapper: {
|
|
2043
2030
|
...r.block.wrapper,
|
|
2044
2031
|
...e
|
|
2045
2032
|
} });
|
|
2046
2033
|
}
|
|
2047
2034
|
function A(e) {
|
|
2048
|
-
|
|
2035
|
+
O({ padding: e });
|
|
2049
2036
|
}
|
|
2050
2037
|
function j(e) {
|
|
2051
|
-
|
|
2038
|
+
O({ borderRadius: e });
|
|
2052
2039
|
}
|
|
2053
2040
|
return (n, r) => (t(), h(x, null, [
|
|
2054
|
-
m("div",
|
|
2041
|
+
m("div", li, [m("label", { class: y(p(U)) }, v(p(o).section.columns), 3), m("select", {
|
|
2055
2042
|
class: y(p(K)),
|
|
2056
2043
|
value: e.block.columns,
|
|
2057
2044
|
onChange: w
|
|
2058
2045
|
}, [(t(!0), h(x, null, a(b.value, (e) => (t(), h("option", {
|
|
2059
2046
|
key: e.value,
|
|
2060
2047
|
value: e.value
|
|
2061
|
-
}, v(e.label), 9,
|
|
2062
|
-
e.block.columns === "1" ? C("", !0) : (t(), h("div",
|
|
2048
|
+
}, v(e.label), 9, di))), 128))], 42, ui)]),
|
|
2049
|
+
e.block.columns === "1" ? C("", !0) : (t(), h("div", fi, [g(q, {
|
|
2063
2050
|
class: "tpl:text-xs tpl:text-[var(--tpl-text)]",
|
|
2064
2051
|
"model-value": e.block.stackOnMobile !== !1,
|
|
2065
2052
|
label: p(o).section.stackOnMobile,
|
|
2066
2053
|
"onUpdate:modelValue": r[0] ||= (e) => T(e)
|
|
2067
2054
|
}, null, 8, ["model-value", "label"])])),
|
|
2068
|
-
g(
|
|
2055
|
+
g(ft, {
|
|
2069
2056
|
"model-value": e.block.borderRadius,
|
|
2070
2057
|
label: p(o).section.borderRadius,
|
|
2071
2058
|
max: 50,
|
|
2072
2059
|
"testid-prefix": "section",
|
|
2073
2060
|
"onUpdate:modelValue": E
|
|
2074
2061
|
}, null, 8, ["model-value", "label"]),
|
|
2075
|
-
g(
|
|
2062
|
+
g(ot, {
|
|
2076
2063
|
"model-value": e.block.border,
|
|
2077
2064
|
"testid-prefix": "section",
|
|
2078
2065
|
"onUpdate:modelValue": r[1] ||= (e) => i("update", { border: e })
|
|
2079
2066
|
}, null, 8, ["model-value"]),
|
|
2080
|
-
d.value ? (t(), h("div",
|
|
2067
|
+
d.value ? (t(), h("div", pi, [
|
|
2081
2068
|
g(q, {
|
|
2082
2069
|
class: "tpl:text-xs tpl:text-[var(--tpl-text)]",
|
|
2083
2070
|
"model-value": !!e.block.wrapper,
|
|
2084
2071
|
label: p(o).section.wrapperEnable,
|
|
2085
2072
|
disabled: f.value,
|
|
2086
|
-
"onUpdate:modelValue": r[2] ||= (e) =>
|
|
2073
|
+
"onUpdate:modelValue": r[2] ||= (e) => D(e)
|
|
2087
2074
|
}, null, 8, [
|
|
2088
2075
|
"model-value",
|
|
2089
2076
|
"label",
|
|
2090
2077
|
"disabled"
|
|
2091
2078
|
]),
|
|
2092
|
-
_.value ? (t(), h("p",
|
|
2093
|
-
e.block.wrapper ? (t(), h("div",
|
|
2094
|
-
m("div", null, [m("label", { class: y(p(U)) }, v(p(o).blockSettings.color), 3), g(
|
|
2079
|
+
_.value ? (t(), h("p", mi, v(p(o).section.wrapperLayoutConflict), 1)) : C("", !0),
|
|
2080
|
+
e.block.wrapper ? (t(), h("div", hi, [
|
|
2081
|
+
m("div", null, [m("label", { class: y(p(U)) }, v(p(o).blockSettings.color), 3), g(L, {
|
|
2095
2082
|
"model-value": e.block.wrapper.backgroundColor ?? "",
|
|
2096
2083
|
"allow-transparent": "",
|
|
2097
|
-
"onUpdate:modelValue": r[3] ||= (e) =>
|
|
2084
|
+
"onUpdate:modelValue": r[3] ||= (e) => O({ backgroundColor: e })
|
|
2098
2085
|
}, null, 8, ["model-value"])]),
|
|
2099
|
-
g(
|
|
2086
|
+
g(nn, {
|
|
2100
2087
|
label: p(o).blockSettings.padding,
|
|
2101
2088
|
"model-value": e.block.wrapper.padding ?? {
|
|
2102
2089
|
top: 0,
|
|
@@ -2106,7 +2093,7 @@ var si = { class: "tpl:mb-3.5" }, ci = ["value"], li = ["value"], ui = {
|
|
|
2106
2093
|
},
|
|
2107
2094
|
"onUpdate:modelValue": A
|
|
2108
2095
|
}, null, 8, ["label", "model-value"]),
|
|
2109
|
-
g(
|
|
2096
|
+
g(ft, {
|
|
2110
2097
|
"model-value": e.block.wrapper.borderRadius,
|
|
2111
2098
|
label: p(o).section.borderRadius,
|
|
2112
2099
|
max: 50,
|
|
@@ -2117,18 +2104,18 @@ var si = { class: "tpl:mb-3.5" }, ci = ["value"], li = ["value"], ui = {
|
|
|
2117
2104
|
])) : C("", !0)
|
|
2118
2105
|
], 64));
|
|
2119
2106
|
}
|
|
2120
|
-
}),
|
|
2107
|
+
}), _i = { class: "tpl:mb-3.5" }, vi = { class: "tpl:flex tpl:flex-col tpl:gap-2" }, yi = { class: "tpl:flex tpl:items-center tpl:gap-2" }, bi = ["value", "onChange"], xi = ["value"], Si = ["title", "onClick"], Ci = { class: "tpl:mb-3.5" }, wi = ["value"], Ti = { value: "solid" }, Ei = { value: "outlined" }, Di = { value: "rounded" }, Oi = { value: "square" }, ki = { value: "circle" }, Ai = { value: "plain" }, ji = { class: "tpl:mb-3.5" }, Mi = ["value"], Ni = { value: "brand" }, Pi = { value: "dark" }, Fi = { value: "light" }, Ii = { class: "tpl:mb-3.5" }, Li = { class: "tpl:mb-3.5" }, Ri = { class: "tpl:flex tpl:items-stretch" }, zi = ["value"], Bi = { class: "tpl:mb-3.5" }, Vi = /* @__PURE__ */ w({
|
|
2121
2108
|
__name: "SocialToolbar",
|
|
2122
2109
|
props: { block: {} },
|
|
2123
2110
|
emits: ["update"],
|
|
2124
2111
|
setup(e, { emit: n }) {
|
|
2125
|
-
let r = e, i = n, { t: o } =
|
|
2112
|
+
let r = e, i = n, { t: o } = I();
|
|
2126
2113
|
function s(e, t) {
|
|
2127
2114
|
i("update", { [e]: t });
|
|
2128
2115
|
}
|
|
2129
2116
|
function c() {
|
|
2130
2117
|
let e = {
|
|
2131
|
-
id:
|
|
2118
|
+
id: D(),
|
|
2132
2119
|
platform: "facebook",
|
|
2133
2120
|
url: ""
|
|
2134
2121
|
};
|
|
@@ -2145,25 +2132,25 @@ var si = { class: "tpl:mb-3.5" }, ci = ["value"], li = ["value"], ui = {
|
|
|
2145
2132
|
i("update", { icons: r.block.icons.filter((t) => t.id !== e) });
|
|
2146
2133
|
}
|
|
2147
2134
|
return (n, r) => (t(), h(x, null, [
|
|
2148
|
-
m("div",
|
|
2135
|
+
m("div", _i, [m("label", { class: y(p(U)) }, v(p(o).social.icons), 3), m("div", vi, [(t(!0), h(x, null, a(e.block.icons, (e) => (t(), h("div", {
|
|
2149
2136
|
key: e.id,
|
|
2150
2137
|
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"
|
|
2151
|
-
}, [m("div",
|
|
2138
|
+
}, [m("div", yi, [m("select", {
|
|
2152
2139
|
"data-testid": "social-platform-select",
|
|
2153
2140
|
class: y([p(K), "tpl:flex-1"]),
|
|
2154
2141
|
value: e.platform,
|
|
2155
2142
|
onChange: (t) => l(e.id, "platform", t.target.value)
|
|
2156
|
-
}, [(t(!0), h(x, null, a(p(
|
|
2143
|
+
}, [(t(!0), h(x, null, a(p(oe), (e) => (t(), h("option", {
|
|
2157
2144
|
key: e,
|
|
2158
2145
|
value: e
|
|
2159
|
-
}, v(p(o).social.platforms[e]), 9,
|
|
2146
|
+
}, v(p(o).social.platforms[e]), 9, xi))), 128))], 42, bi), m("button", {
|
|
2160
2147
|
class: y(p(Re)),
|
|
2161
2148
|
title: p(o).social.removeIcon,
|
|
2162
2149
|
onClick: (t) => u(e.id)
|
|
2163
2150
|
}, [g(p(Pe), {
|
|
2164
2151
|
size: 14,
|
|
2165
2152
|
"stroke-width": 2
|
|
2166
|
-
})], 10,
|
|
2153
|
+
})], 10, Si)]), g(J, {
|
|
2167
2154
|
"model-value": e.url,
|
|
2168
2155
|
type: "url",
|
|
2169
2156
|
placeholder: p(o).social.urlPlaceholder,
|
|
@@ -2175,22 +2162,33 @@ var si = { class: "tpl:mb-3.5" }, ci = ["value"], li = ["value"], ui = {
|
|
|
2175
2162
|
])]))), 128)), m("button", {
|
|
2176
2163
|
class: y(p(ze)),
|
|
2177
2164
|
onClick: c
|
|
2178
|
-
}, [g(p(
|
|
2165
|
+
}, [g(p(z), {
|
|
2179
2166
|
size: 14,
|
|
2180
2167
|
"stroke-width": 2
|
|
2181
2168
|
}), _(" " + v(p(o).social.addIcon), 1)], 2)])]),
|
|
2182
|
-
m("div",
|
|
2169
|
+
m("div", Ci, [m("label", { class: y(p(U)) }, v(p(o).social.style), 3), m("select", {
|
|
2183
2170
|
class: y(p(K)),
|
|
2184
2171
|
value: e.block.iconStyle,
|
|
2185
2172
|
onChange: r[0] ||= (e) => s("iconStyle", e.target.value)
|
|
2186
2173
|
}, [
|
|
2187
|
-
m("option",
|
|
2188
|
-
m("option",
|
|
2189
|
-
m("option",
|
|
2190
|
-
m("option",
|
|
2191
|
-
m("option",
|
|
2192
|
-
|
|
2193
|
-
|
|
2174
|
+
m("option", Ti, v(p(o).social.styleSolid), 1),
|
|
2175
|
+
m("option", Ei, v(p(o).social.styleOutlined), 1),
|
|
2176
|
+
m("option", Di, v(p(o).social.styleRounded), 1),
|
|
2177
|
+
m("option", Oi, v(p(o).social.styleSquare), 1),
|
|
2178
|
+
m("option", ki, v(p(o).social.styleCircle), 1),
|
|
2179
|
+
m("option", Ai, v(p(o).social.stylePlain), 1)
|
|
2180
|
+
], 42, wi)]),
|
|
2181
|
+
m("div", ji, [m("label", { class: y(p(U)) }, v(p(o).social.color), 3), m("select", {
|
|
2182
|
+
"data-testid": "social-tone-select",
|
|
2183
|
+
class: y(p(K)),
|
|
2184
|
+
value: e.block.iconTone ?? "brand",
|
|
2185
|
+
onChange: r[1] ||= (e) => s("iconTone", e.target.value)
|
|
2186
|
+
}, [
|
|
2187
|
+
m("option", Ni, v(p(o).social.colorBrand), 1),
|
|
2188
|
+
m("option", Pi, v(p(o).social.colorDark), 1),
|
|
2189
|
+
m("option", Fi, v(p(o).social.colorLight), 1)
|
|
2190
|
+
], 42, Mi)]),
|
|
2191
|
+
m("div", Ii, [m("label", { class: y(p(U)) }, v(p(o).social.size), 3), g(Y, {
|
|
2194
2192
|
options: [
|
|
2195
2193
|
{
|
|
2196
2194
|
value: "small",
|
|
@@ -2206,55 +2204,55 @@ var si = { class: "tpl:mb-3.5" }, ci = ["value"], li = ["value"], ui = {
|
|
|
2206
2204
|
}
|
|
2207
2205
|
],
|
|
2208
2206
|
"model-value": e.block.iconSize,
|
|
2209
|
-
"onUpdate:modelValue": r[
|
|
2207
|
+
"onUpdate:modelValue": r[2] ||= (e) => s("iconSize", e)
|
|
2210
2208
|
}, null, 8, ["options", "model-value"])]),
|
|
2211
|
-
m("div",
|
|
2209
|
+
m("div", Li, [m("label", { class: y(p(U)) }, v(p(o).social.spacing), 3), m("div", Ri, [m("input", {
|
|
2212
2210
|
type: "number",
|
|
2213
2211
|
class: y(p(G)),
|
|
2214
2212
|
value: e.block.spacing,
|
|
2215
2213
|
min: "0",
|
|
2216
2214
|
max: "50",
|
|
2217
|
-
onInput: r[
|
|
2218
|
-
}, null, 42,
|
|
2219
|
-
m("div",
|
|
2215
|
+
onInput: r[3] ||= (e) => s("spacing", Number(e.target.value))
|
|
2216
|
+
}, null, 42, zi), m("span", { class: y(p(W)) }, "px", 2)])]),
|
|
2217
|
+
m("div", Bi, [m("label", { class: y(p(U)) }, v(p(o).social.align), 3), g(Y, {
|
|
2220
2218
|
options: [
|
|
2221
2219
|
{
|
|
2222
2220
|
value: "left",
|
|
2223
2221
|
label: p(o).title.alignLeft,
|
|
2224
|
-
icon: p(
|
|
2222
|
+
icon: p(H)
|
|
2225
2223
|
},
|
|
2226
2224
|
{
|
|
2227
2225
|
value: "center",
|
|
2228
2226
|
label: p(o).title.alignCenter,
|
|
2229
|
-
icon: p(
|
|
2227
|
+
icon: p(V)
|
|
2230
2228
|
},
|
|
2231
2229
|
{
|
|
2232
2230
|
value: "right",
|
|
2233
2231
|
label: p(o).title.alignRight,
|
|
2234
|
-
icon: p(
|
|
2232
|
+
icon: p(B)
|
|
2235
2233
|
}
|
|
2236
2234
|
],
|
|
2237
2235
|
"model-value": e.block.align,
|
|
2238
|
-
"onUpdate:modelValue": r[
|
|
2236
|
+
"onUpdate:modelValue": r[4] ||= (e) => s("align", e)
|
|
2239
2237
|
}, null, 8, ["options", "model-value"])])
|
|
2240
2238
|
], 64));
|
|
2241
2239
|
}
|
|
2242
|
-
}),
|
|
2240
|
+
}), Hi = { class: "tpl:mb-3.5" }, Ui = { class: "tpl:flex tpl:items-stretch" }, Wi = ["value"], Gi = ["value"], Ki = /* @__PURE__ */ w({
|
|
2243
2241
|
__name: "SpacerToolbar",
|
|
2244
2242
|
props: { block: {} },
|
|
2245
2243
|
emits: ["update"],
|
|
2246
2244
|
setup(e, { emit: n }) {
|
|
2247
|
-
let r = n, { t: i } =
|
|
2248
|
-
return (n, a) => (t(), h("div",
|
|
2245
|
+
let r = n, { t: i } = I();
|
|
2246
|
+
return (n, a) => (t(), h("div", Hi, [
|
|
2249
2247
|
m("label", { class: y(p(U)) }, v(p(i).spacer.height), 3),
|
|
2250
|
-
m("div",
|
|
2248
|
+
m("div", Ui, [m("input", {
|
|
2251
2249
|
type: "number",
|
|
2252
2250
|
class: y(p(G)),
|
|
2253
2251
|
value: e.block.height,
|
|
2254
2252
|
min: "10",
|
|
2255
2253
|
max: "100",
|
|
2256
2254
|
onInput: a[0] ||= (e) => r("update", { height: Number(e.target.value) })
|
|
2257
|
-
}, null, 42,
|
|
2255
|
+
}, null, 42, Wi), m("span", { class: y(p(W)) }, "px", 2)]),
|
|
2258
2256
|
m("input", {
|
|
2259
2257
|
type: "range",
|
|
2260
2258
|
class: "tpl:mt-2 tpl:w-full tpl:accent-[var(--tpl-primary)]",
|
|
@@ -2262,13 +2260,13 @@ var si = { class: "tpl:mb-3.5" }, ci = ["value"], li = ["value"], ui = {
|
|
|
2262
2260
|
min: "10",
|
|
2263
2261
|
max: "100",
|
|
2264
2262
|
onInput: a[1] ||= (e) => r("update", { height: Number(e.target.value) })
|
|
2265
|
-
}, null, 40,
|
|
2263
|
+
}, null, 40, Gi)
|
|
2266
2264
|
]));
|
|
2267
2265
|
}
|
|
2268
|
-
}),
|
|
2266
|
+
}), qi = { class: "tpl:mb-3.5" }, Ji = { class: "tpl:flex tpl:items-center tpl:gap-3" }, Yi = { class: "tpl:flex tpl:flex-1 tpl:items-center tpl:gap-1.5" }, Xi = { class: "tpl:text-xs tpl:text-[var(--tpl-text-muted)]" }, Zi = { class: "tpl:flex tpl:items-center tpl:rounded-md tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)]" }, Qi = ["disabled"], $i = { class: "tpl:min-w-[20px] tpl:text-center tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-text)]" }, ea = { class: "tpl:flex tpl:flex-1 tpl:items-center tpl:gap-1.5" }, ta = { class: "tpl:text-xs tpl:text-[var(--tpl-text-muted)]" }, na = { class: "tpl:flex tpl:items-center tpl:rounded-md tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)]" }, ra = ["disabled"], ia = { class: "tpl:min-w-[20px] tpl:text-center tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-text)]" }, aa = { class: "tpl:mb-3.5" }, oa = {
|
|
2269
2267
|
key: 0,
|
|
2270
2268
|
class: "tpl:mb-3.5"
|
|
2271
|
-
},
|
|
2269
|
+
}, sa = { class: "tpl:mb-3.5" }, ca = { class: "tpl:mb-3.5" }, la = { class: "tpl:flex tpl:items-stretch" }, ua = ["value"], da = { class: "tpl:mb-3.5" }, fa = { class: "tpl:flex tpl:items-stretch" }, pa = ["value"], ma = { class: "tpl:mb-3.5" }, ha = ["value"], ga = { value: "" }, _a = ["value"], va = { class: "tpl:mb-3.5" }, ya = { class: "tpl:flex tpl:items-stretch" }, ba = ["value"], xa = { class: "tpl:mb-3.5" }, Sa = { class: "tpl:mb-3.5" }, Ca = /* @__PURE__ */ w({
|
|
2272
2270
|
__name: "TableToolbar",
|
|
2273
2271
|
props: {
|
|
2274
2272
|
block: {},
|
|
@@ -2276,15 +2274,15 @@ var si = { class: "tpl:mb-3.5" }, ci = ["value"], li = ["value"], ui = {
|
|
|
2276
2274
|
},
|
|
2277
2275
|
emits: ["update"],
|
|
2278
2276
|
setup(e, { emit: n }) {
|
|
2279
|
-
let r = e, i = n, { t: o } =
|
|
2277
|
+
let r = e, i = n, { t: o } = I(), s = S(() => r.block.rows.length > 0 ? r.block.rows[0].cells.length : 0);
|
|
2280
2278
|
function c(e, t) {
|
|
2281
2279
|
i("update", { [e]: t });
|
|
2282
2280
|
}
|
|
2283
2281
|
function l() {
|
|
2284
2282
|
let e = r.block.rows.length > 0 ? r.block.rows[0].cells.length : 3, t = {
|
|
2285
|
-
id:
|
|
2283
|
+
id: D(),
|
|
2286
2284
|
cells: Array.from({ length: e }, () => ({
|
|
2287
|
-
id:
|
|
2285
|
+
id: D(),
|
|
2288
2286
|
content: ""
|
|
2289
2287
|
}))
|
|
2290
2288
|
};
|
|
@@ -2297,7 +2295,7 @@ var si = { class: "tpl:mb-3.5" }, ci = ["value"], li = ["value"], ui = {
|
|
|
2297
2295
|
let e = r.block.rows.map((e) => ({
|
|
2298
2296
|
...e,
|
|
2299
2297
|
cells: [...e.cells, {
|
|
2300
|
-
id:
|
|
2298
|
+
id: D(),
|
|
2301
2299
|
content: ""
|
|
2302
2300
|
}]
|
|
2303
2301
|
}));
|
|
@@ -2311,48 +2309,48 @@ var si = { class: "tpl:mb-3.5" }, ci = ["value"], li = ["value"], ui = {
|
|
|
2311
2309
|
i("update", { rows: t });
|
|
2312
2310
|
}
|
|
2313
2311
|
return (n, r) => (t(), h(x, null, [
|
|
2314
|
-
m("div",
|
|
2312
|
+
m("div", qi, [m("label", { class: y(p(U)) }, v(p(o).table.dimensions), 3), m("div", Ji, [m("div", Yi, [m("span", Xi, v(p(o).table.rows), 1), m("div", Zi, [
|
|
2315
2313
|
m("button", {
|
|
2316
2314
|
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",
|
|
2317
2315
|
disabled: e.block.rows.length <= 1,
|
|
2318
2316
|
onClick: r[0] ||= (t) => u(e.block.rows[e.block.rows.length - 1].id)
|
|
2319
|
-
}, [g(p(
|
|
2317
|
+
}, [g(p(R), {
|
|
2320
2318
|
size: 12,
|
|
2321
2319
|
"stroke-width": 2
|
|
2322
|
-
})], 8,
|
|
2323
|
-
m("span",
|
|
2320
|
+
})], 8, Qi),
|
|
2321
|
+
m("span", $i, v(e.block.rows.length), 1),
|
|
2324
2322
|
m("button", {
|
|
2325
2323
|
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)]",
|
|
2326
2324
|
onClick: l
|
|
2327
|
-
}, [g(p(
|
|
2325
|
+
}, [g(p(z), {
|
|
2328
2326
|
size: 12,
|
|
2329
2327
|
"stroke-width": 2
|
|
2330
2328
|
})])
|
|
2331
|
-
])]), m("div",
|
|
2329
|
+
])]), m("div", ea, [m("span", ta, v(p(o).table.columns), 1), m("div", na, [
|
|
2332
2330
|
m("button", {
|
|
2333
2331
|
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",
|
|
2334
2332
|
disabled: s.value <= 1,
|
|
2335
2333
|
onClick: r[1] ||= (e) => f(s.value - 1)
|
|
2336
|
-
}, [g(p(
|
|
2334
|
+
}, [g(p(R), {
|
|
2337
2335
|
size: 12,
|
|
2338
2336
|
"stroke-width": 2
|
|
2339
|
-
})], 8,
|
|
2340
|
-
m("span",
|
|
2337
|
+
})], 8, ra),
|
|
2338
|
+
m("span", ia, v(s.value), 1),
|
|
2341
2339
|
m("button", {
|
|
2342
2340
|
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)]",
|
|
2343
2341
|
onClick: d
|
|
2344
|
-
}, [g(p(
|
|
2342
|
+
}, [g(p(z), {
|
|
2345
2343
|
size: 12,
|
|
2346
2344
|
"stroke-width": 2
|
|
2347
2345
|
})])
|
|
2348
2346
|
])])])]),
|
|
2349
|
-
m("div",
|
|
2347
|
+
m("div", aa, [g(q, {
|
|
2350
2348
|
class: "tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-text-muted)]",
|
|
2351
2349
|
"model-value": e.block.hasHeaderRow,
|
|
2352
2350
|
label: p(o).table.hasHeaderRow,
|
|
2353
2351
|
"onUpdate:modelValue": r[2] ||= (e) => c("hasHeaderRow", e)
|
|
2354
2352
|
}, null, 8, ["model-value", "label"])]),
|
|
2355
|
-
e.block.hasHeaderRow ? (t(), h("div",
|
|
2353
|
+
e.block.hasHeaderRow ? (t(), h("div", oa, [m("label", { class: y(p(U)) }, v(p(o).table.headerBackgroundColor), 3), g(L, {
|
|
2356
2354
|
"model-value": e.block.headerBackgroundColor ?? "",
|
|
2357
2355
|
"seed-color": p(Be),
|
|
2358
2356
|
placeholder: p(o).table.noHeaderBg,
|
|
@@ -2362,62 +2360,62 @@ var si = { class: "tpl:mb-3.5" }, ci = ["value"], li = ["value"], ui = {
|
|
|
2362
2360
|
"seed-color",
|
|
2363
2361
|
"placeholder"
|
|
2364
2362
|
])])) : C("", !0),
|
|
2365
|
-
m("div",
|
|
2363
|
+
m("div", sa, [m("label", { class: y(p(U)) }, v(p(o).table.borderColor), 3), g(L, {
|
|
2366
2364
|
"model-value": e.block.borderColor,
|
|
2367
2365
|
"onUpdate:modelValue": r[4] ||= (e) => c("borderColor", e)
|
|
2368
2366
|
}, null, 8, ["model-value"])]),
|
|
2369
|
-
m("div",
|
|
2367
|
+
m("div", ca, [m("label", { class: y(p(U)) }, v(p(o).table.borderWidth), 3), m("div", la, [m("input", {
|
|
2370
2368
|
type: "number",
|
|
2371
2369
|
class: y(p(G)),
|
|
2372
2370
|
value: e.block.borderWidth,
|
|
2373
2371
|
min: "0",
|
|
2374
2372
|
max: "10",
|
|
2375
2373
|
onInput: r[5] ||= (e) => c("borderWidth", Number(e.target.value))
|
|
2376
|
-
}, null, 42,
|
|
2377
|
-
m("div",
|
|
2374
|
+
}, null, 42, ua), m("span", { class: y(p(W)) }, "px", 2)])]),
|
|
2375
|
+
m("div", da, [m("label", { class: y(p(U)) }, v(p(o).table.cellPadding), 3), m("div", fa, [m("input", {
|
|
2378
2376
|
type: "number",
|
|
2379
2377
|
class: y(p(G)),
|
|
2380
2378
|
value: e.block.cellPadding,
|
|
2381
2379
|
min: "0",
|
|
2382
2380
|
max: "30",
|
|
2383
2381
|
onInput: r[6] ||= (e) => c("cellPadding", Number(e.target.value))
|
|
2384
|
-
}, null, 42,
|
|
2385
|
-
m("div",
|
|
2382
|
+
}, null, 42, pa), m("span", { class: y(p(W)) }, "px", 2)])]),
|
|
2383
|
+
m("div", ma, [m("label", { class: y(p(U)) }, v(p(o).table.fontFamily), 3), m("select", {
|
|
2386
2384
|
class: y(p(K)),
|
|
2387
|
-
value: e.block.fontFamily
|
|
2385
|
+
value: p(We)(e.block.fontFamily),
|
|
2388
2386
|
onChange: r[7] ||= (e) => c("fontFamily", e.target.value || void 0)
|
|
2389
|
-
}, [m("option",
|
|
2387
|
+
}, [m("option", ga, v(p(o).title.inheritFont), 1), (t(!0), h(x, null, a(e.fontFamilies, (e) => (t(), h("option", {
|
|
2390
2388
|
key: e.value,
|
|
2391
2389
|
value: e.value
|
|
2392
|
-
}, v(e.label), 9,
|
|
2393
|
-
m("div",
|
|
2390
|
+
}, v(e.label), 9, _a))), 128))], 42, ha)]),
|
|
2391
|
+
m("div", va, [m("label", { class: y(p(U)) }, v(p(o).table.fontSize), 3), m("div", ya, [m("input", {
|
|
2394
2392
|
type: "number",
|
|
2395
2393
|
class: y(p(G)),
|
|
2396
2394
|
value: e.block.fontSize,
|
|
2397
2395
|
min: "10",
|
|
2398
2396
|
max: "32",
|
|
2399
2397
|
onInput: r[8] ||= (e) => c("fontSize", Number(e.target.value))
|
|
2400
|
-
}, null, 42,
|
|
2401
|
-
m("div",
|
|
2398
|
+
}, null, 42, ba), m("span", { class: y(p(W)) }, "px", 2)])]),
|
|
2399
|
+
m("div", xa, [m("label", { class: y(p(U)) }, v(p(o).table.color), 3), g(L, {
|
|
2402
2400
|
"model-value": e.block.color ?? "",
|
|
2403
2401
|
"onUpdate:modelValue": r[9] ||= (e) => c("color", e || void 0)
|
|
2404
2402
|
}, null, 8, ["model-value"])]),
|
|
2405
|
-
m("div",
|
|
2403
|
+
m("div", Sa, [m("label", { class: y(p(U)) }, v(p(o).table.textAlign), 3), g(Y, {
|
|
2406
2404
|
options: [
|
|
2407
2405
|
{
|
|
2408
2406
|
value: "left",
|
|
2409
2407
|
label: p(o).title.alignLeft,
|
|
2410
|
-
icon: p(
|
|
2408
|
+
icon: p(H)
|
|
2411
2409
|
},
|
|
2412
2410
|
{
|
|
2413
2411
|
value: "center",
|
|
2414
2412
|
label: p(o).title.alignCenter,
|
|
2415
|
-
icon: p(
|
|
2413
|
+
icon: p(V)
|
|
2416
2414
|
},
|
|
2417
2415
|
{
|
|
2418
2416
|
value: "right",
|
|
2419
2417
|
label: p(o).title.alignRight,
|
|
2420
|
-
icon: p(
|
|
2418
|
+
icon: p(B)
|
|
2421
2419
|
}
|
|
2422
2420
|
],
|
|
2423
2421
|
"model-value": e.block.textAlign,
|
|
@@ -2425,7 +2423,7 @@ var si = { class: "tpl:mb-3.5" }, ci = ["value"], li = ["value"], ui = {
|
|
|
2425
2423
|
}, null, 8, ["options", "model-value"])])
|
|
2426
2424
|
], 64));
|
|
2427
2425
|
}
|
|
2428
|
-
}),
|
|
2426
|
+
}), wa = { class: "tpl:mb-3.5" }, Ta = ["value"], Ea = { value: 1 }, Da = { value: 2 }, Oa = { value: 3 }, ka = { value: 4 }, Aa = { class: "tpl:mb-3.5" }, ja = ["value"], Ma = { value: "" }, Na = ["value"], Pa = { class: "tpl:mb-3.5" }, Fa = { class: "tpl:mb-3.5" }, Ia = /* @__PURE__ */ w({
|
|
2429
2427
|
__name: "TitleToolbar",
|
|
2430
2428
|
props: {
|
|
2431
2429
|
block: {},
|
|
@@ -2433,49 +2431,49 @@ var si = { class: "tpl:mb-3.5" }, ci = ["value"], li = ["value"], ui = {
|
|
|
2433
2431
|
},
|
|
2434
2432
|
emits: ["update"],
|
|
2435
2433
|
setup(e, { emit: n }) {
|
|
2436
|
-
let r = n, { t: i } =
|
|
2434
|
+
let r = n, { t: i } = I();
|
|
2437
2435
|
function o(e, t) {
|
|
2438
2436
|
r("update", { [e]: t });
|
|
2439
2437
|
}
|
|
2440
2438
|
return (n, r) => (t(), h(x, null, [
|
|
2441
|
-
m("div",
|
|
2439
|
+
m("div", wa, [m("label", { class: y(p(U)) }, v(p(i).title.level), 3), m("select", {
|
|
2442
2440
|
class: y(p(K)),
|
|
2443
2441
|
value: e.block.level,
|
|
2444
2442
|
onChange: r[0] ||= (e) => o("level", Number(e.target.value))
|
|
2445
2443
|
}, [
|
|
2446
|
-
m("option",
|
|
2447
|
-
m("option",
|
|
2448
|
-
m("option",
|
|
2449
|
-
m("option",
|
|
2450
|
-
], 42,
|
|
2451
|
-
m("div",
|
|
2444
|
+
m("option", Ea, v(p(i).title.heading1), 1),
|
|
2445
|
+
m("option", Da, v(p(i).title.heading2), 1),
|
|
2446
|
+
m("option", Oa, v(p(i).title.heading3), 1),
|
|
2447
|
+
m("option", ka, v(p(i).title.heading4), 1)
|
|
2448
|
+
], 42, Ta)]),
|
|
2449
|
+
m("div", Aa, [m("label", { class: y(p(U)) }, v(p(i).title.fontFamily), 3), m("select", {
|
|
2452
2450
|
class: y(p(K)),
|
|
2453
|
-
value: e.block.fontFamily
|
|
2451
|
+
value: p(We)(e.block.fontFamily),
|
|
2454
2452
|
onChange: r[1] ||= (e) => o("fontFamily", e.target.value || void 0)
|
|
2455
|
-
}, [m("option",
|
|
2453
|
+
}, [m("option", Ma, v(p(i).title.inheritFont), 1), (t(!0), h(x, null, a(e.fontFamilies, (e) => (t(), h("option", {
|
|
2456
2454
|
key: e.value,
|
|
2457
2455
|
value: e.value
|
|
2458
|
-
}, v(e.label), 9,
|
|
2459
|
-
m("div",
|
|
2456
|
+
}, v(e.label), 9, Na))), 128))], 42, ja)]),
|
|
2457
|
+
m("div", Pa, [m("label", { class: y(p(U)) }, v(p(i).title.color), 3), g(L, {
|
|
2460
2458
|
"model-value": e.block.color ?? "",
|
|
2461
2459
|
"onUpdate:modelValue": r[2] ||= (e) => o("color", e || void 0)
|
|
2462
2460
|
}, null, 8, ["model-value"])]),
|
|
2463
|
-
m("div",
|
|
2461
|
+
m("div", Fa, [m("label", { class: y(p(U)) }, v(p(i).title.align), 3), g(Y, {
|
|
2464
2462
|
options: [
|
|
2465
2463
|
{
|
|
2466
2464
|
value: "left",
|
|
2467
2465
|
label: p(i).title.alignLeft,
|
|
2468
|
-
icon: p(
|
|
2466
|
+
icon: p(H)
|
|
2469
2467
|
},
|
|
2470
2468
|
{
|
|
2471
2469
|
value: "center",
|
|
2472
2470
|
label: p(i).title.alignCenter,
|
|
2473
|
-
icon: p(
|
|
2471
|
+
icon: p(V)
|
|
2474
2472
|
},
|
|
2475
2473
|
{
|
|
2476
2474
|
value: "right",
|
|
2477
2475
|
label: p(i).title.alignRight,
|
|
2478
|
-
icon: p(
|
|
2476
|
+
icon: p(B)
|
|
2479
2477
|
}
|
|
2480
2478
|
],
|
|
2481
2479
|
"model-value": e.block.textAlign,
|
|
@@ -2483,29 +2481,29 @@ var si = { class: "tpl:mb-3.5" }, ci = ["value"], li = ["value"], ui = {
|
|
|
2483
2481
|
}, null, 8, ["options", "model-value"])])
|
|
2484
2482
|
], 64));
|
|
2485
2483
|
}
|
|
2486
|
-
}),
|
|
2484
|
+
}), La = { class: "tpl:mb-3.5" }, Ra = {
|
|
2487
2485
|
key: 0,
|
|
2488
2486
|
class: "tpl:mb-3.5"
|
|
2489
|
-
},
|
|
2487
|
+
}, za = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, Ba = [
|
|
2490
2488
|
"value",
|
|
2491
2489
|
"placeholder",
|
|
2492
2490
|
"title"
|
|
2493
|
-
],
|
|
2491
|
+
], Va = { class: "tpl:mb-3.5" }, Ha = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, Ua = { class: "tpl:mb-3.5" }, Wa = { class: "tpl:mb-3.5" }, Ga = ["value"], Ka = { value: "full" }, qa = { class: "tpl:mb-3.5" }, Ja = ["value"], Ya = { value: "auto" }, Xa = { value: "custom" }, Za = {
|
|
2494
2492
|
key: 0,
|
|
2495
2493
|
class: "tpl:mt-2 tpl:flex tpl:items-stretch"
|
|
2496
|
-
},
|
|
2494
|
+
}, Qa = ["value"], $a = { class: "tpl:mb-3.5" }, eo = 200, to = /* @__PURE__ */ w({
|
|
2497
2495
|
__name: "VideoToolbar",
|
|
2498
2496
|
props: { block: {} },
|
|
2499
2497
|
emits: ["update"],
|
|
2500
2498
|
setup(e, { emit: n }) {
|
|
2501
|
-
let r = e, i = n, { t: a } =
|
|
2499
|
+
let r = e, i = n, { t: a } = I(), o = c(fe, null), s = c(pe, ee.liquid), l = Ie(), u = S(() => !!o), f = S(() => j(r.block.url, s)), w = S(() => typeof r.block.height == "number" ? "custom" : "auto"), T = d(!1), { start: E } = le(() => {
|
|
2502
2500
|
T.value = !1;
|
|
2503
2501
|
}, 1e3, { immediate: !1 });
|
|
2504
2502
|
function D(e, t) {
|
|
2505
2503
|
i("update", { [e]: t });
|
|
2506
2504
|
}
|
|
2507
2505
|
function O(e) {
|
|
2508
|
-
D("height", e === "custom" ?
|
|
2506
|
+
D("height", e === "custom" ? eo : void 0);
|
|
2509
2507
|
}
|
|
2510
2508
|
function k(e) {
|
|
2511
2509
|
let t = Number(e);
|
|
@@ -2516,7 +2514,7 @@ var si = { class: "tpl:mb-3.5" }, ci = ["value"], li = ["value"], ui = {
|
|
|
2516
2514
|
l.alive && e && (D("thumbnailUrl", e.url), T.value = !0, E());
|
|
2517
2515
|
}
|
|
2518
2516
|
return (n, r) => (t(), h(x, null, [
|
|
2519
|
-
m("div",
|
|
2517
|
+
m("div", La, [
|
|
2520
2518
|
m("label", { class: y(p(U)) }, v(p(a).video.videoUrl), 3),
|
|
2521
2519
|
g(J, {
|
|
2522
2520
|
"model-value": e.block.url,
|
|
@@ -2532,16 +2530,16 @@ var si = { class: "tpl:mb-3.5" }, ci = ["value"], li = ["value"], ui = {
|
|
|
2532
2530
|
"onUpdate:modelValue": r[1] ||= (e) => D("openInNewTab", e)
|
|
2533
2531
|
}, null, 8, ["model-value", "label"])) : C("", !0)
|
|
2534
2532
|
]),
|
|
2535
|
-
f.value ? (t(), h("div",
|
|
2533
|
+
f.value ? (t(), h("div", Ra, [m("label", { class: y(p(U)) }, [_(v(p(a).video.placeholderUrl) + " ", 1), m("span", za, v(p(a).video.optional), 1)], 2), m("input", {
|
|
2536
2534
|
type: "url",
|
|
2537
2535
|
class: y(p(K)),
|
|
2538
2536
|
value: e.block.placeholderUrl || "",
|
|
2539
2537
|
placeholder: p(a).video.placeholderUrlPlaceholder,
|
|
2540
2538
|
title: p(a).video.placeholderUrlTooltip,
|
|
2541
2539
|
onInput: r[2] ||= (e) => D("placeholderUrl", e.target.value)
|
|
2542
|
-
}, null, 42,
|
|
2543
|
-
m("div",
|
|
2544
|
-
m("label", { class: y(p(U)) }, [_(v(p(a).video.customThumbnail) + " ", 1), m("span",
|
|
2540
|
+
}, null, 42, Ba)])) : C("", !0),
|
|
2541
|
+
m("div", Va, [
|
|
2542
|
+
m("label", { class: y(p(U)) }, [_(v(p(a).video.customThumbnail) + " ", 1), m("span", Ha, v(p(a).video.optional), 1)], 2),
|
|
2545
2543
|
g(J, {
|
|
2546
2544
|
"model-value": e.block.thumbnailUrl,
|
|
2547
2545
|
type: "url",
|
|
@@ -2562,45 +2560,45 @@ var si = { class: "tpl:mb-3.5" }, ci = ["value"], li = ["value"], ui = {
|
|
|
2562
2560
|
"background-color": "var(--tpl-bg)"
|
|
2563
2561
|
},
|
|
2564
2562
|
onClick: A
|
|
2565
|
-
}, [g(p(
|
|
2563
|
+
}, [g(p(re), {
|
|
2566
2564
|
size: 14,
|
|
2567
2565
|
"stroke-width": 1.5
|
|
2568
2566
|
}), _(" " + v(p(a).image.browseMedia), 1)])) : C("", !0)
|
|
2569
2567
|
]),
|
|
2570
|
-
m("div",
|
|
2568
|
+
m("div", Ua, [m("label", { class: y(p(U)) }, v(p(a).video.altText), 3), g(J, {
|
|
2571
2569
|
"model-value": e.block.alt,
|
|
2572
2570
|
type: "text",
|
|
2573
2571
|
placeholder: p(a).video.altTextPlaceholder,
|
|
2574
2572
|
"onUpdate:modelValue": r[4] ||= (e) => D("alt", e)
|
|
2575
2573
|
}, null, 8, ["model-value", "placeholder"])]),
|
|
2576
|
-
m("div",
|
|
2574
|
+
m("div", Wa, [m("label", { class: y(p(U)) }, v(p(a).video.width), 3), m("select", {
|
|
2577
2575
|
class: y(p(K)),
|
|
2578
2576
|
value: e.block.width,
|
|
2579
2577
|
onChange: r[5] ||= (e) => D("width", e.target.value === "full" ? "full" : Number(e.target.value))
|
|
2580
2578
|
}, [
|
|
2581
|
-
m("option",
|
|
2579
|
+
m("option", Ka, v(p(a).video.fullWidth), 1),
|
|
2582
2580
|
r[9] ||= m("option", { value: "300" }, "300px", -1),
|
|
2583
2581
|
r[10] ||= m("option", { value: "400" }, "400px", -1),
|
|
2584
2582
|
r[11] ||= m("option", { value: "500" }, "500px", -1)
|
|
2585
|
-
], 42,
|
|
2586
|
-
m("div",
|
|
2583
|
+
], 42, Ga)]),
|
|
2584
|
+
m("div", qa, [
|
|
2587
2585
|
m("label", { class: y(p(U)) }, v(p(a).video.height), 3),
|
|
2588
2586
|
m("select", {
|
|
2589
2587
|
class: y(p(K)),
|
|
2590
2588
|
"data-testid": "video-height-mode",
|
|
2591
2589
|
value: w.value,
|
|
2592
2590
|
onChange: r[6] ||= (e) => O(e.target.value)
|
|
2593
|
-
}, [m("option",
|
|
2594
|
-
w.value === "custom" ? (t(), h("div",
|
|
2591
|
+
}, [m("option", Ya, v(p(a).video.heightAuto), 1), m("option", Xa, v(p(a).video.heightCustom), 1)], 42, Ja),
|
|
2592
|
+
w.value === "custom" ? (t(), h("div", Za, [m("input", {
|
|
2595
2593
|
type: "number",
|
|
2596
2594
|
"data-testid": "video-height-input",
|
|
2597
2595
|
class: y(p(G)),
|
|
2598
2596
|
value: e.block.height,
|
|
2599
2597
|
min: "20",
|
|
2600
2598
|
onInput: r[7] ||= (e) => k(e.target.value)
|
|
2601
|
-
}, null, 42,
|
|
2599
|
+
}, null, 42, Qa), m("span", { class: y(p(W)) }, "px", 2)])) : C("", !0)
|
|
2602
2600
|
]),
|
|
2603
|
-
m("div",
|
|
2601
|
+
m("div", $a, [m("label", { class: y(p(U)) }, v(p(a).title.align), 3), g(Y, {
|
|
2604
2602
|
options: [
|
|
2605
2603
|
{
|
|
2606
2604
|
value: "left",
|
|
@@ -2620,7 +2618,7 @@ var si = { class: "tpl:mb-3.5" }, ci = ["value"], li = ["value"], ui = {
|
|
|
2620
2618
|
}, null, 8, ["options", "model-value"])])
|
|
2621
2619
|
], 64));
|
|
2622
2620
|
}
|
|
2623
|
-
}),
|
|
2621
|
+
}), no = ["aria-label"], ro = { class: "tpl:flex tpl:items-center tpl:justify-between tpl:border-b tpl:border-[var(--tpl-border)] tpl:px-4 tpl:py-3.5" }, io = { class: "tpl:flex tpl:items-center tpl:gap-2 tpl:text-[var(--tpl-primary)]" }, ao = { class: "tpl:m-0 tpl:text-sm tpl:font-semibold tpl:text-[var(--tpl-text)]" }, oo = { class: "tpl:flex tpl:gap-1" }, so = ["title"], co = ["title"], lo = { class: "tpl:flex-1 tpl:overflow-y-auto tpl:p-4" }, uo = /*@__PURE__*/ w({
|
|
2624
2622
|
__name: "Toolbar",
|
|
2625
2623
|
props: { block: {} },
|
|
2626
2624
|
emits: [
|
|
@@ -2629,9 +2627,9 @@ var si = { class: "tpl:mb-3.5" }, ci = ["value"], li = ["value"], ui = {
|
|
|
2629
2627
|
"duplicate"
|
|
2630
2628
|
],
|
|
2631
2629
|
setup(e, { emit: n }) {
|
|
2632
|
-
let r = f(() => import("./CountdownToolbar-
|
|
2630
|
+
let r = f(() => import("./CountdownToolbar-BeF21SeB.js")), a = e, o = n, { t: s } = I(), l = F(ye, "Toolbar"), u = c(ve, []), d = S(() => a.block.type), _ = S(() => O(a.block)), y = S(() => {
|
|
2633
2631
|
if (_.value) return u.find((e) => e.type === a.block.customType);
|
|
2634
|
-
}), x = S(() => _.value ? y.value?.name ?? a.block.customType :
|
|
2632
|
+
}), x = S(() => _.value ? y.value?.name ?? a.block.customType : ie(d.value, s)), w = S(() => Ue(l.fonts.value, "fontFamily" in a.block ? a.block.fontFamily : void 0));
|
|
2635
2633
|
function T(e) {
|
|
2636
2634
|
o("update", e);
|
|
2637
2635
|
}
|
|
@@ -2639,96 +2637,96 @@ var si = { class: "tpl:mb-3.5" }, ci = ["value"], li = ["value"], ui = {
|
|
|
2639
2637
|
"data-testid": "block-toolbar",
|
|
2640
2638
|
"aria-label": p(s).landmarks.blockToolbar,
|
|
2641
2639
|
class: "tpl:flex tpl:w-full tpl:flex-1 tpl:flex-col tpl:bg-[var(--tpl-bg-elevated)]"
|
|
2642
|
-
}, [m("div",
|
|
2640
|
+
}, [m("div", ro, [m("div", io, [p(we)[d.value] ? (t(), b(i(p(we)[d.value]), {
|
|
2643
2641
|
key: 0,
|
|
2644
2642
|
size: 16,
|
|
2645
2643
|
"stroke-width": 1.5
|
|
2646
|
-
})) : _.value ? (t(), b(p(
|
|
2644
|
+
})) : _.value ? (t(), b(p(P), {
|
|
2647
2645
|
key: 1,
|
|
2648
2646
|
size: 16,
|
|
2649
2647
|
"stroke-width": 1.5
|
|
2650
|
-
})) : C("", !0), m("h3",
|
|
2648
|
+
})) : C("", !0), m("h3", ao, v(x.value), 1)]), m("div", oo, [m("button", {
|
|
2651
2649
|
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)]",
|
|
2652
2650
|
title: p(s).toolbar.duplicate,
|
|
2653
2651
|
onClick: a[0] ||= (e) => o("duplicate")
|
|
2654
|
-
}, [g(p(
|
|
2652
|
+
}, [g(p(Te), {
|
|
2655
2653
|
size: 14,
|
|
2656
2654
|
"stroke-width": 2
|
|
2657
|
-
})], 8,
|
|
2655
|
+
})], 8, so), m("button", {
|
|
2658
2656
|
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)]",
|
|
2659
2657
|
title: p(s).toolbar.delete,
|
|
2660
2658
|
onClick: a[1] ||= (e) => o("delete")
|
|
2661
2659
|
}, [g(p(Me), {
|
|
2662
2660
|
size: 14,
|
|
2663
2661
|
"stroke-width": 2
|
|
2664
|
-
})], 8,
|
|
2662
|
+
})], 8, co)])]), m("div", lo, [_.value ? (t(), b(ur, {
|
|
2665
2663
|
key: 0,
|
|
2666
2664
|
block: e.block,
|
|
2667
2665
|
onUpdateFieldValues: a[2] ||= (e) => o("update", { fieldValues: e }),
|
|
2668
2666
|
onUpdateDataSourceFetched: a[3] ||= (e) => o("update", { dataSourceFetched: e })
|
|
2669
|
-
}, null, 8, ["block"])) : d.value === "section" ? (t(), b(
|
|
2667
|
+
}, null, 8, ["block"])) : d.value === "section" ? (t(), b(gi, {
|
|
2670
2668
|
key: 1,
|
|
2671
2669
|
block: e.block,
|
|
2672
2670
|
onUpdate: T
|
|
2673
|
-
}, null, 8, ["block"])) : d.value === "title" ? (t(), b(
|
|
2671
|
+
}, null, 8, ["block"])) : d.value === "title" ? (t(), b(Ia, {
|
|
2674
2672
|
key: 2,
|
|
2675
2673
|
block: e.block,
|
|
2676
|
-
"font-families":
|
|
2674
|
+
"font-families": w.value,
|
|
2677
2675
|
onUpdate: T
|
|
2678
|
-
}, null, 8, ["block", "font-families"])) : d.value === "paragraph" ? (t(), b(
|
|
2676
|
+
}, null, 8, ["block", "font-families"])) : d.value === "paragraph" ? (t(), b(oi, {
|
|
2679
2677
|
key: 3,
|
|
2680
2678
|
block: e.block,
|
|
2681
2679
|
onUpdate: T
|
|
2682
|
-
}, null, 8, ["block"])) : d.value === "image" ? (t(), b(
|
|
2680
|
+
}, null, 8, ["block"])) : d.value === "image" ? (t(), b(Wr, {
|
|
2683
2681
|
key: 4,
|
|
2684
2682
|
block: e.block,
|
|
2685
2683
|
onUpdate: T
|
|
2686
|
-
}, null, 8, ["block"])) : d.value === "video" ? (t(), b(
|
|
2684
|
+
}, null, 8, ["block"])) : d.value === "video" ? (t(), b(to, {
|
|
2687
2685
|
key: 5,
|
|
2688
2686
|
block: e.block,
|
|
2689
2687
|
onUpdate: T
|
|
2690
|
-
}, null, 8, ["block"])) : d.value === "button" ? (t(), b(
|
|
2688
|
+
}, null, 8, ["block"])) : d.value === "button" ? (t(), b(Nt, {
|
|
2691
2689
|
key: 6,
|
|
2692
2690
|
block: e.block,
|
|
2693
|
-
"font-families":
|
|
2691
|
+
"font-families": w.value,
|
|
2694
2692
|
onUpdate: T
|
|
2695
|
-
}, null, 8, ["block", "font-families"])) : d.value === "divider" ? (t(), b(
|
|
2693
|
+
}, null, 8, ["block", "font-families"])) : d.value === "divider" ? (t(), b(gr, {
|
|
2696
2694
|
key: 7,
|
|
2697
2695
|
block: e.block,
|
|
2698
2696
|
onUpdate: T
|
|
2699
|
-
}, null, 8, ["block"])) : d.value === "social" ? (t(), b(
|
|
2697
|
+
}, null, 8, ["block"])) : d.value === "social" ? (t(), b(Vi, {
|
|
2700
2698
|
key: 8,
|
|
2701
2699
|
block: e.block,
|
|
2702
2700
|
onUpdate: T
|
|
2703
|
-
}, null, 8, ["block"])) : d.value === "menu" ? (t(), b(
|
|
2701
|
+
}, null, 8, ["block"])) : d.value === "menu" ? (t(), b(ni, {
|
|
2704
2702
|
key: 9,
|
|
2705
2703
|
block: e.block,
|
|
2706
|
-
"font-families":
|
|
2704
|
+
"font-families": w.value,
|
|
2707
2705
|
onUpdate: T
|
|
2708
|
-
}, null, 8, ["block", "font-families"])) : d.value === "table" ? (t(), b(
|
|
2706
|
+
}, null, 8, ["block", "font-families"])) : d.value === "table" ? (t(), b(Ca, {
|
|
2709
2707
|
key: 10,
|
|
2710
2708
|
block: e.block,
|
|
2711
|
-
"font-families":
|
|
2709
|
+
"font-families": w.value,
|
|
2712
2710
|
onUpdate: T
|
|
2713
|
-
}, null, 8, ["block", "font-families"])) : d.value === "spacer" ? (t(), b(
|
|
2711
|
+
}, null, 8, ["block", "font-families"])) : d.value === "spacer" ? (t(), b(Ki, {
|
|
2714
2712
|
key: 11,
|
|
2715
2713
|
block: e.block,
|
|
2716
2714
|
onUpdate: T
|
|
2717
|
-
}, null, 8, ["block"])) : d.value === "html" ? (t(), b(
|
|
2715
|
+
}, null, 8, ["block"])) : d.value === "html" ? (t(), b(br, {
|
|
2718
2716
|
key: 12,
|
|
2719
2717
|
block: e.block,
|
|
2720
2718
|
onUpdate: T
|
|
2721
2719
|
}, null, 8, ["block"])) : d.value === "countdown" ? (t(), b(p(r), {
|
|
2722
2720
|
key: 13,
|
|
2723
2721
|
block: e.block,
|
|
2724
|
-
"font-families":
|
|
2722
|
+
"font-families": w.value,
|
|
2725
2723
|
onUpdate: T
|
|
2726
|
-
}, null, 8, ["block", "font-families"])) : C("", !0), g(
|
|
2724
|
+
}, null, 8, ["block", "font-families"])) : C("", !0), g(Tn, {
|
|
2727
2725
|
block: e.block,
|
|
2728
2726
|
"is-first-section": d.value === "paragraph",
|
|
2729
2727
|
onUpdate: T
|
|
2730
|
-
}, null, 8, ["block", "is-first-section"])])], 8,
|
|
2728
|
+
}, null, 8, ["block", "is-first-section"])])], 8, no));
|
|
2731
2729
|
}
|
|
2732
|
-
}),
|
|
2730
|
+
}), fo = /* @__PURE__ */ e({ default: () => po }), po = /*#__PURE__*/ Fe(uo, [["__scopeId", "data-v-e2d2c22f"]]);
|
|
2733
2731
|
//#endregion
|
|
2734
|
-
export {
|
|
2732
|
+
export { po as default, Y as i, $ as n, X as r, fo as t };
|