@nldd/design-system 0.26.0 → 0.26.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/custom-elements.json +4559 -1176
- package/dist/cdn/autoloader.js +141 -141
- package/dist/cdn/chunks/{accordion-DA4IlxS5.js → accordion-CCuKxlsg.js} +6 -6
- package/dist/cdn/chunks/{accordion-item-Ca1o93cq.js → accordion-item-Cn1UDWtD.js} +7 -7
- package/dist/cdn/chunks/{activity-indicator-Cj4H0Mbz.js → activity-indicator-BM_atCTY.js} +13 -13
- package/dist/cdn/chunks/{admonition-CdZSoO8O.js → admonition-CqDce27_.js} +11 -11
- package/dist/cdn/chunks/{avatar-Dhqn-Dmv.js → avatar-Dl2tOfc2.js} +18 -18
- package/dist/cdn/chunks/{avatar-group-B017eF-u.js → avatar-group-Br3qBaow.js} +42 -40
- package/dist/cdn/chunks/{badge-Bep5B0_g.js → badge-DjjAl4mn.js} +15 -15
- package/dist/cdn/chunks/{banner-DGpIXuE2.js → banner-s5xMqoEU.js} +16 -16
- package/dist/cdn/chunks/{bar-split-view-CKwJxd3e.js → bar-split-view-B6Mv_cw-.js} +8 -8
- package/dist/cdn/chunks/{blockquote-ChMgaOuI.js → blockquote-CRFPXI9u.js} +8 -8
- package/dist/cdn/chunks/{box-BRmziG-6.js → box-CSZyj31o.js} +5 -5
- package/dist/cdn/chunks/{breadcrumbs-BeVO8bkQ.js → breadcrumbs-DzjbOB7o.js} +13 -13
- package/dist/cdn/chunks/{button-cHBkq_s7.js → button-B7OGt_dX.js} +53 -54
- package/dist/cdn/chunks/{button-bar-CLxOdalJ.js → button-bar-CvDkir22.js} +8 -8
- package/dist/cdn/chunks/{button-group-BIvKtEIX.js → button-group-Bi3dr9Go.js} +6 -6
- package/dist/cdn/chunks/{card-B5gp9Zly.js → card-DceO3pMp.js} +10 -10
- package/dist/cdn/chunks/{cell-D4Nrd5Z9.js → cell-Bgp9n0yQ.js} +13 -13
- package/dist/cdn/chunks/{checkbox-CeLTJhAc.js → checkbox-C1F0Q3g8.js} +26 -43
- package/dist/cdn/chunks/{checkbox-field-C8cU8fuf.js → checkbox-field-DGKc530M.js} +35 -43
- package/dist/cdn/chunks/checkbox-group-x9Ua2a06.js +91 -0
- package/dist/cdn/chunks/choice-group-AZsqoheP.js +64 -0
- package/dist/cdn/chunks/{class-map-xzscTu4B.js → class-map-CAVKoa31.js} +1 -1
- package/dist/cdn/chunks/{code-editor-BNhlXTSl.js → code-editor-C0U5qVW2.js} +11 -11
- package/dist/cdn/chunks/{code-viewer-D_JwouYO.js → code-viewer-C_DzKPSv.js} +17 -17
- package/dist/cdn/chunks/{codemirror-input-DJ0wgYrc.js → codemirror-input-BmIE22aU.js} +5 -5
- package/dist/cdn/chunks/{collection-BXvz_OtU.js → collection-BZK9NzrQ.js} +19 -19
- package/dist/cdn/chunks/{combo-box-8kbmoStb.js → combo-box-DJrQ-2Wr.js} +69 -87
- package/dist/cdn/chunks/{container-Dq-2uHd5.js → container-BT96Wlz6.js} +48 -48
- package/dist/cdn/chunks/{custom-element-DeaCQ2NP.js → custom-element-D5bstafw.js} +2 -2
- package/dist/cdn/chunks/{date-field-CQg1_73u.js → date-field-B8GcDwkD.js} +33 -40
- package/dist/cdn/chunks/{date-picker-CTMxGOiA.js → date-picker-Byi-fA0A.js} +17 -17
- package/dist/cdn/chunks/{decorate-CCYde2ES.js → decorate-Cjb3GqlZ.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-ZWpyWEyB.js} +2 -2
- package/dist/cdn/chunks/{description-cell-GcVeCz2_.js → description-cell-DRXRiZGw.js} +12 -12
- package/dist/cdn/chunks/{dev-checks-CSlbfDuF.js → dev-checks-BYWMWeug.js} +931 -931
- package/dist/cdn/chunks/{directive-helpers-DgaADFyY.js → directive-helpers-mh9SNf0j.js} +1 -1
- package/dist/cdn/chunks/{dist-5vPsM2aV.js → dist-1yCEk2Pe.js} +1 -1
- package/dist/cdn/chunks/{dist-1OQdP4ho.js → dist-BBtyEGZQ.js} +3 -3
- package/dist/cdn/chunks/{dist-Da_liXcd.js → dist-BIhRNYZs.js} +3 -3
- package/dist/cdn/chunks/{dist-B23jHvJ5.js → dist-BfJ8w6Dz.js} +1 -1
- package/dist/cdn/chunks/{dist-CcpLhc4y.js → dist-BlHWe6Ns.js} +1 -1
- package/dist/cdn/chunks/{dist-VCymi0hs.js → dist-C4o16iKF.js} +1 -1
- package/dist/cdn/chunks/{dist-CyDpBAaD.js → dist-CKGgPGjj.js} +2 -2
- package/dist/cdn/chunks/{dist-CNy2sPTt.js → dist-CT0CdAxb.js} +2 -2
- package/dist/cdn/chunks/{dist-D4SViUJx.js → dist-DCzCfm9V.js} +1 -1
- package/dist/cdn/chunks/{dist-DLtwMUDc.js → dist-iYv1GHSb.js} +2 -2
- package/dist/cdn/chunks/{dist-DBxjWahH.js → dist-jyyZH0d2.js} +1 -1
- package/dist/cdn/chunks/{divider-8XD3xTbl.js → divider-CeAw8gBP.js} +2 -2
- package/dist/cdn/chunks/{document-tab-bar-RBAmckHS.js → document-tab-bar-rIsC6EZp.js} +32 -46
- package/dist/cdn/chunks/{dropdown-DVlxPcjr.js → dropdown-MEzKo0TQ.js} +14 -14
- package/dist/cdn/chunks/{file-field-BrHnFplX.js → file-field--wivtgZv.js} +42 -40
- package/dist/cdn/chunks/{form-DGHeGEIr.js → form-ByjlUZuR.js} +1 -1
- package/dist/cdn/chunks/{form-actions-CHwWKfMM.js → form-actions-YK7n_jse.js} +4 -4
- package/dist/cdn/chunks/form-associated-mixin-BCzChLUO.js +123 -0
- package/dist/cdn/chunks/{form-field-CdTSI-8h.js → form-field-y-h-k8x5.js} +11 -11
- package/dist/cdn/chunks/{form-section-CjECOIiZ.js → form-section-jWj88aQa.js} +1 -1
- package/dist/cdn/chunks/{full-bleed-section-CQgq4iGQ.js → full-bleed-section-h6CrFe8F.js} +5 -5
- package/dist/cdn/chunks/{hero-DhdcYt2N.js → hero-Dy1tW9gU.js} +19 -19
- package/dist/cdn/chunks/{icon-button-DT_Bi4Ac.js → icon-button-B0Lb2ccT.js} +37 -38
- package/dist/cdn/chunks/{icon-cell-C-qrZAlN.js → icon-cell-byBTzcEn.js} +10 -10
- package/dist/cdn/chunks/{icon-qpmEfU9B.js → icon-m8JXbN5F.js} +8 -8
- package/dist/cdn/chunks/{identity-DFmvuPkl.js → identity-BpUMGka9.js} +12 -12
- package/dist/cdn/chunks/{if-defined-BINBE69I.js → if-defined-Duzrh8bb.js} +1 -1
- package/dist/cdn/chunks/{image-B4M3h1xJ.js → image-DfpFBPj1.js} +21 -21
- package/dist/cdn/chunks/{inline-dialog-L-NvjANF.js → inline-dialog-D6CMJnYk.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-BY95Duqo.js} +28 -38
- package/dist/cdn/chunks/{just-in-time-education-CWplH4r9.js → just-in-time-education-_1kTZuGb.js} +13 -13
- package/dist/cdn/chunks/{kanban-B6Wa-2aM.js → kanban-DFGaEwfP.js} +25 -29
- package/dist/cdn/chunks/{kanban-column-D2-Xq79_.js → kanban-column-Cs47JSUO.js} +10 -10
- package/dist/cdn/chunks/{keyboard-shortcut-Ci95olxF.js → keyboard-shortcut-4DPqQovv.js} +13 -13
- package/dist/cdn/chunks/{languages-C9AGuuSS.js → languages-D-97TsxL.js} +12 -12
- package/dist/cdn/chunks/{link-BJB2a_fG.js → link-6T0VtDWt.js} +18 -18
- package/dist/cdn/chunks/{link-group-aNoedLZo.js → link-group-ymcl82Ua.js} +7 -7
- package/dist/cdn/chunks/{list-CZWX62tH.js → list-BXpR0UzC.js} +110 -95
- package/dist/cdn/chunks/{list-item-DHzsbK_S.js → list-item-CyZ6uPGG.js} +50 -29
- package/dist/cdn/chunks/{list-item-segment-CHLlU9Gg.js → list-item-segment-BUtAy96X.js} +23 -20
- package/dist/cdn/chunks/{menu-bar-CJazkmY7.js → menu-bar-Cn1Nb2ir.js} +59 -60
- package/dist/cdn/chunks/{menu-bar-item-CSqXWNKE.js → menu-bar-item-CZR2qAzA.js} +35 -35
- package/dist/cdn/chunks/{menu-divider-Cn1hTpcM.js → menu-divider-dF1NvFJO.js} +3 -3
- package/dist/cdn/chunks/{menu-group-C71K1Vmv.js → menu-group-DW3so0Dn.js} +4 -4
- package/dist/cdn/chunks/{menu-item-TqBlQfI2.js → menu-item-7kb18Ypf.js} +4 -4
- package/dist/cdn/chunks/{menu-NGpB1SKq.js → menu-kSZLzjet.js} +101 -93
- package/dist/cdn/chunks/{menu.template-DthELYky.js → menu.template-cgua9dKM.js} +4 -4
- package/dist/cdn/chunks/{modal-dialog-0V2HsrJC.js → modal-dialog-DfKbcw9T.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-AV-vID1z.js} +28 -45
- package/dist/cdn/chunks/{navigation-split-view-tPhkxEVD.js → navigation-split-view-UwlSFPDE.js} +10 -10
- package/dist/cdn/chunks/{notification-CZccv6qx.js → notification-e5uGGh0b.js} +12 -12
- package/dist/cdn/chunks/{number-field-4R2blHda.js → number-field-COUmvl_s.js} +26 -32
- package/dist/cdn/chunks/{one-half-one-half-section-h2fLPQfP.js → one-half-one-half-section-C-AgSdm9.js} +6 -6
- package/dist/cdn/chunks/{one-third-two-thirds-section-mqUAH5lK.js → one-third-two-thirds-section-D1kq4IEc.js} +6 -6
- package/dist/cdn/chunks/{one-time-code-field-Bf_qymKd.js → one-time-code-field-BDQctC8H.js} +25 -38
- package/dist/cdn/chunks/overflow-menu-C67lAkP8.js +83 -0
- package/dist/cdn/chunks/overlay-invoker-CQpe-JGA.js +95 -0
- package/dist/cdn/chunks/{page-Kipfvmi6.js → page-DXEaFsfo.js} +11 -11
- package/dist/cdn/chunks/{page-footer-DxE966Oe.js → page-footer-DFaIlgHs.js} +13 -13
- package/dist/cdn/chunks/{page-section-mixin-DpF9JDpd.js → page-section-mixin-3XhS4f5q.js} +21 -21
- package/dist/cdn/chunks/{pagination-DUFFhaU8.js → pagination-BE3ERBNx.js} +13 -13
- package/dist/cdn/chunks/{password-field-DdYAVmF3.js → password-field-DjRp78HI.js} +28 -45
- package/dist/cdn/chunks/{popover-CRHxyhGx.js → popover-C3j0KtFh.js} +55 -64
- package/dist/cdn/chunks/{progress-bar-BuYsjmSo.js → progress-bar-iWFq6KS1.js} +26 -26
- package/dist/cdn/chunks/{progress-circle-Cvu1bfNG.js → progress-circle-BPFzTlhn.js} +24 -24
- package/dist/cdn/chunks/{radio-button-B_4AxWDx.js → radio-button-BMVBbe3-.js} +17 -26
- package/dist/cdn/chunks/{radio-button-field-D7jIg6Oi.js → radio-button-field-BqSd0JMd.js} +29 -37
- package/dist/cdn/chunks/radio-button-group-DZTPflZ3.js +112 -0
- package/dist/cdn/chunks/{render-marked-CIuiSS_8.js → render-marked-1xftlCd8.js} +1 -1
- package/dist/cdn/chunks/{reorder-handle-cell-DNPaZjSC.js → reorder-handle-cell-loSG6GRY.js} +7 -7
- package/dist/cdn/chunks/{reorder-handle-mixin-CgvWq4fF.js → reorder-handle-mixin-cLWXCdFC.js} +2 -2
- package/dist/cdn/chunks/{repeat-DfVuWl6o.js → repeat-CWsNVfra.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-DSvI9u6v.js} +3 -3
- package/dist/cdn/chunks/{row-header-mixin-B25JK2B3.js → row-header-mixin-vwABKkTO.js} +2 -2
- package/dist/cdn/chunks/{scroll-fade-Dv57rTww.js → scroll-fade-ZNdnDF4p.js} +4 -4
- package/dist/cdn/chunks/{search-field-hmD_DXbG.js → search-field-CBTir8Wu.js} +33 -58
- package/dist/cdn/chunks/{segmented-control-e8e-jYSw.js → segmented-control-hvWn3L0J.js} +92 -103
- package/dist/cdn/chunks/{shadow-resets-CRdvf-Ei.js → shadow-resets-JiVlctXb.js} +2 -2
- package/dist/cdn/chunks/{sheet-D09y3J45.js → sheet-CnbdONF9.js} +39 -90
- package/dist/cdn/chunks/{shell-CV3gooGg.js → shell-BAH9okPd.js} +5 -5
- package/dist/cdn/chunks/{side-by-side-split-view-Ckz1C9zk.js → side-by-side-split-view-D07iBCFK.js} +8 -8
- package/dist/cdn/chunks/{sidebar-section-CdyD-x4t.js → sidebar-section-DAE2lrdn.js} +14 -14
- package/dist/cdn/chunks/{simple-section-CEf38rBZ.js → simple-section-DQZpG3nQ.js} +7 -7
- package/dist/cdn/chunks/{skip-link-DMRhATWw.js → skip-link-D0yYukhb.js} +7 -7
- package/dist/cdn/chunks/{slider-Db3FPiP6.js → slider-C-a97cAu.js} +30 -37
- package/dist/cdn/chunks/{spacer-BPFIYueo.js → spacer-C19W6HrX.js} +8 -8
- package/dist/cdn/chunks/{spacer-cell-kITa3CDV.js → spacer-cell-lRxkFSnp.js} +6 -6
- package/dist/cdn/chunks/{split-button-CJs9-Nha.js → split-button-38xSIAVk.js} +21 -21
- package/dist/cdn/chunks/{split-view-divider-lHlM1Ss8.js → split-view-divider-CViSo7s7.js} +5 -5
- package/dist/cdn/chunks/{split-view-pane-DlsbZtyo.js → split-view-pane-Bb1RFCNJ.js} +7 -7
- package/dist/cdn/chunks/{stacked-split-view-uRSVhrMd.js → stacked-split-view-Bnw5hQ5A.js} +8 -8
- package/dist/cdn/chunks/{static-html-BahSPV_4.js → static-html-7PckS8pf.js} +1 -1
- package/dist/cdn/chunks/{status-bar-DCJLVpsW.js → status-bar-D57SEB_4.js} +8 -8
- package/dist/cdn/chunks/{step-bar-CRR2jiyo.js → step-bar-Q_wc0vqp.js} +18 -18
- package/dist/cdn/chunks/{step-cell-CbtKxJNJ.js → step-cell-DU6sNjnm.js} +15 -15
- package/dist/cdn/chunks/{stepper-Con1_CnB.js → stepper-BM1dp44g.js} +16 -26
- package/dist/cdn/chunks/{style-map-uOwLerwV.js → style-map-BRs_xiW6.js} +1 -1
- package/dist/cdn/chunks/{swatch-picker-Bqn0eaC9.js → swatch-picker-BcRbPWVv.js} +63 -69
- package/dist/cdn/chunks/{switch-CMQcLEBJ.js → switch-7BZAufN0.js} +25 -42
- package/dist/cdn/chunks/{switch-field-D9kWq4Kw.js → switch-field-gjPTIapp.js} +19 -32
- package/dist/cdn/chunks/{tab-bar-DXzyZI3V.js → tab-bar-BKzbb7TE.js} +34 -29
- package/dist/cdn/chunks/{table-CWACLpHx.js → table-CmkkY3M1.js} +15 -15
- package/dist/cdn/chunks/{tag-Bo4yJbtF.js → tag-B4VfItSH.js} +11 -11
- package/dist/cdn/chunks/{term-CQ379ZbN.js → term-C0aNyYXz.js} +42 -39
- package/dist/cdn/chunks/{text-D-dFoj6N.js → text-CLuHOFQt.js} +29 -29
- package/dist/cdn/chunks/{text-cell-Be1hStxp.js → text-cell-Dvujh580.js} +23 -23
- package/dist/cdn/chunks/{text-editor-BjzQEBWm.js → text-editor-0_ZoELkA.js} +12 -12
- package/dist/cdn/chunks/{text-field-DA8nirp6.js → text-field-CrRBrXx0.js} +28 -45
- package/dist/cdn/chunks/{time-field-Dd_TxJuf.js → time-field-DUt1zvLw.js} +66 -148
- package/dist/cdn/chunks/{time-picker-B0-rv1qp.js → time-picker-CDzillxF.js} +119 -40
- package/dist/cdn/chunks/{title-DOoPdG_i.js → title-DQXyEqFW.js} +12 -12
- package/dist/cdn/chunks/{title-cell-BzCNOMGr.js → title-cell-CoUK6h-F.js} +23 -23
- package/dist/cdn/chunks/{toggle-button-9PbDHviQ.js → toggle-button-BhU5vLF8.js} +41 -54
- package/dist/cdn/chunks/{toggle-button-group-C-H-xp0M.js → toggle-button-group-B-0r4xZZ.js} +40 -54
- package/dist/cdn/chunks/{token-CMKFC3gz.js → token-CELUzY2p.js} +31 -34
- package/dist/cdn/chunks/{token-field-D4-XHfnG.js → token-field-C8ynyISX.js} +67 -57
- package/dist/cdn/chunks/{toolbar-z9OhEE5l.js → toolbar--QBCm9qO.js} +34 -78
- package/dist/cdn/chunks/{toolbar-item-ZYoyKOyy.js → toolbar-item-BoRhKFDR.js} +3 -3
- package/dist/cdn/chunks/{toolbar-title-FKtQ8ZC4.js → toolbar-title-CciXdTJR.js} +4 -4
- package/dist/cdn/chunks/{toolbar.styles-DDjpdCHV.js → toolbar.styles-B6kTrAfC.js} +3 -3
- package/dist/cdn/chunks/{tooltip-BvRNYRo3.js → tooltip-CkLC4ooQ.js} +43 -41
- package/dist/cdn/chunks/{top-navigation-bar-BHPQntER.js → top-navigation-bar-CGu2pn4Z.js} +29 -29
- package/dist/cdn/chunks/{top-title-bar-BVjegLlh.js → top-title-bar-2b-XHftB.js} +15 -15
- package/dist/cdn/chunks/{translations-cJjO6nQV.js → translations-D0cgmONm.js} +1 -1
- package/dist/cdn/chunks/{two-thirds-one-third-section-BdBHQuXc.js → two-thirds-one-third-section-CEfd273Z.js} +6 -6
- package/dist/cdn/chunks/{validation-list-5E3-3_95.js → validation-list-DIFEVSIk.js} +12 -12
- package/dist/cdn/chunks/{visibility-mixin-DvRe3O8t.js → visibility-mixin-OjALtpXa.js} +14 -14
- package/dist/cdn/chunks/{visually-hidden-F85D_HcR.js → visually-hidden-DcpY5lun.js} +2 -2
- package/dist/cdn/chunks/{window-CabW35M1.js → window-BGZCu06O.js} +44 -80
- package/dist/cdn/chunks/{with-translations-BHDG37HJ.js → with-translations-DkNkjQym.js} +3 -3
- package/dist/components/actions/button/button.d.ts +4 -4
- package/dist/components/actions/button/button.d.ts.map +1 -1
- package/dist/components/actions/button/button.js +4 -5
- 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/icon-button/icon-button.d.ts +4 -4
- package/dist/components/actions/icon-button/icon-button.d.ts.map +1 -1
- package/dist/components/actions/icon-button/icon-button.js +4 -5
- package/dist/components/actions/icon-button/icon-button.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.d.ts +22 -6
- package/dist/components/actions/menu/menu.d.ts.map +1 -1
- package/dist/components/actions/menu/menu.js +50 -70
- package/dist/components/actions/menu/menu.js.map +1 -1
- package/dist/components/actions/split-button/split-button.js +1 -1
- package/dist/components/actions/split-button/split-button.js.map +1 -1
- package/dist/components/actions/toolbar/toolbar.d.ts +3 -3
- package/dist/components/actions/toolbar/toolbar.d.ts.map +1 -1
- package/dist/components/actions/toolbar/toolbar.js +4 -4
- 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/avatar-group/avatar-group.d.ts +7 -1
- package/dist/components/content/avatar-group/avatar-group.d.ts.map +1 -1
- package/dist/components/content/avatar-group/avatar-group.js +9 -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/term/term.d.ts +5 -5
- package/dist/components/content/term/term.d.ts.map +1 -1
- package/dist/components/content/term/term.js +22 -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/token/token.d.ts +3 -5
- package/dist/components/content/token/token.d.ts.map +1 -1
- package/dist/components/content/token/token.js +23 -33
- package/dist/components/content/token/token.js.map +1 -1
- package/dist/components/content/tooltip/tooltip.d.ts +3 -5
- package/dist/components/content/tooltip/tooltip.d.ts.map +1 -1
- package/dist/components/content/tooltip/tooltip.js +34 -119
- package/dist/components/content/tooltip/tooltip.js.map +1 -1
- package/dist/components/forms/form-field/form-field.d.ts.map +1 -1
- package/dist/components/forms/form-field/form-field.js +4 -1
- package/dist/components/forms/form-field/form-field.js.map +1 -1
- package/dist/components/inputs/checkbox/checkbox.d.ts +1 -4
- package/dist/components/inputs/checkbox/checkbox.d.ts.map +1 -1
- package/dist/components/inputs/checkbox/checkbox.js +3 -23
- package/dist/components/inputs/checkbox/checkbox.js.map +1 -1
- package/dist/components/inputs/checkbox-field/checkbox-field.d.ts +1 -5
- package/dist/components/inputs/checkbox-field/checkbox-field.d.ts.map +1 -1
- package/dist/components/inputs/checkbox-field/checkbox-field.js +8 -17
- package/dist/components/inputs/checkbox-field/checkbox-field.js.map +1 -1
- package/dist/components/inputs/checkbox-group/checkbox-group.d.ts +1 -9
- package/dist/components/inputs/checkbox-group/checkbox-group.d.ts.map +1 -1
- package/dist/components/inputs/checkbox-group/checkbox-group.js +18 -59
- package/dist/components/inputs/checkbox-group/checkbox-group.js.map +1 -1
- package/dist/components/inputs/combo-box/combo-box.d.ts +6 -7
- package/dist/components/inputs/combo-box/combo-box.d.ts.map +1 -1
- package/dist/components/inputs/combo-box/combo-box.js +25 -58
- package/dist/components/inputs/combo-box/combo-box.js.map +1 -1
- package/dist/components/inputs/date-field/date-field.d.ts +1 -2
- package/dist/components/inputs/date-field/date-field.d.ts.map +1 -1
- package/dist/components/inputs/date-field/date-field.js +4 -14
- package/dist/components/inputs/date-field/date-field.js.map +1 -1
- package/dist/components/inputs/file-field/file-field.d.ts +6 -3
- package/dist/components/inputs/file-field/file-field.d.ts.map +1 -1
- package/dist/components/inputs/file-field/file-field.js +15 -18
- 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 +1 -4
- 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 +3 -23
- 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 +4 -3
- package/dist/components/inputs/number-field/number-field.d.ts.map +1 -1
- package/dist/components/inputs/number-field/number-field.js +12 -16
- 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 +1 -4
- 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 +2 -17
- 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 +1 -4
- package/dist/components/inputs/password-field/password-field.d.ts.map +1 -1
- package/dist/components/inputs/password-field/password-field.js +3 -23
- package/dist/components/inputs/password-field/password-field.js.map +1 -1
- package/dist/components/inputs/radio-button/radio-button.d.ts +1 -4
- package/dist/components/inputs/radio-button/radio-button.d.ts.map +1 -1
- package/dist/components/inputs/radio-button/radio-button.js +1 -10
- package/dist/components/inputs/radio-button/radio-button.js.map +1 -1
- package/dist/components/inputs/radio-button-field/radio-button-field.d.ts +3 -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 +6 -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 +1 -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 +17 -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 +1 -4
- package/dist/components/inputs/search-field/search-field.d.ts.map +1 -1
- package/dist/components/inputs/search-field/search-field.js +5 -35
- package/dist/components/inputs/search-field/search-field.js.map +1 -1
- package/dist/components/inputs/segmented-control/segmented-control.d.ts +1 -3
- package/dist/components/inputs/segmented-control/segmented-control.d.ts.map +1 -1
- package/dist/components/inputs/segmented-control/segmented-control.js +6 -41
- package/dist/components/inputs/segmented-control/segmented-control.js.map +1 -1
- package/dist/components/inputs/slider/slider.d.ts +1 -4
- package/dist/components/inputs/slider/slider.d.ts.map +1 -1
- package/dist/components/inputs/slider/slider.js +1 -14
- package/dist/components/inputs/slider/slider.js.map +1 -1
- package/dist/components/inputs/stepper/stepper.d.ts +1 -3
- package/dist/components/inputs/stepper/stepper.d.ts.map +1 -1
- package/dist/components/inputs/stepper/stepper.js +2 -13
- package/dist/components/inputs/stepper/stepper.js.map +1 -1
- package/dist/components/inputs/swatch-picker/swatch-picker.d.ts +1 -3
- package/dist/components/inputs/swatch-picker/swatch-picker.d.ts.map +1 -1
- package/dist/components/inputs/swatch-picker/swatch-picker.js +5 -28
- package/dist/components/inputs/swatch-picker/swatch-picker.js.map +1 -1
- package/dist/components/inputs/switch/switch.d.ts +1 -4
- package/dist/components/inputs/switch/switch.d.ts.map +1 -1
- package/dist/components/inputs/switch/switch.js +3 -22
- package/dist/components/inputs/switch/switch.js.map +1 -1
- package/dist/components/inputs/switch-field/switch-field.d.ts +1 -4
- package/dist/components/inputs/switch-field/switch-field.d.ts.map +1 -1
- package/dist/components/inputs/switch-field/switch-field.js +2 -16
- package/dist/components/inputs/switch-field/switch-field.js.map +1 -1
- package/dist/components/inputs/text-field/text-field.d.ts +1 -4
- package/dist/components/inputs/text-field/text-field.d.ts.map +1 -1
- package/dist/components/inputs/text-field/text-field.js +3 -23
- package/dist/components/inputs/text-field/text-field.js.map +1 -1
- package/dist/components/inputs/time-field/time-field.d.ts +8 -2
- package/dist/components/inputs/time-field/time-field.d.ts.map +1 -1
- package/dist/components/inputs/time-field/time-field.js +23 -14
- package/dist/components/inputs/time-field/time-field.js.map +1 -1
- package/dist/components/inputs/time-picker/time-picker.d.ts +11 -7
- package/dist/components/inputs/time-picker/time-picker.d.ts.map +1 -1
- package/dist/components/inputs/time-picker/time-picker.js +19 -14
- package/dist/components/inputs/time-picker/time-picker.js.map +1 -1
- package/dist/components/inputs/toggle-button/toggle-button.d.ts +3 -6
- package/dist/components/inputs/toggle-button/toggle-button.d.ts.map +1 -1
- package/dist/components/inputs/toggle-button/toggle-button.js +6 -20
- package/dist/components/inputs/toggle-button/toggle-button.js.map +1 -1
- package/dist/components/inputs/toggle-button-group/toggle-button-group.d.ts +2 -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 +23 -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 +12 -10
- package/dist/components/inputs/token-field/token-field.d.ts.map +1 -1
- package/dist/components/inputs/token-field/token-field.js +33 -35
- package/dist/components/inputs/token-field/token-field.js.map +1 -1
- package/dist/components/layout/kanban/kanban.d.ts +0 -1
- package/dist/components/layout/kanban/kanban.d.ts.map +1 -1
- package/dist/components/layout/kanban/kanban.js +2 -7
- package/dist/components/layout/kanban/kanban.js.map +1 -1
- package/dist/components/layout/popover/popover.d.ts +17 -3
- package/dist/components/layout/popover/popover.d.ts.map +1 -1
- package/dist/components/layout/popover/popover.js +34 -126
- package/dist/components/layout/popover/popover.js.map +1 -1
- package/dist/components/layout/sheet/sheet.d.ts +2 -33
- package/dist/components/layout/sheet/sheet.d.ts.map +1 -1
- package/dist/components/layout/sheet/sheet.js +8 -169
- package/dist/components/layout/sheet/sheet.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/window/window.d.ts +2 -30
- package/dist/components/layout/window/window.d.ts.map +1 -1
- package/dist/components/layout/window/window.js +12 -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/list/list.d.ts +8 -32
- package/dist/components/lists-and-tables/list/list.d.ts.map +1 -1
- package/dist/components/lists-and-tables/list/list.js +37 -136
- 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 +32 -17
- 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 +49 -36
- 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 +3 -2
- 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 +5 -5
- package/dist/components/lists-and-tables/list-item-segment/list-item-segment.js.map +1 -1
- package/dist/components/navigation/document-tab-bar/document-tab-bar.d.ts +4 -5
- 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 +12 -63
- 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 +5 -7
- package/dist/components/navigation/document-tab-bar/document-tab-bar.template.js.map +1 -1
- package/dist/components/navigation/link/link.d.ts +2 -2
- package/dist/components/navigation/link/link.d.ts.map +1 -1
- package/dist/components/navigation/link/link.js +2 -2
- package/dist/components/navigation/link/link.js.map +1 -1
- package/dist/components/navigation/menu-bar/menu-bar.d.ts +11 -17
- package/dist/components/navigation/menu-bar/menu-bar.d.ts.map +1 -1
- package/dist/components/navigation/menu-bar/menu-bar.js +44 -71
- 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 +2 -3
- 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 +14 -30
- package/dist/components/navigation/menu-bar-item/menu-bar-item.js.map +1 -1
- package/dist/components/navigation/tab-bar/tab-bar.d.ts +8 -2
- package/dist/components/navigation/tab-bar/tab-bar.d.ts.map +1 -1
- package/dist/components/navigation/tab-bar/tab-bar.js +18 -4
- 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/status-and-feedback/modal-dialog/modal-dialog.d.ts +2 -22
- 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 +4 -124
- 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/nldd.min.js +855 -851
- package/dist/types/react.d.ts +96 -6
- package/dist/types/vue.d.ts +182 -9
- 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.js +931 -931
- 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 +326 -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 +289 -0
- package/lint/session.js +127 -0
- package/lint/tree.js +46 -0
- package/package.json +5 -3
- 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,20 +1,20 @@
|
|
|
1
1
|
import { t as e } from "./rolldown-runtime-CGnMp29N.js";
|
|
2
|
-
import { n as t, o as n, r, t as i } from "./decorate-
|
|
3
|
-
import {
|
|
2
|
+
import { n as t, o as n, r, t as i } from "./decorate-Cjb3GqlZ.js";
|
|
3
|
+
import { n as a, r as o, s } from "./custom-element-D5bstafw.js";
|
|
4
4
|
import { t as c } from "./custom-element-BW8Ua4c7.js";
|
|
5
5
|
import { t as l } from "./query-ChDzi9FQ.js";
|
|
6
6
|
import { t as u } from "./reflect-non-default-Bu3rpCvg.js";
|
|
7
|
-
import { n as d } from "./shadow-resets-
|
|
8
|
-
import { t as f } from "./class-map-
|
|
7
|
+
import { n as d } from "./shadow-resets-JiVlctXb.js";
|
|
8
|
+
import { t as f } from "./class-map-CAVKoa31.js";
|
|
9
9
|
import { t as p } from "./link-rel-DvrTEfVT.js";
|
|
10
10
|
import { n as m } from "./input-modality-XE0B7yCn.js";
|
|
11
|
-
import { t as h } from "./with-translations-
|
|
11
|
+
import { t as h } from "./with-translations-DkNkjQym.js";
|
|
12
12
|
import { t as g } from "./list-item.i18n-Br6J5Ev9.js";
|
|
13
13
|
import { r as _, t as v } from "./link-hint-KFhgr5Ng.js";
|
|
14
14
|
import { r as y } from "./element-state-B-44fVqq.js";
|
|
15
15
|
import { t as b } from "./defer-focus-F73ud2D9.js";
|
|
16
16
|
// src/components/lists-and-tables/list-item/list-item.styles.ts
|
|
17
|
-
var x =
|
|
17
|
+
var x = s`
|
|
18
18
|
:host {
|
|
19
19
|
box-sizing: border-box;
|
|
20
20
|
}
|
|
@@ -545,10 +545,13 @@ function V() {
|
|
|
545
545
|
}
|
|
546
546
|
var H = (E = class extends h(t, g) {
|
|
547
547
|
constructor(...e) {
|
|
548
|
-
super(...e), this.size = "md", this.download = void 0, this.button = !1, this.checkbox = !1, this.radio = !1, this.expandable = !1, this.accessibleLabel = "", this.reorderable = !1, this.selected = !1, this.checked = !1, this.current = !1, this.currentType = "page", this.disabled = !1, this._showChildren = !1, this._parentType = "list", this.
|
|
548
|
+
super(...e), this.size = "md", this.download = void 0, this.button = !1, this.checkbox = !1, this.radio = !1, this.expandable = !1, this.accessibleLabel = "", this.reorderable = !1, this.selected = !1, this.checked = !1, this.current = !1, this.currentType = "page", this.disabled = !1, this._showChildren = !1, this._parentType = "list", this._rovingState = "off", this._highlighted = !1, this._isBoxed = !1, this._hasCheckedSegment = !1, this._lightDomObserver = null, this._rovingControlsCache = null, this._observedMarkerTargets = [], this._dividerStarts = [], this._dividerEnds = [], this._ownCellSize = /* @__PURE__ */ new WeakMap(), this._onSlotChange = (e) => {
|
|
549
549
|
if (!import.meta.env?.DEV) return;
|
|
550
550
|
let t = e.target;
|
|
551
551
|
t.name || (y(this, "bare-text", t.assignedNodes({ flatten: !0 }).some((e) => e.nodeType === Node.TEXT_NODE && (e.textContent ?? "").trim() !== "")), this._syncNestedControl());
|
|
552
|
+
}, this._context = {
|
|
553
|
+
appearance: "simple",
|
|
554
|
+
type: "list"
|
|
552
555
|
}, this._handleClick = (e) => {
|
|
553
556
|
this.disabled ? (e.preventDefault(), e.stopPropagation()) : (this._action?.focus(), this.checkbox && !this.href && e.composedPath().includes(this._action) && (this.checked = !this.checked, this.dispatchEvent(new CustomEvent("change", {
|
|
554
557
|
detail: { checked: this.checked },
|
|
@@ -571,6 +574,18 @@ var H = (E = class extends h(t, g) {
|
|
|
571
574
|
window.removeEventListener("pointerup", this._clearPressed), window.removeEventListener("pointercancel", this._clearPressed), this._action?.classList.remove("is-pressed");
|
|
572
575
|
};
|
|
573
576
|
}
|
|
577
|
+
get _roving() {
|
|
578
|
+
return this._rovingState;
|
|
579
|
+
}
|
|
580
|
+
set _roving(e) {
|
|
581
|
+
this._rovingState = e, this._syncRovingTabStops();
|
|
582
|
+
}
|
|
583
|
+
get _arrowNavigation() {
|
|
584
|
+
return this._rovingState !== "off";
|
|
585
|
+
}
|
|
586
|
+
get _rovingActive() {
|
|
587
|
+
return this._rovingState === "stop";
|
|
588
|
+
}
|
|
574
589
|
connectedCallback() {
|
|
575
590
|
super.connectedCallback(), this._captureAuthoredCellSizes(), this.hasAttribute("data-nldd-clone") || (this.setAttribute("role", "listitem"), this.addEventListener("focusin", this._handleFocusIn), this.addEventListener("focusout", this._handleFocusOut), this.addEventListener("click", this._handleClick), this.addEventListener("pointerdown", this._onPointerDown), this.addEventListener("mousedown", this._onMouseDown), this._lightDomObserver = new MutationObserver(() => this._onLightDomChange()), this._lightDomObserver.observe(this, {
|
|
576
591
|
subtree: !0,
|
|
@@ -641,7 +656,7 @@ var H = (E = class extends h(t, g) {
|
|
|
641
656
|
});
|
|
642
657
|
}
|
|
643
658
|
updated(e) {
|
|
644
|
-
(e.has("selected") || e.has("current") || e.has("currentType") || e.has("button") || e.has("checkbox") || e.has("radio") || e.has("href") || e.has("_parentType")) && this._updateAriaState(), (e.has("button") || e.has("checkbox") || e.has("radio") || e.has("href")) && (this._updateInteractive(), this._syncNestedControl()), (e.has("expanded") || e.has("expandable")) && (this._relayExpanded(), this._syncExpandedFacts()), (e.has("accessibleLabel") || e.has("href") || e.has("button")) && this._syncLabelFacts(),
|
|
659
|
+
(e.has("selected") || e.has("current") || e.has("currentType") || e.has("button") || e.has("checkbox") || e.has("radio") || e.has("href") || e.has("_parentType")) && this._updateAriaState(), (e.has("button") || e.has("checkbox") || e.has("radio") || e.has("href")) && (this._updateInteractive(), this._syncNestedControl()), (e.has("expanded") || e.has("expandable")) && (this._relayExpanded(), this._syncExpandedFacts()), (e.has("accessibleLabel") || e.has("href") || e.has("button")) && this._syncLabelFacts(), e.has("_rovingState") && this._syncRovingTabStops(), e.has("disabled") && (this._syncRovingTabStops(), this._parentList?._updateRoving()), this._propagateSize();
|
|
645
660
|
}
|
|
646
661
|
get _resolvedExpanded() {
|
|
647
662
|
if (!(this._showChildren && this._parentType === "navigation")) return this._showChildren || this.expandable ? this.expanded === !0 : this.expanded;
|
|
@@ -673,13 +688,20 @@ var H = (E = class extends h(t, g) {
|
|
|
673
688
|
}
|
|
674
689
|
_syncWithList() {
|
|
675
690
|
let e = this._parentList;
|
|
676
|
-
e && (this.
|
|
691
|
+
e && (this._listContext = {
|
|
692
|
+
appearance: e.appearance,
|
|
693
|
+
type: e.type
|
|
694
|
+
});
|
|
677
695
|
}
|
|
678
|
-
|
|
679
|
-
this.
|
|
696
|
+
set _listContext(e) {
|
|
697
|
+
this._context = e, this._isBoxed = e.appearance.startsWith("box"), this.classList.toggle("is-boxed", this._isBoxed), this._parentType = e.type, this._relayToChildren((t) => {
|
|
698
|
+
t._listContext = e;
|
|
699
|
+
}), this._ownDescendants("nldd-list-item-segment").forEach((t) => {
|
|
700
|
+
t._listContext = e;
|
|
701
|
+
});
|
|
680
702
|
}
|
|
681
|
-
|
|
682
|
-
|
|
703
|
+
get _listContext() {
|
|
704
|
+
return this._context;
|
|
683
705
|
}
|
|
684
706
|
get childRows() {
|
|
685
707
|
return Array.from(this.children).filter((e) => e.getAttribute("slot") === "children" && e.tagName.toLowerCase() === "nldd-list-item");
|
|
@@ -750,8 +772,7 @@ var H = (E = class extends h(t, g) {
|
|
|
750
772
|
_updateChildren() {
|
|
751
773
|
let e = ((this.shadowRoot?.querySelector("slot[name=\"children\"]"))?.assignedElements() ?? []).filter((e) => e.tagName.toLowerCase() === "nldd-list-item"), t = this._showChildren;
|
|
752
774
|
this._showChildren = e.length > 0, this._showChildren !== t && this._relayExpanded(), this._showChildren && e.forEach((e) => {
|
|
753
|
-
|
|
754
|
-
t._applyAppearance?.(this._isBoxed ? "box-tinted" : "simple"), t._applyParentType?.(this._parentType);
|
|
775
|
+
e._listContext = this._context;
|
|
755
776
|
}), this._syncExpandedFacts();
|
|
756
777
|
}
|
|
757
778
|
_isFromNestedRow(e) {
|
|
@@ -819,45 +840,45 @@ var H = (E = class extends h(t, g) {
|
|
|
819
840
|
return w(this.button, this.href, this.target, this.rel, this.download, t, n, this._highlighted, this.checkbox, this.radio, this.checked, this._resolvedExpanded, this._showChildren, this._hasCheckedSegment, this.disabled, this._parentType === "navigation" ? "list" : "group", this._childrenOpen, this.accessibleLabel);
|
|
820
841
|
}
|
|
821
842
|
}, D = E, E.styles = [x], E.SIZED_CELLS = "nldd-text-cell, nldd-reorder-handle-cell", E);
|
|
822
|
-
i([
|
|
843
|
+
i([o({
|
|
823
844
|
reflect: !0,
|
|
824
845
|
converter: u("md")
|
|
825
|
-
})], H.prototype, "size", void 0), i([
|
|
846
|
+
})], H.prototype, "size", void 0), i([o({ reflect: !0 })], H.prototype, "href", void 0), i([o({ reflect: !0 })], H.prototype, "target", void 0), i([o({ type: String })], H.prototype, "download", void 0), i([o({ reflect: !0 })], H.prototype, "rel", void 0), i([o({
|
|
826
847
|
type: Boolean,
|
|
827
848
|
reflect: !0
|
|
828
|
-
})], H.prototype, "button", void 0), i([
|
|
849
|
+
})], H.prototype, "button", void 0), i([o({
|
|
829
850
|
type: Boolean,
|
|
830
851
|
reflect: !0
|
|
831
|
-
})], H.prototype, "checkbox", void 0), i([
|
|
852
|
+
})], H.prototype, "checkbox", void 0), i([o({
|
|
832
853
|
type: Boolean,
|
|
833
854
|
reflect: !0
|
|
834
|
-
})], H.prototype, "radio", void 0), i([
|
|
855
|
+
})], H.prototype, "radio", void 0), i([o({
|
|
835
856
|
type: Boolean,
|
|
836
857
|
reflect: !0
|
|
837
|
-
})], H.prototype, "expandable", void 0), i([
|
|
858
|
+
})], H.prototype, "expandable", void 0), i([o({
|
|
838
859
|
type: String,
|
|
839
860
|
attribute: "accessible-label"
|
|
840
|
-
})], H.prototype, "accessibleLabel", void 0), i([
|
|
861
|
+
})], H.prototype, "accessibleLabel", void 0), i([o({
|
|
841
862
|
type: Boolean,
|
|
842
863
|
reflect: !0
|
|
843
|
-
})], H.prototype, "reorderable", void 0), i([
|
|
864
|
+
})], H.prototype, "reorderable", void 0), i([o({
|
|
844
865
|
type: Boolean,
|
|
845
866
|
reflect: !0
|
|
846
|
-
})], H.prototype, "selected", void 0), i([
|
|
867
|
+
})], H.prototype, "selected", void 0), i([o({
|
|
847
868
|
type: Boolean,
|
|
848
869
|
reflect: !0
|
|
849
|
-
})], H.prototype, "checked", void 0), i([
|
|
870
|
+
})], H.prototype, "checked", void 0), i([o({
|
|
850
871
|
type: Boolean,
|
|
851
872
|
reflect: !0
|
|
852
|
-
})], H.prototype, "expanded", void 0), i([
|
|
873
|
+
})], H.prototype, "expanded", void 0), i([o({
|
|
853
874
|
type: Boolean,
|
|
854
875
|
reflect: !0
|
|
855
|
-
})], H.prototype, "current", void 0), i([
|
|
876
|
+
})], H.prototype, "current", void 0), i([o({
|
|
856
877
|
reflect: !0,
|
|
857
878
|
attribute: "current-type",
|
|
858
879
|
converter: u("page")
|
|
859
|
-
})], H.prototype, "currentType", void 0), i([
|
|
880
|
+
})], H.prototype, "currentType", void 0), i([o({
|
|
860
881
|
type: Boolean,
|
|
861
882
|
reflect: !0
|
|
862
|
-
})], H.prototype, "disabled", void 0), i([
|
|
883
|
+
})], H.prototype, "disabled", void 0), i([a()], H.prototype, "_showChildren", void 0), i([a()], H.prototype, "_parentType", void 0), i([a()], H.prototype, "_rovingState", void 0), i([a()], H.prototype, "_highlighted", void 0), i([l(".list-item__action")], H.prototype, "_action", void 0), i([a()], H.prototype, "_hasCheckedSegment", void 0), H = D = i([c("nldd-list-item")], H);
|
|
863
884
|
export { T as t };
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { n as e, o as t, r as n, t as r } from "./decorate-
|
|
2
|
-
import {
|
|
1
|
+
import { n as e, o as t, r as n, t as r } from "./decorate-Cjb3GqlZ.js";
|
|
2
|
+
import { n as i, r as a, s as o } from "./custom-element-D5bstafw.js";
|
|
3
3
|
import { t as s } from "./custom-element-BW8Ua4c7.js";
|
|
4
4
|
import { t as c } from "./query-ChDzi9FQ.js";
|
|
5
5
|
import { t as l } from "./reflect-non-default-Bu3rpCvg.js";
|
|
6
6
|
import { n as u } from "./input-modality-XE0B7yCn.js";
|
|
7
7
|
import { t as d } from "./link-rel-DvrTEfVT.js";
|
|
8
|
-
import { t as f } from "./with-translations-
|
|
8
|
+
import { t as f } from "./with-translations-DkNkjQym.js";
|
|
9
9
|
import { r as p, t as m } from "./link-hint-KFhgr5Ng.js";
|
|
10
10
|
import { t as h } from "./list-item-segment.i18n-DHnrQL4V.js";
|
|
11
11
|
import { t as g } from "./defer-focus-F73ud2D9.js";
|
|
12
|
-
import {
|
|
12
|
+
import { a as _, r as v } from "./overlay-invoker-CQpe-JGA.js";
|
|
13
13
|
// src/components/lists-and-tables/list-item-segment/list-item-segment.styles.ts
|
|
14
|
-
var y =
|
|
14
|
+
var y = o`
|
|
15
15
|
:host {
|
|
16
16
|
box-sizing: border-box;
|
|
17
17
|
}
|
|
@@ -254,10 +254,13 @@ var x = class extends f(e, h) {
|
|
|
254
254
|
}
|
|
255
255
|
firstUpdated() {
|
|
256
256
|
let e = this.closest("nldd-list");
|
|
257
|
-
e && this.
|
|
257
|
+
e && (this._listContext = {
|
|
258
|
+
appearance: e.appearance,
|
|
259
|
+
type: e.type
|
|
260
|
+
});
|
|
258
261
|
}
|
|
259
|
-
|
|
260
|
-
this._parentType = e;
|
|
262
|
+
set _listContext(e) {
|
|
263
|
+
this._parentType = e.type;
|
|
261
264
|
}
|
|
262
265
|
get _wantsControl() {
|
|
263
266
|
return !!this.href || this.button || this.checkbox;
|
|
@@ -279,39 +282,39 @@ var x = class extends f(e, h) {
|
|
|
279
282
|
return this._controlType === "link" && p(this, this.download, this.target), b(this._controlType, this.href, this.target, this.rel, this.download, this.checked, this._resolvedExpanded, this.current ? this.currentType : void 0, this.disabled, this.accessibleLabel, this._tabbable === void 0 ? void 0 : this._tabbable ? "0" : "-1", this.popupType, _(this, this.popovertarget, this.popoverTargetElement), this.popoverTargetAction, e ? this._t(`components.list-item-segment.${e}`) : "");
|
|
280
283
|
}
|
|
281
284
|
}, S = (x.styles = [y], x);
|
|
282
|
-
r([
|
|
285
|
+
r([a({
|
|
283
286
|
reflect: !0,
|
|
284
287
|
converter: l("fit-content")
|
|
285
|
-
})], S.prototype, "width", void 0), r([
|
|
288
|
+
})], S.prototype, "width", void 0), r([a({ reflect: !0 })], S.prototype, "href", void 0), r([a({ reflect: !0 })], S.prototype, "target", void 0), r([a({ type: String })], S.prototype, "download", void 0), r([a({ reflect: !0 })], S.prototype, "rel", void 0), r([a({
|
|
286
289
|
type: Boolean,
|
|
287
290
|
reflect: !0
|
|
288
|
-
})], S.prototype, "button", void 0), r([
|
|
291
|
+
})], S.prototype, "button", void 0), r([a({
|
|
289
292
|
type: Boolean,
|
|
290
293
|
reflect: !0
|
|
291
|
-
})], S.prototype, "checkbox", void 0), r([
|
|
294
|
+
})], S.prototype, "checkbox", void 0), r([a({
|
|
292
295
|
type: Boolean,
|
|
293
296
|
reflect: !0
|
|
294
|
-
})], S.prototype, "disclosure", void 0), r([
|
|
297
|
+
})], S.prototype, "disclosure", void 0), r([a({
|
|
295
298
|
type: Boolean,
|
|
296
299
|
reflect: !0
|
|
297
|
-
})], S.prototype, "expandable", void 0), r([
|
|
300
|
+
})], S.prototype, "expandable", void 0), r([a({ attribute: "accessible-label" })], S.prototype, "accessibleLabel", void 0), r([a({
|
|
298
301
|
type: Boolean,
|
|
299
302
|
reflect: !0
|
|
300
|
-
})], S.prototype, "checked", void 0), r([
|
|
303
|
+
})], S.prototype, "checked", void 0), r([a({
|
|
301
304
|
type: Boolean,
|
|
302
305
|
reflect: !0
|
|
303
|
-
})], S.prototype, "expanded", void 0), r([
|
|
306
|
+
})], S.prototype, "expanded", void 0), r([a({
|
|
304
307
|
attribute: "popup-type",
|
|
305
308
|
reflect: !0
|
|
306
|
-
})], S.prototype, "popupType", void 0), r([
|
|
309
|
+
})], S.prototype, "popupType", void 0), r([a({ reflect: !0 })], S.prototype, "popovertarget", void 0), r([a({ attribute: !1 })], S.prototype, "popoverTargetElement", void 0), r([a({ attribute: !1 })], S.prototype, "popoverTargetAction", void 0), r([a({
|
|
307
310
|
type: Boolean,
|
|
308
311
|
reflect: !0
|
|
309
|
-
})], S.prototype, "current", void 0), r([
|
|
312
|
+
})], S.prototype, "current", void 0), r([a({
|
|
310
313
|
reflect: !0,
|
|
311
314
|
attribute: "current-type",
|
|
312
315
|
converter: l("page")
|
|
313
|
-
})], S.prototype, "currentType", void 0), r([
|
|
316
|
+
})], S.prototype, "currentType", void 0), r([a({
|
|
314
317
|
type: Boolean,
|
|
315
318
|
reflect: !0
|
|
316
|
-
})], S.prototype, "disabled", void 0), r([
|
|
319
|
+
})], S.prototype, "disabled", void 0), r([i()], S.prototype, "_parentType", void 0), r([i()], S.prototype, "_tabbable", void 0), r([i()], S.prototype, "_rowExpanded", void 0), r([c(".list-item-segment")], S.prototype, "_control", void 0), S = r([s("nldd-list-item-segment")], S);
|
|
317
320
|
export { S as NLDDListItemSegment };
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { n as e, o as t, r as n, t as r } from "./decorate-
|
|
2
|
-
import {
|
|
3
|
-
import { t as
|
|
4
|
-
import { t as
|
|
5
|
-
import { t as
|
|
6
|
-
import { t as
|
|
7
|
-
import { t as
|
|
8
|
-
import { t as
|
|
9
|
-
import "./menu-bar-item-
|
|
10
|
-
import "./menu-
|
|
11
|
-
import { t as p } from "./
|
|
1
|
+
import { n as e, o as t, r as n, t as r } from "./decorate-Cjb3GqlZ.js";
|
|
2
|
+
import { r as i, s as a } from "./custom-element-D5bstafw.js";
|
|
3
|
+
import { t as o } from "./custom-element-BW8Ua4c7.js";
|
|
4
|
+
import { t as s } from "./query-ChDzi9FQ.js";
|
|
5
|
+
import { t as c } from "./reflect-non-default-Bu3rpCvg.js";
|
|
6
|
+
import { t as l } from "./shadow-resets-JiVlctXb.js";
|
|
7
|
+
import { t as u } from "./with-translations-DkNkjQym.js";
|
|
8
|
+
import { t as d } from "./menu-bar.i18n-BoMu4Eoz.js";
|
|
9
|
+
import "./menu-bar-item-CZR2qAzA.js";
|
|
10
|
+
import { t as f } from "./overflow-menu-C67lAkP8.js";
|
|
11
|
+
import { t as p } from "./overlay-invoker-CQpe-JGA.js";
|
|
12
12
|
import { r as m } from "./element-state-B-44fVqq.js";
|
|
13
13
|
import { t as h } from "./list-items-Du0RCWsY.js";
|
|
14
14
|
// src/components/navigation/menu-bar/menu-bar.styles.ts
|
|
15
|
-
var g =
|
|
15
|
+
var g = a`
|
|
16
16
|
:host {
|
|
17
17
|
box-sizing: border-box;
|
|
18
18
|
}
|
|
@@ -21,7 +21,7 @@ var g = i`
|
|
|
21
21
|
/* # Host */
|
|
22
22
|
|
|
23
23
|
:host {
|
|
24
|
-
${
|
|
24
|
+
${l}
|
|
25
25
|
display: flex;
|
|
26
26
|
min-width: 0;
|
|
27
27
|
flex-grow: 1;
|
|
@@ -89,8 +89,8 @@ function _(e) {
|
|
|
89
89
|
_toggleOverflowMenu (same mechanism as an expandable
|
|
90
90
|
nldd-menu-bar-item's own submenu): anchored to this
|
|
91
91
|
always-visible trigger + a reopen guard. aria-controls
|
|
92
|
-
omitted:
|
|
93
|
-
|
|
92
|
+
omitted: the menu sits in this shadow root and the
|
|
93
|
+
button in the item's own, and an IDREF cannot cross that;
|
|
94
94
|
haspopup + expanded forward to the inner button and give
|
|
95
95
|
sufficient AT context for WCAG 2.1 AA. -->
|
|
96
96
|
</nldd-menu-bar-item>
|
|
@@ -100,26 +100,34 @@ function _(e) {
|
|
|
100
100
|
`;
|
|
101
101
|
}
|
|
102
102
|
// src/components/navigation/menu-bar/menu-bar.ts
|
|
103
|
-
var v = class extends
|
|
103
|
+
var v = class extends u(e, d) {
|
|
104
104
|
constructor(...e) {
|
|
105
|
-
super(...e), this.overflowText = "", this.accessibleLabel = "", this.compact = !1, this.
|
|
105
|
+
super(...e), this.overflowText = "", this.accessibleLabel = "", this.compact = !1, this._overflowMenu = new f(this, {
|
|
106
|
+
id: "nldd-menu-bar-overflow-menu",
|
|
107
|
+
onToggle: (e) => {
|
|
108
|
+
!e && this._overflowUpdatePending && (this._overflowUpdatePending = !1, this._scheduleOverflowUpdate());
|
|
109
|
+
}
|
|
110
|
+
}), this._overflowUpdatePending = !1, this._resizeObserver = null, this._overflowRAF = null, this._setupRAF = null, this._onSlotChange = () => {
|
|
106
111
|
h(this._defaultSlot?.assignedElements({ flatten: !0 }) ?? []), this._syncCompactAttribute(), this._scheduleOverflowUpdate(), this._syncEmpty();
|
|
107
112
|
}, this._scheduleOverflowUpdate = () => {
|
|
108
113
|
this._overflowRAF && cancelAnimationFrame(this._overflowRAF), this._overflowRAF = requestAnimationFrame(() => {
|
|
109
114
|
this._overflowRAF = null, this._updateOverflow();
|
|
110
115
|
});
|
|
111
|
-
}, this.
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
116
|
+
}, this._overflowInvoker = new p(this, {
|
|
117
|
+
anchorFor: () => this._overflowButton?.querySelector("nldd-menu-bar-item") ?? this._overflowButton ?? null,
|
|
118
|
+
open: (e) => {
|
|
119
|
+
this._populateOverflowMenu(), e.showPopover();
|
|
115
120
|
}
|
|
116
|
-
|
|
117
|
-
let
|
|
118
|
-
|
|
119
|
-
}, this._handleOverflowButtonPointerdown = () => {
|
|
120
|
-
this.
|
|
121
|
+
}), this._toggleOverflowMenu = (e) => {
|
|
122
|
+
let t = this._overflowMenu.menu;
|
|
123
|
+
t && (this._overflowInvoker.setOverlay(t), this._overflowInvoker.handleClick(e ?? new MouseEvent("click")));
|
|
124
|
+
}, this._handleOverflowButtonPointerdown = (e) => {
|
|
125
|
+
this._overflowInvoker.handlePointerdown(e);
|
|
121
126
|
};
|
|
122
127
|
}
|
|
128
|
+
get _menuOpen() {
|
|
129
|
+
return this._overflowMenu.open;
|
|
130
|
+
}
|
|
123
131
|
willUpdate(e) {
|
|
124
132
|
super.willUpdate(e), e.has("compact") && this._syncCompactAttribute();
|
|
125
133
|
}
|
|
@@ -127,7 +135,7 @@ var v = class extends d(e, f) {
|
|
|
127
135
|
return this.overflowText || this._t("components.menu-bar.overflow-action");
|
|
128
136
|
}
|
|
129
137
|
disconnectedCallback() {
|
|
130
|
-
super.disconnectedCallback(), this._cleanupOverflowDetection(), this.
|
|
138
|
+
super.disconnectedCallback(), this._cleanupOverflowDetection(), this._overflowInvoker.setOverlay(null);
|
|
131
139
|
}
|
|
132
140
|
firstUpdated() {
|
|
133
141
|
this._setupOverflowDetection(), this._syncCompactAttribute(), this._syncEmpty();
|
|
@@ -191,63 +199,54 @@ var v = class extends d(e, f) {
|
|
|
191
199
|
if (a >= 0) for (let e = a; e < t.length; e++) t[e].style.display = "none", t[e].setAttribute("data-overflow", "true");
|
|
192
200
|
else e.style.display = "none";
|
|
193
201
|
}
|
|
194
|
-
_createOverflowMenu() {
|
|
195
|
-
if (this._overflowMenu || typeof document > "u") return;
|
|
196
|
-
let e = document.createElement("nldd-menu");
|
|
197
|
-
e.setAttribute("placement", "bottom-end"), e.addEventListener("toggle", (e) => {
|
|
198
|
-
let t = e.newState === "open";
|
|
199
|
-
this._menuOpen = t, t || this._overflowUpdatePending && (this._overflowUpdatePending = !1, this._scheduleOverflowUpdate());
|
|
200
|
-
}), document.body.appendChild(e), this._overflowMenu = e;
|
|
201
|
-
}
|
|
202
202
|
_populateOverflowMenu() {
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
typeof r.select == "function" && n.addEventListener("click", () => r.select()), t.appendChild(n);
|
|
215
|
-
}), e.appendChild(t), this._overflowMenu.appendChild(e);
|
|
203
|
+
let e = [], t = (this._defaultSlot?.assignedElements({ flatten: !0 }) ?? []).filter((e) => e.tagName === "NLDD-MENU-BAR-ITEM" && e.hasAttribute("data-overflow"));
|
|
204
|
+
for (let n of t) {
|
|
205
|
+
let t = document.createElement("nldd-menu-item");
|
|
206
|
+
if (t.setAttribute("text", n.text), n.icon && t.setAttribute("icon", n.icon), n.href && t.setAttribute("href", n.href), n.current && t.setAttribute("selected", ""), n.disabled && t.setAttribute("disabled", ""), n.expandable) {
|
|
207
|
+
let r = n.querySelectorAll("nldd-menu-item, nldd-menu-divider");
|
|
208
|
+
if (r.length > 0) {
|
|
209
|
+
let n = document.createElement("nldd-menu");
|
|
210
|
+
r.forEach((e) => {
|
|
211
|
+
let t = e.cloneNode(!0), r = e;
|
|
212
|
+
typeof r.select == "function" && t.addEventListener("click", () => r.select()), n.appendChild(t);
|
|
213
|
+
}), t.appendChild(n), e.push(t);
|
|
216
214
|
continue;
|
|
217
215
|
}
|
|
218
216
|
}
|
|
219
|
-
|
|
220
|
-
if (!
|
|
221
|
-
|
|
217
|
+
t.addEventListener("click", (e) => {
|
|
218
|
+
if (this._overflowMenu.handOff(), !n.href) {
|
|
219
|
+
n.click();
|
|
222
220
|
return;
|
|
223
221
|
}
|
|
224
|
-
let { button:
|
|
222
|
+
let { button: t, ctrlKey: r, metaKey: i, shiftKey: a, altKey: o } = e, s = new MouseEvent("click", {
|
|
225
223
|
bubbles: !0,
|
|
226
224
|
cancelable: !0,
|
|
227
225
|
composed: !0,
|
|
228
|
-
button:
|
|
226
|
+
button: t,
|
|
229
227
|
ctrlKey: r,
|
|
230
228
|
metaKey: i,
|
|
231
229
|
shiftKey: a,
|
|
232
230
|
altKey: o
|
|
233
231
|
});
|
|
234
|
-
|
|
235
|
-
}),
|
|
232
|
+
n.dispatchEvent(s), s.defaultPrevented && e.preventDefault();
|
|
233
|
+
}), e.push(t);
|
|
236
234
|
}
|
|
235
|
+
this._overflowMenu.replace(e);
|
|
237
236
|
}
|
|
238
237
|
render() {
|
|
239
238
|
return _(this);
|
|
240
239
|
}
|
|
241
240
|
}, y = (v.styles = g, v);
|
|
242
|
-
r([
|
|
241
|
+
r([i({
|
|
243
242
|
reflect: !0,
|
|
244
243
|
attribute: "overflow-text",
|
|
245
|
-
converter:
|
|
246
|
-
})], y.prototype, "overflowText", void 0), r([
|
|
244
|
+
converter: c("")
|
|
245
|
+
})], y.prototype, "overflowText", void 0), r([i({
|
|
247
246
|
type: String,
|
|
248
247
|
attribute: "accessible-label"
|
|
249
|
-
})], y.prototype, "accessibleLabel", void 0), r([
|
|
248
|
+
})], y.prototype, "accessibleLabel", void 0), r([i({
|
|
250
249
|
type: Boolean,
|
|
251
250
|
reflect: !0
|
|
252
|
-
})], y.prototype, "compact", void 0), r([
|
|
251
|
+
})], y.prototype, "compact", void 0), r([s("slot:not([name])")], y.prototype, "_defaultSlot", void 0), r([s(".menu-bar__overflow-button")], y.prototype, "_overflowButton", void 0), y = r([o("nldd-menu-bar")], y);
|
|
253
252
|
export { y as NLDDMenuBar };
|
|
@@ -1,15 +1,16 @@
|
|
|
1
|
-
import { n as e, o as t, r as n, t as r } from "./decorate-
|
|
2
|
-
import {
|
|
1
|
+
import { n as e, o as t, r as n, t as r } from "./decorate-Cjb3GqlZ.js";
|
|
2
|
+
import { n as i, r as a, s as o } from "./custom-element-D5bstafw.js";
|
|
3
3
|
import { t as s } from "./custom-element-BW8Ua4c7.js";
|
|
4
4
|
import { t as c } from "./reflect-non-default-Bu3rpCvg.js";
|
|
5
|
-
import { t as l } from "./shadow-resets-
|
|
5
|
+
import { t as l } from "./shadow-resets-JiVlctXb.js";
|
|
6
6
|
import { t as u } from "./sanitize-url-CBuGmY0W.js";
|
|
7
|
-
import "./tooltip-
|
|
8
|
-
import "./icon-
|
|
9
|
-
import "./menu-
|
|
7
|
+
import "./tooltip-CkLC4ooQ.js";
|
|
8
|
+
import "./icon-m8JXbN5F.js";
|
|
9
|
+
import "./menu-kSZLzjet.js";
|
|
10
10
|
import { t as d } from "./defer-focus-F73ud2D9.js";
|
|
11
|
+
import { t as f } from "./overlay-invoker-CQpe-JGA.js";
|
|
11
12
|
// src/components/navigation/menu-bar-item/menu-bar-item.styles.ts
|
|
12
|
-
var
|
|
13
|
+
var p = o`
|
|
13
14
|
:host {
|
|
14
15
|
box-sizing: border-box;
|
|
15
16
|
}
|
|
@@ -210,7 +211,7 @@ var f = i`
|
|
|
210
211
|
}
|
|
211
212
|
`;
|
|
212
213
|
// src/components/navigation/menu-bar-item/menu-bar-item.template.ts
|
|
213
|
-
function
|
|
214
|
+
function m(e) {
|
|
214
215
|
let r = u(e.href), i = !!r, a = !!e.icon || e._hasSlottedIcon, o = !!e.text && (e.iconOnly || e.contentPriority === "icon" && e.compact && a), s = e.accessibleLabel || (o ? e.text : n), c = o ? e.accessibleLabel || e.text : "", l = e.current ? e.currentType : n, d = e.querySelector(":scope > nldd-menu")?.getAttribute("variant") === "navigation", f = e.expandable ? d ? n : "menu" : e.haspopup || n, p = e.expandable || e.haspopup ? String(e.expanded) : n, m = t`
|
|
215
216
|
<span class="menu-bar-item__icon" ?hidden=${!e.icon && !e._hasSlottedIcon}>
|
|
216
217
|
<slot name="icon" @slotchange=${e._onIconSlotChange}>
|
|
@@ -268,21 +269,23 @@ function p(e) {
|
|
|
268
269
|
`;
|
|
269
270
|
}
|
|
270
271
|
// src/components/navigation/menu-bar-item/menu-bar-item.ts
|
|
271
|
-
var
|
|
272
|
+
var h = class extends e {
|
|
272
273
|
constructor(...e) {
|
|
273
|
-
super(...e), this.text = "", this.current = !1, this.currentType = "page", this.href = "", this.icon = "", this.expandable = !1, this.iconOnly = !1, this.contentPriority = "", this.compact = !1, this.disabled = !1, this.accessibleLabel = "", this.haspopup = "", this.expanded = !1, this.popoverTargetElement = null, this.popoverTargetAction = "toggle", this._menu = null, this.
|
|
274
|
+
super(...e), this.text = "", this.current = !1, this.currentType = "page", this.href = "", this.icon = "", this.expandable = !1, this.iconOnly = !1, this.contentPriority = "", this.compact = !1, this.disabled = !1, this.accessibleLabel = "", this.haspopup = "", this.expanded = !1, this.popoverTargetElement = null, this.popoverTargetAction = "toggle", this._menu = null, this._invoker = new f(this, { open: (e) => {
|
|
275
|
+
e.anchorOffset = -this._indicatorInset(), e.showPopover();
|
|
276
|
+
} }), this._menuToggleHandler = null, this._menuVariantObserver = null, this._hasSlottedIcon = !1, this._onIconSlotChange = (e) => {
|
|
274
277
|
this._hasSlottedIcon = e.target.assignedElements().length > 0, this.toggleAttribute("data-has-icon", this._hasSlottedIcon);
|
|
275
278
|
}, this._onSlotChange = () => {
|
|
276
279
|
this._wireMenu();
|
|
277
|
-
}, this._handlePointerdown = () => {
|
|
278
|
-
this.
|
|
280
|
+
}, this._handlePointerdown = (e) => {
|
|
281
|
+
this._invoker.handlePointerdown(e);
|
|
279
282
|
}, this._handleClick = (e) => {
|
|
280
283
|
let t = this._findMenu();
|
|
281
|
-
t && e.composedPath().includes(t)
|
|
284
|
+
t && e.composedPath().includes(t) || (this.disabled ? (e.preventDefault(), e.stopPropagation()) : this.expandable && this._findMenu() ? (e.preventDefault(), this._invoker.handleClick(e)) : this.href || (e.preventDefault(), this.dispatchEvent(new CustomEvent("select", {
|
|
282
285
|
bubbles: !0,
|
|
283
286
|
composed: !0,
|
|
284
287
|
detail: { item: this }
|
|
285
|
-
})));
|
|
288
|
+
}))));
|
|
286
289
|
};
|
|
287
290
|
}
|
|
288
291
|
connectedCallback() {
|
|
@@ -304,14 +307,14 @@ var m = class extends e {
|
|
|
304
307
|
let e = this._findMenu();
|
|
305
308
|
e !== this._menu && (this._unwireMenu(), e && (this._menu = e, this._menuToggleHandler = (e) => {
|
|
306
309
|
let t = e.newState === "open";
|
|
307
|
-
this.
|
|
308
|
-
}, e.addEventListener("toggle", this._menuToggleHandler), this._menuVariantObserver = new MutationObserver(() => this.requestUpdate()), this._menuVariantObserver.observe(e, {
|
|
310
|
+
this.expanded = t;
|
|
311
|
+
}, e.addEventListener("toggle", this._menuToggleHandler), this._invoker.setOverlay(e), this._menuVariantObserver = new MutationObserver(() => this.requestUpdate()), this._menuVariantObserver.observe(e, {
|
|
309
312
|
attributes: !0,
|
|
310
313
|
attributeFilter: ["variant"]
|
|
311
314
|
}), this.requestUpdate()));
|
|
312
315
|
}
|
|
313
316
|
_unwireMenu() {
|
|
314
|
-
this._menu && this._menuToggleHandler && this._menu.removeEventListener("toggle", this._menuToggleHandler), this._menuVariantObserver?.disconnect(), this._menuVariantObserver = null, this.
|
|
317
|
+
this._menu && this._menuToggleHandler && this._menu.removeEventListener("toggle", this._menuToggleHandler), this._menuVariantObserver?.disconnect(), this._menuVariantObserver = null, this._invoker.setOverlay(null), this._menu = null, this._menuToggleHandler = null;
|
|
315
318
|
}
|
|
316
319
|
_indicatorInset() {
|
|
317
320
|
let e = this.shadowRoot?.querySelector(".menu-bar-item");
|
|
@@ -319,48 +322,45 @@ var m = class extends e {
|
|
|
319
322
|
let t = parseFloat(getComputedStyle(e, "::before").top);
|
|
320
323
|
return Number.isNaN(t) ? 0 : t;
|
|
321
324
|
}
|
|
322
|
-
_toggleMenu() {
|
|
323
|
-
this._pointerdownWhileMenuOpen ? this._pointerdownWhileMenuOpen = !1 : this._menu && (this._menu.anchorElement = this, this._menu.anchorOffset = -this._indicatorInset(), this._menuOpen ? this._menu.hidePopover() : this._menu.showPopover());
|
|
324
|
-
}
|
|
325
325
|
render() {
|
|
326
|
-
return
|
|
326
|
+
return m(this);
|
|
327
327
|
}
|
|
328
|
-
},
|
|
329
|
-
r([
|
|
328
|
+
}, g = (h.styles = p, h);
|
|
329
|
+
r([a({
|
|
330
330
|
reflect: !0,
|
|
331
331
|
converter: c("")
|
|
332
|
-
})],
|
|
332
|
+
})], g.prototype, "text", void 0), r([a({
|
|
333
333
|
type: Boolean,
|
|
334
334
|
reflect: !0
|
|
335
|
-
})],
|
|
335
|
+
})], g.prototype, "current", void 0), r([a({
|
|
336
336
|
reflect: !0,
|
|
337
337
|
attribute: "current-type",
|
|
338
338
|
converter: c("page")
|
|
339
|
-
})],
|
|
339
|
+
})], g.prototype, "currentType", void 0), r([a({ type: String })], g.prototype, "href", void 0), r([a({
|
|
340
340
|
reflect: !0,
|
|
341
341
|
converter: c("")
|
|
342
|
-
})],
|
|
342
|
+
})], g.prototype, "icon", void 0), r([a({
|
|
343
343
|
type: Boolean,
|
|
344
344
|
reflect: !0
|
|
345
|
-
})],
|
|
345
|
+
})], g.prototype, "expandable", void 0), r([a({
|
|
346
346
|
type: Boolean,
|
|
347
347
|
attribute: "icon-only",
|
|
348
348
|
reflect: !0
|
|
349
|
-
})],
|
|
349
|
+
})], g.prototype, "iconOnly", void 0), r([a({
|
|
350
350
|
reflect: !0,
|
|
351
351
|
attribute: "content-priority",
|
|
352
352
|
converter: c("")
|
|
353
|
-
})],
|
|
353
|
+
})], g.prototype, "contentPriority", void 0), r([a({
|
|
354
354
|
type: Boolean,
|
|
355
355
|
reflect: !0
|
|
356
|
-
})],
|
|
356
|
+
})], g.prototype, "compact", void 0), r([a({
|
|
357
357
|
type: Boolean,
|
|
358
358
|
reflect: !0
|
|
359
|
-
})],
|
|
359
|
+
})], g.prototype, "disabled", void 0), r([a({
|
|
360
360
|
type: String,
|
|
361
361
|
attribute: "accessible-label"
|
|
362
|
-
})],
|
|
362
|
+
})], g.prototype, "accessibleLabel", void 0), r([a({ type: String })], g.prototype, "haspopup", void 0), r([a({
|
|
363
363
|
type: Boolean,
|
|
364
364
|
reflect: !0
|
|
365
|
-
})],
|
|
366
|
-
export {
|
|
365
|
+
})], g.prototype, "expanded", void 0), r([a({ attribute: !1 })], g.prototype, "popoverTargetElement", void 0), r([a({ attribute: !1 })], g.prototype, "popoverTargetAction", void 0), r([i()], g.prototype, "_hasSlottedIcon", void 0), g = r([s("nldd-menu-bar-item")], g);
|
|
366
|
+
export { g as NLDDMenuBarItem };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as e } from "./rolldown-runtime-CGnMp29N.js";
|
|
2
|
-
import { n as t, t as n } from "./decorate-
|
|
3
|
-
import { n as r } from "./custom-element-
|
|
4
|
-
import { a as i, t as a } from "./menu.template-
|
|
2
|
+
import { n as t, t as n } from "./decorate-Cjb3GqlZ.js";
|
|
3
|
+
import { n as r } from "./custom-element-D5bstafw.js";
|
|
4
|
+
import { a as i, t as a } from "./menu.template-cgua9dKM.js";
|
|
5
5
|
// src/components/actions/menu/menu-divider.ts
|
|
6
6
|
var o = /* @__PURE__ */ e({ NLDDMenuDivider: () => c }), s, c = class extends t {
|
|
7
7
|
constructor(...e) {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { t as e } from "./rolldown-runtime-CGnMp29N.js";
|
|
2
|
-
import { n as t, t as n } from "./decorate-
|
|
3
|
-
import { n as r, r as i } from "./custom-element-
|
|
2
|
+
import { n as t, t as n } from "./decorate-Cjb3GqlZ.js";
|
|
3
|
+
import { n as r, r as i } from "./custom-element-D5bstafw.js";
|
|
4
4
|
import { t as a } from "./reflect-non-default-Bu3rpCvg.js";
|
|
5
|
-
import { n as o, o as s } from "./menu.template-
|
|
6
|
-
import { r as c } from "./menu-item-
|
|
5
|
+
import { n as o, o as s } from "./menu.template-cgua9dKM.js";
|
|
6
|
+
import { r as c } from "./menu-item-7kb18Ypf.js";
|
|
7
7
|
// src/components/actions/menu/menu-group.ts
|
|
8
8
|
var l = /* @__PURE__ */ e({ NLDDMenuGroup: () => d }), u, d = class e extends t {
|
|
9
9
|
constructor(...t) {
|