@templatical/editor 0.52.1 → 0.53.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/README.md +1 -1
- package/dist/AiAltTextPopover-NMJqQKvD.js +106 -0
- package/dist/{AiAltTextReview-9ySsXOTU.js → AiAltTextReview-Ci4zHwRc.js} +68 -66
- package/dist/AiChatPanel-DdhtfsmO.js +561 -0
- package/dist/{AiPanels-DqT4PgQ0.js → AiPanels-HBx7xoJR.js} +6 -6
- package/dist/{AiRewriteMenu-28agTycW.js → AiRewriteMenu-DPzSekZt.js} +76 -105
- package/dist/BlockIssueBadge-eIXZJ9M3.js +33 -0
- package/dist/BlockPreviewCanvas-DO-2TP_6.js +140 -0
- package/dist/{CloudHeaderExtras-QI82yF54.js → CloudHeaderExtras-XpjJjn3o.js} +4 -4
- package/dist/{CloudPanels-BKJaLkUN.js → CloudPanels-i2kZdrdP.js} +53 -53
- package/dist/CollaborationNotices-DANsjl7c.js +65 -0
- package/dist/{CollaboratorBar-CXQqN3VP.js → CollaboratorBar-CbbAA0m1.js} +24 -24
- package/dist/CommentsPanel-CYW3LWis.js +16 -0
- package/dist/CommentsSidebar-CcF4ISMi.js +526 -0
- package/dist/{CountdownBlock-CU2yTWtF.js → CountdownBlock-BMezkFbJ.js} +15 -15
- package/dist/CountdownToolbar-D3Lv74kU.js +258 -0
- package/dist/IssuesPanel-BMAG9042.js +371 -0
- package/dist/LanguageMenu-FlP_Jbup.js +403 -0
- package/dist/{LoadingTrack-DM4g6j7b.js → LoadingTrack-BG8cg9xi.js} +2 -2
- package/dist/LocaleNotices-DAnVszWu.js +46 -0
- package/dist/LogicTagInsertButton-BjYs-UQX.js +1096 -0
- package/dist/{MediaEditModal-Dy08GEwE.js → MediaEditModal-LnG-cF_S.js} +451 -451
- package/dist/{MediaPanels-BgEp7iCp.js → MediaPanels-C2r5fiFo.js} +4 -4
- package/dist/{MergeTagInput-B9dtUthD.js → MergeTagInput-BsnogCeY.js} +30 -30
- package/dist/{MergeTagModeToggle-DxujhYJ4.js → MergeTagModeToggle-DiufIQ-_.js} +49 -49
- package/dist/MergeTagTextarea-BweI-Xsi.js +126 -0
- package/dist/ParagraphEditor-qgBp5yIB.js +825 -0
- package/dist/{RestoreVersionDialog-C4s_JYCx.js → RestoreVersionDialog-DdYUrFiK.js} +23 -23
- package/dist/{RichTextEditorContent-o6HmE8GR.js → RichTextEditorContent-C5MAzx3E.js} +47 -47
- package/dist/{SaveBlockDialog-CWLrly6l.js → SaveBlockDialog-eK6fjtTy.js} +86 -86
- package/dist/{cdn/chunks/SavedBlocksBrowserModal-BPYcRoGa.js → SavedBlocksBrowserModal-D2QHd2Yp.js} +135 -132
- package/dist/{SavedBlocksPanels-BE1N9rNZ.js → SavedBlocksPanels-Cl61f4Mf.js} +9 -9
- package/dist/{SavedBlocksPickBar-Dwl94xhP.js → SavedBlocksPickBar-CXP2dkeB.js} +15 -15
- package/dist/TemplateSettings-BKJrdZcH.js +294 -0
- package/dist/TestEmailModal-DQotJg6g.js +212 -0
- package/dist/{TestEmailPanel-DaFjP9QK.js → TestEmailPanel-CwiTzJsh.js} +4 -4
- package/dist/TitleEditor-CzSvsPAn.js +202 -0
- package/dist/ToggleSwitch-R3wCCYE6.js +43 -0
- package/dist/Toolbar-Cd75ci5W.js +3711 -0
- package/dist/{TplModal-DLMssVlt.js → TplModal-ZoXu40T9.js} +17 -17
- package/dist/{VersionHistoryMenu-BkbYUs0Q.js → VersionHistoryMenu-BvhN-Ofk.js} +39 -39
- package/dist/{VersionHistoryPanels-DP7HaYWv.js → VersionHistoryPanels-DPWMnYbd.js} +5 -5
- package/dist/VersionPreviewBanner-CuJnasxH.js +37 -0
- package/dist/WrapperBlock-D4fPwO0t.js +44 -0
- package/dist/{blockTypeIcons-BHjlPnPf.js → blockTypeIcons-BXMxu86H.js} +7 -7
- package/dist/bundle-stats.json +8 -8
- package/dist/{cdn/chunks/ca-CD-Kt1qz.js → ca-DOuIxWRv.js} +114 -2
- package/dist/cdn/chunks/AiAltTextPopover-ByZ0FEqI.js +107 -0
- package/dist/cdn/chunks/AiAltTextPopover-ByZ0FEqI.js.map +1 -0
- package/dist/cdn/chunks/{AiAltTextReview-BGLLSKLm.js → AiAltTextReview-Dtm3A2cD.js} +70 -68
- package/dist/cdn/chunks/AiAltTextReview-Dtm3A2cD.js.map +1 -0
- package/dist/cdn/chunks/AiChatPanel-DciEt27y.js +487 -0
- package/dist/cdn/chunks/AiChatPanel-DciEt27y.js.map +1 -0
- package/dist/cdn/chunks/{AiPanels-0wBarZSH.js → AiPanels-BV5D1itk.js} +11 -11
- package/dist/cdn/chunks/{AiPanels-0wBarZSH.js.map → AiPanels-BV5D1itk.js.map} +1 -1
- package/dist/cdn/chunks/{AiRewriteMenu-qf-cfEpy.js → AiRewriteMenu-D3jkh6Xb.js} +79 -79
- package/dist/cdn/chunks/AiRewriteMenu-D3jkh6Xb.js.map +1 -0
- package/dist/cdn/chunks/BlockIssueBadge-DyEgBZtR.js +34 -0
- package/dist/cdn/chunks/BlockIssueBadge-DyEgBZtR.js.map +1 -0
- package/dist/cdn/chunks/BlockPreviewCanvas-RQFilqXC.js +142 -0
- package/dist/cdn/chunks/{BlockPreviewCanvas-DGBh6mqe.js.map → BlockPreviewCanvas-RQFilqXC.js.map} +1 -1
- package/dist/cdn/chunks/{CloudHeaderExtras-BMNK_F9p.js → CloudHeaderExtras-BtqdN777.js} +4 -4
- package/dist/cdn/chunks/{CloudHeaderExtras-BMNK_F9p.js.map → CloudHeaderExtras-BtqdN777.js.map} +1 -1
- package/dist/cdn/chunks/{CloudPanels-JMWIoVWh.js → CloudPanels-BSJ-Z5Hw.js} +45 -45
- package/dist/cdn/chunks/{CloudPanels-JMWIoVWh.js.map → CloudPanels-BSJ-Z5Hw.js.map} +1 -1
- package/dist/cdn/chunks/CollaborationNotices-BS7xrlPE.js +67 -0
- package/dist/cdn/chunks/CollaborationNotices-BS7xrlPE.js.map +1 -0
- package/dist/cdn/chunks/{CollaboratorBar-CXByAoUz.js → CollaboratorBar-Bc9914Az.js} +17 -17
- package/dist/cdn/chunks/{CollaboratorBar-CXByAoUz.js.map → CollaboratorBar-Bc9914Az.js.map} +1 -1
- package/dist/cdn/chunks/CommentsPanel-DbR9phAk.js +18 -0
- package/dist/cdn/chunks/{CommentsPanel-DoJnKLXI.js.map → CommentsPanel-DbR9phAk.js.map} +1 -1
- package/dist/cdn/chunks/CommentsSidebar-BD4--XP2.js +496 -0
- package/dist/cdn/chunks/CommentsSidebar-BD4--XP2.js.map +1 -0
- package/dist/cdn/chunks/{CountdownBlock-BqRw147R.js → CountdownBlock-CjMhMhnv.js} +22 -22
- package/dist/cdn/chunks/{CountdownBlock-BqRw147R.js.map → CountdownBlock-CjMhMhnv.js.map} +1 -1
- package/dist/cdn/chunks/CountdownToolbar-DxwYBw-d.js +260 -0
- package/dist/cdn/chunks/CountdownToolbar-DxwYBw-d.js.map +1 -0
- package/dist/cdn/chunks/{IssuesPanel-C7LfxaAY.js → IssuesPanel-CUmI4HMm.js} +133 -121
- package/dist/cdn/chunks/IssuesPanel-CUmI4HMm.js.map +1 -0
- package/dist/cdn/chunks/LanguageMenu-3ydCozQJ.js +359 -0
- package/dist/cdn/chunks/LanguageMenu-3ydCozQJ.js.map +1 -0
- package/dist/cdn/chunks/{LoadingTrack-CZuLTazv.js → LoadingTrack-DUYcDHOV.js} +2 -2
- package/dist/cdn/chunks/{LoadingTrack-CZuLTazv.js.map → LoadingTrack-DUYcDHOV.js.map} +1 -1
- package/dist/cdn/chunks/LocaleNotices-BfoH6gST.js +47 -0
- package/dist/cdn/chunks/LocaleNotices-BfoH6gST.js.map +1 -0
- package/dist/{LogicTagInsertButton-CfscnwCn.js → cdn/chunks/LogicTagInsertButton-5Z3fFzjc.js} +422 -449
- package/dist/cdn/chunks/LogicTagInsertButton-5Z3fFzjc.js.map +1 -0
- package/dist/cdn/chunks/{MediaEditModal-Cpcod6_U.js → MediaEditModal-DDCIwr9U.js} +421 -421
- package/dist/cdn/chunks/MediaEditModal-DDCIwr9U.js.map +1 -0
- package/dist/cdn/chunks/{MediaPanels-BIdcW_1f.js → MediaPanels-Dz79oy8P.js} +5 -5
- package/dist/cdn/chunks/{MediaPanels-BIdcW_1f.js.map → MediaPanels-Dz79oy8P.js.map} +1 -1
- package/dist/cdn/chunks/{MergeTagInput-BvWg8o5E.js → MergeTagInput-CIWy-cXf.js} +28 -28
- package/dist/cdn/chunks/{MergeTagInput-BvWg8o5E.js.map → MergeTagInput-CIWy-cXf.js.map} +1 -1
- package/dist/cdn/chunks/{MergeTagModeToggle-BgKEVUtV.js → MergeTagModeToggle-BrP5GR-x.js} +52 -52
- package/dist/cdn/chunks/MergeTagModeToggle-BrP5GR-x.js.map +1 -0
- package/dist/cdn/chunks/MergeTagTextarea-D3nNDlhV.js +128 -0
- package/dist/cdn/chunks/MergeTagTextarea-D3nNDlhV.js.map +1 -0
- package/dist/cdn/chunks/ParagraphEditor-DDolH_Pf.js +660 -0
- package/dist/cdn/chunks/ParagraphEditor-DDolH_Pf.js.map +1 -0
- package/dist/cdn/chunks/{RestoreVersionDialog-CjOdD2xj.js → RestoreVersionDialog-Crj1DBqC.js} +22 -22
- package/dist/cdn/chunks/{RestoreVersionDialog-CjOdD2xj.js.map → RestoreVersionDialog-Crj1DBqC.js.map} +1 -1
- package/dist/cdn/chunks/{RichTextEditorContent-DNjR_sNN.js → RichTextEditorContent-rCCqFlwJ.js} +44 -44
- package/dist/cdn/chunks/{RichTextEditorContent-DNjR_sNN.js.map → RichTextEditorContent-rCCqFlwJ.js.map} +1 -1
- package/dist/cdn/chunks/{SaveBlockDialog-CUhpawq0.js → SaveBlockDialog-C34RW1aM.js} +77 -77
- package/dist/cdn/chunks/{SaveBlockDialog-CUhpawq0.js.map → SaveBlockDialog-C34RW1aM.js.map} +1 -1
- package/dist/{SavedBlocksBrowserModal-CE8n4EBS.js → cdn/chunks/SavedBlocksBrowserModal-CJnwWPT-.js} +103 -106
- package/dist/cdn/chunks/{SavedBlocksBrowserModal-BPYcRoGa.js.map → SavedBlocksBrowserModal-CJnwWPT-.js.map} +1 -1
- package/dist/cdn/chunks/{SavedBlocksPanels-C6--Bc81.js → SavedBlocksPanels-CA2PqXIH.js} +9 -9
- package/dist/cdn/chunks/{SavedBlocksPanels-C6--Bc81.js.map → SavedBlocksPanels-CA2PqXIH.js.map} +1 -1
- package/dist/cdn/chunks/{SavedBlocksPickBar-DUavxpbU.js → SavedBlocksPickBar-Dj3ortee.js} +16 -16
- package/dist/cdn/chunks/{SavedBlocksPickBar-DUavxpbU.js.map → SavedBlocksPickBar-Dj3ortee.js.map} +1 -1
- package/dist/cdn/chunks/TemplateSettings-sW0ZlDl1.js +266 -0
- package/dist/cdn/chunks/TemplateSettings-sW0ZlDl1.js.map +1 -0
- package/dist/cdn/chunks/TestEmailModal-BXeCtTjU.js +212 -0
- package/dist/cdn/chunks/TestEmailModal-BXeCtTjU.js.map +1 -0
- package/dist/cdn/chunks/{TestEmailPanel-CcUpEpAn.js → TestEmailPanel-CpZcpB9D.js} +5 -5
- package/dist/cdn/chunks/{TestEmailPanel-CcUpEpAn.js.map → TestEmailPanel-CpZcpB9D.js.map} +1 -1
- package/dist/cdn/chunks/TitleEditor-Bv3SmSO6.js +202 -0
- package/dist/cdn/chunks/TitleEditor-Bv3SmSO6.js.map +1 -0
- package/dist/cdn/chunks/ToggleSwitch-BSkySwA1.js +45 -0
- package/dist/cdn/chunks/ToggleSwitch-BSkySwA1.js.map +1 -0
- package/dist/cdn/chunks/Toolbar-BJKpJ2Mg.js +3626 -0
- package/dist/cdn/chunks/Toolbar-BJKpJ2Mg.js.map +1 -0
- package/dist/cdn/chunks/{TplModal-CFPDgbwQ.js → TplModal-DDDUDMYC.js} +20 -20
- package/dist/cdn/chunks/{TplModal-CFPDgbwQ.js.map → TplModal-DDDUDMYC.js.map} +1 -1
- package/dist/cdn/chunks/{VersionHistoryMenu-BYlLRvRJ.js → VersionHistoryMenu-DSElv3Sv.js} +33 -33
- package/dist/cdn/chunks/{VersionHistoryMenu-BYlLRvRJ.js.map → VersionHistoryMenu-DSElv3Sv.js.map} +1 -1
- package/dist/cdn/chunks/{VersionHistoryPanels-C6SOVoiT.js → VersionHistoryPanels-H2nuik1l.js} +6 -6
- package/dist/cdn/chunks/{VersionHistoryPanels-C6SOVoiT.js.map → VersionHistoryPanels-H2nuik1l.js.map} +1 -1
- package/dist/cdn/chunks/VersionPreviewBanner-Whwxh55w.js +39 -0
- package/dist/cdn/chunks/VersionPreviewBanner-Whwxh55w.js.map +1 -0
- package/dist/cdn/chunks/WrapperBlock-jTqsuLnS.js +46 -0
- package/dist/cdn/chunks/WrapperBlock-jTqsuLnS.js.map +1 -0
- package/dist/cdn/chunks/{blockTypeIcons-D7FW7Ypo.js → blockTypeIcons-DMgLcuI8.js} +5 -5
- package/dist/cdn/chunks/{blockTypeIcons-D7FW7Ypo.js.map → blockTypeIcons-DMgLcuI8.js.map} +1 -1
- package/dist/{ca-CD-Kt1qz.js → cdn/chunks/ca-DOuIxWRv.js} +116 -0
- package/dist/cdn/chunks/ca-DOuIxWRv.js.map +1 -0
- package/dist/cdn/chunks/composables-D0UYam2P.js +3039 -0
- package/dist/cdn/chunks/composables-D0UYam2P.js.map +1 -0
- package/dist/cdn/chunks/{createCloudRuntime-Cth2JCEh.js → createCloudRuntime-BdsclY8_.js} +75 -73
- package/dist/cdn/chunks/createCloudRuntime-BdsclY8_.js.map +1 -0
- package/dist/{de-CeFJ6wbM.js → cdn/chunks/de-DaOUfYBX.js} +116 -0
- package/dist/cdn/chunks/de-DaOUfYBX.js.map +1 -0
- package/dist/cdn/chunks/{dist-8ym3y-pH.js → dist-BzXULHvI.js} +48 -48
- package/dist/cdn/chunks/{dist-8ym3y-pH.js.map → dist-BzXULHvI.js.map} +1 -1
- package/dist/cdn/chunks/{dist-BMzNabtD.js → dist-DqGgijFI.js} +114 -114
- package/dist/cdn/chunks/{dist-BMzNabtD.js.map → dist-DqGgijFI.js.map} +1 -1
- package/dist/cdn/chunks/{draggable-Du8AUMFT.js → draggable-DepKdldn.js} +1491 -1486
- package/dist/cdn/chunks/draggable-DepKdldn.js.map +1 -0
- package/dist/cdn/chunks/{editor-modal-CyCe560f.js → editor-modal-CPbgthOv.js} +781 -781
- package/dist/cdn/chunks/{editor-modal-CyCe560f.js.map → editor-modal-CPbgthOv.js.map} +1 -1
- package/dist/{en-D14i5nFh.js → cdn/chunks/en-C0pHHMiR.js} +116 -0
- package/dist/cdn/chunks/en-C0pHHMiR.js.map +1 -0
- package/dist/cdn/chunks/en-IYVryJRl.js +1 -0
- package/dist/{es-zDacbMhs.js → cdn/chunks/es-CxyEKr6n.js} +116 -0
- package/dist/cdn/chunks/es-CxyEKr6n.js.map +1 -0
- package/dist/cdn/chunks/{extensions-CFF2KWy-.js → extensions-Uh9vuFfK.js} +59 -59
- package/dist/cdn/chunks/{extensions-CFF2KWy-.js.map → extensions-Uh9vuFfK.js.map} +1 -1
- package/dist/{fr-CSgYtjOd.js → cdn/chunks/fr-CYbamiI6.js} +116 -0
- package/dist/cdn/chunks/fr-CYbamiI6.js.map +1 -0
- package/dist/cdn/chunks/{icons-okSPsLOa.js → icons-CSSMtbGK.js} +150 -109
- package/dist/cdn/chunks/icons-CSSMtbGK.js.map +1 -0
- package/dist/{ja-B7H3ID8O.js → cdn/chunks/ja-DfaIAoGI.js} +116 -0
- package/dist/cdn/chunks/ja-DfaIAoGI.js.map +1 -0
- package/dist/cdn/chunks/keys-CoQtCqNv.js +11 -0
- package/dist/cdn/chunks/keys-CoQtCqNv.js.map +1 -0
- package/dist/cdn/chunks/languageName-DEEOhDWI.js +12 -0
- package/dist/cdn/chunks/languageName-DEEOhDWI.js.map +1 -0
- package/dist/{nl-176ySmc5.js → cdn/chunks/nl-DkrB-VKZ.js} +116 -0
- package/dist/cdn/chunks/nl-DkrB-VKZ.js.map +1 -0
- package/dist/cdn/chunks/normalizeMergeTagMarkup-oGhwVscw.js +290 -0
- package/dist/cdn/chunks/normalizeMergeTagMarkup-oGhwVscw.js.map +1 -0
- package/dist/cdn/chunks/noticeTones-D7BPu-Le.js +16 -0
- package/dist/cdn/chunks/noticeTones-D7BPu-Le.js.map +1 -0
- package/dist/cdn/chunks/plural-CyxrJXL1.js +17 -0
- package/dist/cdn/chunks/plural-CyxrJXL1.js.map +1 -0
- package/dist/cdn/chunks/{preRenderCustomBlocks-BcXIz7oJ.js → preRenderCustomBlocks-C8k7tw98.js} +5 -5
- package/dist/cdn/chunks/{preRenderCustomBlocks-BcXIz7oJ.js.map → preRenderCustomBlocks-C8k7tw98.js.map} +1 -1
- package/dist/{pt-BR-dDlTwX18.js → cdn/chunks/pt-BR-CY5Ye7eP.js} +116 -0
- package/dist/cdn/chunks/pt-BR-CY5Ye7eP.js.map +1 -0
- package/dist/cdn/chunks/sanitizeHtml-DYklmvgX.js +61 -0
- package/dist/cdn/chunks/sanitizeHtml-DYklmvgX.js.map +1 -0
- package/dist/cdn/chunks/socialIcons-BAiuHyJs.js +2638 -0
- package/dist/cdn/chunks/socialIcons-BAiuHyJs.js.map +1 -0
- package/dist/cdn/chunks/src-CACM3o--.js +2606 -0
- package/dist/cdn/chunks/src-CACM3o--.js.map +1 -0
- package/dist/cdn/chunks/{src-C7bkofBL.js → src-Ddpm4HsS.js} +222 -256
- package/dist/cdn/chunks/src-Ddpm4HsS.js.map +1 -0
- package/dist/cdn/chunks/{src-DEd87i_U.js → src-DheBmnvF.js} +635 -478
- package/dist/cdn/chunks/src-DheBmnvF.js.map +1 -0
- package/dist/{styleConstants-B8xVRiwX.js → cdn/chunks/styleConstants-CgiNKdnc.js} +7 -5
- package/dist/cdn/chunks/styleConstants-CgiNKdnc.js.map +1 -0
- package/dist/cdn/chunks/templateSettingsFields-cjlP-jdw.js.map +1 -1
- package/dist/cdn/chunks/{tiptap-CbiTlECY.js → tiptap-Dipw_zOQ.js} +40 -40
- package/dist/cdn/chunks/{tiptap-CbiTlECY.js.map → tiptap-Dipw_zOQ.js.map} +1 -1
- package/dist/cdn/chunks/{useCloudI18n-DY8_-ETE.js → useCloudI18n-Cc5NZqiI.js} +3 -3
- package/dist/cdn/chunks/{useCloudI18n-DY8_-ETE.js.map → useCloudI18n-Cc5NZqiI.js.map} +1 -1
- package/dist/cdn/chunks/useEditorRoot-D_LuZ_hE.js +9 -0
- package/dist/cdn/chunks/{useEditorRoot-vjZJwKrV.js.map → useEditorRoot-D_LuZ_hE.js.map} +1 -1
- package/dist/cdn/chunks/{useI18n-D8pY4LTq.js → useI18n-BnJYydPv.js} +3 -3
- package/dist/cdn/chunks/{useI18n-D8pY4LTq.js.map → useI18n-BnJYydPv.js.map} +1 -1
- package/dist/cdn/chunks/useLocalizedDisplay-yXbRKNrs.js +33 -0
- package/dist/cdn/chunks/useLocalizedDisplay-yXbRKNrs.js.map +1 -0
- package/dist/cdn/chunks/{useLogicTag-DBJDtpKA.js → useLogicTag-B7RpqVFQ.js} +5 -5
- package/dist/cdn/chunks/{useLogicTag-DBJDtpKA.js.map → useLogicTag-B7RpqVFQ.js.map} +1 -1
- package/dist/cdn/chunks/{useMergeTag-B-aG--s1.js → useMergeTag-C-32ETjj.js} +6 -6
- package/dist/cdn/chunks/{useMergeTag-B-aG--s1.js.map → useMergeTag-C-32ETjj.js.map} +1 -1
- package/dist/cdn/chunks/usePopoverPosition-BWAXWeBv.js +78 -0
- package/dist/cdn/chunks/usePopoverPosition-BWAXWeBv.js.map +1 -0
- package/dist/cdn/chunks/{useScrollToBlock-vjQ0fe-L.js → useScrollToBlock-Ct1AwLD-.js} +5 -5
- package/dist/cdn/chunks/useScrollToBlock-Ct1AwLD-.js.map +1 -0
- package/dist/cdn/chunks/{withCurrentFont-hZTvYBHO.js → withCurrentFont-D33ZXoWp.js} +2 -2
- package/dist/cdn/chunks/{withCurrentFont-hZTvYBHO.js.map → withCurrentFont-D33ZXoWp.js.map} +1 -1
- package/dist/cdn/editor.css +1 -1
- package/dist/cdn/editor.js +2190 -1496
- package/dist/cdn/editor.js.map +1 -1
- package/dist/{check-BZ8o0eet.js → check-ChQ0l8EQ.js} +1 -1
- package/dist/{chevron-down-DfAAfILv.js → chevron-down-Bh6cp6PI.js} +1 -1
- package/dist/{chevron-right-Bk4mGdr7.js → chevron-right-LUgdqdoW.js} +1 -1
- package/dist/{chevron-up-MhUf_azW.js → chevron-up-XsDeJxQN.js} +1 -1
- package/dist/{circle-alert-CShJwVFv.js → circle-alert-lODfDsrj.js} +1 -1
- package/dist/{clock-CTfD6OCt.js → clock-DrqFEZkT.js} +1 -1
- package/dist/composables-BOP3ERRP.js +4517 -0
- package/dist/{createCloudRuntime-DCgO4A1r.js → createCloudRuntime-DGV5a5Af.js} +54 -52
- package/dist/{createLucideIcon-CvhTA2KG.js → createLucideIcon-Dw5e5gVE.js} +11 -11
- package/dist/{cdn/chunks/de-CeFJ6wbM.js → de-DaOUfYBX.js} +114 -2
- package/dist/{dist-ByCWA2Tv.js → dist-0alKVRc_.js} +101 -101
- package/dist/{dist-Cy8I5scI.js → dist-54VCNoC0.js} +2 -2
- package/dist/dist-6DU0me3E.js +4 -0
- package/dist/{dist-p3wymUDt.js → dist-B8dY8drK.js} +2 -2
- package/dist/{dist-Dd5MU2Ev.js → dist-B9a7iVye.js} +2 -2
- package/dist/{dist-V7W1UhVr.js → dist-BWflWcpW.js} +2 -2
- package/dist/{dist-D6fZec6r.js → dist-C3hu_C3w.js} +2 -2
- package/dist/{dist-CVy-7PHQ.js → dist-CX7skkvG.js} +48 -48
- package/dist/dist-CcOn7WCo.js +4 -0
- package/dist/dist-Cdkm20M6.js +2542 -0
- package/dist/{dist-BS5uKktL.js → dist-ChOb5XHW.js} +2 -2
- package/dist/{dist-BF5zEHop.js → dist-DZ3X-uB8.js} +2 -2
- package/dist/{dist-CWSG7Kj0.js → dist-D_XrUEET.js} +5 -5
- package/dist/{dist-txQLT2sF.js → dist-TAv500j6.js} +2 -2
- package/dist/{dist-D6cMdrfG.js → dist-fqSers8_.js} +55 -55
- package/dist/{editor-modal-zaZHcmlO.js → editor-modal-B_2EAOjN.js} +953 -952
- package/dist/{cdn/chunks/en-D14i5nFh.js → en-C0pHHMiR.js} +114 -2
- package/dist/en-DTtwco2Q.js +1 -0
- package/dist/{cdn/chunks/es-zDacbMhs.js → es-CxyEKr6n.js} +114 -2
- package/dist/{extensions-fo_c-vqf.js → extensions-DOLZkLzV.js} +173 -173
- package/dist/{eye-7W4t5e0Q.js → eye-DChfk0gi.js} +1 -1
- package/dist/{cdn/chunks/fr-CSgYtjOd.js → fr-CYbamiI6.js} +114 -2
- package/dist/{image-BDiRFzSd.js → image--Hj2by1G.js} +1 -1
- package/dist/index.d.ts +182 -14
- package/dist/{info-Cxi3-Kh9.js → info-BbXgy82f.js} +1 -1
- package/dist/{cdn/chunks/ja-B7H3ID8O.js → ja-DfaIAoGI.js} +114 -2
- package/dist/keys-BCqskl51.js +9 -0
- package/dist/languageName-DEEOhDWI.js +10 -0
- package/dist/{link-ju_2Cmir.js → link-C2_8yJno.js} +1 -1
- package/dist/{list-DYZJf0aZ.js → list-DLGs2n0V.js} +1 -1
- package/dist/{loader-circle-BZRD0a4I.js → loader-circle-BbDItE_O.js} +1 -1
- package/dist/{message-circle-DuEw4Zfx.js → message-circle-NAModq0p.js} +1 -1
- package/dist/{cdn/chunks/nl-176ySmc5.js → nl-DkrB-VKZ.js} +114 -2
- package/dist/normalizeMergeTagMarkup-CUCo7B5X.js +288 -0
- package/dist/noticeTones-D7BPu-Le.js +14 -0
- package/dist/{package-CePMr2kK.js → package-BuzsfRyH.js} +1 -1
- package/dist/{pencil-D3aFCL7c.js → pencil-BTUUECH4.js} +1 -1
- package/dist/plural-CyxrJXL1.js +15 -0
- package/dist/plus-Dm7DN65T.js +13 -0
- package/dist/{preRenderCustomBlocks--_xc0XK3.js → preRenderCustomBlocks-Bs3N9no-.js} +4 -4
- package/dist/{cdn/chunks/pt-BR-dDlTwX18.js → pt-BR-CY5Ye7eP.js} +114 -2
- package/dist/{refresh-cw-xnro7_Sk.js → refresh-cw-xMURqGWi.js} +2 -12
- package/dist/rotate-ccw-DqVcEIn5.js +13 -0
- package/dist/{runtime-dom.esm-bundler-BURR-bj5.js → runtime-dom.esm-bundler-DlHp8xgy.js} +154 -154
- package/dist/sanitizeHtml-mKgNUdME.js +962 -0
- package/dist/{search-CDrstRBv.js → search-Cfr3W44N.js} +1 -1
- package/dist/{send-DROkPOaX.js → send-CH1SrvyB.js} +1 -1
- package/dist/{smartphone-Bx6u_tjn.js → smartphone-pAkvzjdI.js} +1 -1
- package/dist/socialIcons-Dqr4DJOz.js +2705 -0
- package/dist/{sparkles-CdaTtvoz.js → sparkles-CRO0cCnp.js} +1 -1
- package/dist/{square-BbCROH_f.js → square-CaQWMntx.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/{cdn/chunks/styleConstants-B8xVRiwX.js → styleConstants-CgiNKdnc.js} +5 -7
- package/dist/templatical-editor.js +2438 -1752
- package/dist/{text-align-start-CGacJ9Vw.js → text-align-start-BQ39AaRK.js} +1 -1
- package/dist/{trash-DxCd7zIy.js → trash-BL5gEFHN.js} +1 -1
- package/dist/{triangle-alert-7_oaitpf.js → triangle-alert-BYbKu7zZ.js} +1 -1
- package/dist/{upload-DuFEOi_0.js → upload-BhmL4Vqx.js} +1 -1
- package/dist/{useCloudI18n-DEMmUKuO.js → useCloudI18n-Dh2iydo1.js} +4 -4
- package/dist/useEditorRoot-DY3mgcHm.js +7 -0
- package/dist/{useI18n-BBrHTdu8.js → useI18n-CgtvtF4C.js} +4 -4
- package/dist/useLocalizedDisplay-DNNwDRxL.js +31 -0
- package/dist/{useLogicTag-ZPC39rfH.js → useLogicTag-BXXXQQmi.js} +4 -4
- package/dist/{useMergeTag-BQ4qqWpQ.js → useMergeTag-C9Okr87y.js} +5 -5
- package/dist/usePopoverPosition-VDQjyX_A.js +76 -0
- package/dist/{useScrollToBlock-BSyAV4pk.js → useScrollToBlock-C0Kapxdh.js} +5 -5
- package/dist/{vue.runtime.esm-bundler-CnEeTfhs.js → vue.runtime.esm-bundler-BJXc_Mri.js} +1373 -1368
- package/dist/withCurrentFont-DJiQqZzL.js +18 -0
- package/dist/{x-BpfG7v9g.js → x-B7NZYzhx.js} +1 -1
- package/package.json +20 -20
- package/dist/AiAltTextPopover-DawbUywc.js +0 -105
- package/dist/AiChatPanel-CupPhmsN.js +0 -548
- package/dist/BlockIssueBadge-BxpDy3u-.js +0 -33
- package/dist/BlockPreviewCanvas-B-4bmJ3t.js +0 -140
- package/dist/CollaborationNotices-CTw4JThq.js +0 -75
- package/dist/CommentsPanel-DwwFuh1h.js +0 -16
- package/dist/CommentsSidebar-9ZfiC2DO.js +0 -500
- package/dist/CountdownToolbar-BqoYzf_6.js +0 -197
- package/dist/IssuesPanel-4ykrf1ax.js +0 -359
- package/dist/MergeTagTextarea-CPFEjJZd.js +0 -69
- package/dist/ParagraphEditor-CWXfurGh.js +0 -796
- package/dist/TemplateSettings-CS0f1Ues.js +0 -236
- package/dist/TestEmailModal-DBD0X5nV.js +0 -209
- package/dist/TitleEditor-DSqtle77.js +0 -198
- package/dist/ToggleSwitch-JykPyD_8.js +0 -36
- package/dist/Toolbar-BZPFfKrf.js +0 -3145
- package/dist/VersionPreviewBanner-DECaBwLq.js +0 -37
- package/dist/WrapperBlock-BsJv_Fiw.js +0 -44
- package/dist/cdn/chunks/AiAltTextPopover-SEEjkd-I.js +0 -106
- package/dist/cdn/chunks/AiAltTextPopover-SEEjkd-I.js.map +0 -1
- package/dist/cdn/chunks/AiAltTextReview-BGLLSKLm.js.map +0 -1
- package/dist/cdn/chunks/AiChatPanel-DKDAaBNi.js +0 -474
- package/dist/cdn/chunks/AiChatPanel-DKDAaBNi.js.map +0 -1
- package/dist/cdn/chunks/AiRewriteMenu-qf-cfEpy.js.map +0 -1
- package/dist/cdn/chunks/BlockIssueBadge-jdf91-nk.js +0 -34
- package/dist/cdn/chunks/BlockIssueBadge-jdf91-nk.js.map +0 -1
- package/dist/cdn/chunks/BlockPreviewCanvas-DGBh6mqe.js +0 -142
- package/dist/cdn/chunks/CollaborationNotices-Bsf1rGW9.js +0 -77
- package/dist/cdn/chunks/CollaborationNotices-Bsf1rGW9.js.map +0 -1
- package/dist/cdn/chunks/CommentsPanel-DoJnKLXI.js +0 -18
- package/dist/cdn/chunks/CommentsSidebar-CUtgvdBC.js +0 -470
- package/dist/cdn/chunks/CommentsSidebar-CUtgvdBC.js.map +0 -1
- package/dist/cdn/chunks/CountdownToolbar-xobieKoU.js +0 -199
- package/dist/cdn/chunks/CountdownToolbar-xobieKoU.js.map +0 -1
- package/dist/cdn/chunks/IssuesPanel-C7LfxaAY.js.map +0 -1
- package/dist/cdn/chunks/LogicTagInsertButton-BIi05UQu.js +0 -1051
- package/dist/cdn/chunks/LogicTagInsertButton-BIi05UQu.js.map +0 -1
- package/dist/cdn/chunks/MediaEditModal-Cpcod6_U.js.map +0 -1
- package/dist/cdn/chunks/MergeTagModeToggle-BgKEVUtV.js.map +0 -1
- package/dist/cdn/chunks/MergeTagTextarea-tBz8McZf.js +0 -71
- package/dist/cdn/chunks/MergeTagTextarea-tBz8McZf.js.map +0 -1
- package/dist/cdn/chunks/ParagraphEditor-B3Rj_cWF.js +0 -631
- package/dist/cdn/chunks/ParagraphEditor-B3Rj_cWF.js.map +0 -1
- package/dist/cdn/chunks/TemplateSettings-CKtI-dof.js +0 -208
- package/dist/cdn/chunks/TemplateSettings-CKtI-dof.js.map +0 -1
- package/dist/cdn/chunks/TestEmailModal-CDQTgESD.js +0 -209
- package/dist/cdn/chunks/TestEmailModal-CDQTgESD.js.map +0 -1
- package/dist/cdn/chunks/TitleEditor-Cob7RLyK.js +0 -198
- package/dist/cdn/chunks/TitleEditor-Cob7RLyK.js.map +0 -1
- package/dist/cdn/chunks/ToggleSwitch-J7Vwhvha.js +0 -38
- package/dist/cdn/chunks/ToggleSwitch-J7Vwhvha.js.map +0 -1
- package/dist/cdn/chunks/Toolbar-CdpsvNOR.js +0 -3061
- package/dist/cdn/chunks/Toolbar-CdpsvNOR.js.map +0 -1
- package/dist/cdn/chunks/VersionPreviewBanner-Dvg0ZfAW.js +0 -39
- package/dist/cdn/chunks/VersionPreviewBanner-Dvg0ZfAW.js.map +0 -1
- package/dist/cdn/chunks/WrapperBlock-C7Md56IT.js +0 -46
- package/dist/cdn/chunks/WrapperBlock-C7Md56IT.js.map +0 -1
- package/dist/cdn/chunks/ca-CD-Kt1qz.js.map +0 -1
- package/dist/cdn/chunks/createCloudRuntime-Cth2JCEh.js.map +0 -1
- package/dist/cdn/chunks/de-CeFJ6wbM.js.map +0 -1
- package/dist/cdn/chunks/draggable-Du8AUMFT.js.map +0 -1
- package/dist/cdn/chunks/en-D14i5nFh.js.map +0 -1
- package/dist/cdn/chunks/en-TIqv4ag3.js +0 -1
- package/dist/cdn/chunks/es-zDacbMhs.js.map +0 -1
- package/dist/cdn/chunks/fr-CSgYtjOd.js.map +0 -1
- package/dist/cdn/chunks/icons-okSPsLOa.js.map +0 -1
- package/dist/cdn/chunks/ja-B7H3ID8O.js.map +0 -1
- package/dist/cdn/chunks/keys-CUj6UA38.js +0 -11
- package/dist/cdn/chunks/keys-CUj6UA38.js.map +0 -1
- package/dist/cdn/chunks/nl-176ySmc5.js.map +0 -1
- package/dist/cdn/chunks/normalizeMergeTagMarkup-C_KlfSW4.js +0 -198
- package/dist/cdn/chunks/normalizeMergeTagMarkup-C_KlfSW4.js.map +0 -1
- package/dist/cdn/chunks/pt-BR-dDlTwX18.js.map +0 -1
- package/dist/cdn/chunks/sanitizeHtml-CN85EDrO.js +0 -72
- package/dist/cdn/chunks/sanitizeHtml-CN85EDrO.js.map +0 -1
- package/dist/cdn/chunks/socialIcons-jsTDmkbb.js +0 -2008
- package/dist/cdn/chunks/socialIcons-jsTDmkbb.js.map +0 -1
- package/dist/cdn/chunks/src-C7bkofBL.js.map +0 -1
- package/dist/cdn/chunks/src-DEd87i_U.js.map +0 -1
- package/dist/cdn/chunks/src-DwWrYnUj.js +0 -1404
- package/dist/cdn/chunks/src-DwWrYnUj.js.map +0 -1
- package/dist/cdn/chunks/styleConstants-B8xVRiwX.js.map +0 -1
- package/dist/cdn/chunks/useEditorCore-BrY66C2y.js +0 -2582
- package/dist/cdn/chunks/useEditorCore-BrY66C2y.js.map +0 -1
- package/dist/cdn/chunks/useEditorRoot-vjZJwKrV.js +0 -9
- package/dist/cdn/chunks/usePopoverPosition-DSMtmu2W.js +0 -70
- package/dist/cdn/chunks/usePopoverPosition-DSMtmu2W.js.map +0 -1
- package/dist/cdn/chunks/useScrollToBlock-vjQ0fe-L.js.map +0 -1
- package/dist/dist-CKi_npZM.js +0 -1344
- package/dist/dist-DyFArF_G.js +0 -4
- package/dist/dist-pA3ooG6N.js +0 -4
- package/dist/en-Db76vJbY.js +0 -1
- package/dist/keys-BgRERHzu.js +0 -9
- package/dist/normalizeMergeTagMarkup-CELnOlgK.js +0 -196
- package/dist/sanitizeHtml-BzfzpYJY.js +0 -942
- package/dist/socialIcons-D7MGsg0d.js +0 -2075
- package/dist/useEditorCore-BSo2sSID.js +0 -4059
- package/dist/useEditorRoot-BMcoCLBx.js +0 -7
- package/dist/usePopoverPosition-DV1PxL66.js +0 -68
- package/dist/withCurrentFont-B22FXAF5.js +0 -18
package/dist/{LogicTagInsertButton-CfscnwCn.js → cdn/chunks/LogicTagInsertButton-5Z3fFzjc.js}
RENAMED
|
@@ -1,78 +1,40 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { c as
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import { t as
|
|
9
|
-
import { t as
|
|
10
|
-
import { t as
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
import { u as fe } from "./styleConstants-B8xVRiwX.js";
|
|
14
|
-
var pe = N({
|
|
15
|
-
name: "braces",
|
|
16
|
-
size: 24,
|
|
17
|
-
node: [["path", {
|
|
18
|
-
d: "M8 3H7a2 2 0 0 0-2 2v5a2 2 0 0 1-2 2 2 2 0 0 1 2 2v5c0 1.1.9 2 2 2h1",
|
|
19
|
-
key: "ezmyqa"
|
|
20
|
-
}], ["path", {
|
|
21
|
-
d: "M16 21h1a2 2 0 0 0 2-2v-5c0-1.1.9-2 2-2a2 2 0 0 1-2-2V5a2 2 0 0 0-2-2h-1",
|
|
22
|
-
key: "e1hn23"
|
|
23
|
-
}]],
|
|
24
|
-
aliases: ["curly-braces"]
|
|
25
|
-
}), L = N({
|
|
26
|
-
name: "scan-line",
|
|
27
|
-
size: 24,
|
|
28
|
-
node: [
|
|
29
|
-
["path", {
|
|
30
|
-
d: "M3 7V5a2 2 0 0 1 2-2h2",
|
|
31
|
-
key: "aa7l1z"
|
|
32
|
-
}],
|
|
33
|
-
["path", {
|
|
34
|
-
d: "M17 3h2a2 2 0 0 1 2 2v2",
|
|
35
|
-
key: "4qcy5o"
|
|
36
|
-
}],
|
|
37
|
-
["path", {
|
|
38
|
-
d: "M21 17v2a2 2 0 0 1-2 2h-2",
|
|
39
|
-
key: "6vwrx8"
|
|
40
|
-
}],
|
|
41
|
-
["path", {
|
|
42
|
-
d: "M7 21H5a2 2 0 0 1-2-2v-2",
|
|
43
|
-
key: "ioqczr"
|
|
44
|
-
}],
|
|
45
|
-
["path", {
|
|
46
|
-
d: "M7 12h10",
|
|
47
|
-
key: "b7w52i"
|
|
48
|
-
}]
|
|
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) => ge(V(e)), V = (e) => (e[0] === "#" && (e = e.substring(1)), e.length < 6 ? {
|
|
1
|
+
import { C as e, E as t, F as n, G as r, H as i, L as a, O as o, Q as s, X as c, Y as l, _ as u, b as d, c as f, ct as p, dt as m, f as h, g, h as _, j as v, l as y, m as b, mt as x, n as S, p as C, pt as w, r as T, tt as E, u as D, x as O } from "./draggable-DepKdldn.js";
|
|
2
|
+
import { c as k, i as A, s as j, u as M } from "./src-CACM3o--.js";
|
|
3
|
+
import { G as N, Ht as P, N as F, t as I } from "./icons-CSSMtbGK.js";
|
|
4
|
+
import { et as ee, it as te, p as ne, tt as re } from "./keys-CoQtCqNv.js";
|
|
5
|
+
import { t as L } from "./useI18n-BnJYydPv.js";
|
|
6
|
+
import { d as ie } from "./styleConstants-CgiNKdnc.js";
|
|
7
|
+
import { t as ae } from "./dist-DqGgijFI.js";
|
|
8
|
+
import { t as R } from "./useMergeTag-C-32ETjj.js";
|
|
9
|
+
import { a as oe, c as se, n as ce, o as le, r as ue, s as de, t as fe } from "./usePopoverPosition-BWAXWeBv.js";
|
|
10
|
+
import { t as z } from "./useLogicTag-B7RpqVFQ.js";
|
|
11
|
+
// ../../node_modules/.pnpm/vanilla-colorful@0.7.2/node_modules/vanilla-colorful/lib/utils/math.js
|
|
12
|
+
var B = (e, t = 0, n = 1) => e > n ? n : e < t ? t : e, V = (e, t = 0, n = 10 ** t) => Math.round(n * e) / n, H = (e) => he(U(e)), U = (e) => (e[0] === "#" && (e = e.substring(1)), e.length < 6 ? {
|
|
51
13
|
r: parseInt(e[0] + e[0], 16),
|
|
52
14
|
g: parseInt(e[1] + e[1], 16),
|
|
53
15
|
b: parseInt(e[2] + e[2], 16),
|
|
54
|
-
a: e.length === 4 ?
|
|
16
|
+
a: e.length === 4 ? V(parseInt(e[3] + e[3], 16) / 255, 2) : 1
|
|
55
17
|
} : {
|
|
56
18
|
r: parseInt(e.substring(0, 2), 16),
|
|
57
19
|
g: parseInt(e.substring(2, 4), 16),
|
|
58
20
|
b: parseInt(e.substring(4, 6), 16),
|
|
59
|
-
a: e.length === 8 ?
|
|
60
|
-
}),
|
|
21
|
+
a: e.length === 8 ? V(parseInt(e.substring(6, 8), 16) / 255, 2) : 1
|
|
22
|
+
}), pe = (e) => me(K(e)), W = ({ h: e, s: t, v: n, a: r }) => {
|
|
61
23
|
let i = (200 - t) * n / 100;
|
|
62
24
|
return {
|
|
63
|
-
h:
|
|
64
|
-
s:
|
|
65
|
-
l:
|
|
66
|
-
a:
|
|
25
|
+
h: V(e),
|
|
26
|
+
s: V(i > 0 && i < 200 ? t * n / 100 / (i <= 100 ? i : 200 - i) * 100 : 0),
|
|
27
|
+
l: V(i / 2),
|
|
28
|
+
a: V(r, 2)
|
|
67
29
|
};
|
|
68
|
-
},
|
|
69
|
-
let { h: t, s: n, l: r } =
|
|
30
|
+
}, G = (e) => {
|
|
31
|
+
let { h: t, s: n, l: r } = W(e);
|
|
70
32
|
return `hsl(${t}, ${n}%, ${r}%)`;
|
|
71
|
-
},
|
|
33
|
+
}, K = ({ h: e, s: t, v: n, a: r }) => {
|
|
72
34
|
e = e / 360 * 6, t /= 100, n /= 100;
|
|
73
35
|
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
36
|
return {
|
|
75
|
-
r:
|
|
37
|
+
r: V([
|
|
76
38
|
n,
|
|
77
39
|
o,
|
|
78
40
|
a,
|
|
@@ -80,7 +42,7 @@ var pe = N({
|
|
|
80
42
|
s,
|
|
81
43
|
n
|
|
82
44
|
][c] * 255),
|
|
83
|
-
g:
|
|
45
|
+
g: V([
|
|
84
46
|
s,
|
|
85
47
|
n,
|
|
86
48
|
n,
|
|
@@ -88,7 +50,7 @@ var pe = N({
|
|
|
88
50
|
a,
|
|
89
51
|
a
|
|
90
52
|
][c] * 255),
|
|
91
|
-
b:
|
|
53
|
+
b: V([
|
|
92
54
|
a,
|
|
93
55
|
a,
|
|
94
56
|
s,
|
|
@@ -96,49 +58,49 @@ var pe = N({
|
|
|
96
58
|
n,
|
|
97
59
|
o
|
|
98
60
|
][c] * 255),
|
|
99
|
-
a:
|
|
61
|
+
a: V(r, 2)
|
|
100
62
|
};
|
|
101
|
-
},
|
|
63
|
+
}, q = (e) => {
|
|
102
64
|
let t = e.toString(16);
|
|
103
65
|
return t.length < 2 ? "0" + t : t;
|
|
66
|
+
}, me = ({ r: e, g: t, b: n, a: r }) => {
|
|
67
|
+
let i = r < 1 ? q(V(r * 255)) : "";
|
|
68
|
+
return "#" + q(e) + q(t) + q(n) + i;
|
|
104
69
|
}, 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;
|
|
107
|
-
}, ge = ({ r: e, g: t, b: n, a: r }) => {
|
|
108
70
|
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
71
|
return {
|
|
110
|
-
h:
|
|
111
|
-
s:
|
|
112
|
-
v:
|
|
72
|
+
h: V(60 * (o < 0 ? o + 6 : o)),
|
|
73
|
+
s: V(i ? a / i * 100 : 0),
|
|
74
|
+
v: V(i / 255 * 100),
|
|
113
75
|
a: r
|
|
114
76
|
};
|
|
115
|
-
},
|
|
77
|
+
}, ge = (e, t) => {
|
|
116
78
|
if (e === t) return !0;
|
|
117
79
|
for (let n in e) if (e[n] !== t[n]) return !1;
|
|
118
80
|
return !0;
|
|
119
|
-
},
|
|
120
|
-
let t =
|
|
121
|
-
return t || (t = document.createElement("template"), t.innerHTML = e,
|
|
81
|
+
}, _e = (e, t) => e.toLowerCase() === t.toLowerCase() || ge(U(e), U(t)), ve = {}, ye = (e) => {
|
|
82
|
+
let t = ve[e];
|
|
83
|
+
return t || (t = document.createElement("template"), t.innerHTML = e, ve[e] = t), t;
|
|
122
84
|
}, J = (e, t, n) => {
|
|
123
85
|
e.dispatchEvent(new CustomEvent(t, {
|
|
124
86
|
bubbles: !0,
|
|
125
87
|
detail: n
|
|
126
88
|
}));
|
|
127
|
-
}, Y = !1, X = (e) => "touches" in e,
|
|
89
|
+
}, Y = !1, X = (e) => "touches" in e, be = (e) => Y && !X(e) ? !1 : (Y ||= X(e), !0), Z = (e, t) => {
|
|
128
90
|
let n = X(t) ? t.touches[0] : t, r = e.el.getBoundingClientRect();
|
|
129
91
|
J(e.el, "move", e.getMove({
|
|
130
|
-
x:
|
|
131
|
-
y:
|
|
92
|
+
x: B((n.pageX - (r.left + window.pageXOffset)) / r.width),
|
|
93
|
+
y: B((n.pageY - (r.top + window.pageYOffset)) / r.height)
|
|
132
94
|
}));
|
|
133
|
-
},
|
|
95
|
+
}, xe = (e, t) => {
|
|
134
96
|
let n = t.keyCode;
|
|
135
97
|
n > 40 || e.xy && n < 37 || n < 33 || (t.preventDefault(), J(e.el, "move", e.getMove({
|
|
136
98
|
x: n === 39 ? .01 : n === 37 ? -.01 : n === 34 ? .05 : n === 33 ? -.05 : n === 35 ? 1 : n === 36 ? -1 : 0,
|
|
137
99
|
y: n === 40 ? .01 : n === 38 ? -.01 : 0
|
|
138
100
|
}, !0)));
|
|
139
|
-
},
|
|
101
|
+
}, Se = class {
|
|
140
102
|
constructor(e, t, n, r) {
|
|
141
|
-
let i =
|
|
103
|
+
let i = ye(`<div role="slider" tabindex="0" part="${t}" ${n}><div part="${t}-pointer"></div></div>`);
|
|
142
104
|
e.appendChild(i.content.cloneNode(!0));
|
|
143
105
|
let a = e.querySelector(`[part=${t}]`);
|
|
144
106
|
a.addEventListener("mousedown", this), a.addEventListener("touchstart", this), a.addEventListener("keydown", this), this.el = a, this.xy = r, this.nodes = [a.firstChild, a];
|
|
@@ -151,18 +113,18 @@ var pe = N({
|
|
|
151
113
|
switch (e.type) {
|
|
152
114
|
case "mousedown":
|
|
153
115
|
case "touchstart":
|
|
154
|
-
if (e.preventDefault(), !
|
|
155
|
-
this.el.focus(),
|
|
116
|
+
if (e.preventDefault(), !be(e) || !Y && e.button != 0) return;
|
|
117
|
+
this.el.focus(), Z(this, e), this.dragging = !0;
|
|
156
118
|
break;
|
|
157
119
|
case "mousemove":
|
|
158
120
|
case "touchmove":
|
|
159
|
-
e.preventDefault(),
|
|
121
|
+
e.preventDefault(), Z(this, e);
|
|
160
122
|
break;
|
|
161
123
|
case "mouseup":
|
|
162
124
|
case "touchend":
|
|
163
125
|
this.dragging = !1;
|
|
164
126
|
break;
|
|
165
|
-
case "keydown":
|
|
127
|
+
case "keydown": xe(this, e);
|
|
166
128
|
}
|
|
167
129
|
}
|
|
168
130
|
style(e) {
|
|
@@ -170,25 +132,25 @@ var pe = N({
|
|
|
170
132
|
for (let n in e) this.nodes[t].style.setProperty(n, e[n]);
|
|
171
133
|
});
|
|
172
134
|
}
|
|
173
|
-
},
|
|
135
|
+
}, Ce = class extends Se {
|
|
174
136
|
constructor(e) {
|
|
175
137
|
super(e, "hue", "aria-label=\"Hue\" aria-valuemin=\"0\" aria-valuemax=\"360\"", !1);
|
|
176
138
|
}
|
|
177
139
|
update({ h: e }) {
|
|
178
140
|
this.h = e, this.style([{
|
|
179
141
|
left: `${e / 360 * 100}%`,
|
|
180
|
-
color:
|
|
142
|
+
color: G({
|
|
181
143
|
h: e,
|
|
182
144
|
s: 100,
|
|
183
145
|
v: 100,
|
|
184
146
|
a: 1
|
|
185
147
|
})
|
|
186
|
-
}]), this.el.setAttribute("aria-valuenow", `${
|
|
148
|
+
}]), this.el.setAttribute("aria-valuenow", `${V(e)}`);
|
|
187
149
|
}
|
|
188
150
|
getMove(e, t) {
|
|
189
|
-
return { h: t ?
|
|
151
|
+
return { h: t ? B(this.h + e.x * 360, 0, 360) : 360 * e.x };
|
|
190
152
|
}
|
|
191
|
-
},
|
|
153
|
+
}, Q = class extends Se {
|
|
192
154
|
constructor(e) {
|
|
193
155
|
super(e, "saturation", "aria-label=\"Color\"", !0);
|
|
194
156
|
}
|
|
@@ -196,47 +158,47 @@ var pe = N({
|
|
|
196
158
|
this.hsva = e, this.style([{
|
|
197
159
|
top: `${100 - e.v}%`,
|
|
198
160
|
left: `${e.s}%`,
|
|
199
|
-
color:
|
|
200
|
-
}, { "background-color":
|
|
161
|
+
color: G(e)
|
|
162
|
+
}, { "background-color": G({
|
|
201
163
|
h: e.h,
|
|
202
164
|
s: 100,
|
|
203
165
|
v: 100,
|
|
204
166
|
a: 1
|
|
205
|
-
}) }]), this.el.setAttribute("aria-valuetext", `Saturation ${
|
|
167
|
+
}) }]), this.el.setAttribute("aria-valuetext", `Saturation ${V(e.s)}%, Brightness ${V(e.v)}%`);
|
|
206
168
|
}
|
|
207
169
|
getMove(e, t) {
|
|
208
170
|
return {
|
|
209
|
-
s: t ?
|
|
210
|
-
v: t ?
|
|
171
|
+
s: t ? B(this.hsva.s + e.x * 100, 0, 100) : e.x * 100,
|
|
172
|
+
v: t ? B(this.hsva.v - e.y * 100, 0, 100) : Math.round(100 - e.y * 100)
|
|
211
173
|
};
|
|
212
174
|
}
|
|
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}",
|
|
175
|
+
}, 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}", $ = Symbol("same"), De = Symbol("color"), Oe = Symbol("hsva"), ke = Symbol("update"), Ae = Symbol("parts"), je = Symbol("css"), Me = Symbol("sliders"), Ne = class extends HTMLElement {
|
|
214
176
|
static get observedAttributes() {
|
|
215
177
|
return ["color"];
|
|
216
178
|
}
|
|
217
|
-
get [
|
|
179
|
+
get [je]() {
|
|
218
180
|
return [
|
|
219
181
|
we,
|
|
220
182
|
Te,
|
|
221
183
|
Ee
|
|
222
184
|
];
|
|
223
185
|
}
|
|
224
|
-
get [
|
|
225
|
-
return [
|
|
186
|
+
get [Me]() {
|
|
187
|
+
return [Q, Ce];
|
|
226
188
|
}
|
|
227
189
|
get color() {
|
|
228
190
|
return this[De];
|
|
229
191
|
}
|
|
230
192
|
set color(e) {
|
|
231
|
-
if (!this[
|
|
193
|
+
if (!this[$](e)) {
|
|
232
194
|
let t = this.colorModel.toHsva(e);
|
|
233
|
-
this[
|
|
195
|
+
this[ke](t), this[De] = e;
|
|
234
196
|
}
|
|
235
197
|
}
|
|
236
198
|
constructor() {
|
|
237
199
|
super();
|
|
238
|
-
let e =
|
|
239
|
-
t.appendChild(e.content.cloneNode(!0)), t.addEventListener("move", this), this[
|
|
200
|
+
let e = ye(`<style>${this[je].join("")}</style>`), t = this.attachShadow({ mode: "open" });
|
|
201
|
+
t.appendChild(e.content.cloneNode(!0)), t.addEventListener("move", this), this[Ae] = this[Me].map((e) => new e(t));
|
|
240
202
|
}
|
|
241
203
|
connectedCallback() {
|
|
242
204
|
if (this.hasOwnProperty("color")) {
|
|
@@ -246,40 +208,40 @@ var pe = N({
|
|
|
246
208
|
}
|
|
247
209
|
attributeChangedCallback(e, t, n) {
|
|
248
210
|
let r = this.colorModel.fromAttr(n);
|
|
249
|
-
this[
|
|
211
|
+
this[$](r) || (this.color = r);
|
|
250
212
|
}
|
|
251
213
|
handleEvent(e) {
|
|
252
214
|
let t = this[Oe], n = {
|
|
253
215
|
...t,
|
|
254
216
|
...e.detail
|
|
255
217
|
};
|
|
256
|
-
this[
|
|
218
|
+
this[ke](n);
|
|
257
219
|
let r;
|
|
258
|
-
!
|
|
220
|
+
!ge(n, t) && !this[$](r = this.colorModel.fromHsva(n)) && (this[De] = r, J(this, "color-changed", { value: r }));
|
|
259
221
|
}
|
|
260
|
-
[
|
|
222
|
+
[$](e) {
|
|
261
223
|
return this.color && this.colorModel.equal(e, this.color);
|
|
262
224
|
}
|
|
263
|
-
[
|
|
264
|
-
this[Oe] = e, this[
|
|
225
|
+
[ke](e) {
|
|
226
|
+
this[Oe] = e, this[Ae].forEach((t) => t.update(e));
|
|
265
227
|
}
|
|
266
|
-
},
|
|
228
|
+
}, Pe = {
|
|
267
229
|
defaultColor: "#000",
|
|
268
|
-
toHsva:
|
|
269
|
-
fromHsva: ({ h: e, s: t, v: n }) =>
|
|
230
|
+
toHsva: H,
|
|
231
|
+
fromHsva: ({ h: e, s: t, v: n }) => pe({
|
|
270
232
|
h: e,
|
|
271
233
|
s: t,
|
|
272
234
|
v: n,
|
|
273
235
|
a: 1
|
|
274
236
|
}),
|
|
275
|
-
equal:
|
|
237
|
+
equal: _e,
|
|
276
238
|
fromAttr: (e) => e
|
|
277
|
-
},
|
|
239
|
+
}, Fe = class extends Ne {
|
|
278
240
|
get colorModel() {
|
|
279
|
-
return
|
|
241
|
+
return Pe;
|
|
280
242
|
}
|
|
281
|
-
}
|
|
282
|
-
customElements.define("hex-color-picker", Fe);
|
|
243
|
+
};
|
|
244
|
+
customElements.define("hex-color-picker", class extends Fe {});
|
|
283
245
|
// src/components/ColorPicker.vue?vue&type=script&setup=true&lang.ts
|
|
284
246
|
var Ie = [
|
|
285
247
|
"disabled",
|
|
@@ -317,7 +279,7 @@ var Ie = [
|
|
|
317
279
|
"placeholder",
|
|
318
280
|
"disabled",
|
|
319
281
|
"aria-label"
|
|
320
|
-
], Je = ["aria-label", "title"], Ye = /* @__PURE__ */
|
|
282
|
+
], Je = ["aria-label", "title"], Ye = /* @__PURE__ */ e({
|
|
321
283
|
__name: "ColorPicker",
|
|
322
284
|
props: {
|
|
323
285
|
modelValue: {},
|
|
@@ -344,127 +306,131 @@ var Ie = [
|
|
|
344
306
|
}
|
|
345
307
|
},
|
|
346
308
|
emits: ["update:modelValue"],
|
|
347
|
-
setup(
|
|
348
|
-
let
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
}, {
|
|
352
|
-
let
|
|
353
|
-
|
|
354
|
-
|
|
309
|
+
setup(e, { emit: t }) {
|
|
310
|
+
let s = e, c = se(), l = C(() => s.disabled || !c.value), v = t, { t: T } = L(), k = E(!1);
|
|
311
|
+
i(l, (e) => {
|
|
312
|
+
e && (k.value = !1);
|
|
313
|
+
}, { flush: "sync" });
|
|
314
|
+
let A = E(), j = E(), M = E(!1);
|
|
315
|
+
ae(A, () => {
|
|
316
|
+
k.value = !1;
|
|
317
|
+
}, { ignore: [j] });
|
|
318
|
+
let N = C(() => !s.modelValue), P = C(() => s.modelValue.trim().toLowerCase() === "transparent"), F = C(() => le(s.modelValue)), re = C(() => (s.modelValue ? de(s.modelValue) : null) || (de(s.seedColor) ?? "#ffffff")), R = C(() => !l.value && !N.value), z = o(ne, ue), B = C(() => [...new Set(s.presets ?? z.presets)]), V = C(() => s.allowCustom ?? z.allowCustom), H = C(() => B.value.length > 0), U = C(() => V.value || !H.value), pe = C(() => oe(s.modelValue));
|
|
319
|
+
function W(e) {
|
|
320
|
+
return pe.value !== "" && oe(e) === pe.value;
|
|
355
321
|
}
|
|
356
|
-
function
|
|
357
|
-
l("update:modelValue", e);
|
|
322
|
+
function G(e) {
|
|
323
|
+
l.value || v("update:modelValue", e);
|
|
358
324
|
}
|
|
359
|
-
let
|
|
360
|
-
function
|
|
361
|
-
return
|
|
325
|
+
let K = C(() => H.value && !U.value);
|
|
326
|
+
function q(e) {
|
|
327
|
+
return K.value ? e + 1 : e;
|
|
362
328
|
}
|
|
363
|
-
let
|
|
364
|
-
if (
|
|
365
|
-
let e =
|
|
366
|
-
return e === -1 ? 0 :
|
|
329
|
+
let me = C(() => {
|
|
330
|
+
if (K.value && N.value) return 0;
|
|
331
|
+
let e = B.value.findIndex((e) => W(e));
|
|
332
|
+
return e === -1 ? 0 : q(e);
|
|
367
333
|
});
|
|
368
|
-
function
|
|
369
|
-
return
|
|
334
|
+
function he() {
|
|
335
|
+
return me.value === 0 ? 0 : -1;
|
|
370
336
|
}
|
|
371
|
-
function
|
|
372
|
-
return
|
|
337
|
+
function ge(e) {
|
|
338
|
+
return q(e) === me.value ? 0 : -1;
|
|
373
339
|
}
|
|
374
|
-
function
|
|
340
|
+
function _e(e) {
|
|
375
341
|
if (![
|
|
376
342
|
"ArrowRight",
|
|
377
343
|
"ArrowDown",
|
|
378
344
|
"ArrowLeft",
|
|
379
345
|
"ArrowUp"
|
|
380
346
|
].includes(e.key)) return;
|
|
381
|
-
let t =
|
|
382
|
-
|
|
347
|
+
let t = Array.from(e.currentTarget.querySelectorAll("[role=\"radio\"]")), n = e.target.closest("[role=\"radio\"]"), r = n ? t.indexOf(n) : -1;
|
|
348
|
+
r !== -1 && (t[(r + (e.key === "ArrowRight" || e.key === "ArrowDown" ? 1 : -1) + t.length) % t.length]?.focus(), e.preventDefault());
|
|
383
349
|
}
|
|
384
|
-
function
|
|
385
|
-
|
|
350
|
+
function ve(e) {
|
|
351
|
+
l.value || (M.value = !0, v("update:modelValue", e.detail.value));
|
|
386
352
|
}
|
|
387
|
-
function
|
|
388
|
-
|
|
353
|
+
function ye() {
|
|
354
|
+
l.value || (M.value = !1);
|
|
389
355
|
}
|
|
390
|
-
function
|
|
391
|
-
!
|
|
356
|
+
function J() {
|
|
357
|
+
l.value || !M.value && N.value && v("update:modelValue", re.value);
|
|
392
358
|
}
|
|
393
|
-
function
|
|
394
|
-
l("update:modelValue", e.target.value);
|
|
359
|
+
function Y(e) {
|
|
360
|
+
l.value || v("update:modelValue", e.target.value);
|
|
395
361
|
}
|
|
396
|
-
function
|
|
397
|
-
l("update:modelValue", "");
|
|
362
|
+
function X() {
|
|
363
|
+
l.value || v("update:modelValue", "");
|
|
398
364
|
}
|
|
399
|
-
function
|
|
400
|
-
l("update:modelValue", "transparent");
|
|
365
|
+
function be() {
|
|
366
|
+
l.value || v("update:modelValue", "transparent");
|
|
401
367
|
}
|
|
402
|
-
let
|
|
368
|
+
let Z = ce(), { toLocal: xe } = fe(), Se = o(ee, null), Ce = o(te, null), Q = E({
|
|
403
369
|
top: 0,
|
|
404
370
|
left: 0
|
|
405
371
|
});
|
|
406
|
-
function
|
|
407
|
-
if (!
|
|
408
|
-
if (!
|
|
409
|
-
let e =
|
|
372
|
+
function we() {
|
|
373
|
+
if (!l.value) {
|
|
374
|
+
if (!k.value) {
|
|
375
|
+
let e = j.value?.getBoundingClientRect();
|
|
410
376
|
if (e) {
|
|
411
377
|
let t = e.bottom + 8 + 240 <= window.innerHeight ? e.bottom + 8 : Math.max(8, e.top - 240 - 8);
|
|
412
|
-
|
|
378
|
+
Q.value = xe({
|
|
413
379
|
top: t,
|
|
414
380
|
left: e.left
|
|
415
381
|
});
|
|
416
382
|
}
|
|
417
383
|
}
|
|
418
|
-
|
|
384
|
+
k.value = !k.value;
|
|
419
385
|
}
|
|
420
386
|
}
|
|
421
|
-
return (
|
|
422
|
-
|
|
387
|
+
return (t, i) => (n(), u("div", { class: m(["tpl:flex tpl:items-center tpl:gap-2 tpl:relative", l.value && "tpl:opacity-60 tpl:cursor-not-allowed"]) }, [
|
|
388
|
+
b("button", {
|
|
423
389
|
ref_key: "swatchRef",
|
|
424
|
-
ref:
|
|
390
|
+
ref: j,
|
|
425
391
|
type: "button",
|
|
426
|
-
disabled:
|
|
427
|
-
"aria-label":
|
|
428
|
-
title:
|
|
429
|
-
"aria-expanded":
|
|
430
|
-
class:
|
|
392
|
+
disabled: l.value,
|
|
393
|
+
"aria-label": e.ariaLabel || p(T).colorPicker.pickColor,
|
|
394
|
+
title: e.ariaLabel || void 0,
|
|
395
|
+
"aria-expanded": k.value,
|
|
396
|
+
class: m([
|
|
431
397
|
"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)]",
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
398
|
+
l.value ? "tpl:cursor-not-allowed" : "tpl:cursor-pointer",
|
|
399
|
+
k.value ? "tpl:border-[var(--tpl-primary)] tpl:shadow-[var(--tpl-ring)]" : !l.value && "tpl:hover:border-[var(--tpl-text-dim)]",
|
|
400
|
+
e.size === "sm" ? "tpl:size-8" : "tpl:size-10"
|
|
435
401
|
]),
|
|
436
|
-
onClick:
|
|
437
|
-
}, [
|
|
438
|
-
class:
|
|
439
|
-
"tpl-color-swatch-empty":
|
|
440
|
-
"tpl-color-swatch-transparent":
|
|
402
|
+
onClick: we
|
|
403
|
+
}, [b("span", {
|
|
404
|
+
class: m(["tpl:block tpl:size-full tpl:rounded-[calc(var(--tpl-radius-sm)-2px)]", {
|
|
405
|
+
"tpl-color-swatch-empty": N.value,
|
|
406
|
+
"tpl-color-swatch-transparent": P.value
|
|
441
407
|
}]),
|
|
442
|
-
style:
|
|
408
|
+
style: w(N.value || P.value ? void 0 : { backgroundColor: F.value })
|
|
443
409
|
}, null, 6)], 10, Ie),
|
|
444
|
-
!
|
|
410
|
+
!e.swatchOnly && U.value ? (n(), u("div", Le, [b("input", {
|
|
445
411
|
type: "text",
|
|
446
|
-
class:
|
|
447
|
-
style:
|
|
448
|
-
value:
|
|
449
|
-
placeholder:
|
|
450
|
-
disabled:
|
|
451
|
-
"aria-label":
|
|
452
|
-
onInput:
|
|
453
|
-
}, null, 46, Re),
|
|
412
|
+
class: m([p(ie), "tpl:w-full"]),
|
|
413
|
+
style: w(R.value ? { paddingRight: "2.25rem" } : void 0),
|
|
414
|
+
value: F.value,
|
|
415
|
+
placeholder: e.placeholder || p(T).colorPicker.notSet,
|
|
416
|
+
disabled: l.value,
|
|
417
|
+
"aria-label": p(T).colorPicker.hexValue,
|
|
418
|
+
onInput: Y
|
|
419
|
+
}, null, 46, Re), R.value ? (n(), u("button", {
|
|
454
420
|
key: 0,
|
|
455
421
|
type: "button",
|
|
456
|
-
"aria-label":
|
|
457
|
-
title:
|
|
422
|
+
"aria-label": p(T).colorPicker.clear,
|
|
423
|
+
title: p(T).colorPicker.clear,
|
|
458
424
|
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)]",
|
|
459
|
-
onClick:
|
|
460
|
-
}, [
|
|
425
|
+
onClick: X
|
|
426
|
+
}, [O(p(I), {
|
|
461
427
|
size: 14,
|
|
462
428
|
"stroke-width": 1.5
|
|
463
|
-
})], 8, ze)) :
|
|
464
|
-
(
|
|
465
|
-
to:
|
|
466
|
-
disabled: !
|
|
467
|
-
}, [
|
|
429
|
+
})], 8, ze)) : g("", !0)])) : g("", !0),
|
|
430
|
+
(n(), _(h, {
|
|
431
|
+
to: p(Z),
|
|
432
|
+
disabled: !p(Z)
|
|
433
|
+
}, [O(S, {
|
|
468
434
|
"enter-active-class": "tpl:transition-all tpl:duration-[120ms] tpl:ease-[cubic-bezier(0.16,1,0.3,1)]",
|
|
469
435
|
"enter-from-class": "tpl:opacity-0 tpl:scale-95 tpl:translate-y-1",
|
|
470
436
|
"enter-to-class": "tpl:opacity-100 tpl:scale-100 tpl:translate-y-0",
|
|
@@ -472,87 +438,87 @@ var Ie = [
|
|
|
472
438
|
"leave-from-class": "tpl:opacity-100 tpl:scale-100 tpl:translate-y-0",
|
|
473
439
|
"leave-to-class": "tpl:opacity-0 tpl:scale-95 tpl:translate-y-1"
|
|
474
440
|
}, {
|
|
475
|
-
default: r(() => [
|
|
441
|
+
default: r(() => [k.value ? (n(), u("div", {
|
|
476
442
|
key: 0,
|
|
477
443
|
ref_key: "popoverRef",
|
|
478
|
-
ref:
|
|
479
|
-
"data-tpl-theme":
|
|
444
|
+
ref: A,
|
|
445
|
+
"data-tpl-theme": p(Ce),
|
|
480
446
|
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)]",
|
|
481
|
-
style:
|
|
482
|
-
top: `${
|
|
483
|
-
left: `${
|
|
484
|
-
...
|
|
447
|
+
style: w({
|
|
448
|
+
top: `${Q.value.top}px`,
|
|
449
|
+
left: `${Q.value.left}px`,
|
|
450
|
+
...p(Se)
|
|
485
451
|
})
|
|
486
452
|
}, [
|
|
487
|
-
|
|
453
|
+
e.allowTransparent ? (n(), u("button", {
|
|
488
454
|
key: 0,
|
|
489
455
|
type: "button",
|
|
490
456
|
"data-testid": "color-picker-transparent",
|
|
491
|
-
"aria-pressed":
|
|
492
|
-
"aria-label":
|
|
493
|
-
title:
|
|
494
|
-
class:
|
|
495
|
-
onClick:
|
|
496
|
-
}, [
|
|
497
|
-
|
|
457
|
+
"aria-pressed": P.value,
|
|
458
|
+
"aria-label": p(T).colorPicker.transparent,
|
|
459
|
+
title: p(T).colorPicker.transparent,
|
|
460
|
+
class: m(["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)]", P.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)]"]),
|
|
461
|
+
onClick: be
|
|
462
|
+
}, [i[2] ||= b("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), d(" " + x(p(T).colorPicker.transparent), 1)], 10, Ve)) : g("", !0),
|
|
463
|
+
H.value ? (n(), u("div", {
|
|
498
464
|
key: 1,
|
|
499
465
|
role: "radiogroup",
|
|
500
|
-
"aria-label":
|
|
501
|
-
class:
|
|
502
|
-
onKeydown:
|
|
503
|
-
}, [
|
|
466
|
+
"aria-label": p(T).colorPicker.presetColors,
|
|
467
|
+
class: m(["tpl:flex tpl:flex-wrap tpl:gap-1.5", U.value && "tpl:mb-2"]),
|
|
468
|
+
onKeydown: _e
|
|
469
|
+
}, [K.value ? (n(), u("button", {
|
|
504
470
|
key: 0,
|
|
505
471
|
type: "button",
|
|
506
472
|
role: "radio",
|
|
507
|
-
"aria-label":
|
|
508
|
-
title:
|
|
509
|
-
"aria-checked":
|
|
510
|
-
tabindex:
|
|
511
|
-
class:
|
|
512
|
-
onClick:
|
|
513
|
-
}, null, 10, Ue)) :
|
|
473
|
+
"aria-label": p(T).colorPicker.clear,
|
|
474
|
+
title: p(T).colorPicker.clear,
|
|
475
|
+
"aria-checked": N.value,
|
|
476
|
+
tabindex: he(),
|
|
477
|
+
class: m(["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)]", N.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)]"]),
|
|
478
|
+
onClick: X
|
|
479
|
+
}, null, 10, Ue)) : g("", !0), (n(!0), u(D, null, a(B.value, (e, t) => (n(), u("button", {
|
|
514
480
|
key: e,
|
|
515
481
|
type: "button",
|
|
516
482
|
role: "radio",
|
|
517
483
|
"aria-label": e,
|
|
518
484
|
title: e,
|
|
519
|
-
"aria-checked":
|
|
520
|
-
tabindex:
|
|
521
|
-
style:
|
|
522
|
-
class:
|
|
523
|
-
onClick: (t) =>
|
|
524
|
-
}, null, 14, We))), 128))], 42, He)) :
|
|
525
|
-
|
|
485
|
+
"aria-checked": W(e),
|
|
486
|
+
tabindex: ge(t),
|
|
487
|
+
style: w({ backgroundColor: e }),
|
|
488
|
+
class: m(["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)]", W(e) ? "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)]"]),
|
|
489
|
+
onClick: (t) => G(e)
|
|
490
|
+
}, null, 14, We))), 128))], 42, He)) : g("", !0),
|
|
491
|
+
U.value ? (n(), u("hex-color-picker", {
|
|
526
492
|
key: 2,
|
|
527
|
-
color:
|
|
528
|
-
"aria-label":
|
|
529
|
-
onColorChanged:
|
|
530
|
-
onPointerdown:
|
|
531
|
-
onPointerup:
|
|
532
|
-
onKeydown:
|
|
533
|
-
}, null, 40, Ge)) :
|
|
534
|
-
|
|
493
|
+
color: re.value,
|
|
494
|
+
"aria-label": p(T).colorPicker.pickColor,
|
|
495
|
+
onColorChanged: ve,
|
|
496
|
+
onPointerdown: ye,
|
|
497
|
+
onPointerup: J,
|
|
498
|
+
onKeydown: i[0] ||= f((e) => k.value = !1, ["escape"])
|
|
499
|
+
}, null, 40, Ge)) : g("", !0),
|
|
500
|
+
e.swatchOnly && U.value ? (n(), u("div", Ke, [b("input", {
|
|
535
501
|
type: "text",
|
|
536
|
-
class:
|
|
537
|
-
style:
|
|
538
|
-
value:
|
|
539
|
-
placeholder:
|
|
540
|
-
disabled:
|
|
541
|
-
"aria-label":
|
|
542
|
-
onChange:
|
|
543
|
-
onKeydown:
|
|
544
|
-
}, null, 46, qe),
|
|
502
|
+
class: m([p(ie), "tpl:w-full"]),
|
|
503
|
+
style: w(R.value ? { paddingRight: "2.25rem" } : void 0),
|
|
504
|
+
value: F.value,
|
|
505
|
+
placeholder: e.placeholder || p(T).colorPicker.notSet,
|
|
506
|
+
disabled: l.value,
|
|
507
|
+
"aria-label": p(T).colorPicker.hexValue,
|
|
508
|
+
onChange: Y,
|
|
509
|
+
onKeydown: i[1] ||= f(y((e) => e.target.blur(), ["prevent"]), ["enter"])
|
|
510
|
+
}, null, 46, qe), R.value ? (n(), u("button", {
|
|
545
511
|
key: 0,
|
|
546
512
|
type: "button",
|
|
547
|
-
"aria-label":
|
|
548
|
-
title:
|
|
513
|
+
"aria-label": p(T).colorPicker.clear,
|
|
514
|
+
title: p(T).colorPicker.clear,
|
|
549
515
|
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)]",
|
|
550
|
-
onClick:
|
|
551
|
-
}, [
|
|
516
|
+
onClick: X
|
|
517
|
+
}, [O(p(I), {
|
|
552
518
|
size: 14,
|
|
553
519
|
"stroke-width": 1.5
|
|
554
|
-
})], 8, Je)) :
|
|
555
|
-
], 12, Be)) :
|
|
520
|
+
})], 8, Je)) : g("", !0)])) : g("", !0)
|
|
521
|
+
], 12, Be)) : g("", !0)]),
|
|
556
522
|
_: 1
|
|
557
523
|
})], 8, ["to", "disabled"]))
|
|
558
524
|
], 2));
|
|
@@ -568,7 +534,7 @@ var Ie = [
|
|
|
568
534
|
"data-merge-tag-value",
|
|
569
535
|
"onMousedown",
|
|
570
536
|
"onMousemove"
|
|
571
|
-
], $e = { class: "tpl:font-medium" }, et = { class: "tpl:text-[var(--tpl-text-dim)] tpl:font-mono" }, tt = /* @__PURE__ */
|
|
537
|
+
], $e = { class: "tpl:font-medium" }, et = { class: "tpl:text-[var(--tpl-text-dim)] tpl:font-mono" }, tt = /* @__PURE__ */ e({
|
|
572
538
|
__name: "MergeTagSuggestionList",
|
|
573
539
|
props: {
|
|
574
540
|
items: {},
|
|
@@ -579,26 +545,26 @@ var Ie = [
|
|
|
579
545
|
emits: ["select", "hover"],
|
|
580
546
|
setup(e) {
|
|
581
547
|
let t = e;
|
|
582
|
-
function
|
|
548
|
+
function r(e) {
|
|
583
549
|
return t.listId ? `${t.listId}-opt-${e}` : void 0;
|
|
584
550
|
}
|
|
585
|
-
return (t,
|
|
551
|
+
return (t, i) => (n(), u("div", {
|
|
586
552
|
id: e.listId,
|
|
587
553
|
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)]",
|
|
588
554
|
role: "listbox",
|
|
589
555
|
"data-testid": "merge-tag-suggestion-list"
|
|
590
|
-
}, [e.items.length === 0 ? (
|
|
591
|
-
key:
|
|
592
|
-
id:
|
|
556
|
+
}, [e.items.length === 0 ? (n(), u("div", Ze, x(e.emptyText), 1)) : g("", !0), (n(!0), u(D, null, a(e.items, (i, a) => (n(), u("button", {
|
|
557
|
+
key: i.value,
|
|
558
|
+
id: r(a),
|
|
593
559
|
type: "button",
|
|
594
560
|
role: "option",
|
|
595
|
-
"aria-selected":
|
|
596
|
-
"data-selected":
|
|
597
|
-
"data-merge-tag-value":
|
|
598
|
-
class:
|
|
599
|
-
onMousedown:
|
|
600
|
-
onMousemove: (n) =>
|
|
601
|
-
}, [
|
|
561
|
+
"aria-selected": a === e.selectedIndex,
|
|
562
|
+
"data-selected": a === e.selectedIndex ? "true" : "false",
|
|
563
|
+
"data-merge-tag-value": i.value,
|
|
564
|
+
class: m(["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 === e.selectedIndex ? "tpl:bg-[var(--tpl-primary-light)] tpl:text-[var(--tpl-primary)]" : "tpl:text-[var(--tpl-text)] tpl:hover:bg-[var(--tpl-bg-hover)]"]),
|
|
565
|
+
onMousedown: y((e) => t.$emit("select", i), ["prevent", "stop"]),
|
|
566
|
+
onMousemove: (n) => a !== e.selectedIndex && t.$emit("hover", a)
|
|
567
|
+
}, [b("span", $e, x(i.label), 1), b("span", et, x(i.value), 1)], 42, Qe))), 128))], 8, Xe));
|
|
602
568
|
}
|
|
603
569
|
}), nt = 10, rt = 0;
|
|
604
570
|
function it(e, t) {
|
|
@@ -611,8 +577,8 @@ function it(e, t) {
|
|
|
611
577
|
function at(e, t, n, r) {
|
|
612
578
|
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;
|
|
613
579
|
}
|
|
614
|
-
function ot(
|
|
615
|
-
let r = null, i = null, a = null, o =
|
|
580
|
+
function ot(e, n) {
|
|
581
|
+
let r = null, i = null, a = null, o = E([]), s = E(0), c = null, l = `tpl-merge-tag-suggestion-${++rt}`, u = null, d = [], f = null;
|
|
616
582
|
function p() {
|
|
617
583
|
v(u?.() ?? null);
|
|
618
584
|
}
|
|
@@ -644,11 +610,11 @@ function ot(t, n) {
|
|
|
644
610
|
function v(e) {
|
|
645
611
|
if (!i || !e || e.bottom < 0 || e.top > window.innerHeight) return;
|
|
646
612
|
i.style.position = "absolute", i.style.zIndex = "9999";
|
|
647
|
-
let t = i.offsetParent?.getBoundingClientRect(), n = t?.top ?? 0
|
|
648
|
-
i.style.left = `${e.left -
|
|
649
|
-
let
|
|
650
|
-
if (
|
|
651
|
-
let t = Math.max(0, e.top -
|
|
613
|
+
let t = i.offsetParent?.getBoundingClientRect(), n = t?.top ?? 0;
|
|
614
|
+
i.style.left = `${e.left - (t?.left ?? 0)}px`, i.style.top = `${e.bottom - n}px`;
|
|
615
|
+
let r = i.offsetHeight;
|
|
616
|
+
if (r !== 0 && window.innerHeight - e.bottom < r) {
|
|
617
|
+
let t = Math.max(0, e.top - r);
|
|
652
618
|
i.style.top = `${t - n}px`;
|
|
653
619
|
}
|
|
654
620
|
}
|
|
@@ -670,29 +636,29 @@ function ot(t, n) {
|
|
|
670
636
|
function x() {
|
|
671
637
|
a && (o.value.length === 0 ? a.removeAttribute("aria-activedescendant") : a.setAttribute("aria-activedescendant", `${l}-opt-${s.value}`));
|
|
672
638
|
}
|
|
673
|
-
function
|
|
639
|
+
function S(e) {
|
|
674
640
|
c?.(e);
|
|
675
641
|
}
|
|
676
642
|
return {
|
|
677
|
-
open: ({ items:
|
|
678
|
-
o.value =
|
|
679
|
-
return
|
|
643
|
+
open: ({ items: d, getRect: f, anchorEl: p, onCommand: h }) => {
|
|
644
|
+
o.value = d, s.value = 0, c = h, i = document.createElement("div"), i.setAttribute("data-testid", "merge-tag-suggestion-popup"), a = p, y(i, p), (n?.value ?? document.body).appendChild(i), r = T({ render() {
|
|
645
|
+
return t(tt, {
|
|
680
646
|
items: o.value,
|
|
681
647
|
selectedIndex: s.value,
|
|
682
|
-
emptyText:
|
|
648
|
+
emptyText: e,
|
|
683
649
|
listId: l,
|
|
684
|
-
onSelect: (e) =>
|
|
650
|
+
onSelect: (e) => S(e),
|
|
685
651
|
onHover: (e) => {
|
|
686
652
|
s.value = e, x();
|
|
687
653
|
}
|
|
688
654
|
});
|
|
689
|
-
} }), r.mount(i), b(!0), x(), u =
|
|
655
|
+
} }), r.mount(i), b(!0), x(), u = f, m(), g(p);
|
|
690
656
|
},
|
|
691
657
|
update: ({ items: e, getRect: t, onCommand: n }) => {
|
|
692
658
|
o.value = e, s.value >= e.length && (s.value = 0), c = n, x(), u = t, m();
|
|
693
659
|
},
|
|
694
660
|
handleKeyDown: (e) => {
|
|
695
|
-
let t = at(e, o.value, s,
|
|
661
|
+
let t = at(e, o.value, s, S);
|
|
696
662
|
return t && x(), t;
|
|
697
663
|
},
|
|
698
664
|
close: () => {
|
|
@@ -762,193 +728,198 @@ var ft = /* @__PURE__ */ new Set([
|
|
|
762
728
|
"End"
|
|
763
729
|
]);
|
|
764
730
|
function pt(e) {
|
|
765
|
-
let { elementRef:
|
|
766
|
-
|
|
767
|
-
|
|
731
|
+
let { elementRef: t, modelValue: n, emit: r, mergeTags: a, syntax: u, enabled: d, onInsert: f } = e, p = se(), m = k(u), h = j(u), g = C(() => p.value && d && m !== null && a.value.length > 0), _ = o(re, null), y = ot((c(_) ? _.value : _)?.mergeTag?.suggestionEmpty ?? "No matching merge tags", ce());
|
|
732
|
+
i(p, (e) => {
|
|
733
|
+
e || y.close();
|
|
734
|
+
}, { flush: "sync" });
|
|
735
|
+
let b = !1;
|
|
736
|
+
l() && s(() => {
|
|
737
|
+
b = !0, y.close();
|
|
768
738
|
});
|
|
769
|
-
function
|
|
739
|
+
function x(e) {
|
|
770
740
|
let t = e.value ?? "";
|
|
771
741
|
return st(t, e.selectionStart ?? t.length, m, h, u.value);
|
|
772
742
|
}
|
|
773
|
-
function
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
743
|
+
function S(e, i, a) {
|
|
744
|
+
if (!p.value) return;
|
|
745
|
+
let o = e.value ?? n(), s = o.slice(i.caret), c = h && s.startsWith(h) ? h.length : 0, l = o.slice(0, i.triggerStart), u = o.slice(i.caret + c), d = l + a.value + u, m = l.length + a.value.length;
|
|
746
|
+
f?.(), r(d), y.close(), v(() => {
|
|
747
|
+
if (b) return;
|
|
748
|
+
let e = t.value;
|
|
778
749
|
e?.focus(), e?.setSelectionRange(m, m);
|
|
779
750
|
});
|
|
780
751
|
}
|
|
781
|
-
function
|
|
782
|
-
if (!g.value ||
|
|
783
|
-
let e =
|
|
752
|
+
function w() {
|
|
753
|
+
if (!g.value || b) return;
|
|
754
|
+
let e = t.value;
|
|
784
755
|
if (!e) {
|
|
785
|
-
|
|
756
|
+
y.close();
|
|
786
757
|
return;
|
|
787
758
|
}
|
|
788
|
-
let
|
|
789
|
-
if (!
|
|
790
|
-
|
|
759
|
+
let n = x(e);
|
|
760
|
+
if (!n) {
|
|
761
|
+
y.close();
|
|
791
762
|
return;
|
|
792
763
|
}
|
|
793
|
-
let
|
|
794
|
-
|
|
795
|
-
items:
|
|
764
|
+
let r = it(a.value, n.query), i = () => dt(e, n.triggerStart), o = (t) => S(e, n, t);
|
|
765
|
+
y.isOpen() ? y.update({
|
|
766
|
+
items: r,
|
|
796
767
|
getRect: i,
|
|
797
|
-
onCommand:
|
|
798
|
-
}) :
|
|
799
|
-
items:
|
|
768
|
+
onCommand: o
|
|
769
|
+
}) : y.open({
|
|
770
|
+
items: r,
|
|
800
771
|
getRect: i,
|
|
801
772
|
anchorEl: e,
|
|
802
|
-
onCommand:
|
|
773
|
+
onCommand: o
|
|
803
774
|
});
|
|
804
775
|
}
|
|
805
|
-
function
|
|
806
|
-
return
|
|
776
|
+
function T(e) {
|
|
777
|
+
return y.isOpen() ? e.key === "Escape" ? (y.close(), !0) : ft.has(e.key) ? (y.close(), !1) : y.handleKeyDown(e) : !1;
|
|
807
778
|
}
|
|
808
779
|
return {
|
|
809
780
|
available: g,
|
|
810
|
-
refresh:
|
|
811
|
-
handleKeydown:
|
|
812
|
-
close: () =>
|
|
813
|
-
isOpen: () =>
|
|
781
|
+
refresh: w,
|
|
782
|
+
handleKeydown: T,
|
|
783
|
+
close: () => y.close(),
|
|
784
|
+
isOpen: () => y.isOpen()
|
|
814
785
|
};
|
|
815
786
|
}
|
|
816
787
|
// src/composables/useMergeTagField.ts
|
|
817
|
-
function mt(
|
|
818
|
-
let { modelValue:
|
|
819
|
-
|
|
820
|
-
|
|
788
|
+
function mt(e) {
|
|
789
|
+
let { modelValue: t, emit: n, elementRef: r } = e, { mergeTags: i, canRequestMergeTag: a, isRequesting: o, isMergeTagValue: c, getMergeTagDisplayLabel: u, findMergeTag: d, requestMergeTag: f, syntax: p, autocomplete: m } = R(), { canInsertLogicTag: h, isRequesting: g, requestLogicTag: _ } = z(), y = E(!1), b = !1, x = !1;
|
|
790
|
+
l() && s(() => {
|
|
791
|
+
x = !0;
|
|
821
792
|
});
|
|
822
|
-
let
|
|
823
|
-
elementRef:
|
|
824
|
-
modelValue:
|
|
825
|
-
emit:
|
|
826
|
-
mergeTags:
|
|
827
|
-
syntax:
|
|
828
|
-
enabled:
|
|
793
|
+
let S = pt({
|
|
794
|
+
elementRef: r,
|
|
795
|
+
modelValue: t,
|
|
796
|
+
emit: n,
|
|
797
|
+
mergeTags: i,
|
|
798
|
+
syntax: p,
|
|
799
|
+
enabled: m,
|
|
829
800
|
onInsert: () => {
|
|
830
|
-
|
|
801
|
+
y.value = !0;
|
|
831
802
|
}
|
|
832
|
-
}),
|
|
833
|
-
let e =
|
|
803
|
+
}), w = C(() => {
|
|
804
|
+
let e = t();
|
|
834
805
|
if (!e) return [];
|
|
835
|
-
let
|
|
806
|
+
let n = [], r = `(${p.value.source}|${p.logic.source})`, i = new RegExp(r, "g"), a = 0, o;
|
|
836
807
|
for (; (o = i.exec(e)) !== null;) {
|
|
837
|
-
o.index > a &&
|
|
808
|
+
o.index > a && n.push({
|
|
838
809
|
type: "text",
|
|
839
810
|
value: e.slice(a, o.index)
|
|
840
811
|
});
|
|
841
|
-
let
|
|
842
|
-
|
|
812
|
+
let t = o[0];
|
|
813
|
+
c(t) ? n.push({
|
|
843
814
|
type: "mergeTag",
|
|
844
|
-
value:
|
|
845
|
-
label:
|
|
846
|
-
}) :
|
|
815
|
+
value: t,
|
|
816
|
+
label: u(t)
|
|
817
|
+
}) : M(t, p) ? n.push({
|
|
847
818
|
type: "logicMergeTag",
|
|
848
|
-
value:
|
|
849
|
-
keyword:
|
|
850
|
-
}) :
|
|
819
|
+
value: t,
|
|
820
|
+
keyword: A(t, p)
|
|
821
|
+
}) : n.push({
|
|
851
822
|
type: "text",
|
|
852
|
-
value:
|
|
853
|
-
}), a = o.index +
|
|
823
|
+
value: t
|
|
824
|
+
}), a = o.index + t.length;
|
|
854
825
|
}
|
|
855
|
-
return a < e.length &&
|
|
826
|
+
return a < e.length && n.push({
|
|
856
827
|
type: "text",
|
|
857
828
|
value: e.slice(a)
|
|
858
|
-
}),
|
|
859
|
-
}),
|
|
860
|
-
function
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
let e =
|
|
864
|
-
|
|
829
|
+
}), n;
|
|
830
|
+
}), T = C(() => w.value.some((e) => e.type === "mergeTag" || e.type === "logicMergeTag"));
|
|
831
|
+
function D() {
|
|
832
|
+
y.value = !0, v(() => {
|
|
833
|
+
r.value?.focus();
|
|
834
|
+
let e = t()?.length || 0;
|
|
835
|
+
r.value?.setSelectionRange(e, e);
|
|
865
836
|
});
|
|
866
837
|
}
|
|
867
|
-
function
|
|
868
|
-
|
|
838
|
+
function O() {
|
|
839
|
+
b || (y.value = !1);
|
|
869
840
|
}
|
|
870
841
|
function k(e) {
|
|
871
|
-
|
|
842
|
+
n(e.target.value), S.refresh();
|
|
872
843
|
}
|
|
873
|
-
function
|
|
874
|
-
return
|
|
844
|
+
function j(e) {
|
|
845
|
+
return S.handleKeydown(e) ? (e.preventDefault(), !0) : (e.key === "Escape" && O(), !1);
|
|
875
846
|
}
|
|
876
|
-
function
|
|
877
|
-
|
|
847
|
+
function N() {
|
|
848
|
+
S.refresh();
|
|
878
849
|
}
|
|
879
|
-
function
|
|
880
|
-
|
|
850
|
+
function P() {
|
|
851
|
+
S.close(), O();
|
|
881
852
|
}
|
|
882
|
-
function
|
|
883
|
-
|
|
853
|
+
function F() {
|
|
854
|
+
n("");
|
|
884
855
|
}
|
|
885
|
-
async function
|
|
886
|
-
let e =
|
|
887
|
-
|
|
888
|
-
let
|
|
856
|
+
async function I() {
|
|
857
|
+
let e = y.value && r.value ? r.value.selectionStart ?? t().length : t().length;
|
|
858
|
+
b = !0;
|
|
859
|
+
let i;
|
|
889
860
|
try {
|
|
890
|
-
|
|
861
|
+
i = await f();
|
|
891
862
|
} finally {
|
|
892
|
-
|
|
863
|
+
b = !1;
|
|
893
864
|
}
|
|
894
|
-
if (!
|
|
895
|
-
let a =
|
|
896
|
-
|
|
897
|
-
if (
|
|
898
|
-
let
|
|
899
|
-
|
|
865
|
+
if (!x && i) {
|
|
866
|
+
let a = t().slice(0, e), o = t().slice(e), s = a + i.value + o;
|
|
867
|
+
n(s), y.value = !0, v(() => {
|
|
868
|
+
if (x) return;
|
|
869
|
+
let t = e + i.value.length;
|
|
870
|
+
r.value?.focus(), r.value?.setSelectionRange(t, t);
|
|
900
871
|
});
|
|
901
872
|
}
|
|
902
873
|
}
|
|
903
|
-
async function
|
|
904
|
-
let t =
|
|
905
|
-
if (
|
|
906
|
-
|
|
907
|
-
let
|
|
874
|
+
async function ee(e) {
|
|
875
|
+
let t = w.value, r = t[e];
|
|
876
|
+
if (r?.type !== "mergeTag") return;
|
|
877
|
+
b = !0;
|
|
878
|
+
let i;
|
|
908
879
|
try {
|
|
909
|
-
|
|
880
|
+
i = await f({
|
|
910
881
|
reason: "edit",
|
|
911
|
-
current:
|
|
882
|
+
current: d(r.value)
|
|
912
883
|
});
|
|
913
884
|
} finally {
|
|
914
|
-
|
|
885
|
+
b = !1;
|
|
915
886
|
}
|
|
916
|
-
!
|
|
887
|
+
!x && i && n(t.map((t, n) => n === e ? i.value : t.value).join(""));
|
|
917
888
|
}
|
|
918
|
-
async function
|
|
919
|
-
let e =
|
|
920
|
-
|
|
921
|
-
let
|
|
889
|
+
async function te() {
|
|
890
|
+
let e = r.value, i = e?.selectionStart ?? t().length, a = e?.selectionEnd ?? i;
|
|
891
|
+
b = !0;
|
|
892
|
+
let o;
|
|
922
893
|
try {
|
|
923
|
-
|
|
894
|
+
o = await _();
|
|
924
895
|
} finally {
|
|
925
|
-
|
|
896
|
+
b = !1;
|
|
926
897
|
}
|
|
927
|
-
if (
|
|
928
|
-
let
|
|
929
|
-
"before" in
|
|
930
|
-
|
|
898
|
+
if (x || !o) return;
|
|
899
|
+
let s = t(), c, l;
|
|
900
|
+
"before" in o ? (c = s.slice(0, i) + o.before + s.slice(i, a) + o.after + s.slice(a), l = i + o.before.length + (a - i)) : (c = s.slice(0, i) + o.value + s.slice(i), l = i + o.value.length), n(c), y.value = !0, v(() => {
|
|
901
|
+
x || (r.value?.focus(), r.value?.setSelectionRange(l, l));
|
|
931
902
|
});
|
|
932
903
|
}
|
|
933
904
|
return {
|
|
934
|
-
segments:
|
|
935
|
-
hasMergeTags:
|
|
936
|
-
canRequestMergeTag:
|
|
937
|
-
isRequestingMergeTag:
|
|
938
|
-
canInsertLogicTag:
|
|
939
|
-
isRequestingLogicTag:
|
|
940
|
-
isEditing:
|
|
941
|
-
startEditing:
|
|
942
|
-
stopEditing:
|
|
905
|
+
segments: w,
|
|
906
|
+
hasMergeTags: T,
|
|
907
|
+
canRequestMergeTag: a,
|
|
908
|
+
isRequestingMergeTag: o,
|
|
909
|
+
canInsertLogicTag: h,
|
|
910
|
+
isRequestingLogicTag: g,
|
|
911
|
+
isEditing: y,
|
|
912
|
+
startEditing: D,
|
|
913
|
+
stopEditing: O,
|
|
943
914
|
handleInput: k,
|
|
944
|
-
handleKeydown:
|
|
945
|
-
handleClick:
|
|
946
|
-
handleBlur:
|
|
947
|
-
clearValue:
|
|
948
|
-
insertMergeTag:
|
|
949
|
-
replaceMergeTagAt:
|
|
950
|
-
insertLogicTag:
|
|
951
|
-
autocompleteAvailable:
|
|
915
|
+
handleKeydown: j,
|
|
916
|
+
handleClick: N,
|
|
917
|
+
handleBlur: P,
|
|
918
|
+
clearValue: F,
|
|
919
|
+
insertMergeTag: I,
|
|
920
|
+
replaceMergeTagAt: ee,
|
|
921
|
+
insertLogicTag: te,
|
|
922
|
+
autocompleteAvailable: S.available
|
|
952
923
|
};
|
|
953
924
|
}
|
|
954
925
|
// src/components/MergeTagSegments.vue?vue&type=script&setup=true&lang.ts
|
|
@@ -959,7 +930,7 @@ var ht = ["aria-label"], gt = [
|
|
|
959
930
|
], _t = ["data-tooltip"], vt = ["data-tooltip"], yt = {
|
|
960
931
|
key: 3,
|
|
961
932
|
class: "tpl:text-sm tpl:text-[var(--tpl-text)]"
|
|
962
|
-
}, bt = ["aria-label", "title"], xt = ["aria-label", "title"], St = /* @__PURE__ */
|
|
933
|
+
}, bt = ["aria-label", "title"], xt = ["aria-label", "title"], St = /* @__PURE__ */ e({
|
|
963
934
|
__name: "MergeTagSegments",
|
|
964
935
|
props: {
|
|
965
936
|
segments: {},
|
|
@@ -972,37 +943,37 @@ var ht = ["aria-label"], gt = [
|
|
|
972
943
|
"repick"
|
|
973
944
|
],
|
|
974
945
|
setup(e, { emit: t }) {
|
|
975
|
-
let
|
|
946
|
+
let r = t, { t: i, format: o } = L(), { canRepickMergeTag: s, showRawValue: c } = R();
|
|
976
947
|
function l() {
|
|
977
|
-
|
|
948
|
+
r("edit");
|
|
978
949
|
}
|
|
979
|
-
return (t, d) => (
|
|
950
|
+
return (t, d) => (n(), u("div", {
|
|
980
951
|
role: "group",
|
|
981
|
-
"aria-label":
|
|
982
|
-
class:
|
|
952
|
+
"aria-label": p(i).mergeTag.fieldGroup,
|
|
953
|
+
class: m([e.displayClass, { "tpl-pulse-fill": e.pulse }]),
|
|
983
954
|
onClick: l
|
|
984
955
|
}, [
|
|
985
|
-
(
|
|
956
|
+
(n(!0), u(D, null, a(e.segments, (e, t) => (n(), u(D, { key: `${e.type}-${t}-${e.value}` }, [e.type === "mergeTag" && p(s)(e.value) ? (n(), u("button", {
|
|
986
957
|
key: 0,
|
|
987
958
|
type: "button",
|
|
988
|
-
class:
|
|
989
|
-
"data-tooltip":
|
|
990
|
-
"aria-label":
|
|
959
|
+
class: m(["tpl:inline-flex tpl:cursor-pointer tpl:items-center tpl:gap-1 tpl:rounded tpl:border-none tpl:px-1.5 tpl:py-0.5 tpl:text-[0.9em] tpl:font-medium", p(c) ? "tpl-tooltip" : ""]),
|
|
960
|
+
"data-tooltip": p(c) ? e.value : void 0,
|
|
961
|
+
"aria-label": p(o)(p(i).mergeTag.changeTag, { label: e.label }),
|
|
991
962
|
"data-testid": "merge-tag-field-chip",
|
|
992
963
|
style: {
|
|
993
964
|
"background-color": "color-mix(\n in srgb,\n var(--tpl-primary) 20%,\n transparent\n )",
|
|
994
965
|
color: "var(--tpl-primary)"
|
|
995
966
|
},
|
|
996
|
-
onClick:
|
|
997
|
-
},
|
|
967
|
+
onClick: y((e) => r("repick", t), ["stop"])
|
|
968
|
+
}, x(e.label), 11, gt)) : e.type === "mergeTag" ? (n(), u("span", {
|
|
998
969
|
key: 1,
|
|
999
|
-
class:
|
|
1000
|
-
"data-tooltip":
|
|
970
|
+
class: m(["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", p(c) ? "tpl-tooltip" : ""]),
|
|
971
|
+
"data-tooltip": p(c) ? e.value : void 0,
|
|
1001
972
|
style: {
|
|
1002
973
|
"background-color": "color-mix(\n in srgb,\n var(--tpl-primary) 20%,\n transparent\n )",
|
|
1003
974
|
color: "var(--tpl-primary)"
|
|
1004
975
|
}
|
|
1005
|
-
},
|
|
976
|
+
}, x(e.label), 11, _t)) : e.type === "logicMergeTag" ? (n(), u("span", {
|
|
1006
977
|
key: 2,
|
|
1007
978
|
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",
|
|
1008
979
|
"data-tooltip": e.value,
|
|
@@ -1011,26 +982,26 @@ var ht = ["aria-label"], gt = [
|
|
|
1011
982
|
border: "1.5px solid\n color-mix(in srgb, var(--tpl-primary) 50%, transparent)",
|
|
1012
983
|
color: "var(--tpl-primary)"
|
|
1013
984
|
}
|
|
1014
|
-
},
|
|
1015
|
-
|
|
985
|
+
}, x(e.keyword), 9, vt)) : (n(), u("span", yt, x(e.value), 1))], 64))), 128)),
|
|
986
|
+
b("button", {
|
|
1016
987
|
type: "button",
|
|
1017
988
|
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",
|
|
1018
|
-
"aria-label":
|
|
1019
|
-
title:
|
|
989
|
+
"aria-label": p(i).mergeTag.editAsText,
|
|
990
|
+
title: p(i).mergeTag.editAsText,
|
|
1020
991
|
"data-testid": "merge-tag-field-edit",
|
|
1021
|
-
onClick:
|
|
1022
|
-
}, [
|
|
992
|
+
onClick: y(l, ["stop"])
|
|
993
|
+
}, [O(p(N), {
|
|
1023
994
|
size: 12,
|
|
1024
995
|
"stroke-width": 2
|
|
1025
996
|
})], 8, bt),
|
|
1026
|
-
|
|
997
|
+
b("button", {
|
|
1027
998
|
type: "button",
|
|
1028
999
|
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",
|
|
1029
|
-
"aria-label":
|
|
1030
|
-
title:
|
|
1000
|
+
"aria-label": p(i).mergeTag.remove,
|
|
1001
|
+
title: p(i).mergeTag.remove,
|
|
1031
1002
|
"data-testid": "merge-tag-field-clear",
|
|
1032
|
-
onClick: d[0] ||=
|
|
1033
|
-
}, [
|
|
1003
|
+
onClick: d[0] ||= y((e) => r("clear"), ["stop"])
|
|
1004
|
+
}, [O(p(I), {
|
|
1034
1005
|
size: 12,
|
|
1035
1006
|
"stroke-width": 2.5
|
|
1036
1007
|
})], 8, xt)
|
|
@@ -1040,48 +1011,50 @@ var ht = ["aria-label"], gt = [
|
|
|
1040
1011
|
"aria-label",
|
|
1041
1012
|
"title",
|
|
1042
1013
|
"disabled"
|
|
1043
|
-
], wt = "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)]", Tt = /* @__PURE__ */
|
|
1014
|
+
], wt = "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)]", Tt = /* @__PURE__ */ e({
|
|
1044
1015
|
__name: "MergeTagInsertButton",
|
|
1045
1016
|
props: { disabled: { type: Boolean } },
|
|
1046
1017
|
emits: ["insert"],
|
|
1047
1018
|
setup(e) {
|
|
1048
|
-
let { t } =
|
|
1049
|
-
return (
|
|
1019
|
+
let { t } = L();
|
|
1020
|
+
return (r, i) => (n(), u("button", {
|
|
1050
1021
|
type: "button",
|
|
1051
|
-
class:
|
|
1052
|
-
"aria-label":
|
|
1053
|
-
title:
|
|
1022
|
+
class: m([wt, "tpl:mt-1.5"]),
|
|
1023
|
+
"aria-label": p(t).mergeTag.insert,
|
|
1024
|
+
title: p(t).mergeTag.insert,
|
|
1054
1025
|
disabled: e.disabled,
|
|
1055
|
-
onMousedown:
|
|
1056
|
-
onClick:
|
|
1057
|
-
}, [
|
|
1026
|
+
onMousedown: i[0] ||= y(() => {}, ["prevent"]),
|
|
1027
|
+
onClick: i[1] ||= (e) => r.$emit("insert")
|
|
1028
|
+
}, [O(p(F), {
|
|
1058
1029
|
size: 12,
|
|
1059
1030
|
"stroke-width": 2
|
|
1060
|
-
}),
|
|
1031
|
+
}), d(" " + x(p(t).mergeTag.insertShort), 1)], 42, Ct));
|
|
1061
1032
|
}
|
|
1062
1033
|
}), Et = [
|
|
1063
1034
|
"aria-label",
|
|
1064
1035
|
"title",
|
|
1065
1036
|
"disabled"
|
|
1066
|
-
], Dt = "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)]", Ot = /* @__PURE__ */
|
|
1037
|
+
], Dt = "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)]", Ot = /* @__PURE__ */ e({
|
|
1067
1038
|
__name: "LogicTagInsertButton",
|
|
1068
1039
|
props: { disabled: { type: Boolean } },
|
|
1069
1040
|
emits: ["insert"],
|
|
1070
1041
|
setup(e) {
|
|
1071
|
-
let { t } =
|
|
1072
|
-
return (
|
|
1042
|
+
let { t } = L();
|
|
1043
|
+
return (r, i) => (n(), u("button", {
|
|
1073
1044
|
type: "button",
|
|
1074
|
-
class:
|
|
1075
|
-
"aria-label":
|
|
1076
|
-
title:
|
|
1045
|
+
class: m([Dt, "tpl:mt-1.5"]),
|
|
1046
|
+
"aria-label": p(t).logicTag.insert,
|
|
1047
|
+
title: p(t).logicTag.insert,
|
|
1077
1048
|
disabled: e.disabled,
|
|
1078
1049
|
"data-testid": "field-insert-logic-button",
|
|
1079
|
-
onMousedown:
|
|
1080
|
-
onClick:
|
|
1081
|
-
}, [
|
|
1050
|
+
onMousedown: i[0] ||= y(() => {}, ["prevent"]),
|
|
1051
|
+
onClick: i[1] ||= (e) => r.$emit("insert")
|
|
1052
|
+
}, [O(p(P), {
|
|
1082
1053
|
size: 12,
|
|
1083
1054
|
"stroke-width": 2
|
|
1084
|
-
}),
|
|
1055
|
+
}), d(" " + x(p(t).logicTag.insertShort), 1)], 42, Et));
|
|
1085
1056
|
}
|
|
1086
1057
|
});
|
|
1087
|
-
export { ot as a, Ye as c, mt as i,
|
|
1058
|
+
export { ot as a, Ye as c, mt as i, Tt as n, it as o, St as r, at as s, Ot as t };
|
|
1059
|
+
|
|
1060
|
+
//# sourceMappingURL=LogicTagInsertButton-5Z3fFzjc.js.map
|