@nldd/design-system 0.30.0 → 0.31.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 +288 -15
- package/dist/cdn/autoloader.js +139 -139
- package/dist/cdn/chunks/{accordion-DgR70Lf-.js → accordion-D7VeSx-7.js} +4 -4
- package/dist/cdn/chunks/{accordion-item-BDevWF9t.js → accordion-item-DjFnuCY9.js} +6 -6
- package/dist/cdn/chunks/{activity-indicator-B-iqA8XF.js → activity-indicator-nshVcQbZ.js} +7 -7
- package/dist/cdn/chunks/{admonition-PKX7ePb3.js → admonition-BhYcjvcU.js} +6 -6
- package/dist/cdn/chunks/{avatar-Bm_cbn5X.js → avatar-Dw9XZk73.js} +8 -8
- package/dist/cdn/chunks/{avatar-group-5XxwtbbC.js → avatar-group-B0ZliBMF.js} +16 -16
- package/dist/cdn/chunks/{badge-CpxDQfHS.js → badge-2ObEfIYt.js} +7 -7
- package/dist/cdn/chunks/{banner-Ccc9LgDk.js → banner-D9d_367R.js} +9 -9
- package/dist/cdn/chunks/{bar-split-view-0yxggCZe.js → bar-split-view-Cpq5j2Yd.js} +6 -6
- package/dist/cdn/chunks/{blockquote-CmbDjlPB.js → blockquote-M372pBfW.js} +6 -6
- package/dist/cdn/chunks/{box-DQjgR2YI.js → box-bpcNQSk1.js} +4 -4
- package/dist/cdn/chunks/{breadcrumbs-C8yzb9pA.js → breadcrumbs-YBuCnLD2.js} +7 -7
- package/dist/cdn/chunks/{button-D_KfPyHS.js → button-BsJDVMS5.js} +12 -12
- package/dist/cdn/chunks/{button-bar-f-qcw_zA.js → button-bar-C7WBKVht.js} +5 -5
- package/dist/cdn/chunks/{button-group-Dq3q44jB.js → button-group-D3zUCJnu.js} +4 -4
- package/dist/cdn/chunks/{card-CDT7nkKG.js → card-BY2Fz35J.js} +5 -5
- package/dist/cdn/chunks/{cell-B7ksoCyd.js → cell-DfQcb8oJ.js} +8 -8
- package/dist/cdn/chunks/{checkbox-CUReiYVg.js → checkbox-BurSrNRq.js} +7 -7
- package/dist/cdn/chunks/{checkbox-field-CkQ8WLSq.js → checkbox-field-jcCJRers.js} +9 -9
- package/dist/cdn/chunks/{checkbox-group-BpDzGuFk.js → checkbox-group--6ifWQ_F.js} +3 -3
- package/dist/cdn/chunks/{class-map-BQWXee9F.js → class-map-pfTGN6Lt.js} +1 -1
- package/dist/cdn/chunks/{code-editor-CwLcukqn.js → code-editor-D6xQxxSm.js} +14 -14
- package/dist/cdn/chunks/{code-viewer-CvSF5fyg.js → code-viewer-CsO0Hzkz.js} +40 -40
- package/dist/cdn/chunks/{codemirror-input-CcaHTu9u.js → codemirror-input-Bu7mes2L.js} +328 -329
- package/dist/cdn/chunks/{collection-DqqkdrVS.js → collection-CLD0J381.js} +9 -9
- package/dist/cdn/chunks/{combo-box-BQ9jS1fP.js → combo-box-cC87aRbF.js} +12 -10
- package/dist/cdn/chunks/{container-BC5PiMvR.js → container-Dcd-wtk5.js} +5 -5
- package/dist/cdn/chunks/{custom-element-DGdiDiuN.js → custom-element-BPzCecdN.js} +1 -1
- package/dist/cdn/chunks/{date-field-Dmli_GlI.js → date-field-CfIXnk2K.js} +15 -13
- package/dist/cdn/chunks/{date-picker-BCHBh6vd.js → date-picker-D4W0Be1y.js} +13 -13
- package/dist/cdn/chunks/{decorate-D2snH_th.js → decorate-CNSW3HVY.js} +10 -12
- package/dist/cdn/chunks/{described-by-mixin-Doan1yj6.js → described-by-mixin-BNEosRlm.js} +2 -2
- package/dist/cdn/chunks/{description-cell-QL0CUcxH.js → description-cell-3zl0cEJE.js} +8 -8
- package/dist/cdn/chunks/{dev-checks-BQsZ10CZ.js → dev-checks-sh4nGzvD.js} +2 -2
- package/dist/cdn/chunks/{directive-helpers-BtIbEaBv.js → directive-helpers-C8_pU38P.js} +1 -1
- package/dist/cdn/chunks/{dist-CeovKDYB.js → dist-BA1lxpkp.js} +41 -42
- package/dist/cdn/chunks/{dist-Dj0pXI2B.js → dist-BMreXo8L.js} +33 -34
- package/dist/cdn/chunks/{dist-CUCs0edm.js → dist-BQhMIRwq.js} +103 -104
- package/dist/cdn/chunks/{dist-0sEOO4c9.js → dist-BwkztXx2.js} +337 -338
- package/dist/cdn/chunks/{dist-DizTxYTi.js → dist-C0eqMXKG.js} +9 -10
- package/dist/cdn/chunks/{dist-3C80SZN9.js → dist-CYoggrc-.js} +100 -101
- package/dist/cdn/chunks/{dist-QheJD595.js → dist-D8GVh7JF.js} +103 -103
- package/dist/cdn/chunks/{dist-BTUxFM2V.js → dist-DHJOmDf7.js} +1 -1
- package/dist/cdn/chunks/{dist-Dtn2rsM6.js → dist-DosCjwbX.js} +10 -11
- package/dist/cdn/chunks/{dist-CJ-hLN4o.js → dist-Du5XeaUH.js} +80 -81
- package/dist/cdn/chunks/{dist-BX-aE56q.js → dist-DwGJ42jg.js} +13 -14
- package/dist/cdn/chunks/{dist-DM49yEzE.js → dist-DzvZLbav.js} +37 -38
- package/dist/cdn/chunks/{dist-CoM5yDHD.js → dist-UPMuGK3l.js} +12 -13
- package/dist/cdn/chunks/{divider-D8o0JPE2.js → divider-ja-sWdqK.js} +2 -2
- package/dist/cdn/chunks/{document-tab-bar-BX6UhFBl.js → document-tab-bar-CzlWDPeb.js} +10 -10
- package/dist/cdn/chunks/{dropdown-afozwXVW.js → dropdown-CDnfyMTi.js} +6 -6
- package/dist/cdn/chunks/{file-field-BKhUYcHf.js → file-field-VGbq3duI.js} +16 -16
- package/dist/cdn/chunks/{floating-ui.dom-CB34tcZx.js → floating-ui.dom-DlsknQ4T.js} +3 -3
- package/dist/cdn/chunks/{form-DnZIiX9b.js → form-EDk-AXxW.js} +1 -1
- package/dist/cdn/chunks/{form-actions-Ddg9vIVq.js → form-actions-DJlOHVjC.js} +2 -2
- package/dist/cdn/chunks/{form-associated-mixin-BMQQpMlL.js → form-associated-mixin-BDrjhoXJ.js} +2 -2
- package/dist/cdn/chunks/{form-field-DDBYuAl_.js → form-field-DwfFYaIJ.js} +17 -8
- package/dist/cdn/chunks/{form-section-Co0TM35-.js → form-section-D5pvpU0g.js} +3 -3
- package/dist/cdn/chunks/{full-bleed-section-DD8ibmsa.js → full-bleed-section-B2lrxacX.js} +4 -4
- package/dist/cdn/chunks/{hero-BYrY2MZc.js → hero-8OBYFEcb.js} +5 -5
- package/dist/cdn/chunks/{icon-BzeHXcdi.js → icon-DZh6I8EN.js} +4 -4
- package/dist/cdn/chunks/{icon-button-BErQf42w.js → icon-button-Cfl9Uloz.js} +12 -12
- package/dist/cdn/chunks/{icon-cell-DGIMXKxK.js → icon-cell-BKxm4x3C.js} +8 -7
- package/dist/cdn/chunks/{identity-Cq-WnU6u.js → identity-D6mA_Ysl.js} +10 -10
- package/dist/cdn/chunks/{if-defined-CuY6t6gH.js → if-defined-Laa7Mar_.js} +1 -1
- package/dist/cdn/chunks/{image-BjjyqV0V.js → image-BNQlE_4Z.js} +10 -10
- package/dist/cdn/chunks/{inline-dialog-Bk2G7f5r.js → inline-dialog-5vpq_6bt.js} +10 -10
- package/dist/cdn/chunks/{just-in-time-education-Dxh5DNCy.js → just-in-time-education-C8uCzm2s.js} +7 -7
- package/dist/cdn/chunks/{kanban-BvmtB9D9.js → kanban-_aubAWTm.js} +7 -7
- package/dist/cdn/chunks/{kanban-column-CJ2g7pgA.js → kanban-column-CmitV46A.js} +38 -37
- package/dist/cdn/chunks/{keyboard-shortcut-BV5DFQtT.js → keyboard-shortcut-DY96tl24.js} +5 -5
- package/dist/cdn/chunks/{languages-DJjHEjGl.js → languages-B0lgBg4r.js} +3486 -1841
- package/dist/cdn/chunks/{link-BcukwT5Y.js → link-CEyAJ_y7.js} +7 -7
- package/dist/cdn/chunks/{link-group-Ci1q3uEd.js → link-group-DwnzL75g.js} +3 -3
- package/dist/cdn/chunks/{list-CFFHWUSC.js → list-D-_Z5AED.js} +11 -11
- package/dist/cdn/chunks/{list-item-Bg1NyOXd.js → list-item-BqzGOqJl.js} +7 -7
- package/dist/cdn/chunks/{list-item-segment-DJ8pk08-.js → list-item-segment-Ct876W0e.js} +5 -5
- package/dist/cdn/chunks/{menu-BEjqhn1-.js → menu-BDLqu0jO.js} +13 -13
- package/dist/cdn/chunks/{menu-bar-DkjXy-TE.js → menu-bar-DbCYdFuj.js} +7 -7
- package/dist/cdn/chunks/{menu-bar-item-3cJS29Ey.js → menu-bar-item-CFfcPjci.js} +7 -7
- package/dist/cdn/chunks/{menu-divider-CYmEimsb.js → menu-divider-DTzCjHnW.js} +4 -4
- package/dist/cdn/chunks/{menu-group-ggwAcgis.js → menu-group-rYPRHllx.js} +6 -6
- package/dist/cdn/chunks/{menu-item-BzH9H87h.js → menu-item-CjzoSHHj.js} +6 -6
- package/dist/cdn/chunks/{menu.template-PG82-P20.js → menu.template-D7dG2HRa.js} +10 -7
- package/dist/cdn/chunks/{modal-dialog-Bu7ETELf.js → modal-dialog-Cjn3EHfN.js} +5 -5
- package/dist/cdn/chunks/{multi-line-text-field-CQTKNBN7.js → multi-line-text-field-B8DstPYy.js} +9 -7
- package/dist/cdn/chunks/{navigation-split-view-elMoUjHh.js → navigation-split-view-BHM4b_Gb.js} +5 -5
- package/dist/cdn/chunks/{nl.generated-Lu29XEF3.js → nl.generated-Bu83qDco.js} +2 -2
- package/dist/cdn/chunks/{notification-DCjXGfbY.js → notification-CieKHgKd.js} +8 -8
- package/dist/cdn/chunks/{number-field-BUQUcG--.js → number-field-CVYaConf.js} +12 -10
- package/dist/cdn/chunks/{one-half-one-half-section-DiGkeUVr.js → one-half-one-half-section-aMdIJ_5N.js} +4 -4
- package/dist/cdn/chunks/{one-third-two-thirds-section-q_AP4qIJ.js → one-third-two-thirds-section-Dalek6lE.js} +4 -4
- package/dist/cdn/chunks/{one-time-code-field-BybS_l6h.js → one-time-code-field-BxkICLRG.js} +19 -14
- package/dist/cdn/chunks/{overflow-menu-Duey_XJs.js → overflow-menu-GR6uppZW.js} +1 -1
- package/dist/cdn/chunks/{page-BrIeWp1b.js → page-C18ixnPr.js} +7 -7
- package/dist/cdn/chunks/{page-footer-DPQg9Qbw.js → page-footer-CP6K-aw-.js} +6 -6
- package/dist/cdn/chunks/{page-section-mixin-B8FbeXaK.js → page-section-mixin-BLPRaUH6.js} +4 -4
- package/dist/cdn/chunks/{pagination-CfLJwflH.js → pagination-YLIq3Jcw.js} +8 -8
- package/dist/cdn/chunks/{password-field-CmoopbNF.js → password-field-CCRqiNHh.js} +12 -10
- package/dist/cdn/chunks/{popover-CPAR4N_a.js → popover-NvRaYQGL.js} +9 -9
- package/dist/cdn/chunks/{progress-bar-vKGXvxfe.js → progress-bar-DS0_RN2t.js} +9 -9
- package/dist/cdn/chunks/{progress-circle-dweisHzt.js → progress-circle-B5zlQKGK.js} +9 -9
- package/dist/cdn/chunks/{radio-button-field-DCrWiVoA.js → radio-button-field-DZ2p1w_S.js} +8 -8
- package/dist/cdn/chunks/{radio-button-DE1K49_2.js → radio-button-gY-u--Id.js} +6 -6
- package/dist/cdn/chunks/{radio-button-group-oLP_1cGy.js → radio-button-group-C0VdrjGz.js} +3 -3
- package/dist/cdn/chunks/{reflect-non-default-Bu3rpCvg.js → reflect-non-default-DUOcGZKf.js} +1 -1
- package/dist/cdn/chunks/{render-marked-BE3kBc1D.js → render-marked-SMLwIKOz.js} +1 -1
- package/dist/cdn/chunks/{reorder-handle-cell-COCN6knt.js → reorder-handle-cell-BfNGWoUb.js} +5 -5
- package/dist/cdn/chunks/{reorder-handle-mixin-CG-KhmuT.js → reorder-handle-mixin-Dy5l6J0C.js} +2 -2
- package/dist/cdn/chunks/{repeat-D69H_dsv.js → repeat-HQymq8gF.js} +2 -2
- package/dist/cdn/chunks/{rich-text-jEyIU58i.js → rich-text-BALF1UpX.js} +4 -4
- package/dist/cdn/chunks/{rolldown-runtime-CGnMp29N.js → rolldown-runtime-BMBA7GOT.js} +2 -2
- package/dist/cdn/chunks/{row-header-mixin-BejxhOCs.js → row-header-mixin-De75PIGu.js} +2 -2
- package/dist/cdn/chunks/{scroll-fade-Cae9xqXr.js → scroll-fade-Bj7GnOWo.js} +2 -2
- package/dist/cdn/chunks/{search-field-B8woxFh-.js → search-field-DP7e4bm8.js} +13 -11
- package/dist/cdn/chunks/{segmented-control-DbOi6Wk6.js → segmented-control-BXtb8I7v.js} +8 -8
- package/dist/cdn/chunks/{shadow-resets-CNmJbdJw.js → shadow-resets-CF-vkJJ8.js} +2 -2
- package/dist/cdn/chunks/{sheet-bK663_K4.js → sheet-Beykq5Xb.js} +4 -4
- package/dist/cdn/chunks/{shell-DLu1fHOH.js → shell-CTGO74H-.js} +4 -4
- package/dist/cdn/chunks/{side-by-side-split-view-vNhUmTiE.js → side-by-side-split-view-BZlxFAIM.js} +6 -6
- package/dist/cdn/chunks/{sidebar-section-CoE5F_h5.js → sidebar-section-CsODVvuK.js} +9 -9
- package/dist/cdn/chunks/{simple-section-1v7a_ZgI.js → simple-section-9pgvujZx.js} +4 -4
- package/dist/cdn/chunks/{skip-link-C6B6mMkA.js → skip-link-qdhDQoe7.js} +6 -6
- package/dist/cdn/chunks/{slider-BT-q6SP2.js → slider-CR_O2nPE.js} +10 -10
- package/dist/cdn/chunks/{spacer-DlFn3NtV.js → spacer-DbZEWOe2.js} +4 -4
- package/dist/cdn/chunks/{spacer-cell-Dy_twSDQ.js → spacer-cell-BnDgG-8g.js} +6 -6
- package/dist/cdn/chunks/{split-button-URHM5eTx.js → split-button-rY9ZZF4m.js} +8 -8
- package/dist/cdn/chunks/{split-view-divider-DeLyeDBx.js → split-view-divider-CXsR2koZ.js} +4 -4
- package/dist/cdn/chunks/{stacked-split-view-D0kiQJmL.js → stacked-split-view-CA97yLNG.js} +6 -6
- package/dist/cdn/chunks/{static-html-CAKb1-Ht.js → static-html-CfvOicw5.js} +1 -1
- package/dist/cdn/chunks/{status-bar-Bov-LrPy.js → status-bar-Cg0AkR2_.js} +14 -6
- package/dist/cdn/chunks/{step-bar-BLtsl_S_.js → step-bar-CAF54DmI.js} +7 -7
- package/dist/cdn/chunks/{step-cell-cxM7vhtH.js → step-cell-BfmEAqar.js} +6 -6
- package/dist/cdn/chunks/{stepper-DeIcLT7G.js → stepper-C2oRKeaC.js} +9 -9
- package/dist/cdn/chunks/{style-map-CQX4CmTz.js → style-map-BZRDrOiA.js} +1 -1
- package/dist/cdn/chunks/{swatch-picker-A7AU6Agu.js → swatch-picker-DW07gML2.js} +7 -7
- package/dist/cdn/chunks/{switch-D0UPsKws.js → switch-D3dbZ1J9.js} +8 -8
- package/dist/cdn/chunks/{switch-field-D63lc5C0.js → switch-field-DrP2P8J-.js} +8 -8
- package/dist/cdn/chunks/{tab-bar-CzGSRfKd.js → tab-bar-D0VfxxWN.js} +21 -17
- package/dist/cdn/chunks/tab-bar.i18n-9sChoP56.js +6 -0
- package/dist/cdn/chunks/{table-DfunY2Dn.js → table-CWQWdro8.js} +6 -6
- package/dist/cdn/chunks/{tag-DSWjjDBo.js → tag-Dc2wNx-T.js} +6 -6
- package/dist/cdn/chunks/{term-Bk9cdlCz.js → term-DUIQ5xer.js} +12 -12
- package/dist/cdn/chunks/{text-CDBiVulh.js → text-BGobv84x.js} +5 -5
- package/dist/cdn/chunks/{text-cell-DUOJAXZo.js → text-cell-CGvUJRLw.js} +11 -11
- package/dist/cdn/chunks/{text-editor-BIbYF0AB.js → text-editor-CHsINr20.js} +1308 -904
- package/dist/cdn/chunks/{text-editor.i18n-sJKiRQ4i.js → text-editor.i18n-Cl_BYDwS.js} +2 -1
- package/dist/cdn/chunks/{text-field-CAnQNcXB.js → text-field-CpSGZVmD.js} +9 -7
- package/dist/cdn/chunks/{text-wrap-COu7AY91.js → text-wrap-DHroWilR.js} +2 -2
- package/dist/cdn/chunks/{time-field-xriXgFMl.js → time-field-CJVbIp-l.js} +17 -15
- package/dist/cdn/chunks/{time-picker-D3_KbYUW.js → time-picker-S2rQpNA-.js} +9 -9
- package/dist/cdn/chunks/{title-HPn4c-s5.js → title-DrogO1fi.js} +6 -6
- package/dist/cdn/chunks/{title-cell-BXMZkbXf.js → title-cell-CX_yGWvW.js} +10 -10
- package/dist/cdn/chunks/{toggle-button-DY22KEwY.js → toggle-button-CwVn3pQ-.js} +10 -10
- package/dist/cdn/chunks/{toggle-button-group-DsjZofEG.js → toggle-button-group-BY4GlP2N.js} +3 -3
- package/dist/cdn/chunks/{token-field-CQxSARGi.js → token-field-CgE9PfeW.js} +13 -11
- package/dist/cdn/chunks/{token-DwT2i71b.js → token-vYddtNLa.js} +7 -7
- package/dist/cdn/chunks/{toolbar-CaDvhCqm.js → toolbar-Cl9XcbRF.js} +10 -10
- package/dist/cdn/chunks/{toolbar-item-BDl4ys-w.js → toolbar-item-BQKbNQGY.js} +5 -8
- package/dist/cdn/chunks/{toolbar-title-yGR8Hzhp.js → toolbar-title-Ka7Q_vfZ.js} +5 -5
- package/dist/cdn/chunks/{toolbar.styles-DlyfZkRq.js → toolbar.styles-QMkPXyiR.js} +4 -3
- package/dist/cdn/chunks/{tooltip-BDiYghAz.js → tooltip-BERJsBSV.js} +8 -8
- package/dist/cdn/chunks/{top-navigation-bar-ibsjezN_.js → top-navigation-bar-CJCQf83I.js} +19 -19
- package/dist/cdn/chunks/{top-title-bar-BKdwEZfj.js → top-title-bar-CT4gj9gn.js} +12 -9
- package/dist/cdn/chunks/{two-thirds-one-third-section-DmumCsGo.js → two-thirds-one-third-section-CQwCU61R.js} +4 -4
- package/dist/cdn/chunks/{validation-list-CXcJfvOJ.js → validation-list-3b8a8S3f.js} +5 -5
- package/dist/cdn/chunks/{visibility-mixin-C7s59UlL.js → visibility-mixin-BDaVoR0J.js} +2 -2
- package/dist/cdn/chunks/{visually-hidden-CMzKHcSc.js → visually-hidden-GgT4UkeT.js} +2 -2
- package/dist/cdn/chunks/{window-CSNx5wt1.js → window-BTU1k5p4.js} +5 -5
- package/dist/cdn/chunks/{with-translations-0oyNXfdD.js → with-translations-D3sJ-X8x.js} +3 -3
- package/dist/components/actions/menu/menu.styles.d.ts.map +1 -1
- package/dist/components/actions/menu/menu.styles.js +4 -1
- package/dist/components/actions/menu/menu.styles.js.map +1 -1
- package/dist/components/actions/toolbar/toolbar-item.d.ts.map +1 -1
- package/dist/components/actions/toolbar/toolbar-item.js +1 -7
- package/dist/components/actions/toolbar/toolbar-item.js.map +1 -1
- package/dist/components/actions/toolbar/toolbar.styles.d.ts.map +1 -1
- package/dist/components/actions/toolbar/toolbar.styles.js +1 -0
- package/dist/components/actions/toolbar/toolbar.styles.js.map +1 -1
- package/dist/components/content/identity/identity.d.ts +6 -0
- package/dist/components/content/identity/identity.d.ts.map +1 -1
- package/dist/components/content/identity/identity.js +6 -0
- package/dist/components/content/identity/identity.js.map +1 -1
- package/dist/components/content/identity/identity.styles.js +2 -2
- package/dist/components/content/rich-text/rich-text.d.ts +8 -8
- package/dist/components/content/rich-text/rich-text.js +8 -8
- package/dist/components/forms/form-field/form-field.styles.d.ts.map +1 -1
- package/dist/components/forms/form-field/form-field.styles.js +9 -0
- package/dist/components/forms/form-field/form-field.styles.js.map +1 -1
- package/dist/components/inputs/code-editor/code-editor.styles.js +2 -2
- package/dist/components/inputs/combo-box/combo-box.styles.d.ts.map +1 -1
- package/dist/components/inputs/combo-box/combo-box.styles.js +2 -0
- package/dist/components/inputs/combo-box/combo-box.styles.js.map +1 -1
- package/dist/components/inputs/date-field/date-field.styles.d.ts.map +1 -1
- package/dist/components/inputs/date-field/date-field.styles.js +2 -0
- package/dist/components/inputs/date-field/date-field.styles.js.map +1 -1
- package/dist/components/inputs/multi-line-text-field/multi-line-text-field.styles.d.ts.map +1 -1
- package/dist/components/inputs/multi-line-text-field/multi-line-text-field.styles.js +2 -0
- package/dist/components/inputs/multi-line-text-field/multi-line-text-field.styles.js.map +1 -1
- package/dist/components/inputs/number-field/number-field.styles.d.ts.map +1 -1
- package/dist/components/inputs/number-field/number-field.styles.js +2 -0
- package/dist/components/inputs/number-field/number-field.styles.js.map +1 -1
- package/dist/components/inputs/one-time-code-field/one-time-code-field.d.ts +5 -2
- 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 +10 -4
- 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 +4 -3
- package/dist/components/inputs/one-time-code-field/one-time-code-field.styles.js.map +1 -1
- package/dist/components/inputs/password-field/password-field.styles.d.ts.map +1 -1
- package/dist/components/inputs/password-field/password-field.styles.js +2 -0
- package/dist/components/inputs/password-field/password-field.styles.js.map +1 -1
- package/dist/components/inputs/search-field/search-field.styles.d.ts.map +1 -1
- package/dist/components/inputs/search-field/search-field.styles.js +2 -0
- package/dist/components/inputs/search-field/search-field.styles.js.map +1 -1
- package/dist/components/inputs/switch/switch.styles.js +1 -1
- package/dist/components/inputs/text-editor/text-editor.annotation-sentinels.d.ts +2 -1
- package/dist/components/inputs/text-editor/text-editor.annotation-sentinels.d.ts.map +1 -1
- package/dist/components/inputs/text-editor/text-editor.annotation-sentinels.js +9 -7
- package/dist/components/inputs/text-editor/text-editor.annotation-sentinels.js.map +1 -1
- package/dist/components/inputs/text-editor/text-editor.commands.d.ts +1 -0
- package/dist/components/inputs/text-editor/text-editor.commands.d.ts.map +1 -1
- package/dist/components/inputs/text-editor/text-editor.commands.js +2 -0
- package/dist/components/inputs/text-editor/text-editor.commands.js.map +1 -1
- package/dist/components/inputs/text-editor/text-editor.d.ts +12 -2
- package/dist/components/inputs/text-editor/text-editor.d.ts.map +1 -1
- package/dist/components/inputs/text-editor/text-editor.emphasis.d.ts.map +1 -1
- package/dist/components/inputs/text-editor/text-editor.emphasis.js +6 -0
- package/dist/components/inputs/text-editor/text-editor.emphasis.js.map +1 -1
- package/dist/components/inputs/text-editor/text-editor.focus.d.ts +13 -0
- package/dist/components/inputs/text-editor/text-editor.focus.d.ts.map +1 -0
- package/dist/components/inputs/text-editor/text-editor.focus.js +54 -0
- package/dist/components/inputs/text-editor/text-editor.focus.js.map +1 -0
- package/dist/components/inputs/text-editor/text-editor.hidden-syntax.d.ts +1 -1
- package/dist/components/inputs/text-editor/text-editor.hidden-syntax.d.ts.map +1 -1
- package/dist/components/inputs/text-editor/text-editor.hidden-syntax.js +14 -5
- package/dist/components/inputs/text-editor/text-editor.hidden-syntax.js.map +1 -1
- package/dist/components/inputs/text-editor/text-editor.highlight.d.ts +3 -0
- package/dist/components/inputs/text-editor/text-editor.highlight.d.ts.map +1 -0
- package/dist/components/inputs/text-editor/text-editor.highlight.js +28 -0
- package/dist/components/inputs/text-editor/text-editor.highlight.js.map +1 -0
- package/dist/components/inputs/text-editor/text-editor.i18n.d.ts +1 -0
- package/dist/components/inputs/text-editor/text-editor.i18n.d.ts.map +1 -1
- package/dist/components/inputs/text-editor/text-editor.i18n.js +3 -0
- package/dist/components/inputs/text-editor/text-editor.i18n.js.map +1 -1
- package/dist/components/inputs/text-editor/text-editor.js +67 -6
- package/dist/components/inputs/text-editor/text-editor.js.map +1 -1
- package/dist/components/inputs/text-editor/text-editor.link-destination.d.ts +22 -0
- package/dist/components/inputs/text-editor/text-editor.link-destination.d.ts.map +1 -0
- package/dist/components/inputs/text-editor/text-editor.link-destination.js +134 -0
- package/dist/components/inputs/text-editor/text-editor.link-destination.js.map +1 -0
- package/dist/components/inputs/text-editor/text-editor.links.d.ts +14 -0
- package/dist/components/inputs/text-editor/text-editor.links.d.ts.map +1 -1
- package/dist/components/inputs/text-editor/text-editor.links.js +41 -12
- package/dist/components/inputs/text-editor/text-editor.links.js.map +1 -1
- package/dist/components/inputs/text-editor/text-editor.list-input.d.ts.map +1 -1
- package/dist/components/inputs/text-editor/text-editor.list-input.js +35 -1
- package/dist/components/inputs/text-editor/text-editor.list-input.js.map +1 -1
- package/dist/components/inputs/text-editor/text-editor.markdown.d.ts.map +1 -1
- package/dist/components/inputs/text-editor/text-editor.markdown.js +18 -2
- package/dist/components/inputs/text-editor/text-editor.markdown.js.map +1 -1
- package/dist/components/inputs/text-editor/text-editor.mention.d.ts.map +1 -1
- package/dist/components/inputs/text-editor/text-editor.mention.js +7 -1
- package/dist/components/inputs/text-editor/text-editor.mention.js.map +1 -1
- package/dist/components/inputs/text-editor/text-editor.mentions.d.ts +6 -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 +6 -3
- package/dist/components/inputs/text-editor/text-editor.mentions.js.map +1 -1
- package/dist/components/inputs/text-editor/text-editor.styles.d.ts.map +1 -1
- package/dist/components/inputs/text-editor/text-editor.styles.js +116 -12
- package/dist/components/inputs/text-editor/text-editor.styles.js.map +1 -1
- package/dist/components/inputs/text-editor/text-editor.toolbar.d.ts.map +1 -1
- package/dist/components/inputs/text-editor/text-editor.toolbar.js +14 -2
- package/dist/components/inputs/text-editor/text-editor.toolbar.js.map +1 -1
- package/dist/components/inputs/text-editor/text-editor.variables.d.ts +20 -0
- package/dist/components/inputs/text-editor/text-editor.variables.d.ts.map +1 -0
- package/dist/components/inputs/text-editor/text-editor.variables.js +148 -0
- package/dist/components/inputs/text-editor/text-editor.variables.js.map +1 -0
- package/dist/components/inputs/text-field/text-field.styles.d.ts.map +1 -1
- package/dist/components/inputs/text-field/text-field.styles.js +2 -0
- package/dist/components/inputs/text-field/text-field.styles.js.map +1 -1
- package/dist/components/inputs/time-field/time-field.styles.d.ts.map +1 -1
- package/dist/components/inputs/time-field/time-field.styles.js +2 -0
- package/dist/components/inputs/time-field/time-field.styles.js.map +1 -1
- package/dist/components/inputs/token-field/token-field.styles.d.ts.map +1 -1
- package/dist/components/inputs/token-field/token-field.styles.js +2 -0
- package/dist/components/inputs/token-field/token-field.styles.js.map +1 -1
- package/dist/components/layout/split-views/bar-split-view/bar-split-view.d.ts +1 -0
- package/dist/components/layout/split-views/bar-split-view/bar-split-view.d.ts.map +1 -1
- package/dist/components/layout/split-views/bar-split-view/bar-split-view.js +1 -0
- package/dist/components/layout/split-views/bar-split-view/bar-split-view.js.map +1 -1
- package/dist/components/lists-and-tables/cells/icon-cell/icon-cell.styles.d.ts.map +1 -1
- package/dist/components/lists-and-tables/cells/icon-cell/icon-cell.styles.js +2 -1
- package/dist/components/lists-and-tables/cells/icon-cell/icon-cell.styles.js.map +1 -1
- package/dist/components/navigation/tab-bar/tab-bar.d.ts +8 -0
- package/dist/components/navigation/tab-bar/tab-bar.d.ts.map +1 -1
- package/dist/components/navigation/tab-bar/tab-bar.i18n.d.ts +1 -0
- package/dist/components/navigation/tab-bar/tab-bar.i18n.d.ts.map +1 -1
- package/dist/components/navigation/tab-bar/tab-bar.i18n.js +1 -0
- package/dist/components/navigation/tab-bar/tab-bar.i18n.js.map +1 -1
- package/dist/components/navigation/tab-bar/tab-bar.js +16 -0
- package/dist/components/navigation/tab-bar/tab-bar.js.map +1 -1
- package/dist/components/navigation/tab-bar/tab-bar.template.d.ts.map +1 -1
- package/dist/components/navigation/tab-bar/tab-bar.template.js +3 -2
- package/dist/components/navigation/tab-bar/tab-bar.template.js.map +1 -1
- package/dist/components/navigation/top-title-bar/top-title-bar.d.ts +1 -0
- package/dist/components/navigation/top-title-bar/top-title-bar.d.ts.map +1 -1
- package/dist/components/navigation/top-title-bar/top-title-bar.js +6 -1
- package/dist/components/navigation/top-title-bar/top-title-bar.js.map +1 -1
- package/dist/components/status-and-feedback/status-bar/status-bar.d.ts +12 -6
- package/dist/components/status-and-feedback/status-bar/status-bar.d.ts.map +1 -1
- package/dist/components/status-and-feedback/status-bar/status-bar.js +28 -7
- package/dist/components/status-and-feedback/status-bar/status-bar.js.map +1 -1
- package/dist/css/rich-text.css +5 -0
- package/dist/css/themes/donkergeel.css +5 -6
- package/dist/css/themes/geel.css +5 -6
- package/dist/css/themes.css +10 -12
- package/dist/css/variables.css +2 -6
- package/dist/nldd.min.js +1852 -1714
- package/dist/translations/en-US.d.ts.map +1 -1
- package/dist/translations/en-US.js +2 -0
- package/dist/translations/en-US.js.map +1 -1
- package/dist/translations/fy.d.ts.map +1 -1
- package/dist/translations/fy.js +2 -0
- package/dist/translations/fy.js.map +1 -1
- package/dist/translations/nl.generated.d.ts +2 -0
- package/dist/translations/nl.generated.d.ts.map +1 -1
- package/dist/translations/pap-AW.d.ts.map +1 -1
- package/dist/translations/pap-AW.js +2 -0
- package/dist/translations/pap-AW.js.map +1 -1
- package/dist/translations/pap-CW.d.ts.map +1 -1
- package/dist/translations/pap-CW.js +2 -0
- package/dist/translations/pap-CW.js.map +1 -1
- package/dist/types/react.d.ts +8 -8
- package/dist/types/vue.d.ts +10 -8
- package/dist/utilities/dev-rules.generated.js +1 -1
- package/dist/utilities/dev-rules.generated.js.map +1 -1
- package/dist/utilities/reflect-non-default.d.ts +2 -1
- package/dist/utilities/reflect-non-default.d.ts.map +1 -1
- package/dist/utilities/reflect-non-default.js +3 -2
- package/dist/utilities/reflect-non-default.js.map +1 -1
- package/lint/data.generated.json +1 -1
- package/package.json +6 -6
- package/dist/cdn/chunks/style-mod-DGMhzWuk.js +0 -1583
- package/dist/cdn/chunks/tab-bar.i18n-Crsc7ShA.js +0 -3
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import { t as
|
|
6
|
-
import { t as
|
|
7
|
-
import { t as de } from "./form-associated-mixin-BMQQpMlL.js";
|
|
1
|
+
import { $ as e, Ct as t, D as n, M as r, Q as i, S as a, T as o, X as s, Z as c, ct as l, dt as u, et as d, gt as f, ht as p, i as m, j as ee, k as h, lt as te, mt as ne, nt as re, o as ie, q as ae, tt as oe, ut as se, w as g, x as _ } from "./languages-B0lgBg4r.js";
|
|
2
|
+
import { r as v } from "./custom-element-BPzCecdN.js";
|
|
3
|
+
import { n as ce, t as y } from "./decorate-CNSW3HVY.js";
|
|
4
|
+
import { t as le } from "./reflect-non-default-DUOcGZKf.js";
|
|
5
|
+
import { t as ue } from "./described-by-mixin-BNEosRlm.js";
|
|
6
|
+
import { t as de } from "./form-associated-mixin-BDrjhoXJ.js";
|
|
8
7
|
// node_modules/@codemirror/commands/dist/index.js
|
|
9
8
|
var fe = (e) => {
|
|
10
9
|
let { state: t } = e, n = t.doc.lineAt(t.selection.main.from), r = x(e.state, n.from);
|
|
@@ -91,11 +90,11 @@ function ve(e, t, n = t.selection.ranges) {
|
|
|
91
90
|
}
|
|
92
91
|
function ye(e, t, n = t.selection.ranges) {
|
|
93
92
|
let r = [], i = -1;
|
|
94
|
-
|
|
93
|
+
e: for (let { from: e, to: a } of n) {
|
|
95
94
|
let n = r.length, o = 1e9, s;
|
|
96
95
|
for (let n = e; n <= a;) {
|
|
97
96
|
let c = t.doc.lineAt(n);
|
|
98
|
-
if (s == null && (s = x(t, c.from).line, !s)) continue
|
|
97
|
+
if (s == null && (s = x(t, c.from).line, !s)) continue e;
|
|
99
98
|
if (c.from > i && (e == a || a > c.from)) {
|
|
100
99
|
i = c.from;
|
|
101
100
|
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 +137,8 @@ function ye(e, t, n = t.selection.ranges) {
|
|
|
138
137
|
}
|
|
139
138
|
return null;
|
|
140
139
|
}
|
|
141
|
-
var C = /*@__PURE__*/
|
|
142
|
-
return
|
|
140
|
+
var C = /*@__PURE__*/ s.define(), be = /*@__PURE__*/ s.define(), w = /*@__PURE__*/ re.define(), xe = /*@__PURE__*/ re.define({ combine(e) {
|
|
141
|
+
return ne(e, {
|
|
143
142
|
minDepth: 100,
|
|
144
143
|
newGroupDelay: 500,
|
|
145
144
|
joinToEvent: (e, t) => t
|
|
@@ -148,19 +147,19 @@ var C = /*@__PURE__*/ l.define(), be = /*@__PURE__*/ l.define(), xe = /*@__PURE_
|
|
|
148
147
|
newGroupDelay: Math.min,
|
|
149
148
|
joinToEvent: (e, t) => (n, r) => e(n, r) || t(n, r)
|
|
150
149
|
});
|
|
151
|
-
} }),
|
|
150
|
+
} }), T = /*@__PURE__*/ te.define({
|
|
152
151
|
create() {
|
|
153
152
|
return N.empty;
|
|
154
153
|
},
|
|
155
154
|
update(e, t) {
|
|
156
|
-
let n = t.state.facet(
|
|
155
|
+
let n = t.state.facet(xe), r = t.annotation(C);
|
|
157
156
|
if (r) {
|
|
158
|
-
let i =
|
|
159
|
-
return o = i ?
|
|
157
|
+
let i = k.fromTransaction(t, r.selection), a = r.side, o = a == 0 ? e.undone : e.done;
|
|
158
|
+
return o = i ? A(o, o.length, n.minDepth, i) : Me(o, t.startState.selection), new N(a == 0 ? r.rest : o, a == 0 ? o : r.rest);
|
|
160
159
|
}
|
|
161
160
|
let i = t.annotation(be);
|
|
162
|
-
if ((i == "full" || i == "before") && (e = e.isolate()), t.annotation(
|
|
163
|
-
let a =
|
|
161
|
+
if ((i == "full" || i == "before") && (e = e.isolate()), t.annotation(u.addToHistory) === !1) return t.changes.empty ? e : e.addMapping(t.changes.desc);
|
|
162
|
+
let a = k.fromTransaction(t), o = t.annotation(u.time), s = t.annotation(u.userEvent);
|
|
164
163
|
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
164
|
},
|
|
166
165
|
toJSON(e) {
|
|
@@ -170,38 +169,38 @@ var C = /*@__PURE__*/ l.define(), be = /*@__PURE__*/ l.define(), xe = /*@__PURE_
|
|
|
170
169
|
};
|
|
171
170
|
},
|
|
172
171
|
fromJSON(e) {
|
|
173
|
-
return new N(e.done.map(
|
|
172
|
+
return new N(e.done.map(k.fromJSON), e.undone.map(k.fromJSON));
|
|
174
173
|
}
|
|
175
174
|
});
|
|
176
|
-
function
|
|
175
|
+
function Se(e = {}) {
|
|
177
176
|
return [
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
let n = e.inputType == "historyUndo" ?
|
|
177
|
+
T,
|
|
178
|
+
xe.of(e),
|
|
179
|
+
r.domEventHandlers({ beforeinput(e, t) {
|
|
180
|
+
let n = e.inputType == "historyUndo" ? D : e.inputType == "historyRedo" ? O : null;
|
|
182
181
|
return n ? (e.preventDefault(), n(t)) : !1;
|
|
183
182
|
} })
|
|
184
183
|
];
|
|
185
184
|
}
|
|
186
|
-
function
|
|
185
|
+
function E(e, t) {
|
|
187
186
|
return function({ state: n, dispatch: r }) {
|
|
188
187
|
if (!t && n.readOnly) return !1;
|
|
189
|
-
let i = n.field(
|
|
188
|
+
let i = n.field(T, !1);
|
|
190
189
|
if (!i) return !1;
|
|
191
190
|
let a = i.pop(e, n, t);
|
|
192
191
|
return a ? (r(a), !0) : !1;
|
|
193
192
|
};
|
|
194
193
|
}
|
|
195
|
-
var
|
|
196
|
-
function
|
|
194
|
+
var D = /*@__PURE__*/ E(0, !1), O = /*@__PURE__*/ E(1, !1), Ce = /*@__PURE__*/ E(0, !0), we = /*@__PURE__*/ E(1, !0);
|
|
195
|
+
function Te(e) {
|
|
197
196
|
return function(t) {
|
|
198
|
-
let n = t.field(
|
|
197
|
+
let n = t.field(T, !1);
|
|
199
198
|
if (!n) return 0;
|
|
200
199
|
let r = e == 0 ? n.done : n.undone;
|
|
201
200
|
return r.length - (r.length && !r[0].changes ? 1 : 0);
|
|
202
201
|
};
|
|
203
202
|
}
|
|
204
|
-
var
|
|
203
|
+
var Ee = /*@__PURE__*/ Te(0), De = /*@__PURE__*/ Te(1), k = class e {
|
|
205
204
|
constructor(e, t, n, r, i) {
|
|
206
205
|
this.changes = e, this.effects = t, this.mapped = n, this.startSelection = r, this.selectionsAfter = i;
|
|
207
206
|
}
|
|
@@ -216,12 +215,12 @@ var De = /*@__PURE__*/ Ee(0), Oe = /*@__PURE__*/ Ee(1), O = class e {
|
|
|
216
215
|
selectionsAfter: this.selectionsAfter.map((e) => e.toJSON())
|
|
217
216
|
};
|
|
218
217
|
}
|
|
219
|
-
static fromJSON(
|
|
220
|
-
return new e(
|
|
218
|
+
static fromJSON(t) {
|
|
219
|
+
return new e(t.changes && i.fromJSON(t.changes), [], t.mapped && c.fromJSON(t.mapped), t.startSelection && d.fromJSON(t.startSelection), t.selectionsAfter.map(d.fromJSON));
|
|
221
220
|
}
|
|
222
221
|
static fromTransaction(t, n) {
|
|
223
222
|
let r = j;
|
|
224
|
-
for (let e of t.startState.facet(
|
|
223
|
+
for (let e of t.startState.facet(w)) {
|
|
225
224
|
let n = e(t);
|
|
226
225
|
n.length && (r = r.concat(n));
|
|
227
226
|
}
|
|
@@ -231,11 +230,11 @@ var De = /*@__PURE__*/ Ee(0), Oe = /*@__PURE__*/ Ee(1), O = class e {
|
|
|
231
230
|
return new e(void 0, j, void 0, void 0, t);
|
|
232
231
|
}
|
|
233
232
|
};
|
|
234
|
-
function
|
|
233
|
+
function A(e, t, n, r) {
|
|
235
234
|
let i = t + 1 > n + 20 ? t - n - 1 : 0, a = e.slice(i, t);
|
|
236
235
|
return a.push(r), a;
|
|
237
236
|
}
|
|
238
|
-
function
|
|
237
|
+
function Oe(e, t) {
|
|
239
238
|
let n = [], r = !1;
|
|
240
239
|
return e.iterChangedRanges((e, t) => n.push(e, t)), t.iterChangedRanges((e, t, i, a) => {
|
|
241
240
|
for (let e = 0; e < n.length;) {
|
|
@@ -244,19 +243,19 @@ function ke(e, t) {
|
|
|
244
243
|
}
|
|
245
244
|
}), r;
|
|
246
245
|
}
|
|
247
|
-
function
|
|
246
|
+
function ke(e, t) {
|
|
248
247
|
return e.ranges.length == t.ranges.length && e.ranges.filter((e, n) => e.empty != t.ranges[n].empty).length === 0;
|
|
249
248
|
}
|
|
250
|
-
function
|
|
249
|
+
function Ae(e, t) {
|
|
251
250
|
return e.length ? t.length ? e.concat(t) : e : t;
|
|
252
251
|
}
|
|
253
252
|
var j = [], je = 200;
|
|
254
253
|
function Me(e, t) {
|
|
255
254
|
if (e.length) {
|
|
256
255
|
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),
|
|
256
|
+
return r.length && r[r.length - 1].eq(t) ? e : (r.push(t), A(e, e.length - 1, 1e9, n.setSelAfter(r)));
|
|
258
257
|
}
|
|
259
|
-
return [
|
|
258
|
+
return [k.selection([t])];
|
|
260
259
|
}
|
|
261
260
|
function Ne(e) {
|
|
262
261
|
let t = e[e.length - 1], n = e.slice();
|
|
@@ -273,13 +272,13 @@ function M(e, t) {
|
|
|
273
272
|
}
|
|
274
273
|
t = i.mapped, n--, r = i.selectionsAfter;
|
|
275
274
|
}
|
|
276
|
-
return r.length ? [
|
|
275
|
+
return r.length ? [k.selection(r)] : j;
|
|
277
276
|
}
|
|
278
277
|
function Pe(e, t, n) {
|
|
279
|
-
let r =
|
|
280
|
-
if (!e.changes) return
|
|
278
|
+
let r = Ae(e.selectionsAfter.length ? e.selectionsAfter.map((e) => e.map(t)) : j, n);
|
|
279
|
+
if (!e.changes) return k.selection(r);
|
|
281
280
|
let i = e.changes.map(t), a = t.mapDesc(e.changes, !0), o = e.mapped ? e.mapped.composeDesc(a) : a;
|
|
282
|
-
return new
|
|
281
|
+
return new k(i, l.mapEffects(e.effects, t), o, e.startSelection.map(a), r);
|
|
283
282
|
}
|
|
284
283
|
var Fe = /^(input\.type|delete)($|\.)/, N = class e {
|
|
285
284
|
constructor(e, t, n = 0, r = void 0) {
|
|
@@ -290,11 +289,11 @@ var Fe = /^(input\.type|delete)($|\.)/, N = class e {
|
|
|
290
289
|
}
|
|
291
290
|
addChanges(t, n, r, i, a) {
|
|
292
291
|
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,
|
|
292
|
+
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, Oe(s.changes, t.changes)) || r == "input.type.compose") ? A(o, o.length - 1, i.minDepth, new k(t.changes.compose(s.changes), Ae(l.mapEffects(t.effects, s.changes), s.effects), s.mapped, s.startSelection, j)) : A(o, o.length, i.minDepth, t), new e(o, j, n, r);
|
|
294
293
|
}
|
|
295
294
|
addSelection(t, n, r, i) {
|
|
296
295
|
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) &&
|
|
296
|
+
return a.length > 0 && n - this.prevTime < i && r == this.prevUserEvent && r && /^select($|\.)/.test(r) && ke(a[a.length - 1], t) ? this : new e(Me(this.done, t), this.undone, n, r);
|
|
298
297
|
}
|
|
299
298
|
addMapping(t) {
|
|
300
299
|
return new e(M(this.done, t), M(this.undone, t), this.prevTime, this.prevUserEvent);
|
|
@@ -336,34 +335,34 @@ N.empty = /*@__PURE__*/ new N(j, j);
|
|
|
336
335
|
var Ie = [
|
|
337
336
|
{
|
|
338
337
|
key: "Mod-z",
|
|
339
|
-
run:
|
|
338
|
+
run: D,
|
|
340
339
|
preventDefault: !0
|
|
341
340
|
},
|
|
342
341
|
{
|
|
343
342
|
key: "Mod-y",
|
|
344
343
|
mac: "Mod-Shift-z",
|
|
345
|
-
run:
|
|
344
|
+
run: O,
|
|
346
345
|
preventDefault: !0
|
|
347
346
|
},
|
|
348
347
|
{
|
|
349
348
|
linux: "Ctrl-Shift-z",
|
|
350
|
-
run:
|
|
349
|
+
run: O,
|
|
351
350
|
preventDefault: !0
|
|
352
351
|
},
|
|
353
352
|
{
|
|
354
353
|
key: "Mod-u",
|
|
355
|
-
run:
|
|
354
|
+
run: Ce,
|
|
356
355
|
preventDefault: !0
|
|
357
356
|
},
|
|
358
357
|
{
|
|
359
358
|
key: "Alt-u",
|
|
360
359
|
mac: "Mod-Shift-u",
|
|
361
|
-
run:
|
|
360
|
+
run: we,
|
|
362
361
|
preventDefault: !0
|
|
363
362
|
}
|
|
364
363
|
];
|
|
365
|
-
function P(e,
|
|
366
|
-
return
|
|
364
|
+
function P(e, t) {
|
|
365
|
+
return d.create(e.ranges.map(t), e.mainIndex);
|
|
367
366
|
}
|
|
368
367
|
function F(e, t) {
|
|
369
368
|
return e.update({
|
|
@@ -376,275 +375,275 @@ function I({ state: e, dispatch: t }, n) {
|
|
|
376
375
|
let r = P(e.selection, n);
|
|
377
376
|
return !r.eq(e.selection, !0) && (t(F(e, r)), !0);
|
|
378
377
|
}
|
|
379
|
-
function L(e,
|
|
380
|
-
return
|
|
378
|
+
function L(e, t) {
|
|
379
|
+
return d.cursor(t ? e.to : e.from);
|
|
381
380
|
}
|
|
382
381
|
function Le(e, t) {
|
|
383
382
|
return I(e, (n) => n.empty ? e.moveByChar(n, t) : L(n, t));
|
|
384
383
|
}
|
|
385
384
|
function R(e) {
|
|
386
|
-
return e.textDirectionAt(e.state.selection.main.head) ==
|
|
385
|
+
return e.textDirectionAt(e.state.selection.main.head) == ee.LTR;
|
|
387
386
|
}
|
|
388
|
-
var Re = (e) => Le(e, !R(e)),
|
|
389
|
-
function
|
|
387
|
+
var Re = (e) => Le(e, !R(e)), ze = (e) => Le(e, R(e));
|
|
388
|
+
function Be(e, t) {
|
|
390
389
|
return I(e, (n) => n.empty ? e.moveByGroup(n, t) : L(n, t));
|
|
391
390
|
}
|
|
392
|
-
var
|
|
391
|
+
var Ve = (e) => Be(e, !R(e)), He = (e) => Be(e, R(e));
|
|
393
392
|
typeof Intl < "u" && Intl.Segmenter;
|
|
394
|
-
function
|
|
393
|
+
function Ue(e, t, n) {
|
|
395
394
|
if (t.type.prop(n)) return !0;
|
|
396
395
|
let r = t.to - t.from;
|
|
397
396
|
return r && (r > 2 || /[^\s,.;:]/.test(e.sliceDoc(t.from, t.to))) || t.firstChild;
|
|
398
397
|
}
|
|
399
|
-
function
|
|
400
|
-
let
|
|
401
|
-
for (let
|
|
402
|
-
let
|
|
403
|
-
if (!
|
|
404
|
-
|
|
398
|
+
function z(e, r, i) {
|
|
399
|
+
let a = h(e).resolveInner(r.head), o = i ? t.closedBy : t.openedBy;
|
|
400
|
+
for (let t = r.head;;) {
|
|
401
|
+
let n = i ? a.childAfter(t) : a.childBefore(t);
|
|
402
|
+
if (!n) break;
|
|
403
|
+
Ue(e, n, o) ? a = n : t = i ? n.to : n.from;
|
|
405
404
|
}
|
|
406
|
-
let
|
|
407
|
-
return
|
|
405
|
+
let s = a.type.prop(o), c, l;
|
|
406
|
+
return l = s && (c = i ? n(e, a.from, 1) : n(e, a.to, -1)) && c.matched ? i ? c.end.to : c.end.from : i ? a.to : a.from, d.cursor(l, i ? -1 : 1);
|
|
408
407
|
}
|
|
409
|
-
var
|
|
410
|
-
function
|
|
408
|
+
var We = (e) => I(e, (t) => z(e.state, t, !R(e))), Ge = (e) => I(e, (t) => z(e.state, t, R(e)));
|
|
409
|
+
function B(e, t) {
|
|
411
410
|
return I(e, (n) => {
|
|
412
411
|
if (!n.empty) return L(n, t);
|
|
413
412
|
let r = e.moveVertically(n, t);
|
|
414
413
|
return r.head == n.head ? e.moveToLineBoundary(n, t) : r;
|
|
415
414
|
});
|
|
416
415
|
}
|
|
417
|
-
var
|
|
416
|
+
var V = (e) => B(e, !1), Ke = (e) => B(e, !0);
|
|
418
417
|
function qe(e) {
|
|
419
|
-
let t = e.scrollDOM.clientHeight < e.scrollDOM.scrollHeight - 2, n = 0,
|
|
418
|
+
let t = e.scrollDOM.clientHeight < e.scrollDOM.scrollHeight - 2, n = 0, i = 0, a;
|
|
420
419
|
if (t) {
|
|
421
|
-
for (let t of e.state.facet(
|
|
422
|
-
let
|
|
423
|
-
|
|
420
|
+
for (let t of e.state.facet(r.scrollMargins)) {
|
|
421
|
+
let r = t(e);
|
|
422
|
+
r?.top && (n = Math.max(r?.top, n)), r?.bottom && (i = Math.max(r?.bottom, i));
|
|
424
423
|
}
|
|
425
|
-
|
|
426
|
-
} else
|
|
424
|
+
a = e.scrollDOM.clientHeight - n - i;
|
|
425
|
+
} else a = (e.dom.ownerDocument.defaultView || window).innerHeight;
|
|
427
426
|
return {
|
|
428
427
|
marginTop: n,
|
|
429
|
-
marginBottom:
|
|
428
|
+
marginBottom: i,
|
|
430
429
|
selfScroll: t,
|
|
431
|
-
height: Math.max(e.defaultLineHeight,
|
|
430
|
+
height: Math.max(e.defaultLineHeight, a - 5)
|
|
432
431
|
};
|
|
433
432
|
}
|
|
434
433
|
function Je(e, t) {
|
|
435
|
-
let n = qe(e), { state:
|
|
436
|
-
if (
|
|
437
|
-
let
|
|
434
|
+
let n = qe(e), { state: i } = e, a = P(i.selection, (r) => r.empty ? e.moveVertically(r, t, n.height) : L(r, t));
|
|
435
|
+
if (a.eq(i.selection)) return !1;
|
|
436
|
+
let o;
|
|
438
437
|
if (n.selfScroll) {
|
|
439
|
-
let t = e.coordsAtPos(
|
|
440
|
-
t && t.top >
|
|
438
|
+
let t = e.coordsAtPos(i.selection.main.head), s = e.scrollDOM.getBoundingClientRect(), c = s.top + n.marginTop, l = s.bottom - n.marginBottom;
|
|
439
|
+
t && t.top > c && t.bottom < l && (o = r.scrollIntoView(a.main.head, {
|
|
441
440
|
y: "start",
|
|
442
|
-
yMargin: t.top -
|
|
441
|
+
yMargin: t.top - c
|
|
443
442
|
}));
|
|
444
443
|
}
|
|
445
|
-
return e.dispatch(F(
|
|
444
|
+
return e.dispatch(F(i, a), { effects: o }), !0;
|
|
446
445
|
}
|
|
447
446
|
var Ye = (e) => Je(e, !1), H = (e) => Je(e, !0);
|
|
448
|
-
function U(e,
|
|
449
|
-
let
|
|
450
|
-
if (
|
|
451
|
-
let
|
|
452
|
-
|
|
447
|
+
function U(e, t, n) {
|
|
448
|
+
let r = e.lineBlockAt(t.head), i = e.moveToLineBoundary(t, n);
|
|
449
|
+
if (i.head == t.head && i.head != (n ? r.to : r.from) && (i = e.moveToLineBoundary(t, n, !1)), !n && i.head == r.from && r.length) {
|
|
450
|
+
let n = /^\s*/.exec(e.state.sliceDoc(r.from, Math.min(r.from + 100, r.to)))[0].length;
|
|
451
|
+
n && t.head != r.from + n && (i = d.cursor(r.from + n));
|
|
453
452
|
}
|
|
454
|
-
return
|
|
453
|
+
return i;
|
|
455
454
|
}
|
|
456
455
|
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 r ?
|
|
456
|
+
function nt(e, t, r) {
|
|
457
|
+
let i = !1, a = P(e.selection, (t) => {
|
|
458
|
+
let a = n(e, t.head, -1) || n(e, t.head, 1) || t.head > 0 && n(e, t.head - 1, 1) || t.head < e.doc.length && n(e, t.head + 1, -1);
|
|
459
|
+
if (!a || !a.end) return t;
|
|
460
|
+
i = !0;
|
|
461
|
+
let o = a.start.from == t.head ? a.end.to : a.end.from;
|
|
462
|
+
return r ? d.range(t.anchor, o) : d.cursor(o);
|
|
464
463
|
});
|
|
465
|
-
return
|
|
464
|
+
return i ? (t(F(e, a)), !0) : !1;
|
|
466
465
|
}
|
|
467
466
|
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
|
|
467
|
+
function W(e, t, n) {
|
|
468
|
+
let r = P(e.state.selection, (e) => {
|
|
469
|
+
e.undirectional && e.head >= e.anchor != t && (e = d.range(e.head, e.anchor));
|
|
470
|
+
let r = n(e);
|
|
471
|
+
return d.range(e.anchor, r.head, r.goalColumn, r.bidiLevel || void 0, r.assoc);
|
|
473
472
|
});
|
|
474
|
-
return !
|
|
473
|
+
return !r.eq(e.state.selection) && (e.dispatch(F(e.state, r)), !0);
|
|
475
474
|
}
|
|
476
475
|
function it(e, t) {
|
|
477
476
|
return W(e, t, (n) => e.moveByChar(n, t));
|
|
478
477
|
}
|
|
479
|
-
var at = (e) => it(e, !R(e)),
|
|
480
|
-
function
|
|
478
|
+
var at = (e) => it(e, !R(e)), G = (e) => it(e, R(e));
|
|
479
|
+
function ot(e, t) {
|
|
481
480
|
return W(e, t, (n) => e.moveByGroup(n, t));
|
|
482
481
|
}
|
|
483
|
-
var
|
|
482
|
+
var st = (e) => ot(e, !R(e)), ct = (e) => ot(e, R(e)), lt = (e) => {
|
|
484
483
|
let t = !R(e);
|
|
485
|
-
return W(e, t, (n) =>
|
|
486
|
-
},
|
|
484
|
+
return W(e, t, (n) => z(e.state, n, t));
|
|
485
|
+
}, ut = (e) => {
|
|
487
486
|
let t = R(e);
|
|
488
|
-
return W(e, t, (n) =>
|
|
487
|
+
return W(e, t, (n) => z(e.state, n, t));
|
|
489
488
|
};
|
|
490
|
-
function
|
|
489
|
+
function dt(e, t) {
|
|
491
490
|
return W(e, t, (n) => e.moveVertically(n, t));
|
|
492
491
|
}
|
|
493
|
-
var
|
|
494
|
-
function
|
|
492
|
+
var ft = (e) => dt(e, !1), pt = (e) => dt(e, !0);
|
|
493
|
+
function mt(e, t) {
|
|
495
494
|
return W(e, t, (n) => e.moveVertically(n, t, qe(e).height));
|
|
496
495
|
}
|
|
497
|
-
var
|
|
496
|
+
var ht = (e) => mt(e, !1), gt = (e) => mt(e, !0), _t = (e) => W(e, !0, (t) => U(e, t, !0)), vt = (e) => W(e, !1, (t) => U(e, t, !1)), yt = (e) => {
|
|
498
497
|
let t = !R(e);
|
|
499
498
|
return W(e, t, (n) => U(e, n, t));
|
|
500
|
-
},
|
|
499
|
+
}, bt = (e) => {
|
|
501
500
|
let t = R(e);
|
|
502
501
|
return W(e, t, (n) => U(e, n, t));
|
|
503
|
-
},
|
|
502
|
+
}, xt = (e) => W(e, !1, (t) => d.cursor(e.lineBlockAt(t.head).from)), St = (e) => W(e, !0, (t) => d.cursor(e.lineBlockAt(t.head).to)), Ct = ({ state: e, dispatch: t }) => (t(F(e, { anchor: 0 })), !0), wt = ({ state: e, dispatch: t }) => (t(F(e, { anchor: e.doc.length })), !0), Tt = ({ state: e, dispatch: t }) => (t(F(e, {
|
|
504
503
|
anchor: e.selection.main.anchor,
|
|
505
504
|
head: 0
|
|
506
|
-
})), !0),
|
|
505
|
+
})), !0), Et = ({ state: e, dispatch: t }) => (t(F(e, {
|
|
507
506
|
anchor: e.selection.main.anchor,
|
|
508
507
|
head: e.doc.length
|
|
509
|
-
})), !0),
|
|
508
|
+
})), !0), Dt = ({ state: e, dispatch: t }) => (t(e.update({
|
|
510
509
|
selection: {
|
|
511
510
|
anchor: 0,
|
|
512
511
|
head: e.doc.length
|
|
513
512
|
},
|
|
514
513
|
userEvent: "select"
|
|
515
|
-
})), !0),
|
|
516
|
-
let
|
|
517
|
-
return
|
|
518
|
-
selection:
|
|
514
|
+
})), !0), Ot = ({ state: e, dispatch: t }) => {
|
|
515
|
+
let n = X(e).map(({ from: t, to: n }) => d.undirectionalRange(t, Math.min(n + 1, e.doc.length)));
|
|
516
|
+
return t(e.update({
|
|
517
|
+
selection: d.create(n),
|
|
519
518
|
userEvent: "select"
|
|
520
519
|
})), !0;
|
|
521
|
-
},
|
|
522
|
-
let
|
|
523
|
-
let
|
|
524
|
-
if (
|
|
525
|
-
let e =
|
|
526
|
-
e.node.from >=
|
|
520
|
+
}, kt = ({ state: e, dispatch: t }) => {
|
|
521
|
+
let n = P(e.selection, (t) => {
|
|
522
|
+
let n = h(e), r = n.resolveStack(t.from, 1);
|
|
523
|
+
if (t.empty) {
|
|
524
|
+
let e = n.resolveStack(t.from, -1);
|
|
525
|
+
e.node.from >= r.node.from && e.node.to <= r.node.to && (r = e);
|
|
527
526
|
}
|
|
528
|
-
for (let e =
|
|
529
|
-
let { node:
|
|
530
|
-
if ((
|
|
527
|
+
for (let e = r; e; e = e.next) {
|
|
528
|
+
let { node: n } = e;
|
|
529
|
+
if ((n.from < t.from && n.to >= t.to || n.to > t.to && n.from <= t.from) && e.next) return d.undirectionalRange(n.from, n.to);
|
|
531
530
|
}
|
|
532
|
-
return
|
|
531
|
+
return t;
|
|
533
532
|
});
|
|
534
|
-
return !
|
|
533
|
+
return !n.eq(e.selection) && (t(F(e, n)), !0);
|
|
535
534
|
};
|
|
536
|
-
function
|
|
537
|
-
let { state:
|
|
538
|
-
for (let
|
|
539
|
-
let
|
|
540
|
-
if (
|
|
541
|
-
let
|
|
542
|
-
if (
|
|
543
|
-
|
|
535
|
+
function At(e, t) {
|
|
536
|
+
let { state: n } = e, r = n.selection, i = n.selection.ranges.slice();
|
|
537
|
+
for (let r of n.selection.ranges) {
|
|
538
|
+
let a = n.doc.lineAt(r.head);
|
|
539
|
+
if (t ? a.to < e.state.doc.length : a.from > 0) for (let n = r;;) {
|
|
540
|
+
let r = e.moveVertically(n, t);
|
|
541
|
+
if (r.head < a.from || r.head > a.to) {
|
|
542
|
+
i.some((e) => e.head == r.head) || i.push(r);
|
|
544
543
|
break;
|
|
545
544
|
}
|
|
546
|
-
if (
|
|
547
|
-
|
|
545
|
+
if (r.head == n.head) break;
|
|
546
|
+
n = r;
|
|
548
547
|
}
|
|
549
548
|
}
|
|
550
|
-
return
|
|
549
|
+
return i.length != r.ranges.length && (e.dispatch(F(n, d.create(i, i.length - 1))), !0);
|
|
551
550
|
}
|
|
552
|
-
var
|
|
553
|
-
let
|
|
554
|
-
return
|
|
551
|
+
var jt = (e) => At(e, !1), Mt = (e) => At(e, !0), Nt = ({ state: e, dispatch: t }) => {
|
|
552
|
+
let n = e.selection, r = null;
|
|
553
|
+
return n.ranges.length > 1 ? r = d.create([n.main]) : n.main.empty || (r = d.create([d.cursor(n.main.head)])), r ? (t(F(e, r)), !0) : !1;
|
|
555
554
|
};
|
|
556
|
-
function
|
|
555
|
+
function K(e, t) {
|
|
557
556
|
if (e.state.readOnly) return !1;
|
|
558
|
-
let
|
|
559
|
-
let { from:
|
|
560
|
-
if (
|
|
561
|
-
let
|
|
562
|
-
|
|
563
|
-
} else
|
|
564
|
-
return
|
|
557
|
+
let n = "delete.selection", { state: i } = e, a = i.changeByRange((r) => {
|
|
558
|
+
let { from: i, to: a } = r;
|
|
559
|
+
if (i == a) {
|
|
560
|
+
let o = t(r);
|
|
561
|
+
o < i ? (n = "delete.backward", o = q(e, o, !1)) : o > i && (n = "delete.forward", o = q(e, o, !0)), i = Math.min(i, o), a = Math.max(a, o);
|
|
562
|
+
} else i = q(e, i, !1), a = q(e, a, !0);
|
|
563
|
+
return i == a ? { range: r } : {
|
|
565
564
|
changes: {
|
|
566
|
-
from:
|
|
567
|
-
to:
|
|
565
|
+
from: i,
|
|
566
|
+
to: a
|
|
568
567
|
},
|
|
569
|
-
range:
|
|
568
|
+
range: d.cursor(i, i < r.head ? -1 : 1)
|
|
570
569
|
};
|
|
571
570
|
});
|
|
572
571
|
return !a.changes.empty && (e.dispatch(i.update(a, {
|
|
573
572
|
scrollIntoView: !0,
|
|
574
|
-
userEvent:
|
|
575
|
-
effects:
|
|
573
|
+
userEvent: n,
|
|
574
|
+
effects: n == "delete.selection" ? r.announce.of(i.phrase("Selection deleted")) : void 0
|
|
576
575
|
})), !0);
|
|
577
576
|
}
|
|
578
|
-
function
|
|
579
|
-
if (e instanceof
|
|
577
|
+
function q(e, t, n) {
|
|
578
|
+
if (e instanceof r) for (let i of e.state.facet(r.atomicRanges).map((t) => t(e))) i.between(t, t, (e, r) => {
|
|
580
579
|
e < t && r > t && (t = n ? r : e);
|
|
581
580
|
});
|
|
582
581
|
return t;
|
|
583
582
|
}
|
|
584
|
-
var
|
|
583
|
+
var Pt = (e, t, n) => K(e, (r) => {
|
|
585
584
|
let i = r.from, { state: a } = e, o = a.doc.lineAt(i), s, c;
|
|
586
585
|
if (n && !t && i > o.from && i < o.from + 200 && !/[^ \t]/.test(s = o.text.slice(0, i - o.from))) {
|
|
587
586
|
if (s[s.length - 1] == " ") return i - 1;
|
|
588
|
-
let e =
|
|
587
|
+
let e = p(s, a.tabSize) % _(a) || _(a);
|
|
589
588
|
for (let t = 0; t < e && s[s.length - 1 - t] == " "; t++) i--;
|
|
590
589
|
c = i;
|
|
591
|
-
} else c =
|
|
590
|
+
} else c = f(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 = f(o.text, c - o.from, !1, !1) + o.from);
|
|
592
591
|
return c;
|
|
593
|
-
}),
|
|
592
|
+
}), J = (e) => Pt(e, !1, !0), Y = (e) => Pt(e, !0, !1), Ft = (e, t) => K(e, (n) => {
|
|
594
593
|
let r = n.head, { state: i } = e, a = i.doc.lineAt(r), o = i.charCategorizer(r);
|
|
595
594
|
for (let e = null;;) {
|
|
596
595
|
if (r == (t ? a.to : a.from)) {
|
|
597
596
|
r == n.head && a.number != (t ? i.doc.lines : 1) && (r += t ? 1 : -1);
|
|
598
597
|
break;
|
|
599
598
|
}
|
|
600
|
-
let s =
|
|
599
|
+
let s = f(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
600
|
if (e != null && l != e) break;
|
|
602
601
|
(c != " " || r != n.head) && (e = l), r = s;
|
|
603
602
|
}
|
|
604
603
|
return r;
|
|
605
|
-
}),
|
|
604
|
+
}), It = (e) => Ft(e, !1), Lt = (e) => Ft(e, !0), Rt = (e) => K(e, (t) => {
|
|
606
605
|
let n = e.lineBlockAt(t.head).to;
|
|
607
606
|
return t.head < n ? n : Math.min(e.state.doc.length, t.head + 1);
|
|
608
|
-
}),
|
|
607
|
+
}), zt = (e) => K(e, (t) => {
|
|
609
608
|
let n = e.moveToLineBoundary(t, !1).head;
|
|
610
609
|
return t.head > n ? n : Math.max(0, t.head - 1);
|
|
611
|
-
}),
|
|
610
|
+
}), Bt = (e) => K(e, (t) => {
|
|
612
611
|
let n = e.moveToLineBoundary(t, !0).head;
|
|
613
612
|
return t.head < n ? n : Math.min(e.state.doc.length, t.head + 1);
|
|
614
|
-
}),
|
|
613
|
+
}), Vt = ({ state: e, dispatch: t }) => {
|
|
615
614
|
if (e.readOnly) return !1;
|
|
616
|
-
let
|
|
615
|
+
let n = e.changeByRange((e) => ({
|
|
617
616
|
changes: {
|
|
618
617
|
from: e.from,
|
|
619
618
|
to: e.to,
|
|
620
|
-
insert:
|
|
619
|
+
insert: se.of(["", ""])
|
|
621
620
|
},
|
|
622
|
-
range:
|
|
621
|
+
range: d.cursor(e.from)
|
|
623
622
|
}));
|
|
624
|
-
return
|
|
623
|
+
return t(e.update(n, {
|
|
625
624
|
scrollIntoView: !0,
|
|
626
625
|
userEvent: "input"
|
|
627
626
|
})), !0;
|
|
628
|
-
},
|
|
627
|
+
}, Ht = ({ state: e, dispatch: t }) => {
|
|
629
628
|
if (e.readOnly) return !1;
|
|
630
|
-
let
|
|
631
|
-
if (!
|
|
632
|
-
let
|
|
629
|
+
let n = e.changeByRange((t) => {
|
|
630
|
+
if (!t.empty || t.from == 0 || t.from == e.doc.length) return { range: t };
|
|
631
|
+
let n = t.from, r = e.doc.lineAt(n), i = n == r.from ? n - 1 : f(r.text, n - r.from, !1) + r.from, a = n == r.to ? n + 1 : f(r.text, n - r.from, !0) + r.from;
|
|
633
632
|
return {
|
|
634
633
|
changes: {
|
|
635
|
-
from:
|
|
636
|
-
to:
|
|
637
|
-
insert: e.doc.slice(
|
|
634
|
+
from: i,
|
|
635
|
+
to: a,
|
|
636
|
+
insert: e.doc.slice(n, a).append(e.doc.slice(i, n))
|
|
638
637
|
},
|
|
639
|
-
range:
|
|
638
|
+
range: d.cursor(a)
|
|
640
639
|
};
|
|
641
640
|
});
|
|
642
|
-
return !
|
|
641
|
+
return !n.changes.empty && (t(e.update(n, {
|
|
643
642
|
scrollIntoView: !0,
|
|
644
643
|
userEvent: "move.character"
|
|
645
644
|
})), !0);
|
|
646
645
|
};
|
|
647
|
-
function
|
|
646
|
+
function X(e) {
|
|
648
647
|
let t = [], n = -1;
|
|
649
648
|
for (let r of e.selection.ranges) {
|
|
650
649
|
let i = e.doc.lineAt(r.from), a = e.doc.lineAt(r.to);
|
|
@@ -660,44 +659,44 @@ function Y(e) {
|
|
|
660
659
|
}
|
|
661
660
|
return t;
|
|
662
661
|
}
|
|
663
|
-
function
|
|
662
|
+
function Ut(e, t, n) {
|
|
664
663
|
if (e.readOnly) return !1;
|
|
665
|
-
let
|
|
666
|
-
for (let
|
|
667
|
-
if (
|
|
668
|
-
let
|
|
669
|
-
if (
|
|
670
|
-
|
|
671
|
-
from:
|
|
672
|
-
to:
|
|
664
|
+
let r = [], i = [];
|
|
665
|
+
for (let t of X(e)) {
|
|
666
|
+
if (n ? t.to == e.doc.length : t.from == 0) continue;
|
|
667
|
+
let a = e.doc.lineAt(n ? t.to + 1 : t.from - 1), o = a.length + 1;
|
|
668
|
+
if (n) {
|
|
669
|
+
r.push({
|
|
670
|
+
from: t.to,
|
|
671
|
+
to: a.to
|
|
673
672
|
}, {
|
|
674
|
-
from:
|
|
675
|
-
insert:
|
|
673
|
+
from: t.from,
|
|
674
|
+
insert: a.text + e.lineBreak
|
|
676
675
|
});
|
|
677
|
-
for (let
|
|
676
|
+
for (let n of t.ranges) i.push(d.range(Math.min(e.doc.length, n.anchor + o), Math.min(e.doc.length, n.head + o)));
|
|
678
677
|
} else {
|
|
679
|
-
|
|
680
|
-
from:
|
|
681
|
-
to:
|
|
678
|
+
r.push({
|
|
679
|
+
from: a.from,
|
|
680
|
+
to: t.from
|
|
682
681
|
}, {
|
|
683
|
-
from:
|
|
684
|
-
insert: e.lineBreak +
|
|
682
|
+
from: t.to,
|
|
683
|
+
insert: e.lineBreak + a.text
|
|
685
684
|
});
|
|
686
|
-
for (let e of
|
|
685
|
+
for (let e of t.ranges) i.push(d.range(e.anchor - o, e.head - o));
|
|
687
686
|
}
|
|
688
687
|
}
|
|
689
|
-
return
|
|
690
|
-
changes:
|
|
688
|
+
return r.length ? (t(e.update({
|
|
689
|
+
changes: r,
|
|
691
690
|
scrollIntoView: !0,
|
|
692
|
-
selection:
|
|
691
|
+
selection: d.create(i, e.selection.mainIndex),
|
|
693
692
|
userEvent: "move.line"
|
|
694
693
|
})), !0) : !1;
|
|
695
694
|
}
|
|
696
|
-
var
|
|
697
|
-
function
|
|
695
|
+
var Wt = ({ state: e, dispatch: t }) => Ut(e, t, !1), Gt = ({ state: e, dispatch: t }) => Ut(e, t, !0);
|
|
696
|
+
function Kt(e, t, n) {
|
|
698
697
|
if (e.readOnly) return !1;
|
|
699
698
|
let r = [];
|
|
700
|
-
for (let t of
|
|
699
|
+
for (let t of X(e)) n ? r.push({
|
|
701
700
|
from: t.from,
|
|
702
701
|
insert: e.doc.slice(t.from, t.to) + e.lineBreak
|
|
703
702
|
}) : r.push({
|
|
@@ -712,9 +711,9 @@ function qt(e, t, n) {
|
|
|
712
711
|
userEvent: "input.copyline"
|
|
713
712
|
})), !0;
|
|
714
713
|
}
|
|
715
|
-
var
|
|
714
|
+
var qt = ({ state: e, dispatch: t }) => Kt(e, t, !1), Jt = ({ state: e, dispatch: t }) => Kt(e, t, !0), Yt = (e) => {
|
|
716
715
|
if (e.state.readOnly) return !1;
|
|
717
|
-
let { state: t } = e, n = t.changes(
|
|
716
|
+
let { state: t } = e, n = t.changes(X(t).map(({ from: e, to: n }) => (e > 0 ? e-- : n < t.doc.length && n++, {
|
|
718
717
|
from: e,
|
|
719
718
|
to: n
|
|
720
719
|
}))), r = P(t.selection, (t) => {
|
|
@@ -732,89 +731,89 @@ var Jt = ({ state: e, dispatch: t }) => qt(e, t, !1), Yt = ({ state: e, dispatch
|
|
|
732
731
|
userEvent: "delete.line"
|
|
733
732
|
}), !0;
|
|
734
733
|
};
|
|
735
|
-
function
|
|
736
|
-
if (/\(\)|\[\]|\{\}/.test(
|
|
734
|
+
function Xt(e, n) {
|
|
735
|
+
if (/\(\)|\[\]|\{\}/.test(e.sliceDoc(n - 1, n + 1))) return {
|
|
737
736
|
from: n,
|
|
738
737
|
to: n
|
|
739
738
|
};
|
|
740
|
-
let r =
|
|
741
|
-
return i && a && i.to <= n && a.from >= n && (
|
|
739
|
+
let r = h(e).resolveInner(n), i = r.childBefore(n), a = r.childAfter(n), o;
|
|
740
|
+
return i && a && i.to <= n && a.from >= n && (o = i.type.prop(t.closedBy)) && o.indexOf(a.name) > -1 && e.doc.lineAt(i.to).from == e.doc.lineAt(a.from).from && !/\S/.test(e.sliceDoc(i.to, a.from)) ? {
|
|
742
741
|
from: i.to,
|
|
743
742
|
to: a.from
|
|
744
743
|
} : null;
|
|
745
744
|
}
|
|
746
|
-
var
|
|
745
|
+
var Zt = /*@__PURE__*/ $t(!1), Qt = /*@__PURE__*/ $t(!0);
|
|
747
746
|
function $t(e) {
|
|
748
|
-
return ({ state:
|
|
749
|
-
if (
|
|
750
|
-
let
|
|
751
|
-
let { from:
|
|
752
|
-
e && (
|
|
753
|
-
let
|
|
754
|
-
simulateBreak:
|
|
755
|
-
simulateDoubleBreak: !!
|
|
756
|
-
}),
|
|
757
|
-
for (
|
|
758
|
-
|
|
759
|
-
let
|
|
760
|
-
return
|
|
747
|
+
return ({ state: t, dispatch: n }) => {
|
|
748
|
+
if (t.readOnly) return !1;
|
|
749
|
+
let r = t.changeByRange((n) => {
|
|
750
|
+
let { from: r, to: i } = n, o = t.doc.lineAt(r), s = !e && r == i && Xt(t, r);
|
|
751
|
+
e && (r = i = (i <= o.to ? o : t.doc.lineAt(i)).to);
|
|
752
|
+
let c = new ie(t, {
|
|
753
|
+
simulateBreak: r,
|
|
754
|
+
simulateDoubleBreak: !!s
|
|
755
|
+
}), l = a(c, r);
|
|
756
|
+
for (l ?? (l = p(/^\s*/.exec(t.doc.lineAt(r).text)[0], t.tabSize)); i < o.to && /\s/.test(o.text[i - o.from]);) i++;
|
|
757
|
+
s ? {from: r, to: i} = s : r > o.from && r < o.from + 100 && !/\S/.test(o.text.slice(0, r)) && (r = o.from);
|
|
758
|
+
let u = ["", g(t, l)];
|
|
759
|
+
return s && u.push(g(t, c.lineIndent(o.from, -1))), {
|
|
761
760
|
changes: {
|
|
762
|
-
from:
|
|
763
|
-
to:
|
|
764
|
-
insert:
|
|
761
|
+
from: r,
|
|
762
|
+
to: i,
|
|
763
|
+
insert: se.of(u)
|
|
765
764
|
},
|
|
766
|
-
range:
|
|
765
|
+
range: d.cursor(r + 1 + u[1].length)
|
|
767
766
|
};
|
|
768
767
|
});
|
|
769
|
-
return
|
|
768
|
+
return n(t.update(r, {
|
|
770
769
|
scrollIntoView: !0,
|
|
771
770
|
userEvent: "input"
|
|
772
771
|
})), !0;
|
|
773
772
|
};
|
|
774
773
|
}
|
|
775
|
-
function Z(e,
|
|
776
|
-
let
|
|
777
|
-
return e.changeByRange((
|
|
778
|
-
let
|
|
779
|
-
for (let
|
|
780
|
-
let o = e.doc.lineAt(
|
|
781
|
-
o.number >
|
|
774
|
+
function Z(e, t) {
|
|
775
|
+
let n = -1;
|
|
776
|
+
return e.changeByRange((r) => {
|
|
777
|
+
let i = [];
|
|
778
|
+
for (let a = r.from; a <= r.to;) {
|
|
779
|
+
let o = e.doc.lineAt(a);
|
|
780
|
+
o.number > n && (r.empty || r.to > o.from) && (t(o, i, r), n = o.number), a = o.to + 1;
|
|
782
781
|
}
|
|
783
|
-
let
|
|
782
|
+
let a = e.changes(i);
|
|
784
783
|
return {
|
|
785
|
-
changes:
|
|
786
|
-
range:
|
|
784
|
+
changes: i,
|
|
785
|
+
range: d.range(a.mapPos(r.anchor, 1), a.mapPos(r.head, 1))
|
|
787
786
|
};
|
|
788
787
|
});
|
|
789
788
|
}
|
|
790
789
|
var en = ({ state: e, dispatch: t }) => {
|
|
791
790
|
if (e.readOnly) return !1;
|
|
792
|
-
let n = Object.create(null),
|
|
793
|
-
let s =
|
|
791
|
+
let n = Object.create(null), r = new ie(e, { overrideIndentation: (e) => n[e] ?? -1 }), i = Z(e, (t, i, o) => {
|
|
792
|
+
let s = a(r, t.from);
|
|
794
793
|
if (s == null) return;
|
|
795
794
|
/\S/.test(t.text) || (s = 0);
|
|
796
|
-
let c = /^\s*/.exec(t.text)[0], l =
|
|
797
|
-
(c != l || o.from < t.from + c.length) && (n[t.from] = s,
|
|
795
|
+
let c = /^\s*/.exec(t.text)[0], l = g(e, s);
|
|
796
|
+
(c != l || o.from < t.from + c.length) && (n[t.from] = s, i.push({
|
|
798
797
|
from: t.from,
|
|
799
798
|
to: t.from + c.length,
|
|
800
799
|
insert: l
|
|
801
800
|
}));
|
|
802
801
|
});
|
|
803
|
-
return
|
|
802
|
+
return i.changes.empty || t(e.update(i, { userEvent: "indent" })), !0;
|
|
804
803
|
}, tn = ({ state: e, dispatch: t }) => !e.readOnly && (t(e.update(Z(e, (t, n) => {
|
|
805
804
|
n.push({
|
|
806
805
|
from: t.from,
|
|
807
|
-
insert: e.facet(
|
|
806
|
+
insert: e.facet(o)
|
|
808
807
|
});
|
|
809
808
|
}), { 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 (;
|
|
809
|
+
let r = /^\s*/.exec(t.text)[0];
|
|
810
|
+
if (!r) return;
|
|
811
|
+
let i = p(r, e.tabSize), a = 0, o = g(e, Math.max(0, i - _(e)));
|
|
812
|
+
for (; a < r.length && a < o.length && r.charCodeAt(a) == o.charCodeAt(a);) a++;
|
|
814
813
|
n.push({
|
|
815
|
-
from: t.from +
|
|
816
|
-
to: t.from +
|
|
817
|
-
insert:
|
|
814
|
+
from: t.from + a,
|
|
815
|
+
to: t.from + r.length,
|
|
816
|
+
insert: o.slice(a)
|
|
818
817
|
});
|
|
819
818
|
}), { userEvent: "delete.dedent" })), !0), rn = (e) => (e.setTabFocusMode(), !0), an = [
|
|
820
819
|
{
|
|
@@ -825,52 +824,52 @@ var en = ({ state: e, dispatch: t }) => {
|
|
|
825
824
|
},
|
|
826
825
|
{
|
|
827
826
|
key: "Ctrl-f",
|
|
828
|
-
run:
|
|
829
|
-
shift:
|
|
827
|
+
run: ze,
|
|
828
|
+
shift: G
|
|
830
829
|
},
|
|
831
830
|
{
|
|
832
831
|
key: "Ctrl-p",
|
|
833
|
-
run:
|
|
834
|
-
shift:
|
|
832
|
+
run: V,
|
|
833
|
+
shift: ft
|
|
835
834
|
},
|
|
836
835
|
{
|
|
837
836
|
key: "Ctrl-n",
|
|
838
837
|
run: Ke,
|
|
839
|
-
shift:
|
|
838
|
+
shift: pt
|
|
840
839
|
},
|
|
841
840
|
{
|
|
842
841
|
key: "Ctrl-a",
|
|
843
842
|
run: et,
|
|
844
|
-
shift:
|
|
843
|
+
shift: xt
|
|
845
844
|
},
|
|
846
845
|
{
|
|
847
846
|
key: "Ctrl-e",
|
|
848
847
|
run: tt,
|
|
849
|
-
shift:
|
|
848
|
+
shift: St
|
|
850
849
|
},
|
|
851
850
|
{
|
|
852
851
|
key: "Ctrl-d",
|
|
853
|
-
run:
|
|
852
|
+
run: Y
|
|
854
853
|
},
|
|
855
854
|
{
|
|
856
855
|
key: "Ctrl-h",
|
|
857
|
-
run:
|
|
856
|
+
run: J
|
|
858
857
|
},
|
|
859
858
|
{
|
|
860
859
|
key: "Ctrl-k",
|
|
861
|
-
run:
|
|
860
|
+
run: Rt
|
|
862
861
|
},
|
|
863
862
|
{
|
|
864
863
|
key: "Ctrl-Alt-h",
|
|
865
|
-
run:
|
|
864
|
+
run: It
|
|
866
865
|
},
|
|
867
866
|
{
|
|
868
867
|
key: "Ctrl-o",
|
|
869
|
-
run:
|
|
868
|
+
run: Vt
|
|
870
869
|
},
|
|
871
870
|
{
|
|
872
871
|
key: "Ctrl-t",
|
|
873
|
-
run:
|
|
872
|
+
run: Ht
|
|
874
873
|
},
|
|
875
874
|
{
|
|
876
875
|
key: "Ctrl-v",
|
|
@@ -886,139 +885,139 @@ var en = ({ state: e, dispatch: t }) => {
|
|
|
886
885
|
{
|
|
887
886
|
key: "Mod-ArrowLeft",
|
|
888
887
|
mac: "Alt-ArrowLeft",
|
|
889
|
-
run:
|
|
890
|
-
shift:
|
|
888
|
+
run: Ve,
|
|
889
|
+
shift: st,
|
|
891
890
|
preventDefault: !0
|
|
892
891
|
},
|
|
893
892
|
{
|
|
894
893
|
mac: "Cmd-ArrowLeft",
|
|
895
894
|
run: Qe,
|
|
896
|
-
shift:
|
|
895
|
+
shift: yt,
|
|
897
896
|
preventDefault: !0
|
|
898
897
|
},
|
|
899
898
|
{
|
|
900
899
|
key: "ArrowRight",
|
|
901
|
-
run:
|
|
902
|
-
shift:
|
|
900
|
+
run: ze,
|
|
901
|
+
shift: G,
|
|
903
902
|
preventDefault: !0
|
|
904
903
|
},
|
|
905
904
|
{
|
|
906
905
|
key: "Mod-ArrowRight",
|
|
907
906
|
mac: "Alt-ArrowRight",
|
|
908
|
-
run:
|
|
909
|
-
shift:
|
|
907
|
+
run: He,
|
|
908
|
+
shift: ct,
|
|
910
909
|
preventDefault: !0
|
|
911
910
|
},
|
|
912
911
|
{
|
|
913
912
|
mac: "Cmd-ArrowRight",
|
|
914
913
|
run: $e,
|
|
915
|
-
shift:
|
|
914
|
+
shift: bt,
|
|
916
915
|
preventDefault: !0
|
|
917
916
|
},
|
|
918
917
|
{
|
|
919
918
|
key: "ArrowUp",
|
|
920
|
-
run:
|
|
921
|
-
shift:
|
|
919
|
+
run: V,
|
|
920
|
+
shift: ft,
|
|
922
921
|
preventDefault: !0
|
|
923
922
|
},
|
|
924
923
|
{
|
|
925
924
|
mac: "Cmd-ArrowUp",
|
|
926
|
-
run:
|
|
927
|
-
shift:
|
|
925
|
+
run: Ct,
|
|
926
|
+
shift: Tt
|
|
928
927
|
},
|
|
929
928
|
{
|
|
930
929
|
mac: "Ctrl-ArrowUp",
|
|
931
930
|
run: Ye,
|
|
932
|
-
shift:
|
|
931
|
+
shift: ht
|
|
933
932
|
},
|
|
934
933
|
{
|
|
935
934
|
key: "ArrowDown",
|
|
936
935
|
run: Ke,
|
|
937
|
-
shift:
|
|
936
|
+
shift: pt,
|
|
938
937
|
preventDefault: !0
|
|
939
938
|
},
|
|
940
939
|
{
|
|
941
940
|
mac: "Cmd-ArrowDown",
|
|
942
|
-
run:
|
|
943
|
-
shift:
|
|
941
|
+
run: wt,
|
|
942
|
+
shift: Et
|
|
944
943
|
},
|
|
945
944
|
{
|
|
946
945
|
mac: "Ctrl-ArrowDown",
|
|
947
946
|
run: H,
|
|
948
|
-
shift:
|
|
947
|
+
shift: gt
|
|
949
948
|
},
|
|
950
949
|
{
|
|
951
950
|
key: "PageUp",
|
|
952
951
|
run: Ye,
|
|
953
|
-
shift:
|
|
952
|
+
shift: ht
|
|
954
953
|
},
|
|
955
954
|
{
|
|
956
955
|
key: "PageDown",
|
|
957
956
|
run: H,
|
|
958
|
-
shift:
|
|
957
|
+
shift: gt
|
|
959
958
|
},
|
|
960
959
|
{
|
|
961
960
|
key: "Home",
|
|
962
961
|
run: Ze,
|
|
963
|
-
shift:
|
|
962
|
+
shift: vt,
|
|
964
963
|
preventDefault: !0
|
|
965
964
|
},
|
|
966
965
|
{
|
|
967
966
|
key: "Mod-Home",
|
|
968
|
-
run:
|
|
969
|
-
shift:
|
|
967
|
+
run: Ct,
|
|
968
|
+
shift: Tt
|
|
970
969
|
},
|
|
971
970
|
{
|
|
972
971
|
key: "End",
|
|
973
972
|
run: Xe,
|
|
974
|
-
shift:
|
|
973
|
+
shift: _t,
|
|
975
974
|
preventDefault: !0
|
|
976
975
|
},
|
|
977
976
|
{
|
|
978
977
|
key: "Mod-End",
|
|
979
|
-
run:
|
|
980
|
-
shift:
|
|
978
|
+
run: wt,
|
|
979
|
+
shift: Et
|
|
981
980
|
},
|
|
982
981
|
{
|
|
983
982
|
key: "Enter",
|
|
984
|
-
run:
|
|
985
|
-
shift:
|
|
983
|
+
run: Zt,
|
|
984
|
+
shift: Zt
|
|
986
985
|
},
|
|
987
986
|
{
|
|
988
987
|
key: "Mod-a",
|
|
989
|
-
run:
|
|
988
|
+
run: Dt
|
|
990
989
|
},
|
|
991
990
|
{
|
|
992
991
|
key: "Backspace",
|
|
993
|
-
run:
|
|
994
|
-
shift:
|
|
992
|
+
run: J,
|
|
993
|
+
shift: J,
|
|
995
994
|
preventDefault: !0
|
|
996
995
|
},
|
|
997
996
|
{
|
|
998
997
|
key: "Delete",
|
|
999
|
-
run:
|
|
998
|
+
run: Y,
|
|
1000
999
|
preventDefault: !0
|
|
1001
1000
|
},
|
|
1002
1001
|
{
|
|
1003
1002
|
key: "Mod-Backspace",
|
|
1004
1003
|
mac: "Alt-Backspace",
|
|
1005
|
-
run:
|
|
1004
|
+
run: It,
|
|
1006
1005
|
preventDefault: !0
|
|
1007
1006
|
},
|
|
1008
1007
|
{
|
|
1009
1008
|
key: "Mod-Delete",
|
|
1010
1009
|
mac: "Alt-Delete",
|
|
1011
|
-
run:
|
|
1010
|
+
run: Lt,
|
|
1012
1011
|
preventDefault: !0
|
|
1013
1012
|
},
|
|
1014
1013
|
{
|
|
1015
1014
|
mac: "Mod-Backspace",
|
|
1016
|
-
run:
|
|
1015
|
+
run: zt,
|
|
1017
1016
|
preventDefault: !0
|
|
1018
1017
|
},
|
|
1019
1018
|
{
|
|
1020
1019
|
mac: "Mod-Delete",
|
|
1021
|
-
run:
|
|
1020
|
+
run: Bt,
|
|
1022
1021
|
preventDefault: !0
|
|
1023
1022
|
}
|
|
1024
1023
|
].concat(/*@__PURE__*/ an.map((e) => ({
|
|
@@ -1029,42 +1028,42 @@ var en = ({ state: e, dispatch: t }) => {
|
|
|
1029
1028
|
{
|
|
1030
1029
|
key: "Alt-ArrowLeft",
|
|
1031
1030
|
mac: "Ctrl-ArrowLeft",
|
|
1032
|
-
run:
|
|
1033
|
-
shift:
|
|
1031
|
+
run: We,
|
|
1032
|
+
shift: lt
|
|
1034
1033
|
},
|
|
1035
1034
|
{
|
|
1036
1035
|
key: "Alt-ArrowRight",
|
|
1037
1036
|
mac: "Ctrl-ArrowRight",
|
|
1038
|
-
run:
|
|
1039
|
-
shift:
|
|
1037
|
+
run: Ge,
|
|
1038
|
+
shift: ut
|
|
1040
1039
|
},
|
|
1041
1040
|
{
|
|
1042
1041
|
key: "Alt-ArrowUp",
|
|
1043
|
-
run:
|
|
1042
|
+
run: Wt
|
|
1044
1043
|
},
|
|
1045
1044
|
{
|
|
1046
1045
|
key: "Shift-Alt-ArrowUp",
|
|
1047
|
-
run:
|
|
1046
|
+
run: qt
|
|
1048
1047
|
},
|
|
1049
1048
|
{
|
|
1050
1049
|
key: "Alt-ArrowDown",
|
|
1051
|
-
run:
|
|
1050
|
+
run: Gt
|
|
1052
1051
|
},
|
|
1053
1052
|
{
|
|
1054
1053
|
key: "Shift-Alt-ArrowDown",
|
|
1055
|
-
run:
|
|
1054
|
+
run: Jt
|
|
1056
1055
|
},
|
|
1057
1056
|
{
|
|
1058
1057
|
key: "Mod-Alt-ArrowUp",
|
|
1059
|
-
run:
|
|
1058
|
+
run: jt
|
|
1060
1059
|
},
|
|
1061
1060
|
{
|
|
1062
1061
|
key: "Mod-Alt-ArrowDown",
|
|
1063
|
-
run:
|
|
1062
|
+
run: Mt
|
|
1064
1063
|
},
|
|
1065
1064
|
{
|
|
1066
1065
|
key: "Escape",
|
|
1067
|
-
run:
|
|
1066
|
+
run: Nt
|
|
1068
1067
|
},
|
|
1069
1068
|
{
|
|
1070
1069
|
key: "Mod-Enter",
|
|
@@ -1073,11 +1072,11 @@ var en = ({ state: e, dispatch: t }) => {
|
|
|
1073
1072
|
{
|
|
1074
1073
|
key: "Alt-l",
|
|
1075
1074
|
mac: "Ctrl-l",
|
|
1076
|
-
run:
|
|
1075
|
+
run: Ot
|
|
1077
1076
|
},
|
|
1078
1077
|
{
|
|
1079
1078
|
key: "Mod-i",
|
|
1080
|
-
run:
|
|
1079
|
+
run: kt,
|
|
1081
1080
|
preventDefault: !0
|
|
1082
1081
|
},
|
|
1083
1082
|
{
|
|
@@ -1094,7 +1093,7 @@ var en = ({ state: e, dispatch: t }) => {
|
|
|
1094
1093
|
},
|
|
1095
1094
|
{
|
|
1096
1095
|
key: "Shift-Mod-k",
|
|
1097
|
-
run:
|
|
1096
|
+
run: Yt
|
|
1098
1097
|
},
|
|
1099
1098
|
{
|
|
1100
1099
|
key: "Shift-Mod-\\",
|
|
@@ -1114,9 +1113,9 @@ var en = ({ state: e, dispatch: t }) => {
|
|
|
1114
1113
|
mac: "Shift-Alt-m",
|
|
1115
1114
|
run: rn
|
|
1116
1115
|
}
|
|
1117
|
-
].concat(on), Q, $ = class extends ue(de(
|
|
1118
|
-
constructor(...
|
|
1119
|
-
super(...
|
|
1116
|
+
].concat(on), Q, $ = class extends ue(de(m)) {
|
|
1117
|
+
constructor(...t) {
|
|
1118
|
+
super(...t), 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 e(), this._placeholderCompartment = new e(), this._attrsCompartment = new e(), this._onScrollerPointerDown = (e) => {
|
|
1120
1119
|
e.target === this.view?.scrollDOM && (this.focusFromPoint(e.clientX, e.clientY), e.preventDefault());
|
|
1121
1120
|
};
|
|
1122
1121
|
}
|
|
@@ -1132,10 +1131,10 @@ var en = ({ state: e, dispatch: t }) => {
|
|
|
1132
1131
|
this._placeholderCompartment.of(this._placeholderExtension()),
|
|
1133
1132
|
this._editableCompartment.of(this._editableExtension()),
|
|
1134
1133
|
this._attrsCompartment.of(this._attrsExtension()),
|
|
1135
|
-
|
|
1136
|
-
e.docChanged && this._onDocChanged(e.transactions.every((e) => !e.docChanged || e.annotation(
|
|
1134
|
+
r.updateListener.of((e) => {
|
|
1135
|
+
e.docChanged && this._onDocChanged(e.transactions.every((e) => !e.docChanged || e.annotation(u.remote)));
|
|
1137
1136
|
}),
|
|
1138
|
-
|
|
1137
|
+
r.domEventHandlers({
|
|
1139
1138
|
focus: () => {
|
|
1140
1139
|
this._valueAtFocus = this.value;
|
|
1141
1140
|
},
|
|
@@ -1146,14 +1145,14 @@ var en = ({ state: e, dispatch: t }) => {
|
|
|
1146
1145
|
];
|
|
1147
1146
|
}
|
|
1148
1147
|
_editableExtension() {
|
|
1149
|
-
return [
|
|
1148
|
+
return [r.editable.of(!this.disabled), oe.readOnly.of(this.disabled || this.readonly)];
|
|
1150
1149
|
}
|
|
1151
1150
|
_placeholderExtension() {
|
|
1152
|
-
return this.placeholder ?
|
|
1151
|
+
return this.placeholder ? ae(this.placeholder) : [];
|
|
1153
1152
|
}
|
|
1154
1153
|
_attrsExtension() {
|
|
1155
1154
|
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"),
|
|
1155
|
+
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"), r.contentAttributes.of(e);
|
|
1157
1156
|
}
|
|
1158
1157
|
refreshContentAttributes() {
|
|
1159
1158
|
this.reconfigure(this._attrsCompartment, this._attrsExtension());
|
|
@@ -1229,4 +1228,4 @@ Q = $, Q.shadowRootOptions = {
|
|
|
1229
1228
|
type: Boolean,
|
|
1230
1229
|
reflect: !0
|
|
1231
1230
|
})], $.prototype, "invalid", void 0);
|
|
1232
|
-
export {
|
|
1231
|
+
export { Se as a, be as c, D as d, Ee as f, Y as i, O as l, sn as n, Ie as o, J as r, w as s, $ as t, De as u };
|