@nldd/design-system 0.29.0 → 0.29.1
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 +1 -1
- 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
|
@@ -4,36 +4,37 @@ import { n as a, r as o, s } from "./custom-element-7tLnKgZE.js";
|
|
|
4
4
|
import { t as c } from "./custom-element-BW8Ua4c7.js";
|
|
5
5
|
import { n as l } from "./breakpoints-Cwor8TRP.js";
|
|
6
6
|
import { n as u } from "./input-modality-XE0B7yCn.js";
|
|
7
|
-
import { t as d } from "./with-translations-
|
|
8
|
-
import {
|
|
9
|
-
import { t as
|
|
10
|
-
import { n as
|
|
11
|
-
import "./icon-button-
|
|
12
|
-
import "./button-
|
|
7
|
+
import { t as d } from "./with-translations-DSfo7eL-.js";
|
|
8
|
+
import { o as f, t as p } from "./shadow-resets-kAFcguCG.js";
|
|
9
|
+
import { t as m } from "./class-map-07EioFee.js";
|
|
10
|
+
import { n as h, r as g, t as _ } from "./date-picker.i18n-Dsc_M5QK.js";
|
|
11
|
+
import "./icon-button-CkNgX7Ra.js";
|
|
12
|
+
import "./button-DpSJe6ns.js";
|
|
13
13
|
import "./button-bar-Bw46AWOo.js";
|
|
14
|
-
import "./menu-
|
|
15
|
-
import { t as
|
|
16
|
-
import { t as
|
|
17
|
-
import { t as
|
|
14
|
+
import "./menu-CkMJUE0H.js";
|
|
15
|
+
import { t as v } from "./described-by-mixin-DSeADwWP.js";
|
|
16
|
+
import { t as y } from "./form-associated-mixin-9cC5HSCG.js";
|
|
17
|
+
import { t as b } from "./reflect-non-default-Bu3rpCvg.js";
|
|
18
|
+
import { t as x } from "./defer-focus-F73ud2D9.js";
|
|
18
19
|
// src/utilities/resolve-date-bound.ts
|
|
19
|
-
function
|
|
20
|
+
function S(e, t, n) {
|
|
20
21
|
if (t < 1 || t > 12 || n < 1) return !1;
|
|
21
22
|
let r = new Date(Date.UTC(e, t - 1, n));
|
|
22
23
|
return r.getUTCFullYear() === e && r.getUTCMonth() === t - 1 && r.getUTCDate() === n;
|
|
23
24
|
}
|
|
24
|
-
function
|
|
25
|
-
return
|
|
25
|
+
function C(e, t, n) {
|
|
26
|
+
return S(e, t, n) ? `${String(e).padStart(4, "0")}-${String(t).padStart(2, "0")}-${String(n).padStart(2, "0")}` : null;
|
|
26
27
|
}
|
|
27
|
-
function
|
|
28
|
+
function w(e, t) {
|
|
28
29
|
return new Date(Date.UTC(e, t, 0)).getUTCDate();
|
|
29
30
|
}
|
|
30
|
-
var
|
|
31
|
-
function
|
|
31
|
+
var T = /^(\d{4})-(\d{2})-(\d{2})$/, E = /^today(?:([+-])(\d+)([dwmy]))?$/;
|
|
32
|
+
function D(e, t = /* @__PURE__ */ new Date()) {
|
|
32
33
|
let n = e.trim();
|
|
33
34
|
if (n === "") return "";
|
|
34
|
-
let r =
|
|
35
|
-
if (r) return
|
|
36
|
-
let i =
|
|
35
|
+
let r = T.exec(n);
|
|
36
|
+
if (r) return S(Number(r[1]), Number(r[2]), Number(r[3])) ? n : "";
|
|
37
|
+
let i = E.exec(n);
|
|
37
38
|
if (!i) return "";
|
|
38
39
|
let a = t.getFullYear(), o = t.getMonth() + 1, s = t.getDate();
|
|
39
40
|
if (i[1]) {
|
|
@@ -43,13 +44,13 @@ function T(e, t = /* @__PURE__ */ new Date()) {
|
|
|
43
44
|
a = n.getUTCFullYear(), o = n.getUTCMonth() + 1, s = n.getUTCDate();
|
|
44
45
|
} else {
|
|
45
46
|
let n = e * (t === "y" ? 12 : 1), r = a * 12 + (o - 1) + n;
|
|
46
|
-
a = Math.floor(r / 12), o = (r % 12 + 12) % 12 + 1, s = Math.min(s,
|
|
47
|
+
a = Math.floor(r / 12), o = (r % 12 + 12) % 12 + 1, s = Math.min(s, w(a, o));
|
|
47
48
|
}
|
|
48
49
|
}
|
|
49
|
-
return
|
|
50
|
+
return C(a, o, s) ?? "";
|
|
50
51
|
}
|
|
51
52
|
// src/components/inputs/date-picker/date-picker.styles.ts
|
|
52
|
-
var
|
|
53
|
+
var O = s`
|
|
53
54
|
:host {
|
|
54
55
|
box-sizing: border-box;
|
|
55
56
|
}
|
|
@@ -94,8 +95,9 @@ var E = s`
|
|
|
94
95
|
--_date-picker-day-is-outside-month-content-color: var(--semantics-content-secondary-color);
|
|
95
96
|
--_date-picker-day-is-unavailable-content-color: var(--semantics-content-secondary-color);
|
|
96
97
|
|
|
97
|
-
${
|
|
98
|
+
${p}
|
|
98
99
|
display: block;
|
|
100
|
+
isolation: isolate;
|
|
99
101
|
/* Stated, not fit-content: the calendar inside is sized in percentages, so
|
|
100
102
|
measuring it from here is circular and resolves to the container. The
|
|
101
103
|
width attribute (--_date-picker-width) overrides the intrinsic seven-cell width;
|
|
@@ -417,13 +419,7 @@ var E = s`
|
|
|
417
419
|
/* ## Announcer */
|
|
418
420
|
|
|
419
421
|
.date-picker__announcer {
|
|
420
|
-
|
|
421
|
-
clip-path: inset(50%);
|
|
422
|
-
margin: -1px;
|
|
423
|
-
width: 1px;
|
|
424
|
-
height: 1px;
|
|
425
|
-
overflow: hidden;
|
|
426
|
-
white-space: nowrap;
|
|
422
|
+
${f}
|
|
427
423
|
}
|
|
428
424
|
|
|
429
425
|
|
|
@@ -438,8 +434,8 @@ var E = s`
|
|
|
438
434
|
outline: 2px solid CanvasText;
|
|
439
435
|
}
|
|
440
436
|
}
|
|
441
|
-
`,
|
|
442
|
-
function
|
|
437
|
+
`, k = "date-picker-title";
|
|
438
|
+
function A(e, t, r, i, a) {
|
|
443
439
|
return i < 2 ? n`<span class="date-picker__title-label">${r}</span>` : n`
|
|
444
440
|
<button class="date-picker__title-${t}-button"
|
|
445
441
|
type="button"
|
|
@@ -456,16 +452,16 @@ function O(e, t, r, i, a) {
|
|
|
456
452
|
</button>
|
|
457
453
|
`;
|
|
458
454
|
}
|
|
459
|
-
function
|
|
455
|
+
function j(e) {
|
|
460
456
|
let t = e._months, i = e._years;
|
|
461
457
|
return n`
|
|
462
458
|
<div class="date-picker__header">
|
|
463
459
|
<h2 class="date-picker__title"
|
|
464
|
-
id=${
|
|
460
|
+
id=${k}
|
|
465
461
|
aria-live="polite"
|
|
466
462
|
>
|
|
467
|
-
${
|
|
468
|
-
${
|
|
463
|
+
${A(e, "month", e._monthLabel, t.length, e._monthMenuOpen)}
|
|
464
|
+
${A(e, "year", String(e._viewYear), i.length, e._yearMenuOpen)}
|
|
469
465
|
</h2>
|
|
470
466
|
${t.length < 2 ? r : n`
|
|
471
467
|
<nldd-menu class="date-picker__month-menu"
|
|
@@ -477,7 +473,7 @@ function k(e) {
|
|
|
477
473
|
${e._monthMenuRendered ? t.map((t) => n`
|
|
478
474
|
<nldd-menu-item
|
|
479
475
|
type="radio"
|
|
480
|
-
text=${e._t(`components.date-picker.${
|
|
476
|
+
text=${e._t(`components.date-picker.${_[t - 1]}-capitalize`)}
|
|
481
477
|
?selected=${t === e._viewMonth}
|
|
482
478
|
@click=${() => e._handleMonthSelect(t)}
|
|
483
479
|
></nldd-menu-item>
|
|
@@ -504,13 +500,13 @@ function k(e) {
|
|
|
504
500
|
`}
|
|
505
501
|
${e._stacked ? r : n`
|
|
506
502
|
<div class="date-picker__pagination">
|
|
507
|
-
${
|
|
503
|
+
${M(e, "sm", "neutral-base")}
|
|
508
504
|
</div>
|
|
509
505
|
`}
|
|
510
506
|
</div>
|
|
511
507
|
`;
|
|
512
508
|
}
|
|
513
|
-
function
|
|
509
|
+
function M(e, t, r) {
|
|
514
510
|
return n`
|
|
515
511
|
<nldd-button-bar
|
|
516
512
|
size=${t}
|
|
@@ -532,7 +528,7 @@ function A(e, t, r) {
|
|
|
532
528
|
</nldd-button-bar>
|
|
533
529
|
`;
|
|
534
530
|
}
|
|
535
|
-
function
|
|
531
|
+
function N(e, t) {
|
|
536
532
|
return n`
|
|
537
533
|
<div class="date-picker__footer">
|
|
538
534
|
<div class="date-picker__footer-start">
|
|
@@ -546,12 +542,12 @@ function j(e, t) {
|
|
|
546
542
|
` : r}
|
|
547
543
|
</div>
|
|
548
544
|
<div class="date-picker__footer-end">
|
|
549
|
-
${t ?
|
|
545
|
+
${t ? M(e, "md", "neutral-tinted") : r}
|
|
550
546
|
</div>
|
|
551
547
|
</div>
|
|
552
548
|
`;
|
|
553
549
|
}
|
|
554
|
-
function
|
|
550
|
+
function P(e) {
|
|
555
551
|
return n`
|
|
556
552
|
<tr>
|
|
557
553
|
${e.weekNumbers ? n`
|
|
@@ -565,21 +561,21 @@ function M(e) {
|
|
|
565
561
|
${e._weekdays.map((t) => n`
|
|
566
562
|
<th class="date-picker__weekday-header-cell"
|
|
567
563
|
scope="col"
|
|
568
|
-
abbr=${e._t(`components.date-picker.${
|
|
564
|
+
abbr=${e._t(`components.date-picker.${h[t]}-lowercase`)}
|
|
569
565
|
>
|
|
570
|
-
${e._t(`components.date-picker.${
|
|
566
|
+
${e._t(`components.date-picker.${h[t]}-short-lowercase`)}
|
|
571
567
|
</th>
|
|
572
568
|
`)}
|
|
573
569
|
</tr>
|
|
574
570
|
`;
|
|
575
571
|
}
|
|
576
|
-
function
|
|
572
|
+
function F(e, t) {
|
|
577
573
|
let i = e._isUnavailable(t), a = e._isSelected(t), o = e._bandFor(t);
|
|
578
574
|
return n`
|
|
579
575
|
<td class="date-picker__day-cell"
|
|
580
576
|
aria-selected=${a ? "true" : r}
|
|
581
577
|
>
|
|
582
|
-
<button class=${
|
|
578
|
+
<button class=${m({
|
|
583
579
|
"date-picker__day": !0,
|
|
584
580
|
"is-selected": a,
|
|
585
581
|
"is-in-range": e._isInRange(t),
|
|
@@ -599,7 +595,7 @@ function N(e, t) {
|
|
|
599
595
|
@pointerdown=${(n) => e._handleDayPointerDown(t, n)}
|
|
600
596
|
@mouseenter=${() => e._handleDayHover(t)}
|
|
601
597
|
>
|
|
602
|
-
${o === "none" ? r : n`<span class=${
|
|
598
|
+
${o === "none" ? r : n`<span class=${m({
|
|
603
599
|
"date-picker__day-range-indicator": !0,
|
|
604
600
|
"is-start": o === "start",
|
|
605
601
|
"is-end": o === "end"
|
|
@@ -612,14 +608,14 @@ function N(e, t) {
|
|
|
612
608
|
</td>
|
|
613
609
|
`;
|
|
614
610
|
}
|
|
615
|
-
function
|
|
611
|
+
function I(e) {
|
|
616
612
|
return n`
|
|
617
613
|
<div class="date-picker">
|
|
618
|
-
${
|
|
614
|
+
${j(e)}
|
|
619
615
|
<table class="date-picker__calendar"
|
|
620
616
|
role="grid"
|
|
621
617
|
aria-label=${e.accessibleLabel || r}
|
|
622
|
-
aria-labelledby=${e.accessibleLabel ? r :
|
|
618
|
+
aria-labelledby=${e.accessibleLabel ? r : k}
|
|
623
619
|
@keydown=${e._handleKeydown}
|
|
624
620
|
@focusin=${e._handleDayFocusIn}
|
|
625
621
|
@focusout=${e._handleDayFocusOut}
|
|
@@ -627,7 +623,7 @@ function P(e) {
|
|
|
627
623
|
@mouseleave=${e._handleGridLeave}
|
|
628
624
|
>
|
|
629
625
|
<thead>
|
|
630
|
-
${
|
|
626
|
+
${P(e)}
|
|
631
627
|
</thead>
|
|
632
628
|
<tbody>
|
|
633
629
|
${e._weeks.map((t) => n`
|
|
@@ -640,12 +636,12 @@ function P(e) {
|
|
|
640
636
|
${e._weekNumber(t)}
|
|
641
637
|
</th>
|
|
642
638
|
` : r}
|
|
643
|
-
${t.map((t) =>
|
|
639
|
+
${t.map((t) => F(e, t))}
|
|
644
640
|
</tr>
|
|
645
641
|
`)}
|
|
646
642
|
</tbody>
|
|
647
643
|
</table>
|
|
648
|
-
${e._stacked || e._todayReachable ?
|
|
644
|
+
${e._stacked || e._todayReachable ? N(e, e._stacked) : r}
|
|
649
645
|
<div class="date-picker__announcer"
|
|
650
646
|
role="status"
|
|
651
647
|
aria-live="polite"
|
|
@@ -656,57 +652,57 @@ function P(e) {
|
|
|
656
652
|
`;
|
|
657
653
|
}
|
|
658
654
|
// src/components/inputs/date-picker/date-picker.ts
|
|
659
|
-
var
|
|
660
|
-
function
|
|
655
|
+
var L = /* @__PURE__ */ e({ NLDDDatePicker: () => Z }), R;
|
|
656
|
+
function z(e) {
|
|
661
657
|
let t = /^(\d{4})-(\d{2})-(\d{2})$/.exec(e);
|
|
662
658
|
if (!t) return null;
|
|
663
659
|
let n = new Date(Date.UTC(Number(t[1]), Number(t[2]) - 1, Number(t[3])));
|
|
664
660
|
return Number.isNaN(n.getTime()) ? null : n;
|
|
665
661
|
}
|
|
666
|
-
function
|
|
667
|
-
return
|
|
662
|
+
function B(e) {
|
|
663
|
+
return C(e.getUTCFullYear(), e.getUTCMonth() + 1, e.getUTCDate()) ?? "";
|
|
668
664
|
}
|
|
669
|
-
function
|
|
670
|
-
let n =
|
|
671
|
-
return n ? (n.setUTCDate(n.getUTCDate() + t),
|
|
665
|
+
function V(e, t) {
|
|
666
|
+
let n = z(e);
|
|
667
|
+
return n ? (n.setUTCDate(n.getUTCDate() + t), B(n)) : e;
|
|
672
668
|
}
|
|
673
|
-
function
|
|
674
|
-
let n =
|
|
669
|
+
function H(e, t) {
|
|
670
|
+
let n = z(e);
|
|
675
671
|
if (!n) return e;
|
|
676
672
|
let r = n.getUTCDate(), i = n.getUTCFullYear() * 12 + n.getUTCMonth() + t, a = Math.floor(i / 12), o = (i % 12 + 12) % 12 + 1, s = new Date(Date.UTC(a, o, 0)).getUTCDate();
|
|
677
|
-
return
|
|
673
|
+
return C(a, o, Math.min(r, s)) ?? e;
|
|
678
674
|
}
|
|
679
|
-
function
|
|
675
|
+
function U() {
|
|
680
676
|
let e = /* @__PURE__ */ new Date();
|
|
681
|
-
return
|
|
677
|
+
return C(e.getFullYear(), e.getMonth() + 1, e.getDate()) ?? "";
|
|
682
678
|
}
|
|
683
|
-
function
|
|
679
|
+
function W(e) {
|
|
684
680
|
return `${e.slice(0, 7)}-01`;
|
|
685
681
|
}
|
|
686
|
-
function
|
|
687
|
-
let t =
|
|
688
|
-
return t ?
|
|
682
|
+
function G(e) {
|
|
683
|
+
let t = z(e);
|
|
684
|
+
return t ? C(t.getUTCFullYear(), t.getUTCMonth() + 1, new Date(Date.UTC(t.getUTCFullYear(), t.getUTCMonth() + 1, 0)).getUTCDate()) ?? e : e;
|
|
689
685
|
}
|
|
690
|
-
function
|
|
691
|
-
return
|
|
686
|
+
function K(e) {
|
|
687
|
+
return z(e)?.getUTCDay() ?? 0;
|
|
692
688
|
}
|
|
693
|
-
function
|
|
694
|
-
return
|
|
689
|
+
function q(e, t) {
|
|
690
|
+
return V(e, -((K(e) - t + 7) % 7));
|
|
695
691
|
}
|
|
696
|
-
function
|
|
692
|
+
function J(e, t) {
|
|
697
693
|
let n = Number(e.slice(5, 7)), r = Number(e.slice(8, 10)), i = new Date(Date.UTC(t, n, 0)).getUTCDate();
|
|
698
|
-
return
|
|
694
|
+
return C(t, n, Math.min(r, i)) ?? e;
|
|
699
695
|
}
|
|
700
|
-
function
|
|
696
|
+
function Y(e, t) {
|
|
701
697
|
let n = Number(e.slice(0, 4)), r = Number(e.slice(8, 10)), i = new Date(Date.UTC(n, t, 0)).getUTCDate();
|
|
702
|
-
return
|
|
698
|
+
return C(n, t, Math.min(r, i)) ?? e;
|
|
703
699
|
}
|
|
704
|
-
function
|
|
700
|
+
function X(e, t, n) {
|
|
705
701
|
return t && e < t ? t : n && e > n ? n : e;
|
|
706
702
|
}
|
|
707
|
-
var
|
|
703
|
+
var Z = (R = class extends v(y(d(t, g))) {
|
|
708
704
|
constructor(...e) {
|
|
709
|
-
super(...e), this.width = "", this.accessibleLabel = "", this.weekNumbers = !1, this.firstDayOfWeek = 1, this.invalid = !1, this.value = "", this.start = "", this.end = "", this.range = !1, this.min = "", this.max = "", this._focused = "", this._view = "", this._anchor = "", this._hover = "", this._announcement = "", this._monthMenuOpen = !1, this._yearMenuOpen = !1, this._stacked = !1, this._handleStackedChange = () => {
|
|
705
|
+
super(...e), this.width = "", this.accessibleLabel = "", this.weekNumbers = !1, this.firstDayOfWeek = 1, this.invalid = !1, this.name = "", this.value = "", this.start = "", this.end = "", this.range = !1, this.min = "", this.max = "", this._focused = "", this._view = "", this._anchor = "", this._hover = "", this._announcement = "", this._monthMenuOpen = !1, this._yearMenuOpen = !1, this._stacked = !1, this._handleStackedChange = () => {
|
|
710
706
|
this._stacked = !!this._stackedQuery?.matches;
|
|
711
707
|
}, this._monthMenuRendered = !1, this._yearMenuRendered = !1, this._handleMonthMenuBeforeToggle = (e) => {
|
|
712
708
|
e.newState === "open" && (this._monthMenuRendered = !0);
|
|
@@ -739,15 +735,18 @@ var Y = (I = class extends _(d(t, h)) {
|
|
|
739
735
|
}, { once: !0 });
|
|
740
736
|
}
|
|
741
737
|
connectedCallback() {
|
|
742
|
-
super.connectedCallback(), this._focused || (this._focused = this._initialFocus()), this._view || (this._view =
|
|
738
|
+
super.connectedCallback(), this._focused || (this._focused = this._initialFocus()), this._view || (this._view = W(this._focused)), this._stackedQuery = window.matchMedia(`(max-width: ${l.smMax}), (pointer: coarse)`), this._stacked = this._stackedQuery.matches, this._stackedQuery.addEventListener("change", this._handleStackedChange);
|
|
743
739
|
}
|
|
744
740
|
disconnectedCallback() {
|
|
745
741
|
super.disconnectedCallback(), document.removeEventListener("pointerup", this._onDocumentPointerUp), this._stackedQuery?.removeEventListener("change", this._handleStackedChange);
|
|
746
742
|
}
|
|
743
|
+
formValue() {
|
|
744
|
+
return this.range ? this.start && this.end ? `${this.start}/${this.end}` : "" : this.value;
|
|
745
|
+
}
|
|
747
746
|
willUpdate(e) {
|
|
748
747
|
if (super.willUpdate(e), e.has("value") || e.has("start") || e.has("end")) {
|
|
749
748
|
let e = this.range ? this.start || this.end : this.value;
|
|
750
|
-
e &&
|
|
749
|
+
e && W(e) !== this._view && (this._view = W(e), this._focused = e);
|
|
751
750
|
}
|
|
752
751
|
}
|
|
753
752
|
updated(e) {
|
|
@@ -765,18 +764,18 @@ var Y = (I = class extends _(d(t, h)) {
|
|
|
765
764
|
return this.shadowRoot?.querySelector(".date-picker__day[tabindex=\"0\"]") ?? null;
|
|
766
765
|
}
|
|
767
766
|
focus(e) {
|
|
768
|
-
if (
|
|
767
|
+
if (x(this, e)) return;
|
|
769
768
|
let t = this._focusedCell();
|
|
770
769
|
t ? t.focus(e) : super.focus(e);
|
|
771
770
|
}
|
|
772
771
|
_initialFocus() {
|
|
773
|
-
return
|
|
772
|
+
return X((this.range ? this.start : this.value) || U(), this._min, this._max);
|
|
774
773
|
}
|
|
775
774
|
get _min() {
|
|
776
|
-
return
|
|
775
|
+
return D(this.min);
|
|
777
776
|
}
|
|
778
777
|
get _max() {
|
|
779
|
-
return
|
|
778
|
+
return D(this.max);
|
|
780
779
|
}
|
|
781
780
|
_isOutOfBounds(e) {
|
|
782
781
|
let t = this._min, n = this._max;
|
|
@@ -789,14 +788,14 @@ var Y = (I = class extends _(d(t, h)) {
|
|
|
789
788
|
return Array.from({ length: 7 }, (e, t) => (this.firstDayOfWeek + t) % 7);
|
|
790
789
|
}
|
|
791
790
|
get _weeks() {
|
|
792
|
-
let e = (
|
|
793
|
-
return Array.from({ length: 6 }, (e, n) => Array.from({ length: 7 }, (e, r) =>
|
|
791
|
+
let e = (K(this._view) - this.firstDayOfWeek + 7) % 7, t = V(this._view, -e);
|
|
792
|
+
return Array.from({ length: 6 }, (e, n) => Array.from({ length: 7 }, (e, r) => V(t, n * 7 + r)));
|
|
794
793
|
}
|
|
795
794
|
_isOutsideMonth(e) {
|
|
796
795
|
return e.slice(0, 7) !== this._view.slice(0, 7);
|
|
797
796
|
}
|
|
798
797
|
_weekNumber(e) {
|
|
799
|
-
let t =
|
|
798
|
+
let t = z(e.find((e) => K(e) === 4) ?? e[0]);
|
|
800
799
|
if (!t) return 0;
|
|
801
800
|
let n = new Date(Date.UTC(t.getUTCFullYear(), 0, 4));
|
|
802
801
|
return n.setUTCDate(n.getUTCDate() - (n.getUTCDay() + 6) % 7 + 3), 1 + Math.round((t.getTime() - n.getTime()) / 6048e5);
|
|
@@ -814,21 +813,21 @@ var Y = (I = class extends _(d(t, h)) {
|
|
|
814
813
|
return r < n ? [] : Array.from({ length: r - n + 1 }, (e, t) => n + t);
|
|
815
814
|
}
|
|
816
815
|
get _years() {
|
|
817
|
-
let e = Number(
|
|
816
|
+
let e = Number(U().slice(0, 4)), t = this._min ? Number(this._min.slice(0, 4)) : Math.min(e - 120, this._viewYear), n = this._max ? Number(this._max.slice(0, 4)) : Math.max(e + 20, this._viewYear);
|
|
818
817
|
return n < t ? [] : Array.from({ length: n - t + 1 }, (e, n) => t + n);
|
|
819
818
|
}
|
|
820
819
|
_handleMonthSelect(e) {
|
|
821
|
-
this._view =
|
|
820
|
+
this._view = W(X(Y(this._view, e), this._min, this._max)), this._focused = X(Y(this._focused, e), this._min, this._max), this._restoreFocus = !!this._focusedCell(), this._closeMenu(".date-picker__month-menu");
|
|
822
821
|
}
|
|
823
822
|
_handleYearSelect(e) {
|
|
824
|
-
this._view =
|
|
823
|
+
this._view = W(X(J(this._view, e), this._min, this._max)), this._focused = X(J(this._focused, e), this._min, this._max), this._restoreFocus = !!this._focusedCell(), this._closeMenu(".date-picker__year-menu");
|
|
825
824
|
}
|
|
826
825
|
_closeMenu(e) {
|
|
827
826
|
let t = this.shadowRoot?.querySelector(e);
|
|
828
827
|
t?.matches(":popover-open") && t.hidePopover?.();
|
|
829
828
|
}
|
|
830
829
|
get _monthLabel() {
|
|
831
|
-
return this._t(`components.date-picker.${
|
|
830
|
+
return this._t(`components.date-picker.${_[this._viewMonth - 1]}-capitalize`);
|
|
832
831
|
}
|
|
833
832
|
_isSelected(e) {
|
|
834
833
|
if (!this.range) return e === this.value;
|
|
@@ -847,12 +846,12 @@ var Y = (I = class extends _(d(t, h)) {
|
|
|
847
846
|
return this.start && this.end ? [this.start, this.end] : this._anchor && this._hover ? this._anchor < this._hover ? [this._anchor, this._hover] : [this._hover, this._anchor] : ["", ""];
|
|
848
847
|
}
|
|
849
848
|
_isToday(e) {
|
|
850
|
-
return e ===
|
|
849
|
+
return e === U();
|
|
851
850
|
}
|
|
852
851
|
_dateText(e) {
|
|
853
|
-
let t =
|
|
852
|
+
let t = z(e);
|
|
854
853
|
if (!t) return "";
|
|
855
|
-
let n = this._t(`components.date-picker.${
|
|
854
|
+
let n = this._t(`components.date-picker.${h[t.getUTCDay()]}-lowercase`), r = this._t(`components.date-picker.${_[t.getUTCMonth()]}-lowercase`);
|
|
856
855
|
return this._t("components.date-picker.date-label", {
|
|
857
856
|
weekday: n,
|
|
858
857
|
day: t.getUTCDate(),
|
|
@@ -861,46 +860,46 @@ var Y = (I = class extends _(d(t, h)) {
|
|
|
861
860
|
});
|
|
862
861
|
}
|
|
863
862
|
_dayLabel(e) {
|
|
864
|
-
if (!
|
|
863
|
+
if (!z(e)) return "";
|
|
865
864
|
let t = [this._dateText(e)];
|
|
866
865
|
return this._isToday(e) && t.push(this._t("components.date-picker.today-lowercase")), this.range && this._anchor !== "" && this.end === "" && e === this._anchor ? t.push(this._t("components.date-picker.range-anchor-lowercase-label")) : (this.range && e === this.start && t.push(this._t("components.date-picker.range-start-lowercase-label")), this.range && e === this.end && t.push(this._t("components.date-picker.range-end-lowercase-label"))), this._isInRange(e) && t.push(this._t("components.date-picker.in-range-lowercase-label")), this._isUnavailable(e) && t.push(this._t("components.date-picker.unavailable-lowercase-label")), t.join(", ");
|
|
867
866
|
}
|
|
868
867
|
_shiftView(e) {
|
|
869
|
-
let t =
|
|
868
|
+
let t = H(this._view, e);
|
|
870
869
|
this._view = t;
|
|
871
|
-
let n = Math.min(Number(this._focused.slice(8, 10)), Number(
|
|
872
|
-
this._focused =
|
|
870
|
+
let n = Math.min(Number(this._focused.slice(8, 10)), Number(G(t).slice(8, 10)));
|
|
871
|
+
this._focused = X(`${t.slice(0, 7)}-${String(n).padStart(2, "0")}`, this._min, this._max);
|
|
873
872
|
}
|
|
874
873
|
_moveFocus(e) {
|
|
875
|
-
let t =
|
|
876
|
-
this._focused = t,
|
|
874
|
+
let t = X(e, this._min, this._max);
|
|
875
|
+
this._focused = t, W(t) !== this._view && (this._view = W(t)), this._focusFromKeyboard = !0, this._restoreFocus = !0;
|
|
877
876
|
}
|
|
878
877
|
_handleKeydown(e) {
|
|
879
878
|
let t = this._focused, n;
|
|
880
879
|
switch (e.key) {
|
|
881
880
|
case "ArrowLeft":
|
|
882
|
-
n =
|
|
881
|
+
n = V(t, -1);
|
|
883
882
|
break;
|
|
884
883
|
case "ArrowRight":
|
|
885
|
-
n =
|
|
884
|
+
n = V(t, 1);
|
|
886
885
|
break;
|
|
887
886
|
case "ArrowUp":
|
|
888
|
-
n =
|
|
887
|
+
n = V(t, -7);
|
|
889
888
|
break;
|
|
890
889
|
case "ArrowDown":
|
|
891
|
-
n =
|
|
890
|
+
n = V(t, 7);
|
|
892
891
|
break;
|
|
893
892
|
case "Home":
|
|
894
|
-
n =
|
|
893
|
+
n = q(t, this.firstDayOfWeek);
|
|
895
894
|
break;
|
|
896
895
|
case "End":
|
|
897
|
-
n =
|
|
896
|
+
n = V(q(t, this.firstDayOfWeek), 6);
|
|
898
897
|
break;
|
|
899
898
|
case "PageUp":
|
|
900
|
-
n =
|
|
899
|
+
n = H(t, e.shiftKey ? -12 : -1);
|
|
901
900
|
break;
|
|
902
901
|
case "PageDown":
|
|
903
|
-
n =
|
|
902
|
+
n = H(t, e.shiftKey ? 12 : 1);
|
|
904
903
|
break;
|
|
905
904
|
case "Enter":
|
|
906
905
|
case " ":
|
|
@@ -938,11 +937,11 @@ var Y = (I = class extends _(d(t, h)) {
|
|
|
938
937
|
return (this.shadowRoot?.elementFromPoint(e.clientX, e.clientY))?.closest(".date-picker__day")?.getAttribute("data-date") ?? "";
|
|
939
938
|
}
|
|
940
939
|
_select(e) {
|
|
941
|
-
this._isUnavailable(e) || (this._focused = e, this._isOutsideMonth(e) && (this._view =
|
|
940
|
+
this._isUnavailable(e) || (this._focused = e, this._isOutsideMonth(e) && (this._view = W(e)), this.range ? !this._anchor || this.start && this.end ? this._beginRange(e) : this._commitRange(this._anchor, e) : (this.value = e, this._announce(this._t("components.date-picker.date-selected-text", { date: this._dateText(e) })), this._emit("change", { value: e })));
|
|
942
941
|
}
|
|
943
942
|
_rangeHasUnavailable(e, t) {
|
|
944
943
|
let [n, r] = e < t ? [e, t] : [t, e];
|
|
945
|
-
for (let e = n; e <= r; e =
|
|
944
|
+
for (let e = n; e <= r; e = V(e, 1)) if (this._isUnavailable(e)) return !0;
|
|
946
945
|
return !1;
|
|
947
946
|
}
|
|
948
947
|
_commitRange(e, t) {
|
|
@@ -971,37 +970,44 @@ var Y = (I = class extends _(d(t, h)) {
|
|
|
971
970
|
}));
|
|
972
971
|
}
|
|
973
972
|
get _todayReachable() {
|
|
974
|
-
return !this._isOutOfBounds(
|
|
973
|
+
return !this._isOutOfBounds(U());
|
|
975
974
|
}
|
|
976
975
|
_handleToday() {
|
|
977
|
-
let e =
|
|
978
|
-
this._view =
|
|
976
|
+
let e = U();
|
|
977
|
+
this._view = W(e), this._focused = e;
|
|
979
978
|
}
|
|
980
979
|
describedTarget() {
|
|
981
980
|
return this.shadowRoot?.querySelector("[role=\"grid\"]") ?? null;
|
|
982
981
|
}
|
|
983
982
|
render() {
|
|
984
|
-
return
|
|
983
|
+
return I(this);
|
|
985
984
|
}
|
|
986
|
-
},
|
|
985
|
+
}, R.styles = O, R.isFormInput = !0, R.formProperties = [
|
|
986
|
+
"value",
|
|
987
|
+
"start",
|
|
988
|
+
"end"
|
|
989
|
+
], R);
|
|
987
990
|
i([o({
|
|
988
991
|
reflect: !0,
|
|
989
|
-
converter:
|
|
990
|
-
})],
|
|
992
|
+
converter: b("")
|
|
993
|
+
})], Z.prototype, "width", void 0), i([o({
|
|
991
994
|
type: String,
|
|
992
995
|
attribute: "accessible-label"
|
|
993
|
-
})],
|
|
996
|
+
})], Z.prototype, "accessibleLabel", void 0), i([o({
|
|
994
997
|
type: Boolean,
|
|
995
998
|
reflect: !0,
|
|
996
999
|
attribute: "week-numbers"
|
|
997
|
-
})],
|
|
1000
|
+
})], Z.prototype, "weekNumbers", void 0), i([o({
|
|
998
1001
|
type: Number,
|
|
999
1002
|
attribute: "first-day-of-week"
|
|
1000
|
-
})],
|
|
1003
|
+
})], Z.prototype, "firstDayOfWeek", void 0), i([o({
|
|
1001
1004
|
type: Boolean,
|
|
1002
1005
|
reflect: !0
|
|
1003
|
-
})],
|
|
1006
|
+
})], Z.prototype, "invalid", void 0), i([o({
|
|
1007
|
+
reflect: !0,
|
|
1008
|
+
converter: b("")
|
|
1009
|
+
})], Z.prototype, "name", void 0), i([o({ type: String })], Z.prototype, "value", void 0), i([o({ type: String })], Z.prototype, "start", void 0), i([o({ type: String })], Z.prototype, "end", void 0), i([o({
|
|
1004
1010
|
type: Boolean,
|
|
1005
1011
|
reflect: !0
|
|
1006
|
-
})],
|
|
1007
|
-
export {
|
|
1012
|
+
})], Z.prototype, "range", void 0), i([o({ type: String })], Z.prototype, "min", void 0), i([o({ type: String })], Z.prototype, "max", void 0), i([o({ attribute: !1 })], Z.prototype, "isDateUnavailable", void 0), i([a()], Z.prototype, "_focused", void 0), i([a()], Z.prototype, "_view", void 0), i([a()], Z.prototype, "_anchor", void 0), i([a()], Z.prototype, "_hover", void 0), i([a()], Z.prototype, "_announcement", void 0), i([a()], Z.prototype, "_monthMenuOpen", void 0), i([a()], Z.prototype, "_yearMenuOpen", void 0), i([a()], Z.prototype, "_stacked", void 0), i([a()], Z.prototype, "_monthMenuRendered", void 0), i([a()], Z.prototype, "_yearMenuRendered", void 0), Z = i([c("nldd-date-picker")], Z);
|
|
1013
|
+
export { D as n, C as r, L as t };
|
|
@@ -4,7 +4,7 @@ import { t as a } from "./custom-element-BW8Ua4c7.js";
|
|
|
4
4
|
import { t as o } from "./reorder-handle-mixin-DIkeFpRU.js";
|
|
5
5
|
import { t as s } from "./reflect-non-default-Bu3rpCvg.js";
|
|
6
6
|
import { r as c, t as l } from "./text-wrap-DJ9PcwZ4.js";
|
|
7
|
-
import { i as u, t as d } from "./shadow-resets-
|
|
7
|
+
import { i as u, t as d } from "./shadow-resets-kAFcguCG.js";
|
|
8
8
|
import { t as f } from "./visibility-mixin-BgnkZDZM.js";
|
|
9
9
|
import { t as p } from "./row-header-mixin-CnCxMteQ.js";
|
|
10
10
|
// src/components/lists-and-tables/cells/description-cell/description-cell.styles.ts
|