@nldd/design-system 0.26.1 → 0.26.3
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/README.md +7 -7
- package/custom-elements.json +5615 -1321
- package/dist/cdn/autoloader.js +141 -141
- package/dist/cdn/chunks/{accordion-item-Ca1o93cq.js → accordion-item-BXEHwzcv.js} +7 -7
- package/dist/cdn/chunks/{accordion-DA4IlxS5.js → accordion-qXirmNBj.js} +6 -6
- package/dist/cdn/chunks/{activity-indicator-Cj4H0Mbz.js → activity-indicator-DP61AhsJ.js} +13 -13
- package/dist/cdn/chunks/{admonition-CdZSoO8O.js → admonition-RnRSNAri.js} +11 -11
- package/dist/cdn/chunks/{avatar-Dhqn-Dmv.js → avatar-DsexiOhH.js} +18 -18
- package/dist/cdn/chunks/{avatar-group-B017eF-u.js → avatar-group-BrfrpXvd.js} +42 -40
- package/dist/cdn/chunks/{badge-Bep5B0_g.js → badge-BiQFOq2l.js} +15 -15
- package/dist/cdn/chunks/{banner-DGpIXuE2.js → banner-42zIYAEN.js} +16 -16
- package/dist/cdn/chunks/{bar-split-view-CKwJxd3e.js → bar-split-view-CjYEp276.js} +8 -8
- package/dist/cdn/chunks/{blockquote-ChMgaOuI.js → blockquote-qf4hJYvm.js} +8 -8
- package/dist/cdn/chunks/{box-BRmziG-6.js → box-CWyg7sbR.js} +5 -5
- package/dist/cdn/chunks/{breadcrumbs-BeVO8bkQ.js → breadcrumbs-BaHjYdz8.js} +13 -13
- package/dist/cdn/chunks/{button-cHBkq_s7.js → button-CKV-jwGY.js} +53 -54
- package/dist/cdn/chunks/{button-bar-CLxOdalJ.js → button-bar-DeJ81759.js} +8 -8
- package/dist/cdn/chunks/{button-group-BIvKtEIX.js → button-group-CuRkiHR5.js} +6 -6
- package/dist/cdn/chunks/{card-B5gp9Zly.js → card-DxeUNE3V.js} +10 -10
- package/dist/cdn/chunks/{cell-D4Nrd5Z9.js → cell-QaG8b-Qk.js} +13 -13
- package/dist/cdn/chunks/{checkbox-CeLTJhAc.js → checkbox-V0YerUKf.js} +26 -43
- package/dist/cdn/chunks/{checkbox-field-C8cU8fuf.js → checkbox-field-DeySECgv.js} +35 -43
- package/dist/cdn/chunks/checkbox-group-DFNy1y-A.js +91 -0
- package/dist/cdn/chunks/choice-group-AZsqoheP.js +64 -0
- package/dist/cdn/chunks/{class-map-xzscTu4B.js → class-map-CmgI2Tu-.js} +1 -1
- package/dist/cdn/chunks/{code-editor-BNhlXTSl.js → code-editor-BBMbUJ4d.js} +11 -11
- package/dist/cdn/chunks/{code-viewer-D_JwouYO.js → code-viewer-B8jse0-5.js} +25 -28
- package/dist/cdn/chunks/{codemirror-input-DJ0wgYrc.js → codemirror-input-BEotDTtZ.js} +5 -5
- package/dist/cdn/chunks/{collection-BXvz_OtU.js → collection-DRoS7Ona.js} +19 -19
- package/dist/cdn/chunks/{combo-box-8kbmoStb.js → combo-box-DA1ZQJJS.js} +69 -87
- package/dist/cdn/chunks/{container-Dq-2uHd5.js → container-F1i2pmko.js} +48 -48
- package/dist/cdn/chunks/{custom-element-DeaCQ2NP.js → custom-element-DD4ffKRs.js} +2 -2
- package/dist/cdn/chunks/{date-field-CQg1_73u.js → date-field-DVgisQnm.js} +33 -40
- package/dist/cdn/chunks/{date-picker-CTMxGOiA.js → date-picker-BaDTota3.js} +17 -17
- package/dist/cdn/chunks/{decorate-CCYde2ES.js → decorate-CeGXihRM.js} +1 -1
- package/dist/cdn/chunks/deep-active-element-DgiHjYGG.js +7 -0
- package/dist/cdn/chunks/{described-by-mixin-BYFim7aO.js → described-by-mixin-qFatR9dF.js} +2 -2
- package/dist/cdn/chunks/{description-cell-GcVeCz2_.js → description-cell-D45N4P1X.js} +12 -12
- package/dist/cdn/chunks/{dev-checks-CSlbfDuF.js → dev-checks-CkCD0tPh.js} +972 -922
- package/dist/cdn/chunks/{directive-helpers-DgaADFyY.js → directive-helpers-B9pcQxsE.js} +1 -1
- package/dist/cdn/chunks/{dist-CyDpBAaD.js → dist-BS_pQgb6.js} +2 -2
- package/dist/cdn/chunks/{dist-D4SViUJx.js → dist-Cl-rXzh7.js} +1 -1
- package/dist/cdn/chunks/{dist-1OQdP4ho.js → dist-DJQUgOKW.js} +3 -3
- package/dist/cdn/chunks/{dist-VCymi0hs.js → dist-DjlGttcc.js} +1 -1
- package/dist/cdn/chunks/{dist-DBxjWahH.js → dist-Dsyc1RGG.js} +1 -1
- package/dist/cdn/chunks/{dist-CcpLhc4y.js → dist-jTL_Kil1.js} +1 -1
- package/dist/cdn/chunks/{dist-B23jHvJ5.js → dist-mxb0NzAU.js} +1 -1
- package/dist/cdn/chunks/{dist-DLtwMUDc.js → dist-n8aCu6Kg.js} +2 -2
- package/dist/cdn/chunks/{dist-CNy2sPTt.js → dist-rjQNj-KZ.js} +2 -2
- package/dist/cdn/chunks/{dist-5vPsM2aV.js → dist-v62GtoI6.js} +1 -1
- package/dist/cdn/chunks/{dist-Da_liXcd.js → dist-v7yvd26H.js} +3 -3
- package/dist/cdn/chunks/{divider-8XD3xTbl.js → divider-CtMx3Byp.js} +2 -2
- package/dist/cdn/chunks/{document-tab-bar-RBAmckHS.js → document-tab-bar-SKSf69FX.js} +42 -53
- package/dist/cdn/chunks/{dropdown-DVlxPcjr.js → dropdown-se1zjYlw.js} +14 -14
- package/dist/cdn/chunks/{file-field-BrHnFplX.js → file-field-DW_Xt5O3.js} +42 -40
- package/dist/cdn/chunks/{floating-ui.dom-BvAAdCVe.js → floating-ui.dom-CB34tcZx.js} +1 -1
- package/dist/cdn/chunks/{form-DGHeGEIr.js → form-C9-eW3zc.js} +1 -1
- package/dist/cdn/chunks/{form-actions-CHwWKfMM.js → form-actions-Cy5tH1nk.js} +4 -4
- package/dist/cdn/chunks/form-associated-mixin-CA0F9CPx.js +123 -0
- package/dist/cdn/chunks/{form-field-CdTSI-8h.js → form-field-BMWm8VGS.js} +55 -11
- package/dist/cdn/chunks/{form-section-CjECOIiZ.js → form-section-DrrXc4wZ.js} +1 -1
- package/dist/cdn/chunks/{full-bleed-section-CQgq4iGQ.js → full-bleed-section-6QL0av4x.js} +5 -5
- package/dist/cdn/chunks/{hero-DhdcYt2N.js → hero-BThWV3MR.js} +19 -19
- package/dist/cdn/chunks/{icon-qpmEfU9B.js → icon-CVM6X_F1.js} +8 -8
- package/dist/cdn/chunks/{icon-button-DT_Bi4Ac.js → icon-button-h_sEz0Ia.js} +41 -38
- package/dist/cdn/chunks/{icon-cell-C-qrZAlN.js → icon-cell-C3Ygercd.js} +10 -10
- package/dist/cdn/chunks/{identity-DFmvuPkl.js → identity-BR0KxjM5.js} +12 -12
- package/dist/cdn/chunks/{if-defined-BINBE69I.js → if-defined-CvQli6P0.js} +1 -1
- package/dist/cdn/chunks/{image-B4M3h1xJ.js → image-D8H73DIj.js} +21 -21
- package/dist/cdn/chunks/{inline-dialog-L-NvjANF.js → inline-dialog-Dlu3bneh.js} +16 -16
- package/dist/cdn/chunks/interest-intent-Bk3i_upv.js +63 -0
- package/dist/cdn/chunks/{interest-controller-Ban-3NrX.js → interest-invoker-CfOJaqZQ.js} +28 -38
- package/dist/cdn/chunks/{just-in-time-education-CWplH4r9.js → just-in-time-education-DG0teV5g.js} +14 -14
- package/dist/cdn/chunks/{kanban-B6Wa-2aM.js → kanban-MNLyqki_.js} +25 -29
- package/dist/cdn/chunks/{kanban-column-D2-Xq79_.js → kanban-column-CGF_4Q0N.js} +10 -10
- package/dist/cdn/chunks/{keyboard-shortcut-Ci95olxF.js → keyboard-shortcut-DZDtndhS.js} +13 -13
- package/dist/cdn/chunks/{languages-C9AGuuSS.js → languages-BCn4J5Ck.js} +12 -12
- package/dist/cdn/chunks/{link-BJB2a_fG.js → link-CTj3dTmJ.js} +18 -18
- package/dist/cdn/chunks/{link-group-aNoedLZo.js → link-group--C486tYV.js} +7 -7
- package/dist/cdn/chunks/{list-CZWX62tH.js → list-DApLHKj-.js} +110 -95
- package/dist/cdn/chunks/{list-item-DHzsbK_S.js → list-item-BN9uuvXr.js} +50 -29
- package/dist/cdn/chunks/{list-item-segment-CHLlU9Gg.js → list-item-segment-CvdZT9Ni.js} +23 -20
- package/dist/cdn/chunks/{menu-NGpB1SKq.js → menu-2-9LtMLY.js} +113 -101
- package/dist/cdn/chunks/{menu-bar-CJazkmY7.js → menu-bar-g-O3_TNl.js} +59 -60
- package/dist/cdn/chunks/{menu-bar-item-CSqXWNKE.js → menu-bar-item-tOFEx-lS.js} +35 -35
- package/dist/cdn/chunks/{menu-divider-Cn1hTpcM.js → menu-divider-Dmv0lMHV.js} +3 -3
- package/dist/cdn/chunks/{menu-group-C71K1Vmv.js → menu-group-Ci9QUUwZ.js} +4 -4
- package/dist/cdn/chunks/{menu-item-TqBlQfI2.js → menu-item-BnIbV4yo.js} +4 -4
- package/dist/cdn/chunks/{menu.template-DthELYky.js → menu.template-sPjaMfc8.js} +4 -4
- package/dist/cdn/chunks/{modal-dialog-0V2HsrJC.js → modal-dialog-D-jAbabe.js} +28 -78
- package/dist/cdn/chunks/modal-overlay-Bx0bYzF3.js +95 -0
- package/dist/cdn/chunks/{multi-line-text-field-BV4uUDoK.js → multi-line-text-field-uBZqAdr6.js} +28 -45
- package/dist/cdn/chunks/{navigation-split-view-tPhkxEVD.js → navigation-split-view-DARbBPq-.js} +10 -10
- package/dist/cdn/chunks/{notification-CZccv6qx.js → notification-CntIGoYh.js} +12 -12
- package/dist/cdn/chunks/{number-field-4R2blHda.js → number-field-C0MTabLP.js} +26 -32
- package/dist/cdn/chunks/{one-half-one-half-section-h2fLPQfP.js → one-half-one-half-section-DYzf6LtU.js} +6 -6
- package/dist/cdn/chunks/{one-third-two-thirds-section-mqUAH5lK.js → one-third-two-thirds-section-AAiaxCHH.js} +6 -6
- package/dist/cdn/chunks/{one-time-code-field-Bf_qymKd.js → one-time-code-field-CCILuCy1.js} +25 -38
- package/dist/cdn/chunks/overflow-menu-DFoh3xL_.js +83 -0
- package/dist/cdn/chunks/overlay-invoker-Dj6MQAtF.js +97 -0
- package/dist/cdn/chunks/{page-Kipfvmi6.js → page-BDXLREou.js} +41 -19
- package/dist/cdn/chunks/{page-footer-DxE966Oe.js → page-footer-BsVMZCXs.js} +13 -13
- package/dist/cdn/chunks/{page-section-mixin-DpF9JDpd.js → page-section-mixin-L0bl3wCm.js} +21 -21
- package/dist/cdn/chunks/{pagination-DUFFhaU8.js → pagination-DLwbSZdO.js} +13 -13
- package/dist/cdn/chunks/{password-field-DdYAVmF3.js → password-field-DKTJgEyb.js} +28 -45
- package/dist/cdn/chunks/{popover-CRHxyhGx.js → popover-RB7uLASo.js} +66 -65
- package/dist/cdn/chunks/{progress-bar-BuYsjmSo.js → progress-bar-DnXWbmiw.js} +26 -26
- package/dist/cdn/chunks/{progress-circle-Cvu1bfNG.js → progress-circle-S89MUtU8.js} +24 -24
- package/dist/cdn/chunks/{radio-button-B_4AxWDx.js → radio-button-B31lAjlk.js} +17 -26
- package/dist/cdn/chunks/{radio-button-field-D7jIg6Oi.js → radio-button-field-BF4MHiOQ.js} +29 -37
- package/dist/cdn/chunks/radio-button-group-BQUqV8wJ.js +112 -0
- package/dist/cdn/chunks/{render-marked-CIuiSS_8.js → render-marked-ChJNzktf.js} +1 -1
- package/dist/cdn/chunks/{reorder-handle-cell-DNPaZjSC.js → reorder-handle-cell-SEERkeh7.js} +7 -7
- package/dist/cdn/chunks/{reorder-handle-mixin-CgvWq4fF.js → reorder-handle-mixin-tWe9XTjZ.js} +2 -2
- package/dist/cdn/chunks/{repeat-DfVuWl6o.js → repeat-CdCK17GF.js} +2 -2
- package/dist/cdn/chunks/{return-focus-D0fF2hjd.js → return-focus-CpwHVxYU.js} +10 -14
- package/dist/cdn/chunks/{rich-text-CVHlMQY6.js → rich-text-vVWOndD2.js} +3 -3
- package/dist/cdn/chunks/{row-header-mixin-B25JK2B3.js → row-header-mixin-6MoJ5Mjq.js} +2 -2
- package/dist/cdn/chunks/{scroll-fade-Dv57rTww.js → scroll-fade-Cr7_IXpU.js} +4 -4
- package/dist/cdn/chunks/{search-field-hmD_DXbG.js → search-field-C9urWH_J.js} +33 -58
- package/dist/cdn/chunks/{segmented-control-e8e-jYSw.js → segmented-control-DkILAMOJ.js} +92 -103
- package/dist/cdn/chunks/{shadow-resets-CRdvf-Ei.js → shadow-resets-9v6K-Fie.js} +2 -2
- package/dist/cdn/chunks/{sheet-D09y3J45.js → sheet-D89xI-KY.js} +40 -90
- package/dist/cdn/chunks/{shell-CV3gooGg.js → shell-CFmfUD0_.js} +5 -5
- package/dist/cdn/chunks/{side-by-side-split-view-Ckz1C9zk.js → side-by-side-split-view-ir9c0mwZ.js} +8 -8
- package/dist/cdn/chunks/{sidebar-section-CdyD-x4t.js → sidebar-section-BhJXels3.js} +14 -14
- package/dist/cdn/chunks/{simple-section-CEf38rBZ.js → simple-section-CMoYuLYV.js} +7 -7
- package/dist/cdn/chunks/{skip-link-DMRhATWw.js → skip-link-rUQq0D-l.js} +7 -7
- package/dist/cdn/chunks/{slider-Db3FPiP6.js → slider-CIQqjKUo.js} +30 -37
- package/dist/cdn/chunks/{spacer-BPFIYueo.js → spacer-CD85egxE.js} +8 -8
- package/dist/cdn/chunks/{spacer-cell-kITa3CDV.js → spacer-cell-B33mGdru.js} +6 -6
- package/dist/cdn/chunks/{split-button-CJs9-Nha.js → split-button-COL7r-wa.js} +21 -21
- package/dist/cdn/chunks/{split-view-divider-lHlM1Ss8.js → split-view-divider-DVBuBzeO.js} +5 -5
- package/dist/cdn/chunks/{split-view-pane-DlsbZtyo.js → split-view-pane-CSvIzeBg.js} +7 -7
- package/dist/cdn/chunks/{stacked-split-view-uRSVhrMd.js → stacked-split-view-onSk2QEi.js} +8 -8
- package/dist/cdn/chunks/{static-html-BahSPV_4.js → static-html-Cyhp44gp.js} +1 -1
- package/dist/cdn/chunks/{status-bar-DCJLVpsW.js → status-bar-CjYXOQAX.js} +8 -8
- package/dist/cdn/chunks/{step-bar-CRR2jiyo.js → step-bar-D-To0TEw.js} +18 -18
- package/dist/cdn/chunks/{step-cell-CbtKxJNJ.js → step-cell-B7sVGixc.js} +15 -15
- package/dist/cdn/chunks/{stepper-Con1_CnB.js → stepper-h6boMOhz.js} +16 -26
- package/dist/cdn/chunks/{style-map-uOwLerwV.js → style-map-BrdTV34-.js} +1 -1
- package/dist/cdn/chunks/{swatch-picker-Bqn0eaC9.js → swatch-picker-gQ3m3y9U.js} +63 -69
- package/dist/cdn/chunks/{switch-CMQcLEBJ.js → switch-DC-BTi9E.js} +25 -42
- package/dist/cdn/chunks/{switch-field-D9kWq4Kw.js → switch-field-D82mLobj.js} +19 -32
- package/dist/cdn/chunks/{tab-bar-DXzyZI3V.js → tab-bar-sKiFzvfj.js} +34 -29
- package/dist/cdn/chunks/{table-CWACLpHx.js → table-CuxZfCZD.js} +15 -15
- package/dist/cdn/chunks/{tag-Bo4yJbtF.js → tag-DP_ome5l.js} +11 -11
- package/dist/cdn/chunks/{term-CQ379ZbN.js → term-BdiTV-Jk.js} +42 -39
- package/dist/cdn/chunks/{text-D-dFoj6N.js → text-C-b1ygHI.js} +29 -29
- package/dist/cdn/chunks/{text-cell-Be1hStxp.js → text-cell-DfRh7JqZ.js} +23 -23
- package/dist/cdn/chunks/{text-editor-BjzQEBWm.js → text-editor-DuT9Rrpv.js} +12 -12
- package/dist/cdn/chunks/{text-field-DA8nirp6.js → text-field-kAbXzkUj.js} +28 -45
- package/dist/cdn/chunks/{time-field-Dd_TxJuf.js → time-field-DUz9ifmn.js} +65 -153
- package/dist/cdn/chunks/{time-picker-B0-rv1qp.js → time-picker-DGOKwC9T.js} +119 -40
- package/dist/cdn/chunks/{title-DOoPdG_i.js → title-BA-SUyAq.js} +12 -12
- package/dist/cdn/chunks/{title-cell-BzCNOMGr.js → title-cell-Cu5NFNUu.js} +23 -23
- package/dist/cdn/chunks/{toggle-button-9PbDHviQ.js → toggle-button-J6UapeqB.js} +41 -54
- package/dist/cdn/chunks/{toggle-button-group-C-H-xp0M.js → toggle-button-group-wrps-tL9.js} +40 -54
- package/dist/cdn/chunks/{token-CMKFC3gz.js → token-DJkyJz-k.js} +32 -35
- package/dist/cdn/chunks/{token-field-D4-XHfnG.js → token-field-SiBFPD8-.js} +67 -57
- package/dist/cdn/chunks/{toolbar-z9OhEE5l.js → toolbar-be8hoSAz.js} +34 -78
- package/dist/cdn/chunks/{toolbar-item-ZYoyKOyy.js → toolbar-item-DPizdgYi.js} +3 -3
- package/dist/cdn/chunks/{toolbar-title-FKtQ8ZC4.js → toolbar-title-CB4IJFGv.js} +4 -4
- package/dist/cdn/chunks/{toolbar.styles-DDjpdCHV.js → toolbar.styles-vmMPyzS_.js} +3 -3
- package/dist/cdn/chunks/{tooltip-BvRNYRo3.js → tooltip-Bg2ovCCg.js} +116 -80
- package/dist/cdn/chunks/{top-navigation-bar-BHPQntER.js → top-navigation-bar-vA8wpJXS.js} +29 -29
- package/dist/cdn/chunks/{top-title-bar-BVjegLlh.js → top-title-bar-BAJGmgnj.js} +16 -16
- package/dist/cdn/chunks/{translations-cJjO6nQV.js → translations-Cjd13Xb6.js} +1 -1
- package/dist/cdn/chunks/{two-thirds-one-third-section-BdBHQuXc.js → two-thirds-one-third-section-D1FvorKO.js} +6 -6
- package/dist/cdn/chunks/{validation-list-5E3-3_95.js → validation-list-D3rKnfTu.js} +12 -12
- package/dist/cdn/chunks/{visibility-mixin-DvRe3O8t.js → visibility-mixin-BRMACV1l.js} +14 -14
- package/dist/cdn/chunks/{visually-hidden-F85D_HcR.js → visually-hidden-BukWRiJA.js} +2 -2
- package/dist/cdn/chunks/{window-CabW35M1.js → window-C9njVzzK.js} +44 -80
- package/dist/cdn/chunks/{with-translations-BHDG37HJ.js → with-translations-BLzHPSUF.js} +3 -3
- package/dist/components/actions/button/button.d.ts +15 -13
- package/dist/components/actions/button/button.d.ts.map +1 -1
- package/dist/components/actions/button/button.js +15 -14
- package/dist/components/actions/button/button.js.map +1 -1
- package/dist/components/actions/button/button.template.js +1 -1
- package/dist/components/actions/button/button.template.js.map +1 -1
- package/dist/components/actions/button-bar/button-bar.d.ts +7 -4
- package/dist/components/actions/button-bar/button-bar.d.ts.map +1 -1
- package/dist/components/actions/button-bar/button-bar.js +6 -4
- package/dist/components/actions/button-bar/button-bar.js.map +1 -1
- package/dist/components/actions/button-group/button-group.d.ts +4 -2
- package/dist/components/actions/button-group/button-group.d.ts.map +1 -1
- package/dist/components/actions/button-group/button-group.js +4 -2
- package/dist/components/actions/button-group/button-group.js.map +1 -1
- package/dist/components/actions/icon-button/icon-button.d.ts +13 -11
- package/dist/components/actions/icon-button/icon-button.d.ts.map +1 -1
- package/dist/components/actions/icon-button/icon-button.js +13 -12
- package/dist/components/actions/icon-button/icon-button.js.map +1 -1
- package/dist/components/actions/icon-button/icon-button.styles.d.ts.map +1 -1
- package/dist/components/actions/icon-button/icon-button.styles.js +4 -0
- package/dist/components/actions/icon-button/icon-button.styles.js.map +1 -1
- package/dist/components/actions/icon-button/icon-button.template.js +1 -1
- package/dist/components/actions/icon-button/icon-button.template.js.map +1 -1
- package/dist/components/actions/menu/menu-group.d.ts +1 -1
- package/dist/components/actions/menu/menu-group.js +1 -1
- package/dist/components/actions/menu/menu-item.d.ts +4 -4
- package/dist/components/actions/menu/menu-item.js +4 -4
- package/dist/components/actions/menu/menu.d.ts +61 -38
- package/dist/components/actions/menu/menu.d.ts.map +1 -1
- package/dist/components/actions/menu/menu.js +92 -102
- package/dist/components/actions/menu/menu.js.map +1 -1
- package/dist/components/actions/split-button/split-button.d.ts +5 -3
- package/dist/components/actions/split-button/split-button.d.ts.map +1 -1
- package/dist/components/actions/split-button/split-button.js +6 -4
- package/dist/components/actions/split-button/split-button.js.map +1 -1
- package/dist/components/actions/toolbar/toolbar-item.d.ts +1 -1
- package/dist/components/actions/toolbar/toolbar-item.js +1 -1
- package/dist/components/actions/toolbar/toolbar-title.d.ts +1 -1
- package/dist/components/actions/toolbar/toolbar-title.js +1 -1
- package/dist/components/actions/toolbar/toolbar.d.ts +10 -8
- package/dist/components/actions/toolbar/toolbar.d.ts.map +1 -1
- package/dist/components/actions/toolbar/toolbar.js +11 -9
- package/dist/components/actions/toolbar/toolbar.js.map +1 -1
- package/dist/components/actions/toolbar/toolbar.template.d.ts.map +1 -1
- package/dist/components/actions/toolbar/toolbar.template.js +5 -9
- package/dist/components/actions/toolbar/toolbar.template.js.map +1 -1
- package/dist/components/content/accordion/accordion.d.ts +2 -0
- package/dist/components/content/accordion/accordion.d.ts.map +1 -1
- package/dist/components/content/accordion/accordion.js +2 -0
- package/dist/components/content/accordion/accordion.js.map +1 -1
- package/dist/components/content/admonition/admonition.d.ts +2 -0
- package/dist/components/content/admonition/admonition.d.ts.map +1 -1
- package/dist/components/content/admonition/admonition.js +2 -0
- package/dist/components/content/admonition/admonition.js.map +1 -1
- package/dist/components/content/avatar/avatar.d.ts +3 -1
- package/dist/components/content/avatar/avatar.d.ts.map +1 -1
- package/dist/components/content/avatar/avatar.js +3 -1
- package/dist/components/content/avatar/avatar.js.map +1 -1
- package/dist/components/content/avatar-group/avatar-group.d.ts +8 -1
- package/dist/components/content/avatar-group/avatar-group.d.ts.map +1 -1
- package/dist/components/content/avatar-group/avatar-group.js +10 -9
- 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 +0 -1
- package/dist/components/content/avatar-group/avatar-group.template.js.map +1 -1
- package/dist/components/content/blockquote/blockquote.d.ts +3 -1
- package/dist/components/content/blockquote/blockquote.d.ts.map +1 -1
- package/dist/components/content/blockquote/blockquote.js +3 -1
- package/dist/components/content/blockquote/blockquote.js.map +1 -1
- package/dist/components/content/code-viewer/code-viewer.d.ts +1 -0
- package/dist/components/content/code-viewer/code-viewer.d.ts.map +1 -1
- package/dist/components/content/code-viewer/code-viewer.js +9 -9
- package/dist/components/content/code-viewer/code-viewer.js.map +1 -1
- package/dist/components/content/icon/icon.d.ts +4 -3
- package/dist/components/content/icon/icon.d.ts.map +1 -1
- package/dist/components/content/icon/icon.js +4 -3
- package/dist/components/content/icon/icon.js.map +1 -1
- package/dist/components/content/identity/identity.d.ts +4 -1
- package/dist/components/content/identity/identity.d.ts.map +1 -1
- package/dist/components/content/identity/identity.js +4 -1
- package/dist/components/content/identity/identity.js.map +1 -1
- package/dist/components/content/image/image.d.ts +11 -9
- package/dist/components/content/image/image.d.ts.map +1 -1
- package/dist/components/content/image/image.js +10 -8
- package/dist/components/content/image/image.js.map +1 -1
- package/dist/components/content/image/lqip-encoder-element.d.ts +1 -1
- package/dist/components/content/image/lqip-encoder-element.js +1 -1
- package/dist/components/content/image/lqip-encoder.d.ts +3 -3
- package/dist/components/content/image/lqip-encoder.js +6 -6
- package/dist/components/content/image/lqip-encoder.js.map +1 -1
- package/dist/components/content/keyboard-shortcut/keyboard-shortcut.d.ts +6 -5
- package/dist/components/content/keyboard-shortcut/keyboard-shortcut.d.ts.map +1 -1
- package/dist/components/content/keyboard-shortcut/keyboard-shortcut.js +6 -5
- package/dist/components/content/keyboard-shortcut/keyboard-shortcut.js.map +1 -1
- package/dist/components/content/rich-text/rich-text.d.ts +3 -1
- package/dist/components/content/rich-text/rich-text.d.ts.map +1 -1
- package/dist/components/content/rich-text/rich-text.js +3 -1
- package/dist/components/content/rich-text/rich-text.js.map +1 -1
- package/dist/components/content/tag/tag.d.ts +5 -3
- package/dist/components/content/tag/tag.d.ts.map +1 -1
- package/dist/components/content/tag/tag.js +5 -3
- package/dist/components/content/tag/tag.js.map +1 -1
- package/dist/components/content/term/term.d.ts +7 -5
- package/dist/components/content/term/term.d.ts.map +1 -1
- package/dist/components/content/term/term.js +24 -23
- package/dist/components/content/term/term.js.map +1 -1
- package/dist/components/content/term/term.template.js +1 -1
- package/dist/components/content/term/term.template.js.map +1 -1
- package/dist/components/content/text/text.d.ts +9 -7
- package/dist/components/content/text/text.d.ts.map +1 -1
- package/dist/components/content/text/text.js +9 -7
- package/dist/components/content/text/text.js.map +1 -1
- package/dist/components/content/title/title.d.ts +2 -0
- package/dist/components/content/title/title.d.ts.map +1 -1
- package/dist/components/content/title/title.js +2 -0
- package/dist/components/content/title/title.js.map +1 -1
- package/dist/components/content/token/token.d.ts +11 -9
- package/dist/components/content/token/token.d.ts.map +1 -1
- package/dist/components/content/token/token.js +36 -37
- package/dist/components/content/token/token.js.map +1 -1
- package/dist/components/content/token/token.template.js +1 -1
- package/dist/components/content/token/token.template.js.map +1 -1
- package/dist/components/content/tooltip/tooltip.d.ts +27 -8
- package/dist/components/content/tooltip/tooltip.d.ts.map +1 -1
- package/dist/components/content/tooltip/tooltip.js +122 -127
- package/dist/components/content/tooltip/tooltip.js.map +1 -1
- package/dist/components/content/tooltip/tooltip.template.d.ts.map +1 -1
- package/dist/components/content/tooltip/tooltip.template.js +2 -1
- package/dist/components/content/tooltip/tooltip.template.js.map +1 -1
- package/dist/components/content/visually-hidden/visually-hidden.d.ts +3 -1
- package/dist/components/content/visually-hidden/visually-hidden.d.ts.map +1 -1
- package/dist/components/content/visually-hidden/visually-hidden.js +3 -1
- package/dist/components/content/visually-hidden/visually-hidden.js.map +1 -1
- package/dist/components/forms/form/form.d.ts +2 -2
- package/dist/components/forms/form/form.d.ts.map +1 -1
- package/dist/components/forms/form/form.js +20 -16
- package/dist/components/forms/form/form.js.map +1 -1
- package/dist/components/forms/form-actions/form-actions.d.ts +15 -11
- package/dist/components/forms/form-actions/form-actions.d.ts.map +1 -1
- package/dist/components/forms/form-actions/form-actions.js +15 -11
- package/dist/components/forms/form-actions/form-actions.js.map +1 -1
- package/dist/components/forms/form-field/form-field.d.ts +9 -5
- package/dist/components/forms/form-field/form-field.d.ts.map +1 -1
- package/dist/components/forms/form-field/form-field.js +13 -6
- package/dist/components/forms/form-field/form-field.js.map +1 -1
- package/dist/components/forms/form-field/form-field.styles.d.ts.map +1 -1
- package/dist/components/forms/form-field/form-field.styles.js +44 -0
- package/dist/components/forms/form-field/form-field.styles.js.map +1 -1
- package/dist/components/forms/form-section/form-section.d.ts.map +1 -1
- package/dist/components/forms/form-section/form-section.js +34 -30
- package/dist/components/forms/form-section/form-section.js.map +1 -1
- package/dist/components/forms/validation-list/validation-list.d.ts +1 -0
- package/dist/components/forms/validation-list/validation-list.d.ts.map +1 -1
- package/dist/components/forms/validation-list/validation-list.js +1 -0
- package/dist/components/forms/validation-list/validation-list.js.map +1 -1
- package/dist/components/inputs/checkbox/checkbox.d.ts +4 -5
- package/dist/components/inputs/checkbox/checkbox.d.ts.map +1 -1
- package/dist/components/inputs/checkbox/checkbox.js +6 -24
- package/dist/components/inputs/checkbox/checkbox.js.map +1 -1
- package/dist/components/inputs/checkbox-field/checkbox-field.d.ts +3 -5
- package/dist/components/inputs/checkbox-field/checkbox-field.d.ts.map +1 -1
- package/dist/components/inputs/checkbox-field/checkbox-field.js +10 -17
- package/dist/components/inputs/checkbox-field/checkbox-field.js.map +1 -1
- package/dist/components/inputs/checkbox-group/checkbox-group.d.ts +3 -9
- package/dist/components/inputs/checkbox-group/checkbox-group.d.ts.map +1 -1
- package/dist/components/inputs/checkbox-group/checkbox-group.js +20 -59
- package/dist/components/inputs/checkbox-group/checkbox-group.js.map +1 -1
- package/dist/components/inputs/code-editor/code-editor.d.ts +2 -1
- package/dist/components/inputs/code-editor/code-editor.d.ts.map +1 -1
- package/dist/components/inputs/code-editor/code-editor.js.map +1 -1
- package/dist/components/inputs/combo-box/combo-box.d.ts +11 -10
- package/dist/components/inputs/combo-box/combo-box.d.ts.map +1 -1
- package/dist/components/inputs/combo-box/combo-box.js +30 -61
- package/dist/components/inputs/combo-box/combo-box.js.map +1 -1
- package/dist/components/inputs/date-field/date-field.d.ts +8 -5
- package/dist/components/inputs/date-field/date-field.d.ts.map +1 -1
- package/dist/components/inputs/date-field/date-field.js +11 -17
- package/dist/components/inputs/date-field/date-field.js.map +1 -1
- package/dist/components/inputs/date-picker/date-picker.d.ts +8 -0
- package/dist/components/inputs/date-picker/date-picker.d.ts.map +1 -1
- package/dist/components/inputs/date-picker/date-picker.js +8 -0
- package/dist/components/inputs/date-picker/date-picker.js.map +1 -1
- package/dist/components/inputs/dropdown/dropdown.d.ts +7 -5
- package/dist/components/inputs/dropdown/dropdown.d.ts.map +1 -1
- package/dist/components/inputs/dropdown/dropdown.js +7 -5
- package/dist/components/inputs/dropdown/dropdown.js.map +1 -1
- package/dist/components/inputs/file-field/file-field.d.ts +10 -6
- package/dist/components/inputs/file-field/file-field.d.ts.map +1 -1
- package/dist/components/inputs/file-field/file-field.js +19 -21
- package/dist/components/inputs/file-field/file-field.js.map +1 -1
- package/dist/components/inputs/multi-line-text-field/multi-line-text-field.d.ts +7 -8
- package/dist/components/inputs/multi-line-text-field/multi-line-text-field.d.ts.map +1 -1
- package/dist/components/inputs/multi-line-text-field/multi-line-text-field.js +9 -27
- package/dist/components/inputs/multi-line-text-field/multi-line-text-field.js.map +1 -1
- package/dist/components/inputs/number-field/number-field.d.ts +7 -4
- package/dist/components/inputs/number-field/number-field.d.ts.map +1 -1
- package/dist/components/inputs/number-field/number-field.js +15 -17
- package/dist/components/inputs/number-field/number-field.js.map +1 -1
- package/dist/components/inputs/one-time-code-field/one-time-code-field.d.ts +5 -6
- 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 +6 -19
- package/dist/components/inputs/one-time-code-field/one-time-code-field.js.map +1 -1
- package/dist/components/inputs/password-field/password-field.d.ts +4 -5
- package/dist/components/inputs/password-field/password-field.d.ts.map +1 -1
- package/dist/components/inputs/password-field/password-field.js +6 -24
- package/dist/components/inputs/password-field/password-field.js.map +1 -1
- package/dist/components/inputs/radio-button/radio-button.d.ts +3 -5
- package/dist/components/inputs/radio-button/radio-button.d.ts.map +1 -1
- package/dist/components/inputs/radio-button/radio-button.js +3 -11
- package/dist/components/inputs/radio-button/radio-button.js.map +1 -1
- package/dist/components/inputs/radio-button-field/radio-button-field.d.ts +4 -6
- 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 +7 -14
- package/dist/components/inputs/radio-button-field/radio-button-field.js.map +1 -1
- package/dist/components/inputs/radio-button-group/radio-button-group.d.ts +3 -10
- package/dist/components/inputs/radio-button-group/radio-button-group.d.ts.map +1 -1
- package/dist/components/inputs/radio-button-group/radio-button-group.js +19 -74
- package/dist/components/inputs/radio-button-group/radio-button-group.js.map +1 -1
- package/dist/components/inputs/search-field/search-field.d.ts +5 -6
- package/dist/components/inputs/search-field/search-field.d.ts.map +1 -1
- package/dist/components/inputs/search-field/search-field.js +9 -37
- package/dist/components/inputs/search-field/search-field.js.map +1 -1
- package/dist/components/inputs/segmented-control/segmented-control.d.ts +13 -14
- package/dist/components/inputs/segmented-control/segmented-control.d.ts.map +1 -1
- package/dist/components/inputs/segmented-control/segmented-control.js +18 -52
- package/dist/components/inputs/segmented-control/segmented-control.js.map +1 -1
- package/dist/components/inputs/slider/slider.d.ts +4 -5
- package/dist/components/inputs/slider/slider.d.ts.map +1 -1
- package/dist/components/inputs/slider/slider.js +4 -15
- package/dist/components/inputs/slider/slider.js.map +1 -1
- package/dist/components/inputs/stepper/stepper.d.ts +3 -4
- package/dist/components/inputs/stepper/stepper.d.ts.map +1 -1
- package/dist/components/inputs/stepper/stepper.js +4 -14
- package/dist/components/inputs/stepper/stepper.js.map +1 -1
- package/dist/components/inputs/swatch-picker/swatch-picker.d.ts +6 -6
- package/dist/components/inputs/swatch-picker/swatch-picker.d.ts.map +1 -1
- package/dist/components/inputs/swatch-picker/swatch-picker.js +10 -31
- package/dist/components/inputs/swatch-picker/swatch-picker.js.map +1 -1
- package/dist/components/inputs/switch/switch.d.ts +6 -7
- package/dist/components/inputs/switch/switch.d.ts.map +1 -1
- package/dist/components/inputs/switch/switch.js +8 -25
- package/dist/components/inputs/switch/switch.js.map +1 -1
- package/dist/components/inputs/switch-field/switch-field.d.ts +3 -4
- package/dist/components/inputs/switch-field/switch-field.d.ts.map +1 -1
- package/dist/components/inputs/switch-field/switch-field.js +4 -16
- package/dist/components/inputs/switch-field/switch-field.js.map +1 -1
- package/dist/components/inputs/text-editor/text-editor.annotation-sentinels.d.ts +1 -1
- package/dist/components/inputs/text-editor/text-editor.annotation-sentinels.js +1 -1
- package/dist/components/inputs/text-editor/text-editor.commands.d.ts +3 -3
- package/dist/components/inputs/text-editor/text-editor.commands.js +5 -5
- package/dist/components/inputs/text-editor/text-editor.commands.js.map +1 -1
- package/dist/components/inputs/text-editor/text-editor.d.ts +6 -6
- package/dist/components/inputs/text-editor/text-editor.d.ts.map +1 -1
- package/dist/components/inputs/text-editor/text-editor.js +10 -8
- package/dist/components/inputs/text-editor/text-editor.js.map +1 -1
- package/dist/components/inputs/text-editor/text-editor.links.d.ts +2 -2
- package/dist/components/inputs/text-editor/text-editor.links.js +2 -2
- package/dist/components/inputs/text-editor/text-editor.mention.d.ts +3 -3
- package/dist/components/inputs/text-editor/text-editor.mention.d.ts.map +1 -1
- package/dist/components/inputs/text-editor/text-editor.mention.js +3 -3
- package/dist/components/inputs/text-editor/text-editor.mention.js.map +1 -1
- package/dist/components/inputs/text-field/text-field.d.ts +7 -8
- package/dist/components/inputs/text-field/text-field.d.ts.map +1 -1
- package/dist/components/inputs/text-field/text-field.js +9 -27
- package/dist/components/inputs/text-field/text-field.js.map +1 -1
- package/dist/components/inputs/time-field/time-field.d.ts +11 -3
- package/dist/components/inputs/time-field/time-field.d.ts.map +1 -1
- package/dist/components/inputs/time-field/time-field.js +26 -15
- package/dist/components/inputs/time-field/time-field.js.map +1 -1
- package/dist/components/inputs/time-field/time-field.styles.d.ts.map +1 -1
- package/dist/components/inputs/time-field/time-field.styles.js +0 -7
- package/dist/components/inputs/time-field/time-field.styles.js.map +1 -1
- package/dist/components/inputs/time-picker/time-picker.d.ts +13 -7
- package/dist/components/inputs/time-picker/time-picker.d.ts.map +1 -1
- package/dist/components/inputs/time-picker/time-picker.js +21 -14
- package/dist/components/inputs/time-picker/time-picker.js.map +1 -1
- package/dist/components/inputs/toggle-button/toggle-button.d.ts +6 -7
- package/dist/components/inputs/toggle-button/toggle-button.d.ts.map +1 -1
- package/dist/components/inputs/toggle-button/toggle-button.js +9 -21
- package/dist/components/inputs/toggle-button/toggle-button.js.map +1 -1
- package/dist/components/inputs/toggle-button-group/toggle-button-group.d.ts +3 -11
- package/dist/components/inputs/toggle-button-group/toggle-button-group.d.ts.map +1 -1
- package/dist/components/inputs/toggle-button-group/toggle-button-group.js +24 -78
- package/dist/components/inputs/toggle-button-group/toggle-button-group.js.map +1 -1
- package/dist/components/inputs/token-field/token-field.d.ts +29 -25
- package/dist/components/inputs/token-field/token-field.d.ts.map +1 -1
- package/dist/components/inputs/token-field/token-field.js +50 -50
- package/dist/components/inputs/token-field/token-field.js.map +1 -1
- package/dist/components/layout/box/box.d.ts +4 -2
- package/dist/components/layout/box/box.d.ts.map +1 -1
- package/dist/components/layout/box/box.js +4 -2
- package/dist/components/layout/box/box.js.map +1 -1
- package/dist/components/layout/card/card.d.ts +3 -1
- package/dist/components/layout/card/card.d.ts.map +1 -1
- package/dist/components/layout/card/card.js +3 -1
- package/dist/components/layout/card/card.js.map +1 -1
- package/dist/components/layout/collection/collection.d.ts +3 -1
- package/dist/components/layout/collection/collection.d.ts.map +1 -1
- package/dist/components/layout/collection/collection.js +3 -1
- package/dist/components/layout/collection/collection.js.map +1 -1
- package/dist/components/layout/container/container.d.ts +7 -5
- package/dist/components/layout/container/container.d.ts.map +1 -1
- package/dist/components/layout/container/container.js +7 -5
- package/dist/components/layout/container/container.js.map +1 -1
- package/dist/components/layout/divider/divider.d.ts +2 -0
- package/dist/components/layout/divider/divider.d.ts.map +1 -1
- package/dist/components/layout/divider/divider.js +2 -0
- package/dist/components/layout/divider/divider.js.map +1 -1
- package/dist/components/layout/kanban/kanban.d.ts +1 -1
- package/dist/components/layout/kanban/kanban.d.ts.map +1 -1
- package/dist/components/layout/kanban/kanban.js +3 -7
- package/dist/components/layout/kanban/kanban.js.map +1 -1
- package/dist/components/layout/page/page.d.ts +12 -3
- package/dist/components/layout/page/page.d.ts.map +1 -1
- package/dist/components/layout/page/page.js +49 -3
- package/dist/components/layout/page/page.js.map +1 -1
- package/dist/components/layout/page/page.styles.d.ts.map +1 -1
- package/dist/components/layout/page/page.styles.js +7 -0
- package/dist/components/layout/page/page.styles.js.map +1 -1
- package/dist/components/layout/page-footer/page-footer.d.ts +1 -0
- package/dist/components/layout/page-footer/page-footer.d.ts.map +1 -1
- package/dist/components/layout/page-footer/page-footer.js +1 -0
- package/dist/components/layout/page-footer/page-footer.js.map +1 -1
- package/dist/components/layout/page-sections/full-bleed-section/full-bleed-section.d.ts +1 -0
- 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 +1 -0
- package/dist/components/layout/page-sections/full-bleed-section/full-bleed-section.js.map +1 -1
- package/dist/components/layout/page-sections/hero/hero.d.ts +1 -0
- package/dist/components/layout/page-sections/hero/hero.d.ts.map +1 -1
- package/dist/components/layout/page-sections/hero/hero.js +1 -0
- package/dist/components/layout/page-sections/hero/hero.js.map +1 -1
- package/dist/components/layout/page-sections/one-half-one-half-section/one-half-one-half-section.d.ts +1 -0
- 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 +1 -0
- 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-third-two-thirds-section/one-third-two-thirds-section.d.ts +1 -0
- 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 +1 -0
- 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/sidebar-section/sidebar-section.d.ts +7 -5
- 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 +7 -5
- package/dist/components/layout/page-sections/sidebar-section/sidebar-section.js.map +1 -1
- package/dist/components/layout/page-sections/simple-section/simple-section.d.ts +2 -0
- 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 +2 -0
- package/dist/components/layout/page-sections/simple-section/simple-section.js.map +1 -1
- package/dist/components/layout/page-sections/two-thirds-one-third-section/two-thirds-one-third-section.d.ts +1 -0
- 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 +1 -0
- package/dist/components/layout/page-sections/two-thirds-one-third-section/two-thirds-one-third-section.js.map +1 -1
- package/dist/components/layout/popover/popover.d.ts +30 -6
- package/dist/components/layout/popover/popover.d.ts.map +1 -1
- package/dist/components/layout/popover/popover.js +50 -129
- package/dist/components/layout/popover/popover.js.map +1 -1
- package/dist/components/layout/popover/popover.styles.d.ts.map +1 -1
- package/dist/components/layout/popover/popover.styles.js +6 -0
- package/dist/components/layout/popover/popover.styles.js.map +1 -1
- package/dist/components/layout/sheet/sheet.d.ts +9 -38
- package/dist/components/layout/sheet/sheet.d.ts.map +1 -1
- package/dist/components/layout/sheet/sheet.js +15 -174
- package/dist/components/layout/sheet/sheet.js.map +1 -1
- package/dist/components/layout/sheet/sheet.styles.d.ts.map +1 -1
- package/dist/components/layout/sheet/sheet.styles.js +1 -0
- package/dist/components/layout/sheet/sheet.styles.js.map +1 -1
- package/dist/components/layout/sheet/sheet.template.js +5 -5
- package/dist/components/layout/sheet/sheet.template.js.map +1 -1
- package/dist/components/layout/shell/shell.d.ts +2 -1
- package/dist/components/layout/shell/shell.d.ts.map +1 -1
- package/dist/components/layout/shell/shell.js +2 -1
- package/dist/components/layout/shell/shell.js.map +1 -1
- package/dist/components/layout/spacer/spacer.d.ts +7 -5
- package/dist/components/layout/spacer/spacer.d.ts.map +1 -1
- package/dist/components/layout/spacer/spacer.js +7 -5
- package/dist/components/layout/spacer/spacer.js.map +1 -1
- package/dist/components/layout/split-views/bar-split-view/bar-split-view.d.ts +3 -2
- 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 +3 -2
- 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 +5 -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 +5 -3
- package/dist/components/layout/split-views/navigation-split-view/navigation-split-view.js.map +1 -1
- package/dist/components/layout/split-views/side-by-side-split-view/side-by-side-split-view.d.ts +4 -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 +4 -2
- 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/split-view-divider/split-view-divider.d.ts +1 -1
- package/dist/components/layout/split-views/split-view-divider/split-view-divider.js +1 -1
- package/dist/components/layout/split-views/split-view-pane/split-view-pane.d.ts +1 -1
- package/dist/components/layout/split-views/split-view-pane/split-view-pane.js +1 -1
- package/dist/components/layout/split-views/stacked-split-view/stacked-split-view.d.ts +2 -0
- 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 +2 -0
- package/dist/components/layout/split-views/stacked-split-view/stacked-split-view.js.map +1 -1
- package/dist/components/layout/window/window.d.ts +4 -30
- package/dist/components/layout/window/window.d.ts.map +1 -1
- package/dist/components/layout/window/window.js +14 -139
- package/dist/components/layout/window/window.js.map +1 -1
- package/dist/components/layout/window/window.template.d.ts.map +1 -1
- package/dist/components/layout/window/window.template.js +5 -4
- package/dist/components/layout/window/window.template.js.map +1 -1
- package/dist/components/lists-and-tables/cells/icon-cell/icon-cell.d.ts +2 -2
- package/dist/components/lists-and-tables/cells/icon-cell/icon-cell.js +2 -2
- package/dist/components/lists-and-tables/cells/reorder-handle-cell/reorder-handle-cell.d.ts +2 -1
- package/dist/components/lists-and-tables/cells/reorder-handle-cell/reorder-handle-cell.d.ts.map +1 -1
- package/dist/components/lists-and-tables/cells/reorder-handle-cell/reorder-handle-cell.js +2 -1
- package/dist/components/lists-and-tables/cells/reorder-handle-cell/reorder-handle-cell.js.map +1 -1
- package/dist/components/lists-and-tables/cells/spacer-cell/spacer-cell.d.ts +1 -1
- package/dist/components/lists-and-tables/cells/spacer-cell/spacer-cell.js +1 -1
- package/dist/components/lists-and-tables/cells/step-cell/step-cell.d.ts +2 -2
- package/dist/components/lists-and-tables/cells/step-cell/step-cell.js +2 -2
- package/dist/components/lists-and-tables/cells/text-cell/text-cell.d.ts +7 -7
- package/dist/components/lists-and-tables/cells/text-cell/text-cell.js +7 -7
- package/dist/components/lists-and-tables/cells/title-cell/title-cell.d.ts +3 -3
- package/dist/components/lists-and-tables/cells/title-cell/title-cell.js +3 -3
- package/dist/components/lists-and-tables/list/list.d.ts +42 -64
- package/dist/components/lists-and-tables/list/list.d.ts.map +1 -1
- package/dist/components/lists-and-tables/list/list.js +71 -168
- package/dist/components/lists-and-tables/list/list.js.map +1 -1
- package/dist/components/lists-and-tables/list/list.roving.d.ts +79 -0
- package/dist/components/lists-and-tables/list/list.roving.d.ts.map +1 -0
- package/dist/components/lists-and-tables/list/list.roving.js +122 -0
- package/dist/components/lists-and-tables/list/list.roving.js.map +1 -0
- package/dist/components/lists-and-tables/list-item/list-item.d.ts +63 -47
- package/dist/components/lists-and-tables/list-item/list-item.d.ts.map +1 -1
- package/dist/components/lists-and-tables/list-item/list-item.js +68 -55
- package/dist/components/lists-and-tables/list-item/list-item.js.map +1 -1
- package/dist/components/lists-and-tables/list-item-segment/list-item-segment.d.ts +12 -11
- package/dist/components/lists-and-tables/list-item-segment/list-item-segment.d.ts.map +1 -1
- package/dist/components/lists-and-tables/list-item-segment/list-item-segment.js +13 -13
- package/dist/components/lists-and-tables/list-item-segment/list-item-segment.js.map +1 -1
- package/dist/components/lists-and-tables/table/table.d.ts +8 -5
- package/dist/components/lists-and-tables/table/table.d.ts.map +1 -1
- package/dist/components/lists-and-tables/table/table.js +8 -5
- package/dist/components/lists-and-tables/table/table.js.map +1 -1
- package/dist/components/navigation/breadcrumbs/breadcrumbs.d.ts +1 -0
- package/dist/components/navigation/breadcrumbs/breadcrumbs.d.ts.map +1 -1
- package/dist/components/navigation/breadcrumbs/breadcrumbs.js +1 -0
- package/dist/components/navigation/breadcrumbs/breadcrumbs.js.map +1 -1
- package/dist/components/navigation/document-tab-bar/document-tab-bar.d.ts +7 -6
- 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 +15 -64
- package/dist/components/navigation/document-tab-bar/document-tab-bar.js.map +1 -1
- package/dist/components/navigation/document-tab-bar/document-tab-bar.template.d.ts.map +1 -1
- package/dist/components/navigation/document-tab-bar/document-tab-bar.template.js +14 -9
- package/dist/components/navigation/document-tab-bar/document-tab-bar.template.js.map +1 -1
- package/dist/components/navigation/link/link.d.ts +6 -4
- package/dist/components/navigation/link/link.d.ts.map +1 -1
- package/dist/components/navigation/link/link.js +6 -4
- package/dist/components/navigation/link/link.js.map +1 -1
- package/dist/components/navigation/link-group/link-group.d.ts +3 -3
- package/dist/components/navigation/link-group/link-group.js +3 -3
- package/dist/components/navigation/menu-bar/menu-bar.d.ts +14 -18
- package/dist/components/navigation/menu-bar/menu-bar.d.ts.map +1 -1
- package/dist/components/navigation/menu-bar/menu-bar.js +47 -72
- package/dist/components/navigation/menu-bar/menu-bar.js.map +1 -1
- package/dist/components/navigation/menu-bar/menu-bar.template.js +2 -2
- package/dist/components/navigation/menu-bar-item/menu-bar-item.d.ts +5 -6
- package/dist/components/navigation/menu-bar-item/menu-bar-item.d.ts.map +1 -1
- package/dist/components/navigation/menu-bar-item/menu-bar-item.js +17 -33
- package/dist/components/navigation/menu-bar-item/menu-bar-item.js.map +1 -1
- package/dist/components/navigation/pagination/pagination.d.ts +4 -3
- package/dist/components/navigation/pagination/pagination.d.ts.map +1 -1
- package/dist/components/navigation/pagination/pagination.js +4 -3
- package/dist/components/navigation/pagination/pagination.js.map +1 -1
- package/dist/components/navigation/skip-link/skip-link.d.ts +1 -0
- package/dist/components/navigation/skip-link/skip-link.d.ts.map +1 -1
- package/dist/components/navigation/skip-link/skip-link.js +1 -0
- package/dist/components/navigation/skip-link/skip-link.js.map +1 -1
- package/dist/components/navigation/tab-bar/tab-bar.d.ts +12 -4
- package/dist/components/navigation/tab-bar/tab-bar.d.ts.map +1 -1
- package/dist/components/navigation/tab-bar/tab-bar.js +22 -6
- 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 +4 -2
- 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 +2 -0
- 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 +2 -0
- package/dist/components/navigation/top-navigation-bar/top-navigation-bar.js.map +1 -1
- package/dist/components/navigation/top-title-bar/top-title-bar.d.ts +2 -0
- package/dist/components/navigation/top-title-bar/top-title-bar.d.ts.map +1 -1
- package/dist/components/navigation/top-title-bar/top-title-bar.js +2 -0
- package/dist/components/navigation/top-title-bar/top-title-bar.js.map +1 -1
- package/dist/components/navigation/top-title-bar/top-title-bar.styles.js +1 -1
- package/dist/components/status-and-feedback/activity-indicator/activity-indicator.d.ts +10 -8
- package/dist/components/status-and-feedback/activity-indicator/activity-indicator.d.ts.map +1 -1
- package/dist/components/status-and-feedback/activity-indicator/activity-indicator.js +11 -9
- package/dist/components/status-and-feedback/activity-indicator/activity-indicator.js.map +1 -1
- package/dist/components/status-and-feedback/badge/badge.d.ts +3 -1
- package/dist/components/status-and-feedback/badge/badge.d.ts.map +1 -1
- package/dist/components/status-and-feedback/badge/badge.js +3 -1
- package/dist/components/status-and-feedback/badge/badge.js.map +1 -1
- package/dist/components/status-and-feedback/banner/banner.d.ts +7 -5
- package/dist/components/status-and-feedback/banner/banner.d.ts.map +1 -1
- package/dist/components/status-and-feedback/banner/banner.js +6 -4
- package/dist/components/status-and-feedback/banner/banner.js.map +1 -1
- package/dist/components/status-and-feedback/inline-dialog/inline-dialog.d.ts +5 -3
- package/dist/components/status-and-feedback/inline-dialog/inline-dialog.d.ts.map +1 -1
- package/dist/components/status-and-feedback/inline-dialog/inline-dialog.js +5 -3
- package/dist/components/status-and-feedback/inline-dialog/inline-dialog.js.map +1 -1
- package/dist/components/status-and-feedback/just-in-time-education/just-in-time-education.d.ts +4 -2
- package/dist/components/status-and-feedback/just-in-time-education/just-in-time-education.d.ts.map +1 -1
- package/dist/components/status-and-feedback/just-in-time-education/just-in-time-education.js +4 -2
- package/dist/components/status-and-feedback/just-in-time-education/just-in-time-education.js.map +1 -1
- package/dist/components/status-and-feedback/modal-dialog/modal-dialog.d.ts +5 -23
- package/dist/components/status-and-feedback/modal-dialog/modal-dialog.d.ts.map +1 -1
- package/dist/components/status-and-feedback/modal-dialog/modal-dialog.js +7 -125
- package/dist/components/status-and-feedback/modal-dialog/modal-dialog.js.map +1 -1
- package/dist/components/status-and-feedback/modal-dialog/modal-dialog.template.d.ts.map +1 -1
- package/dist/components/status-and-feedback/modal-dialog/modal-dialog.template.js +5 -3
- package/dist/components/status-and-feedback/modal-dialog/modal-dialog.template.js.map +1 -1
- package/dist/components/status-and-feedback/notification/notification.d.ts +3 -1
- package/dist/components/status-and-feedback/notification/notification.d.ts.map +1 -1
- package/dist/components/status-and-feedback/notification/notification.js +3 -1
- package/dist/components/status-and-feedback/notification/notification.js.map +1 -1
- package/dist/components/status-and-feedback/progress-bar/progress-bar.d.ts +5 -3
- 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 +5 -3
- 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 +4 -2
- 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 +4 -2
- 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 +2 -0
- 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 +2 -0
- package/dist/components/status-and-feedback/status-bar/status-bar.js.map +1 -1
- package/dist/components/status-and-feedback/step-bar/step-bar.d.ts +2 -0
- package/dist/components/status-and-feedback/step-bar/step-bar.d.ts.map +1 -1
- package/dist/components/status-and-feedback/step-bar/step-bar.js +2 -0
- package/dist/components/status-and-feedback/step-bar/step-bar.js.map +1 -1
- package/dist/css/document-reset.css +9 -0
- package/dist/nldd.min.js +929 -865
- package/dist/types/react.d.ts +156 -62
- package/dist/types/vue.d.ts +255 -74
- package/dist/utilities/ancestor-scroll.d.ts +15 -0
- package/dist/utilities/ancestor-scroll.d.ts.map +1 -0
- package/dist/utilities/ancestor-scroll.js +24 -0
- package/dist/utilities/ancestor-scroll.js.map +1 -0
- package/dist/utilities/choice-group.d.ts +91 -0
- package/dist/utilities/choice-group.d.ts.map +1 -0
- package/dist/utilities/choice-group.js +135 -0
- package/dist/utilities/choice-group.js.map +1 -0
- package/dist/utilities/deep-active-element.d.ts +6 -0
- package/dist/utilities/deep-active-element.d.ts.map +1 -0
- package/dist/utilities/deep-active-element.js +11 -0
- package/dist/utilities/deep-active-element.js.map +1 -0
- package/dist/utilities/dev-rules.generated.d.ts.map +1 -1
- package/dist/utilities/dev-rules.generated.js +972 -922
- package/dist/utilities/dev-rules.generated.js.map +1 -1
- package/dist/utilities/form-associated-mixin.d.ts +21 -5
- package/dist/utilities/form-associated-mixin.d.ts.map +1 -1
- package/dist/utilities/form-associated-mixin.js +86 -5
- package/dist/utilities/form-associated-mixin.js.map +1 -1
- package/dist/utilities/interest-intent.d.ts +63 -0
- package/dist/utilities/interest-intent.d.ts.map +1 -0
- package/dist/utilities/interest-intent.js +139 -0
- package/dist/utilities/interest-intent.js.map +1 -0
- package/dist/utilities/{interest-controller.d.ts → interest-invoker.d.ts} +5 -14
- package/dist/utilities/interest-invoker.d.ts.map +1 -0
- package/dist/utilities/{interest-controller.js → interest-invoker.js} +39 -97
- package/dist/utilities/interest-invoker.js.map +1 -0
- package/dist/utilities/modal-overlay.d.ts +73 -0
- package/dist/utilities/modal-overlay.d.ts.map +1 -0
- package/dist/utilities/modal-overlay.js +219 -0
- package/dist/utilities/modal-overlay.js.map +1 -0
- package/dist/utilities/overflow-menu.d.ts +97 -0
- package/dist/utilities/overflow-menu.d.ts.map +1 -0
- package/dist/utilities/overflow-menu.js +209 -0
- package/dist/utilities/overflow-menu.js.map +1 -0
- package/dist/utilities/overlay-invoker.d.ts +185 -0
- package/dist/utilities/overlay-invoker.d.ts.map +1 -0
- package/dist/utilities/overlay-invoker.js +329 -0
- package/dist/utilities/overlay-invoker.js.map +1 -0
- package/dist/utilities/page-section-mixin.d.ts +11 -0
- package/dist/utilities/page-section-mixin.d.ts.map +1 -1
- package/dist/utilities/page-section-mixin.js +11 -0
- package/dist/utilities/page-section-mixin.js.map +1 -1
- package/dist/utilities/return-focus.d.ts +0 -2
- package/dist/utilities/return-focus.d.ts.map +1 -1
- package/dist/utilities/return-focus.js +1 -7
- package/dist/utilities/return-focus.js.map +1 -1
- package/dist/utilities/with-translations.d.ts +3 -0
- package/dist/utilities/with-translations.d.ts.map +1 -1
- package/dist/utilities/with-translations.js +3 -0
- package/dist/utilities/with-translations.js.map +1 -1
- package/lint/data.generated.json +1 -1
- package/lint/engine.js +4 -114
- package/lint/fix.js +53 -136
- package/lint/frontends.js +68 -6
- package/lint/linter.js +1 -0
- package/lint/main.js +21 -123
- package/lint/project.js +31 -0
- package/lint/rule-compiler.js +318 -0
- package/lint/rule-index.js +33 -1
- package/lint/rule.schema.json +1 -1
- package/lint/session.js +127 -0
- package/lint/tree.js +46 -0
- package/package.json +11 -19
- package/dist/cdn/chunks/checkbox-group-CC72cq-P.js +0 -103
- package/dist/cdn/chunks/form-associated-mixin-BtStDDYA.js +0 -73
- package/dist/cdn/chunks/open-when-rendered-CW_2_WUZ.js +0 -20
- package/dist/cdn/chunks/popover-target-B25dxnmt.js +0 -10
- package/dist/cdn/chunks/popup-anchor-controller-VZw0bXf2.js +0 -30
- package/dist/cdn/chunks/radio-button-group-D_OezDhB.js +0 -124
- package/dist/components/actions/toolbar/toolbar.overflow-menu.d.ts +0 -52
- package/dist/components/actions/toolbar/toolbar.overflow-menu.d.ts.map +0 -1
- package/dist/components/actions/toolbar/toolbar.overflow-menu.js +0 -105
- package/dist/components/actions/toolbar/toolbar.overflow-menu.js.map +0 -1
- package/dist/utilities/interest-controller.d.ts.map +0 -1
- package/dist/utilities/interest-controller.js.map +0 -1
- package/dist/utilities/open-when-rendered.d.ts +0 -21
- package/dist/utilities/open-when-rendered.d.ts.map +0 -1
- package/dist/utilities/open-when-rendered.js +0 -30
- package/dist/utilities/open-when-rendered.js.map +0 -1
- package/dist/utilities/popover-target.d.ts +0 -25
- package/dist/utilities/popover-target.d.ts.map +0 -1
- package/dist/utilities/popover-target.js +0 -48
- package/dist/utilities/popover-target.js.map +0 -1
- package/dist/utilities/popup-anchor-controller.d.ts +0 -63
- package/dist/utilities/popup-anchor-controller.d.ts.map +0 -1
- package/dist/utilities/popup-anchor-controller.js +0 -72
- package/dist/utilities/popup-anchor-controller.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"menu.d.ts","sourceRoot":"","sources":["../../../../src/components/actions/menu/menu.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"menu.d.ts","sourceRoot":"","sources":["../../../../src/components/actions/menu/menu.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,KAAK,CAAC;AAEjC,OAAO,EAA0D,KAAK,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAG1G,OAAO,EAAgB,KAAK,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAEpE,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,gBAAgB,CAAC;AAC3D,OAAO,qDAAqD,CAAC;AAC7D,OAAO,yDAAyD,CAAC;AACjE,OAAO,qDAAqD,CAAC;AAC7D,OAAO,4BAA4B,CAAC;AACpC,OAAO,sDAAsD,CAAC;AAC9D,OAAO,0DAA0D,CAAC;AAMlE,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAE,qBAAqB,EAAwB,MAAM,mBAAmB,CAAC;AAChF,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAC/C,OAAO,EAAE,sBAAsB,EAAqB,KAAK,KAAK,EAAE,MAAM,yBAAyB,CAAC;AAChG,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAGpD,OAAO,sCAAsC,CAAC;AAE9C,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAqCpD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2CG;AACH,qBAAa,QAAS,SAAQ,UAAU;IACvC,OAAgB,MAAM,0BAAc;IAEpC;;;OAGG;IAEH,OA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AmB,EAAE,eAAe,CAAC;QACrC,iBAAiB,EAAE,aAAa,CAAC;KACjC;CACD"}
|
|
@@ -19,6 +19,7 @@ import '../../content/keyboard-shortcut/keyboard-shortcut.js';
|
|
|
19
19
|
import '../../status-and-feedback/inline-dialog/inline-dialog.js';
|
|
20
20
|
import { isKeyboardMode, isTouchMode } from '../../../utilities/input-modality.js';
|
|
21
21
|
import { FocusReturn } from '../../../utilities/return-focus.js';
|
|
22
|
+
import { OverlayInvoker, TriggerAria, watchTrigger } from '../../../utilities/overlay-invoker.js';
|
|
22
23
|
import { queryBreakpoints } from '../../../assets/styles/breakpoints.js';
|
|
23
24
|
import { translate } from '../../../utilities/translations.js';
|
|
24
25
|
import { MenuPointerController, menuElementFromPoint } from './menu.pointer.js';
|
|
@@ -77,19 +78,24 @@ const HOVER_OPEN_MAX_MS = 150;
|
|
|
77
78
|
* `prefers-reduced-motion` there is no blink, and the menu closes at once
|
|
78
79
|
* after a click; a tap still holds, since that is no motion. A press on the
|
|
79
80
|
* menu's control during the blink or hold ends it and opens the menu again,
|
|
80
|
-
* since the menu was already on its way out.
|
|
81
|
+
* since the menu was already on its way out. Set `no-blink` where the
|
|
82
|
+
* choice shows beside the menu the moment it is made, as a listbox's field
|
|
83
|
+
* shows it. A menu that scrolls
|
|
81
84
|
* fades at the edge where more items wait.
|
|
82
85
|
*
|
|
83
86
|
* Note: Only type="button" items are supported when used inside nldd-combo-box-field.
|
|
84
87
|
* Radio and checkbox types may be used in standalone menus.
|
|
85
88
|
*
|
|
86
89
|
* @element nldd-menu
|
|
90
|
+
* @keywords context menu, dropdown menu
|
|
91
|
+
* @related nldd-popover, nldd-split-button, nldd-dropdown
|
|
87
92
|
*
|
|
88
93
|
* @attr {'menu'|'listbox'|'navigation'} variant - What the menu is (default 'menu'). `menu` is a menu of actions: `role="menu"` with menu items, for things you do. `listbox` is the popup of a combobox: `role="listbox"` with options, focus stays in the field. `navigation` is a submenu in a site navigation: a list of links (`role="list"`, each item a list item around a real link), because a screen reader treats a menu as an application and reads a list of links as what it is. Every item takes an `href`. Tab reaches each link, the arrow keys, Home and End move between them, Escape closes and returns focus to the trigger, and the menu closes when focus leaves it. The trigger says `aria-expanded` and promises no menu. Checkbox and radio items, shortcuts and `filter()` belong to actions and warn in development here. A submenu of a navigation menu is a navigation menu too. The variant sets `role="listitem"` on its items and groups, and takes it off again when it changes back, also where you had set that role yourself.
|
|
94
|
+
* @attr {boolean} no-blink - Closes the menu at once after a choice, without the blink. For a menu whose choice shows at once next to it, such as a token that writes the value it holds: the blink would confirm what is already in view, while the anchor changes under it. A submenu follows the menu it opens from.
|
|
89
95
|
* @attr {string} width - Explicit width, pinned exactly. Without it the menu sizes to its content between a minimum and a viewport-aware maximum (min(100vw - inset, 640px)).
|
|
90
96
|
* @attr {string} accessible-label - Name of the menu or listbox for assistive technology, on the element that has the role. Without it the menu takes the name of its anchor (the `accessible-label`, `aria-label`, `text` or text of the button or field it hangs off), and a submenu the text of the item that opens it, so a listbox under a search field is "Zoeken" rather than nameless (WCAG 4.1.2). The list of an nldd-combo-box or nldd-token-field takes the name of the field.
|
|
91
|
-
* @attr {string} anchor - ID of the anchor element. Positions the menu against it AND makes it a toggle: the menu listens on document click and opens/closes itself when the click lands on the anchor. Use this for a trigger that is not an nldd component, such as a plain `<button>`. An nldd-button, nldd-icon-button, nldd-split-button or nldd-list-item-segment needs no anchor: put the menu in its `popup` slot, or point its `popovertarget` at the menu, and it anchors and opens the menu itself. For a menu you open yourself (a type-ahead under a text field, say), set the `anchorElement` property instead
|
|
92
|
-
* @attr {
|
|
97
|
+
* @attr {string} anchor - ID of the anchor element. Positions the menu against it AND makes it a toggle: the menu listens on document click and opens/closes itself when the click lands on the anchor. Use this for a trigger that is not an nldd component, such as a plain `<button>`. An nldd-button, nldd-icon-button, nldd-split-button or nldd-list-item-segment needs no anchor: put the menu in its `popup` slot, or point its `popovertarget` at the menu, and it anchors and opens the menu itself. For a menu you open yourself (a type-ahead under a text field, say), set the `anchorElement` property instead. It positions the same way, without the toggle.
|
|
98
|
+
* @attr {'top'|'top-start'|'top-end'|'bottom'|'bottom-start'|'bottom-end'|'left'|'left-start'|'left-end'|'right'|'right-start'|'right-end'} placement - Side of the anchor it opens on, and how it lines up there (default: 'bottom-start')
|
|
93
99
|
* @attr {number} max-items - Maximum number of visible items before scrolling. Sets --_menu-max-items internally. Default: 0 (no limit).
|
|
94
100
|
* @attr {string} empty-text - Text of the default empty-state dialog. Falls back to Dutch i18n "Geen opties beschikbaar".
|
|
95
101
|
* @attr {string} empty-supporting-text - Supporting text of the default empty-state dialog.
|
|
@@ -97,7 +103,7 @@ const HOVER_OPEN_MAX_MS = 150;
|
|
|
97
103
|
* @attr {Function} filterFn - Custom filter function (query, item) => boolean.
|
|
98
104
|
*
|
|
99
105
|
* @slot - nldd-menu-item and nldd-menu-divider elements.
|
|
100
|
-
* @slot header - Free content shown above the items, outside `role="menu"` (so it may hold non-menuitem content such as an avatar + name, buttons or links
|
|
106
|
+
* @slot header - Free content shown above the items, outside `role="menu"` (so it may hold non-menuitem content such as an avatar + name, buttons or links, reached with Tab and skipped by arrow navigation). The region is unpadded; control spacing with your own content (e.g. an `nldd-container`). Root-only: never rendered in a submenu. Example: an account identity header (nldd-identity).
|
|
101
107
|
* @slot footer - Free content shown below the items, outside `role="menu"` (same rules as `header`; also unpadded and root-only). Example: a short note or a link.
|
|
102
108
|
* @slot empty - Shown when no items are visible. Defaults to `nldd-inline-dialog` driven by `empty-text` / `empty-supporting-text`. Slot content overrides the default dialog entirely.
|
|
103
109
|
*/
|
|
@@ -115,10 +121,11 @@ export class NLDDMenu extends LitElement {
|
|
|
115
121
|
* viewport-aware maximum of min(100vw - inset, 640px).
|
|
116
122
|
*/
|
|
117
123
|
this.width = '';
|
|
124
|
+
this.noBlink = false;
|
|
118
125
|
this.anchor = '';
|
|
119
126
|
/**
|
|
120
127
|
* The anchor as an element reference. Positions the menu exactly like the
|
|
121
|
-
* `anchor` attribute, but does NOT turn the anchor into a toggle
|
|
128
|
+
* `anchor` attribute, but does NOT turn the anchor into a toggle: clicking
|
|
122
129
|
* it does not open the menu. Use this whenever you drive open/close yourself
|
|
123
130
|
* (`showPopover()` / `hidePopover()`), which is what nldd-combo-box and
|
|
124
131
|
* nldd-token-field do: their input must stay an input, not a menu button.
|
|
@@ -153,7 +160,7 @@ export class NLDDMenu extends LitElement {
|
|
|
153
160
|
*/
|
|
154
161
|
this.filterFn = defaultFilterFn;
|
|
155
162
|
/**
|
|
156
|
-
* @internal
|
|
163
|
+
* @internal Development only.
|
|
157
164
|
*
|
|
158
165
|
* Renders a translucent SVG overlay showing the safe triangle's current
|
|
159
166
|
* shape. Reflected as `debug-safe-triangle` so it can be toggled at
|
|
@@ -180,7 +187,7 @@ export class NLDDMenu extends LitElement {
|
|
|
180
187
|
/** The level of that submenu. @internal */
|
|
181
188
|
this._activeLevel = null;
|
|
182
189
|
/** Signal that this menu is hiding itself to make room for a deeper drill-in
|
|
183
|
-
* level
|
|
190
|
+
* level. Its parent's onToggle should skip the normal close cleanup
|
|
184
191
|
* (re-parent + re-show) so the chain stays in deeper-level state. */
|
|
185
192
|
this._drillInHidingForDeeper = false;
|
|
186
193
|
/** Root-owned registry of every level open in this chain, in open order.
|
|
@@ -197,7 +204,7 @@ export class NLDDMenu extends LitElement {
|
|
|
197
204
|
* opened it. Set by the parent's _handleSubmenuOpen. null on the root.
|
|
198
205
|
* @internal */
|
|
199
206
|
this._parentMenu = null;
|
|
200
|
-
/** The menu-item that triggered this submenu
|
|
207
|
+
/** The menu-item that triggered this submenu, used to label the back
|
|
201
208
|
* button in drill-in mode.
|
|
202
209
|
* @internal */
|
|
203
210
|
this._parentItem = null;
|
|
@@ -209,7 +216,7 @@ export class NLDDMenu extends LitElement {
|
|
|
209
216
|
* or confirmed tap) collapsed the chain, or when a pointerdown landed
|
|
210
217
|
* on the anchor while the menu was open (covers native light-dismiss).
|
|
211
218
|
* The trailing `click` of that same gesture consumes it in
|
|
212
|
-
* `_handleDocumentClick` and must NOT reopen
|
|
219
|
+
* `_handleDocumentClick` and must NOT reopen. The flag is gesture-correlated, so
|
|
213
220
|
* it's reliable on touch regardless of pointerup→click timing.
|
|
214
221
|
* @internal */
|
|
215
222
|
this._collapsedByPointerGesture = false;
|
|
@@ -234,7 +241,7 @@ export class NLDDMenu extends LitElement {
|
|
|
234
241
|
/**
|
|
235
242
|
* Reflect this menu's open state on the anchor so an anchor button (or
|
|
236
243
|
* any element exposing an `expanded` IDL property) shows the active
|
|
237
|
-
* "is-expanded" visual while we're open. Skip menu-items as anchors
|
|
244
|
+
* "is-expanded" visual while we're open. Skip menu-items as anchors:
|
|
238
245
|
* they manage their own `_submenuOpen` lifecycle and don't have an
|
|
239
246
|
* `expanded` property. Also default `popupType` to 'menu' / 'listbox'
|
|
240
247
|
* (matching this menu's variant) when the anchor supports it and the
|
|
@@ -244,14 +251,14 @@ export class NLDDMenu extends LitElement {
|
|
|
244
251
|
* Finally, drive the anchor's `popoverTargetAction` so the browser's
|
|
245
252
|
* native invoker action always matches the current state explicitly:
|
|
246
253
|
* `'hide'` while open, `'show'` while closed. We avoid `'toggle'` on
|
|
247
|
-
* purpose
|
|
254
|
+
* purpose: toggle re-evaluates the popover's live state at click time
|
|
248
255
|
* and would re-open the menu if it had just been light-dismissed
|
|
249
256
|
* milliseconds earlier (the source of the "menu briefly closes and
|
|
250
257
|
* reopens" bug). With explicit show/hide, the worst case is a no-op
|
|
251
|
-
* (e.g. `'hide'` on an already-closed menu)
|
|
258
|
+
* (e.g. `'hide'` on an already-closed menu), never a spurious open.
|
|
252
259
|
*
|
|
253
260
|
* The invoker association (`popoverTargetElement`) is set elsewhere
|
|
254
|
-
*
|
|
261
|
+
* (persistently on anchor change rather than per-toggle), so the
|
|
255
262
|
* browser's light-dismiss exclusion is in place from the very first
|
|
256
263
|
* click instead of only after the menu has already opened once.
|
|
257
264
|
*/
|
|
@@ -264,7 +271,7 @@ export class NLDDMenu extends LitElement {
|
|
|
264
271
|
* else closes it: opening a modal dialog empties the top layer, and Safari
|
|
265
272
|
* does not fire `toggle` for the popovers it drops. The anchor then keeps
|
|
266
273
|
* saying "open" while the menu is gone, and its next click asks the browser
|
|
267
|
-
* to hide an already-hidden popover
|
|
274
|
+
* to hide an already-hidden popover. That is a no-op, so the button looks dead.
|
|
268
275
|
*
|
|
269
276
|
* Called on the anchor's own pointerdown, before the click resolves the
|
|
270
277
|
* invoker, so the action is decided on the truth rather than on a state
|
|
@@ -277,48 +284,21 @@ export class NLDDMenu extends LitElement {
|
|
|
277
284
|
this._isOpen = reallyOpen;
|
|
278
285
|
this._syncAnchorPopupState(reallyOpen);
|
|
279
286
|
};
|
|
280
|
-
/**
|
|
281
|
-
*
|
|
282
|
-
|
|
287
|
+
/** Writes the open state, the popup type and the click action onto the
|
|
288
|
+
* anchor. No attributes on a plain anchor: a combo box anchors its listbox
|
|
289
|
+
* to the field, which carries its own combobox ARIA. */
|
|
290
|
+
this._triggerAria = new TriggerAria({ attributes: false, popoverTargetAction: true });
|
|
283
291
|
// — Event handlers ————————————————————————————————————————————————————————
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
// click so it never leaks past a single gesture.
|
|
288
|
-
const collapsedByGesture = this._collapsedByPointerGesture;
|
|
292
|
+
/** A click spends the gesture marker, wherever it lands: it never leaks
|
|
293
|
+
* past a single gesture. */
|
|
294
|
+
this._handleDocumentClick = () => {
|
|
289
295
|
this._collapsedByPointerGesture = false;
|
|
290
|
-
if (this.anchorElement)
|
|
291
|
-
return;
|
|
292
|
-
const anchorEl = this._getAnchorEl();
|
|
293
|
-
if (!anchorEl)
|
|
294
|
-
return;
|
|
295
|
-
const path = event.composedPath();
|
|
296
|
-
if (!path.includes(anchorEl))
|
|
297
|
-
return;
|
|
298
|
-
// This click is the tail of the very gesture that just collapsed the
|
|
299
|
-
// chain (e.g. tapping the anchor from deep in a drill-in submenu:
|
|
300
|
-
// the submenu's pointerdown/tap already collapsed). It must not
|
|
301
|
-
// reopen. Gesture-correlated, so reliable even when the
|
|
302
|
-
// pointerup→click gap exceeds the time-based reopen guard on touch.
|
|
303
|
-
if (collapsedByGesture)
|
|
304
|
-
return;
|
|
305
|
-
// Drill-in: the root is hidden while a submenu shows, so `_isOpen`
|
|
306
|
-
// is false on the root even though the menu is visibly open. A
|
|
307
|
-
// plain toggle would `showPopover()` the root — i.e. bounce back
|
|
308
|
-
// to the main level. The anchor is a toggle: if anything in the
|
|
309
|
-
// chain is open, clicking it collapses the whole stack (registry-
|
|
310
|
-
// driven, so it works even if chain links went stale).
|
|
311
|
-
if (this._drillInMode && (this._isOpen || this._openChain.length > 0)) {
|
|
312
|
-
this._collapseChain();
|
|
313
|
-
return;
|
|
314
|
-
}
|
|
315
|
-
if (this._isOpen) {
|
|
316
|
-
this.hidePopover();
|
|
317
|
-
}
|
|
318
|
-
else {
|
|
319
|
-
this.showPopover();
|
|
320
|
-
}
|
|
321
296
|
};
|
|
297
|
+
/** Makes the element named by `anchor` a toggle for this menu, as a
|
|
298
|
+
* design-system control is for a menu in its popup slot. Not for an
|
|
299
|
+
* `anchorElement`: whoever set that opens the menu. */
|
|
300
|
+
this._anchorInvoker = new OverlayInvoker(this, { anchorFor: () => null });
|
|
301
|
+
this._stopWatchingAnchor = null;
|
|
322
302
|
// — Hover and the safe triangle (cascade only) ——————————————————————————
|
|
323
303
|
// See menu.safe-triangle.ts for the wedge that keeps a submenu open on a
|
|
324
304
|
// diagonal route to it.
|
|
@@ -418,7 +398,7 @@ export class NLDDMenu extends LitElement {
|
|
|
418
398
|
this._handleBack = () => {
|
|
419
399
|
this.hidePopover?.();
|
|
420
400
|
};
|
|
421
|
-
/** Cursor moved onto the drill-in back button
|
|
401
|
+
/** Cursor moved onto the drill-in back button. Clear any item highlight
|
|
422
402
|
* so we don't show two "active" elements at once (back button + first
|
|
423
403
|
* item that was auto-highlighted on open).
|
|
424
404
|
* @internal */
|
|
@@ -435,7 +415,7 @@ export class NLDDMenu extends LitElement {
|
|
|
435
415
|
/** Close the menu on a window resize. Floating-UI's autoUpdate keeps
|
|
436
416
|
* the position in sync with scrolls (where users genuinely expect the
|
|
437
417
|
* menu to follow the anchor), but a full window resize is a layout-
|
|
438
|
-
* shifting interaction the user isn't currently tracking
|
|
418
|
+
* shifting interaction the user isn't currently tracking. It is better to
|
|
439
419
|
* dismiss with a clean slate than to chase the anchor across a
|
|
440
420
|
* reflow, repaint a flipped placement, or get stuck mid-flight when
|
|
441
421
|
* crossing the cascade ↔ drill-in viewport threshold. The window
|
|
@@ -455,7 +435,7 @@ export class NLDDMenu extends LitElement {
|
|
|
455
435
|
* closes after it, so you see what you picked. `select` has already gone
|
|
456
436
|
* out: the action does not wait for the blink. Every menu in the chain
|
|
457
437
|
* hears the event; the first one runs the blink and the rest leave it.
|
|
458
|
-
* In a menu that is not open, in a listbox, or after a click or key with
|
|
438
|
+
* In a menu that is not open, in a listbox, with `no-blink`, or after a click or key with
|
|
459
439
|
* reduced motion, it closes at once; a tap still holds.
|
|
460
440
|
*/
|
|
461
441
|
this._handleSelect = (event) => {
|
|
@@ -470,7 +450,8 @@ export class NLDDMenu extends LitElement {
|
|
|
470
450
|
// Holding a tapped item lit is no motion, so only the blink gives way to
|
|
471
451
|
// reduced motion.
|
|
472
452
|
const reduceMotion = !pressedByTouch && matchMedia('(prefers-reduced-motion: reduce)').matches;
|
|
473
|
-
|
|
453
|
+
const noBlink = (this._chainRoot ?? this).noBlink;
|
|
454
|
+
if (!button || !this._isOpen || this.variant === 'listbox' || noBlink || reduceMotion) {
|
|
474
455
|
this._collapseChain();
|
|
475
456
|
return;
|
|
476
457
|
}
|
|
@@ -523,14 +504,14 @@ export class NLDDMenu extends LitElement {
|
|
|
523
504
|
};
|
|
524
505
|
this._finishBlink = null;
|
|
525
506
|
/**
|
|
526
|
-
* Collapse the entire menu chain at once
|
|
507
|
+
* Collapse the entire menu chain at once (root + every open submenu),
|
|
527
508
|
* with no "back one level" re-show. Used when the action is final:
|
|
528
509
|
* selecting an item, clicking the anchor, clicking/tapping outside, or
|
|
529
510
|
* a viewport resize.
|
|
530
511
|
*
|
|
531
512
|
* Driven by the root's `_openChain` registry of levels, so it never
|
|
532
513
|
* depends on `_activeSubmenu` /
|
|
533
|
-
* `_parentMenu` threading being intact at collapse time
|
|
514
|
+
* `_parentMenu` threading being intact at collapse time. Real
|
|
534
515
|
* interaction can leave those stale, which was the source of the
|
|
535
516
|
* recurring "anchor click doesn't close after the 2nd navigation"
|
|
536
517
|
* bug. Idempotent: every chain level's `select` listener may call it,
|
|
@@ -550,7 +531,7 @@ export class NLDDMenu extends LitElement {
|
|
|
550
531
|
/**
|
|
551
532
|
* Drill-in click-outside: collapse the entire chain.
|
|
552
533
|
*
|
|
553
|
-
* In drill-in mode only the deepest level is `:popover-open
|
|
534
|
+
* In drill-in mode only the deepest level is `:popover-open`, so popover
|
|
554
535
|
* light-dismiss would close just that level, and our onToggle cleanup
|
|
555
536
|
* would helpfully re-show the previous level. That's the wrong outcome
|
|
556
537
|
* for a click outside the menu: the user is dismissing the whole menu,
|
|
@@ -859,6 +840,9 @@ export class NLDDMenu extends LitElement {
|
|
|
859
840
|
this._clearHighlight();
|
|
860
841
|
this._updateEmptyState();
|
|
861
842
|
this._claimItems();
|
|
843
|
+
// Flip measures the menu as it stands: the height left over from the last
|
|
844
|
+
// open would make it fit on a side it does not fit on now.
|
|
845
|
+
this.style.removeProperty('--_menu-max-height');
|
|
862
846
|
await this.reposition();
|
|
863
847
|
this.setAttribute('positioned', ''); // placed — reveal it (see _handleBeforeToggle)
|
|
864
848
|
const anchorEl = this._getAnchorEl();
|
|
@@ -910,7 +894,7 @@ export class NLDDMenu extends LitElement {
|
|
|
910
894
|
}
|
|
911
895
|
/**
|
|
912
896
|
* Write `message` to this menu's polite live region. Clears first, then
|
|
913
|
-
* sets on a double rAF
|
|
897
|
+
* sets on a double rAF: the empty→text transition is what makes screen
|
|
914
898
|
* readers reliably re-announce unchanged-looking content across engines.
|
|
915
899
|
*
|
|
916
900
|
* Spam control without muting real navigation: a doubled event in the
|
|
@@ -1005,17 +989,36 @@ export class NLDDMenu extends LitElement {
|
|
|
1005
989
|
* main level.
|
|
1006
990
|
* @internal
|
|
1007
991
|
*/
|
|
1008
|
-
|
|
992
|
+
invokerIsOpen() {
|
|
1009
993
|
return this.matches(':popover-open') || this._openChain.length > 0 || this._collapsedByPointerGesture;
|
|
1010
994
|
}
|
|
995
|
+
/** @internal A menu confirming a choice is on its way out: a press on its
|
|
996
|
+
* trigger ends the blink and opens it again, rather than closing it. */
|
|
997
|
+
invokerPressReopens() {
|
|
998
|
+
const root = this._chainRoot ?? this;
|
|
999
|
+
return [root, ...root._openChain.map((level) => level.submenu)].some((menu) => menu._finishBlink);
|
|
1000
|
+
}
|
|
1001
|
+
/** @internal Opens the menu for the control that invokes it. */
|
|
1002
|
+
invokerOpen() {
|
|
1003
|
+
if (!this.matches(':popover-open'))
|
|
1004
|
+
this.showPopover();
|
|
1005
|
+
}
|
|
1006
|
+
/** @internal Closes the menu and every submenu, for the control that
|
|
1007
|
+
* invokes it: the control is a toggle for the whole stack. */
|
|
1008
|
+
invokerClose() {
|
|
1009
|
+
if (this._drillInMode && this._openChain.length > 0)
|
|
1010
|
+
this._collapseChain();
|
|
1011
|
+
else if (this.matches(':popover-open'))
|
|
1012
|
+
this.hidePopover();
|
|
1013
|
+
}
|
|
1011
1014
|
/**
|
|
1012
1015
|
* Called by the invoking control once it has handled its click. The gesture
|
|
1013
1016
|
* marker is normally cleared by the document click, but a control that stops
|
|
1014
1017
|
* its click (nldd-split-button) keeps that from ever arriving, and a marker
|
|
1015
|
-
* left behind makes `
|
|
1018
|
+
* left behind makes `invokerIsOpen()` report open on every later press.
|
|
1016
1019
|
* @internal
|
|
1017
1020
|
*/
|
|
1018
|
-
|
|
1021
|
+
invokerGestureEnd() {
|
|
1019
1022
|
this._collapsedByPointerGesture = false;
|
|
1020
1023
|
}
|
|
1021
1024
|
/** @internal */
|
|
@@ -1028,7 +1031,7 @@ export class NLDDMenu extends LitElement {
|
|
|
1028
1031
|
}
|
|
1029
1032
|
/**
|
|
1030
1033
|
* Pick the drill-in side (above vs below the anchor) purely from the
|
|
1031
|
-
* available viewport space around the anchor
|
|
1034
|
+
* available viewport space around the anchor, never from content
|
|
1032
1035
|
* size. Content-independent so every level of the chain resolves to
|
|
1033
1036
|
* the same side and a bigger submenu scrolls internally rather than
|
|
1034
1037
|
* flipping the whole stack. Keeps the configured alignment suffix
|
|
@@ -1045,35 +1048,10 @@ export class NLDDMenu extends LitElement {
|
|
|
1045
1048
|
return `${side}${align}`;
|
|
1046
1049
|
}
|
|
1047
1050
|
_syncAnchorPopupState(isOpen) {
|
|
1048
|
-
const anchor = this._getAnchorEl();
|
|
1049
|
-
if (!anchor)
|
|
1050
|
-
return;
|
|
1051
|
-
if ('expanded' in anchor)
|
|
1052
|
-
anchor.expanded = isOpen;
|
|
1053
|
-
// Seed a valid aria-haspopup when the anchor has no usable popup
|
|
1054
|
-
// type. Falsy covers unset (undefined/null) AND `popup-type=""` —
|
|
1055
|
-
// an empty string is not a valid aria-haspopup token, so it must
|
|
1056
|
-
// still be seeded rather than left invalid. An intentional opt-out
|
|
1057
|
-
// is `popup-type="false"`, which is truthy and preserved here.
|
|
1058
|
-
//
|
|
1059
|
-
// Deliberately not gated on `isOpen`: aria-haspopup is a static
|
|
1060
|
-
// property of the trigger ("this button opens a menu"), not state.
|
|
1061
|
-
// Seeding it on first open would leave a screen reader tabbing a row
|
|
1062
|
-
// of identical "more" buttons hearing plain "button" — exactly the
|
|
1063
|
-
// moment the type matters most, since nothing has been opened yet.
|
|
1064
|
-
// nldd-popover already works this way.
|
|
1065
1051
|
// A navigation menu is a disclosure: the trigger says expanded or not,
|
|
1066
1052
|
// and promises no menu.
|
|
1067
|
-
|
|
1068
|
-
|
|
1069
|
-
if ('popupType' in anchor && (!anchor.popupType || anchor.popupType === this._seededPopupType)) {
|
|
1070
|
-
const wanted = this.variant === 'navigation' ? '' : this.variant === 'listbox' ? 'listbox' : 'menu';
|
|
1071
|
-
anchor.popupType = wanted;
|
|
1072
|
-
this._seededPopupType = wanted || null;
|
|
1073
|
-
}
|
|
1074
|
-
if ('popoverTargetAction' in anchor) {
|
|
1075
|
-
anchor.popoverTargetAction = isOpen ? 'hide' : 'show';
|
|
1076
|
-
}
|
|
1053
|
+
const popupType = this.variant === 'navigation' ? '' : this.variant === 'listbox' ? 'listbox' : 'menu';
|
|
1054
|
+
this._triggerAria.sync(this._getAnchorEl(), { open: isOpen, popupType });
|
|
1077
1055
|
}
|
|
1078
1056
|
/** @internal For the safe triangle: the item whose submenu is open. */
|
|
1079
1057
|
get safeTriangleOpener() {
|
|
@@ -1100,7 +1078,7 @@ export class NLDDMenu extends LitElement {
|
|
|
1100
1078
|
* Item-activation logic shared between the native `mouseenter` capture
|
|
1101
1079
|
* handler and the safe triangle's `releaseAt` (sideways exit, direction
|
|
1102
1080
|
* reversal, stall dismissal). Those paths know which item is under the
|
|
1103
|
-
* cursor
|
|
1081
|
+
* cursor, so they don't need to synthesize a MouseEvent just to re-enter
|
|
1104
1082
|
* the handler. Factoring out the body keeps the entry contracts honest:
|
|
1105
1083
|
* the recovery sites pass an already-resolved item rather than relying
|
|
1106
1084
|
* on `event.target` semantics they'd have to fake.
|
|
@@ -1207,7 +1185,7 @@ export class NLDDMenu extends LitElement {
|
|
|
1207
1185
|
return NLDDMenu._getDrillInModeQuery().matches;
|
|
1208
1186
|
}
|
|
1209
1187
|
/** Walks the parent-menu chain up to the root (the menu that wasn't
|
|
1210
|
-
* opened by another menu
|
|
1188
|
+
* opened by another menu and has no _parentMenu). */
|
|
1211
1189
|
get _rootMenu() {
|
|
1212
1190
|
let m = this;
|
|
1213
1191
|
while (m._parentMenu)
|
|
@@ -1266,6 +1244,10 @@ export class NLDDMenu extends LitElement {
|
|
|
1266
1244
|
this.addEventListener('keydown', this._notePress, true);
|
|
1267
1245
|
this.addEventListener('pointercancel', this._forgetPress, true);
|
|
1268
1246
|
this.addEventListener('click', this._forgetPress);
|
|
1247
|
+
// The anchor's click reads the gesture marker before the document click
|
|
1248
|
+
// below spends it, so this listener goes first.
|
|
1249
|
+
this._anchorInvoker.setOverlay(this);
|
|
1250
|
+
this._stopWatchingAnchor = watchTrigger(this._anchorInvoker, () => this.anchorElement || !this.anchor ? null : document.getElementById(this.anchor));
|
|
1269
1251
|
document.addEventListener('click', this._handleDocumentClick);
|
|
1270
1252
|
}
|
|
1271
1253
|
willUpdate() {
|
|
@@ -1325,6 +1307,8 @@ export class NLDDMenu extends LitElement {
|
|
|
1325
1307
|
this.removeEventListener('pointercancel', this._forgetPress, true);
|
|
1326
1308
|
this.removeEventListener('click', this._forgetPress);
|
|
1327
1309
|
document.removeEventListener('click', this._handleDocumentClick);
|
|
1310
|
+
this._stopWatchingAnchor?.();
|
|
1311
|
+
this._stopWatchingAnchor = null;
|
|
1328
1312
|
// Defensive: the pointerdown + resize listeners are added on open
|
|
1329
1313
|
// and removed on close, but if the menu is torn down mid-open we'd
|
|
1330
1314
|
// otherwise leak the global listeners.
|
|
@@ -1453,7 +1437,7 @@ export class NLDDMenu extends LitElement {
|
|
|
1453
1437
|
*
|
|
1454
1438
|
* Matching items are kept visible. Non-matching items are hidden. Matching
|
|
1455
1439
|
* items receive `query=<query>` so their text-cell bolds the non-typed
|
|
1456
|
-
* remainder (predictive completion
|
|
1440
|
+
* remainder (predictive completion, the ARIA APG pattern for combobox).
|
|
1457
1441
|
*
|
|
1458
1442
|
* When the query is empty, all items are shown and `query` is cleared.
|
|
1459
1443
|
*
|
|
@@ -1512,7 +1496,7 @@ export class NLDDMenu extends LitElement {
|
|
|
1512
1496
|
}, ANNOUNCE_RESULTS_DELAY_MS);
|
|
1513
1497
|
}
|
|
1514
1498
|
/**
|
|
1515
|
-
* Hide each nldd-menu-group whose items are all filtered out
|
|
1499
|
+
* Hide each nldd-menu-group whose items are all filtered out: a labeled
|
|
1516
1500
|
* heading above an empty section reads as broken. Runs after filter() has
|
|
1517
1501
|
* updated individual item visibility.
|
|
1518
1502
|
*/
|
|
@@ -1593,7 +1577,10 @@ export class NLDDMenu extends LitElement {
|
|
|
1593
1577
|
/** Recalculate position and size relative to the anchor element. */
|
|
1594
1578
|
async reposition() {
|
|
1595
1579
|
const anchorEl = this._getAnchorEl();
|
|
1596
|
-
|
|
1580
|
+
// The open state follows the toggle event, which WebKit and Gecko fire
|
|
1581
|
+
// after a last resize of the hidden menu: measured at no height, it fits
|
|
1582
|
+
// below anything, and that pass would leave its max-height behind.
|
|
1583
|
+
if (!anchorEl || !this._isOpen || !this.matches(':popover-open'))
|
|
1597
1584
|
return;
|
|
1598
1585
|
const viewportMargin = this._cssPx('--_menu-viewport-margin');
|
|
1599
1586
|
// Cascade-mode submenus: shift up by the menu's own padding so the
|
|
@@ -1676,8 +1663,8 @@ export class NLDDMenu extends LitElement {
|
|
|
1676
1663
|
* buffer; the menu jumps to the first item whose text starts with the
|
|
1677
1664
|
* buffer (case-insensitive).
|
|
1678
1665
|
*
|
|
1679
|
-
* Single-char buffer (first press or after reset) cycles through matches
|
|
1680
|
-
*
|
|
1666
|
+
* Single-char buffer (first press or after reset) cycles through matches:
|
|
1667
|
+
* repeated presses of the same letter step through every item starting
|
|
1681
1668
|
* with it. Multi-char buffer matches from the currently-focused item, so
|
|
1682
1669
|
* extending the prefix while the current item still matches keeps focus
|
|
1683
1670
|
* stable instead of jumping forward.
|
|
@@ -1718,11 +1705,11 @@ NLDDMenu.styles = menuStyles;
|
|
|
1718
1705
|
* over the parent) and gets a back-button header. Otherwise (cascade)
|
|
1719
1706
|
* the submenu opens beside its parent item.
|
|
1720
1707
|
*
|
|
1721
|
-
* Detection is based on pointer type and viewport width
|
|
1708
|
+
* Detection is based on pointer type and viewport width: touch devices
|
|
1722
1709
|
* and narrow viewports drill in, everything else cascades. No consumer
|
|
1723
1710
|
* override; the choice is environment-driven.
|
|
1724
1711
|
*
|
|
1725
|
-
* Cached MediaQueryList shared across instances
|
|
1712
|
+
* Cached MediaQueryList shared across instances, because `matchMedia()` returns
|
|
1726
1713
|
* a live object and re-evaluating it for every mouseenter/submenu-open
|
|
1727
1714
|
* is wasteful.
|
|
1728
1715
|
*/
|
|
@@ -1730,7 +1717,7 @@ NLDDMenu._drillInModeQuery = null;
|
|
|
1730
1717
|
// — Lifecycle callbacks ————————————————————————————————————————————————————
|
|
1731
1718
|
NLDDMenu._menuIdCounter = 0;
|
|
1732
1719
|
/** Reset the typeahead buffer after this much idle time. 500ms is the
|
|
1733
|
-
* common ARIA APG / OS convention
|
|
1720
|
+
* common ARIA APG / OS convention: long enough to type a 2-3 char prefix
|
|
1734
1721
|
* comfortably, short enough that an unrelated later keystroke starts a
|
|
1735
1722
|
* fresh search. */
|
|
1736
1723
|
NLDDMenu._TYPEAHEAD_RESET_MS = 500;
|
|
@@ -1740,6 +1727,9 @@ __decorate([
|
|
|
1740
1727
|
__decorate([
|
|
1741
1728
|
property({ type: String })
|
|
1742
1729
|
], NLDDMenu.prototype, "width", void 0);
|
|
1730
|
+
__decorate([
|
|
1731
|
+
property({ type: Boolean, reflect: true, attribute: 'no-blink' })
|
|
1732
|
+
], NLDDMenu.prototype, "noBlink", void 0);
|
|
1743
1733
|
__decorate([
|
|
1744
1734
|
property({ reflect: true, converter: reflectNonDefault('') })
|
|
1745
1735
|
], NLDDMenu.prototype, "anchor", void 0);
|