@nldd/design-system 0.29.0 → 0.29.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 +1672 -514
- package/dist/assets/styles/shadow-resets.d.ts +7 -0
- package/dist/assets/styles/shadow-resets.d.ts.map +1 -1
- package/dist/assets/styles/shadow-resets.js +17 -0
- package/dist/assets/styles/shadow-resets.js.map +1 -1
- package/dist/cdn/autoloader.js +123 -123
- package/dist/cdn/chunks/{accordion-Eyvvbt4L.js → accordion-BIgPiBgT.js} +3 -2
- package/dist/cdn/chunks/{accordion-item-tTwSzJIR.js → accordion-item-YHiK4fhb.js} +1 -1
- package/dist/cdn/chunks/{activity-indicator-DPQNZQDO.js → activity-indicator-BiuU--e6.js} +21 -29
- package/dist/cdn/chunks/{admonition-BRmILQsf.js → admonition-CpxxWW6f.js} +1 -1
- package/dist/cdn/chunks/{avatar-D3gM-JHI.js → avatar-DeeEjbzl.js} +38 -37
- package/dist/cdn/chunks/{avatar-group-B_d8PyyP.js → avatar-group-Ey17PhOt.js} +11 -11
- package/dist/cdn/chunks/{badge-Bh665MoY.js → badge-B0K1AVec.js} +2 -2
- package/dist/cdn/chunks/{banner-DChycHh5.js → banner-YQpzU7Yz.js} +6 -9
- package/dist/cdn/chunks/{bar-split-view-DakaOexc.js → bar-split-view-DNWrGLv3.js} +3 -3
- package/dist/cdn/chunks/{blockquote-BqBNTgop.js → blockquote-zBgtNbdZ.js} +1 -1
- package/dist/cdn/chunks/{box-B3zUs9dD.js → box-CLEd1Y-1.js} +1 -1
- package/dist/cdn/chunks/{breadcrumbs-CNRmh93a.js → breadcrumbs-DCwiSLxQ.js} +6 -9
- package/dist/cdn/chunks/{button-3oNu2JqC.js → button-DpSJe6ns.js} +81 -88
- package/dist/cdn/chunks/{card-BVW0oCKu.js → card-xq9jqLek.js} +18 -17
- package/dist/cdn/chunks/{cell-C2vZmYOL.js → cell-CNGu9Srs.js} +1 -1
- package/dist/cdn/chunks/{checkbox-LCfb8_rn.js → checkbox-DJU2ntYs.js} +1 -0
- package/dist/cdn/chunks/{checkbox-field-BeIbKEWd.js → checkbox-field-36mh4uD-.js} +2 -2
- package/dist/cdn/chunks/{checkbox-group-DezaH0Mb.js → checkbox-group-CaoyYQC1.js} +1 -1
- package/dist/cdn/chunks/{code-editor-BP9eNQVl.js → code-editor-CqHXUdbC.js} +2 -1
- package/dist/cdn/chunks/{code-viewer-DJ3TJWD_.js → code-viewer-ro55V04o.js} +41 -57
- package/dist/cdn/chunks/{collection-CTa6APvK.js → collection-DVED8Kff.js} +8 -10
- package/dist/cdn/chunks/{combo-box-BcUXaJuO.js → combo-box-CMdGMQ8q.js} +8 -10
- package/dist/cdn/chunks/{date-field-3AJMYQ6k.js → date-field-KrAEvvJg.js} +66 -69
- package/dist/cdn/chunks/{date-picker-Ho8Mkvcv.js → date-picker-CeyTd4Mj.js} +131 -125
- package/dist/cdn/chunks/{description-cell-DnyCIOZd.js → description-cell-DDjPf92m.js} +1 -1
- package/dist/cdn/chunks/{document-tab-bar-CqjLOpKx.js → document-tab-bar-BlP7NEb9.js} +54 -62
- package/dist/cdn/chunks/{dropdown-DHlIJDc9.js → dropdown-DpCdMFod.js} +1 -1
- package/dist/cdn/chunks/{file-field-B-R605PQ.js → file-field-CYjsw4xy.js} +105 -112
- package/dist/cdn/chunks/{form-field-CiWFS40A.js → form-field-CuTa78j4.js} +5 -8
- package/dist/cdn/chunks/{full-bleed-section-Q4drn-q0.js → full-bleed-section-enjghRsm.js} +1 -1
- package/dist/cdn/chunks/{hero-CiPeHBJi.js → hero-AHBPM3ks.js} +12 -12
- package/dist/cdn/chunks/{icon-button-CCiDTx3_.js → icon-button-CkNgX7Ra.js} +5 -5
- package/dist/cdn/chunks/{identity-xlk5m8S9.js → identity-CnYwgyF7.js} +3 -3
- package/dist/cdn/chunks/{image--hemIqn_.js → image--K2M19ce.js} +47 -55
- package/dist/cdn/chunks/{inline-dialog-TetcCCuR.js → inline-dialog-CfiC1tbk.js} +2 -2
- package/dist/cdn/chunks/{just-in-time-education-B5veXLNI.js → just-in-time-education-Dxca2LqF.js} +22 -30
- package/dist/cdn/chunks/{kanban-D_rUckwT.js → kanban-Dwb93dgS.js} +3 -3
- package/dist/cdn/chunks/{kanban-column-DXhOQ64A.js → kanban-column-Br4GovWU.js} +26 -31
- package/dist/cdn/chunks/{keyboard-shortcut-CtLlBcQg.js → keyboard-shortcut-a-CkABX1.js} +66 -71
- package/dist/cdn/chunks/{layout-pass-Cq85kSHX.js → layout-pass-B2ALRYc9.js} +14 -4
- package/dist/cdn/chunks/{link-ChRCGtWP.js → link-CROYAF4K.js} +34 -41
- package/dist/cdn/chunks/{list-Bfh3X6o8.js → list-D_BWUBh4.js} +38 -48
- package/dist/cdn/chunks/{list-item-BcEWw55r.js → list-item-DeFrncLo.js} +114 -125
- package/dist/cdn/chunks/{list-item-segment-ChGSqurx.js → list-item-segment-C1X5v2_Z.js} +33 -40
- package/dist/cdn/chunks/{menu-Dj1cdu5O.js → menu-CkMJUE0H.js} +10 -13
- package/dist/cdn/chunks/{menu-bar-DCkLwYES.js → menu-bar-B3F-QjLV.js} +5 -5
- package/dist/cdn/chunks/{menu-bar-item-eLhyoBaG.js → menu-bar-item-CyixR7Fi.js} +30 -38
- package/dist/cdn/chunks/{menu-divider-BUNkdRG6.js → menu-divider-uBPiSPsv.js} +1 -1
- package/dist/cdn/chunks/{menu-group-rgTyUCIY.js → menu-group-BXS5r-lc.js} +2 -2
- package/dist/cdn/chunks/{menu-item-CttLz526.js → menu-item-CORxUt3u.js} +2 -2
- package/dist/cdn/chunks/{menu.template-D6Y2bQao.js → menu.template-NyA_JtUm.js} +37 -53
- package/dist/cdn/chunks/{modal-dialog-CUb8QrtP.js → modal-dialog-Dt5uenA0.js} +2 -2
- package/dist/cdn/chunks/{multi-line-text-field-Db8a2YIL.js → multi-line-text-field-CkCvyJov.js} +2 -1
- package/dist/cdn/chunks/{navigation-split-view-D8ATWcAf.js → navigation-split-view-Clp3Camr.js} +3 -3
- package/dist/cdn/chunks/{notification-DHvaRREb.js → notification-B36JO2cS.js} +4 -4
- package/dist/cdn/chunks/{number-field-C_rgYWIM.js → number-field-Cjrwd3G0.js} +26 -19
- package/dist/cdn/chunks/{one-half-one-half-section-DFYjUF3h.js → one-half-one-half-section-Bc4rFjtM.js} +1 -1
- package/dist/cdn/chunks/{one-third-two-thirds-section-DovKfHkM.js → one-third-two-thirds-section-DikIdU3X.js} +1 -1
- package/dist/cdn/chunks/{one-time-code-field-BBg30doG.js → one-time-code-field-CqNmLld4.js} +3 -2
- package/dist/cdn/chunks/{overflow-menu-CAIY3hk-.js → overflow-menu-6tdlRjhY.js} +1 -1
- package/dist/cdn/chunks/{page-DpcervFE.js → page-CpdGz0K6.js} +11 -11
- package/dist/cdn/chunks/{page-footer-B0JJvSf7.js → page-footer-_W5dGcQt.js} +6 -9
- package/dist/cdn/chunks/{page-section-mixin-B98EwIts.js → page-section-mixin-DSdHIkwR.js} +1 -1
- package/dist/cdn/chunks/{pagination-D1o7xN9-.js → pagination-DJqmp7nt.js} +6 -9
- package/dist/cdn/chunks/{password-field-CWneSaEV.js → password-field-JKBHK_MQ.js} +7 -9
- package/dist/cdn/chunks/picker-popover-controller-dE7AINjc.js +15 -0
- package/dist/cdn/chunks/{popover-Bm7Kc6Ep.js → popover-LljgfgHS.js} +5 -8
- package/dist/cdn/chunks/{progress-bar-3eU3rFW6.js → progress-bar-fILD82bn.js} +6 -9
- package/dist/cdn/chunks/{progress-circle-CHMKX8uz.js → progress-circle-72YbT9v1.js} +6 -9
- package/dist/cdn/chunks/{radio-button-field-CsJ0DMrB.js → radio-button-field-CG2ljZ-j.js} +1 -1
- package/dist/cdn/chunks/{radio-button-group-CdDmgzn3.js → radio-button-group-DgQHIiXR.js} +1 -1
- package/dist/cdn/chunks/{reorder-handle-cell-M_xNSghw.js → reorder-handle-cell-Bc0LM08A.js} +4 -7
- package/dist/cdn/chunks/{rich-text-B8ANpryO.js → rich-text-BZ6J0VNi.js} +4 -7
- package/dist/cdn/chunks/sanitize-url-EEu5iGkI.js +7 -0
- package/dist/cdn/chunks/{scroll-mode-controller-CuCRKyLT.js → scroll-mode-controller-DlKGaDhM.js} +1 -1
- package/dist/cdn/chunks/{search-field-1zFx-owG.js → search-field-BaPPorsw.js} +9 -11
- package/dist/cdn/chunks/{segmented-control-CRRWCyFW.js → segmented-control-CY7eFebV.js} +6 -7
- package/dist/cdn/chunks/{shadow-resets-B6C3rG8q.js → shadow-resets-kAFcguCG.js} +11 -1
- package/dist/cdn/chunks/{sheet-ChPeBrfk.js → sheet-EvUuqzd5.js} +1 -1
- package/dist/cdn/chunks/{shell-DpKdCX0m.js → shell-ZiZriusi.js} +2 -2
- package/dist/cdn/chunks/{side-by-side-split-view-BoJ6fcJg.js → side-by-side-split-view-qj871uv2.js} +3 -3
- package/dist/cdn/chunks/{sidebar-section-D1fyh0uU.js → sidebar-section-C2KLgpwu.js} +75 -75
- package/dist/cdn/chunks/{simple-section-CyDYDeg_.js → simple-section-CVQRynxS.js} +1 -1
- package/dist/cdn/chunks/{skip-link-Dzz1lV-5.js → skip-link-CpxEwJKH.js} +3 -3
- package/dist/cdn/chunks/{slider-K7ylsn0X.js → slider-DHY89yV6.js} +6 -8
- package/dist/cdn/chunks/{split-button-BYqftEp3.js → split-button-DGzX2W4w.js} +8 -11
- package/dist/cdn/chunks/{stacked-split-view-BG0kRfdn.js → stacked-split-view-CdXyXpzb.js} +3 -3
- package/dist/cdn/chunks/{status-bar-oyMa4uJG.js → status-bar-S5IvBhAD.js} +2 -2
- package/dist/cdn/chunks/{step-bar-CQd9nSub.js → step-bar-pkYf_gF8.js} +31 -41
- package/dist/cdn/chunks/{stepper-d-usvzY0.js → stepper-DIufBp3c.js} +5 -8
- package/dist/cdn/chunks/{swatch-picker-CDCUnY72.js → swatch-picker-uyMsXHeI.js} +3 -2
- package/dist/cdn/chunks/{switch-BMGaGKGr.js → switch-DQ3UDIy5.js} +1 -0
- package/dist/cdn/chunks/{switch-field-BaKICGGz.js → switch-field-BXH62I0E.js} +2 -2
- package/dist/cdn/chunks/{tab-bar-BFDYrnsi.js → tab-bar-B2m7RGKe.js} +60 -58
- package/dist/cdn/chunks/{table-DZx86t9S.js → table-Dtg4t_dM.js} +40 -43
- package/dist/cdn/chunks/{tag-BcfNqWxs.js → tag-BdB8MDQQ.js} +1 -1
- package/dist/cdn/chunks/{term-BgyQFHrz.js → term-DD2K8Qqb.js} +11 -14
- package/dist/cdn/chunks/{text-ChSJGujM.js → text-C8iP63bA.js} +1 -1
- package/dist/cdn/chunks/{text-cell-fnnbWR_Y.js → text-cell-1pWwBLLI.js} +1 -1
- package/dist/cdn/chunks/{text-editor-D9K1Z87u.js → text-editor-DjNky4l-.js} +605 -622
- package/dist/cdn/chunks/{text-field-DzNb872n.js → text-field-ClVrHYGz.js} +2 -1
- package/dist/cdn/chunks/{time-field-DiJhXcaX.js → time-field-CrwLpzZp.js} +42 -48
- package/dist/cdn/chunks/{time-picker-DZlD7fVz.js → time-picker-BYhEzGJL.js} +100 -95
- package/dist/cdn/chunks/{title-BUC_Asb4.js → title-DdqeERnM.js} +1 -1
- package/dist/cdn/chunks/{title-cell-jmBvTRwY.js → title-cell-C4U3rN33.js} +1 -1
- package/dist/cdn/chunks/{toggle-button-UssRHIiz.js → toggle-button-CknaEM8j.js} +70 -63
- package/dist/cdn/chunks/{toggle-button-group-Bj8Rjd93.js → toggle-button-group-CxyhERqD.js} +1 -1
- package/dist/cdn/chunks/{token-DTjIKIJl.js → token-I0vH42iy.js} +6 -9
- package/dist/cdn/chunks/{token-field-CEtnrqKT.js → token-field-B1sAqN0B.js} +9 -11
- package/dist/cdn/chunks/{toolbar-CvinP7R9.js → toolbar-DRIyU8-Z.js} +46 -52
- package/dist/cdn/chunks/{toolbar-item-CiCs-MqI.js → toolbar-item-D1JDaFal.js} +1 -1
- package/dist/cdn/chunks/{toolbar-title-YdFqO0Xq.js → toolbar-title-D7CCOmDz.js} +5 -8
- package/dist/cdn/chunks/{toolbar.styles-DO1jDSfb.js → toolbar.styles-CXjPigMk.js} +8 -16
- package/dist/cdn/chunks/{tooltip-CGSe6rYu.js → tooltip-5clp5S3T.js} +2 -2
- package/dist/cdn/chunks/{top-navigation-bar-akJzlepM.js → top-navigation-bar-CEuIAOoy.js} +14 -14
- package/dist/cdn/chunks/{top-title-bar-CuU2kYrc.js → top-title-bar-M3NiRgr_.js} +4 -4
- package/dist/cdn/chunks/{two-thirds-one-third-section-BE40gzfe.js → two-thirds-one-third-section-BJGAw7Mq.js} +1 -1
- package/dist/cdn/chunks/{validation-list-B_VwBQD0.js → validation-list-CTb7X_Gq.js} +4 -7
- package/dist/cdn/chunks/{window-CJybFUUG.js → window-BmxrtW9P.js} +5 -8
- package/dist/cdn/chunks/with-translations-DSfo7eL-.js +28 -0
- package/dist/components/actions/button/button.d.ts +6 -9
- package/dist/components/actions/button/button.d.ts.map +1 -1
- package/dist/components/actions/button/button.styles.d.ts.map +1 -1
- package/dist/components/actions/button/button.styles.js +2 -10
- package/dist/components/actions/button/button.styles.js.map +1 -1
- package/dist/components/actions/button/button.template.d.ts.map +1 -1
- package/dist/components/actions/button/button.template.js +2 -1
- package/dist/components/actions/button/button.template.js.map +1 -1
- package/dist/components/actions/icon-button/icon-button.d.ts +6 -9
- package/dist/components/actions/icon-button/icon-button.d.ts.map +1 -1
- package/dist/components/actions/menu/menu-item.d.ts +5 -8
- package/dist/components/actions/menu/menu-item.d.ts.map +1 -1
- package/dist/components/actions/menu/menu.d.ts +9 -9
- package/dist/components/actions/menu/menu.d.ts.map +1 -1
- package/dist/components/actions/menu/menu.js +2 -15
- package/dist/components/actions/menu/menu.js.map +1 -1
- package/dist/components/actions/menu/menu.styles.d.ts.map +1 -1
- package/dist/components/actions/menu/menu.styles.js +3 -19
- package/dist/components/actions/menu/menu.styles.js.map +1 -1
- package/dist/components/actions/split-button/split-button.d.ts +5 -4
- package/dist/components/actions/split-button/split-button.d.ts.map +1 -1
- package/dist/components/actions/split-button/split-button.js +2 -10
- package/dist/components/actions/split-button/split-button.js.map +1 -1
- package/dist/components/actions/toolbar/toolbar-title.d.ts +7 -4
- package/dist/components/actions/toolbar/toolbar-title.d.ts.map +1 -1
- package/dist/components/actions/toolbar/toolbar-title.js +2 -9
- package/dist/components/actions/toolbar/toolbar-title.js.map +1 -1
- package/dist/components/actions/toolbar/toolbar.d.ts +7 -4
- package/dist/components/actions/toolbar/toolbar.d.ts.map +1 -1
- package/dist/components/actions/toolbar/toolbar.js +15 -25
- package/dist/components/actions/toolbar/toolbar.js.map +1 -1
- package/dist/components/actions/toolbar/toolbar.styles.d.ts.map +1 -1
- package/dist/components/actions/toolbar/toolbar.styles.js +2 -10
- package/dist/components/actions/toolbar/toolbar.styles.js.map +1 -1
- package/dist/components/content/accordion/accordion.styles.d.ts.map +1 -1
- package/dist/components/content/accordion/accordion.styles.js +1 -0
- package/dist/components/content/accordion/accordion.styles.js.map +1 -1
- package/dist/components/content/avatar/avatar.d.ts +5 -8
- package/dist/components/content/avatar/avatar.d.ts.map +1 -1
- package/dist/components/content/avatar/avatar.template.d.ts.map +1 -1
- package/dist/components/content/avatar/avatar.template.js +2 -1
- package/dist/components/content/avatar/avatar.template.js.map +1 -1
- package/dist/components/content/avatar-group/avatar-group.d.ts +5 -8
- package/dist/components/content/avatar-group/avatar-group.d.ts.map +1 -1
- package/dist/components/content/code-viewer/code-viewer.d.ts +13 -5
- package/dist/components/content/code-viewer/code-viewer.d.ts.map +1 -1
- package/dist/components/content/code-viewer/code-viewer.js +2 -10
- package/dist/components/content/code-viewer/code-viewer.js.map +1 -1
- package/dist/components/content/code-viewer/code-viewer.styles.d.ts.map +1 -1
- package/dist/components/content/code-viewer/code-viewer.styles.js +3 -16
- package/dist/components/content/code-viewer/code-viewer.styles.js.map +1 -1
- package/dist/components/content/image/image.d.ts +9 -9
- package/dist/components/content/image/image.d.ts.map +1 -1
- package/dist/components/content/image/image.js +9 -17
- package/dist/components/content/image/image.js.map +1 -1
- package/dist/components/content/image/image.styles.d.ts.map +1 -1
- package/dist/components/content/image/image.styles.js +2 -7
- package/dist/components/content/image/image.styles.js.map +1 -1
- package/dist/components/content/keyboard-shortcut/keyboard-shortcut.styles.d.ts.map +1 -1
- package/dist/components/content/keyboard-shortcut/keyboard-shortcut.styles.js +2 -7
- package/dist/components/content/keyboard-shortcut/keyboard-shortcut.styles.js.map +1 -1
- package/dist/components/content/rich-text/rich-text.d.ts +4 -4
- package/dist/components/content/rich-text/rich-text.d.ts.map +1 -1
- package/dist/components/content/rich-text/rich-text.js +2 -9
- package/dist/components/content/rich-text/rich-text.js.map +1 -1
- package/dist/components/content/term/term.d.ts +6 -5
- package/dist/components/content/term/term.d.ts.map +1 -1
- package/dist/components/content/term/term.js +2 -10
- package/dist/components/content/term/term.js.map +1 -1
- package/dist/components/content/token/token.d.ts +7 -4
- package/dist/components/content/token/token.d.ts.map +1 -1
- package/dist/components/content/token/token.js +2 -9
- package/dist/components/content/token/token.js.map +1 -1
- package/dist/components/forms/form-field/form-field.d.ts +5 -6
- package/dist/components/forms/form-field/form-field.d.ts.map +1 -1
- package/dist/components/forms/form-field/form-field.js +2 -11
- package/dist/components/forms/form-field/form-field.js.map +1 -1
- package/dist/components/forms/validation-list/validation-list.d.ts +12 -4
- package/dist/components/forms/validation-list/validation-list.d.ts.map +1 -1
- package/dist/components/forms/validation-list/validation-list.js +2 -9
- package/dist/components/forms/validation-list/validation-list.js.map +1 -1
- package/dist/components/inputs/checkbox/checkbox.styles.d.ts.map +1 -1
- package/dist/components/inputs/checkbox/checkbox.styles.js +1 -0
- package/dist/components/inputs/checkbox/checkbox.styles.js.map +1 -1
- package/dist/components/inputs/code-editor/code-editor.styles.d.ts.map +1 -1
- package/dist/components/inputs/code-editor/code-editor.styles.js +1 -0
- package/dist/components/inputs/code-editor/code-editor.styles.js.map +1 -1
- package/dist/components/inputs/combo-box/combo-box.d.ts +7 -4
- package/dist/components/inputs/combo-box/combo-box.d.ts.map +1 -1
- package/dist/components/inputs/combo-box/combo-box.js +2 -10
- package/dist/components/inputs/combo-box/combo-box.js.map +1 -1
- package/dist/components/inputs/combo-box/combo-box.styles.d.ts.map +1 -1
- package/dist/components/inputs/combo-box/combo-box.styles.js +1 -0
- package/dist/components/inputs/combo-box/combo-box.styles.js.map +1 -1
- package/dist/components/inputs/date-field/date-field.d.ts +26 -5
- package/dist/components/inputs/date-field/date-field.d.ts.map +1 -1
- package/dist/components/inputs/date-field/date-field.js +11 -21
- package/dist/components/inputs/date-field/date-field.js.map +1 -1
- package/dist/components/inputs/date-picker/date-picker.d.ts +128 -62
- package/dist/components/inputs/date-picker/date-picker.d.ts.map +1 -1
- package/dist/components/inputs/date-picker/date-picker.js +19 -1
- package/dist/components/inputs/date-picker/date-picker.js.map +1 -1
- package/dist/components/inputs/date-picker/date-picker.styles.d.ts.map +1 -1
- package/dist/components/inputs/date-picker/date-picker.styles.js +3 -8
- package/dist/components/inputs/date-picker/date-picker.styles.js.map +1 -1
- package/dist/components/inputs/file-field/file-field.d.ts +75 -5
- package/dist/components/inputs/file-field/file-field.d.ts.map +1 -1
- package/dist/components/inputs/file-field/file-field.js +2 -10
- package/dist/components/inputs/file-field/file-field.js.map +1 -1
- package/dist/components/inputs/file-field/file-field.styles.d.ts.map +1 -1
- package/dist/components/inputs/file-field/file-field.styles.js +3 -7
- package/dist/components/inputs/file-field/file-field.styles.js.map +1 -1
- package/dist/components/inputs/multi-line-text-field/multi-line-text-field.styles.d.ts.map +1 -1
- package/dist/components/inputs/multi-line-text-field/multi-line-text-field.styles.js +1 -0
- package/dist/components/inputs/multi-line-text-field/multi-line-text-field.styles.js.map +1 -1
- package/dist/components/inputs/number-field/number-field.d.ts +13 -6
- package/dist/components/inputs/number-field/number-field.d.ts.map +1 -1
- package/dist/components/inputs/number-field/number-field.js +13 -14
- package/dist/components/inputs/number-field/number-field.js.map +1 -1
- package/dist/components/inputs/number-field/number-field.styles.d.ts.map +1 -1
- package/dist/components/inputs/number-field/number-field.styles.js +10 -4
- package/dist/components/inputs/number-field/number-field.styles.js.map +1 -1
- package/dist/components/inputs/number-field/number-field.template.d.ts.map +1 -1
- package/dist/components/inputs/number-field/number-field.template.js +3 -2
- package/dist/components/inputs/number-field/number-field.template.js.map +1 -1
- package/dist/components/inputs/one-time-code-field/one-time-code-field.styles.d.ts.map +1 -1
- package/dist/components/inputs/one-time-code-field/one-time-code-field.styles.js +1 -0
- package/dist/components/inputs/one-time-code-field/one-time-code-field.styles.js.map +1 -1
- package/dist/components/inputs/password-field/password-field.d.ts +11 -5
- package/dist/components/inputs/password-field/password-field.d.ts.map +1 -1
- package/dist/components/inputs/password-field/password-field.js +2 -10
- package/dist/components/inputs/password-field/password-field.js.map +1 -1
- package/dist/components/inputs/password-field/password-field.styles.d.ts.map +1 -1
- package/dist/components/inputs/password-field/password-field.styles.js +1 -0
- package/dist/components/inputs/password-field/password-field.styles.js.map +1 -1
- package/dist/components/inputs/search-field/search-field.d.ts +7 -5
- package/dist/components/inputs/search-field/search-field.d.ts.map +1 -1
- package/dist/components/inputs/search-field/search-field.js +2 -11
- package/dist/components/inputs/search-field/search-field.js.map +1 -1
- package/dist/components/inputs/search-field/search-field.styles.d.ts.map +1 -1
- package/dist/components/inputs/search-field/search-field.styles.js +1 -0
- package/dist/components/inputs/search-field/search-field.styles.js.map +1 -1
- package/dist/components/inputs/segmented-control/segmented-control.js +3 -3
- package/dist/components/inputs/segmented-control/segmented-control.js.map +1 -1
- package/dist/components/inputs/segmented-control/segmented-control.styles.d.ts.map +1 -1
- package/dist/components/inputs/segmented-control/segmented-control.styles.js +3 -4
- package/dist/components/inputs/segmented-control/segmented-control.styles.js.map +1 -1
- package/dist/components/inputs/slider/slider.d.ts +7 -5
- package/dist/components/inputs/slider/slider.d.ts.map +1 -1
- package/dist/components/inputs/slider/slider.js +2 -10
- package/dist/components/inputs/slider/slider.js.map +1 -1
- package/dist/components/inputs/slider/slider.styles.d.ts.map +1 -1
- package/dist/components/inputs/slider/slider.styles.js +1 -0
- package/dist/components/inputs/slider/slider.styles.js.map +1 -1
- package/dist/components/inputs/stepper/stepper.d.ts +9 -5
- package/dist/components/inputs/stepper/stepper.d.ts.map +1 -1
- package/dist/components/inputs/stepper/stepper.js +2 -11
- package/dist/components/inputs/stepper/stepper.js.map +1 -1
- package/dist/components/inputs/swatch-picker/swatch-picker.d.ts +20 -23
- package/dist/components/inputs/swatch-picker/swatch-picker.d.ts.map +1 -1
- package/dist/components/inputs/swatch-picker/swatch-picker.styles.d.ts.map +1 -1
- package/dist/components/inputs/swatch-picker/swatch-picker.styles.js +1 -0
- package/dist/components/inputs/swatch-picker/swatch-picker.styles.js.map +1 -1
- package/dist/components/inputs/switch/switch.styles.d.ts.map +1 -1
- package/dist/components/inputs/switch/switch.styles.js +1 -0
- package/dist/components/inputs/switch/switch.styles.js.map +1 -1
- package/dist/components/inputs/text-editor/text-editor.d.ts +16 -10
- package/dist/components/inputs/text-editor/text-editor.d.ts.map +1 -1
- package/dist/components/inputs/text-editor/text-editor.js +2 -15
- package/dist/components/inputs/text-editor/text-editor.js.map +1 -1
- package/dist/components/inputs/text-editor/text-editor.styles.d.ts.map +1 -1
- package/dist/components/inputs/text-editor/text-editor.styles.js +5 -19
- package/dist/components/inputs/text-editor/text-editor.styles.js.map +1 -1
- package/dist/components/inputs/text-field/text-field.styles.d.ts.map +1 -1
- package/dist/components/inputs/text-field/text-field.styles.js +1 -0
- package/dist/components/inputs/text-field/text-field.styles.js.map +1 -1
- package/dist/components/inputs/time-field/time-field.d.ts +16 -5
- package/dist/components/inputs/time-field/time-field.d.ts.map +1 -1
- package/dist/components/inputs/time-field/time-field.js +5 -18
- package/dist/components/inputs/time-field/time-field.js.map +1 -1
- package/dist/components/inputs/time-picker/time-picker.d.ts +18 -4
- package/dist/components/inputs/time-picker/time-picker.d.ts.map +1 -1
- package/dist/components/inputs/time-picker/time-picker.js +15 -8
- package/dist/components/inputs/time-picker/time-picker.js.map +1 -1
- package/dist/components/inputs/time-picker/time-picker.styles.d.ts.map +1 -1
- package/dist/components/inputs/time-picker/time-picker.styles.js +1 -0
- package/dist/components/inputs/time-picker/time-picker.styles.js.map +1 -1
- package/dist/components/inputs/toggle-button/toggle-button.d.ts +7 -2
- package/dist/components/inputs/toggle-button/toggle-button.d.ts.map +1 -1
- package/dist/components/inputs/toggle-button/toggle-button.js +11 -2
- package/dist/components/inputs/toggle-button/toggle-button.js.map +1 -1
- package/dist/components/inputs/toggle-button/toggle-button.styles.d.ts.map +1 -1
- package/dist/components/inputs/toggle-button/toggle-button.styles.js +1 -0
- package/dist/components/inputs/toggle-button/toggle-button.styles.js.map +1 -1
- package/dist/components/inputs/toggle-button/toggle-button.template.d.ts.map +1 -1
- package/dist/components/inputs/toggle-button/toggle-button.template.js +0 -1
- package/dist/components/inputs/toggle-button/toggle-button.template.js.map +1 -1
- package/dist/components/inputs/toggle-button-group/toggle-button-group.d.ts +6 -10
- 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 +8 -12
- package/dist/components/inputs/toggle-button-group/toggle-button-group.js.map +1 -1
- package/dist/components/inputs/token-field/token-field.d.ts +13 -4
- package/dist/components/inputs/token-field/token-field.d.ts.map +1 -1
- package/dist/components/inputs/token-field/token-field.js +2 -9
- package/dist/components/inputs/token-field/token-field.js.map +1 -1
- package/dist/components/inputs/token-field/token-field.styles.d.ts.map +1 -1
- package/dist/components/inputs/token-field/token-field.styles.js +1 -0
- package/dist/components/inputs/token-field/token-field.styles.js.map +1 -1
- package/dist/components/layout/card/card.d.ts +6 -9
- package/dist/components/layout/card/card.d.ts.map +1 -1
- package/dist/components/layout/card/card.template.d.ts.map +1 -1
- package/dist/components/layout/card/card.template.js +2 -1
- package/dist/components/layout/card/card.template.js.map +1 -1
- package/dist/components/layout/collection/collection.d.ts +7 -4
- package/dist/components/layout/collection/collection.d.ts.map +1 -1
- package/dist/components/layout/collection/collection.js +2 -10
- package/dist/components/layout/collection/collection.js.map +1 -1
- package/dist/components/layout/collection/collection.styles.d.ts.map +1 -1
- package/dist/components/layout/collection/collection.styles.js +1 -0
- package/dist/components/layout/collection/collection.styles.js.map +1 -1
- package/dist/components/layout/kanban/kanban.d.ts +9 -12
- package/dist/components/layout/kanban/kanban.d.ts.map +1 -1
- package/dist/components/layout/kanban/kanban.styles.d.ts.map +1 -1
- package/dist/components/layout/kanban/kanban.styles.js +2 -7
- package/dist/components/layout/kanban/kanban.styles.js.map +1 -1
- package/dist/components/layout/page/page.d.ts +5 -5
- package/dist/components/layout/page/page.d.ts.map +1 -1
- package/dist/components/layout/page/page.js +11 -11
- package/dist/components/layout/page/page.js.map +1 -1
- package/dist/components/layout/page-footer/page-footer.d.ts +5 -4
- package/dist/components/layout/page-footer/page-footer.d.ts.map +1 -1
- package/dist/components/layout/page-footer/page-footer.js +2 -12
- package/dist/components/layout/page-footer/page-footer.js.map +1 -1
- package/dist/components/layout/page-footer/page-footer.template.js +1 -1
- package/dist/components/layout/page-footer/page-footer.template.js.map +1 -1
- package/dist/components/layout/page-sections/hero/hero.d.ts +7 -7
- package/dist/components/layout/page-sections/hero/hero.d.ts.map +1 -1
- package/dist/components/layout/page-sections/hero/hero.js +13 -13
- package/dist/components/layout/page-sections/hero/hero.js.map +1 -1
- package/dist/components/layout/page-sections/sidebar-section/sidebar-section.d.ts +4 -5
- package/dist/components/layout/page-sections/sidebar-section/sidebar-section.d.ts.map +1 -1
- package/dist/components/layout/page-sections/sidebar-section/sidebar-section.js +2 -10
- package/dist/components/layout/page-sections/sidebar-section/sidebar-section.js.map +1 -1
- package/dist/components/layout/page-sections/sidebar-section/sidebar-section.styles.d.ts.map +1 -1
- package/dist/components/layout/page-sections/sidebar-section/sidebar-section.styles.js +25 -22
- package/dist/components/layout/page-sections/sidebar-section/sidebar-section.styles.js.map +1 -1
- package/dist/components/layout/page-sections/sidebar-section/sidebar-section.template.js +1 -1
- package/dist/components/layout/popover/popover.d.ts +5 -8
- package/dist/components/layout/popover/popover.d.ts.map +1 -1
- package/dist/components/layout/popover/popover.js +2 -14
- package/dist/components/layout/popover/popover.js.map +1 -1
- package/dist/components/layout/window/window.d.ts +5 -8
- package/dist/components/layout/window/window.d.ts.map +1 -1
- package/dist/components/layout/window/window.js +2 -14
- package/dist/components/layout/window/window.js.map +1 -1
- package/dist/components/lists-and-tables/cells/reorder-handle-cell/reorder-handle-cell.d.ts +3 -5
- package/dist/components/lists-and-tables/cells/reorder-handle-cell/reorder-handle-cell.d.ts.map +1 -1
- package/dist/components/lists-and-tables/cells/reorder-handle-cell/reorder-handle-cell.js +2 -11
- package/dist/components/lists-and-tables/cells/reorder-handle-cell/reorder-handle-cell.js.map +1 -1
- package/dist/components/lists-and-tables/list/list.d.ts +13 -5
- package/dist/components/lists-and-tables/list/list.d.ts.map +1 -1
- package/dist/components/lists-and-tables/list/list.js +2 -11
- package/dist/components/lists-and-tables/list/list.js.map +1 -1
- package/dist/components/lists-and-tables/list/list.styles.d.ts.map +1 -1
- package/dist/components/lists-and-tables/list/list.styles.js +2 -9
- package/dist/components/lists-and-tables/list/list.styles.js.map +1 -1
- package/dist/components/lists-and-tables/list-item/list-item.d.ts +6 -9
- 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 +4 -14
- package/dist/components/lists-and-tables/list-item/list-item.js.map +1 -1
- package/dist/components/lists-and-tables/list-item/list-item.styles.d.ts.map +1 -1
- package/dist/components/lists-and-tables/list-item/list-item.styles.js +2 -10
- package/dist/components/lists-and-tables/list-item/list-item.styles.js.map +1 -1
- package/dist/components/lists-and-tables/list-item/list-item.template.d.ts.map +1 -1
- package/dist/components/lists-and-tables/list-item/list-item.template.js +2 -1
- package/dist/components/lists-and-tables/list-item/list-item.template.js.map +1 -1
- package/dist/components/lists-and-tables/list-item-segment/list-item-segment.d.ts +6 -9
- 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.styles.d.ts.map +1 -1
- package/dist/components/lists-and-tables/list-item-segment/list-item-segment.styles.js +2 -9
- package/dist/components/lists-and-tables/list-item-segment/list-item-segment.styles.js.map +1 -1
- package/dist/components/lists-and-tables/table/table.d.ts +5 -4
- package/dist/components/lists-and-tables/table/table.d.ts.map +1 -1
- package/dist/components/lists-and-tables/table/table.js +15 -21
- package/dist/components/lists-and-tables/table/table.js.map +1 -1
- package/dist/components/navigation/breadcrumbs/breadcrumbs.d.ts +5 -4
- package/dist/components/navigation/breadcrumbs/breadcrumbs.d.ts.map +1 -1
- package/dist/components/navigation/breadcrumbs/breadcrumbs.js +2 -12
- package/dist/components/navigation/breadcrumbs/breadcrumbs.js.map +1 -1
- package/dist/components/navigation/breadcrumbs/breadcrumbs.template.js +1 -1
- package/dist/components/navigation/breadcrumbs/breadcrumbs.template.js.map +1 -1
- package/dist/components/navigation/document-tab-bar/document-tab-bar.d.ts +7 -10
- 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.styles.d.ts.map +1 -1
- package/dist/components/navigation/document-tab-bar/document-tab-bar.styles.js +2 -10
- package/dist/components/navigation/document-tab-bar/document-tab-bar.styles.js.map +1 -1
- package/dist/components/navigation/link/link.d.ts +6 -9
- package/dist/components/navigation/link/link.d.ts.map +1 -1
- package/dist/components/navigation/link/link.styles.d.ts.map +1 -1
- package/dist/components/navigation/link/link.styles.js +2 -10
- package/dist/components/navigation/link/link.styles.js.map +1 -1
- package/dist/components/navigation/link/link.template.d.ts.map +1 -1
- package/dist/components/navigation/link/link.template.js +2 -1
- package/dist/components/navigation/link/link.template.js.map +1 -1
- package/dist/components/navigation/menu-bar/menu-bar.d.ts +3 -6
- package/dist/components/navigation/menu-bar/menu-bar.d.ts.map +1 -1
- package/dist/components/navigation/menu-bar-item/menu-bar-item.styles.d.ts.map +1 -1
- package/dist/components/navigation/menu-bar-item/menu-bar-item.styles.js +2 -10
- package/dist/components/navigation/menu-bar-item/menu-bar-item.styles.js.map +1 -1
- package/dist/components/navigation/pagination/pagination.d.ts +9 -4
- package/dist/components/navigation/pagination/pagination.d.ts.map +1 -1
- package/dist/components/navigation/pagination/pagination.js +2 -9
- package/dist/components/navigation/pagination/pagination.js.map +1 -1
- package/dist/components/navigation/skip-link/skip-link.d.ts +4 -7
- package/dist/components/navigation/skip-link/skip-link.d.ts.map +1 -1
- package/dist/components/navigation/tab-bar/tab-bar.d.ts +3 -6
- package/dist/components/navigation/tab-bar/tab-bar.d.ts.map +1 -1
- package/dist/components/navigation/tab-bar/tab-bar.js +25 -17
- package/dist/components/navigation/tab-bar/tab-bar.js.map +1 -1
- package/dist/components/navigation/top-navigation-bar/top-navigation-bar.d.ts +8 -11
- package/dist/components/navigation/top-navigation-bar/top-navigation-bar.d.ts.map +1 -1
- package/dist/components/status-and-feedback/activity-indicator/activity-indicator.d.ts +5 -4
- package/dist/components/status-and-feedback/activity-indicator/activity-indicator.d.ts.map +1 -1
- package/dist/components/status-and-feedback/activity-indicator/activity-indicator.js +2 -9
- package/dist/components/status-and-feedback/activity-indicator/activity-indicator.js.map +1 -1
- package/dist/components/status-and-feedback/activity-indicator/activity-indicator.styles.d.ts.map +1 -1
- package/dist/components/status-and-feedback/activity-indicator/activity-indicator.styles.js +2 -7
- package/dist/components/status-and-feedback/activity-indicator/activity-indicator.styles.js.map +1 -1
- package/dist/components/status-and-feedback/badge/badge.d.ts +3 -6
- package/dist/components/status-and-feedback/badge/badge.d.ts.map +1 -1
- package/dist/components/status-and-feedback/banner/banner.d.ts +5 -5
- package/dist/components/status-and-feedback/banner/banner.d.ts.map +1 -1
- package/dist/components/status-and-feedback/banner/banner.js +2 -10
- package/dist/components/status-and-feedback/banner/banner.js.map +1 -1
- package/dist/components/status-and-feedback/just-in-time-education/just-in-time-education.d.ts +4 -7
- package/dist/components/status-and-feedback/just-in-time-education/just-in-time-education.d.ts.map +1 -1
- package/dist/components/status-and-feedback/just-in-time-education/just-in-time-education.styles.d.ts.map +1 -1
- package/dist/components/status-and-feedback/just-in-time-education/just-in-time-education.styles.js +2 -10
- package/dist/components/status-and-feedback/just-in-time-education/just-in-time-education.styles.js.map +1 -1
- package/dist/components/status-and-feedback/notification/notification.d.ts +4 -7
- package/dist/components/status-and-feedback/notification/notification.d.ts.map +1 -1
- package/dist/components/status-and-feedback/notification/notifications-area.d.ts.map +1 -1
- package/dist/components/status-and-feedback/notification/notifications-area.js +5 -0
- package/dist/components/status-and-feedback/notification/notifications-area.js.map +1 -1
- package/dist/components/status-and-feedback/progress-bar/progress-bar.d.ts +8 -5
- package/dist/components/status-and-feedback/progress-bar/progress-bar.d.ts.map +1 -1
- package/dist/components/status-and-feedback/progress-bar/progress-bar.js +2 -10
- package/dist/components/status-and-feedback/progress-bar/progress-bar.js.map +1 -1
- package/dist/components/status-and-feedback/progress-circle/progress-circle.d.ts +8 -4
- package/dist/components/status-and-feedback/progress-circle/progress-circle.d.ts.map +1 -1
- package/dist/components/status-and-feedback/progress-circle/progress-circle.js +2 -9
- package/dist/components/status-and-feedback/progress-circle/progress-circle.js.map +1 -1
- package/dist/components/status-and-feedback/step-bar/step-bar.d.ts +8 -11
- package/dist/components/status-and-feedback/step-bar/step-bar.d.ts.map +1 -1
- package/dist/components/status-and-feedback/step-bar/step-bar.styles.d.ts.map +1 -1
- package/dist/components/status-and-feedback/step-bar/step-bar.styles.js +3 -13
- package/dist/components/status-and-feedback/step-bar/step-bar.styles.js.map +1 -1
- package/dist/nldd.min.js +960 -1081
- package/dist/types/react.d.ts +46 -40
- package/dist/types/vue.d.ts +56 -48
- package/dist/utilities/layout-pass.d.ts +3 -1
- package/dist/utilities/layout-pass.d.ts.map +1 -1
- package/dist/utilities/layout-pass.js +26 -3
- package/dist/utilities/layout-pass.js.map +1 -1
- package/dist/utilities/picker-popover-controller.d.ts +25 -0
- package/dist/utilities/picker-popover-controller.d.ts.map +1 -0
- package/dist/utilities/picker-popover-controller.js +33 -0
- package/dist/utilities/picker-popover-controller.js.map +1 -0
- package/dist/utilities/sanitize-url.d.ts +11 -5
- package/dist/utilities/sanitize-url.d.ts.map +1 -1
- package/dist/utilities/sanitize-url.js +13 -9
- package/dist/utilities/sanitize-url.js.map +1 -1
- package/dist/utilities/with-translations.d.ts +14 -9
- package/dist/utilities/with-translations.d.ts.map +1 -1
- package/dist/utilities/with-translations.js +6 -5
- package/dist/utilities/with-translations.js.map +1 -1
- package/lint/data.generated.json +1 -1
- package/package.json +8 -8
- package/dist/cdn/chunks/sanitize-url-CBuGmY0W.js +0 -7
- package/dist/cdn/chunks/translations-tgPL1Hx3.js +0 -14
- package/dist/cdn/chunks/with-translations-CZaQOZ9L.js +0 -16
|
@@ -6,7 +6,7 @@ import { n as c, r as l } from "./slot-content-2qH2vEC_.js";
|
|
|
6
6
|
import { t as u } from "./reorder-handle-mixin-DIkeFpRU.js";
|
|
7
7
|
import { t as d } from "./reflect-non-default-Bu3rpCvg.js";
|
|
8
8
|
import { r as f, t as p } from "./text-wrap-DJ9PcwZ4.js";
|
|
9
|
-
import { r as m, t as h } from "./shadow-resets-
|
|
9
|
+
import { r as m, t as h } from "./shadow-resets-kAFcguCG.js";
|
|
10
10
|
import { n as g, r as _ } from "./static-html-ooiG7-by.js";
|
|
11
11
|
import { n as v } from "./render-marked-vXU387IN.js";
|
|
12
12
|
import { t as y } from "./visibility-mixin-BgnkZDZM.js";
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import { n as e, o as t, r as n, t as r } from "./decorate-CIC8fGPN.js";
|
|
2
2
|
import { n as i, r as a, s as o } from "./custom-element-7tLnKgZE.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 { i as
|
|
10
|
-
import "./tooltip-
|
|
4
|
+
import { n as c, t as l } from "./form-associated-mixin-9cC5HSCG.js";
|
|
5
|
+
import { t as u } from "./reflect-non-default-Bu3rpCvg.js";
|
|
6
|
+
import { t as d } from "./owned-attribute-x9OCTy_4.js";
|
|
7
|
+
import { t as f } from "./implicit-submission-Csbcor_E.js";
|
|
8
|
+
import { t as p } from "./shadow-resets-kAFcguCG.js";
|
|
9
|
+
import { i as m, n as h, r as g } from "./keyboard-shortcut-a-CkABX1.js";
|
|
10
|
+
import "./tooltip-5clp5S3T.js";
|
|
11
11
|
import "./icon-C_xeQP4j.js";
|
|
12
|
-
import { t as
|
|
13
|
-
import { t as
|
|
14
|
-
import { t as
|
|
15
|
-
import { t as
|
|
12
|
+
import { t as _ } from "./described-by-mixin-DSeADwWP.js";
|
|
13
|
+
import { t as v } from "./defer-focus-F73ud2D9.js";
|
|
14
|
+
import { t as y } from "./interest-invoker-CxvYA5Qy.js";
|
|
15
|
+
import { t as b } from "./choice-group-AZsqoheP.js";
|
|
16
16
|
// src/components/inputs/toggle-button/toggle-button.styles.ts
|
|
17
|
-
var
|
|
17
|
+
var x = o`
|
|
18
18
|
:host {
|
|
19
19
|
box-sizing: border-box;
|
|
20
20
|
}
|
|
@@ -52,8 +52,9 @@ var b = o`
|
|
|
52
52
|
--_toggle-button-is-selected-is-active-content-color: var(--semantics-buttons-neutral-tinted-is-selected-is-active-content-color);
|
|
53
53
|
--_toggle-button-is-selected-is-active-highlight-border-color: var(--semantics-buttons-neutral-tinted-is-selected-is-active-highlight-border-color);
|
|
54
54
|
|
|
55
|
-
${
|
|
55
|
+
${p}
|
|
56
56
|
display: inline-block;
|
|
57
|
+
isolation: isolate;
|
|
57
58
|
position: relative;
|
|
58
59
|
-webkit-user-select: none;
|
|
59
60
|
user-select: none;
|
|
@@ -322,14 +323,14 @@ var b = o`
|
|
|
322
323
|
|
|
323
324
|
`;
|
|
324
325
|
// src/components/inputs/toggle-button/toggle-button.template.ts
|
|
325
|
-
function
|
|
326
|
-
let r = e.variant !== "icon" && !!e.text, i = e.variant !== "text" && e._hasIcon, a = e.variant === "icon" || e.variant === "icon-and-text", o =
|
|
326
|
+
function S(e) {
|
|
327
|
+
let r = e.variant !== "icon" && !!e.text, i = e.variant !== "text" && e._hasIcon, a = e.variant === "icon" || e.variant === "icon-and-text", o = m(e), s = e.accessibleLabel || ((e.variant === "icon" || o) && e.text ? e.text : ""), c = s ? [s, o].filter(Boolean).join(" ") : n, l = (i || e.variant === "icon") && !r && (e.accessibleLabel || e.text) || "", u = (e.selected && e.selectedIcon ? e.selectedIcon : e.icon) || (a ? "icon-placeholder" : ""), d = t`<slot
|
|
327
328
|
name="icon"
|
|
328
329
|
@slotchange=${e.requestUpdate}
|
|
329
330
|
>${u ? t`<nldd-icon class="toggle-button__icon"
|
|
330
331
|
icon=${u}
|
|
331
|
-
></nldd-icon>` : n}</slot>`, f = r ? t`<span class="toggle-button__text">${e.text}</span>` : n,
|
|
332
|
-
|
|
332
|
+
></nldd-icon>` : n}</slot>`, f = r ? t`<span class="toggle-button__text">${e.text}</span>` : n, p;
|
|
333
|
+
p = e.type === "radio" ? t`
|
|
333
334
|
<div class="toggle-button">
|
|
334
335
|
<input class="toggle-button__validation-input"
|
|
335
336
|
type="radio"
|
|
@@ -348,7 +349,6 @@ function x(e) {
|
|
|
348
349
|
type="checkbox"
|
|
349
350
|
.checked=${e.selected}
|
|
350
351
|
?disabled=${e.disabled}
|
|
351
|
-
?required=${e.required}
|
|
352
352
|
name=${e.name || n}
|
|
353
353
|
value=${e.value}
|
|
354
354
|
aria-label=${c}
|
|
@@ -371,8 +371,8 @@ function x(e) {
|
|
|
371
371
|
${f}
|
|
372
372
|
</button>
|
|
373
373
|
`;
|
|
374
|
-
let
|
|
375
|
-
return (l ||
|
|
374
|
+
let h = t`<slot name="interest" @slotchange=${e._interest.handleSlotChange}></slot>`;
|
|
375
|
+
return (l || g(e)) && !e._interest.overlay ? t`
|
|
376
376
|
<nldd-tooltip
|
|
377
377
|
text=${l || n}
|
|
378
378
|
shortcut=${e.shortcut || n}
|
|
@@ -380,20 +380,20 @@ function x(e) {
|
|
|
380
380
|
shortcut-windows=${e.shortcutWindows || n}
|
|
381
381
|
shortcut-linux=${e.shortcutLinux || n}
|
|
382
382
|
>
|
|
383
|
-
${
|
|
383
|
+
${p}
|
|
384
384
|
</nldd-tooltip>
|
|
385
|
-
${
|
|
386
|
-
` : t`${
|
|
385
|
+
${h}
|
|
386
|
+
` : t`${p}${h}`;
|
|
387
387
|
}
|
|
388
388
|
// src/components/inputs/toggle-button/toggle-button.ts
|
|
389
|
-
var
|
|
389
|
+
var C = class extends _(l(e)) {
|
|
390
390
|
constructor(...e) {
|
|
391
|
-
super(...e), this.variant = "", this.appearance = "neutral-tinted", this.size = "md", this.text = "", this.icon = "", this.selectedIcon = "", this.interestfor = void 0, this.accessibleLabel = "", this.shortcut = "", this.shortcutMac = "", this.shortcutWindows = "", this.shortcutLinux = "", this.noTab = !1, this.selected = !1, this.invalid = !1, this.name = "", this.value = "on", this.type = "button", this.required = !1, this.disabled = !1, this._interest = new
|
|
391
|
+
super(...e), this.variant = "", this.appearance = "neutral-tinted", this.size = "md", this.text = "", this.icon = "", this.selectedIcon = "", this.interestfor = void 0, this.accessibleLabel = "", this.shortcut = "", this.shortcutMac = "", this.shortcutWindows = "", this.shortcutLinux = "", this.noTab = !1, this.selected = !1, this.invalid = !1, this.name = "", this.value = "on", this.type = "button", this.required = !1, this.disabled = !1, this._interest = new y(this), this._groupPosition = null, this._groupHasSelection = !1, this._appliedRadioLabel = null, this._shortcutAvailability = new h(this), this._onRadioClick = (e) => {
|
|
392
392
|
if (this.type !== "radio") return;
|
|
393
393
|
let t = this._interest.overlay;
|
|
394
394
|
t && e.composedPath().includes(t) || this.toggle();
|
|
395
395
|
}, this._onRadioKeyDown = (e) => {
|
|
396
|
-
this.type !== "radio" || this.disabled || (e.key === " " ? (e.preventDefault(), this.toggle()) : e.key === "Enter" &&
|
|
396
|
+
this.type !== "radio" || this.disabled || (e.key === " " ? (e.preventDefault(), this.toggle()) : e.key === "Enter" && f(this, e));
|
|
397
397
|
}, this._onRadioFocus = () => {
|
|
398
398
|
this._tooltip?._handleFocusIn();
|
|
399
399
|
}, this._onRadioBlur = () => {
|
|
@@ -406,7 +406,7 @@ var S = class extends g(c(e)) {
|
|
|
406
406
|
return e && e.assignedElements().length > 0 ? !0 : this.querySelector(":scope > [slot=\"icon\"]") !== null;
|
|
407
407
|
}
|
|
408
408
|
willUpdate(e) {
|
|
409
|
-
super.willUpdate(e), this.hasUpdated && (e.has("selected") || e.has("disabled")) &&
|
|
409
|
+
super.willUpdate(e), this.hasUpdated && (e.has("selected") || e.has("disabled")) && b.of(this)?.optionChanged(this);
|
|
410
410
|
}
|
|
411
411
|
updated(e) {
|
|
412
412
|
e.has("interestfor") && this._interest.refresh(), (e.has("selected") || e.has("value") || e.has("type")) && this.commitFormValue(), this._syncRadioAria();
|
|
@@ -421,12 +421,12 @@ var S = class extends g(c(e)) {
|
|
|
421
421
|
"aria-setsize",
|
|
422
422
|
"tabindex"
|
|
423
423
|
]) this.removeAttribute(e);
|
|
424
|
-
this._appliedRadioLabel =
|
|
424
|
+
this._appliedRadioLabel = d(this, "aria-label", "", this._appliedRadioLabel);
|
|
425
425
|
return;
|
|
426
426
|
}
|
|
427
427
|
this.setAttribute("role", "radio"), this.setAttribute("aria-checked", String(this.selected));
|
|
428
|
-
let e = [this.accessibleLabel || this.text,
|
|
429
|
-
this._appliedRadioLabel =
|
|
428
|
+
let e = [this.accessibleLabel || this.text, m(this)].filter(Boolean).join(" ");
|
|
429
|
+
this._appliedRadioLabel = d(this, "aria-label", e, this._appliedRadioLabel), this.disabled ? this.setAttribute("aria-disabled", "true") : this.removeAttribute("aria-disabled");
|
|
430
430
|
let t = this._groupPosition;
|
|
431
431
|
t ? (this.setAttribute("aria-posinset", String(t.posInSet)), this.setAttribute("aria-setsize", String(t.setSize))) : (this.removeAttribute("aria-posinset"), this.removeAttribute("aria-setsize"));
|
|
432
432
|
let n = !this.disabled && !this.noTab && t?.tabbable !== !1;
|
|
@@ -435,6 +435,13 @@ var S = class extends g(c(e)) {
|
|
|
435
435
|
formValue() {
|
|
436
436
|
return (this.type === "checkbox" || this.type === "radio") && this.selected ? this.value : null;
|
|
437
437
|
}
|
|
438
|
+
ownValidity() {
|
|
439
|
+
return this.type === "checkbox" ? c({
|
|
440
|
+
required: this.required,
|
|
441
|
+
checked: this.selected || this._groupHasSelection,
|
|
442
|
+
disabled: this.disabled
|
|
443
|
+
}) : null;
|
|
444
|
+
}
|
|
438
445
|
connectedCallback() {
|
|
439
446
|
super.connectedCallback(), this.addEventListener("click", this._onRadioClick), this.addEventListener("keydown", this._onRadioKeyDown), this.addEventListener("focus", this._onRadioFocus), this.addEventListener("blur", this._onRadioBlur);
|
|
440
447
|
}
|
|
@@ -464,7 +471,7 @@ var S = class extends g(c(e)) {
|
|
|
464
471
|
this.disabled || this.type === "radio" && this.selected || this._toggle();
|
|
465
472
|
}
|
|
466
473
|
focus(e) {
|
|
467
|
-
|
|
474
|
+
v(this, e) || (this.type === "radio" ? super.focus(e) : this.shadowRoot?.querySelector(".toggle-button__input, button.toggle-button")?.focus(e));
|
|
468
475
|
}
|
|
469
476
|
describedTarget() {
|
|
470
477
|
return this.type === "radio" ? this : this.shadowRoot?.querySelector("button.toggle-button, .toggle-button__input") ?? null;
|
|
@@ -473,67 +480,67 @@ var S = class extends g(c(e)) {
|
|
|
473
480
|
return this._interest.overlay ? [this._interest.overlay] : [];
|
|
474
481
|
}
|
|
475
482
|
render() {
|
|
476
|
-
return
|
|
483
|
+
return S(this);
|
|
477
484
|
}
|
|
478
|
-
},
|
|
485
|
+
}, w = (C.styles = x, C.formProperties = ["selected"], C.isFormInput = !0, C);
|
|
479
486
|
r([a({
|
|
480
487
|
reflect: !0,
|
|
481
|
-
converter:
|
|
482
|
-
})],
|
|
488
|
+
converter: u("")
|
|
489
|
+
})], w.prototype, "variant", void 0), r([a({
|
|
483
490
|
reflect: !0,
|
|
484
|
-
converter:
|
|
485
|
-
})],
|
|
491
|
+
converter: u("neutral-tinted")
|
|
492
|
+
})], w.prototype, "appearance", void 0), r([a({
|
|
486
493
|
reflect: !0,
|
|
487
|
-
converter:
|
|
488
|
-
})],
|
|
494
|
+
converter: u("md")
|
|
495
|
+
})], w.prototype, "size", void 0), r([a({
|
|
489
496
|
reflect: !0,
|
|
490
|
-
converter:
|
|
491
|
-
})],
|
|
497
|
+
converter: u("")
|
|
498
|
+
})], w.prototype, "text", void 0), r([a({ type: String })], w.prototype, "icon", void 0), r([a({
|
|
492
499
|
reflect: !0,
|
|
493
500
|
attribute: "selected-icon",
|
|
494
|
-
converter:
|
|
495
|
-
})],
|
|
501
|
+
converter: u("")
|
|
502
|
+
})], w.prototype, "selectedIcon", void 0), r([a({
|
|
496
503
|
type: String,
|
|
497
504
|
reflect: !0
|
|
498
|
-
})],
|
|
505
|
+
})], w.prototype, "interestfor", void 0), r([a({
|
|
499
506
|
type: String,
|
|
500
507
|
attribute: "accessible-label"
|
|
501
|
-
})],
|
|
508
|
+
})], w.prototype, "accessibleLabel", void 0), r([a({
|
|
502
509
|
reflect: !0,
|
|
503
|
-
converter:
|
|
504
|
-
})],
|
|
510
|
+
converter: u("")
|
|
511
|
+
})], w.prototype, "shortcut", void 0), r([a({
|
|
505
512
|
reflect: !0,
|
|
506
513
|
attribute: "shortcut-mac",
|
|
507
|
-
converter:
|
|
508
|
-
})],
|
|
514
|
+
converter: u("")
|
|
515
|
+
})], w.prototype, "shortcutMac", void 0), r([a({
|
|
509
516
|
reflect: !0,
|
|
510
517
|
attribute: "shortcut-windows",
|
|
511
|
-
converter:
|
|
512
|
-
})],
|
|
518
|
+
converter: u("")
|
|
519
|
+
})], w.prototype, "shortcutWindows", void 0), r([a({
|
|
513
520
|
reflect: !0,
|
|
514
521
|
attribute: "shortcut-linux",
|
|
515
|
-
converter:
|
|
516
|
-
})],
|
|
522
|
+
converter: u("")
|
|
523
|
+
})], w.prototype, "shortcutLinux", void 0), r([a({
|
|
517
524
|
type: Boolean,
|
|
518
525
|
reflect: !0,
|
|
519
526
|
attribute: "no-tab"
|
|
520
|
-
})],
|
|
527
|
+
})], w.prototype, "noTab", void 0), r([a({
|
|
521
528
|
type: Boolean,
|
|
522
529
|
reflect: !0
|
|
523
|
-
})],
|
|
530
|
+
})], w.prototype, "selected", void 0), r([a({
|
|
524
531
|
type: Boolean,
|
|
525
532
|
reflect: !0
|
|
526
|
-
})],
|
|
533
|
+
})], w.prototype, "invalid", void 0), r([a({
|
|
527
534
|
reflect: !0,
|
|
528
|
-
converter:
|
|
529
|
-
})],
|
|
535
|
+
converter: u("")
|
|
536
|
+
})], w.prototype, "name", void 0), r([a({ type: String })], w.prototype, "value", void 0), r([a({
|
|
530
537
|
reflect: !0,
|
|
531
|
-
converter:
|
|
532
|
-
})],
|
|
538
|
+
converter: u("button")
|
|
539
|
+
})], w.prototype, "type", void 0), r([a({
|
|
533
540
|
type: Boolean,
|
|
534
541
|
reflect: !0
|
|
535
|
-
})],
|
|
542
|
+
})], w.prototype, "required", void 0), r([a({
|
|
536
543
|
type: Boolean,
|
|
537
544
|
reflect: !0
|
|
538
|
-
})],
|
|
539
|
-
export {
|
|
545
|
+
})], w.prototype, "disabled", void 0), r([i()], w.prototype, "_groupPosition", void 0), r([i()], w.prototype, "_groupHasSelection", void 0), w = r([s("nldd-toggle-button")], w);
|
|
546
|
+
export { w as NLDDToggleButton };
|
|
@@ -63,7 +63,7 @@ var p = class extends e {
|
|
|
63
63
|
},
|
|
64
64
|
single: () => this.type === "radio",
|
|
65
65
|
name: () => this.type === "button" ? null : this.name,
|
|
66
|
-
required: () => this.required && this.type
|
|
66
|
+
required: () => this.required && this.type !== "button",
|
|
67
67
|
forward: (e) => {
|
|
68
68
|
e.type = this.type, e.appearance = this.appearance, e.size = this.size;
|
|
69
69
|
}
|
|
@@ -5,10 +5,10 @@ import { t as c } from "./custom-element-BW8Ua4c7.js";
|
|
|
5
5
|
import { t as l } from "./query-ChDzi9FQ.js";
|
|
6
6
|
import { t as u } from "./slot-content-2qH2vEC_.js";
|
|
7
7
|
import { t as d } from "./reflect-non-default-Bu3rpCvg.js";
|
|
8
|
-
import { t as f } from "./shadow-resets-
|
|
8
|
+
import { t as f } from "./shadow-resets-kAFcguCG.js";
|
|
9
9
|
import { t as p } from "./token.i18n-RGD5zAtl.js";
|
|
10
|
-
import "./icon-button-
|
|
11
|
-
import { t as m } from "./translations-
|
|
10
|
+
import "./icon-button-CkNgX7Ra.js";
|
|
11
|
+
import { t as m } from "./with-translations-DSfo7eL-.js";
|
|
12
12
|
import { t as h } from "./overlay-invoker-Dj6MQAtF.js";
|
|
13
13
|
// src/components/content/token/token.styles.ts
|
|
14
14
|
var g = s`
|
|
@@ -177,9 +177,9 @@ function _(e) {
|
|
|
177
177
|
`;
|
|
178
178
|
}
|
|
179
179
|
// src/components/content/token/token.ts
|
|
180
|
-
var v = /* @__PURE__ */ e({ NLDDToken: () => b }), y = class extends t {
|
|
180
|
+
var v = /* @__PURE__ */ e({ NLDDToken: () => b }), y = class extends m(t, p) {
|
|
181
181
|
constructor(...e) {
|
|
182
|
-
super(...e), this._textSlot = new u(this), this.text = "", this.dismissText = "", this.control = "none", this.menuText = "", this.roving = !1, this._expanded = !1, this.disabled = !1, this.
|
|
182
|
+
super(...e), this._textSlot = new u(this), this.text = "", this.dismissText = "", this.control = "none", this.menuText = "", this.roving = !1, this._expanded = !1, this.disabled = !1, this._popupType = "menu", this._slotText = "", this._textObserver = new MutationObserver(() => this._readSlotText()), this._menu = new h(this, {
|
|
183
183
|
anchorFor: () => this._menuButton ?? this,
|
|
184
184
|
onChange: (e, t) => {
|
|
185
185
|
t?.removeEventListener("toggle", this._handleMenuToggle), this._popupType = e?.localName === "nldd-popover" ? "dialog" : "menu", e && (e.localName === "nldd-menu" && (e.variant = "menu"), e.placement = "bottom-start", e.addEventListener("toggle", this._handleMenuToggle));
|
|
@@ -201,9 +201,6 @@ var v = /* @__PURE__ */ e({ NLDDToken: () => b }), y = class extends t {
|
|
|
201
201
|
_readSlotText() {
|
|
202
202
|
this._slotText = [...this.childNodes].filter((e) => !(e instanceof Element && e.hasAttribute("slot"))).map((e) => e.textContent).join("").replace(/\s+/g, " ").trim();
|
|
203
203
|
}
|
|
204
|
-
_t(e) {
|
|
205
|
-
return m(this.translations, p, e);
|
|
206
|
-
}
|
|
207
204
|
get _dismissLabel() {
|
|
208
205
|
let e = this.text || this._slotText;
|
|
209
206
|
if (this.dismissText) return this.dismissText;
|
|
@@ -262,5 +259,5 @@ i([o({ type: String })], b.prototype, "text", void 0), i([o({
|
|
|
262
259
|
})], b.prototype, "_expanded", void 0), i([o({
|
|
263
260
|
type: Boolean,
|
|
264
261
|
reflect: !0
|
|
265
|
-
})], b.prototype, "disabled", void 0), i([
|
|
262
|
+
})], b.prototype, "disabled", void 0), i([a()], b.prototype, "_popupType", void 0), i([a()], b.prototype, "_slotText", void 0), i([l(".token__menu-action nldd-icon-button")], b.prototype, "_menuButton", void 0), b = i([c("nldd-token")], b);
|
|
266
263
|
export { v as t };
|
|
@@ -3,16 +3,16 @@ import { n as i, r as a, s as o } from "./custom-element-7tLnKgZE.js";
|
|
|
3
3
|
import { t as s } from "./custom-element-BW8Ua4c7.js";
|
|
4
4
|
import { t as c } from "./overlay-invoker-Dj6MQAtF.js";
|
|
5
5
|
import { t as l } from "./form-associated-mixin-9cC5HSCG.js";
|
|
6
|
-
import { t as u } from "./shadow-resets-
|
|
6
|
+
import { t as u } from "./shadow-resets-kAFcguCG.js";
|
|
7
7
|
import { t as d } from "./repeat-Cy1a-r4p.js";
|
|
8
|
-
import "./token-
|
|
8
|
+
import "./token-I0vH42iy.js";
|
|
9
9
|
import "./icon-C_xeQP4j.js";
|
|
10
|
-
import "./icon-button-
|
|
11
|
-
import "./menu-
|
|
10
|
+
import "./icon-button-CkNgX7Ra.js";
|
|
11
|
+
import "./menu-CkMJUE0H.js";
|
|
12
12
|
import { t as f } from "./token-field.i18n-BclzoR8F.js";
|
|
13
13
|
import { t as p } from "./implicit-submission-Csbcor_E.js";
|
|
14
14
|
import { t as m } from "./described-by-mixin-DSeADwWP.js";
|
|
15
|
-
import { t as h } from "./translations-
|
|
15
|
+
import { t as h } from "./with-translations-DSfo7eL-.js";
|
|
16
16
|
import { t as g } from "./defer-focus-F73ud2D9.js";
|
|
17
17
|
// src/components/inputs/token-field/token-field.styles.ts
|
|
18
18
|
var _ = o`
|
|
@@ -38,6 +38,7 @@ var _ = o`
|
|
|
38
38
|
|
|
39
39
|
${u}
|
|
40
40
|
display: block;
|
|
41
|
+
isolation: isolate;
|
|
41
42
|
width: var(--_token-field-width);
|
|
42
43
|
max-width: 100%;
|
|
43
44
|
-webkit-tap-highlight-color: transparent;
|
|
@@ -326,9 +327,9 @@ function S(e) {
|
|
|
326
327
|
`;
|
|
327
328
|
}
|
|
328
329
|
// src/components/inputs/token-field/token-field.ts
|
|
329
|
-
var C = class extends m(l(e)) {
|
|
330
|
+
var C = class extends m(l(h(e, f))) {
|
|
330
331
|
constructor(...e) {
|
|
331
|
-
super(...e), this.placeholder = "", this.accessibleLabel = "", this.noFilter = !1, this.tokenControl = "dismiss", this.valid = !1, this.invalid = !1, this.name = "", this._values = [], this.type = "text", this.allowCustom = !1, this.required = !1, this.autocomplete = "", this.noSpellcheck = !1, this.readonly = !1, this.disabled = !1, this.
|
|
332
|
+
super(...e), this.placeholder = "", this.accessibleLabel = "", this.noFilter = !1, this.tokenControl = "dismiss", this.valid = !1, this.invalid = !1, this.name = "", this._values = [], this.type = "text", this.allowCustom = !1, this.required = !1, this.autocomplete = "", this.noSpellcheck = !1, this.readonly = !1, this.disabled = !1, this._text = "", this._isOpen = !1, this._highlightedId = "", this._rovingIndex = 0, this._menuId = `nldd-token-field-menu-${w._idCounter++}`, this._menu = null, this._resizeObserver = null, this._menuObserver = null, this._openPending = !1, this._templateObserver = null, this._picker = new c(this, {
|
|
332
333
|
anchorFor: () => this._inputArea ?? this._input ?? this,
|
|
333
334
|
open: () => {
|
|
334
335
|
this._syncMenuItems(), this._openMenu();
|
|
@@ -358,9 +359,6 @@ var C = class extends m(l(e)) {
|
|
|
358
359
|
let t = e ? e.filter((t, n) => e.indexOf(t) === n) : [], n = this._values;
|
|
359
360
|
this._values = t, this.requestUpdate("values", n);
|
|
360
361
|
}
|
|
361
|
-
_t(e) {
|
|
362
|
-
return h(this.translations, f, e);
|
|
363
|
-
}
|
|
364
362
|
connectedCallback() {
|
|
365
363
|
super.connectedCallback(), this._resizeObserver = new ResizeObserver(() => this._updateMenuWidth()), this._resizeObserver.observe(this), window.addEventListener("scroll", this._handleScrollOrResize, !0), window.addEventListener("resize", this._handleScrollOrResize), this.addEventListener("focusout", this._handleFocusOut), this._templateObserver = new MutationObserver((e) => this._onTemplateMutation(e)), this._templateObserver.observe(this, {
|
|
366
364
|
childList: !0,
|
|
@@ -678,5 +676,5 @@ r([a({ type: String })], T.prototype, "placeholder", void 0), r([a({
|
|
|
678
676
|
})], T.prototype, "readonly", void 0), r([a({
|
|
679
677
|
type: Boolean,
|
|
680
678
|
reflect: !0
|
|
681
|
-
})], T.prototype, "disabled", void 0), r([
|
|
679
|
+
})], T.prototype, "disabled", void 0), r([i()], T.prototype, "_text", void 0), r([i()], T.prototype, "_isOpen", void 0), r([i()], T.prototype, "_highlightedId", void 0), r([i()], T.prototype, "_rovingIndex", void 0), T = w = r([s("nldd-token-field")], T);
|
|
682
680
|
export { T as NLDDTokenField };
|
|
@@ -2,17 +2,17 @@ import { n as e, o as t, r as n, t as r } from "./decorate-CIC8fGPN.js";
|
|
|
2
2
|
import { n as i, r as a } from "./custom-element-7tLnKgZE.js";
|
|
3
3
|
import { t as o } from "./custom-element-BW8Ua4c7.js";
|
|
4
4
|
import { t as s } from "./reflect-non-default-Bu3rpCvg.js";
|
|
5
|
-
import { n as c } from "./toolbar.styles-
|
|
6
|
-
import "./icon-button-
|
|
5
|
+
import { n as c } from "./toolbar.styles-CXjPigMk.js";
|
|
6
|
+
import "./icon-button-CkNgX7Ra.js";
|
|
7
7
|
import { t as l } from "./toolbar.i18n-QwS37CBC.js";
|
|
8
|
-
import { t as u } from "./translations-
|
|
9
|
-
import { t as d } from "./overflow-menu-
|
|
8
|
+
import { t as u } from "./with-translations-DSfo7eL-.js";
|
|
9
|
+
import { t as d } from "./overflow-menu-6tdlRjhY.js";
|
|
10
10
|
import { t as f } from "./after-parse-BSKUm67Q.js";
|
|
11
|
-
import {
|
|
12
|
-
import { NLDDToolbarItem as
|
|
13
|
-
import { NLDDToolbarTitle as
|
|
11
|
+
import { n as p, t as m } from "./layout-pass-B2ALRYc9.js";
|
|
12
|
+
import { NLDDToolbarItem as h } from "./toolbar-item-D1JDaFal.js";
|
|
13
|
+
import { NLDDToolbarTitle as g } from "./toolbar-title-D7CCOmDz.js";
|
|
14
14
|
// src/components/actions/toolbar/toolbar.template.ts
|
|
15
|
-
function
|
|
15
|
+
function _(e, r, i, a, o, s, c, l, u, d) {
|
|
16
16
|
return t`
|
|
17
17
|
<div class="toolbar"
|
|
18
18
|
role="toolbar"
|
|
@@ -50,7 +50,7 @@ function g(e, r, i, a, o, s, c, l, u, d) {
|
|
|
50
50
|
`;
|
|
51
51
|
}
|
|
52
52
|
// src/components/actions/toolbar/toolbar.steps.ts
|
|
53
|
-
function
|
|
53
|
+
function v(e) {
|
|
54
54
|
let t = e.map((e) => ({
|
|
55
55
|
steps: e,
|
|
56
56
|
next: "read",
|
|
@@ -71,29 +71,29 @@ function _(e) {
|
|
|
71
71
|
}
|
|
72
72
|
}
|
|
73
73
|
// src/components/actions/toolbar/toolbar.layout.ts
|
|
74
|
-
function
|
|
74
|
+
function y(e) {
|
|
75
75
|
return e.filter((e) => e.type === "item");
|
|
76
76
|
}
|
|
77
|
-
function
|
|
77
|
+
function b(e, t, n) {
|
|
78
78
|
return [
|
|
79
|
-
...
|
|
79
|
+
...y(n).map((e, t) => ({
|
|
80
80
|
item: e,
|
|
81
81
|
areaOrder: 0,
|
|
82
82
|
index: t
|
|
83
83
|
})),
|
|
84
|
-
...
|
|
84
|
+
...y(t).map((e, t) => ({
|
|
85
85
|
item: e,
|
|
86
86
|
areaOrder: 1,
|
|
87
87
|
index: t
|
|
88
88
|
})),
|
|
89
|
-
...
|
|
89
|
+
...y(e).map((e, t) => ({
|
|
90
90
|
item: e,
|
|
91
91
|
areaOrder: 2,
|
|
92
92
|
index: t
|
|
93
93
|
}))
|
|
94
94
|
].sort((e, t) => e.item.priority === t.item.priority ? e.areaOrder === t.areaOrder ? t.index - e.index : e.areaOrder - t.areaOrder : e.item.priority - t.item.priority).map(({ item: e }) => e);
|
|
95
95
|
}
|
|
96
|
-
function
|
|
96
|
+
function x(e) {
|
|
97
97
|
let t = [], n = /* @__PURE__ */ new Map();
|
|
98
98
|
for (let r of e) {
|
|
99
99
|
if (!r.hasPriority) {
|
|
@@ -110,11 +110,11 @@ function b(e) {
|
|
|
110
110
|
}
|
|
111
111
|
return t;
|
|
112
112
|
}
|
|
113
|
-
function
|
|
113
|
+
function S(e, t, n, r) {
|
|
114
114
|
let i = e.filter((e) => !t.has(e.id));
|
|
115
115
|
return Math.max(0, i.length - 1) * r + i.reduce((e, t) => t.type === "item" || t.type === "title" ? e + (n.get(t.id) ?? 0) : e, 0);
|
|
116
116
|
}
|
|
117
|
-
function
|
|
117
|
+
function C(e, t, n, r, i, a) {
|
|
118
118
|
if (r === 0 && a === 0) return {
|
|
119
119
|
leftZero: !0,
|
|
120
120
|
rightZero: !0
|
|
@@ -125,30 +125,27 @@ function S(e, t, n, r, i, a) {
|
|
|
125
125
|
rightZero: s <= 0
|
|
126
126
|
};
|
|
127
127
|
}
|
|
128
|
-
function
|
|
128
|
+
function w(e) {
|
|
129
129
|
if (e.length !== 1) return !1;
|
|
130
130
|
let [t] = e;
|
|
131
131
|
return t.type === "title" || t.type === "item" && t.isFluid;
|
|
132
132
|
}
|
|
133
133
|
// src/components/actions/toolbar/toolbar.ts
|
|
134
|
-
var
|
|
135
|
-
function
|
|
134
|
+
var T;
|
|
135
|
+
function E(e) {
|
|
136
136
|
let t = Array.from(e.children).find((e) => e.getAttribute("slot") !== "overflow");
|
|
137
137
|
return typeof t?._toolbarWidths == "function" ? t : null;
|
|
138
138
|
}
|
|
139
|
-
var
|
|
139
|
+
var D = new m((e) => v(e.filter((e) => e.isConnected).map((e) => e._measureSteps()))), O = new m((e) => v(e.filter((e) => e.isConnected && !e._hasMeasured).map((e) => e._areaSteps()))), k = null;
|
|
140
140
|
function A(e, t) {
|
|
141
|
-
k ?? (k =
|
|
142
|
-
let
|
|
143
|
-
for (let
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
}
|
|
147
|
-
t.size && (t.forEach((e) => E.schedule(e, e.ownerDocument)), E.flush());
|
|
148
|
-
})), O.set(e, t), k.observe(e);
|
|
141
|
+
k ?? (k = p((e, t) => {
|
|
142
|
+
let n = /* @__PURE__ */ new Set();
|
|
143
|
+
for (let r of e) for (let e of t(r)) r._resized(e) && n.add(r);
|
|
144
|
+
n.size && (n.forEach((e) => D.schedule(e, e.ownerDocument)), D.flush());
|
|
145
|
+
})), k.observe(e, t);
|
|
149
146
|
}
|
|
150
147
|
function j(e, t) {
|
|
151
|
-
|
|
148
|
+
k?.unobserve(e, t);
|
|
152
149
|
}
|
|
153
150
|
var M = /* @__PURE__ */ new Set(), N = null;
|
|
154
151
|
function P(e) {
|
|
@@ -160,13 +157,10 @@ function P(e) {
|
|
|
160
157
|
}
|
|
161
158
|
var F = /* @__PURE__ */ new Set(), I = () => {
|
|
162
159
|
let e = [...F].filter((e) => e._hasMeasured);
|
|
163
|
-
e.length && (e.forEach((e) =>
|
|
164
|
-
}, L = (
|
|
160
|
+
e.length && (e.forEach((e) => D.schedule(e, e.ownerDocument)), D.flush());
|
|
161
|
+
}, L = (T = class extends u(e, l) {
|
|
165
162
|
constructor(...e) {
|
|
166
|
-
super(...e), this.size = "md", this.showItemLabels = !1, this.accessibleLabel = "", this.
|
|
167
|
-
}
|
|
168
|
-
_t(e) {
|
|
169
|
-
return u(this.translations, l, e);
|
|
163
|
+
super(...e), this.size = "md", this.showItemLabels = !1, this.accessibleLabel = "", this._overflowMenu = new d(this, { id: "nldd-toolbar-overflow-menu" }), this._startChildren = [], this._centerChildren = [], this._endChildren = [], this._overflowIds = /* @__PURE__ */ new Set(), this._leftSpacerZero = !1, this._rightSpacerZero = !1, this._centerOnly = !1, this._soloFluid = !1, this._pinnedOverflowItems = [], this._childIds = /* @__PURE__ */ new WeakMap(), this._idCounter = 0, this._itemWidths = /* @__PURE__ */ new Map(), this._observer = null, this._isMeasuring = !1, this._sizedChildren = /* @__PURE__ */ new Set(), this._lastChildWidths = /* @__PURE__ */ new WeakMap(), this._isBuilding = !1, this._rebuildPending = !1, this._built = !1, this._lastWidth = null, this._hasMeasured = !1, this._prioritizedItemsCache = null;
|
|
170
164
|
}
|
|
171
165
|
_getId(e) {
|
|
172
166
|
return this._childIds.has(e) || this._childIds.set(e, this._idCounter++), this._childIds.get(e);
|
|
@@ -186,7 +180,7 @@ var F = /* @__PURE__ */ new Set(), I = () => {
|
|
|
186
180
|
}), A(this, this), P(this), F.size || document.fonts?.addEventListener("loadingdone", I), F.add(this);
|
|
187
181
|
}
|
|
188
182
|
disconnectedCallback() {
|
|
189
|
-
super.disconnectedCallback(), F.delete(this), F.size || document.fonts?.removeEventListener("loadingdone", I), M.delete(this),
|
|
183
|
+
super.disconnectedCallback(), F.delete(this), F.size || document.fonts?.removeEventListener("loadingdone", I), M.delete(this), D.cancel(this), O.cancel(this), this._observer?.disconnect(), this._observer = null, j(this, this), this._lastWidth = null, this._sizedChildren.forEach((e) => j(e, this)), this._sizedChildren.clear();
|
|
190
184
|
}
|
|
191
185
|
_rebuild() {
|
|
192
186
|
if (this._rebuildPending) return;
|
|
@@ -196,7 +190,7 @@ var F = /* @__PURE__ */ new Set(), I = () => {
|
|
|
196
190
|
this._rebuildPending = f(e, this.ownerDocument), this._rebuildPending || this._buildChildren();
|
|
197
191
|
}
|
|
198
192
|
_scheduleMeasure() {
|
|
199
|
-
|
|
193
|
+
D.schedule(this, this.ownerDocument);
|
|
200
194
|
}
|
|
201
195
|
_resized(e) {
|
|
202
196
|
if (this._isMeasuring) return !1;
|
|
@@ -214,7 +208,7 @@ var F = /* @__PURE__ */ new Set(), I = () => {
|
|
|
214
208
|
this._syncHosts();
|
|
215
209
|
}
|
|
216
210
|
updated(e) {
|
|
217
|
-
(e.has("size") || e.has("showItemLabels")) && this._syncHosts(), this._built && (e.has("_startChildren") || e.has("_centerChildren") || e.has("_endChildren")) && this.updateComplete.then(() => this._scheduleMeasure()), (e.has("_overflowIds") || e.has("_pinnedOverflowItems")) && (this._syncMenuItems(), this._syncMenuAnchor(), this._hasMeasured || this.updateComplete.then(() =>
|
|
211
|
+
(e.has("size") || e.has("showItemLabels")) && this._syncHosts(), this._built && (e.has("_startChildren") || e.has("_centerChildren") || e.has("_endChildren")) && this.updateComplete.then(() => this._scheduleMeasure()), (e.has("_overflowIds") || e.has("_pinnedOverflowItems")) && (this._syncMenuItems(), this._syncMenuAnchor(), this._hasMeasured || this.updateComplete.then(() => O.schedule(this, this.ownerDocument)));
|
|
218
212
|
}
|
|
219
213
|
_syncMenuAnchor() {
|
|
220
214
|
this._overflowMenu.anchorTo(this.shadowRoot?.querySelector(".toolbar__overflow-button nldd-icon-button") ?? null);
|
|
@@ -237,7 +231,7 @@ var F = /* @__PURE__ */ new Set(), I = () => {
|
|
|
237
231
|
});
|
|
238
232
|
}
|
|
239
233
|
_getPrioritizedItems() {
|
|
240
|
-
return this._prioritizedItemsCache ?? (this._prioritizedItemsCache =
|
|
234
|
+
return this._prioritizedItemsCache ?? (this._prioritizedItemsCache = b(this._startChildren, this._centerChildren, this._endChildren)), this._prioritizedItemsCache;
|
|
241
235
|
}
|
|
242
236
|
_allHostChildren() {
|
|
243
237
|
return [
|
|
@@ -263,11 +257,11 @@ var F = /* @__PURE__ */ new Set(), I = () => {
|
|
|
263
257
|
if (!e) return;
|
|
264
258
|
let t = this.getBoundingClientRect().width, n = parseFloat(getComputedStyle(e).gap ?? "0"), r = parseFloat(getComputedStyle(this).gap ?? "0"), i = this.shadowRoot?.querySelector(".toolbar__overflow-button"), a = this.shadowRoot?.querySelector(".toolbar__overflow-button nldd-icon-button"), o = i && !i.classList.contains("is-hidden") && a ? a.getBoundingClientRect().width + r : 0, s = this._isCenterOnly(), c = this._allHostChildren().filter((e) => !this._overflowIds.has(e.id) && e.element.getClientRects().length > 0);
|
|
265
259
|
yield "write", this.style.setProperty("--_toolbar-overflow-button-width", `${o}px`);
|
|
266
|
-
let l =
|
|
260
|
+
let l = S(this._startChildren, this._overflowIds, this._itemWidths, n), u = S(this._centerChildren, this._overflowIds, this._itemWidths, n), d = S(this._endChildren, this._overflowIds, this._itemWidths, n);
|
|
267
261
|
this.style.setProperty("--_toolbar-start-width", `${l}px`), this.style.setProperty("--_toolbar-center-width", `${u}px`), this.style.setProperty("--_toolbar-end-width", `${d}px`), this.style.setProperty("--_toolbar-left-spacer-gap", l > 0 ? `${n}px` : "0px"), this.style.setProperty("--_toolbar-right-spacer-gap", d > 0 ? `${n}px` : "0px");
|
|
268
|
-
let { leftZero: f, rightZero: p } =
|
|
262
|
+
let { leftZero: f, rightZero: p } = C(t, n, o, l, u, d);
|
|
269
263
|
f !== this._leftSpacerZero && (this._leftSpacerZero = f), p !== this._rightSpacerZero && (this._rightSpacerZero = p), s !== this._centerOnly && (this._centerOnly = s);
|
|
270
|
-
let m =
|
|
264
|
+
let m = w(c);
|
|
271
265
|
m !== this._soloFluid && (this._soloFluid = m);
|
|
272
266
|
}
|
|
273
267
|
_isCenterOnly() {
|
|
@@ -280,7 +274,7 @@ var F = /* @__PURE__ */ new Set(), I = () => {
|
|
|
280
274
|
return e.some((e) => this._overflowIds.has(e.id)) || this._hasRenderedChild(e);
|
|
281
275
|
}
|
|
282
276
|
_measureAndUpdate() {
|
|
283
|
-
|
|
277
|
+
D.cancel(this), v([this._measureSteps()]);
|
|
284
278
|
}
|
|
285
279
|
*_measureSteps() {
|
|
286
280
|
if (this._isMeasuring) return;
|
|
@@ -296,11 +290,11 @@ var F = /* @__PURE__ */ new Set(), I = () => {
|
|
|
296
290
|
}
|
|
297
291
|
}
|
|
298
292
|
*_overflowSteps(e) {
|
|
299
|
-
let t = this.shadowRoot?.querySelector(".toolbar__overflow-button"), n = this._allHostChildren(), r =
|
|
293
|
+
let t = this.shadowRoot?.querySelector(".toolbar__overflow-button"), n = this._allHostChildren(), r = y(n), i = n.filter((e) => e.type === "title"), a = /* @__PURE__ */ new Map();
|
|
300
294
|
if (r.forEach((e) => {
|
|
301
295
|
let t = e.element;
|
|
302
296
|
t.hidden = !1, t.shrunk = !1;
|
|
303
|
-
let n =
|
|
297
|
+
let n = E(t);
|
|
304
298
|
n && a.set(t, n);
|
|
305
299
|
}), a.size) {
|
|
306
300
|
a.forEach((e) => e._setMeasuring?.(!0)), yield "read";
|
|
@@ -320,7 +314,7 @@ var F = /* @__PURE__ */ new Set(), I = () => {
|
|
|
320
314
|
return;
|
|
321
315
|
}
|
|
322
316
|
yield "write", t?.classList.remove("is-hidden"), yield "read";
|
|
323
|
-
let c = this._getPrioritizedItems(), l = /* @__PURE__ */ new Set(), u =
|
|
317
|
+
let c = this._getPrioritizedItems(), l = /* @__PURE__ */ new Set(), u = x(c);
|
|
324
318
|
for (let e of u) {
|
|
325
319
|
if (!s()) break;
|
|
326
320
|
if (e.some((e) => e.isFluid)) {
|
|
@@ -431,10 +425,10 @@ var F = /* @__PURE__ */ new Set(), I = () => {
|
|
|
431
425
|
});
|
|
432
426
|
}
|
|
433
427
|
render() {
|
|
434
|
-
let e = this._soloFluid ||
|
|
435
|
-
return
|
|
428
|
+
let e = this._soloFluid || w(this._allHostChildren().filter((e) => !this._overflowIds.has(e.id)));
|
|
429
|
+
return _(this, this._centerChildren.length > 0, this._leftSpacerZero, this._rightSpacerZero, e, this._pinnedOverflowItems.length > 0 || this._overflowIds.size > 0, this._overflowMenu.open, this.accessibleLabel, this._centerOnly, (e) => this._t(e));
|
|
436
430
|
}
|
|
437
|
-
},
|
|
431
|
+
}, T.styles = c, T);
|
|
438
432
|
r([a({
|
|
439
433
|
reflect: !0,
|
|
440
434
|
converter: s("md")
|
|
@@ -446,5 +440,5 @@ r([a({
|
|
|
446
440
|
reflect: !0,
|
|
447
441
|
attribute: "accessible-label",
|
|
448
442
|
converter: s("")
|
|
449
|
-
})], L.prototype, "accessibleLabel", void 0), r([
|
|
450
|
-
export { L as NLDDToolbar,
|
|
443
|
+
})], L.prototype, "accessibleLabel", void 0), r([i()], L.prototype, "_startChildren", void 0), r([i()], L.prototype, "_centerChildren", void 0), r([i()], L.prototype, "_endChildren", void 0), r([i()], L.prototype, "_overflowIds", void 0), r([i()], L.prototype, "_leftSpacerZero", void 0), r([i()], L.prototype, "_rightSpacerZero", void 0), r([i()], L.prototype, "_centerOnly", void 0), r([i()], L.prototype, "_soloFluid", void 0), r([i()], L.prototype, "_pinnedOverflowItems", void 0), L = r([o("nldd-toolbar")], L);
|
|
444
|
+
export { L as NLDDToolbar, h as NLDDToolbarItem, g as NLDDToolbarTitle, x as groupForOverflow };
|