@templatical/editor 0.51.1 → 0.52.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/THIRD_PARTY_NOTICES.md +208 -0
- package/dist/{AiAltTextPopover-BZQ95GXL.js → AiAltTextPopover-DawbUywc.js} +16 -17
- package/dist/{AiAltTextReview-DoBEudnE.js → AiAltTextReview-9ySsXOTU.js} +25 -26
- package/dist/{AiChatPanel-Bs6sES3b.js → AiChatPanel-CupPhmsN.js} +141 -143
- package/dist/{AiPanels-CfN7A-ZA.js → AiPanels-DqT4PgQ0.js} +6 -8
- package/dist/{AiRewriteMenu-C3ZfDDYy.js → AiRewriteMenu-28agTycW.js} +66 -67
- package/dist/BlockIssueBadge-BxpDy3u-.js +33 -0
- package/dist/{BlockPreviewCanvas-BXNLLLYi.js → BlockPreviewCanvas-B-4bmJ3t.js} +26 -27
- package/dist/{CloudHeaderExtras-CsJMEiyN.js → CloudHeaderExtras-QI82yF54.js} +4 -5
- package/dist/{CloudPanels-B4F5m7vy.js → CloudPanels-BKJaLkUN.js} +52 -53
- package/dist/{CollaborationNotices-CNuDp7Y2.js → CollaborationNotices-CTw4JThq.js} +12 -13
- package/dist/{CollaboratorBar-BtHPiuHq.js → CollaboratorBar-CXQqN3VP.js} +16 -17
- package/dist/{CommentsPanel-CyCM-BvT.js → CommentsPanel-DwwFuh1h.js} +3 -5
- package/dist/CommentsSidebar-9ZfiC2DO.js +500 -0
- package/dist/{CountdownBlock-DR4Xm2-T.js → CountdownBlock-CU2yTWtF.js} +21 -22
- package/dist/{CountdownToolbar-CEIMPojJ.js → CountdownToolbar-BqoYzf_6.js} +55 -56
- package/dist/IssuesPanel-4ykrf1ax.js +359 -0
- package/dist/{LoadingTrack-B0RKQWq3.js → LoadingTrack-DM4g6j7b.js} +3 -4
- package/dist/{LogicTagInsertButton-CqfU52CO.js → LogicTagInsertButton-CfscnwCn.js} +243 -250
- package/dist/{MediaEditModal-DHtkZ4OU.js → MediaEditModal-Dy08GEwE.js} +449 -452
- package/dist/{MediaPanels-CGcOB2pR.js → MediaPanels-BgEp7iCp.js} +3 -5
- package/dist/{MergeTagInput-YnEkorTZ.js → MergeTagInput-B9dtUthD.js} +14 -15
- package/dist/{MergeTagModeToggle-Dhb1DAcQ.js → MergeTagModeToggle-DxujhYJ4.js} +30 -31
- package/dist/{MergeTagTextarea-e4lnwtqZ.js → MergeTagTextarea-CPFEjJZd.js} +12 -13
- package/dist/{ParagraphEditor-B6NK0ytw.js → ParagraphEditor-CWXfurGh.js} +233 -236
- package/dist/{RestoreVersionDialog-Bq_IGOLJ.js → RestoreVersionDialog-C4s_JYCx.js} +16 -17
- package/dist/{RichTextEditorContent-AOM6fylS.js → RichTextEditorContent-o6HmE8GR.js} +40 -40
- package/dist/{SaveBlockDialog-C8GngfQx.js → SaveBlockDialog-CWLrly6l.js} +58 -59
- package/dist/SavedBlocksBrowserModal-CE8n4EBS.js +359 -0
- package/dist/{SavedBlocksPanels-C2s3q0pJ.js → SavedBlocksPanels-BE1N9rNZ.js} +7 -9
- package/dist/{SavedBlocksPickBar-BjcTiV87.js → SavedBlocksPickBar-Dwl94xhP.js} +14 -15
- package/dist/{TemplateSettings-BVBWpiDU.js → TemplateSettings-CS0f1Ues.js} +75 -76
- package/dist/{TestEmailModal-SyhO9bn3.js → TestEmailModal-DBD0X5nV.js} +54 -56
- package/dist/{TestEmailPanel-BDd2Rtav.js → TestEmailPanel-DaFjP9QK.js} +3 -5
- package/dist/{TitleEditor-pxD53y_l.js → TitleEditor-DSqtle77.js} +78 -79
- package/dist/{ToggleSwitch-D51U9cmR.js → ToggleSwitch-JykPyD_8.js} +5 -6
- package/dist/{Toolbar-CZSPZYbj.js → Toolbar-BZPFfKrf.js} +977 -985
- package/dist/{TplModal-DCzBzicE.js → TplModal-DLMssVlt.js} +16 -17
- package/dist/{VersionHistoryMenu-BQeWPT85.js → VersionHistoryMenu-BkbYUs0Q.js} +37 -38
- package/dist/{VersionHistoryPanels-BBm7YbRQ.js → VersionHistoryPanels-DP7HaYWv.js} +5 -7
- package/dist/{VersionPreviewBanner-DUGF0tUJ.js → VersionPreviewBanner-DECaBwLq.js} +11 -12
- package/dist/WrapperBlock-BsJv_Fiw.js +44 -0
- package/dist/{_plugin-vue_export-helper-B3ysoDQm.js → _plugin-vue_export-helper-Djzt4Yr7.js} +1 -2
- package/dist/{aiErrors-D5UOoYOt.js → aiErrors-C3QEMB0x.js} +3 -5
- package/dist/{aiImageContext-BH4Ss1h3.js → aiImageContext-BQ5mQ6B5.js} +2 -3
- package/dist/{aiRewritePreview-DLGM05Ge.js → aiRewritePreview-DlMyx6Si.js} +1 -2
- package/dist/{blockTypeIcons-NzaYvAI4.js → blockTypeIcons-BHjlPnPf.js} +23 -23
- package/dist/bundle-stats.json +6 -6
- package/dist/{ca-C7mTzW1r.js → ca-CD-Kt1qz.js} +1 -2
- package/dist/{ca-CYQH3J0b.js → ca-Cc6eL0ZS.js} +1 -2
- package/dist/cdn/chunks/{AiAltTextPopover-CQu0Q_ZX.js → AiAltTextPopover-SEEjkd-I.js} +24 -25
- package/dist/cdn/chunks/{AiAltTextPopover-CQu0Q_ZX.js.map → AiAltTextPopover-SEEjkd-I.js.map} +1 -1
- package/dist/cdn/chunks/{AiAltTextReview-CI2HbWfn.js → AiAltTextReview-BGLLSKLm.js} +43 -44
- package/dist/cdn/chunks/{AiAltTextReview-CI2HbWfn.js.map → AiAltTextReview-BGLLSKLm.js.map} +1 -1
- package/dist/cdn/chunks/{AiChatPanel-BYqn1bKu.js → AiChatPanel-DKDAaBNi.js} +129 -131
- package/dist/cdn/chunks/{AiChatPanel-BYqn1bKu.js.map → AiChatPanel-DKDAaBNi.js.map} +1 -1
- package/dist/cdn/chunks/{AiPanels-CIFKQv8Y.js → AiPanels-0wBarZSH.js} +5 -7
- package/dist/cdn/chunks/{AiPanels-CIFKQv8Y.js.map → AiPanels-0wBarZSH.js.map} +1 -1
- package/dist/cdn/chunks/{AiRewriteMenu-Bhh71zcc.js → AiRewriteMenu-qf-cfEpy.js} +52 -53
- package/dist/cdn/chunks/AiRewriteMenu-qf-cfEpy.js.map +1 -0
- package/dist/cdn/chunks/BlockIssueBadge-jdf91-nk.js +34 -0
- package/dist/cdn/chunks/BlockIssueBadge-jdf91-nk.js.map +1 -0
- package/dist/cdn/chunks/{BlockPreviewCanvas-D0--EQkP.js → BlockPreviewCanvas-DGBh6mqe.js} +22 -23
- package/dist/cdn/chunks/{BlockPreviewCanvas-D0--EQkP.js.map → BlockPreviewCanvas-DGBh6mqe.js.map} +1 -1
- package/dist/cdn/chunks/{CloudHeaderExtras-DaUU8P8R.js → CloudHeaderExtras-BMNK_F9p.js} +4 -5
- package/dist/cdn/chunks/{CloudHeaderExtras-DaUU8P8R.js.map → CloudHeaderExtras-BMNK_F9p.js.map} +1 -1
- package/dist/cdn/chunks/{CloudPanels-C3jsxo_f.js → CloudPanels-JMWIoVWh.js} +34 -35
- package/dist/cdn/chunks/{CloudPanels-C3jsxo_f.js.map → CloudPanels-JMWIoVWh.js.map} +1 -1
- package/dist/cdn/chunks/{CollaborationNotices-DjRI8gvs.js → CollaborationNotices-Bsf1rGW9.js} +13 -14
- package/dist/cdn/chunks/{CollaborationNotices-DjRI8gvs.js.map → CollaborationNotices-Bsf1rGW9.js.map} +1 -1
- package/dist/cdn/chunks/{CollaboratorBar-Dfzm6A9A.js → CollaboratorBar-CXByAoUz.js} +16 -17
- package/dist/cdn/chunks/{CollaboratorBar-Dfzm6A9A.js.map → CollaboratorBar-CXByAoUz.js.map} +1 -1
- package/dist/cdn/chunks/{CommentsPanel-CSO79OeX.js → CommentsPanel-DoJnKLXI.js} +4 -6
- package/dist/cdn/chunks/{CommentsPanel-CSO79OeX.js.map → CommentsPanel-DoJnKLXI.js.map} +1 -1
- package/dist/cdn/chunks/{CommentsSidebar-CCvplq1Z.js → CommentsSidebar-CUtgvdBC.js} +110 -110
- package/dist/cdn/chunks/CommentsSidebar-CUtgvdBC.js.map +1 -0
- package/dist/cdn/chunks/{CountdownBlock-C6USdwk3.js → CountdownBlock-BqRw147R.js} +19 -20
- package/dist/cdn/chunks/{CountdownBlock-C6USdwk3.js.map → CountdownBlock-BqRw147R.js.map} +1 -1
- package/dist/cdn/chunks/{CountdownToolbar-Cjud2Tos.js → CountdownToolbar-xobieKoU.js} +28 -29
- package/dist/cdn/chunks/{CountdownToolbar-Cjud2Tos.js.map → CountdownToolbar-xobieKoU.js.map} +1 -1
- package/dist/cdn/chunks/{IssuesPanel-BaWHPDxZ.js → IssuesPanel-C7LfxaAY.js} +76 -77
- package/dist/cdn/chunks/{IssuesPanel-BaWHPDxZ.js.map → IssuesPanel-C7LfxaAY.js.map} +1 -1
- package/dist/cdn/chunks/LoadingTrack-CZuLTazv.js +11 -0
- package/dist/cdn/chunks/{LoadingTrack-BIcL4NiY.js.map → LoadingTrack-CZuLTazv.js.map} +1 -1
- package/dist/cdn/chunks/{LogicTagInsertButton-CsL2JDOG.js → LogicTagInsertButton-BIi05UQu.js} +258 -265
- package/dist/cdn/chunks/{LogicTagInsertButton-CsL2JDOG.js.map → LogicTagInsertButton-BIi05UQu.js.map} +1 -1
- package/dist/cdn/chunks/{MediaEditModal-BuHCiyMu.js → MediaEditModal-Cpcod6_U.js} +152 -155
- package/dist/cdn/chunks/{MediaEditModal-BuHCiyMu.js.map → MediaEditModal-Cpcod6_U.js.map} +1 -1
- package/dist/cdn/chunks/{MediaPanels-DAgUf_T1.js → MediaPanels-BIdcW_1f.js} +4 -6
- package/dist/cdn/chunks/{MediaPanels-DAgUf_T1.js.map → MediaPanels-BIdcW_1f.js.map} +1 -1
- package/dist/cdn/chunks/{MergeTagInput-C8U-7LxL.js → MergeTagInput-BvWg8o5E.js} +35 -36
- package/dist/cdn/chunks/{MergeTagInput-C8U-7LxL.js.map → MergeTagInput-BvWg8o5E.js.map} +1 -1
- package/dist/cdn/chunks/{MergeTagModeToggle-Mm-p0A52.js → MergeTagModeToggle-BgKEVUtV.js} +28 -29
- package/dist/cdn/chunks/{MergeTagModeToggle-Mm-p0A52.js.map → MergeTagModeToggle-BgKEVUtV.js.map} +1 -1
- package/dist/cdn/chunks/{MergeTagTextarea-DuLScsWM.js → MergeTagTextarea-tBz8McZf.js} +33 -34
- package/dist/cdn/chunks/{MergeTagTextarea-DuLScsWM.js.map → MergeTagTextarea-tBz8McZf.js.map} +1 -1
- package/dist/cdn/chunks/{ParagraphEditor-CqSj6Ayz.js → ParagraphEditor-B3Rj_cWF.js} +197 -200
- package/dist/cdn/chunks/ParagraphEditor-B3Rj_cWF.js.map +1 -0
- package/dist/cdn/chunks/{RestoreVersionDialog-CdA5osuA.js → RestoreVersionDialog-CjOdD2xj.js} +21 -22
- package/dist/cdn/chunks/{RestoreVersionDialog-CdA5osuA.js.map → RestoreVersionDialog-CjOdD2xj.js.map} +1 -1
- package/dist/cdn/chunks/{RichTextEditorContent-Q1d2xqBT.js → RichTextEditorContent-DNjR_sNN.js} +30 -31
- package/dist/cdn/chunks/{RichTextEditorContent-Q1d2xqBT.js.map → RichTextEditorContent-DNjR_sNN.js.map} +1 -1
- package/dist/cdn/chunks/{SaveBlockDialog-CijargAy.js → SaveBlockDialog-CUhpawq0.js} +77 -78
- package/dist/cdn/chunks/{SaveBlockDialog-CijargAy.js.map → SaveBlockDialog-CUhpawq0.js.map} +1 -1
- package/dist/cdn/chunks/SavedBlocksBrowserModal-BPYcRoGa.js +356 -0
- package/dist/cdn/chunks/{SavedBlocksBrowserModal-DtOz_X5S.js.map → SavedBlocksBrowserModal-BPYcRoGa.js.map} +1 -1
- package/dist/cdn/chunks/{SavedBlocksPanels-BowyED5h.js → SavedBlocksPanels-C6--Bc81.js} +4 -6
- package/dist/cdn/chunks/{SavedBlocksPanels-BowyED5h.js.map → SavedBlocksPanels-C6--Bc81.js.map} +1 -1
- package/dist/cdn/chunks/{SavedBlocksPickBar-BPRaJBv3.js → SavedBlocksPickBar-DUavxpbU.js} +16 -17
- package/dist/cdn/chunks/{SavedBlocksPickBar-BPRaJBv3.js.map → SavedBlocksPickBar-DUavxpbU.js.map} +1 -1
- package/dist/cdn/chunks/{TemplateSettings-ByZeBO34.js → TemplateSettings-CKtI-dof.js} +72 -73
- package/dist/cdn/chunks/{TemplateSettings-ByZeBO34.js.map → TemplateSettings-CKtI-dof.js.map} +1 -1
- package/dist/cdn/chunks/{TestEmailModal-BUVTj3Ic.js → TestEmailModal-CDQTgESD.js} +68 -70
- package/dist/cdn/chunks/{TestEmailModal-BUVTj3Ic.js.map → TestEmailModal-CDQTgESD.js.map} +1 -1
- package/dist/cdn/chunks/{TestEmailPanel-BxutYoWg.js → TestEmailPanel-CcUpEpAn.js} +4 -6
- package/dist/cdn/chunks/{TestEmailPanel-BxutYoWg.js.map → TestEmailPanel-CcUpEpAn.js.map} +1 -1
- package/dist/cdn/chunks/{TitleEditor-Ccv6uoTz.js → TitleEditor-Cob7RLyK.js} +71 -72
- package/dist/cdn/chunks/TitleEditor-Cob7RLyK.js.map +1 -0
- package/dist/cdn/chunks/{ToggleSwitch-Ctdmj621.js → ToggleSwitch-J7Vwhvha.js} +6 -7
- package/dist/cdn/chunks/{ToggleSwitch-Ctdmj621.js.map → ToggleSwitch-J7Vwhvha.js.map} +1 -1
- package/dist/cdn/chunks/{Toolbar-DoprRgTn.js → Toolbar-CdpsvNOR.js} +977 -985
- package/dist/cdn/chunks/{Toolbar-DoprRgTn.js.map → Toolbar-CdpsvNOR.js.map} +1 -1
- package/dist/cdn/chunks/TplModal-CFPDgbwQ.js +51 -0
- package/dist/cdn/chunks/{TplModal-BXQzmsJX.js.map → TplModal-CFPDgbwQ.js.map} +1 -1
- package/dist/cdn/chunks/{VersionHistoryMenu-BF2fNCvq.js → VersionHistoryMenu-BYlLRvRJ.js} +34 -35
- package/dist/cdn/chunks/{VersionHistoryMenu-BF2fNCvq.js.map → VersionHistoryMenu-BYlLRvRJ.js.map} +1 -1
- package/dist/cdn/chunks/{VersionHistoryPanels-Dal0Uk69.js → VersionHistoryPanels-C6SOVoiT.js} +4 -6
- package/dist/cdn/chunks/{VersionHistoryPanels-Dal0Uk69.js.map → VersionHistoryPanels-C6SOVoiT.js.map} +1 -1
- package/dist/cdn/chunks/{VersionPreviewBanner-BaGcn-b1.js → VersionPreviewBanner-Dvg0ZfAW.js} +12 -13
- package/dist/cdn/chunks/{VersionPreviewBanner-BaGcn-b1.js.map → VersionPreviewBanner-Dvg0ZfAW.js.map} +1 -1
- package/dist/cdn/chunks/{WrapperBlock-DkQJtLz0.js → WrapperBlock-C7Md56IT.js} +14 -15
- package/dist/cdn/chunks/{WrapperBlock-DkQJtLz0.js.map → WrapperBlock-C7Md56IT.js.map} +1 -1
- package/dist/cdn/chunks/{_plugin-vue_export-helper-B3ysoDQm.js → _plugin-vue_export-helper-Djzt4Yr7.js} +1 -2
- package/dist/cdn/chunks/{aiErrors-D5UOoYOt.js → aiErrors-C3QEMB0x.js} +4 -6
- package/dist/cdn/chunks/{aiErrors-D5UOoYOt.js.map → aiErrors-C3QEMB0x.js.map} +1 -1
- package/dist/cdn/chunks/{aiImageContext-BH4Ss1h3.js → aiImageContext-BQ5mQ6B5.js} +3 -4
- package/dist/cdn/chunks/{aiImageContext-BH4Ss1h3.js.map → aiImageContext-BQ5mQ6B5.js.map} +1 -1
- package/dist/cdn/chunks/{aiRewritePreview-DLGM05Ge.js → aiRewritePreview-DlMyx6Si.js} +2 -3
- package/dist/cdn/chunks/{aiRewritePreview-DLGM05Ge.js.map → aiRewritePreview-DlMyx6Si.js.map} +1 -1
- package/dist/cdn/chunks/blockTypeIcons-D7FW7Ypo.js +21 -0
- package/dist/cdn/chunks/blockTypeIcons-D7FW7Ypo.js.map +1 -0
- package/dist/cdn/chunks/{ca-C7mTzW1r.js → ca-CD-Kt1qz.js} +2 -3
- package/dist/cdn/chunks/{ca-C7mTzW1r.js.map → ca-CD-Kt1qz.js.map} +1 -1
- package/dist/cdn/chunks/{ca-CYQH3J0b.js → ca-Cc6eL0ZS.js} +2 -3
- package/dist/cdn/chunks/{ca-CYQH3J0b.js.map → ca-Cc6eL0ZS.js.map} +1 -1
- package/dist/cdn/chunks/{createCloudRuntime-DpBWhrv3.js → createCloudRuntime-Cth2JCEh.js} +58 -77
- package/dist/cdn/chunks/{createCloudRuntime-DpBWhrv3.js.map → createCloudRuntime-Cth2JCEh.js.map} +1 -1
- package/dist/cdn/chunks/{de-DBOTcDj2.js → de-6M4JoHoD.js} +2 -3
- package/dist/cdn/chunks/{de-DBOTcDj2.js.map → de-6M4JoHoD.js.map} +1 -1
- package/dist/cdn/chunks/{de-DNuYQTmS.js → de-CeFJ6wbM.js} +2 -3
- package/dist/cdn/chunks/{de-DNuYQTmS.js.map → de-CeFJ6wbM.js.map} +1 -1
- package/dist/cdn/chunks/{de-JvCTMJPy.js → de-DtrXVcuY.js} +2 -3
- package/dist/cdn/chunks/{de-JvCTMJPy.js.map → de-DtrXVcuY.js.map} +1 -1
- package/dist/cdn/chunks/{dist-Bo8Thh8v.js → dist-8ym3y-pH.js} +44 -45
- package/dist/cdn/chunks/{dist-Bo8Thh8v.js.map → dist-8ym3y-pH.js.map} +1 -1
- package/dist/{dist-DI4_YSnG.js → cdn/chunks/dist-BMzNabtD.js} +107 -109
- package/dist/cdn/chunks/{dist-S-rLGqax.js.map → dist-BMzNabtD.js.map} +1 -1
- package/dist/cdn/chunks/dompurify-JVtr5-B1.js +872 -0
- package/dist/cdn/chunks/dompurify-JVtr5-B1.js.map +1 -0
- package/dist/cdn/chunks/{draggable-DZ0gwUJ6.js → draggable-Du8AUMFT.js} +654 -654
- package/dist/cdn/chunks/draggable-Du8AUMFT.js.map +1 -0
- package/dist/{editor-modal-Bzhl-PgI.js → cdn/chunks/editor-modal-CyCe560f.js} +893 -979
- package/dist/cdn/chunks/{editor-modal-CI6EfeMd.js.map → editor-modal-CyCe560f.js.map} +1 -1
- package/dist/cdn/chunks/{emojiData-6m0DBh7O.js → emojiData-CBNuCfum.js} +2 -3
- package/dist/cdn/chunks/{emojiData-6m0DBh7O.js.map → emojiData-CBNuCfum.js.map} +1 -1
- package/dist/cdn/chunks/{en-CW71OK66.js → en-D14i5nFh.js} +2 -3
- package/dist/cdn/chunks/{en-CW71OK66.js.map → en-D14i5nFh.js.map} +1 -1
- package/dist/cdn/chunks/{en-CDhWRrF_.js → en-FzUuJ8HW.js} +2 -3
- package/dist/cdn/chunks/{en-CDhWRrF_.js.map → en-FzUuJ8HW.js.map} +1 -1
- package/dist/cdn/chunks/en-TIqv4ag3.js +1 -0
- package/dist/cdn/chunks/{es-CAv-Vldw.js → es-Dw_h7Oll.js} +2 -3
- package/dist/cdn/chunks/{es-CAv-Vldw.js.map → es-Dw_h7Oll.js.map} +1 -1
- package/dist/cdn/chunks/{es-DdK7zQfi.js → es-zDacbMhs.js} +2 -3
- package/dist/cdn/chunks/{es-DdK7zQfi.js.map → es-zDacbMhs.js.map} +1 -1
- package/dist/cdn/chunks/{extensions-taJTZlLK.js → extensions-CFF2KWy-.js} +60 -65
- package/dist/cdn/chunks/{extensions-taJTZlLK.js.map → extensions-CFF2KWy-.js.map} +1 -1
- package/dist/cdn/chunks/{formatAbsoluteDateTime-DMmop3C-.js → formatAbsoluteDateTime-Ck2_zXra.js} +2 -3
- package/dist/cdn/chunks/{formatAbsoluteDateTime-DMmop3C-.js.map → formatAbsoluteDateTime-Ck2_zXra.js.map} +1 -1
- package/dist/cdn/chunks/{formatRelativeTime-CtUU-QZ8.js → formatRelativeTime-BTD8Ktt-.js} +1 -2
- package/dist/cdn/chunks/{formatRelativeTime-CtUU-QZ8.js.map → formatRelativeTime-BTD8Ktt-.js.map} +1 -1
- package/dist/cdn/chunks/{fr-DVPtxpR6.js → fr-BJaeKu_8.js} +2 -3
- package/dist/cdn/chunks/{fr-DVPtxpR6.js.map → fr-BJaeKu_8.js.map} +1 -1
- package/dist/cdn/chunks/{fr-Dz5Bgb7-.js → fr-CSgYtjOd.js} +2 -3
- package/dist/cdn/chunks/{fr-Dz5Bgb7-.js.map → fr-CSgYtjOd.js.map} +1 -1
- package/dist/cdn/chunks/{htmlparser-CDRsn-gn.js → htmlparser-hu3YnNQU.js} +6 -11
- package/dist/cdn/chunks/{htmlparser-CDRsn-gn.js.map → htmlparser-hu3YnNQU.js.map} +1 -1
- package/dist/cdn/chunks/{icons-DNX6StSs.js → icons-okSPsLOa.js} +111 -114
- package/dist/cdn/chunks/icons-okSPsLOa.js.map +1 -0
- package/dist/cdn/chunks/{ja-Di-zJiT8.js → ja-B7H3ID8O.js} +2 -3
- package/dist/cdn/chunks/{ja-Di-zJiT8.js.map → ja-B7H3ID8O.js.map} +1 -1
- package/dist/cdn/chunks/{ja-dcWzjStz.js → ja-Cu2HdYaK.js} +2 -3
- package/dist/cdn/chunks/{ja-dcWzjStz.js.map → ja-Cu2HdYaK.js.map} +1 -1
- package/dist/cdn/chunks/{keys-BTpmg2Tt.js → keys-CUj6UA38.js} +3 -4
- package/dist/cdn/chunks/{keys-BTpmg2Tt.js.map → keys-CUj6UA38.js.map} +1 -1
- package/dist/{liquid.browser-Ct2-EezB.js → cdn/chunks/liquid.browser-rubac0VA.js} +993 -937
- package/dist/cdn/chunks/liquid.browser-rubac0VA.js.map +1 -0
- package/dist/cdn/chunks/{logger-Tj0RPskW.js → logger-CqQTfJGx.js} +2 -3
- package/dist/cdn/chunks/{logger-Tj0RPskW.js.map → logger-CqQTfJGx.js.map} +1 -1
- package/dist/cdn/chunks/{nl-CvVuHYFL.js → nl-176ySmc5.js} +2 -3
- package/dist/cdn/chunks/{nl-CvVuHYFL.js.map → nl-176ySmc5.js.map} +1 -1
- package/dist/cdn/chunks/{nl-LZNqQgE4.js → nl-1Ai2NykB.js} +2 -3
- package/dist/cdn/chunks/{nl-LZNqQgE4.js.map → nl-1Ai2NykB.js.map} +1 -1
- package/dist/cdn/chunks/{normalizeMergeTagMarkup-DyePIGqu.js → normalizeMergeTagMarkup-C_KlfSW4.js} +3 -4
- package/dist/cdn/chunks/{normalizeMergeTagMarkup-DyePIGqu.js.map → normalizeMergeTagMarkup-C_KlfSW4.js.map} +1 -1
- package/dist/cdn/chunks/{preRenderCustomBlocks-Dc-QLntG.js → preRenderCustomBlocks-BcXIz7oJ.js} +6 -7
- package/dist/cdn/chunks/{preRenderCustomBlocks-Dc-QLntG.js.map → preRenderCustomBlocks-BcXIz7oJ.js.map} +1 -1
- package/dist/cdn/chunks/{pt-BR-CHM-ZKvE.js → pt-BR-Bp92Fc6J.js} +2 -3
- package/dist/cdn/chunks/{pt-BR-CHM-ZKvE.js.map → pt-BR-Bp92Fc6J.js.map} +1 -1
- package/dist/cdn/chunks/{pt-BR-D6P_mNwA.js → pt-BR-CIbp__Z7.js} +2 -3
- package/dist/cdn/chunks/{pt-BR-D6P_mNwA.js.map → pt-BR-CIbp__Z7.js.map} +1 -1
- package/dist/cdn/chunks/{pt-BR-ZhO4vgyq.js → pt-BR-dDlTwX18.js} +2 -3
- package/dist/cdn/chunks/{pt-BR-ZhO4vgyq.js.map → pt-BR-dDlTwX18.js.map} +1 -1
- package/dist/cdn/chunks/{pusher-Cs4GGEtd.js → pusher-x9rNqzon.js} +3 -4
- package/dist/cdn/chunks/{pusher-Cs4GGEtd.js.map → pusher-x9rNqzon.js.map} +1 -1
- package/dist/cdn/chunks/{readableTextColor-f8Kykfnh.js → readableTextColor-BfZUGnVj.js} +2 -3
- package/dist/cdn/chunks/{readableTextColor-f8Kykfnh.js.map → readableTextColor-BfZUGnVj.js.map} +1 -1
- package/dist/cdn/chunks/{rolldown-runtime-Y_bBpyJl.js → rolldown-runtime-QGRDbDUS.js} +1 -2
- package/dist/cdn/chunks/sanitizeHtml-CN85EDrO.js +72 -0
- package/dist/cdn/chunks/sanitizeHtml-CN85EDrO.js.map +1 -0
- package/dist/cdn/chunks/{socialIcons-BBvsTwCV.js → socialIcons-jsTDmkbb.js} +608 -632
- package/dist/cdn/chunks/{socialIcons-BBvsTwCV.js.map → socialIcons-jsTDmkbb.js.map} +1 -1
- package/dist/cdn/chunks/src-C7bkofBL.js +647 -0
- package/dist/cdn/chunks/src-C7bkofBL.js.map +1 -0
- package/dist/cdn/chunks/{src-Bs_yxk3h.js → src-DEd87i_U.js} +502 -537
- package/dist/cdn/chunks/src-DEd87i_U.js.map +1 -0
- package/dist/cdn/chunks/{src-BNFnxfrA.js → src-DwWrYnUj.js} +188 -171
- package/dist/cdn/chunks/src-DwWrYnUj.js.map +1 -0
- package/dist/cdn/chunks/{styleConstants-v1dNKgJf.js → styleConstants-B8xVRiwX.js} +2 -3
- package/dist/cdn/chunks/{styleConstants-v1dNKgJf.js.map → styleConstants-B8xVRiwX.js.map} +1 -1
- package/dist/cdn/chunks/{templateSettingsFields-YCFVBVYh.js → templateSettingsFields-cjlP-jdw.js} +2 -3
- package/dist/cdn/chunks/{templateSettingsFields-YCFVBVYh.js.map → templateSettingsFields-cjlP-jdw.js.map} +1 -1
- package/dist/cdn/chunks/{tiptap-CtVrAViq.js → tiptap-CbiTlECY.js} +3402 -3278
- package/dist/cdn/chunks/tiptap-CbiTlECY.js.map +1 -0
- package/dist/cdn/chunks/{useCloudI18n-AVXhzbhQ.js → useCloudI18n-DY8_-ETE.js} +4 -5
- package/dist/cdn/chunks/{useCloudI18n-AVXhzbhQ.js.map → useCloudI18n-DY8_-ETE.js.map} +1 -1
- package/dist/cdn/chunks/useEditorCore-BrY66C2y.js +2582 -0
- package/dist/cdn/chunks/useEditorCore-BrY66C2y.js.map +1 -0
- package/dist/cdn/chunks/useEditorRoot-vjZJwKrV.js +9 -0
- package/dist/cdn/chunks/{useEditorRoot-CR5GjJD6.js.map → useEditorRoot-vjZJwKrV.js.map} +1 -1
- package/dist/cdn/chunks/{useI18n-CbVubQhM.js → useI18n-D8pY4LTq.js} +4 -5
- package/dist/cdn/chunks/{useI18n-CbVubQhM.js.map → useI18n-D8pY4LTq.js.map} +1 -1
- package/dist/{useLogicTag-DKLZ1T9H.js → cdn/chunks/useLogicTag-DBJDtpKA.js} +6 -5
- package/dist/cdn/chunks/{useLogicTag-B49Nc53Y.js.map → useLogicTag-DBJDtpKA.js.map} +1 -1
- package/dist/{useMergeTag-Bhdx7AKk.js → cdn/chunks/useMergeTag-B-aG--s1.js} +8 -7
- package/dist/cdn/chunks/{useMergeTag-B0KryMj8.js.map → useMergeTag-B-aG--s1.js.map} +1 -1
- package/dist/{usePopoverPosition-BZea45XK.js → cdn/chunks/usePopoverPosition-DSMtmu2W.js} +8 -10
- package/dist/cdn/chunks/{usePopoverPosition-C829ps5i.js.map → usePopoverPosition-DSMtmu2W.js.map} +1 -1
- package/dist/cdn/chunks/{useScrollToBlock-CAwvulog.js → useScrollToBlock-vjQ0fe-L.js} +5 -7
- package/dist/cdn/chunks/{useScrollToBlock-CAwvulog.js.map → useScrollToBlock-vjQ0fe-L.js.map} +1 -1
- package/dist/cdn/chunks/{withCurrentFont-DFPXeVfG.js → withCurrentFont-hZTvYBHO.js} +3 -4
- package/dist/cdn/chunks/{withCurrentFont-DFPXeVfG.js.map → withCurrentFont-hZTvYBHO.js.map} +1 -1
- package/dist/cdn/editor.css +1 -1
- package/dist/cdn/editor.js +1433 -1454
- package/dist/cdn/editor.js.map +1 -1
- package/dist/{check-yYsp5Xpk.js → check-BZ8o0eet.js} +1 -2
- package/dist/{chevron-down-DTmD06_j.js → chevron-down-DfAAfILv.js} +1 -2
- package/dist/{chevron-right-BSeYZOxc.js → chevron-right-Bk4mGdr7.js} +1 -2
- package/dist/{chevron-up-BOApwrxi.js → chevron-up-MhUf_azW.js} +1 -2
- package/dist/{circle-alert-BMszY8im.js → circle-alert-CShJwVFv.js} +1 -2
- package/dist/{clock-HADxnl6-.js → clock-CTfD6OCt.js} +1 -2
- package/dist/{createCloudRuntime-DVQI_ReU.js → createCloudRuntime-DCgO4A1r.js} +31 -37
- package/dist/{createLucideIcon-0lYYH3EW.js → createLucideIcon-CvhTA2KG.js} +6 -11
- package/dist/{de-DBOTcDj2.js → de-6M4JoHoD.js} +1 -2
- package/dist/{de-DNuYQTmS.js → de-CeFJ6wbM.js} +1 -2
- package/dist/{de-JvCTMJPy.js → de-DtrXVcuY.js} +1 -2
- package/dist/{dist-BC-ZEYLd.js → dist-BF5zEHop.js} +2 -3
- package/dist/{dist-CyBwSiAa.js → dist-BS5uKktL.js} +2 -3
- package/dist/{cdn/chunks/dist-S-rLGqax.js → dist-ByCWA2Tv.js} +101 -101
- package/dist/{dist-DtOF3bDW.js → dist-CKi_npZM.js} +378 -343
- package/dist/{dist-C7EtxNCb.js → dist-CVy-7PHQ.js} +55 -56
- package/dist/{dist-Cr7RPxI9.js → dist-CWSG7Kj0.js} +478 -461
- package/dist/{dist-DXyGqIDE.js → dist-Cy8I5scI.js} +2 -3
- package/dist/{dist-C_dV9QAx.js → dist-D6cMdrfG.js} +133 -133
- package/dist/{dist-DVNjPKsH.js → dist-D6fZec6r.js} +3 -4
- package/dist/{dist-CuLwJF7H.js → dist-Dd5MU2Ev.js} +23 -14
- package/dist/dist-DyFArF_G.js +4 -0
- package/dist/{dist-DBxgrOeo.js → dist-V7W1UhVr.js} +1882 -1792
- package/dist/{dist-DPcf6XZ8.js → dist-p3wymUDt.js} +2 -3
- package/dist/dist-pA3ooG6N.js +4 -0
- package/dist/{dist-3HpYixwF.js → dist-txQLT2sF.js} +173 -161
- package/dist/{cdn/chunks/editor-modal-CI6EfeMd.js → editor-modal-zaZHcmlO.js} +915 -859
- package/dist/{emojiData-6m0DBh7O.js → emojiData-CBNuCfum.js} +1 -2
- package/dist/{en-CW71OK66.js → en-D14i5nFh.js} +1 -2
- package/dist/en-Db76vJbY.js +1 -0
- package/dist/{en-CDhWRrF_.js → en-FzUuJ8HW.js} +1 -2
- package/dist/{es-CAv-Vldw.js → es-Dw_h7Oll.js} +1 -2
- package/dist/{es-DdK7zQfi.js → es-zDacbMhs.js} +1 -2
- package/dist/{extensions-CdyweA50.js → extensions-fo_c-vqf.js} +82 -91
- package/dist/{eye-DWkSvYpj.js → eye-7W4t5e0Q.js} +1 -2
- package/dist/{formatAbsoluteDateTime-DMmop3C-.js → formatAbsoluteDateTime-Ck2_zXra.js} +1 -2
- package/dist/{formatRelativeTime-CtUU-QZ8.js → formatRelativeTime-BTD8Ktt-.js} +0 -1
- package/dist/{fr-DVPtxpR6.js → fr-BJaeKu_8.js} +1 -2
- package/dist/{fr-Dz5Bgb7-.js → fr-CSgYtjOd.js} +1 -2
- package/dist/{image-DesWjcZ4.js → image-BDiRFzSd.js} +1 -2
- package/dist/index.d.ts +6 -6
- package/dist/{info-ClWJGoZy.js → info-Cxi3-Kh9.js} +1 -2
- package/dist/{ja-Di-zJiT8.js → ja-B7H3ID8O.js} +1 -2
- package/dist/{ja-dcWzjStz.js → ja-Cu2HdYaK.js} +1 -2
- package/dist/{keys-Zd9KWRD1.js → keys-BgRERHzu.js} +2 -3
- package/dist/{link-BqRicFTA.js → link-ju_2Cmir.js} +1 -2
- package/dist/{cdn/chunks/liquid.browser-Bbt17cVz.js → liquid.browser-DUXEekoN.js} +991 -939
- package/dist/{list-bojQr9bn.js → list-DYZJf0aZ.js} +1 -2
- package/dist/{loader-circle-B2B8LbUu.js → loader-circle-BZRD0a4I.js} +1 -2
- package/dist/{logger-k9Nbj3Cp.js → logger-BOu7oEtk.js} +1 -2
- package/dist/{message-circle-BEuiNsyZ.js → message-circle-DuEw4Zfx.js} +1 -2
- package/dist/{nl-CvVuHYFL.js → nl-176ySmc5.js} +1 -2
- package/dist/{nl-LZNqQgE4.js → nl-1Ai2NykB.js} +1 -2
- package/dist/{normalizeMergeTagMarkup-P6SUBuPv.js → normalizeMergeTagMarkup-CELnOlgK.js} +30 -31
- package/dist/{package-DCROB4aM.js → package-CePMr2kK.js} +1 -2
- package/dist/{pencil-CEotCKbf.js → pencil-D3aFCL7c.js} +1 -2
- package/dist/{preRenderCustomBlocks-D8rr61_z.js → preRenderCustomBlocks--_xc0XK3.js} +4 -5
- package/dist/{pt-BR-CHM-ZKvE.js → pt-BR-Bp92Fc6J.js} +1 -2
- package/dist/{pt-BR-D6P_mNwA.js → pt-BR-CIbp__Z7.js} +1 -2
- package/dist/{pt-BR-ZhO4vgyq.js → pt-BR-dDlTwX18.js} +1 -2
- package/dist/{readableTextColor-f8Kykfnh.js → readableTextColor-BfZUGnVj.js} +1 -2
- package/dist/{refresh-cw-C6M2mHNC.js → refresh-cw-xnro7_Sk.js} +1 -2
- package/dist/{rolldown-runtime-Dy4uBu1J.js → rolldown-runtime-CGnMp29N.js} +1 -2
- package/dist/{runtime-dom.esm-bundler-B8WCZWUm.js → runtime-dom.esm-bundler-BURR-bj5.js} +121 -122
- package/dist/sanitizeHtml-BzfzpYJY.js +942 -0
- package/dist/{search-Cy99zPYf.js → search-CDrstRBv.js} +1 -2
- package/dist/{send-BDLJFsf3.js → send-DROkPOaX.js} +1 -2
- package/dist/{smartphone-CVvQaNA4.js → smartphone-Bx6u_tjn.js} +1 -2
- package/dist/{socialIcons-Dd-jRiVe.js → socialIcons-D7MGsg0d.js} +553 -564
- package/dist/{sparkles-Ce0Qz0ox.js → sparkles-CdaTtvoz.js} +1 -2
- package/dist/{square-BWlolnXe.js → square-BbCROH_f.js} +1 -2
- package/dist/style.css +1 -1
- package/dist/{styleConstants-v1dNKgJf.js → styleConstants-B8xVRiwX.js} +1 -2
- package/dist/{templateSettingsFields-YCFVBVYh.js → templateSettingsFields-cjlP-jdw.js} +1 -2
- package/dist/templatical-editor.js +1231 -1251
- package/dist/{text-align-start-D1V5gPTy.js → text-align-start-CGacJ9Vw.js} +1 -2
- package/dist/{trash-CZfiUFmw.js → trash-DxCd7zIy.js} +1 -2
- package/dist/{triangle-alert-CFDzyFC7.js → triangle-alert-7_oaitpf.js} +1 -2
- package/dist/{upload-BJfvdIrD.js → upload-DuFEOi_0.js} +1 -2
- package/dist/{useCloudI18n-Dcjua65H.js → useCloudI18n-DEMmUKuO.js} +3 -4
- package/dist/{useEditorCore-BTLeAVlM.js → useEditorCore-BSo2sSID.js} +1568 -1573
- package/dist/useEditorRoot-BMcoCLBx.js +7 -0
- package/dist/{useI18n-BdoY7xDE.js → useI18n-BBrHTdu8.js} +3 -4
- package/dist/{cdn/chunks/useLogicTag-B49Nc53Y.js → useLogicTag-ZPC39rfH.js} +4 -7
- package/dist/{cdn/chunks/useMergeTag-B0KryMj8.js → useMergeTag-BQ4qqWpQ.js} +6 -9
- package/dist/{cdn/chunks/usePopoverPosition-C829ps5i.js → usePopoverPosition-DV1PxL66.js} +6 -12
- package/dist/{useScrollToBlock-FmNMALM_.js → useScrollToBlock-BSyAV4pk.js} +4 -6
- package/dist/{vue.runtime.esm-bundler-DgFJ6GPG.js → vue.runtime.esm-bundler-CnEeTfhs.js} +1001 -1002
- package/dist/{withCurrentFont-BATJHNve.js → withCurrentFont-B22FXAF5.js} +2 -3
- package/dist/{x-CZ0Js0hA.js → x-BpfG7v9g.js} +1 -2
- package/package.json +26 -24
- package/dist/BlockIssueBadge-CKwZ1Vgn.js +0 -34
- package/dist/CommentsSidebar-Ca3DyFOX.js +0 -500
- package/dist/IssuesPanel-C8nMUccy.js +0 -360
- package/dist/SavedBlocksBrowserModal-wnkvxpm_.js +0 -360
- package/dist/WrapperBlock-BO619LAb.js +0 -45
- package/dist/cdn/chunks/AiRewriteMenu-Bhh71zcc.js.map +0 -1
- package/dist/cdn/chunks/BlockIssueBadge-DAn2vsMJ.js +0 -35
- package/dist/cdn/chunks/BlockIssueBadge-DAn2vsMJ.js.map +0 -1
- package/dist/cdn/chunks/CommentsSidebar-CCvplq1Z.js.map +0 -1
- package/dist/cdn/chunks/LoadingTrack-BIcL4NiY.js +0 -12
- package/dist/cdn/chunks/ParagraphEditor-CqSj6Ayz.js.map +0 -1
- package/dist/cdn/chunks/SavedBlocksBrowserModal-DtOz_X5S.js +0 -357
- package/dist/cdn/chunks/TitleEditor-Ccv6uoTz.js.map +0 -1
- package/dist/cdn/chunks/TplModal-BXQzmsJX.js +0 -52
- package/dist/cdn/chunks/blockTypeIcons-ikZAmd6U.js +0 -22
- package/dist/cdn/chunks/blockTypeIcons-ikZAmd6U.js.map +0 -1
- package/dist/cdn/chunks/draggable-DZ0gwUJ6.js.map +0 -1
- package/dist/cdn/chunks/en-ifvu6oPv.js +0 -1
- package/dist/cdn/chunks/icons-DNX6StSs.js.map +0 -1
- package/dist/cdn/chunks/liquid.browser-Bbt17cVz.js.map +0 -1
- package/dist/cdn/chunks/sanitizeRichTextHtml-DeISfLFr.js +0 -62
- package/dist/cdn/chunks/sanitizeRichTextHtml-DeISfLFr.js.map +0 -1
- package/dist/cdn/chunks/src-BNFnxfrA.js.map +0 -1
- package/dist/cdn/chunks/src-Bs_yxk3h.js.map +0 -1
- package/dist/cdn/chunks/src-YGkzYyu0.js +0 -649
- package/dist/cdn/chunks/src-YGkzYyu0.js.map +0 -1
- package/dist/cdn/chunks/tiptap-CtVrAViq.js.map +0 -1
- package/dist/cdn/chunks/useEditorCore-CCVFi1YZ.js +0 -2586
- package/dist/cdn/chunks/useEditorCore-CCVFi1YZ.js.map +0 -1
- package/dist/cdn/chunks/useEditorRoot-CR5GjJD6.js +0 -10
- package/dist/dist-BPFcLKTw.js +0 -5
- package/dist/dist-D7Yj7E-F.js +0 -5
- package/dist/en-DwV15ltA.js +0 -1
- package/dist/sanitizeRichTextHtml-DeISfLFr.js +0 -60
- package/dist/useEditorRoot-DUy67lJu.js +0 -8
package/dist/cdn/chunks/{LogicTagInsertButton-CsL2JDOG.js → LogicTagInsertButton-BIi05UQu.js}
RENAMED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { c as O, i as k, s as A, u as j } from "./src-
|
|
3
|
-
import { t as ee } from "./dist-
|
|
4
|
-
import { J as te, Y as M, Z as ne, d as re } from "./keys-
|
|
5
|
-
import { t as N } from "./useI18n-
|
|
6
|
-
import { a as P, i as ie, n as ae, o as oe, r as se, t as ce } from "./usePopoverPosition-
|
|
7
|
-
import {
|
|
8
|
-
import { t as R } from "./useMergeTag-
|
|
9
|
-
import { t as ue } from "./useLogicTag-
|
|
10
|
-
import { u as de } from "./styleConstants-
|
|
11
|
-
|
|
1
|
+
import { A as e, C as t, D as n, I as r, J as i, P as a, T as o, W as s, Y as c, Z as l, _ as u, b as d, c as f, dt as p, et as m, f as h, ft as g, g as _, h as v, l as y, m as b, n as x, p as S, r as C, st as w, u as T, ut as E, x as D } from "./draggable-Du8AUMFT.js";
|
|
2
|
+
import { c as O, i as k, s as A, u as j } from "./src-DwWrYnUj.js";
|
|
3
|
+
import { t as ee } from "./dist-BMzNabtD.js";
|
|
4
|
+
import { J as te, Y as M, Z as ne, d as re } from "./keys-CUj6UA38.js";
|
|
5
|
+
import { t as N } from "./useI18n-D8pY4LTq.js";
|
|
6
|
+
import { a as P, i as ie, n as ae, o as oe, r as se, t as ce } from "./usePopoverPosition-DSMtmu2W.js";
|
|
7
|
+
import { G as le, N as F, Vt as I, t as L } from "./icons-okSPsLOa.js";
|
|
8
|
+
import { t as R } from "./useMergeTag-B-aG--s1.js";
|
|
9
|
+
import { t as ue } from "./useLogicTag-DBJDtpKA.js";
|
|
10
|
+
import { u as de } from "./styleConstants-B8xVRiwX.js";
|
|
11
|
+
// ../../node_modules/.pnpm/vanilla-colorful@0.7.2/node_modules/vanilla-colorful/lib/utils/math.js
|
|
12
12
|
var z = (e, t = 0, n = 1) => e > n ? n : e < t ? t : e, B = (e, t = 0, n = 10 ** t) => Math.round(n * e) / n, V = (e) => me(H(e)), H = (e) => (e[0] === "#" && (e = e.substring(1)), e.length < 6 ? {
|
|
13
13
|
r: parseInt(e[0] + e[0], 16),
|
|
14
14
|
g: parseInt(e[1] + e[1], 16),
|
|
@@ -242,8 +242,7 @@ var z = (e, t = 0, n = 1) => e > n ? n : e < t ? t : e, B = (e, t = 0, n = 10 **
|
|
|
242
242
|
}
|
|
243
243
|
};
|
|
244
244
|
customElements.define("hex-color-picker", class extends Ne {});
|
|
245
|
-
|
|
246
|
-
//#region src/components/ColorPicker.vue?vue&type=script&setup=true&lang.ts
|
|
245
|
+
// src/components/ColorPicker.vue?vue&type=script&setup=true&lang.ts
|
|
247
246
|
var Pe = [
|
|
248
247
|
"disabled",
|
|
249
248
|
"aria-label",
|
|
@@ -280,7 +279,7 @@ var Pe = [
|
|
|
280
279
|
"placeholder",
|
|
281
280
|
"disabled",
|
|
282
281
|
"aria-label"
|
|
283
|
-
], Ke = ["aria-label", "title"], qe = /* @__PURE__ */
|
|
282
|
+
], Ke = ["aria-label", "title"], qe = /* @__PURE__ */ t({
|
|
284
283
|
__name: "ColorPicker",
|
|
285
284
|
props: {
|
|
286
285
|
modelValue: {},
|
|
@@ -307,17 +306,17 @@ var Pe = [
|
|
|
307
306
|
}
|
|
308
307
|
},
|
|
309
308
|
emits: ["update:modelValue"],
|
|
310
|
-
setup(
|
|
311
|
-
let
|
|
312
|
-
ee(
|
|
313
|
-
|
|
309
|
+
setup(e, { emit: t }) {
|
|
310
|
+
let i = e, o = t, { t: c } = N(), l = m(!1), C = m(), O = m(), k = m(!1);
|
|
311
|
+
ee(C, () => {
|
|
312
|
+
l.value = !1;
|
|
314
313
|
}, { ignore: [O] });
|
|
315
|
-
let A = S(() => !
|
|
314
|
+
let A = S(() => !i.modelValue), j = S(() => i.modelValue.trim().toLowerCase() === "transparent"), M = S(() => ie(i.modelValue)), le = S(() => (i.modelValue ? P(i.modelValue) : null) || (P(i.seedColor) ?? "#ffffff")), F = S(() => !i.disabled && !A.value), I = n(re, oe), R = S(() => [...new Set(i.presets ?? I.presets)]), ue = S(() => i.allowCustom ?? I.allowCustom), z = S(() => R.value.length > 0), B = S(() => ue.value || !z.value), V = S(() => se(i.modelValue));
|
|
316
315
|
function H(e) {
|
|
317
316
|
return V.value !== "" && se(e) === V.value;
|
|
318
317
|
}
|
|
319
318
|
function fe(e) {
|
|
320
|
-
|
|
319
|
+
o("update:modelValue", e);
|
|
321
320
|
}
|
|
322
321
|
let U = S(() => z.value && !B.value);
|
|
323
322
|
function W(e) {
|
|
@@ -345,30 +344,30 @@ var Pe = [
|
|
|
345
344
|
r !== -1 && (t[(r + (e.key === "ArrowRight" || e.key === "ArrowDown" ? 1 : -1) + t.length) % t.length]?.focus(), e.preventDefault());
|
|
346
345
|
}
|
|
347
346
|
function q(e) {
|
|
348
|
-
k.value = !0,
|
|
347
|
+
k.value = !0, o("update:modelValue", e.detail.value);
|
|
349
348
|
}
|
|
350
349
|
function he() {
|
|
351
350
|
k.value = !1;
|
|
352
351
|
}
|
|
353
352
|
function ge() {
|
|
354
|
-
!k.value && A.value &&
|
|
353
|
+
!k.value && A.value && o("update:modelValue", le.value);
|
|
355
354
|
}
|
|
356
355
|
function J(e) {
|
|
357
|
-
|
|
356
|
+
o("update:modelValue", e.target.value);
|
|
358
357
|
}
|
|
359
358
|
function Y() {
|
|
360
|
-
|
|
359
|
+
o("update:modelValue", "");
|
|
361
360
|
}
|
|
362
361
|
function X() {
|
|
363
|
-
|
|
362
|
+
o("update:modelValue", "transparent");
|
|
364
363
|
}
|
|
365
|
-
let Z = ae(), { toLocal: _e } = ce(), ve =
|
|
364
|
+
let Z = ae(), { toLocal: _e } = ce(), ve = n(te, null), ye = n(ne, null), Q = m({
|
|
366
365
|
top: 0,
|
|
367
366
|
left: 0
|
|
368
367
|
});
|
|
369
368
|
function be() {
|
|
370
|
-
if (!
|
|
371
|
-
if (!
|
|
369
|
+
if (!i.disabled) {
|
|
370
|
+
if (!l.value) {
|
|
372
371
|
let e = O.value?.getBoundingClientRect();
|
|
373
372
|
if (e) {
|
|
374
373
|
let t = e.bottom + 8 + 240 <= window.innerHeight ? e.bottom + 8 : Math.max(8, e.top - 240 - 8);
|
|
@@ -378,56 +377,56 @@ var Pe = [
|
|
|
378
377
|
});
|
|
379
378
|
}
|
|
380
379
|
}
|
|
381
|
-
|
|
380
|
+
l.value = !l.value;
|
|
382
381
|
}
|
|
383
382
|
}
|
|
384
|
-
return (
|
|
385
|
-
|
|
383
|
+
return (t, n) => (a(), u("div", { class: E(["tpl:flex tpl:items-center tpl:gap-2 tpl:relative", e.disabled && "tpl:opacity-60 tpl:cursor-not-allowed"]) }, [
|
|
384
|
+
b("button", {
|
|
386
385
|
ref_key: "swatchRef",
|
|
387
386
|
ref: O,
|
|
388
387
|
type: "button",
|
|
389
|
-
disabled:
|
|
390
|
-
"aria-label":
|
|
391
|
-
title:
|
|
392
|
-
"aria-expanded":
|
|
393
|
-
class:
|
|
388
|
+
disabled: e.disabled,
|
|
389
|
+
"aria-label": e.ariaLabel || w(c).colorPicker.pickColor,
|
|
390
|
+
title: e.ariaLabel || void 0,
|
|
391
|
+
"aria-expanded": l.value,
|
|
392
|
+
class: E([
|
|
394
393
|
"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)]",
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
394
|
+
e.disabled ? "tpl:cursor-not-allowed" : "tpl:cursor-pointer",
|
|
395
|
+
l.value ? "tpl:border-[var(--tpl-primary)] tpl:shadow-[var(--tpl-ring)]" : !e.disabled && "tpl:hover:border-[var(--tpl-text-dim)]",
|
|
396
|
+
e.size === "sm" ? "tpl:size-8" : "tpl:size-10"
|
|
398
397
|
]),
|
|
399
398
|
onClick: be
|
|
400
|
-
}, [
|
|
401
|
-
class:
|
|
399
|
+
}, [b("span", {
|
|
400
|
+
class: E(["tpl:block tpl:size-full tpl:rounded-[calc(var(--tpl-radius-sm)-2px)]", {
|
|
402
401
|
"tpl-color-swatch-empty": A.value,
|
|
403
402
|
"tpl-color-swatch-transparent": j.value
|
|
404
403
|
}]),
|
|
405
|
-
style:
|
|
404
|
+
style: p(A.value || j.value ? void 0 : { backgroundColor: M.value })
|
|
406
405
|
}, null, 6)], 10, Pe),
|
|
407
|
-
!
|
|
406
|
+
!e.swatchOnly && B.value ? (a(), u("div", Fe, [b("input", {
|
|
408
407
|
type: "text",
|
|
409
|
-
class:
|
|
410
|
-
style:
|
|
408
|
+
class: E([w(de), "tpl:w-full"]),
|
|
409
|
+
style: p(F.value ? { paddingRight: "2.25rem" } : void 0),
|
|
411
410
|
value: M.value,
|
|
412
|
-
placeholder:
|
|
413
|
-
disabled:
|
|
414
|
-
"aria-label":
|
|
411
|
+
placeholder: e.placeholder || w(c).colorPicker.notSet,
|
|
412
|
+
disabled: e.disabled,
|
|
413
|
+
"aria-label": w(c).colorPicker.hexValue,
|
|
415
414
|
onInput: J
|
|
416
|
-
}, null, 46, Ie), F.value ? (
|
|
415
|
+
}, null, 46, Ie), F.value ? (a(), u("button", {
|
|
417
416
|
key: 0,
|
|
418
417
|
type: "button",
|
|
419
|
-
"aria-label":
|
|
420
|
-
title:
|
|
418
|
+
"aria-label": w(c).colorPicker.clear,
|
|
419
|
+
title: w(c).colorPicker.clear,
|
|
421
420
|
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)]",
|
|
422
421
|
onClick: Y
|
|
423
|
-
}, [D(
|
|
422
|
+
}, [D(w(L), {
|
|
424
423
|
size: 14,
|
|
425
424
|
"stroke-width": 1.5
|
|
426
|
-
})], 8, Le)) :
|
|
427
|
-
(
|
|
428
|
-
to:
|
|
429
|
-
disabled: !
|
|
430
|
-
}, [D(
|
|
425
|
+
})], 8, Le)) : _("", !0)])) : _("", !0),
|
|
426
|
+
(a(), v(h, {
|
|
427
|
+
to: w(Z),
|
|
428
|
+
disabled: !w(Z)
|
|
429
|
+
}, [D(x, {
|
|
431
430
|
"enter-active-class": "tpl:transition-all tpl:duration-[120ms] tpl:ease-[cubic-bezier(0.16,1,0.3,1)]",
|
|
432
431
|
"enter-from-class": "tpl:opacity-0 tpl:scale-95 tpl:translate-y-1",
|
|
433
432
|
"enter-to-class": "tpl:opacity-100 tpl:scale-100 tpl:translate-y-0",
|
|
@@ -435,45 +434,45 @@ var Pe = [
|
|
|
435
434
|
"leave-from-class": "tpl:opacity-100 tpl:scale-100 tpl:translate-y-0",
|
|
436
435
|
"leave-to-class": "tpl:opacity-0 tpl:scale-95 tpl:translate-y-1"
|
|
437
436
|
}, {
|
|
438
|
-
default:
|
|
437
|
+
default: s(() => [l.value ? (a(), u("div", {
|
|
439
438
|
key: 0,
|
|
440
439
|
ref_key: "popoverRef",
|
|
441
|
-
ref:
|
|
442
|
-
"data-tpl-theme":
|
|
440
|
+
ref: C,
|
|
441
|
+
"data-tpl-theme": w(ye),
|
|
443
442
|
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)]",
|
|
444
|
-
style:
|
|
443
|
+
style: p({
|
|
445
444
|
top: `${Q.value.top}px`,
|
|
446
445
|
left: `${Q.value.left}px`,
|
|
447
|
-
...
|
|
446
|
+
...w(ve)
|
|
448
447
|
})
|
|
449
448
|
}, [
|
|
450
|
-
|
|
449
|
+
e.allowTransparent ? (a(), u("button", {
|
|
451
450
|
key: 0,
|
|
452
451
|
type: "button",
|
|
453
452
|
"data-testid": "color-picker-transparent",
|
|
454
453
|
"aria-pressed": j.value,
|
|
455
|
-
"aria-label":
|
|
456
|
-
title:
|
|
457
|
-
class:
|
|
454
|
+
"aria-label": w(c).colorPicker.transparent,
|
|
455
|
+
title: w(c).colorPicker.transparent,
|
|
456
|
+
class: E(["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)]", j.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)]"]),
|
|
458
457
|
onClick: X
|
|
459
|
-
}, [n[2] ||=
|
|
460
|
-
z.value ? (
|
|
458
|
+
}, [n[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(" " + g(w(c).colorPicker.transparent), 1)], 10, ze)) : _("", !0),
|
|
459
|
+
z.value ? (a(), u("div", {
|
|
461
460
|
key: 1,
|
|
462
461
|
role: "radiogroup",
|
|
463
|
-
"aria-label":
|
|
464
|
-
class:
|
|
462
|
+
"aria-label": w(c).colorPicker.presetColors,
|
|
463
|
+
class: E(["tpl:flex tpl:flex-wrap tpl:gap-1.5", B.value && "tpl:mb-2"]),
|
|
465
464
|
onKeydown: me
|
|
466
|
-
}, [U.value ? (
|
|
465
|
+
}, [U.value ? (a(), u("button", {
|
|
467
466
|
key: 0,
|
|
468
467
|
type: "button",
|
|
469
468
|
role: "radio",
|
|
470
|
-
"aria-label":
|
|
471
|
-
title:
|
|
469
|
+
"aria-label": w(c).colorPicker.clear,
|
|
470
|
+
title: w(c).colorPicker.clear,
|
|
472
471
|
"aria-checked": A.value,
|
|
473
472
|
tabindex: K(),
|
|
474
|
-
class:
|
|
473
|
+
class: E(["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)]", A.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)]"]),
|
|
475
474
|
onClick: Y
|
|
476
|
-
}, null, 10, Ve)) :
|
|
475
|
+
}, null, 10, Ve)) : _("", !0), (a(!0), u(T, null, r(R.value, (e, t) => (a(), u("button", {
|
|
477
476
|
key: e,
|
|
478
477
|
type: "button",
|
|
479
478
|
role: "radio",
|
|
@@ -481,41 +480,41 @@ var Pe = [
|
|
|
481
480
|
title: e,
|
|
482
481
|
"aria-checked": H(e),
|
|
483
482
|
tabindex: pe(t),
|
|
484
|
-
style:
|
|
485
|
-
class:
|
|
483
|
+
style: p({ backgroundColor: e }),
|
|
484
|
+
class: E(["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)]", H(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)]"]),
|
|
486
485
|
onClick: (t) => fe(e)
|
|
487
|
-
}, null, 14, He))), 128))], 42, Be)) :
|
|
488
|
-
B.value ? (
|
|
486
|
+
}, null, 14, He))), 128))], 42, Be)) : _("", !0),
|
|
487
|
+
B.value ? (a(), u("hex-color-picker", {
|
|
489
488
|
key: 2,
|
|
490
489
|
color: le.value,
|
|
491
|
-
"aria-label":
|
|
490
|
+
"aria-label": w(c).colorPicker.pickColor,
|
|
492
491
|
onColorChanged: q,
|
|
493
492
|
onPointerdown: he,
|
|
494
493
|
onPointerup: ge,
|
|
495
|
-
onKeydown: n[0] ||= f((e) =>
|
|
496
|
-
}, null, 40, Ue)) :
|
|
497
|
-
|
|
494
|
+
onKeydown: n[0] ||= f((e) => l.value = !1, ["escape"])
|
|
495
|
+
}, null, 40, Ue)) : _("", !0),
|
|
496
|
+
e.swatchOnly && B.value ? (a(), u("div", We, [b("input", {
|
|
498
497
|
type: "text",
|
|
499
|
-
class:
|
|
500
|
-
style:
|
|
498
|
+
class: E([w(de), "tpl:w-full"]),
|
|
499
|
+
style: p(F.value ? { paddingRight: "2.25rem" } : void 0),
|
|
501
500
|
value: M.value,
|
|
502
|
-
placeholder:
|
|
503
|
-
disabled:
|
|
504
|
-
"aria-label":
|
|
501
|
+
placeholder: e.placeholder || w(c).colorPicker.notSet,
|
|
502
|
+
disabled: e.disabled,
|
|
503
|
+
"aria-label": w(c).colorPicker.hexValue,
|
|
505
504
|
onChange: J,
|
|
506
|
-
onKeydown: n[1] ||= f(
|
|
507
|
-
}, null, 46, Ge), F.value ? (
|
|
505
|
+
onKeydown: n[1] ||= f(y((e) => e.target.blur(), ["prevent"]), ["enter"])
|
|
506
|
+
}, null, 46, Ge), F.value ? (a(), u("button", {
|
|
508
507
|
key: 0,
|
|
509
508
|
type: "button",
|
|
510
|
-
"aria-label":
|
|
511
|
-
title:
|
|
509
|
+
"aria-label": w(c).colorPicker.clear,
|
|
510
|
+
title: w(c).colorPicker.clear,
|
|
512
511
|
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)]",
|
|
513
512
|
onClick: Y
|
|
514
|
-
}, [D(
|
|
513
|
+
}, [D(w(L), {
|
|
515
514
|
size: 14,
|
|
516
515
|
"stroke-width": 1.5
|
|
517
|
-
})], 8, Ke)) :
|
|
518
|
-
], 12, Re)) :
|
|
516
|
+
})], 8, Ke)) : _("", !0)])) : _("", !0)
|
|
517
|
+
], 12, Re)) : _("", !0)]),
|
|
519
518
|
_: 1
|
|
520
519
|
})], 8, ["to", "disabled"]))
|
|
521
520
|
], 2));
|
|
@@ -531,7 +530,7 @@ var Pe = [
|
|
|
531
530
|
"data-merge-tag-value",
|
|
532
531
|
"onMousedown",
|
|
533
532
|
"onMousemove"
|
|
534
|
-
], Ze = { class: "tpl:font-medium" }, Qe = { class: "tpl:text-[var(--tpl-text-dim)] tpl:font-mono" }, $e = /* @__PURE__ */
|
|
533
|
+
], Ze = { class: "tpl:font-medium" }, Qe = { class: "tpl:text-[var(--tpl-text-dim)] tpl:font-mono" }, $e = /* @__PURE__ */ t({
|
|
535
534
|
__name: "MergeTagSuggestionList",
|
|
536
535
|
props: {
|
|
537
536
|
items: {},
|
|
@@ -545,12 +544,12 @@ var Pe = [
|
|
|
545
544
|
function n(e) {
|
|
546
545
|
return t.listId ? `${t.listId}-opt-${e}` : void 0;
|
|
547
546
|
}
|
|
548
|
-
return (t,
|
|
547
|
+
return (t, i) => (a(), u("div", {
|
|
549
548
|
id: e.listId,
|
|
550
549
|
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)]",
|
|
551
550
|
role: "listbox",
|
|
552
551
|
"data-testid": "merge-tag-suggestion-list"
|
|
553
|
-
}, [e.items.length === 0 ? (
|
|
552
|
+
}, [e.items.length === 0 ? (a(), u("div", Ye, g(e.emptyText), 1)) : _("", !0), (a(!0), u(T, null, r(e.items, (r, i) => (a(), u("button", {
|
|
554
553
|
key: r.value,
|
|
555
554
|
id: n(i),
|
|
556
555
|
type: "button",
|
|
@@ -558,10 +557,10 @@ var Pe = [
|
|
|
558
557
|
"aria-selected": i === e.selectedIndex,
|
|
559
558
|
"data-selected": i === e.selectedIndex ? "true" : "false",
|
|
560
559
|
"data-merge-tag-value": r.value,
|
|
561
|
-
class:
|
|
562
|
-
onMousedown:
|
|
560
|
+
class: E(["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", i === 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)]"]),
|
|
561
|
+
onMousedown: y((e) => t.$emit("select", r), ["prevent", "stop"]),
|
|
563
562
|
onMousemove: (n) => i !== e.selectedIndex && t.$emit("hover", i)
|
|
564
|
-
}, [
|
|
563
|
+
}, [b("span", Ze, g(r.label), 1), b("span", Qe, g(r.value), 1)], 42, Xe))), 128))], 8, Je));
|
|
565
564
|
}
|
|
566
565
|
}), et = 10, tt = 0;
|
|
567
566
|
function nt(e, t) {
|
|
@@ -574,14 +573,14 @@ function nt(e, t) {
|
|
|
574
573
|
function rt(e, t, n, r) {
|
|
575
574
|
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;
|
|
576
575
|
}
|
|
577
|
-
function it(
|
|
578
|
-
let
|
|
579
|
-
function
|
|
580
|
-
y(
|
|
576
|
+
function it(e, t) {
|
|
577
|
+
let n = null, r = null, i = null, a = m([]), s = m(0), c = null, l = `tpl-merge-tag-suggestion-${++tt}`, u = null, d = [], f = null;
|
|
578
|
+
function p() {
|
|
579
|
+
y(u?.() ?? null);
|
|
581
580
|
}
|
|
582
581
|
function h() {
|
|
583
|
-
|
|
584
|
-
|
|
582
|
+
p(), f !== null && cancelAnimationFrame(f), f = requestAnimationFrame(() => {
|
|
583
|
+
f = null, p();
|
|
585
584
|
});
|
|
586
585
|
}
|
|
587
586
|
function g(e) {
|
|
@@ -593,26 +592,26 @@ function it(t, n) {
|
|
|
593
592
|
return t;
|
|
594
593
|
}
|
|
595
594
|
function _(e) {
|
|
596
|
-
|
|
597
|
-
for (let e of
|
|
595
|
+
d = [window, ...g(e)];
|
|
596
|
+
for (let e of d) e.addEventListener("scroll", p, {
|
|
598
597
|
passive: !0,
|
|
599
598
|
capture: !0
|
|
600
599
|
});
|
|
601
|
-
window.addEventListener("resize",
|
|
600
|
+
window.addEventListener("resize", p, { passive: !0 });
|
|
602
601
|
}
|
|
603
602
|
function v() {
|
|
604
|
-
for (let e of
|
|
605
|
-
window.removeEventListener("resize",
|
|
603
|
+
for (let e of d) e.removeEventListener("scroll", p, { capture: !0 });
|
|
604
|
+
window.removeEventListener("resize", p), d = [];
|
|
606
605
|
}
|
|
607
606
|
function y(e) {
|
|
608
|
-
if (!
|
|
609
|
-
|
|
610
|
-
let t =
|
|
611
|
-
|
|
612
|
-
let
|
|
613
|
-
if (
|
|
614
|
-
let t = Math.max(0, e.top -
|
|
615
|
-
|
|
607
|
+
if (!r || !e || e.bottom < 0 || e.top > window.innerHeight) return;
|
|
608
|
+
r.style.position = "absolute", r.style.zIndex = "9999";
|
|
609
|
+
let t = r.offsetParent?.getBoundingClientRect(), n = t?.top ?? 0;
|
|
610
|
+
r.style.left = `${e.left - (t?.left ?? 0)}px`, r.style.top = `${e.bottom - n}px`;
|
|
611
|
+
let i = r.offsetHeight;
|
|
612
|
+
if (i !== 0 && window.innerHeight - e.bottom < i) {
|
|
613
|
+
let t = Math.max(0, e.top - i);
|
|
614
|
+
r.style.top = `${t - n}px`;
|
|
616
615
|
}
|
|
617
616
|
}
|
|
618
617
|
function b(e, t) {
|
|
@@ -628,44 +627,43 @@ function it(t, n) {
|
|
|
628
627
|
e.style.fontFamily = i.fontFamily, e.style.fontSize = i.fontSize, e.style.lineHeight = i.lineHeight;
|
|
629
628
|
}
|
|
630
629
|
function x(e) {
|
|
631
|
-
|
|
630
|
+
i && (e ? (i.setAttribute("role", "combobox"), i.setAttribute("aria-haspopup", "listbox"), i.setAttribute("aria-expanded", "true"), i.setAttribute("aria-controls", l)) : (i.removeAttribute("aria-expanded"), i.removeAttribute("aria-controls"), i.removeAttribute("aria-activedescendant"), i.removeAttribute("aria-haspopup"), i.removeAttribute("role")));
|
|
632
631
|
}
|
|
633
632
|
function S() {
|
|
634
|
-
|
|
633
|
+
i && (a.value.length === 0 ? i.removeAttribute("aria-activedescendant") : i.setAttribute("aria-activedescendant", `${l}-opt-${s.value}`));
|
|
635
634
|
}
|
|
636
|
-
function
|
|
637
|
-
|
|
635
|
+
function w(e) {
|
|
636
|
+
c?.(e);
|
|
638
637
|
}
|
|
639
638
|
return {
|
|
640
|
-
open: ({ items:
|
|
641
|
-
|
|
642
|
-
return
|
|
643
|
-
items:
|
|
644
|
-
selectedIndex:
|
|
645
|
-
emptyText:
|
|
646
|
-
listId:
|
|
647
|
-
onSelect: (e) =>
|
|
639
|
+
open: ({ items: d, getRect: f, anchorEl: p, onCommand: m }) => {
|
|
640
|
+
a.value = d, s.value = 0, c = 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 = C({ render() {
|
|
641
|
+
return o($e, {
|
|
642
|
+
items: a.value,
|
|
643
|
+
selectedIndex: s.value,
|
|
644
|
+
emptyText: e,
|
|
645
|
+
listId: l,
|
|
646
|
+
onSelect: (e) => w(e),
|
|
648
647
|
onHover: (e) => {
|
|
649
|
-
|
|
648
|
+
s.value = e, S();
|
|
650
649
|
}
|
|
651
650
|
});
|
|
652
|
-
} }),
|
|
651
|
+
} }), n.mount(r), x(!0), S(), u = f, h(), _(p);
|
|
653
652
|
},
|
|
654
653
|
update: ({ items: e, getRect: t, onCommand: n }) => {
|
|
655
|
-
|
|
654
|
+
a.value = e, s.value >= e.length && (s.value = 0), c = n, S(), u = t, h();
|
|
656
655
|
},
|
|
657
656
|
handleKeyDown: (e) => {
|
|
658
|
-
let t = rt(e,
|
|
657
|
+
let t = rt(e, a.value, s, w);
|
|
659
658
|
return t && S(), t;
|
|
660
659
|
},
|
|
661
660
|
close: () => {
|
|
662
|
-
|
|
661
|
+
r !== null && (f !== null && (cancelAnimationFrame(f), f = null), v(), x(!1), n?.unmount(), r.remove(), n = null, r = null, i = null, c = null, u = null);
|
|
663
662
|
},
|
|
664
|
-
isOpen: () =>
|
|
663
|
+
isOpen: () => r !== null
|
|
665
664
|
};
|
|
666
665
|
}
|
|
667
|
-
|
|
668
|
-
//#region src/utils/mergeTagTrigger.ts
|
|
666
|
+
// src/utils/mergeTagTrigger.ts
|
|
669
667
|
function at(e, t, n, r, i) {
|
|
670
668
|
if (!n) return null;
|
|
671
669
|
let a = e.slice(0, t), o = a.lastIndexOf(n);
|
|
@@ -682,8 +680,7 @@ function ot(e, t) {
|
|
|
682
680
|
for (let t of e.matchAll(n)) r = t.index + t[0].length;
|
|
683
681
|
return r;
|
|
684
682
|
}
|
|
685
|
-
|
|
686
|
-
//#region src/utils/textFieldCaret.ts
|
|
683
|
+
// src/utils/textFieldCaret.ts
|
|
687
684
|
var st = /* @__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(".");
|
|
688
685
|
function ct(e, t, n) {
|
|
689
686
|
return {
|
|
@@ -719,87 +716,85 @@ function lt(e, t) {
|
|
|
719
716
|
let b = h.top + p + g - e.scrollTop;
|
|
720
717
|
return ct(y, b, b + v);
|
|
721
718
|
}
|
|
722
|
-
|
|
723
|
-
//#region src/composables/useMergeTagAutocomplete.ts
|
|
719
|
+
// src/composables/useMergeTagAutocomplete.ts
|
|
724
720
|
var ut = /* @__PURE__ */ new Set([
|
|
725
721
|
"ArrowLeft",
|
|
726
722
|
"ArrowRight",
|
|
727
723
|
"Home",
|
|
728
724
|
"End"
|
|
729
725
|
]);
|
|
730
|
-
function dt(
|
|
731
|
-
let { elementRef:
|
|
732
|
-
|
|
733
|
-
|
|
726
|
+
function dt(t) {
|
|
727
|
+
let { elementRef: r, modelValue: a, emit: o, mergeTags: s, syntax: u, enabled: d, onInsert: f } = t, p = O(u), m = A(u), h = S(() => d && p !== null && s.value.length > 0), g = n(M, null), _ = it((c(g) ? g.value : g)?.mergeTag?.suggestionEmpty ?? "No matching merge tags", ae()), v = !1;
|
|
728
|
+
i() && l(() => {
|
|
729
|
+
v = !0, _.close();
|
|
734
730
|
});
|
|
735
|
-
function
|
|
731
|
+
function y(e) {
|
|
736
732
|
let t = e.value ?? "";
|
|
737
|
-
return at(t, e.selectionStart ?? t.length,
|
|
733
|
+
return at(t, e.selectionStart ?? t.length, p, m, u.value);
|
|
738
734
|
}
|
|
739
|
-
function
|
|
740
|
-
let s =
|
|
741
|
-
|
|
742
|
-
if (
|
|
743
|
-
let e =
|
|
735
|
+
function b(t, n, i) {
|
|
736
|
+
let s = t.value ?? a(), c = s.slice(n.caret), l = m && c.startsWith(m) ? m.length : 0, u = s.slice(0, n.triggerStart), d = s.slice(n.caret + l), p = u + i.value + d, h = u.length + i.value.length;
|
|
737
|
+
f?.(), o(p), _.close(), e(() => {
|
|
738
|
+
if (v) return;
|
|
739
|
+
let e = r.value;
|
|
744
740
|
e?.focus(), e?.setSelectionRange(h, h);
|
|
745
741
|
});
|
|
746
742
|
}
|
|
747
|
-
function
|
|
748
|
-
if (!
|
|
749
|
-
let e =
|
|
743
|
+
function x() {
|
|
744
|
+
if (!h.value || v) return;
|
|
745
|
+
let e = r.value;
|
|
750
746
|
if (!e) {
|
|
751
|
-
|
|
747
|
+
_.close();
|
|
752
748
|
return;
|
|
753
749
|
}
|
|
754
|
-
let t =
|
|
750
|
+
let t = y(e);
|
|
755
751
|
if (!t) {
|
|
756
|
-
|
|
752
|
+
_.close();
|
|
757
753
|
return;
|
|
758
754
|
}
|
|
759
|
-
let
|
|
760
|
-
|
|
761
|
-
items:
|
|
755
|
+
let n = nt(s.value, t.query), i = () => lt(e, t.triggerStart), a = (n) => b(e, t, n);
|
|
756
|
+
_.isOpen() ? _.update({
|
|
757
|
+
items: n,
|
|
762
758
|
getRect: i,
|
|
763
759
|
onCommand: a
|
|
764
|
-
}) :
|
|
765
|
-
items:
|
|
760
|
+
}) : _.open({
|
|
761
|
+
items: n,
|
|
766
762
|
getRect: i,
|
|
767
763
|
anchorEl: e,
|
|
768
764
|
onCommand: a
|
|
769
765
|
});
|
|
770
766
|
}
|
|
771
|
-
function
|
|
772
|
-
return
|
|
767
|
+
function C(e) {
|
|
768
|
+
return _.isOpen() ? e.key === "Escape" ? (_.close(), !0) : ut.has(e.key) ? (_.close(), !1) : _.handleKeyDown(e) : !1;
|
|
773
769
|
}
|
|
774
770
|
return {
|
|
775
|
-
available:
|
|
776
|
-
refresh:
|
|
777
|
-
handleKeydown:
|
|
778
|
-
close: () =>
|
|
779
|
-
isOpen: () =>
|
|
771
|
+
available: h,
|
|
772
|
+
refresh: x,
|
|
773
|
+
handleKeydown: C,
|
|
774
|
+
close: () => _.close(),
|
|
775
|
+
isOpen: () => _.isOpen()
|
|
780
776
|
};
|
|
781
777
|
}
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
x = !0;
|
|
778
|
+
// src/composables/useMergeTagField.ts
|
|
779
|
+
function ft(t) {
|
|
780
|
+
let { modelValue: n, emit: r, elementRef: a } = t, { mergeTags: o, canRequestMergeTag: s, isRequesting: c, isMergeTagValue: u, getMergeTagDisplayLabel: d, findMergeTag: f, requestMergeTag: p, syntax: h, autocomplete: g } = R(), { canInsertLogicTag: _, isRequesting: v, requestLogicTag: y } = ue(), b = m(!1), x = !1, C = !1;
|
|
781
|
+
i() && l(() => {
|
|
782
|
+
C = !0;
|
|
788
783
|
});
|
|
789
784
|
let w = dt({
|
|
790
785
|
elementRef: a,
|
|
791
|
-
modelValue:
|
|
792
|
-
emit:
|
|
786
|
+
modelValue: n,
|
|
787
|
+
emit: r,
|
|
793
788
|
mergeTags: o,
|
|
794
|
-
syntax:
|
|
795
|
-
enabled:
|
|
789
|
+
syntax: h,
|
|
790
|
+
enabled: g,
|
|
796
791
|
onInsert: () => {
|
|
797
|
-
|
|
792
|
+
b.value = !0;
|
|
798
793
|
}
|
|
799
794
|
}), T = S(() => {
|
|
800
|
-
let e =
|
|
795
|
+
let e = n();
|
|
801
796
|
if (!e) return [];
|
|
802
|
-
let t = [],
|
|
797
|
+
let t = [], r = `(${h.value.source}|${h.logic.source})`, i = new RegExp(r, "g"), a = 0, o;
|
|
803
798
|
for (; (o = i.exec(e)) !== null;) {
|
|
804
799
|
o.index > a && t.push({
|
|
805
800
|
type: "text",
|
|
@@ -810,10 +805,10 @@ function ft(n) {
|
|
|
810
805
|
type: "mergeTag",
|
|
811
806
|
value: n,
|
|
812
807
|
label: d(n)
|
|
813
|
-
}) : j(n,
|
|
808
|
+
}) : j(n, h) ? t.push({
|
|
814
809
|
type: "logicMergeTag",
|
|
815
810
|
value: n,
|
|
816
|
-
keyword: k(n,
|
|
811
|
+
keyword: k(n, h)
|
|
817
812
|
}) : t.push({
|
|
818
813
|
type: "text",
|
|
819
814
|
value: n
|
|
@@ -825,17 +820,17 @@ function ft(n) {
|
|
|
825
820
|
}), t;
|
|
826
821
|
}), E = S(() => T.value.some((e) => e.type === "mergeTag" || e.type === "logicMergeTag"));
|
|
827
822
|
function D() {
|
|
828
|
-
|
|
823
|
+
b.value = !0, e(() => {
|
|
829
824
|
a.value?.focus();
|
|
830
|
-
let e =
|
|
825
|
+
let e = n()?.length || 0;
|
|
831
826
|
a.value?.setSelectionRange(e, e);
|
|
832
827
|
});
|
|
833
828
|
}
|
|
834
829
|
function O() {
|
|
835
|
-
|
|
830
|
+
x || (b.value = !1);
|
|
836
831
|
}
|
|
837
832
|
function A(e) {
|
|
838
|
-
|
|
833
|
+
r(e.target.value), w.refresh();
|
|
839
834
|
}
|
|
840
835
|
function ee(e) {
|
|
841
836
|
return w.handleKeydown(e) ? (e.preventDefault(), !0) : (e.key === "Escape" && O(), !1);
|
|
@@ -847,54 +842,54 @@ function ft(n) {
|
|
|
847
842
|
w.close(), O();
|
|
848
843
|
}
|
|
849
844
|
function ne() {
|
|
850
|
-
|
|
845
|
+
r("");
|
|
851
846
|
}
|
|
852
847
|
async function re() {
|
|
853
|
-
let
|
|
854
|
-
|
|
855
|
-
let
|
|
848
|
+
let t = b.value && a.value ? a.value.selectionStart ?? n().length : n().length;
|
|
849
|
+
x = !0;
|
|
850
|
+
let i;
|
|
856
851
|
try {
|
|
857
|
-
|
|
852
|
+
i = await p();
|
|
858
853
|
} finally {
|
|
859
|
-
|
|
854
|
+
x = !1;
|
|
860
855
|
}
|
|
861
|
-
if (!
|
|
862
|
-
let o =
|
|
863
|
-
|
|
864
|
-
if (
|
|
865
|
-
let
|
|
866
|
-
a.value?.focus(), a.value?.setSelectionRange(
|
|
856
|
+
if (!C && i) {
|
|
857
|
+
let o = n().slice(0, t), s = n().slice(t), c = o + i.value + s;
|
|
858
|
+
r(c), b.value = !0, e(() => {
|
|
859
|
+
if (C) return;
|
|
860
|
+
let e = t + i.value.length;
|
|
861
|
+
a.value?.focus(), a.value?.setSelectionRange(e, e);
|
|
867
862
|
});
|
|
868
863
|
}
|
|
869
864
|
}
|
|
870
865
|
async function N(e) {
|
|
871
866
|
let t = T.value, n = t[e];
|
|
872
867
|
if (n?.type !== "mergeTag") return;
|
|
873
|
-
|
|
874
|
-
let
|
|
868
|
+
x = !0;
|
|
869
|
+
let i;
|
|
875
870
|
try {
|
|
876
|
-
|
|
871
|
+
i = await p({
|
|
877
872
|
reason: "edit",
|
|
878
873
|
current: f(n.value)
|
|
879
874
|
});
|
|
880
875
|
} finally {
|
|
881
|
-
|
|
876
|
+
x = !1;
|
|
882
877
|
}
|
|
883
|
-
!
|
|
878
|
+
!C && i && r(t.map((t, n) => n === e ? i.value : t.value).join(""));
|
|
884
879
|
}
|
|
885
880
|
async function P() {
|
|
886
|
-
let
|
|
887
|
-
|
|
881
|
+
let t = a.value, i = t?.selectionStart ?? n().length, o = t?.selectionEnd ?? i;
|
|
882
|
+
x = !0;
|
|
888
883
|
let s;
|
|
889
884
|
try {
|
|
890
|
-
s = await
|
|
885
|
+
s = await y();
|
|
891
886
|
} finally {
|
|
892
|
-
|
|
887
|
+
x = !1;
|
|
893
888
|
}
|
|
894
|
-
if (
|
|
895
|
-
let c =
|
|
896
|
-
"before" in s ? (l = c.slice(0,
|
|
897
|
-
|
|
889
|
+
if (C || !s) return;
|
|
890
|
+
let c = n(), l, u;
|
|
891
|
+
"before" in s ? (l = c.slice(0, i) + s.before + c.slice(i, o) + s.after + c.slice(o), u = i + s.before.length + (o - i)) : (l = c.slice(0, i) + s.value + c.slice(i), u = i + s.value.length), r(l), b.value = !0, e(() => {
|
|
892
|
+
C || (a.value?.focus(), a.value?.setSelectionRange(u, u));
|
|
898
893
|
});
|
|
899
894
|
}
|
|
900
895
|
return {
|
|
@@ -902,9 +897,9 @@ function ft(n) {
|
|
|
902
897
|
hasMergeTags: E,
|
|
903
898
|
canRequestMergeTag: s,
|
|
904
899
|
isRequestingMergeTag: c,
|
|
905
|
-
canInsertLogicTag:
|
|
906
|
-
isRequestingLogicTag:
|
|
907
|
-
isEditing:
|
|
900
|
+
canInsertLogicTag: _,
|
|
901
|
+
isRequestingLogicTag: v,
|
|
902
|
+
isEditing: b,
|
|
908
903
|
startEditing: D,
|
|
909
904
|
stopEditing: O,
|
|
910
905
|
handleInput: A,
|
|
@@ -918,8 +913,7 @@ function ft(n) {
|
|
|
918
913
|
autocompleteAvailable: w.available
|
|
919
914
|
};
|
|
920
915
|
}
|
|
921
|
-
|
|
922
|
-
//#region src/components/MergeTagSegments.vue?vue&type=script&setup=true&lang.ts
|
|
916
|
+
// src/components/MergeTagSegments.vue?vue&type=script&setup=true&lang.ts
|
|
923
917
|
var pt = ["aria-label"], mt = [
|
|
924
918
|
"data-tooltip",
|
|
925
919
|
"aria-label",
|
|
@@ -927,7 +921,7 @@ var pt = ["aria-label"], mt = [
|
|
|
927
921
|
], ht = ["data-tooltip"], gt = ["data-tooltip"], _t = {
|
|
928
922
|
key: 3,
|
|
929
923
|
class: "tpl:text-sm tpl:text-[var(--tpl-text)]"
|
|
930
|
-
}, vt = ["aria-label", "title"], yt = ["aria-label", "title"], bt = /* @__PURE__ */
|
|
924
|
+
}, vt = ["aria-label", "title"], yt = ["aria-label", "title"], bt = /* @__PURE__ */ t({
|
|
931
925
|
__name: "MergeTagSegments",
|
|
932
926
|
props: {
|
|
933
927
|
segments: {},
|
|
@@ -940,37 +934,37 @@ var pt = ["aria-label"], mt = [
|
|
|
940
934
|
"repick"
|
|
941
935
|
],
|
|
942
936
|
setup(e, { emit: t }) {
|
|
943
|
-
let n = t, { t:
|
|
937
|
+
let n = t, { t: i, format: o } = N(), { canRepickMergeTag: s, showRawValue: c } = R();
|
|
944
938
|
function l() {
|
|
945
939
|
n("edit");
|
|
946
940
|
}
|
|
947
|
-
return (t, d) => (
|
|
941
|
+
return (t, d) => (a(), u("div", {
|
|
948
942
|
role: "group",
|
|
949
|
-
"aria-label":
|
|
950
|
-
class:
|
|
943
|
+
"aria-label": w(i).mergeTag.fieldGroup,
|
|
944
|
+
class: E([e.displayClass, { "tpl-pulse-fill": e.pulse }]),
|
|
951
945
|
onClick: l
|
|
952
946
|
}, [
|
|
953
|
-
(
|
|
947
|
+
(a(!0), u(T, null, r(e.segments, (e, t) => (a(), u(T, { key: `${e.type}-${t}-${e.value}` }, [e.type === "mergeTag" && w(s)(e.value) ? (a(), u("button", {
|
|
954
948
|
key: 0,
|
|
955
949
|
type: "button",
|
|
956
|
-
class:
|
|
957
|
-
"data-tooltip":
|
|
958
|
-
"aria-label":
|
|
950
|
+
class: E(["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", w(c) ? "tpl-tooltip" : ""]),
|
|
951
|
+
"data-tooltip": w(c) ? e.value : void 0,
|
|
952
|
+
"aria-label": w(o)(w(i).mergeTag.changeTag, { label: e.label }),
|
|
959
953
|
"data-testid": "merge-tag-field-chip",
|
|
960
954
|
style: {
|
|
961
955
|
"background-color": "color-mix(\n in srgb,\n var(--tpl-primary) 20%,\n transparent\n )",
|
|
962
956
|
color: "var(--tpl-primary)"
|
|
963
957
|
},
|
|
964
|
-
onClick:
|
|
965
|
-
},
|
|
958
|
+
onClick: y((e) => n("repick", t), ["stop"])
|
|
959
|
+
}, g(e.label), 11, mt)) : e.type === "mergeTag" ? (a(), u("span", {
|
|
966
960
|
key: 1,
|
|
967
|
-
class:
|
|
968
|
-
"data-tooltip":
|
|
961
|
+
class: E(["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", w(c) ? "tpl-tooltip" : ""]),
|
|
962
|
+
"data-tooltip": w(c) ? e.value : void 0,
|
|
969
963
|
style: {
|
|
970
964
|
"background-color": "color-mix(\n in srgb,\n var(--tpl-primary) 20%,\n transparent\n )",
|
|
971
965
|
color: "var(--tpl-primary)"
|
|
972
966
|
}
|
|
973
|
-
},
|
|
967
|
+
}, g(e.label), 11, ht)) : e.type === "logicMergeTag" ? (a(), u("span", {
|
|
974
968
|
key: 2,
|
|
975
969
|
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",
|
|
976
970
|
"data-tooltip": e.value,
|
|
@@ -979,26 +973,26 @@ var pt = ["aria-label"], mt = [
|
|
|
979
973
|
border: "1.5px solid\n color-mix(in srgb, var(--tpl-primary) 50%, transparent)",
|
|
980
974
|
color: "var(--tpl-primary)"
|
|
981
975
|
}
|
|
982
|
-
},
|
|
983
|
-
|
|
976
|
+
}, g(e.keyword), 9, gt)) : (a(), u("span", _t, g(e.value), 1))], 64))), 128)),
|
|
977
|
+
b("button", {
|
|
984
978
|
type: "button",
|
|
985
979
|
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",
|
|
986
|
-
"aria-label":
|
|
987
|
-
title:
|
|
980
|
+
"aria-label": w(i).mergeTag.editAsText,
|
|
981
|
+
title: w(i).mergeTag.editAsText,
|
|
988
982
|
"data-testid": "merge-tag-field-edit",
|
|
989
|
-
onClick:
|
|
990
|
-
}, [D(
|
|
983
|
+
onClick: y(l, ["stop"])
|
|
984
|
+
}, [D(w(le), {
|
|
991
985
|
size: 12,
|
|
992
986
|
"stroke-width": 2
|
|
993
987
|
})], 8, vt),
|
|
994
|
-
|
|
988
|
+
b("button", {
|
|
995
989
|
type: "button",
|
|
996
990
|
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",
|
|
997
|
-
"aria-label":
|
|
998
|
-
title:
|
|
991
|
+
"aria-label": w(i).mergeTag.remove,
|
|
992
|
+
title: w(i).mergeTag.remove,
|
|
999
993
|
"data-testid": "merge-tag-field-clear",
|
|
1000
|
-
onClick: d[0] ||=
|
|
1001
|
-
}, [D(
|
|
994
|
+
onClick: d[0] ||= y((e) => n("clear"), ["stop"])
|
|
995
|
+
}, [D(w(L), {
|
|
1002
996
|
size: 12,
|
|
1003
997
|
"stroke-width": 2.5
|
|
1004
998
|
})], 8, yt)
|
|
@@ -1008,51 +1002,50 @@ var pt = ["aria-label"], mt = [
|
|
|
1008
1002
|
"aria-label",
|
|
1009
1003
|
"title",
|
|
1010
1004
|
"disabled"
|
|
1011
|
-
], St = "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)]", Ct = /* @__PURE__ */
|
|
1005
|
+
], St = "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)]", Ct = /* @__PURE__ */ t({
|
|
1012
1006
|
__name: "MergeTagInsertButton",
|
|
1013
1007
|
props: { disabled: { type: Boolean } },
|
|
1014
1008
|
emits: ["insert"],
|
|
1015
1009
|
setup(e) {
|
|
1016
1010
|
let { t } = N();
|
|
1017
|
-
return (n, r) => (
|
|
1011
|
+
return (n, r) => (a(), u("button", {
|
|
1018
1012
|
type: "button",
|
|
1019
|
-
class:
|
|
1020
|
-
"aria-label":
|
|
1021
|
-
title:
|
|
1013
|
+
class: E([St, "tpl:mt-1.5"]),
|
|
1014
|
+
"aria-label": w(t).mergeTag.insert,
|
|
1015
|
+
title: w(t).mergeTag.insert,
|
|
1022
1016
|
disabled: e.disabled,
|
|
1023
|
-
onMousedown: r[0] ||=
|
|
1017
|
+
onMousedown: r[0] ||= y(() => {}, ["prevent"]),
|
|
1024
1018
|
onClick: r[1] ||= (e) => n.$emit("insert")
|
|
1025
|
-
}, [D(
|
|
1019
|
+
}, [D(w(F), {
|
|
1026
1020
|
size: 12,
|
|
1027
1021
|
"stroke-width": 2
|
|
1028
|
-
}), d(" " +
|
|
1022
|
+
}), d(" " + g(w(t).mergeTag.insertShort), 1)], 42, xt));
|
|
1029
1023
|
}
|
|
1030
1024
|
}), wt = [
|
|
1031
1025
|
"aria-label",
|
|
1032
1026
|
"title",
|
|
1033
1027
|
"disabled"
|
|
1034
|
-
], Tt = "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)]", Et = /* @__PURE__ */
|
|
1028
|
+
], Tt = "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)]", Et = /* @__PURE__ */ t({
|
|
1035
1029
|
__name: "LogicTagInsertButton",
|
|
1036
1030
|
props: { disabled: { type: Boolean } },
|
|
1037
1031
|
emits: ["insert"],
|
|
1038
1032
|
setup(e) {
|
|
1039
1033
|
let { t } = N();
|
|
1040
|
-
return (n, r) => (
|
|
1034
|
+
return (n, r) => (a(), u("button", {
|
|
1041
1035
|
type: "button",
|
|
1042
|
-
class:
|
|
1043
|
-
"aria-label":
|
|
1044
|
-
title:
|
|
1036
|
+
class: E([Tt, "tpl:mt-1.5"]),
|
|
1037
|
+
"aria-label": w(t).logicTag.insert,
|
|
1038
|
+
title: w(t).logicTag.insert,
|
|
1045
1039
|
disabled: e.disabled,
|
|
1046
1040
|
"data-testid": "field-insert-logic-button",
|
|
1047
|
-
onMousedown: r[0] ||=
|
|
1041
|
+
onMousedown: r[0] ||= y(() => {}, ["prevent"]),
|
|
1048
1042
|
onClick: r[1] ||= (e) => n.$emit("insert")
|
|
1049
|
-
}, [D(
|
|
1043
|
+
}, [D(w(I), {
|
|
1050
1044
|
size: 12,
|
|
1051
1045
|
"stroke-width": 2
|
|
1052
|
-
}), d(" " +
|
|
1046
|
+
}), d(" " + g(w(t).logicTag.insertShort), 1)], 42, wt));
|
|
1053
1047
|
}
|
|
1054
1048
|
});
|
|
1055
|
-
//#endregion
|
|
1056
1049
|
export { it as a, qe as c, ft as i, Ct as n, nt as o, bt as r, rt as s, Et as t };
|
|
1057
1050
|
|
|
1058
|
-
//# sourceMappingURL=LogicTagInsertButton-
|
|
1051
|
+
//# sourceMappingURL=LogicTagInsertButton-BIi05UQu.js.map
|