@nldd/design-system 0.25.1 → 0.26.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/custom-elements.json +2845 -79
- package/dist/cdn/autoloader.js +141 -140
- package/dist/cdn/chunks/{accordion-B7KdKJno.js → accordion-DA4IlxS5.js} +4 -4
- package/dist/cdn/chunks/{accordion-item-CVy8Apta.js → accordion-item-Ca1o93cq.js} +9 -7
- package/dist/cdn/chunks/{activity-indicator-CpJVlX6K.js → activity-indicator-Cj4H0Mbz.js} +5 -5
- package/dist/cdn/chunks/{admonition-C89WHJ9a.js → admonition-CdZSoO8O.js} +9 -7
- package/dist/cdn/chunks/{avatar-Bf0OfAtQ.js → avatar-Dhqn-Dmv.js} +6 -6
- package/dist/cdn/chunks/{avatar-group-BeBAv2wB.js → avatar-group-B017eF-u.js} +15 -15
- package/dist/cdn/chunks/{badge-C43FvgkK.js → badge-Bep5B0_g.js} +5 -5
- package/dist/cdn/chunks/{banner-OWK0gwFb.js → banner-DGpIXuE2.js} +7 -7
- package/dist/cdn/chunks/{bar-split-view-Dj1WycIW.js → bar-split-view-CKwJxd3e.js} +5 -5
- package/dist/cdn/chunks/{blockquote-D_5MxcSi.js → blockquote-ChMgaOuI.js} +3 -3
- package/dist/cdn/chunks/{box-BUoxiA7b.js → box-BRmziG-6.js} +3 -3
- package/dist/cdn/chunks/{breadcrumbs-DXxJTACL.js → breadcrumbs-BeVO8bkQ.js} +5 -5
- package/dist/cdn/chunks/{button-bar-BSt-QQRG.js → button-bar-CLxOdalJ.js} +3 -3
- package/dist/cdn/chunks/{button-DpKyquzm.js → button-cHBkq_s7.js} +9 -9
- package/dist/cdn/chunks/{button-group-D5QJWJzh.js → button-group-BIvKtEIX.js} +2 -2
- package/dist/cdn/chunks/{card-Cz4f-dCf.js → card-B5gp9Zly.js} +8 -6
- package/dist/cdn/chunks/{cell-zFw2V9wD.js → cell-D4Nrd5Z9.js} +6 -6
- package/dist/cdn/chunks/{checkbox-BDp3O8Nc.js → checkbox-CeLTJhAc.js} +4 -4
- package/dist/cdn/chunks/checkbox-field-C8cU8fuf.js +244 -0
- package/dist/cdn/chunks/checkbox-group-CC72cq-P.js +103 -0
- package/dist/cdn/chunks/{class-map-C7ao595e.js → class-map-xzscTu4B.js} +1 -1
- package/dist/cdn/chunks/{code-editor-Chm9EG_v.js → code-editor-BNhlXTSl.js} +10 -10
- package/dist/cdn/chunks/{code-viewer-DX322d7w.js → code-viewer-D_JwouYO.js} +35 -35
- package/dist/cdn/chunks/{codemirror-input-BLMJQbHq.js → codemirror-input-DJ0wgYrc.js} +368 -368
- package/dist/cdn/chunks/{collection-Bf8HoSki.js → collection-BXvz_OtU.js} +8 -8
- package/dist/cdn/chunks/{combo-box-VuU_F54v.js → combo-box-8kbmoStb.js} +10 -9
- package/dist/cdn/chunks/{container-qVTgmbpz.js → container-Dq-2uHd5.js} +2 -2
- package/dist/cdn/chunks/{custom-element-C5yyaCZS.js → custom-element-DeaCQ2NP.js} +1 -1
- package/dist/cdn/chunks/{date-field-By9Q8151.js → date-field-CQg1_73u.js} +13 -13
- package/dist/cdn/chunks/{date-picker-DtA4PXCh.js → date-picker-CTMxGOiA.js} +10 -10
- package/dist/cdn/chunks/{decorate-CkbtFnic.js → decorate-CCYde2ES.js} +1 -1
- package/dist/cdn/chunks/described-by-mixin-BYFim7aO.js +62 -0
- package/dist/cdn/chunks/{description-cell-D2INE8A3.js → description-cell-GcVeCz2_.js} +6 -6
- package/dist/cdn/chunks/{dev-checks-UHHli7gE.js → dev-checks-CSlbfDuF.js} +43 -5
- package/dist/cdn/chunks/directive-helpers-DgaADFyY.js +24 -0
- package/dist/cdn/chunks/{dist-BG0xnVUi.js → dist-1OQdP4ho.js} +10 -10
- package/dist/cdn/chunks/{dist-C-T4uKP1.js → dist-5vPsM2aV.js} +8 -8
- package/dist/cdn/chunks/{dist-VXOtAJ-m.js → dist-B23jHvJ5.js} +15 -15
- package/dist/cdn/chunks/{dist-Cm51DQO4.js → dist-CNy2sPTt.js} +6 -6
- package/dist/cdn/chunks/{dist-B1pwN_VD.js → dist-CcpLhc4y.js} +7 -7
- package/dist/cdn/chunks/{dist-Ce38ZA7b.js → dist-CyDpBAaD.js} +7 -7
- package/dist/cdn/chunks/{dist-pCih3zzc.js → dist-D4SViUJx.js} +21 -21
- package/dist/cdn/chunks/{dist-qo8avphr.js → dist-DBxjWahH.js} +4 -4
- package/dist/cdn/chunks/{dist-BzfFo9Yu.js → dist-DLtwMUDc.js} +18 -18
- package/dist/cdn/chunks/{dist-Dg3ySzj7.js → dist-Da_liXcd.js} +124 -124
- package/dist/cdn/chunks/{dist-zxb4QZZG.js → dist-VCymi0hs.js} +250 -250
- package/dist/cdn/chunks/{divider-Cv_vyHvw.js → divider-8XD3xTbl.js} +2 -2
- package/dist/cdn/chunks/{document-tab-bar-CdOxr8KC.js → document-tab-bar-RBAmckHS.js} +9 -9
- package/dist/cdn/chunks/{dropdown-DC9J6k0P.js → dropdown-DVlxPcjr.js} +5 -5
- package/dist/cdn/chunks/field-button-controller-yvICuXoE.js +26 -0
- package/dist/cdn/chunks/{file-field-CsrTk4uk.js → file-field-BrHnFplX.js} +12 -12
- package/dist/cdn/chunks/{form-ClOD1OKh.js → form-DGHeGEIr.js} +1 -1
- package/dist/cdn/chunks/{form-actions-CwaXGj43.js → form-actions-CHwWKfMM.js} +2 -2
- package/dist/cdn/chunks/{form-field-LoX9v2Pa.js → form-field-CdTSI-8h.js} +21 -16
- package/dist/cdn/chunks/{form-section-i6piyKuy.js → form-section-CjECOIiZ.js} +1 -1
- package/dist/cdn/chunks/{full-bleed-section-6aAfCnez.js → full-bleed-section-CQgq4iGQ.js} +3 -3
- package/dist/cdn/chunks/{hero-CTQAayXT.js → hero-DhdcYt2N.js} +4 -4
- package/dist/cdn/chunks/{icon-button-DuEiOOoc.js → icon-button-DT_Bi4Ac.js} +17 -13
- package/dist/cdn/chunks/{icon-cell-uZkR3hZx.js → icon-cell-C-qrZAlN.js} +5 -5
- package/dist/cdn/chunks/{icon-B5kHyCz2.js → icon-qpmEfU9B.js} +2 -2
- package/dist/cdn/chunks/{identity-DR6DMjke.js → identity-DFmvuPkl.js} +6 -6
- package/dist/cdn/chunks/{if-defined-B7fJBsUt.js → if-defined-BINBE69I.js} +1 -1
- package/dist/cdn/chunks/{image-CuBUo_MQ.js → image-B4M3h1xJ.js} +8 -8
- package/dist/cdn/chunks/{inline-dialog-CZNkWJIA.js → inline-dialog-L-NvjANF.js} +6 -6
- package/dist/cdn/chunks/{just-in-time-education-qwg9hTDX.js → just-in-time-education-CWplH4r9.js} +5 -5
- package/dist/cdn/chunks/{kanban-Bkg-nZmX.js → kanban-B6Wa-2aM.js} +5 -5
- package/dist/cdn/chunks/{kanban-column-C8iRyRNY.js → kanban-column-D2-Xq79_.js} +4 -4
- package/dist/cdn/chunks/{keyboard-shortcut-Rq5IHU-e.js → keyboard-shortcut-Ci95olxF.js} +118 -47
- package/dist/cdn/chunks/{languages-DLHsACpp.js → languages-C9AGuuSS.js} +43 -32
- package/dist/cdn/chunks/{link-CgjFwaHP.js → link-BJB2a_fG.js} +36 -28
- package/dist/cdn/chunks/{link-group-5W0GAmTq.js → link-group-aNoedLZo.js} +2 -2
- package/dist/cdn/chunks/{list-BASqIKtP.js → list-CZWX62tH.js} +8 -8
- package/dist/cdn/chunks/{list-item-DTcPysIP.js → list-item-DHzsbK_S.js} +5 -5
- package/dist/cdn/chunks/{list-item-segment-CRw0y4kg.js → list-item-segment-CHLlU9Gg.js} +3 -3
- package/dist/cdn/chunks/{menu-CYILGTpB.js → menu-NGpB1SKq.js} +42 -22
- package/dist/cdn/chunks/{menu-bar-CL566HmJ.js → menu-bar-CJazkmY7.js} +6 -6
- package/dist/cdn/chunks/{menu-bar-item-C6OrUu_4.js → menu-bar-item-CSqXWNKE.js} +6 -6
- package/dist/cdn/chunks/{menu-divider-BtU9eBSb.js → menu-divider-Cn1hTpcM.js} +3 -3
- package/dist/cdn/chunks/{menu-group-r2TvdqJB.js → menu-group-C71K1Vmv.js} +4 -4
- package/dist/cdn/chunks/{menu-item-CS45jTLu.js → menu-item-TqBlQfI2.js} +4 -4
- package/dist/cdn/chunks/{menu.template-CF8Iau1s.js → menu.template-DthELYky.js} +21 -16
- package/dist/cdn/chunks/{modal-dialog-C9NBq8TO.js → modal-dialog-0V2HsrJC.js} +4 -4
- package/dist/cdn/chunks/{multi-line-text-field-BkxV0vqA.js → multi-line-text-field-BV4uUDoK.js} +60 -34
- package/dist/cdn/chunks/{navigation-split-view-DNrQYkg7.js → navigation-split-view-tPhkxEVD.js} +4 -4
- package/dist/cdn/chunks/{notification-Dzpy9hCc.js → notification-CZccv6qx.js} +6 -6
- package/dist/cdn/chunks/{number-field-BJCUe-bI.js → number-field-4R2blHda.js} +8 -8
- package/dist/cdn/chunks/{one-half-one-half-section-Ctw8ri5v.js → one-half-one-half-section-h2fLPQfP.js} +3 -3
- package/dist/cdn/chunks/{one-third-two-thirds-section-DxUUH8lS.js → one-third-two-thirds-section-mqUAH5lK.js} +3 -3
- package/dist/cdn/chunks/{one-time-code-field-DGDyqIMd.js → one-time-code-field-Bf_qymKd.js} +8 -7
- package/dist/cdn/chunks/{page-BpavFPML.js → page-Kipfvmi6.js} +4 -4
- package/dist/cdn/chunks/{page-footer-CVqmyulx.js → page-footer-DxE966Oe.js} +4 -4
- package/dist/cdn/chunks/{page-section-mixin-BHg-Wre9.js → page-section-mixin-DpF9JDpd.js} +3 -3
- package/dist/cdn/chunks/{pagination-BGZYq-eO.js → pagination-DUFFhaU8.js} +6 -6
- package/dist/cdn/chunks/{password-field-BIFfLAls.js → password-field-DdYAVmF3.js} +9 -9
- package/dist/cdn/chunks/{popover-TCW20ibN.js → popover-CRHxyhGx.js} +6 -6
- package/dist/cdn/chunks/{progress-bar-C4bLuJBa.js → progress-bar-BuYsjmSo.js} +7 -7
- package/dist/cdn/chunks/{progress-circle-BePtt89f.js → progress-circle-Cvu1bfNG.js} +7 -7
- package/dist/cdn/chunks/{radio-button-CLiuwjA1.js → radio-button-B_4AxWDx.js} +3 -3
- package/dist/cdn/chunks/{radio-button-field-BPva1mUv.js → radio-button-field-D7jIg6Oi.js} +6 -6
- package/dist/cdn/chunks/{radio-button-group-Z5s4obz6.js → radio-button-group-D_OezDhB.js} +12 -6
- package/dist/cdn/chunks/{render-marked-C3ypoEZM.js → render-marked-CIuiSS_8.js} +1 -1
- package/dist/cdn/chunks/{reorder-handle-cell-BB9b4T_d.js → reorder-handle-cell-DNPaZjSC.js} +4 -4
- package/dist/cdn/chunks/{reorder-handle-mixin-DBjNe6Rl.js → reorder-handle-mixin-CgvWq4fF.js} +2 -2
- package/dist/cdn/chunks/repeat-DfVuWl6o.js +57 -0
- package/dist/cdn/chunks/{return-focus-BzZWhXhc.js → return-focus-D0fF2hjd.js} +1 -1
- package/dist/cdn/chunks/{rich-text-DTxHo8E_.js → rich-text-CVHlMQY6.js} +3 -3
- package/dist/cdn/chunks/{row-header-mixin-BcwoEgu7.js → row-header-mixin-B25JK2B3.js} +2 -2
- package/dist/cdn/chunks/{scroll-fade-Dul0IfE1.js → scroll-fade-Dv57rTww.js} +2 -2
- package/dist/cdn/chunks/{search-field-BeZN7S8J.js → search-field-hmD_DXbG.js} +11 -11
- package/dist/cdn/chunks/{segmented-control-Dzu8xoqB.js → segmented-control-e8e-jYSw.js} +6 -6
- package/dist/cdn/chunks/{shadow-resets-Dlq8Oecv.js → shadow-resets-CRdvf-Ei.js} +2 -2
- package/dist/cdn/chunks/{sheet-DaQpfAep.js → sheet-D09y3J45.js} +4 -4
- package/dist/cdn/chunks/{shell-DSNgonKU.js → shell-CV3gooGg.js} +3 -3
- package/dist/cdn/chunks/{side-by-side-split-view-DhGbcDrs.js → side-by-side-split-view-Ckz1C9zk.js} +4 -4
- package/dist/cdn/chunks/{sidebar-section-BlJmPb9C.js → sidebar-section-CdyD-x4t.js} +7 -7
- package/dist/cdn/chunks/{simple-section-CYiTEFqN.js → simple-section-CEf38rBZ.js} +3 -3
- package/dist/cdn/chunks/{skip-link-CReOb-Ci.js → skip-link-DMRhATWw.js} +4 -4
- package/dist/cdn/chunks/{slider-DUEGol_V.js → slider-Db3FPiP6.js} +8 -8
- package/dist/cdn/chunks/{spacer-CPmyJDQq.js → spacer-BPFIYueo.js} +2 -2
- package/dist/cdn/chunks/{spacer-cell-DJEv0v6s.js → spacer-cell-kITa3CDV.js} +4 -4
- package/dist/cdn/chunks/{split-button-B3vfYAdy.js → split-button-CJs9-Nha.js} +7 -7
- package/dist/cdn/chunks/{split-view-divider-pSUpnEPX.js → split-view-divider-lHlM1Ss8.js} +2 -2
- package/dist/cdn/chunks/{split-view-pane-J1RVr_w1.js → split-view-pane-DlsbZtyo.js} +3 -3
- package/dist/cdn/chunks/{stacked-split-view-B67fT-Ch.js → stacked-split-view-uRSVhrMd.js} +4 -4
- package/dist/cdn/chunks/{static-html-BT4LOKbV.js → static-html-BahSPV_4.js} +1 -1
- package/dist/cdn/chunks/{status-bar-CGXqgNOf.js → status-bar-DCJLVpsW.js} +4 -4
- package/dist/cdn/chunks/{step-bar-DdsA2Egs.js → step-bar-CRR2jiyo.js} +6 -6
- package/dist/cdn/chunks/{step-cell-DsTAgMCx.js → step-cell-CbtKxJNJ.js} +5 -5
- package/dist/cdn/chunks/{stepper-DPqXiLQr.js → stepper-Con1_CnB.js} +6 -6
- package/dist/cdn/chunks/{style-map-B7yv7Y8k.js → style-map-uOwLerwV.js} +1 -1
- package/dist/cdn/chunks/{swatch-picker-D9QZmbNN.js → swatch-picker-Bqn0eaC9.js} +5 -5
- package/dist/cdn/chunks/{switch-CE2glvZQ.js → switch-CMQcLEBJ.js} +4 -4
- package/dist/cdn/chunks/{switch-field-Dr2LovXc.js → switch-field-D9kWq4Kw.js} +5 -5
- package/dist/cdn/chunks/{tab-bar-DYZbToZB.js → tab-bar-DXzyZI3V.js} +8 -8
- package/dist/cdn/chunks/{table-DoQMJbSg.js → table-CWACLpHx.js} +5 -5
- package/dist/cdn/chunks/{tag-DOX5nY-Z.js → tag-Bo4yJbtF.js} +4 -4
- package/dist/cdn/chunks/{term-CxGzPnhq.js → term-CQ379ZbN.js} +12 -12
- package/dist/cdn/chunks/{text-Dqe0uTK7.js → text-D-dFoj6N.js} +3 -3
- package/dist/cdn/chunks/{text-cell-ByGrujhK.js → text-cell-Be1hStxp.js} +8 -8
- package/dist/cdn/chunks/{text-editor-DT9oWQCT.js → text-editor-BjzQEBWm.js} +1372 -904
- package/dist/cdn/chunks/{text-field-DKz5IRAU.js → text-field-DA8nirp6.js} +47 -65
- package/dist/cdn/chunks/{time-field-Dh7nTwNc.js → time-field-Dd_TxJuf.js} +15 -15
- package/dist/cdn/chunks/{time-picker-Bp-l4JfF.js → time-picker-B0-rv1qp.js} +5 -5
- package/dist/cdn/chunks/{title-CdIWXNtc.js → title-DOoPdG_i.js} +4 -4
- package/dist/cdn/chunks/{title-cell-DNbP8l_x.js → title-cell-BzCNOMGr.js} +8 -8
- package/dist/cdn/chunks/{toggle-button-CPMxB3gN.js → toggle-button-9PbDHviQ.js} +60 -42
- package/dist/cdn/chunks/{toggle-button-group-ERWVyRX5.js → toggle-button-group-C-H-xp0M.js} +11 -5
- package/dist/cdn/chunks/{token-CG8dR3EH.js → token-CMKFC3gz.js} +5 -5
- package/dist/cdn/chunks/{token-field-B8wqHKan.js → token-field-D4-XHfnG.js} +11 -11
- package/dist/cdn/chunks/{toolbar-item-xJEewchW.js → toolbar-item-ZYoyKOyy.js} +3 -3
- package/dist/cdn/chunks/{toolbar-title-C08aG67Y.js → toolbar-title-FKtQ8ZC4.js} +4 -4
- package/dist/cdn/chunks/{toolbar-CiZoecHm.js → toolbar-z9OhEE5l.js} +8 -8
- package/dist/cdn/chunks/{toolbar.styles-DmAHodW4.js → toolbar.styles-DDjpdCHV.js} +3 -3
- package/dist/cdn/chunks/{tooltip-660R32cn.js → tooltip-BvRNYRo3.js} +5 -5
- package/dist/cdn/chunks/{top-navigation-bar-B1HFShH8.js → top-navigation-bar-BHPQntER.js} +17 -17
- package/dist/cdn/chunks/{top-title-bar-BLZZd0Iu.js → top-title-bar-BVjegLlh.js} +6 -6
- package/dist/cdn/chunks/{translations-CF08wvn-.js → translations-cJjO6nQV.js} +1 -1
- package/dist/cdn/chunks/{two-thirds-one-third-section-Dqz7UoSH.js → two-thirds-one-third-section-BdBHQuXc.js} +3 -3
- package/dist/cdn/chunks/{validation-list-D-bzOl5H.js → validation-list-5E3-3_95.js} +3 -3
- package/dist/cdn/chunks/{visibility-mixin-X9d6wHvR.js → visibility-mixin-DvRe3O8t.js} +2 -2
- package/dist/cdn/chunks/{visually-hidden-Cew5_ldu.js → visually-hidden-F85D_HcR.js} +2 -2
- package/dist/cdn/chunks/{window-DSgA26_c.js → window-CabW35M1.js} +5 -5
- package/dist/cdn/chunks/{with-translations-Boc5Daaj.js → with-translations-BHDG37HJ.js} +3 -3
- package/dist/components/actions/button/button.d.ts +1 -1
- package/dist/components/actions/button/button.js +1 -1
- package/dist/components/actions/button/button.template.js +1 -1
- package/dist/components/actions/icon-button/icon-button.d.ts +5 -1
- package/dist/components/actions/icon-button/icon-button.d.ts.map +1 -1
- package/dist/components/actions/icon-button/icon-button.js +10 -5
- package/dist/components/actions/icon-button/icon-button.js.map +1 -1
- package/dist/components/actions/menu/menu-item.d.ts +1 -1
- package/dist/components/actions/menu/menu-item.js +1 -1
- package/dist/components/actions/menu/menu.d.ts +13 -1
- package/dist/components/actions/menu/menu.d.ts.map +1 -1
- package/dist/components/actions/menu/menu.js +53 -2
- package/dist/components/actions/menu/menu.js.map +1 -1
- package/dist/components/actions/menu/menu.pointer.d.ts +6 -2
- package/dist/components/actions/menu/menu.pointer.d.ts.map +1 -1
- package/dist/components/actions/menu/menu.pointer.js +15 -5
- package/dist/components/actions/menu/menu.pointer.js.map +1 -1
- package/dist/components/actions/menu/menu.styles.d.ts.map +1 -1
- package/dist/components/actions/menu/menu.styles.js +16 -11
- package/dist/components/actions/menu/menu.styles.js.map +1 -1
- package/dist/components/actions/menu/menu.template.js +1 -1
- package/dist/components/content/accordion/accordion-item.styles.d.ts.map +1 -1
- package/dist/components/content/accordion/accordion-item.styles.js +5 -3
- package/dist/components/content/accordion/accordion-item.styles.js.map +1 -1
- package/dist/components/content/admonition/admonition.styles.d.ts.map +1 -1
- package/dist/components/content/admonition/admonition.styles.js +5 -3
- package/dist/components/content/admonition/admonition.styles.js.map +1 -1
- package/dist/components/content/icon/icon.d.ts +1 -1
- package/dist/components/content/icon/icon.js +1 -1
- package/dist/components/content/keyboard-shortcut/keyboard-shortcut.d.ts +16 -9
- package/dist/components/content/keyboard-shortcut/keyboard-shortcut.d.ts.map +1 -1
- package/dist/components/content/keyboard-shortcut/keyboard-shortcut.js +18 -12
- package/dist/components/content/keyboard-shortcut/keyboard-shortcut.js.map +1 -1
- package/dist/components/content/keyboard-shortcut/keyboard-shortcut.styles.d.ts.map +1 -1
- package/dist/components/content/keyboard-shortcut/keyboard-shortcut.styles.js +26 -12
- package/dist/components/content/keyboard-shortcut/keyboard-shortcut.styles.js.map +1 -1
- package/dist/components/content/keyboard-shortcut/keyboard-shortcut.template.d.ts.map +1 -1
- package/dist/components/content/keyboard-shortcut/keyboard-shortcut.template.js +12 -3
- package/dist/components/content/keyboard-shortcut/keyboard-shortcut.template.js.map +1 -1
- package/dist/components/content/tooltip/tooltip.template.js +1 -1
- package/dist/components/forms/form-field/form-field.d.ts +3 -1
- package/dist/components/forms/form-field/form-field.d.ts.map +1 -1
- package/dist/components/forms/form-field/form-field.js +14 -3
- package/dist/components/forms/form-field/form-field.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-field/checkbox-field.d.ts +44 -2
- package/dist/components/inputs/checkbox-field/checkbox-field.d.ts.map +1 -1
- package/dist/components/inputs/checkbox-field/checkbox-field.js +129 -9
- package/dist/components/inputs/checkbox-field/checkbox-field.js.map +1 -1
- package/dist/components/inputs/checkbox-field/checkbox-field.styles.d.ts.map +1 -1
- package/dist/components/inputs/checkbox-field/checkbox-field.styles.js +6 -0
- package/dist/components/inputs/checkbox-field/checkbox-field.styles.js.map +1 -1
- package/dist/components/inputs/checkbox-field/checkbox-field.template.d.ts.map +1 -1
- package/dist/components/inputs/checkbox-field/checkbox-field.template.js +18 -4
- package/dist/components/inputs/checkbox-field/checkbox-field.template.js.map +1 -1
- package/dist/components/inputs/checkbox-group/checkbox-group.d.ts +77 -0
- package/dist/components/inputs/checkbox-group/checkbox-group.d.ts.map +1 -0
- package/dist/components/inputs/checkbox-group/checkbox-group.js +188 -0
- package/dist/components/inputs/checkbox-group/checkbox-group.js.map +1 -0
- package/dist/components/inputs/checkbox-group/checkbox-group.styles.d.ts +2 -0
- package/dist/components/inputs/checkbox-group/checkbox-group.styles.d.ts.map +1 -0
- package/dist/components/inputs/checkbox-group/checkbox-group.styles.js +28 -0
- package/dist/components/inputs/checkbox-group/checkbox-group.styles.js.map +1 -0
- package/dist/components/inputs/checkbox-group/checkbox-group.template.d.ts +4 -0
- package/dist/components/inputs/checkbox-group/checkbox-group.template.d.ts.map +1 -0
- package/dist/components/inputs/checkbox-group/checkbox-group.template.js +9 -0
- package/dist/components/inputs/checkbox-group/checkbox-group.template.js.map +1 -0
- package/dist/components/inputs/combo-box/combo-box.d.ts +3 -0
- package/dist/components/inputs/combo-box/combo-box.d.ts.map +1 -1
- package/dist/components/inputs/combo-box/combo-box.js +3 -0
- package/dist/components/inputs/combo-box/combo-box.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 +1 -0
- package/dist/components/inputs/combo-box/combo-box.styles.js.map +1 -1
- package/dist/components/inputs/date-field/date-field.d.ts +3 -0
- package/dist/components/inputs/date-field/date-field.d.ts.map +1 -1
- package/dist/components/inputs/date-field/date-field.js +3 -0
- package/dist/components/inputs/date-field/date-field.js.map +1 -1
- package/dist/components/inputs/dropdown/dropdown.d.ts +4 -0
- package/dist/components/inputs/dropdown/dropdown.d.ts.map +1 -1
- package/dist/components/inputs/dropdown/dropdown.js +4 -0
- package/dist/components/inputs/dropdown/dropdown.js.map +1 -1
- package/dist/components/inputs/multi-line-text-field/multi-line-text-field.d.ts +8 -0
- package/dist/components/inputs/multi-line-text-field/multi-line-text-field.d.ts.map +1 -1
- package/dist/components/inputs/multi-line-text-field/multi-line-text-field.js +8 -0
- package/dist/components/inputs/multi-line-text-field/multi-line-text-field.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 +24 -2
- package/dist/components/inputs/multi-line-text-field/multi-line-text-field.styles.js.map +1 -1
- package/dist/components/inputs/multi-line-text-field/multi-line-text-field.template.d.ts.map +1 -1
- package/dist/components/inputs/multi-line-text-field/multi-line-text-field.template.js +3 -0
- package/dist/components/inputs/multi-line-text-field/multi-line-text-field.template.js.map +1 -1
- package/dist/components/inputs/number-field/number-field.d.ts +3 -0
- package/dist/components/inputs/number-field/number-field.d.ts.map +1 -1
- package/dist/components/inputs/number-field/number-field.js +3 -0
- package/dist/components/inputs/number-field/number-field.js.map +1 -1
- package/dist/components/inputs/one-time-code-field/one-time-code-field.d.ts +3 -0
- package/dist/components/inputs/one-time-code-field/one-time-code-field.d.ts.map +1 -1
- package/dist/components/inputs/one-time-code-field/one-time-code-field.js +3 -0
- package/dist/components/inputs/one-time-code-field/one-time-code-field.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 +1 -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.d.ts +3 -0
- package/dist/components/inputs/password-field/password-field.d.ts.map +1 -1
- package/dist/components/inputs/password-field/password-field.js +3 -0
- package/dist/components/inputs/password-field/password-field.js.map +1 -1
- package/dist/components/inputs/password-field/password-field.styles.js +1 -1
- package/dist/components/inputs/radio-button-field/radio-button-field.d.ts.map +1 -1
- package/dist/components/inputs/radio-button-field/radio-button-field.js +5 -0
- package/dist/components/inputs/radio-button-field/radio-button-field.js.map +1 -1
- package/dist/components/inputs/radio-button-group/radio-button-group.d.ts +5 -0
- package/dist/components/inputs/radio-button-group/radio-button-group.d.ts.map +1 -1
- package/dist/components/inputs/radio-button-group/radio-button-group.js +19 -9
- package/dist/components/inputs/radio-button-group/radio-button-group.js.map +1 -1
- package/dist/components/inputs/search-field/search-field.d.ts +3 -0
- package/dist/components/inputs/search-field/search-field.d.ts.map +1 -1
- package/dist/components/inputs/search-field/search-field.js +3 -0
- package/dist/components/inputs/search-field/search-field.js.map +1 -1
- package/dist/components/inputs/search-field/search-field.styles.js +1 -1
- package/dist/components/inputs/text-editor/text-editor.clipboard.d.ts +5 -2
- package/dist/components/inputs/text-editor/text-editor.clipboard.d.ts.map +1 -1
- package/dist/components/inputs/text-editor/text-editor.clipboard.js +23 -4
- package/dist/components/inputs/text-editor/text-editor.clipboard.js.map +1 -1
- package/dist/components/inputs/text-editor/text-editor.code-copy.d.ts.map +1 -1
- package/dist/components/inputs/text-editor/text-editor.code-copy.js +38 -18
- package/dist/components/inputs/text-editor/text-editor.code-copy.js.map +1 -1
- package/dist/components/inputs/text-editor/text-editor.commands.d.ts +8 -6
- package/dist/components/inputs/text-editor/text-editor.commands.d.ts.map +1 -1
- package/dist/components/inputs/text-editor/text-editor.commands.js +23 -9
- package/dist/components/inputs/text-editor/text-editor.commands.js.map +1 -1
- package/dist/components/inputs/text-editor/text-editor.d.ts +26 -0
- package/dist/components/inputs/text-editor/text-editor.d.ts.map +1 -1
- package/dist/components/inputs/text-editor/text-editor.js +165 -15
- package/dist/components/inputs/text-editor/text-editor.js.map +1 -1
- package/dist/components/inputs/text-editor/text-editor.list-input.d.ts +17 -0
- package/dist/components/inputs/text-editor/text-editor.list-input.d.ts.map +1 -0
- package/dist/components/inputs/text-editor/text-editor.list-input.js +133 -0
- package/dist/components/inputs/text-editor/text-editor.list-input.js.map +1 -0
- package/dist/components/inputs/text-editor/text-editor.markdown.d.ts.map +1 -1
- package/dist/components/inputs/text-editor/text-editor.markdown.js +28 -1
- package/dist/components/inputs/text-editor/text-editor.markdown.js.map +1 -1
- package/dist/components/inputs/text-editor/text-editor.mentions.d.ts +4 -2
- package/dist/components/inputs/text-editor/text-editor.mentions.d.ts.map +1 -1
- package/dist/components/inputs/text-editor/text-editor.mentions.js +9 -5
- package/dist/components/inputs/text-editor/text-editor.mentions.js.map +1 -1
- package/dist/components/inputs/text-editor/text-editor.ordered-list.d.ts.map +1 -1
- package/dist/components/inputs/text-editor/text-editor.ordered-list.js +89 -18
- package/dist/components/inputs/text-editor/text-editor.ordered-list.js.map +1 -1
- package/dist/components/inputs/text-editor/text-editor.paste.d.ts +10 -0
- package/dist/components/inputs/text-editor/text-editor.paste.d.ts.map +1 -0
- package/dist/components/inputs/text-editor/text-editor.paste.js +116 -0
- package/dist/components/inputs/text-editor/text-editor.paste.js.map +1 -0
- package/dist/components/inputs/text-editor/text-editor.styles.d.ts.map +1 -1
- package/dist/components/inputs/text-editor/text-editor.styles.js +49 -2
- package/dist/components/inputs/text-editor/text-editor.styles.js.map +1 -1
- package/dist/components/inputs/text-editor/text-editor.template.d.ts +1 -1
- package/dist/components/inputs/text-editor/text-editor.template.d.ts.map +1 -1
- package/dist/components/inputs/text-editor/text-editor.template.js +4 -3
- package/dist/components/inputs/text-editor/text-editor.template.js.map +1 -1
- package/dist/components/inputs/text-editor/text-editor.toolbar.d.ts +53 -0
- package/dist/components/inputs/text-editor/text-editor.toolbar.d.ts.map +1 -0
- package/dist/components/inputs/text-editor/text-editor.toolbar.js +302 -0
- package/dist/components/inputs/text-editor/text-editor.toolbar.js.map +1 -0
- package/dist/components/inputs/text-field/text-field.d.ts +7 -13
- package/dist/components/inputs/text-field/text-field.d.ts.map +1 -1
- package/dist/components/inputs/text-field/text-field.js +8 -50
- package/dist/components/inputs/text-field/text-field.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 +1 -2
- package/dist/components/inputs/text-field/text-field.styles.js.map +1 -1
- package/dist/components/inputs/text-field/text-field.template.js +2 -2
- package/dist/components/inputs/text-field/text-field.template.js.map +1 -1
- package/dist/components/inputs/time-field/time-field.d.ts +3 -0
- package/dist/components/inputs/time-field/time-field.d.ts.map +1 -1
- package/dist/components/inputs/time-field/time-field.js +3 -0
- package/dist/components/inputs/time-field/time-field.js.map +1 -1
- package/dist/components/inputs/toggle-button/toggle-button.d.ts +22 -2
- package/dist/components/inputs/toggle-button/toggle-button.d.ts.map +1 -1
- package/dist/components/inputs/toggle-button/toggle-button.js +53 -7
- package/dist/components/inputs/toggle-button/toggle-button.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 +3 -1
- package/dist/components/inputs/toggle-button/toggle-button.styles.js.map +1 -1
- package/dist/components/inputs/toggle-button/toggle-button.template.d.ts.map +1 -1
- package/dist/components/inputs/toggle-button/toggle-button.template.js +6 -2
- package/dist/components/inputs/toggle-button/toggle-button.template.js.map +1 -1
- package/dist/components/inputs/toggle-button-group/toggle-button-group.d.ts +6 -1
- package/dist/components/inputs/toggle-button-group/toggle-button-group.d.ts.map +1 -1
- package/dist/components/inputs/toggle-button-group/toggle-button-group.js +20 -10
- package/dist/components/inputs/toggle-button-group/toggle-button-group.js.map +1 -1
- package/dist/components/inputs/token-field/token-field.d.ts +3 -0
- package/dist/components/inputs/token-field/token-field.d.ts.map +1 -1
- package/dist/components/inputs/token-field/token-field.js +3 -0
- package/dist/components/inputs/token-field/token-field.js.map +1 -1
- package/dist/components/layout/card/card.d.ts +2 -0
- package/dist/components/layout/card/card.d.ts.map +1 -1
- package/dist/components/layout/card/card.js +5 -2
- package/dist/components/layout/card/card.js.map +1 -1
- package/dist/components/navigation/link/link.d.ts +13 -3
- package/dist/components/navigation/link/link.d.ts.map +1 -1
- package/dist/components/navigation/link/link.js +25 -9
- package/dist/components/navigation/link/link.js.map +1 -1
- package/dist/components/status-and-feedback/step-bar/step-bar.styles.js +1 -1
- package/dist/css/dropdown.css +17 -0
- package/dist/css/global-open-font.css +1 -0
- package/dist/css/global.css +1 -0
- package/dist/css/rich-text.css +8 -2
- package/dist/css/variables.css +2 -1
- package/dist/nldd.min.js +941 -789
- package/dist/types/react.d.ts +151 -15
- package/dist/types/vue.d.ts +305 -45
- 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/codemirror/codemirror-element.d.ts +12 -1
- package/dist/utilities/codemirror/codemirror-element.d.ts.map +1 -1
- package/dist/utilities/codemirror/codemirror-element.js +23 -4
- package/dist/utilities/codemirror/codemirror-element.js.map +1 -1
- package/dist/utilities/codemirror/codemirror-input.d.ts +3 -0
- package/dist/utilities/codemirror/codemirror-input.d.ts.map +1 -1
- package/dist/utilities/codemirror/codemirror-input.js +14 -3
- package/dist/utilities/codemirror/codemirror-input.js.map +1 -1
- package/dist/utilities/described-by-mixin.d.ts +6 -0
- package/dist/utilities/described-by-mixin.d.ts.map +1 -1
- package/dist/utilities/described-by-mixin.js +81 -2
- package/dist/utilities/described-by-mixin.js.map +1 -1
- package/dist/utilities/dev-rules.generated.d.ts.map +1 -1
- package/dist/utilities/dev-rules.generated.js +46 -5
- package/dist/utilities/dev-rules.generated.js.map +1 -1
- package/dist/utilities/field-button-controller.d.ts +28 -0
- package/dist/utilities/field-button-controller.d.ts.map +1 -0
- package/dist/utilities/field-button-controller.js +56 -0
- package/dist/utilities/field-button-controller.js.map +1 -0
- package/dist/utilities/return-focus.d.ts.map +1 -1
- package/dist/utilities/return-focus.js +3 -0
- package/dist/utilities/return-focus.js.map +1 -1
- package/dist/utilities/shortcut.d.ts +14 -0
- package/dist/utilities/shortcut.d.ts.map +1 -1
- package/dist/utilities/shortcut.js +37 -1
- package/dist/utilities/shortcut.js.map +1 -1
- package/lint/data.generated.json +1 -1
- package/lint/linter.js +4 -1
- package/package.json +6 -2
- package/dist/cdn/chunks/checkbox-field-CSXV0prA.js +0 -162
- package/dist/cdn/chunks/described-by-mixin-DXC6jkCd.js +0 -35
- package/dist/cdn/chunks/repeat-s95Ixbpx.js +0 -76
|
@@ -1,30 +1,30 @@
|
|
|
1
1
|
import { l as e } from "./style-mod-DGMhzWuk.js";
|
|
2
|
-
import { $ as t, A as n, C as r,
|
|
3
|
-
import { r as
|
|
4
|
-
import { n as
|
|
5
|
-
import { t as
|
|
6
|
-
import { t as
|
|
7
|
-
import { t as
|
|
2
|
+
import { $ as t, A as n, C as r, E as i, K as a, O as o, Q as s, X as c, Y as l, Z as u, b as d, ct as f, et as p, ht as m, i as ee, j as h, lt as te, mt as g, o as ne, pt as re, st as ie, tt as ae, ut as _, w as oe, x as se } from "./languages-C9AGuuSS.js";
|
|
3
|
+
import { r as v } from "./custom-element-DeaCQ2NP.js";
|
|
4
|
+
import { n as ce, t as y } from "./decorate-CCYde2ES.js";
|
|
5
|
+
import { t as le } from "./reflect-non-default-Bu3rpCvg.js";
|
|
6
|
+
import { t as ue } from "./described-by-mixin-BYFim7aO.js";
|
|
7
|
+
import { t as de } from "./form-associated-mixin-BtStDDYA.js";
|
|
8
8
|
// node_modules/@codemirror/commands/dist/index.js
|
|
9
|
-
var
|
|
10
|
-
let { state: t } = e, n = t.doc.lineAt(t.selection.main.from), r =
|
|
11
|
-
return r.line ?
|
|
9
|
+
var fe = (e) => {
|
|
10
|
+
let { state: t } = e, n = t.doc.lineAt(t.selection.main.from), r = x(e.state, n.from);
|
|
11
|
+
return r.line ? pe(e) : r.block ? he(e) : !1;
|
|
12
12
|
};
|
|
13
|
-
function
|
|
13
|
+
function b(e, t) {
|
|
14
14
|
return ({ state: n, dispatch: r }) => {
|
|
15
15
|
if (n.readOnly) return !1;
|
|
16
16
|
let i = e(t, n);
|
|
17
17
|
return i ? (r(n.update(i)), !0) : !1;
|
|
18
18
|
};
|
|
19
19
|
}
|
|
20
|
-
var
|
|
21
|
-
function
|
|
20
|
+
var pe = /*@__PURE__*/ b(ye, 0), me = /*@__PURE__*/ b(ve, 0), he = /*@__PURE__*/ b((e, t) => ve(e, t, _e(t)), 0);
|
|
21
|
+
function x(e, t) {
|
|
22
22
|
let n = e.languageDataAt("commentTokens", t, 1);
|
|
23
23
|
return n.length ? n[0] : {};
|
|
24
24
|
}
|
|
25
|
-
var
|
|
26
|
-
function
|
|
27
|
-
let a = e.sliceDoc(r -
|
|
25
|
+
var S = 50;
|
|
26
|
+
function ge(e, { open: t, close: n }, r, i) {
|
|
27
|
+
let a = e.sliceDoc(r - S, r), o = e.sliceDoc(i, i + S), s = /\s*$/.exec(a)[0].length, c = /^\s*/.exec(o)[0].length, l = a.length - s;
|
|
28
28
|
if (a.slice(l - t.length, l) == t && o.slice(c, c + n.length) == n) return {
|
|
29
29
|
open: {
|
|
30
30
|
pos: r - s,
|
|
@@ -36,7 +36,7 @@ function he(e, { open: t, close: n }, r, i) {
|
|
|
36
36
|
}
|
|
37
37
|
};
|
|
38
38
|
let u, d;
|
|
39
|
-
i - r <= 100 ? u = d = e.sliceDoc(r, i) : (u = e.sliceDoc(r, r +
|
|
39
|
+
i - r <= 100 ? u = d = e.sliceDoc(r, i) : (u = e.sliceDoc(r, r + S), d = e.sliceDoc(i - S, i));
|
|
40
40
|
let f = /^\s*/.exec(u)[0].length, p = /\s*$/.exec(d)[0].length, m = d.length - p - n.length;
|
|
41
41
|
return u.slice(f, f + t.length) == t && d.slice(m, m + n.length) == n ? {
|
|
42
42
|
open: {
|
|
@@ -49,7 +49,7 @@ function he(e, { open: t, close: n }, r, i) {
|
|
|
49
49
|
}
|
|
50
50
|
} : null;
|
|
51
51
|
}
|
|
52
|
-
function
|
|
52
|
+
function _e(e) {
|
|
53
53
|
let t = [];
|
|
54
54
|
for (let n of e.selection.ranges) {
|
|
55
55
|
let r = e.doc.lineAt(n.from), i = n.to <= r.to ? r : e.doc.lineAt(n.to);
|
|
@@ -62,10 +62,10 @@ function ge(e) {
|
|
|
62
62
|
}
|
|
63
63
|
return t;
|
|
64
64
|
}
|
|
65
|
-
function
|
|
66
|
-
let r = n.map((e) =>
|
|
65
|
+
function ve(e, t, n = t.selection.ranges) {
|
|
66
|
+
let r = n.map((e) => x(t, e.from).block);
|
|
67
67
|
if (!r.every((e) => e)) return null;
|
|
68
|
-
let i = n.map((e, n) =>
|
|
68
|
+
let i = n.map((e, n) => ge(t, r[n], e.from, e.to));
|
|
69
69
|
if (e != 2 && !i.every((e) => e)) return { changes: t.changes(n.map((e, t) => i[t] ? [] : [{
|
|
70
70
|
from: e.from,
|
|
71
71
|
insert: r[t].open + " "
|
|
@@ -89,13 +89,13 @@ function _e(e, t, n = t.selection.ranges) {
|
|
|
89
89
|
}
|
|
90
90
|
return null;
|
|
91
91
|
}
|
|
92
|
-
function
|
|
92
|
+
function ye(e, t, n = t.selection.ranges) {
|
|
93
93
|
let r = [], i = -1;
|
|
94
94
|
ranges: for (let { from: e, to: a } of n) {
|
|
95
95
|
let n = r.length, o = 1e9, s;
|
|
96
96
|
for (let n = e; n <= a;) {
|
|
97
97
|
let c = t.doc.lineAt(n);
|
|
98
|
-
if (s == null && (s =
|
|
98
|
+
if (s == null && (s = x(t, c.from).line, !s)) continue ranges;
|
|
99
99
|
if (c.from > i && (e == a || a > c.from)) {
|
|
100
100
|
i = c.from;
|
|
101
101
|
let e = /^\s*/.exec(c.text)[0].length, t = e == c.length, n = c.text.slice(e, e + s.length) == s ? e : -1;
|
|
@@ -138,8 +138,8 @@ function ve(e, t, n = t.selection.ranges) {
|
|
|
138
138
|
}
|
|
139
139
|
return null;
|
|
140
140
|
}
|
|
141
|
-
var
|
|
142
|
-
return
|
|
141
|
+
var C = /*@__PURE__*/ l.define(), be = /*@__PURE__*/ l.define(), xe = /*@__PURE__*/ ae.define(), Se = /*@__PURE__*/ ae.define({ combine(e) {
|
|
142
|
+
return re(e, {
|
|
143
143
|
minDepth: 100,
|
|
144
144
|
newGroupDelay: 500,
|
|
145
145
|
joinToEvent: (e, t) => t
|
|
@@ -148,19 +148,19 @@ var w = /*@__PURE__*/ o.define(), ye = /*@__PURE__*/ o.define(), be = /*@__PURE_
|
|
|
148
148
|
newGroupDelay: Math.min,
|
|
149
149
|
joinToEvent: (e, t) => (n, r) => e(n, r) || t(n, r)
|
|
150
150
|
});
|
|
151
|
-
} }),
|
|
151
|
+
} }), w = /*@__PURE__*/ f.define({
|
|
152
152
|
create() {
|
|
153
153
|
return N.empty;
|
|
154
154
|
},
|
|
155
155
|
update(e, t) {
|
|
156
|
-
let n = t.state.facet(
|
|
156
|
+
let n = t.state.facet(Se), r = t.annotation(C);
|
|
157
157
|
if (r) {
|
|
158
|
-
let i =
|
|
159
|
-
return o = i ?
|
|
158
|
+
let i = O.fromTransaction(t, r.selection), a = r.side, o = a == 0 ? e.undone : e.done;
|
|
159
|
+
return o = i ? k(o, o.length, n.minDepth, i) : Me(o, t.startState.selection), new N(a == 0 ? r.rest : o, a == 0 ? o : r.rest);
|
|
160
160
|
}
|
|
161
|
-
let i = t.annotation(
|
|
162
|
-
if ((i == "full" || i == "before") && (e = e.isolate()), t.annotation(
|
|
163
|
-
let a =
|
|
161
|
+
let i = t.annotation(be);
|
|
162
|
+
if ((i == "full" || i == "before") && (e = e.isolate()), t.annotation(_.addToHistory) === !1) return t.changes.empty ? e : e.addMapping(t.changes.desc);
|
|
163
|
+
let a = O.fromTransaction(t), o = t.annotation(_.time), s = t.annotation(_.userEvent);
|
|
164
164
|
return a ? e = e.addChanges(a, o, s, n, t) : t.selection && (e = e.addSelection(t.startState.selection, o, s, n.newGroupDelay)), (i == "full" || i == "after") && (e = e.isolate()), e;
|
|
165
165
|
},
|
|
166
166
|
toJSON(e) {
|
|
@@ -170,38 +170,38 @@ var w = /*@__PURE__*/ o.define(), ye = /*@__PURE__*/ o.define(), be = /*@__PURE_
|
|
|
170
170
|
};
|
|
171
171
|
},
|
|
172
172
|
fromJSON(e) {
|
|
173
|
-
return new N(e.done.map(
|
|
173
|
+
return new N(e.done.map(O.fromJSON), e.undone.map(O.fromJSON));
|
|
174
174
|
}
|
|
175
175
|
});
|
|
176
|
-
function
|
|
176
|
+
function Ce(e = {}) {
|
|
177
177
|
return [
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
let n = e.inputType == "historyUndo" ?
|
|
178
|
+
w,
|
|
179
|
+
Se.of(e),
|
|
180
|
+
h.domEventHandlers({ beforeinput(e, t) {
|
|
181
|
+
let n = e.inputType == "historyUndo" ? E : e.inputType == "historyRedo" ? D : null;
|
|
182
182
|
return n ? (e.preventDefault(), n(t)) : !1;
|
|
183
183
|
} })
|
|
184
184
|
];
|
|
185
185
|
}
|
|
186
|
-
function
|
|
186
|
+
function T(e, t) {
|
|
187
187
|
return function({ state: n, dispatch: r }) {
|
|
188
188
|
if (!t && n.readOnly) return !1;
|
|
189
|
-
let i = n.field(
|
|
189
|
+
let i = n.field(w, !1);
|
|
190
190
|
if (!i) return !1;
|
|
191
191
|
let a = i.pop(e, n, t);
|
|
192
192
|
return a ? (r(a), !0) : !1;
|
|
193
193
|
};
|
|
194
194
|
}
|
|
195
|
-
var
|
|
196
|
-
function
|
|
195
|
+
var E = /*@__PURE__*/ T(0, !1), D = /*@__PURE__*/ T(1, !1), we = /*@__PURE__*/ T(0, !0), Te = /*@__PURE__*/ T(1, !0);
|
|
196
|
+
function Ee(e) {
|
|
197
197
|
return function(t) {
|
|
198
|
-
let n = t.field(
|
|
198
|
+
let n = t.field(w, !1);
|
|
199
199
|
if (!n) return 0;
|
|
200
200
|
let r = e == 0 ? n.done : n.undone;
|
|
201
201
|
return r.length - (r.length && !r[0].changes ? 1 : 0);
|
|
202
202
|
};
|
|
203
203
|
}
|
|
204
|
-
var
|
|
204
|
+
var De = /*@__PURE__*/ Ee(0), Oe = /*@__PURE__*/ Ee(1), O = class e {
|
|
205
205
|
constructor(e, t, n, r, i) {
|
|
206
206
|
this.changes = e, this.effects = t, this.mapped = n, this.startSelection = r, this.selectionsAfter = i;
|
|
207
207
|
}
|
|
@@ -216,12 +216,12 @@ var Ee = /*@__PURE__*/ Te(0), De = /*@__PURE__*/ Te(1), k = class e {
|
|
|
216
216
|
selectionsAfter: this.selectionsAfter.map((e) => e.toJSON())
|
|
217
217
|
};
|
|
218
218
|
}
|
|
219
|
-
static fromJSON(
|
|
220
|
-
return new e(
|
|
219
|
+
static fromJSON(n) {
|
|
220
|
+
return new e(n.changes && u.fromJSON(n.changes), [], n.mapped && c.fromJSON(n.mapped), n.startSelection && t.fromJSON(n.startSelection), n.selectionsAfter.map(t.fromJSON));
|
|
221
221
|
}
|
|
222
222
|
static fromTransaction(t, n) {
|
|
223
223
|
let r = j;
|
|
224
|
-
for (let e of t.startState.facet(
|
|
224
|
+
for (let e of t.startState.facet(xe)) {
|
|
225
225
|
let n = e(t);
|
|
226
226
|
n.length && (r = r.concat(n));
|
|
227
227
|
}
|
|
@@ -231,11 +231,11 @@ var Ee = /*@__PURE__*/ Te(0), De = /*@__PURE__*/ Te(1), k = class e {
|
|
|
231
231
|
return new e(void 0, j, void 0, void 0, t);
|
|
232
232
|
}
|
|
233
233
|
};
|
|
234
|
-
function
|
|
234
|
+
function k(e, t, n, r) {
|
|
235
235
|
let i = t + 1 > n + 20 ? t - n - 1 : 0, a = e.slice(i, t);
|
|
236
236
|
return a.push(r), a;
|
|
237
237
|
}
|
|
238
|
-
function
|
|
238
|
+
function ke(e, t) {
|
|
239
239
|
let n = [], r = !1;
|
|
240
240
|
return e.iterChangedRanges((e, t) => n.push(e, t)), t.iterChangedRanges((e, t, i, a) => {
|
|
241
241
|
for (let e = 0; e < n.length;) {
|
|
@@ -244,19 +244,19 @@ function Oe(e, t) {
|
|
|
244
244
|
}
|
|
245
245
|
}), r;
|
|
246
246
|
}
|
|
247
|
-
function
|
|
247
|
+
function Ae(e, t) {
|
|
248
248
|
return e.ranges.length == t.ranges.length && e.ranges.filter((e, n) => e.empty != t.ranges[n].empty).length === 0;
|
|
249
249
|
}
|
|
250
|
-
function
|
|
250
|
+
function A(e, t) {
|
|
251
251
|
return e.length ? t.length ? e.concat(t) : e : t;
|
|
252
252
|
}
|
|
253
253
|
var j = [], je = 200;
|
|
254
254
|
function Me(e, t) {
|
|
255
255
|
if (e.length) {
|
|
256
256
|
let n = e[e.length - 1], r = n.selectionsAfter.slice(Math.max(0, n.selectionsAfter.length - je));
|
|
257
|
-
return r.length && r[r.length - 1].eq(t) ? e : (r.push(t),
|
|
257
|
+
return r.length && r[r.length - 1].eq(t) ? e : (r.push(t), k(e, e.length - 1, 1e9, n.setSelAfter(r)));
|
|
258
258
|
}
|
|
259
|
-
return [
|
|
259
|
+
return [O.selection([t])];
|
|
260
260
|
}
|
|
261
261
|
function Ne(e) {
|
|
262
262
|
let t = e[e.length - 1], n = e.slice();
|
|
@@ -273,13 +273,13 @@ function M(e, t) {
|
|
|
273
273
|
}
|
|
274
274
|
t = i.mapped, n--, r = i.selectionsAfter;
|
|
275
275
|
}
|
|
276
|
-
return r.length ? [
|
|
276
|
+
return r.length ? [O.selection(r)] : j;
|
|
277
277
|
}
|
|
278
278
|
function Pe(e, t, n) {
|
|
279
|
-
let r =
|
|
280
|
-
if (!e.changes) return
|
|
279
|
+
let r = A(e.selectionsAfter.length ? e.selectionsAfter.map((e) => e.map(t)) : j, n);
|
|
280
|
+
if (!e.changes) return O.selection(r);
|
|
281
281
|
let i = e.changes.map(t), a = t.mapDesc(e.changes, !0), o = e.mapped ? e.mapped.composeDesc(a) : a;
|
|
282
|
-
return new
|
|
282
|
+
return new O(i, ie.mapEffects(e.effects, t), o, e.startSelection.map(a), r);
|
|
283
283
|
}
|
|
284
284
|
var Fe = /^(input\.type|delete)($|\.)/, N = class e {
|
|
285
285
|
constructor(e, t, n = 0, r = void 0) {
|
|
@@ -290,11 +290,11 @@ var Fe = /^(input\.type|delete)($|\.)/, N = class e {
|
|
|
290
290
|
}
|
|
291
291
|
addChanges(t, n, r, i, a) {
|
|
292
292
|
let o = this.done, s = o[o.length - 1];
|
|
293
|
-
return o = s && s.changes && !s.changes.empty && t.changes && (!r || Fe.test(r)) && (!s.selectionsAfter.length && n - this.prevTime < i.newGroupDelay && i.joinToEvent(a,
|
|
293
|
+
return o = s && s.changes && !s.changes.empty && t.changes && (!r || Fe.test(r)) && (!s.selectionsAfter.length && n - this.prevTime < i.newGroupDelay && i.joinToEvent(a, ke(s.changes, t.changes)) || r == "input.type.compose") ? k(o, o.length - 1, i.minDepth, new O(t.changes.compose(s.changes), A(ie.mapEffects(t.effects, s.changes), s.effects), s.mapped, s.startSelection, j)) : k(o, o.length, i.minDepth, t), new e(o, j, n, r);
|
|
294
294
|
}
|
|
295
295
|
addSelection(t, n, r, i) {
|
|
296
296
|
let a = this.done.length ? this.done[this.done.length - 1].selectionsAfter : j;
|
|
297
|
-
return a.length > 0 && n - this.prevTime < i && r == this.prevUserEvent && r && /^select($|\.)/.test(r) &&
|
|
297
|
+
return a.length > 0 && n - this.prevTime < i && r == this.prevUserEvent && r && /^select($|\.)/.test(r) && Ae(a[a.length - 1], t) ? this : new e(Me(this.done, t), this.undone, n, r);
|
|
298
298
|
}
|
|
299
299
|
addMapping(t) {
|
|
300
300
|
return new e(M(this.done, t), M(this.undone, t), this.prevTime, this.prevUserEvent);
|
|
@@ -305,7 +305,7 @@ var Fe = /^(input\.type|delete)($|\.)/, N = class e {
|
|
|
305
305
|
let i = r[r.length - 1], a = i.selectionsAfter[0] || (i.startSelection ? i.startSelection.map(i.changes.invertedDesc, 1) : t.selection);
|
|
306
306
|
if (n && i.selectionsAfter.length) return t.update({
|
|
307
307
|
selection: i.selectionsAfter[i.selectionsAfter.length - 1],
|
|
308
|
-
annotations:
|
|
308
|
+
annotations: C.of({
|
|
309
309
|
side: e,
|
|
310
310
|
rest: Ne(r),
|
|
311
311
|
selection: a
|
|
@@ -319,7 +319,7 @@ var Fe = /^(input\.type|delete)($|\.)/, N = class e {
|
|
|
319
319
|
changes: i.changes,
|
|
320
320
|
selection: i.startSelection,
|
|
321
321
|
effects: i.effects,
|
|
322
|
-
annotations:
|
|
322
|
+
annotations: C.of({
|
|
323
323
|
side: e,
|
|
324
324
|
rest: n,
|
|
325
325
|
selection: a
|
|
@@ -336,34 +336,34 @@ N.empty = /*@__PURE__*/ new N(j, j);
|
|
|
336
336
|
var Ie = [
|
|
337
337
|
{
|
|
338
338
|
key: "Mod-z",
|
|
339
|
-
run:
|
|
339
|
+
run: E,
|
|
340
340
|
preventDefault: !0
|
|
341
341
|
},
|
|
342
342
|
{
|
|
343
343
|
key: "Mod-y",
|
|
344
344
|
mac: "Mod-Shift-z",
|
|
345
|
-
run:
|
|
345
|
+
run: D,
|
|
346
346
|
preventDefault: !0
|
|
347
347
|
},
|
|
348
348
|
{
|
|
349
349
|
linux: "Ctrl-Shift-z",
|
|
350
|
-
run:
|
|
350
|
+
run: D,
|
|
351
351
|
preventDefault: !0
|
|
352
352
|
},
|
|
353
353
|
{
|
|
354
354
|
key: "Mod-u",
|
|
355
|
-
run:
|
|
355
|
+
run: we,
|
|
356
356
|
preventDefault: !0
|
|
357
357
|
},
|
|
358
358
|
{
|
|
359
359
|
key: "Alt-u",
|
|
360
360
|
mac: "Mod-Shift-u",
|
|
361
|
-
run:
|
|
361
|
+
run: Te,
|
|
362
362
|
preventDefault: !0
|
|
363
363
|
}
|
|
364
364
|
];
|
|
365
|
-
function P(e,
|
|
366
|
-
return
|
|
365
|
+
function P(e, n) {
|
|
366
|
+
return t.create(e.ranges.map(n), e.mainIndex);
|
|
367
367
|
}
|
|
368
368
|
function F(e, t) {
|
|
369
369
|
return e.update({
|
|
@@ -376,275 +376,275 @@ function I({ state: e, dispatch: t }, n) {
|
|
|
376
376
|
let r = P(e.selection, n);
|
|
377
377
|
return !r.eq(e.selection, !0) && (t(F(e, r)), !0);
|
|
378
378
|
}
|
|
379
|
-
function L(e,
|
|
380
|
-
return
|
|
379
|
+
function L(e, n) {
|
|
380
|
+
return t.cursor(n ? e.to : e.from);
|
|
381
381
|
}
|
|
382
382
|
function Le(e, t) {
|
|
383
383
|
return I(e, (n) => n.empty ? e.moveByChar(n, t) : L(n, t));
|
|
384
384
|
}
|
|
385
385
|
function R(e) {
|
|
386
|
-
return e.textDirectionAt(e.state.selection.main.head) ==
|
|
386
|
+
return e.textDirectionAt(e.state.selection.main.head) == n.LTR;
|
|
387
387
|
}
|
|
388
|
-
var Re = (e) => Le(e, !R(e)),
|
|
389
|
-
function
|
|
388
|
+
var Re = (e) => Le(e, !R(e)), z = (e) => Le(e, R(e));
|
|
389
|
+
function B(e, t) {
|
|
390
390
|
return I(e, (n) => n.empty ? e.moveByGroup(n, t) : L(n, t));
|
|
391
391
|
}
|
|
392
|
-
var
|
|
392
|
+
var ze = (e) => B(e, !R(e)), Be = (e) => B(e, R(e));
|
|
393
393
|
typeof Intl < "u" && Intl.Segmenter;
|
|
394
|
-
function
|
|
394
|
+
function Ve(e, t, n) {
|
|
395
395
|
if (t.type.prop(n)) return !0;
|
|
396
396
|
let r = t.to - t.from;
|
|
397
397
|
return r && (r > 2 || /[^\s,.;:]/.test(e.sliceDoc(t.from, t.to))) || t.firstChild;
|
|
398
398
|
}
|
|
399
|
-
function
|
|
400
|
-
let
|
|
401
|
-
for (let e =
|
|
402
|
-
let
|
|
403
|
-
if (!
|
|
404
|
-
|
|
399
|
+
function V(n, r, a) {
|
|
400
|
+
let s = o(n).resolveInner(r.head), c = a ? e.closedBy : e.openedBy;
|
|
401
|
+
for (let e = r.head;;) {
|
|
402
|
+
let t = a ? s.childAfter(e) : s.childBefore(e);
|
|
403
|
+
if (!t) break;
|
|
404
|
+
Ve(n, t, c) ? s = t : e = a ? t.to : t.from;
|
|
405
405
|
}
|
|
406
|
-
let
|
|
407
|
-
return d =
|
|
406
|
+
let l = s.type.prop(c), u, d;
|
|
407
|
+
return d = l && (u = a ? i(n, s.from, 1) : i(n, s.to, -1)) && u.matched ? a ? u.end.to : u.end.from : a ? s.to : s.from, t.cursor(d, a ? -1 : 1);
|
|
408
408
|
}
|
|
409
|
-
var
|
|
410
|
-
function
|
|
409
|
+
var He = (e) => I(e, (t) => V(e.state, t, !R(e))), Ue = (e) => I(e, (t) => V(e.state, t, R(e)));
|
|
410
|
+
function We(e, t) {
|
|
411
411
|
return I(e, (n) => {
|
|
412
412
|
if (!n.empty) return L(n, t);
|
|
413
413
|
let r = e.moveVertically(n, t);
|
|
414
414
|
return r.head == n.head ? e.moveToLineBoundary(n, t) : r;
|
|
415
415
|
});
|
|
416
416
|
}
|
|
417
|
-
var
|
|
417
|
+
var Ge = (e) => We(e, !1), Ke = (e) => We(e, !0);
|
|
418
418
|
function qe(e) {
|
|
419
|
-
let t = e.scrollDOM.clientHeight < e.scrollDOM.scrollHeight - 2,
|
|
419
|
+
let t = e.scrollDOM.clientHeight < e.scrollDOM.scrollHeight - 2, n = 0, r = 0, i;
|
|
420
420
|
if (t) {
|
|
421
|
-
for (let t of e.state.facet(
|
|
422
|
-
let
|
|
423
|
-
|
|
421
|
+
for (let t of e.state.facet(h.scrollMargins)) {
|
|
422
|
+
let i = t(e);
|
|
423
|
+
i?.top && (n = Math.max(i?.top, n)), i?.bottom && (r = Math.max(i?.bottom, r));
|
|
424
424
|
}
|
|
425
|
-
|
|
426
|
-
} else
|
|
425
|
+
i = e.scrollDOM.clientHeight - n - r;
|
|
426
|
+
} else i = (e.dom.ownerDocument.defaultView || window).innerHeight;
|
|
427
427
|
return {
|
|
428
|
-
marginTop:
|
|
429
|
-
marginBottom:
|
|
428
|
+
marginTop: n,
|
|
429
|
+
marginBottom: r,
|
|
430
430
|
selfScroll: t,
|
|
431
|
-
height: Math.max(e.defaultLineHeight,
|
|
431
|
+
height: Math.max(e.defaultLineHeight, i - 5)
|
|
432
432
|
};
|
|
433
433
|
}
|
|
434
434
|
function Je(e, t) {
|
|
435
|
-
let
|
|
436
|
-
if (
|
|
437
|
-
let
|
|
438
|
-
if (
|
|
439
|
-
let t = e.coordsAtPos(
|
|
440
|
-
t && t.top >
|
|
435
|
+
let n = qe(e), { state: r } = e, i = P(r.selection, (r) => r.empty ? e.moveVertically(r, t, n.height) : L(r, t));
|
|
436
|
+
if (i.eq(r.selection)) return !1;
|
|
437
|
+
let a;
|
|
438
|
+
if (n.selfScroll) {
|
|
439
|
+
let t = e.coordsAtPos(r.selection.main.head), o = e.scrollDOM.getBoundingClientRect(), s = o.top + n.marginTop, c = o.bottom - n.marginBottom;
|
|
440
|
+
t && t.top > s && t.bottom < c && (a = h.scrollIntoView(i.main.head, {
|
|
441
441
|
y: "start",
|
|
442
|
-
yMargin: t.top -
|
|
442
|
+
yMargin: t.top - s
|
|
443
443
|
}));
|
|
444
444
|
}
|
|
445
|
-
return e.dispatch(F(
|
|
445
|
+
return e.dispatch(F(r, i), { effects: a }), !0;
|
|
446
446
|
}
|
|
447
447
|
var Ye = (e) => Je(e, !1), H = (e) => Je(e, !0);
|
|
448
|
-
function U(e,
|
|
449
|
-
let
|
|
450
|
-
if (
|
|
451
|
-
let
|
|
452
|
-
|
|
448
|
+
function U(e, n, r) {
|
|
449
|
+
let i = e.lineBlockAt(n.head), a = e.moveToLineBoundary(n, r);
|
|
450
|
+
if (a.head == n.head && a.head != (r ? i.to : i.from) && (a = e.moveToLineBoundary(n, r, !1)), !r && a.head == i.from && i.length) {
|
|
451
|
+
let r = /^\s*/.exec(e.state.sliceDoc(i.from, Math.min(i.from + 100, i.to)))[0].length;
|
|
452
|
+
r && n.head != i.from + r && (a = t.cursor(i.from + r));
|
|
453
453
|
}
|
|
454
|
-
return
|
|
454
|
+
return a;
|
|
455
455
|
}
|
|
456
456
|
var Xe = (e) => I(e, (t) => U(e, t, !0)), Ze = (e) => I(e, (t) => U(e, t, !1)), Qe = (e) => I(e, (t) => U(e, t, !R(e))), $e = (e) => I(e, (t) => U(e, t, R(e))), et = (e) => I(e, (t) => e.moveToLineBoundary(t, !1, !1)), tt = (e) => I(e, (t) => e.moveToLineBoundary(t, !0, !1));
|
|
457
|
-
function nt(e,
|
|
458
|
-
let
|
|
459
|
-
let
|
|
460
|
-
if (!
|
|
461
|
-
|
|
462
|
-
let
|
|
463
|
-
return
|
|
457
|
+
function nt(e, n, r) {
|
|
458
|
+
let a = !1, o = P(e.selection, (n) => {
|
|
459
|
+
let o = i(e, n.head, -1) || i(e, n.head, 1) || n.head > 0 && i(e, n.head - 1, 1) || n.head < e.doc.length && i(e, n.head + 1, -1);
|
|
460
|
+
if (!o || !o.end) return n;
|
|
461
|
+
a = !0;
|
|
462
|
+
let s = o.start.from == n.head ? o.end.to : o.end.from;
|
|
463
|
+
return r ? t.range(n.anchor, s) : t.cursor(s);
|
|
464
464
|
});
|
|
465
|
-
return
|
|
465
|
+
return a ? (n(F(e, o)), !0) : !1;
|
|
466
466
|
}
|
|
467
467
|
var rt = ({ state: e, dispatch: t }) => nt(e, t, !1);
|
|
468
|
-
function W(e,
|
|
469
|
-
let
|
|
470
|
-
e.undirectional && e.head >= e.anchor !=
|
|
471
|
-
let
|
|
472
|
-
return
|
|
468
|
+
function W(e, n, r) {
|
|
469
|
+
let i = P(e.state.selection, (e) => {
|
|
470
|
+
e.undirectional && e.head >= e.anchor != n && (e = t.range(e.head, e.anchor));
|
|
471
|
+
let i = r(e);
|
|
472
|
+
return t.range(e.anchor, i.head, i.goalColumn, i.bidiLevel || void 0, i.assoc);
|
|
473
473
|
});
|
|
474
|
-
return !
|
|
474
|
+
return !i.eq(e.state.selection) && (e.dispatch(F(e.state, i)), !0);
|
|
475
475
|
}
|
|
476
476
|
function it(e, t) {
|
|
477
477
|
return W(e, t, (n) => e.moveByChar(n, t));
|
|
478
478
|
}
|
|
479
|
-
var
|
|
480
|
-
function
|
|
479
|
+
var at = (e) => it(e, !R(e)), ot = (e) => it(e, R(e));
|
|
480
|
+
function st(e, t) {
|
|
481
481
|
return W(e, t, (n) => e.moveByGroup(n, t));
|
|
482
482
|
}
|
|
483
|
-
var
|
|
483
|
+
var ct = (e) => st(e, !R(e)), lt = (e) => st(e, R(e)), ut = (e) => {
|
|
484
484
|
let t = !R(e);
|
|
485
|
-
return W(e, t, (n) =>
|
|
486
|
-
},
|
|
485
|
+
return W(e, t, (n) => V(e.state, n, t));
|
|
486
|
+
}, dt = (e) => {
|
|
487
487
|
let t = R(e);
|
|
488
|
-
return W(e, t, (n) =>
|
|
488
|
+
return W(e, t, (n) => V(e.state, n, t));
|
|
489
489
|
};
|
|
490
|
-
function
|
|
490
|
+
function ft(e, t) {
|
|
491
491
|
return W(e, t, (n) => e.moveVertically(n, t));
|
|
492
492
|
}
|
|
493
|
-
var
|
|
494
|
-
function
|
|
493
|
+
var pt = (e) => ft(e, !1), mt = (e) => ft(e, !0);
|
|
494
|
+
function ht(e, t) {
|
|
495
495
|
return W(e, t, (n) => e.moveVertically(n, t, qe(e).height));
|
|
496
496
|
}
|
|
497
|
-
var
|
|
497
|
+
var gt = (e) => ht(e, !1), _t = (e) => ht(e, !0), vt = (e) => W(e, !0, (t) => U(e, t, !0)), yt = (e) => W(e, !1, (t) => U(e, t, !1)), bt = (e) => {
|
|
498
498
|
let t = !R(e);
|
|
499
499
|
return W(e, t, (n) => U(e, n, t));
|
|
500
|
-
},
|
|
500
|
+
}, xt = (e) => {
|
|
501
501
|
let t = R(e);
|
|
502
502
|
return W(e, t, (n) => U(e, n, t));
|
|
503
|
-
},
|
|
503
|
+
}, St = (e) => W(e, !1, (n) => t.cursor(e.lineBlockAt(n.head).from)), Ct = (e) => W(e, !0, (n) => t.cursor(e.lineBlockAt(n.head).to)), wt = ({ state: e, dispatch: t }) => (t(F(e, { anchor: 0 })), !0), Tt = ({ state: e, dispatch: t }) => (t(F(e, { anchor: e.doc.length })), !0), Et = ({ state: e, dispatch: t }) => (t(F(e, {
|
|
504
504
|
anchor: e.selection.main.anchor,
|
|
505
505
|
head: 0
|
|
506
|
-
})), !0),
|
|
506
|
+
})), !0), Dt = ({ state: e, dispatch: t }) => (t(F(e, {
|
|
507
507
|
anchor: e.selection.main.anchor,
|
|
508
508
|
head: e.doc.length
|
|
509
|
-
})), !0),
|
|
509
|
+
})), !0), Ot = ({ state: e, dispatch: t }) => (t(e.update({
|
|
510
510
|
selection: {
|
|
511
511
|
anchor: 0,
|
|
512
512
|
head: e.doc.length
|
|
513
513
|
},
|
|
514
514
|
userEvent: "select"
|
|
515
|
-
})), !0),
|
|
516
|
-
let
|
|
517
|
-
return
|
|
518
|
-
selection:
|
|
515
|
+
})), !0), kt = ({ state: e, dispatch: n }) => {
|
|
516
|
+
let r = Y(e).map(({ from: n, to: r }) => t.undirectionalRange(n, Math.min(r + 1, e.doc.length)));
|
|
517
|
+
return n(e.update({
|
|
518
|
+
selection: t.create(r),
|
|
519
519
|
userEvent: "select"
|
|
520
520
|
})), !0;
|
|
521
|
-
},
|
|
522
|
-
let
|
|
523
|
-
let
|
|
524
|
-
if (
|
|
525
|
-
let e =
|
|
526
|
-
e.node.from >=
|
|
521
|
+
}, At = ({ state: e, dispatch: n }) => {
|
|
522
|
+
let r = P(e.selection, (n) => {
|
|
523
|
+
let r = o(e), i = r.resolveStack(n.from, 1);
|
|
524
|
+
if (n.empty) {
|
|
525
|
+
let e = r.resolveStack(n.from, -1);
|
|
526
|
+
e.node.from >= i.node.from && e.node.to <= i.node.to && (i = e);
|
|
527
527
|
}
|
|
528
|
-
for (let e =
|
|
529
|
-
let { node:
|
|
530
|
-
if ((
|
|
528
|
+
for (let e = i; e; e = e.next) {
|
|
529
|
+
let { node: r } = e;
|
|
530
|
+
if ((r.from < n.from && r.to >= n.to || r.to > n.to && r.from <= n.from) && e.next) return t.undirectionalRange(r.from, r.to);
|
|
531
531
|
}
|
|
532
|
-
return
|
|
532
|
+
return n;
|
|
533
533
|
});
|
|
534
|
-
return !
|
|
534
|
+
return !r.eq(e.selection) && (n(F(e, r)), !0);
|
|
535
535
|
};
|
|
536
|
-
function
|
|
537
|
-
let { state:
|
|
538
|
-
for (let
|
|
539
|
-
let
|
|
540
|
-
if (
|
|
541
|
-
let
|
|
542
|
-
if (
|
|
543
|
-
|
|
536
|
+
function jt(e, n) {
|
|
537
|
+
let { state: r } = e, i = r.selection, a = r.selection.ranges.slice();
|
|
538
|
+
for (let t of r.selection.ranges) {
|
|
539
|
+
let i = r.doc.lineAt(t.head);
|
|
540
|
+
if (n ? i.to < e.state.doc.length : i.from > 0) for (let r = t;;) {
|
|
541
|
+
let t = e.moveVertically(r, n);
|
|
542
|
+
if (t.head < i.from || t.head > i.to) {
|
|
543
|
+
a.some((e) => e.head == t.head) || a.push(t);
|
|
544
544
|
break;
|
|
545
545
|
}
|
|
546
|
-
if (
|
|
547
|
-
|
|
546
|
+
if (t.head == r.head) break;
|
|
547
|
+
r = t;
|
|
548
548
|
}
|
|
549
549
|
}
|
|
550
|
-
return
|
|
550
|
+
return a.length != i.ranges.length && (e.dispatch(F(r, t.create(a, a.length - 1))), !0);
|
|
551
551
|
}
|
|
552
|
-
var
|
|
553
|
-
let
|
|
554
|
-
return
|
|
552
|
+
var Mt = (e) => jt(e, !1), Nt = (e) => jt(e, !0), Pt = ({ state: e, dispatch: n }) => {
|
|
553
|
+
let r = e.selection, i = null;
|
|
554
|
+
return r.ranges.length > 1 ? i = t.create([r.main]) : r.main.empty || (i = t.create([t.cursor(r.main.head)])), i ? (n(F(e, i)), !0) : !1;
|
|
555
555
|
};
|
|
556
|
-
function
|
|
556
|
+
function G(e, n) {
|
|
557
557
|
if (e.state.readOnly) return !1;
|
|
558
|
-
let r = "delete.selection", { state: i } = e, a = i.changeByRange((
|
|
559
|
-
let { from:
|
|
560
|
-
if (
|
|
561
|
-
let
|
|
562
|
-
|
|
563
|
-
} else
|
|
564
|
-
return
|
|
558
|
+
let r = "delete.selection", { state: i } = e, a = i.changeByRange((i) => {
|
|
559
|
+
let { from: a, to: o } = i;
|
|
560
|
+
if (a == o) {
|
|
561
|
+
let t = n(i);
|
|
562
|
+
t < a ? (r = "delete.backward", t = K(e, t, !1)) : t > a && (r = "delete.forward", t = K(e, t, !0)), a = Math.min(a, t), o = Math.max(o, t);
|
|
563
|
+
} else a = K(e, a, !1), o = K(e, o, !0);
|
|
564
|
+
return a == o ? { range: i } : {
|
|
565
565
|
changes: {
|
|
566
|
-
from:
|
|
567
|
-
to:
|
|
566
|
+
from: a,
|
|
567
|
+
to: o
|
|
568
568
|
},
|
|
569
|
-
range:
|
|
569
|
+
range: t.cursor(a, a < i.head ? -1 : 1)
|
|
570
570
|
};
|
|
571
571
|
});
|
|
572
572
|
return !a.changes.empty && (e.dispatch(i.update(a, {
|
|
573
573
|
scrollIntoView: !0,
|
|
574
574
|
userEvent: r,
|
|
575
|
-
effects: r == "delete.selection" ?
|
|
575
|
+
effects: r == "delete.selection" ? h.announce.of(i.phrase("Selection deleted")) : void 0
|
|
576
576
|
})), !0);
|
|
577
577
|
}
|
|
578
|
-
function
|
|
579
|
-
if (e instanceof
|
|
580
|
-
e < t &&
|
|
578
|
+
function K(e, t, n) {
|
|
579
|
+
if (e instanceof h) for (let r of e.state.facet(h.atomicRanges).map((t) => t(e))) r.between(t, t, (e, r) => {
|
|
580
|
+
e < t && r > t && (t = n ? r : e);
|
|
581
581
|
});
|
|
582
582
|
return t;
|
|
583
583
|
}
|
|
584
|
-
var
|
|
584
|
+
var Ft = (e, t, n) => G(e, (r) => {
|
|
585
585
|
let i = r.from, { state: a } = e, o = a.doc.lineAt(i), s, c;
|
|
586
586
|
if (n && !t && i > o.from && i < o.from + 200 && !/[^ \t]/.test(s = o.text.slice(0, i - o.from))) {
|
|
587
587
|
if (s[s.length - 1] == " ") return i - 1;
|
|
588
|
-
let e =
|
|
588
|
+
let e = g(s, a.tabSize) % d(a) || d(a);
|
|
589
589
|
for (let t = 0; t < e && s[s.length - 1 - t] == " "; t++) i--;
|
|
590
590
|
c = i;
|
|
591
|
-
} else c =
|
|
591
|
+
} else c = m(o.text, i - o.from, t, t) + o.from, c == i && o.number != (t ? a.doc.lines : 1) ? c += t ? 1 : -1 : !t && /[\ufe00-\ufe0f]/.test(o.text.slice(c - o.from, i - o.from)) && (c = m(o.text, c - o.from, !1, !1) + o.from);
|
|
592
592
|
return c;
|
|
593
|
-
}),
|
|
593
|
+
}), q = (e) => Ft(e, !1, !0), J = (e) => Ft(e, !0, !1), It = (e, t) => G(e, (n) => {
|
|
594
594
|
let r = n.head, { state: i } = e, a = i.doc.lineAt(r), o = i.charCategorizer(r);
|
|
595
595
|
for (let e = null;;) {
|
|
596
596
|
if (r == (t ? a.to : a.from)) {
|
|
597
597
|
r == n.head && a.number != (t ? i.doc.lines : 1) && (r += t ? 1 : -1);
|
|
598
598
|
break;
|
|
599
599
|
}
|
|
600
|
-
let s =
|
|
600
|
+
let s = m(a.text, r - a.from, t) + a.from, c = a.text.slice(Math.min(r, s) - a.from, Math.max(r, s) - a.from), l = o(c);
|
|
601
601
|
if (e != null && l != e) break;
|
|
602
602
|
(c != " " || r != n.head) && (e = l), r = s;
|
|
603
603
|
}
|
|
604
604
|
return r;
|
|
605
|
-
}),
|
|
605
|
+
}), Lt = (e) => It(e, !1), Rt = (e) => It(e, !0), zt = (e) => G(e, (t) => {
|
|
606
606
|
let n = e.lineBlockAt(t.head).to;
|
|
607
607
|
return t.head < n ? n : Math.min(e.state.doc.length, t.head + 1);
|
|
608
|
-
}),
|
|
608
|
+
}), Bt = (e) => G(e, (t) => {
|
|
609
609
|
let n = e.moveToLineBoundary(t, !1).head;
|
|
610
610
|
return t.head > n ? n : Math.max(0, t.head - 1);
|
|
611
|
-
}),
|
|
611
|
+
}), Vt = (e) => G(e, (t) => {
|
|
612
612
|
let n = e.moveToLineBoundary(t, !0).head;
|
|
613
613
|
return t.head < n ? n : Math.min(e.state.doc.length, t.head + 1);
|
|
614
|
-
}),
|
|
614
|
+
}), Ht = ({ state: e, dispatch: n }) => {
|
|
615
615
|
if (e.readOnly) return !1;
|
|
616
|
-
let
|
|
616
|
+
let r = e.changeByRange((e) => ({
|
|
617
617
|
changes: {
|
|
618
618
|
from: e.from,
|
|
619
619
|
to: e.to,
|
|
620
|
-
insert:
|
|
620
|
+
insert: te.of(["", ""])
|
|
621
621
|
},
|
|
622
|
-
range:
|
|
622
|
+
range: t.cursor(e.from)
|
|
623
623
|
}));
|
|
624
|
-
return
|
|
624
|
+
return n(e.update(r, {
|
|
625
625
|
scrollIntoView: !0,
|
|
626
626
|
userEvent: "input"
|
|
627
627
|
})), !0;
|
|
628
|
-
},
|
|
628
|
+
}, Ut = ({ state: e, dispatch: n }) => {
|
|
629
629
|
if (e.readOnly) return !1;
|
|
630
|
-
let
|
|
631
|
-
if (!
|
|
632
|
-
let
|
|
630
|
+
let r = e.changeByRange((n) => {
|
|
631
|
+
if (!n.empty || n.from == 0 || n.from == e.doc.length) return { range: n };
|
|
632
|
+
let r = n.from, i = e.doc.lineAt(r), a = r == i.from ? r - 1 : m(i.text, r - i.from, !1) + i.from, o = r == i.to ? r + 1 : m(i.text, r - i.from, !0) + i.from;
|
|
633
633
|
return {
|
|
634
634
|
changes: {
|
|
635
|
-
from:
|
|
636
|
-
to:
|
|
637
|
-
insert: e.doc.slice(
|
|
635
|
+
from: a,
|
|
636
|
+
to: o,
|
|
637
|
+
insert: e.doc.slice(r, o).append(e.doc.slice(a, r))
|
|
638
638
|
},
|
|
639
|
-
range:
|
|
639
|
+
range: t.cursor(o)
|
|
640
640
|
};
|
|
641
641
|
});
|
|
642
|
-
return !
|
|
642
|
+
return !r.changes.empty && (n(e.update(r, {
|
|
643
643
|
scrollIntoView: !0,
|
|
644
644
|
userEvent: "move.character"
|
|
645
645
|
})), !0);
|
|
646
646
|
};
|
|
647
|
-
function
|
|
647
|
+
function Y(e) {
|
|
648
648
|
let t = [], n = -1;
|
|
649
649
|
for (let r of e.selection.ranges) {
|
|
650
650
|
let i = e.doc.lineAt(r.from), a = e.doc.lineAt(r.to);
|
|
@@ -660,44 +660,44 @@ function X(e) {
|
|
|
660
660
|
}
|
|
661
661
|
return t;
|
|
662
662
|
}
|
|
663
|
-
function
|
|
663
|
+
function Wt(e, n, r) {
|
|
664
664
|
if (e.readOnly) return !1;
|
|
665
|
-
let
|
|
666
|
-
for (let
|
|
667
|
-
if (
|
|
668
|
-
let
|
|
669
|
-
if (
|
|
670
|
-
|
|
671
|
-
from:
|
|
672
|
-
to:
|
|
665
|
+
let i = [], a = [];
|
|
666
|
+
for (let n of Y(e)) {
|
|
667
|
+
if (r ? n.to == e.doc.length : n.from == 0) continue;
|
|
668
|
+
let o = e.doc.lineAt(r ? n.to + 1 : n.from - 1), s = o.length + 1;
|
|
669
|
+
if (r) {
|
|
670
|
+
i.push({
|
|
671
|
+
from: n.to,
|
|
672
|
+
to: o.to
|
|
673
673
|
}, {
|
|
674
|
-
from:
|
|
675
|
-
insert:
|
|
674
|
+
from: n.from,
|
|
675
|
+
insert: o.text + e.lineBreak
|
|
676
676
|
});
|
|
677
|
-
for (let
|
|
677
|
+
for (let r of n.ranges) a.push(t.range(Math.min(e.doc.length, r.anchor + s), Math.min(e.doc.length, r.head + s)));
|
|
678
678
|
} else {
|
|
679
|
-
|
|
680
|
-
from:
|
|
681
|
-
to:
|
|
679
|
+
i.push({
|
|
680
|
+
from: o.from,
|
|
681
|
+
to: n.from
|
|
682
682
|
}, {
|
|
683
|
-
from:
|
|
684
|
-
insert: e.lineBreak +
|
|
683
|
+
from: n.to,
|
|
684
|
+
insert: e.lineBreak + o.text
|
|
685
685
|
});
|
|
686
|
-
for (let e of
|
|
686
|
+
for (let e of n.ranges) a.push(t.range(e.anchor - s, e.head - s));
|
|
687
687
|
}
|
|
688
688
|
}
|
|
689
|
-
return
|
|
690
|
-
changes:
|
|
689
|
+
return i.length ? (n(e.update({
|
|
690
|
+
changes: i,
|
|
691
691
|
scrollIntoView: !0,
|
|
692
|
-
selection:
|
|
692
|
+
selection: t.create(a, e.selection.mainIndex),
|
|
693
693
|
userEvent: "move.line"
|
|
694
694
|
})), !0) : !1;
|
|
695
695
|
}
|
|
696
|
-
var
|
|
697
|
-
function
|
|
696
|
+
var Gt = ({ state: e, dispatch: t }) => Wt(e, t, !1), Kt = ({ state: e, dispatch: t }) => Wt(e, t, !0);
|
|
697
|
+
function qt(e, t, n) {
|
|
698
698
|
if (e.readOnly) return !1;
|
|
699
699
|
let r = [];
|
|
700
|
-
for (let t of
|
|
700
|
+
for (let t of Y(e)) n ? r.push({
|
|
701
701
|
from: t.from,
|
|
702
702
|
insert: e.doc.slice(t.from, t.to) + e.lineBreak
|
|
703
703
|
}) : r.push({
|
|
@@ -712,9 +712,9 @@ function Kt(e, t, n) {
|
|
|
712
712
|
userEvent: "input.copyline"
|
|
713
713
|
})), !0;
|
|
714
714
|
}
|
|
715
|
-
var
|
|
715
|
+
var Jt = ({ state: e, dispatch: t }) => qt(e, t, !1), Yt = ({ state: e, dispatch: t }) => qt(e, t, !0), Xt = (e) => {
|
|
716
716
|
if (e.state.readOnly) return !1;
|
|
717
|
-
let { state: t } = e, n = t.changes(
|
|
717
|
+
let { state: t } = e, n = t.changes(Y(t).map(({ from: e, to: n }) => (e > 0 ? e-- : n < t.doc.length && n++, {
|
|
718
718
|
from: e,
|
|
719
719
|
to: n
|
|
720
720
|
}))), r = P(t.selection, (t) => {
|
|
@@ -732,145 +732,145 @@ var qt = ({ state: e, dispatch: t }) => Kt(e, t, !1), Jt = ({ state: e, dispatch
|
|
|
732
732
|
userEvent: "delete.line"
|
|
733
733
|
}), !0;
|
|
734
734
|
};
|
|
735
|
-
function
|
|
735
|
+
function Zt(t, n) {
|
|
736
736
|
if (/\(\)|\[\]|\{\}/.test(t.sliceDoc(n - 1, n + 1))) return {
|
|
737
737
|
from: n,
|
|
738
738
|
to: n
|
|
739
739
|
};
|
|
740
|
-
let r =
|
|
741
|
-
return
|
|
742
|
-
from:
|
|
743
|
-
to:
|
|
740
|
+
let r = o(t).resolveInner(n), i = r.childBefore(n), a = r.childAfter(n), s;
|
|
741
|
+
return i && a && i.to <= n && a.from >= n && (s = i.type.prop(e.closedBy)) && s.indexOf(a.name) > -1 && t.doc.lineAt(i.to).from == t.doc.lineAt(a.from).from && !/\S/.test(t.sliceDoc(i.to, a.from)) ? {
|
|
742
|
+
from: i.to,
|
|
743
|
+
to: a.from
|
|
744
744
|
} : null;
|
|
745
745
|
}
|
|
746
|
-
var
|
|
746
|
+
var X = /*@__PURE__*/ $t(!1), Qt = /*@__PURE__*/ $t(!0);
|
|
747
747
|
function $t(e) {
|
|
748
|
-
return ({ state:
|
|
749
|
-
if (
|
|
750
|
-
let
|
|
751
|
-
let { from:
|
|
752
|
-
e && (
|
|
753
|
-
let l = new
|
|
754
|
-
simulateBreak:
|
|
755
|
-
simulateDoubleBreak: !!
|
|
756
|
-
}), u =
|
|
757
|
-
for (u ?? (u =
|
|
758
|
-
|
|
759
|
-
let d = ["",
|
|
760
|
-
return
|
|
748
|
+
return ({ state: n, dispatch: i }) => {
|
|
749
|
+
if (n.readOnly) return !1;
|
|
750
|
+
let a = n.changeByRange((i) => {
|
|
751
|
+
let { from: a, to: o } = i, s = n.doc.lineAt(a), c = !e && a == o && Zt(n, a);
|
|
752
|
+
e && (a = o = (o <= s.to ? s : n.doc.lineAt(o)).to);
|
|
753
|
+
let l = new ne(n, {
|
|
754
|
+
simulateBreak: a,
|
|
755
|
+
simulateDoubleBreak: !!c
|
|
756
|
+
}), u = se(l, a);
|
|
757
|
+
for (u ?? (u = g(/^\s*/.exec(n.doc.lineAt(a).text)[0], n.tabSize)); o < s.to && /\s/.test(s.text[o - s.from]);) o++;
|
|
758
|
+
c ? {from: a, to: o} = c : a > s.from && a < s.from + 100 && !/\S/.test(s.text.slice(0, a)) && (a = s.from);
|
|
759
|
+
let d = ["", r(n, u)];
|
|
760
|
+
return c && d.push(r(n, l.lineIndent(s.from, -1))), {
|
|
761
761
|
changes: {
|
|
762
|
-
from:
|
|
763
|
-
to:
|
|
764
|
-
insert:
|
|
762
|
+
from: a,
|
|
763
|
+
to: o,
|
|
764
|
+
insert: te.of(d)
|
|
765
765
|
},
|
|
766
|
-
range:
|
|
766
|
+
range: t.cursor(a + 1 + d[1].length)
|
|
767
767
|
};
|
|
768
768
|
});
|
|
769
|
-
return n
|
|
769
|
+
return i(n.update(a, {
|
|
770
770
|
scrollIntoView: !0,
|
|
771
771
|
userEvent: "input"
|
|
772
772
|
})), !0;
|
|
773
773
|
};
|
|
774
774
|
}
|
|
775
|
-
function Z(e,
|
|
776
|
-
let
|
|
777
|
-
return e.changeByRange((
|
|
778
|
-
let
|
|
779
|
-
for (let
|
|
780
|
-
let o = e.doc.lineAt(
|
|
781
|
-
o.number >
|
|
775
|
+
function Z(e, n) {
|
|
776
|
+
let r = -1;
|
|
777
|
+
return e.changeByRange((i) => {
|
|
778
|
+
let a = [];
|
|
779
|
+
for (let t = i.from; t <= i.to;) {
|
|
780
|
+
let o = e.doc.lineAt(t);
|
|
781
|
+
o.number > r && (i.empty || i.to > o.from) && (n(o, a, i), r = o.number), t = o.to + 1;
|
|
782
782
|
}
|
|
783
|
-
let
|
|
783
|
+
let o = e.changes(a);
|
|
784
784
|
return {
|
|
785
|
-
changes:
|
|
786
|
-
range:
|
|
785
|
+
changes: a,
|
|
786
|
+
range: t.range(o.mapPos(i.anchor, 1), o.mapPos(i.head, 1))
|
|
787
787
|
};
|
|
788
788
|
});
|
|
789
789
|
}
|
|
790
790
|
var en = ({ state: e, dispatch: t }) => {
|
|
791
791
|
if (e.readOnly) return !1;
|
|
792
|
-
let n = Object.create(null),
|
|
793
|
-
let
|
|
794
|
-
if (
|
|
795
|
-
/\S/.test(t.text) || (
|
|
796
|
-
let
|
|
797
|
-
(
|
|
792
|
+
let n = Object.create(null), i = new ne(e, { overrideIndentation: (e) => n[e] ?? -1 }), a = Z(e, (t, a, o) => {
|
|
793
|
+
let s = se(i, t.from);
|
|
794
|
+
if (s == null) return;
|
|
795
|
+
/\S/.test(t.text) || (s = 0);
|
|
796
|
+
let c = /^\s*/.exec(t.text)[0], l = r(e, s);
|
|
797
|
+
(c != l || o.from < t.from + c.length) && (n[t.from] = s, a.push({
|
|
798
798
|
from: t.from,
|
|
799
|
-
to: t.from +
|
|
799
|
+
to: t.from + c.length,
|
|
800
800
|
insert: l
|
|
801
801
|
}));
|
|
802
802
|
});
|
|
803
|
-
return
|
|
803
|
+
return a.changes.empty || t(e.update(a, { userEvent: "indent" })), !0;
|
|
804
804
|
}, tn = ({ state: e, dispatch: t }) => !e.readOnly && (t(e.update(Z(e, (t, n) => {
|
|
805
805
|
n.push({
|
|
806
806
|
from: t.from,
|
|
807
|
-
insert: e.facet(
|
|
807
|
+
insert: e.facet(oe)
|
|
808
808
|
});
|
|
809
809
|
}), { userEvent: "input.indent" })), !0), nn = ({ state: e, dispatch: t }) => !e.readOnly && (t(e.update(Z(e, (t, n) => {
|
|
810
|
-
let
|
|
811
|
-
if (!
|
|
812
|
-
let
|
|
813
|
-
for (;
|
|
810
|
+
let i = /^\s*/.exec(t.text)[0];
|
|
811
|
+
if (!i) return;
|
|
812
|
+
let a = g(i, e.tabSize), o = 0, s = r(e, Math.max(0, a - d(e)));
|
|
813
|
+
for (; o < i.length && o < s.length && i.charCodeAt(o) == s.charCodeAt(o);) o++;
|
|
814
814
|
n.push({
|
|
815
|
-
from: t.from +
|
|
816
|
-
to: t.from +
|
|
817
|
-
insert:
|
|
815
|
+
from: t.from + o,
|
|
816
|
+
to: t.from + i.length,
|
|
817
|
+
insert: s.slice(o)
|
|
818
818
|
});
|
|
819
819
|
}), { userEvent: "delete.dedent" })), !0), rn = (e) => (e.setTabFocusMode(), !0), an = [
|
|
820
820
|
{
|
|
821
821
|
key: "Ctrl-b",
|
|
822
822
|
run: Re,
|
|
823
|
-
shift:
|
|
823
|
+
shift: at,
|
|
824
824
|
preventDefault: !0
|
|
825
825
|
},
|
|
826
826
|
{
|
|
827
827
|
key: "Ctrl-f",
|
|
828
|
-
run:
|
|
829
|
-
shift:
|
|
828
|
+
run: z,
|
|
829
|
+
shift: ot
|
|
830
830
|
},
|
|
831
831
|
{
|
|
832
832
|
key: "Ctrl-p",
|
|
833
|
-
run:
|
|
834
|
-
shift:
|
|
833
|
+
run: Ge,
|
|
834
|
+
shift: pt
|
|
835
835
|
},
|
|
836
836
|
{
|
|
837
837
|
key: "Ctrl-n",
|
|
838
838
|
run: Ke,
|
|
839
|
-
shift:
|
|
839
|
+
shift: mt
|
|
840
840
|
},
|
|
841
841
|
{
|
|
842
842
|
key: "Ctrl-a",
|
|
843
843
|
run: et,
|
|
844
|
-
shift:
|
|
844
|
+
shift: St
|
|
845
845
|
},
|
|
846
846
|
{
|
|
847
847
|
key: "Ctrl-e",
|
|
848
848
|
run: tt,
|
|
849
|
-
shift:
|
|
849
|
+
shift: Ct
|
|
850
850
|
},
|
|
851
851
|
{
|
|
852
852
|
key: "Ctrl-d",
|
|
853
|
-
run:
|
|
853
|
+
run: J
|
|
854
854
|
},
|
|
855
855
|
{
|
|
856
856
|
key: "Ctrl-h",
|
|
857
|
-
run:
|
|
857
|
+
run: q
|
|
858
858
|
},
|
|
859
859
|
{
|
|
860
860
|
key: "Ctrl-k",
|
|
861
|
-
run:
|
|
861
|
+
run: zt
|
|
862
862
|
},
|
|
863
863
|
{
|
|
864
864
|
key: "Ctrl-Alt-h",
|
|
865
|
-
run:
|
|
865
|
+
run: Lt
|
|
866
866
|
},
|
|
867
867
|
{
|
|
868
868
|
key: "Ctrl-o",
|
|
869
|
-
run:
|
|
869
|
+
run: Ht
|
|
870
870
|
},
|
|
871
871
|
{
|
|
872
872
|
key: "Ctrl-t",
|
|
873
|
-
run:
|
|
873
|
+
run: Ut
|
|
874
874
|
},
|
|
875
875
|
{
|
|
876
876
|
key: "Ctrl-v",
|
|
@@ -880,145 +880,145 @@ var en = ({ state: e, dispatch: t }) => {
|
|
|
880
880
|
{
|
|
881
881
|
key: "ArrowLeft",
|
|
882
882
|
run: Re,
|
|
883
|
-
shift:
|
|
883
|
+
shift: at,
|
|
884
884
|
preventDefault: !0
|
|
885
885
|
},
|
|
886
886
|
{
|
|
887
887
|
key: "Mod-ArrowLeft",
|
|
888
888
|
mac: "Alt-ArrowLeft",
|
|
889
|
-
run:
|
|
890
|
-
shift:
|
|
889
|
+
run: ze,
|
|
890
|
+
shift: ct,
|
|
891
891
|
preventDefault: !0
|
|
892
892
|
},
|
|
893
893
|
{
|
|
894
894
|
mac: "Cmd-ArrowLeft",
|
|
895
895
|
run: Qe,
|
|
896
|
-
shift:
|
|
896
|
+
shift: bt,
|
|
897
897
|
preventDefault: !0
|
|
898
898
|
},
|
|
899
899
|
{
|
|
900
900
|
key: "ArrowRight",
|
|
901
|
-
run:
|
|
902
|
-
shift:
|
|
901
|
+
run: z,
|
|
902
|
+
shift: ot,
|
|
903
903
|
preventDefault: !0
|
|
904
904
|
},
|
|
905
905
|
{
|
|
906
906
|
key: "Mod-ArrowRight",
|
|
907
907
|
mac: "Alt-ArrowRight",
|
|
908
|
-
run:
|
|
909
|
-
shift:
|
|
908
|
+
run: Be,
|
|
909
|
+
shift: lt,
|
|
910
910
|
preventDefault: !0
|
|
911
911
|
},
|
|
912
912
|
{
|
|
913
913
|
mac: "Cmd-ArrowRight",
|
|
914
914
|
run: $e,
|
|
915
|
-
shift:
|
|
915
|
+
shift: xt,
|
|
916
916
|
preventDefault: !0
|
|
917
917
|
},
|
|
918
918
|
{
|
|
919
919
|
key: "ArrowUp",
|
|
920
|
-
run:
|
|
921
|
-
shift:
|
|
920
|
+
run: Ge,
|
|
921
|
+
shift: pt,
|
|
922
922
|
preventDefault: !0
|
|
923
923
|
},
|
|
924
924
|
{
|
|
925
925
|
mac: "Cmd-ArrowUp",
|
|
926
|
-
run:
|
|
927
|
-
shift:
|
|
926
|
+
run: wt,
|
|
927
|
+
shift: Et
|
|
928
928
|
},
|
|
929
929
|
{
|
|
930
930
|
mac: "Ctrl-ArrowUp",
|
|
931
931
|
run: Ye,
|
|
932
|
-
shift:
|
|
932
|
+
shift: gt
|
|
933
933
|
},
|
|
934
934
|
{
|
|
935
935
|
key: "ArrowDown",
|
|
936
936
|
run: Ke,
|
|
937
|
-
shift:
|
|
937
|
+
shift: mt,
|
|
938
938
|
preventDefault: !0
|
|
939
939
|
},
|
|
940
940
|
{
|
|
941
941
|
mac: "Cmd-ArrowDown",
|
|
942
|
-
run:
|
|
943
|
-
shift:
|
|
942
|
+
run: Tt,
|
|
943
|
+
shift: Dt
|
|
944
944
|
},
|
|
945
945
|
{
|
|
946
946
|
mac: "Ctrl-ArrowDown",
|
|
947
947
|
run: H,
|
|
948
|
-
shift:
|
|
948
|
+
shift: _t
|
|
949
949
|
},
|
|
950
950
|
{
|
|
951
951
|
key: "PageUp",
|
|
952
952
|
run: Ye,
|
|
953
|
-
shift:
|
|
953
|
+
shift: gt
|
|
954
954
|
},
|
|
955
955
|
{
|
|
956
956
|
key: "PageDown",
|
|
957
957
|
run: H,
|
|
958
|
-
shift:
|
|
958
|
+
shift: _t
|
|
959
959
|
},
|
|
960
960
|
{
|
|
961
961
|
key: "Home",
|
|
962
962
|
run: Ze,
|
|
963
|
-
shift:
|
|
963
|
+
shift: yt,
|
|
964
964
|
preventDefault: !0
|
|
965
965
|
},
|
|
966
966
|
{
|
|
967
967
|
key: "Mod-Home",
|
|
968
|
-
run:
|
|
969
|
-
shift:
|
|
968
|
+
run: wt,
|
|
969
|
+
shift: Et
|
|
970
970
|
},
|
|
971
971
|
{
|
|
972
972
|
key: "End",
|
|
973
973
|
run: Xe,
|
|
974
|
-
shift:
|
|
974
|
+
shift: vt,
|
|
975
975
|
preventDefault: !0
|
|
976
976
|
},
|
|
977
977
|
{
|
|
978
978
|
key: "Mod-End",
|
|
979
|
-
run:
|
|
980
|
-
shift:
|
|
979
|
+
run: Tt,
|
|
980
|
+
shift: Dt
|
|
981
981
|
},
|
|
982
982
|
{
|
|
983
983
|
key: "Enter",
|
|
984
|
-
run:
|
|
985
|
-
shift:
|
|
984
|
+
run: X,
|
|
985
|
+
shift: X
|
|
986
986
|
},
|
|
987
987
|
{
|
|
988
988
|
key: "Mod-a",
|
|
989
|
-
run:
|
|
989
|
+
run: Ot
|
|
990
990
|
},
|
|
991
991
|
{
|
|
992
992
|
key: "Backspace",
|
|
993
|
-
run:
|
|
994
|
-
shift:
|
|
993
|
+
run: q,
|
|
994
|
+
shift: q,
|
|
995
995
|
preventDefault: !0
|
|
996
996
|
},
|
|
997
997
|
{
|
|
998
998
|
key: "Delete",
|
|
999
|
-
run:
|
|
999
|
+
run: J,
|
|
1000
1000
|
preventDefault: !0
|
|
1001
1001
|
},
|
|
1002
1002
|
{
|
|
1003
1003
|
key: "Mod-Backspace",
|
|
1004
1004
|
mac: "Alt-Backspace",
|
|
1005
|
-
run:
|
|
1005
|
+
run: Lt,
|
|
1006
1006
|
preventDefault: !0
|
|
1007
1007
|
},
|
|
1008
1008
|
{
|
|
1009
1009
|
key: "Mod-Delete",
|
|
1010
1010
|
mac: "Alt-Delete",
|
|
1011
|
-
run:
|
|
1011
|
+
run: Rt,
|
|
1012
1012
|
preventDefault: !0
|
|
1013
1013
|
},
|
|
1014
1014
|
{
|
|
1015
1015
|
mac: "Mod-Backspace",
|
|
1016
|
-
run:
|
|
1016
|
+
run: Bt,
|
|
1017
1017
|
preventDefault: !0
|
|
1018
1018
|
},
|
|
1019
1019
|
{
|
|
1020
1020
|
mac: "Mod-Delete",
|
|
1021
|
-
run:
|
|
1021
|
+
run: Vt,
|
|
1022
1022
|
preventDefault: !0
|
|
1023
1023
|
}
|
|
1024
1024
|
].concat(/*@__PURE__*/ an.map((e) => ({
|
|
@@ -1029,42 +1029,42 @@ var en = ({ state: e, dispatch: t }) => {
|
|
|
1029
1029
|
{
|
|
1030
1030
|
key: "Alt-ArrowLeft",
|
|
1031
1031
|
mac: "Ctrl-ArrowLeft",
|
|
1032
|
-
run:
|
|
1033
|
-
shift:
|
|
1032
|
+
run: He,
|
|
1033
|
+
shift: ut
|
|
1034
1034
|
},
|
|
1035
1035
|
{
|
|
1036
1036
|
key: "Alt-ArrowRight",
|
|
1037
1037
|
mac: "Ctrl-ArrowRight",
|
|
1038
|
-
run:
|
|
1039
|
-
shift:
|
|
1038
|
+
run: Ue,
|
|
1039
|
+
shift: dt
|
|
1040
1040
|
},
|
|
1041
1041
|
{
|
|
1042
1042
|
key: "Alt-ArrowUp",
|
|
1043
|
-
run:
|
|
1043
|
+
run: Gt
|
|
1044
1044
|
},
|
|
1045
1045
|
{
|
|
1046
1046
|
key: "Shift-Alt-ArrowUp",
|
|
1047
|
-
run:
|
|
1047
|
+
run: Jt
|
|
1048
1048
|
},
|
|
1049
1049
|
{
|
|
1050
1050
|
key: "Alt-ArrowDown",
|
|
1051
|
-
run:
|
|
1051
|
+
run: Kt
|
|
1052
1052
|
},
|
|
1053
1053
|
{
|
|
1054
1054
|
key: "Shift-Alt-ArrowDown",
|
|
1055
|
-
run:
|
|
1055
|
+
run: Yt
|
|
1056
1056
|
},
|
|
1057
1057
|
{
|
|
1058
1058
|
key: "Mod-Alt-ArrowUp",
|
|
1059
|
-
run:
|
|
1059
|
+
run: Mt
|
|
1060
1060
|
},
|
|
1061
1061
|
{
|
|
1062
1062
|
key: "Mod-Alt-ArrowDown",
|
|
1063
|
-
run:
|
|
1063
|
+
run: Nt
|
|
1064
1064
|
},
|
|
1065
1065
|
{
|
|
1066
1066
|
key: "Escape",
|
|
1067
|
-
run:
|
|
1067
|
+
run: Pt
|
|
1068
1068
|
},
|
|
1069
1069
|
{
|
|
1070
1070
|
key: "Mod-Enter",
|
|
@@ -1073,11 +1073,11 @@ var en = ({ state: e, dispatch: t }) => {
|
|
|
1073
1073
|
{
|
|
1074
1074
|
key: "Alt-l",
|
|
1075
1075
|
mac: "Ctrl-l",
|
|
1076
|
-
run:
|
|
1076
|
+
run: kt
|
|
1077
1077
|
},
|
|
1078
1078
|
{
|
|
1079
1079
|
key: "Mod-i",
|
|
1080
|
-
run:
|
|
1080
|
+
run: At,
|
|
1081
1081
|
preventDefault: !0
|
|
1082
1082
|
},
|
|
1083
1083
|
{
|
|
@@ -1094,7 +1094,7 @@ var en = ({ state: e, dispatch: t }) => {
|
|
|
1094
1094
|
},
|
|
1095
1095
|
{
|
|
1096
1096
|
key: "Shift-Mod-k",
|
|
1097
|
-
run:
|
|
1097
|
+
run: Xt
|
|
1098
1098
|
},
|
|
1099
1099
|
{
|
|
1100
1100
|
key: "Shift-Mod-\\",
|
|
@@ -1102,21 +1102,21 @@ var en = ({ state: e, dispatch: t }) => {
|
|
|
1102
1102
|
},
|
|
1103
1103
|
{
|
|
1104
1104
|
key: "Mod-/",
|
|
1105
|
-
run:
|
|
1105
|
+
run: fe
|
|
1106
1106
|
},
|
|
1107
1107
|
{
|
|
1108
1108
|
key: "Alt-A",
|
|
1109
1109
|
mac: "Ctrl-A",
|
|
1110
|
-
run:
|
|
1110
|
+
run: me
|
|
1111
1111
|
},
|
|
1112
1112
|
{
|
|
1113
1113
|
key: "Ctrl-m",
|
|
1114
1114
|
mac: "Shift-Alt-m",
|
|
1115
1115
|
run: rn
|
|
1116
1116
|
}
|
|
1117
|
-
].concat(on), Q, $ = class extends
|
|
1117
|
+
].concat(on), Q, $ = class extends ue(de(ee)) {
|
|
1118
1118
|
constructor(...e) {
|
|
1119
|
-
super(...e), this.value = "", this.inputId = "", this.placeholder = "", this.disabled = !1, this.name = "", this.readonly = !1, this.required = !1, this.rows = 6, this.accessibleLabel = "", this.invalid = !1, this._initialValue = "", this._valueAtFocus = "", this._editableCompartment = new
|
|
1119
|
+
super(...e), this.value = "", this.inputId = "", this.placeholder = "", this.disabled = !1, this.name = "", this.readonly = !1, this.required = !1, this.rows = 6, this.accessibleLabel = "", this.invalid = !1, this._initialValue = "", this._valueAtFocus = "", this._editableCompartment = new s(), this._placeholderCompartment = new s(), this._attrsCompartment = new s(), this._onScrollerPointerDown = (e) => {
|
|
1120
1120
|
e.target === this.view?.scrollDOM && (this.focusFromPoint(e.clientX, e.clientY), e.preventDefault());
|
|
1121
1121
|
};
|
|
1122
1122
|
}
|
|
@@ -1132,10 +1132,10 @@ var en = ({ state: e, dispatch: t }) => {
|
|
|
1132
1132
|
this._placeholderCompartment.of(this._placeholderExtension()),
|
|
1133
1133
|
this._editableCompartment.of(this._editableExtension()),
|
|
1134
1134
|
this._attrsCompartment.of(this._attrsExtension()),
|
|
1135
|
-
|
|
1136
|
-
e.docChanged && this._onDocChanged();
|
|
1135
|
+
h.updateListener.of((e) => {
|
|
1136
|
+
e.docChanged && this._onDocChanged(e.transactions.every((e) => !e.docChanged || e.annotation(_.remote)));
|
|
1137
1137
|
}),
|
|
1138
|
-
|
|
1138
|
+
h.domEventHandlers({
|
|
1139
1139
|
focus: () => {
|
|
1140
1140
|
this._valueAtFocus = this.value;
|
|
1141
1141
|
},
|
|
@@ -1146,14 +1146,14 @@ var en = ({ state: e, dispatch: t }) => {
|
|
|
1146
1146
|
];
|
|
1147
1147
|
}
|
|
1148
1148
|
_editableExtension() {
|
|
1149
|
-
return [
|
|
1149
|
+
return [h.editable.of(!this.disabled), p.readOnly.of(this.disabled || this.readonly)];
|
|
1150
1150
|
}
|
|
1151
1151
|
_placeholderExtension() {
|
|
1152
1152
|
return this.placeholder ? a(this.placeholder) : [];
|
|
1153
1153
|
}
|
|
1154
1154
|
_attrsExtension() {
|
|
1155
1155
|
let e = { ...this.contentAttributes() };
|
|
1156
|
-
return this.accessibleLabel && (e["aria-label"] = this.accessibleLabel), this.inputId && (e.id = this.inputId), (this.readonly || this.disabled) && (e["aria-readonly"] = "true"), this.required && (e["aria-required"] = "true"),
|
|
1156
|
+
return this.accessibleLabel && (e["aria-label"] = this.accessibleLabel), this.inputId && (e.id = this.inputId), (this.readonly || this.disabled) && (e["aria-readonly"] = "true"), this.required && (e["aria-required"] = "true"), h.contentAttributes.of(e);
|
|
1157
1157
|
}
|
|
1158
1158
|
refreshContentAttributes() {
|
|
1159
1159
|
this.reconfigure(this._attrsCompartment, this._attrsExtension());
|
|
@@ -1173,10 +1173,10 @@ var en = ({ state: e, dispatch: t }) => {
|
|
|
1173
1173
|
"required"
|
|
1174
1174
|
].some((t) => e.has(t)) && this.refreshContentAttributes());
|
|
1175
1175
|
}
|
|
1176
|
-
_onDocChanged() {
|
|
1177
|
-
let
|
|
1178
|
-
|
|
1179
|
-
detail: { value:
|
|
1176
|
+
_onDocChanged(e) {
|
|
1177
|
+
let t = this.docToValue(this.doc);
|
|
1178
|
+
t !== this.value && (e && this.value === this._valueAtFocus && (this._valueAtFocus = t), this.value = t, this.commitFormValue(), e || this.dispatchEvent(new CustomEvent("input", {
|
|
1179
|
+
detail: { value: t },
|
|
1180
1180
|
bubbles: !0,
|
|
1181
1181
|
composed: !0
|
|
1182
1182
|
})));
|
|
@@ -1202,31 +1202,31 @@ var en = ({ state: e, dispatch: t }) => {
|
|
|
1202
1202
|
}
|
|
1203
1203
|
};
|
|
1204
1204
|
Q = $, Q.shadowRootOptions = {
|
|
1205
|
-
...
|
|
1205
|
+
...ce.shadowRootOptions,
|
|
1206
1206
|
delegatesFocus: !0
|
|
1207
|
-
}, Q.isFormInput = !0,
|
|
1207
|
+
}, Q.isFormInput = !0, Q.isTextEntry = !0, y([v({ type: String })], $.prototype, "value", void 0), y([v({
|
|
1208
1208
|
type: String,
|
|
1209
1209
|
attribute: "input-id"
|
|
1210
|
-
})], $.prototype, "inputId", void 0),
|
|
1210
|
+
})], $.prototype, "inputId", void 0), y([v({
|
|
1211
1211
|
reflect: !0,
|
|
1212
|
-
converter:
|
|
1213
|
-
})], $.prototype, "placeholder", void 0),
|
|
1212
|
+
converter: le("")
|
|
1213
|
+
})], $.prototype, "placeholder", void 0), y([v({
|
|
1214
1214
|
type: Boolean,
|
|
1215
1215
|
reflect: !0
|
|
1216
|
-
})], $.prototype, "disabled", void 0),
|
|
1216
|
+
})], $.prototype, "disabled", void 0), y([v({
|
|
1217
1217
|
reflect: !0,
|
|
1218
|
-
converter:
|
|
1219
|
-
})], $.prototype, "name", void 0),
|
|
1218
|
+
converter: le("")
|
|
1219
|
+
})], $.prototype, "name", void 0), y([v({
|
|
1220
1220
|
type: Boolean,
|
|
1221
1221
|
reflect: !0
|
|
1222
|
-
})], $.prototype, "readonly", void 0),
|
|
1222
|
+
})], $.prototype, "readonly", void 0), y([v({
|
|
1223
1223
|
type: Boolean,
|
|
1224
1224
|
reflect: !0
|
|
1225
|
-
})], $.prototype, "required", void 0),
|
|
1225
|
+
})], $.prototype, "required", void 0), y([v({ type: Number })], $.prototype, "rows", void 0), y([v({
|
|
1226
1226
|
type: String,
|
|
1227
1227
|
attribute: "accessible-label"
|
|
1228
|
-
})], $.prototype, "accessibleLabel", void 0),
|
|
1228
|
+
})], $.prototype, "accessibleLabel", void 0), y([v({
|
|
1229
1229
|
type: Boolean,
|
|
1230
1230
|
reflect: !0
|
|
1231
1231
|
})], $.prototype, "invalid", void 0);
|
|
1232
|
-
export {
|
|
1232
|
+
export { Ce as a, be as c, E as d, De as f, J as i, D as l, sn as n, Ie as o, q as r, xe as s, $ as t, Oe as u };
|