@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
|
@@ -5,7 +5,7 @@ import { t as s } from "./query-ChDzi9FQ.js";
|
|
|
5
5
|
import { t as c } from "./form-associated-mixin-9cC5HSCG.js";
|
|
6
6
|
import { t as l } from "./implicit-submission-Csbcor_E.js";
|
|
7
7
|
import { t as u } from "./reflect-non-default-Bu3rpCvg.js";
|
|
8
|
-
import { t as d } from "./shadow-resets-
|
|
8
|
+
import { t as d } from "./shadow-resets-kAFcguCG.js";
|
|
9
9
|
import "./icon-C_xeQP4j.js";
|
|
10
10
|
import { t as f } from "./described-by-mixin-DSeADwWP.js";
|
|
11
11
|
import { r as p } from "./element-state-D-J_cHEV.js";
|
|
@@ -34,6 +34,7 @@ var g = a`
|
|
|
34
34
|
|
|
35
35
|
${d}
|
|
36
36
|
display: block;
|
|
37
|
+
isolation: isolate;
|
|
37
38
|
width: var(--_text-field-width);
|
|
38
39
|
max-width: 100%;
|
|
39
40
|
-webkit-tap-highlight-color: transparent;
|
|
@@ -4,22 +4,22 @@ import { t as c } from "./custom-element-BW8Ua4c7.js";
|
|
|
4
4
|
import { t as l } from "./form-associated-mixin-9cC5HSCG.js";
|
|
5
5
|
import { t as u } from "./implicit-submission-Csbcor_E.js";
|
|
6
6
|
import { t as d } from "./reflect-non-default-Bu3rpCvg.js";
|
|
7
|
-
import { t as f } from "./shadow-resets-
|
|
7
|
+
import { t as f } from "./shadow-resets-kAFcguCG.js";
|
|
8
8
|
import { n as p } from "./breakpoints-Cwor8TRP.js";
|
|
9
|
-
import "./icon-button-
|
|
9
|
+
import "./icon-button-CkNgX7Ra.js";
|
|
10
10
|
import "./icon-C_xeQP4j.js";
|
|
11
|
-
import "./popover-
|
|
11
|
+
import "./popover-LljgfgHS.js";
|
|
12
12
|
import "./container-BxfHTSXb.js";
|
|
13
13
|
import "./spacer-BDRDeRQr.js";
|
|
14
|
-
import "./button-
|
|
15
|
-
import "./top-title-bar-
|
|
16
|
-
import { a as m, c as h, i as g, n as _, o as v, r as y, s as b } from "./time-picker-
|
|
14
|
+
import "./button-DpSJe6ns.js";
|
|
15
|
+
import "./top-title-bar-M3NiRgr_.js";
|
|
16
|
+
import { a as m, c as h, i as g, n as _, o as v, r as y, s as b } from "./time-picker-BYhEzGJL.js";
|
|
17
17
|
import { t as x } from "./time-field.i18n-BM6qGbmN.js";
|
|
18
18
|
import { t as S } from "./described-by-mixin-DSeADwWP.js";
|
|
19
|
-
import {
|
|
20
|
-
import { t as
|
|
19
|
+
import { t as C } from "./picker-popover-controller-dE7AINjc.js";
|
|
20
|
+
import { t as w } from "./with-translations-DSfo7eL-.js";
|
|
21
21
|
// src/components/inputs/time-field/time-field.styles.ts
|
|
22
|
-
var
|
|
22
|
+
var T = i(p.smMax), E = s`
|
|
23
23
|
:host {
|
|
24
24
|
box-sizing: border-box;
|
|
25
25
|
}
|
|
@@ -222,13 +222,13 @@ var E = i(p.smMax), D = s`
|
|
|
222
222
|
}
|
|
223
223
|
|
|
224
224
|
|
|
225
|
-
@media (max-width: ${
|
|
225
|
+
@media (max-width: ${T}) {
|
|
226
226
|
.time-field__picker-confirm {
|
|
227
227
|
display: none;
|
|
228
228
|
}
|
|
229
229
|
}
|
|
230
|
-
`,
|
|
231
|
-
function
|
|
230
|
+
`, D = "calc(var(--semantics-controls-md-min-size) * 3 + var(--primitives-space-48) + var(--primitives-space-16) * 2)";
|
|
231
|
+
function O(e) {
|
|
232
232
|
let r = e.invalid ? "invalid" : e.valid ? "valid" : "";
|
|
233
233
|
return r ? t`
|
|
234
234
|
<div class="time-field__validation-icon-area">
|
|
@@ -241,7 +241,7 @@ function k(e) {
|
|
|
241
241
|
</div>
|
|
242
242
|
` : n;
|
|
243
243
|
}
|
|
244
|
-
function
|
|
244
|
+
function k(e) {
|
|
245
245
|
if (e.noPicker || e.readonly) return n;
|
|
246
246
|
let r = e.size === "sm" ? "xs" : "sm";
|
|
247
247
|
return t`
|
|
@@ -259,7 +259,7 @@ function A(e) {
|
|
|
259
259
|
<nldd-popover
|
|
260
260
|
accessible-label=${e._pickerLabel}
|
|
261
261
|
placement="bottom-end"
|
|
262
|
-
width=${
|
|
262
|
+
width=${D}
|
|
263
263
|
@toggle=${e._handlePopoverToggle}
|
|
264
264
|
>
|
|
265
265
|
<nldd-top-title-bar
|
|
@@ -303,7 +303,7 @@ function A(e) {
|
|
|
303
303
|
</div>
|
|
304
304
|
`;
|
|
305
305
|
}
|
|
306
|
-
function
|
|
306
|
+
function A(e) {
|
|
307
307
|
return t`
|
|
308
308
|
<div class="time-field">
|
|
309
309
|
<input class="time-field__input"
|
|
@@ -323,17 +323,17 @@ function j(e) {
|
|
|
323
323
|
@change=${e._handleChange}
|
|
324
324
|
>
|
|
325
325
|
<div class="time-field__input-fade"></div>
|
|
326
|
+
${O(e)}
|
|
326
327
|
${k(e)}
|
|
327
|
-
${A(e)}
|
|
328
328
|
</div>
|
|
329
329
|
`;
|
|
330
330
|
}
|
|
331
331
|
// src/components/inputs/time-field/time-field.ts
|
|
332
|
-
var M, N
|
|
332
|
+
var j, M, N = 7, P = 3, F = (j = class extends S(l(w(e, x))) {
|
|
333
333
|
constructor(...e) {
|
|
334
|
-
super(...e), this.size = "md", this.width = "", this.placeholder = "", this.accessibleLabel = "", this.noPicker = !1, this.valid = !1, this.invalid = !1, this.name = "", this.inputId = "", this.value = "", this.min = "", this.max = "", this.step = 1, this.required = !1, this.autocomplete = "", this.readonly = !1, this.disabled = !1, this.
|
|
335
|
-
this._finePointer =
|
|
336
|
-
}, this._display = "", this._hasSlottedPicker = !1, this._pickerOpen = !1, this._focusTriggerOnClose = !1, this._valueBeforePicker = "", this._pickerState = "untouched", this._pickerSeed = "", this._handlePickerEscape = (e) => {
|
|
334
|
+
super(...e), this.size = "md", this.width = "", this.placeholder = "", this.accessibleLabel = "", this.noPicker = !1, this.valid = !1, this.invalid = !1, this.name = "", this.inputId = "", this.value = "", this.min = "", this.max = "", this.step = 1, this.required = !1, this.autocomplete = "", this.readonly = !1, this.disabled = !1, this._finePointer = !1, this._pickerRows = N, this._handlePointerChange = () => {
|
|
335
|
+
this._finePointer = M._getFinePointerQuery().matches;
|
|
336
|
+
}, this._display = "", this._hasSlottedPicker = !1, this._pickerOpen = !1, this._focusTriggerOnClose = !1, this._picker = new C(this, () => this._pickerTrigger), this._valueBeforePicker = "", this._pickerState = "untouched", this._pickerSeed = "", this._handlePickerEscape = (e) => {
|
|
337
337
|
e.key === "Escape" && (this._pickerState = "cancelled");
|
|
338
338
|
}, this._fitFrame = 0, this._handleWindowResize = () => {
|
|
339
339
|
cancelAnimationFrame(this._fitFrame), this._fitFrame = requestAnimationFrame(() => {
|
|
@@ -344,21 +344,18 @@ var M, N, P = 7, F = 3, I = (M = class extends S(l(e)) {
|
|
|
344
344
|
}
|
|
345
345
|
static _getFinePointerQuery() {
|
|
346
346
|
var e;
|
|
347
|
-
return (e =
|
|
347
|
+
return (e = M)._finePointerQuery ?? (e._finePointerQuery = matchMedia("(pointer: fine)")), M._finePointerQuery;
|
|
348
348
|
}
|
|
349
349
|
get _pickerButtonSize() {
|
|
350
350
|
return this._finePointer ? "sm" : "md";
|
|
351
351
|
}
|
|
352
352
|
connectedCallback() {
|
|
353
353
|
super.connectedCallback();
|
|
354
|
-
let e =
|
|
354
|
+
let e = M._getFinePointerQuery();
|
|
355
355
|
this._finePointer = e.matches, e.addEventListener("change", this._handlePointerChange);
|
|
356
356
|
}
|
|
357
357
|
disconnectedCallback() {
|
|
358
|
-
|
|
359
|
-
}
|
|
360
|
-
_t(e) {
|
|
361
|
-
return T(this.translations, x, e);
|
|
358
|
+
M._getFinePointerQuery().removeEventListener("change", this._handlePointerChange), document.removeEventListener("keydown", this._handlePickerEscape, !0), window.removeEventListener("resize", this._handleWindowResize), cancelAnimationFrame(this._fitFrame), super.disconnectedCallback();
|
|
362
359
|
}
|
|
363
360
|
get _fieldLabel() {
|
|
364
361
|
return this.accessibleLabel || this._t("components.time-field.default-label");
|
|
@@ -419,13 +416,10 @@ var M, N, P = 7, F = 3, I = (M = class extends S(l(e)) {
|
|
|
419
416
|
_handlePopoverToggle(e) {
|
|
420
417
|
if (this._pickerOpen = e.newState === "open", this._pickerOpen ? this._openPicker() : this._settlePicker(), this._pickerOpen) return;
|
|
421
418
|
let t = this._focusTriggerOnClose;
|
|
422
|
-
this._focusTriggerOnClose = !1,
|
|
423
|
-
let e = this._pickerTrigger;
|
|
424
|
-
e && (t || w(this)) && C(e);
|
|
425
|
-
});
|
|
419
|
+
this._focusTriggerOnClose = !1, this._picker.restoreFocus(t);
|
|
426
420
|
}
|
|
427
421
|
_openPicker() {
|
|
428
|
-
this._valueBeforePicker = this.value, this._pickerState = "untouched", this._pickerSeed = this.value || h(this._rules, /* @__PURE__ */ new Date()), this._pickerRows =
|
|
422
|
+
this._valueBeforePicker = this.value, this._pickerState = "untouched", this._pickerSeed = this.value || h(this._rules, /* @__PURE__ */ new Date()), this._pickerRows = N, document.addEventListener("keydown", this._handlePickerEscape, !0), window.addEventListener("resize", this._handleWindowResize), this.updateComplete.then(async () => {
|
|
429
423
|
let e = this._slottedPicker ?? this.shadowRoot?.querySelector("nldd-time-picker");
|
|
430
424
|
e && (await e.updateComplete, e.scrollSelectedIntoView(), this._slottedPicker || await this._fitPickerRows(e));
|
|
431
425
|
});
|
|
@@ -437,7 +431,7 @@ var M, N, P = 7, F = 3, I = (M = class extends S(l(e)) {
|
|
|
437
431
|
if (!Number.isFinite(n)) return;
|
|
438
432
|
let r = e.shadowRoot?.querySelector(".time-picker__list-item")?.getBoundingClientRect().height ?? 0;
|
|
439
433
|
if (!r) return;
|
|
440
|
-
let i = t.shadowRoot?.querySelector(".popover__scroller"), a = t.offsetHeight + (i ? i.scrollHeight - i.clientHeight : 0), o = Math.min(
|
|
434
|
+
let i = t.shadowRoot?.querySelector(".popover__scroller"), a = t.offsetHeight + (i ? i.scrollHeight - i.clientHeight : 0), o = Math.min(N, Math.max(P, this._pickerRows + Math.floor((n - a) / r)));
|
|
441
435
|
o !== this._pickerRows && (this._pickerRows = o, await this.updateComplete, await e.updateComplete, e.scrollSelectedIntoView());
|
|
442
436
|
}
|
|
443
437
|
_settlePicker() {
|
|
@@ -502,48 +496,48 @@ var M, N, P = 7, F = 3, I = (M = class extends S(l(e)) {
|
|
|
502
496
|
}
|
|
503
497
|
}
|
|
504
498
|
render() {
|
|
505
|
-
return
|
|
499
|
+
return A(this);
|
|
506
500
|
}
|
|
507
|
-
},
|
|
501
|
+
}, M = j, j.shadowRootOptions = {
|
|
508
502
|
...e.shadowRootOptions,
|
|
509
503
|
delegatesFocus: !0
|
|
510
|
-
},
|
|
504
|
+
}, j.styles = E, j.formProperties = ["value"], j.isFormInput = !0, j.isTextEntry = !0, j.blocksImplicitSubmission = !0, j._finePointerQuery = null, j);
|
|
511
505
|
r([o({
|
|
512
506
|
reflect: !0,
|
|
513
507
|
converter: d("md")
|
|
514
|
-
})],
|
|
508
|
+
})], F.prototype, "size", void 0), r([o({
|
|
515
509
|
reflect: !0,
|
|
516
510
|
converter: d("")
|
|
517
|
-
})],
|
|
511
|
+
})], F.prototype, "width", void 0), r([o({
|
|
518
512
|
reflect: !0,
|
|
519
513
|
converter: d("")
|
|
520
|
-
})],
|
|
514
|
+
})], F.prototype, "placeholder", void 0), r([o({
|
|
521
515
|
type: String,
|
|
522
516
|
attribute: "accessible-label"
|
|
523
|
-
})],
|
|
517
|
+
})], F.prototype, "accessibleLabel", void 0), r([o({
|
|
524
518
|
type: Boolean,
|
|
525
519
|
reflect: !0,
|
|
526
520
|
attribute: "no-picker"
|
|
527
|
-
})],
|
|
521
|
+
})], F.prototype, "noPicker", void 0), r([o({
|
|
528
522
|
type: Boolean,
|
|
529
523
|
reflect: !0
|
|
530
|
-
})],
|
|
524
|
+
})], F.prototype, "valid", void 0), r([o({
|
|
531
525
|
type: Boolean,
|
|
532
526
|
reflect: !0
|
|
533
|
-
})],
|
|
527
|
+
})], F.prototype, "invalid", void 0), r([o({
|
|
534
528
|
reflect: !0,
|
|
535
529
|
converter: d("")
|
|
536
|
-
})],
|
|
530
|
+
})], F.prototype, "name", void 0), r([o({
|
|
537
531
|
type: String,
|
|
538
532
|
attribute: "input-id"
|
|
539
|
-
})],
|
|
533
|
+
})], F.prototype, "inputId", void 0), r([o({ type: String })], F.prototype, "value", void 0), r([o({ type: String })], F.prototype, "min", void 0), r([o({ type: String })], F.prototype, "max", void 0), r([o({ type: Number })], F.prototype, "step", void 0), r([o({
|
|
540
534
|
type: Boolean,
|
|
541
535
|
reflect: !0
|
|
542
|
-
})],
|
|
536
|
+
})], F.prototype, "required", void 0), r([o({ type: String })], F.prototype, "autocomplete", void 0), r([o({
|
|
543
537
|
type: Boolean,
|
|
544
538
|
reflect: !0
|
|
545
|
-
})],
|
|
539
|
+
})], F.prototype, "readonly", void 0), r([o({
|
|
546
540
|
type: Boolean,
|
|
547
541
|
reflect: !0
|
|
548
|
-
})],
|
|
549
|
-
export {
|
|
542
|
+
})], F.prototype, "disabled", void 0), r([a()], F.prototype, "_finePointer", void 0), r([a()], F.prototype, "_pickerRows", void 0), r([a()], F.prototype, "_display", void 0), r([a()], F.prototype, "_hasSlottedPicker", void 0), r([a()], F.prototype, "_pickerOpen", void 0), r([a()], F.prototype, "_pickerSeed", void 0), F = M = r([c("nldd-time-field")], F);
|
|
543
|
+
export { F as NLDDTimeField, g as parseTime, v as roundToStep };
|
|
@@ -3,15 +3,16 @@ import { n as t, o as n, r, t as i } from "./decorate-CIC8fGPN.js";
|
|
|
3
3
|
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 { t as l } from "./css-time-DmkAFd1y.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 "./time-picker.i18n-BilOCXlS.js";
|
|
8
8
|
import { t as f } from "./described-by-mixin-DSeADwWP.js";
|
|
9
|
-
import { t as p } from "./
|
|
10
|
-
import { t as m } from "./
|
|
11
|
-
import { t as h } from "./
|
|
12
|
-
import { t as g } from "./
|
|
9
|
+
import { t as p } from "./form-associated-mixin-9cC5HSCG.js";
|
|
10
|
+
import { t as m } from "./reflect-non-default-Bu3rpCvg.js";
|
|
11
|
+
import { t as h } from "./with-translations-DSfo7eL-.js";
|
|
12
|
+
import { t as g } from "./defer-focus-F73ud2D9.js";
|
|
13
|
+
import { t as _ } from "./layout-pass-B2ALRYc9.js";
|
|
13
14
|
// src/components/inputs/time-picker/time-picker.styles.ts
|
|
14
|
-
var
|
|
15
|
+
var v = s`
|
|
15
16
|
:host {
|
|
16
17
|
box-sizing: border-box;
|
|
17
18
|
}
|
|
@@ -43,6 +44,7 @@ var _ = s`
|
|
|
43
44
|
|
|
44
45
|
${u}
|
|
45
46
|
display: inline-block;
|
|
47
|
+
isolation: isolate;
|
|
46
48
|
width: var(--_time-picker-width);
|
|
47
49
|
max-width: 100%;
|
|
48
50
|
font: var(--_time-picker-list-item-font);
|
|
@@ -233,10 +235,10 @@ var _ = s`
|
|
|
233
235
|
}
|
|
234
236
|
`;
|
|
235
237
|
// src/components/inputs/time-picker/time-picker.template.ts
|
|
236
|
-
function
|
|
238
|
+
function y(e) {
|
|
237
239
|
return String(e).padStart(2, "0");
|
|
238
240
|
}
|
|
239
|
-
function
|
|
241
|
+
function b(e, t, i, a) {
|
|
240
242
|
return n`
|
|
241
243
|
<div class="time-picker__list"
|
|
242
244
|
role="presentation"
|
|
@@ -254,13 +256,13 @@ function y(e, t, i, a) {
|
|
|
254
256
|
data-selected=${i === a ? "true" : r}
|
|
255
257
|
@click=${() => e._select(t, i, !0)}
|
|
256
258
|
>
|
|
257
|
-
${
|
|
259
|
+
${y(i)}
|
|
258
260
|
</div>
|
|
259
261
|
`)}
|
|
260
262
|
</div>
|
|
261
263
|
`;
|
|
262
264
|
}
|
|
263
|
-
function
|
|
265
|
+
function x(e, t, i, a) {
|
|
264
266
|
let o = t === "hours" ? e._hours : e._minutes;
|
|
265
267
|
return n`
|
|
266
268
|
<span class="time-picker__value"
|
|
@@ -270,14 +272,14 @@ function b(e, t, i, a) {
|
|
|
270
272
|
aria-valuenow=${i ?? r}
|
|
271
273
|
aria-valuemin=${o[0] ?? r}
|
|
272
274
|
aria-valuemax=${o[o.length - 1] ?? r}
|
|
273
|
-
aria-valuetext=${i === null ? r :
|
|
275
|
+
aria-valuetext=${i === null ? r : y(i)}
|
|
274
276
|
@keydown=${(n) => e._handleKeydown(n, t)}
|
|
275
277
|
>
|
|
276
|
-
${i === null ? "" :
|
|
278
|
+
${i === null ? "" : y(i)}
|
|
277
279
|
</span>
|
|
278
280
|
`;
|
|
279
281
|
}
|
|
280
|
-
function
|
|
282
|
+
function S(e) {
|
|
281
283
|
return n`
|
|
282
284
|
<div class="time-picker"
|
|
283
285
|
role="group"
|
|
@@ -285,93 +287,93 @@ function x(e) {
|
|
|
285
287
|
@pointerenter=${e._handlePointerEnter}
|
|
286
288
|
>
|
|
287
289
|
<div class="time-picker__selection">
|
|
288
|
-
${
|
|
290
|
+
${x(e, "hours", e._centeredHour, e._t("components.time-picker.hours-label"))}
|
|
289
291
|
<span class="time-picker__value-separator"
|
|
290
292
|
aria-hidden="true"
|
|
291
293
|
>
|
|
292
294
|
:
|
|
293
295
|
</span>
|
|
294
|
-
${
|
|
296
|
+
${x(e, "minutes", e._centeredMinute, e._t("components.time-picker.minutes-label"))}
|
|
295
297
|
</div>
|
|
296
|
-
${
|
|
298
|
+
${b(e, "hours", e._hours, e._selectedHour)}
|
|
297
299
|
<span class="time-picker__gap"
|
|
298
300
|
aria-hidden="true"
|
|
299
301
|
></span>
|
|
300
|
-
${
|
|
302
|
+
${b(e, "minutes", e._minutes, e._selectedMinute)}
|
|
301
303
|
</div>
|
|
302
304
|
`;
|
|
303
305
|
}
|
|
304
306
|
// src/components/inputs/time-field/time-field.times.ts
|
|
305
|
-
var
|
|
306
|
-
function
|
|
307
|
+
var C = 1439;
|
|
308
|
+
function w(e) {
|
|
307
309
|
let [t, n] = e.split(":");
|
|
308
310
|
return Number(t) * 60 + Number(n);
|
|
309
311
|
}
|
|
310
|
-
function
|
|
312
|
+
function T(e) {
|
|
311
313
|
let t = Math.floor(e / 60), n = e % 60;
|
|
312
314
|
return `${String(t).padStart(2, "0")}:${String(n).padStart(2, "0")}`;
|
|
313
315
|
}
|
|
314
|
-
function
|
|
315
|
-
return e < 0 || e > 23 || t < 0 || t > 59 ? null :
|
|
316
|
+
function E(e, t) {
|
|
317
|
+
return e < 0 || e > 23 || t < 0 || t > 59 ? null : T(e * 60 + t);
|
|
316
318
|
}
|
|
317
|
-
function
|
|
319
|
+
function D(e) {
|
|
318
320
|
let t = e.trim();
|
|
319
321
|
if (t === "") return null;
|
|
320
322
|
let n = /^(\d{1,2})\s*[uh]\s*(\d{1,2})?$/i.exec(t);
|
|
321
|
-
if (n) return
|
|
323
|
+
if (n) return E(Number(n[1]), Number(n[2] ?? 0));
|
|
322
324
|
let r = /^(\d{1,2})\s*[:.,]\s*(\d{1,2})$/.exec(t);
|
|
323
|
-
if (r) return
|
|
325
|
+
if (r) return E(Number(r[1]), Number(r[2]));
|
|
324
326
|
let i = /^\d{1,4}$/.exec(t);
|
|
325
327
|
if (i) {
|
|
326
328
|
let e = i[0];
|
|
327
|
-
if (e.length <= 2) return
|
|
329
|
+
if (e.length <= 2) return E(Number(e), 0);
|
|
328
330
|
let t = e.length === 3 ? 1 : 2;
|
|
329
|
-
return
|
|
331
|
+
return E(Number(e.slice(0, t)), Number(e.slice(t)));
|
|
330
332
|
}
|
|
331
333
|
return null;
|
|
332
334
|
}
|
|
333
|
-
function
|
|
335
|
+
function O(e, t, n = "00:00") {
|
|
334
336
|
if (t <= 1) return e;
|
|
335
|
-
let r =
|
|
336
|
-
for (; i >
|
|
337
|
+
let r = w(n), i = r + Math.floor((w(e) - r) / t + .5) * t;
|
|
338
|
+
for (; i > C;) i -= t;
|
|
337
339
|
for (; i < 0;) i += t;
|
|
338
|
-
return
|
|
340
|
+
return T(i);
|
|
339
341
|
}
|
|
340
|
-
function
|
|
341
|
-
let r =
|
|
342
|
+
function k(e, t, n) {
|
|
343
|
+
let r = D(e) ?? "";
|
|
342
344
|
return {
|
|
343
345
|
min: r,
|
|
344
|
-
max:
|
|
346
|
+
max: D(t) ?? "",
|
|
345
347
|
step: Math.max(1, Math.round(n) || 1),
|
|
346
348
|
base: r || "00:00"
|
|
347
349
|
};
|
|
348
350
|
}
|
|
349
|
-
function
|
|
351
|
+
function A(e, t) {
|
|
350
352
|
return !(t.min && e < t.min || t.max && e > t.max);
|
|
351
353
|
}
|
|
352
|
-
function
|
|
353
|
-
let r =
|
|
354
|
+
function j(e, t, n) {
|
|
355
|
+
let r = D(e);
|
|
354
356
|
if (!r) return "";
|
|
355
|
-
let i = n ?
|
|
356
|
-
return
|
|
357
|
+
let i = n ? O(r, t.step, t.base) : r;
|
|
358
|
+
return A(i, t) ? i : "";
|
|
357
359
|
}
|
|
358
|
-
function
|
|
360
|
+
function M(e, t) {
|
|
359
361
|
if (!e) return null;
|
|
360
|
-
let n =
|
|
361
|
-
return
|
|
362
|
+
let n = w(t.base);
|
|
363
|
+
return T(n + Math.max(0, Math.floor((w(e) - n) / t.step)) * t.step);
|
|
362
364
|
}
|
|
363
|
-
function
|
|
365
|
+
function N(e, t) {
|
|
364
366
|
if (e.min) return e.min;
|
|
365
|
-
let n =
|
|
366
|
-
return !e.max || n <= e.max ? n :
|
|
367
|
+
let n = O(T(t.getHours() * 60 + t.getMinutes()), e.step, e.base);
|
|
368
|
+
return !e.max || n <= e.max ? n : M(e.max, e) ?? n;
|
|
367
369
|
}
|
|
368
|
-
function
|
|
369
|
-
let { step: r } = n, i =
|
|
370
|
-
return
|
|
370
|
+
function P(e, t, n) {
|
|
371
|
+
let { step: r } = n, i = w(n.base), a = w(O(e, r, n.base)), o = a === w(e) || r === 1 ? a + t * r : a, s = Math.min(Math.max(o, i % r), C), c = n.min ? w(n.min) : 0, l = n.max ? w(n.max) : C;
|
|
372
|
+
return T(Math.min(Math.max(s, c), l));
|
|
371
373
|
}
|
|
372
|
-
function
|
|
374
|
+
function F(e, t) {
|
|
373
375
|
if (!e.trim()) return null;
|
|
374
|
-
let n =
|
|
376
|
+
let n = D(e);
|
|
375
377
|
return n ? t.min && n < t.min ? {
|
|
376
378
|
flag: "rangeUnderflow",
|
|
377
379
|
bound: t.min
|
|
@@ -381,38 +383,38 @@ function P(e, t) {
|
|
|
381
383
|
} : null : { flag: "badInput" };
|
|
382
384
|
}
|
|
383
385
|
// src/components/inputs/time-picker/time-picker.ts
|
|
384
|
-
var
|
|
385
|
-
NLDDTimePicker: () =>
|
|
386
|
-
fromMinutes: () =>
|
|
387
|
-
toMinutes: () =>
|
|
388
|
-
}),
|
|
389
|
-
function
|
|
386
|
+
var I = /* @__PURE__ */ e({
|
|
387
|
+
NLDDTimePicker: () => K,
|
|
388
|
+
fromMinutes: () => T,
|
|
389
|
+
toMinutes: () => w
|
|
390
|
+
}), L, R = 1439;
|
|
391
|
+
function z(e) {
|
|
390
392
|
return e.scrollHeight > e.clientHeight;
|
|
391
393
|
}
|
|
392
|
-
var
|
|
393
|
-
function
|
|
394
|
+
var B = typeof window < "u" && "onscrollend" in window;
|
|
395
|
+
function V(e) {
|
|
394
396
|
return /^([01]\d|2[0-3]):[0-5]\d$/.test(e);
|
|
395
397
|
}
|
|
396
|
-
var
|
|
398
|
+
var H = new _((e) => {
|
|
397
399
|
let t = e.filter((e) => e.isConnected), n = t.map((e) => e._measurePlacement()), r = n.flat().map(([e]) => e);
|
|
398
400
|
for (let e of r) e.toggleAttribute("data-placing", !0);
|
|
399
401
|
t.forEach((e, t) => e._scrollTo(n[t]));
|
|
400
402
|
for (let e of r) e.removeAttribute("data-placing");
|
|
401
403
|
t.forEach((e, t) => e._recordPlacement(n[t]));
|
|
402
|
-
}),
|
|
403
|
-
function
|
|
404
|
-
if (
|
|
405
|
-
|
|
404
|
+
}), U = /* @__PURE__ */ new Set(), W = !1;
|
|
405
|
+
function G(e) {
|
|
406
|
+
if (U.add(e), W) return;
|
|
407
|
+
W = !0;
|
|
406
408
|
let t = () => {
|
|
407
|
-
|
|
408
|
-
for (let e of
|
|
409
|
-
|
|
409
|
+
W = !1;
|
|
410
|
+
for (let e of U) e._goLive();
|
|
411
|
+
U.clear();
|
|
410
412
|
}, n = e.ownerDocument;
|
|
411
413
|
n.readyState === "loading" ? n.addEventListener("readystatechange", t, { once: !0 }) : (n.defaultView ?? window).requestAnimationFrame(t);
|
|
412
414
|
}
|
|
413
|
-
var
|
|
415
|
+
var K = (L = class extends f(p(h(t, d))) {
|
|
414
416
|
constructor(...e) {
|
|
415
|
-
super(...e), this.rows = 7, this.width = "", this.accessibleLabel = "", this.invalid = !1, this.
|
|
417
|
+
super(...e), this.rows = 7, this.width = "", this.accessibleLabel = "", this.invalid = !1, this.name = "", this.value = "", this.min = "", this.max = "", this.step = 1, this._scrolledTo = {
|
|
416
418
|
hours: null,
|
|
417
419
|
minutes: null
|
|
418
420
|
}, this._rulesFor = null, this._slotsFor = null, this._scrollTimers = {
|
|
@@ -426,8 +428,8 @@ var G = (I = class extends f(t) {
|
|
|
426
428
|
}
|
|
427
429
|
}, this._handlePointerEnter = () => this._goLive();
|
|
428
430
|
}
|
|
429
|
-
|
|
430
|
-
return
|
|
431
|
+
formValue() {
|
|
432
|
+
return this.value;
|
|
431
433
|
}
|
|
432
434
|
get _label() {
|
|
433
435
|
return this.accessibleLabel || this._t("components.time-picker.default-label");
|
|
@@ -436,14 +438,14 @@ var G = (I = class extends f(t) {
|
|
|
436
438
|
let e = `${this.min}|${this.max}|${this.step}`;
|
|
437
439
|
return this._rulesFor?.key !== e && (this._rulesFor = {
|
|
438
440
|
key: e,
|
|
439
|
-
rules:
|
|
441
|
+
rules: k(this.min, this.max, this.step)
|
|
440
442
|
}), this._rulesFor.rules;
|
|
441
443
|
}
|
|
442
444
|
get _minMinutes() {
|
|
443
|
-
return this._rules.min ?
|
|
445
|
+
return this._rules.min ? w(this._rules.min) : 0;
|
|
444
446
|
}
|
|
445
447
|
get _maxMinutes() {
|
|
446
|
-
return this._rules.max ?
|
|
448
|
+
return this._rules.max ? w(this._rules.max) : R;
|
|
447
449
|
}
|
|
448
450
|
get _stepMinutes() {
|
|
449
451
|
return this._rules.step;
|
|
@@ -467,8 +469,8 @@ var G = (I = class extends f(t) {
|
|
|
467
469
|
return this._slots.filter((t) => Math.floor(t / 60) === e).map((e) => e % 60);
|
|
468
470
|
}
|
|
469
471
|
get _selected() {
|
|
470
|
-
if (!
|
|
471
|
-
let e =
|
|
472
|
+
if (!V(this.value)) return null;
|
|
473
|
+
let e = w(this.value);
|
|
472
474
|
return e >= this._minMinutes && e <= this._maxMinutes ? e : null;
|
|
473
475
|
}
|
|
474
476
|
get _selectedHour() {
|
|
@@ -493,8 +495,8 @@ var G = (I = class extends f(t) {
|
|
|
493
495
|
i = e !== null && n.includes(t * 60 + e) ? t * 60 + e : n[0];
|
|
494
496
|
} else if (i = (this._selected === null ? this._hours[0] : Math.floor(this._selected / 60)) * 60 + t, !r.includes(i)) return;
|
|
495
497
|
n && this._cancelSettle();
|
|
496
|
-
let a =
|
|
497
|
-
this._chosenHere = a, this.value =
|
|
498
|
+
let a = T(i) !== this.value;
|
|
499
|
+
this._chosenHere = a, this.value = T(i), a ? this._emit("input") : n && (this._scrolledTo = {
|
|
498
500
|
hours: null,
|
|
499
501
|
minutes: null
|
|
500
502
|
}, this.scrollSelectedIntoView(!0)), n && this._emit("change");
|
|
@@ -540,34 +542,34 @@ var G = (I = class extends f(t) {
|
|
|
540
542
|
this.shadowRoot?.querySelectorAll(".time-picker__value")[e === "hours" ? 0 : 1]?.focus();
|
|
541
543
|
}
|
|
542
544
|
focus(e) {
|
|
543
|
-
if (
|
|
545
|
+
if (g(this, e)) return;
|
|
544
546
|
let t = this.shadowRoot?.querySelector(".time-picker__value");
|
|
545
547
|
t ? t.focus(e) : super.focus(e);
|
|
546
548
|
}
|
|
547
549
|
disconnectedCallback() {
|
|
548
550
|
clearTimeout(this._scrollTimers.hours), clearTimeout(this._scrollTimers.minutes);
|
|
549
551
|
for (let e of [...this._glides.keys()]) this._stopGlide(e);
|
|
550
|
-
|
|
552
|
+
H.cancel(this), super.disconnectedCallback();
|
|
551
553
|
}
|
|
552
554
|
_handleScroll(e, t) {
|
|
553
555
|
if (!this.isConnected) return;
|
|
554
556
|
let n = e.currentTarget;
|
|
555
|
-
if (!
|
|
557
|
+
if (!z(n) || this._glides.has(n)) return;
|
|
556
558
|
let r = this._centeredOption(n);
|
|
557
559
|
r !== null && r !== this._scrolledTo[t] && (this._scrolledTo = {
|
|
558
560
|
...this._scrolledTo,
|
|
559
561
|
[t]: r
|
|
560
|
-
}), this._isOwnScroll(n) || (this.toggleAttribute("data-scrolling", !0), this._settleLater(t, n,
|
|
562
|
+
}), this._isOwnScroll(n) || (this.toggleAttribute("data-scrolling", !0), this._settleLater(t, n, B ? 1e3 : 120));
|
|
561
563
|
}
|
|
562
564
|
_handleScrollEnd(e, t) {
|
|
563
565
|
let n = e.currentTarget;
|
|
564
|
-
this.isConnected && !this._glides.has(n) && !this._isOwnScroll(n) &&
|
|
566
|
+
this.isConnected && !this._glides.has(n) && !this._isOwnScroll(n) && z(n) && this._settle(t, n);
|
|
565
567
|
}
|
|
566
568
|
_settleLater(e, t, n = 120) {
|
|
567
569
|
clearTimeout(this._scrollTimers[e]), this._scrollTimers[e] = window.setTimeout(() => this._settle(e, t), n);
|
|
568
570
|
}
|
|
569
571
|
_settle(e, t) {
|
|
570
|
-
if (clearTimeout(this._scrollTimers[e]), this.toggleAttribute("data-scrolling", !1), !
|
|
572
|
+
if (clearTimeout(this._scrollTimers[e]), this.toggleAttribute("data-scrolling", !1), !z(t)) return;
|
|
571
573
|
let n = this._centeredOption(t);
|
|
572
574
|
n !== null && this._select(e, n);
|
|
573
575
|
}
|
|
@@ -584,11 +586,11 @@ var G = (I = class extends f(t) {
|
|
|
584
586
|
}
|
|
585
587
|
scrollSelectedIntoView(e = !1) {
|
|
586
588
|
let t = e && !matchMedia("(prefers-reduced-motion: reduce)").matches;
|
|
587
|
-
if (
|
|
589
|
+
if (H.cancel(this), !t) this._applyPlacement(this._measurePlacement());
|
|
588
590
|
else for (let [e, t] of this._measurePlacement()) this._glide(e, t);
|
|
589
591
|
}
|
|
590
592
|
_placeLater() {
|
|
591
|
-
|
|
593
|
+
H.schedule(this, this.ownerDocument);
|
|
592
594
|
}
|
|
593
595
|
_measurePlacement() {
|
|
594
596
|
let e = [];
|
|
@@ -630,7 +632,7 @@ var G = (I = class extends f(t) {
|
|
|
630
632
|
cancelAnimationFrame(this._glides.get(e) ?? 0), this._glides.delete(e), e.hasAttribute("data-gliding") && e.removeAttribute("data-gliding");
|
|
631
633
|
}
|
|
632
634
|
firstUpdated() {
|
|
633
|
-
|
|
635
|
+
G(this);
|
|
634
636
|
}
|
|
635
637
|
_goLive() {
|
|
636
638
|
this.hasAttribute("data-live") || this.toggleAttribute("data-live", !0);
|
|
@@ -649,20 +651,23 @@ var G = (I = class extends f(t) {
|
|
|
649
651
|
return this.shadowRoot?.querySelector("[role=\"group\"]") ?? null;
|
|
650
652
|
}
|
|
651
653
|
render() {
|
|
652
|
-
return
|
|
654
|
+
return S(this);
|
|
653
655
|
}
|
|
654
|
-
},
|
|
656
|
+
}, L.styles = v, L.isFormInput = !0, L.formProperties = ["value"], L);
|
|
655
657
|
i([o({
|
|
656
658
|
reflect: !0,
|
|
657
|
-
converter:
|
|
658
|
-
})],
|
|
659
|
+
converter: m(7)
|
|
660
|
+
})], K.prototype, "rows", void 0), i([o({
|
|
659
661
|
reflect: !0,
|
|
660
|
-
converter:
|
|
661
|
-
})],
|
|
662
|
+
converter: m("")
|
|
663
|
+
})], K.prototype, "width", void 0), i([o({
|
|
662
664
|
type: String,
|
|
663
665
|
attribute: "accessible-label"
|
|
664
|
-
})],
|
|
666
|
+
})], K.prototype, "accessibleLabel", void 0), i([o({
|
|
665
667
|
type: Boolean,
|
|
666
668
|
reflect: !0
|
|
667
|
-
})],
|
|
668
|
-
|
|
669
|
+
})], K.prototype, "invalid", void 0), i([o({
|
|
670
|
+
reflect: !0,
|
|
671
|
+
converter: m("")
|
|
672
|
+
})], K.prototype, "name", void 0), i([o({ type: String })], K.prototype, "value", void 0), i([o({ type: String })], K.prototype, "min", void 0), i([o({ type: String })], K.prototype, "max", void 0), i([o({ type: Number })], K.prototype, "step", void 0), i([a()], K.prototype, "_scrolledTo", void 0), K = i([c("nldd-time-picker")], K);
|
|
673
|
+
export { k as a, N as c, D as i, F as n, O as o, j as r, P as s, I as t };
|
|
@@ -5,7 +5,7 @@ import { t as l } from "./slotted-block-MzAN2mbY.js";
|
|
|
5
5
|
import { n as u, r as d } from "./slot-content-2qH2vEC_.js";
|
|
6
6
|
import { t as f } from "./reflect-non-default-Bu3rpCvg.js";
|
|
7
7
|
import { n as p } from "./breakpoints-Cwor8TRP.js";
|
|
8
|
-
import { i as m, t as h } from "./shadow-resets-
|
|
8
|
+
import { i as m, t as h } from "./shadow-resets-kAFcguCG.js";
|
|
9
9
|
import { a as g, n as _, r as v } from "./text-wrap-DJ9PcwZ4.js";
|
|
10
10
|
import { n as y, r as b } from "./static-html-ooiG7-by.js";
|
|
11
11
|
import { n as x, r as S, t as C } from "./custom-font-size-D-U1Z_wx.js";
|