@nldd/design-system 0.22.0 → 0.24.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 +5 -3
- package/custom-elements.json +1268 -204
- 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 +19 -0
- package/dist/assets/styles/shadow-resets.d.ts.map +1 -1
- package/dist/assets/styles/shadow-resets.js +35 -0
- package/dist/assets/styles/shadow-resets.js.map +1 -1
- package/dist/cdn/autoloader.js +137 -136
- package/dist/cdn/chunks/{activity-indicator-BTnpfsIt.js → activity-indicator-DWBG1Csi.js} +8 -7
- package/dist/cdn/chunks/{avatar--5c37XVW.js → avatar-CRZLseMs.js} +20 -19
- package/dist/cdn/chunks/{avatar-group-BNfmY5CU.js → avatar-group-coYbMhot.js} +17 -16
- package/dist/cdn/chunks/{badge-YAvIVoRy.js → badge-DAXG-uIw.js} +13 -10
- package/dist/cdn/chunks/{banner-BpCK57yd.js → banner-BbR0rebp.js} +9 -7
- package/dist/cdn/chunks/{bar-split-view-BgYo4YJw.js → bar-split-view-DoklVwuj.js} +27 -24
- package/dist/cdn/chunks/{blockquote-BOu-31f3.js → blockquote-DfIl4wTC.js} +4 -3
- package/dist/cdn/chunks/{box-YipFNjJh.js → box-CXICi_Gs.js} +12 -10
- package/dist/cdn/chunks/{breadcrumbs-DSVAVozW.js → breadcrumbs-CVoNqsU2.js} +13 -8
- package/dist/cdn/chunks/{button-XtEOeBEq.js → button-DWzqSerk.js} +101 -75
- package/dist/cdn/chunks/{button-bar-D1i71rRQ.js → button-bar-DwFLuumP.js} +15 -11
- package/dist/cdn/chunks/{button-group-un5QDbqK.js → button-group-D-nEY7Wz.js} +2 -2
- package/dist/cdn/chunks/{card-D5yTAdts.js → card-CIVLEFhz.js} +24 -22
- package/dist/cdn/chunks/{cell-BbtB9C2Z.js → cell-C79LmCOU.js} +6 -6
- package/dist/cdn/chunks/{checkbox-oYX8b8iy.js → checkbox-BQepKdVv.js} +25 -20
- package/dist/cdn/chunks/{checkbox-field-Cmc6Aagc.js → checkbox-field-ColaTYKE.js} +9 -7
- package/dist/cdn/chunks/{class-map-DKd4N9Wz.js → class-map-9VgiG_zt.js} +1 -1
- package/dist/cdn/chunks/{code-editor-BZwpTu4O.js → code-editor-FNmK9xRx.js} +7 -6
- package/dist/cdn/chunks/{code-viewer-C4XDF03i.js → code-viewer-C5whEGq6.js} +147 -102
- package/dist/cdn/chunks/{codemirror-input-Sen5OmAF.js → codemirror-input-SKGbh9LP.js} +4 -4
- package/dist/cdn/chunks/{collection-BnZstW7U.js → collection-Dq6Z66UX.js} +8 -8
- package/dist/cdn/chunks/{combo-box-BpaGeypm.js → combo-box-CoOSPICd.js} +17 -8
- package/dist/cdn/chunks/{container-DuV5d7Eb.js → container-CtwuWO3a.js} +14 -6
- package/dist/cdn/chunks/{custom-element-DsfOrnOD.js → custom-element-BVKCDhPV.js} +1 -1
- package/dist/cdn/chunks/{date-field-FactdbhC.js → date-field-CqnGM7GR.js} +24 -14
- package/dist/cdn/chunks/{date-field.i18n-BTzc0E9a.js → date-field.i18n-BqIx3eyr.js} +1 -1
- package/dist/cdn/chunks/{date-picker-BtlBTKvh.js → date-picker-C2iGHw2u.js} +18 -10
- package/dist/cdn/chunks/{decorate-CJCfz_g6.js → decorate-CK3hc5C5.js} +1 -1
- package/dist/cdn/chunks/{described-by-mixin-CPultP0p.js → described-by-mixin-DGAPpEdM.js} +6 -3
- package/dist/cdn/chunks/{description-cell-DFc0_dWI.js → description-cell-B08Ma5EJ.js} +9 -8
- package/dist/cdn/chunks/{dev-checks-DGwOQoR3.js → dev-checks-BwWYGVrJ.js} +175 -72
- package/dist/cdn/chunks/{dist-BUqkX3a-.js → dist-B2YK3eT2.js} +3 -3
- package/dist/cdn/chunks/{dist-D-9cbJjq.js → dist-B4vELUJW.js} +3 -3
- package/dist/cdn/chunks/{dist-CtdONv3x.js → dist-B8vBP_Xz.js} +1 -1
- package/dist/cdn/chunks/{dist-ClsiJytN.js → dist-BThgPtD7.js} +2 -2
- package/dist/cdn/chunks/{dist-BuquxOFD.js → dist-CKeY28-M.js} +2 -2
- package/dist/cdn/chunks/{dist-CxdoWiwX.js → dist-CQ5kBaGZ.js} +1 -1
- package/dist/cdn/chunks/{dist-Bmb_H8Sp.js → dist-CWN_qz9z.js} +1 -1
- package/dist/cdn/chunks/{dist-6xUfJUfa.js → dist-D1t9kkjo.js} +1 -1
- package/dist/cdn/chunks/{dist-BWSiWu4t.js → dist-DP5DQSlX.js} +2 -2
- package/dist/cdn/chunks/{dist-CM5DHMaz.js → dist-DzcXDSFC.js} +1 -1
- package/dist/cdn/chunks/{dist-AQ1Gehx3.js → dist-jAq440y0.js} +1 -1
- package/dist/cdn/chunks/{divider-CZ8Hn1om.js → divider-KgHxRNV9.js} +2 -2
- package/dist/cdn/chunks/{document-tab-bar-BBnyyiEA.js → document-tab-bar-CTIcETDr.js} +27 -13
- package/dist/cdn/chunks/{dropdown-Bbbgy8mT.js → dropdown-BhrCadMW.js} +10 -5
- package/dist/cdn/chunks/{file-field-CddG_e0F.js → file-field-DzH4Yrj5.js} +30 -12
- package/dist/cdn/chunks/{form-DIIMIq0q.js → form-CzmdlZ0i.js} +1 -1
- package/dist/cdn/chunks/{form-actions-BICy0Sgp.js → form-actions-CDQW1p3w.js} +2 -2
- package/dist/cdn/chunks/{form-field-Bnei2EQO.js → form-field-D_qJpPAS.js} +15 -8
- package/dist/cdn/chunks/{form-section-Cv0tr0pm.js → form-section-Jy5b5Qtp.js} +1 -1
- package/dist/cdn/chunks/{full-bleed-section-LOfo_1Aj.js → full-bleed-section-BDIuXLGU.js} +3 -3
- package/dist/cdn/chunks/{hero-BABWpYs5.js → hero-BPHFHrUT.js} +106 -97
- package/dist/cdn/chunks/{icon-D5dJm51v.js → icon-BE2ojX0S.js} +52 -29
- package/dist/cdn/chunks/{icon-button-DtxIRaQy.js → icon-button-CFMhdG1B.js} +85 -63
- package/dist/cdn/chunks/{icon-cell-Be5awZV7.js → icon-cell-CQ-e1GB2.js} +11 -11
- package/dist/cdn/chunks/{identity-B4KtbT8h.js → identity-7wQDjeGb.js} +7 -5
- package/dist/cdn/chunks/{if-defined-BirFs11D.js → if-defined-G1P3HUvi.js} +1 -1
- package/dist/cdn/chunks/{image-BpVEir6U.js → image-QPbmNKvZ.js} +44 -34
- package/dist/cdn/chunks/{inline-dialog-B627fZmT.js → inline-dialog-DP3AXfJV.js} +9 -6
- package/dist/cdn/chunks/interest-controller-Ban-3NrX.js +117 -0
- package/dist/cdn/chunks/{just-in-time-education-Nw5ido3N.js → just-in-time-education-DnaF_sLc.js} +8 -5
- package/dist/cdn/chunks/{kanban-column-v5rfv8fN.js → kanban-column-B_Jrut9s.js} +6 -4
- package/dist/cdn/chunks/{kanban-9HGexCJx.js → kanban-o2GMLjsq.js} +5 -5
- package/dist/cdn/chunks/{keyboard-shortcut-CVNilmgr.js → keyboard-shortcut-Dm366Dra.js} +8 -6
- package/dist/cdn/chunks/{languages-Ce4h7R1-.js → languages-Dlh_tbAH.js} +12 -12
- package/dist/cdn/chunks/{link-BQQwp17j.js → link-DhTY3Sjh.js} +41 -23
- package/dist/cdn/chunks/{link-group-CQhEcQIV.js → link-group-YuwD1m6-.js} +2 -2
- package/dist/cdn/chunks/{list-DDxjOe38.js → list-Cdvib5Y-.js} +48 -13
- package/dist/cdn/chunks/{list-item-segment-CnGHU6G-.js → list-item-segment-F3av0jxz.js} +14 -12
- package/dist/cdn/chunks/{list-item-Da6-fFDs.js → list-item-vO3GwQWa.js} +110 -103
- package/dist/cdn/chunks/{menu-bar-MPNB2ovW.js → menu-bar-imOaTlGm.js} +6 -6
- package/dist/cdn/chunks/{menu-bar-item-BuZ-VvnR.js → menu-bar-item-ChQbM1ER.js} +7 -6
- package/dist/cdn/chunks/{menu-uOExHS1i.js → menu-dTVlz6mn.js} +35 -18
- package/dist/cdn/chunks/{menu-divider-CcOTQxx5.js → menu-divider-D7s6f49y.js} +3 -3
- package/dist/cdn/chunks/{menu-group-DGgbYejF.js → menu-group-BcEmoNvL.js} +4 -4
- package/dist/cdn/chunks/{menu-item-DgM4RmyD.js → menu-item-BGlVTfe6.js} +34 -32
- package/dist/cdn/chunks/menu-item.i18n-CKUJBOeE.js +7 -0
- package/dist/cdn/chunks/{menu.template-DkbfQRQ6.js → menu.template-syBthjEV.js} +150 -90
- package/dist/cdn/chunks/{modal-dialog-BRYfJ7Vf.js → modal-dialog-BBK25tjm.js} +27 -26
- package/dist/cdn/chunks/{multi-line-text-field-CWOPY6sF.js → multi-line-text-field-DuL6nLG_.js} +9 -5
- package/dist/cdn/chunks/{navigation-split-view-BRiplUXM.js → navigation-split-view-CdZNbX91.js} +50 -69
- package/dist/cdn/chunks/nl.generated-CgRVSEh6.js +116 -0
- package/dist/cdn/chunks/{notification-DhnzrUQp.js → notification-Dwhfnjb2.js} +9 -6
- package/dist/cdn/chunks/{number-field-DgRrXCiv.js → number-field-Dl4zZvVe.js} +13 -7
- package/dist/cdn/chunks/{one-half-one-half-section-D7tzDw-p.js → one-half-one-half-section-BJxLZfiK.js} +3 -3
- package/dist/cdn/chunks/{one-third-two-thirds-section-E8xOdcsf.js → one-third-two-thirds-section-CARh_hdH.js} +3 -3
- package/dist/cdn/chunks/{one-time-code-field-BoJdVvNN.js → one-time-code-field-FaxqiiD6.js} +10 -6
- package/dist/cdn/chunks/{page-DDm193hL.js → page-Cc5bb6VU.js} +35 -32
- package/dist/cdn/chunks/{page-footer-32oZSwvG.js → page-footer-Df1cS-ks.js} +45 -42
- package/dist/cdn/chunks/{page-section-mixin-CmsW9L1S.js → page-section-mixin-BzgAU2sX.js} +38 -40
- package/dist/cdn/chunks/{pagination-Co1BlFTP.js → pagination-BcnkrWV_.js} +13 -6
- package/dist/cdn/chunks/{password-field-BxKQRE4K.js → password-field-CeIJm406.js} +11 -7
- package/dist/cdn/chunks/{popover-DpCE_XjR.js → popover-BIMt3aqW.js} +75 -49
- package/dist/cdn/chunks/{progress-bar-5WAVf0HV.js → progress-bar-C9CWhkse.js} +11 -9
- package/dist/cdn/chunks/{progress-circle-D7Mn6WZv.js → progress-circle-CJL1aFbS.js} +9 -7
- package/dist/cdn/chunks/{radio-button-pd8lwtEO.js → radio-button-DKo5kdLW.js} +16 -16
- package/dist/cdn/chunks/{radio-button-field-Dxnahic-.js → radio-button-field-DPZajMnT.js} +9 -7
- package/dist/cdn/chunks/{radio-button-group-D_4lI2U-.js → radio-button-group-BBZhU3bn.js} +3 -3
- package/dist/cdn/chunks/{render-marked-CAskRZMx.js → render-marked-Bkoq5vNH.js} +1 -1
- package/dist/cdn/chunks/{reorder-handle-cell-BL8ECfi5.js → reorder-handle-cell-CEW8Cg1r.js} +5 -4
- package/dist/cdn/chunks/{reorder-handle-mixin-BDRPLv58.js → reorder-handle-mixin-BkksqjmK.js} +2 -2
- package/dist/cdn/chunks/{repeat-D5W3dDCY.js → repeat-C5V9E9Ta.js} +1 -1
- package/dist/cdn/chunks/{rich-text-diNxNddp.js → rich-text-DEFr_Niu.js} +4 -7
- package/dist/cdn/chunks/{row-header-mixin-Dj6t4nYI.js → row-header-mixin-BSORP0i7.js} +2 -2
- package/dist/cdn/chunks/scroll-fade-B7kZVxmh.js +41 -0
- package/dist/cdn/chunks/{search-field-CLuQnvBU.js → search-field-Dr0MLD_z.js} +17 -9
- package/dist/cdn/chunks/{segmented-control-B0z5J7r9.js → segmented-control-aOIkoklF.js} +12 -6
- package/dist/cdn/chunks/shadow-resets-CRBumQjX.js +28 -0
- package/dist/cdn/chunks/{sheet-CKfFzUCu.js → sheet-BCPE_pDl.js} +38 -36
- package/dist/cdn/chunks/{shell-CglPjEWB.js → shell-ZCsqW56P.js} +24 -21
- package/dist/cdn/chunks/{side-by-side-split-view-DU4ODEBX.js → side-by-side-split-view-BWIyZmzo.js} +22 -19
- package/dist/cdn/chunks/{sidebar-section-DzJw-MHs.js → sidebar-section-Di3mQROc.js} +23 -18
- package/dist/cdn/chunks/{simple-section-BfhBYqMa.js → simple-section-sOkNMsbz.js} +3 -3
- package/dist/cdn/chunks/{skip-link-DwVvD9XL.js → skip-link-mcskOuFr.js} +14 -8
- package/dist/cdn/chunks/skip-link.i18n-B7pVqo5u.js +6 -0
- package/dist/cdn/chunks/{slider-BBxKxr-H.js → slider-CkPk4lBA.js} +11 -9
- package/dist/cdn/chunks/{spacer-CqK1xVh2.js → spacer-RB_KBaTr.js} +2 -2
- package/dist/cdn/chunks/{spacer-cell-DS7Tphdm.js → spacer-cell-V1UaaPcO.js} +4 -4
- package/dist/cdn/chunks/{split-button-Brh7EmIA.js → split-button-BUEhYiI5.js} +19 -15
- package/dist/cdn/chunks/{split-view-divider-Bh3XLobi.js → split-view-divider-Rmb9cG9K.js} +2 -2
- package/dist/cdn/chunks/{split-view-pane-BPKlAR4d.js → split-view-pane-DQRZ9tE0.js} +23 -20
- package/dist/cdn/chunks/{stacked-split-view-SrIHWkKW.js → stacked-split-view-BaeQhWmd.js} +22 -19
- package/dist/cdn/chunks/{static-html-OvWm15yg.js → static-html-CAczcbUD.js} +1 -1
- package/dist/cdn/chunks/{status-bar-IqyLnoMx.js → status-bar-D3-IYqUp.js} +5 -4
- package/dist/cdn/chunks/{step-bar-DltkU-AG.js → step-bar-BfNXoHds.js} +13 -6
- package/dist/cdn/chunks/{step-cell-BHW3t6nn.js → step-cell-BN2ZKsQ4.js} +9 -6
- package/dist/cdn/chunks/{stepper-DMlk7A-Y.js → stepper-DuPRMxBx.js} +6 -6
- package/dist/cdn/chunks/{style-map-CNYX1L3t.js → style-map-LFqo5rE_.js} +1 -1
- package/dist/cdn/chunks/{swatch-picker-BAKkJFgt.js → swatch-picker-BVKCFzpO.js} +6 -5
- package/dist/cdn/chunks/{switch-B3d_1Leh.js → switch-CgUZ0WlQ.js} +11 -10
- package/dist/cdn/chunks/{switch-field-BXJj1PHC.js → switch-field-B4c8-L61.js} +9 -7
- package/dist/cdn/chunks/{tab-bar-C7T0XL0u.js → tab-bar-D-1g8fdF.js} +14 -8
- package/dist/cdn/chunks/{table-CVyPmXfX.js → table-jrJ4EJpq.js} +5 -5
- package/dist/cdn/chunks/{tag-KdbJbRcK.js → tag-JYwa5l-A.js} +11 -6
- package/dist/cdn/chunks/term-NyLmTWnF.js +214 -0
- package/dist/cdn/chunks/term.i18n-DVEJeOb6.js +3 -0
- package/dist/cdn/chunks/{text-cell-CUH5Tf5F.js → text-cell-BXLFcD_e.js} +21 -18
- package/dist/cdn/chunks/{text-editor-Bsfygq28.js → text-editor-rLc5H6kD.js} +284 -238
- package/dist/cdn/chunks/{text-field-BQxQe0ch.js → text-field-B7M4VwCe.js} +14 -5
- package/dist/cdn/chunks/{text-lQLJJw1m.js → text-gy-gkfSS.js} +19 -34
- package/dist/cdn/chunks/{time-field-kdMQ7qaa.js → time-field-BtQRsvpR.js} +128 -98
- package/dist/cdn/chunks/{time-field.i18n-CLH5vmS7.js → time-field.i18n-BM6qGbmN.js} +0 -1
- package/dist/cdn/chunks/{time-picker-T1bZ4zxP.js → time-picker-BKLwibb9.js} +13 -7
- package/dist/cdn/chunks/{title-yXmufzsm.js → title-DLD3RW7l.js} +15 -34
- package/dist/cdn/chunks/{title-cell-CyJr9OiV.js → title-cell-BCUBuKIO.js} +22 -19
- package/dist/cdn/chunks/{toggle-button-DiZaFEAk.js → toggle-button-Etx8hKQS.js} +13 -7
- package/dist/cdn/chunks/{toggle-button-group-DRai7q0C.js → toggle-button-group-Ph1kcTqj.js} +2 -2
- package/dist/cdn/chunks/{token-C6EudIjw.js → token-BQtumlDT.js} +9 -7
- package/dist/cdn/chunks/{token-field-OCw3wLIW.js → token-field-BrV2RZHi.js} +19 -11
- package/dist/cdn/chunks/{toolbar-item-CI3OVQuq.js → toolbar-item-x-y_AxHu.js} +3 -3
- package/dist/cdn/chunks/{toolbar-title-xvfrEhvQ.js → toolbar-title-g47zMdG2.js} +4 -4
- package/dist/cdn/chunks/{toolbar-K5UY_y15.js → toolbar-w_2rxcNu.js} +8 -8
- package/dist/cdn/chunks/{toolbar.styles-BBj5j7Iq.js → toolbar.styles-EP0gu8kg.js} +7 -3
- package/dist/cdn/chunks/{tooltip-B6XDYQNn.js → tooltip-D47hF_iD.js} +49 -36
- package/dist/cdn/chunks/{top-navigation-bar-D7JkgCQi.js → top-navigation-bar-DO7JsQVs.js} +19 -17
- package/dist/cdn/chunks/{top-title-bar-BMSTl1Z7.js → top-title-bar-CVEOoXhu.js} +8 -6
- package/dist/cdn/chunks/translations-eWWV6weF.js +14 -0
- package/dist/cdn/chunks/{two-thirds-one-third-section-Cc1Mh9TT.js → two-thirds-one-third-section-x3dadNwz.js} +3 -3
- package/dist/cdn/chunks/{validation-list-xF6yTpz8.js → validation-list-krcQHzP3.js} +4 -3
- package/dist/cdn/chunks/{visibility-mixin-LkgEnUqn.js → visibility-mixin-CXBa-fVi.js} +2 -2
- package/dist/cdn/chunks/{visually-hidden-CMo9yGtA.js → visually-hidden-Cd1_FE1J.js} +2 -2
- package/dist/cdn/chunks/{window-CclQ8SHn.js → window-JbrLuRjR.js} +40 -39
- package/dist/cdn/chunks/{with-translations-DdCPcavT.js → with-translations-DhRk5rH-.js} +3 -3
- package/dist/components/actions/button/button.d.ts +11 -2
- package/dist/components/actions/button/button.d.ts.map +1 -1
- package/dist/components/actions/button/button.js +17 -1
- 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 +45 -26
- package/dist/components/actions/button/button.styles.js.map +1 -1
- package/dist/components/actions/button/button.template.js +2 -2
- package/dist/components/actions/button/button.template.js.map +1 -1
- package/dist/components/actions/button-bar/button-bar.d.ts +1 -1
- package/dist/components/actions/button-bar/button-bar.js +1 -1
- package/dist/components/actions/button-bar/button-bar.styles.d.ts.map +1 -1
- package/dist/components/actions/button-bar/button-bar.styles.js +12 -8
- package/dist/components/actions/button-bar/button-bar.styles.js.map +1 -1
- package/dist/components/actions/icon-button/icon-button.d.ts +10 -2
- package/dist/components/actions/icon-button/icon-button.d.ts.map +1 -1
- package/dist/components/actions/icon-button/icon-button.js +18 -1
- 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 +35 -20
- 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 +15 -1
- package/dist/components/actions/menu/menu-item.d.ts.map +1 -1
- package/dist/components/actions/menu/menu-item.i18n.d.ts +7 -0
- package/dist/components/actions/menu/menu-item.i18n.d.ts.map +1 -0
- package/dist/components/actions/menu/menu-item.i18n.js +6 -0
- package/dist/components/actions/menu/menu-item.i18n.js.map +1 -0
- package/dist/components/actions/menu/menu-item.js +17 -2
- package/dist/components/actions/menu/menu-item.js.map +1 -1
- package/dist/components/actions/menu/menu.d.ts +15 -0
- package/dist/components/actions/menu/menu.d.ts.map +1 -1
- package/dist/components/actions/menu/menu.js +59 -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 +58 -4
- 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 +63 -55
- package/dist/components/actions/menu/menu.template.js.map +1 -1
- package/dist/components/actions/split-button/split-button.d.ts +2 -2
- package/dist/components/actions/split-button/split-button.d.ts.map +1 -1
- package/dist/components/actions/split-button/split-button.js +1 -1
- package/dist/components/actions/split-button/split-button.styles.d.ts.map +1 -1
- package/dist/components/actions/split-button/split-button.styles.js +12 -8
- package/dist/components/actions/split-button/split-button.styles.js.map +1 -1
- package/dist/components/actions/toolbar/toolbar.styles.d.ts.map +1 -1
- package/dist/components/actions/toolbar/toolbar.styles.js +4 -0
- package/dist/components/actions/toolbar/toolbar.styles.js.map +1 -1
- package/dist/components/content/avatar/avatar.d.ts +7 -5
- package/dist/components/content/avatar/avatar.d.ts.map +1 -1
- package/dist/components/content/avatar/avatar.js +7 -5
- package/dist/components/content/avatar/avatar.js.map +1 -1
- package/dist/components/content/avatar/avatar.styles.d.ts.map +1 -1
- package/dist/components/content/avatar/avatar.styles.js +13 -12
- package/dist/components/content/avatar/avatar.styles.js.map +1 -1
- package/dist/components/content/avatar-group/avatar-group.d.ts +1 -1
- package/dist/components/content/avatar-group/avatar-group.js +1 -1
- package/dist/components/content/avatar-group/avatar-group.styles.d.ts.map +1 -1
- package/dist/components/content/avatar-group/avatar-group.styles.js +2 -1
- package/dist/components/content/avatar-group/avatar-group.styles.js.map +1 -1
- package/dist/components/content/blockquote/blockquote.styles.d.ts.map +1 -1
- package/dist/components/content/blockquote/blockquote.styles.js +1 -0
- package/dist/components/content/blockquote/blockquote.styles.js.map +1 -1
- package/dist/components/content/code-viewer/code-viewer.d.ts +7 -1
- package/dist/components/content/code-viewer/code-viewer.d.ts.map +1 -1
- package/dist/components/content/code-viewer/code-viewer.js +42 -14
- package/dist/components/content/code-viewer/code-viewer.js.map +1 -1
- package/dist/components/content/code-viewer/code-viewer.styles.d.ts.map +1 -1
- package/dist/components/content/code-viewer/code-viewer.styles.js +37 -8
- package/dist/components/content/code-viewer/code-viewer.styles.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/icon/icon.d.ts +17 -15
- package/dist/components/content/icon/icon.d.ts.map +1 -1
- package/dist/components/content/icon/icon.js +19 -17
- package/dist/components/content/icon/icon.js.map +1 -1
- package/dist/components/content/icon/icon.styles.d.ts.map +1 -1
- package/dist/components/content/icon/icon.styles.js +47 -24
- package/dist/components/content/icon/icon.styles.js.map +1 -1
- package/dist/components/content/identity/identity.styles.d.ts.map +1 -1
- package/dist/components/content/identity/identity.styles.js +2 -0
- package/dist/components/content/identity/identity.styles.js.map +1 -1
- package/dist/components/content/image/image.styles.d.ts.map +1 -1
- package/dist/components/content/image/image.styles.js +33 -23
- package/dist/components/content/image/image.styles.js.map +1 -1
- package/dist/components/content/image/image.template.d.ts.map +1 -1
- package/dist/components/content/image/image.template.js +6 -8
- package/dist/components/content/image/image.template.js.map +1 -1
- package/dist/components/content/keyboard-shortcut/keyboard-shortcut.d.ts +5 -5
- package/dist/components/content/keyboard-shortcut/keyboard-shortcut.js +4 -4
- package/dist/components/content/keyboard-shortcut/keyboard-shortcut.styles.d.ts.map +1 -1
- package/dist/components/content/keyboard-shortcut/keyboard-shortcut.styles.js +5 -3
- package/dist/components/content/keyboard-shortcut/keyboard-shortcut.styles.js.map +1 -1
- package/dist/components/content/rich-text/rich-text.d.ts +0 -7
- package/dist/components/content/rich-text/rich-text.d.ts.map +1 -1
- package/dist/components/content/rich-text/rich-text.js +0 -10
- package/dist/components/content/rich-text/rich-text.js.map +1 -1
- package/dist/components/content/tag/tag.styles.d.ts.map +1 -1
- package/dist/components/content/tag/tag.styles.js +7 -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 +57 -0
- package/dist/components/content/term/term.template.js.map +1 -0
- package/dist/components/content/text/text.d.ts +2 -2
- package/dist/components/content/text/text.d.ts.map +1 -1
- package/dist/components/content/text/text.js +1 -1
- package/dist/components/content/text/text.styles.d.ts.map +1 -1
- package/dist/components/content/text/text.styles.js +17 -32
- package/dist/components/content/text/text.styles.js.map +1 -1
- package/dist/components/content/title/title.d.ts +0 -6
- package/dist/components/content/title/title.d.ts.map +1 -1
- package/dist/components/content/title/title.js +0 -8
- package/dist/components/content/title/title.js.map +1 -1
- package/dist/components/content/title/title.styles.d.ts.map +1 -1
- package/dist/components/content/title/title.styles.js +10 -26
- package/dist/components/content/title/title.styles.js.map +1 -1
- package/dist/components/content/token/token.styles.d.ts.map +1 -1
- package/dist/components/content/token/token.styles.js +4 -2
- package/dist/components/content/token/token.styles.js.map +1 -1
- package/dist/components/content/tooltip/tooltip.styles.d.ts.map +1 -1
- package/dist/components/content/tooltip/tooltip.styles.js +18 -5
- package/dist/components/content/tooltip/tooltip.styles.js.map +1 -1
- package/dist/components/content/tooltip/tooltip.template.js +1 -1
- package/dist/components/forms/form-field/form-field.styles.d.ts.map +1 -1
- package/dist/components/forms/form-field/form-field.styles.js +10 -3
- package/dist/components/forms/form-field/form-field.styles.js.map +1 -1
- package/dist/components/forms/validation-list/validation-list.styles.d.ts.map +1 -1
- package/dist/components/forms/validation-list/validation-list.styles.js +1 -0
- package/dist/components/forms/validation-list/validation-list.styles.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/checkbox/checkbox.d.ts +3 -3
- package/dist/components/inputs/checkbox/checkbox.js +2 -2
- package/dist/components/inputs/checkbox/checkbox.styles.d.ts.map +1 -1
- package/dist/components/inputs/checkbox/checkbox.styles.js +23 -18
- package/dist/components/inputs/checkbox/checkbox.styles.js.map +1 -1
- package/dist/components/inputs/checkbox-field/checkbox-field.d.ts +3 -3
- package/dist/components/inputs/checkbox-field/checkbox-field.js +2 -2
- package/dist/components/inputs/checkbox-field/checkbox-field.styles.d.ts.map +1 -1
- package/dist/components/inputs/checkbox-field/checkbox-field.styles.js +4 -2
- package/dist/components/inputs/checkbox-field/checkbox-field.styles.js.map +1 -1
- package/dist/components/inputs/code-editor/code-editor.styles.d.ts.map +1 -1
- package/dist/components/inputs/code-editor/code-editor.styles.js +2 -1
- package/dist/components/inputs/code-editor/code-editor.styles.js.map +1 -1
- package/dist/components/inputs/combo-box/combo-box.styles.d.ts.map +1 -1
- package/dist/components/inputs/combo-box/combo-box.styles.js +9 -0
- package/dist/components/inputs/combo-box/combo-box.styles.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.d.ts.map +1 -1
- package/dist/components/inputs/date-field/date-field.styles.js +11 -1
- package/dist/components/inputs/date-field/date-field.styles.js.map +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/date-picker/date-picker.styles.d.ts.map +1 -1
- package/dist/components/inputs/date-picker/date-picker.styles.js +8 -0
- package/dist/components/inputs/date-picker/date-picker.styles.js.map +1 -1
- package/dist/components/inputs/dropdown/dropdown.styles.d.ts.map +1 -1
- package/dist/components/inputs/dropdown/dropdown.styles.js +5 -0
- package/dist/components/inputs/dropdown/dropdown.styles.js.map +1 -1
- package/dist/components/inputs/file-field/file-field.styles.d.ts.map +1 -1
- package/dist/components/inputs/file-field/file-field.styles.js +18 -0
- package/dist/components/inputs/file-field/file-field.styles.js.map +1 -1
- package/dist/components/inputs/multi-line-text-field/multi-line-text-field.styles.d.ts.map +1 -1
- package/dist/components/inputs/multi-line-text-field/multi-line-text-field.styles.js +4 -0
- package/dist/components/inputs/multi-line-text-field/multi-line-text-field.styles.js.map +1 -1
- package/dist/components/inputs/number-field/number-field.styles.d.ts.map +1 -1
- package/dist/components/inputs/number-field/number-field.styles.js +6 -0
- package/dist/components/inputs/number-field/number-field.styles.js.map +1 -1
- package/dist/components/inputs/one-time-code-field/one-time-code-field.styles.d.ts.map +1 -1
- package/dist/components/inputs/one-time-code-field/one-time-code-field.styles.js +4 -0
- package/dist/components/inputs/one-time-code-field/one-time-code-field.styles.js.map +1 -1
- package/dist/components/inputs/password-field/password-field.styles.d.ts.map +1 -1
- package/dist/components/inputs/password-field/password-field.styles.js +4 -0
- package/dist/components/inputs/password-field/password-field.styles.js.map +1 -1
- package/dist/components/inputs/radio-button/radio-button.d.ts +3 -3
- package/dist/components/inputs/radio-button/radio-button.js +2 -2
- package/dist/components/inputs/radio-button/radio-button.styles.js +13 -13
- package/dist/components/inputs/radio-button-field/radio-button-field.d.ts +3 -3
- package/dist/components/inputs/radio-button-field/radio-button-field.js +2 -2
- package/dist/components/inputs/radio-button-field/radio-button-field.styles.d.ts.map +1 -1
- package/dist/components/inputs/radio-button-field/radio-button-field.styles.js +4 -2
- package/dist/components/inputs/radio-button-field/radio-button-field.styles.js.map +1 -1
- package/dist/components/inputs/search-field/search-field.styles.d.ts.map +1 -1
- package/dist/components/inputs/search-field/search-field.styles.js +8 -0
- package/dist/components/inputs/search-field/search-field.styles.js.map +1 -1
- package/dist/components/inputs/segmented-control/segmented-control.styles.d.ts.map +1 -1
- package/dist/components/inputs/segmented-control/segmented-control.styles.js +6 -0
- package/dist/components/inputs/segmented-control/segmented-control.styles.js.map +1 -1
- package/dist/components/inputs/slider/slider.styles.d.ts.map +1 -1
- package/dist/components/inputs/slider/slider.styles.js +3 -1
- package/dist/components/inputs/slider/slider.styles.js.map +1 -1
- package/dist/components/inputs/swatch-picker/swatch-picker.styles.d.ts.map +1 -1
- package/dist/components/inputs/swatch-picker/swatch-picker.styles.js +1 -0
- package/dist/components/inputs/swatch-picker/swatch-picker.styles.js.map +1 -1
- package/dist/components/inputs/switch/switch.d.ts +3 -3
- package/dist/components/inputs/switch/switch.js +2 -2
- package/dist/components/inputs/switch/switch.styles.d.ts.map +1 -1
- package/dist/components/inputs/switch/switch.styles.js +7 -6
- package/dist/components/inputs/switch/switch.styles.js.map +1 -1
- package/dist/components/inputs/switch-field/switch-field.d.ts +3 -3
- package/dist/components/inputs/switch-field/switch-field.js +2 -2
- package/dist/components/inputs/switch-field/switch-field.styles.d.ts.map +1 -1
- package/dist/components/inputs/switch-field/switch-field.styles.js +4 -2
- package/dist/components/inputs/switch-field/switch-field.styles.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.d.ts.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/text-editor/text-editor.js +6 -0
- package/dist/components/inputs/text-editor/text-editor.js.map +1 -1
- package/dist/components/inputs/text-editor/text-editor.markdown.d.ts.map +1 -1
- package/dist/components/inputs/text-editor/text-editor.markdown.js +3 -1
- package/dist/components/inputs/text-editor/text-editor.markdown.js.map +1 -1
- package/dist/components/inputs/text-editor/text-editor.styles.d.ts.map +1 -1
- package/dist/components/inputs/text-editor/text-editor.styles.js +26 -0
- package/dist/components/inputs/text-editor/text-editor.styles.js.map +1 -1
- package/dist/components/inputs/text-field/text-field.styles.d.ts.map +1 -1
- package/dist/components/inputs/text-field/text-field.styles.js +9 -0
- package/dist/components/inputs/text-field/text-field.styles.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 +17 -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 +8 -2
- package/dist/components/inputs/time-picker/time-picker.styles.js.map +1 -1
- package/dist/components/inputs/toggle-button/toggle-button.styles.d.ts.map +1 -1
- package/dist/components/inputs/toggle-button/toggle-button.styles.js +6 -0
- package/dist/components/inputs/toggle-button/toggle-button.styles.js.map +1 -1
- package/dist/components/inputs/token-field/token-field.styles.d.ts.map +1 -1
- package/dist/components/inputs/token-field/token-field.styles.js +9 -1
- package/dist/components/inputs/token-field/token-field.styles.js.map +1 -1
- package/dist/components/layout/box/box.styles.d.ts.map +1 -1
- package/dist/components/layout/box/box.styles.js +3 -1
- package/dist/components/layout/box/box.styles.js.map +1 -1
- package/dist/components/layout/card/card.styles.d.ts.map +1 -1
- package/dist/components/layout/card/card.styles.js +5 -3
- package/dist/components/layout/card/card.styles.js.map +1 -1
- package/dist/components/layout/container/container.d.ts +7 -0
- package/dist/components/layout/container/container.d.ts.map +1 -1
- package/dist/components/layout/container/container.js +30 -0
- package/dist/components/layout/container/container.js.map +1 -1
- package/dist/components/layout/kanban/kanban.styles.d.ts.map +1 -1
- package/dist/components/layout/kanban/kanban.styles.js +2 -0
- package/dist/components/layout/kanban/kanban.styles.js.map +1 -1
- package/dist/components/layout/page/page.styles.d.ts.map +1 -1
- package/dist/components/layout/page/page.styles.js +8 -5
- package/dist/components/layout/page/page.styles.js.map +1 -1
- package/dist/components/layout/page-footer/page-footer.styles.d.ts.map +1 -1
- package/dist/components/layout/page-footer/page-footer.styles.js +5 -2
- package/dist/components/layout/page-footer/page-footer.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 +4 -5
- package/dist/components/layout/page-sections/hero/hero.d.ts.map +1 -1
- package/dist/components/layout/page-sections/hero/hero.js +4 -5
- package/dist/components/layout/page-sections/hero/hero.js.map +1 -1
- package/dist/components/layout/page-sections/hero/hero.styles.d.ts.map +1 -1
- package/dist/components/layout/page-sections/hero/hero.styles.js +14 -5
- package/dist/components/layout/page-sections/hero/hero.styles.js.map +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/sidebar-section/sidebar-section.d.ts +2 -2
- package/dist/components/layout/page-sections/sidebar-section/sidebar-section.d.ts.map +1 -1
- package/dist/components/layout/page-sections/sidebar-section/sidebar-section.js +21 -2
- package/dist/components/layout/page-sections/sidebar-section/sidebar-section.js.map +1 -1
- package/dist/components/layout/page-sections/sidebar-section/sidebar-section.styles.js +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 +18 -2
- 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/layout/sheet/sheet.styles.d.ts.map +1 -1
- package/dist/components/layout/sheet/sheet.styles.js +3 -1
- package/dist/components/layout/sheet/sheet.styles.js.map +1 -1
- package/dist/components/layout/shell/shell.d.ts +1 -1
- package/dist/components/layout/shell/shell.js +1 -1
- package/dist/components/layout/shell/shell.styles.d.ts.map +1 -1
- package/dist/components/layout/shell/shell.styles.js +6 -3
- package/dist/components/layout/shell/shell.styles.js.map +1 -1
- package/dist/components/layout/split-views/bar-split-view/bar-split-view.d.ts +1 -1
- package/dist/components/layout/split-views/bar-split-view/bar-split-view.js +1 -1
- package/dist/components/layout/split-views/bar-split-view/bar-split-view.styles.d.ts.map +1 -1
- package/dist/components/layout/split-views/bar-split-view/bar-split-view.styles.js +8 -5
- package/dist/components/layout/split-views/bar-split-view/bar-split-view.styles.js.map +1 -1
- package/dist/components/layout/split-views/navigation-split-view/navigation-split-view.d.ts +0 -28
- package/dist/components/layout/split-views/navigation-split-view/navigation-split-view.d.ts.map +1 -1
- package/dist/components/layout/split-views/navigation-split-view/navigation-split-view.js +10 -57
- package/dist/components/layout/split-views/navigation-split-view/navigation-split-view.js.map +1 -1
- package/dist/components/layout/split-views/navigation-split-view/navigation-split-view.styles.d.ts.map +1 -1
- package/dist/components/layout/split-views/navigation-split-view/navigation-split-view.styles.js +8 -5
- package/dist/components/layout/split-views/navigation-split-view/navigation-split-view.styles.js.map +1 -1
- package/dist/components/layout/split-views/navigation-split-view/navigation-split-view.template.d.ts.map +1 -1
- package/dist/components/layout/split-views/navigation-split-view/navigation-split-view.template.js +2 -4
- package/dist/components/layout/split-views/navigation-split-view/navigation-split-view.template.js.map +1 -1
- package/dist/components/layout/split-views/side-by-side-split-view/side-by-side-split-view.styles.d.ts.map +1 -1
- package/dist/components/layout/split-views/side-by-side-split-view/side-by-side-split-view.styles.js +8 -5
- package/dist/components/layout/split-views/side-by-side-split-view/side-by-side-split-view.styles.js.map +1 -1
- package/dist/components/layout/split-views/split-view-pane/split-view-pane.d.ts +2 -2
- package/dist/components/layout/split-views/split-view-pane/split-view-pane.js +2 -2
- package/dist/components/layout/split-views/split-view-pane/split-view-pane.styles.d.ts.map +1 -1
- package/dist/components/layout/split-views/split-view-pane/split-view-pane.styles.js +8 -5
- package/dist/components/layout/split-views/split-view-pane/split-view-pane.styles.js.map +1 -1
- package/dist/components/layout/split-views/stacked-split-view/stacked-split-view.styles.d.ts.map +1 -1
- package/dist/components/layout/split-views/stacked-split-view/stacked-split-view.styles.js +8 -5
- package/dist/components/layout/split-views/stacked-split-view/stacked-split-view.styles.js.map +1 -1
- package/dist/components/layout/window/window.styles.d.ts.map +1 -1
- package/dist/components/layout/window/window.styles.js +3 -2
- package/dist/components/layout/window/window.styles.js.map +1 -1
- package/dist/components/lists-and-tables/cells/description-cell/description-cell.styles.d.ts.map +1 -1
- package/dist/components/lists-and-tables/cells/description-cell/description-cell.styles.js +3 -2
- package/dist/components/lists-and-tables/cells/description-cell/description-cell.styles.js.map +1 -1
- package/dist/components/lists-and-tables/cells/icon-cell/icon-cell.styles.js +6 -6
- package/dist/components/lists-and-tables/cells/reorder-handle-cell/reorder-handle-cell.styles.d.ts.map +1 -1
- package/dist/components/lists-and-tables/cells/reorder-handle-cell/reorder-handle-cell.styles.js +1 -0
- package/dist/components/lists-and-tables/cells/reorder-handle-cell/reorder-handle-cell.styles.js.map +1 -1
- package/dist/components/lists-and-tables/cells/step-cell/step-cell.styles.d.ts.map +1 -1
- package/dist/components/lists-and-tables/cells/step-cell/step-cell.styles.js +4 -1
- package/dist/components/lists-and-tables/cells/step-cell/step-cell.styles.js.map +1 -1
- package/dist/components/lists-and-tables/cells/text-cell/text-cell.d.ts +5 -3
- 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 +5 -3
- 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 +14 -11
- package/dist/components/lists-and-tables/cells/text-cell/text-cell.styles.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 +14 -11
- package/dist/components/lists-and-tables/cells/title-cell/title-cell.styles.js.map +1 -1
- package/dist/components/lists-and-tables/list/list.styles.d.ts.map +1 -1
- package/dist/components/lists-and-tables/list/list.styles.js +40 -5
- package/dist/components/lists-and-tables/list/list.styles.js.map +1 -1
- package/dist/components/lists-and-tables/list-item/list-item.d.ts +1 -1
- package/dist/components/lists-and-tables/list-item/list-item.styles.d.ts.map +1 -1
- package/dist/components/lists-and-tables/list-item/list-item.styles.js +27 -20
- package/dist/components/lists-and-tables/list-item/list-item.styles.js.map +1 -1
- package/dist/components/lists-and-tables/list-item-segment/list-item-segment.styles.d.ts.map +1 -1
- package/dist/components/lists-and-tables/list-item-segment/list-item-segment.styles.js +11 -9
- package/dist/components/lists-and-tables/list-item-segment/list-item-segment.styles.js.map +1 -1
- package/dist/components/navigation/breadcrumbs/breadcrumbs.styles.d.ts.map +1 -1
- package/dist/components/navigation/breadcrumbs/breadcrumbs.styles.js +8 -3
- package/dist/components/navigation/breadcrumbs/breadcrumbs.styles.js.map +1 -1
- package/dist/components/navigation/document-tab-bar/document-tab-bar.styles.d.ts.map +1 -1
- package/dist/components/navigation/document-tab-bar/document-tab-bar.styles.js +18 -4
- package/dist/components/navigation/document-tab-bar/document-tab-bar.styles.js.map +1 -1
- package/dist/components/navigation/link/link.d.ts +8 -1
- package/dist/components/navigation/link/link.d.ts.map +1 -1
- package/dist/components/navigation/link/link.js +18 -0
- 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 +11 -3
- package/dist/components/navigation/link/link.styles.js.map +1 -1
- package/dist/components/navigation/menu-bar-item/menu-bar-item.styles.d.ts.map +1 -1
- package/dist/components/navigation/menu-bar-item/menu-bar-item.styles.js +1 -0
- package/dist/components/navigation/menu-bar-item/menu-bar-item.styles.js.map +1 -1
- package/dist/components/navigation/pagination/pagination.styles.d.ts.map +1 -1
- package/dist/components/navigation/pagination/pagination.styles.js +7 -0
- package/dist/components/navigation/pagination/pagination.styles.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.styles.d.ts.map +1 -1
- package/dist/components/navigation/skip-link/skip-link.styles.js +1 -0
- package/dist/components/navigation/skip-link/skip-link.styles.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/components/navigation/tab-bar/tab-bar.styles.d.ts.map +1 -1
- package/dist/components/navigation/tab-bar/tab-bar.styles.js +6 -0
- package/dist/components/navigation/tab-bar/tab-bar.styles.js.map +1 -1
- package/dist/components/navigation/top-navigation-bar/top-navigation-bar.styles.d.ts.map +1 -1
- package/dist/components/navigation/top-navigation-bar/top-navigation-bar.styles.js +2 -0
- package/dist/components/navigation/top-navigation-bar/top-navigation-bar.styles.js.map +1 -1
- package/dist/components/navigation/top-title-bar/top-title-bar.styles.d.ts.map +1 -1
- package/dist/components/navigation/top-title-bar/top-title-bar.styles.js +2 -0
- package/dist/components/navigation/top-title-bar/top-title-bar.styles.js.map +1 -1
- package/dist/components/status-and-feedback/activity-indicator/activity-indicator.d.ts +4 -6
- package/dist/components/status-and-feedback/activity-indicator/activity-indicator.d.ts.map +1 -1
- package/dist/components/status-and-feedback/activity-indicator/activity-indicator.js +4 -6
- package/dist/components/status-and-feedback/activity-indicator/activity-indicator.js.map +1 -1
- package/dist/components/status-and-feedback/activity-indicator/activity-indicator.styles.d.ts.map +1 -1
- package/dist/components/status-and-feedback/activity-indicator/activity-indicator.styles.js +3 -2
- package/dist/components/status-and-feedback/activity-indicator/activity-indicator.styles.js.map +1 -1
- package/dist/components/status-and-feedback/badge/badge.d.ts +3 -3
- package/dist/components/status-and-feedback/badge/badge.js +3 -3
- package/dist/components/status-and-feedback/badge/badge.styles.d.ts.map +1 -1
- package/dist/components/status-and-feedback/badge/badge.styles.js +7 -4
- package/dist/components/status-and-feedback/badge/badge.styles.js.map +1 -1
- package/dist/components/status-and-feedback/banner/banner.styles.d.ts.map +1 -1
- package/dist/components/status-and-feedback/banner/banner.styles.js +2 -0
- package/dist/components/status-and-feedback/banner/banner.styles.js.map +1 -1
- package/dist/components/status-and-feedback/inline-dialog/inline-dialog.styles.d.ts.map +1 -1
- package/dist/components/status-and-feedback/inline-dialog/inline-dialog.styles.js +3 -0
- package/dist/components/status-and-feedback/inline-dialog/inline-dialog.styles.js.map +1 -1
- package/dist/components/status-and-feedback/just-in-time-education/just-in-time-education.styles.d.ts.map +1 -1
- package/dist/components/status-and-feedback/just-in-time-education/just-in-time-education.styles.js +3 -0
- package/dist/components/status-and-feedback/just-in-time-education/just-in-time-education.styles.js.map +1 -1
- package/dist/components/status-and-feedback/modal-dialog/modal-dialog.styles.d.ts.map +1 -1
- package/dist/components/status-and-feedback/modal-dialog/modal-dialog.styles.js +3 -2
- package/dist/components/status-and-feedback/modal-dialog/modal-dialog.styles.js.map +1 -1
- package/dist/components/status-and-feedback/notification/notification.styles.d.ts.map +1 -1
- package/dist/components/status-and-feedback/notification/notification.styles.js +3 -0
- package/dist/components/status-and-feedback/notification/notification.styles.js.map +1 -1
- package/dist/components/status-and-feedback/progress-bar/progress-bar.js +1 -1
- package/dist/components/status-and-feedback/progress-bar/progress-bar.js.map +1 -1
- package/dist/components/status-and-feedback/progress-bar/progress-bar.styles.d.ts.map +1 -1
- package/dist/components/status-and-feedback/progress-bar/progress-bar.styles.js +3 -1
- package/dist/components/status-and-feedback/progress-bar/progress-bar.styles.js.map +1 -1
- package/dist/components/status-and-feedback/progress-circle/progress-circle.styles.d.ts.map +1 -1
- package/dist/components/status-and-feedback/progress-circle/progress-circle.styles.js +2 -0
- package/dist/components/status-and-feedback/progress-circle/progress-circle.styles.js.map +1 -1
- package/dist/components/status-and-feedback/status-bar/status-bar.styles.d.ts.map +1 -1
- package/dist/components/status-and-feedback/status-bar/status-bar.styles.js +1 -0
- package/dist/components/status-and-feedback/status-bar/status-bar.styles.js.map +1 -1
- package/dist/components/status-and-feedback/step-bar/step-bar.styles.d.ts.map +1 -1
- package/dist/components/status-and-feedback/step-bar/step-bar.styles.js +8 -1
- package/dist/components/status-and-feedback/step-bar/step-bar.styles.js.map +1 -1
- package/dist/css/form-section.css +2 -0
- package/dist/css/rich-text.css +14 -38
- package/dist/css/title.css +7 -15
- package/dist/css/variables.css +41 -24
- package/dist/nldd.min.js +2983 -2327
- package/dist/translations/en-US.d.ts.map +1 -1
- package/dist/translations/en-US.js +6 -2
- package/dist/translations/en-US.js.map +1 -1
- package/dist/translations/fy.d.ts.map +1 -1
- package/dist/translations/fy.js +6 -2
- package/dist/translations/fy.js.map +1 -1
- package/dist/translations/nl.generated.d.ts +6 -2
- package/dist/translations/nl.generated.d.ts.map +1 -1
- package/dist/translations/nl.generated.js +4 -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 +6 -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 +6 -2
- package/dist/translations/pap-CW.js.map +1 -1
- package/dist/types/react.d.ts +76 -50
- package/dist/types/vue.d.ts +84 -56
- 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/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 +5 -0
- package/dist/utilities/dev-checks.d.ts.map +1 -1
- package/dist/utilities/dev-checks.js +14 -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 +154 -54
- 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 +4 -5
- package/dist/utilities/page-section-mixin.d.ts.map +1 -1
- package/dist/utilities/page-section-mixin.js +10 -13
- package/dist/utilities/page-section-mixin.js.map +1 -1
- package/dist/utilities/translations.d.ts.map +1 -1
- package/dist/utilities/translations.js +9 -0
- package/dist/utilities/translations.js.map +1 -1
- package/lint/css.js +224 -0
- package/lint/data.generated.json +1 -1
- package/lint/engine.js +5 -2
- package/lint/frontends.js +67 -42
- package/lint/linter.js +188 -7
- package/lint/main.js +20 -7
- package/lint/project.js +2 -2
- package/lint/rule-data.js +20 -0
- package/package.json +5 -1
- package/dist/cdn/chunks/nl.generated-fkFCex7n.js +0 -112
- package/dist/cdn/chunks/shadow-resets-BeVmf7ky.js +0 -12
- package/dist/cdn/chunks/skip-link.i18n--PbEdAmJ.js +0 -3
- package/dist/cdn/chunks/translations-wxBSz213.js +0 -8
|
@@ -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 { i as ie, n as x } from "./custom-element-
|
|
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-Dlh_tbAH.js";
|
|
2
|
+
import { i as ie, n as x } from "./custom-element-BVKCDhPV.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-SKGbh9LP.js";
|
|
5
|
+
import { n as _e, r as ve } from "./dist-B2YK3eT2.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-BE2ojX0S.js";
|
|
9
|
+
import { a as xe, c as Se, i as Ce, n as we } from "./dist-CWN_qz9z.js";
|
|
10
|
+
import "./avatar-CRZLseMs.js";
|
|
11
|
+
import { o as Te, t as S } from "./decorate-CK3hc5C5.js";
|
|
12
|
+
import { t as Ee } from "./shadow-resets-CRBumQjX.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-eWWV6weF.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
|
}
|
|
@@ -565,7 +575,7 @@ var Yt = b.define({
|
|
|
565
575
|
provide: (e) => t.decorations.from(e)
|
|
566
576
|
}), Xt = [
|
|
567
577
|
_e({
|
|
568
|
-
extensions: ve,
|
|
578
|
+
extensions: [ve, { remove: ["IndentedCode"] }],
|
|
569
579
|
codeLanguages: te
|
|
570
580
|
}),
|
|
571
581
|
Ht,
|
|
@@ -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 */
|
|
@@ -2368,6 +2388,7 @@ var Gi = class {
|
|
|
2368
2388
|
flex-grow: 1;
|
|
2369
2389
|
flex-shrink: 1;
|
|
2370
2390
|
flex-basis: auto;
|
|
2391
|
+
--context-content-color: var(--_text-editor-content-color);
|
|
2371
2392
|
color: var(--_text-editor-content-color);
|
|
2372
2393
|
font: var(--_text-editor-font);
|
|
2373
2394
|
}
|
|
@@ -2638,6 +2659,7 @@ var Gi = class {
|
|
|
2638
2659
|
the normal token inset around the name. */
|
|
2639
2660
|
padding-inline: max(0em, (max(1.2em, 1lh) - var(--_text-editor-mention-icon-size)) / 2) var(--_text-editor-token-inline-padding);
|
|
2640
2661
|
box-shadow: inset 0 0 0 var(--_text-editor-token-highlight-border-width) var(--_text-editor-mention-token-highlight-border-color);
|
|
2662
|
+
--context-content-color: var(--_text-editor-mention-token-content-color);
|
|
2641
2663
|
color: var(--_text-editor-mention-token-content-color);
|
|
2642
2664
|
background-color: var(--_text-editor-mention-token-background-color);
|
|
2643
2665
|
border-radius: var(--_text-editor-token-corner-radius);
|
|
@@ -2683,6 +2705,7 @@ var Gi = class {
|
|
|
2683
2705
|
|
|
2684
2706
|
.cm-md-mention-token[data-selected] {
|
|
2685
2707
|
box-shadow: none;
|
|
2708
|
+
--context-content-color: var(--_text-editor-mention-token-is-selected-content-color);
|
|
2686
2709
|
color: var(--_text-editor-mention-token-is-selected-content-color);
|
|
2687
2710
|
background-color: var(--_text-editor-mention-token-is-selected-background-color);
|
|
2688
2711
|
}
|
|
@@ -2690,14 +2713,17 @@ var Gi = class {
|
|
|
2690
2713
|
/* A native selection over a mention keeps its text light on the filled accent.
|
|
2691
2714
|
:host bumps specificity so it wins over .cm-content ::selection wherever it sits. */
|
|
2692
2715
|
:host .cm-md-mention-token ::selection {
|
|
2716
|
+
--context-content-color: var(--_text-editor-mention-token-is-selected-content-color);
|
|
2693
2717
|
color: var(--_text-editor-mention-token-is-selected-content-color);
|
|
2694
2718
|
}
|
|
2695
2719
|
|
|
2696
2720
|
.cm-md-link {
|
|
2721
|
+
--context-content-color: var(--_text-editor-link-color);
|
|
2697
2722
|
color: var(--_text-editor-link-color);
|
|
2698
2723
|
}
|
|
2699
2724
|
|
|
2700
2725
|
.cm-md-url {
|
|
2726
|
+
--context-content-color: var(--_text-editor-mark-color);
|
|
2701
2727
|
color: var(--_text-editor-mark-color);
|
|
2702
2728
|
}
|
|
2703
2729
|
|
|
@@ -2711,6 +2737,7 @@ var Gi = class {
|
|
|
2711
2737
|
and override the highlight-style URL tint (teal) on its token span so the
|
|
2712
2738
|
whole address is the link color, not just the mark wrapper. */
|
|
2713
2739
|
.cm-md-autolink {
|
|
2740
|
+
--context-content-color: var(--_text-editor-link-color);
|
|
2714
2741
|
color: var(--_text-editor-link-color);
|
|
2715
2742
|
}
|
|
2716
2743
|
|
|
@@ -2719,6 +2746,7 @@ var Gi = class {
|
|
|
2719
2746
|
}
|
|
2720
2747
|
|
|
2721
2748
|
.cm-md-quote {
|
|
2749
|
+
--context-content-color: var(--_text-editor-content-color);
|
|
2722
2750
|
color: var(--_text-editor-content-color);
|
|
2723
2751
|
font-style: italic;
|
|
2724
2752
|
font-size: var(--_text-editor-quote-font-size);
|
|
@@ -2731,6 +2759,7 @@ var Gi = class {
|
|
|
2731
2759
|
/* Markers: dimmed (secondary color, not opacity, so contrast holds) and
|
|
2732
2760
|
monospace at the 16px marker size — tidy, and a fixed-width leading prefix. */
|
|
2733
2761
|
.cm-md-mark {
|
|
2762
|
+
--context-content-color: var(--_text-editor-mark-color);
|
|
2734
2763
|
color: var(--_text-editor-mark-color);
|
|
2735
2764
|
font-family: var(--_text-editor-code-font-family);
|
|
2736
2765
|
font-size: var(--_text-editor-marker-font-size);
|
|
@@ -2774,6 +2803,7 @@ var Gi = class {
|
|
|
2774
2803
|
vertical-align: middle;
|
|
2775
2804
|
justify-content: flex-start;
|
|
2776
2805
|
align-items: center;
|
|
2806
|
+
--context-content-color: var(--_text-editor-content-color);
|
|
2777
2807
|
color: var(--_text-editor-content-color);
|
|
2778
2808
|
}
|
|
2779
2809
|
|
|
@@ -2827,15 +2857,18 @@ var Gi = class {
|
|
|
2827
2857
|
border-radius: var(--_text-editor-token-corner-radius);
|
|
2828
2858
|
background: none;
|
|
2829
2859
|
padding: 0;
|
|
2860
|
+
--context-content-color: var(--_text-editor-code-copy-content-color);
|
|
2830
2861
|
color: var(--_text-editor-code-copy-content-color);
|
|
2831
2862
|
font: var(--_text-editor-code-copy-font);
|
|
2832
2863
|
}
|
|
2833
2864
|
|
|
2834
2865
|
.cm-md-code-copy:hover {
|
|
2866
|
+
--context-content-color: var(--_text-editor-code-copy-is-hovered-content-color);
|
|
2835
2867
|
color: var(--_text-editor-code-copy-is-hovered-content-color);
|
|
2836
2868
|
}
|
|
2837
2869
|
|
|
2838
2870
|
.cm-md-code-copy:active {
|
|
2871
|
+
--context-content-color: var(--_text-editor-code-copy-is-active-content-color);
|
|
2839
2872
|
color: var(--_text-editor-code-copy-is-active-content-color);
|
|
2840
2873
|
}
|
|
2841
2874
|
|
|
@@ -2859,6 +2892,7 @@ var Gi = class {
|
|
|
2859
2892
|
}
|
|
2860
2893
|
|
|
2861
2894
|
.cm-md-code-language {
|
|
2895
|
+
--context-content-color: var(--_text-editor-mark-color);
|
|
2862
2896
|
color: var(--_text-editor-mark-color);
|
|
2863
2897
|
font-family: var(--_text-editor-code-font-family);
|
|
2864
2898
|
font-size: var(--_text-editor-marker-font-size);
|
|
@@ -2867,6 +2901,7 @@ var Gi = class {
|
|
|
2867
2901
|
.cm-md-ordinal,
|
|
2868
2902
|
.cm-md-ordinal .cm-md-mark,
|
|
2869
2903
|
.cm-md-mark .cm-md-ordinal {
|
|
2904
|
+
--context-content-color: var(--_text-editor-content-color);
|
|
2870
2905
|
color: var(--_text-editor-content-color);
|
|
2871
2906
|
}
|
|
2872
2907
|
|
|
@@ -2949,6 +2984,7 @@ var Gi = class {
|
|
|
2949
2984
|
padding: var(--_text-editor-popup-row-padding-block) var(--_text-editor-popup-row-padding-inline);
|
|
2950
2985
|
align-items: center;
|
|
2951
2986
|
gap: var(--_text-editor-popup-row-gap);
|
|
2987
|
+
--context-content-color: var(--_text-editor-popup-row-content-color);
|
|
2952
2988
|
color: var(--_text-editor-popup-row-content-color);
|
|
2953
2989
|
cursor: default;
|
|
2954
2990
|
}
|
|
@@ -2989,6 +3025,7 @@ var Gi = class {
|
|
|
2989
3025
|
|
|
2990
3026
|
:host .cm-tooltip.cm-tooltip-autocomplete > ul > li[aria-selected] {
|
|
2991
3027
|
background-color: var(--_text-editor-popup-row-is-highlighted-background-color);
|
|
3028
|
+
--context-content-color: var(--_text-editor-popup-row-is-highlighted-content-color);
|
|
2992
3029
|
color: var(--_text-editor-popup-row-is-highlighted-content-color);
|
|
2993
3030
|
}
|
|
2994
3031
|
|
|
@@ -2997,12 +3034,14 @@ var Gi = class {
|
|
|
2997
3034
|
@media (hover: hover) {
|
|
2998
3035
|
:host .cm-tooltip.cm-tooltip-autocomplete > ul > li:not([aria-selected]):hover {
|
|
2999
3036
|
background-color: var(--_text-editor-popup-row-is-hovered-background-color);
|
|
3037
|
+
--context-content-color: var(--_text-editor-popup-row-is-hovered-content-color);
|
|
3000
3038
|
color: var(--_text-editor-popup-row-is-hovered-content-color);
|
|
3001
3039
|
}
|
|
3002
3040
|
}
|
|
3003
3041
|
|
|
3004
3042
|
:host .cm-completionDetail {
|
|
3005
3043
|
margin-left: auto;
|
|
3044
|
+
--context-content-color: var(--_text-editor-popup-supporting-text-color);
|
|
3006
3045
|
color: var(--_text-editor-popup-supporting-text-color);
|
|
3007
3046
|
font-style: normal;
|
|
3008
3047
|
}
|
|
@@ -3024,6 +3063,7 @@ var Gi = class {
|
|
|
3024
3063
|
min-width: var(--_text-editor-popup-min-width);
|
|
3025
3064
|
max-width: var(--_text-editor-popup-message-max-width);
|
|
3026
3065
|
padding: var(--_text-editor-popup-message-padding-block) var(--_text-editor-popup-message-padding-inline);
|
|
3066
|
+
--context-content-color: var(--_text-editor-popup-message-color);
|
|
3027
3067
|
color: var(--_text-editor-popup-message-color);
|
|
3028
3068
|
font-family: var(--_text-editor-popup-font-family);
|
|
3029
3069
|
font-size: var(--_text-editor-popup-font-size);
|
|
@@ -3068,14 +3108,17 @@ var Gi = class {
|
|
|
3068
3108
|
.cm-annotation.is-selected,
|
|
3069
3109
|
.cm-annotation .is-selected {
|
|
3070
3110
|
background-color: var(--_text-editor-annotation-token-is-selected-background-color);
|
|
3111
|
+
--context-content-color: var(--_text-editor-annotation-token-is-selected-content-color);
|
|
3071
3112
|
color: var(--_text-editor-annotation-token-is-selected-content-color);
|
|
3072
3113
|
}
|
|
3073
3114
|
|
|
3074
3115
|
.cm-content ::selection {
|
|
3116
|
+
--context-content-color: var(--_text-editor-selection-content-color);
|
|
3075
3117
|
color: var(--_text-editor-selection-content-color);
|
|
3076
3118
|
}
|
|
3077
3119
|
|
|
3078
3120
|
.cm-annotation ::selection {
|
|
3121
|
+
--context-content-color: var(--_text-editor-annotation-token-is-selected-content-color);
|
|
3079
3122
|
color: var(--_text-editor-annotation-token-is-selected-content-color);
|
|
3080
3123
|
}
|
|
3081
3124
|
|
|
@@ -3093,6 +3136,7 @@ var Gi = class {
|
|
|
3093
3136
|
border-radius: var(--primitives-corner-radius-full);
|
|
3094
3137
|
background-color: var(--_text-editor-annotation-token-badge-background-color);
|
|
3095
3138
|
box-shadow: inset 0 0 0 var(--primitives-border-width-thin) var(--_text-editor-annotation-token-badge-highlight-border-color);
|
|
3139
|
+
--context-content-color: var(--_text-editor-annotation-token-badge-content-color);
|
|
3096
3140
|
color: var(--_text-editor-annotation-token-badge-content-color);
|
|
3097
3141
|
/* vertical-align: middle lands the nub ~1px below the text's em-box center, and
|
|
3098
3142
|
the optical middle of the ink sits higher again, so it reads low; nudge up onto
|
|
@@ -3173,6 +3217,7 @@ var Gi = class {
|
|
|
3173
3217
|
padding: 0 var(--primitives-space-4);
|
|
3174
3218
|
border-radius: var(--_text-editor-token-corner-radius);
|
|
3175
3219
|
background-color: var(--_text-editor-drag-ghost-background-color);
|
|
3220
|
+
--context-content-color: var(--_text-editor-content-color);
|
|
3176
3221
|
color: var(--_text-editor-content-color);
|
|
3177
3222
|
font: var(--_text-editor-font);
|
|
3178
3223
|
white-space: nowrap;
|
|
@@ -3193,6 +3238,7 @@ var Gi = class {
|
|
|
3193
3238
|
border-radius: var(--primitives-corner-radius-full);
|
|
3194
3239
|
background-color: var(--_text-editor-link-badge-background-color);
|
|
3195
3240
|
box-shadow: inset 0 0 0 var(--primitives-border-width-thin) var(--_text-editor-link-badge-highlight-border-color);
|
|
3241
|
+
--context-content-color: var(--_text-editor-link-badge-content-color);
|
|
3196
3242
|
color: var(--_text-editor-link-badge-content-color);
|
|
3197
3243
|
/* Match the annotation nub's optical centering next to the ink. */
|
|
3198
3244
|
vertical-align: middle;
|
|
@@ -3230,7 +3276,7 @@ var Gi = class {
|
|
|
3230
3276
|
}
|
|
3231
3277
|
`;
|
|
3232
3278
|
// src/components/inputs/text-editor/text-editor.template.ts
|
|
3233
|
-
function
|
|
3279
|
+
function Xi(e) {
|
|
3234
3280
|
return Te`<div class="text-editor"></div>`;
|
|
3235
3281
|
}
|
|
3236
3282
|
// src/components/inputs/text-editor/text-editor.code-copy.ts
|
|
@@ -3238,11 +3284,11 @@ var Z = g.define({ combine: (e) => e[0] ?? {
|
|
|
3238
3284
|
copy: () => "Kopieer",
|
|
3239
3285
|
success: () => "Gekopieerd",
|
|
3240
3286
|
failure: () => "Kopiëren mislukt"
|
|
3241
|
-
} }),
|
|
3242
|
-
function
|
|
3287
|
+
} }), Zi = 2e3;
|
|
3288
|
+
function Qi() {
|
|
3243
3289
|
return typeof window < "u" && window.isSecureContext && typeof navigator.clipboard?.writeText == "function";
|
|
3244
3290
|
}
|
|
3245
|
-
function
|
|
3291
|
+
function $i(e, t) {
|
|
3246
3292
|
let r = "";
|
|
3247
3293
|
return n(e).iterate({
|
|
3248
3294
|
from: t,
|
|
@@ -3259,7 +3305,7 @@ function Q(e, t, n) {
|
|
|
3259
3305
|
let r = n === "success" ? t.success() : n === "failure" ? t.failure() : t.copy();
|
|
3260
3306
|
e.querySelector(".cm-md-code-copy-text").textContent = r, e.nextElementSibling.textContent = n === "idle" ? "" : r;
|
|
3261
3307
|
}
|
|
3262
|
-
var
|
|
3308
|
+
var ea = /* @__PURE__ */ new WeakMap(), ta = class extends f {
|
|
3263
3309
|
constructor(e, t, n) {
|
|
3264
3310
|
super(), this.lineFrom = e, this.focusable = t, this.label = n;
|
|
3265
3311
|
}
|
|
@@ -3277,9 +3323,9 @@ var Qi = /* @__PURE__ */ new WeakMap(), $i = class extends f {
|
|
|
3277
3323
|
a.className = "cm-md-code-copy-status", a.setAttribute("role", "status"), n.append(r, i);
|
|
3278
3324
|
let o = document.createElement("span");
|
|
3279
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 () => {
|
|
3280
|
-
clearTimeout(
|
|
3326
|
+
clearTimeout(ea.get(o));
|
|
3281
3327
|
try {
|
|
3282
|
-
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));
|
|
3283
3329
|
} catch {
|
|
3284
3330
|
Q(n, t(), "failure");
|
|
3285
3331
|
}
|
|
@@ -3290,48 +3336,48 @@ var Qi = /* @__PURE__ */ new WeakMap(), $i = class extends f {
|
|
|
3290
3336
|
}), o;
|
|
3291
3337
|
}
|
|
3292
3338
|
destroy(e) {
|
|
3293
|
-
clearTimeout(
|
|
3339
|
+
clearTimeout(ea.get(e));
|
|
3294
3340
|
}
|
|
3295
3341
|
ignoreEvent() {
|
|
3296
3342
|
return !0;
|
|
3297
3343
|
}
|
|
3298
3344
|
};
|
|
3299
|
-
function
|
|
3300
|
-
if (!
|
|
3345
|
+
function na(e) {
|
|
3346
|
+
if (!Qi()) return d.none;
|
|
3301
3347
|
let t = [], r = e.readOnly, i = e.facet(Z).copy();
|
|
3302
3348
|
return n(e).iterate({ enter: (n) => {
|
|
3303
3349
|
if (n.name !== "FencedCode") return;
|
|
3304
3350
|
let a = e.doc.lineAt(n.from);
|
|
3305
|
-
return t.push(
|
|
3306
|
-
widget: new
|
|
3351
|
+
return t.push(ra.range(a.from), d.widget({
|
|
3352
|
+
widget: new ta(a.from, r, i),
|
|
3307
3353
|
side: 1
|
|
3308
3354
|
}).range(a.to)), !1;
|
|
3309
3355
|
} }), d.set(t, !0);
|
|
3310
3356
|
}
|
|
3311
|
-
var
|
|
3312
|
-
function
|
|
3357
|
+
var ra = d.line({ class: "cm-md-code-head" });
|
|
3358
|
+
function ia(e, t) {
|
|
3313
3359
|
let n = t.state.facet(Z);
|
|
3314
3360
|
for (let e of t.dom.querySelectorAll(".cm-md-code-copy[data-state=\"failure\"]")) Q(e, n, "idle");
|
|
3315
3361
|
return !1;
|
|
3316
3362
|
}
|
|
3317
|
-
var
|
|
3318
|
-
mousedown:
|
|
3319
|
-
keydown:
|
|
3363
|
+
var aa = t.domEventHandlers({
|
|
3364
|
+
mousedown: ia,
|
|
3365
|
+
keydown: ia
|
|
3320
3366
|
});
|
|
3321
|
-
function
|
|
3367
|
+
function oa(e) {
|
|
3322
3368
|
let n = b.define({
|
|
3323
|
-
create:
|
|
3324
|
-
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,
|
|
3325
3371
|
provide: (e) => t.decorations.from(e)
|
|
3326
3372
|
});
|
|
3327
3373
|
return [
|
|
3328
3374
|
Z.of(e),
|
|
3329
3375
|
n,
|
|
3330
|
-
|
|
3376
|
+
aa
|
|
3331
3377
|
];
|
|
3332
3378
|
}
|
|
3333
3379
|
// src/components/inputs/text-editor/text-editor.ts
|
|
3334
|
-
var
|
|
3380
|
+
var sa = class extends he {
|
|
3335
3381
|
constructor(...e) {
|
|
3336
3382
|
super(...e), this.noSpellcheck = !1, this.wrap = !0, this.resize = "auto", this.embedded = !1, this.syntax = "visible", this.typeaheads = [], this._mentionTypeahead = ((e) => ({
|
|
3337
3383
|
trigger: "@",
|
|
@@ -3350,7 +3396,7 @@ var aa = class extends he {
|
|
|
3350
3396
|
n && (e.preventDefault(), e.stopPropagation(), this.view.dispatch({ selection: {
|
|
3351
3397
|
anchor: n.from,
|
|
3352
3398
|
head: n.to
|
|
3353
|
-
} }), 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));
|
|
3354
3400
|
}, this._onAnnotationBadgeClick = (e) => {
|
|
3355
3401
|
let t = e.target?.closest?.(".cm-annotation-badge");
|
|
3356
3402
|
if (!t) return;
|
|
@@ -3387,34 +3433,34 @@ var aa = class extends he {
|
|
|
3387
3433
|
re,
|
|
3388
3434
|
Xt,
|
|
3389
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 })),
|
|
3390
|
-
v.low(
|
|
3436
|
+
v.low(Rr),
|
|
3391
3437
|
rr((e, t) => this._t("components.text-editor.annotation-count-label", {
|
|
3392
3438
|
count: e,
|
|
3393
3439
|
noun: this._t(e === 1 ? "components.text-editor.annotation-singular-lowercase" : "components.text-editor.annotation-plural-lowercase"),
|
|
3394
3440
|
quote: t
|
|
3395
3441
|
})),
|
|
3396
3442
|
v.highest(ut((e) => this._t("components.text-editor.open-in-new-tab-label", { url: e }))),
|
|
3397
|
-
|
|
3443
|
+
oa({
|
|
3398
3444
|
copy: () => this._t("components.text-editor.copy-code-action"),
|
|
3399
3445
|
success: () => this._t("components.text-editor.code-copy-success-text"),
|
|
3400
3446
|
failure: () => this._t("components.text-editor.code-copy-failure-text")
|
|
3401
3447
|
}),
|
|
3402
|
-
|
|
3448
|
+
li({
|
|
3403
3449
|
open: () => this._t("components.text-editor.task-open-label"),
|
|
3404
3450
|
done: () => this._t("components.text-editor.task-done-label")
|
|
3405
3451
|
}),
|
|
3406
3452
|
this._historyCompartment.of(oe()),
|
|
3407
3453
|
r(),
|
|
3408
|
-
|
|
3409
|
-
|
|
3410
|
-
|
|
3454
|
+
Ji,
|
|
3455
|
+
ti,
|
|
3456
|
+
cr(),
|
|
3411
3457
|
a(),
|
|
3412
|
-
|
|
3413
|
-
|
|
3458
|
+
Wr,
|
|
3459
|
+
jr,
|
|
3414
3460
|
...this.inputExtensions(),
|
|
3415
3461
|
this._wrapCompartment.of(this.wrap ? t.lineWrapping : []),
|
|
3416
3462
|
this._spellcheckCompartment.of(this.noSpellcheck ? [] : Tn()),
|
|
3417
|
-
this._syntaxCompartment.of(this.syntax === "hidden" ?
|
|
3463
|
+
this._syntaxCompartment.of(this.syntax === "hidden" ? Wi() : []),
|
|
3418
3464
|
t.updateListener.of((e) => {
|
|
3419
3465
|
(e.docChanged || e.selectionSet) && this._emitState();
|
|
3420
3466
|
}),
|
|
@@ -3465,7 +3511,7 @@ var aa = class extends he {
|
|
|
3465
3511
|
updated(e) {
|
|
3466
3512
|
if (super.updated(e), import.meta.env?.DEV && e.has("typeaheads") && ke(this, "invalid-typeahead-query", en(this.typeaheads)), !this.view) return;
|
|
3467
3513
|
let n = this._labelSignature();
|
|
3468
|
-
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();
|
|
3469
3515
|
}
|
|
3470
3516
|
_syncAnnotations() {
|
|
3471
3517
|
this.view?.dispatch({
|
|
@@ -3486,34 +3532,34 @@ var aa = class extends he {
|
|
|
3486
3532
|
this.view && V(this.view, "~~", "Strikethrough");
|
|
3487
3533
|
}
|
|
3488
3534
|
toggleHeading(e) {
|
|
3489
|
-
this.view &&
|
|
3535
|
+
this.view && mr(this.view, e);
|
|
3490
3536
|
}
|
|
3491
3537
|
setHeading(e) {
|
|
3492
|
-
this.view &&
|
|
3538
|
+
this.view && hr(this.view, e);
|
|
3493
3539
|
}
|
|
3494
3540
|
toggleBulletList() {
|
|
3495
|
-
this.view &&
|
|
3541
|
+
this.view && gr(this.view);
|
|
3496
3542
|
}
|
|
3497
3543
|
toggleTaskList() {
|
|
3498
|
-
this.view &&
|
|
3544
|
+
this.view && _r(this.view);
|
|
3499
3545
|
}
|
|
3500
3546
|
setList(e) {
|
|
3501
|
-
this.view &&
|
|
3547
|
+
this.view && yr(this.view, e);
|
|
3502
3548
|
}
|
|
3503
3549
|
toggleQuote() {
|
|
3504
|
-
this.view &&
|
|
3550
|
+
this.view && Er(this.view);
|
|
3505
3551
|
}
|
|
3506
3552
|
toggleLink(e = "") {
|
|
3507
|
-
this.view &&
|
|
3553
|
+
this.view && Or(this.view, e);
|
|
3508
3554
|
}
|
|
3509
3555
|
toggleCodeBlock() {
|
|
3510
|
-
this.view &&
|
|
3556
|
+
this.view && kr(this.view);
|
|
3511
3557
|
}
|
|
3512
3558
|
indent() {
|
|
3513
|
-
this.view &&
|
|
3559
|
+
this.view && xr(this.view);
|
|
3514
3560
|
}
|
|
3515
3561
|
outdent() {
|
|
3516
|
-
this.view &&
|
|
3562
|
+
this.view && Sr(this.view);
|
|
3517
3563
|
}
|
|
3518
3564
|
undo() {
|
|
3519
3565
|
this.view && (ge(this.view), this.view.focus());
|
|
@@ -3639,10 +3685,10 @@ var aa = class extends he {
|
|
|
3639
3685
|
}
|
|
3640
3686
|
getState() {
|
|
3641
3687
|
return {
|
|
3642
|
-
active: this.view ?
|
|
3688
|
+
active: this.view ? Ar(this.view) : { ...lr },
|
|
3643
3689
|
empty: !this.view || this.view.state.selection.main.empty,
|
|
3644
|
-
canIndent: this.view ?
|
|
3645
|
-
canOutdent: this.view ?
|
|
3690
|
+
canIndent: this.view ? Cr(this.view) : !1,
|
|
3691
|
+
canOutdent: this.view ? wr(this.view) : !1,
|
|
3646
3692
|
canUndo: this.view ? ce(this.view.state) > 0 : !1,
|
|
3647
3693
|
canRedo: this.view ? ue(this.view.state) > 0 : !1
|
|
3648
3694
|
};
|
|
@@ -3717,9 +3763,9 @@ var aa = class extends he {
|
|
|
3717
3763
|
}));
|
|
3718
3764
|
}
|
|
3719
3765
|
render() {
|
|
3720
|
-
return
|
|
3766
|
+
return Xi(this);
|
|
3721
3767
|
}
|
|
3722
|
-
}, $ = (
|
|
3768
|
+
}, $ = (sa.styles = Yi, sa);
|
|
3723
3769
|
S([x({
|
|
3724
3770
|
type: Boolean,
|
|
3725
3771
|
reflect: !0,
|