@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,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":"AA2BA,MAAM,gBAAgB,GAAG,yBAAyB,CAAC;AAYnD,MAAM,OAAO,qBAAqB;IAMjC,YAAY,IAAiB,EAAE,UAA8B,EAAE;QAHvD,aAAQ,GAAmB,IAAI,CAAC;QAChC,0BAAqB,GAAG,KAAK,CAAC;QAYtC,6CAA6C;QAC7C,qBAAgB,GAAG,CAAC,KAAY,EAAQ,EAAE;YACzC,MAAM,IAAI,GAAG,KAAK,CAAC,MAAyB,CAAC;YAC7C,mEAAmE;YACnE,+DAA+D;YAC/D,MAAM,OAAO,GAAI,IAAI,CAAC,gBAAgB,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,CAAC,OAAO,CAAC,gBAAgB,CAAC,CAAyB,IAAI,IAAI,CAAC;YACrI,IAAI,CAAC,UAAU,CAAC,OAAO,CAAC,CAAC;QAC1B,CAAC,CAAC;QAqBF;;uFAE+E;QAC/E,sBAAiB,GAAG,GAAS,EAAE;YAC9B,MAAM,OAAO,GAAG,IAAI,CAAC,QAAQ,CAAC;YAC9B,IAAI,CAAC,OAAO,EAAE,CAAC;gBACd,IAAI,CAAC,qBAAqB,GAAG,KAAK,CAAC;gBACnC,OAAO;YACR,CAAC;YACD,IAAI,CAAC,qBAAqB,GAAG,kBAAkB,IAAI,OAAO,CAAC,CAAC,CAAC,OAAO,CAAC,gBAAgB,EAAE,CAAC,CAAC,CAAC,OAAO,CAAC,OAAO,CAAC,eAAe,CAAC,CAAC;QAC5H,CAAC,CAAC;QA/CD,IAAI,CAAC,UAAU,GAAG,OAAO,CAAC,SAAS,IAAI,CAAC,GAAG,EAAE,CAAC,IAAI,CAAC,CAAC;QACpD,IAAI,CAAC,SAAS,GAAG,OAAO,CAAC,QAAQ,CAAC;IACnC,CAAC;IAED,yDAAyD;IACzD,IAAI,OAAO;QACV,OAAO,IAAI,CAAC,QAAQ,CAAC;IACtB,CAAC;IAWD;;2EAEuE;IACvE,UAAU,CAAC,OAAuB;QACjC,IAAI,OAAO,KAAK,IAAI,CAAC,QAAQ;YAAE,OAAO;QACtC,MAAM,QAAQ,GAAG,IAAI,CAAC,QAAQ,CAAC;QAC/B,IAAI,QAAQ;YAAE,QAAQ,CAAC,aAAa,GAAG,IAAI,CAAC;QAC5C,IAAI,CAAC,QAAQ,GAAG,OAAO,CAAC;QACxB,IAAI,CAAC,MAAM,EAAE,CAAC;QACd,IAAI,CAAC,SAAS,EAAE,CAAC,OAAO,EAAE,QAAQ,CAAC,CAAC;IACrC,CAAC;IAED;yDACqD;IACrD,MAAM;QACL,MAAM,MAAM,GAAG,IAAI,CAAC,UAAU,EAAE,CAAC;QACjC,IAAI,IAAI,CAAC,QAAQ,IAAI,MAAM;YAAE,IAAI,CAAC,QAAQ,CAAC,aAAa,GAAG,MAAM,CAAC;IACnE,CAAC;IAcD;;wEAEoE;IACpE,WAAW,CAAC,KAAiB;QAC5B,IAAI,CAAC,IAAI,CAAC,QAAQ;YAAE,OAAO,KAAK,CAAC;QACjC,0EAA0E;QAC1E,yEAAyE;QACzE,wEAAwE;QACxE,uEAAuE;QACvE,sEAAsE;QACtE,MAAM,OAAO,GAAG,KAAK,CAAC,MAAM,GAAG,CAAC,IAAI,IAAI,CAAC,qBAAqB,CAAC;QAC/D,IAAI,CAAC,qBAAqB,GAAG,KAAK,CAAC;QACnC,IAAI,oBAAoB,IAAI,IAAI,CAAC,QAAQ;YAAE,IAAI,CAAC,QAAQ,CAAC,kBAAkB,EAAE,CAAC;QAC9E,IAAI,CAAC,OAAO,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC,OAAO,CAAC,eAAe,CAAC;YAAE,IAAI,CAAC,QAAQ,CAAC,WAAW,EAAE,CAAC;QACrF,OAAO,IAAI,CAAC;IACb,CAAC;CACD"}
|