@nldd/design-system 0.13.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 +3066 -753
- 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/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 -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 +2170 -2156
- 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 +11 -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 +6 -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 +6 -1
- package/dist/components/content/icon/icon-registry.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-BJHKWhY5.js → icon-DZ1UXCzO.js} +21 -14
- package/dist/components/{icon-button-DhBIq6lN.js → icon-button-984CwkU1.js} +34 -44
- 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/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.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/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 +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/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 -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/nldd.min.js +846 -747
- package/dist/translations/en-US.d.ts.map +1 -1
- package/dist/translations/en-US.js +13 -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 +13 -0
- 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 +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 +57 -21
- 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,7 @@ function tooltipTemplate(component) {
|
|
|
1466
1454
|
</div>
|
|
1467
1455
|
`;
|
|
1468
1456
|
}
|
|
1469
|
-
|
|
1470
|
-
//#region src/utilities/carried-context.ts
|
|
1457
|
+
// src/utilities/carried-context.ts
|
|
1471
1458
|
/**
|
|
1472
1459
|
* The color scheme and language an element had in its place on the page,
|
|
1473
1460
|
* carried along when a component moves it somewhere else: a submenu into
|
|
@@ -1538,8 +1525,7 @@ function releaseContext(element) {
|
|
|
1538
1525
|
if (previous.lang && element.getAttribute("lang") === previous.lang) element.removeAttribute("lang");
|
|
1539
1526
|
carried.delete(element);
|
|
1540
1527
|
}
|
|
1541
|
-
|
|
1542
|
-
//#region src/components/content/tooltip/tooltip.ts
|
|
1528
|
+
// src/components/content/tooltip/tooltip.ts
|
|
1543
1529
|
/**
|
|
1544
1530
|
* Nederlandse Digitale Dienst Tooltip Component (Lit + TypeScript)
|
|
1545
1531
|
*
|
|
@@ -1885,8 +1871,7 @@ __decorate([property({
|
|
|
1885
1871
|
})], NLDDTooltip.prototype, "timing", void 0);
|
|
1886
1872
|
__decorate([state()], NLDDTooltip.prototype, "_visible", void 0);
|
|
1887
1873
|
NLDDTooltip = __decorate([customElement("nldd-tooltip")], NLDDTooltip);
|
|
1888
|
-
|
|
1889
|
-
//#region src/components/actions/icon-button/icon-button.template.ts
|
|
1874
|
+
// src/components/actions/icon-button/icon-button.template.ts
|
|
1890
1875
|
function renderContent(component) {
|
|
1891
1876
|
return html`
|
|
1892
1877
|
<span class="icon-button__icon-area">
|
|
@@ -1907,7 +1892,8 @@ function renderContent(component) {
|
|
|
1907
1892
|
`;
|
|
1908
1893
|
}
|
|
1909
1894
|
function template() {
|
|
1910
|
-
const hintKey =
|
|
1895
|
+
const hintKey = downloadLinkHintKey(this.href, this.target, this.download);
|
|
1896
|
+
if (this.href) this.download, this.target;
|
|
1911
1897
|
const linkHint = hintKey ? this._t(`components.icon-button.${hintKey}`) : "";
|
|
1912
1898
|
const label = [[this.accessibleLabel || this.text, shortcutLabel(this)].filter(Boolean).join(" "), linkHint].filter(Boolean).join(", ") || nothing;
|
|
1913
1899
|
const content = renderContent(this);
|
|
@@ -1932,6 +1918,7 @@ function template() {
|
|
|
1932
1918
|
href=${this.href}
|
|
1933
1919
|
target=${this.target || nothing}
|
|
1934
1920
|
rel=${resolvedRel || nothing}
|
|
1921
|
+
download=${this.download ?? nothing}
|
|
1935
1922
|
aria-disabled=${this.disabled ? "true" : nothing}
|
|
1936
1923
|
aria-label=${label}
|
|
1937
1924
|
aria-haspopup=${this.popupType || nothing}
|
|
@@ -1980,15 +1967,14 @@ function template() {
|
|
|
1980
1967
|
const popupSlot = html`<slot name="popup" @slotchange=${this._popup.handleSlotChange}></slot>`;
|
|
1981
1968
|
return html`${control}${loadingIndicator}${popupSlot}`;
|
|
1982
1969
|
}
|
|
1983
|
-
|
|
1984
|
-
//#region src/components/actions/icon-button/icon-button.i18n.ts
|
|
1970
|
+
// src/components/actions/icon-button/icon-button.i18n.ts
|
|
1985
1971
|
var nlddIconButtonTranslations = {
|
|
1986
1972
|
"components.icon-button.link-hint-new-tab-lowercase-label": "opent in nieuw tabblad",
|
|
1987
1973
|
"components.icon-button.link-hint-external-lowercase-label": "andere website",
|
|
1988
|
-
"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"
|
|
1989
1976
|
};
|
|
1990
|
-
|
|
1991
|
-
//#region src/components/actions/icon-button/icon-button.ts
|
|
1977
|
+
// src/components/actions/icon-button/icon-button.ts
|
|
1992
1978
|
/**
|
|
1993
1979
|
* Nederlandse Digitale Dienst Icon Button Component (Lit + TypeScript)
|
|
1994
1980
|
*
|
|
@@ -2016,6 +2002,7 @@ var nlddIconButtonTranslations = {
|
|
|
2016
2002
|
* @attr {string} shortcut-linux - Override of `shortcut` on Linux (falls back to `shortcut`).
|
|
2017
2003
|
* @attr {string} href - When set, renders an <a> element instead of <button>
|
|
2018
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.
|
|
2019
2006
|
* @attr {string} rel - Link rel attribute, used with href; with target '_blank', 'noopener noreferrer' is added to whatever you set
|
|
2020
2007
|
* @attr {object} translations - Override translation keys (e.g. the "opens in new tab" announcement); unset keys fall back to Dutch.
|
|
2021
2008
|
* @attr {string} popovertarget - ID of a popover element to toggle; forwarded to the inner <button>
|
|
@@ -2026,6 +2013,8 @@ var nlddIconButtonTranslations = {
|
|
|
2026
2013
|
* @example
|
|
2027
2014
|
* ```html
|
|
2028
2015
|
* <nldd-icon-button
|
|
2016
|
+
* href="/aanvraag-a-1042.pdf"
|
|
2017
|
+
* download
|
|
2029
2018
|
* text="Download"
|
|
2030
2019
|
* icon="download"
|
|
2031
2020
|
* ></nldd-icon-button>
|
|
@@ -2062,6 +2051,7 @@ var _NLDDIconButton = class NLDDIconButton extends withTranslations(LitElement,
|
|
|
2062
2051
|
this.shortcutLinux = "";
|
|
2063
2052
|
this.href = void 0;
|
|
2064
2053
|
this.target = void 0;
|
|
2054
|
+
this.download = void 0;
|
|
2065
2055
|
this.rel = void 0;
|
|
2066
2056
|
this._warnedA11y = false;
|
|
2067
2057
|
this._popup = new PopupAnchorController(this);
|
|
@@ -2207,7 +2197,7 @@ __decorate([property({
|
|
|
2207
2197
|
reflect: true
|
|
2208
2198
|
})], NLDDIconButton.prototype, "href", void 0);
|
|
2209
2199
|
__decorate([property({ type: String })], NLDDIconButton.prototype, "target", void 0);
|
|
2200
|
+
__decorate([property({ type: String })], NLDDIconButton.prototype, "download", void 0);
|
|
2210
2201
|
__decorate([property({ type: String })], NLDDIconButton.prototype, "rel", void 0);
|
|
2211
2202
|
NLDDIconButton = __decorate([customElement("nldd-icon-button")], NLDDIconButton);
|
|
2212
|
-
//#endregion
|
|
2213
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"}
|
|
@@ -20,7 +20,9 @@ export const codeEditorStyles = css `
|
|
|
20
20
|
--_code-editor-input-field-border-color: transparent;
|
|
21
21
|
--_code-editor-input-field-border-shadow: none;
|
|
22
22
|
--_code-editor-padding-block: 0px;
|
|
23
|
-
|
|
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);
|
|
24
26
|
--_code-editor-content-color: var(--semantics-content-color);
|
|
25
27
|
--_code-editor-font: var(--primitives-font-monospace-sm-regular-snug);
|
|
26
28
|
--_code-editor-rows: 6;
|
|
@@ -150,6 +152,9 @@ export const codeEditorStyles = css `
|
|
|
150
152
|
:host .cm-cursor.cm-cursor {
|
|
151
153
|
border-left-color: var(--_code-editor-caret-color);
|
|
152
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);
|
|
153
158
|
}
|
|
154
159
|
|
|
155
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":"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"}
|
|
@@ -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"}
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
import { toIso, resolveDateBound } from '../../../utilities/resolve-date-bound.js';
|
|
2
|
+
/**
|
|
3
|
+
* The date logic of nldd-date-field, without a DOM: reading what people type,
|
|
4
|
+
* writing it back, the bounds, and the halves of a period. The component wires
|
|
5
|
+
* these to its inputs; everything here is a plain function of its arguments.
|
|
6
|
+
*/
|
|
7
|
+
/** ISO 8601 writes an interval as start/end, so the value needs no invention. */
|
|
8
|
+
export const RANGE_SEPARATOR = '/';
|
|
9
|
+
/**
|
|
10
|
+
* Read a typed date generously. Deliberately not a mask: reformatting per
|
|
11
|
+
* keystroke moves the caret, breaks backspace mid-value and confuses screen
|
|
12
|
+
* readers, so we accept what people type and normalize once on commit.
|
|
13
|
+
* Accepts 12-3-2026, 12/03/2026, 12.03.2026, 12032026 and ISO yyyy-mm-dd.
|
|
14
|
+
*/
|
|
15
|
+
export function parseDate(raw) {
|
|
16
|
+
const trimmed = raw.trim();
|
|
17
|
+
if (trimmed === '')
|
|
18
|
+
return null;
|
|
19
|
+
// A leading four-digit group can only be a year, so ISO is checked first.
|
|
20
|
+
const iso = /^(\d{4})[-/.](\d{1,2})[-/.](\d{1,2})$/.exec(trimmed);
|
|
21
|
+
if (iso)
|
|
22
|
+
return toIso(Number(iso[1]), Number(iso[2]), Number(iso[3]));
|
|
23
|
+
const dutch = /^(\d{1,2})[-/.](\d{1,2})[-/.](\d{4})$/.exec(trimmed);
|
|
24
|
+
if (dutch)
|
|
25
|
+
return toIso(Number(dutch[3]), Number(dutch[2]), Number(dutch[1]));
|
|
26
|
+
const bare = /^(\d{2})(\d{2})(\d{4})$/.exec(trimmed);
|
|
27
|
+
if (bare)
|
|
28
|
+
return toIso(Number(bare[3]), Number(bare[2]), Number(bare[1]));
|
|
29
|
+
return null;
|
|
30
|
+
}
|
|
31
|
+
/** ISO to the Dutch notation shown on screen. */
|
|
32
|
+
export function formatDisplay(iso) {
|
|
33
|
+
const match = /^(\d{4})-(\d{2})-(\d{2})$/.exec(iso);
|
|
34
|
+
if (!match)
|
|
35
|
+
return '';
|
|
36
|
+
return `${match[3]}-${match[2]}-${match[1]}`;
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* The ends of a value: one for a date, two for a period. A missing end is ''.
|
|
40
|
+
* A period read as one date keeps its start, and a date read as a period
|
|
41
|
+
* becomes its start with an open end.
|
|
42
|
+
*/
|
|
43
|
+
export function splitValue(value, count) {
|
|
44
|
+
const parts = value ? value.split(RANGE_SEPARATOR) : [];
|
|
45
|
+
return Array.from({ length: count }, (_, i) => parts[i] ?? '');
|
|
46
|
+
}
|
|
47
|
+
/** The value made of its ends: '' when all are empty, else start/end. */
|
|
48
|
+
export function joinValue(ends) {
|
|
49
|
+
if (ends.every((end) => end === ''))
|
|
50
|
+
return '';
|
|
51
|
+
return ends.join(RANGE_SEPARATOR);
|
|
52
|
+
}
|
|
53
|
+
export function resolveBounds(min, max) {
|
|
54
|
+
return {
|
|
55
|
+
min: min ? resolveDateBound(min) : '',
|
|
56
|
+
max: max ? resolveDateBound(max) : '',
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
/**
|
|
60
|
+
* The date a typed text commits to: a real date within the bounds, or ''.
|
|
61
|
+
* A date the calendar would refuse must not commit when typed either.
|
|
62
|
+
* ISO strings compare lexically, so `<` and `>` are the date order.
|
|
63
|
+
*/
|
|
64
|
+
export function commitText(text, bounds) {
|
|
65
|
+
const parsed = parseDate(text);
|
|
66
|
+
if (!parsed)
|
|
67
|
+
return '';
|
|
68
|
+
if (bounds.min && parsed < bounds.min)
|
|
69
|
+
return '';
|
|
70
|
+
if (bounds.max && parsed > bounds.max)
|
|
71
|
+
return '';
|
|
72
|
+
return parsed;
|
|
73
|
+
}
|
|
74
|
+
/**
|
|
75
|
+
* The ends with the earlier date first, or null when they are in order
|
|
76
|
+
* already or one is empty. A period typed backwards ("van 2027 t/m 2026")
|
|
77
|
+
* otherwise stays backwards, while the calendar sorts a dragged one.
|
|
78
|
+
*/
|
|
79
|
+
export function sortEnds(ends) {
|
|
80
|
+
const [start, end] = ends;
|
|
81
|
+
if (ends.length !== 2 || !start || !end || start <= end)
|
|
82
|
+
return null;
|
|
83
|
+
return [end, start];
|
|
84
|
+
}
|
|
85
|
+
/**
|
|
86
|
+
* The first problem in the typed texts, or null. A required period with only
|
|
87
|
+
* a start is missing its end; an empty start is the native input's to report.
|
|
88
|
+
*/
|
|
89
|
+
export function checkEnds(texts, bounds, required) {
|
|
90
|
+
for (const text of texts) {
|
|
91
|
+
if (!text.trim())
|
|
92
|
+
continue;
|
|
93
|
+
const parsed = parseDate(text);
|
|
94
|
+
if (!parsed)
|
|
95
|
+
return { flag: 'badInput' };
|
|
96
|
+
if (bounds.min && parsed < bounds.min)
|
|
97
|
+
return { flag: 'rangeUnderflow', bound: bounds.min };
|
|
98
|
+
if (bounds.max && parsed > bounds.max)
|
|
99
|
+
return { flag: 'rangeOverflow', bound: bounds.max };
|
|
100
|
+
}
|
|
101
|
+
const [start, ...rest] = texts;
|
|
102
|
+
if (required && start?.trim() && rest.some((text) => !text.trim()))
|
|
103
|
+
return { flag: 'valueMissing' };
|
|
104
|
+
return null;
|
|
105
|
+
}
|
|
106
|
+
//# sourceMappingURL=date-field.dates.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"date-field.dates.js","sourceRoot":"","sources":["../../../../src/components/inputs/date-field/date-field.dates.ts"],"names":[],"mappings":"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"}
|
|
@@ -6,6 +6,10 @@ export declare const nlddDateFieldTranslations: {
|
|
|
6
6
|
'components.date-field.range-from-lowercase-label': string;
|
|
7
7
|
'components.date-field.range-to-lowercase-label': string;
|
|
8
8
|
'components.date-field.range-to-short-lowercase-label': string;
|
|
9
|
+
'components.date-field.bad-input-error-text': string;
|
|
10
|
+
'components.date-field.range-underflow-error-text': string;
|
|
11
|
+
'components.date-field.range-overflow-error-text': string;
|
|
12
|
+
'components.date-field.range-incomplete-error-text': string;
|
|
9
13
|
};
|
|
10
14
|
export type NLDDDateFieldTranslations = typeof nlddDateFieldTranslations;
|
|
11
15
|
//# sourceMappingURL=date-field.i18n.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"date-field.i18n.d.ts","sourceRoot":"","sources":["../../../../src/components/inputs/date-field/date-field.i18n.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,yBAAyB
|
|
1
|
+
{"version":3,"file":"date-field.i18n.d.ts","sourceRoot":"","sources":["../../../../src/components/inputs/date-field/date-field.i18n.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,yBAAyB;;;;;;;;;;;;CAqBrC,CAAC;AAEF,MAAM,MAAM,yBAAyB,GAAG,OAAO,yBAAyB,CAAC"}
|