@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,17 +1,18 @@
|
|
|
1
|
-
import { n as e, r as t, s as n } from "./custom-element-
|
|
1
|
+
import { n as e, r as t, s as n } from "./custom-element-DtLjpays.js";
|
|
2
2
|
import { t as r } from "./reflect-non-default-Bu3rpCvg.js";
|
|
3
|
-
import { B as i, F as a, M as o, Q as s, V as c, W as l, et as u, i as d, it as f, j as p, k as m, r as h, t as
|
|
4
|
-
import { t as
|
|
5
|
-
import { o as
|
|
6
|
-
import { t as
|
|
7
|
-
import { t as
|
|
8
|
-
import "./icon-button-
|
|
9
|
-
import { n as x } from "./tooltip-
|
|
10
|
-
import { t as S } from "./translations-
|
|
3
|
+
import { B as i, F as a, M as o, Q as s, V as c, W as l, et as u, i as d, it as f, j as p, k as m, r as h, t as g } from "./languages-CPd7_I8H.js";
|
|
4
|
+
import { t as _ } from "./custom-element-BW8Ua4c7.js";
|
|
5
|
+
import { o as v, r as y, t as b } from "./decorate-BhnGmemK.js";
|
|
6
|
+
import { t as ee } from "./shadow-resets-DR73IFIL.js";
|
|
7
|
+
import { t as te } from "./code-viewer.i18n-BHfSDRbK.js";
|
|
8
|
+
import "./icon-button-HKoCqWG3.js";
|
|
9
|
+
import { n as x } from "./tooltip-DhPeqDvL.js";
|
|
10
|
+
import { t as S } from "./translations-C6WKR-hE.js";
|
|
11
11
|
import { r as C } from "./element-state-B-44fVqq.js";
|
|
12
12
|
import { t as w } from "./defer-focus-F73ud2D9.js";
|
|
13
|
+
import { n as T, t as E } from "./layout-pass-Cq85kSHX.js";
|
|
13
14
|
// src/components/content/code-viewer/code-viewer.styles.ts
|
|
14
|
-
var
|
|
15
|
+
var D = n`
|
|
15
16
|
:host {
|
|
16
17
|
box-sizing: border-box;
|
|
17
18
|
}
|
|
@@ -53,7 +54,7 @@ var T = n`
|
|
|
53
54
|
--_code-viewer-gutter-border-width: var(--semantics-dividers-thickness);
|
|
54
55
|
--_code-viewer-gutter-border-color: var(--semantics-dividers-color);
|
|
55
56
|
|
|
56
|
-
${
|
|
57
|
+
${ee}
|
|
57
58
|
display: flex;
|
|
58
59
|
max-width: 100%;
|
|
59
60
|
position: relative;
|
|
@@ -373,9 +374,9 @@ var T = n`
|
|
|
373
374
|
}
|
|
374
375
|
`;
|
|
375
376
|
// src/components/content/code-viewer/code-viewer.template.ts
|
|
376
|
-
function
|
|
377
|
+
function ne(e) {
|
|
377
378
|
let t = e._copyState, n = t === "success" ? e._t("components.code-viewer.copy-success-text") : t === "failure" ? e._t("components.code-viewer.copy-failure-text") : e._t("components.code-viewer.copy-action"), r = n, i = t === "success" ? e._t("components.code-viewer.copy-success-text") : t === "failure" ? e._t("components.code-viewer.copy-failure-text") : "", a = e._diffSummary;
|
|
378
|
-
return
|
|
379
|
+
return v`<div class="code-viewer">${a ? v`<div class="code-viewer__diff-summary">${a}</div>` : y}<div class="code-viewer__codemirror"></div><slot @slotchange=${e._onSlotChange}></slot>${e._canCopy ? v`
|
|
379
380
|
<div class="code-viewer__actions">
|
|
380
381
|
<div class="code-viewer__copy-button">
|
|
381
382
|
<nldd-tooltip
|
|
@@ -403,26 +404,26 @@ function E(e) {
|
|
|
403
404
|
aria-live="polite"
|
|
404
405
|
>${i}</div>
|
|
405
406
|
</div>
|
|
406
|
-
` :
|
|
407
|
+
` : y}</div>`;
|
|
407
408
|
}
|
|
408
409
|
// src/components/content/code-viewer/code-viewer.diff.ts
|
|
409
|
-
var
|
|
410
|
-
function
|
|
410
|
+
var O = /^@@ -(\d+)(?:,(\d+))? \+(\d+)(?:,(\d+))? @@/, k = /^(diff |index |--- |\+\+\+ |new file|deleted file|similarity |rename |old mode|new mode)/;
|
|
411
|
+
function re(e) {
|
|
411
412
|
let t = 0;
|
|
412
|
-
for (; t < e.length &&
|
|
413
|
+
for (; t < e.length && k.test(e[t]);) t++;
|
|
413
414
|
let n = e.slice(0, t);
|
|
414
415
|
return n.some((e, t) => e.startsWith("--- ") && n[t + 1]?.startsWith("+++ ")) ? e.slice(t) : e;
|
|
415
416
|
}
|
|
416
|
-
function
|
|
417
|
-
let t = e.replace(/\r\n?/g, "\n").replace(/\n$/, "").split("\n"), n = t.some((e) =>
|
|
417
|
+
function ie(e) {
|
|
418
|
+
let t = e.replace(/\r\n?/g, "\n").replace(/\n$/, "").split("\n"), n = t.some((e) => O.test(e)), r = n ? t : re(t), i = [], a = 1, o = 1, s = n ? 0 : Infinity, c = n ? 0 : Infinity, l = null, u = 0, d = 0, f = !1, p = 0;
|
|
418
419
|
for (let e of r) {
|
|
419
|
-
let t =
|
|
420
|
+
let t = O.exec(e);
|
|
420
421
|
if (t) {
|
|
421
422
|
a = Number(t[1]), s = t[2] === void 0 ? 1 : Number(t[2]), o = Number(t[3]), c = t[4] === void 0 ? 1 : Number(t[4]), l = e, f = !0;
|
|
422
423
|
continue;
|
|
423
424
|
}
|
|
424
425
|
if (s <= 0 && c <= 0) {
|
|
425
|
-
f && e !== "" && !e.startsWith("\\") && !
|
|
426
|
+
f && e !== "" && !e.startsWith("\\") && !k.test(e) && p++;
|
|
426
427
|
continue;
|
|
427
428
|
}
|
|
428
429
|
if (e.startsWith("\\")) continue;
|
|
@@ -455,7 +456,7 @@ function A(e) {
|
|
|
455
456
|
dropped: p
|
|
456
457
|
};
|
|
457
458
|
}
|
|
458
|
-
function
|
|
459
|
+
function A(e) {
|
|
459
460
|
let t = [], n = 0;
|
|
460
461
|
for (; n < e.length;) {
|
|
461
462
|
if (e[n].kind !== "removed") {
|
|
@@ -470,7 +471,7 @@ function j(e) {
|
|
|
470
471
|
}
|
|
471
472
|
return t;
|
|
472
473
|
}
|
|
473
|
-
var
|
|
474
|
+
var j = class extends o {
|
|
474
475
|
constructor(e) {
|
|
475
476
|
super(), this.text = e;
|
|
476
477
|
}
|
|
@@ -480,14 +481,14 @@ var M = class extends o {
|
|
|
480
481
|
toDOM() {
|
|
481
482
|
return document.createTextNode(this.text);
|
|
482
483
|
}
|
|
483
|
-
},
|
|
484
|
+
}, M = class extends o {
|
|
484
485
|
constructor(e) {
|
|
485
486
|
super(), this.className = e, this.elementClass = e;
|
|
486
487
|
}
|
|
487
488
|
eq(e) {
|
|
488
489
|
return e.className === this.className;
|
|
489
490
|
}
|
|
490
|
-
},
|
|
491
|
+
}, N = class extends a {
|
|
491
492
|
constructor(e) {
|
|
492
493
|
super(), this.text = e;
|
|
493
494
|
}
|
|
@@ -498,7 +499,7 @@ var M = class extends o {
|
|
|
498
499
|
let e = document.createElement("span");
|
|
499
500
|
return e.className = "cm-diff-line-label", e.textContent = `${this.text}: `, e;
|
|
500
501
|
}
|
|
501
|
-
},
|
|
502
|
+
}, P = class extends a {
|
|
502
503
|
constructor(e) {
|
|
503
504
|
super(), this.header = e;
|
|
504
505
|
}
|
|
@@ -509,45 +510,45 @@ var M = class extends o {
|
|
|
509
510
|
let e = document.createElement("div");
|
|
510
511
|
return e.className = "cm-diff-hunk", e.setAttribute("aria-hidden", "true"), e.textContent = this.header, e;
|
|
511
512
|
}
|
|
512
|
-
},
|
|
513
|
+
}, F = {
|
|
513
514
|
added: "cm-diff-added",
|
|
514
515
|
removed: "cm-diff-removed",
|
|
515
516
|
context: "cm-diff-context"
|
|
516
|
-
},
|
|
517
|
+
}, I = {
|
|
517
518
|
added: "+",
|
|
518
519
|
removed: "−",
|
|
519
520
|
context: ""
|
|
520
521
|
};
|
|
521
|
-
function
|
|
522
|
+
function L(e) {
|
|
522
523
|
let t = [], n = 0;
|
|
523
524
|
for (let r of e) t.push(n), n += r.text.length + 1;
|
|
524
525
|
return t;
|
|
525
526
|
}
|
|
526
|
-
function
|
|
527
|
+
function R(e, t) {
|
|
527
528
|
let { lines: n } = e;
|
|
528
529
|
if (n.length === 0) return [];
|
|
529
|
-
let r =
|
|
530
|
+
let r = L(n), a = [], o = [];
|
|
530
531
|
n.forEach((e, n) => {
|
|
531
532
|
let i = r[n];
|
|
532
533
|
e.hunk && a.push(m.widget({
|
|
533
|
-
widget: new
|
|
534
|
+
widget: new P(e.hunk),
|
|
534
535
|
block: !0,
|
|
535
536
|
side: -1
|
|
536
|
-
}).range(i)), a.push(m.line({ class:
|
|
537
|
-
widget: new
|
|
537
|
+
}).range(i)), a.push(m.line({ class: F[e.kind] }).range(i)), e.kind === "added" && a.push(m.widget({
|
|
538
|
+
widget: new N(t.addedLine(e.newNumber)),
|
|
538
539
|
side: -1
|
|
539
540
|
}).range(i)), e.kind === "removed" && a.push(m.widget({
|
|
540
|
-
widget: new
|
|
541
|
+
widget: new N(t.removedLine(e.oldNumber)),
|
|
541
542
|
side: -1
|
|
542
|
-
}).range(i)), o.push(new
|
|
543
|
+
}).range(i)), o.push(new M(F[e.kind]).range(i));
|
|
543
544
|
});
|
|
544
545
|
let s = (e, t) => n[e.state.doc.lineAt(t.from).number - 1], l = (e) => String(n.reduce((t, n) => Math.max(t, e(n) ?? 0), 0)), u = (e, t) => i({
|
|
545
546
|
class: `cm-diff-gutter cm-diff-${e}-gutter`,
|
|
546
547
|
lineMarker: (e, n) => {
|
|
547
548
|
let r = s(e, n), i = r ? t(r) : null;
|
|
548
|
-
return i === null ? null : new
|
|
549
|
+
return i === null ? null : new j(String(i));
|
|
549
550
|
},
|
|
550
|
-
initialSpacer: () => new
|
|
551
|
+
initialSpacer: () => new j(l(t))
|
|
551
552
|
});
|
|
552
553
|
return [
|
|
553
554
|
p.decorations.of(m.set(a, !0)),
|
|
@@ -558,51 +559,56 @@ function z(e, t) {
|
|
|
558
559
|
class: "cm-diff-gutter cm-diff-sign-gutter",
|
|
559
560
|
lineMarker: (e, t) => {
|
|
560
561
|
let n = s(e, t);
|
|
561
|
-
return n && n.kind !== "context" ? new
|
|
562
|
+
return n && n.kind !== "context" ? new j(I[n.kind]) : null;
|
|
562
563
|
},
|
|
563
|
-
initialSpacer: () => new
|
|
564
|
+
initialSpacer: () => new j("+")
|
|
564
565
|
})
|
|
565
566
|
];
|
|
566
567
|
}
|
|
567
|
-
var
|
|
568
|
-
async function
|
|
569
|
-
let t =
|
|
568
|
+
var z = .5, B = m.mark({ class: "cm-diff-removed-word" }), V = m.mark({ class: "cm-diff-added-word" });
|
|
569
|
+
async function H(e) {
|
|
570
|
+
let t = A(e.lines);
|
|
570
571
|
if (t.length === 0) return [];
|
|
571
|
-
let { presentableDiff: n } = await import("./dist-BTUxFM2V.js"), r =
|
|
572
|
+
let { presentableDiff: n } = await import("./dist-BTUxFM2V.js"), r = L(e.lines), i = [];
|
|
572
573
|
for (let [a, o] of t) {
|
|
573
574
|
let t = e.lines[a].text, s = e.lines[o].text, c = n(t, s);
|
|
574
|
-
if (c.length !== 0 && !(c.reduce((e, t) => e + t.toA - t.fromA, 0) + c.reduce((e, t) => e + t.toB - t.fromB, 0) > (t.length + s.length) *
|
|
575
|
+
if (c.length !== 0 && !(c.reduce((e, t) => e + t.toA - t.fromA, 0) + c.reduce((e, t) => e + t.toB - t.fromB, 0) > (t.length + s.length) * z)) for (let e of c) e.toA > e.fromA && i.push(B.range(r[a] + e.fromA, r[a] + e.toA)), e.toB > e.fromB && i.push(V.range(r[o] + e.fromB, r[o] + e.toB));
|
|
575
576
|
}
|
|
576
577
|
return i.length ? p.decorations.of(m.set(i, !0)) : [];
|
|
577
578
|
}
|
|
578
579
|
// src/utilities/color-scheme-repaint.ts
|
|
579
|
-
var
|
|
580
|
-
function
|
|
581
|
-
|
|
580
|
+
var U = /* @__PURE__ */ new Set(), W = null;
|
|
581
|
+
function G() {
|
|
582
|
+
W || (W = new MutationObserver((e) => {
|
|
582
583
|
for (let t of e) if (t.attributeName === "data-scheme") {
|
|
583
|
-
for (let e of
|
|
584
|
+
for (let e of U) e();
|
|
584
585
|
return;
|
|
585
586
|
}
|
|
586
|
-
}),
|
|
587
|
+
}), W.observe(document.documentElement, {
|
|
587
588
|
attributes: !0,
|
|
588
589
|
attributeFilter: ["data-scheme"]
|
|
589
590
|
}));
|
|
590
591
|
}
|
|
591
|
-
function
|
|
592
|
-
return
|
|
593
|
-
|
|
592
|
+
function K(e) {
|
|
593
|
+
return G(), U.add(e), () => {
|
|
594
|
+
U.delete(e), U.size === 0 && (W?.disconnect(), W = null);
|
|
594
595
|
};
|
|
595
596
|
}
|
|
596
|
-
function
|
|
597
|
+
function q(e) {
|
|
597
598
|
let t = e.scrollLeft, n = e.scrollTop, r = e.style.display;
|
|
598
599
|
e.style.display = "none", e.offsetHeight, e.style.display = r, e.scrollLeft = t, e.scrollTop = n;
|
|
599
600
|
}
|
|
600
601
|
// src/components/content/code-viewer/code-viewer.ts
|
|
601
|
-
var
|
|
602
|
+
var J;
|
|
603
|
+
function Y(e) {
|
|
604
|
+
let t = e.filter((e) => e.isConnected), n = t.map((e) => e._measureScrollable());
|
|
605
|
+
t.forEach((e, t) => e._applyScrollable(n[t]));
|
|
606
|
+
}
|
|
607
|
+
var X = new E(Y), Z = T(Y), ae = 300, oe = 2e3;
|
|
602
608
|
function Q() {
|
|
603
609
|
return typeof window < "u" && window.isSecureContext === !0 && typeof navigator < "u" && typeof navigator.clipboard?.writeText == "function";
|
|
604
610
|
}
|
|
605
|
-
var $ = (
|
|
611
|
+
var $ = (J = class extends d {
|
|
606
612
|
constructor(...e) {
|
|
607
613
|
super(...e), this.appearance = "box-tinted", this.language = "", this.diff = !1, this.lineNumbers = !1, this.noCopy = !1, this.wrap = !1, this.maxHeight = "", this._copyUnavailable = !1, this.translations = {}, this._isScrollable = !1, this._copyState = "idle", this._languageCompartment = new s(), this._wrapCompartment = new s(), this._diffCompartment = new s(), this._wordCompartment = new s(), this._lineNumbersCompartment = new s(), this._languagePending = Promise.resolve(), this._wordsPending = Promise.resolve(), this._parsedDiff = null, this._copyPointerType = "", this._onCopyScroll = () => {
|
|
608
614
|
clearTimeout(this._copyResetTimer), this._copyResetTimer = void 0, this._copyState = "idle";
|
|
@@ -632,7 +638,7 @@ var $ = (Y = class extends d {
|
|
|
632
638
|
];
|
|
633
639
|
}
|
|
634
640
|
render() {
|
|
635
|
-
return
|
|
641
|
+
return ne(this);
|
|
636
642
|
}
|
|
637
643
|
focus(e) {
|
|
638
644
|
if (w(this, e)) return;
|
|
@@ -643,13 +649,13 @@ var $ = (Y = class extends d {
|
|
|
643
649
|
return this._parseDiff(this._getRawText()), this._parsedDiff?.doc ?? this._getRawText();
|
|
644
650
|
}
|
|
645
651
|
_parseDiff(e) {
|
|
646
|
-
this._parsedDiff = this.diff ?
|
|
652
|
+
this._parsedDiff = this.diff ? ie(e) : null, C(this, "diff-lines-dropped", (this._parsedDiff?.dropped ?? 0) > 0);
|
|
647
653
|
}
|
|
648
654
|
connectedCallback() {
|
|
649
|
-
super.connectedCallback(), this._unsubscribeScheme =
|
|
655
|
+
super.connectedCallback(), this._unsubscribeScheme = K(() => this._repaint());
|
|
650
656
|
}
|
|
651
657
|
disconnectedCallback() {
|
|
652
|
-
super.disconnectedCallback(), this._unsubscribeScheme?.(), this._unsubscribeScheme = void 0,
|
|
658
|
+
super.disconnectedCallback(), this._unsubscribeScheme?.(), this._unsubscribeScheme = void 0, Z.unobserveAll(this), X.cancel(this), this._mutationObserver?.disconnect(), this._mutationObserver = void 0, clearTimeout(this._copyResetTimer), this._copyResetTimer = void 0, this._stopCopyScroll?.(), this._stopCopyScroll = void 0;
|
|
653
659
|
}
|
|
654
660
|
firstUpdated() {
|
|
655
661
|
this._copyUnavailable = !this.noCopy && !Q(), this._parseDiff(this._getRawText()), this.mountEditor(this._parsedDiff?.doc ?? this._getRawText()), this.onEditorMounted();
|
|
@@ -663,9 +669,7 @@ var $ = (Y = class extends d {
|
|
|
663
669
|
}
|
|
664
670
|
onEditorMounted() {
|
|
665
671
|
let e = this.view?.scrollDOM;
|
|
666
|
-
e && (this.
|
|
667
|
-
e.every((e) => e.contentRect.width === 0) || this._scheduleUpdateScrollable();
|
|
668
|
-
}), this._resizeObserver.observe(e)), this._observeSlotText(), this.language && this._applyLanguage(), this._applyWords(), this._updateScrollable();
|
|
672
|
+
e && (Z.unobserveAll(this), Z.observe(e, this)), this._observeSlotText(), this.language && this._applyLanguage(), this._applyWords(), this._scheduleUpdateScrollable();
|
|
669
673
|
}
|
|
670
674
|
updated(e) {
|
|
671
675
|
e.has("_copyState") && (this._stopCopyScroll?.(), this._stopCopyScroll = this._copyState === "idle" ? void 0 : x(this, this._onCopyScroll)), e.has("noCopy") && (this._copyUnavailable = !this.noCopy && !Q()), e.has("maxHeight") && (this.maxHeight && CSS.supports("max-height", this.maxHeight) ? this.style.setProperty("--_code-viewer-max-height", this.maxHeight) : this.style.removeProperty("--_code-viewer-max-height"), C(this, "invalid-max-height", !!this.maxHeight && !CSS.supports("max-height", this.maxHeight))), this.view && (this._isScrollable && this.view.scrollDOM.setAttribute("aria-label", this._t("components.code-viewer.region-label")), e.has("language") && this._applyLanguage(), e.has("diff") && e.get("diff") !== void 0 && this._applyContent(), (e.has("lineNumbers") && e.get("lineNumbers") !== void 0 || e.has("diff") && e.get("diff") !== void 0) && this.reconfigure(this._lineNumbersCompartment, this._lineNumbersExtension()), e.has("translations") && e.get("translations") !== void 0 && this._parsedDiff && this.reconfigure(this._diffCompartment, this._diffExtension(this._parsedDiff)), e.has("wrap") && (this.reconfigure(this._wrapCompartment, this.wrap ? p.lineWrapping : []), this._updateScrollable()), (e.has("appearance") || e.has("maxHeight") || e.has("noCopy") || e.has("_copyUnavailable")) && this._updateScrollable());
|
|
@@ -686,20 +690,20 @@ var $ = (Y = class extends d {
|
|
|
686
690
|
insert: n
|
|
687
691
|
},
|
|
688
692
|
effects: [this._diffCompartment.reconfigure(this._parsedDiff ? this._diffExtension(this._parsedDiff) : []), this._wordCompartment.reconfigure([])]
|
|
689
|
-
}), this._applyWords(), this.
|
|
693
|
+
}), this._applyWords(), this._scheduleUpdateScrollable(), this.requestUpdate();
|
|
690
694
|
}
|
|
691
695
|
_lineNumbersExtension() {
|
|
692
696
|
return this.lineNumbers && !this.diff ? l() : [];
|
|
693
697
|
}
|
|
694
698
|
_diffExtension(e) {
|
|
695
|
-
return
|
|
699
|
+
return R(e, {
|
|
696
700
|
addedLine: (e) => this._t("components.code-viewer.added-line-label", { number: e }),
|
|
697
701
|
removedLine: (e) => this._t("components.code-viewer.removed-line-label", { number: e })
|
|
698
702
|
});
|
|
699
703
|
}
|
|
700
704
|
_applyWords() {
|
|
701
705
|
let e = this._parsedDiff;
|
|
702
|
-
e && (this._wordsPending =
|
|
706
|
+
e && (this._wordsPending = H(e).then((t) => {
|
|
703
707
|
this._parsedDiff === e && this.reconfigure(this._wordCompartment, t), C(this, "no-diff-words", !1);
|
|
704
708
|
}, () => C(this, "no-diff-words", !0)));
|
|
705
709
|
}
|
|
@@ -715,7 +719,7 @@ var $ = (Y = class extends d {
|
|
|
715
719
|
});
|
|
716
720
|
}
|
|
717
721
|
_t(e, t) {
|
|
718
|
-
return S(this.translations,
|
|
722
|
+
return S(this.translations, te, e, t);
|
|
719
723
|
}
|
|
720
724
|
async getUpdateComplete() {
|
|
721
725
|
let e = await super.getUpdateComplete();
|
|
@@ -730,7 +734,7 @@ var $ = (Y = class extends d {
|
|
|
730
734
|
this.reconfigure(this._languageCompartment, []);
|
|
731
735
|
return;
|
|
732
736
|
}
|
|
733
|
-
let t =
|
|
737
|
+
let t = g(e);
|
|
734
738
|
if (!t) this.reconfigure(this._languageCompartment, []);
|
|
735
739
|
else try {
|
|
736
740
|
let n = await t;
|
|
@@ -740,15 +744,18 @@ var $ = (Y = class extends d {
|
|
|
740
744
|
}
|
|
741
745
|
}
|
|
742
746
|
_scheduleUpdateScrollable() {
|
|
743
|
-
|
|
744
|
-
this._scrollableRaf = void 0, this._updateScrollable();
|
|
745
|
-
}));
|
|
747
|
+
X.schedule(this, this.ownerDocument);
|
|
746
748
|
}
|
|
747
749
|
_updateScrollable() {
|
|
750
|
+
this._applyScrollable(this._measureScrollable());
|
|
751
|
+
}
|
|
752
|
+
_measureScrollable() {
|
|
748
753
|
let e = this.view?.scrollDOM;
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
754
|
+
return !e || e.clientWidth === 0 ? null : e.scrollHeight > e.clientHeight || !this.wrap && e.scrollWidth > e.clientWidth;
|
|
755
|
+
}
|
|
756
|
+
_applyScrollable(e) {
|
|
757
|
+
let t = this.view?.scrollDOM;
|
|
758
|
+
t && e !== null && (this._isScrollable = e, e ? (t.setAttribute("tabindex", "0"), t.setAttribute("role", "region"), t.setAttribute("aria-label", this._t("components.code-viewer.region-label"))) : (t.removeAttribute("tabindex"), t.removeAttribute("role"), t.removeAttribute("aria-label")));
|
|
752
759
|
}
|
|
753
760
|
_getRawText() {
|
|
754
761
|
let e = this.shadowRoot?.querySelector("slot");
|
|
@@ -764,7 +771,7 @@ var $ = (Y = class extends d {
|
|
|
764
771
|
}
|
|
765
772
|
clearTimeout(this._copyResetTimer), this._copyResetTimer = void 0, this._copyPointerType && this._copyPointerType !== "mouse" && (this._copyResetTimer = setTimeout(() => {
|
|
766
773
|
this._copyResetTimer = void 0, this._copyState = "idle";
|
|
767
|
-
},
|
|
774
|
+
}, oe));
|
|
768
775
|
}
|
|
769
776
|
_onCopyPointerDown(e) {
|
|
770
777
|
this._copyPointerType = e.pointerType;
|
|
@@ -778,7 +785,7 @@ var $ = (Y = class extends d {
|
|
|
778
785
|
_onCopyPointerLeave() {
|
|
779
786
|
this._copyState !== "idle" && (this.shadowRoot?.querySelector("nldd-icon-button")?.matches(":focus-within") || (clearTimeout(this._copyResetTimer), this._copyResetTimer = setTimeout(() => {
|
|
780
787
|
this._copyResetTimer = void 0, this._copyState = "idle";
|
|
781
|
-
},
|
|
788
|
+
}, ae)));
|
|
782
789
|
}
|
|
783
790
|
_onCopyPointerEnter() {
|
|
784
791
|
clearTimeout(this._copyResetTimer), this._copyResetTimer = void 0;
|
|
@@ -788,36 +795,36 @@ var $ = (Y = class extends d {
|
|
|
788
795
|
}
|
|
789
796
|
_repaint() {
|
|
790
797
|
let e = this.view?.scrollDOM;
|
|
791
|
-
e &&
|
|
798
|
+
e && q(e);
|
|
792
799
|
}
|
|
793
|
-
},
|
|
794
|
-
|
|
800
|
+
}, J.styles = D, J);
|
|
801
|
+
b([t({
|
|
795
802
|
reflect: !0,
|
|
796
803
|
converter: r("box-tinted")
|
|
797
|
-
})], $.prototype, "appearance", void 0),
|
|
804
|
+
})], $.prototype, "appearance", void 0), b([t({
|
|
798
805
|
reflect: !0,
|
|
799
806
|
converter: r("")
|
|
800
|
-
})], $.prototype, "language", void 0),
|
|
807
|
+
})], $.prototype, "language", void 0), b([t({
|
|
801
808
|
type: Boolean,
|
|
802
809
|
reflect: !0
|
|
803
|
-
})], $.prototype, "diff", void 0),
|
|
810
|
+
})], $.prototype, "diff", void 0), b([t({
|
|
804
811
|
type: Boolean,
|
|
805
812
|
reflect: !0,
|
|
806
813
|
attribute: "line-numbers"
|
|
807
|
-
})], $.prototype, "lineNumbers", void 0),
|
|
814
|
+
})], $.prototype, "lineNumbers", void 0), b([t({
|
|
808
815
|
type: Boolean,
|
|
809
816
|
reflect: !0,
|
|
810
817
|
attribute: "no-copy"
|
|
811
|
-
})], $.prototype, "noCopy", void 0),
|
|
818
|
+
})], $.prototype, "noCopy", void 0), b([t({
|
|
812
819
|
type: Boolean,
|
|
813
820
|
reflect: !0
|
|
814
|
-
})], $.prototype, "wrap", void 0),
|
|
821
|
+
})], $.prototype, "wrap", void 0), b([t({
|
|
815
822
|
reflect: !0,
|
|
816
823
|
attribute: "max-height",
|
|
817
824
|
converter: r("")
|
|
818
|
-
})], $.prototype, "maxHeight", void 0),
|
|
825
|
+
})], $.prototype, "maxHeight", void 0), b([t({
|
|
819
826
|
type: Boolean,
|
|
820
827
|
reflect: !0,
|
|
821
828
|
attribute: "copy-unavailable"
|
|
822
|
-
})], $.prototype, "_copyUnavailable", void 0),
|
|
829
|
+
})], $.prototype, "_copyUnavailable", void 0), b([t({ type: Object })], $.prototype, "translations", void 0), b([e()], $.prototype, "_isScrollable", void 0), b([e()], $.prototype, "_copyState", void 0), $ = b([_("nldd-code-viewer")], $);
|
|
823
830
|
export { $ as NLDDCodeViewer };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { l as e } from "./style-mod-DGMhzWuk.js";
|
|
2
|
-
import { $ as t, A as n, C as r, E as i, K as a, O as o, Q as s, X as c, Y as l, Z as u, b as d, ct as f, et as p, ht as m, i as ee, j as h, lt as te, mt as g, o as ne, pt as re, st as ie, tt as ae, ut as _, w as oe, x as se } from "./languages-
|
|
3
|
-
import { r as v } from "./custom-element-
|
|
4
|
-
import { n as ce, t as y } from "./decorate-
|
|
2
|
+
import { $ as t, A as n, C as r, E as i, K as a, O as o, Q as s, X as c, Y as l, Z as u, b as d, ct as f, et as p, ht as m, i as ee, j as h, lt as te, mt as g, o as ne, pt as re, st as ie, tt as ae, ut as _, w as oe, x as se } from "./languages-CPd7_I8H.js";
|
|
3
|
+
import { r as v } from "./custom-element-DtLjpays.js";
|
|
4
|
+
import { n as ce, t as y } from "./decorate-BhnGmemK.js";
|
|
5
5
|
import { t as le } from "./reflect-non-default-Bu3rpCvg.js";
|
|
6
|
-
import { t as ue } from "./described-by-mixin-
|
|
7
|
-
import { t as de } from "./form-associated-mixin-
|
|
6
|
+
import { t as ue } from "./described-by-mixin-Jh_PTTde.js";
|
|
7
|
+
import { t as de } from "./form-associated-mixin-Cm1N24gR.js";
|
|
8
8
|
// node_modules/@codemirror/commands/dist/index.js
|
|
9
9
|
var fe = (e) => {
|
|
10
10
|
let { state: t } = e, n = t.doc.lineAt(t.selection.main.from), r = x(e.state, n.from);
|
|
@@ -1,20 +1,22 @@
|
|
|
1
|
-
import { n as e, o as t, r as n, t as r } from "./decorate-
|
|
2
|
-
import { c as i, n as a, r as o, s } from "./custom-element-
|
|
1
|
+
import { n as e, o as t, r as n, t as r } from "./decorate-BhnGmemK.js";
|
|
2
|
+
import { c as i, n as a, r as o, s } from "./custom-element-DtLjpays.js";
|
|
3
3
|
import { t as c } from "./custom-element-BW8Ua4c7.js";
|
|
4
4
|
import { t as l } from "./query-ChDzi9FQ.js";
|
|
5
5
|
import { t as u } from "./reflect-non-default-Bu3rpCvg.js";
|
|
6
6
|
import { n as d } from "./breakpoints-Cwor8TRP.js";
|
|
7
|
-
import { t as f } from "./if-defined-
|
|
7
|
+
import { t as f } from "./if-defined-CZ1Fmb74.js";
|
|
8
8
|
import { t as p } from "./collection.i18n-DqWPGnZO.js";
|
|
9
|
-
import "./button-
|
|
10
|
-
import "./button-bar-
|
|
11
|
-
import "./icon-button-
|
|
12
|
-
import "./icon-
|
|
9
|
+
import "./button-BK8CmshL.js";
|
|
10
|
+
import "./button-bar-5RtXjgGl.js";
|
|
11
|
+
import "./icon-button-HKoCqWG3.js";
|
|
12
|
+
import "./icon-Dj98ov4G.js";
|
|
13
13
|
import { t as m } from "./spacing-scale-SufIjHeN.js";
|
|
14
|
-
import { t as h } from "./translations-
|
|
14
|
+
import { t as h } from "./translations-C6WKR-hE.js";
|
|
15
15
|
import { t as g } from "./list-items-Du0RCWsY.js";
|
|
16
|
+
import { t as _ } from "./after-parse-BSKUm67Q.js";
|
|
17
|
+
import { n as v, t as y } from "./layout-pass-Cq85kSHX.js";
|
|
16
18
|
// src/components/layout/collection/collection.styles.ts
|
|
17
|
-
var
|
|
19
|
+
var b = i(d.smMax), x = i(d.mdMin), S = i(d.mdMax), C = i(d.lgMin), w = s`
|
|
18
20
|
:host {
|
|
19
21
|
box-sizing: border-box;
|
|
20
22
|
}
|
|
@@ -35,13 +37,13 @@ var _ = i(d.smMax), v = i(d.mdMin), y = i(d.mdMax), b = i(d.lgMin), x = s`
|
|
|
35
37
|
--_collection-lg-gap: var(--primitives-space-24);
|
|
36
38
|
--_collection-gap: var(--_collection-sm-gap);
|
|
37
39
|
|
|
38
|
-
@media (max-width: ${
|
|
39
|
-
@media (min-width: ${
|
|
40
|
-
@media (min-width: ${
|
|
40
|
+
@media (max-width: ${b}) { --_collection-gap: var(--_collection-sm-gap); }
|
|
41
|
+
@media (min-width: ${x}) and (max-width: ${S}) { --_collection-gap: var(--_collection-md-gap); }
|
|
42
|
+
@media (min-width: ${C}) { --_collection-gap: var(--_collection-lg-gap); }
|
|
41
43
|
|
|
42
|
-
@container layout-container (max-width: ${
|
|
43
|
-
@container layout-container (min-width: ${
|
|
44
|
-
@container layout-container (min-width: ${
|
|
44
|
+
@container layout-container (max-width: ${b}) { --_collection-gap: var(--_collection-sm-gap); }
|
|
45
|
+
@container layout-container (min-width: ${x}) and (max-width: ${S}) { --_collection-gap: var(--_collection-md-gap); }
|
|
46
|
+
@container layout-container (min-width: ${C}) { --_collection-gap: var(--_collection-lg-gap); }
|
|
45
47
|
|
|
46
48
|
display: flex;
|
|
47
49
|
width: 100%;
|
|
@@ -194,7 +196,7 @@ var _ = i(d.smMax), v = i(d.mdMin), y = i(d.mdMax), b = i(d.lgMin), x = s`
|
|
|
194
196
|
}
|
|
195
197
|
`;
|
|
196
198
|
// src/components/layout/collection/collection.template.ts
|
|
197
|
-
function
|
|
199
|
+
function T(e) {
|
|
198
200
|
let r = e.layout === "horizontal-scroll", i = !r && e.showLoadMore && e._hasMore, a = r && e._isScrollable, o = a || i || e._hasFooterSlot;
|
|
199
201
|
return t`
|
|
200
202
|
<div class="collection__scroll-area">
|
|
@@ -245,19 +247,24 @@ function S(e) {
|
|
|
245
247
|
`;
|
|
246
248
|
}
|
|
247
249
|
// src/components/layout/collection/collection.ts
|
|
248
|
-
var
|
|
250
|
+
var E, D = new y((e) => {
|
|
251
|
+
for (let t of e) t._measureOverflow();
|
|
252
|
+
}), O = v((e) => {
|
|
253
|
+
for (let t of e) t._measureOverflow();
|
|
254
|
+
}), k = (E = class extends e {
|
|
249
255
|
constructor(...e) {
|
|
250
256
|
super(...e), this.layout = "grid", this.maxItems = 24, this.translations = {}, this.showLoadMore = !1, this.lazyLoad = !1, this._visibleCount = 0, this._totalCount = 0, this._atStart = !0, this._atEnd = !1, this._isScrollable = !1, this._hasFooterSlot = !1, this._onFooterSlotChange = (e) => {
|
|
251
257
|
let t = e.target;
|
|
252
258
|
queueMicrotask(() => {
|
|
253
259
|
this._hasFooterSlot = t.assignedElements().length > 0;
|
|
254
260
|
});
|
|
255
|
-
}, this._scrollListener = () => {
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
+
}, this._scrollListener = () => this._measureOverflow(), this._scrollListenerAttached = !1, this._itemsSlot = null, this._itemsPending = !1, this._parsedChildren = null, this._parsedItems = 0, this._refreshItems = () => {
|
|
262
|
+
this._itemsPending = !1;
|
|
263
|
+
let e = this._itemsSlot?.assignedElements() ?? [];
|
|
264
|
+
this.ownerDocument.readyState === "loading" ? (this._parsedChildren = new WeakSet(this.children), this._parsedItems = e.length) : this._parsedChildren = null, g(e), queueMicrotask(() => {
|
|
265
|
+
this._totalCount = e.length;
|
|
266
|
+
}), this.layout === "horizontal-scroll" ? D.schedule(this, this.ownerDocument) : this._applyVisibility(e);
|
|
267
|
+
}, this._onFocusIn = (e) => {
|
|
261
268
|
let t = this._itemsEl;
|
|
262
269
|
if (this.layout !== "horizontal-scroll" || !t) return;
|
|
263
270
|
let n = e.target, r = this._itemStarts(), i = r.find(({ item: e }) => e === n || e.contains(n));
|
|
@@ -272,6 +279,12 @@ var C = class extends e {
|
|
|
272
279
|
_t(e) {
|
|
273
280
|
return h(this.translations, p, e);
|
|
274
281
|
}
|
|
282
|
+
_measureOverflow() {
|
|
283
|
+
let e = this._itemsEl;
|
|
284
|
+
if (!e || !this._scrollListenerAttached) return;
|
|
285
|
+
let t = this._atStart, n = this._atEnd;
|
|
286
|
+
this._atStart = e.scrollLeft < 1, this._atEnd = e.scrollLeft + e.clientWidth >= e.scrollWidth - 1, this._isScrollable = e.scrollWidth > e.clientWidth, !t && this._atStart && this._handOffControlFocus("previous"), !n && this._atEnd && this._handOffControlFocus("next");
|
|
287
|
+
}
|
|
275
288
|
_handOffControlFocus(e) {
|
|
276
289
|
let t = this.shadowRoot?.querySelectorAll("nldd-icon-button");
|
|
277
290
|
if (!t || t.length < 2) return;
|
|
@@ -301,16 +314,22 @@ var C = class extends e {
|
|
|
301
314
|
}, { threshold: .1 }), this._intersectionObserver.observe(this._loadMoreBtn)) : this._loadMoreBtn || (this._intersectionObserver?.disconnect(), this._intersectionObserver = void 0), this.toggleAttribute("scrollable", this.layout === "horizontal-scroll" && this._isScrollable);
|
|
302
315
|
}
|
|
303
316
|
_setupScrollListeners() {
|
|
304
|
-
this._teardownScrollListeners(), this.layout === "horizontal-scroll" && this._itemsEl && (this._itemsEl.addEventListener("scroll", this._scrollListener, { passive: !0 }),
|
|
317
|
+
this._teardownScrollListeners(), this.layout === "horizontal-scroll" && this._itemsEl && (this._itemsEl.addEventListener("scroll", this._scrollListener, { passive: !0 }), O.observe(this._itemsEl, this), this._scrollListenerAttached = !0, D.schedule(this, this.ownerDocument));
|
|
305
318
|
}
|
|
306
319
|
_teardownScrollListeners() {
|
|
307
|
-
this._itemsEl?.removeEventListener("scroll", this._scrollListener),
|
|
320
|
+
this._itemsEl?.removeEventListener("scroll", this._scrollListener), O.unobserveAll(this), D.cancel(this), this._scrollListenerAttached = !1, this._isScrollable = !1;
|
|
308
321
|
}
|
|
309
322
|
_onSlotChange(e) {
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
323
|
+
this._itemsSlot = e.target, this._itemsPending ? this._hideParsedItems() : (this._itemsPending = !0, _(this._refreshItems, this.ownerDocument) ? this._hideParsedItems() : this._refreshItems());
|
|
324
|
+
}
|
|
325
|
+
_hideParsedItems() {
|
|
326
|
+
if (this.layout === "horizontal-scroll") return;
|
|
327
|
+
let e = this._parsedChildren ?? (this._parsedChildren = /* @__PURE__ */ new WeakSet()), t = [];
|
|
328
|
+
for (let n = this.lastElementChild; n && !e.has(n); n = n.previousElementSibling) t.push(n);
|
|
329
|
+
for (let n = t.length - 1; n >= 0; n--) {
|
|
330
|
+
let r = t[n];
|
|
331
|
+
e.add(r), r.slot || this._parsedItems++ >= this._visibleCount && (r.hidden = !0);
|
|
332
|
+
}
|
|
314
333
|
}
|
|
315
334
|
_applyVisibility(e) {
|
|
316
335
|
let t = this._itemsEl?.querySelector("slot");
|
|
@@ -352,45 +371,45 @@ var C = class extends e {
|
|
|
352
371
|
});
|
|
353
372
|
}
|
|
354
373
|
render() {
|
|
355
|
-
return
|
|
374
|
+
return T(this);
|
|
356
375
|
}
|
|
357
|
-
},
|
|
376
|
+
}, E.styles = w, E);
|
|
358
377
|
r([o({
|
|
359
378
|
reflect: !0,
|
|
360
379
|
converter: u("grid")
|
|
361
|
-
})],
|
|
380
|
+
})], k.prototype, "layout", void 0), r([o({
|
|
362
381
|
type: String,
|
|
363
382
|
reflect: !0,
|
|
364
383
|
attribute: "item-min-width"
|
|
365
|
-
})],
|
|
384
|
+
})], k.prototype, "itemMinWidth", void 0), r([o({
|
|
366
385
|
type: String,
|
|
367
386
|
reflect: !0,
|
|
368
387
|
attribute: "item-max-width"
|
|
369
|
-
})],
|
|
388
|
+
})], k.prototype, "itemMaxWidth", void 0), r([o({
|
|
370
389
|
type: String,
|
|
371
390
|
reflect: !0
|
|
372
|
-
})],
|
|
391
|
+
})], k.prototype, "gap", void 0), r([o({
|
|
373
392
|
type: String,
|
|
374
393
|
reflect: !0,
|
|
375
394
|
attribute: "sm-gap"
|
|
376
|
-
})],
|
|
395
|
+
})], k.prototype, "smGap", void 0), r([o({
|
|
377
396
|
type: String,
|
|
378
397
|
reflect: !0,
|
|
379
398
|
attribute: "md-gap"
|
|
380
|
-
})],
|
|
399
|
+
})], k.prototype, "mdGap", void 0), r([o({
|
|
381
400
|
type: String,
|
|
382
401
|
reflect: !0,
|
|
383
402
|
attribute: "lg-gap"
|
|
384
|
-
})],
|
|
403
|
+
})], k.prototype, "lgGap", void 0), r([o({
|
|
385
404
|
type: Number,
|
|
386
405
|
attribute: "max-items"
|
|
387
|
-
})],
|
|
406
|
+
})], k.prototype, "maxItems", void 0), r([o({ type: Object })], k.prototype, "translations", void 0), r([o({
|
|
388
407
|
type: Boolean,
|
|
389
408
|
reflect: !0,
|
|
390
409
|
attribute: "show-load-more"
|
|
391
|
-
})],
|
|
410
|
+
})], k.prototype, "showLoadMore", void 0), r([o({
|
|
392
411
|
type: Boolean,
|
|
393
412
|
reflect: !0,
|
|
394
413
|
attribute: "lazy-load"
|
|
395
|
-
})],
|
|
396
|
-
export {
|
|
414
|
+
})], k.prototype, "lazyLoad", void 0), r([a()], k.prototype, "_visibleCount", void 0), r([a()], k.prototype, "_totalCount", void 0), r([a()], k.prototype, "_atStart", void 0), r([a()], k.prototype, "_atEnd", void 0), r([a()], k.prototype, "_isScrollable", void 0), r([a()], k.prototype, "_hasFooterSlot", void 0), r([l(".collection__items")], k.prototype, "_itemsEl", void 0), r([l("nldd-button.load-more")], k.prototype, "_loadMoreBtn", void 0), k = r([c("nldd-collection")], k);
|
|
415
|
+
export { k as NLDDCollection };
|