@nldd/design-system 0.13.0 → 0.13.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/NOTICES.md +18 -1
- package/README.md +32 -24
- package/custom-elements.json +4390 -1037
- package/dist/components/actions/button/button.d.ts +6 -1
- package/dist/components/actions/button/button.d.ts.map +1 -1
- package/dist/components/actions/button/button.i18n.d.ts +1 -0
- package/dist/components/actions/button/button.i18n.d.ts.map +1 -1
- package/dist/components/actions/button/button.i18n.js +1 -0
- package/dist/components/actions/button/button.i18n.js.map +1 -1
- package/dist/components/actions/button/button.js +7 -0
- package/dist/components/actions/button/button.js.map +1 -1
- package/dist/components/actions/button/button.template.d.ts.map +1 -1
- package/dist/components/actions/button/button.template.js +5 -2
- package/dist/components/actions/button/button.template.js.map +1 -1
- package/dist/components/actions/button-group/button-group.d.ts +22 -7
- package/dist/components/actions/button-group/button-group.d.ts.map +1 -1
- package/dist/components/actions/button-group/button-group.js +38 -19
- package/dist/components/actions/button-group/button-group.js.map +1 -1
- package/dist/components/actions/button-group/button-group.styles.d.ts.map +1 -1
- package/dist/components/actions/button-group/button-group.styles.js +43 -18
- package/dist/components/actions/button-group/button-group.styles.js.map +1 -1
- package/dist/components/actions/button-group/button-group.template.js +1 -1
- package/dist/components/actions/button-group/button-group.template.js.map +1 -1
- package/dist/components/actions/icon-button/icon-button.d.ts +8 -1
- package/dist/components/actions/icon-button/icon-button.d.ts.map +1 -1
- package/dist/components/actions/icon-button/icon-button.i18n.d.ts +1 -0
- package/dist/components/actions/icon-button/icon-button.i18n.d.ts.map +1 -1
- package/dist/components/actions/icon-button/icon-button.i18n.js +1 -0
- package/dist/components/actions/icon-button/icon-button.i18n.js.map +1 -1
- package/dist/components/actions/icon-button/icon-button.js +9 -0
- package/dist/components/actions/icon-button/icon-button.js.map +1 -1
- package/dist/components/actions/icon-button/icon-button.template.d.ts.map +1 -1
- package/dist/components/actions/icon-button/icon-button.template.js +5 -2
- package/dist/components/actions/icon-button/icon-button.template.js.map +1 -1
- package/dist/components/actions/menu/menu-divider.d.ts +14 -0
- package/dist/components/actions/menu/menu-divider.d.ts.map +1 -0
- package/dist/components/actions/menu/menu-divider.js +33 -0
- package/dist/components/actions/menu/menu-divider.js.map +1 -0
- package/dist/components/actions/menu/menu-group.d.ts +35 -0
- package/dist/components/actions/menu/menu-group.d.ts.map +1 -0
- package/dist/components/actions/menu/menu-group.js +69 -0
- package/dist/components/actions/menu/menu-group.js.map +1 -0
- package/dist/components/actions/menu/menu-item.d.ts +86 -0
- package/dist/components/actions/menu/menu-item.d.ts.map +1 -0
- package/dist/components/actions/menu/menu-item.js +279 -0
- package/dist/components/actions/menu/menu-item.js.map +1 -0
- package/dist/components/actions/menu/menu.chain.d.ts +40 -0
- package/dist/components/actions/menu/menu.chain.d.ts.map +1 -0
- package/dist/components/actions/menu/menu.chain.js +150 -0
- package/dist/components/actions/menu/menu.chain.js.map +1 -0
- package/dist/components/actions/menu/menu.d.ts +68 -269
- package/dist/components/actions/menu/menu.d.ts.map +1 -1
- package/dist/components/actions/menu/menu.js +147 -984
- package/dist/components/actions/menu/menu.js.map +1 -1
- package/dist/components/actions/menu/menu.pointer.d.ts +61 -0
- package/dist/components/actions/menu/menu.pointer.d.ts.map +1 -0
- package/dist/components/actions/menu/menu.pointer.js +143 -0
- package/dist/components/actions/menu/menu.pointer.js.map +1 -0
- package/dist/components/actions/menu/menu.safe-triangle.d.ts +79 -0
- package/dist/components/actions/menu/menu.safe-triangle.d.ts.map +1 -0
- package/dist/components/actions/menu/menu.safe-triangle.js +198 -0
- package/dist/components/actions/menu/menu.safe-triangle.js.map +1 -0
- package/dist/components/actions/menu/menu.template.d.ts.map +1 -1
- package/dist/components/actions/menu/menu.template.js +5 -4
- package/dist/components/actions/menu/menu.template.js.map +1 -1
- package/dist/components/actions/toolbar/toolbar-item.d.ts +46 -0
- package/dist/components/actions/toolbar/toolbar-item.d.ts.map +1 -0
- package/dist/components/actions/toolbar/toolbar-item.js +113 -0
- package/dist/components/actions/toolbar/toolbar-item.js.map +1 -0
- package/dist/components/actions/toolbar/toolbar-item.template.d.ts +3 -0
- package/dist/components/actions/toolbar/toolbar-item.template.d.ts.map +1 -0
- package/dist/components/actions/toolbar/toolbar-item.template.js +12 -0
- package/dist/components/actions/toolbar/toolbar-item.template.js.map +1 -0
- package/dist/components/actions/toolbar/toolbar-title.d.ts +43 -0
- package/dist/components/actions/toolbar/toolbar-title.d.ts.map +1 -0
- package/dist/components/actions/toolbar/toolbar-title.js +111 -0
- package/dist/components/actions/toolbar/toolbar-title.js.map +1 -0
- package/dist/components/actions/toolbar/toolbar-title.template.d.ts +3 -0
- package/dist/components/actions/toolbar/toolbar-title.template.d.ts.map +1 -0
- package/dist/components/actions/toolbar/toolbar-title.template.js +33 -0
- package/dist/components/actions/toolbar/toolbar-title.template.js.map +1 -0
- package/dist/components/actions/toolbar/toolbar.d.ts +16 -111
- package/dist/components/actions/toolbar/toolbar.d.ts.map +1 -1
- package/dist/components/actions/toolbar/toolbar.js +50 -423
- package/dist/components/actions/toolbar/toolbar.js.map +1 -1
- package/dist/components/actions/toolbar/toolbar.layout.d.ts +40 -0
- package/dist/components/actions/toolbar/toolbar.layout.d.ts.map +1 -0
- package/dist/components/actions/toolbar/toolbar.layout.js +76 -0
- package/dist/components/actions/toolbar/toolbar.layout.js.map +1 -0
- package/dist/components/actions/toolbar/toolbar.overflow-menu.d.ts +52 -0
- package/dist/components/actions/toolbar/toolbar.overflow-menu.d.ts.map +1 -0
- package/dist/components/actions/toolbar/toolbar.overflow-menu.js +105 -0
- package/dist/components/actions/toolbar/toolbar.overflow-menu.js.map +1 -0
- package/dist/components/actions/toolbar/toolbar.template.d.ts +1 -4
- package/dist/components/actions/toolbar/toolbar.template.d.ts.map +1 -1
- package/dist/components/actions/toolbar/toolbar.template.js +0 -41
- package/dist/components/actions/toolbar/toolbar.template.js.map +1 -1
- package/dist/components/{breakpoints-Bpf2MgjM.js → breakpoints-Bti55RWY.js} +1 -2
- package/dist/components/components.js +4651 -2302
- package/dist/components/content/avatar-group/avatar-group.styles.d.ts.map +1 -1
- package/dist/components/content/avatar-group/avatar-group.styles.js +12 -1
- package/dist/components/content/avatar-group/avatar-group.styles.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 +2 -1
- package/dist/components/content/code-viewer/code-viewer.styles.js.map +1 -1
- package/dist/components/content/icon/icon-aliases.d.ts.map +1 -1
- package/dist/components/content/icon/icon-aliases.js +21 -5
- package/dist/components/content/icon/icon-aliases.js.map +1 -1
- package/dist/components/content/icon/icon-gallery-status.d.ts.map +1 -1
- package/dist/components/content/icon/icon-gallery-status.js +10 -0
- package/dist/components/content/icon/icon-gallery-status.js.map +1 -1
- package/dist/components/content/icon/icon-registry.d.ts.map +1 -1
- package/dist/components/content/icon/icon-registry.js +10 -3
- package/dist/components/content/icon/icon-registry.js.map +1 -1
- package/dist/components/content/text/text.d.ts +1 -1
- package/dist/components/content/text/text.js +1 -1
- package/dist/components/content/text/text.styles.d.ts.map +1 -1
- package/dist/components/content/text/text.styles.js +104 -1
- package/dist/components/content/text/text.styles.js.map +1 -1
- package/dist/components/content/token/token.styles.d.ts.map +1 -1
- package/dist/components/content/token/token.styles.js +2 -1
- package/dist/components/content/token/token.styles.js.map +1 -1
- package/dist/components/content/tooltip/tooltip.styles.js +7 -7
- package/dist/components/{decorate-CO88j7Lc.js → decorate-Cz9-peTN.js} +1 -2
- package/dist/components/{dist-B5E3q-ea.js → dist-B9YBOGFW.js} +4 -6
- package/dist/components/{dist-BWlUmyq3.js → dist-BFZM0YsR.js} +57 -36
- package/dist/components/{dist-BFw_yEMS.js → dist-BNkeFjc3.js} +5 -7
- package/dist/components/{dist-Co-tsc9S.js → dist-BaLc58I_.js} +7 -9
- package/dist/components/{dist-BOVSVPSz.js → dist-Bm3708s5.js} +3 -4
- package/dist/components/{dist-IPm8ilWf.js → dist-CJ9uLG0u.js} +5 -17
- package/dist/components/{dist-Dz28se9B.js → dist-CJm4tkNC.js} +4 -6
- package/dist/components/{dist-CC8oiVtm.js → dist-CSC1dG3L.js} +2 -3
- package/dist/components/{dist-BPB3rWnd.js → dist-DHhnz3Gv.js} +3 -4
- package/dist/components/{dist-Dn9pjiud.js → dist-DgjvHvsN.js} +6 -8
- package/dist/components/{dist-COKR0tYU.js → dist-PeUX4vPq.js} +3 -6
- package/dist/components/{dist-D_9ZyZ5v.js → dist-YYLChwRq.js} +5 -7
- package/dist/components/{dist-BNLAXAyO.js → dist-m70B83qb.js} +4 -6
- package/dist/components/forms/form-field/form-field.d.ts +9 -5
- package/dist/components/forms/form-field/form-field.d.ts.map +1 -1
- package/dist/components/forms/form-field/form-field.js +17 -6
- package/dist/components/forms/form-field/form-field.js.map +1 -1
- package/dist/components/{gherkin-uCVRxsGf.js → gherkin-DzYbEwDO.js} +1 -2
- package/dist/components/{icon-BJHKWhY5.js → icon-DRpTWSIg.js} +33 -20
- package/dist/components/{icon-button-DhBIq6lN.js → icon-button-DUEmWlBD.js} +41 -51
- package/dist/components/index.d.ts +2 -0
- package/dist/components/index.d.ts.map +1 -1
- package/dist/components/index.js +2 -0
- package/dist/components/index.js.map +1 -1
- package/dist/components/{input-modality-DhTeUxKi.js → input-modality-CiPLYYMN.js} +1 -2
- package/dist/components/inputs/code-editor/code-editor.styles.d.ts.map +1 -1
- package/dist/components/inputs/code-editor/code-editor.styles.js +6 -1
- package/dist/components/inputs/code-editor/code-editor.styles.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 +41 -28
- package/dist/components/inputs/date-field/date-field.d.ts.map +1 -1
- package/dist/components/inputs/date-field/date-field.dates.d.ts +60 -0
- package/dist/components/inputs/date-field/date-field.dates.d.ts.map +1 -0
- package/dist/components/inputs/date-field/date-field.dates.js +106 -0
- package/dist/components/inputs/date-field/date-field.dates.js.map +1 -0
- package/dist/components/inputs/date-field/date-field.i18n.d.ts +4 -0
- package/dist/components/inputs/date-field/date-field.i18n.d.ts.map +1 -1
- package/dist/components/inputs/date-field/date-field.i18n.js +6 -0
- package/dist/components/inputs/date-field/date-field.i18n.js.map +1 -1
- package/dist/components/inputs/date-field/date-field.js +110 -142
- package/dist/components/inputs/date-field/date-field.js.map +1 -1
- package/dist/components/inputs/date-field/date-field.styles.d.ts.map +1 -1
- package/dist/components/inputs/date-field/date-field.styles.js +1 -0
- package/dist/components/inputs/date-field/date-field.styles.js.map +1 -1
- package/dist/components/inputs/date-field/date-field.template.d.ts.map +1 -1
- package/dist/components/inputs/date-field/date-field.template.js +21 -17
- package/dist/components/inputs/date-field/date-field.template.js.map +1 -1
- package/dist/components/inputs/file-field/file-field.d.ts +12 -0
- package/dist/components/inputs/file-field/file-field.d.ts.map +1 -1
- package/dist/components/inputs/file-field/file-field.i18n.d.ts +1 -0
- package/dist/components/inputs/file-field/file-field.i18n.d.ts.map +1 -1
- package/dist/components/inputs/file-field/file-field.i18n.js +1 -0
- package/dist/components/inputs/file-field/file-field.i18n.js.map +1 -1
- package/dist/components/inputs/file-field/file-field.js +28 -9
- 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 +91 -8
- package/dist/components/inputs/file-field/file-field.styles.js.map +1 -1
- package/dist/components/inputs/file-field/file-field.template.d.ts +1 -0
- package/dist/components/inputs/file-field/file-field.template.d.ts.map +1 -1
- package/dist/components/inputs/file-field/file-field.template.js +51 -21
- package/dist/components/inputs/file-field/file-field.template.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/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 +1 -1
- package/dist/components/inputs/search-field/search-field.js +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.d.ts +6 -3
- package/dist/components/inputs/segmented-control/segmented-control.d.ts.map +1 -1
- package/dist/components/inputs/segmented-control/segmented-control.js +8 -10
- package/dist/components/inputs/segmented-control/segmented-control.js.map +1 -1
- package/dist/components/inputs/slider/slider.d.ts +161 -0
- package/dist/components/inputs/slider/slider.d.ts.map +1 -0
- package/dist/components/inputs/slider/slider.i18n.d.ts +6 -0
- package/dist/components/inputs/slider/slider.i18n.d.ts.map +1 -0
- package/dist/components/inputs/slider/slider.i18n.js +5 -0
- package/dist/components/inputs/slider/slider.i18n.js.map +1 -0
- package/dist/components/inputs/slider/slider.js +436 -0
- package/dist/components/inputs/slider/slider.js.map +1 -0
- package/dist/components/inputs/slider/slider.styles.d.ts +2 -0
- package/dist/components/inputs/slider/slider.styles.d.ts.map +1 -0
- package/dist/components/inputs/slider/slider.styles.js +360 -0
- package/dist/components/inputs/slider/slider.styles.js.map +1 -0
- package/dist/components/inputs/slider/slider.template.d.ts +5 -0
- package/dist/components/inputs/slider/slider.template.d.ts.map +1 -0
- package/dist/components/inputs/slider/slider.template.js +99 -0
- package/dist/components/inputs/slider/slider.template.js.map +1 -0
- package/dist/components/inputs/text-editor/text-editor.selection.d.ts.map +1 -1
- package/dist/components/inputs/text-editor/text-editor.selection.js +35 -9
- package/dist/components/inputs/text-editor/text-editor.selection.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 +17 -0
- package/dist/components/inputs/text-editor/text-editor.styles.js.map +1 -1
- package/dist/components/inputs/text-editor/text-editor.tasks.d.ts.map +1 -1
- package/dist/components/inputs/text-editor/text-editor.tasks.js +5 -1
- package/dist/components/inputs/text-editor/text-editor.tasks.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 +26 -40
- package/dist/components/inputs/time-field/time-field.d.ts.map +1 -1
- package/dist/components/inputs/time-field/time-field.i18n.d.ts +3 -0
- package/dist/components/inputs/time-field/time-field.i18n.d.ts.map +1 -1
- package/dist/components/inputs/time-field/time-field.i18n.js +5 -0
- package/dist/components/inputs/time-field/time-field.i18n.js.map +1 -1
- package/dist/components/inputs/time-field/time-field.js +68 -162
- package/dist/components/inputs/time-field/time-field.js.map +1 -1
- package/dist/components/inputs/time-field/time-field.styles.d.ts.map +1 -1
- package/dist/components/inputs/time-field/time-field.styles.js +1 -0
- package/dist/components/inputs/time-field/time-field.styles.js.map +1 -1
- package/dist/components/inputs/time-field/time-field.times.d.ts +74 -0
- package/dist/components/inputs/time-field/time-field.times.d.ts.map +1 -0
- package/dist/components/inputs/time-field/time-field.times.js +154 -0
- package/dist/components/inputs/time-field/time-field.times.js.map +1 -0
- package/dist/components/layout/card/card.d.ts +6 -1
- package/dist/components/layout/card/card.d.ts.map +1 -1
- package/dist/components/layout/card/card.i18n.d.ts +1 -0
- package/dist/components/layout/card/card.i18n.d.ts.map +1 -1
- package/dist/components/layout/card/card.i18n.js +1 -0
- package/dist/components/layout/card/card.i18n.js.map +1 -1
- package/dist/components/layout/card/card.js +7 -0
- package/dist/components/layout/card/card.js.map +1 -1
- package/dist/components/layout/card/card.template.d.ts.map +1 -1
- package/dist/components/layout/card/card.template.js +5 -2
- package/dist/components/layout/card/card.template.js.map +1 -1
- package/dist/components/layout/page/page.d.ts +3 -0
- package/dist/components/layout/page/page.d.ts.map +1 -1
- package/dist/components/layout/page/page.js +20 -3
- package/dist/components/layout/page/page.js.map +1 -1
- package/dist/components/layout/page/page.styles.d.ts.map +1 -1
- package/dist/components/layout/page/page.styles.js +25 -2
- package/dist/components/layout/page/page.styles.js.map +1 -1
- package/dist/components/layout/page/page.template.js +1 -1
- package/dist/components/layout/page/page.template.js.map +1 -1
- package/dist/components/layout/sheet/sheet.d.ts +5 -0
- package/dist/components/layout/sheet/sheet.d.ts.map +1 -1
- package/dist/components/layout/sheet/sheet.js +14 -6
- package/dist/components/layout/sheet/sheet.js.map +1 -1
- package/dist/components/layout/sheet/sheet.template.d.ts.map +1 -1
- package/dist/components/layout/sheet/sheet.template.js +1 -0
- package/dist/components/layout/sheet/sheet.template.js.map +1 -1
- package/dist/components/layout/task-board/task-board-column.d.ts +80 -0
- package/dist/components/layout/task-board/task-board-column.d.ts.map +1 -0
- package/dist/components/layout/task-board/task-board-column.js +207 -0
- package/dist/components/layout/task-board/task-board-column.js.map +1 -0
- package/dist/components/layout/task-board/task-board-column.template.d.ts +3 -0
- package/dist/components/layout/task-board/task-board-column.template.d.ts.map +1 -0
- package/dist/components/layout/task-board/task-board-column.template.js +45 -0
- package/dist/components/layout/task-board/task-board-column.template.js.map +1 -0
- package/dist/components/layout/task-board/task-board.d.ts +169 -0
- package/dist/components/layout/task-board/task-board.d.ts.map +1 -0
- package/dist/components/layout/task-board/task-board.i18n.d.ts +11 -0
- package/dist/components/layout/task-board/task-board.i18n.d.ts.map +1 -0
- package/dist/components/layout/task-board/task-board.i18n.js +10 -0
- package/dist/components/layout/task-board/task-board.i18n.js.map +1 -0
- package/dist/components/layout/task-board/task-board.js +701 -0
- package/dist/components/layout/task-board/task-board.js.map +1 -0
- package/dist/components/layout/task-board/task-board.styles.d.ts +3 -0
- package/dist/components/layout/task-board/task-board.styles.d.ts.map +1 -0
- package/dist/components/layout/task-board/task-board.styles.js +259 -0
- package/dist/components/layout/task-board/task-board.styles.js.map +1 -0
- package/dist/components/layout/task-board/task-board.template.d.ts +3 -0
- package/dist/components/layout/task-board/task-board.template.d.ts.map +1 -0
- package/dist/components/layout/task-board/task-board.template.js +25 -0
- package/dist/components/layout/task-board/task-board.template.js.map +1 -0
- package/dist/components/lists-and-tables/list-item/list-item.d.ts +6 -1
- 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.i18n.d.ts +1 -0
- package/dist/components/lists-and-tables/list-item/list-item.i18n.d.ts.map +1 -1
- package/dist/components/lists-and-tables/list-item/list-item.i18n.js +1 -0
- package/dist/components/lists-and-tables/list-item/list-item.i18n.js.map +1 -1
- package/dist/components/lists-and-tables/list-item/list-item.js +12 -3
- package/dist/components/lists-and-tables/list-item/list-item.js.map +1 -1
- package/dist/components/lists-and-tables/list-item/list-item.template.d.ts +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 -1
- 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.i18n.d.ts +1 -0
- package/dist/components/lists-and-tables/list-item-segment/list-item-segment.i18n.d.ts.map +1 -1
- package/dist/components/lists-and-tables/list-item-segment/list-item-segment.i18n.js +1 -0
- package/dist/components/lists-and-tables/list-item-segment/list-item-segment.i18n.js.map +1 -1
- package/dist/components/lists-and-tables/list-item-segment/list-item-segment.js +12 -3
- package/dist/components/lists-and-tables/list-item-segment/list-item-segment.js.map +1 -1
- package/dist/components/lists-and-tables/list-item-segment/list-item-segment.template.d.ts +1 -1
- package/dist/components/lists-and-tables/list-item-segment/list-item-segment.template.d.ts.map +1 -1
- package/dist/components/lists-and-tables/list-item-segment/list-item-segment.template.js +2 -1
- package/dist/components/lists-and-tables/list-item-segment/list-item-segment.template.js.map +1 -1
- package/dist/components/navigation/link/link.d.ts +11 -1
- package/dist/components/navigation/link/link.d.ts.map +1 -1
- package/dist/components/navigation/link/link.i18n.d.ts +1 -0
- package/dist/components/navigation/link/link.i18n.d.ts.map +1 -1
- package/dist/components/navigation/link/link.i18n.js +1 -0
- package/dist/components/navigation/link/link.i18n.js.map +1 -1
- package/dist/components/navigation/link/link.js +27 -1
- package/dist/components/navigation/link/link.js.map +1 -1
- package/dist/components/navigation/link/link.template.d.ts +1 -0
- package/dist/components/navigation/link/link.template.d.ts.map +1 -1
- package/dist/components/navigation/link/link.template.js +21 -16
- package/dist/components/navigation/link/link.template.js.map +1 -1
- package/dist/components/navigation/tab-bar/tab-bar.d.ts +1 -0
- package/dist/components/navigation/tab-bar/tab-bar.d.ts.map +1 -1
- package/dist/components/navigation/tab-bar/tab-bar.js +9 -0
- package/dist/components/navigation/tab-bar/tab-bar.js.map +1 -1
- package/dist/components/navigation/tab-bar/tab-bar.template.js +1 -1
- package/dist/components/navigation/top-navigation-bar/top-navigation-bar.d.ts +9 -24
- package/dist/components/navigation/top-navigation-bar/top-navigation-bar.d.ts.map +1 -1
- package/dist/components/navigation/top-navigation-bar/top-navigation-bar.js +29 -223
- package/dist/components/navigation/top-navigation-bar/top-navigation-bar.js.map +1 -1
- package/dist/components/navigation/top-navigation-bar/top-navigation-bar.menu-sheet.d.ts +48 -0
- package/dist/components/navigation/top-navigation-bar/top-navigation-bar.menu-sheet.d.ts.map +1 -0
- package/dist/components/navigation/top-navigation-bar/top-navigation-bar.menu-sheet.js +220 -0
- package/dist/components/navigation/top-navigation-bar/top-navigation-bar.menu-sheet.js.map +1 -0
- package/dist/components/navigation/top-navigation-bar/top-navigation-bar.styles.d.ts.map +1 -1
- package/dist/components/navigation/top-navigation-bar/top-navigation-bar.styles.js +22 -2
- package/dist/components/navigation/top-navigation-bar/top-navigation-bar.styles.js.map +1 -1
- package/dist/components/navigation/top-navigation-bar/top-navigation-bar.template.d.ts.map +1 -1
- package/dist/components/navigation/top-navigation-bar/top-navigation-bar.template.js +4 -0
- package/dist/components/navigation/top-navigation-bar/top-navigation-bar.template.js.map +1 -1
- package/dist/components/{reflect-non-default-OLaK60rT.js → reflect-non-default-B9wQcnne.js} +1 -2
- package/dist/components/{rolldown-runtime-D7D4PA-g.js → rolldown-runtime-D8jQpDG7.js} +1 -2
- package/dist/components/{shadow-resets-CPa58rmc.js → shadow-resets-BwOyyZFH.js} +1 -2
- package/dist/components/{shell-C61GCsJA.js → shell-Dh5IwHd-.js} +1 -2
- package/dist/components/status-and-feedback/step-bar/step-bar.d.ts +10 -1
- 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.js +22 -1
- package/dist/components/status-and-feedback/step-bar/step-bar.js.map +1 -1
- package/dist/components/status-and-feedback/step-bar/step-bar.template.d.ts.map +1 -1
- package/dist/components/status-and-feedback/step-bar/step-bar.template.js +2 -0
- package/dist/components/status-and-feedback/step-bar/step-bar.template.js.map +1 -1
- package/dist/components/{toml-C2HBbPgG.js → toml-D0Pix_8Q.js} +1 -2
- package/dist/components/{visibility-mixin-djNSG5ZN.js → visibility-mixin-C-K7ho5Q.js} +4 -6
- package/dist/components/{with-translations-C6QfP6_S.js → with-translations-DRuOq3QK.js} +14 -10
- package/dist/css/{global-system-font.css → global-open-font.css} +2 -0
- package/dist/css/global.css +1 -0
- package/dist/css/inter-font.css +47 -0
- package/dist/css/jetbrains-mono-font.css +22 -0
- package/dist/css/rijksoverheid-fonts.css +4 -21
- package/dist/css/themes/bruin.css +1 -0
- package/dist/css/themes/donkerblauw.css +1 -0
- package/dist/css/themes/donkerbruin.css +1 -0
- package/dist/css/themes/donkergeel.css +1 -0
- package/dist/css/themes/donkergroen.css +1 -0
- package/dist/css/themes/geel.css +1 -0
- package/dist/css/themes/groen.css +1 -0
- package/dist/css/themes/hemelblauw.css +1 -0
- package/dist/css/themes/lichtblauw.css +1 -0
- package/dist/css/themes/mintgroen.css +1 -0
- package/dist/css/themes/mosgroen.css +1 -0
- package/dist/css/themes/oranje.css +1 -0
- package/dist/css/themes/paars.css +1 -0
- package/dist/css/themes/robijnrood.css +1 -0
- package/dist/css/themes/rood.css +1 -0
- package/dist/css/themes/roze.css +1 -0
- package/dist/css/themes/violet.css +1 -0
- package/dist/css/themes.css +17 -0
- package/dist/css/tokens.css +1 -0
- package/dist/css/variables.css +27 -5
- package/dist/fonts/Inter-Latin-Italic[wght].woff2 +0 -0
- package/dist/fonts/Inter-LatinExt-Italic[wght].woff2 +0 -0
- package/dist/fonts/Inter-LatinExt[wght].woff2 +0 -0
- package/dist/fonts/Inter-Latin[wght].woff2 +0 -0
- package/dist/nldd.min.js +1902 -842
- package/dist/translations/en-US.d.ts.map +1 -1
- package/dist/translations/en-US.js +23 -0
- package/dist/translations/en-US.js.map +1 -1
- package/dist/translations/fy.d.ts.map +1 -1
- package/dist/translations/fy.js +13 -0
- package/dist/translations/fy.js.map +1 -1
- package/dist/translations/nl.generated.d.ts +23 -0
- package/dist/translations/nl.generated.d.ts.map +1 -1
- package/dist/translations/nl.generated.js +4 -0
- package/dist/translations/nl.generated.js.map +1 -1
- package/dist/translations/pap-AW.d.ts.map +1 -1
- package/dist/translations/pap-AW.js +13 -0
- package/dist/translations/pap-AW.js.map +1 -1
- package/dist/translations/pap-CW.d.ts.map +1 -1
- package/dist/translations/pap-CW.js +13 -0
- package/dist/translations/pap-CW.js.map +1 -1
- package/dist/types/vue.d.ts +164 -24
- package/dist/utilities/form-associated-mixin.d.ts +7 -0
- package/dist/utilities/form-associated-mixin.d.ts.map +1 -1
- package/dist/utilities/form-associated-mixin.js +13 -1
- package/dist/utilities/form-associated-mixin.js.map +1 -1
- package/dist/utilities/link-hint.d.ts +11 -0
- package/dist/utilities/link-hint.d.ts.map +1 -1
- package/dist/utilities/link-hint.js +15 -0
- package/dist/utilities/link-hint.js.map +1 -1
- package/dist/utilities/tab-order.d.ts +11 -0
- package/dist/utilities/tab-order.d.ts.map +1 -0
- package/dist/utilities/tab-order.js +55 -0
- package/dist/utilities/tab-order.js.map +1 -0
- package/package.json +13 -4
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"text-editor.tasks.js","sourceRoot":"","sources":["../../../../src/components/inputs/text-editor/text-editor.tasks.ts"],"names":[],"mappings":"AAAA,OAAO,EAAe,KAAK,EAAE,IAAI,EAAkB,MAAM,mBAAmB,CAAC;AAC7E,OAAO,EAAE,UAAU,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAC;AAC9E,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAsBlD,yDAAyD;AACzD,MAAM,CAAC,MAAM,UAAU,GAAG,KAAK,CAAC,MAAM,CAAyB;IAC9D,OAAO,EAAE,CAAC,MAAM,EAAE,EAAE,CAAC,MAAM,CAAC,CAAC,CAAC,IAAI,EAAE,IAAI,EAAE,GAAG,EAAE,CAAC,YAAY,EAAE,IAAI,EAAE,GAAG,EAAE,CAAC,gBAAgB,EAAE;CAC5F,CAAC,CAAC;AAEH,MAAM,OAAQ,SAAQ,UAAU;IAC/B;uDACmD;IACnD,YAAqB,OAAgB,EAAW,KAAa;QAC5D,KAAK,EAAE,CAAC;QADY,YAAO,GAAP,OAAO,CAAS;QAAW,UAAK,GAAL,KAAK,CAAQ;IAE7D,CAAC;IAED,EAAE,CAAC,KAAc;QAChB,OAAO,KAAK,CAAC,OAAO,KAAK,IAAI,CAAC,OAAO,IAAI,KAAK,CAAC,KAAK,KAAK,IAAI,CAAC,KAAK,CAAC;IACrE,CAAC;IAED,KAAK;QACJ,MAAM,GAAG,GAAG,QAAQ,CAAC,aAAa,CAAC,MAAM,CAAC,CAAC;QAC3C,GAAG,CAAC,SAAS,GAAG,gBAAgB,CAAC;QACjC,IAAI,IAAI,CAAC,OAAO;YAAE,GAAG,C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sourceRoot":"","sources":["../../../../src/components/inputs/text-field/text-field.styles.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,eAAe,
|
|
1
|
+
{"version":3,"file":"text-field.styles.d.ts","sourceRoot":"","sources":["../../../../src/components/inputs/text-field/text-field.styles.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,eAAe,yBA4J3B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"text-field.styles.js","sourceRoot":"","sources":["../../../../src/components/inputs/text-field/text-field.styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAC1B,OAAO,EAAE,kBAAkB,EAAE,MAAM,yCAAyC,CAAC;AAE7E,MAAM,CAAC,MAAM,eAAe,GAAG,GAAG,CAAA;;;;;;;;;;;;;;;;;IAiB9B,kBAAkB
|
|
1
|
+
{"version":3,"file":"text-field.styles.js","sourceRoot":"","sources":["../../../../src/components/inputs/text-field/text-field.styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAC1B,OAAO,EAAE,kBAAkB,EAAE,MAAM,yCAAyC,CAAC;AAE7E,MAAM,CAAC,MAAM,eAAe,GAAG,GAAG,CAAA;;;;;;;;;;;;;;;;;IAiB9B,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA2IrB,CAAC"}
|
|
@@ -7,6 +7,14 @@
|
|
|
7
7
|
* the field is left. Error messages belong to nldd-form-field, not here. This
|
|
8
8
|
* field reflects only `invalid` / `valid`, like nldd-text-field.
|
|
9
9
|
*
|
|
10
|
+
* `value` holds a valid time or nothing, so an empty field and one with text
|
|
11
|
+
* that is no time both read as ''. `validity` tells them apart: `badInput` for
|
|
12
|
+
* text that is no time, `rangeUnderflow` / `rangeOverflow` for a time outside
|
|
13
|
+
* `min` / `max`. A form does not submit then, and nldd-form marks the field
|
|
14
|
+
* invalid. Without a submit, as in a filter that applies at once, the moment is
|
|
15
|
+
* yours: `field.invalid = !field.validity.valid` on `change`, with a message of
|
|
16
|
+
* your own in the nldd-form-field.
|
|
17
|
+
*
|
|
10
18
|
* What you do in the picker is a preview until you leave it. The field shows
|
|
11
19
|
* the time right away but commits it on close. "Klaar" and Enter keep the
|
|
12
20
|
* choice, and so does a click outside once you have picked something. Cancel
|
|
@@ -41,28 +49,9 @@
|
|
|
41
49
|
* @fires change - When the value is committed: on leaving the field, and on closing the picker in a way that keeps the choice. detail: { value } with `HH:mm`, or ''.
|
|
42
50
|
*/
|
|
43
51
|
import { LitElement, type PropertyValues } from 'lit';
|
|
44
|
-
import { type FormValue } from '../../../utilities/form-associated-mixin.js';
|
|
52
|
+
import { type FormValue, type OwnValidity } from '../../../utilities/form-associated-mixin.js';
|
|
45
53
|
import { type NLDDTimeFieldTranslations } from './time-field.i18n.js';
|
|
46
|
-
|
|
47
|
-
* Read a typed time generously. Deliberately not a mask: reformatting per
|
|
48
|
-
* keystroke moves the caret, breaks backspace mid-value and confuses screen
|
|
49
|
-
* readers, so we accept what people type and normalize once on commit.
|
|
50
|
-
*
|
|
51
|
-
* Accepts 9, 09, 9:30, 9.30, 9,30, 9u30, 930 and 0930. After a letter the
|
|
52
|
-
* minutes may be left off ("9u" is a finished thought), after punctuation they
|
|
53
|
-
* may not: "9:" is halfway through typing and should not produce a value yet.
|
|
54
|
-
*/
|
|
55
|
-
export declare function parseTime(raw: string): string | null;
|
|
56
|
-
/**
|
|
57
|
-
* The nearest time that falls on the step, counted from `base`. Input exactly
|
|
58
|
-
* in between rounds up.
|
|
59
|
-
*
|
|
60
|
-
* Never rolls over the edge of the day: if rounding up would pass 23:59, step
|
|
61
|
-
* back instead. Rolling over to 00:00 silently shifts the day, and a consumer
|
|
62
|
-
* who puts this field next to a date field then has a bug nobody sees
|
|
63
|
-
* coming.
|
|
64
|
-
*/
|
|
65
|
-
export declare function roundToStep(time: string, step: number, base?: string): string;
|
|
54
|
+
export { parseTime, roundToStep } from './time-field.times.js';
|
|
66
55
|
declare const NLDDTimeField_base: typeof LitElement & (abstract new (...args: any[]) => LitElement & import("../../../utilities/form-associated-mixin.js").FormAssociatedElement) & (abstract new (...args: any[]) => import("../../../utilities/described-by-mixin.js").DescribedElement);
|
|
67
56
|
export declare class NLDDTimeField extends NLDDTimeField_base {
|
|
68
57
|
static shadowRootOptions: {
|
|
@@ -125,18 +114,11 @@ export declare class NLDDTimeField extends NLDDTimeField_base {
|
|
|
125
114
|
_t(key: keyof NLDDTimeFieldTranslations): string;
|
|
126
115
|
get _fieldLabel(): string;
|
|
127
116
|
get _displayValue(): string;
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
*
|
|
131
|
-
|
|
132
|
-
private _withinBounds;
|
|
133
|
-
/** The parsed time, or '' when it is unreadable or out of bounds. In both
|
|
134
|
-
* cases the raw text stays put, so the user sees and can repair what they
|
|
135
|
-
* wrote. */
|
|
117
|
+
private get _rules();
|
|
118
|
+
/** The time a text commits to, or '' when it is unreadable or out of bounds.
|
|
119
|
+
* In both cases the raw text stays put, so the user sees and can repair what
|
|
120
|
+
* they wrote. */
|
|
136
121
|
private _commit;
|
|
137
|
-
/** Rounding happens on commit, not on input: otherwise "09:1" jumps to 09:00
|
|
138
|
-
* before anyone can type the 5. */
|
|
139
|
-
private _rounded;
|
|
140
122
|
_handleInput(e: Event): void;
|
|
141
123
|
_handleChange(e: Event): void;
|
|
142
124
|
/**
|
|
@@ -146,8 +128,6 @@ export declare class NLDDTimeField extends NLDDTimeField_base {
|
|
|
146
128
|
* does the same: it opens on today as long as there is no date.
|
|
147
129
|
*/
|
|
148
130
|
_handleInputKeydown(e: KeyboardEvent): void;
|
|
149
|
-
private _startingPoint;
|
|
150
|
-
private _shift;
|
|
151
131
|
/**
|
|
152
132
|
* Whether a consumer put their own picker in the slot. As state, not read
|
|
153
133
|
* during render: the built-in picker has to disappear the moment something is
|
|
@@ -169,12 +149,12 @@ export declare class NLDDTimeField extends NLDDTimeField_base {
|
|
|
169
149
|
* click, so there it lands on the input instead of the button. We take over,
|
|
170
150
|
* but only after that restore, otherwise ours gets overwritten. */
|
|
171
151
|
private _focusTriggerOnClose;
|
|
172
|
-
/** The value from before opening,
|
|
173
|
-
* decide on close whether what stands in the selection stays
|
|
152
|
+
/** The value from before opening, and the last thing done in the picker.
|
|
153
|
+
* Together they decide on close whether what stands in the selection stays
|
|
154
|
+
* or falls back. The last action counts: an Escape that did not close the
|
|
155
|
+
* popover is undone by scrolling on, and "Klaar" after it still confirms. */
|
|
174
156
|
private _valueBeforePicker;
|
|
175
|
-
private
|
|
176
|
-
private _pickerConfirmed;
|
|
177
|
-
private _pickerCancelled;
|
|
157
|
+
private _pickerState;
|
|
178
158
|
/**
|
|
179
159
|
* Where the wheels open while the field is empty: `min` if there is one, and
|
|
180
160
|
* otherwise the current time rounded to the step. The same starting point the
|
|
@@ -229,6 +209,13 @@ export declare class NLDDTimeField extends NLDDTimeField_base {
|
|
|
229
209
|
private _closePicker;
|
|
230
210
|
_handlePickerDismiss(e: Event): void;
|
|
231
211
|
formValue(): FormValue;
|
|
212
|
+
/**
|
|
213
|
+
* What `value` cannot say. It holds a valid time or nothing, so text that is
|
|
214
|
+
* no time, a time outside min/max and an empty field all read as ''. The
|
|
215
|
+
* field tells them apart for the form; when to show it stays the caller's.
|
|
216
|
+
*/
|
|
217
|
+
ownValidity(): OwnValidity | null;
|
|
218
|
+
private _problemMessage;
|
|
232
219
|
formResetCallback(): void;
|
|
233
220
|
formStateRestoreCallback(state: File | string | FormData | null): void;
|
|
234
221
|
private _emit;
|
|
@@ -242,5 +229,4 @@ declare global {
|
|
|
242
229
|
'nldd-time-field': NLDDTimeField;
|
|
243
230
|
}
|
|
244
231
|
}
|
|
245
|
-
export {};
|
|
246
232
|
//# sourceMappingURL=time-field.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"time-field.d.ts","sourceRoot":"","sources":["../../../../src/components/inputs/time-field/time-field.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"time-field.d.ts","sourceRoot":"","sources":["../../../../src/components/inputs/time-field/time-field.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiDG;AAEH,OAAO,EAAE,UAAU,EAAE,KAAK,cAAc,EAAE,MAAM,KAAK,CAAC;AAItD,OAAO,EAAkB,KAAK,SAAS,EAAE,KAAK,WAAW,EAAE,MAAM,6CAA6C,CAAC;AAK/G,OAAO,EAA6B,KAAK,yBAAyB,EAAE,MAAM,sBAAsB,CAAC;AAcjG,OAAO,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;;AAE/D,qBACa,aAAc,SAAQ,kBAAuC;IAEzE,OAAgB,iBAAiB;;;;;;;MAG/B;IAEF,OAAgB,MAAM,0BAAmB;IAEzC;wEACoE;IACpE,MAAM,CAAC,WAAW,UAAQ;IAE1B;uEACmE;IACnE,MAAM,CAAC,wBAAwB,UAAQ;IAEvC,OAAO,CAAC,aAAa,CAAM;IAG3B,IAAI,EAAE,IAAI,GAAG,IAAI,CAAQ;IAGzB,KAAK,SAAM;IAGX,GAAG,SAAM;IAGT,GAAG,SAAM;IAGT,IAAI,SAAK;IAGT,QAAQ,UAAS;IAGjB,OAAO,SAAM;IAGb,WAAW,SAAM;IAGjB,OAAO,UAAS;IAGhB,KAAK,UAAS;IAGd,QAAQ,UAAS;IAGjB,QAAQ,UAAS;IAGjB,QAAQ,UAAS;IAGjB,IAAI,SAAM;IAGV,YAAY,SAAM;IAElB,kFAAkF;IAElF,eAAe,SAAM;IAGrB,8EAA8E;IAE9E,KAAK,SAAM;IAEX,+EAA+E;IAE/E,YAAY,EAAE,OAAO,CAAC,yBAAyB,CAAC,CAAM;IAEt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,CAAC,CAAC,EAAE,KAAK,GAAG,IAAI;IAW3C,OAAO,CAAC,WAAW;IAiBnB;;;;;;;;OAQG;IACH,OAAO,CAAC,aAAa;IAiBrB;;;;;OAKG;IACI,kBAAkB,CAAC,CAAC,EAAE,KAAK,GAAG,IAAI;IASzC;;;;;OAKG;IACI,mBAAmB,CAAC,CAAC,EAAE,KAAK,GAAG,IAAI;IAQnC,oBAAoB,CAAC,CAAC,EAAE,KAAK,GAAG,IAAI;IAM3C;;;;;;;OAOG;IACI,oBAAoB,CAAC,CAAC,EAAE,aAAa,GAAG,IAAI;IAQnD,OAAO,CAAC,YAAY;IAKb,oBAAoB,CAAC,CAAC,EAAE,KAAK,GAAG,IAAI;IASlC,SAAS,IAAI,SAAS;IAI/B;;;;OAIG;IACM,WAAW,IAAI,WAAW,GAAG,IAAI;IAK1C,OAAO,CAAC,eAAe;IAWvB,iBAAiB,IAAI,IAAI;IAQzB,wBAAwB,CAAC,KAAK,EAAE,IAAI,GAAG,MAAM,GAAG,QAAQ,GAAG,IAAI,GAAG,IAAI;IAItE,OAAO,CAAC,KAAK;IASJ,YAAY,IAAI,IAAI;IAKpB,UAAU,CAAC,OAAO,EAAE,cAAc,GAAG,IAAI;IAUzC,OAAO,CAAC,OAAO,EAAE,cAAc,GAAG,IAAI;IA2BtC,MAAM;CAGf;AAED,OAAO,CAAC,MAAM,CAAC;IACd,UAAU,qBAAqB;QAC9B,iBAAiB,EAAE,aAAa,CAAC;KACjC;CACD"}
|
|
@@ -3,6 +3,9 @@ export declare const nlddTimeFieldTranslations: {
|
|
|
3
3
|
'components.time-field.to-pick-time-action': string;
|
|
4
4
|
'components.time-field.cancel-action': string;
|
|
5
5
|
'components.time-field.confirm-action': string;
|
|
6
|
+
'components.time-field.bad-input-error-text': string;
|
|
7
|
+
'components.time-field.range-underflow-error-text': string;
|
|
8
|
+
'components.time-field.range-overflow-error-text': string;
|
|
6
9
|
};
|
|
7
10
|
export type NLDDTimeFieldTranslations = typeof nlddTimeFieldTranslations;
|
|
8
11
|
//# sourceMappingURL=time-field.i18n.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"time-field.i18n.d.ts","sourceRoot":"","sources":["../../../../src/components/inputs/time-field/time-field.i18n.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,yBAAyB
|
|
1
|
+
{"version":3,"file":"time-field.i18n.d.ts","sourceRoot":"","sources":["../../../../src/components/inputs/time-field/time-field.i18n.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,yBAAyB;;;;;;;;CAiBrC,CAAC;AAEF,MAAM,MAAM,yBAAyB,GAAG,OAAO,yBAAyB,CAAC"}
|
|
@@ -10,5 +10,10 @@ export const nlddTimeFieldTranslations = {
|
|
|
10
10
|
// not "Opslaan": this confirms a choice, it does not save a form. A consumer
|
|
11
11
|
// who puts this in a save flow can override it.
|
|
12
12
|
'components.time-field.confirm-action': 'Klaar',
|
|
13
|
+
// Validation messages the field reports to the form. {time} is a bound as
|
|
14
|
+
// HH:mm.
|
|
15
|
+
'components.time-field.bad-input-error-text': 'Vul een tijd in als uu:mm',
|
|
16
|
+
'components.time-field.range-underflow-error-text': 'Vul een tijd in vanaf {time}',
|
|
17
|
+
'components.time-field.range-overflow-error-text': 'Vul een tijd in tot en met {time}',
|
|
13
18
|
};
|
|
14
19
|
//# sourceMappingURL=time-field.i18n.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"time-field.i18n.js","sourceRoot":"","sources":["../../../../src/components/inputs/time-field/time-field.i18n.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,yBAAyB,GAAG;IACxC,6EAA6E;IAC7E,6EAA6E;IAC7E,qCAAqC,EAAE,MAAM;IAC7C,kEAAkE;IAClE,2CAA2C,EAAE,aAAa;IAC1D,8EAA8E;IAC9E,qCAAqC,EAAE,UAAU;IACjD,gFAAgF;IAChF,6EAA6E;IAC7E,gDAAgD;IAChD,sCAAsC,EAAE,OAAO;
|
|
1
|
+
{"version":3,"file":"time-field.i18n.js","sourceRoot":"","sources":["../../../../src/components/inputs/time-field/time-field.i18n.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,yBAAyB,GAAG;IACxC,6EAA6E;IAC7E,6EAA6E;IAC7E,qCAAqC,EAAE,MAAM;IAC7C,kEAAkE;IAClE,2CAA2C,EAAE,aAAa;IAC1D,8EAA8E;IAC9E,qCAAqC,EAAE,UAAU;IACjD,gFAAgF;IAChF,6EAA6E;IAC7E,gDAAgD;IAChD,sCAAsC,EAAE,OAAO;IAC/C,0EAA0E;IAC1E,SAAS;IACT,4CAA4C,EAAE,2BAA2B;IACzE,kDAAkD,EAAE,8BAA8B;IAClF,iDAAiD,EAAE,mCAAmC;CACtF,CAAC"}
|
|
@@ -7,6 +7,14 @@
|
|
|
7
7
|
* the field is left. Error messages belong to nldd-form-field, not here. This
|
|
8
8
|
* field reflects only `invalid` / `valid`, like nldd-text-field.
|
|
9
9
|
*
|
|
10
|
+
* `value` holds a valid time or nothing, so an empty field and one with text
|
|
11
|
+
* that is no time both read as ''. `validity` tells them apart: `badInput` for
|
|
12
|
+
* text that is no time, `rangeUnderflow` / `rangeOverflow` for a time outside
|
|
13
|
+
* `min` / `max`. A form does not submit then, and nldd-form marks the field
|
|
14
|
+
* invalid. Without a submit, as in a filter that applies at once, the moment is
|
|
15
|
+
* yours: `field.invalid = !field.validity.valid` on `change`, with a message of
|
|
16
|
+
* your own in the nldd-form-field.
|
|
17
|
+
*
|
|
10
18
|
* What you do in the picker is a preview until you leave it. The field shows
|
|
11
19
|
* the time right away but commits it on close. "Klaar" and Enter keep the
|
|
12
20
|
* choice, and so does a click outside once you have picked something. Cancel
|
|
@@ -57,72 +65,8 @@ import { timeFieldTemplate } from './time-field.template.js';
|
|
|
57
65
|
import { nlddTimeFieldTranslations } from './time-field.i18n.js';
|
|
58
66
|
import { DescribedBy } from '../../../utilities/described-by-mixin.js';
|
|
59
67
|
import { translate } from '../../../utilities/translations.js';
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
function toMinutes(time) {
|
|
63
|
-
const [hours, minutes] = time.split(':');
|
|
64
|
-
return Number(hours) * 60 + Number(minutes);
|
|
65
|
-
}
|
|
66
|
-
function fromMinutes(total) {
|
|
67
|
-
const hours = Math.floor(total / 60);
|
|
68
|
-
const minutes = total % 60;
|
|
69
|
-
return `${String(hours).padStart(2, '0')}:${String(minutes).padStart(2, '0')}`;
|
|
70
|
-
}
|
|
71
|
-
function toTime(hours, minutes) {
|
|
72
|
-
if (hours < 0 || hours > 23 || minutes < 0 || minutes > 59)
|
|
73
|
-
return null;
|
|
74
|
-
return fromMinutes(hours * 60 + minutes);
|
|
75
|
-
}
|
|
76
|
-
/**
|
|
77
|
-
* Read a typed time generously. Deliberately not a mask: reformatting per
|
|
78
|
-
* keystroke moves the caret, breaks backspace mid-value and confuses screen
|
|
79
|
-
* readers, so we accept what people type and normalize once on commit.
|
|
80
|
-
*
|
|
81
|
-
* Accepts 9, 09, 9:30, 9.30, 9,30, 9u30, 930 and 0930. After a letter the
|
|
82
|
-
* minutes may be left off ("9u" is a finished thought), after punctuation they
|
|
83
|
-
* may not: "9:" is halfway through typing and should not produce a value yet.
|
|
84
|
-
*/
|
|
85
|
-
export function parseTime(raw) {
|
|
86
|
-
const trimmed = raw.trim();
|
|
87
|
-
if (trimmed === '')
|
|
88
|
-
return null;
|
|
89
|
-
const withLetter = /^(\d{1,2})\s*[uh]\s*(\d{1,2})?$/i.exec(trimmed);
|
|
90
|
-
if (withLetter)
|
|
91
|
-
return toTime(Number(withLetter[1]), Number(withLetter[2] ?? 0));
|
|
92
|
-
const withPunctuation = /^(\d{1,2})\s*[:.,]\s*(\d{1,2})$/.exec(trimmed);
|
|
93
|
-
if (withPunctuation)
|
|
94
|
-
return toTime(Number(withPunctuation[1]), Number(withPunctuation[2]));
|
|
95
|
-
const bare = /^\d{1,4}$/.exec(trimmed);
|
|
96
|
-
if (bare) {
|
|
97
|
-
const digits = bare[0];
|
|
98
|
-
if (digits.length <= 2)
|
|
99
|
-
return toTime(Number(digits), 0);
|
|
100
|
-
const split = digits.length === 3 ? 1 : 2;
|
|
101
|
-
return toTime(Number(digits.slice(0, split)), Number(digits.slice(split)));
|
|
102
|
-
}
|
|
103
|
-
return null;
|
|
104
|
-
}
|
|
105
|
-
/**
|
|
106
|
-
* The nearest time that falls on the step, counted from `base`. Input exactly
|
|
107
|
-
* in between rounds up.
|
|
108
|
-
*
|
|
109
|
-
* Never rolls over the edge of the day: if rounding up would pass 23:59, step
|
|
110
|
-
* back instead. Rolling over to 00:00 silently shifts the day, and a consumer
|
|
111
|
-
* who puts this field next to a date field then has a bug nobody sees
|
|
112
|
-
* coming.
|
|
113
|
-
*/
|
|
114
|
-
export function roundToStep(time, step, base = '00:00') {
|
|
115
|
-
if (step <= 1)
|
|
116
|
-
return time;
|
|
117
|
-
const baseMinutes = toMinutes(base);
|
|
118
|
-
const steps = Math.floor((toMinutes(time) - baseMinutes) / step + 0.5);
|
|
119
|
-
let rounded = baseMinutes + steps * step;
|
|
120
|
-
while (rounded > LAST_MINUTE_OF_DAY)
|
|
121
|
-
rounded -= step;
|
|
122
|
-
while (rounded < 0)
|
|
123
|
-
rounded += step;
|
|
124
|
-
return fromMinutes(rounded);
|
|
125
|
-
}
|
|
68
|
+
import { checkText, commitText, parseTime, resolveRules, shift, startingPoint, } from './time-field.times.js';
|
|
69
|
+
export { parseTime, roundToStep } from './time-field.times.js';
|
|
126
70
|
let NLDDTimeField = NLDDTimeField_1 = class NLDDTimeField extends DescribedBy(FormAssociated(LitElement)) {
|
|
127
71
|
constructor() {
|
|
128
72
|
super(...arguments);
|
|
@@ -167,12 +111,12 @@ let NLDDTimeField = NLDDTimeField_1 = class NLDDTimeField extends DescribedBy(Fo
|
|
|
167
111
|
* click, so there it lands on the input instead of the button. We take over,
|
|
168
112
|
* but only after that restore, otherwise ours gets overwritten. */
|
|
169
113
|
this._focusTriggerOnClose = false;
|
|
170
|
-
/** The value from before opening,
|
|
171
|
-
* decide on close whether what stands in the selection stays
|
|
114
|
+
/** The value from before opening, and the last thing done in the picker.
|
|
115
|
+
* Together they decide on close whether what stands in the selection stays
|
|
116
|
+
* or falls back. The last action counts: an Escape that did not close the
|
|
117
|
+
* popover is undone by scrolling on, and "Klaar" after it still confirms. */
|
|
172
118
|
this._valueBeforePicker = '';
|
|
173
|
-
this.
|
|
174
|
-
this._pickerConfirmed = false;
|
|
175
|
-
this._pickerCancelled = false;
|
|
119
|
+
this._pickerState = 'untouched';
|
|
176
120
|
/**
|
|
177
121
|
* Where the wheels open while the field is empty: `min` if there is one, and
|
|
178
122
|
* otherwise the current time rounded to the step. The same starting point the
|
|
@@ -188,7 +132,7 @@ let NLDDTimeField = NLDDTimeField_1 = class NLDDTimeField extends DescribedBy(Fo
|
|
|
188
132
|
* that it closed, so we catch the key ourselves, before the browser acts. */
|
|
189
133
|
this._handlePickerEscape = (e) => {
|
|
190
134
|
if (e.key === 'Escape')
|
|
191
|
-
this.
|
|
135
|
+
this._pickerState = 'cancelled';
|
|
192
136
|
};
|
|
193
137
|
}
|
|
194
138
|
static _getFinePointerQuery() {
|
|
@@ -224,44 +168,26 @@ let NLDDTimeField = NLDDTimeField_1 = class NLDDTimeField extends DescribedBy(Fo
|
|
|
224
168
|
get _displayValue() {
|
|
225
169
|
return this._display;
|
|
226
170
|
}
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
const max = parseTime(this.max);
|
|
236
|
-
// `HH:mm` compares lexically in the same order as it reads on the clock.
|
|
237
|
-
if (min && time < min)
|
|
238
|
-
return false;
|
|
239
|
-
if (max && time > max)
|
|
240
|
-
return false;
|
|
241
|
-
return true;
|
|
242
|
-
}
|
|
243
|
-
/** The parsed time, or '' when it is unreadable or out of bounds. In both
|
|
244
|
-
* cases the raw text stays put, so the user sees and can repair what they
|
|
245
|
-
* wrote. */
|
|
246
|
-
_commit(parsed) {
|
|
247
|
-
return parsed && this._withinBounds(parsed) ? parsed : '';
|
|
248
|
-
}
|
|
249
|
-
/** Rounding happens on commit, not on input: otherwise "09:1" jumps to 09:00
|
|
250
|
-
* before anyone can type the 5. */
|
|
251
|
-
_rounded(parsed) {
|
|
252
|
-
return parsed === null ? null : roundToStep(parsed, this.step, this._stepBase);
|
|
171
|
+
get _rules() {
|
|
172
|
+
return resolveRules(this.min, this.max, this.step);
|
|
173
|
+
}
|
|
174
|
+
/** The time a text commits to, or '' when it is unreadable or out of bounds.
|
|
175
|
+
* In both cases the raw text stays put, so the user sees and can repair what
|
|
176
|
+
* they wrote. */
|
|
177
|
+
_commit(text, round = false) {
|
|
178
|
+
return commitText(text, this._rules, round);
|
|
253
179
|
}
|
|
254
180
|
_handleInput(e) {
|
|
255
181
|
e.stopPropagation();
|
|
256
182
|
const text = e.target.value;
|
|
257
183
|
this._display = text;
|
|
258
|
-
this.value = this._commit(
|
|
184
|
+
this.value = this._commit(text);
|
|
259
185
|
this._emit('input');
|
|
260
186
|
}
|
|
261
187
|
_handleChange(e) {
|
|
262
188
|
e.stopPropagation();
|
|
263
189
|
const input = e.target;
|
|
264
|
-
const committed = this._commit(
|
|
190
|
+
const committed = this._commit(input.value, true);
|
|
265
191
|
// Normalize on commit: 9u30 ends up as 09:30. Text that is unreadable or
|
|
266
192
|
// out of bounds stays put so it can be repaired.
|
|
267
193
|
const shown = committed || input.value;
|
|
@@ -291,45 +217,18 @@ let NLDDTimeField = NLDDTimeField_1 = class NLDDTimeField extends DescribedBy(Fo
|
|
|
291
217
|
if (this.disabled || this.readonly)
|
|
292
218
|
return;
|
|
293
219
|
e.preventDefault();
|
|
220
|
+
const rules = this._rules;
|
|
294
221
|
const current = this.value || parseTime(this._display);
|
|
295
222
|
const next = current
|
|
296
|
-
?
|
|
297
|
-
:
|
|
223
|
+
? shift(current, e.key === 'ArrowUp' ? 1 : -1, rules)
|
|
224
|
+
: startingPoint(rules, new Date());
|
|
225
|
+
// The text is set as well: retyped text that commits to the same value
|
|
226
|
+
// (1700 for 17:00) has to settle into the notation even when value stays.
|
|
298
227
|
this._display = next;
|
|
299
|
-
this.value =
|
|
228
|
+
this.value = next;
|
|
300
229
|
this._emit('input');
|
|
301
230
|
this._emit('change');
|
|
302
231
|
}
|
|
303
|
-
_startingPoint() {
|
|
304
|
-
const min = parseTime(this.min);
|
|
305
|
-
if (min)
|
|
306
|
-
return min;
|
|
307
|
-
const now = new Date();
|
|
308
|
-
const rounded = roundToStep(fromMinutes(now.getHours() * 60 + now.getMinutes()), this.step, this._stepBase);
|
|
309
|
-
const max = parseTime(this.max);
|
|
310
|
-
if (!max || toMinutes(rounded) <= toMinutes(max))
|
|
311
|
-
return rounded;
|
|
312
|
-
// Past `max` we land on the last step at or before it, not on `max` itself:
|
|
313
|
-
// a max that does not fall on the step is not in the wheel, and a value the
|
|
314
|
-
// wheel does not hold shows up as an empty selection.
|
|
315
|
-
const step = Math.max(1, Math.round(this.step));
|
|
316
|
-
const base = toMinutes(this._stepBase);
|
|
317
|
-
return fromMinutes(base + Math.max(0, Math.floor((toMinutes(max) - base) / step)) * step);
|
|
318
|
-
}
|
|
319
|
-
_shift(from, direction) {
|
|
320
|
-
const step = Math.max(1, Math.round(this.step));
|
|
321
|
-
const base = toMinutes(this._stepBase);
|
|
322
|
-
// From a time that does not fall on the step, move onto the grid first, so
|
|
323
|
-
// a second press does not land between two valid values again.
|
|
324
|
-
const aligned = toMinutes(roundToStep(from, step, this._stepBase));
|
|
325
|
-
const moved = aligned === toMinutes(from) || step === 1
|
|
326
|
-
? aligned + direction * step
|
|
327
|
-
: aligned;
|
|
328
|
-
const clamped = Math.min(Math.max(moved, base % step), LAST_MINUTE_OF_DAY);
|
|
329
|
-
const minMinutes = parseTime(this.min) ? toMinutes(parseTime(this.min)) : 0;
|
|
330
|
-
const maxMinutes = parseTime(this.max) ? toMinutes(parseTime(this.max)) : LAST_MINUTE_OF_DAY;
|
|
331
|
-
return fromMinutes(Math.min(Math.max(clamped, minMinutes), maxMinutes));
|
|
332
|
-
}
|
|
333
232
|
get _slottedPicker() {
|
|
334
233
|
const slot = this.shadowRoot?.querySelector('slot[name="picker"]');
|
|
335
234
|
const found = slot?.assignedElements({ flatten: true })
|
|
@@ -375,10 +274,8 @@ let NLDDTimeField = NLDDTimeField_1 = class NLDDTimeField extends DescribedBy(Fo
|
|
|
375
274
|
}
|
|
376
275
|
_openPicker() {
|
|
377
276
|
this._valueBeforePicker = this.value;
|
|
378
|
-
this.
|
|
379
|
-
this.
|
|
380
|
-
this._pickerCancelled = false;
|
|
381
|
-
this._pickerSeed = this.value || this._startingPoint();
|
|
277
|
+
this._pickerState = 'untouched';
|
|
278
|
+
this._pickerSeed = this.value || startingPoint(this._rules, new Date());
|
|
382
279
|
document.addEventListener('keydown', this._handlePickerEscape, true);
|
|
383
280
|
// Only now does the picker have dimensions: while the popover was closed it
|
|
384
281
|
// could not scroll the chosen value into view and the column sat at the top.
|
|
@@ -403,13 +300,10 @@ let NLDDTimeField = NLDDTimeField_1 = class NLDDTimeField extends DescribedBy(Fo
|
|
|
403
300
|
*/
|
|
404
301
|
_settlePicker() {
|
|
405
302
|
document.removeEventListener('keydown', this._handlePickerEscape, true);
|
|
406
|
-
|
|
407
|
-
// popover, and then the last action is what counts.
|
|
408
|
-
if (!this._pickerConfirmed && (this._pickerCancelled || !this._pickerTouched)) {
|
|
303
|
+
if (this._pickerState === 'untouched' || this._pickerState === 'cancelled') {
|
|
409
304
|
if (this.value === this._valueBeforePicker)
|
|
410
305
|
return;
|
|
411
306
|
this.value = this._valueBeforePicker;
|
|
412
|
-
this._display = this._valueBeforePicker;
|
|
413
307
|
this._emit('input');
|
|
414
308
|
return;
|
|
415
309
|
}
|
|
@@ -417,7 +311,6 @@ let NLDDTimeField = NLDDTimeField_1 = class NLDDTimeField extends DescribedBy(Fo
|
|
|
417
311
|
// the selection, and that is exactly what you are confirming.
|
|
418
312
|
if (!this.value && this._pickerSeed) {
|
|
419
313
|
this.value = this._pickerSeed;
|
|
420
|
-
this._display = this._pickerSeed;
|
|
421
314
|
this._emit('input');
|
|
422
315
|
}
|
|
423
316
|
if (this.value !== this._valueBeforePicker)
|
|
@@ -434,12 +327,8 @@ let NLDDTimeField = NLDDTimeField_1 = class NLDDTimeField extends DescribedBy(Fo
|
|
|
434
327
|
const detail = e.detail;
|
|
435
328
|
if (typeof detail?.value !== 'string')
|
|
436
329
|
return;
|
|
437
|
-
this.
|
|
438
|
-
// An Escape that did not close the popover no longer counts: you are busy
|
|
439
|
-
// again.
|
|
440
|
-
this._pickerCancelled = false;
|
|
330
|
+
this._pickerState = 'touched';
|
|
441
331
|
this.value = detail.value;
|
|
442
|
-
this._display = detail.value;
|
|
443
332
|
this._emit('input');
|
|
444
333
|
}
|
|
445
334
|
/**
|
|
@@ -453,13 +342,12 @@ let NLDDTimeField = NLDDTimeField_1 = class NLDDTimeField extends DescribedBy(Fo
|
|
|
453
342
|
const detail = e.detail;
|
|
454
343
|
if (typeof detail?.value !== 'string')
|
|
455
344
|
return;
|
|
456
|
-
this.
|
|
345
|
+
this._pickerState = 'touched';
|
|
457
346
|
this.value = detail.value;
|
|
458
|
-
this._display = detail.value;
|
|
459
347
|
}
|
|
460
348
|
_handlePickerConfirm(e) {
|
|
461
349
|
e.stopPropagation();
|
|
462
|
-
this.
|
|
350
|
+
this._pickerState = 'confirmed';
|
|
463
351
|
this._closePicker();
|
|
464
352
|
}
|
|
465
353
|
/**
|
|
@@ -476,7 +364,7 @@ let NLDDTimeField = NLDDTimeField_1 = class NLDDTimeField extends DescribedBy(Fo
|
|
|
476
364
|
if (e.target?.closest('nldd-button'))
|
|
477
365
|
return;
|
|
478
366
|
e.preventDefault();
|
|
479
|
-
this.
|
|
367
|
+
this._pickerState = 'confirmed';
|
|
480
368
|
this._closePicker();
|
|
481
369
|
}
|
|
482
370
|
_closePicker() {
|
|
@@ -485,7 +373,7 @@ let NLDDTimeField = NLDDTimeField_1 = class NLDDTimeField extends DescribedBy(Fo
|
|
|
485
373
|
}
|
|
486
374
|
_handlePickerDismiss(e) {
|
|
487
375
|
e.stopPropagation();
|
|
488
|
-
this.
|
|
376
|
+
this._pickerState = 'cancelled';
|
|
489
377
|
// Same as after a choice: focus back on the button. Without this, Annuleer,
|
|
490
378
|
// Escape and a click beside it leave focus on the input.
|
|
491
379
|
this._focusTriggerOnClose = true;
|
|
@@ -494,16 +382,35 @@ let NLDDTimeField = NLDDTimeField_1 = class NLDDTimeField extends DescribedBy(Fo
|
|
|
494
382
|
formValue() {
|
|
495
383
|
return this.value;
|
|
496
384
|
}
|
|
385
|
+
/**
|
|
386
|
+
* What `value` cannot say. It holds a valid time or nothing, so text that is
|
|
387
|
+
* no time, a time outside min/max and an empty field all read as ''. The
|
|
388
|
+
* field tells them apart for the form; when to show it stays the caller's.
|
|
389
|
+
*/
|
|
390
|
+
ownValidity() {
|
|
391
|
+
const problem = checkText(this._display, this._rules);
|
|
392
|
+
return problem ? { flags: { [problem.flag]: true }, message: this._problemMessage(problem) } : null;
|
|
393
|
+
}
|
|
394
|
+
_problemMessage(problem) {
|
|
395
|
+
switch (problem.flag) {
|
|
396
|
+
case 'badInput':
|
|
397
|
+
return this._t('components.time-field.bad-input-error-text');
|
|
398
|
+
case 'rangeUnderflow':
|
|
399
|
+
return this._t('components.time-field.range-underflow-error-text').replace('{time}', problem.bound);
|
|
400
|
+
case 'rangeOverflow':
|
|
401
|
+
return this._t('components.time-field.range-overflow-error-text').replace('{time}', problem.bound);
|
|
402
|
+
}
|
|
403
|
+
}
|
|
497
404
|
formResetCallback() {
|
|
498
|
-
|
|
405
|
+
// The text as well: text that is no time leaves value empty, so a reset to
|
|
406
|
+
// an empty value would not change value and the text would stay.
|
|
499
407
|
this._display = this._initialValue;
|
|
408
|
+
this.value = this._initialValue;
|
|
500
409
|
this.commitFormValue();
|
|
501
410
|
}
|
|
502
411
|
formStateRestoreCallback(state) {
|
|
503
|
-
if (typeof state === 'string')
|
|
412
|
+
if (typeof state === 'string')
|
|
504
413
|
this.value = state;
|
|
505
|
-
this._display = state;
|
|
506
|
-
}
|
|
507
414
|
}
|
|
508
415
|
_emit(type) {
|
|
509
416
|
this.commitFormValue();
|
|
@@ -515,15 +422,14 @@ let NLDDTimeField = NLDDTimeField_1 = class NLDDTimeField extends DescribedBy(Fo
|
|
|
515
422
|
}
|
|
516
423
|
firstUpdated() {
|
|
517
424
|
this._initialValue = this.value;
|
|
518
|
-
if (this.value)
|
|
519
|
-
this._display = this.value;
|
|
520
425
|
this.commitFormValue();
|
|
521
426
|
}
|
|
522
427
|
willUpdate(changed) {
|
|
523
|
-
//
|
|
524
|
-
//
|
|
525
|
-
//
|
|
526
|
-
|
|
428
|
+
// The one place the text follows `value`: set from outside, by a reset, by
|
|
429
|
+
// the picker. Not while typing: there the text already commits to the
|
|
430
|
+
// value, so it is left exactly as entered, and so is text outside the
|
|
431
|
+
// bounds, which commits to nothing.
|
|
432
|
+
if (changed.has('value') && this._commit(this._display) !== this.value) {
|
|
527
433
|
this._display = this.value;
|
|
528
434
|
}
|
|
529
435
|
}
|