@templatical/editor 0.49.0 → 0.50.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 +4 -2
- package/dist/AiAltTextPopover-BZQ95GXL.js +106 -0
- package/dist/AiAltTextReview-DoBEudnE.js +206 -0
- package/dist/AiChatPanel-Bs6sES3b.js +550 -0
- package/dist/AiHeaderMenu-BEaTazx4.js +36 -0
- package/dist/AiPanels-CfN7A-ZA.js +33 -0
- package/dist/AiRewriteMenu-C3ZfDDYy.js +276 -0
- package/dist/{BlockIssueBadge-BdpJwim0.js → BlockIssueBadge-CKwZ1Vgn.js} +11 -11
- package/dist/{BlockPreviewCanvas-D_sowkf0.js → BlockPreviewCanvas-BXNLLLYi.js} +33 -33
- package/dist/CloudHeaderExtras-CsJMEiyN.js +23 -0
- package/dist/{CloudPanels-1hwFiJ0G.js → CloudPanels-B4F5m7vy.js} +66 -85
- package/dist/{CollaborationNotices-BWpKzueF.js → CollaborationNotices-CNuDp7Y2.js} +19 -16
- package/dist/{CollaboratorBar-D87phJsw.js → CollaboratorBar-BtHPiuHq.js} +22 -22
- package/dist/{CommentsPanel-BUvUzO3T.js → CommentsPanel-CyCM-BvT.js} +4 -4
- package/dist/CommentsSidebar-Ca3DyFOX.js +500 -0
- package/dist/{cdn/chunks/CountdownBlock-DB4JNdqh.js → CountdownBlock-DR4Xm2-T.js} +24 -26
- package/dist/{CountdownToolbar-CLMIwfK7.js → CountdownToolbar-CEIMPojJ.js} +55 -55
- package/dist/IssuesPanel-C8nMUccy.js +360 -0
- package/dist/{LoadingTrack-BXOptf5g.js → LoadingTrack-B0RKQWq3.js} +2 -2
- package/dist/{LogicTagInsertButton-CR5E4jSG.js → LogicTagInsertButton-CqfU52CO.js} +273 -268
- package/dist/{cdn/chunks/MediaEditModal-DD0SZ-S3.js → MediaEditModal-DHtkZ4OU.js} +202 -186
- package/dist/{MediaPanels-BVXDkqtH.js → MediaPanels-CGcOB2pR.js} +4 -4
- package/dist/{MergeTagInput-BEw_r0PJ.js → MergeTagInput-YnEkorTZ.js} +25 -25
- package/dist/{MergeTagModeToggle-CJTpFmVd.js → MergeTagModeToggle-Dhb1DAcQ.js} +40 -40
- package/dist/MergeTagTextarea-e4lnwtqZ.js +70 -0
- package/dist/ParagraphEditor-B6NK0ytw.js +799 -0
- package/dist/{RestoreVersionDialog-BaDpy3cL.js → RestoreVersionDialog-Bq_IGOLJ.js} +21 -21
- package/dist/{RichTextEditorContent-CsvniFlI.js → RichTextEditorContent-AOM6fylS.js} +48 -48
- package/dist/{SaveBlockDialog-DzWURF_e.js → SaveBlockDialog-C8GngfQx.js} +87 -87
- package/dist/{cdn/chunks/SavedBlocksBrowserModal-BMtyUrUP.js → SavedBlocksBrowserModal-wnkvxpm_.js} +102 -99
- package/dist/{SavedBlocksPanels-B3Af8ns2.js → SavedBlocksPanels-C2s3q0pJ.js} +9 -9
- package/dist/{SavedBlocksPickBar-Dj11-Lqp.js → SavedBlocksPickBar-BjcTiV87.js} +13 -13
- package/dist/TemplateSettings-BVBWpiDU.js +237 -0
- package/dist/{TestEmailModal-BeRYV3eg.js → TestEmailModal-SyhO9bn3.js} +57 -57
- package/dist/{TestEmailPanel-B8c3fQi2.js → TestEmailPanel-BDd2Rtav.js} +4 -4
- package/dist/{TitleEditor-CvpNUoAp.js → TitleEditor-pxD53y_l.js} +75 -75
- package/dist/ToggleSwitch-D51U9cmR.js +37 -0
- package/dist/{Toolbar-BadDSkkF.js → Toolbar-CZSPZYbj.js} +1138 -1138
- package/dist/{TplModal-BZgi9Tes.js → TplModal-DCzBzicE.js} +19 -19
- package/dist/{VersionHistoryMenu-BRlcQ8wX.js → VersionHistoryMenu-BQeWPT85.js} +35 -35
- package/dist/{VersionHistoryPanels-DGkllN3a.js → VersionHistoryPanels-BBm7YbRQ.js} +5 -5
- package/dist/{VersionPreviewBanner-F-811aps.js → VersionPreviewBanner-DUGF0tUJ.js} +9 -9
- package/dist/WrapperBlock-BO619LAb.js +45 -0
- package/dist/aiErrors-D5UOoYOt.js +41 -0
- package/dist/aiImageContext-BH4Ss1h3.js +48 -0
- package/dist/aiRewritePreview-DLGM05Ge.js +44 -0
- package/dist/{blockTypeIcons-CayLluou.js → blockTypeIcons-NzaYvAI4.js} +15 -14
- package/dist/bundle-stats.json +8 -8
- package/dist/{cdn/chunks/ca-DSJwJ5ov.js → ca-C7mTzW1r.js} +130 -13
- package/dist/cdn/chunks/AiAltTextPopover-CQu0Q_ZX.js +107 -0
- package/dist/cdn/chunks/AiAltTextPopover-CQu0Q_ZX.js.map +1 -0
- package/dist/cdn/chunks/AiAltTextReview-CI2HbWfn.js +207 -0
- package/dist/cdn/chunks/AiAltTextReview-CI2HbWfn.js.map +1 -0
- package/dist/cdn/chunks/AiChatPanel-BYqn1bKu.js +476 -0
- package/dist/cdn/chunks/AiChatPanel-BYqn1bKu.js.map +1 -0
- package/dist/cdn/chunks/AiHeaderMenu-oldAAFyL.js +37 -0
- package/dist/cdn/chunks/AiHeaderMenu-oldAAFyL.js.map +1 -0
- package/dist/cdn/chunks/AiPanels-CIFKQv8Y.js +34 -0
- package/dist/cdn/chunks/AiPanels-CIFKQv8Y.js.map +1 -0
- package/dist/cdn/chunks/AiRewriteMenu-Bhh71zcc.js +208 -0
- package/dist/cdn/chunks/AiRewriteMenu-Bhh71zcc.js.map +1 -0
- package/dist/cdn/chunks/{BlockIssueBadge-D1VBS_6x.js → BlockIssueBadge-DAn2vsMJ.js} +13 -13
- package/dist/cdn/chunks/{BlockIssueBadge-D1VBS_6x.js.map → BlockIssueBadge-DAn2vsMJ.js.map} +1 -1
- package/dist/cdn/chunks/{BlockPreviewCanvas-m2tWRyWv.js → BlockPreviewCanvas-D0--EQkP.js} +38 -38
- package/dist/cdn/chunks/{BlockPreviewCanvas-m2tWRyWv.js.map → BlockPreviewCanvas-D0--EQkP.js.map} +1 -1
- package/dist/cdn/chunks/CloudHeaderExtras-DaUU8P8R.js +25 -0
- package/dist/cdn/chunks/CloudHeaderExtras-DaUU8P8R.js.map +1 -0
- package/dist/cdn/chunks/{CloudPanels-XufhBZYF.js → CloudPanels-C3jsxo_f.js} +52 -71
- package/dist/cdn/chunks/CloudPanels-C3jsxo_f.js.map +1 -0
- package/dist/cdn/chunks/{CollaborationNotices-CBvKEj1Q.js → CollaborationNotices-DjRI8gvs.js} +23 -20
- package/dist/cdn/chunks/CollaborationNotices-DjRI8gvs.js.map +1 -0
- package/dist/cdn/chunks/{CollaboratorBar-DWW54Bn_.js → CollaboratorBar-Dfzm6A9A.js} +20 -20
- package/dist/cdn/chunks/{CollaboratorBar-DWW54Bn_.js.map → CollaboratorBar-Dfzm6A9A.js.map} +1 -1
- package/dist/cdn/chunks/CommentsPanel-CSO79OeX.js +20 -0
- package/dist/cdn/chunks/{CommentsPanel-R8YLLO3v.js.map → CommentsPanel-CSO79OeX.js.map} +1 -1
- package/dist/cdn/chunks/CommentsSidebar-CCvplq1Z.js +470 -0
- package/dist/cdn/chunks/{CommentsSidebar-96NZHVq3.js.map → CommentsSidebar-CCvplq1Z.js.map} +1 -1
- package/dist/{CountdownBlock-DPQXWRvU.js → cdn/chunks/CountdownBlock-C6USdwk3.js} +19 -17
- package/dist/cdn/chunks/{CountdownBlock-DB4JNdqh.js.map → CountdownBlock-C6USdwk3.js.map} +1 -1
- package/dist/cdn/chunks/{CountdownToolbar-tmiTPEXm.js → CountdownToolbar-Cjud2Tos.js} +70 -70
- package/dist/cdn/chunks/{CountdownToolbar-tmiTPEXm.js.map → CountdownToolbar-Cjud2Tos.js.map} +1 -1
- package/dist/cdn/chunks/IssuesPanel-BaWHPDxZ.js +340 -0
- package/dist/cdn/chunks/IssuesPanel-BaWHPDxZ.js.map +1 -0
- package/dist/cdn/chunks/{LoadingTrack-YU44CM8X.js → LoadingTrack-BIcL4NiY.js} +2 -2
- package/dist/cdn/chunks/{LoadingTrack-YU44CM8X.js.map → LoadingTrack-BIcL4NiY.js.map} +1 -1
- package/dist/cdn/chunks/{LogicTagInsertButton-BJ2t2vxC.js → LogicTagInsertButton-CsL2JDOG.js} +367 -362
- package/dist/cdn/chunks/LogicTagInsertButton-CsL2JDOG.js.map +1 -0
- package/dist/{MediaEditModal-C_wxoUMG.js → cdn/chunks/MediaEditModal-BuHCiyMu.js} +544 -560
- package/dist/cdn/chunks/MediaEditModal-BuHCiyMu.js.map +1 -0
- package/dist/cdn/chunks/MediaPanels-DAgUf_T1.js +45 -0
- package/dist/cdn/chunks/{MediaPanels-CkdJ_kGp.js.map → MediaPanels-DAgUf_T1.js.map} +1 -1
- package/dist/cdn/chunks/{MergeTagInput-7wXX71DH.js → MergeTagInput-C8U-7LxL.js} +33 -33
- package/dist/cdn/chunks/{MergeTagInput-7wXX71DH.js.map → MergeTagInput-C8U-7LxL.js.map} +1 -1
- package/dist/cdn/chunks/{MergeTagModeToggle-r9vHH4u_.js → MergeTagModeToggle-Mm-p0A52.js} +41 -41
- package/dist/cdn/chunks/{MergeTagModeToggle-r9vHH4u_.js.map → MergeTagModeToggle-Mm-p0A52.js.map} +1 -1
- package/dist/cdn/chunks/MergeTagTextarea-DuLScsWM.js +72 -0
- package/dist/cdn/chunks/MergeTagTextarea-DuLScsWM.js.map +1 -0
- package/dist/cdn/chunks/ParagraphEditor-CqSj6Ayz.js +634 -0
- package/dist/cdn/chunks/ParagraphEditor-CqSj6Ayz.js.map +1 -0
- package/dist/cdn/chunks/{RestoreVersionDialog-C5cxBRKi.js → RestoreVersionDialog-CdA5osuA.js} +25 -25
- package/dist/cdn/chunks/{RestoreVersionDialog-C5cxBRKi.js.map → RestoreVersionDialog-CdA5osuA.js.map} +1 -1
- package/dist/cdn/chunks/{RichTextEditorContent-BfE7Bkge.js → RichTextEditorContent-Q1d2xqBT.js} +46 -46
- package/dist/cdn/chunks/{RichTextEditorContent-BfE7Bkge.js.map → RichTextEditorContent-Q1d2xqBT.js.map} +1 -1
- package/dist/cdn/chunks/{SaveBlockDialog-BKbjUnPM.js → SaveBlockDialog-CijargAy.js} +77 -77
- package/dist/cdn/chunks/{SaveBlockDialog-BKbjUnPM.js.map → SaveBlockDialog-CijargAy.js.map} +1 -1
- package/dist/cdn/chunks/SavedBlocksBrowserModal-DtOz_X5S.js +357 -0
- package/dist/cdn/chunks/{SavedBlocksBrowserModal-BMtyUrUP.js.map → SavedBlocksBrowserModal-DtOz_X5S.js.map} +1 -1
- package/dist/cdn/chunks/SavedBlocksPanels-BowyED5h.js +38 -0
- package/dist/cdn/chunks/{SavedBlocksPanels-s_gxi1im.js.map → SavedBlocksPanels-BowyED5h.js.map} +1 -1
- package/dist/cdn/chunks/{SavedBlocksPickBar-B8WHk5mI.js → SavedBlocksPickBar-BPRaJBv3.js} +18 -18
- package/dist/cdn/chunks/{SavedBlocksPickBar-B8WHk5mI.js.map → SavedBlocksPickBar-BPRaJBv3.js.map} +1 -1
- package/dist/cdn/chunks/TemplateSettings-ByZeBO34.js +209 -0
- package/dist/cdn/chunks/{TemplateSettings-CtrzzQWl.js.map → TemplateSettings-ByZeBO34.js.map} +1 -1
- package/dist/cdn/chunks/{TestEmailModal-DuZKYMWD.js → TestEmailModal-BUVTj3Ic.js} +54 -54
- package/dist/cdn/chunks/{TestEmailModal-DuZKYMWD.js.map → TestEmailModal-BUVTj3Ic.js.map} +1 -1
- package/dist/cdn/chunks/TestEmailPanel-BxutYoWg.js +35 -0
- package/dist/cdn/chunks/{TestEmailPanel-DERaCdpG.js.map → TestEmailPanel-BxutYoWg.js.map} +1 -1
- package/dist/cdn/chunks/TitleEditor-Ccv6uoTz.js +199 -0
- package/dist/cdn/chunks/{TitleEditor-CEgxjtUX.js.map → TitleEditor-Ccv6uoTz.js.map} +1 -1
- package/dist/cdn/chunks/ToggleSwitch-Ctdmj621.js +39 -0
- package/dist/cdn/chunks/ToggleSwitch-Ctdmj621.js.map +1 -0
- package/dist/cdn/chunks/{Toolbar-GFIZQHzw.js → Toolbar-DoprRgTn.js} +986 -987
- package/dist/cdn/chunks/{Toolbar-GFIZQHzw.js.map → Toolbar-DoprRgTn.js.map} +1 -1
- package/dist/cdn/chunks/{TplModal-DDrbWJcE.js → TplModal-BXQzmsJX.js} +21 -21
- package/dist/cdn/chunks/{TplModal-DDrbWJcE.js.map → TplModal-BXQzmsJX.js.map} +1 -1
- package/dist/cdn/chunks/{VersionHistoryMenu-MlxsUmuT.js → VersionHistoryMenu-BF2fNCvq.js} +41 -41
- package/dist/cdn/chunks/{VersionHistoryMenu-MlxsUmuT.js.map → VersionHistoryMenu-BF2fNCvq.js.map} +1 -1
- package/dist/cdn/chunks/VersionHistoryPanels-Dal0Uk69.js +48 -0
- package/dist/cdn/chunks/{VersionHistoryPanels-DVOV8QLv.js.map → VersionHistoryPanels-Dal0Uk69.js.map} +1 -1
- package/dist/cdn/chunks/{VersionPreviewBanner-BQwRKc6S.js → VersionPreviewBanner-BaGcn-b1.js} +12 -12
- package/dist/cdn/chunks/{VersionPreviewBanner-BQwRKc6S.js.map → VersionPreviewBanner-BaGcn-b1.js.map} +1 -1
- package/dist/cdn/chunks/WrapperBlock-DkQJtLz0.js +47 -0
- package/dist/cdn/chunks/{WrapperBlock-CFuP4R0c.js.map → WrapperBlock-DkQJtLz0.js.map} +1 -1
- package/dist/cdn/chunks/aiErrors-D5UOoYOt.js +43 -0
- package/dist/cdn/chunks/aiErrors-D5UOoYOt.js.map +1 -0
- package/dist/cdn/chunks/aiImageContext-BH4Ss1h3.js +50 -0
- package/dist/cdn/chunks/aiImageContext-BH4Ss1h3.js.map +1 -0
- package/dist/cdn/chunks/aiRewritePreview-DLGM05Ge.js +46 -0
- package/dist/cdn/chunks/aiRewritePreview-DLGM05Ge.js.map +1 -0
- package/dist/cdn/chunks/blockTypeIcons-ikZAmd6U.js +22 -0
- package/dist/cdn/chunks/{blockTypeIcons-BnAd8qsP.js.map → blockTypeIcons-ikZAmd6U.js.map} +1 -1
- package/dist/{ca-DSJwJ5ov.js → cdn/chunks/ca-C7mTzW1r.js} +132 -11
- package/dist/cdn/chunks/ca-C7mTzW1r.js.map +1 -0
- package/dist/cdn/chunks/{cloud-CI_fgDyy.js → createCloudRuntime-DpBWhrv3.js} +489 -593
- package/dist/cdn/chunks/createCloudRuntime-DpBWhrv3.js.map +1 -0
- package/dist/cdn/chunks/de-DBOTcDj2.js +22 -0
- package/dist/cdn/chunks/de-DBOTcDj2.js.map +1 -0
- package/dist/{de-CBE6O79z.js → cdn/chunks/de-DNuYQTmS.js} +132 -11
- package/dist/cdn/chunks/de-DNuYQTmS.js.map +1 -0
- package/dist/{dist-Bv_GBr2l.js → cdn/chunks/dist-Bo8Thh8v.js} +60 -58
- package/dist/cdn/chunks/{dist-Doy3r07H.js.map → dist-Bo8Thh8v.js.map} +1 -1
- package/dist/cdn/chunks/dist-S-rLGqax.js +406 -0
- package/dist/cdn/chunks/{dist-DdwjXLme.js.map → dist-S-rLGqax.js.map} +1 -1
- package/dist/cdn/chunks/{draggable-akeQH_JP.js → draggable-DZ0gwUJ6.js} +1822 -1728
- package/dist/cdn/chunks/draggable-DZ0gwUJ6.js.map +1 -0
- package/dist/cdn/chunks/{editor-modal-HJBy9kLj.js → editor-modal-CI6EfeMd.js} +884 -884
- package/dist/cdn/chunks/{editor-modal-HJBy9kLj.js.map → editor-modal-CI6EfeMd.js.map} +1 -1
- package/dist/cdn/chunks/en-CDhWRrF_.js +22 -0
- package/dist/cdn/chunks/en-CDhWRrF_.js.map +1 -0
- package/dist/{en-CDexnk0p.js → cdn/chunks/en-CW71OK66.js} +132 -11
- package/dist/cdn/chunks/en-CW71OK66.js.map +1 -0
- package/dist/cdn/chunks/en-ifvu6oPv.js +1 -0
- package/dist/{es-BE42B6uN.js → cdn/chunks/es-DdK7zQfi.js} +132 -11
- package/dist/cdn/chunks/es-DdK7zQfi.js.map +1 -0
- package/dist/cdn/chunks/{extensions-koOuDeZS.js → extensions-taJTZlLK.js} +59 -59
- package/dist/cdn/chunks/{extensions-koOuDeZS.js.map → extensions-taJTZlLK.js.map} +1 -1
- package/dist/{fr-DlJFPDQR.js → cdn/chunks/fr-Dz5Bgb7-.js} +132 -11
- package/dist/cdn/chunks/fr-Dz5Bgb7-.js.map +1 -0
- package/dist/cdn/chunks/{icons-CjlNV8xD.js → icons-DNX6StSs.js} +178 -145
- package/dist/cdn/chunks/icons-DNX6StSs.js.map +1 -0
- package/dist/{ja-CUT8gkNI.js → cdn/chunks/ja-Di-zJiT8.js} +132 -11
- package/dist/cdn/chunks/ja-Di-zJiT8.js.map +1 -0
- package/dist/cdn/chunks/keys-BTpmg2Tt.js +12 -0
- package/dist/cdn/chunks/keys-BTpmg2Tt.js.map +1 -0
- package/dist/{logger-BBlvSn6q.js → cdn/chunks/logger-Tj0RPskW.js} +7 -1
- package/dist/cdn/chunks/logger-Tj0RPskW.js.map +1 -0
- package/dist/{nl-bXWqqRyS.js → cdn/chunks/nl-CvVuHYFL.js} +132 -11
- package/dist/cdn/chunks/{nl-bXWqqRyS.js.map → nl-CvVuHYFL.js.map} +1 -1
- package/dist/cdn/chunks/normalizeMergeTagMarkup-DyePIGqu.js +199 -0
- package/dist/cdn/chunks/normalizeMergeTagMarkup-DyePIGqu.js.map +1 -0
- package/dist/cdn/chunks/{preRenderCustomBlocks-DqKbdTJ8.js → preRenderCustomBlocks-Dc-QLntG.js} +4 -4
- package/dist/cdn/chunks/{preRenderCustomBlocks-DqKbdTJ8.js.map → preRenderCustomBlocks-Dc-QLntG.js.map} +1 -1
- package/dist/cdn/chunks/pt-BR-CHM-ZKvE.js +22 -0
- package/dist/cdn/chunks/pt-BR-CHM-ZKvE.js.map +1 -0
- package/dist/{pt-BR-2_H4-wlb.js → cdn/chunks/pt-BR-ZhO4vgyq.js} +132 -11
- package/dist/cdn/chunks/pt-BR-ZhO4vgyq.js.map +1 -0
- package/dist/cdn/chunks/sanitizeRichTextHtml-DeISfLFr.js +62 -0
- package/dist/cdn/chunks/sanitizeRichTextHtml-DeISfLFr.js.map +1 -0
- package/dist/cdn/chunks/socialIcons-BBvsTwCV.js +2032 -0
- package/dist/cdn/chunks/socialIcons-BBvsTwCV.js.map +1 -0
- package/dist/{dist-DBG3nh3k.js → cdn/chunks/src-BNFnxfrA.js} +552 -350
- package/dist/cdn/chunks/src-BNFnxfrA.js.map +1 -0
- package/dist/cdn/chunks/{src-B77z1iw4.js → src-BcTUmgLe.js} +113 -113
- package/dist/cdn/chunks/{src-B77z1iw4.js.map → src-BcTUmgLe.js.map} +1 -1
- package/dist/cdn/chunks/src-Bs_yxk3h.js +4392 -0
- package/dist/cdn/chunks/src-Bs_yxk3h.js.map +1 -0
- package/dist/cdn/chunks/{tiptap-B1RfWFzB.js → tiptap-CtVrAViq.js} +43 -43
- package/dist/cdn/chunks/{tiptap-B1RfWFzB.js.map → tiptap-CtVrAViq.js.map} +1 -1
- package/dist/cdn/chunks/{useCloudI18n-kp07GQmk.js → useCloudI18n-AVXhzbhQ.js} +4 -4
- package/dist/cdn/chunks/{useCloudI18n-kp07GQmk.js.map → useCloudI18n-AVXhzbhQ.js.map} +1 -1
- package/dist/cdn/chunks/useEditorCore-CCVFi1YZ.js +2586 -0
- package/dist/cdn/chunks/useEditorCore-CCVFi1YZ.js.map +1 -0
- package/dist/cdn/chunks/useEditorRoot-CR5GjJD6.js +10 -0
- package/dist/cdn/chunks/{useEditorRoot-5SBqm90x.js.map → useEditorRoot-CR5GjJD6.js.map} +1 -1
- package/dist/cdn/chunks/{useI18n-DEqtEgOs.js → useI18n-CbVubQhM.js} +3 -3
- package/dist/cdn/chunks/{useI18n-DEqtEgOs.js.map → useI18n-CbVubQhM.js.map} +1 -1
- package/dist/cdn/chunks/{useLogicTag-X8bc5qNl.js → useLogicTag-B49Nc53Y.js} +5 -5
- package/dist/cdn/chunks/{useLogicTag-X8bc5qNl.js.map → useLogicTag-B49Nc53Y.js.map} +1 -1
- package/dist/cdn/chunks/{useMergeTag-DFoOexIQ.js → useMergeTag-B0KryMj8.js} +5 -5
- package/dist/cdn/chunks/{useMergeTag-DFoOexIQ.js.map → useMergeTag-B0KryMj8.js.map} +1 -1
- package/dist/cdn/chunks/{usePopoverPosition-Cz9-XiXR.js → usePopoverPosition-C829ps5i.js} +4 -4
- package/dist/cdn/chunks/{usePopoverPosition-Cz9-XiXR.js.map → usePopoverPosition-C829ps5i.js.map} +1 -1
- package/dist/cdn/chunks/useScrollToBlock-CAwvulog.js +51 -0
- package/dist/cdn/chunks/useScrollToBlock-CAwvulog.js.map +1 -0
- package/dist/cdn/chunks/{withCurrentFont-D-f61ghC.js → withCurrentFont-DFPXeVfG.js} +2 -2
- package/dist/cdn/chunks/{withCurrentFont-D-f61ghC.js.map → withCurrentFont-DFPXeVfG.js.map} +1 -1
- package/dist/cdn/editor.css +1 -1
- package/dist/cdn/editor.js +2151 -1480
- package/dist/cdn/editor.js.map +1 -1
- package/dist/{check-DQQzkmIC.js → check-yYsp5Xpk.js} +1 -1
- package/dist/{chevron-down-CIF4bdon.js → chevron-down-DTmD06_j.js} +1 -1
- package/dist/{chevron-right-Cg7Xu-ev.js → chevron-right-BSeYZOxc.js} +1 -1
- package/dist/{chevron-up-Csu7ISD-.js → chevron-up-BOApwrxi.js} +1 -1
- package/dist/{circle-alert-YUvIJAgY.js → circle-alert-BMszY8im.js} +1 -1
- package/dist/{clock-CnSIGKQW.js → clock-HADxnl6-.js} +1 -1
- package/dist/{cloud-YUYDtdHt.js → createCloudRuntime-DVQI_ReU.js} +474 -570
- package/dist/{createLucideIcon-BcP1sjdp.js → createLucideIcon-0lYYH3EW.js} +6 -6
- package/dist/de-DBOTcDj2.js +20 -0
- package/dist/{cdn/chunks/de-CBE6O79z.js → de-DNuYQTmS.js} +130 -13
- package/dist/{cdn/chunks/dist-Doy3r07H.js → dist-C7EtxNCb.js} +49 -51
- package/dist/{dist-CNqjHA8e.js → dist-C_dV9QAx.js} +130 -130
- package/dist/{cdn/chunks/dist-DdwjXLme.js → dist-DI4_YSnG.js} +111 -110
- package/dist/{cdn/chunks/src-CvLTYGdO.js → dist-DtOF3bDW.js} +446 -393
- package/dist/{editor-modal--7_9A6j-.js → editor-modal-Bzhl-PgI.js} +832 -834
- package/dist/en-CDhWRrF_.js +20 -0
- package/dist/{cdn/chunks/en-CDexnk0p.js → en-CW71OK66.js} +130 -13
- package/dist/en-DwV15ltA.js +1 -0
- package/dist/{cdn/chunks/es-BE42B6uN.js → es-DdK7zQfi.js} +130 -13
- package/dist/{extensions-zwsZlWjH.js → extensions-CdyweA50.js} +57 -57
- package/dist/{eye-B1bua-ck.js → eye-DWkSvYpj.js} +1 -1
- package/dist/{cdn/chunks/fr-DlJFPDQR.js → fr-Dz5Bgb7-.js} +130 -13
- package/dist/image-DesWjcZ4.js +28 -0
- package/dist/index.d.ts +361 -24
- package/dist/{info-x26nGOo2.js → info-ClWJGoZy.js} +1 -1
- package/dist/{cdn/chunks/ja-CUT8gkNI.js → ja-Di-zJiT8.js} +130 -13
- package/dist/keys-Zd9KWRD1.js +10 -0
- package/dist/{link-CezhndyR.js → link-BqRicFTA.js} +1 -1
- package/dist/{list-DQqdptI0.js → list-bojQr9bn.js} +1 -1
- package/dist/{loader-circle-DCEeoYoi.js → loader-circle-B2B8LbUu.js} +1 -1
- package/dist/{cdn/chunks/logger-ByvdoAwq.js → logger-k9Nbj3Cp.js} +5 -3
- package/dist/{message-circle-BLGzfv_7.js → message-circle-BEuiNsyZ.js} +1 -1
- package/dist/{cdn/chunks/nl-bXWqqRyS.js → nl-CvVuHYFL.js} +130 -13
- package/dist/normalizeMergeTagMarkup-P6SUBuPv.js +197 -0
- package/dist/{package-D_kEQCMU.js → package-DCROB4aM.js} +1 -1
- package/dist/{pencil-Dct8zGLy.js → pencil-CEotCKbf.js} +1 -1
- package/dist/{preRenderCustomBlocks-CtKJecE-.js → preRenderCustomBlocks-D8rr61_z.js} +4 -4
- package/dist/pt-BR-CHM-ZKvE.js +20 -0
- package/dist/{cdn/chunks/pt-BR-2_H4-wlb.js → pt-BR-ZhO4vgyq.js} +130 -13
- package/dist/{refresh-cw-tGMRDxr8.js → refresh-cw-C6M2mHNC.js} +12 -2
- package/dist/{runtime-dom.esm-bundler-DYn1z2Xf.js → runtime-dom.esm-bundler-B8WCZWUm.js} +134 -134
- package/dist/sanitizeRichTextHtml-DeISfLFr.js +60 -0
- package/dist/{search-Bm2cCQpe.js → search-Cy99zPYf.js} +1 -1
- package/dist/{send-sVLaKZ7f.js → send-BDLJFsf3.js} +1 -1
- package/dist/{smartphone-B2W81p02.js → smartphone-CVvQaNA4.js} +1 -1
- package/dist/{cdn/chunks/socialIcons-CkZSYpoG.js → socialIcons-Dd-jRiVe.js} +688 -693
- package/dist/{sparkles-a1qkBZ8X.js → sparkles-Ce0Qz0ox.js} +1 -1
- package/dist/square-BWlolnXe.js +15 -0
- package/dist/style.css +1 -1
- package/dist/templatical-editor.js +2114 -1422
- package/dist/{text-align-start-CTuwQ5YW.js → text-align-start-D1V5gPTy.js} +1 -1
- package/dist/{trash-I3D2peFQ.js → trash-CZfiUFmw.js} +1 -1
- package/dist/{triangle-alert-CenxmLRE.js → triangle-alert-CFDzyFC7.js} +1 -1
- package/dist/upload-BJfvdIrD.js +36 -0
- package/dist/{useCloudI18n-CGVEZV3o.js → useCloudI18n-Dcjua65H.js} +5 -5
- package/dist/{useEditorCore-DRbMRe8F.js → useEditorCore-BTLeAVlM.js} +1463 -1499
- package/dist/{useEditorRoot-BVm2-1N8.js → useEditorRoot-DUy67lJu.js} +2 -2
- package/dist/{useI18n-CSh4gO5c.js → useI18n-BdoY7xDE.js} +4 -4
- package/dist/{useLogicTag-zcI6BWIf.js → useLogicTag-DKLZ1T9H.js} +3 -3
- package/dist/{useMergeTag-C-iBLlp0.js → useMergeTag-Bhdx7AKk.js} +3 -3
- package/dist/{usePopoverPosition-CMcsMBtK.js → usePopoverPosition-BZea45XK.js} +2 -2
- package/dist/useScrollToBlock-FmNMALM_.js +74 -0
- package/dist/{vue.runtime.esm-bundler-DV0Wx4r_.js → vue.runtime.esm-bundler-DgFJ6GPG.js} +1428 -1332
- package/dist/{withCurrentFont-D62njRLu.js → withCurrentFont-BATJHNve.js} +1 -1
- package/dist/{x-KFQ4S-Kz.js → x-CZ0Js0hA.js} +1 -1
- package/package.json +14 -12
- package/dist/AiChatSidebar-CdjTb9ej.js +0 -230
- package/dist/AiFeatureMenu-DKm7VYCs.js +0 -57
- package/dist/CloudHeaderExtras-CI8RR9hG.js +0 -55
- package/dist/CommentsSidebar-J65znlrH.js +0 -500
- package/dist/DesignReferenceSidebar-BTwCFgz8.js +0 -279
- package/dist/IssuesPanel-DeeVsfG7.js +0 -117
- package/dist/ParagraphEditor-zLV44z-R.js +0 -797
- package/dist/SavedBlocksBrowserModal-B8DCFW7t.js +0 -360
- package/dist/TemplateScoringPanel-Ba9sgvjS.js +0 -273
- package/dist/TemplateSettings-Cu5X9DgA.js +0 -246
- package/dist/ToggleSwitch-DHweVJOr.js +0 -102
- package/dist/WrapperBlock-DiiaxpMb.js +0 -45
- package/dist/cdn/chunks/AiChatSidebar-yXJ85Zcg.js +0 -205
- package/dist/cdn/chunks/AiChatSidebar-yXJ85Zcg.js.map +0 -1
- package/dist/cdn/chunks/AiFeatureMenu-4ydjrhsQ.js +0 -57
- package/dist/cdn/chunks/AiFeatureMenu-4ydjrhsQ.js.map +0 -1
- package/dist/cdn/chunks/CloudHeaderExtras-DEkRww7n.js +0 -56
- package/dist/cdn/chunks/CloudHeaderExtras-DEkRww7n.js.map +0 -1
- package/dist/cdn/chunks/CloudPanels-XufhBZYF.js.map +0 -1
- package/dist/cdn/chunks/CollaborationNotices-CBvKEj1Q.js.map +0 -1
- package/dist/cdn/chunks/CommentsPanel-R8YLLO3v.js +0 -20
- package/dist/cdn/chunks/CommentsSidebar-96NZHVq3.js +0 -470
- package/dist/cdn/chunks/DesignReferenceSidebar-D14IIu_P.js +0 -229
- package/dist/cdn/chunks/DesignReferenceSidebar-D14IIu_P.js.map +0 -1
- package/dist/cdn/chunks/IssuesPanel-BoPiCLGc.js +0 -100
- package/dist/cdn/chunks/IssuesPanel-BoPiCLGc.js.map +0 -1
- package/dist/cdn/chunks/LogicTagInsertButton-BJ2t2vxC.js.map +0 -1
- package/dist/cdn/chunks/MediaEditModal-DD0SZ-S3.js.map +0 -1
- package/dist/cdn/chunks/MediaPanels-CkdJ_kGp.js +0 -45
- package/dist/cdn/chunks/ParagraphEditor-CJQjRHXV.js +0 -632
- package/dist/cdn/chunks/ParagraphEditor-CJQjRHXV.js.map +0 -1
- package/dist/cdn/chunks/SavedBlocksPanels-s_gxi1im.js +0 -38
- package/dist/cdn/chunks/TemplateScoringPanel-BBPnHILC.js +0 -237
- package/dist/cdn/chunks/TemplateScoringPanel-BBPnHILC.js.map +0 -1
- package/dist/cdn/chunks/TemplateSettings-CtrzzQWl.js +0 -208
- package/dist/cdn/chunks/TestEmailPanel-DERaCdpG.js +0 -35
- package/dist/cdn/chunks/TitleEditor-CEgxjtUX.js +0 -199
- package/dist/cdn/chunks/ToggleSwitch-DGQ7iRc-.js +0 -104
- package/dist/cdn/chunks/ToggleSwitch-DGQ7iRc-.js.map +0 -1
- package/dist/cdn/chunks/VersionHistoryPanels-DVOV8QLv.js +0 -48
- package/dist/cdn/chunks/WrapperBlock-CFuP4R0c.js +0 -47
- package/dist/cdn/chunks/blockTypeIcons-BnAd8qsP.js +0 -22
- package/dist/cdn/chunks/ca-DSJwJ5ov.js.map +0 -1
- package/dist/cdn/chunks/cloud-CI_fgDyy.js.map +0 -1
- package/dist/cdn/chunks/createCloudRuntime-DiYCJ21w.js +0 -358
- package/dist/cdn/chunks/createCloudRuntime-DiYCJ21w.js.map +0 -1
- package/dist/cdn/chunks/de-CBE6O79z.js.map +0 -1
- package/dist/cdn/chunks/de-D_atmUVB.js +0 -89
- package/dist/cdn/chunks/de-D_atmUVB.js.map +0 -1
- package/dist/cdn/chunks/draggable-akeQH_JP.js.map +0 -1
- package/dist/cdn/chunks/en-CDexnk0p.js.map +0 -1
- package/dist/cdn/chunks/en-DhJLnaBx.js +0 -89
- package/dist/cdn/chunks/en-DhJLnaBx.js.map +0 -1
- package/dist/cdn/chunks/en-Ve-PWSXu.js +0 -1
- package/dist/cdn/chunks/es-BE42B6uN.js.map +0 -1
- package/dist/cdn/chunks/fr-DlJFPDQR.js.map +0 -1
- package/dist/cdn/chunks/icons-CjlNV8xD.js.map +0 -1
- package/dist/cdn/chunks/ja-CUT8gkNI.js.map +0 -1
- package/dist/cdn/chunks/keys-UAWhQ3zW.js +0 -12
- package/dist/cdn/chunks/keys-UAWhQ3zW.js.map +0 -1
- package/dist/cdn/chunks/logger-ByvdoAwq.js.map +0 -1
- package/dist/cdn/chunks/pt-BR-2_H4-wlb.js.map +0 -1
- package/dist/cdn/chunks/pt-BR-BphMoUTw.js +0 -89
- package/dist/cdn/chunks/pt-BR-BphMoUTw.js.map +0 -1
- package/dist/cdn/chunks/socialIcons-CkZSYpoG.js.map +0 -1
- package/dist/cdn/chunks/src-B1e5SSYP.js +0 -1272
- package/dist/cdn/chunks/src-B1e5SSYP.js.map +0 -1
- package/dist/cdn/chunks/src-CvLTYGdO.js.map +0 -1
- package/dist/cdn/chunks/timeouts-o5Y9BuqI.js +0 -6
- package/dist/cdn/chunks/timeouts-o5Y9BuqI.js.map +0 -1
- package/dist/cdn/chunks/useAliveFlag-PuXh83UK.js +0 -12
- package/dist/cdn/chunks/useAliveFlag-PuXh83UK.js.map +0 -1
- package/dist/cdn/chunks/useEditorCore-DpCFvHg_.js +0 -2623
- package/dist/cdn/chunks/useEditorCore-DpCFvHg_.js.map +0 -1
- package/dist/cdn/chunks/useEditorRoot-5SBqm90x.js +0 -10
- package/dist/cdn/chunks/useScrollToBlock-MNzurEZV.js +0 -21
- package/dist/cdn/chunks/useScrollToBlock-MNzurEZV.js.map +0 -1
- package/dist/copy-CUC43md_.js +0 -19
- package/dist/createCloudRuntime-BMDRjL0k.js +0 -356
- package/dist/de-D_atmUVB.js +0 -87
- package/dist/dist-CCqn-RqE.js +0 -407
- package/dist/en-BHCMzqib.js +0 -1
- package/dist/en-DhJLnaBx.js +0 -87
- package/dist/image-up-BqiO7KCO.js +0 -27
- package/dist/keys-BymCnLHD.js +0 -10
- package/dist/plus-BDd0gTEm.js +0 -14
- package/dist/pt-BR-BphMoUTw.js +0 -87
- package/dist/shield-check-YhsbXfQc.js +0 -14
- package/dist/socialIcons-Bwv-49EB.js +0 -2167
- package/dist/timeouts-o5Y9BuqI.js +0 -4
- package/dist/upload-uU2cK0Ce.js +0 -21
- package/dist/useAliveFlag-BjP0Gxza.js +0 -10
- package/dist/useScrollToBlock-CdCQK9QQ.js +0 -47
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { c as w, n as T, s as ee, t as te } from "./runtime-dom.esm-bundler-
|
|
3
|
-
import {
|
|
4
|
-
import { t as ne } from "./dist-
|
|
5
|
-
import { J as re, Y as A, Z as ie, d as ae } from "./keys-
|
|
6
|
-
import { t as j } from "./useI18n-
|
|
7
|
-
import { a as M, i as oe, n as se, o as ce, r as le, t as ue } from "./usePopoverPosition-
|
|
8
|
-
import { t as N } from "./createLucideIcon-
|
|
9
|
-
import { t as P } from "./pencil-
|
|
10
|
-
import { t as de } from "./x-
|
|
11
|
-
import { t as F } from "./useMergeTag-
|
|
12
|
-
import { t as I } from "./useLogicTag-
|
|
1
|
+
import { At as e, C as t, D as n, G as r, Mt as i, N as a, Q as o, V as s, Y as c, _ as l, a as u, c as d, d as f, f as p, g as m, j as h, jt as g, l as _, ot as v, q as y, r as b, u as x, x as S, y as C } from "./vue.runtime.esm-bundler-DgFJ6GPG.js";
|
|
2
|
+
import { c as w, n as T, s as ee, t as te } from "./runtime-dom.esm-bundler-B8WCZWUm.js";
|
|
3
|
+
import { J as E, Q as D, Z as O, rt as k } from "./dist-DtOF3bDW.js";
|
|
4
|
+
import { t as ne } from "./dist-DI4_YSnG.js";
|
|
5
|
+
import { J as re, Y as A, Z as ie, d as ae } from "./keys-Zd9KWRD1.js";
|
|
6
|
+
import { t as j } from "./useI18n-BdoY7xDE.js";
|
|
7
|
+
import { a as M, i as oe, n as se, o as ce, r as le, t as ue } from "./usePopoverPosition-BZea45XK.js";
|
|
8
|
+
import { t as N } from "./createLucideIcon-0lYYH3EW.js";
|
|
9
|
+
import { t as P } from "./pencil-CEotCKbf.js";
|
|
10
|
+
import { t as de } from "./x-CZ0Js0hA.js";
|
|
11
|
+
import { t as F } from "./useMergeTag-Bhdx7AKk.js";
|
|
12
|
+
import { t as I } from "./useLogicTag-DKLZ1T9H.js";
|
|
13
13
|
import { u as fe } from "./styleConstants-v1dNKgJf.js";
|
|
14
14
|
var pe = N({
|
|
15
15
|
name: "braces",
|
|
@@ -345,23 +345,23 @@ var Ie = [
|
|
|
345
345
|
}
|
|
346
346
|
},
|
|
347
347
|
emits: ["update:modelValue"],
|
|
348
|
-
setup(
|
|
349
|
-
let
|
|
348
|
+
setup(n, { emit: r }) {
|
|
349
|
+
let c = n, y = r, { t: S } = j(), C = o(!1), T = o(), E = o(), D = o(!1);
|
|
350
350
|
ne(T, () => {
|
|
351
351
|
C.value = !1;
|
|
352
352
|
}, { ignore: [E] });
|
|
353
|
-
let O =
|
|
353
|
+
let O = d(() => !c.modelValue), k = d(() => c.modelValue.trim().toLowerCase() === "transparent"), A = d(() => oe(c.modelValue)), N = d(() => (c.modelValue ? M(c.modelValue) : null) || (M(c.seedColor) ?? "#ffffff")), P = d(() => !c.disabled && !O.value), F = t(ae, ce), I = d(() => [...new Set(c.presets ?? F.presets)]), pe = d(() => c.allowCustom ?? F.allowCustom), L = d(() => I.value.length > 0), R = d(() => pe.value || !L.value), z = d(() => le(c.modelValue));
|
|
354
354
|
function B(e) {
|
|
355
355
|
return z.value !== "" && le(e) === z.value;
|
|
356
356
|
}
|
|
357
357
|
function V(e) {
|
|
358
|
-
|
|
358
|
+
y("update:modelValue", e);
|
|
359
359
|
}
|
|
360
|
-
let H =
|
|
360
|
+
let H = d(() => L.value && !R.value);
|
|
361
361
|
function U(e) {
|
|
362
362
|
return H.value ? e + 1 : e;
|
|
363
363
|
}
|
|
364
|
-
let W =
|
|
364
|
+
let W = d(() => {
|
|
365
365
|
if (H.value && O.value) return 0;
|
|
366
366
|
let e = I.value.findIndex((e) => B(e));
|
|
367
367
|
return e === -1 ? 0 : U(e);
|
|
@@ -383,29 +383,29 @@ var Ie = [
|
|
|
383
383
|
i !== -1 && (n[(i + (e.key === "ArrowRight" || e.key === "ArrowDown" ? 1 : -1) + n.length) % n.length]?.focus(), e.preventDefault());
|
|
384
384
|
}
|
|
385
385
|
function ge(e) {
|
|
386
|
-
D.value = !0,
|
|
386
|
+
D.value = !0, y("update:modelValue", e.detail.value);
|
|
387
387
|
}
|
|
388
388
|
function _e() {
|
|
389
389
|
D.value = !1;
|
|
390
390
|
}
|
|
391
391
|
function ve() {
|
|
392
|
-
!D.value && O.value &&
|
|
392
|
+
!D.value && O.value && y("update:modelValue", N.value);
|
|
393
393
|
}
|
|
394
394
|
function K(e) {
|
|
395
|
-
|
|
395
|
+
y("update:modelValue", e.target.value);
|
|
396
396
|
}
|
|
397
397
|
function q() {
|
|
398
|
-
|
|
398
|
+
y("update:modelValue", "");
|
|
399
399
|
}
|
|
400
400
|
function J() {
|
|
401
|
-
|
|
401
|
+
y("update:modelValue", "transparent");
|
|
402
402
|
}
|
|
403
|
-
let Y = se(), { toLocal: X } = ue(), ye =
|
|
403
|
+
let Y = se(), { toLocal: X } = ue(), ye = t(re, null), be = t(ie, null), Z = o({
|
|
404
404
|
top: 0,
|
|
405
405
|
left: 0
|
|
406
406
|
});
|
|
407
407
|
function xe() {
|
|
408
|
-
if (!
|
|
408
|
+
if (!c.disabled) {
|
|
409
409
|
if (!C.value) {
|
|
410
410
|
let e = E.value?.getBoundingClientRect();
|
|
411
411
|
if (e) {
|
|
@@ -419,53 +419,53 @@ var Ie = [
|
|
|
419
419
|
C.value = !C.value;
|
|
420
420
|
}
|
|
421
421
|
}
|
|
422
|
-
return (
|
|
423
|
-
|
|
422
|
+
return (t, r) => (h(), p("div", { class: e(["tpl:flex tpl:items-center tpl:gap-2 tpl:relative", n.disabled && "tpl:opacity-60 tpl:cursor-not-allowed"]) }, [
|
|
423
|
+
_("button", {
|
|
424
424
|
ref_key: "swatchRef",
|
|
425
425
|
ref: E,
|
|
426
426
|
type: "button",
|
|
427
|
-
disabled:
|
|
428
|
-
"aria-label":
|
|
429
|
-
title:
|
|
427
|
+
disabled: n.disabled,
|
|
428
|
+
"aria-label": n.ariaLabel || v(S).colorPicker.pickColor,
|
|
429
|
+
title: n.ariaLabel || void 0,
|
|
430
430
|
"aria-expanded": C.value,
|
|
431
|
-
class:
|
|
431
|
+
class: e([
|
|
432
432
|
"tpl:shrink-0 tpl:rounded-[var(--tpl-radius-sm)] tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:p-0.5 tpl:transition-all tpl:duration-[120ms] tpl:ease-[cubic-bezier(0.16,1,0.3,1)]",
|
|
433
|
-
|
|
434
|
-
C.value ? "tpl:border-[var(--tpl-primary)] tpl:shadow-[var(--tpl-ring)]" : !
|
|
435
|
-
|
|
433
|
+
n.disabled ? "tpl:cursor-not-allowed" : "tpl:cursor-pointer",
|
|
434
|
+
C.value ? "tpl:border-[var(--tpl-primary)] tpl:shadow-[var(--tpl-ring)]" : !n.disabled && "tpl:hover:border-[var(--tpl-text-dim)]",
|
|
435
|
+
n.size === "sm" ? "tpl:size-8" : "tpl:size-10"
|
|
436
436
|
]),
|
|
437
437
|
onClick: xe
|
|
438
|
-
}, [
|
|
439
|
-
class:
|
|
438
|
+
}, [_("span", {
|
|
439
|
+
class: e(["tpl:block tpl:size-full tpl:rounded-[calc(var(--tpl-radius-sm)-2px)]", {
|
|
440
440
|
"tpl-color-swatch-empty": O.value,
|
|
441
441
|
"tpl-color-swatch-transparent": k.value
|
|
442
442
|
}]),
|
|
443
|
-
style:
|
|
443
|
+
style: g(O.value || k.value ? void 0 : { backgroundColor: A.value })
|
|
444
444
|
}, null, 6)], 10, Ie),
|
|
445
|
-
!
|
|
445
|
+
!n.swatchOnly && R.value ? (h(), p("div", Le, [_("input", {
|
|
446
446
|
type: "text",
|
|
447
|
-
class:
|
|
448
|
-
style:
|
|
447
|
+
class: e([v(fe), "tpl:w-full"]),
|
|
448
|
+
style: g(P.value ? { paddingRight: "2.25rem" } : void 0),
|
|
449
449
|
value: A.value,
|
|
450
|
-
placeholder:
|
|
451
|
-
disabled:
|
|
452
|
-
"aria-label":
|
|
450
|
+
placeholder: n.placeholder || v(S).colorPicker.notSet,
|
|
451
|
+
disabled: n.disabled,
|
|
452
|
+
"aria-label": v(S).colorPicker.hexValue,
|
|
453
453
|
onInput: K
|
|
454
|
-
}, null, 46, Re), P.value ? (
|
|
454
|
+
}, null, 46, Re), P.value ? (h(), p("button", {
|
|
455
455
|
key: 0,
|
|
456
456
|
type: "button",
|
|
457
|
-
"aria-label":
|
|
458
|
-
title:
|
|
457
|
+
"aria-label": v(S).colorPicker.clear,
|
|
458
|
+
title: v(S).colorPicker.clear,
|
|
459
459
|
class: "tpl:absolute tpl:right-2 tpl:top-1/2 tpl:flex tpl:size-6 tpl:-translate-y-1/2 tpl:cursor-pointer tpl:items-center tpl:justify-center tpl:rounded-[var(--tpl-radius-sm)] tpl:text-[var(--tpl-text-dim)] tpl:transition-colors tpl:duration-[120ms] tpl:ease-[cubic-bezier(0.16,1,0.3,1)] tpl:hover:bg-[var(--tpl-bg-hover)] tpl:hover:text-[var(--tpl-text)]",
|
|
460
460
|
onClick: q
|
|
461
|
-
}, [
|
|
461
|
+
}, [l(v(de), {
|
|
462
462
|
size: 14,
|
|
463
463
|
"stroke-width": 1.5
|
|
464
|
-
})], 8, ze)) :
|
|
465
|
-
(
|
|
466
|
-
to:
|
|
467
|
-
disabled: !
|
|
468
|
-
}, [
|
|
464
|
+
})], 8, ze)) : f("", !0)])) : f("", !0),
|
|
465
|
+
(h(), x(u, {
|
|
466
|
+
to: v(Y),
|
|
467
|
+
disabled: !v(Y)
|
|
468
|
+
}, [l(te, {
|
|
469
469
|
"enter-active-class": "tpl:transition-all tpl:duration-[120ms] tpl:ease-[cubic-bezier(0.16,1,0.3,1)]",
|
|
470
470
|
"enter-from-class": "tpl:opacity-0 tpl:scale-95 tpl:translate-y-1",
|
|
471
471
|
"enter-to-class": "tpl:opacity-100 tpl:scale-100 tpl:translate-y-0",
|
|
@@ -473,87 +473,87 @@ var Ie = [
|
|
|
473
473
|
"leave-from-class": "tpl:opacity-100 tpl:scale-100 tpl:translate-y-0",
|
|
474
474
|
"leave-to-class": "tpl:opacity-0 tpl:scale-95 tpl:translate-y-1"
|
|
475
475
|
}, {
|
|
476
|
-
default:
|
|
476
|
+
default: s(() => [C.value ? (h(), p("div", {
|
|
477
477
|
key: 0,
|
|
478
478
|
ref_key: "popoverRef",
|
|
479
479
|
ref: T,
|
|
480
|
-
"data-tpl-theme":
|
|
480
|
+
"data-tpl-theme": v(be),
|
|
481
481
|
class: "tpl-color-popover tpl:absolute tpl:rounded-[var(--tpl-radius)] tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:p-3 tpl:shadow-[var(--tpl-shadow-lg)]",
|
|
482
|
-
style:
|
|
482
|
+
style: g({
|
|
483
483
|
top: `${Z.value.top}px`,
|
|
484
484
|
left: `${Z.value.left}px`,
|
|
485
|
-
...
|
|
485
|
+
...v(ye)
|
|
486
486
|
})
|
|
487
487
|
}, [
|
|
488
|
-
|
|
488
|
+
n.allowTransparent ? (h(), p("button", {
|
|
489
489
|
key: 0,
|
|
490
490
|
type: "button",
|
|
491
491
|
"data-testid": "color-picker-transparent",
|
|
492
492
|
"aria-pressed": k.value,
|
|
493
|
-
"aria-label":
|
|
494
|
-
title:
|
|
495
|
-
class:
|
|
493
|
+
"aria-label": v(S).colorPicker.transparent,
|
|
494
|
+
title: v(S).colorPicker.transparent,
|
|
495
|
+
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)]", k.value ? "tpl:ring-2 tpl:ring-[var(--tpl-primary)] tpl:ring-offset-1 tpl:ring-offset-[var(--tpl-bg-elevated)]" : "tpl:hover:border-[var(--tpl-text-dim)]"]),
|
|
496
496
|
onClick: J
|
|
497
|
-
}, [
|
|
498
|
-
L.value ? (
|
|
497
|
+
}, [r[2] ||= _("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), m(" " + i(v(S).colorPicker.transparent), 1)], 10, Ve)) : f("", !0),
|
|
498
|
+
L.value ? (h(), p("div", {
|
|
499
499
|
key: 1,
|
|
500
500
|
role: "radiogroup",
|
|
501
|
-
"aria-label":
|
|
502
|
-
class:
|
|
501
|
+
"aria-label": v(S).colorPicker.presetColors,
|
|
502
|
+
class: e(["tpl:flex tpl:flex-wrap tpl:gap-1.5", R.value && "tpl:mb-2"]),
|
|
503
503
|
onKeydown: he
|
|
504
|
-
}, [H.value ? (
|
|
504
|
+
}, [H.value ? (h(), p("button", {
|
|
505
505
|
key: 0,
|
|
506
506
|
type: "button",
|
|
507
507
|
role: "radio",
|
|
508
|
-
"aria-label":
|
|
509
|
-
title:
|
|
508
|
+
"aria-label": v(S).colorPicker.clear,
|
|
509
|
+
title: v(S).colorPicker.clear,
|
|
510
510
|
"aria-checked": O.value,
|
|
511
511
|
tabindex: me(),
|
|
512
|
-
class:
|
|
512
|
+
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)]", O.value ? "tpl:ring-2 tpl:ring-[var(--tpl-primary)] tpl:ring-offset-1 tpl:ring-offset-[var(--tpl-bg-elevated)]" : "tpl:hover:border-[var(--tpl-text-dim)]"]),
|
|
513
513
|
onClick: q
|
|
514
|
-
}, null, 10, Ue)) :
|
|
515
|
-
key:
|
|
514
|
+
}, null, 10, Ue)) : f("", !0), (h(!0), p(b, null, a(I.value, (t, n) => (h(), p("button", {
|
|
515
|
+
key: t,
|
|
516
516
|
type: "button",
|
|
517
517
|
role: "radio",
|
|
518
|
-
"aria-label":
|
|
519
|
-
title:
|
|
520
|
-
"aria-checked": B(
|
|
521
|
-
tabindex: G(
|
|
522
|
-
style:
|
|
523
|
-
class:
|
|
524
|
-
onClick: (e) => V(
|
|
525
|
-
}, null, 14, We))), 128))], 42, He)) :
|
|
526
|
-
R.value ? (
|
|
518
|
+
"aria-label": t,
|
|
519
|
+
title: t,
|
|
520
|
+
"aria-checked": B(t),
|
|
521
|
+
tabindex: G(n),
|
|
522
|
+
style: g({ backgroundColor: t }),
|
|
523
|
+
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)]", B(t) ? "tpl:ring-2 tpl:ring-[var(--tpl-primary)] tpl:ring-offset-1 tpl:ring-offset-[var(--tpl-bg-elevated)]" : "tpl:hover:border-[var(--tpl-text-dim)]"]),
|
|
524
|
+
onClick: (e) => V(t)
|
|
525
|
+
}, null, 14, We))), 128))], 42, He)) : f("", !0),
|
|
526
|
+
R.value ? (h(), p("hex-color-picker", {
|
|
527
527
|
key: 2,
|
|
528
528
|
color: N.value,
|
|
529
|
-
"aria-label":
|
|
529
|
+
"aria-label": v(S).colorPicker.pickColor,
|
|
530
530
|
onColorChanged: ge,
|
|
531
531
|
onPointerdown: _e,
|
|
532
532
|
onPointerup: ve,
|
|
533
|
-
onKeydown:
|
|
534
|
-
}, null, 40, Ge)) :
|
|
535
|
-
|
|
533
|
+
onKeydown: r[0] ||= ee((e) => C.value = !1, ["escape"])
|
|
534
|
+
}, null, 40, Ge)) : f("", !0),
|
|
535
|
+
n.swatchOnly && R.value ? (h(), p("div", Ke, [_("input", {
|
|
536
536
|
type: "text",
|
|
537
|
-
class:
|
|
538
|
-
style:
|
|
537
|
+
class: e([v(fe), "tpl:w-full"]),
|
|
538
|
+
style: g(P.value ? { paddingRight: "2.25rem" } : void 0),
|
|
539
539
|
value: A.value,
|
|
540
|
-
placeholder:
|
|
541
|
-
disabled:
|
|
542
|
-
"aria-label":
|
|
540
|
+
placeholder: n.placeholder || v(S).colorPicker.notSet,
|
|
541
|
+
disabled: n.disabled,
|
|
542
|
+
"aria-label": v(S).colorPicker.hexValue,
|
|
543
543
|
onChange: K,
|
|
544
|
-
onKeydown:
|
|
545
|
-
}, null, 46, qe), P.value ? (
|
|
544
|
+
onKeydown: r[1] ||= ee(w((e) => e.target.blur(), ["prevent"]), ["enter"])
|
|
545
|
+
}, null, 46, qe), P.value ? (h(), p("button", {
|
|
546
546
|
key: 0,
|
|
547
547
|
type: "button",
|
|
548
|
-
"aria-label":
|
|
549
|
-
title:
|
|
548
|
+
"aria-label": v(S).colorPicker.clear,
|
|
549
|
+
title: v(S).colorPicker.clear,
|
|
550
550
|
class: "tpl:absolute tpl:right-2 tpl:top-1/2 tpl:flex tpl:size-6 tpl:-translate-y-1/2 tpl:cursor-pointer tpl:items-center tpl:justify-center tpl:rounded-[var(--tpl-radius-sm)] tpl:text-[var(--tpl-text-dim)] tpl:transition-colors tpl:duration-[120ms] tpl:ease-[cubic-bezier(0.16,1,0.3,1)] tpl:hover:bg-[var(--tpl-bg-hover)] tpl:hover:text-[var(--tpl-text)]",
|
|
551
551
|
onClick: q
|
|
552
|
-
}, [
|
|
552
|
+
}, [l(v(de), {
|
|
553
553
|
size: 14,
|
|
554
554
|
"stroke-width": 1.5
|
|
555
|
-
})], 8, Je)) :
|
|
556
|
-
], 12, Be)) :
|
|
555
|
+
})], 8, Je)) : f("", !0)])) : f("", !0)
|
|
556
|
+
], 12, Be)) : f("", !0)]),
|
|
557
557
|
_: 1
|
|
558
558
|
})], 8, ["to", "disabled"]))
|
|
559
559
|
], 2));
|
|
@@ -583,23 +583,23 @@ var Ie = [
|
|
|
583
583
|
function r(e) {
|
|
584
584
|
return n.listId ? `${n.listId}-opt-${e}` : void 0;
|
|
585
585
|
}
|
|
586
|
-
return (n,
|
|
586
|
+
return (n, o) => (h(), p("div", {
|
|
587
587
|
id: t.listId,
|
|
588
588
|
class: "tpl:min-w-[200px] tpl:max-w-[320px] tpl:max-h-[50vh] tpl:overflow-y-auto tpl:rounded-[var(--tpl-radius)] tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:py-1 tpl:shadow-[var(--tpl-shadow-lg)]",
|
|
589
589
|
role: "listbox",
|
|
590
590
|
"data-testid": "merge-tag-suggestion-list"
|
|
591
|
-
}, [t.items.length === 0 ? (
|
|
592
|
-
key:
|
|
593
|
-
id: r(
|
|
591
|
+
}, [t.items.length === 0 ? (h(), p("div", Ze, i(t.emptyText), 1)) : f("", !0), (h(!0), p(b, null, a(t.items, (a, o) => (h(), p("button", {
|
|
592
|
+
key: a.value,
|
|
593
|
+
id: r(o),
|
|
594
594
|
type: "button",
|
|
595
595
|
role: "option",
|
|
596
|
-
"aria-selected":
|
|
597
|
-
"data-selected":
|
|
598
|
-
"data-merge-tag-value":
|
|
599
|
-
class:
|
|
600
|
-
onMousedown: w((e) => n.$emit("select",
|
|
601
|
-
onMousemove: (e) =>
|
|
602
|
-
}, [
|
|
596
|
+
"aria-selected": o === t.selectedIndex,
|
|
597
|
+
"data-selected": o === t.selectedIndex ? "true" : "false",
|
|
598
|
+
"data-merge-tag-value": a.value,
|
|
599
|
+
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", o === t.selectedIndex ? "tpl:bg-[var(--tpl-primary-light)] tpl:text-[var(--tpl-primary)]" : "tpl:text-[var(--tpl-text)] tpl:hover:bg-[var(--tpl-bg-hover)]"]),
|
|
600
|
+
onMousedown: w((e) => n.$emit("select", a), ["prevent", "stop"]),
|
|
601
|
+
onMousemove: (e) => o !== t.selectedIndex && n.$emit("hover", o)
|
|
602
|
+
}, [_("span", $e, i(a.label), 1), _("span", et, i(a.value), 1)], 42, Qe))), 128))], 8, Xe));
|
|
603
603
|
}
|
|
604
604
|
}), nt = 10, rt = 0;
|
|
605
605
|
function it(e, t) {
|
|
@@ -613,16 +613,16 @@ function at(e, t, n, r) {
|
|
|
613
613
|
return t.length === 0 ? e.key === "Enter" || e.key === "Tab" : e.key === "ArrowDown" ? (n.value = (n.value + 1) % t.length, !0) : e.key === "ArrowUp" ? (n.value = (n.value - 1 + t.length) % t.length, !0) : e.key === "Enter" || e.key === "Tab" ? (r(t[n.value]), !0) : !1;
|
|
614
614
|
}
|
|
615
615
|
function ot(e, t) {
|
|
616
|
-
let n = null, r = null, i = null, a =
|
|
617
|
-
function
|
|
618
|
-
|
|
616
|
+
let n = null, r = null, i = null, a = o([]), s = o(0), c = null, l = `tpl-merge-tag-suggestion-${++rt}`, u = null, d = [], f = null;
|
|
617
|
+
function p() {
|
|
618
|
+
v(u?.() ?? null);
|
|
619
619
|
}
|
|
620
|
-
function
|
|
621
|
-
|
|
622
|
-
|
|
620
|
+
function m() {
|
|
621
|
+
p(), f !== null && cancelAnimationFrame(f), f = requestAnimationFrame(() => {
|
|
622
|
+
f = null, p();
|
|
623
623
|
});
|
|
624
624
|
}
|
|
625
|
-
function
|
|
625
|
+
function h(e) {
|
|
626
626
|
let t = [], n = e?.parentElement ?? null;
|
|
627
627
|
for (; n && n !== document.body && n !== document.documentElement;) {
|
|
628
628
|
let e = window.getComputedStyle(n), r = e.overflow + e.overflowX + e.overflowY;
|
|
@@ -630,19 +630,19 @@ function ot(e, t) {
|
|
|
630
630
|
}
|
|
631
631
|
return t;
|
|
632
632
|
}
|
|
633
|
-
function
|
|
634
|
-
|
|
635
|
-
for (let e of
|
|
633
|
+
function g(e) {
|
|
634
|
+
d = [window, ...h(e)];
|
|
635
|
+
for (let e of d) e.addEventListener("scroll", p, {
|
|
636
636
|
passive: !0,
|
|
637
637
|
capture: !0
|
|
638
638
|
});
|
|
639
|
-
window.addEventListener("resize",
|
|
639
|
+
window.addEventListener("resize", p, { passive: !0 });
|
|
640
640
|
}
|
|
641
|
-
function
|
|
642
|
-
for (let e of
|
|
643
|
-
window.removeEventListener("resize",
|
|
641
|
+
function _() {
|
|
642
|
+
for (let e of d) e.removeEventListener("scroll", p, { capture: !0 });
|
|
643
|
+
window.removeEventListener("resize", p), d = [];
|
|
644
644
|
}
|
|
645
|
-
function
|
|
645
|
+
function v(e) {
|
|
646
646
|
if (!r || !e || e.bottom < 0 || e.top > window.innerHeight) return;
|
|
647
647
|
r.style.position = "absolute", r.style.zIndex = "9999";
|
|
648
648
|
let t = r.offsetParent?.getBoundingClientRect(), n = t?.top ?? 0, i = t?.left ?? 0;
|
|
@@ -653,7 +653,7 @@ function ot(e, t) {
|
|
|
653
653
|
r.style.top = `${t - n}px`;
|
|
654
654
|
}
|
|
655
655
|
}
|
|
656
|
-
function
|
|
656
|
+
function y(e, t) {
|
|
657
657
|
let n = t?.closest("[data-tpl-theme]");
|
|
658
658
|
if (!n) return;
|
|
659
659
|
let r = n.getAttribute("data-tpl-theme");
|
|
@@ -665,60 +665,65 @@ function ot(e, t) {
|
|
|
665
665
|
}
|
|
666
666
|
e.style.fontFamily = i.fontFamily, e.style.fontSize = i.fontSize, e.style.lineHeight = i.lineHeight;
|
|
667
667
|
}
|
|
668
|
-
function
|
|
669
|
-
i && (e ? (i.setAttribute("role", "combobox"), i.setAttribute("aria-haspopup", "listbox"), i.setAttribute("aria-expanded", "true"), i.setAttribute("aria-controls",
|
|
668
|
+
function b(e) {
|
|
669
|
+
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")));
|
|
670
670
|
}
|
|
671
|
-
function
|
|
672
|
-
i && (a.value.length === 0 ? i.removeAttribute("aria-activedescendant") : i.setAttribute("aria-activedescendant", `${
|
|
671
|
+
function x() {
|
|
672
|
+
i && (a.value.length === 0 ? i.removeAttribute("aria-activedescendant") : i.setAttribute("aria-activedescendant", `${l}-opt-${s.value}`));
|
|
673
673
|
}
|
|
674
674
|
function C(e) {
|
|
675
|
-
|
|
675
|
+
c?.(e);
|
|
676
676
|
}
|
|
677
677
|
return {
|
|
678
|
-
open: ({ items:
|
|
679
|
-
a.value =
|
|
680
|
-
return
|
|
678
|
+
open: ({ items: o, getRect: d, anchorEl: f, onCommand: p }) => {
|
|
679
|
+
a.value = o, s.value = 0, c = p, r = document.createElement("div"), r.setAttribute("data-testid", "merge-tag-suggestion-popup"), i = f, y(r, f), (t?.value ?? document.body).appendChild(r), n = T({ render() {
|
|
680
|
+
return S(tt, {
|
|
681
681
|
items: a.value,
|
|
682
|
-
selectedIndex:
|
|
682
|
+
selectedIndex: s.value,
|
|
683
683
|
emptyText: e,
|
|
684
|
-
listId:
|
|
684
|
+
listId: l,
|
|
685
685
|
onSelect: (e) => C(e),
|
|
686
686
|
onHover: (e) => {
|
|
687
|
-
|
|
687
|
+
s.value = e, x();
|
|
688
688
|
}
|
|
689
689
|
});
|
|
690
|
-
} }), n.mount(r),
|
|
690
|
+
} }), n.mount(r), b(!0), x(), u = d, m(), g(f);
|
|
691
691
|
},
|
|
692
692
|
update: ({ items: e, getRect: t, onCommand: n }) => {
|
|
693
|
-
a.value = e,
|
|
693
|
+
a.value = e, s.value >= e.length && (s.value = 0), c = n, x(), u = t, m();
|
|
694
694
|
},
|
|
695
695
|
handleKeyDown: (e) => {
|
|
696
|
-
let t = at(e, a.value,
|
|
697
|
-
return t &&
|
|
696
|
+
let t = at(e, a.value, s, C);
|
|
697
|
+
return t && x(), t;
|
|
698
698
|
},
|
|
699
699
|
close: () => {
|
|
700
|
-
r !== null && (
|
|
700
|
+
r !== null && (f !== null && (cancelAnimationFrame(f), f = null), _(), b(!1), n?.unmount(), r.remove(), n = null, r = null, i = null, c = null, u = null);
|
|
701
701
|
},
|
|
702
702
|
isOpen: () => r !== null
|
|
703
703
|
};
|
|
704
704
|
}
|
|
705
705
|
//#endregion
|
|
706
706
|
//#region src/utils/mergeTagTrigger.ts
|
|
707
|
-
function st(e, t, n, r) {
|
|
707
|
+
function st(e, t, n, r, i) {
|
|
708
708
|
if (!n) return null;
|
|
709
|
-
let
|
|
710
|
-
if (
|
|
711
|
-
let
|
|
712
|
-
return /\s/.test(
|
|
713
|
-
triggerStart:
|
|
709
|
+
let a = e.slice(0, t), o = a.lastIndexOf(n);
|
|
710
|
+
if (o === -1 || i && o < ct(a, i)) return null;
|
|
711
|
+
let s = a.slice(o + n.length);
|
|
712
|
+
return /\s/.test(s) || r && s.includes(r) ? null : {
|
|
713
|
+
triggerStart: o,
|
|
714
714
|
caret: t,
|
|
715
|
-
query:
|
|
715
|
+
query: s
|
|
716
716
|
};
|
|
717
717
|
}
|
|
718
|
+
function ct(e, t) {
|
|
719
|
+
let n = new RegExp(t.source, `${t.flags.replace(/[gy]/g, "")}g`), r = 0;
|
|
720
|
+
for (let t of e.matchAll(n)) r = t.index + t[0].length;
|
|
721
|
+
return r;
|
|
722
|
+
}
|
|
718
723
|
//#endregion
|
|
719
724
|
//#region src/utils/textFieldCaret.ts
|
|
720
|
-
var
|
|
721
|
-
function
|
|
725
|
+
var lt = /* @__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(".");
|
|
726
|
+
function ut(e, t, n) {
|
|
722
727
|
return {
|
|
723
728
|
left: e,
|
|
724
729
|
top: t,
|
|
@@ -731,7 +736,7 @@ function lt(e, t, n) {
|
|
|
731
736
|
toJSON: () => ({})
|
|
732
737
|
};
|
|
733
738
|
}
|
|
734
|
-
function
|
|
739
|
+
function dt(e, t) {
|
|
735
740
|
let n = e.ownerDocument, r = n.defaultView;
|
|
736
741
|
if (!r) return null;
|
|
737
742
|
let i = e.tagName === "INPUT", a = r.getComputedStyle(e), o = n.createElement("div");
|
|
@@ -739,7 +744,7 @@ function ut(e, t) {
|
|
|
739
744
|
let s = o.style;
|
|
740
745
|
s.position = "absolute", s.visibility = "hidden", s.top = "0", s.left = "0", s.overflow = "hidden", s.whiteSpace = i ? "pre" : "pre-wrap", s.wordWrap = i ? "normal" : "break-word";
|
|
741
746
|
let c = s, l = a;
|
|
742
|
-
for (let e of
|
|
747
|
+
for (let e of lt) c[e] = l[e];
|
|
743
748
|
i && (s.width = "auto", s.whiteSpace = "pre");
|
|
744
749
|
let u = e.value, d = u.slice(0, t);
|
|
745
750
|
i && (d = d.replace(/\s/g, "\xA0")), o.textContent = d;
|
|
@@ -748,61 +753,61 @@ function ut(e, t) {
|
|
|
748
753
|
let p = f.offsetTop, m = f.offsetLeft;
|
|
749
754
|
n.body.removeChild(o);
|
|
750
755
|
let h = e.getBoundingClientRect(), g = parseFloat(a.borderTopWidth) || 0, _ = parseFloat(a.borderLeftWidth) || 0, v = parseFloat(a.lineHeight) || parseFloat(a.fontSize) || 0, y = h.left + m + _ - e.scrollLeft;
|
|
751
|
-
if (i) return
|
|
756
|
+
if (i) return ut(y, h.top, h.bottom);
|
|
752
757
|
let b = h.top + p + g - e.scrollTop;
|
|
753
|
-
return
|
|
758
|
+
return ut(y, b, b + v);
|
|
754
759
|
}
|
|
755
760
|
//#endregion
|
|
756
761
|
//#region src/composables/useMergeTagAutocomplete.ts
|
|
757
|
-
var
|
|
762
|
+
var ft = /* @__PURE__ */ new Set([
|
|
758
763
|
"ArrowLeft",
|
|
759
764
|
"ArrowRight",
|
|
760
765
|
"Home",
|
|
761
766
|
"End"
|
|
762
767
|
]);
|
|
763
|
-
function
|
|
764
|
-
let { elementRef:
|
|
765
|
-
|
|
768
|
+
function pt(e) {
|
|
769
|
+
let { elementRef: i, modelValue: a, emit: o, mergeTags: s, syntax: l, enabled: u, onInsert: f } = e, p = D(l), m = O(l), h = d(() => u && p !== null && s.value.length > 0), g = t(A, null), _ = ot((y(g) ? g.value : g)?.mergeTag?.suggestionEmpty ?? "No matching merge tags", se()), v = !1;
|
|
770
|
+
r() && c(() => {
|
|
766
771
|
v = !0, _.close();
|
|
767
772
|
});
|
|
768
|
-
function
|
|
773
|
+
function b(e) {
|
|
769
774
|
let t = e.value ?? "";
|
|
770
|
-
return st(t, e.selectionStart ?? t.length, p, m);
|
|
775
|
+
return st(t, e.selectionStart ?? t.length, p, m, l.value);
|
|
771
776
|
}
|
|
772
|
-
function
|
|
773
|
-
let s = e.value ??
|
|
774
|
-
f?.(), o(p), _.close(),
|
|
777
|
+
function x(e, t, r) {
|
|
778
|
+
let s = e.value ?? a(), c = s.slice(t.caret), l = m && c.startsWith(m) ? m.length : 0, u = s.slice(0, t.triggerStart), d = s.slice(t.caret + l), p = u + r.value + d, h = u.length + r.value.length;
|
|
779
|
+
f?.(), o(p), _.close(), n(() => {
|
|
775
780
|
if (v) return;
|
|
776
|
-
let e =
|
|
781
|
+
let e = i.value;
|
|
777
782
|
e?.focus(), e?.setSelectionRange(h, h);
|
|
778
783
|
});
|
|
779
784
|
}
|
|
780
785
|
function S() {
|
|
781
786
|
if (!h.value || v) return;
|
|
782
|
-
let e =
|
|
787
|
+
let e = i.value;
|
|
783
788
|
if (!e) {
|
|
784
789
|
_.close();
|
|
785
790
|
return;
|
|
786
791
|
}
|
|
787
|
-
let
|
|
788
|
-
if (!
|
|
792
|
+
let t = b(e);
|
|
793
|
+
if (!t) {
|
|
789
794
|
_.close();
|
|
790
795
|
return;
|
|
791
796
|
}
|
|
792
|
-
let
|
|
797
|
+
let n = it(s.value, t.query), r = () => dt(e, t.triggerStart), a = (n) => x(e, t, n);
|
|
793
798
|
_.isOpen() ? _.update({
|
|
794
|
-
items:
|
|
795
|
-
getRect:
|
|
799
|
+
items: n,
|
|
800
|
+
getRect: r,
|
|
796
801
|
onCommand: a
|
|
797
802
|
}) : _.open({
|
|
798
|
-
items:
|
|
799
|
-
getRect:
|
|
803
|
+
items: n,
|
|
804
|
+
getRect: r,
|
|
800
805
|
anchorEl: e,
|
|
801
806
|
onCommand: a
|
|
802
807
|
});
|
|
803
808
|
}
|
|
804
809
|
function C(e) {
|
|
805
|
-
return _.isOpen() ? e.key === "Escape" ? (_.close(), !0) :
|
|
810
|
+
return _.isOpen() ? e.key === "Escape" ? (_.close(), !0) : ft.has(e.key) ? (_.close(), !1) : _.handleKeyDown(e) : !1;
|
|
806
811
|
}
|
|
807
812
|
return {
|
|
808
813
|
available: h,
|
|
@@ -814,39 +819,39 @@ function ft(e) {
|
|
|
814
819
|
}
|
|
815
820
|
//#endregion
|
|
816
821
|
//#region src/composables/useMergeTagField.ts
|
|
817
|
-
function
|
|
818
|
-
let { modelValue: t, emit:
|
|
819
|
-
|
|
822
|
+
function mt(e) {
|
|
823
|
+
let { modelValue: t, emit: i, elementRef: a } = e, { mergeTags: s, canRequestMergeTag: l, isRequesting: u, isMergeTagValue: f, getMergeTagDisplayLabel: p, findMergeTag: m, requestMergeTag: h, syntax: g, autocomplete: _ } = F(), { canInsertLogicTag: v, isRequesting: y, requestLogicTag: b } = I(), x = o(!1), S = !1, C = !1;
|
|
824
|
+
r() && c(() => {
|
|
820
825
|
C = !0;
|
|
821
826
|
});
|
|
822
|
-
let w =
|
|
827
|
+
let w = pt({
|
|
823
828
|
elementRef: a,
|
|
824
829
|
modelValue: t,
|
|
825
|
-
emit:
|
|
826
|
-
mergeTags:
|
|
827
|
-
syntax:
|
|
828
|
-
enabled:
|
|
830
|
+
emit: i,
|
|
831
|
+
mergeTags: s,
|
|
832
|
+
syntax: g,
|
|
833
|
+
enabled: _,
|
|
829
834
|
onInsert: () => {
|
|
830
|
-
|
|
835
|
+
x.value = !0;
|
|
831
836
|
}
|
|
832
|
-
}), T =
|
|
837
|
+
}), T = d(() => {
|
|
833
838
|
let e = t();
|
|
834
839
|
if (!e) return [];
|
|
835
|
-
let n = [], r = `(${
|
|
840
|
+
let n = [], r = `(${g.value.source}|${g.logic.source})`, i = new RegExp(r, "g"), a = 0, o;
|
|
836
841
|
for (; (o = i.exec(e)) !== null;) {
|
|
837
842
|
o.index > a && n.push({
|
|
838
843
|
type: "text",
|
|
839
844
|
value: e.slice(a, o.index)
|
|
840
845
|
});
|
|
841
846
|
let t = o[0];
|
|
842
|
-
|
|
847
|
+
f(t) ? n.push({
|
|
843
848
|
type: "mergeTag",
|
|
844
849
|
value: t,
|
|
845
|
-
label:
|
|
846
|
-
}) : k(t,
|
|
850
|
+
label: p(t)
|
|
851
|
+
}) : k(t, g) ? n.push({
|
|
847
852
|
type: "logicMergeTag",
|
|
848
853
|
value: t,
|
|
849
|
-
keyword:
|
|
854
|
+
keyword: E(t, g)
|
|
850
855
|
}) : n.push({
|
|
851
856
|
type: "text",
|
|
852
857
|
value: t
|
|
@@ -856,91 +861,91 @@ function pt(e) {
|
|
|
856
861
|
type: "text",
|
|
857
862
|
value: e.slice(a)
|
|
858
863
|
}), n;
|
|
859
|
-
}), ee =
|
|
864
|
+
}), ee = d(() => T.value.some((e) => e.type === "mergeTag" || e.type === "logicMergeTag"));
|
|
860
865
|
function te() {
|
|
861
|
-
|
|
866
|
+
x.value = !0, n(() => {
|
|
862
867
|
a.value?.focus();
|
|
863
868
|
let e = t()?.length || 0;
|
|
864
869
|
a.value?.setSelectionRange(e, e);
|
|
865
870
|
});
|
|
866
871
|
}
|
|
867
|
-
function
|
|
868
|
-
S || (
|
|
872
|
+
function D() {
|
|
873
|
+
S || (x.value = !1);
|
|
869
874
|
}
|
|
870
|
-
function
|
|
871
|
-
|
|
875
|
+
function O(e) {
|
|
876
|
+
i(e.target.value), w.refresh();
|
|
872
877
|
}
|
|
873
878
|
function ne(e) {
|
|
874
|
-
return w.handleKeydown(e) ? (e.preventDefault(), !0) : (e.key === "Escape" &&
|
|
879
|
+
return w.handleKeydown(e) ? (e.preventDefault(), !0) : (e.key === "Escape" && D(), !1);
|
|
875
880
|
}
|
|
876
881
|
function re() {
|
|
877
882
|
w.refresh();
|
|
878
883
|
}
|
|
879
884
|
function A() {
|
|
880
|
-
w.close(),
|
|
885
|
+
w.close(), D();
|
|
881
886
|
}
|
|
882
887
|
function ie() {
|
|
883
|
-
|
|
888
|
+
i("");
|
|
884
889
|
}
|
|
885
890
|
async function ae() {
|
|
886
|
-
let e =
|
|
891
|
+
let e = x.value && a.value ? a.value.selectionStart ?? t().length : t().length;
|
|
887
892
|
S = !0;
|
|
888
|
-
let
|
|
893
|
+
let r;
|
|
889
894
|
try {
|
|
890
|
-
|
|
895
|
+
r = await h();
|
|
891
896
|
} finally {
|
|
892
897
|
S = !1;
|
|
893
898
|
}
|
|
894
|
-
if (!C &&
|
|
895
|
-
let o = t().slice(0, e), s = t().slice(e), c = o +
|
|
896
|
-
|
|
899
|
+
if (!C && r) {
|
|
900
|
+
let o = t().slice(0, e), s = t().slice(e), c = o + r.value + s;
|
|
901
|
+
i(c), x.value = !0, n(() => {
|
|
897
902
|
if (C) return;
|
|
898
|
-
let t = e +
|
|
903
|
+
let t = e + r.value.length;
|
|
899
904
|
a.value?.focus(), a.value?.setSelectionRange(t, t);
|
|
900
905
|
});
|
|
901
906
|
}
|
|
902
907
|
}
|
|
903
908
|
async function j(e) {
|
|
904
|
-
let t = T.value,
|
|
905
|
-
if (
|
|
909
|
+
let t = T.value, n = t[e];
|
|
910
|
+
if (n?.type !== "mergeTag") return;
|
|
906
911
|
S = !0;
|
|
907
|
-
let
|
|
912
|
+
let r;
|
|
908
913
|
try {
|
|
909
|
-
|
|
914
|
+
r = await h({
|
|
910
915
|
reason: "edit",
|
|
911
|
-
current:
|
|
916
|
+
current: m(n.value)
|
|
912
917
|
});
|
|
913
918
|
} finally {
|
|
914
919
|
S = !1;
|
|
915
920
|
}
|
|
916
|
-
!C &&
|
|
921
|
+
!C && r && i(t.map((t, n) => n === e ? r.value : t.value).join(""));
|
|
917
922
|
}
|
|
918
923
|
async function M() {
|
|
919
|
-
let e = a.value,
|
|
924
|
+
let e = a.value, r = e?.selectionStart ?? t().length, o = e?.selectionEnd ?? r;
|
|
920
925
|
S = !0;
|
|
921
926
|
let s;
|
|
922
927
|
try {
|
|
923
|
-
s = await
|
|
928
|
+
s = await b();
|
|
924
929
|
} finally {
|
|
925
930
|
S = !1;
|
|
926
931
|
}
|
|
927
932
|
if (C || !s) return;
|
|
928
933
|
let c = t(), l, u;
|
|
929
|
-
"before" in s ? (l = c.slice(0,
|
|
934
|
+
"before" in s ? (l = c.slice(0, r) + s.before + c.slice(r, o) + s.after + c.slice(o), u = r + s.before.length + (o - r)) : (l = c.slice(0, r) + s.value + c.slice(r), u = r + s.value.length), i(l), x.value = !0, n(() => {
|
|
930
935
|
C || (a.value?.focus(), a.value?.setSelectionRange(u, u));
|
|
931
936
|
});
|
|
932
937
|
}
|
|
933
938
|
return {
|
|
934
939
|
segments: T,
|
|
935
940
|
hasMergeTags: ee,
|
|
936
|
-
canRequestMergeTag:
|
|
941
|
+
canRequestMergeTag: l,
|
|
937
942
|
isRequestingMergeTag: u,
|
|
938
|
-
canInsertLogicTag:
|
|
939
|
-
isRequestingLogicTag:
|
|
940
|
-
isEditing:
|
|
943
|
+
canInsertLogicTag: v,
|
|
944
|
+
isRequestingLogicTag: y,
|
|
945
|
+
isEditing: x,
|
|
941
946
|
startEditing: te,
|
|
942
|
-
stopEditing:
|
|
943
|
-
handleInput:
|
|
947
|
+
stopEditing: D,
|
|
948
|
+
handleInput: O,
|
|
944
949
|
handleKeydown: ne,
|
|
945
950
|
handleClick: re,
|
|
946
951
|
handleBlur: A,
|
|
@@ -953,14 +958,14 @@ function pt(e) {
|
|
|
953
958
|
}
|
|
954
959
|
//#endregion
|
|
955
960
|
//#region src/components/MergeTagSegments.vue?vue&type=script&setup=true&lang.ts
|
|
956
|
-
var
|
|
961
|
+
var ht = ["aria-label"], gt = [
|
|
957
962
|
"data-tooltip",
|
|
958
963
|
"aria-label",
|
|
959
964
|
"onClick"
|
|
960
|
-
],
|
|
965
|
+
], _t = ["data-tooltip"], vt = ["data-tooltip"], yt = {
|
|
961
966
|
key: 3,
|
|
962
967
|
class: "tpl:text-sm tpl:text-[var(--tpl-text)]"
|
|
963
|
-
},
|
|
968
|
+
}, bt = ["aria-label", "title"], xt = ["aria-label", "title"], St = /* @__PURE__ */ C({
|
|
964
969
|
__name: "MergeTagSegments",
|
|
965
970
|
props: {
|
|
966
971
|
segments: {},
|
|
@@ -973,37 +978,37 @@ var mt = ["aria-label"], ht = [
|
|
|
973
978
|
"repick"
|
|
974
979
|
],
|
|
975
980
|
setup(t, { emit: n }) {
|
|
976
|
-
let r = n, { t:
|
|
977
|
-
function
|
|
981
|
+
let r = n, { t: o, format: s } = j(), { canRepickMergeTag: c, showRawValue: u } = F();
|
|
982
|
+
function d() {
|
|
978
983
|
r("edit");
|
|
979
984
|
}
|
|
980
|
-
return (n,
|
|
985
|
+
return (n, f) => (h(), p("div", {
|
|
981
986
|
role: "group",
|
|
982
|
-
"aria-label":
|
|
983
|
-
class:
|
|
984
|
-
onClick:
|
|
987
|
+
"aria-label": v(o).mergeTag.fieldGroup,
|
|
988
|
+
class: e([t.displayClass, { "tpl-pulse-fill": t.pulse }]),
|
|
989
|
+
onClick: d
|
|
985
990
|
}, [
|
|
986
|
-
(
|
|
991
|
+
(h(!0), p(b, null, a(t.segments, (t, n) => (h(), p(b, { key: `${t.type}-${n}-${t.value}` }, [t.type === "mergeTag" && v(c)(t.value) ? (h(), p("button", {
|
|
987
992
|
key: 0,
|
|
988
993
|
type: "button",
|
|
989
|
-
class:
|
|
990
|
-
"data-tooltip": u
|
|
991
|
-
"aria-label":
|
|
994
|
+
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", v(u) ? "tpl-tooltip" : ""]),
|
|
995
|
+
"data-tooltip": v(u) ? t.value : void 0,
|
|
996
|
+
"aria-label": v(s)(v(o).mergeTag.changeTag, { label: t.label }),
|
|
992
997
|
"data-testid": "merge-tag-field-chip",
|
|
993
998
|
style: {
|
|
994
999
|
"background-color": "color-mix(\n in srgb,\n var(--tpl-primary) 20%,\n transparent\n )",
|
|
995
1000
|
color: "var(--tpl-primary)"
|
|
996
1001
|
},
|
|
997
1002
|
onClick: w((e) => r("repick", n), ["stop"])
|
|
998
|
-
},
|
|
1003
|
+
}, i(t.label), 11, gt)) : t.type === "mergeTag" ? (h(), p("span", {
|
|
999
1004
|
key: 1,
|
|
1000
|
-
class:
|
|
1001
|
-
"data-tooltip": u
|
|
1005
|
+
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", v(u) ? "tpl-tooltip" : ""]),
|
|
1006
|
+
"data-tooltip": v(u) ? t.value : void 0,
|
|
1002
1007
|
style: {
|
|
1003
1008
|
"background-color": "color-mix(\n in srgb,\n var(--tpl-primary) 20%,\n transparent\n )",
|
|
1004
1009
|
color: "var(--tpl-primary)"
|
|
1005
1010
|
}
|
|
1006
|
-
},
|
|
1011
|
+
}, i(t.label), 11, _t)) : t.type === "logicMergeTag" ? (h(), p("span", {
|
|
1007
1012
|
key: 2,
|
|
1008
1013
|
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",
|
|
1009
1014
|
"data-tooltip": t.value,
|
|
@@ -1012,78 +1017,78 @@ var mt = ["aria-label"], ht = [
|
|
|
1012
1017
|
border: "1.5px solid\n color-mix(in srgb, var(--tpl-primary) 50%, transparent)",
|
|
1013
1018
|
color: "var(--tpl-primary)"
|
|
1014
1019
|
}
|
|
1015
|
-
},
|
|
1016
|
-
|
|
1020
|
+
}, i(t.keyword), 9, vt)) : (h(), p("span", yt, i(t.value), 1))], 64))), 128)),
|
|
1021
|
+
_("button", {
|
|
1017
1022
|
type: "button",
|
|
1018
1023
|
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",
|
|
1019
|
-
"aria-label":
|
|
1020
|
-
title:
|
|
1024
|
+
"aria-label": v(o).mergeTag.editAsText,
|
|
1025
|
+
title: v(o).mergeTag.editAsText,
|
|
1021
1026
|
"data-testid": "merge-tag-field-edit",
|
|
1022
|
-
onClick: w(
|
|
1023
|
-
}, [
|
|
1027
|
+
onClick: w(d, ["stop"])
|
|
1028
|
+
}, [l(v(P), {
|
|
1024
1029
|
size: 12,
|
|
1025
1030
|
"stroke-width": 2
|
|
1026
|
-
})], 8,
|
|
1027
|
-
|
|
1031
|
+
})], 8, bt),
|
|
1032
|
+
_("button", {
|
|
1028
1033
|
type: "button",
|
|
1029
1034
|
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",
|
|
1030
|
-
"aria-label":
|
|
1031
|
-
title:
|
|
1035
|
+
"aria-label": v(o).mergeTag.remove,
|
|
1036
|
+
title: v(o).mergeTag.remove,
|
|
1032
1037
|
"data-testid": "merge-tag-field-clear",
|
|
1033
|
-
onClick:
|
|
1034
|
-
}, [
|
|
1038
|
+
onClick: f[0] ||= w((e) => r("clear"), ["stop"])
|
|
1039
|
+
}, [l(v(de), {
|
|
1035
1040
|
size: 12,
|
|
1036
1041
|
"stroke-width": 2.5
|
|
1037
|
-
})], 8,
|
|
1038
|
-
], 10,
|
|
1042
|
+
})], 8, xt)
|
|
1043
|
+
], 10, ht));
|
|
1039
1044
|
}
|
|
1040
|
-
}),
|
|
1045
|
+
}), Ct = [
|
|
1041
1046
|
"aria-label",
|
|
1042
1047
|
"title",
|
|
1043
1048
|
"disabled"
|
|
1044
|
-
],
|
|
1049
|
+
], 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__ */ C({
|
|
1045
1050
|
__name: "MergeTagInsertButton",
|
|
1046
1051
|
props: { disabled: { type: Boolean } },
|
|
1047
1052
|
emits: ["insert"],
|
|
1048
1053
|
setup(t) {
|
|
1049
1054
|
let { t: n } = j();
|
|
1050
|
-
return (r,
|
|
1055
|
+
return (r, a) => (h(), p("button", {
|
|
1051
1056
|
type: "button",
|
|
1052
|
-
class:
|
|
1053
|
-
"aria-label":
|
|
1054
|
-
title:
|
|
1057
|
+
class: e([wt, "tpl:mt-1.5"]),
|
|
1058
|
+
"aria-label": v(n).mergeTag.insert,
|
|
1059
|
+
title: v(n).mergeTag.insert,
|
|
1055
1060
|
disabled: t.disabled,
|
|
1056
|
-
onMousedown:
|
|
1057
|
-
onClick:
|
|
1058
|
-
}, [
|
|
1061
|
+
onMousedown: a[0] ||= w(() => {}, ["prevent"]),
|
|
1062
|
+
onClick: a[1] ||= (e) => r.$emit("insert")
|
|
1063
|
+
}, [l(v(L), {
|
|
1059
1064
|
size: 12,
|
|
1060
1065
|
"stroke-width": 2
|
|
1061
|
-
}),
|
|
1066
|
+
}), m(" " + i(v(n).mergeTag.insertShort), 1)], 42, Ct));
|
|
1062
1067
|
}
|
|
1063
|
-
}),
|
|
1068
|
+
}), Et = [
|
|
1064
1069
|
"aria-label",
|
|
1065
1070
|
"title",
|
|
1066
1071
|
"disabled"
|
|
1067
|
-
],
|
|
1072
|
+
], 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__ */ C({
|
|
1068
1073
|
__name: "LogicTagInsertButton",
|
|
1069
1074
|
props: { disabled: { type: Boolean } },
|
|
1070
1075
|
emits: ["insert"],
|
|
1071
1076
|
setup(t) {
|
|
1072
1077
|
let { t: n } = j();
|
|
1073
|
-
return (r,
|
|
1078
|
+
return (r, a) => (h(), p("button", {
|
|
1074
1079
|
type: "button",
|
|
1075
|
-
class:
|
|
1076
|
-
"aria-label":
|
|
1077
|
-
title:
|
|
1080
|
+
class: e([Dt, "tpl:mt-1.5"]),
|
|
1081
|
+
"aria-label": v(n).logicTag.insert,
|
|
1082
|
+
title: v(n).logicTag.insert,
|
|
1078
1083
|
disabled: t.disabled,
|
|
1079
1084
|
"data-testid": "field-insert-logic-button",
|
|
1080
|
-
onMousedown:
|
|
1081
|
-
onClick:
|
|
1082
|
-
}, [
|
|
1085
|
+
onMousedown: a[0] ||= w(() => {}, ["prevent"]),
|
|
1086
|
+
onClick: a[1] ||= (e) => r.$emit("insert")
|
|
1087
|
+
}, [l(v(pe), {
|
|
1083
1088
|
size: 12,
|
|
1084
1089
|
"stroke-width": 2
|
|
1085
|
-
}),
|
|
1090
|
+
}), m(" " + i(v(n).logicTag.insertShort), 1)], 42, Et));
|
|
1086
1091
|
}
|
|
1087
1092
|
});
|
|
1088
1093
|
//#endregion
|
|
1089
|
-
export { ot as a, Ye as c,
|
|
1094
|
+
export { ot as a, Ye as c, mt as i, L as l, Tt as n, it as o, St as r, at as s, Ot as t, pe as u };
|