@templatical/editor 0.41.0 → 0.42.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{AiChatSidebar-a8TPBAl2.js → AiChatSidebar-DOCvzGBe.js} +8 -8
- package/dist/{AiFeatureMenu-CroDMqRG.js → AiFeatureMenu-CfijAx4G.js} +4 -4
- package/dist/{BlockIssueBadge-D8KsGWY6.js → BlockIssueBadge-BJ3A6mqh.js} +2 -2
- package/dist/{BlockPreviewCanvas-Z9SZIgfA.js → BlockPreviewCanvas-DggfBaoJ.js} +33 -33
- package/dist/{CloudHeaderExtras-CVqHeqc6.js → CloudHeaderExtras-dFbdqBr5.js} +2 -2
- package/dist/{CloudPanels-CmEpQUJB.js → CloudPanels-DmMxhzzZ.js} +4 -4
- package/dist/{CollaboratorBar-AIQC9fEF.js → CollaboratorBar-XXk1tOC5.js} +2 -2
- package/dist/{CommentsPanel-9k1q-79y.js → CommentsPanel-CGEhbjx0.js} +1 -1
- package/dist/{CommentsSidebar-Bc7nORmD.js → CommentsSidebar-CUpst9ou.js} +10 -10
- package/dist/{CountdownToolbar-DkC-qSgq.js → CountdownToolbar-B1a_UIuB.js} +3 -3
- package/dist/{DesignReferenceSidebar-OoiYJAKS.js → DesignReferenceSidebar-DkAmsBgM.js} +6 -6
- package/dist/{IssuesPanel-Dnns3O9z.js → IssuesPanel-lTpsCV4a.js} +5 -5
- package/dist/{LogicTagInsertButton-BimKobaG.js → LogicTagInsertButton-B5YymR4U.js} +243 -219
- package/dist/{MediaEditModal-C-InB-H2.js → MediaEditModal-B1X8qtJb.js} +1 -1
- package/dist/{MediaPanels-CTosUpeo.js → MediaPanels-DO30L1KS.js} +1 -1
- package/dist/{MergeTagInput-DqpVzhy7.js → MergeTagInput-B0M_-X0K.js} +1 -1
- package/dist/{MergeTagModeToggle-BkIiAgpQ.js → MergeTagModeToggle-B-8W1tK7.js} +4 -4
- package/dist/{ParagraphEditor-DaZ03d1U.js → ParagraphEditor-BhhpXgoO.js} +35 -35
- package/dist/{RestoreVersionDialog-DHb1mPoF.js → RestoreVersionDialog-DE8aqmdi.js} +3 -3
- package/dist/{RichTextEditorContent-AEtfKvLz.js → RichTextEditorContent-AaLAArA0.js} +5 -5
- package/dist/{SaveBlockDialog-hGwLDWfE.js → SaveBlockDialog-BJ-hEwLv.js} +8 -8
- package/dist/{SavedBlocksBrowserModal-C0lYVBFi.js → SavedBlocksBrowserModal-nLI8aAQ5.js} +9 -9
- package/dist/{SavedBlocksPanels-CaTbeVDv.js → SavedBlocksPanels-RnzUMUJI.js} +1 -1
- package/dist/{SavedBlocksPickBar-DR2afid2.js → SavedBlocksPickBar-D3QA3Tgy.js} +2 -2
- package/dist/{TemplateScoringPanel-Cs0TGtRF.js → TemplateScoringPanel-C6ellAcs.js} +11 -11
- package/dist/{TemplateSettings-BD1WNP4C.js → TemplateSettings-C_0qK-zs.js} +6 -6
- package/dist/{TestEmailModal-DqoosG1u.js → TestEmailModal-CnyxLhWJ.js} +7 -7
- package/dist/{TestEmailPanel-DpozqyHF.js → TestEmailPanel-BRisIL4G.js} +1 -1
- package/dist/{TitleEditor-BCBdZLt_.js → TitleEditor-lPITPzw6.js} +12 -12
- package/dist/{ToggleSwitch-CJfQ8u57.js → ToggleSwitch-CtZ6adlX.js} +1 -1
- package/dist/{Toolbar-C7SjilzH.js → Toolbar-B6dG5_IP.js} +847 -554
- package/dist/{TplModal-CVO-2KrU.js → TplModal-BiAf7tWe.js} +2 -2
- package/dist/{VersionHistoryMenu-b0A8mS2_.js → VersionHistoryMenu-DdspCRSA.js} +5 -5
- package/dist/{VersionHistoryPanels-BzF7dmwa.js → VersionHistoryPanels-C589Jm_B.js} +1 -1
- package/dist/{VersionPreviewBanner-xB9r83r0.js → VersionPreviewBanner-XUuLe36h.js} +1 -1
- package/dist/{WrapperBlock-BDjOn3fY.js → WrapperBlock-CVQ4t1tY.js} +4 -4
- package/dist/{blockTypeIcons-B0Bq1WT1.js → blockTypeIcons-Sg8SY1NQ.js} +2 -2
- package/dist/bundle-stats.json +6 -6
- package/dist/{cdn/chunks/ca-Ckgw9yd0.js → ca--zGWn9AU.js} +14 -2
- package/dist/cdn/chunks/{AiChatSidebar-mKImUXi6.js → AiChatSidebar-DiG-EQ-E.js} +8 -8
- package/dist/cdn/chunks/AiChatSidebar-DiG-EQ-E.js.map +1 -0
- package/dist/cdn/chunks/{AiFeatureMenu-Cx3qdStQ.js → AiFeatureMenu-BXSPgOzA.js} +5 -5
- package/dist/cdn/chunks/AiFeatureMenu-BXSPgOzA.js.map +1 -0
- package/dist/cdn/chunks/{BlockIssueBadge-DS1pUf5g.js → BlockIssueBadge-ChQ0mPf5.js} +2 -2
- package/dist/cdn/chunks/BlockIssueBadge-ChQ0mPf5.js.map +1 -0
- package/dist/cdn/chunks/{BlockPreviewCanvas-D31TNib3.js → BlockPreviewCanvas-CMmv1FTA.js} +28 -28
- package/dist/cdn/chunks/BlockPreviewCanvas-CMmv1FTA.js.map +1 -0
- package/dist/cdn/chunks/{CloudHeaderExtras-0zdlKiq7.js → CloudHeaderExtras-yvFz2_e-.js} +3 -3
- package/dist/cdn/chunks/CloudHeaderExtras-yvFz2_e-.js.map +1 -0
- package/dist/cdn/chunks/{CloudPanels-DPh71yOO.js → CloudPanels-DpKck9Na.js} +4 -4
- package/dist/cdn/chunks/CloudPanels-DpKck9Na.js.map +1 -0
- package/dist/cdn/chunks/{CollaboratorBar-lCZU8qkg.js → CollaboratorBar-Clm1ZVXQ.js} +3 -3
- package/dist/cdn/chunks/CollaboratorBar-Clm1ZVXQ.js.map +1 -0
- package/dist/cdn/chunks/{CommentsPanel-BtAGZfF6.js → CommentsPanel-CjhxGMjL.js} +2 -2
- package/dist/cdn/chunks/CommentsPanel-CjhxGMjL.js.map +1 -0
- package/dist/cdn/chunks/{CommentsSidebar-Ws07MXYj.js → CommentsSidebar-D9bqMnlt.js} +16 -16
- package/dist/cdn/chunks/CommentsSidebar-D9bqMnlt.js.map +1 -0
- package/dist/cdn/chunks/CountdownBlock-sVDjKkRw.js.map +1 -1
- package/dist/cdn/chunks/{CountdownToolbar-Bu93WiS8.js → CountdownToolbar-CIRx5w1U.js} +4 -4
- package/dist/cdn/chunks/CountdownToolbar-CIRx5w1U.js.map +1 -0
- package/dist/cdn/chunks/{DesignReferenceSidebar-BlSdh5B7.js → DesignReferenceSidebar-C1-SbE_R.js} +9 -9
- package/dist/cdn/chunks/DesignReferenceSidebar-C1-SbE_R.js.map +1 -0
- package/dist/cdn/chunks/{IssuesPanel-CKkv9z9g.js → IssuesPanel-qKY6UDd-.js} +8 -8
- package/dist/cdn/chunks/IssuesPanel-qKY6UDd-.js.map +1 -0
- package/dist/cdn/chunks/LoadingTrack-_7DH_5aw.js.map +1 -1
- package/dist/cdn/chunks/{LogicTagInsertButton-CHc1yZ9v.js → LogicTagInsertButton-CItDS_U1.js} +250 -226
- package/dist/cdn/chunks/LogicTagInsertButton-CItDS_U1.js.map +1 -0
- package/dist/cdn/chunks/{MediaEditModal-Cw9MhjVz.js → MediaEditModal-CzUtXkpk.js} +2 -2
- package/dist/cdn/chunks/MediaEditModal-CzUtXkpk.js.map +1 -0
- package/dist/cdn/chunks/{MediaPanels-FD_aX3H5.js → MediaPanels-DOLsh7WC.js} +2 -2
- package/dist/cdn/chunks/MediaPanels-DOLsh7WC.js.map +1 -0
- package/dist/cdn/chunks/{MergeTagInput--qTYfCWk.js → MergeTagInput-B33u3nxj.js} +2 -2
- package/dist/cdn/chunks/MergeTagInput-B33u3nxj.js.map +1 -0
- package/dist/cdn/chunks/{MergeTagModeToggle-CdWIGo3Q.js → MergeTagModeToggle-Bz1CH3NT.js} +10 -10
- package/dist/cdn/chunks/MergeTagModeToggle-Bz1CH3NT.js.map +1 -0
- package/dist/cdn/chunks/{ParagraphEditor-w2qEZTkM.js → ParagraphEditor-J74SIn-m.js} +51 -51
- package/dist/cdn/chunks/ParagraphEditor-J74SIn-m.js.map +1 -0
- package/dist/cdn/chunks/{RestoreVersionDialog-cnWVN3nX.js → RestoreVersionDialog-CFE7jqDB.js} +3 -3
- package/dist/cdn/chunks/RestoreVersionDialog-CFE7jqDB.js.map +1 -0
- package/dist/cdn/chunks/{RichTextEditorContent-Fzuu9pLP.js → RichTextEditorContent-dOg1xFqv.js} +5 -5
- package/dist/cdn/chunks/RichTextEditorContent-dOg1xFqv.js.map +1 -0
- package/dist/cdn/chunks/{SaveBlockDialog-jxQtKnVs.js → SaveBlockDialog-DZOmDCC8.js} +38 -38
- package/dist/cdn/chunks/SaveBlockDialog-DZOmDCC8.js.map +1 -0
- package/dist/cdn/chunks/{SavedBlocksBrowserModal-DpXWf4Pi.js → SavedBlocksBrowserModal-B43H5zKA.js} +10 -10
- package/dist/cdn/chunks/SavedBlocksBrowserModal-B43H5zKA.js.map +1 -0
- package/dist/cdn/chunks/{SavedBlocksPanels-B-ASmf1P.js → SavedBlocksPanels-uTSb2xO_.js} +2 -2
- package/dist/cdn/chunks/SavedBlocksPanels-uTSb2xO_.js.map +1 -0
- package/dist/cdn/chunks/{SavedBlocksPickBar-CEFIQ8Nd.js → SavedBlocksPickBar-BUvmGqHK.js} +3 -3
- package/dist/cdn/chunks/SavedBlocksPickBar-BUvmGqHK.js.map +1 -0
- package/dist/cdn/chunks/{TemplateScoringPanel-d_Ppowsq.js → TemplateScoringPanel-ebsrVge3.js} +19 -19
- package/dist/cdn/chunks/TemplateScoringPanel-ebsrVge3.js.map +1 -0
- package/dist/cdn/chunks/{TemplateSettings-Dr5OJ0Gi.js → TemplateSettings-BaEVdUTM.js} +9 -9
- package/dist/cdn/chunks/TemplateSettings-BaEVdUTM.js.map +1 -0
- package/dist/cdn/chunks/{TestEmailModal-CrjzVw8e.js → TestEmailModal-ide7UP_H.js} +7 -7
- package/dist/cdn/chunks/TestEmailModal-ide7UP_H.js.map +1 -0
- package/dist/cdn/chunks/{TestEmailPanel-k9vdulTu.js → TestEmailPanel-Cqdsnufx.js} +2 -2
- package/dist/cdn/chunks/TestEmailPanel-Cqdsnufx.js.map +1 -0
- package/dist/cdn/chunks/{TitleEditor-laILWfKh.js → TitleEditor-CoFzxLPA.js} +16 -16
- package/dist/cdn/chunks/TitleEditor-CoFzxLPA.js.map +1 -0
- package/dist/cdn/chunks/{ToggleSwitch-0dGCYnRY.js → ToggleSwitch-D-8dCEbI.js} +2 -2
- package/dist/cdn/chunks/ToggleSwitch-D-8dCEbI.js.map +1 -0
- package/dist/cdn/chunks/{Toolbar-BsiHW9gY.js → Toolbar-BDzhrmGV.js} +814 -566
- package/dist/cdn/chunks/Toolbar-BDzhrmGV.js.map +1 -0
- package/dist/cdn/chunks/{TplModal-D8DoPbFa.js → TplModal-mLMmolQp.js} +3 -3
- package/dist/cdn/chunks/TplModal-mLMmolQp.js.map +1 -0
- package/dist/cdn/chunks/{VersionHistoryMenu-B3-hNu9c.js → VersionHistoryMenu-C_bBKOYU.js} +7 -7
- package/dist/cdn/chunks/VersionHistoryMenu-C_bBKOYU.js.map +1 -0
- package/dist/cdn/chunks/{VersionHistoryPanels-zw1AtzGN.js → VersionHistoryPanels-B9LwOKxm.js} +2 -2
- package/dist/cdn/chunks/VersionHistoryPanels-B9LwOKxm.js.map +1 -0
- package/dist/cdn/chunks/{VersionPreviewBanner-PzVQSBJE.js → VersionPreviewBanner-CKyrcgxJ.js} +2 -2
- package/dist/cdn/chunks/VersionPreviewBanner-CKyrcgxJ.js.map +1 -0
- package/dist/cdn/chunks/{WrapperBlock-CpRvfAV0.js → WrapperBlock-DI8vSvTO.js} +4 -4
- package/dist/cdn/chunks/WrapperBlock-DI8vSvTO.js.map +1 -0
- package/dist/cdn/chunks/blockTypeIcons-CdfCfqHE.js +21 -0
- package/dist/cdn/chunks/blockTypeIcons-CdfCfqHE.js.map +1 -0
- package/dist/{ca-Ckgw9yd0.js → cdn/chunks/ca--zGWn9AU.js} +16 -0
- package/dist/cdn/chunks/ca--zGWn9AU.js.map +1 -0
- package/dist/cdn/chunks/ca-BTf1Zbqb.js.map +1 -1
- package/dist/cdn/chunks/{cloud-CIT4yPp4.js → cloud-De-eh1u6.js} +2 -2
- package/dist/cdn/chunks/cloud-De-eh1u6.js.map +1 -0
- package/dist/cdn/chunks/{createCloudRuntime-COUxbPvd.js → createCloudRuntime-DsaUaWvr.js} +3 -3
- package/dist/cdn/chunks/createCloudRuntime-DsaUaWvr.js.map +1 -0
- package/dist/cdn/chunks/{de-D4dweQw8.js → de-BRNLKcDl.js} +15 -1
- package/dist/cdn/chunks/de-BRNLKcDl.js.map +1 -0
- package/dist/cdn/chunks/de-mMY5yQJu.js.map +1 -1
- package/dist/cdn/chunks/de-xzrh9PA3.js.map +1 -1
- package/dist/cdn/chunks/dist-BRZhN8qJ.js.map +1 -1
- package/dist/cdn/chunks/dist-CXB2_kBa.js.map +1 -1
- package/dist/cdn/chunks/draggable-IB4x6w2O.js.map +1 -1
- package/dist/cdn/chunks/{editor-modal-CKu8HhiB.js → editor-modal-CZQArGNj.js} +88 -88
- package/dist/cdn/chunks/editor-modal-CZQArGNj.js.map +1 -0
- package/dist/cdn/chunks/emojiData-6m0DBh7O.js.map +1 -1
- package/dist/cdn/chunks/en-9unxBjV8.js +2 -0
- package/dist/cdn/chunks/en-ChVeGQBY.js.map +1 -1
- package/dist/{en-VE7R7NyL.js → cdn/chunks/en-JJjqHMjy.js} +16 -0
- package/dist/cdn/chunks/en-JJjqHMjy.js.map +1 -0
- package/dist/cdn/chunks/{es-B9OhP8H3.js → es-BIh8BxV9.js} +15 -1
- package/dist/cdn/chunks/es-BIh8BxV9.js.map +1 -0
- package/dist/cdn/chunks/es-BT4LSpE2.js.map +1 -1
- package/dist/cdn/chunks/{extensions-CafoGF65.js → extensions-Dy251lPd.js} +5 -5
- package/dist/cdn/chunks/extensions-Dy251lPd.js.map +1 -0
- package/dist/cdn/chunks/formatAbsoluteDateTime-DMmop3C-.js.map +1 -1
- package/dist/cdn/chunks/formatRelativeTime-CtUU-QZ8.js.map +1 -1
- package/dist/{fr-wrXhIi00.js → cdn/chunks/fr-C5VUZogP.js} +16 -0
- package/dist/cdn/chunks/fr-C5VUZogP.js.map +1 -0
- package/dist/cdn/chunks/fr-CI7OJoql.js.map +1 -1
- package/dist/cdn/chunks/htmlparser-ClUZ6waR.js.map +1 -1
- package/dist/cdn/chunks/{icons-BKkJ-5xF.js → icons-CQnjugjy.js} +86 -45
- package/dist/cdn/chunks/icons-CQnjugjy.js.map +1 -0
- package/dist/cdn/chunks/ja-DhlWUfke.js.map +1 -1
- package/dist/cdn/chunks/{ja-fKnVWXHC.js → ja-x5JYxaCW.js} +15 -1
- package/dist/cdn/chunks/ja-x5JYxaCW.js.map +1 -0
- package/dist/cdn/chunks/keys-DCWeHkSF.js.map +1 -1
- package/dist/cdn/chunks/liquid.browser-BypTT2oc.js.map +1 -1
- package/dist/cdn/chunks/logger-ByvdoAwq.js.map +1 -1
- package/dist/cdn/chunks/nl-D8y5OWGB.js.map +1 -1
- package/dist/cdn/chunks/{nl-DeFatKJe.js → nl-UXxFyXV6.js} +15 -1
- package/dist/cdn/chunks/nl-UXxFyXV6.js.map +1 -0
- package/dist/cdn/chunks/{preRenderCustomBlocks-Dpj-_cOj.js → preRenderCustomBlocks-h4ZFBKbD.js} +2 -2
- package/dist/cdn/chunks/preRenderCustomBlocks-h4ZFBKbD.js.map +1 -0
- package/dist/cdn/chunks/pt-BR-CoCwRUi0.js.map +1 -1
- package/dist/{pt-BR-Bh1J8ey6.js → cdn/chunks/pt-BR-DHm3SP6W.js} +16 -0
- package/dist/cdn/chunks/pt-BR-DHm3SP6W.js.map +1 -0
- package/dist/cdn/chunks/pt-BR-DMCbUBvJ.js.map +1 -1
- package/dist/cdn/chunks/pusher-BbIHJKf3.js.map +1 -1
- package/dist/cdn/chunks/readableTextColor-f8Kykfnh.js.map +1 -1
- package/dist/cdn/chunks/{socialIcons-BvYNMn1G.js → socialIcons-ZOCwCCyn.js} +3 -3
- package/dist/cdn/chunks/socialIcons-ZOCwCCyn.js.map +1 -0
- package/dist/cdn/chunks/{src-DveVYoWS.js → src-BR3I3gOW.js} +265 -224
- package/dist/cdn/chunks/src-BR3I3gOW.js.map +1 -0
- package/dist/cdn/chunks/{src-Cnc5E71L.js → src-fZSLjhjy.js} +12 -12
- package/dist/cdn/chunks/src-fZSLjhjy.js.map +1 -0
- package/dist/cdn/chunks/{src-L6HEdwFn.js → src-nhIF5-mf.js} +179 -166
- package/dist/cdn/chunks/src-nhIF5-mf.js.map +1 -0
- package/dist/cdn/chunks/styleConstants-C_YAPdQS.js.map +1 -1
- package/dist/cdn/chunks/templateSettingsFields-YCFVBVYh.js.map +1 -1
- package/dist/cdn/chunks/timeouts-DHPZQ0G3.js.map +1 -1
- package/dist/cdn/chunks/{tiptap-DhLuKyDc.js → tiptap-D1u8JIUW.js} +1916 -1917
- package/dist/cdn/chunks/tiptap-D1u8JIUW.js.map +1 -0
- package/dist/cdn/chunks/useAliveFlag-DAlQLbM2.js.map +1 -1
- package/dist/cdn/chunks/useCloudI18n-CrjWbpbu.js.map +1 -1
- package/dist/cdn/chunks/{useEditorCore-DZmtKwJh.js → useEditorCore-D4kzTMtQ.js} +458 -446
- package/dist/cdn/chunks/useEditorCore-D4kzTMtQ.js.map +1 -0
- package/dist/cdn/chunks/useEditorRoot-CshefZLP.js.map +1 -1
- package/dist/cdn/chunks/useI18n-CyO_Nmca.js.map +1 -1
- package/dist/cdn/chunks/{useLogicTag-DF7-l66G.js → useLogicTag-J_i_hvZg.js} +2 -2
- package/dist/cdn/chunks/useLogicTag-J_i_hvZg.js.map +1 -0
- package/dist/cdn/chunks/{useMergeTag-DbIHw4NG.js → useMergeTag-C5MyHYxJ.js} +2 -2
- package/dist/cdn/chunks/useMergeTag-C5MyHYxJ.js.map +1 -0
- package/dist/cdn/chunks/{usePopoverPosition-BJRvAb-h.js → usePopoverPosition-DGXjXKjM.js} +25 -12
- package/dist/cdn/chunks/usePopoverPosition-DGXjXKjM.js.map +1 -0
- package/dist/cdn/chunks/useScrollToBlock-DgHZJvID.js.map +1 -1
- package/dist/cdn/editor.css +1 -1
- package/dist/cdn/editor.js +493 -464
- package/dist/cdn/editor.js.map +1 -1
- package/dist/{check-eqb2JhqU.js → check-BMx_TLAS.js} +1 -1
- package/dist/{chevron-down-Dkr-7Ywl.js → chevron-down-KZf5mh9_.js} +1 -1
- package/dist/{chevron-right-Bge4XF_B.js → chevron-right-BLZ60Vxw.js} +1 -1
- package/dist/{chevron-up-CQAyl0kC.js → chevron-up-B9ynB8eU.js} +1 -1
- package/dist/{circle-alert-CYgTHKWr.js → circle-alert-pjvFFDrF.js} +1 -1
- package/dist/{clock-BgSJZJP5.js → clock-CiiTBfF3.js} +1 -1
- package/dist/{cloud-DsqqUfzh.js → cloud-AO_X8T9g.js} +1 -1
- package/dist/{copy-mw6PVnOJ.js → copy-BF0_pQjH.js} +1 -1
- package/dist/{createCloudRuntime-iLflkYzP.js → createCloudRuntime-D641nhri.js} +2 -2
- package/dist/{createLucideIcon-BxY5yz5u.js → createLucideIcon-C2YOVVWx.js} +8 -8
- package/dist/{de-D4dweQw8.js → de-BRNLKcDl.js} +14 -0
- package/dist/{dist-CQSVro7b.js → dist-B0dkvy7z.js} +1 -1
- package/dist/{dist-BJM3eFyT.js → dist-BPWuzECC.js} +1 -1
- package/dist/{dist-EDkj3Ub1.js → dist-BUHovM4k.js} +1 -1
- package/dist/{dist-BmsLcnrO.js → dist-BwoEME8p.js} +1 -1
- package/dist/{dist-DerFNpDY.js → dist-C2Ge44fD.js} +760 -761
- package/dist/{dist-BdHF7nyq.js → dist-CIxmOOSG.js} +5 -5
- package/dist/{dist-wyXxj3R1.js → dist-CJ7RZARo.js} +1 -1
- package/dist/{dist-Bl4rxpX9.js → dist-CxmLZQso.js} +1 -1
- package/dist/{dist-DyrEOKEJ.js → dist-DRmafAUz.js} +1 -1
- package/dist/{dist-Djmzp6wi.js → dist-DdOAotfz.js} +1 -1
- package/dist/{dist-BxVnMgXZ.js → dist-W_ERo6c_.js} +1 -1
- package/dist/{dist-DbUZvK04.js → dist-iLUVPysa.js} +263 -222
- package/dist/{dist-DQbOebGW.js → dist-p-LkiWIQ.js} +1 -1
- package/dist/{editor-modal-qzmEVcIk.js → editor-modal-99FB40dl.js} +16 -16
- package/dist/en-BvOjRLiw.js +2 -0
- package/dist/{cdn/chunks/en-VE7R7NyL.js → en-JJjqHMjy.js} +14 -2
- package/dist/{es-B9OhP8H3.js → es-BIh8BxV9.js} +14 -0
- package/dist/{extensions-DDhjuVKy.js → extensions-DqQXxrvP.js} +13 -13
- package/dist/{eye-DphkRtAD.js → eye-RdXYgrQZ.js} +1 -1
- package/dist/{cdn/chunks/fr-wrXhIi00.js → fr-C5VUZogP.js} +14 -2
- package/dist/{image-up-Qi2BXD7T.js → image-up-BwdoReQt.js} +1 -1
- package/dist/{info-VSyAs02q.js → info-zFMSGrL1.js} +1 -1
- package/dist/{ja-fKnVWXHC.js → ja-x5JYxaCW.js} +14 -0
- package/dist/{link-CNuozGqD.js → link-D7orqFBT.js} +1 -1
- package/dist/{list-BA0I5Wmu.js → list-BGt4Pgxc.js} +1 -1
- package/dist/{loader-circle-z5eeqasv.js → loader-circle-BVBgkRGz.js} +1 -1
- package/dist/{message-circle-BsQ9hEup.js → message-circle-D8YLsarv.js} +1 -1
- package/dist/{nl-DeFatKJe.js → nl-UXxFyXV6.js} +14 -0
- package/dist/{package-OkXfuRoO.js → package-CuFvk0L5.js} +1 -1
- package/dist/{pencil-DFVFA7Dj.js → pencil-DRYbmZW7.js} +1 -1
- package/dist/{plus-D8bkVjZ7.js → plus-Dv0b3kh0.js} +1 -1
- package/dist/{preRenderCustomBlocks-BBSqQgke.js → preRenderCustomBlocks-CTstI3Q-.js} +4 -4
- package/dist/{cdn/chunks/pt-BR-Bh1J8ey6.js → pt-BR-DHm3SP6W.js} +14 -2
- package/dist/{refresh-cw-DPB7YFuz.js → refresh-cw-gYTIS5bJ.js} +1 -1
- package/dist/{search-C-dCgqIa.js → search-D84_Ki_a.js} +1 -1
- package/dist/{send-Cm2fy2zm.js → send-Cn-8_H_U.js} +1 -1
- package/dist/{shield-check-COgBYFDF.js → shield-check-BOoVWJtD.js} +1 -1
- package/dist/{smartphone-v0u_MOEV.js → smartphone-4Ej3PBw5.js} +1 -1
- package/dist/{socialIcons-O7PZCW2P.js → socialIcons-CzRJskEk.js} +47 -47
- package/dist/{sparkles-Ds0RF8Iu.js → sparkles-D3vnNe7O.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/templatical-editor.js +432 -403
- package/dist/{text-align-start-DiavaIm6.js → text-align-start-Ci2h_Xly.js} +1 -1
- package/dist/{trash-DnOkfu2V.js → trash-wmi4UKvv.js} +1 -1
- package/dist/{triangle-alert-DGLAyXnh.js → triangle-alert-DJ0r2wmQ.js} +1 -1
- package/dist/{upload-BBDme2cy.js → upload-XMde-TXf.js} +1 -1
- package/dist/{useEditorCore-dcdHB_7H.js → useEditorCore-Dhit8Ygg.js} +894 -882
- package/dist/{useLogicTag-D9pvgxQR.js → useLogicTag-BaH8gey0.js} +1 -1
- package/dist/{useMergeTag-BaVFPdlq.js → useMergeTag-Cyad1yBE.js} +1 -1
- package/dist/{usePopoverPosition-DH7z3Ghm.js → usePopoverPosition-BYmd-lhR.js} +24 -11
- package/dist/{useScrollToBlock-Dj4v3rxr.js → useScrollToBlock-B4F7KCrf.js} +1 -1
- package/dist/{x-3BHV3Q6K.js → x-BWrtpVl-.js} +1 -1
- package/package.json +10 -10
- package/dist/cdn/chunks/AiChatSidebar-mKImUXi6.js.map +0 -1
- package/dist/cdn/chunks/AiFeatureMenu-Cx3qdStQ.js.map +0 -1
- package/dist/cdn/chunks/BlockIssueBadge-DS1pUf5g.js.map +0 -1
- package/dist/cdn/chunks/BlockPreviewCanvas-D31TNib3.js.map +0 -1
- package/dist/cdn/chunks/CloudHeaderExtras-0zdlKiq7.js.map +0 -1
- package/dist/cdn/chunks/CloudPanels-DPh71yOO.js.map +0 -1
- package/dist/cdn/chunks/CollaboratorBar-lCZU8qkg.js.map +0 -1
- package/dist/cdn/chunks/CommentsPanel-BtAGZfF6.js.map +0 -1
- package/dist/cdn/chunks/CommentsSidebar-Ws07MXYj.js.map +0 -1
- package/dist/cdn/chunks/CountdownToolbar-Bu93WiS8.js.map +0 -1
- package/dist/cdn/chunks/DesignReferenceSidebar-BlSdh5B7.js.map +0 -1
- package/dist/cdn/chunks/IssuesPanel-CKkv9z9g.js.map +0 -1
- package/dist/cdn/chunks/LogicTagInsertButton-CHc1yZ9v.js.map +0 -1
- package/dist/cdn/chunks/MediaEditModal-Cw9MhjVz.js.map +0 -1
- package/dist/cdn/chunks/MediaPanels-FD_aX3H5.js.map +0 -1
- package/dist/cdn/chunks/MergeTagInput--qTYfCWk.js.map +0 -1
- package/dist/cdn/chunks/MergeTagModeToggle-CdWIGo3Q.js.map +0 -1
- package/dist/cdn/chunks/ParagraphEditor-w2qEZTkM.js.map +0 -1
- package/dist/cdn/chunks/RestoreVersionDialog-cnWVN3nX.js.map +0 -1
- package/dist/cdn/chunks/RichTextEditorContent-Fzuu9pLP.js.map +0 -1
- package/dist/cdn/chunks/SaveBlockDialog-jxQtKnVs.js.map +0 -1
- package/dist/cdn/chunks/SavedBlocksBrowserModal-DpXWf4Pi.js.map +0 -1
- package/dist/cdn/chunks/SavedBlocksPanels-B-ASmf1P.js.map +0 -1
- package/dist/cdn/chunks/SavedBlocksPickBar-CEFIQ8Nd.js.map +0 -1
- package/dist/cdn/chunks/TemplateScoringPanel-d_Ppowsq.js.map +0 -1
- package/dist/cdn/chunks/TemplateSettings-Dr5OJ0Gi.js.map +0 -1
- package/dist/cdn/chunks/TestEmailModal-CrjzVw8e.js.map +0 -1
- package/dist/cdn/chunks/TestEmailPanel-k9vdulTu.js.map +0 -1
- package/dist/cdn/chunks/TitleEditor-laILWfKh.js.map +0 -1
- package/dist/cdn/chunks/ToggleSwitch-0dGCYnRY.js.map +0 -1
- package/dist/cdn/chunks/Toolbar-BsiHW9gY.js.map +0 -1
- package/dist/cdn/chunks/TplModal-D8DoPbFa.js.map +0 -1
- package/dist/cdn/chunks/VersionHistoryMenu-B3-hNu9c.js.map +0 -1
- package/dist/cdn/chunks/VersionHistoryPanels-zw1AtzGN.js.map +0 -1
- package/dist/cdn/chunks/VersionPreviewBanner-PzVQSBJE.js.map +0 -1
- package/dist/cdn/chunks/WrapperBlock-CpRvfAV0.js.map +0 -1
- package/dist/cdn/chunks/blockTypeIcons-raBjStuv.js +0 -21
- package/dist/cdn/chunks/blockTypeIcons-raBjStuv.js.map +0 -1
- package/dist/cdn/chunks/ca-Ckgw9yd0.js.map +0 -1
- package/dist/cdn/chunks/cloud-CIT4yPp4.js.map +0 -1
- package/dist/cdn/chunks/createCloudRuntime-COUxbPvd.js.map +0 -1
- package/dist/cdn/chunks/de-D4dweQw8.js.map +0 -1
- package/dist/cdn/chunks/editor-modal-CKu8HhiB.js.map +0 -1
- package/dist/cdn/chunks/en-DqzAdO8F.js +0 -2
- package/dist/cdn/chunks/en-VE7R7NyL.js.map +0 -1
- package/dist/cdn/chunks/es-B9OhP8H3.js.map +0 -1
- package/dist/cdn/chunks/extensions-CafoGF65.js.map +0 -1
- package/dist/cdn/chunks/fr-wrXhIi00.js.map +0 -1
- package/dist/cdn/chunks/icons-BKkJ-5xF.js.map +0 -1
- package/dist/cdn/chunks/ja-fKnVWXHC.js.map +0 -1
- package/dist/cdn/chunks/nl-DeFatKJe.js.map +0 -1
- package/dist/cdn/chunks/preRenderCustomBlocks-Dpj-_cOj.js.map +0 -1
- package/dist/cdn/chunks/pt-BR-Bh1J8ey6.js.map +0 -1
- package/dist/cdn/chunks/socialIcons-BvYNMn1G.js.map +0 -1
- package/dist/cdn/chunks/src-Cnc5E71L.js.map +0 -1
- package/dist/cdn/chunks/src-DveVYoWS.js.map +0 -1
- package/dist/cdn/chunks/src-L6HEdwFn.js.map +0 -1
- package/dist/cdn/chunks/tiptap-DhLuKyDc.js.map +0 -1
- package/dist/cdn/chunks/useEditorCore-DZmtKwJh.js.map +0 -1
- package/dist/cdn/chunks/useLogicTag-DF7-l66G.js.map +0 -1
- package/dist/cdn/chunks/useMergeTag-DbIHw4NG.js.map +0 -1
- package/dist/cdn/chunks/usePopoverPosition-BJRvAb-h.js.map +0 -1
- package/dist/en-1tgLzB8q.js +0 -2
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { A as e, At as t, B as n, E as r, J as i, K as a, M as o, S as s, W as c, Z as l, at as u, b as d, c as f, d as p, g as m, h, i as g, jt as _, kt as v, l as y, r as b, s as x, u as S, v as C } from "./vue.runtime.esm-bundler-CyqhBwpY.js";
|
|
2
2
|
import { c as w, n as T, s as ee, t as te } from "./runtime-dom.esm-bundler-BGbPz4-g.js";
|
|
3
|
-
import {
|
|
3
|
+
import { F as E, H as D, R as O, z as k } from "./dist-iLUVPysa.js";
|
|
4
4
|
import { t as ne } from "./dist-BDuPwOyn.js";
|
|
5
5
|
import { J as re, Y as A, Z as ie, d as ae } from "./keys-CDqfZIRt.js";
|
|
6
6
|
import { t as j } from "./useI18n-B_CdcBwG.js";
|
|
7
|
-
import { a as
|
|
8
|
-
import { t as
|
|
9
|
-
import { t as
|
|
10
|
-
import { t as
|
|
11
|
-
import { t as
|
|
12
|
-
import { t as
|
|
7
|
+
import { a as M, i as oe, n as se, o as ce, r as le, t as ue } from "./usePopoverPosition-BYmd-lhR.js";
|
|
8
|
+
import { t as N } from "./createLucideIcon-C2YOVVWx.js";
|
|
9
|
+
import { t as P } from "./pencil-DRYbmZW7.js";
|
|
10
|
+
import { t as de } from "./x-BWrtpVl-.js";
|
|
11
|
+
import { t as F } from "./useMergeTag-Cyad1yBE.js";
|
|
12
|
+
import { t as I } from "./useLogicTag-BaH8gey0.js";
|
|
13
13
|
import { u as fe } from "./styleConstants-C_YAPdQS.js";
|
|
14
|
-
var
|
|
14
|
+
var pe = N({
|
|
15
15
|
name: "braces",
|
|
16
16
|
size: 24,
|
|
17
17
|
node: [["path", {
|
|
@@ -22,7 +22,7 @@ var I = M({
|
|
|
22
22
|
key: "e1hn23"
|
|
23
23
|
}]],
|
|
24
24
|
aliases: ["curly-braces"]
|
|
25
|
-
}), L =
|
|
25
|
+
}), L = N({
|
|
26
26
|
name: "scan-line",
|
|
27
27
|
size: 24,
|
|
28
28
|
node: [
|
|
@@ -47,7 +47,7 @@ var I = M({
|
|
|
47
47
|
key: "b7w52i"
|
|
48
48
|
}]
|
|
49
49
|
]
|
|
50
|
-
}), R = (e, t = 0, n = 1) => e > n ? n : e < t ? t : e, z = (e, t = 0, n = 10 ** t) => Math.round(n * e) / n, B = (e) =>
|
|
50
|
+
}), R = (e, t = 0, n = 1) => e > n ? n : e < t ? t : e, z = (e, t = 0, n = 10 ** t) => Math.round(n * e) / n, B = (e) => ge(V(e)), V = (e) => (e[0] === "#" && (e = e.substring(1)), e.length < 6 ? {
|
|
51
51
|
r: parseInt(e[0] + e[0], 16),
|
|
52
52
|
g: parseInt(e[1] + e[1], 16),
|
|
53
53
|
b: parseInt(e[2] + e[2], 16),
|
|
@@ -57,7 +57,7 @@ var I = M({
|
|
|
57
57
|
g: parseInt(e.substring(2, 4), 16),
|
|
58
58
|
b: parseInt(e.substring(4, 6), 16),
|
|
59
59
|
a: e.length === 8 ? z(parseInt(e.substring(6, 8), 16) / 255, 2) : 1
|
|
60
|
-
}),
|
|
60
|
+
}), H = (e) => he(me(e)), U = ({ h: e, s: t, v: n, a: r }) => {
|
|
61
61
|
let i = (200 - t) * n / 100;
|
|
62
62
|
return {
|
|
63
63
|
h: z(e),
|
|
@@ -65,10 +65,10 @@ var I = M({
|
|
|
65
65
|
l: z(i / 2),
|
|
66
66
|
a: z(r, 2)
|
|
67
67
|
};
|
|
68
|
-
},
|
|
69
|
-
let { h: t, s: n, l: r } =
|
|
68
|
+
}, W = (e) => {
|
|
69
|
+
let { h: t, s: n, l: r } = U(e);
|
|
70
70
|
return `hsl(${t}, ${n}%, ${r}%)`;
|
|
71
|
-
},
|
|
71
|
+
}, me = ({ h: e, s: t, v: n, a: r }) => {
|
|
72
72
|
e = e / 360 * 6, t /= 100, n /= 100;
|
|
73
73
|
let i = Math.floor(e), a = n * (1 - t), o = n * (1 - (e - i) * t), s = n * (1 - (1 - e + i) * t), c = i % 6;
|
|
74
74
|
return {
|
|
@@ -98,13 +98,13 @@ var I = M({
|
|
|
98
98
|
][c] * 255),
|
|
99
99
|
a: z(r, 2)
|
|
100
100
|
};
|
|
101
|
-
},
|
|
101
|
+
}, G = (e) => {
|
|
102
102
|
let t = e.toString(16);
|
|
103
103
|
return t.length < 2 ? "0" + t : t;
|
|
104
|
+
}, he = ({ r: e, g: t, b: n, a: r }) => {
|
|
105
|
+
let i = r < 1 ? G(z(r * 255)) : "";
|
|
106
|
+
return "#" + G(e) + G(t) + G(n) + i;
|
|
104
107
|
}, ge = ({ r: e, g: t, b: n, a: r }) => {
|
|
105
|
-
let i = r < 1 ? U(z(r * 255)) : "";
|
|
106
|
-
return "#" + U(e) + U(t) + U(n) + i;
|
|
107
|
-
}, W = ({ r: e, g: t, b: n, a: r }) => {
|
|
108
108
|
let i = Math.max(e, t, n), a = i - Math.min(e, t, n), o = a ? i === e ? (t - n) / a : i === t ? 2 + (n - e) / a : 4 + (e - t) / a : 0;
|
|
109
109
|
return {
|
|
110
110
|
h: z(60 * (o < 0 ? o + 6 : o)),
|
|
@@ -112,57 +112,57 @@ var I = M({
|
|
|
112
112
|
v: z(i / 255 * 100),
|
|
113
113
|
a: r
|
|
114
114
|
};
|
|
115
|
-
},
|
|
115
|
+
}, _e = (e, t) => {
|
|
116
116
|
if (e === t) return !0;
|
|
117
117
|
for (let n in e) if (e[n] !== t[n]) return !1;
|
|
118
118
|
return !0;
|
|
119
|
-
},
|
|
120
|
-
let t =
|
|
121
|
-
return t || (t = document.createElement("template"), t.innerHTML = e,
|
|
122
|
-
},
|
|
119
|
+
}, ve = (e, t) => e.toLowerCase() === t.toLowerCase() || _e(V(e), V(t)), K = {}, q = (e) => {
|
|
120
|
+
let t = K[e];
|
|
121
|
+
return t || (t = document.createElement("template"), t.innerHTML = e, K[e] = t), t;
|
|
122
|
+
}, J = (e, t, n) => {
|
|
123
123
|
e.dispatchEvent(new CustomEvent(t, {
|
|
124
124
|
bubbles: !0,
|
|
125
125
|
detail: n
|
|
126
126
|
}));
|
|
127
|
-
},
|
|
128
|
-
let n =
|
|
129
|
-
|
|
127
|
+
}, Y = !1, X = (e) => "touches" in e, ye = (e) => Y && !X(e) ? !1 : (Y ||= X(e), !0), be = (e, t) => {
|
|
128
|
+
let n = X(t) ? t.touches[0] : t, r = e.el.getBoundingClientRect();
|
|
129
|
+
J(e.el, "move", e.getMove({
|
|
130
130
|
x: R((n.pageX - (r.left + window.pageXOffset)) / r.width),
|
|
131
131
|
y: R((n.pageY - (r.top + window.pageYOffset)) / r.height)
|
|
132
132
|
}));
|
|
133
|
-
},
|
|
133
|
+
}, Z = (e, t) => {
|
|
134
134
|
let n = t.keyCode;
|
|
135
|
-
n > 40 || e.xy && n < 37 || n < 33 || (t.preventDefault(),
|
|
135
|
+
n > 40 || e.xy && n < 37 || n < 33 || (t.preventDefault(), J(e.el, "move", e.getMove({
|
|
136
136
|
x: n === 39 ? .01 : n === 37 ? -.01 : n === 34 ? .05 : n === 33 ? -.05 : n === 35 ? 1 : n === 36 ? -1 : 0,
|
|
137
137
|
y: n === 40 ? .01 : n === 38 ? -.01 : 0
|
|
138
138
|
}, !0)));
|
|
139
|
-
},
|
|
139
|
+
}, xe = class {
|
|
140
140
|
constructor(e, t, n, r) {
|
|
141
|
-
let i =
|
|
141
|
+
let i = q(`<div role="slider" tabindex="0" part="${t}" ${n}><div part="${t}-pointer"></div></div>`);
|
|
142
142
|
e.appendChild(i.content.cloneNode(!0));
|
|
143
143
|
let a = e.querySelector(`[part=${t}]`);
|
|
144
144
|
a.addEventListener("mousedown", this), a.addEventListener("touchstart", this), a.addEventListener("keydown", this), this.el = a, this.xy = r, this.nodes = [a.firstChild, a];
|
|
145
145
|
}
|
|
146
146
|
set dragging(e) {
|
|
147
147
|
let t = e ? document.addEventListener : document.removeEventListener;
|
|
148
|
-
t(
|
|
148
|
+
t(Y ? "touchmove" : "mousemove", this), t(Y ? "touchend" : "mouseup", this);
|
|
149
149
|
}
|
|
150
150
|
handleEvent(e) {
|
|
151
151
|
switch (e.type) {
|
|
152
152
|
case "mousedown":
|
|
153
153
|
case "touchstart":
|
|
154
|
-
if (e.preventDefault(), !
|
|
155
|
-
this.el.focus(),
|
|
154
|
+
if (e.preventDefault(), !ye(e) || !Y && e.button != 0) return;
|
|
155
|
+
this.el.focus(), be(this, e), this.dragging = !0;
|
|
156
156
|
break;
|
|
157
157
|
case "mousemove":
|
|
158
158
|
case "touchmove":
|
|
159
|
-
e.preventDefault(),
|
|
159
|
+
e.preventDefault(), be(this, e);
|
|
160
160
|
break;
|
|
161
161
|
case "mouseup":
|
|
162
162
|
case "touchend":
|
|
163
163
|
this.dragging = !1;
|
|
164
164
|
break;
|
|
165
|
-
case "keydown":
|
|
165
|
+
case "keydown": Z(this, e);
|
|
166
166
|
}
|
|
167
167
|
}
|
|
168
168
|
style(e) {
|
|
@@ -170,14 +170,14 @@ var I = M({
|
|
|
170
170
|
for (let n in e) this.nodes[t].style.setProperty(n, e[n]);
|
|
171
171
|
});
|
|
172
172
|
}
|
|
173
|
-
},
|
|
173
|
+
}, Se = class extends xe {
|
|
174
174
|
constructor(e) {
|
|
175
175
|
super(e, "hue", "aria-label=\"Hue\" aria-valuemin=\"0\" aria-valuemax=\"360\"", !1);
|
|
176
176
|
}
|
|
177
177
|
update({ h: e }) {
|
|
178
178
|
this.h = e, this.style([{
|
|
179
179
|
left: `${e / 360 * 100}%`,
|
|
180
|
-
color:
|
|
180
|
+
color: W({
|
|
181
181
|
h: e,
|
|
182
182
|
s: 100,
|
|
183
183
|
v: 100,
|
|
@@ -188,7 +188,7 @@ var I = M({
|
|
|
188
188
|
getMove(e, t) {
|
|
189
189
|
return { h: t ? R(this.h + e.x * 360, 0, 360) : 360 * e.x };
|
|
190
190
|
}
|
|
191
|
-
},
|
|
191
|
+
}, Ce = class extends xe {
|
|
192
192
|
constructor(e) {
|
|
193
193
|
super(e, "saturation", "aria-label=\"Color\"", !0);
|
|
194
194
|
}
|
|
@@ -196,8 +196,8 @@ var I = M({
|
|
|
196
196
|
this.hsva = e, this.style([{
|
|
197
197
|
top: `${100 - e.v}%`,
|
|
198
198
|
left: `${e.s}%`,
|
|
199
|
-
color:
|
|
200
|
-
}, { "background-color":
|
|
199
|
+
color: W(e)
|
|
200
|
+
}, { "background-color": W({
|
|
201
201
|
h: e.h,
|
|
202
202
|
s: 100,
|
|
203
203
|
v: 100,
|
|
@@ -210,33 +210,33 @@ var I = M({
|
|
|
210
210
|
v: t ? R(this.hsva.v - e.y * 100, 0, 100) : Math.round(100 - e.y * 100)
|
|
211
211
|
};
|
|
212
212
|
}
|
|
213
|
-
},
|
|
213
|
+
}, we = ":host{display:flex;flex-direction:column;position:relative;width:200px;height:200px;user-select:none;-webkit-user-select:none;cursor:default}:host([hidden]){display:none!important}[role=slider]{position:relative;touch-action:none;user-select:none;-webkit-user-select:none;outline:0}[role=slider]:last-child{border-radius:0 0 8px 8px}[part$=pointer]{position:absolute;z-index:1;box-sizing:border-box;width:28px;height:28px;display:flex;place-content:center center;transform:translate(-50%,-50%);background-color:#fff;border:2px solid #fff;border-radius:50%;box-shadow:0 2px 4px rgba(0,0,0,.2)}[part$=pointer]::after{content:\"\";width:100%;height:100%;border-radius:inherit;background-color:currentColor}[role=slider]:focus [part$=pointer]{transform:translate(-50%,-50%) scale(1.1)}", Te = "[part=hue]{flex:0 0 24px;background:linear-gradient(to right,red 0,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,red 100%)}[part=hue-pointer]{top:50%;z-index:2}", Ee = "[part=saturation]{flex-grow:1;border-color:transparent;border-bottom:12px solid #000;border-radius:8px 8px 0 0;background-image:linear-gradient(to top,#000,transparent),linear-gradient(to right,#fff,rgba(255,255,255,0));box-shadow:inset 0 0 0 1px rgba(0,0,0,.05)}[part=saturation-pointer]{z-index:3}", Q = Symbol("same"), De = Symbol("color"), Oe = Symbol("hsva"), $ = Symbol("update"), ke = Symbol("parts"), Ae = Symbol("css"), je = Symbol("sliders"), Me = class extends HTMLElement {
|
|
214
214
|
static get observedAttributes() {
|
|
215
215
|
return ["color"];
|
|
216
216
|
}
|
|
217
|
-
get [
|
|
217
|
+
get [Ae]() {
|
|
218
218
|
return [
|
|
219
|
-
Ce,
|
|
220
219
|
we,
|
|
221
|
-
Te
|
|
220
|
+
Te,
|
|
221
|
+
Ee
|
|
222
222
|
];
|
|
223
223
|
}
|
|
224
|
-
get [
|
|
225
|
-
return [
|
|
224
|
+
get [je]() {
|
|
225
|
+
return [Ce, Se];
|
|
226
226
|
}
|
|
227
227
|
get color() {
|
|
228
|
-
return this[
|
|
228
|
+
return this[De];
|
|
229
229
|
}
|
|
230
230
|
set color(e) {
|
|
231
231
|
if (!this[Q](e)) {
|
|
232
232
|
let t = this.colorModel.toHsva(e);
|
|
233
|
-
this[$](t), this[
|
|
233
|
+
this[$](t), this[De] = e;
|
|
234
234
|
}
|
|
235
235
|
}
|
|
236
236
|
constructor() {
|
|
237
237
|
super();
|
|
238
|
-
let e =
|
|
239
|
-
t.appendChild(e.content.cloneNode(!0)), t.addEventListener("move", this), this[
|
|
238
|
+
let e = q(`<style>${this[Ae].join("")}</style>`), t = this.attachShadow({ mode: "open" });
|
|
239
|
+
t.appendChild(e.content.cloneNode(!0)), t.addEventListener("move", this), this[ke] = this[je].map((e) => new e(t));
|
|
240
240
|
}
|
|
241
241
|
connectedCallback() {
|
|
242
242
|
if (this.hasOwnProperty("color")) {
|
|
@@ -249,72 +249,76 @@ var I = M({
|
|
|
249
249
|
this[Q](r) || (this.color = r);
|
|
250
250
|
}
|
|
251
251
|
handleEvent(e) {
|
|
252
|
-
let t = this[
|
|
252
|
+
let t = this[Oe], n = {
|
|
253
253
|
...t,
|
|
254
254
|
...e.detail
|
|
255
255
|
};
|
|
256
256
|
this[$](n);
|
|
257
257
|
let r;
|
|
258
|
-
!
|
|
258
|
+
!_e(n, t) && !this[Q](r = this.colorModel.fromHsva(n)) && (this[De] = r, J(this, "color-changed", { value: r }));
|
|
259
259
|
}
|
|
260
260
|
[Q](e) {
|
|
261
261
|
return this.color && this.colorModel.equal(e, this.color);
|
|
262
262
|
}
|
|
263
263
|
[$](e) {
|
|
264
|
-
this[
|
|
264
|
+
this[Oe] = e, this[ke].forEach((t) => t.update(e));
|
|
265
265
|
}
|
|
266
|
-
},
|
|
266
|
+
}, Ne = {
|
|
267
267
|
defaultColor: "#000",
|
|
268
268
|
toHsva: B,
|
|
269
|
-
fromHsva: ({ h: e, s: t, v: n }) =>
|
|
269
|
+
fromHsva: ({ h: e, s: t, v: n }) => H({
|
|
270
270
|
h: e,
|
|
271
271
|
s: t,
|
|
272
272
|
v: n,
|
|
273
273
|
a: 1
|
|
274
274
|
}),
|
|
275
|
-
equal:
|
|
275
|
+
equal: ve,
|
|
276
276
|
fromAttr: (e) => e
|
|
277
|
-
},
|
|
277
|
+
}, Pe = class extends Me {
|
|
278
278
|
get colorModel() {
|
|
279
|
-
return
|
|
279
|
+
return Ne;
|
|
280
280
|
}
|
|
281
|
-
},
|
|
282
|
-
customElements.define("hex-color-picker",
|
|
281
|
+
}, Fe = class extends Pe {};
|
|
282
|
+
customElements.define("hex-color-picker", Fe);
|
|
283
283
|
//#endregion
|
|
284
284
|
//#region src/components/ColorPicker.vue?vue&type=script&setup=true&lang.ts
|
|
285
|
-
var
|
|
285
|
+
var Ie = [
|
|
286
286
|
"disabled",
|
|
287
287
|
"aria-label",
|
|
288
288
|
"title",
|
|
289
289
|
"aria-expanded"
|
|
290
|
-
],
|
|
290
|
+
], Le = {
|
|
291
291
|
key: 0,
|
|
292
292
|
class: "tpl:relative tpl:flex-1"
|
|
293
|
-
},
|
|
293
|
+
}, Re = [
|
|
294
294
|
"value",
|
|
295
295
|
"placeholder",
|
|
296
296
|
"disabled",
|
|
297
297
|
"aria-label"
|
|
298
|
-
],
|
|
298
|
+
], ze = ["aria-label", "title"], Be = ["data-tpl-theme"], Ve = [
|
|
299
|
+
"aria-pressed",
|
|
300
|
+
"aria-label",
|
|
301
|
+
"title"
|
|
302
|
+
], He = ["aria-label"], Ue = [
|
|
299
303
|
"aria-label",
|
|
300
304
|
"title",
|
|
301
305
|
"aria-checked",
|
|
302
306
|
"tabindex"
|
|
303
|
-
],
|
|
307
|
+
], We = [
|
|
304
308
|
"aria-label",
|
|
305
309
|
"title",
|
|
306
310
|
"aria-checked",
|
|
307
311
|
"tabindex",
|
|
308
312
|
"onClick"
|
|
309
|
-
],
|
|
310
|
-
key:
|
|
313
|
+
], Ge = ["color", "aria-label"], Ke = {
|
|
314
|
+
key: 3,
|
|
311
315
|
class: "tpl:relative tpl:mt-2"
|
|
312
|
-
},
|
|
316
|
+
}, qe = [
|
|
313
317
|
"value",
|
|
314
318
|
"placeholder",
|
|
315
319
|
"disabled",
|
|
316
320
|
"aria-label"
|
|
317
|
-
],
|
|
321
|
+
], Je = ["aria-label", "title"], Ye = /* @__PURE__ */ C({
|
|
318
322
|
__name: "ColorPicker",
|
|
319
323
|
props: {
|
|
320
324
|
modelValue: {},
|
|
@@ -334,37 +338,41 @@ var Fe = [
|
|
|
334
338
|
allowCustom: {
|
|
335
339
|
type: Boolean,
|
|
336
340
|
default: void 0
|
|
341
|
+
},
|
|
342
|
+
allowTransparent: {
|
|
343
|
+
type: Boolean,
|
|
344
|
+
default: !1
|
|
337
345
|
}
|
|
338
346
|
},
|
|
339
347
|
emits: ["update:modelValue"],
|
|
340
348
|
setup(r, { emit: i }) {
|
|
341
|
-
let a = r, c = i, { t: d } = j(),
|
|
342
|
-
ne(
|
|
343
|
-
|
|
344
|
-
}, { ignore: [
|
|
345
|
-
let
|
|
346
|
-
function
|
|
347
|
-
return
|
|
349
|
+
let a = r, c = i, { t: d } = j(), C = l(!1), T = l(), E = l(), D = l(!1);
|
|
350
|
+
ne(T, () => {
|
|
351
|
+
C.value = !1;
|
|
352
|
+
}, { ignore: [E] });
|
|
353
|
+
let O = x(() => !a.modelValue), k = x(() => a.modelValue.trim().toLowerCase() === "transparent"), A = x(() => oe(a.modelValue)), N = x(() => (a.modelValue ? M(a.modelValue) : null) || (M(a.seedColor) ?? "#ffffff")), P = x(() => !a.disabled && !O.value), F = s(ae, ce), I = x(() => [...new Set(a.presets ?? F.presets)]), pe = x(() => a.allowCustom ?? F.allowCustom), L = x(() => I.value.length > 0), R = x(() => pe.value || !L.value), z = x(() => le(a.modelValue));
|
|
354
|
+
function B(e) {
|
|
355
|
+
return z.value !== "" && le(e) === z.value;
|
|
348
356
|
}
|
|
349
|
-
function
|
|
357
|
+
function V(e) {
|
|
350
358
|
c("update:modelValue", e);
|
|
351
359
|
}
|
|
352
|
-
let
|
|
353
|
-
function
|
|
354
|
-
return
|
|
360
|
+
let H = x(() => L.value && !R.value);
|
|
361
|
+
function U(e) {
|
|
362
|
+
return H.value ? e + 1 : e;
|
|
355
363
|
}
|
|
356
|
-
let
|
|
357
|
-
if (
|
|
358
|
-
let e =
|
|
359
|
-
return e === -1 ? 0 :
|
|
364
|
+
let W = x(() => {
|
|
365
|
+
if (H.value && O.value) return 0;
|
|
366
|
+
let e = I.value.findIndex((e) => B(e));
|
|
367
|
+
return e === -1 ? 0 : U(e);
|
|
360
368
|
});
|
|
361
|
-
function
|
|
362
|
-
return
|
|
369
|
+
function me() {
|
|
370
|
+
return W.value === 0 ? 0 : -1;
|
|
363
371
|
}
|
|
364
|
-
function
|
|
365
|
-
return
|
|
372
|
+
function G(e) {
|
|
373
|
+
return U(e) === W.value ? 0 : -1;
|
|
366
374
|
}
|
|
367
|
-
function
|
|
375
|
+
function he(e) {
|
|
368
376
|
if (![
|
|
369
377
|
"ArrowRight",
|
|
370
378
|
"ArrowDown",
|
|
@@ -374,83 +382,89 @@ var Fe = [
|
|
|
374
382
|
let t = e.currentTarget, n = Array.from(t.querySelectorAll("[role=\"radio\"]")), r = e.target.closest("[role=\"radio\"]"), i = r ? n.indexOf(r) : -1;
|
|
375
383
|
i !== -1 && (n[(i + (e.key === "ArrowRight" || e.key === "ArrowDown" ? 1 : -1) + n.length) % n.length]?.focus(), e.preventDefault());
|
|
376
384
|
}
|
|
377
|
-
function
|
|
378
|
-
|
|
385
|
+
function ge(e) {
|
|
386
|
+
D.value = !0, c("update:modelValue", e.detail.value);
|
|
379
387
|
}
|
|
380
|
-
function
|
|
381
|
-
|
|
388
|
+
function _e() {
|
|
389
|
+
D.value = !1;
|
|
382
390
|
}
|
|
383
|
-
function
|
|
384
|
-
!
|
|
391
|
+
function ve() {
|
|
392
|
+
!D.value && O.value && c("update:modelValue", N.value);
|
|
385
393
|
}
|
|
386
|
-
function
|
|
394
|
+
function K(e) {
|
|
387
395
|
c("update:modelValue", e.target.value);
|
|
388
396
|
}
|
|
389
|
-
function
|
|
397
|
+
function q() {
|
|
390
398
|
c("update:modelValue", "");
|
|
391
399
|
}
|
|
392
|
-
|
|
400
|
+
function J() {
|
|
401
|
+
c("update:modelValue", "transparent");
|
|
402
|
+
}
|
|
403
|
+
let Y = se(), { toLocal: X } = ue(), ye = s(re, null), be = s(ie, null), Z = l({
|
|
393
404
|
top: 0,
|
|
394
405
|
left: 0
|
|
395
406
|
});
|
|
396
|
-
function
|
|
407
|
+
function xe() {
|
|
397
408
|
if (!a.disabled) {
|
|
398
|
-
if (!
|
|
399
|
-
let e =
|
|
409
|
+
if (!C.value) {
|
|
410
|
+
let e = E.value?.getBoundingClientRect();
|
|
400
411
|
if (e) {
|
|
401
412
|
let t = e.bottom + 8 + 240 <= window.innerHeight ? e.bottom + 8 : Math.max(8, e.top - 240 - 8);
|
|
402
|
-
|
|
413
|
+
Z.value = X({
|
|
403
414
|
top: t,
|
|
404
415
|
left: e.left
|
|
405
416
|
});
|
|
406
417
|
}
|
|
407
418
|
}
|
|
408
|
-
|
|
419
|
+
C.value = !C.value;
|
|
409
420
|
}
|
|
410
421
|
}
|
|
411
422
|
return (i, a) => (e(), p("div", { class: v(["tpl:flex tpl:items-center tpl:gap-2 tpl:relative", r.disabled && "tpl:opacity-60 tpl:cursor-not-allowed"]) }, [
|
|
412
423
|
f("button", {
|
|
413
424
|
ref_key: "swatchRef",
|
|
414
|
-
ref:
|
|
425
|
+
ref: E,
|
|
415
426
|
type: "button",
|
|
416
427
|
disabled: r.disabled,
|
|
417
428
|
"aria-label": r.ariaLabel || u(d).colorPicker.pickColor,
|
|
418
429
|
title: r.ariaLabel || void 0,
|
|
419
|
-
"aria-expanded":
|
|
430
|
+
"aria-expanded": C.value,
|
|
420
431
|
class: v([
|
|
421
432
|
"tpl:shrink-0 tpl:rounded-[var(--tpl-radius-sm)] tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:p-0.5 tpl:transition-all tpl:duration-[120ms] tpl:ease-[cubic-bezier(0.16,1,0.3,1)]",
|
|
422
433
|
r.disabled ? "tpl:cursor-not-allowed" : "tpl:cursor-pointer",
|
|
423
|
-
|
|
434
|
+
C.value ? "tpl:border-[var(--tpl-primary)] tpl:shadow-[var(--tpl-ring)]" : !r.disabled && "tpl:hover:border-[var(--tpl-text-dim)]",
|
|
424
435
|
r.size === "sm" ? "tpl:size-8" : "tpl:size-10"
|
|
425
436
|
]),
|
|
426
|
-
onClick:
|
|
437
|
+
onClick: xe
|
|
427
438
|
}, [f("span", {
|
|
428
|
-
class: v(["tpl:block tpl:size-full tpl:rounded-[calc(var(--tpl-radius-sm)-2px)]", {
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
439
|
+
class: v(["tpl:block tpl:size-full tpl:rounded-[calc(var(--tpl-radius-sm)-2px)]", {
|
|
440
|
+
"tpl-color-swatch-empty": O.value,
|
|
441
|
+
"tpl-color-swatch-transparent": k.value
|
|
442
|
+
}]),
|
|
443
|
+
style: t(O.value || k.value ? void 0 : { backgroundColor: A.value })
|
|
444
|
+
}, null, 6)], 10, Ie),
|
|
445
|
+
!r.swatchOnly && R.value ? (e(), p("div", Le, [f("input", {
|
|
432
446
|
type: "text",
|
|
433
447
|
class: v([u(fe), "tpl:w-full"]),
|
|
434
|
-
style: t(
|
|
435
|
-
value:
|
|
448
|
+
style: t(P.value ? { paddingRight: "2.25rem" } : void 0),
|
|
449
|
+
value: A.value,
|
|
436
450
|
placeholder: r.placeholder || u(d).colorPicker.notSet,
|
|
437
451
|
disabled: r.disabled,
|
|
438
452
|
"aria-label": u(d).colorPicker.hexValue,
|
|
439
|
-
onInput:
|
|
440
|
-
}, null, 46,
|
|
453
|
+
onInput: K
|
|
454
|
+
}, null, 46, Re), P.value ? (e(), p("button", {
|
|
441
455
|
key: 0,
|
|
442
456
|
type: "button",
|
|
443
457
|
"aria-label": u(d).colorPicker.clear,
|
|
444
458
|
title: u(d).colorPicker.clear,
|
|
445
459
|
class: "tpl:absolute tpl:right-2 tpl:top-1/2 tpl:flex tpl:size-6 tpl:-translate-y-1/2 tpl:cursor-pointer tpl:items-center tpl:justify-center tpl:rounded-[var(--tpl-radius-sm)] tpl:text-[var(--tpl-text-dim)] tpl:transition-colors 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)]",
|
|
446
|
-
onClick:
|
|
447
|
-
}, [m(u(
|
|
460
|
+
onClick: q
|
|
461
|
+
}, [m(u(de), {
|
|
448
462
|
size: 14,
|
|
449
463
|
"stroke-width": 1.5
|
|
450
|
-
})], 8,
|
|
464
|
+
})], 8, ze)) : S("", !0)])) : S("", !0),
|
|
451
465
|
(e(), y(g, {
|
|
452
|
-
to: u(
|
|
453
|
-
disabled: !u(
|
|
466
|
+
to: u(Y),
|
|
467
|
+
disabled: !u(Y)
|
|
454
468
|
}, [m(te, {
|
|
455
469
|
"enter-active-class": "tpl:transition-all tpl:duration-[120ms] tpl:ease-[cubic-bezier(0.16,1,0.3,1)]",
|
|
456
470
|
"enter-from-class": "tpl:opacity-0 tpl:scale-95 tpl:translate-y-1",
|
|
@@ -459,93 +473,103 @@ var Fe = [
|
|
|
459
473
|
"leave-from-class": "tpl:opacity-100 tpl:scale-100 tpl:translate-y-0",
|
|
460
474
|
"leave-to-class": "tpl:opacity-0 tpl:scale-95 tpl:translate-y-1"
|
|
461
475
|
}, {
|
|
462
|
-
default: n(() => [
|
|
476
|
+
default: n(() => [C.value ? (e(), p("div", {
|
|
463
477
|
key: 0,
|
|
464
478
|
ref_key: "popoverRef",
|
|
465
|
-
ref:
|
|
466
|
-
"data-tpl-theme": u(
|
|
479
|
+
ref: T,
|
|
480
|
+
"data-tpl-theme": u(be),
|
|
467
481
|
class: "tpl-color-popover tpl:absolute tpl:rounded-[var(--tpl-radius)] tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:p-3 tpl:shadow-[var(--tpl-shadow-lg)]",
|
|
468
482
|
style: t({
|
|
469
|
-
top: `${
|
|
470
|
-
left: `${
|
|
471
|
-
...u(
|
|
483
|
+
top: `${Z.value.top}px`,
|
|
484
|
+
left: `${Z.value.left}px`,
|
|
485
|
+
...u(ye)
|
|
472
486
|
})
|
|
473
487
|
}, [
|
|
474
|
-
|
|
488
|
+
r.allowTransparent ? (e(), p("button", {
|
|
475
489
|
key: 0,
|
|
490
|
+
type: "button",
|
|
491
|
+
"data-testid": "color-picker-transparent",
|
|
492
|
+
"aria-pressed": k.value,
|
|
493
|
+
"aria-label": u(d).colorPicker.transparent,
|
|
494
|
+
title: u(d).colorPicker.transparent,
|
|
495
|
+
class: v(["tpl:mb-2 tpl:flex tpl:w-full tpl:items-center tpl:gap-2 tpl:rounded-[var(--tpl-radius-sm)] tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:px-2 tpl:py-1 tpl:text-left tpl:text-xs tpl:text-[var(--tpl-text)] tpl:outline-none tpl:transition-all tpl:duration-[120ms] tpl:ease-[cubic-bezier(0.16,1,0.3,1)] tpl:focus-visible:ring-2 tpl:focus-visible:ring-[var(--tpl-primary)]", k.value ? "tpl:ring-2 tpl:ring-[var(--tpl-primary)] tpl:ring-offset-1 tpl:ring-offset-[var(--tpl-bg-elevated)]" : "tpl:hover:border-[var(--tpl-text-dim)]"]),
|
|
496
|
+
onClick: J
|
|
497
|
+
}, [a[2] ||= f("span", { class: "tpl-color-swatch-transparent tpl:size-4 tpl:shrink-0 tpl:rounded-[var(--tpl-radius-sm)] tpl:border tpl:border-[var(--tpl-border)]" }, null, -1), h(" " + _(u(d).colorPicker.transparent), 1)], 10, Ve)) : S("", !0),
|
|
498
|
+
L.value ? (e(), p("div", {
|
|
499
|
+
key: 1,
|
|
476
500
|
role: "radiogroup",
|
|
477
501
|
"aria-label": u(d).colorPicker.presetColors,
|
|
478
|
-
class: v(["tpl:flex tpl:flex-wrap tpl:gap-1.5",
|
|
479
|
-
onKeydown:
|
|
480
|
-
}, [
|
|
502
|
+
class: v(["tpl:flex tpl:flex-wrap tpl:gap-1.5", R.value && "tpl:mb-2"]),
|
|
503
|
+
onKeydown: he
|
|
504
|
+
}, [H.value ? (e(), p("button", {
|
|
481
505
|
key: 0,
|
|
482
506
|
type: "button",
|
|
483
507
|
role: "radio",
|
|
484
508
|
"aria-label": u(d).colorPicker.clear,
|
|
485
509
|
title: u(d).colorPicker.clear,
|
|
486
|
-
"aria-checked":
|
|
487
|
-
tabindex:
|
|
488
|
-
class: v(["tpl-color-swatch-empty tpl:size-6 tpl:shrink-0 tpl:cursor-pointer tpl:rounded-[var(--tpl-radius-sm)] tpl:border tpl:border-[var(--tpl-border)] tpl:outline-none tpl:transition-all tpl:duration-[120ms] tpl:ease-[cubic-bezier(0.16,1,0.3,1)] tpl:focus-visible:ring-2 tpl:focus-visible:ring-[var(--tpl-primary)] tpl:focus-visible:ring-offset-1 tpl:focus-visible:ring-offset-[var(--tpl-bg-elevated)]",
|
|
489
|
-
onClick:
|
|
490
|
-
}, null, 10,
|
|
510
|
+
"aria-checked": O.value,
|
|
511
|
+
tabindex: me(),
|
|
512
|
+
class: v(["tpl-color-swatch-empty tpl:size-6 tpl:shrink-0 tpl:cursor-pointer tpl:rounded-[var(--tpl-radius-sm)] tpl:border tpl:border-[var(--tpl-border)] tpl:outline-none tpl:transition-all tpl:duration-[120ms] tpl:ease-[cubic-bezier(0.16,1,0.3,1)] tpl:focus-visible:ring-2 tpl:focus-visible:ring-[var(--tpl-primary)] tpl:focus-visible:ring-offset-1 tpl:focus-visible:ring-offset-[var(--tpl-bg-elevated)]", O.value ? "tpl:ring-2 tpl:ring-[var(--tpl-primary)] tpl:ring-offset-1 tpl:ring-offset-[var(--tpl-bg-elevated)]" : "tpl:hover:border-[var(--tpl-text-dim)]"]),
|
|
513
|
+
onClick: q
|
|
514
|
+
}, null, 10, Ue)) : S("", !0), (e(!0), p(b, null, o(I.value, (n, r) => (e(), p("button", {
|
|
491
515
|
key: n,
|
|
492
516
|
type: "button",
|
|
493
517
|
role: "radio",
|
|
494
518
|
"aria-label": n,
|
|
495
519
|
title: n,
|
|
496
|
-
"aria-checked":
|
|
497
|
-
tabindex:
|
|
520
|
+
"aria-checked": B(n),
|
|
521
|
+
tabindex: G(r),
|
|
498
522
|
style: t({ backgroundColor: n }),
|
|
499
|
-
class: v(["tpl:size-6 tpl:shrink-0 tpl:cursor-pointer tpl:rounded-[var(--tpl-radius-sm)] tpl:border tpl:border-[var(--tpl-border)] tpl:outline-none tpl:transition-all tpl:duration-[120ms] tpl:ease-[cubic-bezier(0.16,1,0.3,1)] tpl:focus-visible:ring-2 tpl:focus-visible:ring-[var(--tpl-primary)] tpl:focus-visible:ring-offset-1 tpl:focus-visible:ring-offset-[var(--tpl-bg-elevated)]",
|
|
500
|
-
onClick: (e) =>
|
|
501
|
-
}, null, 14,
|
|
502
|
-
|
|
503
|
-
key:
|
|
504
|
-
color:
|
|
523
|
+
class: v(["tpl:size-6 tpl:shrink-0 tpl:cursor-pointer tpl:rounded-[var(--tpl-radius-sm)] tpl:border tpl:border-[var(--tpl-border)] tpl:outline-none tpl:transition-all tpl:duration-[120ms] tpl:ease-[cubic-bezier(0.16,1,0.3,1)] tpl:focus-visible:ring-2 tpl:focus-visible:ring-[var(--tpl-primary)] tpl:focus-visible:ring-offset-1 tpl:focus-visible:ring-offset-[var(--tpl-bg-elevated)]", B(n) ? "tpl:ring-2 tpl:ring-[var(--tpl-primary)] tpl:ring-offset-1 tpl:ring-offset-[var(--tpl-bg-elevated)]" : "tpl:hover:border-[var(--tpl-text-dim)]"]),
|
|
524
|
+
onClick: (e) => V(n)
|
|
525
|
+
}, null, 14, We))), 128))], 42, He)) : S("", !0),
|
|
526
|
+
R.value ? (e(), p("hex-color-picker", {
|
|
527
|
+
key: 2,
|
|
528
|
+
color: N.value,
|
|
505
529
|
"aria-label": u(d).colorPicker.pickColor,
|
|
506
|
-
onColorChanged:
|
|
507
|
-
onPointerdown:
|
|
508
|
-
onPointerup:
|
|
509
|
-
onKeydown: a[0] ||= ee((e) =>
|
|
510
|
-
}, null, 40,
|
|
511
|
-
r.swatchOnly &&
|
|
530
|
+
onColorChanged: ge,
|
|
531
|
+
onPointerdown: _e,
|
|
532
|
+
onPointerup: ve,
|
|
533
|
+
onKeydown: a[0] ||= ee((e) => C.value = !1, ["escape"])
|
|
534
|
+
}, null, 40, Ge)) : S("", !0),
|
|
535
|
+
r.swatchOnly && R.value ? (e(), p("div", Ke, [f("input", {
|
|
512
536
|
type: "text",
|
|
513
537
|
class: v([u(fe), "tpl:w-full"]),
|
|
514
|
-
style: t(
|
|
515
|
-
value:
|
|
538
|
+
style: t(P.value ? { paddingRight: "2.25rem" } : void 0),
|
|
539
|
+
value: A.value,
|
|
516
540
|
placeholder: r.placeholder || u(d).colorPicker.notSet,
|
|
517
541
|
disabled: r.disabled,
|
|
518
542
|
"aria-label": u(d).colorPicker.hexValue,
|
|
519
|
-
onChange:
|
|
543
|
+
onChange: K,
|
|
520
544
|
onKeydown: a[1] ||= ee(w((e) => e.target.blur(), ["prevent"]), ["enter"])
|
|
521
|
-
}, null, 46,
|
|
545
|
+
}, null, 46, qe), P.value ? (e(), p("button", {
|
|
522
546
|
key: 0,
|
|
523
547
|
type: "button",
|
|
524
548
|
"aria-label": u(d).colorPicker.clear,
|
|
525
549
|
title: u(d).colorPicker.clear,
|
|
526
550
|
class: "tpl:absolute tpl:right-2 tpl:top-1/2 tpl:flex tpl:size-6 tpl:-translate-y-1/2 tpl:cursor-pointer tpl:items-center tpl:justify-center tpl:rounded-[var(--tpl-radius-sm)] tpl:text-[var(--tpl-text-dim)] tpl:transition-colors 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)]",
|
|
527
|
-
onClick:
|
|
528
|
-
}, [m(u(
|
|
551
|
+
onClick: q
|
|
552
|
+
}, [m(u(de), {
|
|
529
553
|
size: 14,
|
|
530
554
|
"stroke-width": 1.5
|
|
531
|
-
})], 8,
|
|
532
|
-
], 12,
|
|
555
|
+
})], 8, Je)) : S("", !0)])) : S("", !0)
|
|
556
|
+
], 12, Be)) : S("", !0)]),
|
|
533
557
|
_: 1
|
|
534
558
|
})], 8, ["to", "disabled"]))
|
|
535
559
|
], 2));
|
|
536
560
|
}
|
|
537
|
-
}),
|
|
561
|
+
}), Xe = ["id"], Ze = {
|
|
538
562
|
key: 0,
|
|
539
563
|
class: "tpl:px-3 tpl:py-2 tpl:text-xs tpl:text-[var(--tpl-text-dim)]",
|
|
540
564
|
"data-testid": "merge-tag-suggestion-empty"
|
|
541
|
-
},
|
|
565
|
+
}, Qe = [
|
|
542
566
|
"id",
|
|
543
567
|
"aria-selected",
|
|
544
568
|
"data-selected",
|
|
545
569
|
"data-merge-tag-value",
|
|
546
570
|
"onMousedown",
|
|
547
571
|
"onMousemove"
|
|
548
|
-
],
|
|
572
|
+
], $e = { class: "tpl:font-medium" }, et = { class: "tpl:text-[var(--tpl-text-dim)] tpl:font-mono" }, tt = /* @__PURE__ */ C({
|
|
549
573
|
__name: "MergeTagSuggestionList",
|
|
550
574
|
props: {
|
|
551
575
|
items: {},
|
|
@@ -564,7 +588,7 @@ var Fe = [
|
|
|
564
588
|
class: "tpl:min-w-[200px] tpl:max-w-[320px] tpl:max-h-[50vh] tpl:overflow-y-auto tpl:rounded-[var(--tpl-radius)] tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:py-1 tpl:shadow-[var(--tpl-shadow-lg)]",
|
|
565
589
|
role: "listbox",
|
|
566
590
|
"data-testid": "merge-tag-suggestion-list"
|
|
567
|
-
}, [t.items.length === 0 ? (e(), p("div",
|
|
591
|
+
}, [t.items.length === 0 ? (e(), p("div", Ze, _(t.emptyText), 1)) : S("", !0), (e(!0), p(b, null, o(t.items, (i, a) => (e(), p("button", {
|
|
568
592
|
key: i.value,
|
|
569
593
|
id: r(a),
|
|
570
594
|
type: "button",
|
|
@@ -575,21 +599,21 @@ var Fe = [
|
|
|
575
599
|
class: v(["tpl:flex tpl:w-full tpl:flex-col tpl:items-start tpl:gap-0.5 tpl:px-3 tpl:py-1.5 tpl:text-left tpl:text-xs tpl:transition-colors", a === t.selectedIndex ? "tpl:bg-[var(--tpl-primary-light)] tpl:text-[var(--tpl-primary)]" : "tpl:text-[var(--tpl-text)] tpl:hover:bg-[var(--tpl-bg-hover)]"]),
|
|
576
600
|
onMousedown: w((e) => n.$emit("select", i), ["prevent", "stop"]),
|
|
577
601
|
onMousemove: (e) => a !== t.selectedIndex && n.$emit("hover", a)
|
|
578
|
-
}, [f("span",
|
|
602
|
+
}, [f("span", $e, _(i.label), 1), f("span", et, _(i.value), 1)], 42, Qe))), 128))], 8, Xe));
|
|
579
603
|
}
|
|
580
|
-
}),
|
|
581
|
-
function
|
|
604
|
+
}), nt = 10, rt = 0;
|
|
605
|
+
function it(e, t) {
|
|
582
606
|
let n = t.trim().toLowerCase();
|
|
583
|
-
return n === "" ? e.slice(0,
|
|
607
|
+
return n === "" ? e.slice(0, nt) : e.filter((e) => {
|
|
584
608
|
let t = e.label.toLowerCase(), r = e.value.toLowerCase();
|
|
585
609
|
return t.includes(n) || r.includes(n);
|
|
586
|
-
}).slice(0,
|
|
610
|
+
}).slice(0, nt);
|
|
587
611
|
}
|
|
588
|
-
function
|
|
612
|
+
function at(e, t, n, r) {
|
|
589
613
|
return t.length === 0 ? e.key === "Enter" || e.key === "Tab" : e.key === "ArrowDown" ? (n.value = (n.value + 1) % t.length, !0) : e.key === "ArrowUp" ? (n.value = (n.value - 1 + t.length) % t.length, !0) : e.key === "Enter" || e.key === "Tab" ? (r(t[n.value]), !0) : !1;
|
|
590
614
|
}
|
|
591
|
-
function
|
|
592
|
-
let n = null, r = null, i = null, a = l([]), o = l(0), s = null, c = `tpl-merge-tag-suggestion-${++
|
|
615
|
+
function ot(e, t) {
|
|
616
|
+
let n = null, r = null, i = null, a = l([]), o = l(0), s = null, c = `tpl-merge-tag-suggestion-${++rt}`, u = null, f = [], p = null;
|
|
593
617
|
function m() {
|
|
594
618
|
y(u?.() ?? null);
|
|
595
619
|
}
|
|
@@ -659,7 +683,7 @@ function it(e, t) {
|
|
|
659
683
|
return {
|
|
660
684
|
open: ({ items: l, getRect: f, anchorEl: p, onCommand: m }) => {
|
|
661
685
|
a.value = l, o.value = 0, s = m, r = document.createElement("div"), r.setAttribute("data-testid", "merge-tag-suggestion-popup"), i = p, b(r, p), (t?.value ?? document.body).appendChild(r), n = T({ render() {
|
|
662
|
-
return d(
|
|
686
|
+
return d(tt, {
|
|
663
687
|
items: a.value,
|
|
664
688
|
selectedIndex: o.value,
|
|
665
689
|
emptyText: e,
|
|
@@ -675,7 +699,7 @@ function it(e, t) {
|
|
|
675
699
|
a.value = e, o.value >= e.length && (o.value = 0), s = n, S(), u = t, h();
|
|
676
700
|
},
|
|
677
701
|
handleKeyDown: (e) => {
|
|
678
|
-
let t =
|
|
702
|
+
let t = at(e, a.value, o, C);
|
|
679
703
|
return t && S(), t;
|
|
680
704
|
},
|
|
681
705
|
close: () => {
|
|
@@ -686,7 +710,7 @@ function it(e, t) {
|
|
|
686
710
|
}
|
|
687
711
|
//#endregion
|
|
688
712
|
//#region src/utils/mergeTagTrigger.ts
|
|
689
|
-
function
|
|
713
|
+
function st(e, t, n, r) {
|
|
690
714
|
if (!n) return null;
|
|
691
715
|
let i = e.slice(0, t), a = i.lastIndexOf(n);
|
|
692
716
|
if (a === -1) return null;
|
|
@@ -699,8 +723,8 @@ function at(e, t, n, r) {
|
|
|
699
723
|
}
|
|
700
724
|
//#endregion
|
|
701
725
|
//#region src/utils/textFieldCaret.ts
|
|
702
|
-
var
|
|
703
|
-
function
|
|
726
|
+
var ct = /* @__PURE__ */ "boxSizing.width.borderTopWidth.borderRightWidth.borderBottomWidth.borderLeftWidth.borderStyle.paddingTop.paddingRight.paddingBottom.paddingLeft.fontStyle.fontVariant.fontWeight.fontStretch.fontSize.lineHeight.fontFamily.textAlign.textTransform.textIndent.letterSpacing.wordSpacing.tabSize.whiteSpace.wordWrap.wordBreak".split(".");
|
|
727
|
+
function lt(e, t, n) {
|
|
704
728
|
return {
|
|
705
729
|
left: e,
|
|
706
730
|
top: t,
|
|
@@ -713,7 +737,7 @@ function st(e, t, n) {
|
|
|
713
737
|
toJSON: () => ({})
|
|
714
738
|
};
|
|
715
739
|
}
|
|
716
|
-
function
|
|
740
|
+
function ut(e, t) {
|
|
717
741
|
let n = e.ownerDocument, r = n.defaultView;
|
|
718
742
|
if (!r) return null;
|
|
719
743
|
let i = e.tagName === "INPUT", a = r.getComputedStyle(e), o = n.createElement("div");
|
|
@@ -721,7 +745,7 @@ function ct(e, t) {
|
|
|
721
745
|
let s = o.style;
|
|
722
746
|
s.position = "absolute", s.visibility = "hidden", s.top = "0", s.left = "0", s.overflow = "hidden", s.whiteSpace = i ? "pre" : "pre-wrap", s.wordWrap = i ? "normal" : "break-word";
|
|
723
747
|
let c = s, l = a;
|
|
724
|
-
for (let e of
|
|
748
|
+
for (let e of ct) c[e] = l[e];
|
|
725
749
|
i && (s.width = "auto", s.whiteSpace = "pre");
|
|
726
750
|
let u = e.value, d = u.slice(0, t);
|
|
727
751
|
i && (d = d.replace(/\s/g, "\xA0")), o.textContent = d;
|
|
@@ -730,26 +754,26 @@ function ct(e, t) {
|
|
|
730
754
|
let p = f.offsetTop, m = f.offsetLeft;
|
|
731
755
|
n.body.removeChild(o);
|
|
732
756
|
let h = e.getBoundingClientRect(), g = parseFloat(a.borderTopWidth) || 0, _ = parseFloat(a.borderLeftWidth) || 0, v = parseFloat(a.lineHeight) || parseFloat(a.fontSize) || 0, y = h.left + m + _ - e.scrollLeft;
|
|
733
|
-
if (i) return
|
|
757
|
+
if (i) return lt(y, h.top, h.bottom);
|
|
734
758
|
let b = h.top + p + g - e.scrollTop;
|
|
735
|
-
return
|
|
759
|
+
return lt(y, b, b + v);
|
|
736
760
|
}
|
|
737
761
|
//#endregion
|
|
738
762
|
//#region src/composables/useMergeTagAutocomplete.ts
|
|
739
|
-
var
|
|
763
|
+
var dt = /* @__PURE__ */ new Set([
|
|
740
764
|
"ArrowLeft",
|
|
741
765
|
"ArrowRight",
|
|
742
766
|
"Home",
|
|
743
767
|
"End"
|
|
744
768
|
]);
|
|
745
|
-
function
|
|
746
|
-
let { elementRef: t, modelValue: n, emit: o, mergeTags: l, syntax: u, enabled: d, onInsert: f } = e, p =
|
|
769
|
+
function ft(e) {
|
|
770
|
+
let { elementRef: t, modelValue: n, emit: o, mergeTags: l, syntax: u, enabled: d, onInsert: f } = e, p = k(u), m = O(u), h = x(() => d && p !== null && l.value.length > 0), g = s(A, null), _ = ot((a(g) ? g.value : g)?.mergeTag?.suggestionEmpty ?? "No matching merge tags", se()), v = !1;
|
|
747
771
|
c() && i(() => {
|
|
748
772
|
v = !0, _.close();
|
|
749
773
|
});
|
|
750
774
|
function y(e) {
|
|
751
775
|
let t = e.value ?? "";
|
|
752
|
-
return
|
|
776
|
+
return st(t, e.selectionStart ?? t.length, p, m);
|
|
753
777
|
}
|
|
754
778
|
function b(e, i, a) {
|
|
755
779
|
let s = e.value ?? n(), c = s.slice(i.caret), l = m && c.startsWith(m) ? m.length : 0, u = s.slice(0, i.triggerStart), d = s.slice(i.caret + l), p = u + a.value + d, h = u.length + a.value.length;
|
|
@@ -771,7 +795,7 @@ function ut(e) {
|
|
|
771
795
|
_.close();
|
|
772
796
|
return;
|
|
773
797
|
}
|
|
774
|
-
let r =
|
|
798
|
+
let r = it(l.value, n.query), i = () => ut(e, n.triggerStart), a = (t) => b(e, n, t);
|
|
775
799
|
_.isOpen() ? _.update({
|
|
776
800
|
items: r,
|
|
777
801
|
getRect: i,
|
|
@@ -784,7 +808,7 @@ function ut(e) {
|
|
|
784
808
|
});
|
|
785
809
|
}
|
|
786
810
|
function C(e) {
|
|
787
|
-
return _.isOpen() ? e.key === "Escape" ? (_.close(), !0) :
|
|
811
|
+
return _.isOpen() ? e.key === "Escape" ? (_.close(), !0) : dt.has(e.key) ? (_.close(), !1) : _.handleKeyDown(e) : !1;
|
|
788
812
|
}
|
|
789
813
|
return {
|
|
790
814
|
available: h,
|
|
@@ -796,12 +820,12 @@ function ut(e) {
|
|
|
796
820
|
}
|
|
797
821
|
//#endregion
|
|
798
822
|
//#region src/composables/useMergeTagField.ts
|
|
799
|
-
function
|
|
800
|
-
let { modelValue: t, emit: n, elementRef: a } = e, { mergeTags: o, canRequestMergeTag: s, isRequesting: u, isMergeTagValue: d, getMergeTagDisplayLabel: f, findMergeTag: p, requestMergeTag: m, syntax: h, autocomplete: g } =
|
|
823
|
+
function pt(e) {
|
|
824
|
+
let { modelValue: t, emit: n, elementRef: a } = e, { mergeTags: o, canRequestMergeTag: s, isRequesting: u, isMergeTagValue: d, getMergeTagDisplayLabel: f, findMergeTag: p, requestMergeTag: m, syntax: h, autocomplete: g } = F(), { canInsertLogicTag: _, isRequesting: v, requestLogicTag: y } = I(), b = l(!1), S = !1, C = !1;
|
|
801
825
|
c() && i(() => {
|
|
802
826
|
C = !0;
|
|
803
827
|
});
|
|
804
|
-
let w =
|
|
828
|
+
let w = ft({
|
|
805
829
|
elementRef: a,
|
|
806
830
|
modelValue: t,
|
|
807
831
|
emit: n,
|
|
@@ -825,10 +849,10 @@ function dt(e) {
|
|
|
825
849
|
type: "mergeTag",
|
|
826
850
|
value: t,
|
|
827
851
|
label: f(t)
|
|
828
|
-
}) :
|
|
852
|
+
}) : D(t, h) ? n.push({
|
|
829
853
|
type: "logicMergeTag",
|
|
830
854
|
value: t,
|
|
831
|
-
keyword:
|
|
855
|
+
keyword: E(t, h)
|
|
832
856
|
}) : n.push({
|
|
833
857
|
type: "text",
|
|
834
858
|
value: t
|
|
@@ -846,20 +870,20 @@ function dt(e) {
|
|
|
846
870
|
a.value?.setSelectionRange(e, e);
|
|
847
871
|
});
|
|
848
872
|
}
|
|
849
|
-
function
|
|
873
|
+
function O() {
|
|
850
874
|
S || (b.value = !1);
|
|
851
875
|
}
|
|
852
|
-
function
|
|
876
|
+
function k(e) {
|
|
853
877
|
n(e.target.value), w.refresh();
|
|
854
878
|
}
|
|
855
879
|
function ne(e) {
|
|
856
|
-
return w.handleKeydown(e) ? (e.preventDefault(), !0) : (e.key === "Escape" &&
|
|
880
|
+
return w.handleKeydown(e) ? (e.preventDefault(), !0) : (e.key === "Escape" && O(), !1);
|
|
857
881
|
}
|
|
858
882
|
function re() {
|
|
859
883
|
w.refresh();
|
|
860
884
|
}
|
|
861
885
|
function A() {
|
|
862
|
-
w.close(),
|
|
886
|
+
w.close(), O();
|
|
863
887
|
}
|
|
864
888
|
function ie() {
|
|
865
889
|
n("");
|
|
@@ -897,7 +921,7 @@ function dt(e) {
|
|
|
897
921
|
}
|
|
898
922
|
!C && i && n(t.map((t, n) => n === e ? i.value : t.value).join(""));
|
|
899
923
|
}
|
|
900
|
-
async function
|
|
924
|
+
async function M() {
|
|
901
925
|
let e = a.value, i = e?.selectionStart ?? t().length, o = e?.selectionEnd ?? i;
|
|
902
926
|
S = !0;
|
|
903
927
|
let s;
|
|
@@ -921,28 +945,28 @@ function dt(e) {
|
|
|
921
945
|
isRequestingLogicTag: v,
|
|
922
946
|
isEditing: b,
|
|
923
947
|
startEditing: te,
|
|
924
|
-
stopEditing:
|
|
925
|
-
handleInput:
|
|
948
|
+
stopEditing: O,
|
|
949
|
+
handleInput: k,
|
|
926
950
|
handleKeydown: ne,
|
|
927
951
|
handleClick: re,
|
|
928
952
|
handleBlur: A,
|
|
929
953
|
clearValue: ie,
|
|
930
954
|
insertMergeTag: ae,
|
|
931
955
|
replaceMergeTagAt: j,
|
|
932
|
-
insertLogicTag:
|
|
956
|
+
insertLogicTag: M,
|
|
933
957
|
autocompleteAvailable: w.available
|
|
934
958
|
};
|
|
935
959
|
}
|
|
936
960
|
//#endregion
|
|
937
961
|
//#region src/components/MergeTagSegments.vue?vue&type=script&setup=true&lang.ts
|
|
938
|
-
var
|
|
962
|
+
var mt = ["aria-label"], ht = [
|
|
939
963
|
"data-tooltip",
|
|
940
964
|
"aria-label",
|
|
941
965
|
"onClick"
|
|
942
|
-
],
|
|
966
|
+
], gt = ["data-tooltip"], _t = ["data-tooltip"], vt = {
|
|
943
967
|
key: 3,
|
|
944
968
|
class: "tpl:text-sm tpl:text-[var(--tpl-text)]"
|
|
945
|
-
},
|
|
969
|
+
}, yt = ["aria-label", "title"], bt = ["aria-label", "title"], xt = /* @__PURE__ */ C({
|
|
946
970
|
__name: "MergeTagSegments",
|
|
947
971
|
props: {
|
|
948
972
|
segments: {},
|
|
@@ -955,7 +979,7 @@ var ft = ["aria-label"], pt = [
|
|
|
955
979
|
"repick"
|
|
956
980
|
],
|
|
957
981
|
setup(t, { emit: n }) {
|
|
958
|
-
let r = n, { t: i, format: a } = j(), { canRepickMergeTag: s, showRawValue: c } =
|
|
982
|
+
let r = n, { t: i, format: a } = j(), { canRepickMergeTag: s, showRawValue: c } = F();
|
|
959
983
|
function l() {
|
|
960
984
|
r("edit");
|
|
961
985
|
}
|
|
@@ -977,7 +1001,7 @@ var ft = ["aria-label"], pt = [
|
|
|
977
1001
|
color: "var(--tpl-primary)"
|
|
978
1002
|
},
|
|
979
1003
|
onClick: w((e) => r("repick", n), ["stop"])
|
|
980
|
-
}, _(t.label), 11,
|
|
1004
|
+
}, _(t.label), 11, ht)) : t.type === "mergeTag" ? (e(), p("span", {
|
|
981
1005
|
key: 1,
|
|
982
1006
|
class: v(["tpl:inline-flex tpl:items-center tpl:gap-1 tpl:rounded tpl:px-1.5 tpl:py-0.5 tpl:text-[0.9em] tpl:font-medium", u(c) ? "tpl-tooltip" : ""]),
|
|
983
1007
|
"data-tooltip": u(c) ? t.value : void 0,
|
|
@@ -985,7 +1009,7 @@ var ft = ["aria-label"], pt = [
|
|
|
985
1009
|
"background-color": "color-mix(\n in srgb,\n var(--tpl-primary) 20%,\n transparent\n )",
|
|
986
1010
|
color: "var(--tpl-primary)"
|
|
987
1011
|
}
|
|
988
|
-
}, _(t.label), 11,
|
|
1012
|
+
}, _(t.label), 11, gt)) : t.type === "logicMergeTag" ? (e(), p("span", {
|
|
989
1013
|
key: 2,
|
|
990
1014
|
class: "tpl-tooltip tpl:inline-flex tpl:items-center tpl:rounded tpl:px-1.5 tpl:py-0.5 tpl:text-[0.8em] tpl:font-bold tpl:tracking-wide tpl:uppercase",
|
|
991
1015
|
"data-tooltip": t.value,
|
|
@@ -994,7 +1018,7 @@ var ft = ["aria-label"], pt = [
|
|
|
994
1018
|
border: "1.5px solid\n color-mix(in srgb, var(--tpl-primary) 50%, transparent)",
|
|
995
1019
|
color: "var(--tpl-primary)"
|
|
996
1020
|
}
|
|
997
|
-
}, _(t.keyword), 9,
|
|
1021
|
+
}, _(t.keyword), 9, _t)) : (e(), p("span", vt, _(t.value), 1))], 64))), 128)),
|
|
998
1022
|
f("button", {
|
|
999
1023
|
type: "button",
|
|
1000
1024
|
class: "tpl:ml-auto tpl:flex tpl:size-6 tpl:shrink-0 tpl:cursor-pointer tpl:items-center tpl:justify-center tpl:rounded-full tpl:border-none tpl:bg-transparent tpl:p-0 tpl:text-[var(--tpl-text-dim)] tpl:opacity-60 tpl:transition-all tpl:hover:text-[var(--tpl-primary)] tpl:hover:opacity-100",
|
|
@@ -1002,10 +1026,10 @@ var ft = ["aria-label"], pt = [
|
|
|
1002
1026
|
title: u(i).mergeTag.editAsText,
|
|
1003
1027
|
"data-testid": "merge-tag-field-edit",
|
|
1004
1028
|
onClick: w(l, ["stop"])
|
|
1005
|
-
}, [m(u(
|
|
1029
|
+
}, [m(u(P), {
|
|
1006
1030
|
size: 12,
|
|
1007
1031
|
"stroke-width": 2
|
|
1008
|
-
})], 8,
|
|
1032
|
+
})], 8, yt),
|
|
1009
1033
|
f("button", {
|
|
1010
1034
|
type: "button",
|
|
1011
1035
|
class: "tpl:flex tpl:size-6 tpl:shrink-0 tpl:cursor-pointer tpl:items-center tpl:justify-center tpl:rounded-full tpl:border-none tpl:bg-transparent tpl:p-0 tpl:text-[var(--tpl-text-dim)] tpl:opacity-60 tpl:transition-all tpl:hover:text-[var(--tpl-danger)] tpl:hover:opacity-100",
|
|
@@ -1013,17 +1037,17 @@ var ft = ["aria-label"], pt = [
|
|
|
1013
1037
|
title: u(i).mergeTag.remove,
|
|
1014
1038
|
"data-testid": "merge-tag-field-clear",
|
|
1015
1039
|
onClick: d[0] ||= w((e) => r("clear"), ["stop"])
|
|
1016
|
-
}, [m(u(
|
|
1040
|
+
}, [m(u(de), {
|
|
1017
1041
|
size: 12,
|
|
1018
1042
|
"stroke-width": 2.5
|
|
1019
|
-
})], 8,
|
|
1020
|
-
], 10,
|
|
1043
|
+
})], 8, bt)
|
|
1044
|
+
], 10, mt));
|
|
1021
1045
|
}
|
|
1022
|
-
}),
|
|
1046
|
+
}), St = [
|
|
1023
1047
|
"aria-label",
|
|
1024
1048
|
"title",
|
|
1025
1049
|
"disabled"
|
|
1026
|
-
],
|
|
1050
|
+
], Ct = "tpl:flex tpl:items-center tpl:justify-center tpl:gap-1 tpl:rounded-[var(--tpl-radius-sm)] tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg-hover)] tpl:px-2 tpl:py-1 tpl:text-xs tpl:text-[var(--tpl-text-muted)] tpl:transition-all tpl:duration-[120ms] tpl:hover:bg-[var(--tpl-primary-light)] tpl:hover:text-[var(--tpl-primary)] tpl:hover:border-[var(--tpl-primary)]", wt = /* @__PURE__ */ C({
|
|
1027
1051
|
__name: "MergeTagInsertButton",
|
|
1028
1052
|
props: { disabled: { type: Boolean } },
|
|
1029
1053
|
emits: ["insert"],
|
|
@@ -1031,7 +1055,7 @@ var ft = ["aria-label"], pt = [
|
|
|
1031
1055
|
let { t: n } = j();
|
|
1032
1056
|
return (r, i) => (e(), p("button", {
|
|
1033
1057
|
type: "button",
|
|
1034
|
-
class: v([
|
|
1058
|
+
class: v([Ct, "tpl:mt-1.5"]),
|
|
1035
1059
|
"aria-label": u(n).mergeTag.insert,
|
|
1036
1060
|
title: u(n).mergeTag.insert,
|
|
1037
1061
|
disabled: t.disabled,
|
|
@@ -1040,13 +1064,13 @@ var ft = ["aria-label"], pt = [
|
|
|
1040
1064
|
}, [m(u(L), {
|
|
1041
1065
|
size: 12,
|
|
1042
1066
|
"stroke-width": 2
|
|
1043
|
-
}), h(" " + _(u(n).mergeTag.insertShort), 1)], 42,
|
|
1067
|
+
}), h(" " + _(u(n).mergeTag.insertShort), 1)], 42, St));
|
|
1044
1068
|
}
|
|
1045
|
-
}),
|
|
1069
|
+
}), Tt = [
|
|
1046
1070
|
"aria-label",
|
|
1047
1071
|
"title",
|
|
1048
1072
|
"disabled"
|
|
1049
|
-
],
|
|
1073
|
+
], Et = "tpl:flex tpl:items-center tpl:justify-center tpl:gap-1 tpl:rounded-[var(--tpl-radius-sm)] tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg-hover)] tpl:px-2 tpl:py-1 tpl:text-xs tpl:text-[var(--tpl-text-muted)] tpl:transition-all tpl:duration-[120ms] tpl:hover:bg-[var(--tpl-primary-light)] tpl:hover:text-[var(--tpl-primary)] tpl:hover:border-[var(--tpl-primary)]", Dt = /* @__PURE__ */ C({
|
|
1050
1074
|
__name: "LogicTagInsertButton",
|
|
1051
1075
|
props: { disabled: { type: Boolean } },
|
|
1052
1076
|
emits: ["insert"],
|
|
@@ -1054,18 +1078,18 @@ var ft = ["aria-label"], pt = [
|
|
|
1054
1078
|
let { t: n } = j();
|
|
1055
1079
|
return (r, i) => (e(), p("button", {
|
|
1056
1080
|
type: "button",
|
|
1057
|
-
class: v([
|
|
1081
|
+
class: v([Et, "tpl:mt-1.5"]),
|
|
1058
1082
|
"aria-label": u(n).logicTag.insert,
|
|
1059
1083
|
title: u(n).logicTag.insert,
|
|
1060
1084
|
disabled: t.disabled,
|
|
1061
1085
|
"data-testid": "field-insert-logic-button",
|
|
1062
1086
|
onMousedown: i[0] ||= w(() => {}, ["prevent"]),
|
|
1063
1087
|
onClick: i[1] ||= (e) => r.$emit("insert")
|
|
1064
|
-
}, [m(u(
|
|
1088
|
+
}, [m(u(pe), {
|
|
1065
1089
|
size: 12,
|
|
1066
1090
|
"stroke-width": 2
|
|
1067
|
-
}), h(" " + _(u(n).logicTag.insertShort), 1)], 42,
|
|
1091
|
+
}), h(" " + _(u(n).logicTag.insertShort), 1)], 42, Tt));
|
|
1068
1092
|
}
|
|
1069
1093
|
});
|
|
1070
1094
|
//#endregion
|
|
1071
|
-
export {
|
|
1095
|
+
export { ot as a, Ye as c, pt as i, L as l, wt as n, it as o, xt as r, at as s, Dt as t, pe as u };
|