@nldd/design-system 0.26.5 → 0.27.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 +460 -37
- package/dist/cdn/autoloader.js +141 -141
- package/dist/cdn/chunks/{accordion-item-BXEHwzcv.js → accordion-item-Db9LW8AG.js} +4 -4
- package/dist/cdn/chunks/{accordion-qXirmNBj.js → accordion-tLICRUFs.js} +4 -4
- package/dist/cdn/chunks/{activity-indicator-DP61AhsJ.js → activity-indicator-CMNIikEV.js} +5 -5
- package/dist/cdn/chunks/{admonition-RnRSNAri.js → admonition-DEXVkTJm.js} +4 -4
- package/dist/cdn/chunks/after-parse-BSKUm67Q.js +9 -0
- package/dist/cdn/chunks/{avatar-group-BrfrpXvd.js → avatar-group-DMU0HLBL.js} +71 -49
- package/dist/cdn/chunks/{avatar-DsexiOhH.js → avatar-nLrlfh4s.js} +75 -41
- package/dist/cdn/chunks/{badge-BiQFOq2l.js → badge-D1XadmOE.js} +5 -5
- package/dist/cdn/chunks/{banner-42zIYAEN.js → banner-B4kFQlHx.js} +7 -7
- package/dist/cdn/chunks/{bar-split-view-CjYEp276.js → bar-split-view-DtD4zmoP.js} +28 -21
- package/dist/cdn/chunks/{blockquote-qf4hJYvm.js → blockquote-DbFjwox8.js} +3 -3
- package/dist/cdn/chunks/{box-CWyg7sbR.js → box-BlwaDicI.js} +3 -3
- package/dist/cdn/chunks/{breadcrumbs-BaHjYdz8.js → breadcrumbs-DJS9-8wX.js} +5 -5
- package/dist/cdn/chunks/{button-CKV-jwGY.js → button-BK8CmshL.js} +8 -8
- package/dist/cdn/chunks/{button-bar-DeJ81759.js → button-bar-5RtXjgGl.js} +3 -3
- package/dist/cdn/chunks/{button-group-CuRkiHR5.js → button-group-BYMkQNhT.js} +2 -2
- package/dist/cdn/chunks/{card-DxeUNE3V.js → card-NNl0PxBY.js} +4 -4
- package/dist/cdn/chunks/{cell-QaG8b-Qk.js → cell-D2NzCBVZ.js} +6 -6
- package/dist/cdn/chunks/{checkbox-V0YerUKf.js → checkbox-CXFA_up4.js} +5 -5
- package/dist/cdn/chunks/{checkbox-field-DeySECgv.js → checkbox-field-sFs7GvAq.js} +7 -7
- package/dist/cdn/chunks/{checkbox-group-DFNy1y-A.js → checkbox-group-BPN4eRCX.js} +3 -3
- package/dist/cdn/chunks/{class-map-CmgI2Tu-.js → class-map-1XjgYGeg.js} +1 -1
- package/dist/cdn/chunks/{code-editor-BBMbUJ4d.js → code-editor-KZEaMAN7.js} +5 -5
- package/dist/cdn/chunks/{code-viewer-B8jse0-5.js → code-viewer-CJwpLKb1.js} +94 -87
- package/dist/cdn/chunks/{codemirror-input-BEotDTtZ.js → codemirror-input-CYBNNf0-.js} +5 -5
- package/dist/cdn/chunks/{collection-DRoS7Ona.js → collection-BdUB8qeL.js} +61 -42
- package/dist/cdn/chunks/{combo-box-DA1ZQJJS.js → combo-box-DxWW-zeE.js} +20 -14
- package/dist/cdn/chunks/{container-F1i2pmko.js → container-Dhf1Ahi8.js} +14 -10
- package/dist/cdn/chunks/{custom-element-DD4ffKRs.js → custom-element-DtLjpays.js} +1 -1
- package/dist/cdn/chunks/{date-field-DVgisQnm.js → date-field-D83r9gjY.js} +12 -12
- package/dist/cdn/chunks/{date-picker-BaDTota3.js → date-picker-D8qv2iuG.js} +21 -15
- package/dist/cdn/chunks/{decorate-CeGXihRM.js → decorate-BhnGmemK.js} +1 -1
- package/dist/cdn/chunks/{described-by-mixin-qFatR9dF.js → described-by-mixin-Jh_PTTde.js} +2 -2
- package/dist/cdn/chunks/{description-cell-D45N4P1X.js → description-cell-nQKMluy8.js} +6 -6
- package/dist/cdn/chunks/{dev-checks-CkCD0tPh.js → dev-checks-Bet7bhMS.js} +99 -49
- package/dist/cdn/chunks/{directive-helpers-B9pcQxsE.js → directive-helpers-dLE2M1R1.js} +1 -1
- package/dist/cdn/chunks/{dist-n8aCu6Kg.js → dist-BTuJ-NyU.js} +2 -2
- package/dist/cdn/chunks/{dist-BS_pQgb6.js → dist-BbwC3zHR.js} +2 -2
- package/dist/cdn/chunks/{dist-Dsyc1RGG.js → dist-BpqJqkl_.js} +1 -1
- package/dist/cdn/chunks/{dist-mxb0NzAU.js → dist-C9xmfEc_.js} +1 -1
- package/dist/cdn/chunks/{dist-v7yvd26H.js → dist-CYKK2xXE.js} +3 -3
- package/dist/cdn/chunks/{dist-rjQNj-KZ.js → dist-Cdmhq-4P.js} +2 -2
- package/dist/cdn/chunks/{dist-v62GtoI6.js → dist-DJSiRJRL.js} +1 -1
- package/dist/cdn/chunks/{dist-Cl-rXzh7.js → dist-DwevYbXo.js} +1 -1
- package/dist/cdn/chunks/{dist-DjlGttcc.js → dist-Dzlvec4O.js} +1 -1
- package/dist/cdn/chunks/{dist-jTL_Kil1.js → dist-EP5KATv0.js} +1 -1
- package/dist/cdn/chunks/{dist-DJQUgOKW.js → dist-u6MS5-M8.js} +3 -3
- package/dist/cdn/chunks/{divider-CtMx3Byp.js → divider-DjT76fuO.js} +2 -2
- package/dist/cdn/chunks/{document-tab-bar-SKSf69FX.js → document-tab-bar-CO2M1bFc.js} +95 -56
- package/dist/cdn/chunks/{dropdown-se1zjYlw.js → dropdown-CdQ1beF2.js} +5 -5
- package/dist/cdn/chunks/{file-field-DW_Xt5O3.js → file-field-D0UlnM9R.js} +14 -14
- package/dist/cdn/chunks/{form-C9-eW3zc.js → form-BV9wifov.js} +1 -1
- package/dist/cdn/chunks/{form-actions-Cy5tH1nk.js → form-actions-DDeF8urg.js} +2 -2
- package/dist/cdn/chunks/{form-associated-mixin-CA0F9CPx.js → form-associated-mixin-Cm1N24gR.js} +2 -2
- package/dist/cdn/chunks/{form-field-BMWm8VGS.js → form-field-IeKadcwe.js} +6 -6
- package/dist/cdn/chunks/{form-section-DrrXc4wZ.js → form-section-C350G5wg.js} +1 -1
- package/dist/cdn/chunks/frame-pass-C0RUoFMc.js +17 -0
- package/dist/cdn/chunks/{full-bleed-section-6QL0av4x.js → full-bleed-section-CR3zsX7K.js} +9 -10
- package/dist/cdn/chunks/{hero-BThWV3MR.js → hero-Ch5el5J5.js} +73 -68
- package/dist/cdn/chunks/{icon-CVM6X_F1.js → icon-Dj98ov4G.js} +2 -2
- package/dist/cdn/chunks/{icon-button-h_sEz0Ia.js → icon-button-HKoCqWG3.js} +9 -9
- package/dist/cdn/chunks/{icon-cell-C3Ygercd.js → icon-cell-C1I-oIWn.js} +5 -5
- package/dist/cdn/chunks/{identity-BR0KxjM5.js → identity-DNkEDJ8m.js} +6 -6
- package/dist/cdn/chunks/{if-defined-CvQli6P0.js → if-defined-CZ1Fmb74.js} +1 -1
- package/dist/cdn/chunks/{image-D8H73DIj.js → image-KXTd-hL-.js} +8 -8
- package/dist/cdn/chunks/{inline-dialog-Dlu3bneh.js → inline-dialog-BTI0xmIT.js} +6 -6
- package/dist/cdn/chunks/{just-in-time-education-DG0teV5g.js → just-in-time-education-BtjbYffu.js} +5 -5
- package/dist/cdn/chunks/{kanban-MNLyqki_.js → kanban-DNXtL34O.js} +35 -30
- package/dist/cdn/chunks/{kanban-column-CGF_4Q0N.js → kanban-column-D0ujQ2_W.js} +37 -25
- package/dist/cdn/chunks/{keyboard-shortcut-DZDtndhS.js → keyboard-shortcut-BikzmCBH.js} +3 -3
- package/dist/cdn/chunks/{languages-BCn4J5Ck.js → languages-CPd7_I8H.js} +12 -12
- package/dist/cdn/chunks/layout-pass-Cq85kSHX.js +45 -0
- package/dist/cdn/chunks/{link-CTj3dTmJ.js → link-DqMeRYFm.js} +6 -6
- package/dist/cdn/chunks/{link-group--C486tYV.js → link-group-BKn4MHA-.js} +2 -2
- package/dist/cdn/chunks/{list-DApLHKj-.js → list-C8Dnks-q.js} +48 -34
- package/dist/cdn/chunks/{list-item-BN9uuvXr.js → list-item-CSP1a_cN.js} +5 -6
- package/dist/cdn/chunks/{list-item-segment-CvdZT9Ni.js → list-item-segment-BvFqXXnA.js} +3 -3
- package/dist/cdn/chunks/{menu-2-9LtMLY.js → menu-LZ0DmVCe.js} +20 -19
- package/dist/cdn/chunks/{menu-bar-item-tOFEx-lS.js → menu-bar-item-DENdrp0m.js} +6 -6
- package/dist/cdn/chunks/{menu-bar-g-O3_TNl.js → menu-bar-rsGd3kKq.js} +62 -46
- package/dist/cdn/chunks/{menu-divider-Dmv0lMHV.js → menu-divider-BptK2nug.js} +3 -3
- package/dist/cdn/chunks/{menu-group-Ci9QUUwZ.js → menu-group-0B34NyN5.js} +4 -4
- package/dist/cdn/chunks/{menu-item-BnIbV4yo.js → menu-item-55vjckz2.js} +16 -12
- package/dist/cdn/chunks/{menu.template-sPjaMfc8.js → menu.template-B_HMnBsa.js} +105 -76
- package/dist/cdn/chunks/{modal-dialog-D-jAbabe.js → modal-dialog-DQY_0Qlk.js} +4 -4
- package/dist/cdn/chunks/{multi-line-text-field-uBZqAdr6.js → multi-line-text-field-DB4Vflno.js} +6 -6
- package/dist/cdn/chunks/{navigation-split-view-DARbBPq-.js → navigation-split-view-Dbhrxni9.js} +59 -47
- package/dist/cdn/chunks/{notification-CntIGoYh.js → notification-dtrMLORo.js} +6 -6
- package/dist/cdn/chunks/{number-field-C0MTabLP.js → number-field-Ctxk40as.js} +8 -8
- package/dist/cdn/chunks/{one-half-one-half-section-DYzf6LtU.js → one-half-one-half-section-Bx6KLSY5.js} +15 -16
- package/dist/cdn/chunks/{one-third-two-thirds-section-AAiaxCHH.js → one-third-two-thirds-section-Bql0Xrsc.js} +15 -16
- package/dist/cdn/chunks/{one-time-code-field-CCILuCy1.js → one-time-code-field-B-y5gRLi.js} +103 -64
- package/dist/cdn/chunks/{overflow-menu-DFoh3xL_.js → overflow-menu-Cs1VLcX7.js} +1 -1
- package/dist/cdn/chunks/{page-BDXLREou.js → page-Bdkit86l.js} +78 -56
- package/dist/cdn/chunks/{page-footer-BsVMZCXs.js → page-footer-D68JiIFE.js} +4 -4
- package/dist/cdn/chunks/{page-section-mixin-L0bl3wCm.js → page-section-mixin-Bmlpcmrw.js} +3 -3
- package/dist/cdn/chunks/{pagination-DLwbSZdO.js → pagination-BH6UQbby.js} +6 -6
- package/dist/cdn/chunks/{password-field-DKTJgEyb.js → password-field-Dz0znv2L.js} +8 -8
- package/dist/cdn/chunks/{popover-RB7uLASo.js → popover-C6j3sO70.js} +5 -5
- package/dist/cdn/chunks/{progress-bar-DnXWbmiw.js → progress-bar-BA_5dDXK.js} +10 -7
- package/dist/cdn/chunks/{progress-circle-S89MUtU8.js → progress-circle-DsCyTyw-.js} +10 -7
- package/dist/cdn/chunks/{radio-button-field-BF4MHiOQ.js → radio-button-field-JsQalrMs.js} +8 -7
- package/dist/cdn/chunks/{radio-button-group-BQUqV8wJ.js → radio-button-group-Bqn43LYh.js} +3 -3
- package/dist/cdn/chunks/{radio-button-B31lAjlk.js → radio-button-pcE5Vo5k.js} +92 -51
- package/dist/cdn/chunks/{render-marked-ChJNzktf.js → render-marked-DAVGoeYa.js} +1 -1
- package/dist/cdn/chunks/{reorder-handle-cell-SEERkeh7.js → reorder-handle-cell-r4OuA45S.js} +4 -4
- package/dist/cdn/chunks/{reorder-handle-mixin-tWe9XTjZ.js → reorder-handle-mixin-Co5E_Y7l.js} +2 -2
- package/dist/cdn/chunks/{repeat-CdCK17GF.js → repeat-DoLR8W_a.js} +2 -2
- package/dist/cdn/chunks/{rich-text-vVWOndD2.js → rich-text-CEmzxZRC.js} +3 -3
- package/dist/cdn/chunks/{row-header-mixin-6MoJ5Mjq.js → row-header-mixin-BCYXiXva.js} +2 -2
- package/dist/cdn/chunks/{scroll-fade-Cr7_IXpU.js → scroll-fade-OSFrYTum.js} +2 -2
- package/dist/cdn/chunks/scroll-mode-controller-Dl5hddJo.js +52 -0
- package/dist/cdn/chunks/{search-field-C9urWH_J.js → search-field-CT483s7J.js} +10 -10
- package/dist/cdn/chunks/{segmented-control-DkILAMOJ.js → segmented-control-5zMasjz7.js} +7 -7
- package/dist/cdn/chunks/{shadow-resets-9v6K-Fie.js → shadow-resets-DR73IFIL.js} +2 -2
- package/dist/cdn/chunks/{sheet-D89xI-KY.js → sheet-CDXX61d_.js} +3 -3
- package/dist/cdn/chunks/{shell-CFmfUD0_.js → shell-C4vAeA49.js} +4 -4
- package/dist/cdn/chunks/{side-by-side-split-view-ir9c0mwZ.js → side-by-side-split-view-D9_u1TIS.js} +38 -29
- package/dist/cdn/chunks/{sidebar-section-BhJXels3.js → sidebar-section-vWX-ymIa.js} +70 -48
- package/dist/cdn/chunks/{simple-section-CMoYuLYV.js → simple-section-CEw2oC7K.js} +9 -10
- package/dist/cdn/chunks/{skip-link-rUQq0D-l.js → skip-link-DcOGlfM9.js} +4 -4
- package/dist/cdn/chunks/{slider-CIQqjKUo.js → slider-B108QDlz.js} +9 -9
- package/dist/cdn/chunks/{spacer-CD85egxE.js → spacer-CpfTNtbZ.js} +2 -2
- package/dist/cdn/chunks/{spacer-cell-B33mGdru.js → spacer-cell-DBm7_AUi.js} +4 -4
- package/dist/cdn/chunks/{split-button-COL7r-wa.js → split-button-DxgDxdan.js} +7 -7
- package/dist/cdn/chunks/{split-view-divider-DVBuBzeO.js → split-view-divider-6_RDvANN.js} +2 -2
- package/dist/cdn/chunks/{split-view-pane-CSvIzeBg.js → split-view-pane-9tEGLRZC.js} +4 -4
- package/dist/cdn/chunks/{stacked-split-view-onSk2QEi.js → stacked-split-view-CRMEMwtv.js} +29 -25
- package/dist/cdn/chunks/{static-html-Cyhp44gp.js → static-html-CmXnRyP6.js} +1 -1
- package/dist/cdn/chunks/{status-bar-CjYXOQAX.js → status-bar-Blk_iYSD.js} +29 -17
- package/dist/cdn/chunks/{step-bar-D-To0TEw.js → step-bar-DM4a_0PG.js} +5 -5
- package/dist/cdn/chunks/{step-cell-B7sVGixc.js → step-cell-CUs8AKJq.js} +5 -5
- package/dist/cdn/chunks/{stepper-h6boMOhz.js → stepper-JwxPNJRc.js} +7 -7
- package/dist/cdn/chunks/{style-map-BrdTV34-.js → style-map-DUDIMhuW.js} +1 -1
- package/dist/cdn/chunks/{swatch-picker-gQ3m3y9U.js → swatch-picker-BXs7Ob4o.js} +6 -6
- package/dist/cdn/chunks/{switch-DC-BTi9E.js → switch-CWKoOyz7.js} +5 -5
- package/dist/cdn/chunks/{switch-field-D82mLobj.js → switch-field-BgX9mNOA.js} +6 -6
- package/dist/cdn/chunks/{tab-bar-sKiFzvfj.js → tab-bar-BNaJSB38.js} +85 -49
- package/dist/cdn/chunks/{table-CuxZfCZD.js → table-dgJdHR92.js} +111 -54
- package/dist/cdn/chunks/{tag-DP_ome5l.js → tag-DHHf_gxq.js} +4 -4
- package/dist/cdn/chunks/{term-BdiTV-Jk.js → term-DNLqQErM.js} +12 -12
- package/dist/cdn/chunks/{text-C-b1ygHI.js → text-CK1-qJ6d.js} +3 -3
- package/dist/cdn/chunks/{text-cell-DfRh7JqZ.js → text-cell-CrKBqL5A.js} +8 -8
- package/dist/cdn/chunks/{text-editor-DuT9Rrpv.js → text-editor-B0A2vNpD.js} +191 -191
- package/dist/cdn/chunks/{text-field-kAbXzkUj.js → text-field-CqYxSiKy.js} +6 -6
- package/dist/cdn/chunks/{time-field-DUz9ifmn.js → time-field-DHm6KQsG.js} +14 -14
- package/dist/cdn/chunks/{time-picker-DGOKwC9T.js → time-picker-C_BE5oNq.js} +170 -99
- package/dist/cdn/chunks/{title-BA-SUyAq.js → title-BpREzeX9.js} +4 -4
- package/dist/cdn/chunks/{title-cell-Cu5NFNUu.js → title-cell-C4ZL3mJo.js} +8 -8
- package/dist/cdn/chunks/{toggle-button-J6UapeqB.js → toggle-button-COQdr-hZ.js} +8 -8
- package/dist/cdn/chunks/{toggle-button-group-wrps-tL9.js → toggle-button-group-D4vTcGce.js} +2 -2
- package/dist/cdn/chunks/{token-DJkyJz-k.js → token-1DfHVSVj.js} +5 -5
- package/dist/cdn/chunks/{token-field-SiBFPD8-.js → token-field-s_mCjtcZ.js} +12 -12
- package/dist/cdn/chunks/toolbar-Bz_8d1v-.js +441 -0
- package/dist/cdn/chunks/{toolbar-item-DPizdgYi.js → toolbar-item-B-EDYaPf.js} +3 -3
- package/dist/cdn/chunks/{toolbar-title-CB4IJFGv.js → toolbar-title-Cl8VPHYK.js} +4 -4
- package/dist/cdn/chunks/{toolbar.styles-vmMPyzS_.js → toolbar.styles-BiT7JPsr.js} +3 -3
- package/dist/cdn/chunks/{tooltip-Bg2ovCCg.js → tooltip-DhPeqDvL.js} +4 -4
- package/dist/cdn/chunks/{top-navigation-bar-vA8wpJXS.js → top-navigation-bar-CHWqoNms.js} +121 -104
- package/dist/cdn/chunks/{top-title-bar-BAJGmgnj.js → top-title-bar-DUp0bSIU.js} +43 -30
- package/dist/cdn/chunks/{translations-Cjd13Xb6.js → translations-C6WKR-hE.js} +1 -1
- package/dist/cdn/chunks/{two-thirds-one-third-section-D1FvorKO.js → two-thirds-one-third-section-CftZqodu.js} +15 -16
- package/dist/cdn/chunks/{validation-list-D3rKnfTu.js → validation-list-BdTSfsD6.js} +3 -3
- package/dist/cdn/chunks/{visibility-mixin-BRMACV1l.js → visibility-mixin-DL737l0g.js} +2 -2
- package/dist/cdn/chunks/{visually-hidden-BukWRiJA.js → visually-hidden-DvU3wAD4.js} +2 -2
- package/dist/cdn/chunks/{window-C9njVzzK.js → window-7XYqha2V.js} +4 -4
- package/dist/cdn/chunks/{with-translations-BLzHPSUF.js → with-translations-nT8q6ELU.js} +3 -3
- package/dist/components/actions/menu/menu-item.d.ts +11 -0
- package/dist/components/actions/menu/menu-item.d.ts.map +1 -1
- package/dist/components/actions/menu/menu-item.js +28 -13
- package/dist/components/actions/menu/menu-item.js.map +1 -1
- package/dist/components/actions/menu/menu.d.ts +6 -0
- package/dist/components/actions/menu/menu.d.ts.map +1 -1
- package/dist/components/actions/menu/menu.js +14 -4
- package/dist/components/actions/menu/menu.js.map +1 -1
- package/dist/components/actions/menu/menu.styles.d.ts.map +1 -1
- package/dist/components/actions/menu/menu.styles.js +63 -3
- package/dist/components/actions/menu/menu.styles.js.map +1 -1
- package/dist/components/actions/menu/menu.template.d.ts.map +1 -1
- package/dist/components/actions/menu/menu.template.js +18 -47
- package/dist/components/actions/menu/menu.template.js.map +1 -1
- package/dist/components/actions/toolbar/toolbar.d.ts +56 -16
- package/dist/components/actions/toolbar/toolbar.d.ts.map +1 -1
- package/dist/components/actions/toolbar/toolbar.js +263 -95
- package/dist/components/actions/toolbar/toolbar.js.map +1 -1
- package/dist/components/actions/toolbar/toolbar.steps.d.ts +16 -0
- package/dist/components/actions/toolbar/toolbar.steps.d.ts.map +1 -0
- package/dist/components/actions/toolbar/toolbar.steps.js +33 -0
- package/dist/components/actions/toolbar/toolbar.steps.js.map +1 -0
- package/dist/components/content/avatar/avatar.d.ts +22 -10
- package/dist/components/content/avatar/avatar.d.ts.map +1 -1
- package/dist/components/content/avatar/avatar.js +122 -29
- package/dist/components/content/avatar/avatar.js.map +1 -1
- package/dist/components/content/avatar-group/avatar-group.d.ts +25 -10
- package/dist/components/content/avatar-group/avatar-group.d.ts.map +1 -1
- package/dist/components/content/avatar-group/avatar-group.js +97 -26
- package/dist/components/content/avatar-group/avatar-group.js.map +1 -1
- package/dist/components/content/avatar-group/avatar-group.template.d.ts.map +1 -1
- package/dist/components/content/avatar-group/avatar-group.template.js +5 -4
- package/dist/components/content/avatar-group/avatar-group.template.js.map +1 -1
- package/dist/components/content/code-viewer/code-viewer.d.ts +4 -2
- package/dist/components/content/code-viewer/code-viewer.d.ts.map +1 -1
- package/dist/components/content/code-viewer/code-viewer.js +35 -32
- package/dist/components/content/code-viewer/code-viewer.js.map +1 -1
- package/dist/components/content/image/image.d.ts +1 -4
- package/dist/components/content/image/image.d.ts.map +1 -1
- package/dist/components/content/image/image.js +1 -4
- package/dist/components/content/image/image.js.map +1 -1
- package/dist/components/content/tooltip/tooltip.d.ts +1 -4
- package/dist/components/content/tooltip/tooltip.d.ts.map +1 -1
- package/dist/components/content/tooltip/tooltip.js +1 -4
- package/dist/components/content/tooltip/tooltip.js.map +1 -1
- package/dist/components/forms/form-field/form-field.d.ts.map +1 -1
- package/dist/components/forms/form-field/form-field.js +4 -0
- package/dist/components/forms/form-field/form-field.js.map +1 -1
- package/dist/components/inputs/combo-box/combo-box.d.ts +8 -0
- package/dist/components/inputs/combo-box/combo-box.d.ts.map +1 -1
- package/dist/components/inputs/combo-box/combo-box.js +28 -9
- package/dist/components/inputs/combo-box/combo-box.js.map +1 -1
- package/dist/components/inputs/date-picker/date-picker.d.ts +11 -0
- package/dist/components/inputs/date-picker/date-picker.d.ts.map +1 -1
- package/dist/components/inputs/date-picker/date-picker.js +23 -0
- package/dist/components/inputs/date-picker/date-picker.js.map +1 -1
- package/dist/components/inputs/date-picker/date-picker.template.d.ts.map +1 -1
- package/dist/components/inputs/date-picker/date-picker.template.js +4 -2
- package/dist/components/inputs/date-picker/date-picker.template.js.map +1 -1
- package/dist/components/inputs/file-field/file-field.d.ts.map +1 -1
- package/dist/components/inputs/file-field/file-field.js +6 -1
- package/dist/components/inputs/file-field/file-field.js.map +1 -1
- package/dist/components/inputs/one-time-code-field/one-time-code-field.d.ts +27 -5
- 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 +128 -30
- package/dist/components/inputs/one-time-code-field/one-time-code-field.js.map +1 -1
- package/dist/components/inputs/radio-button/radio-button.d.ts.map +1 -1
- package/dist/components/inputs/radio-button/radio-button.js +5 -2
- package/dist/components/inputs/radio-button/radio-button.js.map +1 -1
- package/dist/components/inputs/radio-button-field/radio-button-field.d.ts.map +1 -1
- package/dist/components/inputs/radio-button-field/radio-button-field.js +5 -2
- package/dist/components/inputs/radio-button-field/radio-button-field.js.map +1 -1
- package/dist/components/inputs/text-editor/text-editor.annotations.js +1 -1
- package/dist/components/inputs/text-editor/text-editor.annotations.js.map +1 -1
- package/dist/components/inputs/text-editor/text-editor.js +2 -2
- package/dist/components/inputs/text-editor/text-editor.js.map +1 -1
- package/dist/components/inputs/text-editor/text-editor.selection.js +1 -1
- package/dist/components/inputs/text-editor/text-editor.selection.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 +18 -12
- package/dist/components/inputs/text-editor/text-editor.toolbar.js.map +1 -1
- package/dist/components/inputs/time-picker/time-picker.d.ts +23 -0
- package/dist/components/inputs/time-picker/time-picker.d.ts.map +1 -1
- package/dist/components/inputs/time-picker/time-picker.js +132 -12
- package/dist/components/inputs/time-picker/time-picker.js.map +1 -1
- package/dist/components/inputs/time-picker/time-picker.styles.d.ts.map +1 -1
- package/dist/components/inputs/time-picker/time-picker.styles.js +27 -6
- package/dist/components/inputs/time-picker/time-picker.styles.js.map +1 -1
- package/dist/components/inputs/time-picker/time-picker.template.d.ts.map +1 -1
- package/dist/components/inputs/time-picker/time-picker.template.js +1 -0
- package/dist/components/inputs/time-picker/time-picker.template.js.map +1 -1
- package/dist/components/inputs/token-field/token-field.d.ts.map +1 -1
- package/dist/components/inputs/token-field/token-field.js +3 -0
- package/dist/components/inputs/token-field/token-field.js.map +1 -1
- package/dist/components/layout/collection/collection.d.ts +9 -1
- package/dist/components/layout/collection/collection.d.ts.map +1 -1
- package/dist/components/layout/collection/collection.js +96 -38
- package/dist/components/layout/collection/collection.js.map +1 -1
- package/dist/components/layout/container/container.d.ts +1 -0
- package/dist/components/layout/container/container.d.ts.map +1 -1
- package/dist/components/layout/container/container.js +22 -16
- package/dist/components/layout/container/container.js.map +1 -1
- package/dist/components/layout/kanban/kanban-column.d.ts +7 -2
- package/dist/components/layout/kanban/kanban-column.d.ts.map +1 -1
- package/dist/components/layout/kanban/kanban-column.js +49 -17
- package/dist/components/layout/kanban/kanban-column.js.map +1 -1
- package/dist/components/layout/kanban/kanban.d.ts +4 -1
- package/dist/components/layout/kanban/kanban.d.ts.map +1 -1
- package/dist/components/layout/kanban/kanban.js +25 -7
- package/dist/components/layout/kanban/kanban.js.map +1 -1
- package/dist/components/layout/kanban/kanban.template.js +1 -1
- package/dist/components/layout/kanban/kanban.template.js.map +1 -1
- package/dist/components/layout/page/page.d.ts +43 -12
- package/dist/components/layout/page/page.d.ts.map +1 -1
- package/dist/components/layout/page/page.js +116 -66
- package/dist/components/layout/page/page.js.map +1 -1
- package/dist/components/layout/page/page.styles.js +2 -2
- package/dist/components/layout/page-sections/full-bleed-section/full-bleed-section.d.ts +3 -1
- package/dist/components/layout/page-sections/full-bleed-section/full-bleed-section.d.ts.map +1 -1
- package/dist/components/layout/page-sections/full-bleed-section/full-bleed-section.js +3 -1
- package/dist/components/layout/page-sections/full-bleed-section/full-bleed-section.js.map +1 -1
- package/dist/components/layout/page-sections/full-bleed-section/full-bleed-section.styles.d.ts.map +1 -1
- package/dist/components/layout/page-sections/full-bleed-section/full-bleed-section.styles.js +6 -7
- package/dist/components/layout/page-sections/full-bleed-section/full-bleed-section.styles.js.map +1 -1
- package/dist/components/layout/page-sections/hero/hero-corner.d.ts.map +1 -1
- package/dist/components/layout/page-sections/hero/hero-corner.js +24 -1
- package/dist/components/layout/page-sections/hero/hero-corner.js.map +1 -1
- package/dist/components/layout/page-sections/hero/hero-corner.styles.js +22 -22
- package/dist/components/layout/page-sections/hero/hero-corner.styles.js.map +1 -1
- package/dist/components/layout/page-sections/hero/hero.d.ts +2 -0
- package/dist/components/layout/page-sections/hero/hero.d.ts.map +1 -1
- package/dist/components/layout/page-sections/hero/hero.js +2 -0
- package/dist/components/layout/page-sections/hero/hero.js.map +1 -1
- package/dist/components/layout/page-sections/hero/hero.styles.d.ts.map +1 -1
- package/dist/components/layout/page-sections/hero/hero.styles.js +8 -11
- package/dist/components/layout/page-sections/hero/hero.styles.js.map +1 -1
- package/dist/components/layout/page-sections/one-half-one-half-section/one-half-one-half-section.d.ts +4 -2
- package/dist/components/layout/page-sections/one-half-one-half-section/one-half-one-half-section.d.ts.map +1 -1
- package/dist/components/layout/page-sections/one-half-one-half-section/one-half-one-half-section.js +4 -2
- package/dist/components/layout/page-sections/one-half-one-half-section/one-half-one-half-section.js.map +1 -1
- package/dist/components/layout/page-sections/one-half-one-half-section/one-half-one-half-section.styles.d.ts.map +1 -1
- package/dist/components/layout/page-sections/one-half-one-half-section/one-half-one-half-section.styles.js +12 -13
- package/dist/components/layout/page-sections/one-half-one-half-section/one-half-one-half-section.styles.js.map +1 -1
- package/dist/components/layout/page-sections/one-third-two-thirds-section/one-third-two-thirds-section.d.ts +4 -2
- package/dist/components/layout/page-sections/one-third-two-thirds-section/one-third-two-thirds-section.d.ts.map +1 -1
- package/dist/components/layout/page-sections/one-third-two-thirds-section/one-third-two-thirds-section.js +4 -2
- package/dist/components/layout/page-sections/one-third-two-thirds-section/one-third-two-thirds-section.js.map +1 -1
- package/dist/components/layout/page-sections/one-third-two-thirds-section/one-third-two-thirds-section.styles.d.ts.map +1 -1
- package/dist/components/layout/page-sections/one-third-two-thirds-section/one-third-two-thirds-section.styles.js +12 -13
- package/dist/components/layout/page-sections/one-third-two-thirds-section/one-third-two-thirds-section.styles.js.map +1 -1
- package/dist/components/layout/page-sections/sidebar-section/sidebar-section.d.ts +12 -9
- package/dist/components/layout/page-sections/sidebar-section/sidebar-section.d.ts.map +1 -1
- package/dist/components/layout/page-sections/sidebar-section/sidebar-section.js +66 -21
- package/dist/components/layout/page-sections/sidebar-section/sidebar-section.js.map +1 -1
- package/dist/components/layout/page-sections/sidebar-section/sidebar-section.styles.d.ts.map +1 -1
- package/dist/components/layout/page-sections/sidebar-section/sidebar-section.styles.js +23 -17
- package/dist/components/layout/page-sections/sidebar-section/sidebar-section.styles.js.map +1 -1
- package/dist/components/layout/page-sections/sidebar-section/sidebar-section.template.d.ts.map +1 -1
- package/dist/components/layout/page-sections/sidebar-section/sidebar-section.template.js +5 -0
- package/dist/components/layout/page-sections/sidebar-section/sidebar-section.template.js.map +1 -1
- package/dist/components/layout/page-sections/simple-section/simple-section.d.ts +4 -3
- package/dist/components/layout/page-sections/simple-section/simple-section.d.ts.map +1 -1
- package/dist/components/layout/page-sections/simple-section/simple-section.js +4 -3
- package/dist/components/layout/page-sections/simple-section/simple-section.js.map +1 -1
- package/dist/components/layout/page-sections/simple-section/simple-section.styles.d.ts.map +1 -1
- package/dist/components/layout/page-sections/simple-section/simple-section.styles.js +6 -7
- package/dist/components/layout/page-sections/simple-section/simple-section.styles.js.map +1 -1
- package/dist/components/layout/page-sections/two-thirds-one-third-section/two-thirds-one-third-section.d.ts +4 -2
- package/dist/components/layout/page-sections/two-thirds-one-third-section/two-thirds-one-third-section.d.ts.map +1 -1
- package/dist/components/layout/page-sections/two-thirds-one-third-section/two-thirds-one-third-section.js +4 -2
- package/dist/components/layout/page-sections/two-thirds-one-third-section/two-thirds-one-third-section.js.map +1 -1
- package/dist/components/layout/page-sections/two-thirds-one-third-section/two-thirds-one-third-section.styles.d.ts.map +1 -1
- package/dist/components/layout/page-sections/two-thirds-one-third-section/two-thirds-one-third-section.styles.js +12 -13
- package/dist/components/layout/page-sections/two-thirds-one-third-section/two-thirds-one-third-section.styles.js.map +1 -1
- package/dist/components/layout/shell/shell.d.ts +2 -0
- package/dist/components/layout/shell/shell.d.ts.map +1 -1
- package/dist/components/layout/shell/shell.js +2 -0
- package/dist/components/layout/shell/shell.js.map +1 -1
- package/dist/components/layout/split-views/bar-split-view/bar-split-view.d.ts +2 -1
- 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 +30 -17
- package/dist/components/layout/split-views/bar-split-view/bar-split-view.js.map +1 -1
- package/dist/components/layout/split-views/navigation-split-view/navigation-split-view.d.ts +8 -3
- package/dist/components/layout/split-views/navigation-split-view/navigation-split-view.d.ts.map +1 -1
- package/dist/components/layout/split-views/navigation-split-view/navigation-split-view.js +35 -20
- package/dist/components/layout/split-views/navigation-split-view/navigation-split-view.js.map +1 -1
- package/dist/components/layout/split-views/navigation-split-view/navigation-split-view.styles.js +1 -1
- package/dist/components/layout/split-views/side-by-side-split-view/side-by-side-split-view.d.ts +6 -2
- package/dist/components/layout/split-views/side-by-side-split-view/side-by-side-split-view.d.ts.map +1 -1
- package/dist/components/layout/split-views/side-by-side-split-view/side-by-side-split-view.js +30 -15
- package/dist/components/layout/split-views/side-by-side-split-view/side-by-side-split-view.js.map +1 -1
- package/dist/components/layout/split-views/side-by-side-split-view/side-by-side-split-view.styles.js +1 -1
- package/dist/components/layout/split-views/stacked-split-view/stacked-split-view.d.ts +6 -3
- package/dist/components/layout/split-views/stacked-split-view/stacked-split-view.d.ts.map +1 -1
- package/dist/components/layout/split-views/stacked-split-view/stacked-split-view.js +28 -16
- package/dist/components/layout/split-views/stacked-split-view/stacked-split-view.js.map +1 -1
- package/dist/components/layout/split-views/stacked-split-view/stacked-split-view.styles.js +1 -1
- package/dist/components/lists-and-tables/list/list.d.ts +19 -0
- package/dist/components/lists-and-tables/list/list.d.ts.map +1 -1
- package/dist/components/lists-and-tables/list/list.js +47 -15
- package/dist/components/lists-and-tables/list/list.js.map +1 -1
- package/dist/components/lists-and-tables/list/list.roving.d.ts +2 -1
- package/dist/components/lists-and-tables/list/list.roving.d.ts.map +1 -1
- package/dist/components/lists-and-tables/list/list.roving.js +7 -3
- package/dist/components/lists-and-tables/list/list.roving.js.map +1 -1
- package/dist/components/lists-and-tables/list-item/list-item.styles.d.ts.map +1 -1
- package/dist/components/lists-and-tables/list-item/list-item.styles.js +0 -1
- package/dist/components/lists-and-tables/list-item/list-item.styles.js.map +1 -1
- package/dist/components/lists-and-tables/table/table.d.ts +34 -6
- package/dist/components/lists-and-tables/table/table.d.ts.map +1 -1
- package/dist/components/lists-and-tables/table/table.js +143 -40
- package/dist/components/lists-and-tables/table/table.js.map +1 -1
- package/dist/components/lists-and-tables/table/table.styles.d.ts.map +1 -1
- package/dist/components/lists-and-tables/table/table.styles.js +13 -0
- package/dist/components/lists-and-tables/table/table.styles.js.map +1 -1
- package/dist/components/lists-and-tables/table/table.template.d.ts.map +1 -1
- package/dist/components/lists-and-tables/table/table.template.js +6 -0
- package/dist/components/lists-and-tables/table/table.template.js.map +1 -1
- package/dist/components/navigation/document-tab-bar/document-tab-bar.d.ts +33 -2
- package/dist/components/navigation/document-tab-bar/document-tab-bar.d.ts.map +1 -1
- package/dist/components/navigation/document-tab-bar/document-tab-bar.js +136 -38
- package/dist/components/navigation/document-tab-bar/document-tab-bar.js.map +1 -1
- package/dist/components/navigation/menu-bar/menu-bar.d.ts +21 -3
- package/dist/components/navigation/menu-bar/menu-bar.d.ts.map +1 -1
- package/dist/components/navigation/menu-bar/menu-bar.js +61 -29
- package/dist/components/navigation/menu-bar/menu-bar.js.map +1 -1
- package/dist/components/navigation/tab-bar/tab-bar.d.ts +26 -4
- package/dist/components/navigation/tab-bar/tab-bar.d.ts.map +1 -1
- package/dist/components/navigation/tab-bar/tab-bar.js +99 -24
- 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 +1 -0
- package/dist/components/navigation/tab-bar/tab-bar.template.js.map +1 -1
- package/dist/components/navigation/top-navigation-bar/top-navigation-bar.d.ts +23 -14
- package/dist/components/navigation/top-navigation-bar/top-navigation-bar.d.ts.map +1 -1
- package/dist/components/navigation/top-navigation-bar/top-navigation-bar.js +126 -83
- package/dist/components/navigation/top-navigation-bar/top-navigation-bar.js.map +1 -1
- package/dist/components/navigation/top-navigation-bar/top-navigation-bar.styles.js +28 -28
- package/dist/components/navigation/top-navigation-bar/top-navigation-bar.styles.js.map +1 -1
- package/dist/components/navigation/top-title-bar/top-title-bar.d.ts +5 -1
- 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 +36 -13
- package/dist/components/navigation/top-title-bar/top-title-bar.js.map +1 -1
- package/dist/components/status-and-feedback/progress-bar/progress-bar.d.ts +1 -0
- package/dist/components/status-and-feedback/progress-bar/progress-bar.d.ts.map +1 -1
- package/dist/components/status-and-feedback/progress-bar/progress-bar.js +6 -0
- package/dist/components/status-and-feedback/progress-bar/progress-bar.js.map +1 -1
- package/dist/components/status-and-feedback/progress-circle/progress-circle.d.ts +1 -0
- package/dist/components/status-and-feedback/progress-circle/progress-circle.d.ts.map +1 -1
- package/dist/components/status-and-feedback/progress-circle/progress-circle.js +6 -0
- package/dist/components/status-and-feedback/progress-circle/progress-circle.js.map +1 -1
- package/dist/components/status-and-feedback/status-bar/status-bar.d.ts +0 -1
- 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 +26 -6
- package/dist/components/status-and-feedback/status-bar/status-bar.js.map +1 -1
- package/dist/nldd.min.js +882 -816
- package/dist/types/react.d.ts +8 -8
- package/dist/types/vue.d.ts +8 -8
- package/dist/utilities/after-parse.d.ts +30 -0
- package/dist/utilities/after-parse.d.ts.map +1 -0
- package/dist/utilities/after-parse.js +44 -0
- package/dist/utilities/after-parse.js.map +1 -0
- package/dist/utilities/dev-checks.d.ts +6 -0
- package/dist/utilities/dev-checks.d.ts.map +1 -1
- package/dist/utilities/dev-checks.js +42 -16
- package/dist/utilities/dev-checks.js.map +1 -1
- package/dist/utilities/dev-rules.generated.d.ts.map +1 -1
- package/dist/utilities/dev-rules.generated.js +39 -2
- package/dist/utilities/dev-rules.generated.js.map +1 -1
- package/dist/utilities/frame-pass.d.ts +28 -0
- package/dist/utilities/frame-pass.d.ts.map +1 -0
- package/dist/utilities/frame-pass.js +41 -0
- package/dist/utilities/frame-pass.js.map +1 -0
- package/dist/utilities/layout-pass.d.ts +49 -0
- package/dist/utilities/layout-pass.d.ts.map +1 -0
- package/dist/utilities/layout-pass.js +103 -0
- package/dist/utilities/layout-pass.js.map +1 -0
- package/dist/utilities/radio-grouping.d.ts +30 -4
- package/dist/utilities/radio-grouping.d.ts.map +1 -1
- package/dist/utilities/radio-grouping.js +98 -17
- package/dist/utilities/radio-grouping.js.map +1 -1
- package/dist/utilities/scroll-mode-controller.d.ts +13 -6
- package/dist/utilities/scroll-mode-controller.d.ts.map +1 -1
- package/dist/utilities/scroll-mode-controller.js +47 -21
- package/dist/utilities/scroll-mode-controller.js.map +1 -1
- package/lint/css.js +58 -26
- package/lint/data.generated.json +1 -1
- package/lint/engine.js +29 -12
- package/lint/fix.js +103 -12
- package/lint/format.js +4 -3
- package/lint/frontends.js +153 -35
- package/lint/linter.js +174 -25
- package/lint/main.js +7 -2
- package/lint/project.js +50 -12
- package/lint/rule-compiler.js +20 -11
- package/lint/rule-data.js +8 -0
- package/lint/rule.schema.json +2 -1
- package/lint/session.js +42 -18
- package/lint/tree.js +5 -2
- package/package.json +1 -1
- package/dist/cdn/chunks/scroll-mode-controller-COUD1-3P.js +0 -42
- package/dist/cdn/chunks/toolbar-be8hoSAz.js +0 -364
|
@@ -1,48 +1,48 @@
|
|
|
1
|
-
import { $ as e, F as t, H as n, I as r, J as i, L as a, N as o, O as s, P as c, Q as l, R as u, U as d, Y as f, a as p, at as m, ct as h, et as g, j as _, k as v, n as ee, q as te, r as ne, rt as y, st as b, tt as
|
|
2
|
-
import { n as
|
|
3
|
-
import { t as
|
|
4
|
-
import { a as
|
|
5
|
-
import { a as
|
|
6
|
-
import { t as
|
|
7
|
-
import { t as
|
|
8
|
-
import "./icon-
|
|
9
|
-
import { a as
|
|
10
|
-
import "./avatar-
|
|
11
|
-
import { o as
|
|
12
|
-
import { t as
|
|
13
|
-
import { t as
|
|
14
|
-
import { t as
|
|
15
|
-
import { r as
|
|
1
|
+
import { $ as e, F as t, H as n, I as r, J as i, L as a, N as o, O as s, P as c, Q as l, R as u, U as d, Y as f, a as p, at as m, ct as h, et as g, j as _, k as v, n as ee, q as te, r as ne, rt as y, st as b, tt as re, ut as ie } from "./languages-CPd7_I8H.js";
|
|
2
|
+
import { n as ae, r as x, s as oe } from "./custom-element-DtLjpays.js";
|
|
3
|
+
import { t as se } from "./reflect-non-default-Bu3rpCvg.js";
|
|
4
|
+
import { a as ce, c as le, d as ue, f as de, i as fe, l as pe, n as me, o as he, r as ge, s as _e, t as ve, u as ye } from "./codemirror-input-CYBNNf0-.js";
|
|
5
|
+
import { a as be, i as xe, r as Se, t as Ce } from "./dist-CYKK2xXE.js";
|
|
6
|
+
import { t as we } from "./custom-element-BW8Ua4c7.js";
|
|
7
|
+
import { t as Te } from "./query-ChDzi9FQ.js";
|
|
8
|
+
import "./icon-Dj98ov4G.js";
|
|
9
|
+
import { a as Ee, c as De, i as Oe, n as ke } from "./dist-Dzlvec4O.js";
|
|
10
|
+
import "./avatar-nLrlfh4s.js";
|
|
11
|
+
import { o as Ae, t as S } from "./decorate-BhnGmemK.js";
|
|
12
|
+
import { t as je } from "./shadow-resets-DR73IFIL.js";
|
|
13
|
+
import { t as Me } from "./text-editor.i18n-sJKiRQ4i.js";
|
|
14
|
+
import { t as Ne } from "./translations-C6WKR-hE.js";
|
|
15
|
+
import { r as Pe } from "./element-state-B-44fVqq.js";
|
|
16
16
|
// src/components/inputs/text-editor/text-editor.labels.ts
|
|
17
|
-
var
|
|
17
|
+
var Fe = b.define();
|
|
18
18
|
// src/components/inputs/text-editor/text-editor.syntax.ts
|
|
19
|
-
function
|
|
19
|
+
function C(e, t, n, r) {
|
|
20
20
|
for (let i = s(e).resolveInner(t, n); i; i = i.parent) if (r(i)) return i;
|
|
21
21
|
return null;
|
|
22
22
|
}
|
|
23
|
-
var
|
|
24
|
-
function
|
|
25
|
-
return
|
|
23
|
+
var w = /* @__PURE__ */ new Set(["FencedCode", "CodeBlock"]), Ie = /* @__PURE__ */ new Set([...w, "InlineCode"]);
|
|
24
|
+
function T(e, t) {
|
|
25
|
+
return D(e, t, 1, w) !== null;
|
|
26
26
|
}
|
|
27
|
-
function
|
|
28
|
-
return
|
|
27
|
+
function Le(e, t) {
|
|
28
|
+
return D(e, t, 1, Ie) !== null;
|
|
29
29
|
}
|
|
30
|
-
function
|
|
30
|
+
function Re(e, t, n, r) {
|
|
31
31
|
for (let i = t; i <= n;) {
|
|
32
32
|
let t = e.doc.lineAt(i);
|
|
33
33
|
r(t.from), i = t.to + 1;
|
|
34
34
|
}
|
|
35
35
|
}
|
|
36
|
-
function
|
|
36
|
+
function E(e, t) {
|
|
37
37
|
return s(e) !== s(t);
|
|
38
38
|
}
|
|
39
|
-
function
|
|
40
|
-
return
|
|
39
|
+
function ze(e, t) {
|
|
40
|
+
return D(e, t, 1, "HorizontalRule") !== null;
|
|
41
41
|
}
|
|
42
|
-
function
|
|
43
|
-
return
|
|
42
|
+
function D(e, t, n, r) {
|
|
43
|
+
return C(e, t, n, typeof r == "string" ? (e) => e.name === r : (e) => r.has(e.name));
|
|
44
44
|
}
|
|
45
|
-
function
|
|
45
|
+
function Be(e) {
|
|
46
46
|
let t = [];
|
|
47
47
|
for (let n = e.firstChild; n; n = n.nextSibling) n.name === "LinkMark" && t.push(n);
|
|
48
48
|
if (t.length < 2) return null;
|
|
@@ -53,35 +53,35 @@ function ze(e) {
|
|
|
53
53
|
} : null;
|
|
54
54
|
}
|
|
55
55
|
// src/components/inputs/text-editor/text-editor.mention.ts
|
|
56
|
-
var
|
|
57
|
-
function Ve(e) {
|
|
58
|
-
return `[@${e.text.replace(/[[\]\\]/g, (e) => "\\" + e)}](${Be}${encodeURIComponent(e.id).replace(/[()<>]/g, (e) => "%" + e.charCodeAt(0).toString(16).toUpperCase())})`;
|
|
59
|
-
}
|
|
56
|
+
var Ve = "user:";
|
|
60
57
|
function He(e) {
|
|
61
|
-
return
|
|
58
|
+
return `[@${e.text.replace(/[[\]\\]/g, (e) => "\\" + e)}](${Ve}${encodeURIComponent(e.id).replace(/[()<>]/g, (e) => "%" + e.charCodeAt(0).toString(16).toUpperCase())})`;
|
|
62
59
|
}
|
|
63
60
|
function Ue(e) {
|
|
64
|
-
return e
|
|
61
|
+
return `${He(e)} `;
|
|
65
62
|
}
|
|
66
63
|
function We(e) {
|
|
64
|
+
return e.replace(/\\([[\]\\])/g, "$1");
|
|
65
|
+
}
|
|
66
|
+
function Ge(e) {
|
|
67
67
|
try {
|
|
68
68
|
return decodeURIComponent(e);
|
|
69
69
|
} catch {
|
|
70
70
|
return e;
|
|
71
71
|
}
|
|
72
72
|
}
|
|
73
|
-
var
|
|
74
|
-
function
|
|
75
|
-
return e.startsWith(
|
|
73
|
+
var Ke = RegExp(`\\[(@[^\\]]*)\\]\\(${Ve}[^)]*\\)`, "g");
|
|
74
|
+
function qe(e) {
|
|
75
|
+
return e.startsWith(Ve);
|
|
76
76
|
}
|
|
77
|
-
function
|
|
77
|
+
function O(e, t) {
|
|
78
78
|
let n = t.getChild("URL");
|
|
79
|
-
return n !== null &&
|
|
79
|
+
return n !== null && qe(e.sliceDoc(n.from, n.to));
|
|
80
80
|
}
|
|
81
|
-
function
|
|
81
|
+
function Je(e, t, n) {
|
|
82
82
|
return e.from === e.to || e.from > t || e.to < n ? "none" : e.from === t && e.to === n ? "alone" : "within";
|
|
83
83
|
}
|
|
84
|
-
var
|
|
84
|
+
var Ye = class extends t {
|
|
85
85
|
constructor(e, t, n) {
|
|
86
86
|
super(), this.label = e, this.id = t, this.selected = n;
|
|
87
87
|
}
|
|
@@ -97,65 +97,65 @@ var Je = class extends t {
|
|
|
97
97
|
return n.className = "cm-md-mention-token-name", n.dataset.label = this.label, e.append(t, n), e;
|
|
98
98
|
}
|
|
99
99
|
};
|
|
100
|
-
function
|
|
100
|
+
function Xe(e) {
|
|
101
101
|
let t = [], n = e.selection.main;
|
|
102
102
|
return s(e).iterate({ enter: (r) => {
|
|
103
|
-
if (
|
|
103
|
+
if (Ie.has(r.name)) return !1;
|
|
104
104
|
if (r.name !== "Link") return;
|
|
105
105
|
let i = r.node, a = i.getChild("URL");
|
|
106
|
-
if (!a || !
|
|
107
|
-
let o =
|
|
106
|
+
if (!a || !O(e, i)) return;
|
|
107
|
+
let o = Be(i);
|
|
108
108
|
if (!o) return;
|
|
109
|
-
let s =
|
|
110
|
-
t.push(v.replace({ widget: new
|
|
109
|
+
let s = We(e.sliceDoc(o.from, o.to).replace(/^@/, "")), c = Ge(e.sliceDoc(a.from, a.to).slice(5)), l = Je(n, i.from, i.to);
|
|
110
|
+
t.push(v.replace({ widget: new Ye(s, c, l) }).range(i.from, i.to));
|
|
111
111
|
} }), v.set(t, !0);
|
|
112
112
|
}
|
|
113
|
-
function
|
|
113
|
+
function Ze(e, t, n) {
|
|
114
114
|
let r = !1;
|
|
115
115
|
return e.between(0, 1e9, (e, i) => {
|
|
116
|
-
if (
|
|
116
|
+
if (Je(t, e, i) !== Je(n, e, i)) return r = !0, !1;
|
|
117
117
|
}), r;
|
|
118
118
|
}
|
|
119
|
-
var
|
|
120
|
-
create: (e) =>
|
|
121
|
-
update: (e, t) => t.docChanged ||
|
|
119
|
+
var Qe = h.define({
|
|
120
|
+
create: (e) => Xe(e),
|
|
121
|
+
update: (e, t) => t.docChanged || E(t.startState, t.state) ? Xe(t.state) : t.startState.selection.eq(t.state.selection) ? e : Ze(e, t.startState.selection.main, t.state.selection.main) ? Xe(t.state) : e,
|
|
122
122
|
provide: (e) => _.decorations.from(e)
|
|
123
|
-
}),
|
|
124
|
-
function
|
|
125
|
-
return
|
|
123
|
+
}), $e = _.atomicRanges.of((e) => e.state.field(Qe, !1) ?? v.none), et = [y.highest(Qe), $e];
|
|
124
|
+
function tt(e, t, n) {
|
|
125
|
+
return C(e, t, n, (t) => t.name === "Link" && O(e, t));
|
|
126
126
|
}
|
|
127
|
-
function
|
|
128
|
-
let n =
|
|
127
|
+
function nt(e, t) {
|
|
128
|
+
let n = tt(e, t, 1);
|
|
129
129
|
return n ? {
|
|
130
130
|
from: n.from,
|
|
131
131
|
to: n.to
|
|
132
132
|
} : null;
|
|
133
133
|
}
|
|
134
|
-
function
|
|
135
|
-
let n =
|
|
134
|
+
function rt(e, t) {
|
|
135
|
+
let n = tt(e, t, -1);
|
|
136
136
|
return n && n.to === t ? {
|
|
137
137
|
from: n.from,
|
|
138
138
|
to: n.to
|
|
139
139
|
} : null;
|
|
140
140
|
}
|
|
141
|
-
function
|
|
142
|
-
let n =
|
|
141
|
+
function it(e, t) {
|
|
142
|
+
let n = tt(e, t, 1);
|
|
143
143
|
return n && n.from === t ? {
|
|
144
144
|
from: n.from,
|
|
145
145
|
to: n.to
|
|
146
146
|
} : null;
|
|
147
147
|
}
|
|
148
|
-
function
|
|
148
|
+
function at(e, t) {
|
|
149
149
|
let n = e.state.selection.main;
|
|
150
150
|
if (!n.empty) return !1;
|
|
151
|
-
let r = t < 0 ?
|
|
151
|
+
let r = t < 0 ? rt(e.state, n.head) : it(e.state, n.head);
|
|
152
152
|
return r ? (e.dispatch({ selection: {
|
|
153
153
|
anchor: r.from,
|
|
154
154
|
head: r.to
|
|
155
155
|
} }), !0) : !1;
|
|
156
156
|
}
|
|
157
157
|
// src/components/inputs/text-editor/text-editor.caret.ts
|
|
158
|
-
function
|
|
158
|
+
function ot(e) {
|
|
159
159
|
let t = _.findFromDOM(e);
|
|
160
160
|
if (!t) return null;
|
|
161
161
|
let n = t.posAtDOM(e);
|
|
@@ -171,7 +171,7 @@ function at(e) {
|
|
|
171
171
|
}
|
|
172
172
|
}
|
|
173
173
|
// src/components/inputs/text-editor/text-editor.links.ts
|
|
174
|
-
var
|
|
174
|
+
var st = class extends t {
|
|
175
175
|
constructor(e, t) {
|
|
176
176
|
super(), this.href = e, this.ariaLabel = t(e);
|
|
177
177
|
}
|
|
@@ -188,7 +188,7 @@ var ot = class extends t {
|
|
|
188
188
|
return !0;
|
|
189
189
|
}
|
|
190
190
|
coordsAt(e, t, n) {
|
|
191
|
-
let r = e.getBoundingClientRect(), i =
|
|
191
|
+
let r = e.getBoundingClientRect(), i = ot(e) ?? {
|
|
192
192
|
top: r.top,
|
|
193
193
|
bottom: r.bottom
|
|
194
194
|
}, a = getComputedStyle(e), o = n < 0 ? r.left - parseFloat(a.marginLeft) : r.right + parseFloat(a.marginRight);
|
|
@@ -200,50 +200,50 @@ var ot = class extends t {
|
|
|
200
200
|
};
|
|
201
201
|
}
|
|
202
202
|
};
|
|
203
|
-
function
|
|
203
|
+
function ct(e) {
|
|
204
204
|
return e.replace(/^\[|\]$/g, "").trim().replace(/\s+/g, " ").toLowerCase();
|
|
205
205
|
}
|
|
206
|
-
function
|
|
206
|
+
function lt(e) {
|
|
207
207
|
let t = /* @__PURE__ */ new Map();
|
|
208
208
|
return s(e).iterate({ enter: (n) => {
|
|
209
209
|
if (n.name !== "LinkReference") return;
|
|
210
210
|
let r = null, i = null;
|
|
211
|
-
for (let t = n.node.firstChild; t; t = t.nextSibling) t.name === "LinkLabel" ? r =
|
|
211
|
+
for (let t = n.node.firstChild; t; t = t.nextSibling) t.name === "LinkLabel" ? r = ct(e.sliceDoc(t.from, t.to)) : t.name === "URL" && (i = e.sliceDoc(t.from, t.to));
|
|
212
212
|
r && i && !t.has(r) && t.set(r, i);
|
|
213
213
|
} }), t;
|
|
214
214
|
}
|
|
215
|
-
function
|
|
215
|
+
function ut(e) {
|
|
216
216
|
let t = e.replace(/[\u0000-\u0020\u007f-\u009f]/g, "");
|
|
217
217
|
return !/^[a-z][a-z0-9+.-]*:/i.test(t) || /^(?:https?|mailto|tel):/i.test(t);
|
|
218
218
|
}
|
|
219
|
-
function
|
|
219
|
+
function dt(e, t, n) {
|
|
220
220
|
let r = null;
|
|
221
221
|
for (let n = t.firstChild; n; n = n.nextSibling) {
|
|
222
222
|
if (n.name === "URL") {
|
|
223
223
|
let t = e.sliceDoc(n.from, n.to);
|
|
224
|
-
return t && !
|
|
224
|
+
return t && !qe(t) && ut(t) ? t : null;
|
|
225
225
|
}
|
|
226
|
-
n.name === "LinkLabel" && (r =
|
|
226
|
+
n.name === "LinkLabel" && (r = ct(e.sliceDoc(n.from, n.to)));
|
|
227
227
|
}
|
|
228
228
|
if (r) {
|
|
229
229
|
let e = n().get(r);
|
|
230
|
-
return e && !
|
|
230
|
+
return e && !qe(e) && ut(e) ? e : null;
|
|
231
231
|
}
|
|
232
232
|
return null;
|
|
233
233
|
}
|
|
234
|
-
function
|
|
234
|
+
function k(e) {
|
|
235
235
|
for (let t = e.parent; t; t = t.parent) if (t.name === "Link" || t.name === "LinkReference" || t.name === "Image") return !0;
|
|
236
236
|
return !1;
|
|
237
237
|
}
|
|
238
238
|
function ft(e, t) {
|
|
239
239
|
let n = e.sliceDoc(t.from, t.to);
|
|
240
|
-
if (!n ||
|
|
240
|
+
if (!n || qe(n)) return null;
|
|
241
241
|
let r = n;
|
|
242
|
-
return /^[a-z][a-z0-9+.-]*:/i.test(n) || (/^www\./i.test(n) ? r = `https://${n}` : /^[^\s@]+@[^\s@]+$/.test(n) && (r = `mailto:${n}`)),
|
|
242
|
+
return /^[a-z][a-z0-9+.-]*:/i.test(n) || (/^www\./i.test(n) ? r = `https://${n}` : /^[^\s@]+@[^\s@]+$/.test(n) && (r = `mailto:${n}`)), ut(r) ? r : null;
|
|
243
243
|
}
|
|
244
244
|
function pt(e, t) {
|
|
245
|
-
let n = new m(), r = s(e.state), i = null, a = () => i ?? (i =
|
|
246
|
-
widget: new
|
|
245
|
+
let n = new m(), r = s(e.state), i = null, a = () => i ?? (i = lt(e.state)), o = (e, r) => n.add(e, e, v.widget({
|
|
246
|
+
widget: new st(r, t),
|
|
247
247
|
side: -1
|
|
248
248
|
}));
|
|
249
249
|
for (let { from: t, to: n } of e.visibleRanges) r.iterate({
|
|
@@ -251,9 +251,9 @@ function pt(e, t) {
|
|
|
251
251
|
to: n,
|
|
252
252
|
enter: (t) => {
|
|
253
253
|
if (t.name === "Link") {
|
|
254
|
-
let n =
|
|
254
|
+
let n = dt(e.state, t.node, a);
|
|
255
255
|
n && o(t.to, n);
|
|
256
|
-
} else if (t.name === "URL" && !
|
|
256
|
+
} else if (t.name === "URL" && !k(t.node)) {
|
|
257
257
|
let n = ft(e.state, t.node);
|
|
258
258
|
n && o(t.to, n);
|
|
259
259
|
}
|
|
@@ -267,16 +267,16 @@ function mt(e) {
|
|
|
267
267
|
this.decorations = pt(t, e);
|
|
268
268
|
}
|
|
269
269
|
update(t) {
|
|
270
|
-
(t.docChanged || t.viewportChanged ||
|
|
270
|
+
(t.docChanged || t.viewportChanged || E(t.startState, t.state) || t.transactions.some((e) => e.effects.some((e) => e.is(Fe)))) && (this.decorations = pt(t.view, e));
|
|
271
271
|
}
|
|
272
272
|
}, { decorations: (e) => e.decorations });
|
|
273
273
|
}
|
|
274
274
|
function ht(e, t) {
|
|
275
275
|
let n = null;
|
|
276
|
-
return
|
|
276
|
+
return C(e, t, -1, (r) => r.to === t ? r.name === "Link" ? dt(e, r, () => n ?? (n = lt(e))) !== null : r.name === "URL" && !k(r) && ft(e, r) !== null : !1) !== null;
|
|
277
277
|
}
|
|
278
278
|
function gt(e, t) {
|
|
279
|
-
return
|
|
279
|
+
return C(e, t, -1, (n) => n.name === "URL" && n.to === t && !k(n) && ft(e, n) !== null) !== null;
|
|
280
280
|
}
|
|
281
281
|
// src/components/inputs/text-editor/text-editor.emphasis.ts
|
|
282
282
|
var A = /* @__PURE__ */ new Map([
|
|
@@ -300,10 +300,10 @@ var A = /* @__PURE__ */ new Map([
|
|
|
300
300
|
to: t.mapPos(e.to, -1)
|
|
301
301
|
}) });
|
|
302
302
|
function bt(e, t, n) {
|
|
303
|
-
return
|
|
303
|
+
return C(e, t, n, (e) => A.has(e.name));
|
|
304
304
|
}
|
|
305
305
|
function xt(e, t) {
|
|
306
|
-
return
|
|
306
|
+
return D(e, t, 1, _t);
|
|
307
307
|
}
|
|
308
308
|
function St(e) {
|
|
309
309
|
let { from: t, to: n } = e.selection.main, r = bt(e, t, -1), i = r && bt(e, n, 1);
|
|
@@ -447,10 +447,10 @@ var jt = [j, c.fromClass(class {
|
|
|
447
447
|
}
|
|
448
448
|
})], Mt = y.high(n.of([{
|
|
449
449
|
key: "Enter",
|
|
450
|
-
run:
|
|
450
|
+
run: Se({ nonTightLists: !1 })
|
|
451
451
|
}, {
|
|
452
452
|
key: "Backspace",
|
|
453
|
-
run:
|
|
453
|
+
run: Ce
|
|
454
454
|
}])), M = /^( *)([-*+]|\d{1,9}[.)])( +|$)/, Nt = /^( *)([-*+]|\d{1,9}[.)]) ( *)([-*+]|\d{1,9}[.)]) $/, Pt = /^( +)([-*+]|\d{1,9}[.)]) $/, Ft = /^((?:> ?)*> )> $/, It = (e) => /\d/.test(e);
|
|
455
455
|
function N(e, t) {
|
|
456
456
|
let n = [], r = Infinity, i = 0;
|
|
@@ -496,7 +496,7 @@ function Rt(e, t, n) {
|
|
|
496
496
|
var zt = _.inputHandler.of((e, t, n, r) => {
|
|
497
497
|
if (r !== " " || t !== n || e.state.readOnly) return !1;
|
|
498
498
|
let i = e.state.doc.lineAt(t);
|
|
499
|
-
if (
|
|
499
|
+
if (T(e.state, i.from)) return !1;
|
|
500
500
|
let a = i.text.slice(0, t - i.from) + " ", o = Rt(e.state, i.number, a);
|
|
501
501
|
return o === null || o === a ? !1 : (e.dispatch({
|
|
502
502
|
changes: {
|
|
@@ -513,7 +513,7 @@ var zt = _.inputHandler.of((e, t, n, r) => {
|
|
|
513
513
|
},
|
|
514
514
|
selection: { anchor: i.from + o.length },
|
|
515
515
|
userEvent: "input.complete",
|
|
516
|
-
annotations:
|
|
516
|
+
annotations: le.of("before")
|
|
517
517
|
}), !0);
|
|
518
518
|
}), Bt = {
|
|
519
519
|
ATXHeading1: "cm-md-h1",
|
|
@@ -569,7 +569,7 @@ function Zt(e, t, n, r) {
|
|
|
569
569
|
Yt(e, s, n, r);
|
|
570
570
|
}
|
|
571
571
|
function Qt(e, t, n) {
|
|
572
|
-
|
|
572
|
+
O(e, t) || n.push(P("cm-md-link").range(t.from, t.to));
|
|
573
573
|
}
|
|
574
574
|
function $t(e) {
|
|
575
575
|
let t = [], n = e.state.selection.main;
|
|
@@ -590,11 +590,11 @@ function $t(e) {
|
|
|
590
590
|
Xt(e.state, r.from, r.to, n, t);
|
|
591
591
|
return;
|
|
592
592
|
}
|
|
593
|
-
if (r.name === "URL" && !
|
|
593
|
+
if (r.name === "URL" && !k(r.node)) {
|
|
594
594
|
t.push(P("cm-md-autolink").range(r.from, r.to));
|
|
595
595
|
return;
|
|
596
596
|
}
|
|
597
|
-
r.name === "Blockquote" && r.node.parent?.name !== "Blockquote" &&
|
|
597
|
+
r.name === "Blockquote" && r.node.parent?.name !== "Blockquote" && Re(e.state, r.from, r.to, (e) => t.push(Ut.range(e)));
|
|
598
598
|
let i = Bt[r.name];
|
|
599
599
|
if (i) {
|
|
600
600
|
if (i === "cm-md-code" && !n.empty && n.from <= r.from && n.to >= r.to) t.push(P("cm-md-code cm-md-code-selected").range(r.from, r.to));
|
|
@@ -617,7 +617,7 @@ var en = c.fromClass(class {
|
|
|
617
617
|
this.decorations = $t(e);
|
|
618
618
|
}
|
|
619
619
|
update(e) {
|
|
620
|
-
(e.docChanged || e.viewportChanged || e.selectionSet ||
|
|
620
|
+
(e.docChanged || e.viewportChanged || e.selectionSet || E(e.startState, e.state)) && (this.decorations = $t(e.view));
|
|
621
621
|
}
|
|
622
622
|
}, { decorations: (e) => e.decorations }), tn = /^((?:[ \t]*(?:[-*+][ \t]+(?:\[[ xX]\][ \t]+)?|\d+[.)][ \t]+|>[ \t]?))+)/;
|
|
623
623
|
function nn(e) {
|
|
@@ -631,7 +631,7 @@ function sn(e) {
|
|
|
631
631
|
let t = [], n = 0;
|
|
632
632
|
for (let r = e.doc.iterLines(); !r.next().done;) {
|
|
633
633
|
let i = r.value, a = tn.exec(i);
|
|
634
|
-
if (a && a[1].length && !
|
|
634
|
+
if (a && a[1].length && !T(e, n) && !ze(e, n)) {
|
|
635
635
|
let e = a[1].length;
|
|
636
636
|
t.push(on(e).range(n)), t.push(rn.range(n, n + e));
|
|
637
637
|
}
|
|
@@ -641,12 +641,12 @@ function sn(e) {
|
|
|
641
641
|
}
|
|
642
642
|
var cn = h.define({
|
|
643
643
|
create: (e) => sn(e),
|
|
644
|
-
update: (e, t) => t.docChanged ||
|
|
644
|
+
update: (e, t) => t.docChanged || E(t.startState, t.state) ? sn(t.state) : e,
|
|
645
645
|
provide: (e) => _.decorations.from(e)
|
|
646
646
|
}), ln = [
|
|
647
|
-
|
|
647
|
+
xe({
|
|
648
648
|
extensions: [
|
|
649
|
-
|
|
649
|
+
be,
|
|
650
650
|
{ remove: ["IndentedCode"] },
|
|
651
651
|
{ parseBlock: [{
|
|
652
652
|
name: "IndentedText",
|
|
@@ -666,7 +666,7 @@ var cn = h.define({
|
|
|
666
666
|
en,
|
|
667
667
|
jt,
|
|
668
668
|
cn,
|
|
669
|
-
|
|
669
|
+
et
|
|
670
670
|
], un = "[\\p{L}\\p{M}\\p{N}_.+-]*", dn = /* @__PURE__ */ new Map();
|
|
671
671
|
function fn(e, t) {
|
|
672
672
|
if (e.length !== 1 || /[\s\p{L}\p{N}_]/u.test(e)) return null;
|
|
@@ -714,7 +714,7 @@ function hn(e, t, n) {
|
|
|
714
714
|
}
|
|
715
715
|
if (!a) return null;
|
|
716
716
|
let o = r.from + a.index + a[1].length;
|
|
717
|
-
return
|
|
717
|
+
return Le(e, o) ? null : {
|
|
718
718
|
from: o,
|
|
719
719
|
to: t,
|
|
720
720
|
query: a[3],
|
|
@@ -826,7 +826,7 @@ var I = h.define({
|
|
|
826
826
|
}])),
|
|
827
827
|
_.focusChangeEffect.of((e, t) => !t && e.field(I, !1) ? F.of(null) : null),
|
|
828
828
|
_.updateListener.of((e) => {
|
|
829
|
-
|
|
829
|
+
Oe(e.state) === "active" && e.state.field(I, !1) && queueMicrotask(() => e.view.dispatch({ effects: F.of(null) }));
|
|
830
830
|
})
|
|
831
831
|
];
|
|
832
832
|
function Sn(e) {
|
|
@@ -835,10 +835,10 @@ function Sn(e) {
|
|
|
835
835
|
this.status = document.createElement("div"), this.status.className = "cm-nldd-typeahead-status", this.status.setAttribute("role", "status"), e.dom.append(this.status);
|
|
836
836
|
}
|
|
837
837
|
update(t) {
|
|
838
|
-
let n =
|
|
838
|
+
let n = Oe(t.state);
|
|
839
839
|
if (n === "pending") return;
|
|
840
840
|
let r = t.state.field(I, !1), i = "";
|
|
841
|
-
r ? i = r.text : n === "active" && (i = e(
|
|
841
|
+
r ? i = r.text : n === "active" && (i = e(Ee(t.state).length)), this.status.textContent !== i && (this.status.textContent = i);
|
|
842
842
|
}
|
|
843
843
|
destroy() {
|
|
844
844
|
this.status.remove();
|
|
@@ -876,11 +876,11 @@ function Cn() {
|
|
|
876
876
|
}
|
|
877
877
|
function wn(e, t, n = () => null, r = (e) => String(e)) {
|
|
878
878
|
let i = _.updateListener.of((t) => {
|
|
879
|
-
t.docChanged &&
|
|
879
|
+
t.docChanged && Oe(t.state) === null && t.transactions.some((e) => e.isUserEvent("delete")) && hn(t.state, t.state.selection.main.head, e()) && De(t.view);
|
|
880
880
|
});
|
|
881
881
|
return [
|
|
882
882
|
Cn(),
|
|
883
|
-
|
|
883
|
+
ke({
|
|
884
884
|
override: [yn(e, t, n)],
|
|
885
885
|
icons: !1,
|
|
886
886
|
addToOptions: [{
|
|
@@ -896,7 +896,7 @@ function wn(e, t, n = () => null, r = (e) => String(e)) {
|
|
|
896
896
|
];
|
|
897
897
|
}
|
|
898
898
|
// src/components/inputs/text-editor/text-editor.spellcheck.ts
|
|
899
|
-
var Tn =
|
|
899
|
+
var Tn = re.define(), En = /* @__PURE__ */ new Set([
|
|
900
900
|
"InlineCode",
|
|
901
901
|
"FencedCode",
|
|
902
902
|
"CodeBlock",
|
|
@@ -904,7 +904,7 @@ var Tn = x.define(), En = /* @__PURE__ */ new Set([
|
|
|
904
904
|
"Autolink"
|
|
905
905
|
]);
|
|
906
906
|
function Dn(e, t) {
|
|
907
|
-
return e.name === "Link" &&
|
|
907
|
+
return e.name === "Link" && O(t, e.node);
|
|
908
908
|
}
|
|
909
909
|
var On = Tn.of((e, t) => En.has(e.name) || Dn(e, t)), kn = v.mark({ attributes: { spellcheck: "false" } });
|
|
910
910
|
function An(e) {
|
|
@@ -923,9 +923,9 @@ var jn = c.fromClass(class {
|
|
|
923
923
|
this.decorations = An(e);
|
|
924
924
|
}
|
|
925
925
|
update(e) {
|
|
926
|
-
(e.docChanged || e.viewportChanged ||
|
|
926
|
+
(e.docChanged || e.viewportChanged || E(e.startState, e.state)) && (this.decorations = An(e.view));
|
|
927
927
|
}
|
|
928
|
-
}, { decorations: (e) => e.decorations }), Mn =
|
|
928
|
+
}, { decorations: (e) => e.decorations }), Mn = re.define({ combine: (e) => e.some(Boolean) }), Nn = /* @__PURE__ */ new WeakMap(), Pn = _.domEventObservers({ keydown(e, t) {
|
|
929
929
|
let n = e.isTrusted && !e.isComposing && !e.shiftKey && !e.altKey && !e.ctrlKey && !e.metaKey;
|
|
930
930
|
Nn.set(t, n && (e.key === "Backspace" || e.key === "Delete") ? e.key : null);
|
|
931
931
|
} });
|
|
@@ -1045,7 +1045,7 @@ var H = h.define({
|
|
|
1045
1045
|
});
|
|
1046
1046
|
function Zn(e) {
|
|
1047
1047
|
let t = [];
|
|
1048
|
-
for (let n of
|
|
1048
|
+
for (let n of e.toSorted((e, t) => e.from - t.from || e.to - t.to)) {
|
|
1049
1049
|
let e = t[t.length - 1];
|
|
1050
1050
|
e && n.from < e.to ? (e.to = Math.max(e.to, n.to), e.ids.push(n.id)) : t.push({
|
|
1051
1051
|
from: n.from,
|
|
@@ -1071,7 +1071,7 @@ var er = class extends t {
|
|
|
1071
1071
|
return e.className = "cm-annotation-badge", e.type = "button", e.dataset.annotations = this.ids.join(" "), e.textContent = String(this.ids.length), e.setAttribute("aria-label", this.ariaLabel), e;
|
|
1072
1072
|
}
|
|
1073
1073
|
coordsAt(e, t, n) {
|
|
1074
|
-
let r = e.getBoundingClientRect(), i = getComputedStyle(e), a =
|
|
1074
|
+
let r = e.getBoundingClientRect(), i = getComputedStyle(e), a = ot(e) ?? {
|
|
1075
1075
|
top: r.top,
|
|
1076
1076
|
bottom: r.bottom
|
|
1077
1077
|
}, o = e.closest(".cm-annotation"), s = o ? o.getClientRects() : null, c = s && s.length ? s[s.length - 1] : null, l = t <= 0 ? r.left - parseFloat(i.marginLeft) : c ? c.right : r.right + parseFloat(i.marginRight);
|
|
@@ -1100,7 +1100,7 @@ var er = class extends t {
|
|
|
1100
1100
|
let r = e.nextElementSibling;
|
|
1101
1101
|
for (; r instanceof HTMLElement && r.classList.contains("cm-widgetBuffer");) r = r.nextElementSibling;
|
|
1102
1102
|
if (!(r instanceof HTMLElement) || !r.classList.contains("cm-annotation")) return null;
|
|
1103
|
-
let i = parseFloat(getComputedStyle(r).paddingInlineStart || "0"), a = r.getClientRects()[0] ?? r.getBoundingClientRect(), o =
|
|
1103
|
+
let i = parseFloat(getComputedStyle(r).paddingInlineStart || "0"), a = r.getClientRects()[0] ?? r.getBoundingClientRect(), o = ot(e) ?? {
|
|
1104
1104
|
top: a.top,
|
|
1105
1105
|
bottom: a.bottom
|
|
1106
1106
|
}, s = t <= 0 ? a.left : a.left + i;
|
|
@@ -1156,7 +1156,7 @@ function ur(e, t) {
|
|
|
1156
1156
|
function dr(e) {
|
|
1157
1157
|
return h.define({
|
|
1158
1158
|
create: (t) => ur(t, e),
|
|
1159
|
-
update: (t, n) => t === lr && !n.state.field(H).length ? t : n.docChanged || !n.startState.selection.eq(n.state.selection) || n.effects.some((e) => e.is(Wn) || e.is(
|
|
1159
|
+
update: (t, n) => t === lr && !n.state.field(H).length ? t : n.docChanged || !n.startState.selection.eq(n.state.selection) || n.effects.some((e) => e.is(Wn) || e.is(Fe)) ? ur(n.state, e) : t,
|
|
1160
1160
|
provide: (e) => _.decorations.from(e, (e) => e.deco)
|
|
1161
1161
|
});
|
|
1162
1162
|
}
|
|
@@ -1192,7 +1192,7 @@ var fr = g.transactionFilter.of((e) => {
|
|
|
1192
1192
|
effects: [Gn.of(i)],
|
|
1193
1193
|
sequential: !0
|
|
1194
1194
|
}];
|
|
1195
|
-
}), pr =
|
|
1195
|
+
}), pr = _e.of((e) => {
|
|
1196
1196
|
if (!e.effects.some((e) => e.is(Gn))) return [];
|
|
1197
1197
|
let t = e.startState.field(H, !1) ?? [];
|
|
1198
1198
|
return [Gn.of(t)];
|
|
@@ -1217,7 +1217,7 @@ function yr(e) {
|
|
|
1217
1217
|
}
|
|
1218
1218
|
var br = (e) => /^ */.exec(e)[0].length;
|
|
1219
1219
|
function xr(e, t) {
|
|
1220
|
-
let { from: n, to: r } = e.selection.main, i = e.doc.lineAt(n), a =
|
|
1220
|
+
let { from: n, to: r } = e.selection.main, i = e.doc.lineAt(n), a = D(e, n, 1, w) ?? D(e, i.from, 1, w);
|
|
1221
1221
|
if (a && a.from < n) return null;
|
|
1222
1222
|
let o = i.text.slice(0, n - i.from), s = vr.exec(o), c = !s && o.trim() !== "";
|
|
1223
1223
|
if (c && (n !== i.to || e.doc.lineAt(r).to !== r)) return null;
|
|
@@ -1319,7 +1319,7 @@ var Cr = class {
|
|
|
1319
1319
|
},
|
|
1320
1320
|
selection: { anchor: d + s.insert.length },
|
|
1321
1321
|
userEvent: "input.complete",
|
|
1322
|
-
annotations:
|
|
1322
|
+
annotations: le.of("before")
|
|
1323
1323
|
});
|
|
1324
1324
|
}
|
|
1325
1325
|
}, wr = 200, Tr = /* @__PURE__ */ new WeakSet();
|
|
@@ -1365,7 +1365,7 @@ var Or = {
|
|
|
1365
1365
|
heading: 0
|
|
1366
1366
|
};
|
|
1367
1367
|
function U(e, t, n, r = 1) {
|
|
1368
|
-
return
|
|
1368
|
+
return D(e.state, t, r, n);
|
|
1369
1369
|
}
|
|
1370
1370
|
function kr(e, t, n) {
|
|
1371
1371
|
let r = U(e, t, n, -1), i = U(e, t, n, 1);
|
|
@@ -1565,7 +1565,7 @@ function Gr(e) {
|
|
|
1565
1565
|
let { state: t } = e, n = t.selection.main;
|
|
1566
1566
|
if (!n.empty) return !1;
|
|
1567
1567
|
let r = t.doc.lineAt(n.head), i = r.text.match(/^(\s*)(?:\d+[.)]|[-*+])\s/);
|
|
1568
|
-
if (!i || n.head !== r.from + i[0].length ||
|
|
1568
|
+
if (!i || n.head !== r.from + i[0].length || T(t, r.from)) return !1;
|
|
1569
1569
|
let a = i[1].length, o = a > 0 ? N(t, r.number).find((e) => e.markerCol < a) : void 0;
|
|
1570
1570
|
if (o) {
|
|
1571
1571
|
let t = r.from + a, i = " ".repeat(o.markerCol);
|
|
@@ -1594,7 +1594,7 @@ function Kr(e) {
|
|
|
1594
1594
|
}
|
|
1595
1595
|
function qr(e, t) {
|
|
1596
1596
|
let n = U(e, t, "Link");
|
|
1597
|
-
return n && !
|
|
1597
|
+
return n && !O(e.state, n) ? n : null;
|
|
1598
1598
|
}
|
|
1599
1599
|
function Jr(t, n = "") {
|
|
1600
1600
|
if (t.state.readOnly) return;
|
|
@@ -1639,7 +1639,7 @@ function Yr(e) {
|
|
|
1639
1639
|
}] }), e.focus();
|
|
1640
1640
|
}
|
|
1641
1641
|
function Xr(e) {
|
|
1642
|
-
let { state: t } = e, n = t.selection.main.head, r = t.field(j, !1), i = (t) => kr(e, n, t) !== null || r?.name === t, a = t.doc.lineAt(n).text, o = t.doc.lineAt(n).from, s = a.match(/^(#{1,6})\s/), c =
|
|
1642
|
+
let { state: t } = e, n = t.selection.main.head, r = t.field(j, !1), i = (t) => kr(e, n, t) !== null || r?.name === t, a = t.doc.lineAt(n).text, o = t.doc.lineAt(n).from, s = a.match(/^(#{1,6})\s/), c = T(t, o);
|
|
1643
1643
|
return {
|
|
1644
1644
|
bold: i("StrongEmphasis"),
|
|
1645
1645
|
italic: i("Emphasis"),
|
|
@@ -1647,7 +1647,7 @@ function Xr(e) {
|
|
|
1647
1647
|
codeBlock: c,
|
|
1648
1648
|
strikethrough: i("Strikethrough"),
|
|
1649
1649
|
link: qr(e, n) !== null,
|
|
1650
|
-
bulletList: !c && /^\s*[-*+]\s/.test(a) && !
|
|
1650
|
+
bulletList: !c && /^\s*[-*+]\s/.test(a) && !ze(t, o),
|
|
1651
1651
|
orderedList: !c && /^\s*\d+[.)]\s/.test(a),
|
|
1652
1652
|
taskList: !c && Ir.test(a),
|
|
1653
1653
|
quote: U(e, o, "Blockquote") !== null,
|
|
@@ -1677,11 +1677,11 @@ var Zr = [y.highest(n.of([{
|
|
|
1677
1677
|
},
|
|
1678
1678
|
{
|
|
1679
1679
|
key: "Backspace",
|
|
1680
|
-
run: (e) =>
|
|
1680
|
+
run: (e) => at(e, -1)
|
|
1681
1681
|
},
|
|
1682
1682
|
{
|
|
1683
1683
|
key: "Delete",
|
|
1684
|
-
run: (e) =>
|
|
1684
|
+
run: (e) => at(e, 1)
|
|
1685
1685
|
},
|
|
1686
1686
|
{
|
|
1687
1687
|
key: "Mod-]",
|
|
@@ -1693,15 +1693,15 @@ var Zr = [y.highest(n.of([{
|
|
|
1693
1693
|
},
|
|
1694
1694
|
{
|
|
1695
1695
|
key: "Backspace",
|
|
1696
|
-
run: (e) => !In(e, "Backspace") &&
|
|
1697
|
-
shift:
|
|
1696
|
+
run: (e) => !In(e, "Backspace") && ge(e),
|
|
1697
|
+
shift: ge
|
|
1698
1698
|
},
|
|
1699
1699
|
{
|
|
1700
1700
|
key: "Delete",
|
|
1701
|
-
run: (e) => !In(e, "Delete") &&
|
|
1701
|
+
run: (e) => !In(e, "Delete") && fe(e)
|
|
1702
1702
|
},
|
|
1703
|
-
...
|
|
1704
|
-
...
|
|
1703
|
+
...me.filter((e) => e.key !== "Backspace" && e.key !== "Delete"),
|
|
1704
|
+
...he
|
|
1705
1705
|
])], Qr = /^(\s*)(\d+)[.)](?=\s|$)/, $r = /^(?:[ ]{0,3}>[ ]?)*/, ei = /^\s*(?:```|~~~)/, ti = /^\s*[-*+]\s+\S/, ni = /^\s*(?:#{1,6}(?:\s|$)|[-*+](?:\s|$)|(?:(?:-[ \t]*){3,}|(?:\*[ \t]*){3,}|(?:_[ \t]*){3,})$)/, ri = 1e3;
|
|
1706
1706
|
function ii(e) {
|
|
1707
1707
|
let t = [], n = [], r = (e) => {
|
|
@@ -1771,7 +1771,7 @@ function oi(e) {
|
|
|
1771
1771
|
}), t;
|
|
1772
1772
|
}
|
|
1773
1773
|
var si = g.transactionFilter.of((e) => {
|
|
1774
|
-
if (e.annotation(
|
|
1774
|
+
if (e.annotation(ie.remote) || !e.docChanged || !oi(e)) return e;
|
|
1775
1775
|
let t = ii(e.newDoc.toString());
|
|
1776
1776
|
return t.length === 0 ? e : [e, {
|
|
1777
1777
|
changes: t,
|
|
@@ -1902,7 +1902,7 @@ var si = g.transactionFilter.of((e) => {
|
|
|
1902
1902
|
}
|
|
1903
1903
|
showGhost(e, t) {
|
|
1904
1904
|
let n = document.createElement("div");
|
|
1905
|
-
n.className = "cm-drag-ghost", n.textContent = R(this.view.state.sliceDoc(e, t)).replace(
|
|
1905
|
+
n.className = "cm-drag-ghost", n.textContent = R(this.view.state.sliceDoc(e, t)).replace(Ke, "$1"), this.view.dom.appendChild(n), this.ghost = n;
|
|
1906
1906
|
}
|
|
1907
1907
|
moveGhost(e, t) {
|
|
1908
1908
|
this.ghost && (this.ghost.style.left = `${e + 12}px`, this.ghost.style.top = `${t + 12}px`);
|
|
@@ -2053,7 +2053,7 @@ var Ti = y.high(n.of([
|
|
|
2053
2053
|
Ci,
|
|
2054
2054
|
Ti,
|
|
2055
2055
|
Di
|
|
2056
|
-
], ki =
|
|
2056
|
+
], ki = re.define({ combine: (e) => e[0] ?? {
|
|
2057
2057
|
open: () => "Taak, open",
|
|
2058
2058
|
done: () => "Taak, afgerond"
|
|
2059
2059
|
} }), Ai = class extends t {
|
|
@@ -2177,7 +2177,7 @@ function ta(e, t) {
|
|
|
2177
2177
|
from: t.from,
|
|
2178
2178
|
to: t.to,
|
|
2179
2179
|
enter: (t) => {
|
|
2180
|
-
t.name === "Blockquote" &&
|
|
2180
|
+
t.name === "Blockquote" && Re(e, t.from, t.to, (e) => n.set(e, (n.get(e) ?? 0) + 1));
|
|
2181
2181
|
}
|
|
2182
2182
|
}), n;
|
|
2183
2183
|
}
|
|
@@ -2240,7 +2240,7 @@ function fa(e) {
|
|
|
2240
2240
|
}
|
|
2241
2241
|
var pa = h.define({
|
|
2242
2242
|
create: da,
|
|
2243
|
-
update: (e, t) => t.docChanged || t.reconfigured ||
|
|
2243
|
+
update: (e, t) => t.docChanged || t.reconfigured || E(t.startState, t.state) || t.selection && fa(t.startState) !== fa(t.state) ? da(t.state) : e,
|
|
2244
2244
|
provide: (e) => _.decorations.from(e)
|
|
2245
2245
|
});
|
|
2246
2246
|
function ma(e) {
|
|
@@ -2255,7 +2255,7 @@ function ma(e) {
|
|
|
2255
2255
|
let i = Zi(e.node);
|
|
2256
2256
|
if (i !== e.node || n(i.from, i.to)) return;
|
|
2257
2257
|
let a = ia(t, i), o = ta(t, i), s = na(t, i), c = [0];
|
|
2258
|
-
|
|
2258
|
+
Re(t, i.from, i.to, (e) => {
|
|
2259
2259
|
if (e > s) return;
|
|
2260
2260
|
let n = t.doc.lineAt(e), i = a.get(e) ?? [], l = ra(n.text, i), u = l.reduce((e, [t, n]) => e + n - t, 0);
|
|
2261
2261
|
for (let [t, n] of l) r.push(J.range(e + t, e + n));
|
|
@@ -2285,7 +2285,7 @@ function ma(e) {
|
|
|
2285
2285
|
n(i.from, i.to) || r.push(J.range(e.from, a));
|
|
2286
2286
|
} else if (e.name === "Link") {
|
|
2287
2287
|
let i = e.node.getChild("URL"), a = e.node.getChildren("LinkMark");
|
|
2288
|
-
if (!i || a.length < 2 ||
|
|
2288
|
+
if (!i || a.length < 2 || O(t, e.node)) return;
|
|
2289
2289
|
n(e.from, e.to) || r.push(J.range(a[0].from, a[0].to), J.range(a[1].from, e.to));
|
|
2290
2290
|
} else if (Li[e.name]?.includes(i.name) && !n(i.from, i.to) && (r.push(J.range(e.from, e.to)), e.name === "CodeMark" && e.from === i.from)) {
|
|
2291
2291
|
let t = i.lastChild;
|
|
@@ -2310,7 +2310,7 @@ var ha = 3, ga = class {
|
|
|
2310
2310
|
}), this.observing = !0);
|
|
2311
2311
|
}
|
|
2312
2312
|
update(e) {
|
|
2313
|
-
this.observeLayer(), (e.docChanged || e.selectionSet || e.viewportChanged ||
|
|
2313
|
+
this.observeLayer(), (e.docChanged || e.selectionSet || e.viewportChanged || E(e.startState, e.state) || e.transactions.some((e) => e.reconfigured)) && (this.decorations = ma(e.view));
|
|
2314
2314
|
}
|
|
2315
2315
|
mendSelection() {
|
|
2316
2316
|
let { view: e } = this, { from: t, to: n, empty: r } = e.state.selection.main, i = `${t}-${n}-${e.state.doc.length}`;
|
|
@@ -2365,7 +2365,7 @@ function va(e) {
|
|
|
2365
2365
|
}), n);
|
|
2366
2366
|
}
|
|
2367
2367
|
function ya(e, t) {
|
|
2368
|
-
let n =
|
|
2368
|
+
let n = e.toSorted((e, t) => e.top - t.top);
|
|
2369
2369
|
for (let e = 1; e < n.length; e++) {
|
|
2370
2370
|
let r = n[e - 1], i = n[e].top - (r.top + r.height);
|
|
2371
2371
|
i > .25 && i < t / 2 && (r.piece.style.height = `${r.height + i}px`);
|
|
@@ -2392,7 +2392,7 @@ var ba = class {
|
|
|
2392
2392
|
destroy() {
|
|
2393
2393
|
this.observer.disconnect();
|
|
2394
2394
|
}
|
|
2395
|
-
}, xa = c.fromClass(ba), Sa =
|
|
2395
|
+
}, xa = c.fromClass(ba), Sa = oe`
|
|
2396
2396
|
|
|
2397
2397
|
|
|
2398
2398
|
/* # Host */
|
|
@@ -2535,7 +2535,7 @@ var ba = class {
|
|
|
2535
2535
|
--_text-editor-popup-message-padding-inline: var(--primitives-space-16);
|
|
2536
2536
|
--_text-editor-popup-message-color: var(--semantics-content-secondary-color);
|
|
2537
2537
|
|
|
2538
|
-
${
|
|
2538
|
+
${je}
|
|
2539
2539
|
display: flex;
|
|
2540
2540
|
min-height: 0;
|
|
2541
2541
|
flex-direction: column;
|
|
@@ -3512,10 +3512,10 @@ var ba = class {
|
|
|
3512
3512
|
`;
|
|
3513
3513
|
// src/components/inputs/text-editor/text-editor.template.ts
|
|
3514
3514
|
function Ca(e) {
|
|
3515
|
-
return
|
|
3515
|
+
return Ae`<div class="text-editor"><slot name="toolbar" ?hidden=${!e._hasSlottedToolbar}></slot></div>`;
|
|
3516
3516
|
}
|
|
3517
3517
|
// src/components/inputs/text-editor/text-editor.code-copy.ts
|
|
3518
|
-
var wa =
|
|
3518
|
+
var wa = re.define({ combine: (e) => e[0] ?? {
|
|
3519
3519
|
copy: () => "Kopieer",
|
|
3520
3520
|
success: () => "Gekopieerd",
|
|
3521
3521
|
failure: () => "Kopiëren mislukt"
|
|
@@ -3611,7 +3611,7 @@ var Na = _.domEventHandlers({
|
|
|
3611
3611
|
function Pa(e) {
|
|
3612
3612
|
let t = h.define({
|
|
3613
3613
|
create: Aa,
|
|
3614
|
-
update: (e, t) => t.docChanged || t.reconfigured ||
|
|
3614
|
+
update: (e, t) => t.docChanged || t.reconfigured || E(t.startState, t.state) ? Aa(t.state) : e,
|
|
3615
3615
|
provide: (e) => _.decorations.from(e)
|
|
3616
3616
|
});
|
|
3617
3617
|
return [
|
|
@@ -3684,51 +3684,51 @@ function Ga(e) {
|
|
|
3684
3684
|
let t = e.getRootNode();
|
|
3685
3685
|
return t instanceof ShadowRoot && Ua(t.host) === "nldd-toolbar";
|
|
3686
3686
|
}
|
|
3687
|
-
var Q = /* @__PURE__ */ new Set();
|
|
3688
|
-
function
|
|
3687
|
+
var Q = /* @__PURE__ */ new Set(), Ka = /* @__PURE__ */ new WeakMap();
|
|
3688
|
+
function qa(e) {
|
|
3689
|
+
for (let t of Q) if (t.target.id === e) return t;
|
|
3690
|
+
}
|
|
3691
|
+
function Ja(e) {
|
|
3689
3692
|
for (let t of e.composedPath()) if (t instanceof Element) {
|
|
3690
3693
|
if (Ua(t) === "nldd-text-editor") return null;
|
|
3691
3694
|
if (t.hasAttribute(Z)) return Ga(t) ? null : t;
|
|
3692
3695
|
}
|
|
3693
3696
|
return null;
|
|
3694
3697
|
}
|
|
3695
|
-
function
|
|
3698
|
+
function Ya(e) {
|
|
3696
3699
|
for (let t of Wa(e)) {
|
|
3697
3700
|
let e = t.getAttribute(Fa);
|
|
3698
|
-
if (e !== null)
|
|
3699
|
-
|
|
3700
|
-
|
|
3701
|
-
return;
|
|
3702
|
-
}
|
|
3703
|
-
for (let e of Q) if (e.target === t) return e;
|
|
3701
|
+
if (e !== null) return e === "" ? void 0 : qa(e);
|
|
3702
|
+
let n = Ka.get(t);
|
|
3703
|
+
if (n) return n;
|
|
3704
3704
|
}
|
|
3705
3705
|
}
|
|
3706
|
-
function
|
|
3706
|
+
function Xa(e) {
|
|
3707
3707
|
return (t) => {
|
|
3708
|
-
let n =
|
|
3709
|
-
(n &&
|
|
3708
|
+
let n = Ja(t);
|
|
3709
|
+
(n && Ya(n))?.handle(e, t, n);
|
|
3710
3710
|
};
|
|
3711
3711
|
}
|
|
3712
|
-
var
|
|
3712
|
+
var Za = [
|
|
3713
3713
|
"click",
|
|
3714
3714
|
"change",
|
|
3715
3715
|
"select",
|
|
3716
3716
|
"pointerdown",
|
|
3717
3717
|
"keydown"
|
|
3718
|
-
].map((e) => [e,
|
|
3718
|
+
].map((e) => [e, Xa(e)]), Qa = /* @__PURE__ */ new Set(["pointerdown", "keydown"]), $a = class {
|
|
3719
3719
|
constructor(e, t) {
|
|
3720
3720
|
this.target = e, this.focusText = t, this._listBeforePress = null;
|
|
3721
3721
|
}
|
|
3722
3722
|
connect() {
|
|
3723
|
-
if (Q.size === 0) for (let [e, t] of
|
|
3724
|
-
Q.add(this);
|
|
3723
|
+
if (Q.size === 0) for (let [e, t] of Za) document.addEventListener(e, t, Qa.has(e));
|
|
3724
|
+
Q.add(this), Ka.set(this.target, this);
|
|
3725
3725
|
}
|
|
3726
3726
|
disconnect() {
|
|
3727
|
-
if (Q.delete(this), Q.size === 0) for (let [e, t] of
|
|
3727
|
+
if (Q.delete(this), Ka.delete(this.target), Q.size === 0) for (let [e, t] of Za) document.removeEventListener(e, t, Qa.has(e));
|
|
3728
3728
|
}
|
|
3729
3729
|
controls() {
|
|
3730
|
-
let e = [...this.target.querySelectorAll(`[${Z}]`)], t = this.target.id, n = t ? [...document.querySelectorAll(`[${Fa}="${CSS.escape(t)}"]`)].flatMap((e) => [...e.hasAttribute(Z) ? [e] : [], ...e.querySelectorAll(`[${Z}]`)]) : [];
|
|
3731
|
-
return [...e, ...n].filter((e) =>
|
|
3730
|
+
let e = [...this.target.querySelectorAll(`[${Z}]`)], t = this.target.id, n = t && qa(t) === this ? [...document.querySelectorAll(`[${Fa}="${CSS.escape(t)}"]`)].flatMap((e) => [...e.hasAttribute(Z) ? [e] : [], ...e.querySelectorAll(`[${Z}]`)]) : [];
|
|
3731
|
+
return [...e, ...n].filter((e) => Ya(e) === this);
|
|
3732
3732
|
}
|
|
3733
3733
|
_run(e) {
|
|
3734
3734
|
let [t, n] = Ia(e);
|
|
@@ -3771,7 +3771,7 @@ var Ya = [
|
|
|
3771
3771
|
t.toggleAttribute("disabled", !Ha(n, this.target, e)), i === "nldd-segmented-control" ? n === "setList" && (t.value = La(e)) : (i === "nldd-toggle-button" || i === "nldd-menu-item" || i === "nldd-segmented-control-item") && t.toggleAttribute("selected", za(n, r, e));
|
|
3772
3772
|
}
|
|
3773
3773
|
}
|
|
3774
|
-
},
|
|
3774
|
+
}, eo = class {
|
|
3775
3775
|
constructor(e, t) {
|
|
3776
3776
|
this.host = e, this.container = t, this._frame = 0, this._listening = !1, this._gap = 0, this._schedule = () => {
|
|
3777
3777
|
this._frame || (this._frame = requestAnimationFrame(() => {
|
|
@@ -3798,22 +3798,22 @@ var Ya = [
|
|
|
3798
3798
|
let t = e.getBoundingClientRect().top - this.container().getBoundingClientRect().top, n = e.classList.contains("is-stuck") ? this._gap : 0;
|
|
3799
3799
|
e.classList.toggle("is-stuck", t > n + .5);
|
|
3800
3800
|
}
|
|
3801
|
-
},
|
|
3801
|
+
}, to = class extends ve {
|
|
3802
3802
|
constructor(...e) {
|
|
3803
3803
|
super(...e), this.noSpellcheck = !1, this.wrap = !0, this.resize = "auto", this.embedded = !1, this.syntax = "hidden", this.typeaheads = [], this._mentionTypeahead = ((e) => ({
|
|
3804
3804
|
trigger: "@",
|
|
3805
3805
|
source: (t) => e.mentionSource?.(t) ?? [],
|
|
3806
|
-
insert:
|
|
3806
|
+
insert: Ue,
|
|
3807
3807
|
get query() {
|
|
3808
3808
|
return e.mentionQuery;
|
|
3809
3809
|
},
|
|
3810
3810
|
get emptyText() {
|
|
3811
3811
|
return e.mentionEmptyText;
|
|
3812
3812
|
}
|
|
3813
|
-
}))(this), this.annotatable = !1, this.annotations = [], this.translations = {}, this.rowsProperty = "--_text-editor-rows", this._wrapCompartment = new l(), this._spellcheckCompartment = new l(), this._historyCompartment = new l(), this._syntaxCompartment = new l(), this._toolbar = new
|
|
3813
|
+
}))(this), this.annotatable = !1, this.annotations = [], this.translations = {}, this.rowsProperty = "--_text-editor-rows", this._wrapCompartment = new l(), this._spellcheckCompartment = new l(), this._historyCompartment = new l(), this._syntaxCompartment = new l(), this._toolbar = new $a(this, () => this.view?.focus()), this._stuck = new eo(this, () => this._container ?? null), this._hasSlottedToolbar = !1, this._labels = null, this._clipboard = new Cr(), this._plainPaste = null, this._lastState = null, this._onMentionPointerDown = (e) => {
|
|
3814
3814
|
let t = e.target?.closest?.(".cm-md-mention-token");
|
|
3815
3815
|
if (!t || !this.view || this.view.state.readOnly) return;
|
|
3816
|
-
let n =
|
|
3816
|
+
let n = nt(this.view.state, this.view.posAtDOM(t));
|
|
3817
3817
|
n && (e.preventDefault(), e.stopPropagation(), this.view.dispatch({ selection: {
|
|
3818
3818
|
anchor: n.from,
|
|
3819
3819
|
head: n.to
|
|
@@ -3849,7 +3849,7 @@ var Ya = [
|
|
|
3849
3849
|
});
|
|
3850
3850
|
}
|
|
3851
3851
|
_t(e, t) {
|
|
3852
|
-
return
|
|
3852
|
+
return Ne(this.translations, Me, e, t);
|
|
3853
3853
|
}
|
|
3854
3854
|
_labelSignature() {
|
|
3855
3855
|
return [
|
|
@@ -3883,7 +3883,7 @@ var Ya = [
|
|
|
3883
3883
|
open: () => this._t("components.text-editor.task-open-label"),
|
|
3884
3884
|
done: () => this._t("components.text-editor.task-done-label")
|
|
3885
3885
|
}),
|
|
3886
|
-
this._historyCompartment.of(
|
|
3886
|
+
this._historyCompartment.of(ce()),
|
|
3887
3887
|
r(),
|
|
3888
3888
|
xa,
|
|
3889
3889
|
Oi,
|
|
@@ -3956,14 +3956,14 @@ var Ya = [
|
|
|
3956
3956
|
super.onEditorMounted(), this.view?.contentDOM.addEventListener("pointerdown", this._onMentionPointerDown, !0), this.view?.contentDOM.addEventListener("click", this._onAnnotationBadgeClick), this._syncAnnotations(), this._emitState();
|
|
3957
3957
|
}
|
|
3958
3958
|
updated(e) {
|
|
3959
|
-
if (super.updated(e), (e.has("disabled") || e.has("readonly")) && this._toolbar.reflect(), (e.has("embedded") || e.has("_hasSlottedToolbar")) && this.hasUpdated && this._stuck.update(), import.meta.env?.DEV && e.has("typeaheads") &&
|
|
3959
|
+
if (super.updated(e), (e.has("disabled") || e.has("readonly")) && this._toolbar.reflect(), (e.has("embedded") || e.has("_hasSlottedToolbar")) && this.hasUpdated && this._stuck.update(), import.meta.env?.DEV && e.has("typeaheads") && Pe(this, "invalid-typeahead-query", pn(this.typeaheads)), !this.view) return;
|
|
3960
3960
|
let t = this._labelSignature();
|
|
3961
|
-
t !== this._labels && (this._labels !== null && this.view.dispatch({ effects:
|
|
3961
|
+
t !== this._labels && (this._labels !== null && this.view.dispatch({ effects: Fe.of(null) }), this._labels = t), e.has("wrap") && this.reconfigure(this._wrapCompartment, this.wrap ? _.lineWrapping : []), e.has("syntax") && this.reconfigure(this._syntaxCompartment, this.syntax === "hidden" ? _a() : []), e.has("noSpellcheck") && (this.reconfigure(this._spellcheckCompartment, this.noSpellcheck ? [] : Ln()), this._redrawForSpellcheck()), (e.has("annotations") || e.has("annotatable")) && this._syncAnnotations();
|
|
3962
3962
|
}
|
|
3963
3963
|
_syncAnnotations() {
|
|
3964
3964
|
this.view?.dispatch({
|
|
3965
3965
|
effects: Wn.of(this.annotatable ? this.annotations : []),
|
|
3966
|
-
annotations:
|
|
3966
|
+
annotations: ie.addToHistory.of(!1)
|
|
3967
3967
|
});
|
|
3968
3968
|
}
|
|
3969
3969
|
toggleBold() {
|
|
@@ -4009,14 +4009,14 @@ var Ya = [
|
|
|
4009
4009
|
this.view && Hr(this.view);
|
|
4010
4010
|
}
|
|
4011
4011
|
undo() {
|
|
4012
|
-
this.view && (
|
|
4012
|
+
this.view && (ue(this.view), this.view.focus());
|
|
4013
4013
|
}
|
|
4014
4014
|
redo() {
|
|
4015
|
-
this.view && (
|
|
4015
|
+
this.view && (pe(this.view), this.view.focus());
|
|
4016
4016
|
}
|
|
4017
4017
|
clearHistory() {
|
|
4018
4018
|
let e = this.view;
|
|
4019
|
-
e && (e.dispatch({ effects: this._historyCompartment.reconfigure([]) }), e.dispatch({ effects: this._historyCompartment.reconfigure(
|
|
4019
|
+
e && (e.dispatch({ effects: this._historyCompartment.reconfigure([]) }), e.dispatch({ effects: this._historyCompartment.reconfigure(ce()) }), this._emitState());
|
|
4020
4020
|
}
|
|
4021
4021
|
async copy() {
|
|
4022
4022
|
if (!this.view || this.view.state.selection.main.empty) return;
|
|
@@ -4057,7 +4057,7 @@ var Ya = [
|
|
|
4057
4057
|
applyChanges(e) {
|
|
4058
4058
|
let t = this.view;
|
|
4059
4059
|
if (!t || e.length === 0) return;
|
|
4060
|
-
let n = t.state.doc.toString(), r = z(n), i = n.length - r.length, a =
|
|
4060
|
+
let n = t.state.doc.toString(), r = z(n), i = n.length - r.length, a = e.toSorted((e, t) => e.from - t.from).map((e) => {
|
|
4061
4061
|
let t = Math.max(0, Math.min(e.from, i)), a = Math.max(t, Math.min(e.to ?? t, i)), o = V(r, t), s = t === a ? o : V(r, a);
|
|
4062
4062
|
for (; s > o && n[s - 1] === "";) s--;
|
|
4063
4063
|
return {
|
|
@@ -4068,7 +4068,7 @@ var Ya = [
|
|
|
4068
4068
|
});
|
|
4069
4069
|
t.dispatch({
|
|
4070
4070
|
changes: a,
|
|
4071
|
-
annotations: [
|
|
4071
|
+
annotations: [ie.remote.of(!0), ie.addToHistory.of(!1)]
|
|
4072
4072
|
});
|
|
4073
4073
|
}
|
|
4074
4074
|
setDoc(e) {
|
|
@@ -4148,7 +4148,7 @@ var Ya = [
|
|
|
4148
4148
|
case "paste":
|
|
4149
4149
|
this.paste();
|
|
4150
4150
|
break;
|
|
4151
|
-
default:
|
|
4151
|
+
default: Pe(this, "unknown-command", !0);
|
|
4152
4152
|
}
|
|
4153
4153
|
}
|
|
4154
4154
|
getState() {
|
|
@@ -4157,8 +4157,8 @@ var Ya = [
|
|
|
4157
4157
|
empty: !this.view || this.view.state.selection.main.empty,
|
|
4158
4158
|
canIndent: this.view ? Ur(this.view) : !1,
|
|
4159
4159
|
canOutdent: this.view ? Wr(this.view) : !1,
|
|
4160
|
-
canUndo: this.view ?
|
|
4161
|
-
canRedo: this.view ?
|
|
4160
|
+
canUndo: this.view ? de(this.view.state) > 0 : !1,
|
|
4161
|
+
canRedo: this.view ? ye(this.view.state) > 0 : !1
|
|
4162
4162
|
};
|
|
4163
4163
|
}
|
|
4164
4164
|
getSelection() {
|
|
@@ -4210,7 +4210,7 @@ var Ya = [
|
|
|
4210
4210
|
id: t,
|
|
4211
4211
|
text: r,
|
|
4212
4212
|
from: n,
|
|
4213
|
-
to: n +
|
|
4213
|
+
to: n + He(e.candidate).length
|
|
4214
4214
|
});
|
|
4215
4215
|
} else this.dispatchEvent(new CustomEvent("typeahead", {
|
|
4216
4216
|
detail: {
|
|
@@ -4233,25 +4233,25 @@ var Ya = [
|
|
|
4233
4233
|
render() {
|
|
4234
4234
|
return Ca(this);
|
|
4235
4235
|
}
|
|
4236
|
-
}, $ = (
|
|
4237
|
-
|
|
4236
|
+
}, $ = (to.styles = Sa, to);
|
|
4237
|
+
S([x({
|
|
4238
4238
|
type: Boolean,
|
|
4239
4239
|
reflect: !0,
|
|
4240
4240
|
attribute: "no-spellcheck"
|
|
4241
|
-
})], $.prototype, "noSpellcheck", void 0),
|
|
4241
|
+
})], $.prototype, "noSpellcheck", void 0), S([x({
|
|
4242
4242
|
type: Boolean,
|
|
4243
4243
|
reflect: !0
|
|
4244
|
-
})], $.prototype, "wrap", void 0),
|
|
4244
|
+
})], $.prototype, "wrap", void 0), S([x({
|
|
4245
4245
|
reflect: !0,
|
|
4246
|
-
converter:
|
|
4247
|
-
})], $.prototype, "resize", void 0),
|
|
4246
|
+
converter: se("auto")
|
|
4247
|
+
})], $.prototype, "resize", void 0), S([x({
|
|
4248
4248
|
type: Boolean,
|
|
4249
4249
|
reflect: !0
|
|
4250
|
-
})], $.prototype, "embedded", void 0),
|
|
4250
|
+
})], $.prototype, "embedded", void 0), S([x({
|
|
4251
4251
|
reflect: !0,
|
|
4252
|
-
converter:
|
|
4253
|
-
})], $.prototype, "syntax", void 0),
|
|
4252
|
+
converter: se("hidden")
|
|
4253
|
+
})], $.prototype, "syntax", void 0), S([x({ attribute: !1 })], $.prototype, "mentionSource", void 0), S([x({ attribute: !1 })], $.prototype, "mentionQuery", void 0), S([x({ attribute: !1 })], $.prototype, "mentionEmptyText", void 0), S([x({ attribute: !1 })], $.prototype, "typeaheads", void 0), S([x({
|
|
4254
4254
|
type: Boolean,
|
|
4255
4255
|
reflect: !0
|
|
4256
|
-
})], $.prototype, "annotatable", void 0),
|
|
4256
|
+
})], $.prototype, "annotatable", void 0), S([x({ attribute: !1 })], $.prototype, "annotations", void 0), S([x({ type: Object })], $.prototype, "translations", void 0), S([Te(".text-editor")], $.prototype, "_container", void 0), S([ae()], $.prototype, "_hasSlottedToolbar", void 0), $ = S([we("nldd-text-editor")], $);
|
|
4257
4257
|
export { un as DEFAULT_TYPEAHEAD_QUERY, $ as NLDDTextEditor };
|