@nldd/design-system 0.23.0 → 0.25.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/custom-elements.json +1286 -47
- package/dist/assets/styles/scroll-fade.d.ts +13 -0
- package/dist/assets/styles/scroll-fade.d.ts.map +1 -0
- package/dist/assets/styles/scroll-fade.js +53 -0
- package/dist/assets/styles/scroll-fade.js.map +1 -0
- package/dist/assets/styles/shadow-resets.d.ts +9 -0
- package/dist/assets/styles/shadow-resets.d.ts.map +1 -1
- package/dist/assets/styles/shadow-resets.js +13 -0
- package/dist/assets/styles/shadow-resets.js.map +1 -1
- package/dist/cdn/autoloader.js +137 -136
- package/dist/cdn/chunks/{activity-indicator-D86Mv6SL.js → activity-indicator-Dc6c9HtC.js} +12 -12
- package/dist/cdn/chunks/{avatar-BISv6tzp.js → avatar-CHXRpWWk.js} +17 -17
- package/dist/cdn/chunks/{avatar-group-D7IN6DxU.js → avatar-group-B76E8oC6.js} +20 -20
- package/dist/cdn/chunks/{badge-R3PZUsqZ.js → badge-tO7gHhdi.js} +5 -5
- package/dist/cdn/chunks/{banner-DRANlf5k.js → banner-D4kFQYXF.js} +15 -15
- package/dist/cdn/chunks/{bar-split-view-B-Y2nqgS.js → bar-split-view-C9bYdWSR.js} +7 -7
- package/dist/cdn/chunks/{blockquote-pUgJLPY1.js → blockquote-DRJajjBB.js} +9 -9
- package/dist/cdn/chunks/{box-BbXHpBQy.js → box-D10mS19t.js} +3 -3
- package/dist/cdn/chunks/{breadcrumbs-BdF4m3DB.js → breadcrumbs-BUdQJG3z.js} +6 -6
- package/dist/cdn/chunks/{button-CsqNHH3w.js → button-CwY9fWCg.js} +61 -48
- package/dist/cdn/chunks/{button-bar-CnYIw4fN.js → button-bar-DkqbRvff.js} +30 -30
- package/dist/cdn/chunks/{button-group-xaHghyon.js → button-group-p364JgTR.js} +2 -2
- package/dist/cdn/chunks/{card-Bbf0aCIh.js → card-B7TaSaw7.js} +9 -9
- package/dist/cdn/chunks/{cell-Dggt5oYG.js → cell-BTIpXf1T.js} +6 -6
- package/dist/cdn/chunks/{checkbox-DmFAS8ec.js → checkbox-BLEK0rAV.js} +4 -4
- package/dist/cdn/chunks/{checkbox-field-fOWPH8Q7.js → checkbox-field-CDtlpN-u.js} +5 -5
- package/dist/cdn/chunks/{class-map-BWGTUNv4.js → class-map-5WYS_nCb.js} +1 -1
- package/dist/cdn/chunks/{code-editor-CANFZX66.js → code-editor-CanGMLIo.js} +5 -5
- package/dist/cdn/chunks/{code-viewer-C_vUEx7J.js → code-viewer-DCZ3wjMd.js} +29 -21
- package/dist/cdn/chunks/{codemirror-input-wexTiqWw.js → codemirror-input-CtvDBy25.js} +4 -4
- package/dist/cdn/chunks/{collection-_emTry5U.js → collection-D8K79X0H.js} +20 -20
- package/dist/cdn/chunks/{combo-box-CGwj1u4a.js → combo-box-BeWoeEY8.js} +25 -25
- package/dist/cdn/chunks/{container-D5Dz-j6a.js → container-Be2J-GhB.js} +48 -48
- package/dist/cdn/chunks/{custom-element-DbwbPetH.js → custom-element-DGlHv_OV.js} +4 -2
- package/dist/cdn/chunks/{date-field-ChmyLtTj.js → date-field-BLaGVd4x.js} +29 -29
- package/dist/cdn/chunks/{date-field.i18n-BTzc0E9a.js → date-field.i18n-BqIx3eyr.js} +1 -1
- package/dist/cdn/chunks/{date-picker-CUQKdjS4.js → date-picker-C4mLZKWF.js} +16 -16
- package/dist/cdn/chunks/{decorate-_JGq4E_7.js → decorate-Czy-wI4F.js} +1 -1
- package/dist/cdn/chunks/{described-by-mixin-DbnuGktP.js → described-by-mixin-fLi4Nmt7.js} +6 -3
- package/dist/cdn/chunks/{description-cell-BgcO7ObI.js → description-cell-aQyLX0U0.js} +6 -6
- package/dist/cdn/chunks/{dev-checks-KAnKlxY0.js → dev-checks-qTR6tciJ.js} +140 -33
- package/dist/cdn/chunks/{dist-HgRt6IKh.js → dist-BLnIbkqH.js} +1 -1
- package/dist/cdn/chunks/{dist-DADIyiX-.js → dist-BNS6C8sP.js} +2 -2
- package/dist/cdn/chunks/{dist-CLKJ5z0x.js → dist-B_fXtXqM.js} +1 -1
- package/dist/cdn/chunks/{dist-CKZ98PMy.js → dist-CX0g6sV1.js} +3 -3
- package/dist/cdn/chunks/{dist-CJLBwJx0.js → dist-CZOXq9aZ.js} +1 -1
- package/dist/cdn/chunks/{dist-CBnQQ6kV.js → dist-CdF0c6UD.js} +2 -2
- package/dist/cdn/chunks/{dist-BJrN5nEM.js → dist-DHK9tNd7.js} +1 -1
- package/dist/cdn/chunks/{dist-BF9euKgj.js → dist-WQv_JUmB.js} +2 -2
- package/dist/cdn/chunks/{dist-D7Wubc1l.js → dist-_QFa91Kz.js} +1 -1
- package/dist/cdn/chunks/{dist-Bz3Isx60.js → dist-fDpuYq7K.js} +1 -1
- package/dist/cdn/chunks/{dist-BHMubC6P.js → dist-p1FcXq9E.js} +3 -3
- package/dist/cdn/chunks/{divider-pO5O6wL4.js → divider-2hHcSIga.js} +2 -2
- package/dist/cdn/chunks/{document-tab-bar-C_-iuaUc.js → document-tab-bar-CIWiZUB5.js} +18 -18
- package/dist/cdn/chunks/{dropdown-DYO6049g.js → dropdown-Bwn6dQrK.js} +5 -5
- package/dist/cdn/chunks/{file-field-C-Fk92rD.js → file-field-CtQ6Fzkj.js} +25 -25
- package/dist/cdn/chunks/{form-actions-DrOX7nX8.js → form-actions-DSL0qce-.js} +3 -3
- package/dist/cdn/chunks/{form-field-CR2Py09O.js → form-field--t3Bz1pc.js} +7 -7
- package/dist/cdn/chunks/{form-section-s1mkLzaC.js → form-section-D1n8Sdmt.js} +16 -16
- package/dist/cdn/chunks/{form-ChXBrKw6.js → form-vSM2SOrK.js} +10 -10
- package/dist/cdn/chunks/{full-bleed-section-vOVI_f86.js → full-bleed-section-w2pDVC5v.js} +4 -4
- package/dist/cdn/chunks/{hero-Cb3qIvvh.js → hero-BypUmnRi.js} +22 -22
- package/dist/cdn/chunks/{icon-DBhTZrnl.js → icon-BydOAoVO.js} +7 -7
- package/dist/cdn/chunks/{icon-button-bDuQ_6W_.js → icon-button-C_MZ-jXt.js} +56 -43
- package/dist/cdn/chunks/{icon-cell-DlSZNTF3.js → icon-cell-jiYNsV84.js} +6 -6
- package/dist/cdn/chunks/{identity-CJTVNI9J.js → identity-D1Sw6OdG.js} +55 -39
- package/dist/cdn/chunks/{if-defined-28B8DYUB.js → if-defined-pKQLIQvK.js} +1 -1
- package/dist/cdn/chunks/{image-DlTxyeL3.js → image-DEI0hogS.js} +20 -20
- package/dist/cdn/chunks/{inline-dialog-BJlOrD6M.js → inline-dialog-CTjJ8Tl_.js} +15 -15
- package/dist/cdn/chunks/interest-controller-Ban-3NrX.js +117 -0
- package/dist/cdn/chunks/{just-in-time-education-DWBDshKs.js → just-in-time-education-pUUxdKPR.js} +5 -5
- package/dist/cdn/chunks/{kanban-DIXY8FcZ.js → kanban-KSLBcCb4.js} +9 -9
- package/dist/cdn/chunks/{kanban-column-DmnxctX6.js → kanban-column-RNSdiBIT.js} +8 -8
- package/dist/cdn/chunks/{keyboard-shortcut-kYOKwBqs.js → keyboard-shortcut-D9TYAQu1.js} +3 -3
- package/dist/cdn/chunks/{languages-DGtcUhLc.js → languages-DGZO3jTf.js} +12 -12
- package/dist/cdn/chunks/{link-DhnhhTOg.js → link-C4K1qVcb.js} +88 -24
- package/dist/cdn/chunks/{link-group-Bx2nkQcS.js → link-group-BEYO7nTK.js} +2 -2
- package/dist/cdn/chunks/{list-item-CSNBaRlK.js → list-item-CotWNKc1.js} +19 -19
- package/dist/cdn/chunks/{list-item-segment-D6WvAh3A.js → list-item-segment-C-yl2GAS.js} +15 -15
- package/dist/cdn/chunks/{list-CXCG_IEc.js → list-rMBdnf1f.js} +15 -15
- package/dist/cdn/chunks/{menu-bar-xahTEYTX.js → menu-bar-D9IxDwC2.js} +10 -10
- package/dist/cdn/chunks/{menu-bar-item-C950rfSt.js → menu-bar-item-768OWJdt.js} +18 -18
- package/dist/cdn/chunks/{menu-divider-XlYJ4zQz.js → menu-divider-BHAGnkBl.js} +3 -3
- package/dist/cdn/chunks/{menu-group-E6hIEtLj.js → menu-group-B5MAz_Yk.js} +6 -6
- package/dist/cdn/chunks/{menu-item-2y0VC5Gb.js → menu-item-Ba581zRi.js} +24 -24
- package/dist/cdn/chunks/{menu-CKxKVA36.js → menu-rE6tDSAy.js} +48 -27
- package/dist/cdn/chunks/{menu.template-ZBhUFgBJ.js → menu.template-Eb7J7UrL.js} +130 -76
- package/dist/cdn/chunks/{modal-dialog-DdFpcRLJ.js → modal-dialog-Djln8pr7.js} +5 -5
- package/dist/cdn/chunks/{multi-line-text-field-okvEa54Q.js → multi-line-text-field-Omt0oidK.js} +5 -5
- package/dist/cdn/chunks/{navigation-split-view-dNRQDSpy.js → navigation-split-view-DDng9DdF.js} +11 -11
- package/dist/cdn/chunks/nl.generated-CgRVSEh6.js +116 -0
- package/dist/cdn/chunks/{notification-2tnwXEY1.js → notification-DB6JOmCC.js} +13 -13
- package/dist/cdn/chunks/{number-field-CH7EvpSq.js → number-field-xgr4dysX.js} +7 -7
- package/dist/cdn/chunks/{one-half-one-half-section-UZDP-KO-.js → one-half-one-half-section-CFhmSDDa.js} +4 -4
- package/dist/cdn/chunks/{one-third-two-thirds-section-8KtESdXO.js → one-third-two-thirds-section-D0JV0GJ_.js} +4 -4
- package/dist/cdn/chunks/{one-time-code-field-Bvm3ND6e.js → one-time-code-field-CqgKQqdE.js} +20 -20
- package/dist/cdn/chunks/{page-PK1FWuKJ.js → page-DXWHG-hD.js} +10 -10
- package/dist/cdn/chunks/{page-footer-BamWKHwH.js → page-footer-GexGY_m-.js} +15 -15
- package/dist/cdn/chunks/{page-section-mixin-3q59_Jo_.js → page-section-mixin-CtiPKCqL.js} +4 -10
- package/dist/cdn/chunks/{pagination-47zAyQhM.js → pagination-DJkfE8t9.js} +6 -6
- package/dist/cdn/chunks/{password-field-FaU02DSW.js → password-field-gKiiE_5e.js} +7 -7
- package/dist/cdn/chunks/{popover-642mOFR5.js → popover-C-jxcCHx.js} +74 -50
- package/dist/cdn/chunks/{progress-bar-BivaNkIY.js → progress-bar-CBWQRWkE.js} +24 -24
- package/dist/cdn/chunks/{progress-circle-ewL0JIcz.js → progress-circle-CCcRDOOJ.js} +22 -22
- package/dist/cdn/chunks/{radio-button-DvrYYSnm.js → radio-button-B8xwJO3_.js} +3 -3
- package/dist/cdn/chunks/{radio-button-field-BVi0YrTF.js → radio-button-field-B9lRNOXJ.js} +12 -12
- package/dist/cdn/chunks/{radio-button-group-DZ9OWUNe.js → radio-button-group-Cy7Ya28w.js} +3 -3
- package/dist/cdn/chunks/{render-marked-CO31_4GS.js → render-marked-DjXBoUGY.js} +1 -1
- package/dist/cdn/chunks/{reorder-handle-cell-Doetg58W.js → reorder-handle-cell-B6V85qYk.js} +4 -4
- package/dist/cdn/chunks/{reorder-handle-mixin-DCjwUXr0.js → reorder-handle-mixin-DTmEmT-V.js} +2 -2
- package/dist/cdn/chunks/{repeat-Wb4hkVZc.js → repeat-Ck8L8Iy9.js} +1 -1
- package/dist/cdn/chunks/{rich-text-Do08iiIz.js → rich-text-CqQeOXwL.js} +3 -3
- package/dist/cdn/chunks/{row-header-mixin-CKR5rHBA.js → row-header-mixin-XRu3gHMf.js} +2 -2
- package/dist/cdn/chunks/scroll-fade-e6d1wo3D.js +41 -0
- package/dist/cdn/chunks/{search-field-CCeeGiJM.js → search-field-Cz7Ucf6x.js} +9 -9
- package/dist/cdn/chunks/{segmented-control-CWIPxEBq.js → segmented-control-CLzKU4SX.js} +33 -33
- package/dist/cdn/chunks/{shadow-resets-NKr5gQCc.js → shadow-resets-CodxnaUh.js} +11 -7
- package/dist/cdn/chunks/{sheet-WOjBtZvN.js → sheet-DkmSsRV3.js} +4 -4
- package/dist/cdn/chunks/{shell-Brn0Dr8F.js → shell-Ex_f7Ov3.js} +3 -3
- package/dist/cdn/chunks/{side-by-side-split-view-DGIMsyma.js → side-by-side-split-view-C8aSEGRc.js} +7 -7
- package/dist/cdn/chunks/{sidebar-section-BXHeI8GN.js → sidebar-section-CnD-3i7r.js} +8 -8
- package/dist/cdn/chunks/{simple-section-C8lJZLAO.js → simple-section-CeKnmobI.js} +4 -4
- package/dist/cdn/chunks/{skip-link-QdRgHljr.js → skip-link-DwtFm_NJ.js} +13 -8
- package/dist/cdn/chunks/skip-link.i18n-B7pVqo5u.js +6 -0
- package/dist/cdn/chunks/{slider-BhjBeWqc.js → slider-BVdkwNW3.js} +21 -21
- package/dist/cdn/chunks/slot-content-2qH2vEC_.js +22 -0
- package/dist/cdn/chunks/slotted-block-xNpJoXLz.js +14 -0
- package/dist/cdn/chunks/{spacer-BgkOjuUj.js → spacer-H4zmoDr_.js} +3 -3
- package/dist/cdn/chunks/{spacer-cell-DBI0PVd7.js → spacer-cell-BES4eJH1.js} +4 -4
- package/dist/cdn/chunks/{split-button-DfD9vxPe.js → split-button-Caa30uTx.js} +7 -7
- package/dist/cdn/chunks/{split-view-divider-B4NFlri5.js → split-view-divider-klvZ8lgP.js} +2 -2
- package/dist/cdn/chunks/{split-view-pane-CwFf13hX.js → split-view-pane-Cnx56S5C.js} +4 -4
- package/dist/cdn/chunks/{stacked-split-view-BmbzTinq.js → stacked-split-view-CYdGBY7Q.js} +7 -7
- package/dist/cdn/chunks/{static-html-CZrcQRgC.js → static-html--Xd5vkAU.js} +1 -1
- package/dist/cdn/chunks/{status-bar-CTOf_bDL.js → status-bar-CJybViWL.js} +4 -4
- package/dist/cdn/chunks/{step-bar-B5vzvhz-.js → step-bar-BO6Y1BrK.js} +21 -21
- package/dist/cdn/chunks/{step-cell-CUA-HUZv.js → step-cell-BQ8EHZVR.js} +5 -5
- package/dist/cdn/chunks/{stepper-LxPTQ6HJ.js → stepper-COTaJwSU.js} +6 -6
- package/dist/cdn/chunks/{style-map-DiIQAb_L.js → style-map-BwtZr74h.js} +1 -1
- package/dist/cdn/chunks/{swatch-picker-Cxv9HK3A.js → swatch-picker-5fxe3QB1.js} +21 -21
- package/dist/cdn/chunks/{switch-CbNSJQPp.js → switch-BUxGg2ww.js} +4 -4
- package/dist/cdn/chunks/{switch-field-B8vOvcKc.js → switch-field-DOsEK534.js} +5 -5
- package/dist/cdn/chunks/{tab-bar-D4ot_wZ4.js → tab-bar-CZ9Z9qV9.js} +21 -21
- package/dist/cdn/chunks/{table-uh4YPqda.js → table-SAsB1kDN.js} +5 -5
- package/dist/cdn/chunks/{tag-D2dCXT7A.js → tag-xuCeECO3.js} +16 -12
- package/dist/cdn/chunks/term-DHEvoltZ.js +212 -0
- package/dist/cdn/chunks/term.i18n-DVEJeOb6.js +3 -0
- package/dist/cdn/chunks/text-CiFzQPQw.js +260 -0
- package/dist/cdn/chunks/{text-cell-DNCpmw9h.js → text-cell-DQNzo2Rp.js} +74 -62
- package/dist/cdn/chunks/{text-editor-C6UKAmPL.js → text-editor-DCYF_nqz.js} +257 -237
- package/dist/cdn/chunks/{text-field-Dmkd4mHV.js → text-field-BiPeMi6s.js} +22 -22
- package/dist/cdn/chunks/{time-field-BfgNZbEb.js → time-field-C-Euaiy0.js} +125 -99
- package/dist/cdn/chunks/{time-field.i18n-CLH5vmS7.js → time-field.i18n-BM6qGbmN.js} +0 -1
- package/dist/cdn/chunks/{time-picker-C1SBkU-e.js → time-picker-DYkxhEYm.js} +12 -11
- package/dist/cdn/chunks/{title-DFrd-Fsh.js → title-DkS07R_v.js} +113 -98
- package/dist/cdn/chunks/{title-cell-CC1dQyth.js → title-cell-CJevv6Vg.js} +83 -74
- package/dist/cdn/chunks/{toggle-button-bAX6uzgz.js → toggle-button-DDqd56_3.js} +25 -25
- package/dist/cdn/chunks/{toggle-button-group-B7CHBww5.js → toggle-button-group-ByxgMVzH.js} +2 -2
- package/dist/cdn/chunks/{token-CicHNqIk.js → token-YpVKK1g4.js} +13 -13
- package/dist/cdn/chunks/{token-field-BFynQ-T-.js → token-field-vLdJSvUz.js} +21 -21
- package/dist/cdn/chunks/{toolbar-hAmL7o23.js → toolbar-C-5H46y9.js} +12 -12
- package/dist/cdn/chunks/{toolbar-item-CjgkcYJ2.js → toolbar-item-CvPtoAoQ.js} +3 -3
- package/dist/cdn/chunks/{toolbar-title-B1acxCGx.js → toolbar-title-HElUvLeY.js} +4 -4
- package/dist/cdn/chunks/{toolbar.styles-xiyZx5D0.js → toolbar.styles-BuJIgj1E.js} +3 -3
- package/dist/cdn/chunks/{tooltip-Mj47t8v7.js → tooltip-BF4HkWOi.js} +16 -16
- package/dist/cdn/chunks/{top-navigation-bar-vP5QGBXd.js → top-navigation-bar-ngF2MF40.js} +18 -18
- package/dist/cdn/chunks/{top-title-bar-Yt6cmRLj.js → top-title-bar-BUjpi-w6.js} +14 -14
- package/dist/cdn/chunks/{translations-BMMzf2sX.js → translations-BWgmZCAK.js} +1 -1
- package/dist/cdn/chunks/{two-thirds-one-third-section-BHN98jET.js → two-thirds-one-third-section-Ci6O8SwP.js} +4 -4
- package/dist/cdn/chunks/{validation-list-CUPzu9_z.js → validation-list-BBNFz_2I.js} +10 -10
- package/dist/cdn/chunks/{visibility-mixin-DPuxf-sj.js → visibility-mixin-BP5T5qYB.js} +4 -4
- package/dist/cdn/chunks/{visually-hidden-CvjJIBhz.js → visually-hidden-BqYWVy4n.js} +2 -2
- package/dist/cdn/chunks/{window-BqGlzGaS.js → window-CvgGg1Ib.js} +4 -4
- package/dist/cdn/chunks/{with-translations-CRvWJWep.js → with-translations-8SmMZkGa.js} +3 -3
- package/dist/components/actions/button/button.d.ts +9 -0
- package/dist/components/actions/button/button.d.ts.map +1 -1
- package/dist/components/actions/button/button.js +16 -0
- package/dist/components/actions/button/button.js.map +1 -1
- package/dist/components/actions/button/button.styles.d.ts.map +1 -1
- package/dist/components/actions/button/button.styles.js +6 -0
- package/dist/components/actions/button/button.styles.js.map +1 -1
- package/dist/components/actions/button/button.template.js +1 -1
- package/dist/components/actions/button/button.template.js.map +1 -1
- package/dist/components/actions/button-bar/button-bar.js +2 -2
- package/dist/components/actions/button-bar/button-bar.js.map +1 -1
- package/dist/components/actions/icon-button/icon-button.d.ts +8 -0
- package/dist/components/actions/icon-button/icon-button.d.ts.map +1 -1
- package/dist/components/actions/icon-button/icon-button.js +17 -0
- package/dist/components/actions/icon-button/icon-button.js.map +1 -1
- package/dist/components/actions/icon-button/icon-button.styles.d.ts.map +1 -1
- package/dist/components/actions/icon-button/icon-button.styles.js +6 -0
- package/dist/components/actions/icon-button/icon-button.styles.js.map +1 -1
- package/dist/components/actions/icon-button/icon-button.template.d.ts.map +1 -1
- package/dist/components/actions/icon-button/icon-button.template.js +4 -2
- package/dist/components/actions/icon-button/icon-button.template.js.map +1 -1
- package/dist/components/actions/menu/menu-item.d.ts.map +1 -1
- package/dist/components/actions/menu/menu-item.js +3 -1
- package/dist/components/actions/menu/menu-item.js.map +1 -1
- package/dist/components/actions/menu/menu.d.ts +25 -0
- package/dist/components/actions/menu/menu.d.ts.map +1 -1
- package/dist/components/actions/menu/menu.js +86 -2
- package/dist/components/actions/menu/menu.js.map +1 -1
- package/dist/components/actions/menu/menu.styles.d.ts.map +1 -1
- package/dist/components/actions/menu/menu.styles.js +55 -3
- package/dist/components/actions/menu/menu.styles.js.map +1 -1
- package/dist/components/actions/menu/menu.template.d.ts.map +1 -1
- package/dist/components/actions/menu/menu.template.js +55 -53
- package/dist/components/actions/menu/menu.template.js.map +1 -1
- package/dist/components/content/code-viewer/code-viewer.d.ts +2 -1
- package/dist/components/content/code-viewer/code-viewer.d.ts.map +1 -1
- package/dist/components/content/code-viewer/code-viewer.js +26 -13
- package/dist/components/content/code-viewer/code-viewer.js.map +1 -1
- package/dist/components/content/code-viewer/code-viewer.template.d.ts.map +1 -1
- package/dist/components/content/code-viewer/code-viewer.template.js +2 -0
- package/dist/components/content/code-viewer/code-viewer.template.js.map +1 -1
- package/dist/components/content/identity/identity.d.ts +17 -10
- package/dist/components/content/identity/identity.d.ts.map +1 -1
- package/dist/components/content/identity/identity.js +33 -19
- package/dist/components/content/identity/identity.js.map +1 -1
- package/dist/components/content/identity/identity.styles.d.ts.map +1 -1
- package/dist/components/content/identity/identity.styles.js +5 -1
- package/dist/components/content/identity/identity.styles.js.map +1 -1
- package/dist/components/content/identity/identity.template.d.ts +1 -1
- package/dist/components/content/identity/identity.template.d.ts.map +1 -1
- package/dist/components/content/identity/identity.template.js +11 -5
- package/dist/components/content/identity/identity.template.js.map +1 -1
- package/dist/components/content/tag/tag.styles.d.ts.map +1 -1
- package/dist/components/content/tag/tag.styles.js +6 -2
- package/dist/components/content/tag/tag.styles.js.map +1 -1
- package/dist/components/content/term/term.d.ts +115 -0
- package/dist/components/content/term/term.d.ts.map +1 -0
- package/dist/components/content/term/term.i18n.d.ts +5 -0
- package/dist/components/content/term/term.i18n.d.ts.map +1 -0
- package/dist/components/content/term/term.i18n.js +5 -0
- package/dist/components/content/term/term.i18n.js.map +1 -0
- package/dist/components/content/term/term.js +256 -0
- package/dist/components/content/term/term.js.map +1 -0
- package/dist/components/content/term/term.styles.d.ts +2 -0
- package/dist/components/content/term/term.styles.d.ts.map +1 -0
- package/dist/components/content/term/term.styles.js +65 -0
- package/dist/components/content/term/term.styles.js.map +1 -0
- package/dist/components/content/term/term.template.d.ts +4 -0
- package/dist/components/content/term/term.template.d.ts.map +1 -0
- package/dist/components/content/term/term.template.js +55 -0
- package/dist/components/content/term/term.template.js.map +1 -0
- package/dist/components/content/text/text.d.ts +15 -2
- package/dist/components/content/text/text.d.ts.map +1 -1
- package/dist/components/content/text/text.js +19 -3
- package/dist/components/content/text/text.js.map +1 -1
- package/dist/components/content/text/text.styles.d.ts.map +1 -1
- package/dist/components/content/text/text.styles.js +7 -155
- package/dist/components/content/text/text.styles.js.map +1 -1
- package/dist/components/content/text/text.template.d.ts +3 -2
- package/dist/components/content/text/text.template.d.ts.map +1 -1
- package/dist/components/content/text/text.template.js +3 -4
- package/dist/components/content/text/text.template.js.map +1 -1
- package/dist/components/content/title/title.d.ts +22 -7
- package/dist/components/content/title/title.d.ts.map +1 -1
- package/dist/components/content/title/title.js +43 -19
- package/dist/components/content/title/title.js.map +1 -1
- package/dist/components/content/tooltip/tooltip.d.ts.map +1 -1
- package/dist/components/content/tooltip/tooltip.js +8 -7
- package/dist/components/content/tooltip/tooltip.js.map +1 -1
- package/dist/components/forms/form/form.d.ts +2 -2
- package/dist/components/forms/form/form.d.ts.map +1 -1
- package/dist/components/forms/form/form.js +2 -2
- package/dist/components/forms/form/form.js.map +1 -1
- package/dist/components/forms/form-section/form-section.d.ts +2 -2
- package/dist/components/forms/form-section/form-section.d.ts.map +1 -1
- package/dist/components/forms/form-section/form-section.js +2 -2
- package/dist/components/forms/form-section/form-section.js.map +1 -1
- package/dist/components/index.d.ts +1 -0
- package/dist/components/index.d.ts.map +1 -1
- package/dist/components/index.js +1 -0
- package/dist/components/index.js.map +1 -1
- package/dist/components/inputs/date-field/date-field.i18n.d.ts +1 -1
- package/dist/components/inputs/date-field/date-field.i18n.d.ts.map +1 -1
- package/dist/components/inputs/date-field/date-field.i18n.js +3 -2
- package/dist/components/inputs/date-field/date-field.i18n.js.map +1 -1
- package/dist/components/inputs/date-field/date-field.styles.js +1 -1
- package/dist/components/inputs/date-field/date-field.template.js +1 -1
- package/dist/components/inputs/date-field/date-field.template.js.map +1 -1
- package/dist/components/inputs/text-editor/text-editor.commands.d.ts.map +1 -1
- package/dist/components/inputs/text-editor/text-editor.commands.js +2 -0
- package/dist/components/inputs/text-editor/text-editor.commands.js.map +1 -1
- package/dist/components/inputs/text-editor/text-editor.emphasis.d.ts.map +1 -1
- package/dist/components/inputs/text-editor/text-editor.emphasis.js +7 -0
- package/dist/components/inputs/text-editor/text-editor.emphasis.js.map +1 -1
- package/dist/components/inputs/text-editor/text-editor.focus-selection.d.ts +5 -0
- package/dist/components/inputs/text-editor/text-editor.focus-selection.d.ts.map +1 -1
- package/dist/components/inputs/text-editor/text-editor.focus-selection.js +17 -1
- package/dist/components/inputs/text-editor/text-editor.focus-selection.js.map +1 -1
- package/dist/components/inputs/time-field/time-field.d.ts +21 -6
- package/dist/components/inputs/time-field/time-field.d.ts.map +1 -1
- package/dist/components/inputs/time-field/time-field.i18n.d.ts +0 -1
- package/dist/components/inputs/time-field/time-field.i18n.d.ts.map +1 -1
- package/dist/components/inputs/time-field/time-field.i18n.js +0 -2
- package/dist/components/inputs/time-field/time-field.i18n.js.map +1 -1
- package/dist/components/inputs/time-field/time-field.js +69 -13
- package/dist/components/inputs/time-field/time-field.js.map +1 -1
- package/dist/components/inputs/time-field/time-field.styles.d.ts.map +1 -1
- package/dist/components/inputs/time-field/time-field.styles.js +13 -1
- package/dist/components/inputs/time-field/time-field.styles.js.map +1 -1
- package/dist/components/inputs/time-field/time-field.template.d.ts.map +1 -1
- package/dist/components/inputs/time-field/time-field.template.js +13 -10
- package/dist/components/inputs/time-field/time-field.template.js.map +1 -1
- package/dist/components/inputs/time-picker/time-picker.styles.d.ts.map +1 -1
- package/dist/components/inputs/time-picker/time-picker.styles.js +3 -2
- package/dist/components/inputs/time-picker/time-picker.styles.js.map +1 -1
- package/dist/components/layout/page-sections/full-bleed-section/full-bleed-section.d.ts +1 -1
- package/dist/components/layout/page-sections/full-bleed-section/full-bleed-section.js +1 -1
- package/dist/components/layout/page-sections/hero/hero.d.ts +1 -1
- package/dist/components/layout/page-sections/hero/hero.js +1 -1
- package/dist/components/layout/page-sections/one-half-one-half-section/one-half-one-half-section.d.ts +1 -1
- package/dist/components/layout/page-sections/one-half-one-half-section/one-half-one-half-section.js +1 -1
- package/dist/components/layout/page-sections/one-third-two-thirds-section/one-third-two-thirds-section.d.ts +1 -1
- package/dist/components/layout/page-sections/one-third-two-thirds-section/one-third-two-thirds-section.js +1 -1
- package/dist/components/layout/page-sections/page-section-controls.js +2 -2
- package/dist/components/layout/page-sections/page-section-controls.js.map +1 -1
- package/dist/components/layout/page-sections/simple-section/simple-section.d.ts +1 -1
- package/dist/components/layout/page-sections/simple-section/simple-section.js +1 -1
- package/dist/components/layout/page-sections/two-thirds-one-third-section/two-thirds-one-third-section.d.ts +1 -1
- package/dist/components/layout/page-sections/two-thirds-one-third-section/two-thirds-one-third-section.js +1 -1
- package/dist/components/layout/popover/popover.d.ts +29 -0
- package/dist/components/layout/popover/popover.d.ts.map +1 -1
- package/dist/components/layout/popover/popover.js +70 -8
- package/dist/components/layout/popover/popover.js.map +1 -1
- package/dist/components/layout/popover/popover.styles.d.ts.map +1 -1
- package/dist/components/layout/popover/popover.styles.js +15 -1
- package/dist/components/layout/popover/popover.styles.js.map +1 -1
- package/dist/components/layout/popover/popover.template.js +1 -1
- package/dist/components/layout/popover/popover.template.js.map +1 -1
- package/dist/components/lists-and-tables/cells/text-cell/text-cell.d.ts +24 -13
- package/dist/components/lists-and-tables/cells/text-cell/text-cell.d.ts.map +1 -1
- package/dist/components/lists-and-tables/cells/text-cell/text-cell.js +40 -31
- package/dist/components/lists-and-tables/cells/text-cell/text-cell.js.map +1 -1
- package/dist/components/lists-and-tables/cells/text-cell/text-cell.styles.d.ts.map +1 -1
- package/dist/components/lists-and-tables/cells/text-cell/text-cell.styles.js +5 -1
- package/dist/components/lists-and-tables/cells/text-cell/text-cell.styles.js.map +1 -1
- package/dist/components/lists-and-tables/cells/text-cell/text-cell.template.d.ts +1 -1
- package/dist/components/lists-and-tables/cells/text-cell/text-cell.template.d.ts.map +1 -1
- package/dist/components/lists-and-tables/cells/text-cell/text-cell.template.js +15 -8
- package/dist/components/lists-and-tables/cells/text-cell/text-cell.template.js.map +1 -1
- package/dist/components/lists-and-tables/cells/title-cell/title-cell.d.ts +23 -11
- package/dist/components/lists-and-tables/cells/title-cell/title-cell.d.ts.map +1 -1
- package/dist/components/lists-and-tables/cells/title-cell/title-cell.js +39 -29
- package/dist/components/lists-and-tables/cells/title-cell/title-cell.js.map +1 -1
- package/dist/components/lists-and-tables/cells/title-cell/title-cell.styles.d.ts.map +1 -1
- package/dist/components/lists-and-tables/cells/title-cell/title-cell.styles.js +5 -1
- package/dist/components/lists-and-tables/cells/title-cell/title-cell.styles.js.map +1 -1
- package/dist/components/lists-and-tables/cells/title-cell/title-cell.template.d.ts +1 -1
- package/dist/components/lists-and-tables/cells/title-cell/title-cell.template.d.ts.map +1 -1
- package/dist/components/lists-and-tables/cells/title-cell/title-cell.template.js +15 -16
- package/dist/components/lists-and-tables/cells/title-cell/title-cell.template.js.map +1 -1
- package/dist/components/navigation/link/link.d.ts +68 -2
- package/dist/components/navigation/link/link.d.ts.map +1 -1
- package/dist/components/navigation/link/link.js +162 -1
- package/dist/components/navigation/link/link.js.map +1 -1
- package/dist/components/navigation/link/link.styles.d.ts.map +1 -1
- package/dist/components/navigation/link/link.styles.js +9 -0
- package/dist/components/navigation/link/link.styles.js.map +1 -1
- package/dist/components/navigation/link/link.template.d.ts +1 -0
- package/dist/components/navigation/link/link.template.d.ts.map +1 -1
- package/dist/components/navigation/link/link.template.js +4 -1
- package/dist/components/navigation/link/link.template.js.map +1 -1
- package/dist/components/navigation/skip-link/skip-link.d.ts +12 -4
- package/dist/components/navigation/skip-link/skip-link.d.ts.map +1 -1
- package/dist/components/navigation/skip-link/skip-link.i18n.d.ts +1 -0
- package/dist/components/navigation/skip-link/skip-link.i18n.d.ts.map +1 -1
- package/dist/components/navigation/skip-link/skip-link.i18n.js +2 -0
- package/dist/components/navigation/skip-link/skip-link.i18n.js.map +1 -1
- package/dist/components/navigation/skip-link/skip-link.js +18 -4
- package/dist/components/navigation/skip-link/skip-link.js.map +1 -1
- package/dist/components/navigation/skip-link/skip-link.template.js +1 -1
- package/dist/components/navigation/skip-link/skip-link.template.js.map +1 -1
- package/dist/css/global-open-font.css +2 -0
- package/dist/css/global.css +2 -0
- package/dist/css/link.css +93 -0
- package/dist/css/text.css +159 -0
- package/dist/css/title.css +10 -10
- package/dist/nldd.min.js +2207 -2121
- package/dist/translations/en-US.d.ts.map +1 -1
- package/dist/translations/en-US.js +3 -2
- package/dist/translations/en-US.js.map +1 -1
- package/dist/translations/fy.d.ts.map +1 -1
- package/dist/translations/fy.js +3 -2
- package/dist/translations/fy.js.map +1 -1
- package/dist/translations/nl.generated.d.ts +3 -2
- package/dist/translations/nl.generated.d.ts.map +1 -1
- package/dist/translations/nl.generated.js +2 -0
- package/dist/translations/nl.generated.js.map +1 -1
- package/dist/translations/pap-AW.d.ts.map +1 -1
- package/dist/translations/pap-AW.js +3 -2
- package/dist/translations/pap-AW.js.map +1 -1
- package/dist/translations/pap-CW.d.ts.map +1 -1
- package/dist/translations/pap-CW.js +3 -2
- package/dist/translations/pap-CW.js.map +1 -1
- package/dist/types/react.d.ts +40 -16
- package/dist/types/vue.d.ts +42 -16
- package/dist/utilities/autoloader.generated.d.ts.map +1 -1
- package/dist/utilities/autoloader.generated.js +1 -0
- package/dist/utilities/autoloader.generated.js.map +1 -1
- package/dist/utilities/custom-element.d.ts +10 -0
- package/dist/utilities/custom-element.d.ts.map +1 -1
- package/dist/utilities/custom-element.js +11 -0
- package/dist/utilities/custom-element.js.map +1 -1
- package/dist/utilities/described-by-mixin.d.ts +2 -0
- package/dist/utilities/described-by-mixin.d.ts.map +1 -1
- package/dist/utilities/described-by-mixin.js +10 -1
- package/dist/utilities/described-by-mixin.js.map +1 -1
- package/dist/utilities/dev-checks.d.ts +8 -0
- package/dist/utilities/dev-checks.d.ts.map +1 -1
- package/dist/utilities/dev-checks.js +36 -0
- package/dist/utilities/dev-checks.js.map +1 -1
- package/dist/utilities/dev-rules.generated.d.ts.map +1 -1
- package/dist/utilities/dev-rules.generated.js +102 -17
- package/dist/utilities/dev-rules.generated.js.map +1 -1
- package/dist/utilities/interest-controller.d.ts +80 -0
- package/dist/utilities/interest-controller.d.ts.map +1 -0
- package/dist/utilities/interest-controller.js +339 -0
- package/dist/utilities/interest-controller.js.map +1 -0
- package/dist/utilities/page-section-mixin.d.ts +2 -3
- package/dist/utilities/page-section-mixin.d.ts.map +1 -1
- package/dist/utilities/page-section-mixin.js +2 -9
- package/dist/utilities/page-section-mixin.js.map +1 -1
- package/dist/utilities/slot-content.d.ts +18 -7
- package/dist/utilities/slot-content.d.ts.map +1 -1
- package/dist/utilities/slot-content.js +25 -4
- package/dist/utilities/slot-content.js.map +1 -1
- package/dist/utilities/slotted-block.d.ts +20 -0
- package/dist/utilities/slotted-block.d.ts.map +1 -0
- package/dist/utilities/slotted-block.js +30 -0
- package/dist/utilities/slotted-block.js.map +1 -0
- package/lint/data.generated.json +1 -1
- package/lint/fix.js +43 -2
- package/lint/frontends.js +149 -15
- package/lint/linter.js +3 -2
- package/lint/main.js +17 -3
- package/lint/project.js +2 -2
- package/lint/rule.schema.json +2 -1
- package/package.json +11 -2
- package/dist/cdn/chunks/nl.generated-Bo4bmwYF.js +0 -114
- package/dist/cdn/chunks/skip-link.i18n--PbEdAmJ.js +0 -3
- package/dist/cdn/chunks/slot-content-BLuPqVXw.js +0 -13
- package/dist/cdn/chunks/text-BX4Xm40t.js +0 -406
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { $ as e, A as t, D as n, F as r, H as i, I as a, J as o, K as s, L as c, M as l, N as u, O as d, P as f, Q as p, V as m, Z as h, et as g, it as _, lt as ee, n as te, nt as v, ot as y, q as ne, r as re, st as b } from "./languages-
|
|
2
|
-
import {
|
|
1
|
+
import { $ as e, A as t, D as n, F as r, H as i, I as a, J as o, K as s, L as c, M as l, N as u, O as d, P as f, Q as p, V as m, Z as h, et as g, it as _, lt as ee, n as te, nt as v, ot as y, q as ne, r as re, st as b } from "./languages-DGZO3jTf.js";
|
|
2
|
+
import { a as ie, r as x } from "./custom-element-DGlHv_OV.js";
|
|
3
3
|
import { t as ae } from "./reflect-non-default-Bu3rpCvg.js";
|
|
4
|
-
import { a as oe, c as se, d as ce, i as le, l as ue, n as de, o as fe, r as pe, s as me, t as he, u as ge } from "./codemirror-input-
|
|
5
|
-
import { n as _e, r as ve } from "./dist-
|
|
4
|
+
import { a as oe, c as se, d as ce, i as le, l as ue, n as de, o as fe, r as pe, s as me, t as he, u as ge } from "./codemirror-input-CtvDBy25.js";
|
|
5
|
+
import { n as _e, r as ve } from "./dist-CX0g6sV1.js";
|
|
6
6
|
import { t as ye } from "./custom-element-BW8Ua4c7.js";
|
|
7
7
|
import { t as be } from "./query-ChDzi9FQ.js";
|
|
8
|
-
import "./icon-
|
|
9
|
-
import { a as xe, c as Se, i as Ce, n as we } from "./dist-
|
|
10
|
-
import "./avatar-
|
|
11
|
-
import { o as Te, t as S } from "./decorate-
|
|
12
|
-
import { t as Ee } from "./shadow-resets-
|
|
8
|
+
import "./icon-BydOAoVO.js";
|
|
9
|
+
import { a as xe, c as Se, i as Ce, n as we } from "./dist-BLnIbkqH.js";
|
|
10
|
+
import "./avatar-CHXRpWWk.js";
|
|
11
|
+
import { o as Te, t as S } from "./decorate-Czy-wI4F.js";
|
|
12
|
+
import { t as Ee } from "./shadow-resets-CodxnaUh.js";
|
|
13
13
|
import { t as De } from "./text-editor.i18n-sJKiRQ4i.js";
|
|
14
|
-
import { t as Oe } from "./translations-
|
|
14
|
+
import { t as Oe } from "./translations-BWgmZCAK.js";
|
|
15
15
|
import { r as ke } from "./element-state-B-44fVqq.js";
|
|
16
16
|
// src/components/inputs/text-editor/text-editor.labels.ts
|
|
17
17
|
var Ae = y.define();
|
|
@@ -429,6 +429,16 @@ var Dt = [A, u.fromClass(class {
|
|
|
429
429
|
flush() {
|
|
430
430
|
let e = this.pending;
|
|
431
431
|
if (this.pending = null, !e || this.destroyed || this.view.state.readOnly) return;
|
|
432
|
+
if (this.view.state.sliceDoc(e.from, e.to) === e.marker + e.marker) {
|
|
433
|
+
this.view.dispatch({
|
|
434
|
+
changes: {
|
|
435
|
+
from: e.from,
|
|
436
|
+
to: e.to
|
|
437
|
+
},
|
|
438
|
+
userEvent: "input.emphasis"
|
|
439
|
+
});
|
|
440
|
+
return;
|
|
441
|
+
}
|
|
432
442
|
let t = wt(this.view.state, e, !1);
|
|
433
443
|
t && this.view.dispatch(t);
|
|
434
444
|
}
|
|
@@ -1150,7 +1160,36 @@ var ir = class {
|
|
|
1150
1160
|
})
|
|
1151
1161
|
} : o), i && (this.cut = null);
|
|
1152
1162
|
}
|
|
1153
|
-
}, ar =
|
|
1163
|
+
}, ar = 200, or = /* @__PURE__ */ new WeakSet();
|
|
1164
|
+
function sr(e) {
|
|
1165
|
+
or.has(e) || e.hasFocus || e.dispatch({ selection: { anchor: e.state.doc.length } });
|
|
1166
|
+
}
|
|
1167
|
+
function cr() {
|
|
1168
|
+
let n = 0, r = 0, i = () => (r = Date.now(), !1);
|
|
1169
|
+
return [
|
|
1170
|
+
t.updateListener.of((e) => {
|
|
1171
|
+
e.transactions.some((e) => e.selection) && or.add(e.view);
|
|
1172
|
+
}),
|
|
1173
|
+
t.domEventHandlers({
|
|
1174
|
+
focus: (e, t) => (or.add(t), n = Date.now(), !1),
|
|
1175
|
+
keydown: i,
|
|
1176
|
+
pointerdown: i,
|
|
1177
|
+
touchstart: i
|
|
1178
|
+
}),
|
|
1179
|
+
e.transactionFilter.of((e) => {
|
|
1180
|
+
if (e.docChanged || !e.selection || !e.isUserEvent("select") || e.isUserEvent("select.pointer") || Date.now() - n > ar || r >= n) return e;
|
|
1181
|
+
let t = e.startState.selection.main, i = e.selection.main;
|
|
1182
|
+
if (t.from === 0 || i.from !== 0) return e;
|
|
1183
|
+
let a = i.anchor === 0 ? i.head : i.anchor;
|
|
1184
|
+
return a !== t.anchor && a !== t.head ? e : {
|
|
1185
|
+
selection: e.startState.selection,
|
|
1186
|
+
userEvent: "select"
|
|
1187
|
+
};
|
|
1188
|
+
})
|
|
1189
|
+
];
|
|
1190
|
+
}
|
|
1191
|
+
// src/components/inputs/text-editor/text-editor.commands.ts
|
|
1192
|
+
var lr = {
|
|
1154
1193
|
bold: !1,
|
|
1155
1194
|
italic: !1,
|
|
1156
1195
|
inlineCode: !1,
|
|
@@ -1166,12 +1205,13 @@ var ir = class {
|
|
|
1166
1205
|
function B(e, t, n, r = 1) {
|
|
1167
1206
|
return T(e.state, t, r, n);
|
|
1168
1207
|
}
|
|
1169
|
-
function
|
|
1208
|
+
function ur(e, t, n) {
|
|
1170
1209
|
let r = B(e, t, n, -1), i = B(e, t, n, 1);
|
|
1171
1210
|
return r && i && r.from === i.from && r.to === i.to ? i : null;
|
|
1172
1211
|
}
|
|
1173
1212
|
function V(e, t, n) {
|
|
1174
1213
|
if (e.state.readOnly) return;
|
|
1214
|
+
sr(e);
|
|
1175
1215
|
let { state: r } = e, i = t.length, a = r.field(A, !1);
|
|
1176
1216
|
e.dispatch(r.changeByRange((o) => {
|
|
1177
1217
|
let s = r.sliceDoc(o.from, o.to), c = /^\s*/.exec(s)[0].length;
|
|
@@ -1223,7 +1263,7 @@ function V(e, t, n) {
|
|
|
1223
1263
|
};
|
|
1224
1264
|
})), e.focus();
|
|
1225
1265
|
}
|
|
1226
|
-
function
|
|
1266
|
+
function dr(e, t) {
|
|
1227
1267
|
let n = e.text;
|
|
1228
1268
|
if (t === n) return null;
|
|
1229
1269
|
let r = 0;
|
|
@@ -1236,7 +1276,7 @@ function sr(e, t) {
|
|
|
1236
1276
|
insert: t.slice(r, t.length - i)
|
|
1237
1277
|
};
|
|
1238
1278
|
}
|
|
1239
|
-
function
|
|
1279
|
+
function fr(e, t) {
|
|
1240
1280
|
if (t.length) {
|
|
1241
1281
|
let { state: n } = e, r = n.changes(t), i = n.selection.main;
|
|
1242
1282
|
e.dispatch({
|
|
@@ -1261,54 +1301,54 @@ function U(e, t) {
|
|
|
1261
1301
|
if (e.state.readOnly) return;
|
|
1262
1302
|
let { state: n } = e, { first: r, last: i } = H(e), a = [];
|
|
1263
1303
|
for (let e = r; e <= i; e++) {
|
|
1264
|
-
let r = n.doc.line(e), i =
|
|
1304
|
+
let r = n.doc.line(e), i = dr(r, t(r.text));
|
|
1265
1305
|
i && a.push(i);
|
|
1266
1306
|
}
|
|
1267
|
-
|
|
1307
|
+
fr(e, a);
|
|
1268
1308
|
}
|
|
1269
|
-
function
|
|
1309
|
+
function pr(e, t) {
|
|
1270
1310
|
let { first: n, last: r } = H(e);
|
|
1271
1311
|
for (let i = n; i <= r; i++) if (!t(e.state.doc.line(i).text)) return !1;
|
|
1272
1312
|
return !0;
|
|
1273
1313
|
}
|
|
1274
|
-
function
|
|
1314
|
+
function mr(e, t) {
|
|
1275
1315
|
U(e, (e) => {
|
|
1276
1316
|
let n = e.match(/^(#{1,6})\s+/), r = n ? n[1].length : 0, i = n ? e.slice(n[0].length) : e;
|
|
1277
1317
|
return t === 0 || r === t ? i : `${"#".repeat(t)} ${i}`;
|
|
1278
1318
|
});
|
|
1279
1319
|
}
|
|
1280
|
-
function
|
|
1320
|
+
function hr(e, t) {
|
|
1281
1321
|
U(e, (e) => {
|
|
1282
1322
|
let n = e.replace(/^#{1,6}\s+/, "");
|
|
1283
1323
|
return t === 0 ? n : `${"#".repeat(t)} ${n}`;
|
|
1284
1324
|
});
|
|
1285
1325
|
}
|
|
1286
|
-
function
|
|
1287
|
-
let t = /^(\s*)[-*+]\s+/, { loneBlank: n } = H(e), r = !n &&
|
|
1326
|
+
function gr(e) {
|
|
1327
|
+
let t = /^(\s*)[-*+]\s+/, { loneBlank: n } = H(e), r = !n && pr(e, (e) => t.test(e) || e.trim() === "");
|
|
1288
1328
|
U(e, (e) => e.trim() === "" && !n ? e : r ? e.replace(t, "$1") : t.test(e) ? e : e.replace(/^(\s*)/, "$1- "));
|
|
1289
1329
|
}
|
|
1290
1330
|
var W = /^(\s*)[-*+]\s+\[[ xX]\]\s+/;
|
|
1291
|
-
function
|
|
1292
|
-
let { loneBlank: t } = H(e), n = !t &&
|
|
1331
|
+
function _r(e) {
|
|
1332
|
+
let { loneBlank: t } = H(e), n = !t && pr(e, (e) => W.test(e) || e.trim() === "");
|
|
1293
1333
|
U(e, (e) => e.trim() === "" && !t ? e : n ? e.replace(W, "$1- ") : W.test(e) ? e : e.replace(G, "$1").replace(/^(\s*)/, "$1- [ ] "));
|
|
1294
1334
|
}
|
|
1295
|
-
var G = /^(\s*)(?:[-*+]|\d+[.)])(?:\s+|$)/,
|
|
1296
|
-
function
|
|
1335
|
+
var G = /^(\s*)(?:[-*+]|\d+[.)])(?:\s+|$)/, vr = /^(\s*)\[[ xX]\]\s+/;
|
|
1336
|
+
function yr(e, t) {
|
|
1297
1337
|
if (e.state.readOnly) return;
|
|
1298
1338
|
let { state: n } = e, { first: r, last: i, loneBlank: a } = H(e), o = [], s = 0;
|
|
1299
1339
|
for (let e = r; e <= i; e++) {
|
|
1300
|
-
let r = n.doc.line(e), i = r.text.replace(G, t === "none" ? "" : "$1"), c = i !== r.text, l = c ? i.replace(
|
|
1340
|
+
let r = n.doc.line(e), i = r.text.replace(G, t === "none" ? "" : "$1"), c = i !== r.text, l = c ? i.replace(vr, t === "none" ? "" : "$1") : i, u = l;
|
|
1301
1341
|
if (t !== "none" && (l.trim() !== "" || c || a)) {
|
|
1302
1342
|
s += 1;
|
|
1303
1343
|
let e = t === "bullet" ? "- " : t === "task" ? "- [ ] " : `${s}. `;
|
|
1304
1344
|
u = l.replace(/^(\s*)/, `$1${e}`);
|
|
1305
1345
|
}
|
|
1306
|
-
let d =
|
|
1346
|
+
let d = dr(r, u);
|
|
1307
1347
|
d && o.push(d);
|
|
1308
1348
|
}
|
|
1309
|
-
|
|
1349
|
+
fr(e, o);
|
|
1310
1350
|
}
|
|
1311
|
-
function
|
|
1351
|
+
function br(e, t, n) {
|
|
1312
1352
|
for (let r = t - 1; r >= 1; r--) {
|
|
1313
1353
|
let t = e.doc.line(r).text;
|
|
1314
1354
|
if (t.trim() === "") continue;
|
|
@@ -1318,13 +1358,13 @@ function gr(e, t, n) {
|
|
|
1318
1358
|
}
|
|
1319
1359
|
return null;
|
|
1320
1360
|
}
|
|
1321
|
-
function
|
|
1361
|
+
function xr(e) {
|
|
1322
1362
|
if (e.state.readOnly) return;
|
|
1323
1363
|
let { state: t } = e, { from: n, to: r } = t.selection.main, i = t.doc.lineAt(n).number, a = t.doc.lineAt(r).number, o = [];
|
|
1324
1364
|
for (let e = i; e <= a; e++) {
|
|
1325
1365
|
let n = t.doc.line(e), r = n.text.match(G);
|
|
1326
1366
|
if (!r) continue;
|
|
1327
|
-
let i = r[1].length, a =
|
|
1367
|
+
let i = r[1].length, a = br(t, e, (e) => e <= i)?.[0].length ?? -1;
|
|
1328
1368
|
a > i && o.push({
|
|
1329
1369
|
from: n.from,
|
|
1330
1370
|
insert: " ".repeat(a - i)
|
|
@@ -1332,7 +1372,7 @@ function _r(e) {
|
|
|
1332
1372
|
}
|
|
1333
1373
|
o.length && e.dispatch({ changes: o }), e.focus();
|
|
1334
1374
|
}
|
|
1335
|
-
function
|
|
1375
|
+
function Sr(e) {
|
|
1336
1376
|
if (e.state.readOnly) return;
|
|
1337
1377
|
let { state: t } = e, { from: n, to: r } = t.selection.main, i = t.doc.lineAt(n).number, a = t.doc.lineAt(r).number, o = [];
|
|
1338
1378
|
for (let e = i; e <= a; e++) {
|
|
@@ -1340,7 +1380,7 @@ function vr(e) {
|
|
|
1340
1380
|
if (!r) continue;
|
|
1341
1381
|
let i = r[1].length;
|
|
1342
1382
|
if (i === 0) continue;
|
|
1343
|
-
let a =
|
|
1383
|
+
let a = br(t, e, (e) => e < i)?.[1].length ?? 0;
|
|
1344
1384
|
o.push({
|
|
1345
1385
|
from: n.from,
|
|
1346
1386
|
to: n.from + (i - a)
|
|
@@ -1348,17 +1388,17 @@ function vr(e) {
|
|
|
1348
1388
|
}
|
|
1349
1389
|
o.length && e.dispatch({ changes: o }), e.focus();
|
|
1350
1390
|
}
|
|
1351
|
-
function
|
|
1391
|
+
function Cr(e) {
|
|
1352
1392
|
let { state: t } = e, n = t.doc.lineAt(t.selection.main.head), r = n.text.match(G);
|
|
1353
1393
|
if (!r) return !1;
|
|
1354
|
-
let i = r[1].length, a =
|
|
1394
|
+
let i = r[1].length, a = br(t, n.number, (e) => e <= i);
|
|
1355
1395
|
return a !== null && a[0].length > i;
|
|
1356
1396
|
}
|
|
1357
|
-
function
|
|
1397
|
+
function wr(e) {
|
|
1358
1398
|
let t = e.state.doc.lineAt(e.state.selection.main.head).text.match(G);
|
|
1359
1399
|
return !!t && t[1].length > 0;
|
|
1360
1400
|
}
|
|
1361
|
-
function
|
|
1401
|
+
function Tr(e) {
|
|
1362
1402
|
if (e.state.readOnly) return !0;
|
|
1363
1403
|
let { state: t } = e, n = t.selection.main;
|
|
1364
1404
|
if (!n.empty) return !1;
|
|
@@ -1374,17 +1414,17 @@ function xr(e) {
|
|
|
1374
1414
|
userEvent: "delete.backward"
|
|
1375
1415
|
}), !0;
|
|
1376
1416
|
}
|
|
1377
|
-
function
|
|
1378
|
-
let t = /^(\s*)>\s?/, n =
|
|
1417
|
+
function Er(e) {
|
|
1418
|
+
let t = /^(\s*)>\s?/, n = pr(e, (e) => t.test(e) || e.trim() === "");
|
|
1379
1419
|
U(e, (e) => e.trim() === "" ? e : n ? e.replace(t, "$1") : t.test(e) ? e : e.replace(/^(\s*)/, "$1> "));
|
|
1380
1420
|
}
|
|
1381
|
-
function
|
|
1421
|
+
function Dr(e, t) {
|
|
1382
1422
|
let n = B(e, t, "Link");
|
|
1383
1423
|
return n && !D(e.state, n) ? n : null;
|
|
1384
1424
|
}
|
|
1385
|
-
function
|
|
1425
|
+
function Or(e, t = "") {
|
|
1386
1426
|
if (e.state.readOnly) return;
|
|
1387
|
-
let n =
|
|
1427
|
+
let n = Dr(e, e.state.selection.main.head);
|
|
1388
1428
|
if (n) {
|
|
1389
1429
|
let t = e.state.sliceDoc(n.from, n.to).replace(/^\[(.*)\]\([^)]*\)$/, "$1");
|
|
1390
1430
|
e.dispatch({
|
|
@@ -1407,7 +1447,7 @@ function wr(e, t = "") {
|
|
|
1407
1447
|
};
|
|
1408
1448
|
})), e.focus();
|
|
1409
1449
|
}
|
|
1410
|
-
function
|
|
1450
|
+
function kr(e) {
|
|
1411
1451
|
if (e.state.readOnly) return;
|
|
1412
1452
|
let { state: t } = e, { from: n, to: r } = t.selection.main, i = t.doc.lineAt(n), a = t.doc.lineAt(r), o = i.number > 1 ? t.doc.line(i.number - 1) : null, s = a.number < t.doc.lines ? t.doc.line(a.number + 1) : null;
|
|
1413
1453
|
o?.text.trim().startsWith("```") && s?.text.trim().startsWith("```") && o && s ? e.dispatch({ changes: [{
|
|
@@ -1424,15 +1464,15 @@ function Tr(e) {
|
|
|
1424
1464
|
insert: "\n```"
|
|
1425
1465
|
}] }), e.focus();
|
|
1426
1466
|
}
|
|
1427
|
-
function
|
|
1428
|
-
let { state: t } = e, n = t.selection.main.head, r = t.field(A, !1), i = (t) =>
|
|
1467
|
+
function Ar(e) {
|
|
1468
|
+
let { state: t } = e, n = t.selection.main.head, r = t.field(A, !1), i = (t) => ur(e, n, t) !== null || r?.name === t, a = t.doc.lineAt(n).text, o = t.doc.lineAt(n).from, s = a.match(/^(#{1,6})\s/), c = Ne(t, o);
|
|
1429
1469
|
return {
|
|
1430
1470
|
bold: i("StrongEmphasis"),
|
|
1431
1471
|
italic: i("Emphasis"),
|
|
1432
1472
|
inlineCode: i("InlineCode"),
|
|
1433
1473
|
codeBlock: c,
|
|
1434
1474
|
strikethrough: i("Strikethrough"),
|
|
1435
|
-
link:
|
|
1475
|
+
link: Dr(e, n) !== null,
|
|
1436
1476
|
bulletList: !c && /^\s*[-*+]\s/.test(a) && !Ie(t, o),
|
|
1437
1477
|
orderedList: !c && /^\s*\d+[.)]\s/.test(a),
|
|
1438
1478
|
taskList: !c && W.test(a),
|
|
@@ -1441,9 +1481,9 @@ function Er(e) {
|
|
|
1441
1481
|
};
|
|
1442
1482
|
}
|
|
1443
1483
|
// src/components/inputs/text-editor/text-editor.keymap.ts
|
|
1444
|
-
var
|
|
1484
|
+
var jr = [v.highest(m.of([{
|
|
1445
1485
|
key: "Backspace",
|
|
1446
|
-
run:
|
|
1486
|
+
run: Tr
|
|
1447
1487
|
}])), m.of([
|
|
1448
1488
|
{
|
|
1449
1489
|
key: "Mod-b",
|
|
@@ -1459,7 +1499,7 @@ var Dr = [v.highest(m.of([{
|
|
|
1459
1499
|
},
|
|
1460
1500
|
{
|
|
1461
1501
|
key: "Mod-k",
|
|
1462
|
-
run: (e) => (
|
|
1502
|
+
run: (e) => (Or(e), !0)
|
|
1463
1503
|
},
|
|
1464
1504
|
{
|
|
1465
1505
|
key: "Backspace",
|
|
@@ -1471,11 +1511,11 @@ var Dr = [v.highest(m.of([{
|
|
|
1471
1511
|
},
|
|
1472
1512
|
{
|
|
1473
1513
|
key: "Mod-]",
|
|
1474
|
-
run: (e) => (
|
|
1514
|
+
run: (e) => (xr(e), !0)
|
|
1475
1515
|
},
|
|
1476
1516
|
{
|
|
1477
1517
|
key: "Mod-[",
|
|
1478
|
-
run: (e) => (
|
|
1518
|
+
run: (e) => (Sr(e), !0)
|
|
1479
1519
|
},
|
|
1480
1520
|
{
|
|
1481
1521
|
key: "Backspace",
|
|
@@ -1488,29 +1528,29 @@ var Dr = [v.highest(m.of([{
|
|
|
1488
1528
|
},
|
|
1489
1529
|
...de.filter((e) => e.key !== "Backspace" && e.key !== "Delete"),
|
|
1490
1530
|
...fe
|
|
1491
|
-
])],
|
|
1492
|
-
function
|
|
1531
|
+
])], Mr = /^(\s*)(\d+)[.)](?=\s|$)/, Nr = /^(?:[ ]{0,3}>[ ]?)*/, Pr = /^\s*(?:```|~~~)/, Fr = 1e3;
|
|
1532
|
+
function Ir(e) {
|
|
1493
1533
|
let t = [], n = [], r = 0, i = !1, a = 0;
|
|
1494
1534
|
for (let o of e.split("\n")) {
|
|
1495
1535
|
let e = r;
|
|
1496
|
-
if (r += o.length + 1,
|
|
1536
|
+
if (r += o.length + 1, Pr.test(o)) {
|
|
1497
1537
|
i = !i, n.length = 0, a = 0;
|
|
1498
1538
|
continue;
|
|
1499
1539
|
}
|
|
1500
1540
|
if (i) continue;
|
|
1501
|
-
let s =
|
|
1541
|
+
let s = Nr.exec(o)[0], c = o.slice(s.length), l = (s.match(/>/g) ?? []).length, u = Mr.exec(c);
|
|
1502
1542
|
if (!u) {
|
|
1503
1543
|
if (c.trim() === "") {
|
|
1504
1544
|
++a >= 2 && (n.length = 0);
|
|
1505
1545
|
continue;
|
|
1506
1546
|
}
|
|
1507
1547
|
a = 0;
|
|
1508
|
-
let e = l *
|
|
1548
|
+
let e = l * Fr + /^\s*/.exec(c)[0].length;
|
|
1509
1549
|
for (; n.length && n[n.length - 1].indent >= e;) n.pop();
|
|
1510
1550
|
continue;
|
|
1511
1551
|
}
|
|
1512
1552
|
a = 0;
|
|
1513
|
-
let d = u[1].length, f = l *
|
|
1553
|
+
let d = u[1].length, f = l * Fr + d, p = u[2];
|
|
1514
1554
|
for (; n.length && n[n.length - 1].indent > f;) n.pop();
|
|
1515
1555
|
let m = n[n.length - 1], h;
|
|
1516
1556
|
m && m.indent === f ? (h = m.next, m.next += 1) : (h = 1, n.push({
|
|
@@ -1529,7 +1569,7 @@ function Mr(e) {
|
|
|
1529
1569
|
}
|
|
1530
1570
|
return t;
|
|
1531
1571
|
}
|
|
1532
|
-
function
|
|
1572
|
+
function Lr(e) {
|
|
1533
1573
|
let t = !1;
|
|
1534
1574
|
return e.changes.iterChanges((n, r, i, a, o) => {
|
|
1535
1575
|
if (t) return;
|
|
@@ -1538,24 +1578,24 @@ function Nr(e) {
|
|
|
1538
1578
|
t = !0;
|
|
1539
1579
|
return;
|
|
1540
1580
|
}
|
|
1541
|
-
let c = (e) =>
|
|
1581
|
+
let c = (e) => Mr.test(e.slice(Nr.exec(e)[0].length));
|
|
1542
1582
|
(c(s.lineAt(n).text) || c(e.newDoc.lineAt(i).text) || c(e.newDoc.lineAt(a).text)) && (t = !0);
|
|
1543
1583
|
}), t;
|
|
1544
1584
|
}
|
|
1545
|
-
var
|
|
1546
|
-
if (!e.docChanged || !
|
|
1547
|
-
let t =
|
|
1585
|
+
var Rr = e.transactionFilter.of((e) => {
|
|
1586
|
+
if (!e.docChanged || !Lr(e)) return e;
|
|
1587
|
+
let t = Ir(e.newDoc.toString());
|
|
1548
1588
|
return t.length === 0 ? e : [e, {
|
|
1549
1589
|
changes: t,
|
|
1550
1590
|
sequential: !0
|
|
1551
1591
|
}];
|
|
1552
|
-
}),
|
|
1592
|
+
}), zr = y.define(), K = b.define({
|
|
1553
1593
|
create: () => null,
|
|
1554
1594
|
update(e, t) {
|
|
1555
|
-
for (let e of t.effects) if (e.is(
|
|
1595
|
+
for (let e of t.effects) if (e.is(zr)) return e.value;
|
|
1556
1596
|
return e === null ? null : t.changes.mapPos(e);
|
|
1557
1597
|
}
|
|
1558
|
-
}),
|
|
1598
|
+
}), Br = class {
|
|
1559
1599
|
constructor(e) {
|
|
1560
1600
|
this.view = e, this.cursor = null, this.readPos = () => {
|
|
1561
1601
|
let e = this.view.state.field(K);
|
|
@@ -1585,7 +1625,7 @@ var Pr = e.transactionFilter.of((e) => {
|
|
|
1585
1625
|
destroy() {
|
|
1586
1626
|
this.remove();
|
|
1587
1627
|
}
|
|
1588
|
-
},
|
|
1628
|
+
}, Vr = u.fromClass(Br), Hr = class {
|
|
1589
1629
|
constructor(e) {
|
|
1590
1630
|
this.view = e, this.state = null, this.ghost = null, this.onMove = (e) => {
|
|
1591
1631
|
let t = this.state;
|
|
@@ -1599,11 +1639,11 @@ var Pr = e.transactionFilter.of((e) => {
|
|
|
1599
1639
|
x: e.clientX,
|
|
1600
1640
|
y: e.clientY
|
|
1601
1641
|
}) : null, r = n === null || n >= t.from && n <= t.to ? null : n;
|
|
1602
|
-
this.view.dispatch({ effects:
|
|
1642
|
+
this.view.dispatch({ effects: zr.of(r) });
|
|
1603
1643
|
}, this.onUp = (e) => {
|
|
1604
1644
|
this.removeListeners(), this.view.scrollDOM.style.cursor = "", this.clearGhost();
|
|
1605
1645
|
let t = this.state;
|
|
1606
|
-
if (this.state = null, this.view.dispatch({ effects:
|
|
1646
|
+
if (this.state = null, this.view.dispatch({ effects: zr.of(null) }), !t) return;
|
|
1607
1647
|
let n = this.view.posAtCoords({
|
|
1608
1648
|
x: e.clientX,
|
|
1609
1649
|
y: e.clientY
|
|
@@ -1685,27 +1725,27 @@ var Pr = e.transactionFilter.of((e) => {
|
|
|
1685
1725
|
destroy() {
|
|
1686
1726
|
this.removeListeners(), this.clearGhost();
|
|
1687
1727
|
}
|
|
1688
|
-
},
|
|
1728
|
+
}, Ur = u.fromClass(Hr, { eventHandlers: { mousedown(e) {
|
|
1689
1729
|
return this.start(e);
|
|
1690
|
-
} } }),
|
|
1730
|
+
} } }), Wr = [
|
|
1691
1731
|
K,
|
|
1692
|
-
|
|
1693
|
-
|
|
1694
|
-
],
|
|
1695
|
-
function
|
|
1732
|
+
Vr,
|
|
1733
|
+
Ur
|
|
1734
|
+
], Gr = 2, q = /* @__PURE__ */ new WeakMap(), Kr = o.define(), J = /* @__PURE__ */ new WeakMap();
|
|
1735
|
+
function qr(e, t) {
|
|
1696
1736
|
let n = e.coordsAtPos(t, -1), r = e.coordsAtPos(t, 1);
|
|
1697
1737
|
return n && r ? {
|
|
1698
1738
|
before: n,
|
|
1699
1739
|
after: r
|
|
1700
1740
|
} : null;
|
|
1701
1741
|
}
|
|
1702
|
-
var
|
|
1703
|
-
function
|
|
1704
|
-
return Math.abs(e.before.top - e.after.top) <
|
|
1742
|
+
var Jr = 8;
|
|
1743
|
+
function Yr(e) {
|
|
1744
|
+
return Math.abs(e.before.top - e.after.top) < Jr;
|
|
1705
1745
|
}
|
|
1706
|
-
function
|
|
1707
|
-
let r =
|
|
1708
|
-
if (r &&
|
|
1746
|
+
function Xr(e, t, n) {
|
|
1747
|
+
let r = qr(e, t);
|
|
1748
|
+
if (r && Yr(r) && Math.abs(r.before.left - r.after.left) <= Gr) return 1;
|
|
1709
1749
|
let i = q.get(e);
|
|
1710
1750
|
if (i && i.head === t) {
|
|
1711
1751
|
if (i.side !== "pointer") return i.side;
|
|
@@ -1714,7 +1754,7 @@ function Kr(e, t, n) {
|
|
|
1714
1754
|
}
|
|
1715
1755
|
return n && n < 0 ? -1 : 1;
|
|
1716
1756
|
}
|
|
1717
|
-
var
|
|
1757
|
+
var Zr = t.domEventHandlers({
|
|
1718
1758
|
mousedown(e, t) {
|
|
1719
1759
|
return J.set(t, {
|
|
1720
1760
|
x: e.clientX,
|
|
@@ -1738,14 +1778,14 @@ var qr = t.domEventHandlers({
|
|
|
1738
1778
|
function Y(e) {
|
|
1739
1779
|
return (t) => {
|
|
1740
1780
|
let { main: n } = t.state.selection;
|
|
1741
|
-
return !n.empty || !dt(t.state, n.head) || !
|
|
1781
|
+
return !n.empty || !dt(t.state, n.head) || !qr(t, n.head) || Xr(t, n.head, n.assoc) === e ? !1 : (t.dispatch({
|
|
1742
1782
|
selection: p.cursor(n.head, e),
|
|
1743
|
-
annotations:
|
|
1783
|
+
annotations: Kr.of(e),
|
|
1744
1784
|
userEvent: "select"
|
|
1745
1785
|
}), !0);
|
|
1746
1786
|
};
|
|
1747
1787
|
}
|
|
1748
|
-
var
|
|
1788
|
+
var Qr = v.high(m.of([
|
|
1749
1789
|
{
|
|
1750
1790
|
key: "ArrowLeft",
|
|
1751
1791
|
run: Y(-1)
|
|
@@ -1762,10 +1802,10 @@ var Jr = v.high(m.of([
|
|
|
1762
1802
|
key: "Delete",
|
|
1763
1803
|
run: Y(1)
|
|
1764
1804
|
}
|
|
1765
|
-
])),
|
|
1766
|
-
if (t !== n || !r || e.composing ||
|
|
1805
|
+
])), $r = /^[\s<?!.,:*_~)]/, ei = t.inputHandler.of((e, t, n, r) => {
|
|
1806
|
+
if (t !== n || !r || e.composing || $r.test(r)) return !1;
|
|
1767
1807
|
let { main: i } = e.state.selection;
|
|
1768
|
-
return !i.empty || i.head !== t || !ft(e.state, t) || !
|
|
1808
|
+
return !i.empty || i.head !== t || !ft(e.state, t) || !qr(e, t) || Xr(e, t, i.assoc) !== 1 ? !1 : (e.dispatch({
|
|
1769
1809
|
changes: {
|
|
1770
1810
|
from: t,
|
|
1771
1811
|
insert: ` ${r}`
|
|
@@ -1774,7 +1814,7 @@ var Jr = v.high(m.of([
|
|
|
1774
1814
|
userEvent: "input.type",
|
|
1775
1815
|
scrollIntoView: !0
|
|
1776
1816
|
}), !0);
|
|
1777
|
-
}),
|
|
1817
|
+
}), ti = [
|
|
1778
1818
|
i({
|
|
1779
1819
|
above: !0,
|
|
1780
1820
|
class: "cm-nldd-cursorLayer",
|
|
@@ -1782,7 +1822,7 @@ var Jr = v.high(m.of([
|
|
|
1782
1822
|
let { state: t } = e, n = c(t), r = [];
|
|
1783
1823
|
for (let i of t.selection.ranges) {
|
|
1784
1824
|
if (!i.empty && !n.drawRangeCursor) continue;
|
|
1785
|
-
let a = i === t.selection.main ? "cm-cursor cm-cursor-primary" : "cm-cursor cm-cursor-secondary", o = p.cursor(i.head,
|
|
1825
|
+
let a = i === t.selection.main ? "cm-cursor cm-cursor-primary" : "cm-cursor cm-cursor-secondary", o = p.cursor(i.head, Xr(e, i.head, i.assoc));
|
|
1786
1826
|
r.push(...l.forRange(e, a, o));
|
|
1787
1827
|
}
|
|
1788
1828
|
return r;
|
|
@@ -1794,7 +1834,7 @@ var Jr = v.high(m.of([
|
|
|
1794
1834
|
head: e.changes.mapPos(r.head)
|
|
1795
1835
|
} : null, a = e.startState.selection.main.head;
|
|
1796
1836
|
for (let t of e.transactions) {
|
|
1797
|
-
let r = t.annotation(
|
|
1837
|
+
let r = t.annotation(Kr);
|
|
1798
1838
|
if (r) i = {
|
|
1799
1839
|
head: n,
|
|
1800
1840
|
side: r
|
|
@@ -1822,33 +1862,13 @@ var Jr = v.high(m.of([
|
|
|
1822
1862
|
e.style.animationDuration = `${c(t.state).cursorBlinkRate}ms`;
|
|
1823
1863
|
}
|
|
1824
1864
|
}),
|
|
1825
|
-
|
|
1826
|
-
|
|
1827
|
-
|
|
1828
|
-
],
|
|
1829
|
-
function $r() {
|
|
1830
|
-
let n = 0, r = 0, i = () => (r = Date.now(), !1);
|
|
1831
|
-
return [t.domEventHandlers({
|
|
1832
|
-
focus: () => (n = Date.now(), !1),
|
|
1833
|
-
keydown: i,
|
|
1834
|
-
pointerdown: i,
|
|
1835
|
-
touchstart: i
|
|
1836
|
-
}), e.transactionFilter.of((e) => {
|
|
1837
|
-
if (e.docChanged || !e.selection || !e.isUserEvent("select") || e.isUserEvent("select.pointer") || Date.now() - n > Qr || r >= n) return e;
|
|
1838
|
-
let t = e.startState.selection.main, i = e.selection.main;
|
|
1839
|
-
if (t.from === 0 || i.from !== 0) return e;
|
|
1840
|
-
let a = i.anchor === 0 ? i.head : i.anchor;
|
|
1841
|
-
return a !== t.anchor && a !== t.head ? e : {
|
|
1842
|
-
selection: e.startState.selection,
|
|
1843
|
-
userEvent: "select"
|
|
1844
|
-
};
|
|
1845
|
-
})];
|
|
1846
|
-
}
|
|
1847
|
-
// src/components/inputs/text-editor/text-editor.tasks.ts
|
|
1848
|
-
var ei = g.define({ combine: (e) => e[0] ?? {
|
|
1865
|
+
Zr,
|
|
1866
|
+
Qr,
|
|
1867
|
+
ei
|
|
1868
|
+
], ni = g.define({ combine: (e) => e[0] ?? {
|
|
1849
1869
|
open: () => "Taak, open",
|
|
1850
1870
|
done: () => "Taak, afgerond"
|
|
1851
|
-
} }),
|
|
1871
|
+
} }), ri = class extends f {
|
|
1852
1872
|
constructor(e, t) {
|
|
1853
1873
|
super(), this.checked = e, this.label = t;
|
|
1854
1874
|
}
|
|
@@ -1867,11 +1887,11 @@ var ei = g.define({ combine: (e) => e[0] ?? {
|
|
|
1867
1887
|
return !1;
|
|
1868
1888
|
}
|
|
1869
1889
|
};
|
|
1870
|
-
function
|
|
1871
|
-
let n = e.facet(
|
|
1872
|
-
return d.replace({ widget: new
|
|
1890
|
+
function ii(e, t) {
|
|
1891
|
+
let n = e.facet(ni);
|
|
1892
|
+
return d.replace({ widget: new ri(t, t ? n.done() : n.open()) });
|
|
1873
1893
|
}
|
|
1874
|
-
function
|
|
1894
|
+
function ai(e) {
|
|
1875
1895
|
let t = [];
|
|
1876
1896
|
return n(e).iterate({ enter: (n) => {
|
|
1877
1897
|
if (n.name === "FencedCode" || n.name === "CodeBlock") return !1;
|
|
@@ -1882,8 +1902,8 @@ function ri(e) {
|
|
|
1882
1902
|
}), !1;
|
|
1883
1903
|
} }), t;
|
|
1884
1904
|
}
|
|
1885
|
-
function
|
|
1886
|
-
let r =
|
|
1905
|
+
function oi(e, t, n) {
|
|
1906
|
+
let r = ai(e).filter((e) => e.from <= n && e.to >= t);
|
|
1887
1907
|
if (r.length === 0) return null;
|
|
1888
1908
|
let i = r.some((e) => !e.checked);
|
|
1889
1909
|
return r.map((e) => ({
|
|
@@ -1892,56 +1912,56 @@ function ii(e, t, n) {
|
|
|
1892
1912
|
insert: i ? "x" : " "
|
|
1893
1913
|
}));
|
|
1894
1914
|
}
|
|
1895
|
-
function
|
|
1915
|
+
function si(e) {
|
|
1896
1916
|
let { state: t } = e;
|
|
1897
1917
|
if (t.readOnly) return !1;
|
|
1898
1918
|
let n = t.selection.ranges.flatMap((e) => {
|
|
1899
1919
|
let n = t.doc.lineAt(e.from).from, r = t.doc.lineAt(e.to).to;
|
|
1900
|
-
return
|
|
1920
|
+
return oi(t, n, r) ?? [];
|
|
1901
1921
|
});
|
|
1902
1922
|
return n.length !== 0 && (e.dispatch({
|
|
1903
1923
|
changes: n,
|
|
1904
1924
|
userEvent: "input.task"
|
|
1905
1925
|
}), !0);
|
|
1906
1926
|
}
|
|
1907
|
-
var
|
|
1927
|
+
var ci = t.domEventHandlers({ mousedown(e, t) {
|
|
1908
1928
|
let n = e.target, r = n?.closest?.(".cm-md-task-box") ?? n?.closest?.(".cm-md-listprefix")?.querySelector(":scope > .cm-md-task-box");
|
|
1909
1929
|
if (!r || e.button !== 0) return !1;
|
|
1910
1930
|
if (e.preventDefault(), t.state.readOnly) return !0;
|
|
1911
|
-
let i = t.posAtDOM(r), a =
|
|
1931
|
+
let i = t.posAtDOM(r), a = oi(t.state, i, i);
|
|
1912
1932
|
return a && t.dispatch({
|
|
1913
1933
|
changes: a,
|
|
1914
1934
|
userEvent: "input.task"
|
|
1915
1935
|
}), !0;
|
|
1916
1936
|
} });
|
|
1917
|
-
function
|
|
1937
|
+
function li(e) {
|
|
1918
1938
|
return [
|
|
1919
|
-
|
|
1920
|
-
|
|
1939
|
+
ni.of(e),
|
|
1940
|
+
ci,
|
|
1921
1941
|
v.high(m.of([{
|
|
1922
1942
|
key: "Mod-Enter",
|
|
1923
|
-
run:
|
|
1943
|
+
run: si
|
|
1924
1944
|
}]))
|
|
1925
1945
|
];
|
|
1926
1946
|
}
|
|
1927
1947
|
// src/components/inputs/text-editor/text-editor.hidden-syntax.ts
|
|
1928
|
-
var
|
|
1948
|
+
var ui = {
|
|
1929
1949
|
EmphasisMark: ["Emphasis", "StrongEmphasis"],
|
|
1930
1950
|
StrikethroughMark: ["Strikethrough"],
|
|
1931
1951
|
CodeMark: ["InlineCode"]
|
|
1932
|
-
}, X = d.replace({}),
|
|
1933
|
-
function
|
|
1934
|
-
return
|
|
1952
|
+
}, X = d.replace({}), di = d.mark({ class: "cm-md-bullet" }), fi = /^(\s*)[-*+]\s+\[[ xX]\](\s+)/, pi = 2.5, mi = {};
|
|
1953
|
+
function hi(e) {
|
|
1954
|
+
return mi[e] ?? (mi[e] = d.line({ attributes: { style: `text-indent:calc(${e} * var(--_text-editor-marker-advance) * -1) !important;padding-left:calc(${e} * var(--_text-editor-marker-advance)) !important` } }));
|
|
1935
1955
|
}
|
|
1936
|
-
var
|
|
1937
|
-
function
|
|
1956
|
+
var gi = d.mark({ class: "cm-md-ordinal" }), _i = {};
|
|
1957
|
+
function vi(e) {
|
|
1938
1958
|
let t = e.join(",");
|
|
1939
|
-
return
|
|
1959
|
+
return _i[t] ?? (_i[t] = d.line({
|
|
1940
1960
|
class: "cm-md-quote-line",
|
|
1941
1961
|
attributes: { style: `background-image:${e.map(() => "var(--_text-editor-quote-rule)").join(",")};background-position:${e.map((e) => `calc(${e} * var(--_text-editor-marker-advance)) 0`).join(",")}` }
|
|
1942
1962
|
}));
|
|
1943
1963
|
}
|
|
1944
|
-
var
|
|
1964
|
+
var yi = d.mark({ class: "cm-md-quote-mark-hidden" }), bi = d.mark({ class: "cm-md-quote-gap" }), xi = d.mark({ class: "cm-md-code-bare" }), Si = class extends f {
|
|
1945
1965
|
toDOM() {
|
|
1946
1966
|
let e = document.createElement("span");
|
|
1947
1967
|
return e.className = "cm-md-rule", e.setAttribute("aria-hidden", "true"), e;
|
|
@@ -1952,18 +1972,18 @@ var _i = d.mark({ class: "cm-md-quote-mark-hidden" }), vi = d.mark({ class: "cm-
|
|
|
1952
1972
|
ignoreEvent() {
|
|
1953
1973
|
return !1;
|
|
1954
1974
|
}
|
|
1955
|
-
},
|
|
1956
|
-
function
|
|
1975
|
+
}, Ci = d.replace({ widget: new Si() });
|
|
1976
|
+
function wi(e) {
|
|
1957
1977
|
let t = e;
|
|
1958
1978
|
for (let n = e.parent; n; n = n.parent) n.name === "Blockquote" && (t = n);
|
|
1959
1979
|
return t;
|
|
1960
1980
|
}
|
|
1961
|
-
var
|
|
1962
|
-
function
|
|
1981
|
+
var Ti = 2, Ei = {};
|
|
1982
|
+
function Di(e, t) {
|
|
1963
1983
|
var n;
|
|
1964
|
-
return
|
|
1984
|
+
return Ei[n = `${e},${t}`] ?? (Ei[n] = d.line({ attributes: { style: `text-indent:calc(${e} * var(--_text-editor-marker-advance) * -1) !important;padding-left:calc(${e + t} * var(--_text-editor-marker-advance)) !important` } }));
|
|
1965
1985
|
}
|
|
1966
|
-
function
|
|
1986
|
+
function Oi(e, t) {
|
|
1967
1987
|
let r = /* @__PURE__ */ new Map();
|
|
1968
1988
|
return n(e).iterate({
|
|
1969
1989
|
from: t.from,
|
|
@@ -1973,10 +1993,10 @@ function Ei(e, t) {
|
|
|
1973
1993
|
}
|
|
1974
1994
|
}), r;
|
|
1975
1995
|
}
|
|
1976
|
-
function
|
|
1996
|
+
function ki(e, t) {
|
|
1977
1997
|
for (let n = e.doc.lineAt(t.to);; n = e.doc.line(n.number - 1)) if (/[^\s>]/.test(n.text) || n.from <= t.from) return n.from;
|
|
1978
1998
|
}
|
|
1979
|
-
function
|
|
1999
|
+
function Ai(e, t) {
|
|
1980
2000
|
let n = [];
|
|
1981
2001
|
for (let r of t) {
|
|
1982
2002
|
let t = /^[ ]*/.exec(e.slice(r + 1))[0].length;
|
|
@@ -1984,7 +2004,7 @@ function Oi(e, t) {
|
|
|
1984
2004
|
}
|
|
1985
2005
|
return n;
|
|
1986
2006
|
}
|
|
1987
|
-
function
|
|
2007
|
+
function ji(e, t) {
|
|
1988
2008
|
let r = /* @__PURE__ */ new Map();
|
|
1989
2009
|
return n(e).iterate({
|
|
1990
2010
|
from: t.from,
|
|
@@ -1996,82 +2016,82 @@ function ki(e, t) {
|
|
|
1996
2016
|
}
|
|
1997
2017
|
}), r;
|
|
1998
2018
|
}
|
|
1999
|
-
function
|
|
2019
|
+
function Mi(e) {
|
|
2000
2020
|
return !e.readOnly && e.facet(t.editable);
|
|
2001
2021
|
}
|
|
2002
|
-
function
|
|
2003
|
-
return
|
|
2022
|
+
function Ni(e, t, n) {
|
|
2023
|
+
return Mi(e) && e.selection.ranges.some((e) => e.from <= n && e.to >= t);
|
|
2004
2024
|
}
|
|
2005
|
-
var
|
|
2025
|
+
var Pi = d.replace({ block: !0 }), Fi = d.replace({}), Ii = d.mark({ class: "cm-md-code-language" }), Li = /* @__PURE__ */ new Set([
|
|
2006
2026
|
"Document",
|
|
2007
2027
|
"Blockquote",
|
|
2008
2028
|
"BulletList",
|
|
2009
2029
|
"OrderedList",
|
|
2010
2030
|
"ListItem"
|
|
2011
2031
|
]);
|
|
2012
|
-
function
|
|
2032
|
+
function Ri(e) {
|
|
2013
2033
|
let t = [];
|
|
2014
2034
|
return n(e).iterate({ enter: (n) => {
|
|
2015
|
-
if (n.name !== "FencedCode") return
|
|
2016
|
-
if (
|
|
2035
|
+
if (n.name !== "FencedCode") return Li.has(n.name);
|
|
2036
|
+
if (Ni(e, n.from, n.to)) return !1;
|
|
2017
2037
|
let r = n.node.getChildren("CodeMark").map((t) => e.doc.lineAt(t.from)), i = e.doc.lineAt(n.from).number;
|
|
2018
2038
|
if (e.doc.lineAt(n.to).number - i + 1 <= r.length) return !1;
|
|
2019
2039
|
let a = n.node.getChild("CodeInfo"), o = n.node.getChild("CodeMark");
|
|
2020
|
-
for (let [e, n] of r.entries()) e === 0 ? (t.push(
|
|
2040
|
+
for (let [e, n] of r.entries()) e === 0 ? (t.push(Fi.range(o.from, a ? a.from : o.to)), a && t.push(Ii.range(a.from, a.to))) : t.push(Pi.range(n.from, n.to));
|
|
2021
2041
|
return !1;
|
|
2022
2042
|
} }), d.set(t, !0);
|
|
2023
2043
|
}
|
|
2024
|
-
function
|
|
2044
|
+
function zi(e) {
|
|
2025
2045
|
let t = [];
|
|
2026
2046
|
for (let r of e.selection.ranges) n(e).iterate({
|
|
2027
2047
|
from: r.from,
|
|
2028
2048
|
to: r.to,
|
|
2029
|
-
enter: (e) => (e.name === "FencedCode" && t.push(e.from), e.name !== "FencedCode" &&
|
|
2049
|
+
enter: (e) => (e.name === "FencedCode" && t.push(e.from), e.name !== "FencedCode" && Li.has(e.name))
|
|
2030
2050
|
});
|
|
2031
2051
|
return t.join(",");
|
|
2032
2052
|
}
|
|
2033
|
-
var
|
|
2034
|
-
create:
|
|
2035
|
-
update: (e, t) => t.docChanged || t.reconfigured || w(t.startState, t.state) || t.selection &&
|
|
2053
|
+
var Bi = b.define({
|
|
2054
|
+
create: Ri,
|
|
2055
|
+
update: (e, t) => t.docChanged || t.reconfigured || w(t.startState, t.state) || t.selection && zi(t.startState) !== zi(t.state) ? Ri(t.state) : e,
|
|
2036
2056
|
provide: (e) => t.decorations.from(e)
|
|
2037
2057
|
});
|
|
2038
|
-
function
|
|
2039
|
-
let { state: t } = e, r = (e, n) =>
|
|
2058
|
+
function Vi(e) {
|
|
2059
|
+
let { state: t } = e, r = (e, n) => Ni(t, e, n), i = [];
|
|
2040
2060
|
for (let { from: a, to: o } of e.visibleRanges) n(t).iterate({
|
|
2041
2061
|
from: a,
|
|
2042
2062
|
to: o,
|
|
2043
2063
|
enter: (e) => {
|
|
2044
2064
|
let n = e.node.parent;
|
|
2045
|
-
if (e.name === "HorizontalRule") return r(e.from, e.to) || i.push(
|
|
2065
|
+
if (e.name === "HorizontalRule") return r(e.from, e.to) || i.push(Ci.range(e.from, e.to)), !1;
|
|
2046
2066
|
if (e.name === "Blockquote") {
|
|
2047
|
-
let n =
|
|
2067
|
+
let n = wi(e.node);
|
|
2048
2068
|
if (n !== e.node || r(n.from, n.to)) return;
|
|
2049
|
-
let a =
|
|
2069
|
+
let a = ji(t, n), o = Oi(t, n), s = ki(t, n), c = [0];
|
|
2050
2070
|
Fe(t, n.from, n.to, (e) => {
|
|
2051
2071
|
if (e > s) return;
|
|
2052
|
-
let n = t.doc.lineAt(e), r = a.get(e) ?? [], l =
|
|
2072
|
+
let n = t.doc.lineAt(e), r = a.get(e) ?? [], l = Ai(n.text, r), u = l.reduce((e, [t, n]) => e + n - t, 0);
|
|
2053
2073
|
for (let [t, n] of l) i.push(X.range(e + t, e + n));
|
|
2054
2074
|
let d = r.filter((e) => /[^ \t]/.test(n.text.charAt(e + 1)));
|
|
2055
|
-
for (let t of d) i.push(
|
|
2075
|
+
for (let t of d) i.push(bi.range(e + t, e + t + 1));
|
|
2056
2076
|
let f = r.map((e) => e - l.filter(([t]) => t < e).reduce((e, [t, n]) => e + n - t, 0) + d.filter((t) => t < e).length), p = Math.max(1, o.get(e) ?? 0), m = Wt(n.text) - u + d.length, h = (f.length ? f : c).slice(0, p);
|
|
2057
|
-
for (; h.length < p;) h.push(h.length ? h[h.length - 1] +
|
|
2058
|
-
let g = f.length ? (p - f.length) *
|
|
2059
|
-
g > 0 ? i.push(
|
|
2077
|
+
for (; h.length < p;) h.push(h.length ? h[h.length - 1] + Ti : 0);
|
|
2078
|
+
let g = f.length ? (p - f.length) * Ti : h[h.length - 1] + Ti;
|
|
2079
|
+
g > 0 ? i.push(Di(m, g).range(e)) : (u || d.length) && i.push(hi(m).range(e)), i.push(vi(h).range(e)), c = h;
|
|
2060
2080
|
});
|
|
2061
2081
|
} else if (n) {
|
|
2062
2082
|
if (e.name === "QuoteMark") {
|
|
2063
|
-
let n =
|
|
2064
|
-
r(n.from, n.to) || i.push(
|
|
2083
|
+
let n = wi(e.node), a = t.sliceDoc(e.to, e.to + 1) === " " ? e.to + 1 : e.to;
|
|
2084
|
+
r(n.from, n.to) || i.push(yi.range(e.from, a));
|
|
2065
2085
|
} else if (e.name === "ListMark" && /^[-*+]$/.test(t.sliceDoc(e.from, e.to)) && /^[ \t]/.test(t.sliceDoc(e.to, e.to + 1))) {
|
|
2066
2086
|
let n = t.doc.lineAt(e.from);
|
|
2067
2087
|
if (r(n.from, n.to)) return;
|
|
2068
|
-
let a =
|
|
2088
|
+
let a = fi.exec(n.text), o = a && e.node.parent?.getChild("Task")?.getChild("TaskMarker");
|
|
2069
2089
|
if (a && o) {
|
|
2070
|
-
i.push(
|
|
2090
|
+
i.push(hi(a[1].length + pi + a[2].length).range(n.from), X.range(e.from, o.from), ii(t, /x/i.test(t.sliceDoc(o.from, o.to))).range(o.from, o.to));
|
|
2071
2091
|
return;
|
|
2072
2092
|
}
|
|
2073
|
-
i.push(
|
|
2074
|
-
} else if (e.name === "ListMark" && /^\d+[.)]$/.test(t.sliceDoc(e.from, e.to))) i.push(
|
|
2093
|
+
i.push(di.range(e.from, e.to));
|
|
2094
|
+
} else if (e.name === "ListMark" && /^\d+[.)]$/.test(t.sliceDoc(e.from, e.to))) i.push(gi.range(e.from, e.to));
|
|
2075
2095
|
else if (e.name === "HeaderMark" && n.name.startsWith("ATXHeading")) {
|
|
2076
2096
|
let a = t.sliceDoc(e.to, e.to + 1) === " " ? e.to + 1 : e.to;
|
|
2077
2097
|
r(n.from, n.to) || i.push(X.range(e.from, a));
|
|
@@ -2079,18 +2099,18 @@ function zi(e) {
|
|
|
2079
2099
|
let n = e.node.getChild("URL"), a = e.node.getChildren("LinkMark");
|
|
2080
2100
|
if (!n || a.length < 2 || D(t, e.node)) return;
|
|
2081
2101
|
r(e.from, e.to) || i.push(X.range(a[0].from, a[0].to), X.range(a[1].from, e.to));
|
|
2082
|
-
} else if (
|
|
2102
|
+
} else if (ui[e.name]?.includes(n.name) && !r(n.from, n.to) && (i.push(X.range(e.from, e.to)), e.name === "CodeMark" && e.from === n.from)) {
|
|
2083
2103
|
let t = n.lastChild;
|
|
2084
|
-
t && t.from > e.to && i.push(
|
|
2104
|
+
t && t.from > e.to && i.push(xi.range(e.to, t.from));
|
|
2085
2105
|
}
|
|
2086
2106
|
}
|
|
2087
2107
|
}
|
|
2088
2108
|
});
|
|
2089
2109
|
return d.set(i, !0);
|
|
2090
2110
|
}
|
|
2091
|
-
var
|
|
2111
|
+
var Hi = 3, Ui = class {
|
|
2092
2112
|
constructor(e) {
|
|
2093
|
-
this.view = e, this.layerObserver = new MutationObserver(() => this.mendSelection()), this.observing = !1, this.checked = "", this.mends = 0, this.decorations =
|
|
2113
|
+
this.view = e, this.layerObserver = new MutationObserver(() => this.mendSelection()), this.observing = !1, this.checked = "", this.mends = 0, this.decorations = Vi(e), queueMicrotask(() => this.observeLayer());
|
|
2094
2114
|
}
|
|
2095
2115
|
observeLayer() {
|
|
2096
2116
|
if (this.observing) return;
|
|
@@ -2102,11 +2122,11 @@ var Bi = 3, Vi = class {
|
|
|
2102
2122
|
}), this.observing = !0);
|
|
2103
2123
|
}
|
|
2104
2124
|
update(e) {
|
|
2105
|
-
this.observeLayer(), (e.docChanged || e.selectionSet || e.viewportChanged || w(e.startState, e.state) || e.transactions.some((e) => e.reconfigured)) && (this.decorations =
|
|
2125
|
+
this.observeLayer(), (e.docChanged || e.selectionSet || e.viewportChanged || w(e.startState, e.state) || e.transactions.some((e) => e.reconfigured)) && (this.decorations = Vi(e.view));
|
|
2106
2126
|
}
|
|
2107
2127
|
mendSelection() {
|
|
2108
2128
|
let { view: e } = this, { from: t, to: n, empty: r } = e.state.selection.main, i = `${t}-${n}-${e.state.doc.length}`;
|
|
2109
|
-
if (i !== this.checked && (this.checked = i, this.mends = 0), r || this.mends >=
|
|
2129
|
+
if (i !== this.checked && (this.checked = i, this.mends = 0), r || this.mends >= Hi) return;
|
|
2110
2130
|
let a = e.dom.querySelector(".cm-selectionLayer"), o = a ? [...a.querySelectorAll(".cm-selectionBackground")] : [];
|
|
2111
2131
|
if (o.length < 2) return;
|
|
2112
2132
|
let s = e.coordsAtPos(t, 1), c = e.coordsAtPos(n, -1);
|
|
@@ -2119,15 +2139,15 @@ var Bi = 3, Vi = class {
|
|
|
2119
2139
|
this.layerObserver.disconnect();
|
|
2120
2140
|
}
|
|
2121
2141
|
};
|
|
2122
|
-
function
|
|
2123
|
-
return [v.highest(u.fromClass(
|
|
2142
|
+
function Wi() {
|
|
2143
|
+
return [v.highest(u.fromClass(Ui, { decorations: (e) => e.decorations })), Bi];
|
|
2124
2144
|
}
|
|
2125
2145
|
// src/components/inputs/text-editor/text-editor.selection.ts
|
|
2126
|
-
function
|
|
2146
|
+
function Gi(e) {
|
|
2127
2147
|
let t = e.dom.querySelector(".cm-selectionLayer");
|
|
2128
2148
|
if (!t) return;
|
|
2129
2149
|
let n = e.defaultLineHeight, r = e.contentDOM, i = r.getBoundingClientRect().right - (parseFloat(getComputedStyle(r).paddingRight) || 0);
|
|
2130
|
-
|
|
2150
|
+
Ki([...t.querySelectorAll(".cm-selectionBackground")].map((t) => {
|
|
2131
2151
|
let r = t.getBoundingClientRect();
|
|
2132
2152
|
if (r.height >= n * 1.25) return {
|
|
2133
2153
|
piece: t,
|
|
@@ -2156,17 +2176,17 @@ function Ui(e) {
|
|
|
2156
2176
|
return Math.abs(c - s) > .25 && (e.style.top = `${c}px`, o.top = t.top + (c - s)), Math.abs(t.height - n) > .25 && (e.style.height = `${n}px`, o.height = n), o;
|
|
2157
2177
|
}), n);
|
|
2158
2178
|
}
|
|
2159
|
-
function
|
|
2179
|
+
function Ki(e, t) {
|
|
2160
2180
|
let n = [...e].sort((e, t) => e.top - t.top);
|
|
2161
2181
|
for (let e = 1; e < n.length; e++) {
|
|
2162
2182
|
let r = n[e - 1], i = n[e].top - (r.top + r.height);
|
|
2163
2183
|
i > .25 && i < t / 2 && (r.piece.style.height = `${r.height + i}px`);
|
|
2164
2184
|
}
|
|
2165
2185
|
}
|
|
2166
|
-
var
|
|
2186
|
+
var qi = class {
|
|
2167
2187
|
constructor(e) {
|
|
2168
2188
|
this.view = e, this.observer = new MutationObserver(() => {
|
|
2169
|
-
|
|
2189
|
+
Gi(this.view), this.observer.takeRecords();
|
|
2170
2190
|
}), this.observing = !1, queueMicrotask(() => this.observe());
|
|
2171
2191
|
}
|
|
2172
2192
|
update() {
|
|
@@ -2184,7 +2204,7 @@ var Gi = class {
|
|
|
2184
2204
|
destroy() {
|
|
2185
2205
|
this.observer.disconnect();
|
|
2186
2206
|
}
|
|
2187
|
-
},
|
|
2207
|
+
}, Ji = u.fromClass(qi), Yi = ie`
|
|
2188
2208
|
|
|
2189
2209
|
|
|
2190
2210
|
/* # Host */
|
|
@@ -3256,7 +3276,7 @@ var Gi = class {
|
|
|
3256
3276
|
}
|
|
3257
3277
|
`;
|
|
3258
3278
|
// src/components/inputs/text-editor/text-editor.template.ts
|
|
3259
|
-
function
|
|
3279
|
+
function Xi(e) {
|
|
3260
3280
|
return Te`<div class="text-editor"></div>`;
|
|
3261
3281
|
}
|
|
3262
3282
|
// src/components/inputs/text-editor/text-editor.code-copy.ts
|
|
@@ -3264,11 +3284,11 @@ var Z = g.define({ combine: (e) => e[0] ?? {
|
|
|
3264
3284
|
copy: () => "Kopieer",
|
|
3265
3285
|
success: () => "Gekopieerd",
|
|
3266
3286
|
failure: () => "Kopiëren mislukt"
|
|
3267
|
-
} }),
|
|
3268
|
-
function
|
|
3287
|
+
} }), Zi = 2e3;
|
|
3288
|
+
function Qi() {
|
|
3269
3289
|
return typeof window < "u" && window.isSecureContext && typeof navigator.clipboard?.writeText == "function";
|
|
3270
3290
|
}
|
|
3271
|
-
function
|
|
3291
|
+
function $i(e, t) {
|
|
3272
3292
|
let r = "";
|
|
3273
3293
|
return n(e).iterate({
|
|
3274
3294
|
from: t,
|
|
@@ -3285,7 +3305,7 @@ function Q(e, t, n) {
|
|
|
3285
3305
|
let r = n === "success" ? t.success() : n === "failure" ? t.failure() : t.copy();
|
|
3286
3306
|
e.querySelector(".cm-md-code-copy-text").textContent = r, e.nextElementSibling.textContent = n === "idle" ? "" : r;
|
|
3287
3307
|
}
|
|
3288
|
-
var
|
|
3308
|
+
var ea = /* @__PURE__ */ new WeakMap(), ta = class extends f {
|
|
3289
3309
|
constructor(e, t, n) {
|
|
3290
3310
|
super(), this.lineFrom = e, this.focusable = t, this.label = n;
|
|
3291
3311
|
}
|
|
@@ -3303,9 +3323,9 @@ var Qi = /* @__PURE__ */ new WeakMap(), $i = class extends f {
|
|
|
3303
3323
|
a.className = "cm-md-code-copy-status", a.setAttribute("role", "status"), n.append(r, i);
|
|
3304
3324
|
let o = document.createElement("span");
|
|
3305
3325
|
return o.className = "cm-md-code-copy-wrap", o.append(n, a), Q(n, t(), "idle"), n.addEventListener("mousedown", (e) => e.preventDefault()), n.addEventListener("click", async () => {
|
|
3306
|
-
clearTimeout(
|
|
3326
|
+
clearTimeout(ea.get(o));
|
|
3307
3327
|
try {
|
|
3308
|
-
await navigator.clipboard.writeText(
|
|
3328
|
+
await navigator.clipboard.writeText($i(e.state, e.state.doc.lineAt(e.posAtDOM(n)).from)), Q(n, t(), "success"), ea.set(o, setTimeout(() => Q(n, t(), "idle"), Zi));
|
|
3309
3329
|
} catch {
|
|
3310
3330
|
Q(n, t(), "failure");
|
|
3311
3331
|
}
|
|
@@ -3316,48 +3336,48 @@ var Qi = /* @__PURE__ */ new WeakMap(), $i = class extends f {
|
|
|
3316
3336
|
}), o;
|
|
3317
3337
|
}
|
|
3318
3338
|
destroy(e) {
|
|
3319
|
-
clearTimeout(
|
|
3339
|
+
clearTimeout(ea.get(e));
|
|
3320
3340
|
}
|
|
3321
3341
|
ignoreEvent() {
|
|
3322
3342
|
return !0;
|
|
3323
3343
|
}
|
|
3324
3344
|
};
|
|
3325
|
-
function
|
|
3326
|
-
if (!
|
|
3345
|
+
function na(e) {
|
|
3346
|
+
if (!Qi()) return d.none;
|
|
3327
3347
|
let t = [], r = e.readOnly, i = e.facet(Z).copy();
|
|
3328
3348
|
return n(e).iterate({ enter: (n) => {
|
|
3329
3349
|
if (n.name !== "FencedCode") return;
|
|
3330
3350
|
let a = e.doc.lineAt(n.from);
|
|
3331
|
-
return t.push(
|
|
3332
|
-
widget: new
|
|
3351
|
+
return t.push(ra.range(a.from), d.widget({
|
|
3352
|
+
widget: new ta(a.from, r, i),
|
|
3333
3353
|
side: 1
|
|
3334
3354
|
}).range(a.to)), !1;
|
|
3335
3355
|
} }), d.set(t, !0);
|
|
3336
3356
|
}
|
|
3337
|
-
var
|
|
3338
|
-
function
|
|
3357
|
+
var ra = d.line({ class: "cm-md-code-head" });
|
|
3358
|
+
function ia(e, t) {
|
|
3339
3359
|
let n = t.state.facet(Z);
|
|
3340
3360
|
for (let e of t.dom.querySelectorAll(".cm-md-code-copy[data-state=\"failure\"]")) Q(e, n, "idle");
|
|
3341
3361
|
return !1;
|
|
3342
3362
|
}
|
|
3343
|
-
var
|
|
3344
|
-
mousedown:
|
|
3345
|
-
keydown:
|
|
3363
|
+
var aa = t.domEventHandlers({
|
|
3364
|
+
mousedown: ia,
|
|
3365
|
+
keydown: ia
|
|
3346
3366
|
});
|
|
3347
|
-
function
|
|
3367
|
+
function oa(e) {
|
|
3348
3368
|
let n = b.define({
|
|
3349
|
-
create:
|
|
3350
|
-
update: (e, t) => t.docChanged || t.reconfigured || w(t.startState, t.state) ?
|
|
3369
|
+
create: na,
|
|
3370
|
+
update: (e, t) => t.docChanged || t.reconfigured || w(t.startState, t.state) ? na(t.state) : e,
|
|
3351
3371
|
provide: (e) => t.decorations.from(e)
|
|
3352
3372
|
});
|
|
3353
3373
|
return [
|
|
3354
3374
|
Z.of(e),
|
|
3355
3375
|
n,
|
|
3356
|
-
|
|
3376
|
+
aa
|
|
3357
3377
|
];
|
|
3358
3378
|
}
|
|
3359
3379
|
// src/components/inputs/text-editor/text-editor.ts
|
|
3360
|
-
var
|
|
3380
|
+
var sa = class extends he {
|
|
3361
3381
|
constructor(...e) {
|
|
3362
3382
|
super(...e), this.noSpellcheck = !1, this.wrap = !0, this.resize = "auto", this.embedded = !1, this.syntax = "visible", this.typeaheads = [], this._mentionTypeahead = ((e) => ({
|
|
3363
3383
|
trigger: "@",
|
|
@@ -3376,7 +3396,7 @@ var aa = class extends he {
|
|
|
3376
3396
|
n && (e.preventDefault(), e.stopPropagation(), this.view.dispatch({ selection: {
|
|
3377
3397
|
anchor: n.from,
|
|
3378
3398
|
head: n.to
|
|
3379
|
-
} }), this.view.focus(), e.button !== 0 || e.shiftKey || e.altKey || e.metaKey || e.ctrlKey || this.view.plugin(
|
|
3399
|
+
} }), this.view.focus(), e.button !== 0 || e.shiftKey || e.altKey || e.metaKey || e.ctrlKey || this.view.plugin(Ur)?.startFor(e, n.from, n.to));
|
|
3380
3400
|
}, this._onAnnotationBadgeClick = (e) => {
|
|
3381
3401
|
let t = e.target?.closest?.(".cm-annotation-badge");
|
|
3382
3402
|
if (!t) return;
|
|
@@ -3413,34 +3433,34 @@ var aa = class extends he {
|
|
|
3413
3433
|
re,
|
|
3414
3434
|
Xt,
|
|
3415
3435
|
fn(() => this._typeaheadLists(), (e) => this._onTypeaheadChosen(e), (e) => this._t(e ? "components.text-editor.typeahead-no-results-text" : "components.text-editor.typeahead-start-typing-text"), (e) => e === 1 ? this._t("components.text-editor.typeahead-one-result-text") : this._t("components.text-editor.typeahead-results-text", { count: e })),
|
|
3416
|
-
v.low(
|
|
3436
|
+
v.low(Rr),
|
|
3417
3437
|
rr((e, t) => this._t("components.text-editor.annotation-count-label", {
|
|
3418
3438
|
count: e,
|
|
3419
3439
|
noun: this._t(e === 1 ? "components.text-editor.annotation-singular-lowercase" : "components.text-editor.annotation-plural-lowercase"),
|
|
3420
3440
|
quote: t
|
|
3421
3441
|
})),
|
|
3422
3442
|
v.highest(ut((e) => this._t("components.text-editor.open-in-new-tab-label", { url: e }))),
|
|
3423
|
-
|
|
3443
|
+
oa({
|
|
3424
3444
|
copy: () => this._t("components.text-editor.copy-code-action"),
|
|
3425
3445
|
success: () => this._t("components.text-editor.code-copy-success-text"),
|
|
3426
3446
|
failure: () => this._t("components.text-editor.code-copy-failure-text")
|
|
3427
3447
|
}),
|
|
3428
|
-
|
|
3448
|
+
li({
|
|
3429
3449
|
open: () => this._t("components.text-editor.task-open-label"),
|
|
3430
3450
|
done: () => this._t("components.text-editor.task-done-label")
|
|
3431
3451
|
}),
|
|
3432
3452
|
this._historyCompartment.of(oe()),
|
|
3433
3453
|
r(),
|
|
3434
|
-
|
|
3435
|
-
|
|
3436
|
-
|
|
3454
|
+
Ji,
|
|
3455
|
+
ti,
|
|
3456
|
+
cr(),
|
|
3437
3457
|
a(),
|
|
3438
|
-
|
|
3439
|
-
|
|
3458
|
+
Wr,
|
|
3459
|
+
jr,
|
|
3440
3460
|
...this.inputExtensions(),
|
|
3441
3461
|
this._wrapCompartment.of(this.wrap ? t.lineWrapping : []),
|
|
3442
3462
|
this._spellcheckCompartment.of(this.noSpellcheck ? [] : Tn()),
|
|
3443
|
-
this._syntaxCompartment.of(this.syntax === "hidden" ?
|
|
3463
|
+
this._syntaxCompartment.of(this.syntax === "hidden" ? Wi() : []),
|
|
3444
3464
|
t.updateListener.of((e) => {
|
|
3445
3465
|
(e.docChanged || e.selectionSet) && this._emitState();
|
|
3446
3466
|
}),
|
|
@@ -3491,7 +3511,7 @@ var aa = class extends he {
|
|
|
3491
3511
|
updated(e) {
|
|
3492
3512
|
if (super.updated(e), import.meta.env?.DEV && e.has("typeaheads") && ke(this, "invalid-typeahead-query", en(this.typeaheads)), !this.view) return;
|
|
3493
3513
|
let n = this._labelSignature();
|
|
3494
|
-
n !== this._labels && (this._labels !== null && this.view.dispatch({ effects: Ae.of(null) }), this._labels = n), e.has("wrap") && this.reconfigure(this._wrapCompartment, this.wrap ? t.lineWrapping : []), e.has("syntax") && this.reconfigure(this._syntaxCompartment, this.syntax === "hidden" ?
|
|
3514
|
+
n !== this._labels && (this._labels !== null && this.view.dispatch({ effects: Ae.of(null) }), this._labels = n), e.has("wrap") && this.reconfigure(this._wrapCompartment, this.wrap ? t.lineWrapping : []), e.has("syntax") && this.reconfigure(this._syntaxCompartment, this.syntax === "hidden" ? Wi() : []), e.has("noSpellcheck") && (this.reconfigure(this._spellcheckCompartment, this.noSpellcheck ? [] : Tn()), this._redrawForSpellcheck()), (e.has("annotations") || e.has("annotatable")) && this._syncAnnotations();
|
|
3495
3515
|
}
|
|
3496
3516
|
_syncAnnotations() {
|
|
3497
3517
|
this.view?.dispatch({
|
|
@@ -3512,34 +3532,34 @@ var aa = class extends he {
|
|
|
3512
3532
|
this.view && V(this.view, "~~", "Strikethrough");
|
|
3513
3533
|
}
|
|
3514
3534
|
toggleHeading(e) {
|
|
3515
|
-
this.view &&
|
|
3535
|
+
this.view && mr(this.view, e);
|
|
3516
3536
|
}
|
|
3517
3537
|
setHeading(e) {
|
|
3518
|
-
this.view &&
|
|
3538
|
+
this.view && hr(this.view, e);
|
|
3519
3539
|
}
|
|
3520
3540
|
toggleBulletList() {
|
|
3521
|
-
this.view &&
|
|
3541
|
+
this.view && gr(this.view);
|
|
3522
3542
|
}
|
|
3523
3543
|
toggleTaskList() {
|
|
3524
|
-
this.view &&
|
|
3544
|
+
this.view && _r(this.view);
|
|
3525
3545
|
}
|
|
3526
3546
|
setList(e) {
|
|
3527
|
-
this.view &&
|
|
3547
|
+
this.view && yr(this.view, e);
|
|
3528
3548
|
}
|
|
3529
3549
|
toggleQuote() {
|
|
3530
|
-
this.view &&
|
|
3550
|
+
this.view && Er(this.view);
|
|
3531
3551
|
}
|
|
3532
3552
|
toggleLink(e = "") {
|
|
3533
|
-
this.view &&
|
|
3553
|
+
this.view && Or(this.view, e);
|
|
3534
3554
|
}
|
|
3535
3555
|
toggleCodeBlock() {
|
|
3536
|
-
this.view &&
|
|
3556
|
+
this.view && kr(this.view);
|
|
3537
3557
|
}
|
|
3538
3558
|
indent() {
|
|
3539
|
-
this.view &&
|
|
3559
|
+
this.view && xr(this.view);
|
|
3540
3560
|
}
|
|
3541
3561
|
outdent() {
|
|
3542
|
-
this.view &&
|
|
3562
|
+
this.view && Sr(this.view);
|
|
3543
3563
|
}
|
|
3544
3564
|
undo() {
|
|
3545
3565
|
this.view && (ge(this.view), this.view.focus());
|
|
@@ -3665,10 +3685,10 @@ var aa = class extends he {
|
|
|
3665
3685
|
}
|
|
3666
3686
|
getState() {
|
|
3667
3687
|
return {
|
|
3668
|
-
active: this.view ?
|
|
3688
|
+
active: this.view ? Ar(this.view) : { ...lr },
|
|
3669
3689
|
empty: !this.view || this.view.state.selection.main.empty,
|
|
3670
|
-
canIndent: this.view ?
|
|
3671
|
-
canOutdent: this.view ?
|
|
3690
|
+
canIndent: this.view ? Cr(this.view) : !1,
|
|
3691
|
+
canOutdent: this.view ? wr(this.view) : !1,
|
|
3672
3692
|
canUndo: this.view ? ce(this.view.state) > 0 : !1,
|
|
3673
3693
|
canRedo: this.view ? ue(this.view.state) > 0 : !1
|
|
3674
3694
|
};
|
|
@@ -3743,9 +3763,9 @@ var aa = class extends he {
|
|
|
3743
3763
|
}));
|
|
3744
3764
|
}
|
|
3745
3765
|
render() {
|
|
3746
|
-
return
|
|
3766
|
+
return Xi(this);
|
|
3747
3767
|
}
|
|
3748
|
-
}, $ = (
|
|
3768
|
+
}, $ = (sa.styles = Yi, sa);
|
|
3749
3769
|
S([x({
|
|
3750
3770
|
type: Boolean,
|
|
3751
3771
|
reflect: !0,
|