@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
|
@@ -5,20 +5,20 @@ import { t as c } from "./css-time-DmkAFd1y.js";
|
|
|
5
5
|
import { t as l } from "./form-associated-mixin-9cC5HSCG.js";
|
|
6
6
|
import { t as u } from "./implicit-submission-Csbcor_E.js";
|
|
7
7
|
import { t as d } from "./reflect-non-default-Bu3rpCvg.js";
|
|
8
|
-
import { t as f } from "./shadow-resets-
|
|
9
|
-
import "./icon-button-
|
|
8
|
+
import { t as f } from "./shadow-resets-kAFcguCG.js";
|
|
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
|
-
import "./top-title-bar-
|
|
14
|
-
import { n as p, r as m } from "./date-picker-
|
|
13
|
+
import "./top-title-bar-M3NiRgr_.js";
|
|
14
|
+
import { n as p, r as m } from "./date-picker-CeyTd4Mj.js";
|
|
15
15
|
import { t as h } from "./date-field.i18n-BqIx3eyr.js";
|
|
16
16
|
import { t as g } from "./described-by-mixin-DSeADwWP.js";
|
|
17
|
-
import { t as _ } from "./translations-
|
|
18
|
-
import {
|
|
19
|
-
import { n as
|
|
17
|
+
import { t as _ } from "./with-translations-DSfo7eL-.js";
|
|
18
|
+
import { t as v } from "./picker-popover-controller-dE7AINjc.js";
|
|
19
|
+
import { n as y } from "./input-modality-XE0B7yCn.js";
|
|
20
20
|
// src/components/inputs/date-field/date-field.styles.ts
|
|
21
|
-
var
|
|
21
|
+
var b = o`
|
|
22
22
|
:host {
|
|
23
23
|
box-sizing: border-box;
|
|
24
24
|
}
|
|
@@ -273,8 +273,8 @@ var x = o`
|
|
|
273
273
|
.date-field__picker-button :is(nldd-button, nldd-icon-button, nldd-token) {
|
|
274
274
|
--context-control-corner-radius: var(--_date-field-nested-control-corner-radius);
|
|
275
275
|
}
|
|
276
|
-
`,
|
|
277
|
-
function
|
|
276
|
+
`, x = "calc(var(--semantics-controls-md-min-size) * 7 + var(--primitives-space-16) * 2)";
|
|
277
|
+
function S(e) {
|
|
278
278
|
let r = e.invalid ? "invalid" : e.valid ? "valid" : "";
|
|
279
279
|
return r ? t`
|
|
280
280
|
<div class="date-field__validation-icon-area">
|
|
@@ -287,7 +287,7 @@ function C(e) {
|
|
|
287
287
|
</div>
|
|
288
288
|
` : n;
|
|
289
289
|
}
|
|
290
|
-
function
|
|
290
|
+
function C(e) {
|
|
291
291
|
if (e.noPicker || e.readonly) return n;
|
|
292
292
|
let r = e.size === "sm" ? "xs" : "sm";
|
|
293
293
|
return t`
|
|
@@ -337,7 +337,7 @@ function w(e) {
|
|
|
337
337
|
</div>
|
|
338
338
|
`;
|
|
339
339
|
}
|
|
340
|
-
function
|
|
340
|
+
function w(e, r, i) {
|
|
341
341
|
let a = e.range ? [e._fieldLabel, e._t(i > 0 ? "components.date-field.range-to-lowercase-label" : "components.date-field.range-from-lowercase-label")].join(", ") : e._fieldLabel;
|
|
342
342
|
return t`
|
|
343
343
|
<input class="date-field__input"
|
|
@@ -358,7 +358,7 @@ function T(e, r, i) {
|
|
|
358
358
|
>
|
|
359
359
|
`;
|
|
360
360
|
}
|
|
361
|
-
function
|
|
361
|
+
function T(e) {
|
|
362
362
|
return t`
|
|
363
363
|
<span class="date-field__separator"
|
|
364
364
|
aria-hidden="true"
|
|
@@ -367,7 +367,7 @@ function E(e) {
|
|
|
367
367
|
</span>
|
|
368
368
|
`;
|
|
369
369
|
}
|
|
370
|
-
function
|
|
370
|
+
function E(e) {
|
|
371
371
|
return t`
|
|
372
372
|
<div class="date-field"
|
|
373
373
|
role=${e.range ? "group" : n}
|
|
@@ -375,16 +375,16 @@ function D(e) {
|
|
|
375
375
|
@focusout=${e._handleFieldBlur}
|
|
376
376
|
>
|
|
377
377
|
${e._texts.map((r, i) => t`
|
|
378
|
-
${i > 0 ?
|
|
379
|
-
${
|
|
378
|
+
${i > 0 ? T(e) : n}
|
|
379
|
+
${w(e, r, i)}
|
|
380
380
|
`)}
|
|
381
381
|
<div class="date-field__input-fade"></div>
|
|
382
|
+
${S(e)}
|
|
382
383
|
${C(e)}
|
|
383
|
-
${w(e)}
|
|
384
384
|
</div>
|
|
385
385
|
`;
|
|
386
386
|
}
|
|
387
|
-
function
|
|
387
|
+
function D(e) {
|
|
388
388
|
let t = e.trim();
|
|
389
389
|
if (t === "") return null;
|
|
390
390
|
let n = /^(\d{4})[-/.](\d{1,2})[-/.](\d{1,2})$/.exec(t);
|
|
@@ -394,35 +394,35 @@ function O(e) {
|
|
|
394
394
|
let i = /^(\d{2})(?:\s*[./-]\s*|\s+)?(\d{2})(?:\s*[./-]\s*|\s+)?(\d{4})$/.exec(t);
|
|
395
395
|
return i ? m(Number(i[3]), Number(i[2]), Number(i[1])) : null;
|
|
396
396
|
}
|
|
397
|
-
function
|
|
397
|
+
function O(e) {
|
|
398
398
|
let t = /^(\d{4})-(\d{2})-(\d{2})$/.exec(e);
|
|
399
399
|
return t ? `${t[3]}-${t[2]}-${t[1]}` : "";
|
|
400
400
|
}
|
|
401
|
-
function
|
|
401
|
+
function k(e, t) {
|
|
402
402
|
let n = e ? e.split("/") : [];
|
|
403
403
|
return Array.from({ length: t }, (e, t) => n[t] ?? "");
|
|
404
404
|
}
|
|
405
|
-
function
|
|
405
|
+
function A(e) {
|
|
406
406
|
return e.every((e) => e === "") ? "" : e.join("/");
|
|
407
407
|
}
|
|
408
|
-
function
|
|
408
|
+
function j(e, t) {
|
|
409
409
|
return {
|
|
410
410
|
min: e ? p(e) : "",
|
|
411
411
|
max: t ? p(t) : ""
|
|
412
412
|
};
|
|
413
413
|
}
|
|
414
|
-
function
|
|
415
|
-
let n =
|
|
414
|
+
function M(e, t) {
|
|
415
|
+
let n = D(e);
|
|
416
416
|
return !n || t.min && n < t.min || t.max && n > t.max ? "" : n;
|
|
417
417
|
}
|
|
418
|
-
function
|
|
418
|
+
function N(e) {
|
|
419
419
|
let [t, n] = e;
|
|
420
420
|
return e.length !== 2 || !t || !n || t <= n ? null : [n, t];
|
|
421
421
|
}
|
|
422
|
-
function
|
|
422
|
+
function P(e, t, n) {
|
|
423
423
|
for (let n of e) {
|
|
424
424
|
if (!n.trim()) continue;
|
|
425
|
-
let e =
|
|
425
|
+
let e = D(n);
|
|
426
426
|
if (!e) return { flag: "badInput" };
|
|
427
427
|
if (t.min && e < t.min) return {
|
|
428
428
|
flag: "rangeUnderflow",
|
|
@@ -437,15 +437,15 @@ function F(e, t, n) {
|
|
|
437
437
|
return n && r?.trim() && i.some((e) => !e.trim()) ? { flag: "valueMissing" } : null;
|
|
438
438
|
}
|
|
439
439
|
// src/components/inputs/date-field/date-field.ts
|
|
440
|
-
var
|
|
440
|
+
var F = class extends g(l(_(e, h))) {
|
|
441
441
|
constructor(...e) {
|
|
442
|
-
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.range = !1, this.min = "", this.max = "", this.required = !1, this.autocomplete = "", this.readonly = !1, this.disabled = !1, this.
|
|
442
|
+
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.range = !1, this.min = "", this.max = "", this.required = !1, this.autocomplete = "", this.readonly = !1, this.disabled = !1, this._texts = [""], this._hasSlottedPicker = !1, this._pickerOpen = !1, this._focusOnClose = null, this._picker = new v(this, () => this._pickerTrigger), this._pickerPopoverWidth = x, this._choiceTimer = 0;
|
|
443
443
|
}
|
|
444
444
|
get _endCount() {
|
|
445
445
|
return this.range ? 2 : 1;
|
|
446
446
|
}
|
|
447
447
|
get _ends() {
|
|
448
|
-
return
|
|
448
|
+
return k(this.value, this._endCount);
|
|
449
449
|
}
|
|
450
450
|
get _startValue() {
|
|
451
451
|
return this._ends[0] ?? "";
|
|
@@ -455,18 +455,18 @@ var I = class extends g(l(e)) {
|
|
|
455
455
|
}
|
|
456
456
|
_setEnd(e, t) {
|
|
457
457
|
let n = this._ends;
|
|
458
|
-
n[e] = t, this.value =
|
|
458
|
+
n[e] = t, this.value = A(n);
|
|
459
459
|
}
|
|
460
460
|
_sortRange() {
|
|
461
|
-
let e =
|
|
462
|
-
return e ? (this.value =
|
|
461
|
+
let e = N(this._ends);
|
|
462
|
+
return e ? (this.value = A(e), !0) : !1;
|
|
463
463
|
}
|
|
464
464
|
_handleFieldBlur(e) {
|
|
465
465
|
let t = e.relatedTarget;
|
|
466
466
|
t && this.shadowRoot?.contains(t) || this._sortRange() && this._emit("change");
|
|
467
467
|
}
|
|
468
468
|
_commit(e) {
|
|
469
|
-
return
|
|
469
|
+
return M(e, j(this.min, this.max));
|
|
470
470
|
}
|
|
471
471
|
get _slottedPicker() {
|
|
472
472
|
return (this.shadowRoot?.querySelector("slot[name=\"picker\"]"))?.assignedElements({ flatten: !0 }).find((e) => e.localName === "nldd-date-picker") ?? null;
|
|
@@ -483,11 +483,11 @@ var I = class extends g(l(e)) {
|
|
|
483
483
|
}
|
|
484
484
|
willUpdate(e) {
|
|
485
485
|
if (!e.has("value") && !e.has("range")) return;
|
|
486
|
-
e.has("range") && (this.value =
|
|
486
|
+
e.has("range") && (this.value = A(this._ends));
|
|
487
487
|
let t = this._ends;
|
|
488
488
|
this._texts = t.map((e, t) => {
|
|
489
489
|
let n = this._texts[t] ?? "";
|
|
490
|
-
return this._commit(n) === e ? n :
|
|
490
|
+
return this._commit(n) === e ? n : O(e);
|
|
491
491
|
});
|
|
492
492
|
}
|
|
493
493
|
updated(e) {
|
|
@@ -499,10 +499,7 @@ var I = class extends g(l(e)) {
|
|
|
499
499
|
t && n && t.anchorElement !== n && (t.anchorElement = n), this._syncSlottedPicker();
|
|
500
500
|
}
|
|
501
501
|
formResetCallback() {
|
|
502
|
-
super.formResetCallback(), this._texts =
|
|
503
|
-
}
|
|
504
|
-
_t(e) {
|
|
505
|
-
return _(this.translations, h, e);
|
|
502
|
+
super.formResetCallback(), this._texts = k(this.value, this._endCount).map(O);
|
|
506
503
|
}
|
|
507
504
|
get _fieldLabel() {
|
|
508
505
|
return this.accessibleLabel || this._t(this.range ? "components.date-field.default-range-label" : "components.date-field.default-label");
|
|
@@ -523,14 +520,14 @@ var I = class extends g(l(e)) {
|
|
|
523
520
|
this._pickerOpen ? this._popover?.hide() : this._popover?.show();
|
|
524
521
|
}
|
|
525
522
|
_applyCloseFocus() {
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
let e = this._pickerTrigger;
|
|
529
|
-
e && v(e);
|
|
530
|
-
} else if (e === "last-input") {
|
|
523
|
+
if (this._focusOnClose === "last-input") {
|
|
524
|
+
this._focusOnClose = null;
|
|
531
525
|
let e = this._inputs;
|
|
532
526
|
this._focusAtEnd(e[e.length - 1]);
|
|
527
|
+
return;
|
|
533
528
|
}
|
|
529
|
+
let e = this._focusOnClose === "trigger";
|
|
530
|
+
this._focusOnClose = null, this._picker.focusTrigger(e);
|
|
534
531
|
}
|
|
535
532
|
_handlePickerDismiss(e) {
|
|
536
533
|
e.stopPropagation(), this._focusOnClose = "trigger", this._popover?.hide();
|
|
@@ -541,7 +538,7 @@ var I = class extends g(l(e)) {
|
|
|
541
538
|
_fitPopoverToSlottedPicker() {
|
|
542
539
|
let e = this._slottedPicker;
|
|
543
540
|
if (!e) {
|
|
544
|
-
this._pickerPopoverWidth =
|
|
541
|
+
this._pickerPopoverWidth = x;
|
|
545
542
|
return;
|
|
546
543
|
}
|
|
547
544
|
let t = e.getBoundingClientRect().width;
|
|
@@ -552,7 +549,7 @@ var I = class extends g(l(e)) {
|
|
|
552
549
|
let t = e.detail;
|
|
553
550
|
if (this.range) {
|
|
554
551
|
if (typeof t?.start != "string" || typeof t?.end != "string") return;
|
|
555
|
-
this.value =
|
|
552
|
+
this.value = A([t.start, t.end]), this._focusOnClose = y() ? "trigger" : "last-input";
|
|
556
553
|
} else {
|
|
557
554
|
if (typeof t?.value != "string") return;
|
|
558
555
|
this.value = t.value, this._focusOnClose = "trigger";
|
|
@@ -593,13 +590,13 @@ var I = class extends g(l(e)) {
|
|
|
593
590
|
_handleChange(e, t = 0) {
|
|
594
591
|
e.stopPropagation();
|
|
595
592
|
let n = e.target.value, r = this._commit(n);
|
|
596
|
-
this._setText(t, r ?
|
|
593
|
+
this._setText(t, r ? O(r) : n), this._setEnd(t, r), this._emit("change");
|
|
597
594
|
}
|
|
598
595
|
formValue() {
|
|
599
596
|
return this.value;
|
|
600
597
|
}
|
|
601
598
|
ownValidity() {
|
|
602
|
-
let e =
|
|
599
|
+
let e = P(this._texts, j(this.min, this.max), this.required);
|
|
603
600
|
return e ? {
|
|
604
601
|
flags: { [e.flag]: !0 },
|
|
605
602
|
message: this._problemMessage(e)
|
|
@@ -608,8 +605,8 @@ var I = class extends g(l(e)) {
|
|
|
608
605
|
_problemMessage(e) {
|
|
609
606
|
switch (e.flag) {
|
|
610
607
|
case "badInput": return this._t("components.date-field.bad-input-error-text");
|
|
611
|
-
case "rangeUnderflow": return this._t("components.date-field.range-underflow-error-text").replace("{date}",
|
|
612
|
-
case "rangeOverflow": return this._t("components.date-field.range-overflow-error-text").replace("{date}",
|
|
608
|
+
case "rangeUnderflow": return this._t("components.date-field.range-underflow-error-text").replace("{date}", O(e.bound));
|
|
609
|
+
case "rangeOverflow": return this._t("components.date-field.range-overflow-error-text").replace("{date}", O(e.bound));
|
|
613
610
|
case "valueMissing": return this._t("components.date-field.range-incomplete-error-text");
|
|
614
611
|
}
|
|
615
612
|
}
|
|
@@ -617,51 +614,51 @@ var I = class extends g(l(e)) {
|
|
|
617
614
|
this.emitFormEvent(e, { value: this.value });
|
|
618
615
|
}
|
|
619
616
|
render() {
|
|
620
|
-
return
|
|
617
|
+
return E(this);
|
|
621
618
|
}
|
|
622
|
-
},
|
|
619
|
+
}, I = (F.shadowRootOptions = {
|
|
623
620
|
...e.shadowRootOptions,
|
|
624
621
|
delegatesFocus: !0
|
|
625
|
-
},
|
|
622
|
+
}, F.styles = b, F.formProperties = ["value"], F.isFormInput = !0, F.isTextEntry = !0, F.blocksImplicitSubmission = !0, F);
|
|
626
623
|
r([a({
|
|
627
624
|
reflect: !0,
|
|
628
625
|
converter: d("md")
|
|
629
|
-
})],
|
|
626
|
+
})], I.prototype, "size", void 0), r([a({
|
|
630
627
|
reflect: !0,
|
|
631
628
|
converter: d("")
|
|
632
|
-
})],
|
|
629
|
+
})], I.prototype, "width", void 0), r([a({
|
|
633
630
|
reflect: !0,
|
|
634
631
|
converter: d("")
|
|
635
|
-
})],
|
|
632
|
+
})], I.prototype, "placeholder", void 0), r([a({
|
|
636
633
|
type: String,
|
|
637
634
|
attribute: "accessible-label"
|
|
638
|
-
})],
|
|
635
|
+
})], I.prototype, "accessibleLabel", void 0), r([a({
|
|
639
636
|
type: Boolean,
|
|
640
637
|
reflect: !0,
|
|
641
638
|
attribute: "no-picker"
|
|
642
|
-
})],
|
|
639
|
+
})], I.prototype, "noPicker", void 0), r([a({
|
|
643
640
|
type: Boolean,
|
|
644
641
|
reflect: !0
|
|
645
|
-
})],
|
|
642
|
+
})], I.prototype, "valid", void 0), r([a({
|
|
646
643
|
type: Boolean,
|
|
647
644
|
reflect: !0
|
|
648
|
-
})],
|
|
645
|
+
})], I.prototype, "invalid", void 0), r([a({
|
|
649
646
|
reflect: !0,
|
|
650
647
|
converter: d("")
|
|
651
|
-
})],
|
|
648
|
+
})], I.prototype, "name", void 0), r([a({
|
|
652
649
|
type: String,
|
|
653
650
|
attribute: "input-id"
|
|
654
|
-
})],
|
|
651
|
+
})], I.prototype, "inputId", void 0), r([a({ type: String })], I.prototype, "value", void 0), r([a({
|
|
655
652
|
type: Boolean,
|
|
656
653
|
reflect: !0
|
|
657
|
-
})],
|
|
654
|
+
})], I.prototype, "range", void 0), r([a({ type: String })], I.prototype, "min", void 0), r([a({ type: String })], I.prototype, "max", void 0), r([a({
|
|
658
655
|
type: Boolean,
|
|
659
656
|
reflect: !0
|
|
660
|
-
})],
|
|
657
|
+
})], I.prototype, "required", void 0), r([a({ type: String })], I.prototype, "autocomplete", void 0), r([a({
|
|
661
658
|
type: Boolean,
|
|
662
659
|
reflect: !0
|
|
663
|
-
})],
|
|
660
|
+
})], I.prototype, "readonly", void 0), r([a({
|
|
664
661
|
type: Boolean,
|
|
665
662
|
reflect: !0
|
|
666
|
-
})],
|
|
667
|
-
export {
|
|
663
|
+
})], I.prototype, "disabled", void 0), r([i()], I.prototype, "_texts", void 0), r([i()], I.prototype, "_hasSlottedPicker", void 0), r([i()], I.prototype, "_pickerOpen", void 0), r([i()], I.prototype, "_pickerPopoverWidth", void 0), I = r([s("nldd-date-field")], I);
|
|
664
|
+
export { I as NLDDDateField };
|