@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,52 +0,0 @@
|
|
|
1
|
-
import type { ReactiveController, ReactiveControllerHost } from 'lit';
|
|
2
|
-
import '../../actions/menu/menu.js';
|
|
3
|
-
/** What the overflow menu needs from its toolbar. */
|
|
4
|
-
export interface OverflowMenuHost extends ReactiveControllerHost, HTMLElement {
|
|
5
|
-
readonly renderRoot: HTMLElement | DocumentFragment;
|
|
6
|
-
}
|
|
7
|
-
/**
|
|
8
|
-
* The overflow menu of an nldd-toolbar: an nldd-menu holding copies of the
|
|
9
|
-
* menu items of everything that did not fit, and of the toolbar's own
|
|
10
|
-
* `overflow` slot.
|
|
11
|
-
*
|
|
12
|
-
* It lives in the toolbar's shadow root, not in document.body. It is a popover,
|
|
13
|
-
* so the top layer gets it past any clipping anyway, and a menu in the body goes
|
|
14
|
-
* inert (visible but untouchable) when the toolbar sits in a modal dialog:
|
|
15
|
-
* everything outside the dialog is inert then.
|
|
16
|
-
*
|
|
17
|
-
* The menu holds clones, because the originals stay where the consumer put
|
|
18
|
-
* them. A clone's `select` never reaches listeners on its original, so it is
|
|
19
|
-
* sent on: every original is stamped with an id that its clone carries, and a
|
|
20
|
-
* `select` from a clone is dispatched again on the original.
|
|
21
|
-
*/
|
|
22
|
-
export declare class ToolbarOverflowMenu implements ReactiveController {
|
|
23
|
-
private readonly _host;
|
|
24
|
-
private static _counter;
|
|
25
|
-
/** Whether the menu is open. The toolbar renders its button from this. */
|
|
26
|
-
open: boolean;
|
|
27
|
-
private _menu;
|
|
28
|
-
private _originals;
|
|
29
|
-
constructor(_host: OverflowMenuHost);
|
|
30
|
-
hostConnected(): void;
|
|
31
|
-
hostDisconnected(): void;
|
|
32
|
-
hide(): void;
|
|
33
|
-
/**
|
|
34
|
-
* Make `button` the menu's invoker. The browser opens and closes it
|
|
35
|
-
* natively through popovertarget, and the menu keeps `popoverTargetAction`
|
|
36
|
-
* in step with its state ('hide' while open, 'show' while closed). The
|
|
37
|
-
* default 'toggle' becomes 'show' here, for the very first click before the
|
|
38
|
-
* menu ever toggled.
|
|
39
|
-
*/
|
|
40
|
-
anchorTo(button: (HTMLElement & {
|
|
41
|
-
popoverTargetElement?: Element | null;
|
|
42
|
-
popoverTargetAction?: 'toggle' | 'show' | 'hide';
|
|
43
|
-
}) | null): void;
|
|
44
|
-
/** Fill the menu with copies of `items`, in this order. */
|
|
45
|
-
fill(items: Element[]): void;
|
|
46
|
-
/** Stamps the original and every descendant with an id the clone copies.
|
|
47
|
-
* `data-toolbar-oid` is outside the toolbar's attribute filter, so stamping
|
|
48
|
-
* starts no new sync. */
|
|
49
|
-
private _clone;
|
|
50
|
-
private _forwardSelect;
|
|
51
|
-
}
|
|
52
|
-
//# sourceMappingURL=toolbar.overflow-menu.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"toolbar.overflow-menu.d.ts","sourceRoot":"","sources":["../../../../src/components/actions/toolbar/toolbar.overflow-menu.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,sBAAsB,EAAE,MAAM,KAAK,CAAC;AAEtE,OAAO,4BAA4B,CAAC;AAEpC,qDAAqD;AACrD,MAAM,WAAW,gBAAiB,SAAQ,sBAAsB,EAAE,WAAW;IAC5E,QAAQ,CAAC,UAAU,EAAE,WAAW,GAAG,gBAAgB,CAAC;CACpD;AAED;;;;;;;;;;;;;;GAcG;AACH,qBAAa,mBAAoB,YAAW,kBAAkB;IASjD,OAAO,CAAC,QAAQ,CAAC,KAAK;IARlC,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAK;IAE5B,0EAA0E;IAC1E,IAAI,UAAS;IAEb,OAAO,CAAC,KAAK,CAAyB;IACtC,OAAO,CAAC,UAAU,CAA8B;gBAEnB,KAAK,EAAE,gBAAgB;IAIpD,aAAa,IAAI,IAAI;IAcrB,gBAAgB,IAAI,IAAI;IAMxB,IAAI,IAAI,IAAI;IAIZ;;;;;;OAMG;IACH,QAAQ,CAAC,MAAM,EAAE,CAAC,WAAW,GAAG;QAC/B,oBAAoB,CAAC,EAAE,OAAO,GAAG,IAAI,CAAC;QACtC,mBAAmB,CAAC,EAAE,QAAQ,GAAG,MAAM,GAAG,MAAM,CAAC;KACjD,CAAC,GAAG,IAAI,GAAG,IAAI;IAShB,2DAA2D;IAC3D,IAAI,CAAC,KAAK,EAAE,OAAO,EAAE,GAAG,IAAI;IAO5B;;8BAE0B;IAC1B,OAAO,CAAC,MAAM;IAcd,OAAO,CAAC,cAAc,CAUpB;CACF"}
|
|
@@ -1,105 +0,0 @@
|
|
|
1
|
-
import '../../actions/menu/menu.js';
|
|
2
|
-
/**
|
|
3
|
-
* The overflow menu of an nldd-toolbar: an nldd-menu holding copies of the
|
|
4
|
-
* menu items of everything that did not fit, and of the toolbar's own
|
|
5
|
-
* `overflow` slot.
|
|
6
|
-
*
|
|
7
|
-
* It lives in the toolbar's shadow root, not in document.body. It is a popover,
|
|
8
|
-
* so the top layer gets it past any clipping anyway, and a menu in the body goes
|
|
9
|
-
* inert (visible but untouchable) when the toolbar sits in a modal dialog:
|
|
10
|
-
* everything outside the dialog is inert then.
|
|
11
|
-
*
|
|
12
|
-
* The menu holds clones, because the originals stay where the consumer put
|
|
13
|
-
* them. A clone's `select` never reaches listeners on its original, so it is
|
|
14
|
-
* sent on: every original is stamped with an id that its clone carries, and a
|
|
15
|
-
* `select` from a clone is dispatched again on the original.
|
|
16
|
-
*/
|
|
17
|
-
export class ToolbarOverflowMenu {
|
|
18
|
-
constructor(_host) {
|
|
19
|
-
this._host = _host;
|
|
20
|
-
/** Whether the menu is open. The toolbar renders its button from this. */
|
|
21
|
-
this.open = false;
|
|
22
|
-
this._menu = null;
|
|
23
|
-
this._originals = new Map();
|
|
24
|
-
this._forwardSelect = (event) => {
|
|
25
|
-
const stamped = event.composedPath()
|
|
26
|
-
.find((node) => node instanceof Element && node.hasAttribute('data-toolbar-oid'));
|
|
27
|
-
const original = stamped && this._originals.get(stamped.getAttribute('data-toolbar-oid'));
|
|
28
|
-
if (!original)
|
|
29
|
-
return;
|
|
30
|
-
original.dispatchEvent(new CustomEvent('select', {
|
|
31
|
-
bubbles: true,
|
|
32
|
-
composed: true,
|
|
33
|
-
detail: event.detail,
|
|
34
|
-
}));
|
|
35
|
-
};
|
|
36
|
-
_host.addController(this);
|
|
37
|
-
}
|
|
38
|
-
hostConnected() {
|
|
39
|
-
if (this._menu)
|
|
40
|
-
return;
|
|
41
|
-
const menu = document.createElement('nldd-menu');
|
|
42
|
-
menu.setAttribute('placement', 'bottom-end');
|
|
43
|
-
menu.id = `nldd-toolbar-overflow-menu-${ToolbarOverflowMenu._counter++}`;
|
|
44
|
-
menu.addEventListener('toggle', (event) => {
|
|
45
|
-
this.open = event.newState === 'open';
|
|
46
|
-
this._host.requestUpdate();
|
|
47
|
-
});
|
|
48
|
-
menu.addEventListener('select', this._forwardSelect);
|
|
49
|
-
this._host.renderRoot.appendChild(menu);
|
|
50
|
-
this._menu = menu;
|
|
51
|
-
}
|
|
52
|
-
hostDisconnected() {
|
|
53
|
-
this._menu?.remove();
|
|
54
|
-
this._menu = null;
|
|
55
|
-
this.open = false;
|
|
56
|
-
}
|
|
57
|
-
hide() {
|
|
58
|
-
if (this.open)
|
|
59
|
-
this._menu?.hidePopover();
|
|
60
|
-
}
|
|
61
|
-
/**
|
|
62
|
-
* Make `button` the menu's invoker. The browser opens and closes it
|
|
63
|
-
* natively through popovertarget, and the menu keeps `popoverTargetAction`
|
|
64
|
-
* in step with its state ('hide' while open, 'show' while closed). The
|
|
65
|
-
* default 'toggle' becomes 'show' here, for the very first click before the
|
|
66
|
-
* menu ever toggled.
|
|
67
|
-
*/
|
|
68
|
-
anchorTo(button) {
|
|
69
|
-
if (!this._menu || !button)
|
|
70
|
-
return;
|
|
71
|
-
this._menu.anchorElement = button;
|
|
72
|
-
if ('popoverTargetElement' in button)
|
|
73
|
-
button.popoverTargetElement = this._menu;
|
|
74
|
-
if ('popoverTargetAction' in button && button.popoverTargetAction === 'toggle') {
|
|
75
|
-
button.popoverTargetAction = 'show';
|
|
76
|
-
}
|
|
77
|
-
}
|
|
78
|
-
/** Fill the menu with copies of `items`, in this order. */
|
|
79
|
-
fill(items) {
|
|
80
|
-
if (!this._menu)
|
|
81
|
-
return;
|
|
82
|
-
this._menu.innerHTML = '';
|
|
83
|
-
this._originals.clear();
|
|
84
|
-
for (const item of items)
|
|
85
|
-
this._menu.appendChild(this._clone(item));
|
|
86
|
-
}
|
|
87
|
-
/** Stamps the original and every descendant with an id the clone copies.
|
|
88
|
-
* `data-toolbar-oid` is outside the toolbar's attribute filter, so stamping
|
|
89
|
-
* starts no new sync. */
|
|
90
|
-
_clone(original) {
|
|
91
|
-
for (const node of [original, ...original.querySelectorAll('*')]) {
|
|
92
|
-
let oid = node.getAttribute('data-toolbar-oid');
|
|
93
|
-
if (!oid) {
|
|
94
|
-
oid = `oid-${ToolbarOverflowMenu._counter++}`;
|
|
95
|
-
node.setAttribute('data-toolbar-oid', oid);
|
|
96
|
-
}
|
|
97
|
-
this._originals.set(oid, node);
|
|
98
|
-
}
|
|
99
|
-
const clone = original.cloneNode(true);
|
|
100
|
-
clone.removeAttribute('slot');
|
|
101
|
-
return clone;
|
|
102
|
-
}
|
|
103
|
-
}
|
|
104
|
-
ToolbarOverflowMenu._counter = 0;
|
|
105
|
-
//# sourceMappingURL=toolbar.overflow-menu.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"toolbar.overflow-menu.js","sourceRoot":"","sources":["../../../../src/components/actions/toolbar/toolbar.overflow-menu.ts"],"names":[],"mappings":"AAEA,OAAO,4BAA4B,CAAC;AAOpC;;;;;;;;;;;;;;GAcG;AACH,MAAM,OAAO,mBAAmB;IAS/B,YAA6B,KAAuB;QAAvB,UAAK,GAAL,KAAK,CAAkB;QANpD,0EAA0E;QAC1E,SAAI,GAAG,KAAK,CAAC;QAEL,UAAK,GAAoB,IAAI,CAAC;QAC9B,eAAU,GAAG,IAAI,GAAG,EAAmB,CAAC;QA0ExC,mBAAc,GAAG,CAAC,KAAY,EAAQ,EAAE;YAC/C,MAAM,OAAO,GAAG,KAAK,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A2ID"}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import type { LitElement } from 'lit';
|
|
2
|
-
/**
|
|
3
|
-
* Defers an overlay's `show()` until the element has rendered its `<dialog>`.
|
|
4
|
-
*
|
|
5
|
-
* `show()` needs a dialog in the shadow root to call `showModal()` on. A consumer
|
|
6
|
-
* that opens an overlay in the same tick it is created — an overlay bound to
|
|
7
|
-
* `show=true` on a routed component, say — gets there first, and without this the
|
|
8
|
-
* call would silently do nothing with nothing to retry it: the overlay stays shut
|
|
9
|
-
* for good, which reads as a broken component rather than a race.
|
|
10
|
-
*
|
|
11
|
-
* Retried exactly once. If the dialog still is not there after the update, the
|
|
12
|
-
* element was never rendered at all, and opening again would only queue another
|
|
13
|
-
* retry against the same missing dialog.
|
|
14
|
-
*
|
|
15
|
-
* @param host The overlay element.
|
|
16
|
-
* @param getDialog Resolves the dialog from the shadow root.
|
|
17
|
-
* @param open Opens the overlay: the caller's own `show()`.
|
|
18
|
-
* @returns Cancels the pending open, for a `hide()` that overtakes it.
|
|
19
|
-
*/
|
|
20
|
-
export declare function openWhenRendered(host: LitElement, getDialog: () => HTMLDialogElement | null, open: () => void): () => void;
|
|
21
|
-
//# sourceMappingURL=open-when-rendered.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"open-when-rendered.d.ts","sourceRoot":"","sources":["../../src/utilities/open-when-rendered.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,KAAK,CAAC;AAEtC;;;;;;;;;;;;;;;;;GAiBG;AACH,wBAAgB,gBAAgB,CAC/B,IAAI,EAAE,UAAU,EAChB,SAAS,EAAE,MAAM,iBAAiB,GAAG,IAAI,EACzC,IAAI,EAAE,MAAM,IAAI,GACd,MAAM,IAAI,CAWZ"}
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Defers an overlay's `show()` until the element has rendered its `<dialog>`.
|
|
3
|
-
*
|
|
4
|
-
* `show()` needs a dialog in the shadow root to call `showModal()` on. A consumer
|
|
5
|
-
* that opens an overlay in the same tick it is created — an overlay bound to
|
|
6
|
-
* `show=true` on a routed component, say — gets there first, and without this the
|
|
7
|
-
* call would silently do nothing with nothing to retry it: the overlay stays shut
|
|
8
|
-
* for good, which reads as a broken component rather than a race.
|
|
9
|
-
*
|
|
10
|
-
* Retried exactly once. If the dialog still is not there after the update, the
|
|
11
|
-
* element was never rendered at all, and opening again would only queue another
|
|
12
|
-
* retry against the same missing dialog.
|
|
13
|
-
*
|
|
14
|
-
* @param host The overlay element.
|
|
15
|
-
* @param getDialog Resolves the dialog from the shadow root.
|
|
16
|
-
* @param open Opens the overlay: the caller's own `show()`.
|
|
17
|
-
* @returns Cancels the pending open, for a `hide()` that overtakes it.
|
|
18
|
-
*/
|
|
19
|
-
export function openWhenRendered(host, getDialog, open) {
|
|
20
|
-
let cancelled = false;
|
|
21
|
-
host.updateComplete.then(() => {
|
|
22
|
-
if (cancelled || !getDialog())
|
|
23
|
-
return;
|
|
24
|
-
open();
|
|
25
|
-
});
|
|
26
|
-
return () => {
|
|
27
|
-
cancelled = true;
|
|
28
|
-
};
|
|
29
|
-
}
|
|
30
|
-
//# sourceMappingURL=open-when-rendered.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"open-when-rendered.js","sourceRoot":"","sources":["../../src/utilities/open-when-rendered.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;;;;;;;;GAiBG;AACH,MAAM,UAAU,gBAAgB,CAC/B,IAAgB,EAChB,SAAyC,EACzC,IAAgB;IAEhB,IAAI,SAAS,GAAG,KAAK,CAAC;IAEtB,IAAI,CAAC,cAAc,CAAC,IAAI,CAAC,GAAG,EAAE;QAC7B,IAAI,SAAS,IAAI,CAAC,SAAS,EAAE;YAAE,OAAO;QACtC,IAAI,EAAE,CAAC;IACR,CAAC,CAAC,CAAC;IAEH,OAAO,GAAG,EAAE;QACX,SAAS,GAAG,IAAI,CAAC;IAClB,CAAC,CAAC;AACH,CAAC"}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* The popover a component's inner button invokes, from `popovertarget` or
|
|
3
|
-
* `popoverTargetElement` on the host.
|
|
4
|
-
*
|
|
5
|
-
* An id written on the inner button is looked up in the component's own
|
|
6
|
-
* shadow root, where the popover never is, so the button opened nothing. The
|
|
7
|
-
* id is looked up here in the tree of the host instead, and the inner button
|
|
8
|
-
* gets the element. The element wins when both are set.
|
|
9
|
-
*
|
|
10
|
-
* Look it up again on click: a popover rendered after the button is not there
|
|
11
|
-
* yet on the button's first render.
|
|
12
|
-
*/
|
|
13
|
-
export declare function popoverTargetOf(host: Element, id: string | undefined, element: Element | null): Element | null;
|
|
14
|
-
/**
|
|
15
|
-
* Positions an `nldd-menu` or `nldd-popover` that `popovertarget` points at
|
|
16
|
-
* against the control that opens it, so the overlay needs no `anchor` of its
|
|
17
|
-
* own. The browser already opens and closes it; this adds where it stands and
|
|
18
|
-
* the ARIA link back to the control, as a slotted overlay gets.
|
|
19
|
-
*
|
|
20
|
-
* An overlay with an `anchor` id, or anchored to another element, is
|
|
21
|
-
* left alone: someone chose where it goes. Pass `null` to let go, as on
|
|
22
|
-
* disconnect or when `popovertarget` changes.
|
|
23
|
-
*/
|
|
24
|
-
export declare function anchorPopoverTarget(host: Element, target: Element | null): void;
|
|
25
|
-
//# sourceMappingURL=popover-target.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"popover-target.d.ts","sourceRoot":"","sources":["../../src/utilities/popover-target.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AACH,wBAAgB,eAAe,CAAC,IAAI,EAAE,OAAO,EAAE,EAAE,EAAE,MAAM,GAAG,SAAS,EAAE,OAAO,EAAE,OAAO,GAAG,IAAI,GAAG,OAAO,GAAG,IAAI,CAK9G;AAOD;;;;;;;;;GASG;AACH,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,OAAO,EAAE,MAAM,EAAE,OAAO,GAAG,IAAI,GAAG,IAAI,CAY/E"}
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* The popover a component's inner button invokes, from `popovertarget` or
|
|
3
|
-
* `popoverTargetElement` on the host.
|
|
4
|
-
*
|
|
5
|
-
* An id written on the inner button is looked up in the component's own
|
|
6
|
-
* shadow root, where the popover never is, so the button opened nothing. The
|
|
7
|
-
* id is looked up here in the tree of the host instead, and the inner button
|
|
8
|
-
* gets the element. The element wins when both are set.
|
|
9
|
-
*
|
|
10
|
-
* Look it up again on click: a popover rendered after the button is not there
|
|
11
|
-
* yet on the button's first render.
|
|
12
|
-
*/
|
|
13
|
-
export function popoverTargetOf(host, id, element) {
|
|
14
|
-
if (element)
|
|
15
|
-
return element;
|
|
16
|
-
if (!id)
|
|
17
|
-
return null;
|
|
18
|
-
const root = host.getRootNode();
|
|
19
|
-
return root.getElementById?.(id) ?? null;
|
|
20
|
-
}
|
|
21
|
-
/** The overlay each host anchored, so it can let go again. */
|
|
22
|
-
const anchoredBy = new WeakMap();
|
|
23
|
-
/**
|
|
24
|
-
* Positions an `nldd-menu` or `nldd-popover` that `popovertarget` points at
|
|
25
|
-
* against the control that opens it, so the overlay needs no `anchor` of its
|
|
26
|
-
* own. The browser already opens and closes it; this adds where it stands and
|
|
27
|
-
* the ARIA link back to the control, as a slotted overlay gets.
|
|
28
|
-
*
|
|
29
|
-
* An overlay with an `anchor` id, or anchored to another element, is
|
|
30
|
-
* left alone: someone chose where it goes. Pass `null` to let go, as on
|
|
31
|
-
* disconnect or when `popovertarget` changes.
|
|
32
|
-
*/
|
|
33
|
-
export function anchorPopoverTarget(host, target) {
|
|
34
|
-
const previous = anchoredBy.get(host);
|
|
35
|
-
const next = target?.matches('nldd-menu, nldd-popover') && !target.getAttribute('anchor')
|
|
36
|
-
? target
|
|
37
|
-
: null;
|
|
38
|
-
if (previous && previous !== next && previous.anchorElement === host)
|
|
39
|
-
previous.anchorElement = null;
|
|
40
|
-
if (next && (next.anchorElement === null || next.anchorElement === host)) {
|
|
41
|
-
next.anchorElement = host;
|
|
42
|
-
anchoredBy.set(host, next);
|
|
43
|
-
}
|
|
44
|
-
else {
|
|
45
|
-
anchoredBy.delete(host);
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
//# sourceMappingURL=popover-target.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"popover-target.js","sourceRoot":"","sources":["../../src/utilities/popover-target.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AACH,MAAM,UAAU,eAAe,CAAC,IAAa,EAAE,EAAsB,EAAE,OAAuB;IAC7F,IAAI,OAAO;QAAE,OAAO,OAAO,CAAC;IAC5B,IAAI,CAAC,EAAE;QAAE,OAAO,IAAI,CAAC;IACrB,MAAM,IAAI,GAAG,IAAI,CAAC,WAAW,EAA2B,CAAC;IACzD,OAAO,IAAI,CAAC,cAAc,EAAE,CAAC,EAAE,CAAC,IAAI,IAAI,CAAC;AAC1C,CAAC;AAID,8DAA8D;AAC9D,MAAM,UAAU,GAAG,IAAI,OAAO,EAA8B,CAAC;AAE7D;;;;;;;;;GASG;AACH,MAAM,UAAU,mBAAmB,CAAC,IAAa,EAAE,MAAsB;IACxE,MAAM,QAAQ,GAAG,UAAU,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;IACtC,MAAM,IAAI,GAAG,MAAM,EAAE,OAAO,CAAC,yBAAyB,CAAC,IAAI,CAAC,MAAM,CAAC,YAAY,CAAC,QAAQ,CAAC;QACxF,CAAC,CAAC,MAA2B;QAC7B,CAAC,CAAC,IAAI,CAAC;IACR,IAAI,QAAQ,IAAI,QAAQ,KAAK,IAAI,IAAI,QAAQ,CAAC,aAAa,KAAK,IAAI;QAAE,QAAQ,CAAC,aAAa,GAAG,IAAI,CAAC;IACpG,IAAI,IAAI,IAAI,CAAC,IAAI,CAAC,aAAa,KAAK,IAAI,IAAI,IAAI,CAAC,aAAa,KAAK,IAAI,CAAC,EAAE,CAAC;QAC1E,IAAI,CAAC,aAAa,GAAG,IAAI,CAAC;QAC1B,UAAU,CAAC,GAAG,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;IAC5B,CAAC;SAAM,CAAC;QACP,UAAU,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;IACzB,CAAC;AACF,CAAC"}
|
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Shared wiring for a control that invokes a slotted overlay (`nldd-menu` /
|
|
3
|
-
* `nldd-popover`): it adopts the overlay from a slot, anchors it, and turns the
|
|
4
|
-
* control's clicks into open/close.
|
|
5
|
-
*
|
|
6
|
-
* A controller rather than a mixin, because the parts that differ between
|
|
7
|
-
* nldd-button, nldd-icon-button and nldd-split-button are configuration, not
|
|
8
|
-
* subclassing: the anchor target (the host, or an inner wrapper) is a callback,
|
|
9
|
-
* and the click handling is a method the control calls from its own handler,
|
|
10
|
-
* which then falls through to its own form / link / event behavior. Split-button
|
|
11
|
-
* layers `toggle` tracking on top via `onChange`, which composition allows and
|
|
12
|
-
* inheritance would fight.
|
|
13
|
-
*
|
|
14
|
-
* The delicate part it centralises is the pointerdown snapshot. The browser
|
|
15
|
-
* light-dismisses an open popover on pointerdown, which is *before* the click
|
|
16
|
-
* lands, so a click handler that only sees "the overlay is closed" would
|
|
17
|
-
* immediately re-open what the same gesture just dismissed (the "flashes closed
|
|
18
|
-
* then reopens" bug). Snapshotting on pointerdown keeps the two apart.
|
|
19
|
-
*/
|
|
20
|
-
import type { NLDDMenu } from '../components/actions/menu/menu.js';
|
|
21
|
-
import type { NLDDPopover } from '../components/layout/popover/popover.js';
|
|
22
|
-
/** A floating overlay a control can anchor and toggle from a slot. Both expose
|
|
23
|
-
* `anchorElement` and bail on their own anchor-click toggle once it is set, so
|
|
24
|
-
* the control drives them uniformly via showPopover(). */
|
|
25
|
-
export type Overlay = (NLDDMenu | NLDDPopover) & {
|
|
26
|
-
anchorElement: Element | null;
|
|
27
|
-
};
|
|
28
|
-
export interface PopupAnchorOptions {
|
|
29
|
-
/** Element the overlay positions against; defaults to the host. A callback,
|
|
30
|
-
* so a target that only resolves after the first render (an inner element
|
|
31
|
-
* behind @query) still works — call `anchor()` once it exists. */
|
|
32
|
-
anchorFor?: () => Element | null;
|
|
33
|
-
/** Runs after the slotted overlay is swapped, for behavior layered on top
|
|
34
|
-
* (e.g. tracking `toggle` to drive a chevron's expanded state). */
|
|
35
|
-
onChange?: (overlay: Overlay | null, previous: Overlay | null) => void;
|
|
36
|
-
}
|
|
37
|
-
export declare class PopupAnchorController {
|
|
38
|
-
private _anchorFor;
|
|
39
|
-
private _onChange?;
|
|
40
|
-
private _overlay;
|
|
41
|
-
private _wasOpenOnPointerdown;
|
|
42
|
-
constructor(host: HTMLElement, options?: PopupAnchorOptions);
|
|
43
|
-
/** The slotted overlay, or null when none is slotted. */
|
|
44
|
-
get overlay(): Overlay | null;
|
|
45
|
-
/** Bind to the popup slot's `slotchange`. */
|
|
46
|
-
handleSlotChange: (event: Event) => void;
|
|
47
|
-
/** Adopt an overlay (or none). Releases the previous one first: left
|
|
48
|
-
* anchored, a removed overlay keeps positioning against this control and
|
|
49
|
-
* syncing `expanded` onto it, and the pair can never be collected. */
|
|
50
|
-
setOverlay(overlay: Overlay | null): void;
|
|
51
|
-
/** (Re-)anchor the current overlay. Call once the anchor target exists when
|
|
52
|
-
* it resolves later than the first `slotchange`. */
|
|
53
|
-
anchor(): void;
|
|
54
|
-
/** Bind to the invoker's `pointerdown`. Snapshots the open state before the
|
|
55
|
-
* browser's light-dismiss runs. Covers mouse, touch and pen — `mousedown`
|
|
56
|
-
* alone would skip touch, where no mousedown precedes the synthetic click. */
|
|
57
|
-
handlePointerdown: () => void;
|
|
58
|
-
/** Call from the control's click handler. Returns true when the click was
|
|
59
|
-
* consumed (an overlay is slotted, so the control is its invoker and
|
|
60
|
-
* neither submits a form nor navigates); false to fall through. */
|
|
61
|
-
handleClick(event: MouseEvent): boolean;
|
|
62
|
-
}
|
|
63
|
-
//# sourceMappingURL=popup-anchor-controller.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"popup-anchor-controller.d.ts","sourceRoot":"","sources":["../../src/utilities/popup-anchor-controller.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AACH,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,oCAAoC,CAAC;AACnE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,yCAAyC,CAAC;AAE3E;;2DAE2D;AAC3D,MAAM,MAAM,OAAO,GAAG,CAAC,QAAQ,GAAG,WAAW,CAAC,GAAG;IAAE,aAAa,EAAE,OAAO,GAAG,IAAI,CAAA;CAAE,CAAC;AAInF,MAAM,WAAW,kBAAkB;IAClC;;uEAEmE;IACnE,SAAS,CAAC,EAAE,MAAM,OAAO,GAAG,IAAI,CAAC;IACjC;wEACoE;IACpE,QAAQ,CAAC,EAAE,CAAC,OAAO,EAAE,OAAO,GAAG,IAAI,EAAE,QAAQ,EAAE,OAAO,GAAG,IAAI,KAAK,IAAI,CAAC;CACvE;AAED,qBAAa,qBAAqB;IACjC,OAAO,CAAC,UAAU,CAAuB;IACzC,OAAO,CAAC,SAAS,CAAC,CAA8D;IAChF,OAAO,CAAC,QAAQ,CAAwB;IACxC,OAAO,CAAC,qBAAqB,CAAS;gBAE1B,IAAI,EAAE,WAAW,EAAE,OAAO,GAAE,kBAAuB;IAK/D,yDAAyD;IACzD,IAAI,OAAO,IAAI,OAAO,GAAG,IAAI,CAE5B;IAED,6CAA6C;IAC7C,gBAAgB,GAAI,OAAO,KAAK,KAAG,IAAI,CAMrC;IAEF;;2EAEuE;IACvE,UAAU,CAAC,OAAO,EAAE,OAAO,GAAG,IAAI,GAAG,IAAI;IASzC;yDACqD;IACrD,MAAM,IAAI,IAAI;IAKd;;mFAE+E;IAC/E,iBAAiB,QAAO,IAAI,CAO1B;IAEF;;wEAEoE;IACpE,WAAW,CAAC,KAAK,EAAE,UAAU,GAAG,OAAO;CAavC"}
|
|
@@ -1,72 +0,0 @@
|
|
|
1
|
-
const OVERLAY_SELECTOR = 'nldd-menu, nldd-popover';
|
|
2
|
-
export class PopupAnchorController {
|
|
3
|
-
constructor(host, options = {}) {
|
|
4
|
-
this._overlay = null;
|
|
5
|
-
this._wasOpenOnPointerdown = false;
|
|
6
|
-
/** Bind to the popup slot's `slotchange`. */
|
|
7
|
-
this.handleSlotChange = (event) => {
|
|
8
|
-
const slot = event.target;
|
|
9
|
-
// Flattened, so a component can forward its own slot into this one
|
|
10
|
-
// (nldd-split-button hands its popup to the chevron this way).
|
|
11
|
-
const overlay = slot.assignedElements({ flatten: true }).find((el) => el.matches(OVERLAY_SELECTOR)) ?? null;
|
|
12
|
-
this.setOverlay(overlay);
|
|
13
|
-
};
|
|
14
|
-
/** Bind to the invoker's `pointerdown`. Snapshots the open state before the
|
|
15
|
-
* browser's light-dismiss runs. Covers mouse, touch and pen — `mousedown`
|
|
16
|
-
* alone would skip touch, where no mousedown precedes the synthetic click. */
|
|
17
|
-
this.handlePointerdown = () => {
|
|
18
|
-
const overlay = this._overlay;
|
|
19
|
-
if (!overlay) {
|
|
20
|
-
this._wasOpenOnPointerdown = false;
|
|
21
|
-
return;
|
|
22
|
-
}
|
|
23
|
-
this._wasOpenOnPointerdown = '_shownForInvoker' in overlay ? overlay._shownForInvoker() : overlay.matches(':popover-open');
|
|
24
|
-
};
|
|
25
|
-
this._anchorFor = options.anchorFor ?? (() => host);
|
|
26
|
-
this._onChange = options.onChange;
|
|
27
|
-
}
|
|
28
|
-
/** The slotted overlay, or null when none is slotted. */
|
|
29
|
-
get overlay() {
|
|
30
|
-
return this._overlay;
|
|
31
|
-
}
|
|
32
|
-
/** Adopt an overlay (or none). Releases the previous one first: left
|
|
33
|
-
* anchored, a removed overlay keeps positioning against this control and
|
|
34
|
-
* syncing `expanded` onto it, and the pair can never be collected. */
|
|
35
|
-
setOverlay(overlay) {
|
|
36
|
-
if (overlay === this._overlay)
|
|
37
|
-
return;
|
|
38
|
-
const previous = this._overlay;
|
|
39
|
-
if (previous)
|
|
40
|
-
previous.anchorElement = null;
|
|
41
|
-
this._overlay = overlay;
|
|
42
|
-
this.anchor();
|
|
43
|
-
this._onChange?.(overlay, previous);
|
|
44
|
-
}
|
|
45
|
-
/** (Re-)anchor the current overlay. Call once the anchor target exists when
|
|
46
|
-
* it resolves later than the first `slotchange`. */
|
|
47
|
-
anchor() {
|
|
48
|
-
const target = this._anchorFor();
|
|
49
|
-
if (this._overlay && target)
|
|
50
|
-
this._overlay.anchorElement = target;
|
|
51
|
-
}
|
|
52
|
-
/** Call from the control's click handler. Returns true when the click was
|
|
53
|
-
* consumed (an overlay is slotted, so the control is its invoker and
|
|
54
|
-
* neither submits a form nor navigates); false to fall through. */
|
|
55
|
-
handleClick(event) {
|
|
56
|
-
if (!this._overlay)
|
|
57
|
-
return false;
|
|
58
|
-
// Only a pointer-driven click (detail > 0) has a preceding pointerdown; a
|
|
59
|
-
// keyboard click must ignore the snapshot, which would otherwise be left
|
|
60
|
-
// over from an earlier gesture that ended without a click (drag off the
|
|
61
|
-
// control, touch scroll) and swallow the activation. The :popover-open
|
|
62
|
-
// guard keeps showPopover() from throwing on an already-open overlay.
|
|
63
|
-
const wasOpen = event.detail > 0 && this._wasOpenOnPointerdown;
|
|
64
|
-
this._wasOpenOnPointerdown = false;
|
|
65
|
-
if ('_endInvokerGesture' in this._overlay)
|
|
66
|
-
this._overlay._endInvokerGesture();
|
|
67
|
-
if (!wasOpen && !this._overlay.matches(':popover-open'))
|
|
68
|
-
this._overlay.showPopover();
|
|
69
|
-
return true;
|
|
70
|
-
}
|
|
71
|
-
}
|
|
72
|
-
//# sourceMappingURL=popup-anchor-controller.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"popup-anchor-controller.js","sourceRoot":"","sources":["../../src/utilities/popup-anchor-controller.ts"],"names":[],"mappings":"A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