@nldd/design-system 0.25.2 → 0.26.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/custom-elements.json +728 -32
- package/dist/cdn/autoloader.js +141 -141
- package/dist/cdn/chunks/{accordion-CE_VBJPo.js → accordion-DA4IlxS5.js} +4 -4
- package/dist/cdn/chunks/{accordion-item-CkIrLwn9.js → accordion-item-Ca1o93cq.js} +9 -7
- package/dist/cdn/chunks/{activity-indicator-DHgkMBdz.js → activity-indicator-Cj4H0Mbz.js} +5 -5
- package/dist/cdn/chunks/{admonition-CK1c7HiM.js → admonition-CdZSoO8O.js} +9 -7
- package/dist/cdn/chunks/{avatar-DwS0FqYL.js → avatar-Dhqn-Dmv.js} +6 -6
- package/dist/cdn/chunks/{avatar-group-BX1URuq1.js → avatar-group-B017eF-u.js} +15 -15
- package/dist/cdn/chunks/{badge-Dyfzch0N.js → badge-Bep5B0_g.js} +5 -5
- package/dist/cdn/chunks/{banner-BPUb-ZpJ.js → banner-DGpIXuE2.js} +7 -7
- package/dist/cdn/chunks/{bar-split-view-BitGKRYw.js → bar-split-view-CKwJxd3e.js} +5 -5
- package/dist/cdn/chunks/{blockquote-CAnK7XlI.js → blockquote-ChMgaOuI.js} +3 -3
- package/dist/cdn/chunks/{box-epVc6r3W.js → box-BRmziG-6.js} +3 -3
- package/dist/cdn/chunks/{breadcrumbs-CY5m5_72.js → breadcrumbs-BeVO8bkQ.js} +5 -5
- package/dist/cdn/chunks/{button-bar-BcmQQqns.js → button-bar-CLxOdalJ.js} +3 -3
- package/dist/cdn/chunks/{button-1F4MG_21.js → button-cHBkq_s7.js} +9 -9
- package/dist/cdn/chunks/{button-group-vez-t2RB.js → button-group-BIvKtEIX.js} +2 -2
- package/dist/cdn/chunks/{card-sHcZK0Sx.js → card-B5gp9Zly.js} +4 -4
- package/dist/cdn/chunks/{cell-_FH10LVj.js → cell-D4Nrd5Z9.js} +6 -6
- package/dist/cdn/chunks/{checkbox-B2EXnuni.js → checkbox-CeLTJhAc.js} +4 -4
- package/dist/cdn/chunks/{checkbox-field-DYBeOCXv.js → checkbox-field-C8cU8fuf.js} +6 -6
- package/dist/cdn/chunks/{checkbox-group-zV_EgqJ1.js → checkbox-group-CC72cq-P.js} +3 -3
- package/dist/cdn/chunks/{class-map-3v5_QWa6.js → class-map-xzscTu4B.js} +1 -1
- package/dist/cdn/chunks/{code-editor-DVHvHweL.js → code-editor-BNhlXTSl.js} +10 -10
- package/dist/cdn/chunks/{code-viewer-CRc5yGTZ.js → code-viewer-D_JwouYO.js} +35 -35
- package/dist/cdn/chunks/{codemirror-input-CgrWL_xI.js → codemirror-input-DJ0wgYrc.js} +368 -368
- package/dist/cdn/chunks/{collection-BobIdtqA.js → collection-BXvz_OtU.js} +8 -8
- package/dist/cdn/chunks/{combo-box-1h_xzaHk.js → combo-box-8kbmoStb.js} +9 -9
- package/dist/cdn/chunks/{container-RIa-Sff8.js → container-Dq-2uHd5.js} +2 -2
- package/dist/cdn/chunks/{custom-element-Dmqf9u_a.js → custom-element-DeaCQ2NP.js} +1 -1
- package/dist/cdn/chunks/{date-field-BN9TIiUH.js → date-field-CQg1_73u.js} +13 -13
- package/dist/cdn/chunks/{date-picker-BFvZvzwT.js → date-picker-CTMxGOiA.js} +10 -10
- package/dist/cdn/chunks/{decorate-D_xx_M26.js → decorate-CCYde2ES.js} +1 -1
- package/dist/cdn/chunks/{described-by-mixin-C3iCCTgg.js → described-by-mixin-BYFim7aO.js} +2 -2
- package/dist/cdn/chunks/{description-cell-D9oU3cOo.js → description-cell-GcVeCz2_.js} +6 -6
- package/dist/cdn/chunks/{dev-checks-Dcd5eLU5.js → dev-checks-CSlbfDuF.js} +19 -2
- package/dist/cdn/chunks/{directive-helpers-B40ApSJp.js → directive-helpers-DgaADFyY.js} +1 -1
- package/dist/cdn/chunks/{dist-DRizG2xD.js → dist-1OQdP4ho.js} +10 -10
- package/dist/cdn/chunks/{dist-BJyPLZy3.js → dist-5vPsM2aV.js} +8 -8
- package/dist/cdn/chunks/{dist-Cxpg90R5.js → dist-B23jHvJ5.js} +15 -15
- package/dist/cdn/chunks/{dist-B5Qpgwkt.js → dist-CNy2sPTt.js} +6 -6
- package/dist/cdn/chunks/{dist-BzfZCamJ.js → dist-CcpLhc4y.js} +7 -7
- package/dist/cdn/chunks/{dist-BZuHdnRq.js → dist-CyDpBAaD.js} +7 -7
- package/dist/cdn/chunks/{dist-De4uSuY6.js → dist-D4SViUJx.js} +21 -21
- package/dist/cdn/chunks/{dist-0pu3OKnY.js → dist-DBxjWahH.js} +4 -4
- package/dist/cdn/chunks/{dist-CPfUaZn6.js → dist-DLtwMUDc.js} +18 -18
- package/dist/cdn/chunks/{dist-8y5HG5So.js → dist-Da_liXcd.js} +124 -124
- package/dist/cdn/chunks/{dist-BVrnRVfm.js → dist-VCymi0hs.js} +250 -250
- package/dist/cdn/chunks/{divider-DhmeevvA.js → divider-8XD3xTbl.js} +2 -2
- package/dist/cdn/chunks/{document-tab-bar-BxgIq1Lc.js → document-tab-bar-RBAmckHS.js} +9 -9
- package/dist/cdn/chunks/{dropdown-BTnHERYI.js → dropdown-DVlxPcjr.js} +5 -5
- package/dist/cdn/chunks/field-button-controller-yvICuXoE.js +26 -0
- package/dist/cdn/chunks/{file-field-BoQCuthe.js → file-field-BrHnFplX.js} +12 -12
- package/dist/cdn/chunks/{form-D6w4G6Qv.js → form-DGHeGEIr.js} +1 -1
- package/dist/cdn/chunks/{form-actions-ifb8kolV.js → form-actions-CHwWKfMM.js} +2 -2
- package/dist/cdn/chunks/{form-field-RhzuOcS5.js → form-field-CdTSI-8h.js} +21 -16
- package/dist/cdn/chunks/{form-section-0df1Ao8U.js → form-section-CjECOIiZ.js} +1 -1
- package/dist/cdn/chunks/{full-bleed-section-BhcgrH9L.js → full-bleed-section-CQgq4iGQ.js} +3 -3
- package/dist/cdn/chunks/{hero-BpLUglsB.js → hero-DhdcYt2N.js} +4 -4
- package/dist/cdn/chunks/{icon-button-BzCEK4gH.js → icon-button-DT_Bi4Ac.js} +9 -9
- package/dist/cdn/chunks/{icon-cell-fu4ggTII.js → icon-cell-C-qrZAlN.js} +5 -5
- package/dist/cdn/chunks/{icon-C1HTyyIr.js → icon-qpmEfU9B.js} +2 -2
- package/dist/cdn/chunks/{identity-CM-fW-xb.js → identity-DFmvuPkl.js} +6 -6
- package/dist/cdn/chunks/{if-defined-CSVfrDre.js → if-defined-BINBE69I.js} +1 -1
- package/dist/cdn/chunks/{image-CjcWKYny.js → image-B4M3h1xJ.js} +8 -8
- package/dist/cdn/chunks/{inline-dialog-QHDEfqso.js → inline-dialog-L-NvjANF.js} +6 -6
- package/dist/cdn/chunks/{just-in-time-education-BuDwdo2R.js → just-in-time-education-CWplH4r9.js} +5 -5
- package/dist/cdn/chunks/{kanban-BaRiCfTn.js → kanban-B6Wa-2aM.js} +5 -5
- package/dist/cdn/chunks/{kanban-column-BuYmxxwP.js → kanban-column-D2-Xq79_.js} +4 -4
- package/dist/cdn/chunks/{keyboard-shortcut-DYMD3B5a.js → keyboard-shortcut-Ci95olxF.js} +118 -47
- package/dist/cdn/chunks/{languages-BFRgyhqj.js → languages-C9AGuuSS.js} +43 -32
- package/dist/cdn/chunks/{link-Cb7bYQmD.js → link-BJB2a_fG.js} +6 -6
- package/dist/cdn/chunks/{link-group-CCxIltG-.js → link-group-aNoedLZo.js} +2 -2
- package/dist/cdn/chunks/{list-B7VgeqfW.js → list-CZWX62tH.js} +8 -8
- package/dist/cdn/chunks/{list-item-Ccmi9h7_.js → list-item-DHzsbK_S.js} +5 -5
- package/dist/cdn/chunks/{list-item-segment-C5APtc9o.js → list-item-segment-CHLlU9Gg.js} +3 -3
- package/dist/cdn/chunks/{menu-B03m20cI.js → menu-NGpB1SKq.js} +21 -17
- package/dist/cdn/chunks/{menu-bar-BTwITnAx.js → menu-bar-CJazkmY7.js} +6 -6
- package/dist/cdn/chunks/{menu-bar-item-By1lj2Ra.js → menu-bar-item-CSqXWNKE.js} +6 -6
- package/dist/cdn/chunks/{menu-divider-Cj7PfUGr.js → menu-divider-Cn1hTpcM.js} +3 -3
- package/dist/cdn/chunks/{menu-group-DyFNOAV9.js → menu-group-C71K1Vmv.js} +4 -4
- package/dist/cdn/chunks/{menu-item-D-9U16AZ.js → menu-item-TqBlQfI2.js} +4 -4
- package/dist/cdn/chunks/{menu.template-DmK-gq-8.js → menu.template-DthELYky.js} +20 -15
- package/dist/cdn/chunks/{modal-dialog-f_Ftzcrk.js → modal-dialog-0V2HsrJC.js} +4 -4
- package/dist/cdn/chunks/{multi-line-text-field-CwTomQkh.js → multi-line-text-field-BV4uUDoK.js} +60 -34
- package/dist/cdn/chunks/{navigation-split-view-CMy_B-Gr.js → navigation-split-view-tPhkxEVD.js} +4 -4
- package/dist/cdn/chunks/{notification-DiXBAbmu.js → notification-CZccv6qx.js} +6 -6
- package/dist/cdn/chunks/{number-field-CPCuSebL.js → number-field-4R2blHda.js} +8 -8
- package/dist/cdn/chunks/{one-half-one-half-section-lsJ_QAgo.js → one-half-one-half-section-h2fLPQfP.js} +3 -3
- package/dist/cdn/chunks/{one-third-two-thirds-section-LS-XD6DL.js → one-third-two-thirds-section-mqUAH5lK.js} +3 -3
- package/dist/cdn/chunks/{one-time-code-field-DT4VRbkL.js → one-time-code-field-Bf_qymKd.js} +7 -7
- package/dist/cdn/chunks/{page-BWCcVj4L.js → page-Kipfvmi6.js} +4 -4
- package/dist/cdn/chunks/{page-footer-QCQIeoP7.js → page-footer-DxE966Oe.js} +4 -4
- package/dist/cdn/chunks/{page-section-mixin-BSRwTzVh.js → page-section-mixin-DpF9JDpd.js} +3 -3
- package/dist/cdn/chunks/{pagination-CfR0D1Z7.js → pagination-DUFFhaU8.js} +6 -6
- package/dist/cdn/chunks/{password-field-37i3lAaO.js → password-field-DdYAVmF3.js} +8 -8
- package/dist/cdn/chunks/{popover-BpX7ZwI_.js → popover-CRHxyhGx.js} +6 -6
- package/dist/cdn/chunks/{progress-bar-oT3i4-Ib.js → progress-bar-BuYsjmSo.js} +7 -7
- package/dist/cdn/chunks/{progress-circle-CskWYN6V.js → progress-circle-Cvu1bfNG.js} +7 -7
- package/dist/cdn/chunks/{radio-button-sFiWCWEp.js → radio-button-B_4AxWDx.js} +3 -3
- package/dist/cdn/chunks/{radio-button-field-yXg-i59N.js → radio-button-field-D7jIg6Oi.js} +5 -5
- package/dist/cdn/chunks/{radio-button-group-Bp4nILvI.js → radio-button-group-D_OezDhB.js} +3 -3
- package/dist/cdn/chunks/{render-marked-B_e-wQFe.js → render-marked-CIuiSS_8.js} +1 -1
- package/dist/cdn/chunks/{reorder-handle-cell-BFyWv6Xk.js → reorder-handle-cell-DNPaZjSC.js} +4 -4
- package/dist/cdn/chunks/{reorder-handle-mixin-CwNDaVUE.js → reorder-handle-mixin-CgvWq4fF.js} +2 -2
- package/dist/cdn/chunks/{repeat-Dx2PqcyL.js → repeat-DfVuWl6o.js} +2 -2
- package/dist/cdn/chunks/{return-focus-BzZWhXhc.js → return-focus-D0fF2hjd.js} +1 -1
- package/dist/cdn/chunks/{rich-text-CaVHkCB8.js → rich-text-CVHlMQY6.js} +3 -3
- package/dist/cdn/chunks/{row-header-mixin-BX0qSYSK.js → row-header-mixin-B25JK2B3.js} +2 -2
- package/dist/cdn/chunks/{scroll-fade-CXu7Eorw.js → scroll-fade-Dv57rTww.js} +2 -2
- package/dist/cdn/chunks/{search-field-DkbneceA.js → search-field-hmD_DXbG.js} +10 -10
- package/dist/cdn/chunks/{segmented-control-Ctl4SnV1.js → segmented-control-e8e-jYSw.js} +6 -6
- package/dist/cdn/chunks/{shadow-resets-oeO4NF40.js → shadow-resets-CRdvf-Ei.js} +2 -2
- package/dist/cdn/chunks/{sheet-XGOn3SXX.js → sheet-D09y3J45.js} +4 -4
- package/dist/cdn/chunks/{shell-B7-afKWD.js → shell-CV3gooGg.js} +3 -3
- package/dist/cdn/chunks/{side-by-side-split-view-CZC844ER.js → side-by-side-split-view-Ckz1C9zk.js} +4 -4
- package/dist/cdn/chunks/{sidebar-section-_eTWxCEU.js → sidebar-section-CdyD-x4t.js} +7 -7
- package/dist/cdn/chunks/{simple-section-CvBDK1kv.js → simple-section-CEf38rBZ.js} +3 -3
- package/dist/cdn/chunks/{skip-link-CHAlS7T_.js → skip-link-DMRhATWw.js} +4 -4
- package/dist/cdn/chunks/{slider-CidyL0xj.js → slider-Db3FPiP6.js} +8 -8
- package/dist/cdn/chunks/{spacer-DukX-lmv.js → spacer-BPFIYueo.js} +2 -2
- package/dist/cdn/chunks/{spacer-cell-etr1xFgM.js → spacer-cell-kITa3CDV.js} +4 -4
- package/dist/cdn/chunks/{split-button-DD0NWy1h.js → split-button-CJs9-Nha.js} +7 -7
- package/dist/cdn/chunks/{split-view-divider-x1x3K9m0.js → split-view-divider-lHlM1Ss8.js} +2 -2
- package/dist/cdn/chunks/{split-view-pane-BnCIygrY.js → split-view-pane-DlsbZtyo.js} +3 -3
- package/dist/cdn/chunks/{stacked-split-view-B70JJ94w.js → stacked-split-view-uRSVhrMd.js} +4 -4
- package/dist/cdn/chunks/{static-html-Bqazhm1K.js → static-html-BahSPV_4.js} +1 -1
- package/dist/cdn/chunks/{status-bar-CNLiFQUC.js → status-bar-DCJLVpsW.js} +4 -4
- package/dist/cdn/chunks/{step-bar-BOvuQRux.js → step-bar-CRR2jiyo.js} +6 -6
- package/dist/cdn/chunks/{step-cell-CM1Ju6Qz.js → step-cell-CbtKxJNJ.js} +5 -5
- package/dist/cdn/chunks/{stepper-CKM-lSpD.js → stepper-Con1_CnB.js} +6 -6
- package/dist/cdn/chunks/{style-map-BK47EPzs.js → style-map-uOwLerwV.js} +1 -1
- package/dist/cdn/chunks/{swatch-picker-CFRNmV9x.js → swatch-picker-Bqn0eaC9.js} +5 -5
- package/dist/cdn/chunks/{switch-BBy9Xo1E.js → switch-CMQcLEBJ.js} +4 -4
- package/dist/cdn/chunks/{switch-field-zh-K7d2q.js → switch-field-D9kWq4Kw.js} +5 -5
- package/dist/cdn/chunks/{tab-bar-C8qWE51t.js → tab-bar-DXzyZI3V.js} +8 -8
- package/dist/cdn/chunks/{table-av_EyIn7.js → table-CWACLpHx.js} +5 -5
- package/dist/cdn/chunks/{tag-DFv9vv3i.js → tag-Bo4yJbtF.js} +4 -4
- package/dist/cdn/chunks/{term-DeQiGH6k.js → term-CQ379ZbN.js} +12 -12
- package/dist/cdn/chunks/{text-mfKi65T1.js → text-D-dFoj6N.js} +3 -3
- package/dist/cdn/chunks/{text-cell-BcT9b0bK.js → text-cell-Be1hStxp.js} +8 -8
- package/dist/cdn/chunks/{text-editor-BwJE_vvo.js → text-editor-BjzQEBWm.js} +1372 -904
- package/dist/cdn/chunks/{text-field-B78KPNqa.js → text-field-DA8nirp6.js} +46 -63
- package/dist/cdn/chunks/{time-field-O2OSrTyM.js → time-field-Dd_TxJuf.js} +15 -15
- package/dist/cdn/chunks/{time-picker-Ce5tW_jo.js → time-picker-B0-rv1qp.js} +5 -5
- package/dist/cdn/chunks/{title-Bdx3NCUA.js → title-DOoPdG_i.js} +4 -4
- package/dist/cdn/chunks/{title-cell-BwHqLbue.js → title-cell-BzCNOMGr.js} +8 -8
- package/dist/cdn/chunks/{toggle-button-CjjJRwpP.js → toggle-button-9PbDHviQ.js} +10 -8
- package/dist/cdn/chunks/{toggle-button-group-CuRM8-nF.js → toggle-button-group-C-H-xp0M.js} +2 -2
- package/dist/cdn/chunks/{token-AiSihnjQ.js → token-CMKFC3gz.js} +5 -5
- package/dist/cdn/chunks/{token-field-GETUgMlc.js → token-field-D4-XHfnG.js} +11 -11
- package/dist/cdn/chunks/{toolbar-item-DR1Z8Hc3.js → toolbar-item-ZYoyKOyy.js} +3 -3
- package/dist/cdn/chunks/{toolbar-title-CDTF6HLo.js → toolbar-title-FKtQ8ZC4.js} +4 -4
- package/dist/cdn/chunks/{toolbar-Cwq028PV.js → toolbar-z9OhEE5l.js} +8 -8
- package/dist/cdn/chunks/{toolbar.styles-JjSZv4fw.js → toolbar.styles-DDjpdCHV.js} +3 -3
- package/dist/cdn/chunks/{tooltip-c-bLjIjT.js → tooltip-BvRNYRo3.js} +5 -5
- package/dist/cdn/chunks/{top-navigation-bar-DzmvxwVc.js → top-navigation-bar-BHPQntER.js} +17 -17
- package/dist/cdn/chunks/{top-title-bar-Bk6dadA-.js → top-title-bar-BVjegLlh.js} +6 -6
- package/dist/cdn/chunks/{translations-BDYe8_q9.js → translations-cJjO6nQV.js} +1 -1
- package/dist/cdn/chunks/{two-thirds-one-third-section-Co5_3oOP.js → two-thirds-one-third-section-BdBHQuXc.js} +3 -3
- package/dist/cdn/chunks/{validation-list-MEykkKGr.js → validation-list-5E3-3_95.js} +3 -3
- package/dist/cdn/chunks/{visibility-mixin-UdX7clEI.js → visibility-mixin-DvRe3O8t.js} +2 -2
- package/dist/cdn/chunks/{visually-hidden-BKnf0dXp.js → visually-hidden-F85D_HcR.js} +2 -2
- package/dist/cdn/chunks/{window-DNoLmVa1.js → window-CabW35M1.js} +5 -5
- package/dist/cdn/chunks/{with-translations-DlZHUMbZ.js → with-translations-BHDG37HJ.js} +3 -3
- package/dist/components/actions/button/button.template.js +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 +15 -10
- 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/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/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/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/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/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/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.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.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/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/status-and-feedback/step-bar/step-bar.styles.js +1 -1
- package/dist/css/rich-text.css +8 -2
- package/dist/css/variables.css +2 -1
- package/dist/nldd.min.js +973 -870
- package/dist/types/react.d.ts +12 -8
- package/dist/types/vue.d.ts +17 -11
- 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/dev-rules.generated.d.ts.map +1 -1
- package/dist/utilities/dev-rules.generated.js +22 -2
- 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 +3 -4
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { $ as e, A as t, F as n, G as r, H as i, O as a, P as o, Y as s, ct as c, dt as l, ft as u, gt as d, j as f, k as p, lt as m, nt as h, ot as g, pt as _, q as v, rt as y, st as b, tt as x, ut as S, w as ee, z as C } from "./languages-C9AGuuSS.js";
|
|
2
2
|
// node_modules/@codemirror/autocomplete/dist/index.js
|
|
3
|
-
var
|
|
3
|
+
var w = class {
|
|
4
4
|
constructor(e, t, n, r) {
|
|
5
5
|
this.state = e, this.pos = t, this.explicit = n, this.view = r, this.abortListeners = [], this.abortOnDocChange = !1;
|
|
6
6
|
}
|
|
7
7
|
tokenBefore(e) {
|
|
8
|
-
let t =
|
|
8
|
+
let t = a(this.state).resolveInner(this.pos, -1);
|
|
9
9
|
for (; t && e.indexOf(t.name) < 0;) t = t.parent;
|
|
10
10
|
return t ? {
|
|
11
11
|
from: t.from,
|
|
@@ -15,7 +15,7 @@ var T = class {
|
|
|
15
15
|
} : null;
|
|
16
16
|
}
|
|
17
17
|
matchBefore(e) {
|
|
18
|
-
let t = this.state.doc.lineAt(this.pos), n = Math.max(t.from, this.pos - 250), r = t.text.slice(n - t.from, this.pos - t.from), i = r.search(
|
|
18
|
+
let t = this.state.doc.lineAt(this.pos), n = Math.max(t.from, this.pos - 250), r = t.text.slice(n - t.from, this.pos - t.from), i = r.search(O(e, !1));
|
|
19
19
|
return i < 0 ? null : {
|
|
20
20
|
from: n + i,
|
|
21
21
|
to: this.pos,
|
|
@@ -29,7 +29,7 @@ var T = class {
|
|
|
29
29
|
e == "abort" && this.abortListeners && (this.abortListeners.push(t), n && n.onDocChange && (this.abortOnDocChange = !0));
|
|
30
30
|
}
|
|
31
31
|
};
|
|
32
|
-
function
|
|
32
|
+
function T(e) {
|
|
33
33
|
let t = Object.keys(e).join(""), n = /\w/.test(t);
|
|
34
34
|
return n && (t = t.replace(/\w/g, "")), `[${n ? "\\w" : ""}${t.replace(/[^\w\s]/g, "\\$&")}]`;
|
|
35
35
|
}
|
|
@@ -39,10 +39,10 @@ function te(e) {
|
|
|
39
39
|
t[r[0]] = !0;
|
|
40
40
|
for (let e = 1; e < r.length; e++) n[r[e]] = !0;
|
|
41
41
|
}
|
|
42
|
-
let r =
|
|
42
|
+
let r = T(t) + T(n) + "*$";
|
|
43
43
|
return [RegExp("^" + r), new RegExp(r)];
|
|
44
44
|
}
|
|
45
|
-
function
|
|
45
|
+
function ne(e) {
|
|
46
46
|
let t = e.map((e) => typeof e == "string" ? { label: e } : e), [n, r] = t.every((e) => /^\w+$/.test(e.label)) ? [/\w*$/, /\w+$/] : te(t);
|
|
47
47
|
return (e) => {
|
|
48
48
|
let i = e.matchBefore(r);
|
|
@@ -53,61 +53,61 @@ function E(e) {
|
|
|
53
53
|
} : null;
|
|
54
54
|
};
|
|
55
55
|
}
|
|
56
|
-
function
|
|
57
|
-
return (
|
|
58
|
-
for (let t = n
|
|
56
|
+
function re(e, t) {
|
|
57
|
+
return (n) => {
|
|
58
|
+
for (let t = a(n.state).resolveInner(n.pos, -1); t; t = t.parent) {
|
|
59
59
|
if (e.indexOf(t.name) > -1) return null;
|
|
60
60
|
if (t.type.isTop) break;
|
|
61
61
|
}
|
|
62
|
-
return t(
|
|
62
|
+
return t(n);
|
|
63
63
|
};
|
|
64
64
|
}
|
|
65
|
-
var
|
|
65
|
+
var E = class {
|
|
66
66
|
constructor(e, t, n, r) {
|
|
67
67
|
this.completion = e, this.source = t, this.match = n, this.score = r;
|
|
68
68
|
}
|
|
69
69
|
};
|
|
70
|
-
function
|
|
70
|
+
function D(e) {
|
|
71
71
|
return e.selection.main.from;
|
|
72
72
|
}
|
|
73
|
-
function
|
|
73
|
+
function O(e, t) {
|
|
74
74
|
let { source: n } = e, r = t && n[0] != "^", i = n[n.length - 1] != "$";
|
|
75
75
|
return !r && !i ? e : RegExp(`${r ? "^" : ""}(?:${n})${i ? "$" : ""}`, e.flags ?? (e.ignoreCase ? "i" : ""));
|
|
76
76
|
}
|
|
77
|
-
var
|
|
78
|
-
function
|
|
79
|
-
let { main:
|
|
77
|
+
var k = /*@__PURE__*/ s.define();
|
|
78
|
+
function ie(t, n, r, i) {
|
|
79
|
+
let { main: a } = t.selection, o = r - a.from, s = i - a.from;
|
|
80
80
|
return {
|
|
81
|
-
...
|
|
82
|
-
if (
|
|
83
|
-
let l =
|
|
81
|
+
...t.changeByRange((c) => {
|
|
82
|
+
if (c != a && r != i && t.sliceDoc(c.from + o, c.from + s) != t.sliceDoc(r, i)) return { range: c };
|
|
83
|
+
let l = t.toText(n);
|
|
84
84
|
return {
|
|
85
85
|
changes: {
|
|
86
|
-
from:
|
|
87
|
-
to:
|
|
86
|
+
from: c.from + o,
|
|
87
|
+
to: i == a.from ? c.to : c.from + s,
|
|
88
88
|
insert: l
|
|
89
89
|
},
|
|
90
|
-
range:
|
|
90
|
+
range: e.cursor(c.from + o + l.length)
|
|
91
91
|
};
|
|
92
92
|
}),
|
|
93
93
|
scrollIntoView: !0,
|
|
94
94
|
userEvent: "input.complete"
|
|
95
95
|
};
|
|
96
96
|
}
|
|
97
|
-
var
|
|
98
|
-
function
|
|
97
|
+
var A = /*@__PURE__*/ new WeakMap();
|
|
98
|
+
function ae(e) {
|
|
99
99
|
if (!Array.isArray(e)) return e;
|
|
100
|
-
let t =
|
|
101
|
-
return t ||
|
|
100
|
+
let t = A.get(e);
|
|
101
|
+
return t || A.set(e, t = ne(e)), t;
|
|
102
102
|
}
|
|
103
|
-
var
|
|
103
|
+
var j = /*@__PURE__*/ b.define(), M = /*@__PURE__*/ b.define(), oe = class {
|
|
104
104
|
constructor(e) {
|
|
105
105
|
this.pattern = e, this.chars = [], this.folded = [], this.any = [], this.precise = [], this.byWord = [], this.score = 0, this.matched = [];
|
|
106
106
|
for (let t = 0; t < e.length;) {
|
|
107
|
-
let n =
|
|
107
|
+
let n = l(e, t), r = u(n);
|
|
108
108
|
this.chars.push(n);
|
|
109
109
|
let i = e.slice(t, t + r), a = i.toUpperCase();
|
|
110
|
-
this.folded.push(
|
|
110
|
+
this.folded.push(l(a == i ? i.toLowerCase() : a, 0)), t += r;
|
|
111
111
|
}
|
|
112
112
|
this.astral = e.length != this.chars.length;
|
|
113
113
|
}
|
|
@@ -119,7 +119,7 @@ var M = /*@__PURE__*/ x.define(), N = /*@__PURE__*/ x.define(), ae = class {
|
|
|
119
119
|
if (e.length < this.pattern.length) return null;
|
|
120
120
|
let { chars: t, folded: n, any: r, precise: i, byWord: a } = this;
|
|
121
121
|
if (t.length == 1) {
|
|
122
|
-
let r =
|
|
122
|
+
let r = l(e, 0), i = u(r), a = i == e.length ? 0 : -100;
|
|
123
123
|
if (r != t[0]) {
|
|
124
124
|
if (r == n[0]) a += -200;
|
|
125
125
|
else return null;
|
|
@@ -131,29 +131,29 @@ var M = /*@__PURE__*/ x.define(), N = /*@__PURE__*/ x.define(), ae = class {
|
|
|
131
131
|
let s = t.length, c = 0;
|
|
132
132
|
if (o < 0) {
|
|
133
133
|
for (let i = 0, a = Math.min(e.length, 200); i < a && c < s;) {
|
|
134
|
-
let a =
|
|
135
|
-
(a == t[c] || a == n[c]) && (r[c++] = i), i +=
|
|
134
|
+
let a = l(e, i);
|
|
135
|
+
(a == t[c] || a == n[c]) && (r[c++] = i), i += u(a);
|
|
136
136
|
}
|
|
137
137
|
if (c < s) return null;
|
|
138
138
|
}
|
|
139
|
-
let
|
|
140
|
-
for (let r = 0, c = Math.min(e.length, 200),
|
|
141
|
-
let c =
|
|
142
|
-
o < 0 && (
|
|
143
|
-
let
|
|
144
|
-
(!r ||
|
|
139
|
+
let f = 0, p = 0, m = !1, h = 0, g = -1, _ = -1, v = /[a-z]/.test(e), y = !0;
|
|
140
|
+
for (let r = 0, c = Math.min(e.length, 200), b = 0; r < c && p < s;) {
|
|
141
|
+
let c = l(e, r);
|
|
142
|
+
o < 0 && (f < s && c == t[f] && (i[f++] = r), h < s && (c == t[h] || c == n[h] ? (h == 0 && (g = r), _ = r + 1, h++) : h = 0));
|
|
143
|
+
let x, S = c < 255 ? c >= 48 && c <= 57 || c >= 97 && c <= 122 ? 2 : +(c >= 65 && c <= 90) : (x = d(c)) == x.toLowerCase() ? x == x.toUpperCase() ? 0 : 2 : 1;
|
|
144
|
+
(!r || S == 1 && v || b == 0 && S != 0) && (t[p] == c || n[p] == c && (m = !0) ? a[p++] = r : a.length && (y = !1)), b = S, r += u(c);
|
|
145
145
|
}
|
|
146
|
-
return
|
|
146
|
+
return p == s && a[0] == 0 && y ? this.result(-100 + (m ? -200 : 0), a, e) : h == s && g == 0 ? this.ret(-200 - e.length + (_ == e.length ? 0 : -100), [0, _]) : o > -1 ? this.ret(-700 - e.length, [o, o + this.pattern.length]) : h == s ? this.ret(-900 - e.length, [g, _]) : p == s ? this.result(-100 + (m ? -200 : 0) + -700 + (y ? 0 : -1100), a, e) : t.length == 2 ? null : this.result((r[0] ? -700 : 0) + -200 + -1100, r, e);
|
|
147
147
|
}
|
|
148
148
|
result(e, t, n) {
|
|
149
149
|
let r = [], i = 0;
|
|
150
150
|
for (let e of t) {
|
|
151
|
-
let t = e + (this.astral ?
|
|
151
|
+
let t = e + (this.astral ? u(l(n, e)) : 1);
|
|
152
152
|
i && r[i - 1] == e ? r[i - 1] = t : (r[i++] = e, r[i++] = t);
|
|
153
153
|
}
|
|
154
154
|
return this.ret(e - n.length, r);
|
|
155
155
|
}
|
|
156
|
-
},
|
|
156
|
+
}, se = class {
|
|
157
157
|
constructor(e) {
|
|
158
158
|
this.pattern = e, this.matched = [], this.score = 0, this.folded = e.toLowerCase();
|
|
159
159
|
}
|
|
@@ -162,8 +162,8 @@ var M = /*@__PURE__*/ x.define(), N = /*@__PURE__*/ x.define(), ae = class {
|
|
|
162
162
|
let t = e.slice(0, this.pattern.length), n = t == this.pattern ? 0 : t.toLowerCase() == this.folded ? -200 : null;
|
|
163
163
|
return n == null ? null : (this.matched = [0, t.length], this.score = n + (e.length == this.pattern.length ? 0 : -100), this);
|
|
164
164
|
}
|
|
165
|
-
},
|
|
166
|
-
return
|
|
165
|
+
}, N = /*@__PURE__*/ x.define({ combine(e) {
|
|
166
|
+
return _(e, {
|
|
167
167
|
activateOnTyping: !0,
|
|
168
168
|
activateOnCompletion: () => !1,
|
|
169
169
|
activateOnTypingDelay: 100,
|
|
@@ -177,7 +177,7 @@ var M = /*@__PURE__*/ x.define(), N = /*@__PURE__*/ x.define(), ae = class {
|
|
|
177
177
|
aboveCursor: !1,
|
|
178
178
|
icons: !0,
|
|
179
179
|
addToOptions: [],
|
|
180
|
-
positionInfo:
|
|
180
|
+
positionInfo: le,
|
|
181
181
|
filterStrict: !1,
|
|
182
182
|
compareCompletions: (e, t) => (e.sortText || e.label).localeCompare(t.sortText || t.label),
|
|
183
183
|
interactionDelay: 75,
|
|
@@ -186,31 +186,31 @@ var M = /*@__PURE__*/ x.define(), N = /*@__PURE__*/ x.define(), ae = class {
|
|
|
186
186
|
defaultKeymap: (e, t) => e && t,
|
|
187
187
|
closeOnBlur: (e, t) => e && t,
|
|
188
188
|
icons: (e, t) => e && t,
|
|
189
|
-
tooltipClass: (e, t) => (n) =>
|
|
190
|
-
optionClass: (e, t) => (n) =>
|
|
189
|
+
tooltipClass: (e, t) => (n) => ce(e(n), t(n)),
|
|
190
|
+
optionClass: (e, t) => (n) => ce(e(n), t(n)),
|
|
191
191
|
addToOptions: (e, t) => e.concat(t),
|
|
192
192
|
filterStrict: (e, t) => e || t
|
|
193
193
|
});
|
|
194
194
|
} });
|
|
195
|
-
function
|
|
195
|
+
function ce(e, t) {
|
|
196
196
|
return e ? t ? e + " " + t : e : t;
|
|
197
197
|
}
|
|
198
|
-
function
|
|
199
|
-
let
|
|
200
|
-
if (
|
|
198
|
+
function le(e, n, r, i, a, o) {
|
|
199
|
+
let s = e.textDirection == t.RTL, c = s, l = !1, u = "top", d, f, p = n.left - a.left, m = a.right - n.right, h = i.right - i.left, g = i.bottom - i.top;
|
|
200
|
+
if (c && p < Math.min(h, m) ? c = !1 : !c && m < Math.min(h, p) && (c = !0), h <= (c ? p : m)) d = Math.max(a.top, Math.min(r.top, a.bottom - g)) - n.top, f = Math.min(400, c ? p : m);
|
|
201
201
|
else {
|
|
202
|
-
|
|
203
|
-
let e =
|
|
204
|
-
e >=
|
|
202
|
+
l = !0, f = Math.min(400, (s ? n.right : a.right - n.left) - 30);
|
|
203
|
+
let e = a.bottom - n.bottom;
|
|
204
|
+
e >= g || e > n.top ? d = r.bottom - n.top : (u = "bottom", d = n.bottom - r.top);
|
|
205
205
|
}
|
|
206
|
-
let
|
|
206
|
+
let _ = (n.bottom - n.top) / o.offsetHeight, v = (n.right - n.left) / o.offsetWidth;
|
|
207
207
|
return {
|
|
208
|
-
style: `${
|
|
209
|
-
class: "cm-completionInfo-" + (
|
|
208
|
+
style: `${u}: ${d / _}px; max-width: ${f / v}px`,
|
|
209
|
+
class: "cm-completionInfo-" + (l ? s ? "left-narrow" : "right-narrow" : c ? "left" : "right")
|
|
210
210
|
};
|
|
211
211
|
}
|
|
212
|
-
var
|
|
213
|
-
function
|
|
212
|
+
var P = /*@__PURE__*/ b.define();
|
|
213
|
+
function ue(e) {
|
|
214
214
|
let t = e.addToOptions.slice();
|
|
215
215
|
return e.icons && t.push({
|
|
216
216
|
render(e) {
|
|
@@ -241,7 +241,7 @@ function ce(e) {
|
|
|
241
241
|
position: 80
|
|
242
242
|
}), t.sort((e, t) => e.position - t.position).map((e) => e.render);
|
|
243
243
|
}
|
|
244
|
-
function
|
|
244
|
+
function F(e, t, n) {
|
|
245
245
|
if (e <= n) return {
|
|
246
246
|
from: 0,
|
|
247
247
|
to: e
|
|
@@ -259,15 +259,15 @@ function L(e, t, n) {
|
|
|
259
259
|
to: e - (r - 1) * n
|
|
260
260
|
};
|
|
261
261
|
}
|
|
262
|
-
var
|
|
262
|
+
var de = class {
|
|
263
263
|
constructor(e, t, n) {
|
|
264
264
|
this.view = e, this.stateField = t, this.applyCompletion = n, this.info = null, this.infoDestroy = null, this.placeInfoReq = {
|
|
265
265
|
read: () => this.measureInfo(),
|
|
266
266
|
write: (e) => this.placeInfo(e),
|
|
267
267
|
key: this
|
|
268
268
|
}, this.space = null, this.currentClass = "";
|
|
269
|
-
let r = e.state.field(t), { options: i, selected: a } = r.open, o = e.state.facet(
|
|
270
|
-
this.optionContent =
|
|
269
|
+
let r = e.state.field(t), { options: i, selected: a } = r.open, o = e.state.facet(N);
|
|
270
|
+
this.optionContent = ue(o), this.optionClass = o.optionClass, this.tooltipClass = o.tooltipClass, this.range = F(i.length, a, o.maxRenderedOptions), this.dom = document.createElement("div"), this.dom.className = "cm-tooltip-autocomplete", this.updateTooltipClass(e.state), this.dom.addEventListener("mousedown", (n) => {
|
|
271
271
|
let { options: r } = e.state.field(t).open;
|
|
272
272
|
for (let t = n.target, i; t && t != this.dom; t = t.parentNode) if (t.nodeName == "LI" && (i = /-(\d+)$/.exec(t.id)) && +i[1] < r.length) {
|
|
273
273
|
this.applyCompletion(e, r[+i[1]]), n.preventDefault();
|
|
@@ -275,11 +275,11 @@ var le = class {
|
|
|
275
275
|
}
|
|
276
276
|
if (n.target == this.list) {
|
|
277
277
|
let t = this.list.classList.contains("cm-completionListIncompleteTop") && n.clientY < this.list.firstChild.getBoundingClientRect().top ? this.range.from - 1 : this.list.classList.contains("cm-completionListIncompleteBottom") && n.clientY > this.list.lastChild.getBoundingClientRect().bottom ? this.range.to : null;
|
|
278
|
-
t != null && (e.dispatch({ effects:
|
|
278
|
+
t != null && (e.dispatch({ effects: P.of(t) }), n.preventDefault());
|
|
279
279
|
}
|
|
280
280
|
}), this.dom.addEventListener("focusout", (t) => {
|
|
281
281
|
let n = e.state.field(this.stateField, !1);
|
|
282
|
-
n && n.tooltip && e.state.facet(
|
|
282
|
+
n && n.tooltip && e.state.facet(N).closeOnBlur && t.relatedTarget != e.contentDOM && e.dispatch({ effects: M.of(null) });
|
|
283
283
|
}), this.showOptions(i, r.id);
|
|
284
284
|
}
|
|
285
285
|
mount() {
|
|
@@ -294,7 +294,7 @@ var le = class {
|
|
|
294
294
|
let t = e.state.field(this.stateField), n = e.startState.field(this.stateField);
|
|
295
295
|
if (this.updateTooltipClass(e.state), t != n) {
|
|
296
296
|
let { options: r, selected: i, disabled: a } = t.open;
|
|
297
|
-
n.open && n.open.options == r || (this.range =
|
|
297
|
+
n.open && n.open.options == r || (this.range = F(r.length, i, e.state.facet(N).maxRenderedOptions), this.showOptions(r, t.id)), this.updateSel(), a != n.open?.disabled && this.dom.classList.toggle("cm-tooltip-autocomplete-disabled", !!a);
|
|
298
298
|
}
|
|
299
299
|
}
|
|
300
300
|
updateTooltipClass(e) {
|
|
@@ -310,17 +310,17 @@ var le = class {
|
|
|
310
310
|
}
|
|
311
311
|
updateSel() {
|
|
312
312
|
let e = this.view.state.field(this.stateField), t = e.open;
|
|
313
|
-
(t.selected > -1 && t.selected < this.range.from || t.selected >= this.range.to) && (this.range =
|
|
313
|
+
(t.selected > -1 && t.selected < this.range.from || t.selected >= this.range.to) && (this.range = F(t.options.length, t.selected, this.view.state.facet(N).maxRenderedOptions), this.showOptions(t.options, e.id));
|
|
314
314
|
let n = this.updateSelectedOption(t.selected);
|
|
315
315
|
if (n) {
|
|
316
316
|
this.destroyInfo();
|
|
317
|
-
let { completion:
|
|
318
|
-
if (!i) return;
|
|
319
|
-
let a = typeof i == "string" ? document.createTextNode(i) : i(r);
|
|
317
|
+
let { completion: i } = t.options[t.selected], { info: a } = i;
|
|
320
318
|
if (!a) return;
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
319
|
+
let o = typeof a == "string" ? document.createTextNode(a) : a(i);
|
|
320
|
+
if (!o) return;
|
|
321
|
+
"then" in o ? o.then((t) => {
|
|
322
|
+
t && this.view.state.field(this.stateField, !1) == e && this.addInfoPane(t, i);
|
|
323
|
+
}).catch((e) => r(this.view.state, e, "completion info")) : (this.addInfoPane(o, i), n.setAttribute("aria-describedby", this.info.id));
|
|
324
324
|
}
|
|
325
325
|
}
|
|
326
326
|
addInfoPane(e, t) {
|
|
@@ -336,7 +336,7 @@ var le = class {
|
|
|
336
336
|
updateSelectedOption(e) {
|
|
337
337
|
let t = null;
|
|
338
338
|
for (let n = this.list.firstChild, r = this.range.from; n; n = n.nextSibling, r++) n.nodeName != "LI" || !n.id ? r-- : r == e ? n.hasAttribute("aria-selected") || (n.setAttribute("aria-selected", "true"), t = n) : n.hasAttribute("aria-selected") && (n.removeAttribute("aria-selected"), n.removeAttribute("aria-describedby"));
|
|
339
|
-
return t &&
|
|
339
|
+
return t && pe(this.list, t), t;
|
|
340
340
|
}
|
|
341
341
|
measureInfo() {
|
|
342
342
|
let e = this.dom.querySelector("[aria-selected]");
|
|
@@ -351,7 +351,7 @@ var le = class {
|
|
|
351
351
|
bottom: e.clientHeight
|
|
352
352
|
};
|
|
353
353
|
}
|
|
354
|
-
return r.top > Math.min(i.bottom, t.bottom) - 10 || r.bottom < Math.max(i.top, t.top) + 10 ? null : this.view.state.facet(
|
|
354
|
+
return r.top > Math.min(i.bottom, t.bottom) - 10 || r.bottom < Math.max(i.top, t.top) + 10 ? null : this.view.state.facet(N).positionInfo(this.view, t, r, n, i, this.dom);
|
|
355
355
|
}
|
|
356
356
|
placeInfo(e) {
|
|
357
357
|
this.info && (e ? (e.style && (this.info.style.cssText = e.style), this.info.className = "cm-tooltip cm-completionInfo " + (e.class || "")) : this.info.style.cssText = "top: -1e6px");
|
|
@@ -392,17 +392,17 @@ var le = class {
|
|
|
392
392
|
this.destroyInfo();
|
|
393
393
|
}
|
|
394
394
|
};
|
|
395
|
-
function
|
|
396
|
-
return (n) => new
|
|
395
|
+
function fe(e, t) {
|
|
396
|
+
return (n) => new de(n, e, t);
|
|
397
397
|
}
|
|
398
|
-
function
|
|
398
|
+
function pe(e, t) {
|
|
399
399
|
let n = e.getBoundingClientRect(), r = t.getBoundingClientRect(), i = n.height / e.offsetHeight;
|
|
400
400
|
r.top < n.top ? e.scrollTop -= (n.top - r.top) / i : r.bottom > n.bottom && (e.scrollTop += (r.bottom - n.bottom) / i);
|
|
401
401
|
}
|
|
402
|
-
function
|
|
402
|
+
function I(e) {
|
|
403
403
|
return (e.boost || 0) * 100 + (e.apply ? 10 : 0) + (e.info ? 5 : 0) + +!!e.type;
|
|
404
404
|
}
|
|
405
|
-
function
|
|
405
|
+
function me(e, t) {
|
|
406
406
|
let n = [], r = null, i = null, a = (e) => {
|
|
407
407
|
n.push(e);
|
|
408
408
|
let { section: t } = e.completion;
|
|
@@ -411,15 +411,15 @@ function fe(e, t) {
|
|
|
411
411
|
let e = typeof t == "string" ? t : t.name;
|
|
412
412
|
r.some((t) => t.name == e) || r.push(typeof t == "string" ? { name: e } : t);
|
|
413
413
|
}
|
|
414
|
-
}, o = t.facet(
|
|
414
|
+
}, o = t.facet(N);
|
|
415
415
|
for (let r of e) if (r.hasResult()) {
|
|
416
416
|
let e = r.result.getMatch;
|
|
417
|
-
if (r.result.filter === !1) for (let t of r.result.options) a(new
|
|
417
|
+
if (r.result.filter === !1) for (let t of r.result.options) a(new E(t, r.source, e ? e(t) : [], 1e9 - n.length));
|
|
418
418
|
else {
|
|
419
|
-
let n = t.sliceDoc(r.from, r.to), s, c = o.filterStrict ? new
|
|
419
|
+
let n = t.sliceDoc(r.from, r.to), s, c = o.filterStrict ? new se(n) : new oe(n);
|
|
420
420
|
for (let t of r.result.options) if (s = c.match(t.label)) {
|
|
421
421
|
let n = t.displayLabel ? e ? e(t, s.matched) : [] : s.matched, o = s.score + (t.boost || 0);
|
|
422
|
-
if (a(new
|
|
422
|
+
if (a(new E(t, r.source, n, o)), typeof t.section == "object" && t.section.rank === "dynamic") {
|
|
423
423
|
let { name: e } = t.section;
|
|
424
424
|
i || (i = Object.create(null)), i[e] = Math.max(o, i[e] || -1e9);
|
|
425
425
|
}
|
|
@@ -437,22 +437,22 @@ function fe(e, t) {
|
|
|
437
437
|
let s = [], c = null, l = o.compareCompletions;
|
|
438
438
|
for (let e of n.sort((e, t) => t.score - e.score || l(e.completion, t.completion))) {
|
|
439
439
|
let t = e.completion;
|
|
440
|
-
!c || c.label != t.label || c.detail != t.detail || c.type != null && t.type != null && c.type != t.type || c.apply != t.apply || c.boost != t.boost ? s.push(e) :
|
|
440
|
+
!c || c.label != t.label || c.detail != t.detail || c.type != null && t.type != null && c.type != t.type || c.apply != t.apply || c.boost != t.boost ? s.push(e) : I(e.completion) > I(c) && (s[s.length - 1] = e), c = e.completion;
|
|
441
441
|
}
|
|
442
442
|
return s;
|
|
443
443
|
}
|
|
444
|
-
var
|
|
444
|
+
var he = class e {
|
|
445
445
|
constructor(e, t, n, r, i, a) {
|
|
446
446
|
this.options = e, this.attrs = t, this.tooltip = n, this.timestamp = r, this.selected = i, this.disabled = a;
|
|
447
447
|
}
|
|
448
448
|
setSelected(t, n) {
|
|
449
|
-
return t == this.selected || t >= this.options.length ? this : new e(this.options,
|
|
449
|
+
return t == this.selected || t >= this.options.length ? this : new e(this.options, L(n, t), this.tooltip, this.timestamp, t, this.disabled);
|
|
450
450
|
}
|
|
451
451
|
static build(t, n, r, i, a, o) {
|
|
452
452
|
if (i && !o && t.some((e) => e.isPending)) return i.setDisabled();
|
|
453
|
-
let s =
|
|
453
|
+
let s = me(t, n);
|
|
454
454
|
if (!s.length) return i && t.some((e) => e.isPending) ? i.setDisabled() : null;
|
|
455
|
-
let c = n.facet(
|
|
455
|
+
let c = n.facet(N).selectOnOpen ? 0 : -1;
|
|
456
456
|
if (i && i.selected != c && i.selected != -1) {
|
|
457
457
|
let e = i.options[i.selected].completion;
|
|
458
458
|
for (let t = 0; t < s.length; t++) if (s[t].completion == e) {
|
|
@@ -460,9 +460,9 @@ var pe = class e {
|
|
|
460
460
|
break;
|
|
461
461
|
}
|
|
462
462
|
}
|
|
463
|
-
return new e(s,
|
|
463
|
+
return new e(s, L(r, c), {
|
|
464
464
|
pos: t.reduce((e, t) => t.hasResult() ? Math.min(e, t.from) : e, 1e8),
|
|
465
|
-
create:
|
|
465
|
+
create: Se,
|
|
466
466
|
above: a.aboveCursor
|
|
467
467
|
}, i ? i.timestamp : Date.now(), c, !1);
|
|
468
468
|
}
|
|
@@ -475,29 +475,29 @@ var pe = class e {
|
|
|
475
475
|
setDisabled() {
|
|
476
476
|
return new e(this.options, this.attrs, this.tooltip, this.timestamp, this.selected, !0);
|
|
477
477
|
}
|
|
478
|
-
},
|
|
478
|
+
}, ge = class e {
|
|
479
479
|
constructor(e, t, n) {
|
|
480
480
|
this.active = e, this.id = t, this.open = n;
|
|
481
481
|
}
|
|
482
482
|
static start() {
|
|
483
|
-
return new e(
|
|
483
|
+
return new e(be, "cm-ac-" + Math.floor(Math.random() * 2e6).toString(36), null);
|
|
484
484
|
}
|
|
485
485
|
update(t) {
|
|
486
|
-
let { state: n } = t, r = n.facet(
|
|
486
|
+
let { state: n } = t, r = n.facet(N), i = (r.override || n.languageDataAt("autocomplete", D(n)).map(ae)).map((e) => (this.active.find((t) => t.source == e) || new z(e, +!!this.active.some((e) => e.state != 0))).update(t, r));
|
|
487
487
|
i.length == this.active.length && i.every((e, t) => e == this.active[t]) && (i = this.active);
|
|
488
|
-
let a = this.open, o = t.effects.some((e) => e.is(
|
|
489
|
-
a && t.docChanged && (a = a.map(t.changes)), t.selection || i.some((e) => e.hasResult() && t.changes.touchesRange(e.from, e.to)) || !
|
|
490
|
-
for (let e of t.effects) e.is(
|
|
488
|
+
let a = this.open, o = t.effects.some((e) => e.is(V));
|
|
489
|
+
a && t.docChanged && (a = a.map(t.changes)), t.selection || i.some((e) => e.hasResult() && t.changes.touchesRange(e.from, e.to)) || !_e(i, this.active) || o ? a = he.build(i, n, this.id, a, r, o) : a && a.disabled && !i.some((e) => e.isPending) && (a = null), !a && i.every((e) => !e.isPending) && i.some((e) => e.hasResult()) && (i = i.map((e) => e.hasResult() ? new z(e.source, 0) : e));
|
|
490
|
+
for (let e of t.effects) e.is(P) && (a = a && a.setSelected(e.value, this.id));
|
|
491
491
|
return i == this.active && a == this.open ? this : new e(i, this.id, a);
|
|
492
492
|
}
|
|
493
493
|
get tooltip() {
|
|
494
494
|
return this.open ? this.open.tooltip : null;
|
|
495
495
|
}
|
|
496
496
|
get attrs() {
|
|
497
|
-
return this.open ? this.open.attrs : this.active.length ?
|
|
497
|
+
return this.open ? this.open.attrs : this.active.length ? ve : ye;
|
|
498
498
|
}
|
|
499
499
|
};
|
|
500
|
-
function
|
|
500
|
+
function _e(e, t) {
|
|
501
501
|
if (e == t) return !0;
|
|
502
502
|
for (let n = 0, r = 0;;) {
|
|
503
503
|
for (; n < e.length && !e[n].hasResult();) n++;
|
|
@@ -507,8 +507,8 @@ function he(e, t) {
|
|
|
507
507
|
if (e[n++].result != t[r++].result) return !1;
|
|
508
508
|
}
|
|
509
509
|
}
|
|
510
|
-
var
|
|
511
|
-
function
|
|
510
|
+
var ve = { "aria-autocomplete": "list" }, ye = {};
|
|
511
|
+
function L(e, t) {
|
|
512
512
|
let n = {
|
|
513
513
|
"aria-autocomplete": "list",
|
|
514
514
|
"aria-haspopup": "listbox",
|
|
@@ -516,16 +516,16 @@ function z(e, t) {
|
|
|
516
516
|
};
|
|
517
517
|
return t > -1 && (n["aria-activedescendant"] = e + "-" + t), n;
|
|
518
518
|
}
|
|
519
|
-
var
|
|
520
|
-
function
|
|
519
|
+
var be = [];
|
|
520
|
+
function R(e, t) {
|
|
521
521
|
if (e.isUserEvent("input.complete")) {
|
|
522
|
-
let n = e.annotation(
|
|
522
|
+
let n = e.annotation(k);
|
|
523
523
|
if (n && t.activateOnCompletion(n)) return 12;
|
|
524
524
|
}
|
|
525
525
|
let n = e.isUserEvent("input.type");
|
|
526
526
|
return n && t.activateOnTyping ? 5 : n ? 1 : e.isUserEvent("delete.backward") ? 2 : e.selection ? 8 : e.docChanged ? 16 : 0;
|
|
527
527
|
}
|
|
528
|
-
var
|
|
528
|
+
var z = class e {
|
|
529
529
|
constructor(e, t, n = !1) {
|
|
530
530
|
this.source = e, this.state = t, this.explicit = n;
|
|
531
531
|
}
|
|
@@ -536,11 +536,11 @@ var V = class e {
|
|
|
536
536
|
return this.state == 1;
|
|
537
537
|
}
|
|
538
538
|
update(t, n) {
|
|
539
|
-
let r =
|
|
539
|
+
let r = R(t, n), i = this;
|
|
540
540
|
(r & 8 || r & 16 && this.touches(t)) && (i = new e(i.source, 0)), r & 4 && i.state == 0 && (i = new e(this.source, 1)), i = i.updateFor(t, r);
|
|
541
|
-
for (let n of t.effects) if (n.is(
|
|
542
|
-
else if (n.is(
|
|
543
|
-
else if (n.is(
|
|
541
|
+
for (let n of t.effects) if (n.is(j)) i = new e(i.source, 1, n.value);
|
|
542
|
+
else if (n.is(M)) i = new e(i.source, 0);
|
|
543
|
+
else if (n.is(V)) for (let e of n.value) e.source == i.source && (i = e);
|
|
544
544
|
return i;
|
|
545
545
|
}
|
|
546
546
|
updateFor(e, t) {
|
|
@@ -550,9 +550,9 @@ var V = class e {
|
|
|
550
550
|
return this;
|
|
551
551
|
}
|
|
552
552
|
touches(e) {
|
|
553
|
-
return e.changes.touchesRange(
|
|
553
|
+
return e.changes.touchesRange(D(e.state));
|
|
554
554
|
}
|
|
555
|
-
},
|
|
555
|
+
}, B = class e extends z {
|
|
556
556
|
constructor(e, t, n, r, i, a) {
|
|
557
557
|
super(e, 3, t), this.limit = n, this.result = r, this.from = i, this.to = a;
|
|
558
558
|
}
|
|
@@ -563,116 +563,116 @@ var V = class e {
|
|
|
563
563
|
if (!(n & 3)) return this.map(t.changes);
|
|
564
564
|
let r = this.result;
|
|
565
565
|
r.map && !t.changes.empty && (r = r.map(r, t.changes));
|
|
566
|
-
let i = t.changes.mapPos(this.from), a = t.changes.mapPos(this.to, 1), o =
|
|
567
|
-
if (o > a || !r || n & 2 && (
|
|
566
|
+
let i = t.changes.mapPos(this.from), a = t.changes.mapPos(this.to, 1), o = D(t.state);
|
|
567
|
+
if (o > a || !r || n & 2 && (D(t.startState) == this.from || o < this.limit)) return new z(this.source, n & 4 ? 1 : 0);
|
|
568
568
|
let s = t.changes.mapPos(this.limit);
|
|
569
|
-
return
|
|
569
|
+
return xe(r.validFor, t.state, i, a) ? new e(this.source, this.explicit, s, r, i, a) : r.update && (r = r.update(r, i, a, new w(t.state, o, !1))) ? new e(this.source, this.explicit, s, r, r.from, r.to ?? D(t.state)) : new z(this.source, 1, this.explicit);
|
|
570
570
|
}
|
|
571
571
|
map(t) {
|
|
572
572
|
if (t.empty) return this;
|
|
573
573
|
let n = this.result.map ? this.result.map(this.result, t) : this.result;
|
|
574
|
-
return n ? new e(this.source, this.explicit, t.mapPos(this.limit), n, t.mapPos(this.from), t.mapPos(this.to, 1)) : new
|
|
574
|
+
return n ? new e(this.source, this.explicit, t.mapPos(this.limit), n, t.mapPos(this.from), t.mapPos(this.to, 1)) : new z(this.source, 0);
|
|
575
575
|
}
|
|
576
576
|
touches(e) {
|
|
577
577
|
return e.changes.touchesRange(this.from, this.to);
|
|
578
578
|
}
|
|
579
579
|
};
|
|
580
|
-
function
|
|
580
|
+
function xe(e, t, n, r) {
|
|
581
581
|
if (!e) return !1;
|
|
582
582
|
let i = t.sliceDoc(n, r);
|
|
583
|
-
return typeof e == "function" ? e(i, n, r, t) :
|
|
583
|
+
return typeof e == "function" ? e(i, n, r, t) : O(e, !0).test(i);
|
|
584
584
|
}
|
|
585
|
-
var
|
|
585
|
+
var V = /*@__PURE__*/ b.define({ map(e, t) {
|
|
586
586
|
return e.map((e) => e.map(t));
|
|
587
|
-
} }),
|
|
587
|
+
} }), H = /*@__PURE__*/ c.define({
|
|
588
588
|
create() {
|
|
589
|
-
return
|
|
589
|
+
return ge.start();
|
|
590
590
|
},
|
|
591
591
|
update(e, t) {
|
|
592
592
|
return e.update(t);
|
|
593
593
|
},
|
|
594
|
-
provide: (
|
|
594
|
+
provide: (e) => [v.from(e, (e) => e.tooltip), f.contentAttributes.from(e, (e) => e.attrs)]
|
|
595
595
|
});
|
|
596
|
-
function
|
|
597
|
-
let n = t.completion.apply || t.completion.label, r = e.state.field(
|
|
598
|
-
return r instanceof
|
|
599
|
-
...
|
|
600
|
-
annotations:
|
|
596
|
+
function U(e, t) {
|
|
597
|
+
let n = t.completion.apply || t.completion.label, r = e.state.field(H).active.find((e) => e.source == t.source);
|
|
598
|
+
return r instanceof B && (typeof n == "string" ? e.dispatch({
|
|
599
|
+
...ie(e.state, n, r.from, r.to),
|
|
600
|
+
annotations: k.of(t.completion)
|
|
601
601
|
}) : n(e, t.completion, r.from, r.to), !0);
|
|
602
602
|
}
|
|
603
|
-
var
|
|
604
|
-
function
|
|
603
|
+
var Se = /*@__PURE__*/ fe(H, U);
|
|
604
|
+
function W(e, t = "option") {
|
|
605
605
|
return (n) => {
|
|
606
|
-
let r = n.state.field(
|
|
607
|
-
if (!r || !r.open || r.open.disabled || Date.now() - r.open.timestamp < n.state.facet(
|
|
606
|
+
let r = n.state.field(H, !1);
|
|
607
|
+
if (!r || !r.open || r.open.disabled || Date.now() - r.open.timestamp < n.state.facet(N).interactionDelay) return !1;
|
|
608
608
|
let i = 1, a;
|
|
609
|
-
t == "page" && (a =
|
|
609
|
+
t == "page" && (a = C(n, r.open.tooltip)) && (i = Math.max(2, Math.floor(a.dom.offsetHeight / a.dom.querySelector("li").offsetHeight) - 1));
|
|
610
610
|
let { length: o } = r.open.options, s = r.open.selected > -1 ? r.open.selected + i * (e ? 1 : -1) : e ? 0 : o - 1;
|
|
611
|
-
return s < 0 ? s = t == "page" ? 0 : o - 1 : s >= o && (s = t == "page" ? o - 1 : 0), n.dispatch({ effects:
|
|
611
|
+
return s < 0 ? s = t == "page" ? 0 : o - 1 : s >= o && (s = t == "page" ? o - 1 : 0), n.dispatch({ effects: P.of(s) }), !0;
|
|
612
612
|
};
|
|
613
613
|
}
|
|
614
|
-
var
|
|
615
|
-
let t = e.state.field(
|
|
616
|
-
return e.state.readOnly || !t || !t.open || t.open.selected < 0 || t.open.disabled || Date.now() - t.open.timestamp < e.state.facet(
|
|
617
|
-
},
|
|
618
|
-
let t = e.state.field(
|
|
619
|
-
return !t || !t.active.some((e) => e.state != 0) ? !1 : (e.dispatch({ effects:
|
|
620
|
-
},
|
|
614
|
+
var Ce = (e) => {
|
|
615
|
+
let t = e.state.field(H, !1);
|
|
616
|
+
return e.state.readOnly || !t || !t.open || t.open.selected < 0 || t.open.disabled || Date.now() - t.open.timestamp < e.state.facet(N).interactionDelay ? !1 : U(e, t.open.options[t.open.selected]);
|
|
617
|
+
}, G = (e) => e.state.field(H, !1) ? (e.dispatch({ effects: j.of(!0) }), !0) : !1, we = (e) => {
|
|
618
|
+
let t = e.state.field(H, !1);
|
|
619
|
+
return !t || !t.active.some((e) => e.state != 0) ? !1 : (e.dispatch({ effects: M.of(null) }), !0);
|
|
620
|
+
}, Te = class {
|
|
621
621
|
constructor(e, t) {
|
|
622
622
|
this.active = e, this.context = t, this.time = Date.now(), this.updates = [], this.done = void 0;
|
|
623
623
|
}
|
|
624
|
-
},
|
|
624
|
+
}, Ee = 50, De = 1e3, Oe = /*@__PURE__*/ o.fromClass(class {
|
|
625
625
|
constructor(e) {
|
|
626
626
|
this.view = e, this.debounceUpdate = -1, this.running = [], this.debounceAccept = -1, this.pendingStart = !1, this.composing = 0;
|
|
627
|
-
for (let t of e.state.field(
|
|
627
|
+
for (let t of e.state.field(H).active) t.isPending && this.startQuery(t);
|
|
628
628
|
}
|
|
629
629
|
update(e) {
|
|
630
|
-
let t = e.state.field(
|
|
631
|
-
if (!e.selectionSet && !e.docChanged && e.startState.field(
|
|
632
|
-
let
|
|
633
|
-
let t =
|
|
630
|
+
let t = e.state.field(H), n = e.state.facet(N);
|
|
631
|
+
if (!e.selectionSet && !e.docChanged && e.startState.field(H) == t) return;
|
|
632
|
+
let i = e.transactions.some((e) => {
|
|
633
|
+
let t = R(e, n);
|
|
634
634
|
return t & 8 || (e.selection || e.docChanged) && !(t & 3);
|
|
635
635
|
});
|
|
636
636
|
for (let t = 0; t < this.running.length; t++) {
|
|
637
637
|
let n = this.running[t];
|
|
638
|
-
if (
|
|
638
|
+
if (i || n.context.abortOnDocChange && e.docChanged || n.updates.length + e.transactions.length > Ee && Date.now() - n.time > De) {
|
|
639
639
|
for (let e of n.context.abortListeners) try {
|
|
640
640
|
e();
|
|
641
641
|
} catch (e) {
|
|
642
|
-
|
|
642
|
+
r(this.view.state, e);
|
|
643
643
|
}
|
|
644
644
|
n.context.abortListeners = null, this.running.splice(t--, 1);
|
|
645
645
|
} else n.updates.push(...e.transactions);
|
|
646
646
|
}
|
|
647
|
-
this.debounceUpdate > -1 && clearTimeout(this.debounceUpdate), e.transactions.some((e) => e.effects.some((e) => e.is(
|
|
648
|
-
let
|
|
649
|
-
if (this.debounceUpdate = t.active.some((e) => e.isPending && !this.running.some((t) => t.active.source == e.source)) ? setTimeout(() => this.startUpdate(),
|
|
647
|
+
this.debounceUpdate > -1 && clearTimeout(this.debounceUpdate), e.transactions.some((e) => e.effects.some((e) => e.is(j))) && (this.pendingStart = !0);
|
|
648
|
+
let a = this.pendingStart ? 50 : n.activateOnTypingDelay;
|
|
649
|
+
if (this.debounceUpdate = t.active.some((e) => e.isPending && !this.running.some((t) => t.active.source == e.source)) ? setTimeout(() => this.startUpdate(), a) : -1, this.composing != 0) for (let t of e.transactions) t.isUserEvent("input.type") ? this.composing = 2 : this.composing == 2 && t.selection && (this.composing = 3);
|
|
650
650
|
}
|
|
651
651
|
startUpdate() {
|
|
652
652
|
this.debounceUpdate = -1, this.pendingStart = !1;
|
|
653
|
-
let { state: e } = this.view, t = e.field(
|
|
653
|
+
let { state: e } = this.view, t = e.field(H);
|
|
654
654
|
for (let e of t.active) e.isPending && !this.running.some((t) => t.active.source == e.source) && this.startQuery(e);
|
|
655
|
-
this.running.length && t.open && t.open.disabled && (this.debounceAccept = setTimeout(() => this.accept(), this.view.state.facet(
|
|
655
|
+
this.running.length && t.open && t.open.disabled && (this.debounceAccept = setTimeout(() => this.accept(), this.view.state.facet(N).updateSyncTime));
|
|
656
656
|
}
|
|
657
657
|
startQuery(e) {
|
|
658
|
-
let { state: t } = this.view, n = new
|
|
659
|
-
this.running.push(
|
|
660
|
-
|
|
658
|
+
let { state: t } = this.view, n = new w(t, D(t), e.explicit, this.view), i = new Te(e, n);
|
|
659
|
+
this.running.push(i), Promise.resolve(e.source(n)).then((e) => {
|
|
660
|
+
i.context.aborted || (i.done = e || null, this.scheduleAccept());
|
|
661
661
|
}, (e) => {
|
|
662
|
-
this.view.dispatch({ effects:
|
|
662
|
+
this.view.dispatch({ effects: M.of(null) }), r(this.view.state, e);
|
|
663
663
|
});
|
|
664
664
|
}
|
|
665
665
|
scheduleAccept() {
|
|
666
|
-
this.running.every((e) => e.done !== void 0) ? this.accept() : this.debounceAccept < 0 && (this.debounceAccept = setTimeout(() => this.accept(), this.view.state.facet(
|
|
666
|
+
this.running.every((e) => e.done !== void 0) ? this.accept() : this.debounceAccept < 0 && (this.debounceAccept = setTimeout(() => this.accept(), this.view.state.facet(N).updateSyncTime));
|
|
667
667
|
}
|
|
668
668
|
accept() {
|
|
669
669
|
this.debounceAccept > -1 && clearTimeout(this.debounceAccept), this.debounceAccept = -1;
|
|
670
|
-
let e = [], t = this.view.state.facet(
|
|
670
|
+
let e = [], t = this.view.state.facet(N), n = this.view.state.field(H);
|
|
671
671
|
for (let r = 0; r < this.running.length; r++) {
|
|
672
672
|
let i = this.running[r];
|
|
673
673
|
if (i.done === void 0) continue;
|
|
674
674
|
if (this.running.splice(r--, 1), i.done) {
|
|
675
|
-
let n =
|
|
675
|
+
let n = D(i.updates.length ? i.updates[0].startState : this.view.state), r = Math.min(n, i.done.from + +!i.active.explicit), a = new B(i.active.source, i.active.explicit, r, i.done, i.done.from, i.done.to ?? n);
|
|
676
676
|
for (let e of i.updates) a = a.update(e, t);
|
|
677
677
|
if (a.hasResult()) {
|
|
678
678
|
e.push(a);
|
|
@@ -682,34 +682,34 @@ var xe = (e) => {
|
|
|
682
682
|
let a = n.active.find((e) => e.source == i.active.source);
|
|
683
683
|
if (a && a.isPending) {
|
|
684
684
|
if (i.done == null) {
|
|
685
|
-
let n = new
|
|
685
|
+
let n = new z(i.active.source, 0);
|
|
686
686
|
for (let e of i.updates) n = n.update(e, t);
|
|
687
687
|
n.isPending || e.push(n);
|
|
688
688
|
} else this.startQuery(a);
|
|
689
689
|
}
|
|
690
690
|
}
|
|
691
|
-
(e.length || n.open && n.open.disabled) && this.view.dispatch({ effects:
|
|
691
|
+
(e.length || n.open && n.open.disabled) && this.view.dispatch({ effects: V.of(e) });
|
|
692
692
|
}
|
|
693
693
|
}, { eventHandlers: {
|
|
694
694
|
blur(e) {
|
|
695
|
-
let t = this.view.state.field(
|
|
696
|
-
if (t && t.tooltip && this.view.state.facet(
|
|
697
|
-
let n = t.open &&
|
|
698
|
-
n && n.dom.contains(e.relatedTarget) || setTimeout(() => this.view.dispatch({ effects:
|
|
695
|
+
let t = this.view.state.field(H, !1);
|
|
696
|
+
if (t && t.tooltip && this.view.state.facet(N).closeOnBlur) {
|
|
697
|
+
let n = t.open && C(this.view, t.open.tooltip);
|
|
698
|
+
n && n.dom.contains(e.relatedTarget) || setTimeout(() => this.view.dispatch({ effects: M.of(null) }), 10);
|
|
699
699
|
}
|
|
700
700
|
},
|
|
701
701
|
compositionstart() {
|
|
702
702
|
this.composing = 1;
|
|
703
703
|
},
|
|
704
704
|
compositionend() {
|
|
705
|
-
this.composing == 3 && setTimeout(() => this.view.dispatch({ effects:
|
|
705
|
+
this.composing == 3 && setTimeout(() => this.view.dispatch({ effects: j.of(!1) }), 20), this.composing = 0;
|
|
706
706
|
}
|
|
707
|
-
} }),
|
|
708
|
-
let n = t.state.field(
|
|
709
|
-
if (!n || !n.open || n.open.disabled || n.open.selected < 0 || !e.key || e.key.length > 1 || e.ctrlKey && !(
|
|
707
|
+
} }), ke = typeof navigator == "object" && /*@__PURE__*/ /Win/.test(navigator.platform), Ae = /*@__PURE__*/ y.highest(/*@__PURE__*/ f.domEventHandlers({ keydown(e, t) {
|
|
708
|
+
let n = t.state.field(H, !1);
|
|
709
|
+
if (!n || !n.open || n.open.disabled || n.open.selected < 0 || !e.key || e.key.length > 1 || e.ctrlKey && !(ke && e.altKey) || e.metaKey) return !1;
|
|
710
710
|
let r = n.open.options[n.open.selected], i = n.active.find((e) => e.source == r.source), a = r.completion.commitCharacters || i.result.commitCharacters;
|
|
711
|
-
return a && a.indexOf(e.key) > -1 &&
|
|
712
|
-
} })),
|
|
711
|
+
return a && a.indexOf(e.key) > -1 && U(t, r), !1;
|
|
712
|
+
} })), K = /*@__PURE__*/ f.baseTheme({
|
|
713
713
|
".cm-tooltip.cm-tooltip-autocomplete": { "& > ul": {
|
|
714
714
|
fontFamily: "monospace",
|
|
715
715
|
whiteSpace: "nowrap",
|
|
@@ -806,35 +806,35 @@ var xe = (e) => {
|
|
|
806
806
|
fontSize: "50%",
|
|
807
807
|
verticalAlign: "middle"
|
|
808
808
|
} }
|
|
809
|
-
}),
|
|
809
|
+
}), je = class {
|
|
810
810
|
constructor(e, t, n, r) {
|
|
811
811
|
this.field = e, this.line = t, this.from = n, this.to = r;
|
|
812
812
|
}
|
|
813
|
-
},
|
|
813
|
+
}, Me = class e {
|
|
814
814
|
constructor(e, t, n) {
|
|
815
815
|
this.field = e, this.from = t, this.to = n;
|
|
816
816
|
}
|
|
817
817
|
map(t) {
|
|
818
|
-
let n = t.mapPos(this.from, -1,
|
|
818
|
+
let n = t.mapPos(this.from, -1, h.TrackDel), r = t.mapPos(this.to, 1, h.TrackDel);
|
|
819
819
|
return n == null || r == null ? null : new e(this.field, n, r);
|
|
820
820
|
}
|
|
821
|
-
},
|
|
821
|
+
}, Ne = class e {
|
|
822
822
|
constructor(e, t) {
|
|
823
823
|
this.lines = e, this.fieldPositions = t;
|
|
824
824
|
}
|
|
825
|
-
instantiate(e,
|
|
826
|
-
let
|
|
827
|
-
for (let
|
|
828
|
-
if (
|
|
829
|
-
let
|
|
830
|
-
for (let
|
|
831
|
-
|
|
825
|
+
instantiate(e, t) {
|
|
826
|
+
let n = [], r = [t], i = e.doc.lineAt(t), a = /^\s*/.exec(i.text)[0];
|
|
827
|
+
for (let i of this.lines) {
|
|
828
|
+
if (n.length) {
|
|
829
|
+
let n = a, o = /^\t*/.exec(i)[0].length;
|
|
830
|
+
for (let t = 0; t < o; t++) n += e.facet(ee);
|
|
831
|
+
r.push(t + n.length - o), i = n + i.slice(o);
|
|
832
832
|
}
|
|
833
|
-
|
|
833
|
+
n.push(i), t += i.length + 1;
|
|
834
834
|
}
|
|
835
835
|
return {
|
|
836
|
-
text:
|
|
837
|
-
ranges: this.fieldPositions.map((e) => new
|
|
836
|
+
text: n,
|
|
837
|
+
ranges: this.fieldPositions.map((e) => new Me(e.field, r[e.line] + e.from, r[e.line] + e.to))
|
|
838
838
|
};
|
|
839
839
|
}
|
|
840
840
|
static parse(t) {
|
|
@@ -858,7 +858,7 @@ var xe = (e) => {
|
|
|
858
858
|
let t = a[2] ? 3 + (a[1] || "").length : 2;
|
|
859
859
|
e.from -= t, e.to -= t;
|
|
860
860
|
}
|
|
861
|
-
i.push(new
|
|
861
|
+
i.push(new je(s, r.length, a.index, a.index + c.length)), e = e.slice(0, a.index) + o + e.slice(a.index + a[0].length);
|
|
862
862
|
}
|
|
863
863
|
e = e.replace(/\\([{}])/g, (e, t, n) => {
|
|
864
864
|
for (let e of i) e.line == r.length && e.from > n && (e.from--, e.to--);
|
|
@@ -867,7 +867,7 @@ var xe = (e) => {
|
|
|
867
867
|
}
|
|
868
868
|
return new e(r, i);
|
|
869
869
|
}
|
|
870
|
-
},
|
|
870
|
+
}, Pe = /*@__PURE__*/ p.widget({ widget: /*@__PURE__*/ new class extends n {
|
|
871
871
|
toDOM() {
|
|
872
872
|
let e = document.createElement("span");
|
|
873
873
|
return e.className = "cm-snippetFieldPosition", e;
|
|
@@ -875,9 +875,9 @@ var xe = (e) => {
|
|
|
875
875
|
ignoreEvent() {
|
|
876
876
|
return !1;
|
|
877
877
|
}
|
|
878
|
-
}() }),
|
|
878
|
+
}() }), Fe = /*@__PURE__*/ p.mark({ class: "cm-snippetField" }), q = class e {
|
|
879
879
|
constructor(e, t) {
|
|
880
|
-
this.ranges = e, this.active = t, this.deco =
|
|
880
|
+
this.ranges = e, this.active = t, this.deco = p.set(e.map((e) => (e.from == e.to ? Pe : Fe).range(e.from, e.to)), !0);
|
|
881
881
|
}
|
|
882
882
|
map(t) {
|
|
883
883
|
let n = [];
|
|
@@ -891,147 +891,147 @@ var xe = (e) => {
|
|
|
891
891
|
selectionInsideField(e) {
|
|
892
892
|
return e.ranges.every((e) => this.ranges.some((t) => t.field == this.active && t.from <= e.from && t.to >= e.to));
|
|
893
893
|
}
|
|
894
|
-
},
|
|
894
|
+
}, J = /*@__PURE__*/ b.define({ map(e, t) {
|
|
895
895
|
return e && e.map(t);
|
|
896
|
-
} }),
|
|
896
|
+
} }), Ie = /*@__PURE__*/ b.define(), Y = /*@__PURE__*/ c.define({
|
|
897
897
|
create() {
|
|
898
898
|
return null;
|
|
899
899
|
},
|
|
900
900
|
update(e, t) {
|
|
901
901
|
for (let n of t.effects) {
|
|
902
|
-
if (n.is(
|
|
903
|
-
if (n.is(
|
|
902
|
+
if (n.is(J)) return n.value;
|
|
903
|
+
if (n.is(Ie) && e) return new q(e.ranges, n.value);
|
|
904
904
|
}
|
|
905
905
|
return e && t.docChanged && (e = e.map(t.changes)), e && t.selection && !e.selectionInsideField(t.selection) && (e = null), e;
|
|
906
906
|
},
|
|
907
|
-
provide: (
|
|
907
|
+
provide: (e) => f.decorations.from(e, (e) => e ? e.deco : p.none)
|
|
908
908
|
});
|
|
909
|
-
function
|
|
910
|
-
return
|
|
909
|
+
function X(t, n) {
|
|
910
|
+
return e.create(t.filter((e) => e.field == n).map((t) => e.range(t.from, t.to)));
|
|
911
911
|
}
|
|
912
|
-
function
|
|
913
|
-
let t =
|
|
912
|
+
function Le(e) {
|
|
913
|
+
let t = Ne.parse(e);
|
|
914
914
|
return (e, n, r, i) => {
|
|
915
915
|
let { text: a, ranges: o } = t.instantiate(e.state, r), { main: s } = e.state.selection, c = {
|
|
916
916
|
changes: {
|
|
917
917
|
from: r,
|
|
918
918
|
to: i == s.from ? s.to : i,
|
|
919
|
-
insert:
|
|
919
|
+
insert: m.of(a)
|
|
920
920
|
},
|
|
921
921
|
scrollIntoView: !0,
|
|
922
|
-
annotations: n ? [
|
|
922
|
+
annotations: n ? [k.of(n), S.userEvent.of("input.complete")] : void 0
|
|
923
923
|
};
|
|
924
|
-
if (o.length && (c.selection =
|
|
925
|
-
let t = new
|
|
926
|
-
e.state.field(
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
|
|
924
|
+
if (o.length && (c.selection = X(o, 0)), o.some((e) => e.field > 0)) {
|
|
925
|
+
let t = new q(o, 0), n = c.effects = [J.of(t)];
|
|
926
|
+
e.state.field(Y, !1) === void 0 && n.push(b.appendConfig.of([
|
|
927
|
+
Y,
|
|
928
|
+
ze,
|
|
929
|
+
Ve,
|
|
930
|
+
K
|
|
931
931
|
]));
|
|
932
932
|
}
|
|
933
933
|
e.dispatch(e.state.update(c));
|
|
934
934
|
};
|
|
935
935
|
}
|
|
936
|
-
function
|
|
936
|
+
function Z(e) {
|
|
937
937
|
return ({ state: t, dispatch: n }) => {
|
|
938
|
-
let r = t.field(
|
|
938
|
+
let r = t.field(Y, !1);
|
|
939
939
|
if (!r || e < 0 && r.active == 0) return !1;
|
|
940
940
|
let i = r.active + e, a = e > 0 && !r.ranges.some((t) => t.field == i + e);
|
|
941
941
|
return n(t.update({
|
|
942
|
-
selection:
|
|
943
|
-
effects:
|
|
942
|
+
selection: X(r.ranges, i),
|
|
943
|
+
effects: J.of(a ? null : new q(r.ranges, i)),
|
|
944
944
|
scrollIntoView: !0
|
|
945
945
|
})), !0;
|
|
946
946
|
};
|
|
947
947
|
}
|
|
948
|
-
var
|
|
948
|
+
var Re = [{
|
|
949
949
|
key: "Tab",
|
|
950
|
-
run: /* @__PURE__ */
|
|
951
|
-
shift: /* @__PURE__ */
|
|
950
|
+
run: /* @__PURE__ */ Z(1),
|
|
951
|
+
shift: /* @__PURE__ */ Z(-1)
|
|
952
952
|
}, {
|
|
953
953
|
key: "Escape",
|
|
954
|
-
run: ({ state: e, dispatch: t }) => e.field(
|
|
955
|
-
}],
|
|
956
|
-
return e.length ? e[0] :
|
|
957
|
-
} }),
|
|
958
|
-
function
|
|
954
|
+
run: ({ state: e, dispatch: t }) => e.field(Y, !1) ? (t(e.update({ effects: J.of(null) })), !0) : !1
|
|
955
|
+
}], Q = /*@__PURE__*/ x.define({ combine(e) {
|
|
956
|
+
return e.length ? e[0] : Re;
|
|
957
|
+
} }), ze = /*@__PURE__*/ y.highest(/*@__PURE__*/ i.compute([Q], (e) => e.facet(Q)));
|
|
958
|
+
function Be(e, t) {
|
|
959
959
|
return {
|
|
960
960
|
...t,
|
|
961
|
-
apply:
|
|
961
|
+
apply: Le(e)
|
|
962
962
|
};
|
|
963
963
|
}
|
|
964
|
-
var
|
|
965
|
-
let n = t.state.field(
|
|
964
|
+
var Ve = /*@__PURE__*/ f.domEventHandlers({ mousedown(e, t) {
|
|
965
|
+
let n = t.state.field(Y, !1), r;
|
|
966
966
|
if (!n || (r = t.posAtCoords({
|
|
967
967
|
x: e.clientX,
|
|
968
968
|
y: e.clientY
|
|
969
969
|
})) == null) return !1;
|
|
970
970
|
let i = n.ranges.find((e) => e.from <= r && e.to >= r);
|
|
971
971
|
return !i || i.field == n.active ? !1 : (t.dispatch({
|
|
972
|
-
selection:
|
|
973
|
-
effects:
|
|
972
|
+
selection: X(n.ranges, i.field),
|
|
973
|
+
effects: J.of(n.ranges.some((e) => e.field > i.field) ? new q(n.ranges, i.field) : null),
|
|
974
974
|
scrollIntoView: !0
|
|
975
975
|
}), !0);
|
|
976
|
-
} }),
|
|
977
|
-
|
|
978
|
-
function
|
|
976
|
+
} }), He = /*@__PURE__*/ new class extends g {}();
|
|
977
|
+
He.startSide = 1, He.endSide = -1, typeof navigator == "object" && navigator.userAgent;
|
|
978
|
+
function Ue(e = {}) {
|
|
979
979
|
return [
|
|
980
|
+
Ae,
|
|
981
|
+
H,
|
|
982
|
+
N.of(e),
|
|
980
983
|
Oe,
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
Ee,
|
|
984
|
-
We,
|
|
985
|
-
J
|
|
984
|
+
Ge,
|
|
985
|
+
K
|
|
986
986
|
];
|
|
987
987
|
}
|
|
988
|
-
var
|
|
988
|
+
var We = [
|
|
989
989
|
{
|
|
990
990
|
key: "Ctrl-Space",
|
|
991
|
-
run:
|
|
991
|
+
run: G
|
|
992
992
|
},
|
|
993
993
|
{
|
|
994
994
|
mac: "Alt-`",
|
|
995
|
-
run:
|
|
995
|
+
run: G
|
|
996
996
|
},
|
|
997
997
|
{
|
|
998
998
|
mac: "Alt-i",
|
|
999
|
-
run:
|
|
999
|
+
run: G
|
|
1000
1000
|
},
|
|
1001
1001
|
{
|
|
1002
1002
|
key: "Escape",
|
|
1003
|
-
run:
|
|
1003
|
+
run: we
|
|
1004
1004
|
},
|
|
1005
1005
|
{
|
|
1006
1006
|
key: "ArrowDown",
|
|
1007
|
-
run: /*@__PURE__*/
|
|
1007
|
+
run: /*@__PURE__*/ W(!0)
|
|
1008
1008
|
},
|
|
1009
1009
|
{
|
|
1010
1010
|
key: "ArrowUp",
|
|
1011
|
-
run: /*@__PURE__*/
|
|
1011
|
+
run: /*@__PURE__*/ W(!1)
|
|
1012
1012
|
},
|
|
1013
1013
|
{
|
|
1014
1014
|
key: "PageDown",
|
|
1015
|
-
run: /*@__PURE__*/
|
|
1015
|
+
run: /*@__PURE__*/ W(!0, "page")
|
|
1016
1016
|
},
|
|
1017
1017
|
{
|
|
1018
1018
|
key: "PageUp",
|
|
1019
|
-
run: /*@__PURE__*/
|
|
1019
|
+
run: /*@__PURE__*/ W(!1, "page")
|
|
1020
1020
|
},
|
|
1021
1021
|
{
|
|
1022
1022
|
key: "Enter",
|
|
1023
|
-
run:
|
|
1023
|
+
run: Ce
|
|
1024
1024
|
}
|
|
1025
|
-
],
|
|
1026
|
-
function
|
|
1027
|
-
let t = e.field(
|
|
1025
|
+
], Ge = /*@__PURE__*/ y.highest(/*@__PURE__*/ i.computeN([N], (e) => e.facet(N).defaultKeymap ? [We] : []));
|
|
1026
|
+
function Ke(e) {
|
|
1027
|
+
let t = e.field(H, !1);
|
|
1028
1028
|
return t && t.active.some((e) => e.isPending) ? "pending" : t && t.active.some((e) => e.state != 0) ? "active" : null;
|
|
1029
1029
|
}
|
|
1030
|
-
var
|
|
1030
|
+
var $ = /*@__PURE__*/ new WeakMap();
|
|
1031
1031
|
function qe(e) {
|
|
1032
|
-
let t = e.field(
|
|
1032
|
+
let t = e.field(H, !1)?.open;
|
|
1033
1033
|
if (!t || t.disabled) return [];
|
|
1034
|
-
let n =
|
|
1035
|
-
return n ||
|
|
1034
|
+
let n = $.get(t.options);
|
|
1035
|
+
return n || $.set(t.options, n = t.options.map((e) => e.completion)), n;
|
|
1036
1036
|
}
|
|
1037
|
-
export { qe as a,
|
|
1037
|
+
export { qe as a, G as c, Ke as i, Ue as n, re as o, ne as r, Be as s, w as t };
|