@nldd/design-system 0.12.0 → 0.13.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 +3253 -398
- 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 +4 -3
- package/dist/components/actions/button-group/button-group.d.ts.map +1 -1
- package/dist/components/actions/button-group/button-group.js +4 -3
- 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 +6 -6
- package/dist/components/actions/button-group/button-group.styles.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 +54 -269
- package/dist/components/actions/menu/menu.d.ts.map +1 -1
- package/dist/components/actions/menu/menu.js +106 -981
- 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 +5511 -3932
- package/dist/components/content/avatar/avatar.d.ts +2 -1
- package/dist/components/content/avatar/avatar.d.ts.map +1 -1
- package/dist/components/content/avatar/avatar.js +12 -1
- package/dist/components/content/avatar/avatar.js.map +1 -1
- package/dist/components/content/avatar-group/avatar-group.d.ts +30 -2
- package/dist/components/content/avatar-group/avatar-group.d.ts.map +1 -1
- package/dist/components/content/avatar-group/avatar-group.i18n.d.ts +1 -0
- package/dist/components/content/avatar-group/avatar-group.i18n.d.ts.map +1 -1
- package/dist/components/content/avatar-group/avatar-group.i18n.js +1 -0
- package/dist/components/content/avatar-group/avatar-group.i18n.js.map +1 -1
- package/dist/components/content/avatar-group/avatar-group.js +96 -7
- package/dist/components/content/avatar-group/avatar-group.js.map +1 -1
- package/dist/components/content/avatar-group/avatar-group.styles.d.ts.map +1 -1
- package/dist/components/content/avatar-group/avatar-group.styles.js +35 -1
- package/dist/components/content/avatar-group/avatar-group.styles.js.map +1 -1
- package/dist/components/content/avatar-group/avatar-group.template.d.ts +1 -0
- package/dist/components/content/avatar-group/avatar-group.template.d.ts.map +1 -1
- package/dist/components/content/avatar-group/avatar-group.template.js +52 -29
- package/dist/components/content/avatar-group/avatar-group.template.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 +48 -14
- 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 +30 -0
- 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 +16 -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 +16 -3
- package/dist/components/content/icon/icon-registry.js.map +1 -1
- package/dist/components/content/tooltip/tooltip.d.ts.map +1 -1
- package/dist/components/content/tooltip/tooltip.js +2 -0
- package/dist/components/content/tooltip/tooltip.js.map +1 -1
- 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/{gherkin-uCVRxsGf.js → gherkin-DzYbEwDO.js} +1 -2
- package/dist/components/{icon-DFhgRf3P.js → icon-DZ1UXCzO.js} +42 -16
- package/dist/components/{icon-button-Sxkh5cVr.js → icon-button-984CwkU1.js} +106 -43
- 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 +42 -7
- 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/date-picker/date-picker.d.ts +2 -2
- package/dist/components/inputs/date-picker/date-picker.i18n.d.ts +1 -1
- package/dist/components/inputs/date-picker/date-picker.i18n.js +1 -1
- package/dist/components/inputs/date-picker/date-picker.i18n.js.map +1 -1
- package/dist/components/inputs/date-picker/date-picker.template.js +1 -1
- package/dist/components/inputs/date-picker/date-picker.template.js.map +1 -1
- package/dist/components/inputs/file-field/file-field.d.ts +86 -10
- package/dist/components/inputs/file-field/file-field.d.ts.map +1 -1
- package/dist/components/inputs/file-field/file-field.drop.d.ts +34 -0
- package/dist/components/inputs/file-field/file-field.drop.d.ts.map +1 -0
- package/dist/components/inputs/file-field/file-field.drop.js +176 -0
- package/dist/components/inputs/file-field/file-field.drop.js.map +1 -0
- package/dist/components/inputs/file-field/file-field.i18n.d.ts +20 -1
- package/dist/components/inputs/file-field/file-field.i18n.d.ts.map +1 -1
- package/dist/components/inputs/file-field/file-field.i18n.js +20 -1
- package/dist/components/inputs/file-field/file-field.i18n.js.map +1 -1
- package/dist/components/inputs/file-field/file-field.js +283 -15
- 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 +245 -10
- 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 +167 -28
- package/dist/components/inputs/file-field/file-field.template.js.map +1 -1
- package/dist/components/inputs/file-field/file-field.truncate.d.ts +22 -0
- package/dist/components/inputs/file-field/file-field.truncate.d.ts.map +1 -0
- package/dist/components/inputs/file-field/file-field.truncate.js +62 -0
- package/dist/components/inputs/file-field/file-field.truncate.js.map +1 -0
- 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/text-editor/text-editor.code-copy.d.ts +10 -0
- package/dist/components/inputs/text-editor/text-editor.code-copy.d.ts.map +1 -0
- package/dist/components/inputs/text-editor/text-editor.code-copy.js +141 -0
- package/dist/components/inputs/text-editor/text-editor.code-copy.js.map +1 -0
- package/dist/components/inputs/text-editor/text-editor.d.ts.map +1 -1
- package/dist/components/inputs/text-editor/text-editor.hidden-syntax.d.ts.map +1 -1
- package/dist/components/inputs/text-editor/text-editor.hidden-syntax.js +55 -7
- package/dist/components/inputs/text-editor/text-editor.hidden-syntax.js.map +1 -1
- package/dist/components/inputs/text-editor/text-editor.i18n.d.ts +5 -0
- package/dist/components/inputs/text-editor/text-editor.i18n.d.ts.map +1 -1
- package/dist/components/inputs/text-editor/text-editor.i18n.js +7 -0
- package/dist/components/inputs/text-editor/text-editor.i18n.js.map +1 -1
- package/dist/components/inputs/text-editor/text-editor.js +34 -3
- package/dist/components/inputs/text-editor/text-editor.js.map +1 -1
- package/dist/components/inputs/text-editor/text-editor.markdown.d.ts.map +1 -1
- package/dist/components/inputs/text-editor/text-editor.markdown.js +6 -2
- package/dist/components/inputs/text-editor/text-editor.markdown.js.map +1 -1
- package/dist/components/inputs/text-editor/text-editor.selection.d.ts.map +1 -1
- package/dist/components/inputs/text-editor/text-editor.selection.js +43 -7
- 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 +147 -7
- package/dist/components/inputs/text-editor/text-editor.styles.js.map +1 -1
- package/dist/components/inputs/text-editor/text-editor.tasks.d.ts +17 -0
- package/dist/components/inputs/text-editor/text-editor.tasks.d.ts.map +1 -0
- package/dist/components/inputs/text-editor/text-editor.tasks.js +113 -0
- package/dist/components/inputs/text-editor/text-editor.tasks.js.map +1 -0
- 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/page-sections/hero/hero-corner.styles.d.ts.map +1 -1
- package/dist/components/layout/page-sections/hero/hero-corner.styles.js +61 -0
- package/dist/components/layout/page-sections/hero/hero-corner.styles.js.map +1 -1
- package/dist/components/layout/page-sections/hero/hero.d.ts +1 -1
- package/dist/components/layout/page-sections/hero/hero.js +1 -1
- package/dist/components/layout/popover/popover.d.ts +6 -0
- package/dist/components/layout/popover/popover.d.ts.map +1 -1
- package/dist/components/layout/popover/popover.js +16 -0
- package/dist/components/layout/popover/popover.js.map +1 -1
- package/dist/components/layout/popover/popover.styles.d.ts.map +1 -1
- package/dist/components/layout/popover/popover.styles.js +13 -0
- package/dist/components/layout/popover/popover.styles.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/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/document-tab-bar/document-tab-bar.d.ts.map +1 -1
- package/dist/components/navigation/document-tab-bar/document-tab-bar.js +5 -0
- package/dist/components/navigation/document-tab-bar/document-tab-bar.js.map +1 -1
- package/dist/components/navigation/link/link.d.ts +6 -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 +7 -0
- package/dist/components/navigation/link/link.js.map +1 -1
- package/dist/components/navigation/link/link.template.d.ts.map +1 -1
- package/dist/components/navigation/link/link.template.js +5 -2
- package/dist/components/navigation/link/link.template.js.map +1 -1
- package/dist/components/navigation/menu-bar/menu-bar.d.ts.map +1 -1
- package/dist/components/navigation/menu-bar/menu-bar.js +2 -0
- package/dist/components/navigation/menu-bar/menu-bar.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/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 -220
- 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/banner/banner.d.ts +1 -1
- package/dist/components/status-and-feedback/banner/banner.js +2 -2
- package/dist/components/status-and-feedback/banner/banner.js.map +1 -1
- package/dist/components/status-and-feedback/notification/notification.d.ts +1 -1
- package/dist/components/status-and-feedback/notification/notification.d.ts.map +1 -1
- package/dist/components/status-and-feedback/notification/notification.js +4 -2
- package/dist/components/status-and-feedback/notification/notification.js.map +1 -1
- package/dist/components/status-and-feedback/progress-bar/progress-bar.i18n.d.ts +1 -1
- package/dist/components/status-and-feedback/progress-bar/progress-bar.i18n.js +1 -1
- package/dist/components/status-and-feedback/progress-bar/progress-bar.i18n.js.map +1 -1
- package/dist/components/status-and-feedback/progress-bar/progress-bar.js +1 -1
- package/dist/components/status-and-feedback/progress-bar/progress-bar.js.map +1 -1
- package/dist/components/status-and-feedback/progress-circle/progress-circle.i18n.d.ts +1 -1
- package/dist/components/status-and-feedback/progress-circle/progress-circle.i18n.js +1 -1
- package/dist/components/status-and-feedback/progress-circle/progress-circle.i18n.js.map +1 -1
- package/dist/components/status-and-feedback/progress-circle/progress-circle.js +1 -1
- 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 +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/themes/donkergeel.css +5 -0
- package/dist/css/themes/geel.css +5 -0
- package/dist/css/themes.css +10 -0
- package/dist/css/variables.css +11 -11
- package/dist/nldd.min.js +2089 -1398
- package/dist/translations/en-US.d.ts.map +1 -1
- package/dist/translations/en-US.js +42 -4
- package/dist/translations/en-US.js.map +1 -1
- package/dist/translations/fy.d.ts.map +1 -1
- package/dist/translations/fy.js +42 -4
- package/dist/translations/fy.js.map +1 -1
- package/dist/translations/nl.generated.d.ts +42 -4
- package/dist/translations/nl.generated.d.ts.map +1 -1
- package/dist/translations/pap-AW.d.ts.map +1 -1
- package/dist/translations/pap-AW.js +42 -4
- 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 +42 -4
- package/dist/translations/pap-CW.js.map +1 -1
- package/dist/types/vue.d.ts +69 -33
- package/dist/utilities/carried-context.d.ts +20 -0
- package/dist/utilities/carried-context.d.ts.map +1 -0
- package/dist/utilities/carried-context.js +76 -0
- package/dist/utilities/carried-context.js.map +1 -0
- package/dist/utilities/codemirror/languages.d.ts +5 -1
- package/dist/utilities/codemirror/languages.d.ts.map +1 -1
- package/dist/utilities/codemirror/languages.js +21 -1
- package/dist/utilities/codemirror/languages.js.map +1 -1
- package/dist/utilities/dismiss-from-title-bar.d.ts +1 -1
- package/dist/utilities/dismiss-from-title-bar.js +1 -1
- 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/package.json +2 -2
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { t as inheritedTextReset } from "./shadow-resets-
|
|
2
|
-
import {
|
|
3
|
-
import { t as reflectNonDefault } from "./reflect-non-default-
|
|
4
|
-
import { t as __decorate } from "./decorate-
|
|
5
|
-
import "./icon-
|
|
6
|
-
import { r as isTouchMode } from "./input-modality-
|
|
1
|
+
import { t as inheritedTextReset } from "./shadow-resets-BwOyyZFH.js";
|
|
2
|
+
import { i as downloadLinkHintKey, r as translate, s as linkRel, t as withTranslations } from "./with-translations-DRuOq3QK.js";
|
|
3
|
+
import { t as reflectNonDefault } from "./reflect-non-default-B9wQcnne.js";
|
|
4
|
+
import { t as __decorate } from "./decorate-Cz9-peTN.js";
|
|
5
|
+
import "./icon-DZ1UXCzO.js";
|
|
6
|
+
import { r as isTouchMode } from "./input-modality-CiPLYYMN.js";
|
|
7
7
|
import { LitElement, css, html, nothing } from "lit";
|
|
8
8
|
import { customElement, property, state } from "lit/decorators.js";
|
|
9
9
|
import { classMap } from "lit/directives/class-map.js";
|
|
10
10
|
import { computePosition, flip, offset, shift } from "@floating-ui/dom";
|
|
11
|
-
|
|
11
|
+
// src/utilities/os.ts
|
|
12
12
|
var cached = null;
|
|
13
13
|
var override = null;
|
|
14
14
|
function classify(platform) {
|
|
@@ -30,8 +30,7 @@ function detectOS() {
|
|
|
30
30
|
cached = classify(nav.userAgentData?.platform || nav.platform || "");
|
|
31
31
|
return cached;
|
|
32
32
|
}
|
|
33
|
-
|
|
34
|
-
//#region src/utilities/shortcut.ts
|
|
33
|
+
// src/utilities/shortcut.ts
|
|
35
34
|
function hasShortcut(hint) {
|
|
36
35
|
return Boolean(hint.shortcut || hint.shortcutMac || hint.shortcutWindows || hint.shortcutLinux);
|
|
37
36
|
}
|
|
@@ -91,8 +90,7 @@ function shortcutLabel(hint) {
|
|
|
91
90
|
linuxKeys: hint.shortcutLinux
|
|
92
91
|
}, detectOS())).join(" ");
|
|
93
92
|
}
|
|
94
|
-
|
|
95
|
-
//#region src/components/content/keyboard-shortcut/keyboard-shortcut.styles.ts
|
|
93
|
+
// src/components/content/keyboard-shortcut/keyboard-shortcut.styles.ts
|
|
96
94
|
var keyboardShortcutStyles = css`
|
|
97
95
|
:host {
|
|
98
96
|
box-sizing: border-box;
|
|
@@ -236,8 +234,7 @@ var keyboardShortcutStyles = css`
|
|
|
236
234
|
line-height: var(--_keyboard-shortcut-line-height);
|
|
237
235
|
}
|
|
238
236
|
`;
|
|
239
|
-
|
|
240
|
-
//#region src/components/content/keyboard-shortcut/keyboard-shortcut.template.ts
|
|
237
|
+
// src/components/content/keyboard-shortcut/keyboard-shortcut.template.ts
|
|
241
238
|
function template$1(component) {
|
|
242
239
|
const keys = component._parsedKeys;
|
|
243
240
|
if (keys.length === 0) return html`
|
|
@@ -256,8 +253,7 @@ function template$1(component) {
|
|
|
256
253
|
</kbd>
|
|
257
254
|
`;
|
|
258
255
|
}
|
|
259
|
-
|
|
260
|
-
//#region src/components/content/keyboard-shortcut/keyboard-shortcut.ts
|
|
256
|
+
// src/components/content/keyboard-shortcut/keyboard-shortcut.ts
|
|
261
257
|
/**
|
|
262
258
|
* Nederlandse Digitale Dienst Keyboard Shortcut Component (Lit + TypeScript)
|
|
263
259
|
*
|
|
@@ -366,8 +362,7 @@ __decorate([property({
|
|
|
366
362
|
attribute: "debug-os"
|
|
367
363
|
})], NLDDKeyboardShortcut.prototype, "debugOS", void 0);
|
|
368
364
|
NLDDKeyboardShortcut = __decorate([customElement("nldd-keyboard-shortcut")], NLDDKeyboardShortcut);
|
|
369
|
-
|
|
370
|
-
//#region src/utilities/popup-anchor-controller.ts
|
|
365
|
+
// src/utilities/popup-anchor-controller.ts
|
|
371
366
|
var OVERLAY_SELECTOR = "nldd-menu, nldd-popover";
|
|
372
367
|
var PopupAnchorController = class {
|
|
373
368
|
constructor(host, options = {}) {
|
|
@@ -415,8 +410,7 @@ var PopupAnchorController = class {
|
|
|
415
410
|
return true;
|
|
416
411
|
}
|
|
417
412
|
};
|
|
418
|
-
|
|
419
|
-
//#region src/components/status-and-feedback/activity-indicator/activity-indicator.styles.ts
|
|
413
|
+
// src/components/status-and-feedback/activity-indicator/activity-indicator.styles.ts
|
|
420
414
|
var activityIndicatorStyles = css`
|
|
421
415
|
:host {
|
|
422
416
|
box-sizing: border-box;
|
|
@@ -662,8 +656,7 @@ var activityIndicatorStyles = css`
|
|
|
662
656
|
}
|
|
663
657
|
}
|
|
664
658
|
`;
|
|
665
|
-
|
|
666
|
-
//#region src/components/status-and-feedback/activity-indicator/activity-indicator.template.ts
|
|
659
|
+
// src/components/status-and-feedback/activity-indicator/activity-indicator.template.ts
|
|
667
660
|
function activityIndicatorTemplate(component) {
|
|
668
661
|
const disableContent = component._visible && !component.complete && component._hasContent;
|
|
669
662
|
const renderBackdrop = component._hasContent && !component.noBackdrop;
|
|
@@ -702,11 +695,9 @@ function activityIndicatorTemplate(component) {
|
|
|
702
695
|
</div>
|
|
703
696
|
`;
|
|
704
697
|
}
|
|
705
|
-
|
|
706
|
-
//#region src/components/status-and-feedback/activity-indicator/activity-indicator.i18n.ts
|
|
698
|
+
// src/components/status-and-feedback/activity-indicator/activity-indicator.i18n.ts
|
|
707
699
|
var nlddActivityIndicatorTranslations = { "components.activity-indicator.loading-label": "Laden" };
|
|
708
|
-
|
|
709
|
-
//#region src/components/status-and-feedback/activity-indicator/activity-indicator.ts
|
|
700
|
+
// src/components/status-and-feedback/activity-indicator/activity-indicator.ts
|
|
710
701
|
/**
|
|
711
702
|
* Nederlandse Digitale Dienst Activity Indicator Component (Lit + TypeScript)
|
|
712
703
|
*
|
|
@@ -883,8 +874,7 @@ __decorate([property({ type: Object })], NLDDActivityIndicator.prototype, "trans
|
|
|
883
874
|
__decorate([state()], NLDDActivityIndicator.prototype, "_visible", void 0);
|
|
884
875
|
__decorate([state()], NLDDActivityIndicator.prototype, "_hasContent", void 0);
|
|
885
876
|
NLDDActivityIndicator = __decorate([customElement("nldd-activity-indicator")], NLDDActivityIndicator);
|
|
886
|
-
|
|
887
|
-
//#region src/components/actions/icon-button/icon-button.styles.ts
|
|
877
|
+
// src/components/actions/icon-button/icon-button.styles.ts
|
|
888
878
|
var iconButtonStyles = css`
|
|
889
879
|
:host {
|
|
890
880
|
box-sizing: border-box;
|
|
@@ -1315,8 +1305,7 @@ var iconButtonStyles = css`
|
|
|
1315
1305
|
color: var(--_icon-button-primary-content-color);
|
|
1316
1306
|
}
|
|
1317
1307
|
`;
|
|
1318
|
-
|
|
1319
|
-
//#region src/components/content/tooltip/tooltip.styles.ts
|
|
1308
|
+
// src/components/content/tooltip/tooltip.styles.ts
|
|
1320
1309
|
var tooltipStyles = css`
|
|
1321
1310
|
:host {
|
|
1322
1311
|
box-sizing: border-box;
|
|
@@ -1430,8 +1419,7 @@ var tooltipStyles = css`
|
|
|
1430
1419
|
}
|
|
1431
1420
|
}
|
|
1432
1421
|
`;
|
|
1433
|
-
|
|
1434
|
-
//#region src/components/content/tooltip/tooltip.template.ts
|
|
1422
|
+
// src/components/content/tooltip/tooltip.template.ts
|
|
1435
1423
|
function tooltipTemplate(component) {
|
|
1436
1424
|
return html`
|
|
1437
1425
|
<slot
|
|
@@ -1466,8 +1454,78 @@ function tooltipTemplate(component) {
|
|
|
1466
1454
|
</div>
|
|
1467
1455
|
`;
|
|
1468
1456
|
}
|
|
1469
|
-
|
|
1470
|
-
|
|
1457
|
+
// src/utilities/carried-context.ts
|
|
1458
|
+
/**
|
|
1459
|
+
* The color scheme and language an element had in its place on the page,
|
|
1460
|
+
* carried along when a component moves it somewhere else: a submenu into
|
|
1461
|
+
* `<body>` for a drill-in, an overflow menu or sheet that lives in `<body>`, a
|
|
1462
|
+
* notification into the shared area.
|
|
1463
|
+
*
|
|
1464
|
+
* Both inherit, so a moved element takes those of its new parent. A submenu
|
|
1465
|
+
* from a dark section of the page turns light, and a screen reader reads an
|
|
1466
|
+
* English menu with Dutch pronunciation. A theme needs nothing: it sits on
|
|
1467
|
+
* `:root`, which is the same everywhere.
|
|
1468
|
+
*
|
|
1469
|
+
* Only what this helper wrote itself is ever overwritten or taken back: a
|
|
1470
|
+
* `lang` or `color-scheme` set on the element by its author stays.
|
|
1471
|
+
*/
|
|
1472
|
+
var carried = /* @__PURE__ */ new WeakMap();
|
|
1473
|
+
/** The language of an element, looking past shadow roots to their hosts. */
|
|
1474
|
+
function langOf(el) {
|
|
1475
|
+
let node = el;
|
|
1476
|
+
while (node) {
|
|
1477
|
+
const owner = node.closest("[lang]");
|
|
1478
|
+
if (owner) return owner.getAttribute("lang");
|
|
1479
|
+
const root = node.getRootNode();
|
|
1480
|
+
node = root instanceof ShadowRoot ? root.host : null;
|
|
1481
|
+
}
|
|
1482
|
+
return null;
|
|
1483
|
+
}
|
|
1484
|
+
/** Gives `element` the color scheme and language of `origin`. Call it each
|
|
1485
|
+
* time the element shows, since the page around the origin may have changed. */
|
|
1486
|
+
function carryContext(element, origin) {
|
|
1487
|
+
if (!origin?.isConnected) return;
|
|
1488
|
+
const previous = carried.get(element) ?? {
|
|
1489
|
+
scheme: null,
|
|
1490
|
+
lang: null
|
|
1491
|
+
};
|
|
1492
|
+
const next = {
|
|
1493
|
+
scheme: previous.scheme,
|
|
1494
|
+
lang: previous.lang
|
|
1495
|
+
};
|
|
1496
|
+
const ownScheme = element.style.colorScheme;
|
|
1497
|
+
if (!ownScheme || ownScheme === previous.scheme) {
|
|
1498
|
+
const scheme = getComputedStyle(origin).colorScheme;
|
|
1499
|
+
if (scheme && scheme !== "normal") {
|
|
1500
|
+
element.style.colorScheme = scheme;
|
|
1501
|
+
next.scheme = element.style.colorScheme;
|
|
1502
|
+
} else {
|
|
1503
|
+
if (previous.scheme) element.style.removeProperty("color-scheme");
|
|
1504
|
+
next.scheme = null;
|
|
1505
|
+
}
|
|
1506
|
+
}
|
|
1507
|
+
const ownLang = element.getAttribute("lang");
|
|
1508
|
+
if (ownLang === null || ownLang === previous.lang) {
|
|
1509
|
+
const lang = langOf(origin);
|
|
1510
|
+
if (lang) {
|
|
1511
|
+
element.setAttribute("lang", lang);
|
|
1512
|
+
next.lang = lang;
|
|
1513
|
+
} else {
|
|
1514
|
+
if (previous.lang) element.removeAttribute("lang");
|
|
1515
|
+
next.lang = null;
|
|
1516
|
+
}
|
|
1517
|
+
}
|
|
1518
|
+
carried.set(element, next);
|
|
1519
|
+
}
|
|
1520
|
+
/** Takes back what `carryContext` wrote, for an element returned to its place. */
|
|
1521
|
+
function releaseContext(element) {
|
|
1522
|
+
const previous = carried.get(element);
|
|
1523
|
+
if (!previous) return;
|
|
1524
|
+
if (previous.scheme && element.style.colorScheme === previous.scheme) element.style.removeProperty("color-scheme");
|
|
1525
|
+
if (previous.lang && element.getAttribute("lang") === previous.lang) element.removeAttribute("lang");
|
|
1526
|
+
carried.delete(element);
|
|
1527
|
+
}
|
|
1528
|
+
// src/components/content/tooltip/tooltip.ts
|
|
1471
1529
|
/**
|
|
1472
1530
|
* Nederlandse Digitale Dienst Tooltip Component (Lit + TypeScript)
|
|
1473
1531
|
*
|
|
@@ -1630,6 +1688,7 @@ var NLDDTooltip = (_NLDDTooltip = class NLDDTooltip extends LitElement {
|
|
|
1630
1688
|
});
|
|
1631
1689
|
document.body.appendChild(this._descriptionEl);
|
|
1632
1690
|
}
|
|
1691
|
+
carryContext(this._descriptionEl, this);
|
|
1633
1692
|
if (this._descriptionEl.textContent !== description) this._descriptionEl.textContent = description;
|
|
1634
1693
|
if (trigger.getAttribute("aria-describedby") !== this._tooltipId) trigger.setAttribute("aria-describedby", this._tooltipId);
|
|
1635
1694
|
} else {
|
|
@@ -1812,8 +1871,7 @@ __decorate([property({
|
|
|
1812
1871
|
})], NLDDTooltip.prototype, "timing", void 0);
|
|
1813
1872
|
__decorate([state()], NLDDTooltip.prototype, "_visible", void 0);
|
|
1814
1873
|
NLDDTooltip = __decorate([customElement("nldd-tooltip")], NLDDTooltip);
|
|
1815
|
-
|
|
1816
|
-
//#region src/components/actions/icon-button/icon-button.template.ts
|
|
1874
|
+
// src/components/actions/icon-button/icon-button.template.ts
|
|
1817
1875
|
function renderContent(component) {
|
|
1818
1876
|
return html`
|
|
1819
1877
|
<span class="icon-button__icon-area">
|
|
@@ -1834,7 +1892,8 @@ function renderContent(component) {
|
|
|
1834
1892
|
`;
|
|
1835
1893
|
}
|
|
1836
1894
|
function template() {
|
|
1837
|
-
const hintKey =
|
|
1895
|
+
const hintKey = downloadLinkHintKey(this.href, this.target, this.download);
|
|
1896
|
+
if (this.href) this.download, this.target;
|
|
1838
1897
|
const linkHint = hintKey ? this._t(`components.icon-button.${hintKey}`) : "";
|
|
1839
1898
|
const label = [[this.accessibleLabel || this.text, shortcutLabel(this)].filter(Boolean).join(" "), linkHint].filter(Boolean).join(", ") || nothing;
|
|
1840
1899
|
const content = renderContent(this);
|
|
@@ -1859,6 +1918,7 @@ function template() {
|
|
|
1859
1918
|
href=${this.href}
|
|
1860
1919
|
target=${this.target || nothing}
|
|
1861
1920
|
rel=${resolvedRel || nothing}
|
|
1921
|
+
download=${this.download ?? nothing}
|
|
1862
1922
|
aria-disabled=${this.disabled ? "true" : nothing}
|
|
1863
1923
|
aria-label=${label}
|
|
1864
1924
|
aria-haspopup=${this.popupType || nothing}
|
|
@@ -1907,15 +1967,14 @@ function template() {
|
|
|
1907
1967
|
const popupSlot = html`<slot name="popup" @slotchange=${this._popup.handleSlotChange}></slot>`;
|
|
1908
1968
|
return html`${control}${loadingIndicator}${popupSlot}`;
|
|
1909
1969
|
}
|
|
1910
|
-
|
|
1911
|
-
//#region src/components/actions/icon-button/icon-button.i18n.ts
|
|
1970
|
+
// src/components/actions/icon-button/icon-button.i18n.ts
|
|
1912
1971
|
var nlddIconButtonTranslations = {
|
|
1913
1972
|
"components.icon-button.link-hint-new-tab-lowercase-label": "opent in nieuw tabblad",
|
|
1914
1973
|
"components.icon-button.link-hint-external-lowercase-label": "andere website",
|
|
1915
|
-
"components.icon-button.link-hint-external-new-tab-lowercase-label": "andere website, opent in nieuw tabblad"
|
|
1974
|
+
"components.icon-button.link-hint-external-new-tab-lowercase-label": "andere website, opent in nieuw tabblad",
|
|
1975
|
+
"components.icon-button.link-hint-download-lowercase-label": "downloadt bestand"
|
|
1916
1976
|
};
|
|
1917
|
-
|
|
1918
|
-
//#region src/components/actions/icon-button/icon-button.ts
|
|
1977
|
+
// src/components/actions/icon-button/icon-button.ts
|
|
1919
1978
|
/**
|
|
1920
1979
|
* Nederlandse Digitale Dienst Icon Button Component (Lit + TypeScript)
|
|
1921
1980
|
*
|
|
@@ -1943,6 +2002,7 @@ var nlddIconButtonTranslations = {
|
|
|
1943
2002
|
* @attr {string} shortcut-linux - Override of `shortcut` on Linux (falls back to `shortcut`).
|
|
1944
2003
|
* @attr {string} href - When set, renders an <a> element instead of <button>
|
|
1945
2004
|
* @attr {string} target - Link target (e.g. '_blank'); only used when href is set. With '_blank' the "opens in new tab" announcement is folded into the aria-label for screen readers (WCAG 2.1 SC 3.2.2). An `href` to another origin than the page (another website, a subdomain too) adds a visually hidden "andere website", in one sentence with the new-tab announcement when both apply; there is no way to switch it off.
|
|
2005
|
+
* @attr {string} download - Saves the file the link points at instead of opening it; only used with href. Without a value the browser takes the name from the URL, with one that is the file name. A browser ignores it for a URL on another origin and opens the file there. Adds a visually hidden "downloadt bestand" for screen readers. Leave `target` off: a download opens no tab.
|
|
1946
2006
|
* @attr {string} rel - Link rel attribute, used with href; with target '_blank', 'noopener noreferrer' is added to whatever you set
|
|
1947
2007
|
* @attr {object} translations - Override translation keys (e.g. the "opens in new tab" announcement); unset keys fall back to Dutch.
|
|
1948
2008
|
* @attr {string} popovertarget - ID of a popover element to toggle; forwarded to the inner <button>
|
|
@@ -1953,6 +2013,8 @@ var nlddIconButtonTranslations = {
|
|
|
1953
2013
|
* @example
|
|
1954
2014
|
* ```html
|
|
1955
2015
|
* <nldd-icon-button
|
|
2016
|
+
* href="/aanvraag-a-1042.pdf"
|
|
2017
|
+
* download
|
|
1956
2018
|
* text="Download"
|
|
1957
2019
|
* icon="download"
|
|
1958
2020
|
* ></nldd-icon-button>
|
|
@@ -1989,6 +2051,7 @@ var _NLDDIconButton = class NLDDIconButton extends withTranslations(LitElement,
|
|
|
1989
2051
|
this.shortcutLinux = "";
|
|
1990
2052
|
this.href = void 0;
|
|
1991
2053
|
this.target = void 0;
|
|
2054
|
+
this.download = void 0;
|
|
1992
2055
|
this.rel = void 0;
|
|
1993
2056
|
this._warnedA11y = false;
|
|
1994
2057
|
this._popup = new PopupAnchorController(this);
|
|
@@ -2134,7 +2197,7 @@ __decorate([property({
|
|
|
2134
2197
|
reflect: true
|
|
2135
2198
|
})], NLDDIconButton.prototype, "href", void 0);
|
|
2136
2199
|
__decorate([property({ type: String })], NLDDIconButton.prototype, "target", void 0);
|
|
2200
|
+
__decorate([property({ type: String })], NLDDIconButton.prototype, "download", void 0);
|
|
2137
2201
|
__decorate([property({ type: String })], NLDDIconButton.prototype, "rel", void 0);
|
|
2138
2202
|
NLDDIconButton = __decorate([customElement("nldd-icon-button")], NLDDIconButton);
|
|
2139
|
-
|
|
2140
|
-
export { NLDDKeyboardShortcut as a, shortcutLabel as c, PopupAnchorController as i, shortcutsAvailable as l, NLDDTooltip as n, ShortcutAvailabilityController as o, NLDDActivityIndicator as r, hasShortcut as s, NLDDIconButton as t };
|
|
2203
|
+
export { NLDDActivityIndicator as a, ShortcutAvailabilityController as c, shortcutsAvailable as d, releaseContext as i, hasShortcut as l, NLDDTooltip as n, PopupAnchorController as o, carryContext as r, NLDDKeyboardShortcut as s, NLDDIconButton as t, shortcutLabel as u };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/utilities/input-modality.ts
|
|
2
2
|
var modality = "mouse";
|
|
3
3
|
var initialized = false;
|
|
4
4
|
var controller = null;
|
|
@@ -39,5 +39,4 @@ function isPointerMode() {
|
|
|
39
39
|
function isTouchMode() {
|
|
40
40
|
return getInputModality() === "touch";
|
|
41
41
|
}
|
|
42
|
-
//#endregion
|
|
43
42
|
export { isPointerMode as n, isTouchMode as r, isKeyboardMode as t };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"code-editor.styles.d.ts","sourceRoot":"","sources":["../../../../src/components/inputs/code-editor/code-editor.styles.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,gBAAgB,
|
|
1
|
+
{"version":3,"file":"code-editor.styles.d.ts","sourceRoot":"","sources":["../../../../src/components/inputs/code-editor/code-editor.styles.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,gBAAgB,yBA2K5B,CAAC"}
|
|
@@ -13,10 +13,16 @@ export const codeEditorStyles = css `
|
|
|
13
13
|
--_code-editor-caret-color: var(--components-code-editor-caret-color);
|
|
14
14
|
--_code-editor-corner-radius: 0;
|
|
15
15
|
--_code-editor-background-color: transparent;
|
|
16
|
-
--_code-editor-
|
|
17
|
-
--_code-editor-border-
|
|
16
|
+
--_code-editor-gutter-background-color: var(--context-parent-background-color, var(--semantics-surfaces-base-background-color));
|
|
17
|
+
--_code-editor-gutter-border-width: var(--semantics-dividers-thickness);
|
|
18
|
+
--_code-editor-gutter-border-color: var(--semantics-dividers-color);
|
|
19
|
+
--_code-editor-input-field-border-z-index: 1;
|
|
20
|
+
--_code-editor-input-field-border-color: transparent;
|
|
21
|
+
--_code-editor-input-field-border-shadow: none;
|
|
18
22
|
--_code-editor-padding-block: 0px;
|
|
19
|
-
|
|
23
|
+
/* Room for the caret's own ink at the first and last position of a line.
|
|
24
|
+
Without it the edge carets are clipped. */
|
|
25
|
+
--_code-editor-padding-inline: var(--_code-editor-caret-width);
|
|
20
26
|
--_code-editor-content-color: var(--semantics-content-color);
|
|
21
27
|
--_code-editor-font: var(--primitives-font-monospace-sm-regular-snug);
|
|
22
28
|
--_code-editor-rows: 6;
|
|
@@ -50,8 +56,9 @@ export const codeEditorStyles = css `
|
|
|
50
56
|
/* Match the other input fields (text-field, textarea): the input-field
|
|
51
57
|
surface + border + control padding, not the tinted surface. */
|
|
52
58
|
--_code-editor-background-color: var(--semantics-input-fields-background-color);
|
|
53
|
-
--_code-editor-
|
|
54
|
-
--_code-editor-border-
|
|
59
|
+
--_code-editor-gutter-background-color: var(--_code-editor-background-color);
|
|
60
|
+
--_code-editor-input-field-border-color: var(--semantics-input-fields-border-color);
|
|
61
|
+
--_code-editor-input-field-border-shadow: inset 0 0 0 var(--semantics-input-fields-border-width) var(--_code-editor-input-field-border-color);
|
|
55
62
|
--_code-editor-padding-block: var(--semantics-controls-md-inline-padding);
|
|
56
63
|
--_code-editor-padding-inline: var(--semantics-controls-md-inline-padding);
|
|
57
64
|
}
|
|
@@ -64,7 +71,6 @@ export const codeEditorStyles = css `
|
|
|
64
71
|
display: flex;
|
|
65
72
|
position: relative;
|
|
66
73
|
border-radius: var(--_code-editor-corner-radius);
|
|
67
|
-
box-shadow: var(--_code-editor-border-shadow);
|
|
68
74
|
background-color: var(--_code-editor-background-color);
|
|
69
75
|
min-height: 0;
|
|
70
76
|
flex-direction: column;
|
|
@@ -75,6 +81,22 @@ export const codeEditorStyles = css `
|
|
|
75
81
|
font: var(--_code-editor-font);
|
|
76
82
|
}
|
|
77
83
|
|
|
84
|
+
/* The border ring lies over the content, so the sticky gutter cannot cover
|
|
85
|
+
it. Inset, it takes no layout space. */
|
|
86
|
+
.code-editor::after {
|
|
87
|
+
content: '';
|
|
88
|
+
position: absolute;
|
|
89
|
+
inset: 0;
|
|
90
|
+
z-index: var(--_code-editor-input-field-border-z-index);
|
|
91
|
+
border-radius: inherit;
|
|
92
|
+
box-shadow: var(--_code-editor-input-field-border-shadow);
|
|
93
|
+
pointer-events: none;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
.code-editor .cm-editor {
|
|
97
|
+
isolation: isolate;
|
|
98
|
+
}
|
|
99
|
+
|
|
78
100
|
:host([disabled]) .code-editor {
|
|
79
101
|
opacity: var(--primitives-opacity-disabled);
|
|
80
102
|
pointer-events: none;
|
|
@@ -87,7 +109,7 @@ export const codeEditorStyles = css `
|
|
|
87
109
|
:host([appearance="input-field"]) .code-editor:focus-within {
|
|
88
110
|
outline: var(--semantics-focus-ring-outline);
|
|
89
111
|
outline-offset: var(--semantics-focus-ring-outline-offset);
|
|
90
|
-
box-shadow: var(--semantics-focus-ring-box-shadow)
|
|
112
|
+
box-shadow: var(--semantics-focus-ring-box-shadow);
|
|
91
113
|
}
|
|
92
114
|
|
|
93
115
|
|
|
@@ -110,6 +132,16 @@ export const codeEditorStyles = css `
|
|
|
110
132
|
tab-size: 2;
|
|
111
133
|
}
|
|
112
134
|
|
|
135
|
+
/* The gutter stays put while the code scrolls sideways under it. The
|
|
136
|
+
divider is a gradient: an inset shadow with an offset leaves a hairline on iOS. */
|
|
137
|
+
:host .cm-gutters.cm-gutters {
|
|
138
|
+
background-color: var(--_code-editor-gutter-background-color);
|
|
139
|
+
background-image: linear-gradient(var(--_code-editor-gutter-border-color), var(--_code-editor-gutter-border-color));
|
|
140
|
+
background-repeat: no-repeat;
|
|
141
|
+
background-position: right;
|
|
142
|
+
background-size: var(--_code-editor-gutter-border-width) 100%;
|
|
143
|
+
}
|
|
144
|
+
|
|
113
145
|
/* Read-only, like a native read-only field: select and copy, but no caret. */
|
|
114
146
|
:host([readonly]) .cm-cursorLayer {
|
|
115
147
|
visibility: hidden;
|
|
@@ -120,6 +152,9 @@ export const codeEditorStyles = css `
|
|
|
120
152
|
:host .cm-cursor.cm-cursor {
|
|
121
153
|
border-left-color: var(--_code-editor-caret-color);
|
|
122
154
|
border-left-width: var(--_code-editor-caret-width);
|
|
155
|
+
/* CodeMirror centers its own 1.2px caret with a -0.6px margin. Ours is wider,
|
|
156
|
+
so recenter it on the insertion point from its own width. */
|
|
157
|
+
margin-left: calc(var(--_code-editor-caret-width) / -2);
|
|
123
158
|
}
|
|
124
159
|
|
|
125
160
|
/* Resize model — rows is the floor in every mode:
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"code-editor.styles.js","sourceRoot":"","sources":["../../../../src/components/inputs/code-editor/code-editor.styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAC1B,OAAO,EAAE,kBAAkB,EAAE,MAAM,yCAAyC,CAAC;AAE7E,MAAM,CAAC,MAAM,gBAAgB,GAAG,GAAG,CAAA
|
|
1
|
+
{"version":3,"file":"code-editor.styles.js","sourceRoot":"","sources":["../../../../src/components/inputs/code-editor/code-editor.styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAC1B,OAAO,EAAE,kBAAkB,EAAE,MAAM,yCAAyC,CAAC;AAE7E,MAAM,CAAC,MAAM,gBAAgB,GAAG,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAkC/B,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAyIrB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"combo-box.styles.d.ts","sourceRoot":"","sources":["../../../../src/components/inputs/combo-box/combo-box.styles.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,cAAc,
|
|
1
|
+
{"version":3,"file":"combo-box.styles.d.ts","sourceRoot":"","sources":["../../../../src/components/inputs/combo-box/combo-box.styles.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,cAAc,yBAyL1B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"combo-box.styles.js","sourceRoot":"","sources":["../../../../src/components/inputs/combo-box/combo-box.styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAC1B,OAAO,EAAE,kBAAkB,EAAE,MAAM,yCAAyC,CAAC;AAE7E,MAAM,CAAC,MAAM,cAAc,GAAG,GAAG,CAAA;;;;;;;;;;;;;;;;;;;IAmB7B,kBAAkB
|
|
1
|
+
{"version":3,"file":"combo-box.styles.js","sourceRoot":"","sources":["../../../../src/components/inputs/combo-box/combo-box.styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAC1B,OAAO,EAAE,kBAAkB,EAAE,MAAM,yCAAyC,CAAC;AAE7E,MAAM,CAAC,MAAM,cAAc,GAAG,GAAG,CAAA;;;;;;;;;;;;;;;;;;;IAmB7B,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAsKrB,CAAC"}
|
|
@@ -9,6 +9,15 @@
|
|
|
9
9
|
* Error messages belong to nldd-form-field, not here. This field reflects only
|
|
10
10
|
* `invalid` / `valid`, like nldd-text-field.
|
|
11
11
|
*
|
|
12
|
+
* `value` holds a valid date or nothing, so an empty field and one with text
|
|
13
|
+
* that is no date both read as ''. `validity` tells them apart: `badInput` for
|
|
14
|
+
* text that is no date, `rangeUnderflow` / `rangeOverflow` for a date outside
|
|
15
|
+
* `min` / `max`, and with `range` and `required` `valueMissing` for a period
|
|
16
|
+
* with only a start. A form does not submit then, and nldd-form marks the
|
|
17
|
+
* field invalid. Without a submit, as in a filter that applies at once, the
|
|
18
|
+
* moment is yours: `field.invalid = !field.validity.valid` on `change`, with a
|
|
19
|
+
* message of your own in the nldd-form-field.
|
|
20
|
+
*
|
|
12
21
|
* @element nldd-date-field
|
|
13
22
|
*
|
|
14
23
|
* @attr {string} value - The date as ISO (yyyy-mm-dd). With `range` an ISO 8601 interval: `yyyy-mm-dd/yyyy-mm-dd`. Empty when there is no valid date.
|
|
@@ -36,7 +45,7 @@
|
|
|
36
45
|
* @fires change - When the value is committed. detail: { value } with the ISO date, or ''.
|
|
37
46
|
*/
|
|
38
47
|
import { LitElement, type PropertyValues } from 'lit';
|
|
39
|
-
import { type FormValue } from '../../../utilities/form-associated-mixin.js';
|
|
48
|
+
import { type FormValue, type OwnValidity } from '../../../utilities/form-associated-mixin.js';
|
|
40
49
|
import type { NLDDDateFieldTranslations } from './date-field.i18n.js';
|
|
41
50
|
import './../../actions/icon-button/icon-button.js';
|
|
42
51
|
import './../../content/icon/icon.js';
|
|
@@ -79,24 +88,24 @@ export declare class NLDDDateField extends NLDDDateField_base {
|
|
|
79
88
|
width: string;
|
|
80
89
|
/** Override one or more translation keys. Keys left out fall back to Dutch. */
|
|
81
90
|
translations: Partial<NLDDDateFieldTranslations>;
|
|
82
|
-
/** What the user sees and types. Kept apart from `value`, which stays ISO. */
|
|
83
|
-
private _display;
|
|
84
|
-
/** The same, for the end of a period. */
|
|
85
|
-
private _displayEnd;
|
|
86
91
|
/**
|
|
87
|
-
*
|
|
88
|
-
*
|
|
89
|
-
* are only the halves it is composed from.
|
|
92
|
+
* What the user sees and types, one text per end: one for a date, two for a
|
|
93
|
+
* period. Kept apart from `value`, which stays ISO.
|
|
90
94
|
*/
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
private
|
|
95
|
+
_texts: string[];
|
|
96
|
+
/** How many ends this field has: two for a period, one for a date. */
|
|
97
|
+
private get _endCount();
|
|
94
98
|
/**
|
|
95
|
-
*
|
|
96
|
-
*
|
|
97
|
-
*
|
|
98
|
-
* whether it swapped, so the caller emits change only when something moved.
|
|
99
|
+
* The ends of `value`, as ISO dates. `value` stays the single source of
|
|
100
|
+
* truth - one shape in markup, as a property and in form data - and these
|
|
101
|
+
* are only the ends it is composed from.
|
|
99
102
|
*/
|
|
103
|
+
private get _ends();
|
|
104
|
+
get _startValue(): string;
|
|
105
|
+
get _endValue(): string;
|
|
106
|
+
private _setEnd;
|
|
107
|
+
/** Put the earlier date first. Returns whether it swapped, so the caller
|
|
108
|
+
* emits change only when something moved. */
|
|
100
109
|
private _sortRange;
|
|
101
110
|
/**
|
|
102
111
|
* Sort on leaving the whole field, not per change: swapping mid-edit would move
|
|
@@ -108,15 +117,11 @@ export declare class NLDDDateField extends NLDDDateField_base {
|
|
|
108
117
|
*/
|
|
109
118
|
_handleFieldBlur(e: FocusEvent): void;
|
|
110
119
|
/**
|
|
111
|
-
*
|
|
112
|
-
*
|
|
113
|
-
* bypassed that check, so a value
|
|
114
|
-
*
|
|
115
|
-
* ISO strings compare lexically, so `<` / `>` are the date order.
|
|
120
|
+
* The date a text commits to, or '' when it is unparseable or out of bounds.
|
|
121
|
+
* Both leave the raw text standing so the user can see and fix it. min/max
|
|
122
|
+
* go to the calendar too, but typed input bypassed that check, so a value
|
|
123
|
+
* the picker cannot produce slipped through.
|
|
116
124
|
*/
|
|
117
|
-
private _withinBounds;
|
|
118
|
-
/** The parsed date, or '' when it is unparseable or out of bounds. Both cases
|
|
119
|
-
* leave the raw text standing so the user can see and fix what they wrote. */
|
|
120
125
|
private _commit;
|
|
121
126
|
/**
|
|
122
127
|
* Whether a consumer put their own calendar in the slot. Kept as state rather
|
|
@@ -208,18 +213,26 @@ export declare class NLDDDateField extends NLDDDateField_base {
|
|
|
208
213
|
* in one click and returns to the calendar button.
|
|
209
214
|
*/
|
|
210
215
|
_handlePickerChange(e: Event): void;
|
|
216
|
+
private get _inputs();
|
|
217
|
+
private _focusAtEnd;
|
|
211
218
|
/**
|
|
212
219
|
* Backspace on an empty end field steps back to the end of the start field, so
|
|
213
220
|
* a whole period can be cleared in one run of backspaces instead of reaching for
|
|
214
221
|
* the mouse to move between the two inputs.
|
|
215
222
|
*/
|
|
216
|
-
_handleInputKeydown(e: KeyboardEvent,
|
|
217
|
-
|
|
218
|
-
|
|
223
|
+
_handleInputKeydown(e: KeyboardEvent, index: number): void;
|
|
224
|
+
private _setText;
|
|
225
|
+
_handleInput(e: Event, index?: number): void;
|
|
226
|
+
_handleChange(e: Event, index?: number): void;
|
|
219
227
|
formValue(): FormValue;
|
|
228
|
+
/**
|
|
229
|
+
* What `value` cannot say. It holds a valid date or nothing, so text that is
|
|
230
|
+
* no date, a date outside min/max and an empty field all read as ''. The
|
|
231
|
+
* field tells them apart for the form; when to show it stays the caller's.
|
|
232
|
+
*/
|
|
233
|
+
ownValidity(): OwnValidity | null;
|
|
234
|
+
private _problemMessage;
|
|
220
235
|
private _emit;
|
|
221
|
-
get _displayValue(): string;
|
|
222
|
-
get _displayEndValue(): string;
|
|
223
236
|
render(): import("lit-html").TemplateResult;
|
|
224
237
|
}
|
|
225
238
|
declare global {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"date-field.d.ts","sourceRoot":"","sources":["../../../../src/components/inputs/date-field/date-field.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"date-field.d.ts","sourceRoot":"","sources":["../../../../src/components/inputs/date-field/date-field.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6CG;AAEH,OAAO,EAAE,UAAU,EAAE,KAAK,cAAc,EAAE,MAAM,KAAK,CAAC;AAEtD,OAAO,EAAkB,KAAK,SAAS,EAAE,KAAK,WAAW,EAAE,MAAM,6CAA6C,CAAC;AAM/G,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,sBAAsB,CAAC;AAGtE,OAAO,4CAA4C,CAAC;AACpD,OAAO,8BAA8B,CAAC;;AActC,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;IAGvC,OAAO,CAAC,aAAa,CAAM;IAG3B,IAAI,EAAE,IAAI,GAAG,IAAI,CAAQ;IAGzB,KAAK,SAAM;IAGX,KAAK,UAAS;IAGd,GAAG,SAAM;IAGT,GAAG,SAAM;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,2EAA2E;IAE3E,KAAK,SAAM;IAEX,+EAA+E;IAE/E,YAAY,EAAE,OAAO,CAAC,yBAAyB,CAAC,CAAM;IAEtD;;;OAGG;IAEH,MAAM,EAAE,MAAM,EAAE,CAAQ;IAExB,sEAAsE;IACtE,OAAO,KAAK,SAAS,GAEpB;IAED;;;;OAIG;IACH,OAAO,KAAK,KAAK,GAEhB;IAED,IAAW,WAAW,IAAI,MAAM,CAE/B;IAED,IAAW,SAAS,IAAI,MAAM,CAE7B;IAED,OAAO,CAAC,OAAO;IAMf;kDAC8C;IAC9C,OAAO,CAAC,UAAU;IAOlB;;;;;;;OAOG;IACI,gBAAgB,CAAC,CAAC,EAAE,UAAU,GAAG,IAAI;IAM5C;;;;;OAKG;IACH,OAAO,CAAC,OAAO;IAIf;;;;OAIG;IAEH,iBAAiB,UAAS;IAE1B,OAAO,KAAK,cAAc,GAKzB;IAEM,uBAAuB,IAAI,IAAI;IAItC;;;;;;;OAOG;IACH,OAAO,CAAC,kBAAkB;IAgBjB,YAAY,IAAI,IAAI;IAKpB,UAAU,CAAC,OAAO,EAAE,cAAc,GAAG,IAAI;IAezC,OAAO,CAAC,OAAO,EAAE,cAAc,GAAG,IAAI;IA8B/C,iBAAiB,IAAI,IAAI;IAQzB,wBAAwB,CAAC,KAAK,EAAE,IAAI,GAAG,MAAM,GAAG,QAAQ,GAAG,IAAI,GAAG,IAAI;IAM/D,EAAE,CAAC,GAAG,EAAE,MAAM,yBAAyB,GAAG,MAAM;IAIvD;;;;OAIG;IACH,IAAW,WAAW,IAAI,MAAM,CAG/B;IAID;;;;;;OAMG;IAEH,WAAW,UAAS;IAEpB,OAAO,KAAK,cAAc,GAEzB;IAED,OAAO,KAAK,QAAQ,GAEnB;IAED;;;;OAIG;IACH,IAAW,YAAY,IAAI,MAAM,CAEhC;IAEM,kBAAkB,IAAI,IAAI;IAKjC;;;;;;;OAOG;IACH,OAAO,CAAC,aAAa,CAAyC;IAE9D;;;;;;;OAOG;IACH,OAAO,CAAC,gBAAgB;IAajB,oBAAoB,CAAC,CAAC,EAAE,KAAK,GAAG,IAAI;IAS3C;;;;;;OAMG;IAEH,mBAAmB,SAAwB;IAEpC,oBAAoB,CAAC,CAAC,EAAE,KAAK,GAAG,IAAI;IAgB3C;;;;;;;OAOG;IACH,OAAO,CAAC,0BAA0B;IAUlC;;;;;OAKG;IACI,mBAAmB,CAAC,CAAC,EAAE,KAAK,GAAG,IAAI;IAkB1C,OAAO,KAAK,OAAO,GAElB;IAED,OAAO,CAAC,WAAW;IAOnB;;;;OAIG;IACI,mBAAmB,CAAC,CAAC,EAAE,aAAa,EAAE,KAAK,EAAE,MAAM,GAAG,IAAI;IAUjE,OAAO,CAAC,QAAQ;IAMT,YAAY,CAAC,CAAC,EAAE,KAAK,EAAE,KAAK,SAAI,GAAG,IAAI;IAUvC,aAAa,CAAC,CAAC,EAAE,KAAK,EAAE,KAAK,SAAI,GAAG,IAAI;IAWtC,SAAS,IAAI,SAAS;IAI/B;;;;OAIG;IACM,WAAW,IAAI,WAAW,GAAG,IAAI;IAK1C,OAAO,CAAC,eAAe;IAavB,OAAO,CAAC,KAAK;IASJ,MAAM;CAGf;AAED,OAAO,CAAC,MAAM,CAAC;IACd,UAAU,qBAAqB;QAC9B,iBAAiB,EAAE,aAAa,CAAC;KACjC;CACD"}
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The date logic of nldd-date-field, without a DOM: reading what people type,
|
|
3
|
+
* writing it back, the bounds, and the halves of a period. The component wires
|
|
4
|
+
* these to its inputs; everything here is a plain function of its arguments.
|
|
5
|
+
*/
|
|
6
|
+
/** ISO 8601 writes an interval as start/end, so the value needs no invention. */
|
|
7
|
+
export declare const RANGE_SEPARATOR = "/";
|
|
8
|
+
/**
|
|
9
|
+
* Read a typed date generously. Deliberately not a mask: reformatting per
|
|
10
|
+
* keystroke moves the caret, breaks backspace mid-value and confuses screen
|
|
11
|
+
* readers, so we accept what people type and normalize once on commit.
|
|
12
|
+
* Accepts 12-3-2026, 12/03/2026, 12.03.2026, 12032026 and ISO yyyy-mm-dd.
|
|
13
|
+
*/
|
|
14
|
+
export declare function parseDate(raw: string): string | null;
|
|
15
|
+
/** ISO to the Dutch notation shown on screen. */
|
|
16
|
+
export declare function formatDisplay(iso: string): string;
|
|
17
|
+
/**
|
|
18
|
+
* The ends of a value: one for a date, two for a period. A missing end is ''.
|
|
19
|
+
* A period read as one date keeps its start, and a date read as a period
|
|
20
|
+
* becomes its start with an open end.
|
|
21
|
+
*/
|
|
22
|
+
export declare function splitValue(value: string, count: number): string[];
|
|
23
|
+
/** The value made of its ends: '' when all are empty, else start/end. */
|
|
24
|
+
export declare function joinValue(ends: string[]): string;
|
|
25
|
+
/** min and max as ISO dates. They may be relative (today, today+3m). */
|
|
26
|
+
export interface Bounds {
|
|
27
|
+
min: string;
|
|
28
|
+
max: string;
|
|
29
|
+
}
|
|
30
|
+
export declare function resolveBounds(min: string, max: string): Bounds;
|
|
31
|
+
/**
|
|
32
|
+
* The date a typed text commits to: a real date within the bounds, or ''.
|
|
33
|
+
* A date the calendar would refuse must not commit when typed either.
|
|
34
|
+
* ISO strings compare lexically, so `<` and `>` are the date order.
|
|
35
|
+
*/
|
|
36
|
+
export declare function commitText(text: string, bounds: Bounds): string;
|
|
37
|
+
/**
|
|
38
|
+
* The ends with the earlier date first, or null when they are in order
|
|
39
|
+
* already or one is empty. A period typed backwards ("van 2027 t/m 2026")
|
|
40
|
+
* otherwise stays backwards, while the calendar sorts a dragged one.
|
|
41
|
+
*/
|
|
42
|
+
export declare function sortEnds(ends: string[]): string[] | null;
|
|
43
|
+
/** What is wrong with the typed ends, in the platform's own terms. */
|
|
44
|
+
export type EndsProblem = {
|
|
45
|
+
flag: 'badInput';
|
|
46
|
+
} | {
|
|
47
|
+
flag: 'rangeUnderflow';
|
|
48
|
+
bound: string;
|
|
49
|
+
} | {
|
|
50
|
+
flag: 'rangeOverflow';
|
|
51
|
+
bound: string;
|
|
52
|
+
} | {
|
|
53
|
+
flag: 'valueMissing';
|
|
54
|
+
};
|
|
55
|
+
/**
|
|
56
|
+
* The first problem in the typed texts, or null. A required period with only
|
|
57
|
+
* a start is missing its end; an empty start is the native input's to report.
|
|
58
|
+
*/
|
|
59
|
+
export declare function checkEnds(texts: string[], bounds: Bounds, required: boolean): EndsProblem | null;
|
|
60
|
+
//# sourceMappingURL=date-field.dates.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"date-field.dates.d.ts","sourceRoot":"","sources":["../../../../src/components/inputs/date-field/date-field.dates.ts"],"names":[],"mappings":"AAEA;;;;GAIG;AAEH,iFAAiF;AACjF,eAAO,MAAM,eAAe,MAAM,CAAC;AAEnC;;;;;GAKG;AACH,wBAAgB,SAAS,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAWpD;AAED,iDAAiD;AACjD,wBAAgB,aAAa,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAIjD;AAED;;;;GAIG;AACH,wBAAgB,UAAU,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,MAAM,EAAE,CAGjE;AAED,yEAAyE;AACzE,wBAAgB,SAAS,CAAC,IAAI,EAAE,MAAM,EAAE,GAAG,MAAM,CAGhD;AAED,wEAAwE;AACxE,MAAM,WAAW,MAAM;IACtB,GAAG,EAAE,MAAM,CAAC;IACZ,GAAG,EAAE,MAAM,CAAC;CACZ;AAED,wBAAgB,aAAa,CAAC,GAAG,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,GAAG,MAAM,CAK9D;AAED;;;;GAIG;AACH,wBAAgB,UAAU,CAAC,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,MAAM,CAM/D;AAED;;;;GAIG;AACH,wBAAgB,QAAQ,CAAC,IAAI,EAAE,MAAM,EAAE,GAAG,MAAM,EAAE,GAAG,IAAI,CAIxD;AAED,sEAAsE;AACtE,MAAM,MAAM,WAAW,GACpB;IAAE,IAAI,EAAE,UAAU,CAAA;CAAE,GACpB;IAAE,IAAI,EAAE,gBAAgB,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,GACzC;IAAE,IAAI,EAAE,eAAe,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,GACxC;IAAE,IAAI,EAAE,cAAc,CAAA;CAAE,CAAC;AAE5B;;;GAGG;AACH,wBAAgB,SAAS,CAAC,KAAK,EAAE,MAAM,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,QAAQ,EAAE,OAAO,GAAG,WAAW,GAAG,IAAI,CAWhG"}
|