@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,18 +1,19 @@
|
|
|
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
|
-
import {
|
|
5
|
-
import { t as
|
|
6
|
-
import { t as
|
|
7
|
-
import { t as
|
|
8
|
-
import { t as
|
|
9
|
-
import { t as
|
|
10
|
-
import { t as
|
|
11
|
-
import "./
|
|
12
|
-
import
|
|
13
|
-
import "./
|
|
4
|
+
import { n as c, r as l } from "./choice-group-AZsqoheP.js";
|
|
5
|
+
import { t as u } from "./form-associated-mixin-BCzChLUO.js";
|
|
6
|
+
import { t as d } from "./reflect-non-default-Bu3rpCvg.js";
|
|
7
|
+
import { t as f } from "./radio-position-CXWYAjaz.js";
|
|
8
|
+
import { t as p } from "./owned-attribute-x9OCTy_4.js";
|
|
9
|
+
import { t as m } from "./implicit-submission-Csbcor_E.js";
|
|
10
|
+
import { t as h } from "./defer-focus-F73ud2D9.js";
|
|
11
|
+
import { t as g } from "./with-translations-DkNkjQym.js";
|
|
12
|
+
import "./tooltip-CkLC4ooQ.js";
|
|
13
|
+
import { t as _ } from "./swatch-picker.i18n-_G0nmnGe.js";
|
|
14
|
+
import "./icon-m8JXbN5F.js";
|
|
14
15
|
// src/components/inputs/swatch-picker/swatch-picker.styles.ts
|
|
15
|
-
var
|
|
16
|
+
var v = o`
|
|
16
17
|
|
|
17
18
|
|
|
18
19
|
/* # Host */
|
|
@@ -41,7 +42,7 @@ var g = i`
|
|
|
41
42
|
flex-wrap: wrap;
|
|
42
43
|
gap: var(--_swatch-picker-gap);
|
|
43
44
|
}
|
|
44
|
-
`,
|
|
45
|
+
`, y = o`
|
|
45
46
|
|
|
46
47
|
|
|
47
48
|
/* # Host */
|
|
@@ -189,7 +190,7 @@ var g = i`
|
|
|
189
190
|
}
|
|
190
191
|
`;
|
|
191
192
|
// src/components/inputs/swatch-picker/swatch-picker.template.ts
|
|
192
|
-
function
|
|
193
|
+
function b(e) {
|
|
193
194
|
return t`
|
|
194
195
|
<input class="swatch-picker__validation-input"
|
|
195
196
|
type="radio"
|
|
@@ -204,7 +205,7 @@ function v(e) {
|
|
|
204
205
|
</div>
|
|
205
206
|
`;
|
|
206
207
|
}
|
|
207
|
-
function
|
|
208
|
+
function x(e) {
|
|
208
209
|
return t`
|
|
209
210
|
<nldd-tooltip
|
|
210
211
|
text=${e._name || n}
|
|
@@ -225,7 +226,7 @@ function y(e) {
|
|
|
225
226
|
`;
|
|
226
227
|
}
|
|
227
228
|
// src/components/inputs/swatch-picker/swatch-picker.ts
|
|
228
|
-
var
|
|
229
|
+
var S, C, w = 1500, T = (S = class extends g(e, _) {
|
|
229
230
|
constructor(...e) {
|
|
230
231
|
super(...e), this.color = "", this.customColor = "", this.image = "", this.imageSrcset = "", this.text = "", this.selected = !1, this.disabled = !1, this.value = "", this.size = "md", this._groupPosition = null, this._appliedLabel = null, this._nameTimer = 0, this._pointerType = "", this._onFocus = () => {
|
|
231
232
|
this._tooltip?._handleFocusIn();
|
|
@@ -256,7 +257,7 @@ var b, x, S = 1500, C = (b = class extends m(e, h) {
|
|
|
256
257
|
e.has("customColor") && (this.customColor && CSS.supports("color", this.customColor) ? this.style.setProperty("--_swatch-picker-item-custom-color", this.customColor) : this.style.removeProperty("--_swatch-picker-item-custom-color")), this._syncAria();
|
|
257
258
|
}
|
|
258
259
|
_syncAria() {
|
|
259
|
-
this.setAttribute("role", "radio"), this.setAttribute("aria-checked", String(this.selected)), this._appliedLabel =
|
|
260
|
+
this.setAttribute("role", "radio"), this.setAttribute("aria-checked", String(this.selected)), this._appliedLabel = p(this, "aria-label", this._name, this._appliedLabel), this.disabled ? this.setAttribute("aria-disabled", "true") : this.removeAttribute("aria-disabled");
|
|
260
261
|
let e = this._groupPosition;
|
|
261
262
|
e ? (this.setAttribute("aria-posinset", String(e.posInSet)), this.setAttribute("aria-setsize", String(e.setSize))) : (this.removeAttribute("aria-posinset"), this.removeAttribute("aria-setsize"));
|
|
262
263
|
let t = !this.disabled && e?.tabbable !== !1;
|
|
@@ -276,7 +277,7 @@ var b, x, S = 1500, C = (b = class extends m(e, h) {
|
|
|
276
277
|
let e = this._tooltip;
|
|
277
278
|
e && this._name && (this.closest("nldd-swatch-picker")?.querySelectorAll("nldd-swatch-picker-item").forEach((e) => {
|
|
278
279
|
e !== this && e._hideName();
|
|
279
|
-
}), e.open = !0, clearTimeout(this._nameTimer), this._nameTimer = this._pointerType === "touch" ? window.setTimeout(() => this._hideName(),
|
|
280
|
+
}), e.open = !0, clearTimeout(this._nameTimer), this._nameTimer = this._pointerType === "touch" ? window.setTimeout(() => this._hideName(), w) : 0, document.addEventListener("scroll", this._onScroll, {
|
|
280
281
|
capture: !0,
|
|
281
282
|
passive: !0
|
|
282
283
|
}));
|
|
@@ -287,47 +288,43 @@ var b, x, S = 1500, C = (b = class extends m(e, h) {
|
|
|
287
288
|
e && (e.open = !1);
|
|
288
289
|
}
|
|
289
290
|
focus(e) {
|
|
290
|
-
|
|
291
|
+
h(this, e) || super.focus(e);
|
|
291
292
|
}
|
|
292
293
|
render() {
|
|
293
|
-
return
|
|
294
|
+
return x(this);
|
|
294
295
|
}
|
|
295
|
-
},
|
|
296
|
-
r([
|
|
296
|
+
}, S.styles = y, S);
|
|
297
|
+
r([a({
|
|
297
298
|
reflect: !0,
|
|
298
|
-
converter:
|
|
299
|
-
})],
|
|
299
|
+
converter: d("")
|
|
300
|
+
})], T.prototype, "color", void 0), r([a({
|
|
300
301
|
reflect: !0,
|
|
301
302
|
attribute: "custom-color",
|
|
302
|
-
converter:
|
|
303
|
-
})],
|
|
303
|
+
converter: d("")
|
|
304
|
+
})], T.prototype, "customColor", void 0), r([a({ type: String })], T.prototype, "image", void 0), r([a({
|
|
304
305
|
type: String,
|
|
305
306
|
attribute: "image-srcset"
|
|
306
|
-
})],
|
|
307
|
+
})], T.prototype, "imageSrcset", void 0), r([a({
|
|
307
308
|
reflect: !0,
|
|
308
|
-
converter:
|
|
309
|
-
})],
|
|
309
|
+
converter: d("")
|
|
310
|
+
})], T.prototype, "text", void 0), r([a({
|
|
310
311
|
type: Boolean,
|
|
311
312
|
reflect: !0
|
|
312
|
-
})],
|
|
313
|
+
})], T.prototype, "selected", void 0), r([a({
|
|
313
314
|
type: Boolean,
|
|
314
315
|
reflect: !0
|
|
315
|
-
})],
|
|
316
|
+
})], T.prototype, "disabled", void 0), r([a({ type: String })], T.prototype, "value", void 0), r([a({
|
|
316
317
|
reflect: !0,
|
|
317
|
-
converter:
|
|
318
|
-
})],
|
|
319
|
-
var
|
|
318
|
+
converter: d("md")
|
|
319
|
+
})], T.prototype, "size", void 0), r([i()], T.prototype, "_groupPosition", void 0), T = r([s("nldd-swatch-picker-item")], T);
|
|
320
|
+
var E = (C = class extends u(e) {
|
|
320
321
|
constructor(...e) {
|
|
321
|
-
super(...e), this.size = "md", this.accessibleLabel = "", this.accessibleLabeledBy = "", this.invalid = !1, this.disabled = !1, this.name = "", this.value = "", this.required = !1, this.
|
|
322
|
-
e.stopPropagation(), this.disabled || e.detail.value === this.value || (this.value = e.detail.value, this._syncItems(), this.
|
|
323
|
-
detail: { value: this.value },
|
|
324
|
-
bubbles: !0,
|
|
325
|
-
composed: !0
|
|
326
|
-
})));
|
|
322
|
+
super(...e), this.size = "md", this.accessibleLabel = "", this.accessibleLabeledBy = "", this.invalid = !1, this.disabled = !1, this.name = "", this.value = "", this.required = !1, this._appliedLabel = null, this._handleItemChange = (e) => {
|
|
323
|
+
e.stopPropagation(), this.disabled || e.detail.value === this.value || (this.value = e.detail.value, this._syncItems(), this.emitFormEvent("change", { value: this.value }));
|
|
327
324
|
}, this._handleKeydown = (e) => {
|
|
328
325
|
if (this.disabled) return;
|
|
329
326
|
if (e.key === "Enter") {
|
|
330
|
-
|
|
327
|
+
m(this, e);
|
|
331
328
|
return;
|
|
332
329
|
}
|
|
333
330
|
let t = this._getItems().filter((e) => !e.disabled);
|
|
@@ -360,23 +357,17 @@ var w = (x = class extends c(e) {
|
|
|
360
357
|
super.disconnectedCallback(), this.removeEventListener("item-change", this._handleItemChange), this.removeEventListener("keydown", this._handleKeydown);
|
|
361
358
|
}
|
|
362
359
|
firstUpdated() {
|
|
363
|
-
this._syncItems()
|
|
360
|
+
this._syncItems();
|
|
364
361
|
}
|
|
365
362
|
formValue() {
|
|
366
363
|
return this.value || null;
|
|
367
364
|
}
|
|
368
|
-
formResetCallback() {
|
|
369
|
-
this.value = this._initialValue;
|
|
370
|
-
}
|
|
371
|
-
formStateRestoreCallback(e) {
|
|
372
|
-
typeof e == "string" && (this.value = e);
|
|
373
|
-
}
|
|
374
365
|
validationAnchor() {
|
|
375
366
|
let e = this._getItems().filter((e) => !e.disabled);
|
|
376
367
|
return e.find((e) => e.selected) ?? e[0];
|
|
377
368
|
}
|
|
378
369
|
updated(e) {
|
|
379
|
-
(e.has("value") || e.has("size") || e.has("disabled") || e.has("required") || e.has("invalid")) && this._syncItems(), e.has("value") && this.commitFormValue(), e.has("accessibleLabel") && (this._appliedLabel =
|
|
370
|
+
(e.has("value") || e.has("size") || e.has("disabled") || e.has("required") || e.has("invalid")) && this._syncItems(), e.has("value") && this.commitFormValue(), e.has("accessibleLabel") && (this._appliedLabel = p(this, "aria-label", this.accessibleLabel, this._appliedLabel)), e.has("accessibleLabeledBy") && (this.accessibleLabeledBy ? this.setAttribute("aria-labelledby", this.accessibleLabeledBy) : this.removeAttribute("aria-labelledby"));
|
|
380
371
|
}
|
|
381
372
|
_getItems() {
|
|
382
373
|
let e = this.shadowRoot?.querySelector("slot");
|
|
@@ -384,9 +375,12 @@ var w = (x = class extends c(e) {
|
|
|
384
375
|
}
|
|
385
376
|
_syncItems() {
|
|
386
377
|
let e = this._getItems();
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
378
|
+
c(this, {
|
|
379
|
+
required: this.required,
|
|
380
|
+
invalid: this.invalid
|
|
381
|
+
});
|
|
382
|
+
for (let t of e) l(t, this.disabled), t.size = this.size, t.selected = !!this.value && t.value === this.value;
|
|
383
|
+
let t = f(e, (e) => e.selected, (e) => e.disabled);
|
|
390
384
|
e.forEach((e, n) => {
|
|
391
385
|
e._groupPosition = t[n] ?? null;
|
|
392
386
|
});
|
|
@@ -395,37 +389,37 @@ var w = (x = class extends c(e) {
|
|
|
395
389
|
this._syncItems();
|
|
396
390
|
}
|
|
397
391
|
focus(e) {
|
|
398
|
-
if (
|
|
392
|
+
if (h(this, e)) return;
|
|
399
393
|
let t = this._getItems().filter((e) => !e.disabled);
|
|
400
394
|
(t.find((e) => e.selected) ?? t[0])?.focus(e);
|
|
401
395
|
}
|
|
402
396
|
render() {
|
|
403
|
-
return
|
|
397
|
+
return b(this);
|
|
404
398
|
}
|
|
405
|
-
},
|
|
406
|
-
r([
|
|
399
|
+
}, C.styles = v, C.formProperties = ["value"], C.isFormInput = !0, C);
|
|
400
|
+
r([a({
|
|
407
401
|
reflect: !0,
|
|
408
|
-
converter:
|
|
409
|
-
})],
|
|
402
|
+
converter: d("md")
|
|
403
|
+
})], E.prototype, "size", void 0), r([a({
|
|
410
404
|
type: String,
|
|
411
405
|
attribute: "accessible-label"
|
|
412
|
-
})],
|
|
406
|
+
})], E.prototype, "accessibleLabel", void 0), r([a({
|
|
413
407
|
type: String,
|
|
414
408
|
attribute: "accessible-labeled-by"
|
|
415
|
-
})],
|
|
409
|
+
})], E.prototype, "accessibleLabeledBy", void 0), r([a({
|
|
416
410
|
type: Boolean,
|
|
417
411
|
reflect: !0
|
|
418
|
-
})],
|
|
412
|
+
})], E.prototype, "invalid", void 0), r([a({
|
|
419
413
|
type: Boolean,
|
|
420
414
|
reflect: !0
|
|
421
|
-
})],
|
|
415
|
+
})], E.prototype, "disabled", void 0), r([a({
|
|
422
416
|
reflect: !0,
|
|
423
|
-
converter:
|
|
424
|
-
})],
|
|
417
|
+
converter: d("")
|
|
418
|
+
})], E.prototype, "name", void 0), r([a({
|
|
425
419
|
reflect: !0,
|
|
426
|
-
converter:
|
|
427
|
-
})],
|
|
420
|
+
converter: d("")
|
|
421
|
+
})], E.prototype, "value", void 0), r([a({
|
|
428
422
|
type: Boolean,
|
|
429
423
|
reflect: !0
|
|
430
|
-
})],
|
|
431
|
-
export {
|
|
424
|
+
})], E.prototype, "required", void 0), E = r([s("nldd-swatch-picker")], E);
|
|
425
|
+
export { E as NLDDSwatchPicker, T as NLDDSwatchPickerItem };
|
|
@@ -1,14 +1,14 @@
|
|
|
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 { a,
|
|
2
|
+
import { n as t, o as n, r, t as i } from "./decorate-Cjb3GqlZ.js";
|
|
3
|
+
import { r as a, s as o } from "./custom-element-D5bstafw.js";
|
|
4
4
|
import { t as s } from "./custom-element-BW8Ua4c7.js";
|
|
5
|
-
import { t as c } from "./form-associated-mixin-
|
|
5
|
+
import { t as c } from "./form-associated-mixin-BCzChLUO.js";
|
|
6
6
|
import { t as l } from "./reflect-non-default-Bu3rpCvg.js";
|
|
7
|
-
import "./icon-
|
|
8
|
-
import { t as u } from "./described-by-mixin-
|
|
7
|
+
import "./icon-m8JXbN5F.js";
|
|
8
|
+
import { t as u } from "./described-by-mixin-ZWpyWEyB.js";
|
|
9
9
|
import { t as d } from "./defer-focus-F73ud2D9.js";
|
|
10
10
|
// src/components/inputs/switch/switch.styles.ts
|
|
11
|
-
var f =
|
|
11
|
+
var f = o`
|
|
12
12
|
:host {
|
|
13
13
|
box-sizing: border-box;
|
|
14
14
|
}
|
|
@@ -180,20 +180,11 @@ function p(e) {
|
|
|
180
180
|
// src/components/inputs/switch/switch.ts
|
|
181
181
|
var m = /* @__PURE__ */ e({ NLDDSwitch: () => _ }), h = class extends u(c(t)) {
|
|
182
182
|
constructor(...e) {
|
|
183
|
-
super(...e), this.name = "", this.checked = !1, this.disabled = !1, this.noTab = !1, this.size = "sm", this.color = "", this.accessibleLabel = "", this.value = "on", this.
|
|
184
|
-
}
|
|
185
|
-
firstUpdated() {
|
|
186
|
-
this._initialChecked = this.checked;
|
|
183
|
+
super(...e), this.name = "", this.checked = !1, this.disabled = !1, this.noTab = !1, this.size = "sm", this.color = "", this.accessibleLabel = "", this.value = "on", this.required = !1, this.invalid = !1, this._pointerStartX = null, this._swiped = !1;
|
|
187
184
|
}
|
|
188
185
|
formValue() {
|
|
189
186
|
return this.checked ? this.value : null;
|
|
190
187
|
}
|
|
191
|
-
formResetCallback() {
|
|
192
|
-
this.checked = this._initialChecked;
|
|
193
|
-
}
|
|
194
|
-
formStateRestoreCallback(e) {
|
|
195
|
-
this.checked = e !== null;
|
|
196
|
-
}
|
|
197
188
|
_handlePointerDown(e) {
|
|
198
189
|
this._pointerStartX = e.clientX, this._swiped = !1;
|
|
199
190
|
try {
|
|
@@ -217,26 +208,18 @@ var m = /* @__PURE__ */ e({ NLDDSwitch: () => _ }), h = class extends u(c(t)) {
|
|
|
217
208
|
this._swiped && (e.preventDefault(), this._swiped = !1);
|
|
218
209
|
}
|
|
219
210
|
toggle() {
|
|
220
|
-
this.disabled || (this.checked = !this.checked, this.
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
},
|
|
225
|
-
bubbles: !0,
|
|
226
|
-
composed: !0
|
|
227
|
-
})));
|
|
211
|
+
this.disabled || (this.checked = !this.checked, this.emitFormEvent("change", {
|
|
212
|
+
checked: this.checked,
|
|
213
|
+
value: this.value
|
|
214
|
+
}));
|
|
228
215
|
}
|
|
229
216
|
_handleChange(e) {
|
|
230
217
|
if (this.disabled) return;
|
|
231
218
|
let t = e.target;
|
|
232
|
-
this.checked = t.checked, this.
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
},
|
|
237
|
-
bubbles: !0,
|
|
238
|
-
composed: !0
|
|
239
|
-
}));
|
|
219
|
+
this.checked = t.checked, this.emitFormEvent("change", {
|
|
220
|
+
checked: this.checked,
|
|
221
|
+
value: this.value
|
|
222
|
+
});
|
|
240
223
|
}
|
|
241
224
|
focus(e) {
|
|
242
225
|
d(this, e) || this.shadowRoot?.querySelector(".switch__input")?.focus(e);
|
|
@@ -244,33 +227,33 @@ var m = /* @__PURE__ */ e({ NLDDSwitch: () => _ }), h = class extends u(c(t)) {
|
|
|
244
227
|
render() {
|
|
245
228
|
return p(this);
|
|
246
229
|
}
|
|
247
|
-
}, g = h, _ = (h.styles = f, h.isFormInput = !0, h.SWIPE_THRESHOLD = 10, h);
|
|
248
|
-
i([
|
|
230
|
+
}, g = h, _ = (h.styles = f, h.formProperties = ["checked"], h.isFormInput = !0, h.SWIPE_THRESHOLD = 10, h);
|
|
231
|
+
i([a({
|
|
249
232
|
reflect: !0,
|
|
250
233
|
converter: l("")
|
|
251
|
-
})], _.prototype, "name", void 0), i([
|
|
234
|
+
})], _.prototype, "name", void 0), i([a({
|
|
252
235
|
type: Boolean,
|
|
253
236
|
reflect: !0
|
|
254
|
-
})], _.prototype, "checked", void 0), i([
|
|
237
|
+
})], _.prototype, "checked", void 0), i([a({
|
|
255
238
|
type: Boolean,
|
|
256
239
|
reflect: !0
|
|
257
|
-
})], _.prototype, "disabled", void 0), i([
|
|
240
|
+
})], _.prototype, "disabled", void 0), i([a({
|
|
258
241
|
type: Boolean,
|
|
259
242
|
reflect: !0,
|
|
260
243
|
attribute: "no-tab"
|
|
261
|
-
})], _.prototype, "noTab", void 0), i([
|
|
244
|
+
})], _.prototype, "noTab", void 0), i([a({
|
|
262
245
|
reflect: !0,
|
|
263
246
|
converter: l("sm")
|
|
264
|
-
})], _.prototype, "size", void 0), i([
|
|
247
|
+
})], _.prototype, "size", void 0), i([a({
|
|
265
248
|
reflect: !0,
|
|
266
249
|
converter: l("")
|
|
267
|
-
})], _.prototype, "color", void 0), i([
|
|
250
|
+
})], _.prototype, "color", void 0), i([a({
|
|
268
251
|
type: String,
|
|
269
252
|
attribute: "accessible-label"
|
|
270
|
-
})], _.prototype, "accessibleLabel", void 0), i([
|
|
253
|
+
})], _.prototype, "accessibleLabel", void 0), i([a({ type: String })], _.prototype, "value", void 0), i([a({
|
|
271
254
|
type: Boolean,
|
|
272
255
|
reflect: !0
|
|
273
|
-
})], _.prototype, "required", void 0), i([
|
|
256
|
+
})], _.prototype, "required", void 0), i([a({
|
|
274
257
|
type: Boolean,
|
|
275
258
|
reflect: !0
|
|
276
259
|
})], _.prototype, "invalid", void 0), _ = g = i([s("nldd-switch")], _);
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { n as e, o as t, r as n, t as r } from "./decorate-
|
|
1
|
+
import { n as e, o as t, r as n, t as r } from "./decorate-Cjb3GqlZ.js";
|
|
2
2
|
import { t as i } from "./reflect-non-default-Bu3rpCvg.js";
|
|
3
3
|
import { t as a } from "./custom-element-BW8Ua4c7.js";
|
|
4
|
-
import {
|
|
5
|
-
import { t as c } from "./shadow-resets-
|
|
6
|
-
import "./switch-
|
|
7
|
-
import { t as l } from "./described-by-mixin-
|
|
8
|
-
import { n as u, t as d } from "./form-associated-mixin-
|
|
4
|
+
import { r as o, s } from "./custom-element-D5bstafw.js";
|
|
5
|
+
import { t as c } from "./shadow-resets-JiVlctXb.js";
|
|
6
|
+
import "./switch-7BZAufN0.js";
|
|
7
|
+
import { t as l } from "./described-by-mixin-ZWpyWEyB.js";
|
|
8
|
+
import { n as u, t as d } from "./form-associated-mixin-BCzChLUO.js";
|
|
9
9
|
import { t as f } from "./defer-focus-F73ud2D9.js";
|
|
10
10
|
// src/components/inputs/switch-field/switch-field.styles.ts
|
|
11
|
-
var p =
|
|
11
|
+
var p = s`
|
|
12
12
|
:host {
|
|
13
13
|
box-sizing: border-box;
|
|
14
14
|
}
|
|
@@ -96,10 +96,7 @@ function m(e) {
|
|
|
96
96
|
// src/components/inputs/switch-field/switch-field.ts
|
|
97
97
|
var h = class extends l(d(e)) {
|
|
98
98
|
constructor(...e) {
|
|
99
|
-
super(...e), this.checked = !1, this.disabled = !1, this.value = "on", this.name = "", this.color = "", this.label = "", this.required = !1, this.invalid = !1
|
|
100
|
-
}
|
|
101
|
-
firstUpdated() {
|
|
102
|
-
this._initialChecked = this.checked;
|
|
99
|
+
super(...e), this.checked = !1, this.disabled = !1, this.value = "on", this.name = "", this.color = "", this.label = "", this.required = !1, this.invalid = !1;
|
|
103
100
|
}
|
|
104
101
|
formValue() {
|
|
105
102
|
return this.checked ? this.value : null;
|
|
@@ -107,24 +104,14 @@ var h = class extends l(d(e)) {
|
|
|
107
104
|
ownValidity() {
|
|
108
105
|
return u(this);
|
|
109
106
|
}
|
|
110
|
-
formResetCallback() {
|
|
111
|
-
this.checked = this._initialChecked;
|
|
112
|
-
}
|
|
113
|
-
formStateRestoreCallback(e) {
|
|
114
|
-
this.checked = e !== null;
|
|
115
|
-
}
|
|
116
107
|
_handleLabelClick(e) {
|
|
117
108
|
this.disabled || e.target.closest?.("nldd-switch") || (this.shadowRoot?.querySelector("nldd-switch"))?.toggle();
|
|
118
109
|
}
|
|
119
110
|
_handleChange(e) {
|
|
120
|
-
this.checked = e.detail.checked, this.
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
},
|
|
125
|
-
bubbles: !0,
|
|
126
|
-
composed: !0
|
|
127
|
-
}));
|
|
111
|
+
this.checked = e.detail.checked, this.emitFormEvent("change", {
|
|
112
|
+
checked: this.checked,
|
|
113
|
+
value: this.value
|
|
114
|
+
});
|
|
128
115
|
}
|
|
129
116
|
focus(e) {
|
|
130
117
|
f(this, e) || this.shadowRoot?.querySelector("nldd-switch")?.focus(e);
|
|
@@ -135,23 +122,23 @@ var h = class extends l(d(e)) {
|
|
|
135
122
|
render() {
|
|
136
123
|
return m(this);
|
|
137
124
|
}
|
|
138
|
-
}, g = (h.styles = p, h.isFormInput = !0, h);
|
|
139
|
-
r([
|
|
125
|
+
}, g = (h.styles = p, h.formProperties = ["checked"], h.isFormInput = !0, h);
|
|
126
|
+
r([o({
|
|
140
127
|
type: Boolean,
|
|
141
128
|
reflect: !0
|
|
142
|
-
})], g.prototype, "checked", void 0), r([
|
|
129
|
+
})], g.prototype, "checked", void 0), r([o({
|
|
143
130
|
type: Boolean,
|
|
144
131
|
reflect: !0
|
|
145
|
-
})], g.prototype, "disabled", void 0), r([
|
|
132
|
+
})], g.prototype, "disabled", void 0), r([o({ type: String })], g.prototype, "value", void 0), r([o({
|
|
146
133
|
reflect: !0,
|
|
147
134
|
converter: i("")
|
|
148
|
-
})], g.prototype, "name", void 0), r([
|
|
135
|
+
})], g.prototype, "name", void 0), r([o({
|
|
149
136
|
reflect: !0,
|
|
150
137
|
converter: i("")
|
|
151
|
-
})], g.prototype, "color", void 0), r([
|
|
138
|
+
})], g.prototype, "color", void 0), r([o({ type: String })], g.prototype, "label", void 0), r([o({
|
|
152
139
|
type: Boolean,
|
|
153
140
|
reflect: !0
|
|
154
|
-
})], g.prototype, "required", void 0), r([
|
|
141
|
+
})], g.prototype, "required", void 0), r([o({
|
|
155
142
|
type: Boolean,
|
|
156
143
|
reflect: !0
|
|
157
144
|
})], g.prototype, "invalid", void 0), g = r([a("nldd-switch-field")], g);
|
|
@@ -1,19 +1,19 @@
|
|
|
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 { r as c } from "./element-state-B-44fVqq.js";
|
|
5
5
|
import { t as l } from "./reflect-non-default-Bu3rpCvg.js";
|
|
6
|
-
import { t as u } from "./shadow-resets-
|
|
7
|
-
import "./tooltip-
|
|
8
|
-
import "./icon-
|
|
6
|
+
import { t as u } from "./shadow-resets-JiVlctXb.js";
|
|
7
|
+
import "./tooltip-CkLC4ooQ.js";
|
|
8
|
+
import "./icon-m8JXbN5F.js";
|
|
9
9
|
import { t as d } from "./sanitize-url-CBuGmY0W.js";
|
|
10
|
-
import { t as f } from "./with-translations-
|
|
10
|
+
import { t as f } from "./with-translations-DkNkjQym.js";
|
|
11
11
|
import { t as p } from "./tab-bar.i18n-Crsc7ShA.js";
|
|
12
|
-
import "./icon-button-
|
|
13
|
-
import "./menu-
|
|
12
|
+
import "./icon-button-B0Lb2ccT.js";
|
|
13
|
+
import "./menu-kSZLzjet.js";
|
|
14
14
|
import { t as m } from "./defer-focus-F73ud2D9.js";
|
|
15
15
|
// src/components/navigation/tab-bar/tab-bar.styles.ts
|
|
16
|
-
var h =
|
|
16
|
+
var h = o`
|
|
17
17
|
:host {
|
|
18
18
|
box-sizing: border-box;
|
|
19
19
|
}
|
|
@@ -165,7 +165,7 @@ var h = i`
|
|
|
165
165
|
position: relative;
|
|
166
166
|
z-index: var(--_tab-bar-focus-z-index);
|
|
167
167
|
}
|
|
168
|
-
`, g =
|
|
168
|
+
`, g = o`
|
|
169
169
|
|
|
170
170
|
|
|
171
171
|
/* # Host */
|
|
@@ -391,13 +391,15 @@ function _(e) {
|
|
|
391
391
|
@beforetoggle=${(t) => {
|
|
392
392
|
t.newState === "open" && e.requestUpdate();
|
|
393
393
|
}}
|
|
394
|
+
@toggle=${(t) => e._overflowMenuToggled(t.newState === "open")}
|
|
395
|
+
@select=${(e) => e.stopPropagation()}
|
|
394
396
|
>
|
|
395
|
-
${e.
|
|
397
|
+
${e._menuItems.map((r) => t`
|
|
396
398
|
<nldd-menu-item
|
|
397
399
|
text=${r.text}
|
|
398
400
|
icon=${r.icon || n}
|
|
399
401
|
href=${d(r.href) || n}
|
|
400
|
-
@select=${(
|
|
402
|
+
@select=${() => e._selectFromOverflow(r)}
|
|
401
403
|
>${r._slottedIcon?.cloneNode(!0) ?? n}</nldd-menu-item>
|
|
402
404
|
`)}
|
|
403
405
|
</nldd-menu>
|
|
@@ -500,25 +502,25 @@ var y = class extends e {
|
|
|
500
502
|
return v(this);
|
|
501
503
|
}
|
|
502
504
|
}, b, x = (y.styles = g, y);
|
|
503
|
-
r([
|
|
505
|
+
r([a({
|
|
504
506
|
type: Boolean,
|
|
505
507
|
reflect: !0
|
|
506
|
-
})], x.prototype, "current", void 0), r([
|
|
508
|
+
})], x.prototype, "current", void 0), r([a({ type: String })], x.prototype, "href", void 0), r([a({ attribute: !1 })], x.prototype, "_groupVariant", void 0), r([a({
|
|
507
509
|
reflect: !0,
|
|
508
510
|
converter: l("")
|
|
509
|
-
})], x.prototype, "text", void 0), r([
|
|
511
|
+
})], x.prototype, "text", void 0), r([a({
|
|
510
512
|
reflect: !0,
|
|
511
513
|
converter: l("")
|
|
512
|
-
})], x.prototype, "icon", void 0), r([
|
|
514
|
+
})], x.prototype, "icon", void 0), r([a({
|
|
513
515
|
reflect: !0,
|
|
514
516
|
converter: l("")
|
|
515
|
-
})], x.prototype, "controls", void 0), r([
|
|
517
|
+
})], x.prototype, "controls", void 0), r([a({ attribute: !1 })], x.prototype, "controlsElement", void 0), r([a({
|
|
516
518
|
reflect: !0,
|
|
517
519
|
converter: l("md")
|
|
518
|
-
})], x.prototype, "size", void 0), r([
|
|
520
|
+
})], x.prototype, "size", void 0), r([i()], x.prototype, "_hasIconSlot", void 0), r([i()], x.prototype, "_navigation", void 0), r([i()], x.prototype, "_isFallbackFocusable", void 0), r([i()], x.prototype, "_groupDisabled", void 0), x = r([s("nldd-tab-bar-item")], x);
|
|
519
521
|
var S = (b = class extends f(e, p) {
|
|
520
522
|
constructor(...e) {
|
|
521
|
-
super(...e), this.centered = !1, this.variant = "", this.size = "md", this.navigation = !1, this.disabled = !1, this.accessibleLabel = "", this._hasCustomLabel = !1, this._overflowItems = [], this._resizeObserver = null, this._itemObserver = null, this._overflowFrame = null, this._onlyCurrentChanged = !0, this._scheduleOverflow = (e = !0) => {
|
|
523
|
+
super(...e), this.centered = !1, this.variant = "", this.size = "md", this.navigation = !1, this.disabled = !1, this.accessibleLabel = "", this._hasCustomLabel = !1, this._overflowItems = [], this._menuItems = [], this._menuOpen = !1, this._resizeObserver = null, this._itemObserver = null, this._overflowFrame = null, this._onlyCurrentChanged = !0, this._scheduleOverflow = (e = !0) => {
|
|
522
524
|
e && (this._onlyCurrentChanged = !1), this._overflowFrame || (this._overflowFrame = requestAnimationFrame(() => {
|
|
523
525
|
this._overflowFrame = null;
|
|
524
526
|
let e = this._onlyCurrentChanged;
|
|
@@ -640,10 +642,13 @@ var S = (b = class extends f(e, p) {
|
|
|
640
642
|
e.toggleAttribute("data-overflow", t.has(i)), r && n[i] ? e.style.setProperty("--_tab-bar-item-natural-width", String(n[i])) : e.style.removeProperty("--_tab-bar-item-natural-width");
|
|
641
643
|
});
|
|
642
644
|
let i = e.filter((e, n) => t.has(n));
|
|
643
|
-
(i.length !== this._overflowItems.length || i.some((e, t) => e !== this._overflowItems[t])) && (this._overflowItems = i, this._syncItems());
|
|
645
|
+
(i.length !== this._overflowItems.length || i.some((e, t) => e !== this._overflowItems[t])) && (this._overflowItems = i, this._menuOpen || (this._menuItems = i), this._syncItems());
|
|
644
646
|
}
|
|
645
|
-
_selectFromOverflow(e
|
|
646
|
-
|
|
647
|
+
_selectFromOverflow(e) {
|
|
648
|
+
this._activate(e);
|
|
649
|
+
}
|
|
650
|
+
_overflowMenuToggled(e) {
|
|
651
|
+
this._menuOpen = e, e || (this._menuItems = this._overflowItems);
|
|
647
652
|
}
|
|
648
653
|
firstUpdated() {
|
|
649
654
|
this._hasCustomLabel = !!this.accessibleLabel, this._syncItems();
|
|
@@ -681,23 +686,23 @@ var S = (b = class extends f(e, p) {
|
|
|
681
686
|
return _(this);
|
|
682
687
|
}
|
|
683
688
|
}, b.styles = h, b);
|
|
684
|
-
r([
|
|
689
|
+
r([a({
|
|
685
690
|
type: Boolean,
|
|
686
691
|
reflect: !0
|
|
687
|
-
})], S.prototype, "centered", void 0), r([
|
|
692
|
+
})], S.prototype, "centered", void 0), r([a({
|
|
688
693
|
reflect: !0,
|
|
689
694
|
converter: l("")
|
|
690
|
-
})], S.prototype, "variant", void 0), r([
|
|
695
|
+
})], S.prototype, "variant", void 0), r([a({
|
|
691
696
|
reflect: !0,
|
|
692
697
|
converter: l("md")
|
|
693
|
-
})], S.prototype, "size", void 0), r([
|
|
698
|
+
})], S.prototype, "size", void 0), r([a({
|
|
694
699
|
type: Boolean,
|
|
695
700
|
reflect: !0
|
|
696
|
-
})], S.prototype, "navigation", void 0), r([
|
|
701
|
+
})], S.prototype, "navigation", void 0), r([a({
|
|
697
702
|
type: Boolean,
|
|
698
703
|
reflect: !0
|
|
699
|
-
})], S.prototype, "disabled", void 0), r([
|
|
704
|
+
})], S.prototype, "disabled", void 0), r([a({
|
|
700
705
|
type: String,
|
|
701
706
|
attribute: "accessible-label"
|
|
702
|
-
})], S.prototype, "accessibleLabel", void 0), r([
|
|
707
|
+
})], S.prototype, "accessibleLabel", void 0), r([i()], S.prototype, "_overflowItems", void 0), r([i()], S.prototype, "_menuItems", void 0), S = r([s("nldd-tab-bar")], S);
|
|
703
708
|
export { S as NLDDTabBar, x as NLDDTabBarItem };
|