@nldd/design-system 0.13.0 → 0.13.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/NOTICES.md +18 -1
- package/README.md +32 -24
- package/custom-elements.json +4390 -1037
- package/dist/components/actions/button/button.d.ts +6 -1
- package/dist/components/actions/button/button.d.ts.map +1 -1
- package/dist/components/actions/button/button.i18n.d.ts +1 -0
- package/dist/components/actions/button/button.i18n.d.ts.map +1 -1
- package/dist/components/actions/button/button.i18n.js +1 -0
- package/dist/components/actions/button/button.i18n.js.map +1 -1
- package/dist/components/actions/button/button.js +7 -0
- package/dist/components/actions/button/button.js.map +1 -1
- package/dist/components/actions/button/button.template.d.ts.map +1 -1
- package/dist/components/actions/button/button.template.js +5 -2
- package/dist/components/actions/button/button.template.js.map +1 -1
- package/dist/components/actions/button-group/button-group.d.ts +22 -7
- package/dist/components/actions/button-group/button-group.d.ts.map +1 -1
- package/dist/components/actions/button-group/button-group.js +38 -19
- package/dist/components/actions/button-group/button-group.js.map +1 -1
- package/dist/components/actions/button-group/button-group.styles.d.ts.map +1 -1
- package/dist/components/actions/button-group/button-group.styles.js +43 -18
- package/dist/components/actions/button-group/button-group.styles.js.map +1 -1
- package/dist/components/actions/button-group/button-group.template.js +1 -1
- package/dist/components/actions/button-group/button-group.template.js.map +1 -1
- package/dist/components/actions/icon-button/icon-button.d.ts +8 -1
- package/dist/components/actions/icon-button/icon-button.d.ts.map +1 -1
- package/dist/components/actions/icon-button/icon-button.i18n.d.ts +1 -0
- package/dist/components/actions/icon-button/icon-button.i18n.d.ts.map +1 -1
- package/dist/components/actions/icon-button/icon-button.i18n.js +1 -0
- package/dist/components/actions/icon-button/icon-button.i18n.js.map +1 -1
- package/dist/components/actions/icon-button/icon-button.js +9 -0
- package/dist/components/actions/icon-button/icon-button.js.map +1 -1
- package/dist/components/actions/icon-button/icon-button.template.d.ts.map +1 -1
- package/dist/components/actions/icon-button/icon-button.template.js +5 -2
- package/dist/components/actions/icon-button/icon-button.template.js.map +1 -1
- package/dist/components/actions/menu/menu-divider.d.ts +14 -0
- package/dist/components/actions/menu/menu-divider.d.ts.map +1 -0
- package/dist/components/actions/menu/menu-divider.js +33 -0
- package/dist/components/actions/menu/menu-divider.js.map +1 -0
- package/dist/components/actions/menu/menu-group.d.ts +35 -0
- package/dist/components/actions/menu/menu-group.d.ts.map +1 -0
- package/dist/components/actions/menu/menu-group.js +69 -0
- package/dist/components/actions/menu/menu-group.js.map +1 -0
- package/dist/components/actions/menu/menu-item.d.ts +86 -0
- package/dist/components/actions/menu/menu-item.d.ts.map +1 -0
- package/dist/components/actions/menu/menu-item.js +279 -0
- package/dist/components/actions/menu/menu-item.js.map +1 -0
- package/dist/components/actions/menu/menu.chain.d.ts +40 -0
- package/dist/components/actions/menu/menu.chain.d.ts.map +1 -0
- package/dist/components/actions/menu/menu.chain.js +150 -0
- package/dist/components/actions/menu/menu.chain.js.map +1 -0
- package/dist/components/actions/menu/menu.d.ts +68 -269
- package/dist/components/actions/menu/menu.d.ts.map +1 -1
- package/dist/components/actions/menu/menu.js +147 -984
- package/dist/components/actions/menu/menu.js.map +1 -1
- package/dist/components/actions/menu/menu.pointer.d.ts +61 -0
- package/dist/components/actions/menu/menu.pointer.d.ts.map +1 -0
- package/dist/components/actions/menu/menu.pointer.js +143 -0
- package/dist/components/actions/menu/menu.pointer.js.map +1 -0
- package/dist/components/actions/menu/menu.safe-triangle.d.ts +79 -0
- package/dist/components/actions/menu/menu.safe-triangle.d.ts.map +1 -0
- package/dist/components/actions/menu/menu.safe-triangle.js +198 -0
- package/dist/components/actions/menu/menu.safe-triangle.js.map +1 -0
- package/dist/components/actions/menu/menu.template.d.ts.map +1 -1
- package/dist/components/actions/menu/menu.template.js +5 -4
- package/dist/components/actions/menu/menu.template.js.map +1 -1
- package/dist/components/actions/toolbar/toolbar-item.d.ts +46 -0
- package/dist/components/actions/toolbar/toolbar-item.d.ts.map +1 -0
- package/dist/components/actions/toolbar/toolbar-item.js +113 -0
- package/dist/components/actions/toolbar/toolbar-item.js.map +1 -0
- package/dist/components/actions/toolbar/toolbar-item.template.d.ts +3 -0
- package/dist/components/actions/toolbar/toolbar-item.template.d.ts.map +1 -0
- package/dist/components/actions/toolbar/toolbar-item.template.js +12 -0
- package/dist/components/actions/toolbar/toolbar-item.template.js.map +1 -0
- package/dist/components/actions/toolbar/toolbar-title.d.ts +43 -0
- package/dist/components/actions/toolbar/toolbar-title.d.ts.map +1 -0
- package/dist/components/actions/toolbar/toolbar-title.js +111 -0
- package/dist/components/actions/toolbar/toolbar-title.js.map +1 -0
- package/dist/components/actions/toolbar/toolbar-title.template.d.ts +3 -0
- package/dist/components/actions/toolbar/toolbar-title.template.d.ts.map +1 -0
- package/dist/components/actions/toolbar/toolbar-title.template.js +33 -0
- package/dist/components/actions/toolbar/toolbar-title.template.js.map +1 -0
- package/dist/components/actions/toolbar/toolbar.d.ts +16 -111
- package/dist/components/actions/toolbar/toolbar.d.ts.map +1 -1
- package/dist/components/actions/toolbar/toolbar.js +50 -423
- package/dist/components/actions/toolbar/toolbar.js.map +1 -1
- package/dist/components/actions/toolbar/toolbar.layout.d.ts +40 -0
- package/dist/components/actions/toolbar/toolbar.layout.d.ts.map +1 -0
- package/dist/components/actions/toolbar/toolbar.layout.js +76 -0
- package/dist/components/actions/toolbar/toolbar.layout.js.map +1 -0
- package/dist/components/actions/toolbar/toolbar.overflow-menu.d.ts +52 -0
- package/dist/components/actions/toolbar/toolbar.overflow-menu.d.ts.map +1 -0
- package/dist/components/actions/toolbar/toolbar.overflow-menu.js +105 -0
- package/dist/components/actions/toolbar/toolbar.overflow-menu.js.map +1 -0
- package/dist/components/actions/toolbar/toolbar.template.d.ts +1 -4
- package/dist/components/actions/toolbar/toolbar.template.d.ts.map +1 -1
- package/dist/components/actions/toolbar/toolbar.template.js +0 -41
- package/dist/components/actions/toolbar/toolbar.template.js.map +1 -1
- package/dist/components/{breakpoints-Bpf2MgjM.js → breakpoints-Bti55RWY.js} +1 -2
- package/dist/components/components.js +4651 -2302
- package/dist/components/content/avatar-group/avatar-group.styles.d.ts.map +1 -1
- package/dist/components/content/avatar-group/avatar-group.styles.js +12 -1
- package/dist/components/content/avatar-group/avatar-group.styles.js.map +1 -1
- package/dist/components/content/code-viewer/code-viewer.styles.d.ts.map +1 -1
- package/dist/components/content/code-viewer/code-viewer.styles.js +2 -1
- package/dist/components/content/code-viewer/code-viewer.styles.js.map +1 -1
- package/dist/components/content/icon/icon-aliases.d.ts.map +1 -1
- package/dist/components/content/icon/icon-aliases.js +21 -5
- package/dist/components/content/icon/icon-aliases.js.map +1 -1
- package/dist/components/content/icon/icon-gallery-status.d.ts.map +1 -1
- package/dist/components/content/icon/icon-gallery-status.js +10 -0
- package/dist/components/content/icon/icon-gallery-status.js.map +1 -1
- package/dist/components/content/icon/icon-registry.d.ts.map +1 -1
- package/dist/components/content/icon/icon-registry.js +10 -3
- package/dist/components/content/icon/icon-registry.js.map +1 -1
- package/dist/components/content/text/text.d.ts +1 -1
- package/dist/components/content/text/text.js +1 -1
- package/dist/components/content/text/text.styles.d.ts.map +1 -1
- package/dist/components/content/text/text.styles.js +104 -1
- package/dist/components/content/text/text.styles.js.map +1 -1
- package/dist/components/content/token/token.styles.d.ts.map +1 -1
- package/dist/components/content/token/token.styles.js +2 -1
- package/dist/components/content/token/token.styles.js.map +1 -1
- package/dist/components/content/tooltip/tooltip.styles.js +7 -7
- package/dist/components/{decorate-CO88j7Lc.js → decorate-Cz9-peTN.js} +1 -2
- package/dist/components/{dist-B5E3q-ea.js → dist-B9YBOGFW.js} +4 -6
- package/dist/components/{dist-BWlUmyq3.js → dist-BFZM0YsR.js} +57 -36
- package/dist/components/{dist-BFw_yEMS.js → dist-BNkeFjc3.js} +5 -7
- package/dist/components/{dist-Co-tsc9S.js → dist-BaLc58I_.js} +7 -9
- package/dist/components/{dist-BOVSVPSz.js → dist-Bm3708s5.js} +3 -4
- package/dist/components/{dist-IPm8ilWf.js → dist-CJ9uLG0u.js} +5 -17
- package/dist/components/{dist-Dz28se9B.js → dist-CJm4tkNC.js} +4 -6
- package/dist/components/{dist-CC8oiVtm.js → dist-CSC1dG3L.js} +2 -3
- package/dist/components/{dist-BPB3rWnd.js → dist-DHhnz3Gv.js} +3 -4
- package/dist/components/{dist-Dn9pjiud.js → dist-DgjvHvsN.js} +6 -8
- package/dist/components/{dist-COKR0tYU.js → dist-PeUX4vPq.js} +3 -6
- package/dist/components/{dist-D_9ZyZ5v.js → dist-YYLChwRq.js} +5 -7
- package/dist/components/{dist-BNLAXAyO.js → dist-m70B83qb.js} +4 -6
- package/dist/components/forms/form-field/form-field.d.ts +9 -5
- package/dist/components/forms/form-field/form-field.d.ts.map +1 -1
- package/dist/components/forms/form-field/form-field.js +17 -6
- package/dist/components/forms/form-field/form-field.js.map +1 -1
- package/dist/components/{gherkin-uCVRxsGf.js → gherkin-DzYbEwDO.js} +1 -2
- package/dist/components/{icon-BJHKWhY5.js → icon-DRpTWSIg.js} +33 -20
- package/dist/components/{icon-button-DhBIq6lN.js → icon-button-DUEmWlBD.js} +41 -51
- package/dist/components/index.d.ts +2 -0
- package/dist/components/index.d.ts.map +1 -1
- package/dist/components/index.js +2 -0
- package/dist/components/index.js.map +1 -1
- package/dist/components/{input-modality-DhTeUxKi.js → input-modality-CiPLYYMN.js} +1 -2
- package/dist/components/inputs/code-editor/code-editor.styles.d.ts.map +1 -1
- package/dist/components/inputs/code-editor/code-editor.styles.js +6 -1
- package/dist/components/inputs/code-editor/code-editor.styles.js.map +1 -1
- package/dist/components/inputs/combo-box/combo-box.styles.d.ts.map +1 -1
- package/dist/components/inputs/combo-box/combo-box.styles.js +1 -0
- package/dist/components/inputs/combo-box/combo-box.styles.js.map +1 -1
- package/dist/components/inputs/date-field/date-field.d.ts +41 -28
- package/dist/components/inputs/date-field/date-field.d.ts.map +1 -1
- package/dist/components/inputs/date-field/date-field.dates.d.ts +60 -0
- package/dist/components/inputs/date-field/date-field.dates.d.ts.map +1 -0
- package/dist/components/inputs/date-field/date-field.dates.js +106 -0
- package/dist/components/inputs/date-field/date-field.dates.js.map +1 -0
- package/dist/components/inputs/date-field/date-field.i18n.d.ts +4 -0
- package/dist/components/inputs/date-field/date-field.i18n.d.ts.map +1 -1
- package/dist/components/inputs/date-field/date-field.i18n.js +6 -0
- package/dist/components/inputs/date-field/date-field.i18n.js.map +1 -1
- package/dist/components/inputs/date-field/date-field.js +110 -142
- package/dist/components/inputs/date-field/date-field.js.map +1 -1
- package/dist/components/inputs/date-field/date-field.styles.d.ts.map +1 -1
- package/dist/components/inputs/date-field/date-field.styles.js +1 -0
- package/dist/components/inputs/date-field/date-field.styles.js.map +1 -1
- package/dist/components/inputs/date-field/date-field.template.d.ts.map +1 -1
- package/dist/components/inputs/date-field/date-field.template.js +21 -17
- package/dist/components/inputs/date-field/date-field.template.js.map +1 -1
- package/dist/components/inputs/file-field/file-field.d.ts +12 -0
- package/dist/components/inputs/file-field/file-field.d.ts.map +1 -1
- package/dist/components/inputs/file-field/file-field.i18n.d.ts +1 -0
- package/dist/components/inputs/file-field/file-field.i18n.d.ts.map +1 -1
- package/dist/components/inputs/file-field/file-field.i18n.js +1 -0
- package/dist/components/inputs/file-field/file-field.i18n.js.map +1 -1
- package/dist/components/inputs/file-field/file-field.js +28 -9
- package/dist/components/inputs/file-field/file-field.js.map +1 -1
- package/dist/components/inputs/file-field/file-field.styles.d.ts.map +1 -1
- package/dist/components/inputs/file-field/file-field.styles.js +91 -8
- package/dist/components/inputs/file-field/file-field.styles.js.map +1 -1
- package/dist/components/inputs/file-field/file-field.template.d.ts +1 -0
- package/dist/components/inputs/file-field/file-field.template.d.ts.map +1 -1
- package/dist/components/inputs/file-field/file-field.template.js +51 -21
- package/dist/components/inputs/file-field/file-field.template.js.map +1 -1
- package/dist/components/inputs/multi-line-text-field/multi-line-text-field.styles.d.ts.map +1 -1
- package/dist/components/inputs/multi-line-text-field/multi-line-text-field.styles.js +1 -0
- package/dist/components/inputs/multi-line-text-field/multi-line-text-field.styles.js.map +1 -1
- package/dist/components/inputs/password-field/password-field.styles.d.ts.map +1 -1
- package/dist/components/inputs/password-field/password-field.styles.js +1 -0
- package/dist/components/inputs/password-field/password-field.styles.js.map +1 -1
- package/dist/components/inputs/search-field/search-field.d.ts +1 -1
- package/dist/components/inputs/search-field/search-field.js +1 -1
- package/dist/components/inputs/search-field/search-field.styles.d.ts.map +1 -1
- package/dist/components/inputs/search-field/search-field.styles.js +1 -0
- package/dist/components/inputs/search-field/search-field.styles.js.map +1 -1
- package/dist/components/inputs/segmented-control/segmented-control.d.ts +6 -3
- package/dist/components/inputs/segmented-control/segmented-control.d.ts.map +1 -1
- package/dist/components/inputs/segmented-control/segmented-control.js +8 -10
- package/dist/components/inputs/segmented-control/segmented-control.js.map +1 -1
- package/dist/components/inputs/slider/slider.d.ts +161 -0
- package/dist/components/inputs/slider/slider.d.ts.map +1 -0
- package/dist/components/inputs/slider/slider.i18n.d.ts +6 -0
- package/dist/components/inputs/slider/slider.i18n.d.ts.map +1 -0
- package/dist/components/inputs/slider/slider.i18n.js +5 -0
- package/dist/components/inputs/slider/slider.i18n.js.map +1 -0
- package/dist/components/inputs/slider/slider.js +436 -0
- package/dist/components/inputs/slider/slider.js.map +1 -0
- package/dist/components/inputs/slider/slider.styles.d.ts +2 -0
- package/dist/components/inputs/slider/slider.styles.d.ts.map +1 -0
- package/dist/components/inputs/slider/slider.styles.js +360 -0
- package/dist/components/inputs/slider/slider.styles.js.map +1 -0
- package/dist/components/inputs/slider/slider.template.d.ts +5 -0
- package/dist/components/inputs/slider/slider.template.d.ts.map +1 -0
- package/dist/components/inputs/slider/slider.template.js +99 -0
- package/dist/components/inputs/slider/slider.template.js.map +1 -0
- package/dist/components/inputs/text-editor/text-editor.selection.d.ts.map +1 -1
- package/dist/components/inputs/text-editor/text-editor.selection.js +35 -9
- package/dist/components/inputs/text-editor/text-editor.selection.js.map +1 -1
- package/dist/components/inputs/text-editor/text-editor.styles.d.ts.map +1 -1
- package/dist/components/inputs/text-editor/text-editor.styles.js +17 -0
- package/dist/components/inputs/text-editor/text-editor.styles.js.map +1 -1
- package/dist/components/inputs/text-editor/text-editor.tasks.d.ts.map +1 -1
- package/dist/components/inputs/text-editor/text-editor.tasks.js +5 -1
- package/dist/components/inputs/text-editor/text-editor.tasks.js.map +1 -1
- package/dist/components/inputs/text-field/text-field.styles.d.ts.map +1 -1
- package/dist/components/inputs/text-field/text-field.styles.js +1 -0
- package/dist/components/inputs/text-field/text-field.styles.js.map +1 -1
- package/dist/components/inputs/time-field/time-field.d.ts +26 -40
- package/dist/components/inputs/time-field/time-field.d.ts.map +1 -1
- package/dist/components/inputs/time-field/time-field.i18n.d.ts +3 -0
- package/dist/components/inputs/time-field/time-field.i18n.d.ts.map +1 -1
- package/dist/components/inputs/time-field/time-field.i18n.js +5 -0
- package/dist/components/inputs/time-field/time-field.i18n.js.map +1 -1
- package/dist/components/inputs/time-field/time-field.js +68 -162
- package/dist/components/inputs/time-field/time-field.js.map +1 -1
- package/dist/components/inputs/time-field/time-field.styles.d.ts.map +1 -1
- package/dist/components/inputs/time-field/time-field.styles.js +1 -0
- package/dist/components/inputs/time-field/time-field.styles.js.map +1 -1
- package/dist/components/inputs/time-field/time-field.times.d.ts +74 -0
- package/dist/components/inputs/time-field/time-field.times.d.ts.map +1 -0
- package/dist/components/inputs/time-field/time-field.times.js +154 -0
- package/dist/components/inputs/time-field/time-field.times.js.map +1 -0
- package/dist/components/layout/card/card.d.ts +6 -1
- package/dist/components/layout/card/card.d.ts.map +1 -1
- package/dist/components/layout/card/card.i18n.d.ts +1 -0
- package/dist/components/layout/card/card.i18n.d.ts.map +1 -1
- package/dist/components/layout/card/card.i18n.js +1 -0
- package/dist/components/layout/card/card.i18n.js.map +1 -1
- package/dist/components/layout/card/card.js +7 -0
- package/dist/components/layout/card/card.js.map +1 -1
- package/dist/components/layout/card/card.template.d.ts.map +1 -1
- package/dist/components/layout/card/card.template.js +5 -2
- package/dist/components/layout/card/card.template.js.map +1 -1
- package/dist/components/layout/page/page.d.ts +3 -0
- package/dist/components/layout/page/page.d.ts.map +1 -1
- package/dist/components/layout/page/page.js +20 -3
- package/dist/components/layout/page/page.js.map +1 -1
- package/dist/components/layout/page/page.styles.d.ts.map +1 -1
- package/dist/components/layout/page/page.styles.js +25 -2
- package/dist/components/layout/page/page.styles.js.map +1 -1
- package/dist/components/layout/page/page.template.js +1 -1
- package/dist/components/layout/page/page.template.js.map +1 -1
- package/dist/components/layout/sheet/sheet.d.ts +5 -0
- package/dist/components/layout/sheet/sheet.d.ts.map +1 -1
- package/dist/components/layout/sheet/sheet.js +14 -6
- package/dist/components/layout/sheet/sheet.js.map +1 -1
- package/dist/components/layout/sheet/sheet.template.d.ts.map +1 -1
- package/dist/components/layout/sheet/sheet.template.js +1 -0
- package/dist/components/layout/sheet/sheet.template.js.map +1 -1
- package/dist/components/layout/task-board/task-board-column.d.ts +80 -0
- package/dist/components/layout/task-board/task-board-column.d.ts.map +1 -0
- package/dist/components/layout/task-board/task-board-column.js +207 -0
- package/dist/components/layout/task-board/task-board-column.js.map +1 -0
- package/dist/components/layout/task-board/task-board-column.template.d.ts +3 -0
- package/dist/components/layout/task-board/task-board-column.template.d.ts.map +1 -0
- package/dist/components/layout/task-board/task-board-column.template.js +45 -0
- package/dist/components/layout/task-board/task-board-column.template.js.map +1 -0
- package/dist/components/layout/task-board/task-board.d.ts +169 -0
- package/dist/components/layout/task-board/task-board.d.ts.map +1 -0
- package/dist/components/layout/task-board/task-board.i18n.d.ts +11 -0
- package/dist/components/layout/task-board/task-board.i18n.d.ts.map +1 -0
- package/dist/components/layout/task-board/task-board.i18n.js +10 -0
- package/dist/components/layout/task-board/task-board.i18n.js.map +1 -0
- package/dist/components/layout/task-board/task-board.js +701 -0
- package/dist/components/layout/task-board/task-board.js.map +1 -0
- package/dist/components/layout/task-board/task-board.styles.d.ts +3 -0
- package/dist/components/layout/task-board/task-board.styles.d.ts.map +1 -0
- package/dist/components/layout/task-board/task-board.styles.js +259 -0
- package/dist/components/layout/task-board/task-board.styles.js.map +1 -0
- package/dist/components/layout/task-board/task-board.template.d.ts +3 -0
- package/dist/components/layout/task-board/task-board.template.d.ts.map +1 -0
- package/dist/components/layout/task-board/task-board.template.js +25 -0
- package/dist/components/layout/task-board/task-board.template.js.map +1 -0
- package/dist/components/lists-and-tables/list-item/list-item.d.ts +6 -1
- package/dist/components/lists-and-tables/list-item/list-item.d.ts.map +1 -1
- package/dist/components/lists-and-tables/list-item/list-item.i18n.d.ts +1 -0
- package/dist/components/lists-and-tables/list-item/list-item.i18n.d.ts.map +1 -1
- package/dist/components/lists-and-tables/list-item/list-item.i18n.js +1 -0
- package/dist/components/lists-and-tables/list-item/list-item.i18n.js.map +1 -1
- package/dist/components/lists-and-tables/list-item/list-item.js +12 -3
- package/dist/components/lists-and-tables/list-item/list-item.js.map +1 -1
- package/dist/components/lists-and-tables/list-item/list-item.template.d.ts +1 -1
- package/dist/components/lists-and-tables/list-item/list-item.template.d.ts.map +1 -1
- package/dist/components/lists-and-tables/list-item/list-item.template.js +2 -1
- package/dist/components/lists-and-tables/list-item/list-item.template.js.map +1 -1
- package/dist/components/lists-and-tables/list-item-segment/list-item-segment.d.ts +6 -1
- package/dist/components/lists-and-tables/list-item-segment/list-item-segment.d.ts.map +1 -1
- package/dist/components/lists-and-tables/list-item-segment/list-item-segment.i18n.d.ts +1 -0
- package/dist/components/lists-and-tables/list-item-segment/list-item-segment.i18n.d.ts.map +1 -1
- package/dist/components/lists-and-tables/list-item-segment/list-item-segment.i18n.js +1 -0
- package/dist/components/lists-and-tables/list-item-segment/list-item-segment.i18n.js.map +1 -1
- package/dist/components/lists-and-tables/list-item-segment/list-item-segment.js +12 -3
- package/dist/components/lists-and-tables/list-item-segment/list-item-segment.js.map +1 -1
- package/dist/components/lists-and-tables/list-item-segment/list-item-segment.template.d.ts +1 -1
- package/dist/components/lists-and-tables/list-item-segment/list-item-segment.template.d.ts.map +1 -1
- package/dist/components/lists-and-tables/list-item-segment/list-item-segment.template.js +2 -1
- package/dist/components/lists-and-tables/list-item-segment/list-item-segment.template.js.map +1 -1
- package/dist/components/navigation/link/link.d.ts +11 -1
- package/dist/components/navigation/link/link.d.ts.map +1 -1
- package/dist/components/navigation/link/link.i18n.d.ts +1 -0
- package/dist/components/navigation/link/link.i18n.d.ts.map +1 -1
- package/dist/components/navigation/link/link.i18n.js +1 -0
- package/dist/components/navigation/link/link.i18n.js.map +1 -1
- package/dist/components/navigation/link/link.js +27 -1
- package/dist/components/navigation/link/link.js.map +1 -1
- package/dist/components/navigation/link/link.template.d.ts +1 -0
- package/dist/components/navigation/link/link.template.d.ts.map +1 -1
- package/dist/components/navigation/link/link.template.js +21 -16
- package/dist/components/navigation/link/link.template.js.map +1 -1
- package/dist/components/navigation/tab-bar/tab-bar.d.ts +1 -0
- package/dist/components/navigation/tab-bar/tab-bar.d.ts.map +1 -1
- package/dist/components/navigation/tab-bar/tab-bar.js +9 -0
- package/dist/components/navigation/tab-bar/tab-bar.js.map +1 -1
- package/dist/components/navigation/tab-bar/tab-bar.template.js +1 -1
- package/dist/components/navigation/top-navigation-bar/top-navigation-bar.d.ts +9 -24
- package/dist/components/navigation/top-navigation-bar/top-navigation-bar.d.ts.map +1 -1
- package/dist/components/navigation/top-navigation-bar/top-navigation-bar.js +29 -223
- package/dist/components/navigation/top-navigation-bar/top-navigation-bar.js.map +1 -1
- package/dist/components/navigation/top-navigation-bar/top-navigation-bar.menu-sheet.d.ts +48 -0
- package/dist/components/navigation/top-navigation-bar/top-navigation-bar.menu-sheet.d.ts.map +1 -0
- package/dist/components/navigation/top-navigation-bar/top-navigation-bar.menu-sheet.js +220 -0
- package/dist/components/navigation/top-navigation-bar/top-navigation-bar.menu-sheet.js.map +1 -0
- package/dist/components/navigation/top-navigation-bar/top-navigation-bar.styles.d.ts.map +1 -1
- package/dist/components/navigation/top-navigation-bar/top-navigation-bar.styles.js +22 -2
- package/dist/components/navigation/top-navigation-bar/top-navigation-bar.styles.js.map +1 -1
- package/dist/components/navigation/top-navigation-bar/top-navigation-bar.template.d.ts.map +1 -1
- package/dist/components/navigation/top-navigation-bar/top-navigation-bar.template.js +4 -0
- package/dist/components/navigation/top-navigation-bar/top-navigation-bar.template.js.map +1 -1
- package/dist/components/{reflect-non-default-OLaK60rT.js → reflect-non-default-B9wQcnne.js} +1 -2
- package/dist/components/{rolldown-runtime-D7D4PA-g.js → rolldown-runtime-D8jQpDG7.js} +1 -2
- package/dist/components/{shadow-resets-CPa58rmc.js → shadow-resets-BwOyyZFH.js} +1 -2
- package/dist/components/{shell-C61GCsJA.js → shell-Dh5IwHd-.js} +1 -2
- package/dist/components/status-and-feedback/step-bar/step-bar.d.ts +10 -1
- package/dist/components/status-and-feedback/step-bar/step-bar.d.ts.map +1 -1
- package/dist/components/status-and-feedback/step-bar/step-bar.js +22 -1
- package/dist/components/status-and-feedback/step-bar/step-bar.js.map +1 -1
- package/dist/components/status-and-feedback/step-bar/step-bar.template.d.ts.map +1 -1
- package/dist/components/status-and-feedback/step-bar/step-bar.template.js +2 -0
- package/dist/components/status-and-feedback/step-bar/step-bar.template.js.map +1 -1
- package/dist/components/{toml-C2HBbPgG.js → toml-D0Pix_8Q.js} +1 -2
- package/dist/components/{visibility-mixin-djNSG5ZN.js → visibility-mixin-C-K7ho5Q.js} +4 -6
- package/dist/components/{with-translations-C6QfP6_S.js → with-translations-DRuOq3QK.js} +14 -10
- package/dist/css/{global-system-font.css → global-open-font.css} +2 -0
- package/dist/css/global.css +1 -0
- package/dist/css/inter-font.css +47 -0
- package/dist/css/jetbrains-mono-font.css +22 -0
- package/dist/css/rijksoverheid-fonts.css +4 -21
- package/dist/css/themes/bruin.css +1 -0
- package/dist/css/themes/donkerblauw.css +1 -0
- package/dist/css/themes/donkerbruin.css +1 -0
- package/dist/css/themes/donkergeel.css +1 -0
- package/dist/css/themes/donkergroen.css +1 -0
- package/dist/css/themes/geel.css +1 -0
- package/dist/css/themes/groen.css +1 -0
- package/dist/css/themes/hemelblauw.css +1 -0
- package/dist/css/themes/lichtblauw.css +1 -0
- package/dist/css/themes/mintgroen.css +1 -0
- package/dist/css/themes/mosgroen.css +1 -0
- package/dist/css/themes/oranje.css +1 -0
- package/dist/css/themes/paars.css +1 -0
- package/dist/css/themes/robijnrood.css +1 -0
- package/dist/css/themes/rood.css +1 -0
- package/dist/css/themes/roze.css +1 -0
- package/dist/css/themes/violet.css +1 -0
- package/dist/css/themes.css +17 -0
- package/dist/css/tokens.css +1 -0
- package/dist/css/variables.css +27 -5
- package/dist/fonts/Inter-Latin-Italic[wght].woff2 +0 -0
- package/dist/fonts/Inter-LatinExt-Italic[wght].woff2 +0 -0
- package/dist/fonts/Inter-LatinExt[wght].woff2 +0 -0
- package/dist/fonts/Inter-Latin[wght].woff2 +0 -0
- package/dist/nldd.min.js +1902 -842
- package/dist/translations/en-US.d.ts.map +1 -1
- package/dist/translations/en-US.js +23 -0
- package/dist/translations/en-US.js.map +1 -1
- package/dist/translations/fy.d.ts.map +1 -1
- package/dist/translations/fy.js +13 -0
- package/dist/translations/fy.js.map +1 -1
- package/dist/translations/nl.generated.d.ts +23 -0
- package/dist/translations/nl.generated.d.ts.map +1 -1
- package/dist/translations/nl.generated.js +4 -0
- package/dist/translations/nl.generated.js.map +1 -1
- package/dist/translations/pap-AW.d.ts.map +1 -1
- package/dist/translations/pap-AW.js +13 -0
- package/dist/translations/pap-AW.js.map +1 -1
- package/dist/translations/pap-CW.d.ts.map +1 -1
- package/dist/translations/pap-CW.js +13 -0
- package/dist/translations/pap-CW.js.map +1 -1
- package/dist/types/vue.d.ts +164 -24
- package/dist/utilities/form-associated-mixin.d.ts +7 -0
- package/dist/utilities/form-associated-mixin.d.ts.map +1 -1
- package/dist/utilities/form-associated-mixin.js +13 -1
- package/dist/utilities/form-associated-mixin.js.map +1 -1
- package/dist/utilities/link-hint.d.ts +11 -0
- package/dist/utilities/link-hint.d.ts.map +1 -1
- package/dist/utilities/link-hint.js +15 -0
- package/dist/utilities/link-hint.js.map +1 -1
- package/dist/utilities/tab-order.d.ts +11 -0
- package/dist/utilities/tab-order.d.ts.map +1 -0
- package/dist/utilities/tab-order.js +55 -0
- package/dist/utilities/tab-order.js.map +1 -0
- package/package.json +13 -4
|
@@ -30,6 +30,7 @@
|
|
|
30
30
|
* @attr {string} shortcut-linux - Override of `shortcut` on Linux (falls back to `shortcut`).
|
|
31
31
|
* @attr {string} href - When set, renders an <a> element instead of <button>
|
|
32
32
|
* @attr {string} target - Link target (e.g. '_blank'); only used when href is set. With '_blank' the button adds a visually hidden "opens in new tab" announcement 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.
|
|
33
|
+
* @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.
|
|
33
34
|
* @attr {string} rel - Link rel attribute, used with href; with target '_blank', 'noopener noreferrer' is added to whatever you set
|
|
34
35
|
* @attr {object} translations - Override translation keys (e.g. the "opens in new tab" announcement); unset keys fall back to Dutch.
|
|
35
36
|
*
|
|
@@ -53,8 +54,9 @@ declare const NLDDButton_base: (abstract new (...args: any[]) => LitElement & {
|
|
|
53
54
|
'components.button.link-hint-new-tab-lowercase-label': string;
|
|
54
55
|
'components.button.link-hint-external-lowercase-label': string;
|
|
55
56
|
'components.button.link-hint-external-new-tab-lowercase-label': string;
|
|
57
|
+
'components.button.link-hint-download-lowercase-label': string;
|
|
56
58
|
}>;
|
|
57
|
-
_t(key: "components.button.link-hint-new-tab-lowercase-label" | "components.button.link-hint-external-lowercase-label" | "components.button.link-hint-external-new-tab-lowercase-label", vars?: Record<string, string | number>): string;
|
|
59
|
+
_t(key: "components.button.link-hint-new-tab-lowercase-label" | "components.button.link-hint-external-lowercase-label" | "components.button.link-hint-external-new-tab-lowercase-label" | "components.button.link-hint-download-lowercase-label", vars?: Record<string, string | number>): string;
|
|
58
60
|
}) & typeof LitElement & (abstract new (...args: any[]) => import("../../../utilities/described-by-mixin.js").DescribedElement);
|
|
59
61
|
export declare class NLDDButton extends NLDDButton_base {
|
|
60
62
|
static styles: import("lit").CSSResult;
|
|
@@ -136,6 +138,9 @@ export declare class NLDDButton extends NLDDButton_base {
|
|
|
136
138
|
href: string | undefined;
|
|
137
139
|
/** Link target (e.g. '_blank'). Only used when href is set. */
|
|
138
140
|
target: string | undefined;
|
|
141
|
+
/** Saves the file instead of opening it; only used when href is set. Empty
|
|
142
|
+
* for the name from the URL, a name to save it under. */
|
|
143
|
+
download: string | undefined;
|
|
139
144
|
/**
|
|
140
145
|
* Link rel attribute. Only used when href is set.
|
|
141
146
|
* With target '_blank', 'noopener noreferrer' is added to it.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"button.d.ts","sourceRoot":"","sources":["../../../../src/components/actions/button/button.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"button.d.ts","sourceRoot":"","sources":["../../../../src/components/actions/button/button.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA0CG;AAEH,OAAO,EAAE,UAAU,EAAE,MAAM,KAAK,CAAC;AAOjC,OAAO,EAAE,qBAAqB,EAAE,MAAM,+CAA+C,CAAC;AACtF,OAAO,8BAA8B,CAAC;AACtC,OAAO,sEAAsE,CAAC;AAI9E,KAAK,UAAU,GACZ,SAAS,GACT,WAAW,GACX,aAAa,GACb,eAAe,GACf,oBAAoB,GACpB,gBAAgB,GAChB,cAAc,GACd,qBAAqB,GACrB,iBAAiB,GACjB,sBAAsB,GACtB,gBAAgB,GAChB,gBAAgB,CAAC;AACpB,KAAK,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;AACtC,KAAK,UAAU,GAAG,QAAQ,GAAG,Q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D,IAAI,EAAE,MAAM,GAAG,SAAS,CAAa;IAErC,+DAA+D;IAE/D,MAAM,EAAE,MAAM,GAAG,SAAS,CAAa;IAEvC;8DAC0D;IAE1D,QAAQ,EAAE,MAAM,GAAG,SAAS,CAAa;IAEzC;;;OAGG;IAEH,GAAG,EAAE,MAAM,GAAG,SAAS,CAAa;IAEpC,OAAO,CAAC,WAAW,CAAS;IAC5B,OAAO,CAAC,aAAa,CAAuB;IAE5C;;6BAEyB;IACzB,MAAM,wBAAmC;IAEzC,6GAA6G;IAC7G,OAAO,CAAC,qBAAqB,CAA4C;IAEhE,OAAO,CAAC,iBAAiB,EAAE,GAAG,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI;IAmC/D,OAAO,CAAC,YAAY;IAgCpB;;;;;;;;;;;;;;;OAeG;IACH,OAAO,CAAC,UAAU;IAuBlB;;;OAGG;IACM,KAAK,CAAC,OAAO,CAAC,EAAE,YAAY,GAAG,IAAI;IAI5C,6DAA6D;IACpD,eAAe,IAAI,OAAO,GAAG,IAAI;IAIjC,MAAM;CAKf;AAED,OAAO,CAAC,MAAM,CAAC;IACd,UAAU,qBAAqB;QAC9B,aAAa,EAAE,UAAU,CAAC;KAC1B;CACD"}
|
|
@@ -2,6 +2,7 @@ export declare const nlddButtonTranslations: {
|
|
|
2
2
|
'components.button.link-hint-new-tab-lowercase-label': string;
|
|
3
3
|
'components.button.link-hint-external-lowercase-label': string;
|
|
4
4
|
'components.button.link-hint-external-new-tab-lowercase-label': string;
|
|
5
|
+
'components.button.link-hint-download-lowercase-label': string;
|
|
5
6
|
};
|
|
6
7
|
export type NLDDButtonTranslations = typeof nlddButtonTranslations;
|
|
7
8
|
//# sourceMappingURL=button.i18n.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"button.i18n.d.ts","sourceRoot":"","sources":["../../../../src/components/actions/button/button.i18n.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,sBAAsB
|
|
1
|
+
{"version":3,"file":"button.i18n.d.ts","sourceRoot":"","sources":["../../../../src/components/actions/button/button.i18n.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,sBAAsB;;;;;CAKlC,CAAC;AAEF,MAAM,MAAM,sBAAsB,GAAG,OAAO,sBAAsB,CAAC"}
|
|
@@ -2,5 +2,6 @@ export const nlddButtonTranslations = {
|
|
|
2
2
|
'components.button.link-hint-new-tab-lowercase-label': 'opent in nieuw tabblad',
|
|
3
3
|
'components.button.link-hint-external-lowercase-label': 'andere website',
|
|
4
4
|
'components.button.link-hint-external-new-tab-lowercase-label': 'andere website, opent in nieuw tabblad',
|
|
5
|
+
'components.button.link-hint-download-lowercase-label': 'downloadt bestand',
|
|
5
6
|
};
|
|
6
7
|
//# sourceMappingURL=button.i18n.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"button.i18n.js","sourceRoot":"","sources":["../../../../src/components/actions/button/button.i18n.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,sBAAsB,GAAG;IACrC,qDAAqD,EAAE,wBAAwB;IAC/E,sDAAsD,EAAE,gBAAgB;IACxE,8DAA8D,EAAE,wCAAwC;
|
|
1
|
+
{"version":3,"file":"button.i18n.js","sourceRoot":"","sources":["../../../../src/components/actions/button/button.i18n.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,sBAAsB,GAAG;IACrC,qDAAqD,EAAE,wBAAwB;IAC/E,sDAAsD,EAAE,gBAAgB;IACxE,8DAA8D,EAAE,wCAAwC;IACxG,sDAAsD,EAAE,mBAAmB;CAC3E,CAAC"}
|
|
@@ -30,6 +30,7 @@
|
|
|
30
30
|
* @attr {string} shortcut-linux - Override of `shortcut` on Linux (falls back to `shortcut`).
|
|
31
31
|
* @attr {string} href - When set, renders an <a> element instead of <button>
|
|
32
32
|
* @attr {string} target - Link target (e.g. '_blank'); only used when href is set. With '_blank' the button adds a visually hidden "opens in new tab" announcement 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.
|
|
33
|
+
* @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.
|
|
33
34
|
* @attr {string} rel - Link rel attribute, used with href; with target '_blank', 'noopener noreferrer' is added to whatever you set
|
|
34
35
|
* @attr {object} translations - Override translation keys (e.g. the "opens in new tab" announcement); unset keys fall back to Dutch.
|
|
35
36
|
*
|
|
@@ -132,6 +133,9 @@ let NLDDButton = class NLDDButton extends DescribedBy(withTranslations(LitElemen
|
|
|
132
133
|
this.href = undefined;
|
|
133
134
|
/** Link target (e.g. '_blank'). Only used when href is set. */
|
|
134
135
|
this.target = undefined;
|
|
136
|
+
/** Saves the file instead of opening it; only used when href is set. Empty
|
|
137
|
+
* for the name from the URL, a name to save it under. */
|
|
138
|
+
this.download = undefined;
|
|
135
139
|
/**
|
|
136
140
|
* Link rel attribute. Only used when href is set.
|
|
137
141
|
* With target '_blank', 'noopener noreferrer' is added to it.
|
|
@@ -366,6 +370,9 @@ __decorate([
|
|
|
366
370
|
__decorate([
|
|
367
371
|
property({ type: String })
|
|
368
372
|
], NLDDButton.prototype, "target", void 0);
|
|
373
|
+
__decorate([
|
|
374
|
+
property({ type: String })
|
|
375
|
+
], NLDDButton.prototype, "download", void 0);
|
|
369
376
|
__decorate([
|
|
370
377
|
property({ type: String })
|
|
371
378
|
], NLDDButton.prototype, "rel", void 0);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"button.js","sourceRoot":"","sources":["../../../../src/components/actions/button/button.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"button.js","sourceRoot":"","sources":["../../../../src/components/actions/button/button.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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AAE,CAAC;4CACxD;AAGd;IADC,QAAQ,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,cAAc,EAAE,SAAS,EAAE,iBAAiB,CAAS,EAAE,CAAC,EAAE,CAAC;+CAChF;AAGjB;IADC,QAAQ,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,kBAAkB,EAAE,SAAS,EAAE,iBAAiB,CAAS,EAAE,CAAC,EAAE,CAAC;mDAChF;AAGrB;IADC,QAAQ,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,gBAAgB,EAAE,SAAS,EAAE,iBAAiB,CAAS,EAAE,CAAC,EAAE,CAAC;iDAChF;AAInB;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;wCACL;AAIrC;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;0CACY;AAKvC;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;4CACc;AAOzC;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;uCACS;AAzJxB,UAAU;IADtB,aAAa,CAAC,aAAa,CAAC;GAChB,UAAU,CAkStB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"button.template.d.ts","sourceRoot":"","sources":["../../../../src/components/actions/button/button.template.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAI9C,OAAO,sDAAsD,CAAC;AAE9D,UAAU,eAAe;IACxB,WAAW,EAAE,CAAC,CAAC,EAAE,UAAU,KAAK,IAAI,CAAC;CACrC;AA4CD,wBAAgB,QAAQ,CAAC,IAAI,EAAE,UAAU,EAAE,OAAO,EAAE,eAAe,
|
|
1
|
+
{"version":3,"file":"button.template.d.ts","sourceRoot":"","sources":["../../../../src/components/actions/button/button.template.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAI9C,OAAO,sDAAsD,CAAC;AAE9D,UAAU,eAAe;IACxB,WAAW,EAAE,CAAC,CAAC,EAAE,UAAU,KAAK,IAAI,CAAC;CACrC;AA4CD,wBAAgB,QAAQ,CAAC,IAAI,EAAE,UAAU,EAAE,OAAO,EAAE,eAAe,wCAqHlE"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { html, nothing } from 'lit';
|
|
2
2
|
import { linkRel } from '../../../utilities/link-rel.js';
|
|
3
|
-
import {
|
|
3
|
+
import { downloadLinkHintKey, warnDownloadTarget } from '../../../utilities/link-hint.js';
|
|
4
4
|
import { hasShortcut, shortcutLabel } from '../../../utilities/shortcut.js';
|
|
5
5
|
import '../../content/keyboard-shortcut/keyboard-shortcut.js';
|
|
6
6
|
function renderContent(component) {
|
|
@@ -58,7 +58,9 @@ export function template(helpers) {
|
|
|
58
58
|
const ariaExpanded = isDisclosure ? String(this.expanded) : (this.expanded ? 'true' : nothing);
|
|
59
59
|
// A link to another website or a new tab says so (WCAG 2.1 SC 3.2.2).
|
|
60
60
|
// Only the <a> path (href) navigates.
|
|
61
|
-
const hintKey =
|
|
61
|
+
const hintKey = downloadLinkHintKey(this.href, this.target, this.download);
|
|
62
|
+
if (this.href)
|
|
63
|
+
warnDownloadTarget(this, this.download, this.target);
|
|
62
64
|
const linkHint = hintKey ? this._t(`components.button.${hintKey}`) : '';
|
|
63
65
|
// `supporting-text` renders in a sibling span next to the text; the
|
|
64
66
|
// accessible-name flat-string algorithm concatenates them without a
|
|
@@ -110,6 +112,7 @@ export function template(helpers) {
|
|
|
110
112
|
href=${this.href}
|
|
111
113
|
target=${this.target || nothing}
|
|
112
114
|
rel=${resolvedRel || nothing}
|
|
115
|
+
download=${this.download ?? nothing}
|
|
113
116
|
aria-disabled=${this.disabled ? 'true' : nothing}
|
|
114
117
|
aria-label=${ariaLabel}
|
|
115
118
|
aria-haspopup=${this.popupType || nothing}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"button.template.js","sourceRoot":"","sources":["../../../../src/components/actions/button/button.template.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,KAAK,CAAC;AAEpC,OAAO,EAAE,OAAO,EAAE,MAAM,gCAAgC,CAAC;AACzD,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"button.template.js","sourceRoot":"","sources":["../../../../src/components/actions/button/button.template.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,KAAK,CAAC;AAEpC,OAAO,EAAE,OAAO,EAAE,MAAM,gCAAgC,CAAC;AACzD,OAAO,EAAE,mBAAmB,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAC1F,OAAO,EAAE,WAAW,EAAE,aAAa,EAAE,MAAM,gCAAgC,CAAC;AAC5E,OAAO,sDAAsD,CAAC;AAM9D,SAAS,aAAa,CAAC,SAAqB;IAC3C,sEAAsE;IACtE,6EAA6E;IAC7E,mEAAmE;IACnE,OAAO,IAAI,CAAA;;KAEP,SAAS,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,CAAA;;uBAER,SAAS,CAAC,SAAS;;IAEtC,CAAC,CAAC,CAAC,IAAI,CAAA,iCAAiC;;iCAEX,SAAS,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,CAAA,2BAA2B;MAC5F,SAAS,CAAC,cAAc,CAAC,CAAC,CAAC,IAAI,CAAA,yCAAyC,SAAS,CAAC,cAAc,SAAS,CAAC,CAAC,CAAC,OAAO;;KAEpH,WAAW,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,IAAI,CAAA;;;;;;aAMrB,SAAS,CAAC,QAAQ,IAAI,OAAO;iBACzB,SAAS,CAAC,WAAW,IAAI,OAAO;qBAC5B,SAAS,CAAC,eAAe,IAAI,OAAO;mBAC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ACzE,wEAAwE;IACxE,OAAO,IAAI,CAAA;kBACM,WAAW;UACnB,IAAI,CAAC,IAAI;eACJ,IAAI,CAAC,QAAQ;mBACT,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,OAAO;gBACnC,SAAS;mBACN,IAAI,CAAC,SAAS,IAAI,OAAO;mBACzB,YAAY;eAChB,QAAQ;cACT,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,OAAO;mBACtB,IAAI,CAAC,aAAa,IAAI,OAAO;2BACrB,IAAI,CAAC,oBAAoB;0BAC1B,IAAI,CAAC,mBAAmB;kBAChC,IAAI,CAAC,MAAM,CAAC,iBAAiB;YACnC,OAAO,CAAC,WAAW;;KAE1B,OAAO;;IAER,gBAAgB;IAChB,SAAS;EACX,CAAC;AACH,CAAC"}
|
|
@@ -21,34 +21,49 @@
|
|
|
21
21
|
* keeps its own size: a bar with a single glyph in the middle is not a bigger
|
|
22
22
|
* target, only a wider one.
|
|
23
23
|
*
|
|
24
|
+
* With `width="full"` the buttons fill the row and share it equally. A button
|
|
25
|
+
* whose label does not fit its share takes the width it needs, and the others
|
|
26
|
+
* share what is left. A button that does not fit beside the others moves to the
|
|
27
|
+
* next line and fills it: two buttons stack, three end up as two over one. That
|
|
28
|
+
* replaces the 480px rule of `auto`, and the group is no container then. With
|
|
29
|
+
* `orientation="horizontal"` it stays a row, and a label that does not fit wraps
|
|
30
|
+
* instead. An `nldd-icon-button` takes no share of the row.
|
|
31
|
+
*
|
|
32
|
+
* The group sets its `size` on every button in it: buttons in one group are the
|
|
33
|
+
* same size. It holds three buttons at most and hides the rest.
|
|
34
|
+
*
|
|
24
35
|
* @element nldd-button-group
|
|
25
|
-
* @attr {string} size - Button group size: 'sm' | 'md' (default: 'md')
|
|
36
|
+
* @attr {string} size - Button group size, set on every button in it: 'sm' | 'md' (default: 'md')
|
|
26
37
|
* @attr {string} orientation - Layout direction: 'auto' | 'horizontal' | 'vertical' (default: 'auto')
|
|
38
|
+
* @attr {string} width - 'full': the buttons fill the row in equal shares, and a button that does not fit moves to a line of its own (default: unset, each button as wide as its label)
|
|
27
39
|
*
|
|
28
40
|
* @slot - Default slot for buttons (max 3)
|
|
29
|
-
*
|
|
30
|
-
* @csspart group - The button group container
|
|
31
41
|
*/
|
|
32
42
|
import { LitElement } from 'lit';
|
|
33
43
|
type Size = 'sm' | 'md';
|
|
34
44
|
type Orientation = 'auto' | 'horizontal' | 'vertical';
|
|
45
|
+
type Width = '' | 'full';
|
|
35
46
|
export declare class NLDDButtonGroup extends LitElement {
|
|
36
47
|
static styles: import("lit").CSSResult;
|
|
37
48
|
size: Size;
|
|
38
49
|
orientation: Orientation;
|
|
50
|
+
width: Width;
|
|
39
51
|
private _slot;
|
|
40
52
|
/** DEV only: watches for the collapse below, then lets itself go. */
|
|
41
53
|
private _collapseObserver;
|
|
42
54
|
/** Timer holding a zero-width reading before it counts as a verdict. */
|
|
43
55
|
private _collapseVerdict;
|
|
44
|
-
|
|
56
|
+
/** Buttons whose size the group has set, so a size of their own can be told apart. */
|
|
57
|
+
private _sized;
|
|
58
|
+
/** @internal */
|
|
59
|
+
_handleSlotChange(): void;
|
|
45
60
|
updated(changedProperties: Map<string, unknown>): void;
|
|
46
61
|
connectedCallback(): void;
|
|
47
62
|
disconnectedCallback(): void;
|
|
48
63
|
/**
|
|
49
|
-
* The group is an inline-size container while `orientation` is `auto
|
|
50
|
-
* width has to come from its parent: a
|
|
51
|
-
* own contents. In a parent that shrink-wraps (inline-flex, a float, a table
|
|
64
|
+
* The group is an inline-size container while `orientation` is `auto` and
|
|
65
|
+
* `width` is not `full`, so its width has to come from its parent: a
|
|
66
|
+
* container may not size itself from its own contents. In a parent that shrink-wraps (inline-flex, a float, a table
|
|
52
67
|
* cell, a flex item at `width: auto`) there is nothing to take, the group
|
|
53
68
|
* measures zero and the buttons disappear without an error.
|
|
54
69
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"button-group.d.ts","sourceRoot":"","sources":["../../../../src/components/actions/button-group/button-group.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"button-group.d.ts","sourceRoot":"","sources":["../../../../src/components/actions/button-group/button-group.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAwCG;AACH,OAAO,EAAE,UAAU,EAAE,MAAM,KAAK,CAAC;AAMjC,KAAK,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;AACxB,KAAK,WAAW,GAAG,MAAM,GAAG,YAAY,GAAG,UAAU,CAAC;AACtD,KAAK,KAAK,GAAG,EAAE,GAAG,MAAM,CAAC;AAIzB,qBACa,eAAgB,SAAQ,UAAU;IAC9C,OAAgB,MAAM,0BAAqB;IAG3C,IAAI,EAAE,IAAI,CAAQ;IAGlB,WAAW,EAAE,WAAW,CAAU;IAGlC,KAAK,EAAE,KAAK,CAAM;IAGlB,OAAO,CAAC,KAAK,CAAmB;IAEhC,qEAAqE;IACrE,OAAO,CAAC,iBAAiB,CAA+B;IACxD,wEAAwE;IACxE,OAAO,CAAC,gBAAgB,CAAK;IAE7B,sFAAsF;IACtF,OAAO,CAAC,MAAM,CAA0B;IAExC,gBAAgB;IAChB,iBAAiB,IAAI,IAAI;IAehB,OAAO,CAAC,iBAAiB,EAAE,GAAG,CAAC,MAAM,EAAE,OAAO,CAAC;IAO/C,iBAAiB,IAAI,IAAI;IAOzB,oBAAoB,IAAI,IAAI;IAKrC;;;;;;;;;;;;;;;;;;;OAmBG;IACH,OAAO,CAAC,iBAAiB;IAgCzB,OAAO,CAAC,wBAAwB;IAOvB,MAAM;CAGf;AAED,OAAO,CAAC,MAAM,CAAC;IACd,UAAU,qBAAqB;QAC9B,mBAAmB,EAAE,eAAe,CAAC;KACrC;CACD"}
|
|
@@ -27,48 +27,64 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
27
27
|
* keeps its own size: a bar with a single glyph in the middle is not a bigger
|
|
28
28
|
* target, only a wider one.
|
|
29
29
|
*
|
|
30
|
+
* With `width="full"` the buttons fill the row and share it equally. A button
|
|
31
|
+
* whose label does not fit its share takes the width it needs, and the others
|
|
32
|
+
* share what is left. A button that does not fit beside the others moves to the
|
|
33
|
+
* next line and fills it: two buttons stack, three end up as two over one. That
|
|
34
|
+
* replaces the 480px rule of `auto`, and the group is no container then. With
|
|
35
|
+
* `orientation="horizontal"` it stays a row, and a label that does not fit wraps
|
|
36
|
+
* instead. An `nldd-icon-button` takes no share of the row.
|
|
37
|
+
*
|
|
38
|
+
* The group sets its `size` on every button in it: buttons in one group are the
|
|
39
|
+
* same size. It holds three buttons at most and hides the rest.
|
|
40
|
+
*
|
|
30
41
|
* @element nldd-button-group
|
|
31
|
-
* @attr {string} size - Button group size: 'sm' | 'md' (default: 'md')
|
|
42
|
+
* @attr {string} size - Button group size, set on every button in it: 'sm' | 'md' (default: 'md')
|
|
32
43
|
* @attr {string} orientation - Layout direction: 'auto' | 'horizontal' | 'vertical' (default: 'auto')
|
|
44
|
+
* @attr {string} width - 'full': the buttons fill the row in equal shares, and a button that does not fit moves to a line of its own (default: unset, each button as wide as its label)
|
|
33
45
|
*
|
|
34
46
|
* @slot - Default slot for buttons (max 3)
|
|
35
|
-
*
|
|
36
|
-
* @csspart group - The button group container
|
|
37
47
|
*/
|
|
38
48
|
import { LitElement } from 'lit';
|
|
39
49
|
import { customElement, property, query } from 'lit/decorators.js';
|
|
40
50
|
import { reflectNonDefault } from '../../../utilities/reflect-non-default.js';
|
|
41
51
|
import { buttonGroupStyles } from './button-group.styles.js';
|
|
42
52
|
import { template } from './button-group.template.js';
|
|
53
|
+
const MAX_BUTTONS = 3;
|
|
43
54
|
let NLDDButtonGroup = class NLDDButtonGroup extends LitElement {
|
|
44
55
|
constructor() {
|
|
45
56
|
super(...arguments);
|
|
46
57
|
this.size = 'md';
|
|
47
58
|
this.orientation = 'auto';
|
|
59
|
+
this.width = '';
|
|
48
60
|
/** DEV only: watches for the collapse below, then lets itself go. */
|
|
49
61
|
this._collapseObserver = null;
|
|
50
62
|
/** Timer holding a zero-width reading before it counts as a verdict. */
|
|
51
63
|
this._collapseVerdict = 0;
|
|
64
|
+
/** Buttons whose size the group has set, so a size of their own can be told apart. */
|
|
65
|
+
this._sized = new WeakSet();
|
|
52
66
|
}
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
67
|
+
/** @internal */
|
|
68
|
+
_handleSlotChange() {
|
|
69
|
+
const assigned = this._slot.assignedElements({ flatten: true });
|
|
70
|
+
if (import.meta.env?.DEV && assigned.length > MAX_BUTTONS) {
|
|
71
|
+
console.warn(`nldd-button-group: holds ${MAX_BUTTONS} buttons at most; the rest are hidden.`);
|
|
72
|
+
}
|
|
73
|
+
for (const el of assigned) {
|
|
74
|
+
const own = el.getAttribute('size');
|
|
75
|
+
if (import.meta.env?.DEV && own !== null && own !== this.size && !this._sized.has(el)) {
|
|
76
|
+
console.warn(`nldd-button-group: a button has size="${own}", but the group sets size="${this.size}" on all its buttons. Set the size on the group.`);
|
|
62
77
|
}
|
|
63
78
|
el.setAttribute('size', this.size);
|
|
64
|
-
|
|
79
|
+
this._sized.add(el);
|
|
80
|
+
}
|
|
65
81
|
}
|
|
66
82
|
updated(changedProperties) {
|
|
67
83
|
if (changedProperties.has('size'))
|
|
68
|
-
this.
|
|
84
|
+
this._handleSlotChange();
|
|
69
85
|
// Switching to auto makes the group a container after the fact, so the
|
|
70
86
|
// question it can then fail is only worth asking from here on.
|
|
71
|
-
if (changedProperties.has('orientation'))
|
|
87
|
+
if (changedProperties.has('orientation') || changedProperties.has('width'))
|
|
72
88
|
this._watchForCollapse();
|
|
73
89
|
}
|
|
74
90
|
connectedCallback() {
|
|
@@ -82,9 +98,9 @@ let NLDDButtonGroup = class NLDDButtonGroup extends LitElement {
|
|
|
82
98
|
this._stopWatchingForCollapse();
|
|
83
99
|
}
|
|
84
100
|
/**
|
|
85
|
-
* The group is an inline-size container while `orientation` is `auto
|
|
86
|
-
* width has to come from its parent: a
|
|
87
|
-
* own contents. In a parent that shrink-wraps (inline-flex, a float, a table
|
|
101
|
+
* The group is an inline-size container while `orientation` is `auto` and
|
|
102
|
+
* `width` is not `full`, so its width has to come from its parent: a
|
|
103
|
+
* container may not size itself from its own contents. In a parent that shrink-wraps (inline-flex, a float, a table
|
|
88
104
|
* cell, a flex item at `width: auto`) there is nothing to take, the group
|
|
89
105
|
* measures zero and the buttons disappear without an error.
|
|
90
106
|
*
|
|
@@ -104,7 +120,7 @@ let NLDDButtonGroup = class NLDDButtonGroup extends LitElement {
|
|
|
104
120
|
_watchForCollapse() {
|
|
105
121
|
if (!import.meta.env?.DEV)
|
|
106
122
|
return;
|
|
107
|
-
if (this.orientation !== 'auto') {
|
|
123
|
+
if (this.orientation !== 'auto' || this.width === 'full') {
|
|
108
124
|
this._stopWatchingForCollapse();
|
|
109
125
|
return;
|
|
110
126
|
}
|
|
@@ -157,6 +173,9 @@ __decorate([
|
|
|
157
173
|
__decorate([
|
|
158
174
|
property({ reflect: true, converter: reflectNonDefault('auto') })
|
|
159
175
|
], NLDDButtonGroup.prototype, "orientation", void 0);
|
|
176
|
+
__decorate([
|
|
177
|
+
property({ reflect: true, converter: reflectNonDefault('') })
|
|
178
|
+
], NLDDButtonGroup.prototype, "width", void 0);
|
|
160
179
|
__decorate([
|
|
161
180
|
query('slot')
|
|
162
181
|
], NLDDButtonGroup.prototype, "_slot", void 0);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"button-group.js","sourceRoot":"","sources":["../../../../src/components/actions/button-group/button-group.ts"],"names":[],"mappings":";;;;;;AAAA
|
|
1
|
+
{"version":3,"file":"button-group.js","sourceRoot":"","sources":["../../../../src/components/actions/button-group/button-group.ts"],"names":[],"mappings":";;;;;;AAAA;;;;;;;;;;;;;;;;;;;;;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,CAAC,CAAC;IAC3B,CAAC;IAEQ,MAAM;QACd,OAAO,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IAC5B,CAAC;;AAtHe,sBAAM,GAAG,iBAAiB,AAApB,CAAqB;AAG3C;IADC,QAAQ,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,iBAAiB,CAAO,IAAI,CAAC,EAAE,CAAC;6CACpD;AAGlB;IADC,QAAQ,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,iBAAiB,CAAc,MAAM,CAAC,EAAE,CAAC;oDAC7C;AAGlC;IADC,QAAQ,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,iBAAiB,CAAQ,EAAE,CAAC,EAAE,CAAC;8CACnD;AAGV;IADP,KAAK,CAAC,MAAM,CAAC;8CACkB;AAbpB,eAAe;IAD3B,aAAa,CAAC,mBAAmB,CAAC;GACtB,eAAe,CAwH3B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"button-group.styles.d.ts","sourceRoot":"","sources":["../../../../src/components/actions/button-group/button-group.styles.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,iBAAiB,
|
|
1
|
+
{"version":3,"file":"button-group.styles.d.ts","sourceRoot":"","sources":["../../../../src/components/actions/button-group/button-group.styles.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,iBAAiB,yBAwI7B,CAAC"}
|
|
@@ -1,28 +1,24 @@
|
|
|
1
1
|
import { css } from 'lit';
|
|
2
2
|
export const buttonGroupStyles = css `
|
|
3
|
-
:host {
|
|
4
|
-
box-sizing: border-box;
|
|
5
|
-
}
|
|
6
3
|
|
|
7
4
|
|
|
8
5
|
/* # Host */
|
|
9
6
|
|
|
10
7
|
:host {
|
|
11
|
-
--_button-group-width: 100%;
|
|
12
8
|
--_button-group-flex-direction: column;
|
|
13
9
|
--_button-group-flex-wrap: nowrap;
|
|
14
10
|
--_button-group-gap: var(--primitives-space-8);
|
|
15
11
|
|
|
12
|
+
box-sizing: border-box;
|
|
16
13
|
display: flex;
|
|
17
14
|
width: 100%;
|
|
18
|
-
justify-content: flex-start;
|
|
19
15
|
}
|
|
20
16
|
|
|
21
17
|
/* Only auto asks its own width a question, so only auto becomes a container.
|
|
22
18
|
A container may not size itself from its contents, and a group pinned to a
|
|
23
19
|
row or a stack would then measure zero in a parent that shrink-wraps, for
|
|
24
|
-
a query it never runs. */
|
|
25
|
-
:host(:not([orientation="horizontal"], [orientation="vertical"])) {
|
|
20
|
+
a query it never runs. width="full" asks what fits instead. */
|
|
21
|
+
:host(:not([orientation="horizontal"], [orientation="vertical"], [width="full"])) {
|
|
26
22
|
container-type: inline-size;
|
|
27
23
|
}
|
|
28
24
|
|
|
@@ -30,6 +26,10 @@ export const buttonGroupStyles = css `
|
|
|
30
26
|
--_button-group-gap: var(--primitives-space-6);
|
|
31
27
|
}
|
|
32
28
|
|
|
29
|
+
:host([hidden]) {
|
|
30
|
+
display: none;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
33
|
/* ## In a row
|
|
34
34
|
The row keeps the full width (like the stack) so full-width children
|
|
35
35
|
can actually stretch; content-sized buttons still sit left within
|
|
@@ -53,8 +53,8 @@ export const buttonGroupStyles = css `
|
|
|
53
53
|
beside it everywhere. */
|
|
54
54
|
|
|
55
55
|
@container (max-width: 30rem) {
|
|
56
|
-
:host(:not([orientation="horizontal"], [orientation="vertical"])) .button-group {
|
|
57
|
-
flex-direction: column;
|
|
56
|
+
:host(:not([orientation="horizontal"], [orientation="vertical"], [width="full"])) .button-group {
|
|
57
|
+
--_button-group-flex-direction: column;
|
|
58
58
|
--context-button-width: 100%;
|
|
59
59
|
}
|
|
60
60
|
|
|
@@ -63,7 +63,7 @@ export const buttonGroupStyles = css `
|
|
|
63
63
|
An icon-only control is the exception: its size is its icon, and a
|
|
64
64
|
full-width bar with one glyph in the middle is not a bigger target for
|
|
65
65
|
the thumb, just a wider one. */
|
|
66
|
-
:host(:not([orientation="horizontal"], [orientation="vertical"])) ::slotted(:not(nldd-icon-button)) {
|
|
66
|
+
:host(:not([orientation="horizontal"], [orientation="vertical"], [width="full"])) ::slotted(:not(nldd-icon-button)) {
|
|
67
67
|
display: block;
|
|
68
68
|
width: 100%;
|
|
69
69
|
}
|
|
@@ -71,11 +71,13 @@ export const buttonGroupStyles = css `
|
|
|
71
71
|
/* align-self as well: a column stretches its items across the full width
|
|
72
72
|
on its own, so without this the icon button is a wide bar regardless of
|
|
73
73
|
the width rule above. */
|
|
74
|
-
:host(:not([orientation="horizontal"], [orientation="vertical"])) ::slotted(nldd-icon-button) {
|
|
74
|
+
:host(:not([orientation="horizontal"], [orientation="vertical"], [width="full"])) ::slotted(nldd-icon-button) {
|
|
75
75
|
align-self: flex-start;
|
|
76
76
|
}
|
|
77
77
|
}
|
|
78
78
|
|
|
79
|
+
/* ## Vertical */
|
|
80
|
+
|
|
79
81
|
:host([orientation="vertical"]) .button-group {
|
|
80
82
|
--context-button-width: 100%;
|
|
81
83
|
}
|
|
@@ -89,14 +91,37 @@ export const buttonGroupStyles = css `
|
|
|
89
91
|
align-self: flex-start;
|
|
90
92
|
}
|
|
91
93
|
|
|
92
|
-
|
|
93
|
-
|
|
94
|
+
/* ## Full width
|
|
95
|
+
Equal shares from zero. With auto no button shrinks below its label (or the
|
|
96
|
+
group), so one that does not fit wraps and fills the next line. */
|
|
97
|
+
|
|
98
|
+
:host([width="full"]:not([orientation="vertical"])) .button-group {
|
|
99
|
+
--context-button-width: 100%;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
:host([width="full"][orientation="horizontal"]) .button-group {
|
|
103
|
+
--_button-group-flex-wrap: nowrap;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
:host([width="full"]:not([orientation="vertical"])) ::slotted(:not(nldd-icon-button)) {
|
|
107
|
+
flex-grow: 1;
|
|
108
|
+
flex-shrink: 1;
|
|
109
|
+
flex-basis: 0;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
:host([width="full"]:not([orientation="horizontal"], [orientation="vertical"])) ::slotted(:not(nldd-icon-button)) {
|
|
113
|
+
min-width: fit-content;
|
|
94
114
|
}
|
|
95
115
|
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
116
|
+
:host([width="full"]) ::slotted(nldd-icon-button) {
|
|
117
|
+
flex-grow: 0;
|
|
118
|
+
flex-shrink: 0;
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
/* The stack rules set display on slotted children at a higher specificity,
|
|
122
|
+
so without !important a hidden or a fourth button still shows. */
|
|
123
|
+
::slotted([hidden]),
|
|
124
|
+
::slotted(:nth-child(n + 4)) {
|
|
100
125
|
display: none !important;
|
|
101
126
|
}
|
|
102
127
|
|
|
@@ -105,7 +130,7 @@ export const buttonGroupStyles = css `
|
|
|
105
130
|
|
|
106
131
|
.button-group {
|
|
107
132
|
display: flex;
|
|
108
|
-
width:
|
|
133
|
+
width: 100%;
|
|
109
134
|
flex-direction: var(--_button-group-flex-direction);
|
|
110
135
|
flex-wrap: var(--_button-group-flex-wrap);
|
|
111
136
|
gap: var(--_button-group-gap);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"button-group.styles.js","sourceRoot":"","sources":["../../../../src/components/actions/button-group/button-group.styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAE1B,MAAM,CAAC,MAAM,iBAAiB,GAAG,GAAG,CAAA
|
|
1
|
+
{"version":3,"file":"button-group.styles.js","sourceRoot":"","sources":["../../../../src/components/actions/button-group/button-group.styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAE1B,MAAM,CAAC,MAAM,iBAAiB,GAAG,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAwInC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"button-group.template.js","sourceRoot":"","sources":["../../../../src/components/actions/button-group/button-group.template.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,KAAK,CAAC;AAG3B,MAAM,UAAU,QAAQ;IACvB,OAAO,IAAI,CAAA;;sBAEU,IAAI,CAAC,
|
|
1
|
+
{"version":3,"file":"button-group.template.js","sourceRoot":"","sources":["../../../../src/components/actions/button-group/button-group.template.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,KAAK,CAAC;AAG3B,MAAM,UAAU,QAAQ;IACvB,OAAO,IAAI,CAAA;;sBAEU,IAAI,CAAC,iBAAiB;;EAE1C,CAAC;AACH,CAAC"}
|
|
@@ -25,6 +25,7 @@
|
|
|
25
25
|
* @attr {string} shortcut-linux - Override of `shortcut` on Linux (falls back to `shortcut`).
|
|
26
26
|
* @attr {string} href - When set, renders an <a> element instead of <button>
|
|
27
27
|
* @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.
|
|
28
|
+
* @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.
|
|
28
29
|
* @attr {string} rel - Link rel attribute, used with href; with target '_blank', 'noopener noreferrer' is added to whatever you set
|
|
29
30
|
* @attr {object} translations - Override translation keys (e.g. the "opens in new tab" announcement); unset keys fall back to Dutch.
|
|
30
31
|
* @attr {string} popovertarget - ID of a popover element to toggle; forwarded to the inner <button>
|
|
@@ -35,6 +36,8 @@
|
|
|
35
36
|
* @example
|
|
36
37
|
* ```html
|
|
37
38
|
* <nldd-icon-button
|
|
39
|
+
* href="/aanvraag-a-1042.pdf"
|
|
40
|
+
* download
|
|
38
41
|
* text="Download"
|
|
39
42
|
* icon="download"
|
|
40
43
|
* ></nldd-icon-button>
|
|
@@ -55,8 +58,9 @@ declare const NLDDIconButton_base: (abstract new (...args: any[]) => LitElement
|
|
|
55
58
|
'components.icon-button.link-hint-new-tab-lowercase-label': string;
|
|
56
59
|
'components.icon-button.link-hint-external-lowercase-label': string;
|
|
57
60
|
'components.icon-button.link-hint-external-new-tab-lowercase-label': string;
|
|
61
|
+
'components.icon-button.link-hint-download-lowercase-label': string;
|
|
58
62
|
}>;
|
|
59
|
-
_t(key: "components.icon-button.link-hint-new-tab-lowercase-label" | "components.icon-button.link-hint-external-lowercase-label" | "components.icon-button.link-hint-external-new-tab-lowercase-label", vars?: Record<string, string | number>): string;
|
|
63
|
+
_t(key: "components.icon-button.link-hint-new-tab-lowercase-label" | "components.icon-button.link-hint-external-lowercase-label" | "components.icon-button.link-hint-external-new-tab-lowercase-label" | "components.icon-button.link-hint-download-lowercase-label", vars?: Record<string, string | number>): string;
|
|
60
64
|
}) & typeof LitElement;
|
|
61
65
|
export declare class NLDDIconButton extends NLDDIconButton_base {
|
|
62
66
|
static styles: import("lit").CSSResult;
|
|
@@ -134,6 +138,9 @@ export declare class NLDDIconButton extends NLDDIconButton_base {
|
|
|
134
138
|
href: string | undefined;
|
|
135
139
|
/** Link target (e.g. '_blank'). Only used when href is set. */
|
|
136
140
|
target: string | undefined;
|
|
141
|
+
/** Saves the file instead of opening it; only used when href is set. Empty
|
|
142
|
+
* for the name from the URL, a name to save it under. */
|
|
143
|
+
download: string | undefined;
|
|
137
144
|
/**
|
|
138
145
|
* Link rel attribute. Only used when href is set.
|
|
139
146
|
* With target '_blank', 'noopener noreferrer' is added to it.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"icon-button.d.ts","sourceRoot":"","sources":["../../../../src/components/actions/icon-button/icon-button.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"icon-button.d.ts","sourceRoot":"","sources":["../../../../src/components/actions/icon-button/icon-button.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8CG;AACH,OAAO,EAAE,UAAU,EAAE,MAAM,KAAK,CAAC;AAOjC,OAAO,EAAE,qBAAqB,EAAE,MAAM,+CAA+C,CAAC;AAEtF,OAAO,8BAA8B,CAAC;AACtC,OAAO,sEAAsE,CAAC;AAE9E,MAAM,MAAM,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;AAC7C,MAAM,MAAM,UAAU,GACnB,SAAS,GACT,WAAW,GACX,aAAa,GACb,eAAe,GACf,oBAAoB,GACpB,gBAAgB,GAChB,cAAc,GACd,qBAAqB,GACrB,iBAAiB,GACjB,sBAAsB,GACtB,gBAAgB,GAChB,gBAAgB,CAAC;AACpB,MAAM,MAAM,UAAU,GAAG,QAAQ,GAAG,QAAQ,GAAG,OAAO,CAAC;AACvD,MAAM,MAAM,SAAS,GAAG,MAAM,GAAG,SAAS,GAAG,QAAQ,GAAG,MAAM,GAAG,MAAM,CAAC;;;;;;;;;;AAExE,qBACa,cAAe,SAAQ,mBAAwD;IAC3F,OAAgB,MAAM,0BAAoB;IAK1C,MAAM,CAAC,cAAc,UAAQ;IAC7B,OAAO,CAAC,UAAU,CAA0B;IAG5C,UAAU,EAAE,UAAU,CAAoB;IAG1C,IAAI,EAAE,IAAI,CAAQ;IAElB,iFAAiF;IAEjF,UAAU,UAAS;IAEnB;;;;;;;;OAQG;IAEH,OAAO,UAAS;IAEhB,4GAA4G;IAE5G,WAAW,SAAM;IAGjB,QAAQ,UAAS;IAEjB,mHAAmH;IAEnH,iBAAiB,UAAS;IAG1B,IAAI,EAAE,UAAU,CAAY;IAG5B,UAAU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AAM;CAGf;AAED,OAAO,CAAC,MAAM,CAAC;IACd,UAAU,qBAAqB;QAC9B,kBAAkB,EAAE,cAAc,CAAC;KACnC;CACD"}
|
|
@@ -2,6 +2,7 @@ export declare const nlddIconButtonTranslations: {
|
|
|
2
2
|
'components.icon-button.link-hint-new-tab-lowercase-label': string;
|
|
3
3
|
'components.icon-button.link-hint-external-lowercase-label': string;
|
|
4
4
|
'components.icon-button.link-hint-external-new-tab-lowercase-label': string;
|
|
5
|
+
'components.icon-button.link-hint-download-lowercase-label': string;
|
|
5
6
|
};
|
|
6
7
|
export type NLDDIconButtonTranslations = typeof nlddIconButtonTranslations;
|
|
7
8
|
//# sourceMappingURL=icon-button.i18n.d.ts.map
|