@nldd/design-system 0.8.100 → 0.10.0
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 +464 -35
- package/dist/assets/styles/breakpoints.d.ts +32 -0
- package/dist/assets/styles/breakpoints.d.ts.map +1 -1
- package/dist/assets/styles/breakpoints.js +36 -0
- package/dist/assets/styles/breakpoints.js.map +1 -1
- package/dist/components/actions/button/button.d.ts +5 -3
- package/dist/components/actions/button/button.d.ts.map +1 -1
- package/dist/components/actions/button/button.i18n.d.ts +3 -1
- package/dist/components/actions/button/button.i18n.d.ts.map +1 -1
- package/dist/components/actions/button/button.i18n.js +3 -1
- package/dist/components/actions/button/button.i18n.js.map +1 -1
- package/dist/components/actions/button/button.js +1 -1
- package/dist/components/actions/button/button.styles.js +2 -2
- package/dist/components/actions/button/button.template.d.ts.map +1 -1
- package/dist/components/actions/button/button.template.js +9 -10
- package/dist/components/actions/button/button.template.js.map +1 -1
- package/dist/components/actions/button-group/button-group.styles.js +2 -2
- package/dist/components/actions/button-group/button-group.styles.js.map +1 -1
- package/dist/components/actions/icon-button/icon-button.d.ts +5 -3
- package/dist/components/actions/icon-button/icon-button.d.ts.map +1 -1
- package/dist/components/actions/icon-button/icon-button.i18n.d.ts +3 -1
- package/dist/components/actions/icon-button/icon-button.i18n.d.ts.map +1 -1
- package/dist/components/actions/icon-button/icon-button.i18n.js +3 -1
- package/dist/components/actions/icon-button/icon-button.i18n.js.map +1 -1
- package/dist/components/actions/icon-button/icon-button.js +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 +7 -7
- package/dist/components/actions/icon-button/icon-button.template.js.map +1 -1
- package/dist/components/actions/menu/menu.js +2 -2
- package/dist/components/actions/menu/menu.js.map +1 -1
- package/dist/components/actions/menu/menu.styles.js +2 -2
- package/dist/components/actions/toolbar/toolbar.d.ts +1 -1
- package/dist/components/actions/toolbar/toolbar.i18n.d.ts +3 -1
- package/dist/components/actions/toolbar/toolbar.i18n.d.ts.map +1 -1
- package/dist/components/actions/toolbar/toolbar.i18n.js +3 -1
- package/dist/components/actions/toolbar/toolbar.i18n.js.map +1 -1
- package/dist/components/actions/toolbar/toolbar.js +1 -1
- package/dist/components/actions/toolbar/toolbar.styles.js +1 -1
- package/dist/components/actions/toolbar/toolbar.template.d.ts.map +1 -1
- package/dist/components/actions/toolbar/toolbar.template.js +4 -2
- package/dist/components/actions/toolbar/toolbar.template.js.map +1 -1
- package/dist/components/breakpoints-Bpf2MgjM.js +39 -0
- package/dist/components/components.js +797 -579
- package/dist/components/content/avatar/avatar.d.ts +5 -3
- package/dist/components/content/avatar/avatar.d.ts.map +1 -1
- package/dist/components/content/avatar/avatar.i18n.d.ts +3 -1
- package/dist/components/content/avatar/avatar.i18n.d.ts.map +1 -1
- package/dist/components/content/avatar/avatar.i18n.js +3 -1
- package/dist/components/content/avatar/avatar.i18n.js.map +1 -1
- package/dist/components/content/avatar/avatar.js +1 -1
- package/dist/components/content/avatar/avatar.template.d.ts.map +1 -1
- package/dist/components/content/avatar/avatar.template.js +6 -6
- package/dist/components/content/avatar/avatar.template.js.map +1 -1
- package/dist/components/content/blockquote/blockquote.styles.js +2 -2
- package/dist/components/content/blockquote/blockquote.styles.js.map +1 -1
- package/dist/components/content/code-viewer/code-viewer.styles.js +3 -3
- package/dist/components/content/identity/identity.styles.js +2 -2
- package/dist/components/content/identity/identity.styles.js.map +1 -1
- package/dist/components/content/image/image.styles.js +1 -1
- package/dist/components/content/image/lqip-encoder-element.js +1 -1
- package/dist/components/content/title/title.styles.js +5 -5
- package/dist/components/content/title/title.styles.js.map +1 -1
- package/dist/components/forms/form-actions/form-actions.styles.js +2 -2
- package/dist/components/forms/form-actions/form-actions.styles.js.map +1 -1
- package/dist/components/forms/form-field/form-field.styles.js +2 -2
- package/dist/components/forms/form-field/form-field.styles.js.map +1 -1
- package/dist/components/{icon-button-BtU8DX64.js → icon-button-BVhiOwX9.js} +10 -5
- package/dist/components/inputs/checkbox/checkbox.d.ts +8 -0
- package/dist/components/inputs/checkbox/checkbox.d.ts.map +1 -1
- package/dist/components/inputs/checkbox/checkbox.js +11 -0
- package/dist/components/inputs/checkbox/checkbox.js.map +1 -1
- package/dist/components/inputs/checkbox/checkbox.styles.d.ts.map +1 -1
- package/dist/components/inputs/checkbox/checkbox.styles.js +36 -9
- package/dist/components/inputs/checkbox/checkbox.styles.js.map +1 -1
- package/dist/components/inputs/checkbox-field/checkbox-field.d.ts +3 -0
- package/dist/components/inputs/checkbox-field/checkbox-field.d.ts.map +1 -1
- package/dist/components/inputs/checkbox-field/checkbox-field.js +6 -0
- package/dist/components/inputs/checkbox-field/checkbox-field.js.map +1 -1
- package/dist/components/inputs/checkbox-field/checkbox-field.styles.d.ts.map +1 -1
- package/dist/components/inputs/checkbox-field/checkbox-field.styles.js +7 -0
- package/dist/components/inputs/checkbox-field/checkbox-field.styles.js.map +1 -1
- package/dist/components/inputs/checkbox-field/checkbox-field.template.d.ts.map +1 -1
- package/dist/components/inputs/checkbox-field/checkbox-field.template.js +1 -0
- package/dist/components/inputs/checkbox-field/checkbox-field.template.js.map +1 -1
- package/dist/components/inputs/date-field/date-field.styles.js +2 -2
- package/dist/components/inputs/date-field/date-field.styles.js.map +1 -1
- package/dist/components/inputs/date-picker/date-picker.js +2 -2
- package/dist/components/inputs/date-picker/date-picker.js.map +1 -1
- package/dist/components/inputs/date-picker/date-picker.styles.js +3 -3
- package/dist/components/inputs/file-field/file-field.styles.js +2 -2
- package/dist/components/inputs/radio-button/radio-button.d.ts +8 -0
- package/dist/components/inputs/radio-button/radio-button.d.ts.map +1 -1
- package/dist/components/inputs/radio-button/radio-button.js +11 -0
- package/dist/components/inputs/radio-button/radio-button.js.map +1 -1
- package/dist/components/inputs/radio-button/radio-button.styles.d.ts.map +1 -1
- package/dist/components/inputs/radio-button/radio-button.styles.js +28 -9
- package/dist/components/inputs/radio-button/radio-button.styles.js.map +1 -1
- package/dist/components/inputs/radio-button-field/radio-button-field.d.ts +3 -0
- package/dist/components/inputs/radio-button-field/radio-button-field.d.ts.map +1 -1
- package/dist/components/inputs/radio-button-field/radio-button-field.js +6 -0
- package/dist/components/inputs/radio-button-field/radio-button-field.js.map +1 -1
- package/dist/components/inputs/radio-button-field/radio-button-field.styles.d.ts.map +1 -1
- package/dist/components/inputs/radio-button-field/radio-button-field.styles.js +7 -0
- package/dist/components/inputs/radio-button-field/radio-button-field.styles.js.map +1 -1
- package/dist/components/inputs/radio-button-field/radio-button-field.template.d.ts.map +1 -1
- package/dist/components/inputs/radio-button-field/radio-button-field.template.js +2 -1
- package/dist/components/inputs/radio-button-field/radio-button-field.template.js.map +1 -1
- package/dist/components/inputs/switch/switch.d.ts +8 -0
- package/dist/components/inputs/switch/switch.d.ts.map +1 -1
- package/dist/components/inputs/switch/switch.js +11 -0
- package/dist/components/inputs/switch/switch.js.map +1 -1
- package/dist/components/inputs/switch/switch.styles.d.ts.map +1 -1
- package/dist/components/inputs/switch/switch.styles.js +14 -2
- package/dist/components/inputs/switch/switch.styles.js.map +1 -1
- package/dist/components/inputs/switch-field/switch-field.d.ts +3 -0
- package/dist/components/inputs/switch-field/switch-field.d.ts.map +1 -1
- package/dist/components/inputs/switch-field/switch-field.js +7 -0
- package/dist/components/inputs/switch-field/switch-field.js.map +1 -1
- package/dist/components/inputs/switch-field/switch-field.styles.d.ts.map +1 -1
- package/dist/components/inputs/switch-field/switch-field.styles.js +7 -0
- package/dist/components/inputs/switch-field/switch-field.styles.js.map +1 -1
- package/dist/components/inputs/switch-field/switch-field.template.d.ts.map +1 -1
- package/dist/components/inputs/switch-field/switch-field.template.js +1 -0
- package/dist/components/inputs/switch-field/switch-field.template.js.map +1 -1
- package/dist/components/inputs/text-editor/text-editor.mentions.js +2 -2
- package/dist/components/inputs/text-editor/text-editor.mentions.js.map +1 -1
- package/dist/components/inputs/text-editor/text-editor.styles.js +7 -7
- package/dist/components/inputs/time-field/time-field.styles.js +2 -2
- package/dist/components/inputs/time-field/time-field.styles.js.map +1 -1
- package/dist/components/inputs/time-picker/time-picker.styles.js +2 -2
- package/dist/components/layout/box/box.d.ts +4 -2
- package/dist/components/layout/box/box.d.ts.map +1 -1
- package/dist/components/layout/box/box.js +3 -1
- package/dist/components/layout/box/box.js.map +1 -1
- package/dist/components/layout/box/box.styles.d.ts.map +1 -1
- package/dist/components/layout/box/box.styles.js +10 -5
- package/dist/components/layout/box/box.styles.js.map +1 -1
- package/dist/components/layout/card/card.d.ts +8 -6
- package/dist/components/layout/card/card.d.ts.map +1 -1
- package/dist/components/layout/card/card.i18n.d.ts +3 -1
- package/dist/components/layout/card/card.i18n.d.ts.map +1 -1
- package/dist/components/layout/card/card.i18n.js +3 -1
- package/dist/components/layout/card/card.i18n.js.map +1 -1
- package/dist/components/layout/card/card.js +3 -3
- package/dist/components/layout/card/card.styles.d.ts.map +1 -1
- package/dist/components/layout/card/card.styles.js +12 -3
- package/dist/components/layout/card/card.styles.js.map +1 -1
- package/dist/components/layout/card/card.template.d.ts.map +1 -1
- package/dist/components/layout/card/card.template.js +6 -6
- package/dist/components/layout/card/card.template.js.map +1 -1
- package/dist/components/layout/collection/collection.d.ts +6 -0
- package/dist/components/layout/collection/collection.d.ts.map +1 -1
- package/dist/components/layout/collection/collection.js +6 -0
- package/dist/components/layout/collection/collection.js.map +1 -1
- package/dist/components/layout/collection/collection.styles.js +5 -5
- package/dist/components/layout/collection/collection.styles.js.map +1 -1
- package/dist/components/layout/container/container.styles.js +5 -5
- package/dist/components/layout/container/container.styles.js.map +1 -1
- package/dist/components/layout/page-footer/page-footer.styles.js +5 -5
- package/dist/components/layout/page-footer/page-footer.styles.js.map +1 -1
- package/dist/components/layout/page-sections/full-bleed-section/full-bleed-section.d.ts +1 -1
- package/dist/components/layout/page-sections/full-bleed-section/full-bleed-section.js +1 -1
- package/dist/components/layout/page-sections/full-bleed-section/full-bleed-section.styles.js +5 -5
- package/dist/components/layout/page-sections/full-bleed-section/full-bleed-section.styles.js.map +1 -1
- package/dist/components/layout/page-sections/hero/hero-corner.d.ts +9 -0
- package/dist/components/layout/page-sections/hero/hero-corner.d.ts.map +1 -1
- package/dist/components/layout/page-sections/hero/hero-corner.js +29 -1
- package/dist/components/layout/page-sections/hero/hero-corner.js.map +1 -1
- package/dist/components/layout/page-sections/hero/hero-corner.styles.d.ts.map +1 -1
- package/dist/components/layout/page-sections/hero/hero-corner.styles.js +25 -18
- package/dist/components/layout/page-sections/hero/hero-corner.styles.js.map +1 -1
- package/dist/components/layout/page-sections/hero/hero.d.ts +22 -16
- package/dist/components/layout/page-sections/hero/hero.d.ts.map +1 -1
- package/dist/components/layout/page-sections/hero/hero.js +51 -16
- package/dist/components/layout/page-sections/hero/hero.js.map +1 -1
- package/dist/components/layout/page-sections/hero/hero.styles.d.ts.map +1 -1
- package/dist/components/layout/page-sections/hero/hero.styles.js +8 -98
- package/dist/components/layout/page-sections/hero/hero.styles.js.map +1 -1
- package/dist/components/layout/page-sections/one-half-one-half-section/one-half-one-half-section.d.ts +1 -1
- package/dist/components/layout/page-sections/one-half-one-half-section/one-half-one-half-section.js +1 -1
- package/dist/components/layout/page-sections/one-half-one-half-section/one-half-one-half-section.styles.js +5 -5
- package/dist/components/layout/page-sections/one-half-one-half-section/one-half-one-half-section.styles.js.map +1 -1
- package/dist/components/layout/page-sections/one-third-two-thirds-section/one-third-two-thirds-section.d.ts +1 -1
- package/dist/components/layout/page-sections/one-third-two-thirds-section/one-third-two-thirds-section.js +1 -1
- package/dist/components/layout/page-sections/one-third-two-thirds-section/one-third-two-thirds-section.styles.js +8 -8
- package/dist/components/layout/page-sections/one-third-two-thirds-section/one-third-two-thirds-section.styles.js.map +1 -1
- package/dist/components/layout/page-sections/page-section-controls.js +2 -2
- package/dist/components/layout/page-sections/page-section-controls.js.map +1 -1
- package/dist/components/layout/page-sections/sidebar-section/sidebar-section.d.ts +16 -1
- package/dist/components/layout/page-sections/sidebar-section/sidebar-section.d.ts.map +1 -1
- package/dist/components/layout/page-sections/sidebar-section/sidebar-section.js +63 -4
- package/dist/components/layout/page-sections/sidebar-section/sidebar-section.js.map +1 -1
- package/dist/components/layout/page-sections/sidebar-section/sidebar-section.styles.js +6 -6
- package/dist/components/layout/page-sections/sidebar-section/sidebar-section.styles.js.map +1 -1
- package/dist/components/layout/page-sections/simple-section/simple-section.d.ts +1 -1
- package/dist/components/layout/page-sections/simple-section/simple-section.js +1 -1
- package/dist/components/layout/page-sections/simple-section/simple-section.styles.js +5 -5
- package/dist/components/layout/page-sections/simple-section/simple-section.styles.js.map +1 -1
- package/dist/components/layout/page-sections/two-thirds-one-third-section/two-thirds-one-third-section.d.ts +1 -1
- package/dist/components/layout/page-sections/two-thirds-one-third-section/two-thirds-one-third-section.js +1 -1
- package/dist/components/layout/page-sections/two-thirds-one-third-section/two-thirds-one-third-section.styles.js +8 -8
- package/dist/components/layout/page-sections/two-thirds-one-third-section/two-thirds-one-third-section.styles.js.map +1 -1
- package/dist/components/layout/popover/popover.js +2 -2
- package/dist/components/layout/popover/popover.js.map +1 -1
- package/dist/components/layout/popover/popover.styles.js +3 -3
- package/dist/components/layout/popover/popover.styles.js.map +1 -1
- package/dist/components/layout/sheet/sheet.styles.js +4 -4
- package/dist/components/layout/sheet/sheet.styles.js.map +1 -1
- package/dist/components/layout/spacer/spacer.styles.js +5 -5
- package/dist/components/layout/spacer/spacer.styles.js.map +1 -1
- package/dist/components/layout/split-views/bar-split-view/bar-split-view.d.ts.map +1 -1
- package/dist/components/layout/split-views/bar-split-view/bar-split-view.js +4 -5
- package/dist/components/layout/split-views/bar-split-view/bar-split-view.js.map +1 -1
- package/dist/components/layout/split-views/navigation-split-view/navigation-split-view.styles.js +5 -5
- package/dist/components/layout/split-views/navigation-split-view/navigation-split-view.styles.js.map +1 -1
- package/dist/components/layout/split-views/split-view-pane/split-view-pane.styles.js +2 -2
- package/dist/components/layout/split-views/split-view-pane/split-view-pane.styles.js.map +1 -1
- package/dist/components/lists-and-tables/cells/step-cell/step-cell.d.ts +5 -0
- package/dist/components/lists-and-tables/cells/step-cell/step-cell.d.ts.map +1 -1
- package/dist/components/lists-and-tables/cells/step-cell/step-cell.js +25 -0
- package/dist/components/lists-and-tables/cells/step-cell/step-cell.js.map +1 -1
- package/dist/components/lists-and-tables/cells/step-cell/step-cell.styles.d.ts.map +1 -1
- package/dist/components/lists-and-tables/cells/step-cell/step-cell.styles.js +28 -7
- package/dist/components/lists-and-tables/cells/step-cell/step-cell.styles.js.map +1 -1
- package/dist/components/lists-and-tables/cells/step-cell/step-cell.template.d.ts.map +1 -1
- package/dist/components/lists-and-tables/cells/step-cell/step-cell.template.js +8 -4
- package/dist/components/lists-and-tables/cells/step-cell/step-cell.template.js.map +1 -1
- package/dist/components/lists-and-tables/list/list.d.ts +5 -2
- package/dist/components/lists-and-tables/list/list.d.ts.map +1 -1
- package/dist/components/lists-and-tables/list/list.js +9 -4
- package/dist/components/lists-and-tables/list/list.js.map +1 -1
- package/dist/components/lists-and-tables/list/list.styles.js +2 -2
- package/dist/components/lists-and-tables/list-item/list-item.d.ts +13 -6
- 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 +3 -1
- 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 +3 -1
- 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 +16 -8
- package/dist/components/lists-and-tables/list-item/list-item.js.map +1 -1
- package/dist/components/lists-and-tables/list-item/list-item.styles.d.ts.map +1 -1
- package/dist/components/lists-and-tables/list-item/list-item.styles.js +7 -1
- package/dist/components/lists-and-tables/list-item/list-item.styles.js.map +1 -1
- package/dist/components/lists-and-tables/list-item/list-item.template.d.ts +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 +9 -2
- 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 +11 -2
- 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 +7 -0
- package/dist/components/lists-and-tables/list-item-segment/list-item-segment.i18n.d.ts.map +1 -0
- package/dist/components/lists-and-tables/list-item-segment/list-item-segment.i18n.js +6 -0
- package/dist/components/lists-and-tables/list-item-segment/list-item-segment.i18n.js.map +1 -0
- package/dist/components/lists-and-tables/list-item-segment/list-item-segment.js +7 -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.styles.d.ts.map +1 -1
- package/dist/components/lists-and-tables/list-item-segment/list-item-segment.styles.js +12 -0
- package/dist/components/lists-and-tables/list-item-segment/list-item-segment.styles.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 +6 -3
- package/dist/components/lists-and-tables/list-item-segment/list-item-segment.template.js.map +1 -1
- package/dist/components/lists-and-tables/table/table.d.ts.map +1 -1
- package/dist/components/lists-and-tables/table/table.js +4 -7
- package/dist/components/lists-and-tables/table/table.js.map +1 -1
- package/dist/components/lists-and-tables/table/table.styles.js +2 -2
- package/dist/components/navigation/document-tab-bar/document-tab-bar.styles.js +2 -2
- package/dist/components/navigation/link/link.d.ts +6 -4
- package/dist/components/navigation/link/link.d.ts.map +1 -1
- package/dist/components/navigation/link/link.i18n.d.ts +3 -1
- package/dist/components/navigation/link/link.i18n.d.ts.map +1 -1
- package/dist/components/navigation/link/link.i18n.js +3 -1
- package/dist/components/navigation/link/link.i18n.js.map +1 -1
- package/dist/components/navigation/link/link.js +2 -2
- package/dist/components/navigation/link/link.styles.js +2 -2
- package/dist/components/navigation/link/link.template.d.ts.map +1 -1
- package/dist/components/navigation/link/link.template.js +7 -8
- package/dist/components/navigation/link/link.template.js.map +1 -1
- package/dist/components/navigation/menu-bar-item/menu-bar-item.styles.js +1 -1
- package/dist/components/navigation/pagination/pagination.styles.js +2 -2
- package/dist/components/navigation/skip-link/skip-link.d.ts +1 -14
- package/dist/components/navigation/skip-link/skip-link.d.ts.map +1 -1
- package/dist/components/navigation/skip-link/skip-link.js +7 -55
- package/dist/components/navigation/skip-link/skip-link.js.map +1 -1
- package/dist/components/navigation/tab-bar/tab-bar.styles.js +9 -9
- package/dist/components/navigation/top-navigation-bar/top-navigation-bar.js +2 -2
- package/dist/components/navigation/top-navigation-bar/top-navigation-bar.js.map +1 -1
- 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 +14 -9
- package/dist/components/navigation/top-navigation-bar/top-navigation-bar.styles.js.map +1 -1
- package/dist/components/status-and-feedback/badge/badge.d.ts +3 -2
- package/dist/components/status-and-feedback/badge/badge.d.ts.map +1 -1
- package/dist/components/status-and-feedback/badge/badge.js +13 -1
- package/dist/components/status-and-feedback/badge/badge.js.map +1 -1
- package/dist/components/status-and-feedback/badge/badge.styles.d.ts.map +1 -1
- package/dist/components/status-and-feedback/badge/badge.styles.js +18 -125
- package/dist/components/status-and-feedback/badge/badge.styles.js.map +1 -1
- package/dist/components/status-and-feedback/banner/banner.styles.js +15 -15
- package/dist/components/status-and-feedback/modal-dialog/modal-dialog.styles.js +2 -2
- package/dist/components/status-and-feedback/modal-dialog/modal-dialog.styles.js.map +1 -1
- package/dist/components/status-and-feedback/notification/notification.styles.js +2 -2
- package/dist/components/status-and-feedback/notification/notification.styles.js.map +1 -1
- package/dist/components/status-and-feedback/progress-bar/progress-bar.d.ts +1 -1
- package/dist/components/status-and-feedback/progress-bar/progress-bar.js +1 -1
- package/dist/components/status-and-feedback/progress-bar/progress-bar.styles.js +2 -2
- package/dist/components/status-and-feedback/progress-circle/progress-circle.d.ts +1 -1
- package/dist/components/status-and-feedback/progress-circle/progress-circle.js +1 -1
- package/dist/components/status-and-feedback/status-bar/status-bar.styles.js +14 -14
- package/dist/components/status-and-feedback/step-bar/step-bar.styles.js +2 -2
- package/dist/components/status-and-feedback/step-bar/step-bar.styles.js.map +1 -1
- package/dist/components/{visibility-mixin-Crbt8PFP.js → visibility-mixin-djNSG5ZN.js} +5 -5
- package/dist/components/{with-translations-C8_0-9y8.js → with-translations-C6QfP6_S.js} +24 -1
- package/dist/css/rich-text.css +11 -11
- package/dist/css/themes/bruin.css +182 -0
- package/dist/css/themes/donkerblauw.css +182 -0
- package/dist/css/themes/donkerbruin.css +182 -0
- package/dist/css/themes/donkergeel.css +208 -0
- package/dist/css/themes/donkergroen.css +182 -0
- package/dist/css/themes/geel.css +208 -0
- package/dist/css/themes/groen.css +182 -0
- package/dist/css/themes/hemelblauw.css +182 -0
- package/dist/css/themes/lichtblauw.css +182 -0
- package/dist/css/themes/mintgroen.css +182 -0
- package/dist/css/themes/mosgroen.css +182 -0
- package/dist/css/themes/oranje.css +196 -0
- package/dist/css/themes/paars.css +182 -0
- package/dist/css/themes/robijnrood.css +196 -0
- package/dist/css/themes/rood.css +196 -0
- package/dist/css/themes/roze.css +182 -0
- package/dist/css/themes/violet.css +182 -0
- package/dist/css/themes.css +3092 -0
- package/dist/css/variables.css +97 -132
- package/dist/favicon/bruin/favicon.svg +5 -0
- package/dist/favicon/bruin/touch-icon.png +0 -0
- package/dist/favicon/donkerblauw/favicon.svg +5 -0
- package/dist/favicon/donkerblauw/touch-icon.png +0 -0
- package/dist/favicon/donkerbruin/favicon.svg +5 -0
- package/dist/favicon/donkerbruin/touch-icon.png +0 -0
- package/dist/favicon/donkergeel/favicon.svg +5 -0
- package/dist/favicon/donkergeel/touch-icon.png +0 -0
- package/dist/favicon/donkergroen/favicon.svg +5 -0
- package/dist/favicon/donkergroen/touch-icon.png +0 -0
- package/dist/favicon/geel/favicon.svg +5 -0
- package/dist/favicon/geel/touch-icon.png +0 -0
- package/dist/favicon/groen/favicon.svg +5 -0
- package/dist/favicon/groen/touch-icon.png +0 -0
- package/dist/favicon/hemelblauw/favicon.svg +5 -0
- package/dist/favicon/hemelblauw/touch-icon.png +0 -0
- package/dist/favicon/lichtblauw/favicon.svg +5 -0
- package/dist/favicon/lichtblauw/touch-icon.png +0 -0
- package/dist/favicon/mintgroen/favicon.svg +5 -0
- package/dist/favicon/mintgroen/touch-icon.png +0 -0
- package/dist/favicon/mosgroen/favicon.svg +5 -0
- package/dist/favicon/mosgroen/touch-icon.png +0 -0
- package/dist/favicon/oranje/favicon.svg +5 -0
- package/dist/favicon/oranje/touch-icon.png +0 -0
- package/dist/favicon/paars/favicon.svg +5 -0
- package/dist/favicon/paars/touch-icon.png +0 -0
- package/dist/favicon/robijnrood/favicon.svg +5 -0
- package/dist/favicon/robijnrood/touch-icon.png +0 -0
- package/dist/favicon/rood/favicon.svg +5 -0
- package/dist/favicon/rood/touch-icon.png +0 -0
- package/dist/favicon/roze/favicon.svg +5 -0
- package/dist/favicon/roze/touch-icon.png +0 -0
- package/dist/favicon/violet/favicon.svg +5 -0
- package/dist/favicon/violet/touch-icon.png +0 -0
- package/dist/nldd.min.js +989 -1033
- package/dist/translations/en-US.d.ts.map +1 -1
- package/dist/translations/en-US.js +24 -7
- package/dist/translations/en-US.js.map +1 -1
- package/dist/translations/fy.d.ts.map +1 -1
- package/dist/translations/fy.js +24 -7
- package/dist/translations/fy.js.map +1 -1
- package/dist/translations/nl.generated.d.ts +24 -7
- package/dist/translations/nl.generated.d.ts.map +1 -1
- package/dist/translations/nl.generated.js +2 -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 +24 -7
- 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 +24 -7
- package/dist/translations/pap-CW.js.map +1 -1
- package/dist/types/vue.d.ts +59 -33
- package/dist/utilities/focus-target.d.ts +23 -0
- package/dist/utilities/focus-target.d.ts.map +1 -0
- package/dist/utilities/focus-target.js +70 -0
- package/dist/utilities/focus-target.js.map +1 -0
- package/dist/utilities/link-hint.d.ts +18 -0
- package/dist/utilities/link-hint.d.ts.map +1 -0
- package/dist/utilities/link-hint.js +29 -0
- package/dist/utilities/link-hint.js.map +1 -0
- package/dist/utilities/page-section-mixin.d.ts +4 -3
- package/dist/utilities/page-section-mixin.d.ts.map +1 -1
- package/dist/utilities/page-section-mixin.js +6 -4
- package/dist/utilities/page-section-mixin.js.map +1 -1
- package/dist/utilities/visibility-mixin.styles.js +5 -5
- package/dist/utilities/visibility-mixin.styles.js.map +1 -1
- package/package.json +12 -7
- package/dist/components/breakpoints-CkxsiRgH.js +0 -10
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-D7D4PA-g.js";
|
|
2
2
|
import { n as slottedReset, t as inheritedTextReset } from "./shadow-resets-CPa58rmc.js";
|
|
3
|
-
import {
|
|
3
|
+
import { a as linkRel, i as linkHintKey, n as setTranslations, r as translate, t as withTranslations } from "./with-translations-C6QfP6_S.js";
|
|
4
4
|
import { t as __decorate } from "./decorate-CO88j7Lc.js";
|
|
5
5
|
import { t as reflectNonDefault } from "./reflect-non-default-OLaK60rT.js";
|
|
6
|
-
import { i as PopupAnchorController, n as NLDDTooltip, r as NLDDActivityIndicator, t as NLDDIconButton } from "./icon-button-
|
|
6
|
+
import { i as PopupAnchorController, n as NLDDTooltip, r as NLDDActivityIndicator, t as NLDDIconButton } from "./icon-button-BVhiOwX9.js";
|
|
7
7
|
import { t as NLDDIcon } from "./icon-D_ZGezHx.js";
|
|
8
8
|
import { n as isPointerMode, r as isTouchMode, t as isKeyboardMode } from "./input-modality-DhTeUxKi.js";
|
|
9
|
-
import { t as
|
|
10
|
-
import { t as VisibilityMixin } from "./visibility-mixin-
|
|
9
|
+
import { n as queryBreakpoints, r as rootFontSize, t as breakpointPx } from "./breakpoints-Bpf2MgjM.js";
|
|
10
|
+
import { t as VisibilityMixin } from "./visibility-mixin-djNSG5ZN.js";
|
|
11
11
|
import { $ as layer, A as syntaxTree, B as Tree, C as indentNodeProp, Ct as countColumn, D as matchBrackets, E as languageDataProp, F as NodeProp, G as RectangleMarker, H as Decoration, I as NodeSet, J as drawSelection, K as ViewPlugin, L as NodeType, M as styleTags, N as tags, Q as keymap, S as getIndentation, St as combineConfig, T as indentUnit, U as Direction, V as parseMixed, W as EditorView, X as getDrawSelectionConfig, Y as dropCursor, _t as StateField, a as HighlightStyle, at as Annotation, b as foldService, c as Language, ct as Compartment, d as ParseContext, dt as Facet, et as lineNumbers, f as StreamLanguage, gt as StateEffect, h as defineLanguageFacet, it as tooltips, j as Tag, k as syntaxHighlighting, l as LanguageDescription, lt as EditorSelection, mt as RangeSetBuilder, nt as placeholder, o as IndentContext, ot as ChangeDesc, pt as Prec, q as WidgetType, rt as showTooltip, st as ChangeSet, u as LanguageSupport, ut as EditorState, vt as Text, w as indentString, wt as findClusterBreak, x as getIndentUnit, y as foldNodeProp, yt as Transaction, z as Parser } from "./dist-Bud_7w5g.js";
|
|
12
12
|
import { i as completionStatus, n as autocompletion, s as startCompletion, t as CompletionContext } from "./dist-DkqAbJH8.js";
|
|
13
13
|
import { n as html$2, r as htmlCompletionSource } from "./dist-CaxHkqR2.js";
|
|
@@ -547,9 +547,9 @@ var buttonStyles = css`
|
|
|
547
547
|
color: var(--_button-is-active-secondary-content-color);
|
|
548
548
|
}
|
|
549
549
|
|
|
550
|
-
/* Visually-hidden
|
|
550
|
+
/* Visually-hidden link hint (another website, a new tab);
|
|
551
551
|
part of the link's accessible name but never shown. Standard recipe. */
|
|
552
|
-
.
|
|
552
|
+
.button__link-hint {
|
|
553
553
|
position: absolute;
|
|
554
554
|
margin: -1px;
|
|
555
555
|
border: 0;
|
|
@@ -649,10 +649,11 @@ function template$24(helpers) {
|
|
|
649
649
|
const content = renderContent(this);
|
|
650
650
|
const buttonClass = ["button", this.supportingText ? "has-supporting-text" : ""].filter(Boolean).join(" ");
|
|
651
651
|
const ariaExpanded = this.expandable || !!this.popupType ? String(this.expanded) : this.expanded ? "true" : nothing;
|
|
652
|
-
const
|
|
652
|
+
const hintKey = linkHintKey(this.href, this.target);
|
|
653
|
+
const linkHint = hintKey ? this._t(`components.button.${hintKey}`) : "";
|
|
653
654
|
const baseAriaLabel = this.accessibleLabel || (this.supportingText ? [this.text, this.supportingText].filter(Boolean).join(", ") : "");
|
|
654
|
-
const ariaLabel = baseAriaLabel ? [baseAriaLabel,
|
|
655
|
-
const
|
|
655
|
+
const ariaLabel = baseAriaLabel ? [baseAriaLabel, linkHint].filter(Boolean).join(", ") : nothing;
|
|
656
|
+
const renderLinkHint = !!linkHint && !baseAriaLabel;
|
|
656
657
|
const ariaBusy = this.loading ? "true" : nothing;
|
|
657
658
|
const loadingIndicator = this.loading ? html`
|
|
658
659
|
<div class="button__activity-indicator">
|
|
@@ -680,8 +681,7 @@ function template$24(helpers) {
|
|
|
680
681
|
@pointerdown=${this._popup.handlePointerdown}
|
|
681
682
|
@click=${helpers.handleClick}
|
|
682
683
|
>
|
|
683
|
-
${content}
|
|
684
|
-
${renderOpensInNewTabHint ? html`<span class="button__opens-in-new-tab-hint">${opensInNewTabHint}</span>` : nothing}
|
|
684
|
+
${content}${renderLinkHint ? html`<span class="button__link-hint">, ${linkHint}</span>` : nothing}
|
|
685
685
|
</a>
|
|
686
686
|
${loadingIndicator}
|
|
687
687
|
${popupSlot}
|
|
@@ -711,7 +711,11 @@ function template$24(helpers) {
|
|
|
711
711
|
}
|
|
712
712
|
//#endregion
|
|
713
713
|
//#region src/components/actions/button/button.i18n.ts
|
|
714
|
-
var nlddButtonTranslations = {
|
|
714
|
+
var nlddButtonTranslations = {
|
|
715
|
+
"components.button.link-hint-new-tab-lowercase-label": "opent in nieuw tabblad",
|
|
716
|
+
"components.button.link-hint-external-lowercase-label": "andere website",
|
|
717
|
+
"components.button.link-hint-external-new-tab-lowercase-label": "andere website, opent in nieuw tabblad"
|
|
718
|
+
};
|
|
715
719
|
//#endregion
|
|
716
720
|
//#region src/utilities/described-by-mixin.ts
|
|
717
721
|
/**
|
|
@@ -825,7 +829,7 @@ function DescribedBy(Base) {
|
|
|
825
829
|
* @attr {string} end-icon - Icon name for the end icon (after text)
|
|
826
830
|
* @attr {string} accessible-label - Accessible label for the button, overrides text for screen readers
|
|
827
831
|
* @attr {string} href - When set, renders an <a> element instead of <button>
|
|
828
|
-
* @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).
|
|
832
|
+
* @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.
|
|
829
833
|
* @attr {string} rel - Link rel attribute, used with href; with target '_blank', 'noopener noreferrer' is added to whatever you set
|
|
830
834
|
* @attr {object} translations - Override translation keys (e.g. the "opens in new tab" announcement); unset keys fall back to Dutch.
|
|
831
835
|
*
|
|
@@ -1227,8 +1231,8 @@ var menuStyles = css`
|
|
|
1227
1231
|
--_menu-padding: var(--primitives-space-8);
|
|
1228
1232
|
--_menu-item-size: var(--semantics-controls-md-min-size);
|
|
1229
1233
|
--_menu-item-background-color: transparent;
|
|
1230
|
-
--_menu-item-is-highlighted-background-color: var(--semantics-
|
|
1231
|
-
--_menu-item-is-highlighted-content-color: var(--semantics-
|
|
1234
|
+
--_menu-item-is-highlighted-background-color: var(--semantics-list-items-is-highlighted-background-color);
|
|
1235
|
+
--_menu-item-is-highlighted-content-color: var(--semantics-list-items-is-highlighted-content-color);
|
|
1232
1236
|
|
|
1233
1237
|
@media (pointer: fine) {
|
|
1234
1238
|
--_menu-padding: var(--primitives-space-6);
|
|
@@ -3078,7 +3082,7 @@ function inlineDialogTemplate(component) {
|
|
|
3078
3082
|
}
|
|
3079
3083
|
//#endregion
|
|
3080
3084
|
//#region src/components/actions/button-group/button-group.styles.ts
|
|
3081
|
-
var smMax$21 = unsafeCSS(
|
|
3085
|
+
var smMax$21 = unsafeCSS(queryBreakpoints.smMax);
|
|
3082
3086
|
var buttonGroupStyles = css`
|
|
3083
3087
|
:host {
|
|
3084
3088
|
box-sizing: border-box;
|
|
@@ -4494,7 +4498,7 @@ var NLDDMenu = class NLDDMenu extends LitElement {
|
|
|
4494
4498
|
return true;
|
|
4495
4499
|
}
|
|
4496
4500
|
static _getDrillInModeQuery() {
|
|
4497
|
-
if (NLDDMenu._drillInModeQuery === null) NLDDMenu._drillInModeQuery = matchMedia(`(pointer: coarse), (max-width: ${
|
|
4501
|
+
if (NLDDMenu._drillInModeQuery === null) NLDDMenu._drillInModeQuery = matchMedia(`(pointer: coarse), (max-width: ${queryBreakpoints.smMax})`);
|
|
4498
4502
|
return NLDDMenu._drillInModeQuery;
|
|
4499
4503
|
}
|
|
4500
4504
|
get _drillInMode() {
|
|
@@ -5603,7 +5607,7 @@ var toolbarTitleStyles = css`
|
|
|
5603
5607
|
text-decoration: none;
|
|
5604
5608
|
}
|
|
5605
5609
|
|
|
5606
|
-
.
|
|
5610
|
+
.toolbar__link-hint {
|
|
5607
5611
|
position: absolute;
|
|
5608
5612
|
margin: -1px;
|
|
5609
5613
|
border: 0;
|
|
@@ -5685,6 +5689,7 @@ function toolbarTitleTemplate(component) {
|
|
|
5685
5689
|
${component.supportingText ? html`<p class="toolbar__supporting-text">${component.supportingText}</p>` : nothing}
|
|
5686
5690
|
</div>
|
|
5687
5691
|
`;
|
|
5692
|
+
const hintKey = linkHintKey(component.href, component.target);
|
|
5688
5693
|
return html`
|
|
5689
5694
|
${component.href ? html`
|
|
5690
5695
|
<a class="toolbar__title-link"
|
|
@@ -5693,7 +5698,7 @@ function toolbarTitleTemplate(component) {
|
|
|
5693
5698
|
rel=${linkRel(null, component.target) || nothing}
|
|
5694
5699
|
>
|
|
5695
5700
|
<slot name="media"></slot>
|
|
5696
|
-
${titleGroup}${
|
|
5701
|
+
${titleGroup}${hintKey ? html`<span class="toolbar__link-hint">, ${component._t(`components.toolbar.${hintKey}`)}</span>` : nothing}
|
|
5697
5702
|
</a>
|
|
5698
5703
|
` : html`
|
|
5699
5704
|
<slot name="media"></slot>
|
|
@@ -5743,7 +5748,9 @@ function template$17(component, hasCenterChildren, leftSpacerZero, rightSpacerZe
|
|
|
5743
5748
|
//#region src/components/actions/toolbar/toolbar.i18n.ts
|
|
5744
5749
|
var nlddToolbarTranslations = {
|
|
5745
5750
|
"components.toolbar.overflow-action": "Meer",
|
|
5746
|
-
"components.toolbar.
|
|
5751
|
+
"components.toolbar.link-hint-new-tab-lowercase-label": "opent in nieuw tabblad",
|
|
5752
|
+
"components.toolbar.link-hint-external-lowercase-label": "andere website",
|
|
5753
|
+
"components.toolbar.link-hint-external-new-tab-lowercase-label": "andere website, opent in nieuw tabblad"
|
|
5747
5754
|
};
|
|
5748
5755
|
//#endregion
|
|
5749
5756
|
//#region src/components/actions/toolbar/toolbar.ts
|
|
@@ -5807,7 +5814,7 @@ var nlddToolbarTranslations = {
|
|
|
5807
5814
|
* @attr {'sm'|'md'|'lg'} size - Set by nldd-toolbar, not a consumer attribute: mirrors the toolbar's size (default: 'md'), which sets the title group height and, at 'sm', the title and supporting-text fonts.
|
|
5808
5815
|
*
|
|
5809
5816
|
* @attr {string} href - Makes the mark and the name one link, for the place this window belongs to (usually the app's own start). The `action` slot stays outside it: a control inside a link is a control you cannot reach without following the link.
|
|
5810
|
-
* @attr {string} target - Where the link opens; only meaningful with `href`. `_blank` adds rel="noopener noreferrer" and a visually hidden "opens in a new tab" announcement.
|
|
5817
|
+
* @attr {string} target - Where the link opens; only meaningful with `href`. `_blank` adds rel="noopener noreferrer" and a visually hidden "opens in a new tab" announcement. 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.
|
|
5811
5818
|
* @attr {object} translations - Override translation keys (the new-tab announcement); unset keys fall back to Dutch.
|
|
5812
5819
|
*
|
|
5813
5820
|
* @slot media - Optional leading image before the title: a logo, a product mark, a file-type icon. Its height is capped to the title group so it cannot stretch the row; pick the size within that yourself. With no `text` the media stands alone and carries the name, so give it one (an `alt`, or an accessible label).
|
|
@@ -6537,7 +6544,11 @@ function groupForOverflow(items) {
|
|
|
6537
6544
|
}
|
|
6538
6545
|
//#endregion
|
|
6539
6546
|
//#region src/components/content/avatar/avatar.i18n.ts
|
|
6540
|
-
var nlddAvatarTranslations = {
|
|
6547
|
+
var nlddAvatarTranslations = {
|
|
6548
|
+
"components.avatar.link-hint-new-tab-lowercase-label": "opent in nieuw tabblad",
|
|
6549
|
+
"components.avatar.link-hint-external-lowercase-label": "andere website",
|
|
6550
|
+
"components.avatar.link-hint-external-new-tab-lowercase-label": "andere website, opent in nieuw tabblad"
|
|
6551
|
+
};
|
|
6541
6552
|
//#endregion
|
|
6542
6553
|
//#region src/components/content/avatar/avatar.styles.ts
|
|
6543
6554
|
var avatarStyles = css`
|
|
@@ -6710,8 +6721,9 @@ function avatarTemplate(component) {
|
|
|
6710
6721
|
const initials = component.resolvedInitials;
|
|
6711
6722
|
const showInitials = !showImage && initials !== "";
|
|
6712
6723
|
const showIcon = !showImage && !showInitials;
|
|
6713
|
-
const
|
|
6714
|
-
const
|
|
6724
|
+
const hintKey = linkHintKey(component.href, component.target);
|
|
6725
|
+
const linkHint = hintKey ? component._t(`components.avatar.${hintKey}`) : "";
|
|
6726
|
+
const controlLabel = [component.accessibleLabel || component.name, linkHint].filter(Boolean).join(", ") || nothing;
|
|
6715
6727
|
const content = html`
|
|
6716
6728
|
${showImage ? html`
|
|
6717
6729
|
<img class="avatar__image"
|
|
@@ -6803,7 +6815,7 @@ function avatarTemplate(component) {
|
|
|
6803
6815
|
* @attr {string} href - Makes the avatar a link to this URL; the shape itself becomes the link, so the hit area and the focus ring follow it
|
|
6804
6816
|
* @attr {boolean} no-tab - Takes the control out of the tab order (tabindex="-1"), for an avatar that is a link or a button inside a roving container (a row of an nldd-list). Does nothing on a decorative avatar.
|
|
6805
6817
|
* @attr {boolean} button - Makes the avatar a button; ignored when `href` is set
|
|
6806
|
-
* @attr {string} target - Link target for href (e.g. '_blank'); completes rel and announces "Opens in a new tab"
|
|
6818
|
+
* @attr {string} target - Link target for href (e.g. '_blank'); completes rel and announces "Opens in a new tab". 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.
|
|
6807
6819
|
* @attr {string} rel - Link rel for href; with target '_blank', 'noopener noreferrer' is added to whatever you set
|
|
6808
6820
|
* @attr {object} translations - Override translation keys; unset keys fall back to Dutch
|
|
6809
6821
|
*
|
|
@@ -6993,7 +7005,7 @@ __decorate([state()], NLDDAvatar.prototype, "_imageFailed", void 0);
|
|
|
6993
7005
|
NLDDAvatar = __decorate([customElement("nldd-avatar")], NLDDAvatar);
|
|
6994
7006
|
//#endregion
|
|
6995
7007
|
//#region src/components/content/blockquote/blockquote.styles.ts
|
|
6996
|
-
var smMax$20 = unsafeCSS(
|
|
7008
|
+
var smMax$20 = unsafeCSS(queryBreakpoints.smMax);
|
|
6997
7009
|
var blockquoteStyles = css`
|
|
6998
7010
|
:host {
|
|
6999
7011
|
box-sizing: border-box;
|
|
@@ -7312,8 +7324,8 @@ function avatarGroupTemplate(component) {
|
|
|
7312
7324
|
}
|
|
7313
7325
|
//#endregion
|
|
7314
7326
|
//#region src/components/layout/popover/popover.styles.ts
|
|
7315
|
-
var smMax$19 = unsafeCSS(
|
|
7316
|
-
var mdMin$22 = unsafeCSS(
|
|
7327
|
+
var smMax$19 = unsafeCSS(queryBreakpoints.smMax);
|
|
7328
|
+
var mdMin$22 = unsafeCSS(queryBreakpoints.mdMin);
|
|
7317
7329
|
var popoverStyles = css`
|
|
7318
7330
|
:host {
|
|
7319
7331
|
box-sizing: border-box;
|
|
@@ -7620,7 +7632,7 @@ var NLDDPopover = (_NLDDPopover2 = class NLDDPopover extends LitElement {
|
|
|
7620
7632
|
document.addEventListener("pointercancel", this._handlePointerCancel, true);
|
|
7621
7633
|
document.addEventListener("click", this._handleDocumentClickCapture, true);
|
|
7622
7634
|
document.addEventListener("click", this._handleDocumentClick);
|
|
7623
|
-
this._smQuery = window.matchMedia(`(max-width: ${
|
|
7635
|
+
this._smQuery = window.matchMedia(`(max-width: ${queryBreakpoints.smMax})`);
|
|
7624
7636
|
this._wasOnSm = this._smQuery.matches;
|
|
7625
7637
|
this._smQuery.addEventListener("change", this._handleViewportChange);
|
|
7626
7638
|
Promise.resolve().then(() => {
|
|
@@ -7889,10 +7901,10 @@ __decorate([property({
|
|
|
7889
7901
|
NLDDPopover = _NLDDPopover = __decorate([customElement("nldd-popover")], NLDDPopover);
|
|
7890
7902
|
//#endregion
|
|
7891
7903
|
//#region src/components/layout/container/container.styles.ts
|
|
7892
|
-
var smMax$18 = unsafeCSS(
|
|
7893
|
-
var mdMin$21 = unsafeCSS(
|
|
7894
|
-
var mdMax$14 = unsafeCSS(
|
|
7895
|
-
var lgMin$15 = unsafeCSS(
|
|
7904
|
+
var smMax$18 = unsafeCSS(queryBreakpoints.smMax);
|
|
7905
|
+
var mdMin$21 = unsafeCSS(queryBreakpoints.mdMin);
|
|
7906
|
+
var mdMax$14 = unsafeCSS(queryBreakpoints.mdMax);
|
|
7907
|
+
var lgMin$15 = unsafeCSS(queryBreakpoints.lgMin);
|
|
7896
7908
|
var containerStyles = css`
|
|
7897
7909
|
:host {
|
|
7898
7910
|
box-sizing: border-box;
|
|
@@ -8815,12 +8827,12 @@ var listStyles = css`
|
|
|
8815
8827
|
|
|
8816
8828
|
:host([appearance^="box"]) {
|
|
8817
8829
|
--_list-background-color: var(--semantics-surfaces-tinted-background-color);
|
|
8818
|
-
--_list-highlight-border-color: var(--semantics-surfaces-tinted-border-color);
|
|
8830
|
+
--_list-highlight-border-color: var(--semantics-surfaces-tinted-highlight-border-color);
|
|
8819
8831
|
}
|
|
8820
8832
|
|
|
8821
8833
|
:host([appearance="box-base"]) {
|
|
8822
8834
|
--_list-background-color: var(--semantics-surfaces-base-background-color);
|
|
8823
|
-
--_list-highlight-border-color: var(--semantics-surfaces-base-border-color);
|
|
8835
|
+
--_list-highlight-border-color: var(--semantics-surfaces-base-highlight-border-color);
|
|
8824
8836
|
}
|
|
8825
8837
|
|
|
8826
8838
|
|
|
@@ -9480,10 +9492,15 @@ var NLDDList = (_NLDDList2 = class NLDDList extends LitElement {
|
|
|
9480
9492
|
else this.style.removeProperty("--_list-max-height");
|
|
9481
9493
|
}
|
|
9482
9494
|
}
|
|
9483
|
-
/**
|
|
9495
|
+
/** The name of a navigation list: `accessible-label`, or the translated default. */
|
|
9496
|
+
_navigationLabel() {
|
|
9497
|
+
return this.accessibleLabel || this._t("components.list.navigation-accessible-label");
|
|
9498
|
+
}
|
|
9499
|
+
/** On every render, so the texts this list sets itself follow a language
|
|
9500
|
+
* switch and a change of `accessible-label`. */
|
|
9484
9501
|
_syncTranslatedTexts() {
|
|
9485
9502
|
if (this.hasAttribute("data-nldd-auto-label") && this.getAttribute("aria-label") === this._autoLabel) {
|
|
9486
|
-
this._autoLabel = this.
|
|
9503
|
+
this._autoLabel = this._navigationLabel();
|
|
9487
9504
|
this.setAttribute("aria-label", this._autoLabel);
|
|
9488
9505
|
}
|
|
9489
9506
|
if (this.hasAttribute("aria-keyshortcuts")) this.setAttribute("aria-description", this._t("components.list.arrow-navigation-description-text"));
|
|
@@ -9492,7 +9509,7 @@ var NLDDList = (_NLDDList2 = class NLDDList extends LitElement {
|
|
|
9492
9509
|
if (this.type === "navigation") {
|
|
9493
9510
|
this.setAttribute("role", "navigation");
|
|
9494
9511
|
if (!this.hasAttribute("aria-label") && !this.hasAttribute("aria-labelledby")) {
|
|
9495
|
-
this._autoLabel = this.
|
|
9512
|
+
this._autoLabel = this._navigationLabel();
|
|
9496
9513
|
this.setAttribute("aria-label", this._autoLabel);
|
|
9497
9514
|
this.setAttribute("data-nldd-auto-label", "");
|
|
9498
9515
|
}
|
|
@@ -10201,7 +10218,7 @@ var listItemStyles = css`
|
|
|
10201
10218
|
opacity: var(--primitives-opacity-disabled);
|
|
10202
10219
|
}
|
|
10203
10220
|
|
|
10204
|
-
.list-
|
|
10221
|
+
.list-item__link-hint {
|
|
10205
10222
|
position: absolute;
|
|
10206
10223
|
margin: -1px;
|
|
10207
10224
|
border: 0;
|
|
@@ -10241,6 +10258,10 @@ var listItemStyles = css`
|
|
|
10241
10258
|
--_list-item-background-color: var(--semantics-list-items-is-selected-background-color);
|
|
10242
10259
|
--context-content-color: var(--semantics-list-items-is-selected-content-color);
|
|
10243
10260
|
--context-content-secondary-color: var(--semantics-list-items-is-selected-content-color);
|
|
10261
|
+
/* A checked control on the gray row takes the content color: the accent
|
|
10262
|
+
can fall under 3:1 against it. */
|
|
10263
|
+
--context-selected-indicator-color: var(--semantics-list-items-is-selected-content-color);
|
|
10264
|
+
--context-selected-contrast-color: var(--semantics-list-items-is-selected-background-color);
|
|
10244
10265
|
}
|
|
10245
10266
|
|
|
10246
10267
|
|
|
@@ -10250,6 +10271,8 @@ var listItemStyles = css`
|
|
|
10250
10271
|
--_list-item-background-color: var(--semantics-list-items-is-selected-background-color);
|
|
10251
10272
|
--context-content-color: var(--semantics-list-items-is-selected-content-color);
|
|
10252
10273
|
--context-content-secondary-color: var(--semantics-list-items-is-selected-content-color);
|
|
10274
|
+
--context-selected-indicator-color: var(--semantics-list-items-is-selected-content-color);
|
|
10275
|
+
--context-selected-contrast-color: var(--semantics-list-items-is-selected-background-color);
|
|
10253
10276
|
}
|
|
10254
10277
|
|
|
10255
10278
|
/* Hover only on hover-capable devices, so a touch that turns into a scroll
|
|
@@ -10464,7 +10487,8 @@ var listItemStyles = css`
|
|
|
10464
10487
|
//#region src/components/lists-and-tables/list-item/list-item.template.ts
|
|
10465
10488
|
var content = html`<slot></slot>`;
|
|
10466
10489
|
var divider = html`<div class="list-item__divider"></div>`;
|
|
10467
|
-
var template$14 = (button, href, target, rel,
|
|
10490
|
+
var template$14 = (button, href, target, rel, linkHint, actionTabindex, isHighlighted = false, checkbox = false, radio = false, checked = false, expanded, showChildren = false, hasCheckedSegment = false, disabled = false, childrenRole = "group", childrenOpen = expanded === true, accessibleLabel = "") => {
|
|
10491
|
+
const ariaLabel = accessibleLabel ? [accessibleLabel, linkHint].filter(Boolean).join(", ") : nothing;
|
|
10468
10492
|
const ariaExpanded = expanded === void 0 ? nothing : String(expanded);
|
|
10469
10493
|
const children = showChildren ? html`<div class="list-item__children"
|
|
10470
10494
|
role=${childrenRole}
|
|
@@ -10480,16 +10504,18 @@ var template$14 = (button, href, target, rel, opensInNewTabLabel, actionTabindex
|
|
|
10480
10504
|
href=${href}
|
|
10481
10505
|
target=${target ?? nothing}
|
|
10482
10506
|
rel=${linkRel(rel, target) || nothing}
|
|
10507
|
+
aria-label=${ariaLabel}
|
|
10483
10508
|
aria-disabled=${disabled ? "true" : nothing}
|
|
10484
10509
|
aria-expanded=${ariaExpanded}
|
|
10485
10510
|
tabindex=${actionTabindex ?? nothing}
|
|
10486
|
-
>${content}${
|
|
10511
|
+
>${content}${linkHint && !accessibleLabel ? html`<span class="list-item__link-hint">, ${linkHint}</span>` : nothing}</a>
|
|
10487
10512
|
${divider}
|
|
10488
10513
|
</div>${children}`;
|
|
10489
10514
|
if (checkbox) return html`<div class=${blockClass}>
|
|
10490
10515
|
<button class="list-item__action"
|
|
10491
10516
|
type="button"
|
|
10492
10517
|
role="checkbox"
|
|
10518
|
+
aria-label=${ariaLabel}
|
|
10493
10519
|
?disabled=${disabled}
|
|
10494
10520
|
aria-checked=${String(checked)}
|
|
10495
10521
|
aria-expanded=${ariaExpanded}
|
|
@@ -10501,6 +10527,7 @@ var template$14 = (button, href, target, rel, opensInNewTabLabel, actionTabindex
|
|
|
10501
10527
|
<button class="list-item__action"
|
|
10502
10528
|
type="button"
|
|
10503
10529
|
role="radio"
|
|
10530
|
+
aria-label=${ariaLabel}
|
|
10504
10531
|
?disabled=${disabled}
|
|
10505
10532
|
aria-checked=${String(checked)}
|
|
10506
10533
|
tabindex=${actionTabindex ?? nothing}
|
|
@@ -10510,6 +10537,7 @@ var template$14 = (button, href, target, rel, opensInNewTabLabel, actionTabindex
|
|
|
10510
10537
|
if (button) return html`<div class=${blockClass}>
|
|
10511
10538
|
<button class="list-item__action"
|
|
10512
10539
|
type="button"
|
|
10540
|
+
aria-label=${ariaLabel}
|
|
10513
10541
|
?disabled=${disabled}
|
|
10514
10542
|
aria-expanded=${ariaExpanded}
|
|
10515
10543
|
tabindex=${actionTabindex ?? nothing}
|
|
@@ -10523,7 +10551,11 @@ var template$14 = (button, href, target, rel, opensInNewTabLabel, actionTabindex
|
|
|
10523
10551
|
};
|
|
10524
10552
|
//#endregion
|
|
10525
10553
|
//#region src/components/lists-and-tables/list-item/list-item.i18n.ts
|
|
10526
|
-
var nlddListItemTranslations = {
|
|
10554
|
+
var nlddListItemTranslations = {
|
|
10555
|
+
"components.list-item.link-hint-new-tab-lowercase-label": "opent in nieuw tabblad",
|
|
10556
|
+
"components.list-item.link-hint-external-lowercase-label": "andere website",
|
|
10557
|
+
"components.list-item.link-hint-external-new-tab-lowercase-label": "andere website, opent in nieuw tabblad"
|
|
10558
|
+
};
|
|
10527
10559
|
//#endregion
|
|
10528
10560
|
//#region src/components/lists-and-tables/list-item/list-item.ts
|
|
10529
10561
|
var list_item_exports = /* @__PURE__ */ __exportAll({ NLDDListItem: () => NLDDListItem });
|
|
@@ -10600,6 +10632,7 @@ var NLDDListItem = (_NLDDListItem2 = class NLDDListItem extends withTranslations
|
|
|
10600
10632
|
this.button = false;
|
|
10601
10633
|
this.checkbox = false;
|
|
10602
10634
|
this.radio = false;
|
|
10635
|
+
this.accessibleLabel = "";
|
|
10603
10636
|
this.reorderable = false;
|
|
10604
10637
|
this.selected = false;
|
|
10605
10638
|
this.checked = false;
|
|
@@ -11201,9 +11234,10 @@ var NLDDListItem = (_NLDDListItem2 = class NLDDListItem extends withTranslations
|
|
|
11201
11234
|
return parent;
|
|
11202
11235
|
}
|
|
11203
11236
|
render() {
|
|
11204
|
-
const
|
|
11237
|
+
const hintKey = linkHintKey(this.href, this.target);
|
|
11238
|
+
const linkHint = hintKey ? this._t(`components.list-item.${hintKey}`) : void 0;
|
|
11205
11239
|
const actionTabindex = this._isListboxOption ? "-1" : this._arrowNavigation ? this._rovingActive ? "0" : "-1" : void 0;
|
|
11206
|
-
return template$14(this.button, this.href, this.target, this.rel,
|
|
11240
|
+
return template$14(this.button, this.href, this.target, this.rel, linkHint, actionTabindex, this._highlighted, this.checkbox, this.radio, this.checked, this._resolvedExpanded, this._showChildren, this._hasCheckedSegment, this.disabled, this._parentType === "navigation" ? "list" : "group", this._childrenOpen, this.accessibleLabel);
|
|
11207
11241
|
}
|
|
11208
11242
|
}, _NLDDListItem = _NLDDListItem2, _NLDDListItem2.styles = [listItemStyles], _NLDDListItem2.SIZED_CELLS = "nldd-text-cell, nldd-drag-handle-cell", _NLDDListItem2);
|
|
11209
11243
|
__decorate([property({
|
|
@@ -11225,6 +11259,10 @@ __decorate([property({
|
|
|
11225
11259
|
type: Boolean,
|
|
11226
11260
|
reflect: true
|
|
11227
11261
|
})], NLDDListItem.prototype, "radio", void 0);
|
|
11262
|
+
__decorate([property({
|
|
11263
|
+
type: String,
|
|
11264
|
+
attribute: "accessible-label"
|
|
11265
|
+
})], NLDDListItem.prototype, "accessibleLabel", void 0);
|
|
11228
11266
|
__decorate([property({
|
|
11229
11267
|
type: Boolean,
|
|
11230
11268
|
reflect: true
|
|
@@ -11568,7 +11606,7 @@ __decorate([state()], NLDDAvatarGroup.prototype, "_total", void 0);
|
|
|
11568
11606
|
NLDDAvatarGroup = __decorate([customElement("nldd-avatar-group")], NLDDAvatarGroup);
|
|
11569
11607
|
//#endregion
|
|
11570
11608
|
//#region src/components/content/identity/identity.styles.ts
|
|
11571
|
-
var smMax$17 = unsafeCSS(
|
|
11609
|
+
var smMax$17 = unsafeCSS(queryBreakpoints.smMax);
|
|
11572
11610
|
var identityStyles = css`
|
|
11573
11611
|
:host {
|
|
11574
11612
|
box-sizing: border-box;
|
|
@@ -12108,8 +12146,8 @@ var codeViewerStyles = css`
|
|
|
12108
12146
|
:host {
|
|
12109
12147
|
--_code-viewer-corner-radius: var(--semantics-surfaces-corner-radius);
|
|
12110
12148
|
--_code-viewer-background-color: var(--semantics-surfaces-tinted-background-color);
|
|
12111
|
-
--_code-viewer-border-width: var(--semantics-surfaces-border-width);
|
|
12112
|
-
--_code-viewer-border-color: var(--semantics-surfaces-tinted-border-color);
|
|
12149
|
+
--_code-viewer-border-width: var(--semantics-surfaces-highlight-border-width);
|
|
12150
|
+
--_code-viewer-border-color: var(--semantics-surfaces-tinted-highlight-border-color);
|
|
12113
12151
|
--_code-viewer-border-shadow: inset 0 0 0 var(--_code-viewer-border-width) var(--_code-viewer-border-color);
|
|
12114
12152
|
--_code-viewer-block-padding: var(--primitives-space-16);
|
|
12115
12153
|
--_code-viewer-inline-padding: var(--primitives-space-16);
|
|
@@ -12139,7 +12177,7 @@ var codeViewerStyles = css`
|
|
|
12139
12177
|
|
|
12140
12178
|
:host([appearance="box-base"]) {
|
|
12141
12179
|
--_code-viewer-background-color: var(--semantics-surfaces-base-background-color);
|
|
12142
|
-
--_code-viewer-border-color: var(--semantics-surfaces-base-border-color);
|
|
12180
|
+
--_code-viewer-border-color: var(--semantics-surfaces-base-highlight-border-color);
|
|
12143
12181
|
}
|
|
12144
12182
|
|
|
12145
12183
|
:host([appearance="simple"]) {
|
|
@@ -12660,7 +12698,7 @@ var imageStyles = css`
|
|
|
12660
12698
|
--_image-error-padding: var(--primitives-space-8);
|
|
12661
12699
|
--_image-error-gap: var(--primitives-space-2);
|
|
12662
12700
|
--_image-caption-row-gap: var(--primitives-space-8);
|
|
12663
|
-
--_image-pending-background-color: var(--
|
|
12701
|
+
--_image-pending-background-color: light-dark(var(--primitives-color-neutral-50), var(--primitives-color-neutral-150));
|
|
12664
12702
|
--_image-empty-icon-size: var(--primitives-space-32);
|
|
12665
12703
|
--_image-empty-icon-color: light-dark(var(--primitives-color-neutral-450), var(--primitives-color-neutral-550));
|
|
12666
12704
|
--_image-object-fit: cover;
|
|
@@ -14208,10 +14246,10 @@ __decorate([property({
|
|
|
14208
14246
|
NLDDText = __decorate([customElement("nldd-text")], NLDDText);
|
|
14209
14247
|
//#endregion
|
|
14210
14248
|
//#region src/components/content/title/title.styles.ts
|
|
14211
|
-
var smMax$16 = unsafeCSS(
|
|
14212
|
-
var mdMin$20 = unsafeCSS(
|
|
14213
|
-
var mdMax$13 = unsafeCSS(
|
|
14214
|
-
var lgMin$14 = unsafeCSS(
|
|
14249
|
+
var smMax$16 = unsafeCSS(queryBreakpoints.smMax);
|
|
14250
|
+
var mdMin$20 = unsafeCSS(queryBreakpoints.mdMin);
|
|
14251
|
+
var mdMax$13 = unsafeCSS(queryBreakpoints.mdMax);
|
|
14252
|
+
var lgMin$14 = unsafeCSS(queryBreakpoints.lgMin);
|
|
14215
14253
|
var titleStyles = css`
|
|
14216
14254
|
:host {
|
|
14217
14255
|
box-sizing: border-box;
|
|
@@ -15421,7 +15459,7 @@ var NLDDForm = class extends HTMLElement {
|
|
|
15421
15459
|
if (!customElements.get("nldd-form")) customElements.define("nldd-form", NLDDForm);
|
|
15422
15460
|
//#endregion
|
|
15423
15461
|
//#region src/components/forms/form-actions/form-actions.styles.ts
|
|
15424
|
-
var mdMin$19 = unsafeCSS(
|
|
15462
|
+
var mdMin$19 = unsafeCSS(queryBreakpoints.mdMin);
|
|
15425
15463
|
var formActionsStyles = css`
|
|
15426
15464
|
:host {
|
|
15427
15465
|
box-sizing: border-box;
|
|
@@ -15574,7 +15612,7 @@ function setOwnedAttribute(el, name, value, applied) {
|
|
|
15574
15612
|
}
|
|
15575
15613
|
//#endregion
|
|
15576
15614
|
//#region src/components/forms/form-field/form-field.styles.ts
|
|
15577
|
-
var mdMin$18 = unsafeCSS(
|
|
15615
|
+
var mdMin$18 = unsafeCSS(queryBreakpoints.mdMin);
|
|
15578
15616
|
var formFieldStyles = css`
|
|
15579
15617
|
:host {
|
|
15580
15618
|
box-sizing: border-box;
|
|
@@ -16789,17 +16827,17 @@ var checkboxStyles = css`
|
|
|
16789
16827
|
--_checkbox-border-width: var(--primitives-border-width-regular);
|
|
16790
16828
|
--_checkbox-border-color: light-dark(var(--primitives-color-neutral-550), var(--primitives-color-neutral-650));
|
|
16791
16829
|
--_checkbox-background-color: var(--semantics-surfaces-base-background-color);
|
|
16792
|
-
--_checkbox-is-selected-border-color: var(--semantics-controls-is-
|
|
16793
|
-
--_checkbox-is-selected-background-color: var(--semantics-controls-is-
|
|
16794
|
-
--_checkbox-is-selected-icon-color: var(--semantics-controls-is-
|
|
16830
|
+
--_checkbox-is-selected-border-color: var(--context-selected-indicator-color, var(--semantics-controls-is-selected-indicator-color));
|
|
16831
|
+
--_checkbox-is-selected-background-color: var(--context-selected-indicator-color, var(--semantics-controls-is-selected-indicator-color));
|
|
16832
|
+
--_checkbox-is-selected-icon-color: var(--context-selected-contrast-color, var(--semantics-controls-is-selected-mark-color));
|
|
16795
16833
|
--_checkbox-is-hovered-border-color: light-dark(var(--primitives-color-neutral-600), var(--primitives-color-neutral-700));
|
|
16796
|
-
--_checkbox-is-selected-is-hovered-border-color: var(--semantics-controls-is-
|
|
16797
|
-
--_checkbox-is-selected-is-hovered-background-color: var(--semantics-controls-is-
|
|
16798
|
-
--_checkbox-is-selected-is-hovered-icon-color: var(--semantics-controls-is-
|
|
16834
|
+
--_checkbox-is-selected-is-hovered-border-color: var(--context-selected-indicator-color, var(--semantics-controls-is-selected-is-hovered-indicator-color));
|
|
16835
|
+
--_checkbox-is-selected-is-hovered-background-color: var(--context-selected-indicator-color, var(--semantics-controls-is-selected-is-hovered-indicator-color));
|
|
16836
|
+
--_checkbox-is-selected-is-hovered-icon-color: var(--context-selected-contrast-color, var(--semantics-controls-is-selected-mark-color));
|
|
16799
16837
|
--_checkbox-is-active-border-color: light-dark(var(--primitives-color-neutral-650), var(--primitives-color-neutral-750));
|
|
16800
|
-
--_checkbox-is-selected-is-active-border-color: var(--semantics-controls-is-
|
|
16801
|
-
--_checkbox-is-selected-is-active-background-color: var(--semantics-controls-is-
|
|
16802
|
-
--_checkbox-is-selected-is-active-icon-color: var(--semantics-controls-is-
|
|
16838
|
+
--_checkbox-is-selected-is-active-border-color: var(--context-selected-indicator-color, var(--semantics-controls-is-selected-is-active-indicator-color));
|
|
16839
|
+
--_checkbox-is-selected-is-active-background-color: var(--context-selected-indicator-color, var(--semantics-controls-is-selected-is-active-indicator-color));
|
|
16840
|
+
--_checkbox-is-selected-is-active-icon-color: var(--context-selected-contrast-color, var(--semantics-controls-is-selected-mark-color));
|
|
16803
16841
|
|
|
16804
16842
|
display: inline-flex;
|
|
16805
16843
|
position: relative;
|
|
@@ -16817,6 +16855,33 @@ var checkboxStyles = css`
|
|
|
16817
16855
|
}
|
|
16818
16856
|
|
|
16819
16857
|
|
|
16858
|
+
/* ## Colors */
|
|
16859
|
+
|
|
16860
|
+
:host([color="inherit"]) {
|
|
16861
|
+
--_checkbox-border-color: currentColor;
|
|
16862
|
+
--_checkbox-background-color: transparent;
|
|
16863
|
+
--_checkbox-is-hovered-border-color: currentColor;
|
|
16864
|
+
--_checkbox-is-active-border-color: currentColor;
|
|
16865
|
+
--_checkbox-is-selected-border-color: currentColor;
|
|
16866
|
+
--_checkbox-is-selected-background-color: currentColor;
|
|
16867
|
+
--_checkbox-is-selected-icon-color: currentColor;
|
|
16868
|
+
--_checkbox-is-selected-is-hovered-border-color: currentColor;
|
|
16869
|
+
--_checkbox-is-selected-is-hovered-background-color: currentColor;
|
|
16870
|
+
--_checkbox-is-selected-is-hovered-icon-color: currentColor;
|
|
16871
|
+
--_checkbox-is-selected-is-active-border-color: currentColor;
|
|
16872
|
+
--_checkbox-is-selected-is-active-background-color: currentColor;
|
|
16873
|
+
--_checkbox-is-selected-is-active-icon-color: currentColor;
|
|
16874
|
+
}
|
|
16875
|
+
|
|
16876
|
+
:host([color="inherit"]) .checkbox__box {
|
|
16877
|
+
color: inherit;
|
|
16878
|
+
}
|
|
16879
|
+
|
|
16880
|
+
:host([color="inherit"]) :is(.checkbox__check-icon, .checkbox__indeterminate-icon) {
|
|
16881
|
+
color: var(--context-parent-background-color, var(--semantics-content-contrast-color));
|
|
16882
|
+
}
|
|
16883
|
+
|
|
16884
|
+
|
|
16820
16885
|
/* # Elements */
|
|
16821
16886
|
|
|
16822
16887
|
.checkbox__input {
|
|
@@ -16966,9 +17031,15 @@ function checkboxTemplate(component) {
|
|
|
16966
17031
|
/**
|
|
16967
17032
|
* Nederlandse Digitale Dienst Checkbox Component (Lit + TypeScript)
|
|
16968
17033
|
*
|
|
17034
|
+
* On a selected row of nldd-list-item a checked control takes the colors of the
|
|
17035
|
+
* row: the row sets `--context-selected-indicator-color` and
|
|
17036
|
+
* `--context-selected-contrast-color`, because the accent can fall below 3:1 on
|
|
17037
|
+
* the gray of a selected row.
|
|
17038
|
+
*
|
|
16969
17039
|
* @element nldd-checkbox
|
|
16970
17040
|
* @attr {boolean} checked - Checked state
|
|
16971
17041
|
* @attr {boolean} disabled - Disabled state
|
|
17042
|
+
* @attr {'inherit'} color - 'inherit' draws the control in the color of the text around it, with the mark in the surface color (`--context-parent-background-color`) or else `--semantics-content-contrast-color`, white or black against the text color. For a control on a colored surface, such as the panel of nldd-hero, where the accent would not stand out. Without it the control uses the accent.
|
|
16972
17043
|
* @attr {boolean} no-tab - Takes the control out of the tab order (tabindex="-1"), for a control owned by a roving container (a row of an nldd-list, where the arrow keys move between rows) that manages focus itself. Still mouse- and script-focusable.
|
|
16973
17044
|
* @attr {boolean} decorative - Renders the box without the input: no focus, no
|
|
16974
17045
|
* name/value, nothing announced. For a control that owns the state elsewhere,
|
|
@@ -16995,6 +17066,7 @@ var _NLDDCheckbox = class NLDDCheckbox extends DescribedBy(FormAssociated(LitEle
|
|
|
16995
17066
|
this.indeterminate = false;
|
|
16996
17067
|
this.value = "on";
|
|
16997
17068
|
this.name = "";
|
|
17069
|
+
this.color = "";
|
|
16998
17070
|
this.accessibleLabel = "";
|
|
16999
17071
|
this.required = false;
|
|
17000
17072
|
this.invalid = false;
|
|
@@ -17078,6 +17150,10 @@ __decorate([property({
|
|
|
17078
17150
|
reflect: true,
|
|
17079
17151
|
converter: reflectNonDefault("")
|
|
17080
17152
|
})], NLDDCheckbox.prototype, "name", void 0);
|
|
17153
|
+
__decorate([property({
|
|
17154
|
+
reflect: true,
|
|
17155
|
+
converter: reflectNonDefault("")
|
|
17156
|
+
})], NLDDCheckbox.prototype, "color", void 0);
|
|
17081
17157
|
__decorate([property({
|
|
17082
17158
|
type: String,
|
|
17083
17159
|
attribute: "accessible-label"
|
|
@@ -17122,6 +17198,13 @@ var checkboxFieldStyles = css`
|
|
|
17122
17198
|
}
|
|
17123
17199
|
|
|
17124
17200
|
|
|
17201
|
+
/* ## Colors */
|
|
17202
|
+
|
|
17203
|
+
:host([color="inherit"]) .checkbox-field__label {
|
|
17204
|
+
color: inherit;
|
|
17205
|
+
}
|
|
17206
|
+
|
|
17207
|
+
|
|
17125
17208
|
/* # Elements */
|
|
17126
17209
|
|
|
17127
17210
|
.checkbox-field__control {
|
|
@@ -17153,6 +17236,7 @@ function checkboxFieldTemplate(component) {
|
|
|
17153
17236
|
>
|
|
17154
17237
|
<div class="checkbox-field__control">
|
|
17155
17238
|
<nldd-checkbox
|
|
17239
|
+
color=${component.color || nothing}
|
|
17156
17240
|
?invalid=${component.invalid}
|
|
17157
17241
|
?required=${component.required}
|
|
17158
17242
|
?checked=${component.checked}
|
|
@@ -17183,6 +17267,7 @@ function checkboxFieldTemplate(component) {
|
|
|
17183
17267
|
* @attr {boolean} checked - Checked state
|
|
17184
17268
|
* @attr {boolean} indeterminate - Indeterminate state
|
|
17185
17269
|
* @attr {boolean} disabled - Disabled state
|
|
17270
|
+
* @attr {'inherit'} color - 'inherit' draws the control and its label in the color of the text around it, for a field on a colored surface such as the panel of nldd-hero. Passed to the control inside.
|
|
17186
17271
|
* @attr {string} value - Value for form submission
|
|
17187
17272
|
* @attr {string} name - Name for form submission
|
|
17188
17273
|
* @attr {string} label - Label text for the checkbox
|
|
@@ -17200,6 +17285,7 @@ var _NLDDCheckboxField = class NLDDCheckboxField extends DescribedBy(FormAssocia
|
|
|
17200
17285
|
this.disabled = false;
|
|
17201
17286
|
this.value = "on";
|
|
17202
17287
|
this.name = "";
|
|
17288
|
+
this.color = "";
|
|
17203
17289
|
this.label = "";
|
|
17204
17290
|
this.required = false;
|
|
17205
17291
|
this.invalid = false;
|
|
@@ -17270,6 +17356,10 @@ __decorate([property({
|
|
|
17270
17356
|
reflect: true,
|
|
17271
17357
|
converter: reflectNonDefault("")
|
|
17272
17358
|
})], NLDDCheckboxField.prototype, "name", void 0);
|
|
17359
|
+
__decorate([property({
|
|
17360
|
+
reflect: true,
|
|
17361
|
+
converter: reflectNonDefault("")
|
|
17362
|
+
})], NLDDCheckboxField.prototype, "color", void 0);
|
|
17273
17363
|
__decorate([property({ type: String })], NLDDCheckboxField.prototype, "label", void 0);
|
|
17274
17364
|
__decorate([property({
|
|
17275
17365
|
type: Boolean,
|
|
@@ -17530,7 +17620,7 @@ var historyField_ = /*@__PURE__*/ StateField.define({
|
|
|
17530
17620
|
/**
|
|
17531
17621
|
Create a history extension with the given configuration.
|
|
17532
17622
|
*/
|
|
17533
|
-
function history(config = {}) {
|
|
17623
|
+
function history$1(config = {}) {
|
|
17534
17624
|
return [
|
|
17535
17625
|
historyField_,
|
|
17536
17626
|
historyConfig.of(config),
|
|
@@ -19227,7 +19317,7 @@ var _NLDDCodeEditor = class NLDDCodeEditor extends DescribedBy(FormAssociated(NL
|
|
|
19227
19317
|
buildExtensions() {
|
|
19228
19318
|
return [
|
|
19229
19319
|
nlddCodeMirrorTheme,
|
|
19230
|
-
history(),
|
|
19320
|
+
history$1(),
|
|
19231
19321
|
drawSelection(),
|
|
19232
19322
|
keymap.of([...defaultKeymap, ...historyKeymap]),
|
|
19233
19323
|
this._placeholderCompartment.of(this._placeholderExtension()),
|
|
@@ -20376,7 +20466,7 @@ function resolveDateBound(raw, today = /* @__PURE__ */ new Date()) {
|
|
|
20376
20466
|
}
|
|
20377
20467
|
//#endregion
|
|
20378
20468
|
//#region src/components/inputs/date-field/date-field.styles.ts
|
|
20379
|
-
var mdMin$17 = unsafeCSS(
|
|
20469
|
+
var mdMin$17 = unsafeCSS(queryBreakpoints.mdMin);
|
|
20380
20470
|
var dateFieldStyles = css`
|
|
20381
20471
|
:host {
|
|
20382
20472
|
box-sizing: border-box;
|
|
@@ -21111,12 +21201,12 @@ var datePickerStyles = css`
|
|
|
21111
21201
|
--_date-picker-day-indicator-inset: var(--primitives-space-2);
|
|
21112
21202
|
--_date-picker-day-indicator-size: calc(var(--_date-picker-day-size) - var(--_date-picker-day-indicator-inset) * 2);
|
|
21113
21203
|
--_date-picker-day-indicator-corner-radius: var(--_date-picker-day-corner-radius);
|
|
21114
|
-
--_date-picker-day-is-in-range-background-color: var(--
|
|
21204
|
+
--_date-picker-day-is-in-range-background-color: light-dark(var(--primitives-color-accent-50), var(--primitives-color-accent-75));
|
|
21115
21205
|
--_date-picker-day-is-in-range-content-color: var(--semantics-content-color);
|
|
21116
21206
|
--_date-picker-day-is-today-border-color: light-dark(var(--primitives-color-neutral-250), var(--primitives-color-neutral-400));
|
|
21117
21207
|
--_date-picker-day-is-hovered-background-color: light-dark(var(--primitives-color-neutral-100), var(--primitives-color-neutral-150));
|
|
21118
|
-
--_date-picker-day-is-selected-background-color: var(--semantics-controls-is-
|
|
21119
|
-
--_date-picker-day-is-selected-content-color: var(--semantics-controls-is-
|
|
21208
|
+
--_date-picker-day-is-selected-background-color: var(--semantics-controls-is-selected-indicator-color);
|
|
21209
|
+
--_date-picker-day-is-selected-content-color: var(--semantics-controls-is-selected-contrast-color);
|
|
21120
21210
|
--_date-picker-day-is-outside-month-content-color: var(--semantics-content-secondary-color);
|
|
21121
21211
|
--_date-picker-day-is-unavailable-content-color: var(--semantics-content-secondary-color);
|
|
21122
21212
|
|
|
@@ -21935,7 +22025,7 @@ var NLDDDatePicker = (_NLDDDatePicker = class NLDDDatePicker extends DescribedBy
|
|
|
21935
22025
|
super.connectedCallback();
|
|
21936
22026
|
if (!this._focused) this._focused = this._initialFocus();
|
|
21937
22027
|
if (!this._view) this._view = firstOfMonth(this._focused);
|
|
21938
|
-
this._stackedQuery = window.matchMedia(`(max-width: ${
|
|
22028
|
+
this._stackedQuery = window.matchMedia(`(max-width: ${queryBreakpoints.smMax}), (pointer: coarse)`);
|
|
21939
22029
|
this._stacked = this._stackedQuery.matches;
|
|
21940
22030
|
this._stackedQuery.addEventListener("change", this._handleStackedChange);
|
|
21941
22031
|
}
|
|
@@ -23448,8 +23538,8 @@ var fileFieldStyles = css`
|
|
|
23448
23538
|
--_file-field-clear-button-padding-right: calc((var(--_file-field-min-size) - var(--semantics-controls-sm-min-size)) / 2);
|
|
23449
23539
|
--_file-field-validation-icon-area-padding-right: var(--_file-field-inline-padding);
|
|
23450
23540
|
--_file-field-validation-icon-size: var(--semantics-input-fields-md-validation-icon-size);
|
|
23451
|
-
--_file-field-highlight-border-width: var(--semantics-surfaces-border-width);
|
|
23452
|
-
--_file-field-highlight-border-color: var(--semantics-surfaces-tinted-border-color);
|
|
23541
|
+
--_file-field-highlight-border-width: var(--semantics-surfaces-highlight-border-width);
|
|
23542
|
+
--_file-field-highlight-border-color: var(--semantics-surfaces-tinted-highlight-border-color);
|
|
23453
23543
|
--_file-field-background-color: var(--semantics-surfaces-tinted-background-color);
|
|
23454
23544
|
|
|
23455
23545
|
${inheritedTextReset}
|
|
@@ -25052,17 +25142,17 @@ var radioButtonStyles = css`
|
|
|
25052
25142
|
--_radio-button-border-color: light-dark(var(--primitives-color-neutral-550), var(--primitives-color-neutral-650));
|
|
25053
25143
|
--_radio-button-background-color: var(--semantics-surfaces-base-background-color);
|
|
25054
25144
|
--_radio-button-is-selected-inner-shape-border-width: var(--primitives-border-width-regular);
|
|
25055
|
-
--_radio-button-is-selected-inner-shape-border-color: var(--semantics-controls-is-
|
|
25056
|
-
--_radio-button-is-selected-border-color: var(--semantics-controls-is-
|
|
25057
|
-
--_radio-button-is-selected-background-color: var(--semantics-controls-is-
|
|
25145
|
+
--_radio-button-is-selected-inner-shape-border-color: var(--context-selected-contrast-color, var(--semantics-controls-is-selected-mark-color));
|
|
25146
|
+
--_radio-button-is-selected-border-color: var(--context-selected-indicator-color, var(--semantics-controls-is-selected-indicator-color));
|
|
25147
|
+
--_radio-button-is-selected-background-color: var(--context-selected-indicator-color, var(--semantics-controls-is-selected-indicator-color));
|
|
25058
25148
|
--_radio-button-is-hovered-border-color: light-dark(var(--primitives-color-neutral-600), var(--primitives-color-neutral-700));
|
|
25059
|
-
--_radio-button-is-selected-is-hovered-border-color: var(--semantics-controls-is-
|
|
25060
|
-
--_radio-button-is-selected-is-hovered-background-color: var(--semantics-controls-is-
|
|
25061
|
-
--_radio-button-is-selected-is-hovered-inner-shape-border-color: var(--semantics-controls-is-
|
|
25149
|
+
--_radio-button-is-selected-is-hovered-border-color: var(--context-selected-indicator-color, var(--semantics-controls-is-selected-is-hovered-indicator-color));
|
|
25150
|
+
--_radio-button-is-selected-is-hovered-background-color: var(--context-selected-indicator-color, var(--semantics-controls-is-selected-is-hovered-indicator-color));
|
|
25151
|
+
--_radio-button-is-selected-is-hovered-inner-shape-border-color: var(--context-selected-contrast-color, var(--semantics-controls-is-selected-mark-color));
|
|
25062
25152
|
--_radio-button-is-active-border-color: light-dark(var(--primitives-color-neutral-650), var(--primitives-color-neutral-750));
|
|
25063
|
-
--_radio-button-is-selected-is-active-border-color: var(--semantics-controls-is-
|
|
25064
|
-
--_radio-button-is-selected-is-active-background-color: var(--semantics-controls-is-
|
|
25065
|
-
--_radio-button-is-selected-is-active-inner-shape-border-color: var(--semantics-controls-is-
|
|
25153
|
+
--_radio-button-is-selected-is-active-border-color: var(--context-selected-indicator-color, var(--semantics-controls-is-selected-is-active-indicator-color));
|
|
25154
|
+
--_radio-button-is-selected-is-active-background-color: var(--context-selected-indicator-color, var(--semantics-controls-is-selected-is-active-indicator-color));
|
|
25155
|
+
--_radio-button-is-selected-is-active-inner-shape-border-color: var(--context-selected-contrast-color, var(--semantics-controls-is-selected-mark-color));
|
|
25066
25156
|
|
|
25067
25157
|
display: inline-flex;
|
|
25068
25158
|
position: relative;
|
|
@@ -25080,6 +25170,25 @@ var radioButtonStyles = css`
|
|
|
25080
25170
|
}
|
|
25081
25171
|
|
|
25082
25172
|
|
|
25173
|
+
/* ## Colors */
|
|
25174
|
+
|
|
25175
|
+
:host([color="inherit"]) {
|
|
25176
|
+
--_radio-button-border-color: currentColor;
|
|
25177
|
+
--_radio-button-background-color: transparent;
|
|
25178
|
+
--_radio-button-is-hovered-border-color: currentColor;
|
|
25179
|
+
--_radio-button-is-active-border-color: currentColor;
|
|
25180
|
+
--_radio-button-is-selected-border-color: currentColor;
|
|
25181
|
+
--_radio-button-is-selected-background-color: currentColor;
|
|
25182
|
+
--_radio-button-is-selected-inner-shape-border-color: var(--context-parent-background-color, var(--semantics-content-contrast-color));
|
|
25183
|
+
--_radio-button-is-selected-is-hovered-border-color: currentColor;
|
|
25184
|
+
--_radio-button-is-selected-is-hovered-background-color: currentColor;
|
|
25185
|
+
--_radio-button-is-selected-is-hovered-inner-shape-border-color: var(--context-parent-background-color, var(--semantics-content-contrast-color));
|
|
25186
|
+
--_radio-button-is-selected-is-active-border-color: currentColor;
|
|
25187
|
+
--_radio-button-is-selected-is-active-background-color: currentColor;
|
|
25188
|
+
--_radio-button-is-selected-is-active-inner-shape-border-color: var(--context-parent-background-color, var(--semantics-content-contrast-color));
|
|
25189
|
+
}
|
|
25190
|
+
|
|
25191
|
+
|
|
25083
25192
|
/* # Elements */
|
|
25084
25193
|
|
|
25085
25194
|
.radio-button__outer-shape {
|
|
@@ -25331,9 +25440,15 @@ var RadioGrouping = class RadioGrouping {
|
|
|
25331
25440
|
* <nldd-radio-button name="options" value="2" accessible-label="Optie 2"></nldd-radio-button>
|
|
25332
25441
|
* </fieldset>
|
|
25333
25442
|
*
|
|
25443
|
+
* On a selected row of nldd-list-item a checked control takes the colors of the
|
|
25444
|
+
* row: the row sets `--context-selected-indicator-color` and
|
|
25445
|
+
* `--context-selected-contrast-color`, because the accent can fall below 3:1 on
|
|
25446
|
+
* the gray of a selected row.
|
|
25447
|
+
*
|
|
25334
25448
|
* @element nldd-radio-button
|
|
25335
25449
|
* @attr {boolean} checked - Checked state
|
|
25336
25450
|
* @attr {boolean} disabled - Disabled state
|
|
25451
|
+
* @attr {'inherit'} color - 'inherit' draws the control in the color of the text around it, with the mark in the surface color (`--context-parent-background-color`) or else `--semantics-content-contrast-color`, white or black against the text color. For a control on a colored surface, such as the panel of nldd-hero, where the accent would not stand out. Without it the control uses the accent.
|
|
25337
25452
|
* @attr {boolean} no-tab - Takes the control out of the tab order (tabindex="-1"), for a control owned by a roving container (a row of an nldd-list, where the arrow keys move between rows) that manages focus itself. Still mouse- and script-focusable.
|
|
25338
25453
|
* @attr {boolean} decorative - Renders the shape only: no role, no focus, no
|
|
25339
25454
|
* name/value, nothing announced. For a control that owns the state elsewhere,
|
|
@@ -25361,6 +25476,7 @@ var _NLDDRadioButton = class NLDDRadioButton extends DescribedBy(FormAssociated(
|
|
|
25361
25476
|
this.focusRing = false;
|
|
25362
25477
|
this.name = "";
|
|
25363
25478
|
this.value = "";
|
|
25479
|
+
this.color = "";
|
|
25364
25480
|
this.accessibleLabel = "";
|
|
25365
25481
|
this.invalid = false;
|
|
25366
25482
|
this._grouping = new RadioGrouping(this);
|
|
@@ -25515,6 +25631,10 @@ __decorate([property({
|
|
|
25515
25631
|
converter: reflectNonDefault("")
|
|
25516
25632
|
})], NLDDRadioButton.prototype, "name", void 0);
|
|
25517
25633
|
__decorate([property({ type: String })], NLDDRadioButton.prototype, "value", void 0);
|
|
25634
|
+
__decorate([property({
|
|
25635
|
+
reflect: true,
|
|
25636
|
+
converter: reflectNonDefault("")
|
|
25637
|
+
})], NLDDRadioButton.prototype, "color", void 0);
|
|
25518
25638
|
__decorate([property({
|
|
25519
25639
|
type: String,
|
|
25520
25640
|
attribute: "accessible-label"
|
|
@@ -25562,6 +25682,13 @@ var radioButtonFieldStyles = css`
|
|
|
25562
25682
|
}
|
|
25563
25683
|
|
|
25564
25684
|
|
|
25685
|
+
/* ## Colors */
|
|
25686
|
+
|
|
25687
|
+
:host([color="inherit"]) .radio-button-field__label {
|
|
25688
|
+
color: inherit;
|
|
25689
|
+
}
|
|
25690
|
+
|
|
25691
|
+
|
|
25565
25692
|
/* # Elements */
|
|
25566
25693
|
|
|
25567
25694
|
.radio-button-field__control {
|
|
@@ -25599,6 +25726,7 @@ function radioButtonFieldTemplate(component) {
|
|
|
25599
25726
|
>
|
|
25600
25727
|
<div class="radio-button-field__control">
|
|
25601
25728
|
<nldd-radio-button
|
|
25729
|
+
color=${component.color || nothing}
|
|
25602
25730
|
decorative
|
|
25603
25731
|
?checked=${component.checked}
|
|
25604
25732
|
?disabled=${component.disabled}
|
|
@@ -25636,6 +25764,7 @@ function radioButtonFieldTemplate(component) {
|
|
|
25636
25764
|
* @element nldd-radio-button-field
|
|
25637
25765
|
* @attr {boolean} checked - Checked state
|
|
25638
25766
|
* @attr {boolean} disabled - Disabled state
|
|
25767
|
+
* @attr {'inherit'} color - 'inherit' draws the control and its label in the color of the text around it, for a field on a colored surface such as the panel of nldd-hero. Passed to the control inside.
|
|
25639
25768
|
* @attr {string} value - Value for form submission
|
|
25640
25769
|
* @attr {string} name - Radio group name for form submission; ties the fields of one group together. Set automatically by nldd-radio-button-group.
|
|
25641
25770
|
* @attr {boolean} required - Required state. What it asks is whether anything in the group is checked, as a native radio does. Set automatically by nldd-radio-button-group.
|
|
@@ -25653,6 +25782,7 @@ var _NLDDRadioButtonField = class NLDDRadioButtonField extends DescribedBy(FormA
|
|
|
25653
25782
|
this.value = "";
|
|
25654
25783
|
this.name = "";
|
|
25655
25784
|
this.required = false;
|
|
25785
|
+
this.color = "";
|
|
25656
25786
|
this.label = "";
|
|
25657
25787
|
this.invalid = false;
|
|
25658
25788
|
this._groupPosition = null;
|
|
@@ -25803,6 +25933,10 @@ __decorate([property({
|
|
|
25803
25933
|
type: Boolean,
|
|
25804
25934
|
reflect: true
|
|
25805
25935
|
})], NLDDRadioButtonField.prototype, "required", void 0);
|
|
25936
|
+
__decorate([property({
|
|
25937
|
+
reflect: true,
|
|
25938
|
+
converter: reflectNonDefault("")
|
|
25939
|
+
})], NLDDRadioButtonField.prototype, "color", void 0);
|
|
25806
25940
|
__decorate([property({ type: String })], NLDDRadioButtonField.prototype, "label", void 0);
|
|
25807
25941
|
__decorate([property({
|
|
25808
25942
|
type: Boolean,
|
|
@@ -27599,11 +27733,11 @@ var switchStyles = css`
|
|
|
27599
27733
|
--_switch-border-width: var(--primitives-border-width-regular);
|
|
27600
27734
|
--_switch-border-color: light-dark(var(--primitives-color-neutral-550), var(--primitives-color-neutral-650));
|
|
27601
27735
|
--_switch-background-color: var(--semantics-surfaces-base-background-color);
|
|
27602
|
-
--_switch-is-selected-background-color: var(--semantics-controls-is-
|
|
27736
|
+
--_switch-is-selected-background-color: var(--context-selected-indicator-color, var(--semantics-controls-is-selected-indicator-color));
|
|
27603
27737
|
--_switch-thumb-border-width: var(--primitives-border-width-regular);
|
|
27604
27738
|
--_switch-thumb-border-color: light-dark(var(--primitives-color-neutral-550), var(--primitives-color-neutral-650));
|
|
27605
27739
|
--_switch-thumb-background-color: var(--semantics-surfaces-base-background-color);
|
|
27606
|
-
--_switch-is-selected-thumb-background-color: var(--semantics-controls-is-
|
|
27740
|
+
--_switch-is-selected-thumb-background-color: var(--context-selected-contrast-color, var(--semantics-controls-is-selected-mark-color));
|
|
27607
27741
|
|
|
27608
27742
|
display: inline-block;
|
|
27609
27743
|
position: relative;
|
|
@@ -27629,6 +27763,18 @@ var switchStyles = css`
|
|
|
27629
27763
|
}
|
|
27630
27764
|
|
|
27631
27765
|
|
|
27766
|
+
/* ## Colors */
|
|
27767
|
+
|
|
27768
|
+
:host([color="inherit"]) {
|
|
27769
|
+
--_switch-border-color: currentColor;
|
|
27770
|
+
--_switch-background-color: transparent;
|
|
27771
|
+
--_switch-is-selected-background-color: currentColor;
|
|
27772
|
+
--_switch-thumb-border-color: currentColor;
|
|
27773
|
+
--_switch-thumb-background-color: currentColor;
|
|
27774
|
+
--_switch-is-selected-thumb-background-color: var(--context-parent-background-color, var(--semantics-content-contrast-color));
|
|
27775
|
+
}
|
|
27776
|
+
|
|
27777
|
+
|
|
27632
27778
|
/* # Elements */
|
|
27633
27779
|
|
|
27634
27780
|
.switch__input {
|
|
@@ -27748,9 +27894,15 @@ function switchTemplate(component) {
|
|
|
27748
27894
|
* Prefer nldd-switch-field for labeled usage — it combines the switch with a visible label.
|
|
27749
27895
|
* Direct use of nldd-switch requires an accessible-label attribute for screen reader accessibility.
|
|
27750
27896
|
*
|
|
27897
|
+
* On a selected row of nldd-list-item a checked control takes the colors of the
|
|
27898
|
+
* row: the row sets `--context-selected-indicator-color` and
|
|
27899
|
+
* `--context-selected-contrast-color`, because the accent can fall below 3:1 on
|
|
27900
|
+
* the gray of a selected row.
|
|
27901
|
+
*
|
|
27751
27902
|
* @element nldd-switch
|
|
27752
27903
|
* @attr {boolean} checked - Whether the switch is on/off
|
|
27753
27904
|
* @attr {boolean} disabled - Disabled state
|
|
27905
|
+
* @attr {'inherit'} color - 'inherit' draws the control in the color of the text around it, with the mark in the surface color (`--context-parent-background-color`) or else `--semantics-content-contrast-color`, white or black against the text color. For a control on a colored surface, such as the panel of nldd-hero, where the accent would not stand out. Without it the control uses the accent.
|
|
27754
27906
|
* @attr {boolean} no-tab - Takes the control out of the tab order (tabindex="-1"), for a control owned by a roving container (a row of an nldd-list, where the arrow keys move between rows) that manages focus itself. Still mouse- and script-focusable.
|
|
27755
27907
|
* @attr {string} size - Switch size: 'xs' | 'sm' (default: 'sm')
|
|
27756
27908
|
* @attr {string} name - Name for form submission; nothing is submitted when the switch is off
|
|
@@ -27771,6 +27923,7 @@ var NLDDSwitch = (_NLDDSwitch2 = class NLDDSwitch extends DescribedBy(FormAssoci
|
|
|
27771
27923
|
this.disabled = false;
|
|
27772
27924
|
this.noTab = false;
|
|
27773
27925
|
this.size = "sm";
|
|
27926
|
+
this.color = "";
|
|
27774
27927
|
this.accessibleLabel = "";
|
|
27775
27928
|
this.value = "on";
|
|
27776
27929
|
this._initialChecked = false;
|
|
@@ -27880,6 +28033,10 @@ __decorate([property({
|
|
|
27880
28033
|
reflect: true,
|
|
27881
28034
|
converter: reflectNonDefault("sm")
|
|
27882
28035
|
})], NLDDSwitch.prototype, "size", void 0);
|
|
28036
|
+
__decorate([property({
|
|
28037
|
+
reflect: true,
|
|
28038
|
+
converter: reflectNonDefault("")
|
|
28039
|
+
})], NLDDSwitch.prototype, "color", void 0);
|
|
27883
28040
|
__decorate([property({
|
|
27884
28041
|
type: String,
|
|
27885
28042
|
attribute: "accessible-label"
|
|
@@ -27925,6 +28082,13 @@ var switchFieldStyles = css`
|
|
|
27925
28082
|
}
|
|
27926
28083
|
|
|
27927
28084
|
|
|
28085
|
+
/* ## Colors */
|
|
28086
|
+
|
|
28087
|
+
:host([color="inherit"]) .switch-field__label {
|
|
28088
|
+
color: inherit;
|
|
28089
|
+
}
|
|
28090
|
+
|
|
28091
|
+
|
|
27928
28092
|
/* # Elements */
|
|
27929
28093
|
|
|
27930
28094
|
.switch-field__control {
|
|
@@ -27956,6 +28120,7 @@ function switchFieldTemplate(component) {
|
|
|
27956
28120
|
>
|
|
27957
28121
|
<div class="switch-field__control">
|
|
27958
28122
|
<nldd-switch
|
|
28123
|
+
color=${component.color || nothing}
|
|
27959
28124
|
?invalid=${component.invalid}
|
|
27960
28125
|
?required=${component.required}
|
|
27961
28126
|
size="sm"
|
|
@@ -27981,6 +28146,7 @@ function switchFieldTemplate(component) {
|
|
|
27981
28146
|
* @element nldd-switch-field
|
|
27982
28147
|
* @attr {boolean} checked - Checked state
|
|
27983
28148
|
* @attr {boolean} disabled - Disabled state
|
|
28149
|
+
* @attr {'inherit'} color - 'inherit' draws the control and its label in the color of the text around it, for a field on a colored surface such as the panel of nldd-hero. Passed to the control inside.
|
|
27984
28150
|
* @attr {string} value - Value for form submission
|
|
27985
28151
|
* @attr {string} name - Name for form submission
|
|
27986
28152
|
* @attr {string} label - Label text for the switch
|
|
@@ -27996,6 +28162,7 @@ var _NLDDSwitchField = class NLDDSwitchField extends DescribedBy(LitElement) {
|
|
|
27996
28162
|
this.disabled = false;
|
|
27997
28163
|
this.value = "on";
|
|
27998
28164
|
this.name = "";
|
|
28165
|
+
this.color = "";
|
|
27999
28166
|
this.label = "";
|
|
28000
28167
|
this.required = false;
|
|
28001
28168
|
this.invalid = false;
|
|
@@ -28043,6 +28210,10 @@ __decorate([property({
|
|
|
28043
28210
|
})], NLDDSwitchField.prototype, "disabled", void 0);
|
|
28044
28211
|
__decorate([property({ type: String })], NLDDSwitchField.prototype, "value", void 0);
|
|
28045
28212
|
__decorate([property({ type: String })], NLDDSwitchField.prototype, "name", void 0);
|
|
28213
|
+
__decorate([property({
|
|
28214
|
+
reflect: true,
|
|
28215
|
+
converter: reflectNonDefault("")
|
|
28216
|
+
})], NLDDSwitchField.prototype, "color", void 0);
|
|
28046
28217
|
__decorate([property({ type: String })], NLDDSwitchField.prototype, "label", void 0);
|
|
28047
28218
|
__decorate([property({
|
|
28048
28219
|
type: Boolean,
|
|
@@ -30862,8 +31033,8 @@ var popupTheme = EditorView.theme({
|
|
|
30862
31033
|
font: "var(--primitives-font-body-sm-regular-tight)"
|
|
30863
31034
|
},
|
|
30864
31035
|
".cm-tooltip.cm-tooltip-autocomplete > ul > li[aria-selected]": {
|
|
30865
|
-
backgroundColor: "var(--semantics-
|
|
30866
|
-
color: "var(--semantics-
|
|
31036
|
+
backgroundColor: "var(--semantics-list-items-is-highlighted-background-color)",
|
|
31037
|
+
color: "var(--semantics-list-items-is-highlighted-content-color)"
|
|
30867
31038
|
},
|
|
30868
31039
|
"@media (hover: hover)": { ".cm-tooltip.cm-tooltip-autocomplete > ul > li:not([aria-selected]):hover": {
|
|
30869
31040
|
backgroundColor: "var(--semantics-list-items-is-hovered-background-color)",
|
|
@@ -33160,18 +33331,18 @@ var textEditorStyles = css`
|
|
|
33160
33331
|
--_text-editor-annotation-badge-size: 1.5em;
|
|
33161
33332
|
--_text-editor-annotation-badge-font-scale: 0.62;
|
|
33162
33333
|
--_text-editor-link-badge-size: calc(1em + 2 * var(--_text-editor-token-block-padding-fit));
|
|
33163
|
-
--_text-editor-link-badge-content-color: var(--
|
|
33164
|
-
--_text-editor-link-badge-background-color: var(--
|
|
33165
|
-
--_text-editor-link-badge-highlight-border-color: var(--
|
|
33334
|
+
--_text-editor-link-badge-content-color: var(--primitives-color-accent-700);
|
|
33335
|
+
--_text-editor-link-badge-background-color: light-dark(var(--primitives-color-accent-50), var(--primitives-color-accent-75));
|
|
33336
|
+
--_text-editor-link-badge-highlight-border-color: light-dark(var(--primitives-color-accent-100), var(--primitives-color-accent-150));
|
|
33166
33337
|
--_text-editor-link-badge-is-hovered-background-color: light-dark(var(--primitives-color-accent-75), var(--primitives-color-accent-100));
|
|
33167
33338
|
--_text-editor-link-badge-is-active-background-color: light-dark(var(--primitives-color-accent-100), var(--primitives-color-accent-150));
|
|
33168
33339
|
--_text-editor-link-badge-is-hovered-highlight-border-color: light-dark(var(--primitives-color-accent-150), var(--primitives-color-accent-200));
|
|
33169
33340
|
--_text-editor-link-badge-is-active-highlight-border-color: light-dark(var(--primitives-color-accent-200), var(--primitives-color-accent-250));
|
|
33170
33341
|
--_text-editor-mention-icon-size: 0.95em;
|
|
33171
|
-
--_text-editor-mention-token-background-color: var(--
|
|
33172
|
-
--_text-editor-mention-token-content-color: var(--
|
|
33173
|
-
--_text-editor-mention-token-is-selected-background-color: var(--
|
|
33174
|
-
--_text-editor-mention-token-is-selected-content-color: var(--
|
|
33342
|
+
--_text-editor-mention-token-background-color: var(--components-text-editor-mention-background-color);
|
|
33343
|
+
--_text-editor-mention-token-content-color: var(--components-text-editor-mention-content-color);
|
|
33344
|
+
--_text-editor-mention-token-is-selected-background-color: var(--components-text-editor-mention-is-selected-background-color);
|
|
33345
|
+
--_text-editor-mention-token-is-selected-content-color: var(--components-text-editor-mention-is-selected-content-color);
|
|
33175
33346
|
--_text-editor-rows: 6;
|
|
33176
33347
|
|
|
33177
33348
|
${inheritedTextReset}
|
|
@@ -33895,7 +34066,7 @@ var _NLDDTextEditor = class NLDDTextEditor extends DescribedBy(FormAssociated(NL
|
|
|
33895
34066
|
quote
|
|
33896
34067
|
})),
|
|
33897
34068
|
Prec.highest(linkOpenBadge((url) => this._t("components.text-editor.open-in-new-tab-label", { url }))),
|
|
33898
|
-
this._historyCompartment.of(history()),
|
|
34069
|
+
this._historyCompartment.of(history$1()),
|
|
33899
34070
|
drawSelection(),
|
|
33900
34071
|
stableCursor,
|
|
33901
34072
|
dropCursor(),
|
|
@@ -34183,7 +34354,7 @@ var _NLDDTextEditor = class NLDDTextEditor extends DescribedBy(FormAssociated(NL
|
|
|
34183
34354
|
const view = this.view;
|
|
34184
34355
|
if (!view) return;
|
|
34185
34356
|
view.dispatch({ effects: this._historyCompartment.reconfigure([]) });
|
|
34186
|
-
view.dispatch({ effects: this._historyCompartment.reconfigure(history()) });
|
|
34357
|
+
view.dispatch({ effects: this._historyCompartment.reconfigure(history$1()) });
|
|
34187
34358
|
this._emitState();
|
|
34188
34359
|
}
|
|
34189
34360
|
/** The annotations lying fully inside the current selection, offset relative to
|
|
@@ -35048,7 +35219,7 @@ __decorate([property({
|
|
|
35048
35219
|
NLDDTextField = __decorate([customElement("nldd-text-field")], NLDDTextField);
|
|
35049
35220
|
//#endregion
|
|
35050
35221
|
//#region src/components/inputs/time-field/time-field.styles.ts
|
|
35051
|
-
var mdMin$16 = unsafeCSS(
|
|
35222
|
+
var mdMin$16 = unsafeCSS(queryBreakpoints.mdMin);
|
|
35052
35223
|
var timeFieldStyles = css`
|
|
35053
35224
|
:host {
|
|
35054
35225
|
box-sizing: border-box;
|
|
@@ -35250,10 +35421,10 @@ var timeFieldStyles = css`
|
|
|
35250
35421
|
`;
|
|
35251
35422
|
//#endregion
|
|
35252
35423
|
//#region src/components/layout/spacer/spacer.styles.ts
|
|
35253
|
-
var smMax$15 = unsafeCSS(
|
|
35254
|
-
var mdMin$15 = unsafeCSS(
|
|
35255
|
-
var mdMax$12 = unsafeCSS(
|
|
35256
|
-
var lgMin$13 = unsafeCSS(
|
|
35424
|
+
var smMax$15 = unsafeCSS(queryBreakpoints.smMax);
|
|
35425
|
+
var mdMin$15 = unsafeCSS(queryBreakpoints.mdMin);
|
|
35426
|
+
var mdMax$12 = unsafeCSS(queryBreakpoints.mdMax);
|
|
35427
|
+
var lgMin$13 = unsafeCSS(queryBreakpoints.lgMin);
|
|
35257
35428
|
var spacerStyles = css`
|
|
35258
35429
|
:host {
|
|
35259
35430
|
box-sizing: border-box;
|
|
@@ -35552,8 +35723,8 @@ var timePickerStyles = css`
|
|
|
35552
35723
|
--_time-picker-control-corner-radius: var(--semantics-controls-md-corner-radius);
|
|
35553
35724
|
--_time-picker-list-item-font: var(--primitives-font-body-md-medium-flat);
|
|
35554
35725
|
--_time-picker-list-item-is-hovered-background-color: light-dark(var(--primitives-color-neutral-100), var(--primitives-color-neutral-150));
|
|
35555
|
-
--_time-picker-selection-background-color: var(--semantics-controls-is-
|
|
35556
|
-
--_time-picker-selection-content-color: var(--semantics-controls-is-
|
|
35726
|
+
--_time-picker-selection-background-color: var(--semantics-controls-is-selected-indicator-color);
|
|
35727
|
+
--_time-picker-selection-content-color: var(--semantics-controls-is-selected-contrast-color);
|
|
35557
35728
|
--_time-picker-list-width: calc(var(--_time-picker-control-min-size) * 1.5);
|
|
35558
35729
|
--_time-picker-rows: 7;
|
|
35559
35730
|
--_time-picker-list-height: calc(var(--_time-picker-control-min-size) * var(--_time-picker-rows));
|
|
@@ -39382,10 +39553,7 @@ function barSplitViewTemplate(component) {
|
|
|
39382
39553
|
* @slot main - Central panel for primary content
|
|
39383
39554
|
* @slot * - Any other unique slot name creates a bar panel
|
|
39384
39555
|
*/
|
|
39385
|
-
var _NLDDBarSplitView
|
|
39386
|
-
var smMaxPx = parseInt(breakpoints.smMax);
|
|
39387
|
-
var mdMaxPx = parseInt(breakpoints.mdMax);
|
|
39388
|
-
var NLDDBarSplitView = (_NLDDBarSplitView = class NLDDBarSplitView extends LitElement {
|
|
39556
|
+
var _NLDDBarSplitView = class NLDDBarSplitView extends LitElement {
|
|
39389
39557
|
constructor(..._args) {
|
|
39390
39558
|
super(..._args);
|
|
39391
39559
|
this._scrollMode = new ScrollModeController(this, () => this._updateInsets());
|
|
@@ -39460,8 +39628,9 @@ var NLDDBarSplitView = (_NLDDBarSplitView = class NLDDBarSplitView extends LitEl
|
|
|
39460
39628
|
this._resizeObserver = null;
|
|
39461
39629
|
}
|
|
39462
39630
|
_getBreakpoint(width) {
|
|
39463
|
-
|
|
39464
|
-
if (width <=
|
|
39631
|
+
const fontSize = rootFontSize();
|
|
39632
|
+
if (width <= breakpointPx("smMax", fontSize)) return "sm";
|
|
39633
|
+
if (width <= breakpointPx("mdMax", fontSize)) return "md";
|
|
39465
39634
|
return "lg";
|
|
39466
39635
|
}
|
|
39467
39636
|
_isChildVisible(el) {
|
|
@@ -39498,7 +39667,8 @@ var NLDDBarSplitView = (_NLDDBarSplitView = class NLDDBarSplitView extends LitEl
|
|
|
39498
39667
|
render() {
|
|
39499
39668
|
return barSplitViewTemplate(this);
|
|
39500
39669
|
}
|
|
39501
|
-
}
|
|
39670
|
+
};
|
|
39671
|
+
var NLDDBarSplitView = (_NLDDBarSplitView.styles = barSplitViewStyles, _NLDDBarSplitView);
|
|
39502
39672
|
__decorate([property({
|
|
39503
39673
|
type: String,
|
|
39504
39674
|
reflect: true
|
|
@@ -39507,10 +39677,10 @@ __decorate([state()], NLDDBarSplitView.prototype, "_currentBreakpoint", void 0);
|
|
|
39507
39677
|
NLDDBarSplitView = __decorate([customElement("nldd-bar-split-view")], NLDDBarSplitView);
|
|
39508
39678
|
//#endregion
|
|
39509
39679
|
//#region src/components/layout/split-views/navigation-split-view/navigation-split-view.styles.ts
|
|
39510
|
-
var smMax$14 = unsafeCSS(
|
|
39511
|
-
var mdMin$14 = unsafeCSS(
|
|
39512
|
-
var mdMax$11 = unsafeCSS(
|
|
39513
|
-
var lgMin$12 = unsafeCSS(
|
|
39680
|
+
var smMax$14 = unsafeCSS(queryBreakpoints.smMax);
|
|
39681
|
+
var mdMin$14 = unsafeCSS(queryBreakpoints.mdMin);
|
|
39682
|
+
var mdMax$11 = unsafeCSS(queryBreakpoints.mdMax);
|
|
39683
|
+
var lgMin$12 = unsafeCSS(queryBreakpoints.lgMin);
|
|
39514
39684
|
var navigationSplitViewStyles = css`
|
|
39515
39685
|
:host {
|
|
39516
39686
|
box-sizing: border-box;
|
|
@@ -40715,7 +40885,7 @@ __decorate([state()], NLDDStackedSplitView.prototype, "_visiblePanes", void 0);
|
|
|
40715
40885
|
NLDDStackedSplitView = __decorate([customElement("nldd-stacked-split-view")], NLDDStackedSplitView);
|
|
40716
40886
|
//#endregion
|
|
40717
40887
|
//#region src/components/layout/split-views/split-view-pane/split-view-pane.styles.ts
|
|
40718
|
-
var mdMin$13 = unsafeCSS(
|
|
40888
|
+
var mdMin$13 = unsafeCSS(queryBreakpoints.mdMin);
|
|
40719
40889
|
var splitViewPaneStyles = css`
|
|
40720
40890
|
:host {
|
|
40721
40891
|
box-sizing: border-box;
|
|
@@ -41506,7 +41676,8 @@ NLDDPage = __decorate([customElement("nldd-page")], NLDDPage);
|
|
|
41506
41676
|
//#region src/utilities/page-section-mixin.ts
|
|
41507
41677
|
var BACKGROUND_TOKEN = {
|
|
41508
41678
|
base: "var(--semantics-surfaces-base-background-color)",
|
|
41509
|
-
tinted: "var(--semantics-surfaces-tinted-background-color)"
|
|
41679
|
+
tinted: "var(--semantics-surfaces-tinted-background-color)",
|
|
41680
|
+
"accent-tinted": "var(--semantics-surfaces-accent-tinted-background-color)"
|
|
41510
41681
|
};
|
|
41511
41682
|
function paddingToValue(size) {
|
|
41512
41683
|
if (size === void 0 || size === "") return null;
|
|
@@ -41541,8 +41712,9 @@ var PADDING_KEYS = [
|
|
|
41541
41712
|
* element and slotted content):
|
|
41542
41713
|
*
|
|
41543
41714
|
* - **background**: `inherit` (the default — transparent, shows the ancestor's
|
|
41544
|
-
* surface) | `base` (the base surface color) | `tinted
|
|
41545
|
-
*
|
|
41715
|
+
* surface) | `base` (the base surface color) | `tinted` | `accent-tinted`
|
|
41716
|
+
* (a tint of the theme's accent, with the contrast of `tinted`). Setting
|
|
41717
|
+
* one of those also cascades `--context-parent-background-color` so
|
|
41546
41718
|
* descendants (cards, nested sections) read the same surface.
|
|
41547
41719
|
* - **block padding**: `padding-block` (both edges) with `padding-top`
|
|
41548
41720
|
* / `padding-bottom` per-edge overrides, each with responsive `sm-` /
|
|
@@ -41583,8 +41755,8 @@ function PageSectionMixin(Base) {
|
|
|
41583
41755
|
wrapper.hidden = slot.assignedElements().length === 0;
|
|
41584
41756
|
}
|
|
41585
41757
|
_applyBackground() {
|
|
41586
|
-
|
|
41587
|
-
|
|
41758
|
+
const token = this.background === "inherit" ? void 0 : BACKGROUND_TOKEN[this.background];
|
|
41759
|
+
if (token) {
|
|
41588
41760
|
this.style.backgroundColor = token;
|
|
41589
41761
|
this.style.setProperty("--context-parent-background-color", token);
|
|
41590
41762
|
} else {
|
|
@@ -41690,10 +41862,10 @@ function PageSectionMixin(Base) {
|
|
|
41690
41862
|
}
|
|
41691
41863
|
//#endregion
|
|
41692
41864
|
//#region src/components/layout/page-sections/simple-section/simple-section.styles.ts
|
|
41693
|
-
var smMax$13 = unsafeCSS(
|
|
41694
|
-
var mdMin$12 = unsafeCSS(
|
|
41695
|
-
var mdMax$10 = unsafeCSS(
|
|
41696
|
-
var lgMin$11 = unsafeCSS(
|
|
41865
|
+
var smMax$13 = unsafeCSS(queryBreakpoints.smMax);
|
|
41866
|
+
var mdMin$12 = unsafeCSS(queryBreakpoints.mdMin);
|
|
41867
|
+
var mdMax$10 = unsafeCSS(queryBreakpoints.mdMax);
|
|
41868
|
+
var lgMin$11 = unsafeCSS(queryBreakpoints.lgMin);
|
|
41697
41869
|
var simpleSectionStyles = css`
|
|
41698
41870
|
:host {
|
|
41699
41871
|
box-sizing: border-box;
|
|
@@ -41871,7 +42043,7 @@ function simpleSectionTemplate(component) {
|
|
|
41871
42043
|
*
|
|
41872
42044
|
* @element nldd-simple-section
|
|
41873
42045
|
*
|
|
41874
|
-
* @attr {'inherit'|'base'|'tinted'} [background] - Surface background ('inherit' default; 'base'
|
|
42046
|
+
* @attr {'inherit'|'base'|'tinted'|'accent-tinted'} [background] - Surface background ('inherit' default; 'base', 'tinted' and 'accent-tinted', a tint of the theme's accent with the contrast of 'tinted', paint and cascade a surface).
|
|
41875
42047
|
* @attr {string} [width] - Body max-width: 'full' removes the constraint so the section spans the full available width. Any CSS length (e.g. '480px') overrides the default max-width.
|
|
41876
42048
|
* @attr {string} [height] - Minimum section height (any CSS length, e.g. '400px', '100dvh') (mirrors width, which sets the body max-width).
|
|
41877
42049
|
* @attr {boolean} grow - Takes the height the page has left, so the footer sits at the bottom of a short page. Without it, nldd-page lets its last section grow.
|
|
@@ -41924,10 +42096,10 @@ __decorate([property({
|
|
|
41924
42096
|
NLDDSimpleSection = __decorate([customElement("nldd-simple-section")], NLDDSimpleSection);
|
|
41925
42097
|
//#endregion
|
|
41926
42098
|
//#region src/components/layout/page-sections/hero/hero.styles.ts
|
|
41927
|
-
var smMax$12 = unsafeCSS(
|
|
41928
|
-
var mdMin$11 = unsafeCSS(
|
|
41929
|
-
var mdMax$9 = unsafeCSS(
|
|
41930
|
-
var lgMin$10 = unsafeCSS(
|
|
42099
|
+
var smMax$12 = unsafeCSS(queryBreakpoints.smMax);
|
|
42100
|
+
var mdMin$11 = unsafeCSS(queryBreakpoints.mdMin);
|
|
42101
|
+
var mdMax$9 = unsafeCSS(queryBreakpoints.mdMax);
|
|
42102
|
+
var lgMin$10 = unsafeCSS(queryBreakpoints.lgMin);
|
|
41931
42103
|
var heroStyles = css`
|
|
41932
42104
|
:host {
|
|
41933
42105
|
box-sizing: border-box;
|
|
@@ -41955,8 +42127,8 @@ var heroStyles = css`
|
|
|
41955
42127
|
--_hero-main-min-width: var(--primitives-area-480);
|
|
41956
42128
|
--_hero-main-max-width: var(--primitives-area-640);
|
|
41957
42129
|
--_hero-main-width: auto;
|
|
41958
|
-
--_hero-main-background-color: var(--semantics-
|
|
41959
|
-
--_hero-main-content-color: var(--semantics-
|
|
42130
|
+
--_hero-main-background-color: var(--semantics-surfaces-accent-filled-background-color);
|
|
42131
|
+
--_hero-main-content-color: var(--semantics-content-on-accent-filled-color);
|
|
41960
42132
|
--_hero-main-padding: var(--primitives-space-16);
|
|
41961
42133
|
--_hero-main-inset: var(--primitives-space-0);
|
|
41962
42134
|
--_hero-sm-main-inset: var(--semantics-page-sections-sm-gap);
|
|
@@ -41990,96 +42162,6 @@ var heroStyles = css`
|
|
|
41990
42162
|
--_hero-main-content-color: var(--semantics-content-color);
|
|
41991
42163
|
}
|
|
41992
42164
|
|
|
41993
|
-
:host([main-background="lintblauw"]) {
|
|
41994
|
-
--_hero-main-background-color: var(--semantics-categories-lintblauw-reference-background-color);
|
|
41995
|
-
--_hero-main-content-color: var(--semantics-categories-lintblauw-reference-content-color);
|
|
41996
|
-
}
|
|
41997
|
-
|
|
41998
|
-
:host([main-background="donkerblauw"]) {
|
|
41999
|
-
--_hero-main-background-color: var(--semantics-categories-donkerblauw-reference-background-color);
|
|
42000
|
-
--_hero-main-content-color: var(--semantics-categories-donkerblauw-reference-content-color);
|
|
42001
|
-
}
|
|
42002
|
-
|
|
42003
|
-
:host([main-background="hemelblauw"]) {
|
|
42004
|
-
--_hero-main-background-color: var(--semantics-categories-hemelblauw-reference-background-color);
|
|
42005
|
-
--_hero-main-content-color: var(--semantics-categories-hemelblauw-reference-content-color);
|
|
42006
|
-
}
|
|
42007
|
-
|
|
42008
|
-
:host([main-background="lichtblauw"]) {
|
|
42009
|
-
--_hero-main-background-color: var(--semantics-categories-lichtblauw-reference-background-color);
|
|
42010
|
-
--_hero-main-content-color: var(--semantics-categories-lichtblauw-reference-content-color);
|
|
42011
|
-
}
|
|
42012
|
-
|
|
42013
|
-
:host([main-background="paars"]) {
|
|
42014
|
-
--_hero-main-background-color: var(--semantics-categories-paars-reference-background-color);
|
|
42015
|
-
--_hero-main-content-color: var(--semantics-categories-paars-reference-content-color);
|
|
42016
|
-
}
|
|
42017
|
-
|
|
42018
|
-
:host([main-background="violet"]) {
|
|
42019
|
-
--_hero-main-background-color: var(--semantics-categories-violet-reference-background-color);
|
|
42020
|
-
--_hero-main-content-color: var(--semantics-categories-violet-reference-content-color);
|
|
42021
|
-
}
|
|
42022
|
-
|
|
42023
|
-
:host([main-background="robijnrood"]) {
|
|
42024
|
-
--_hero-main-background-color: var(--semantics-categories-robijnrood-reference-background-color);
|
|
42025
|
-
--_hero-main-content-color: var(--semantics-categories-robijnrood-reference-content-color);
|
|
42026
|
-
}
|
|
42027
|
-
|
|
42028
|
-
:host([main-background="roze"]) {
|
|
42029
|
-
--_hero-main-background-color: var(--semantics-categories-roze-reference-background-color);
|
|
42030
|
-
--_hero-main-content-color: var(--semantics-categories-roze-reference-content-color);
|
|
42031
|
-
}
|
|
42032
|
-
|
|
42033
|
-
:host([main-background="rood"]) {
|
|
42034
|
-
--_hero-main-background-color: var(--semantics-categories-rood-reference-background-color);
|
|
42035
|
-
--_hero-main-content-color: var(--semantics-categories-rood-reference-content-color);
|
|
42036
|
-
}
|
|
42037
|
-
|
|
42038
|
-
:host([main-background="oranje"]) {
|
|
42039
|
-
--_hero-main-background-color: var(--semantics-categories-oranje-reference-background-color);
|
|
42040
|
-
--_hero-main-content-color: var(--semantics-categories-oranje-reference-content-color);
|
|
42041
|
-
}
|
|
42042
|
-
|
|
42043
|
-
:host([main-background="donkergeel"]) {
|
|
42044
|
-
--_hero-main-background-color: var(--semantics-categories-donkergeel-reference-background-color);
|
|
42045
|
-
--_hero-main-content-color: var(--semantics-categories-donkergeel-reference-content-color);
|
|
42046
|
-
}
|
|
42047
|
-
|
|
42048
|
-
:host([main-background="geel"]) {
|
|
42049
|
-
--_hero-main-background-color: var(--semantics-categories-geel-reference-background-color);
|
|
42050
|
-
--_hero-main-content-color: var(--semantics-categories-geel-reference-content-color);
|
|
42051
|
-
}
|
|
42052
|
-
|
|
42053
|
-
:host([main-background="donkerbruin"]) {
|
|
42054
|
-
--_hero-main-background-color: var(--semantics-categories-donkerbruin-reference-background-color);
|
|
42055
|
-
--_hero-main-content-color: var(--semantics-categories-donkerbruin-reference-content-color);
|
|
42056
|
-
}
|
|
42057
|
-
|
|
42058
|
-
:host([main-background="bruin"]) {
|
|
42059
|
-
--_hero-main-background-color: var(--semantics-categories-bruin-reference-background-color);
|
|
42060
|
-
--_hero-main-content-color: var(--semantics-categories-bruin-reference-content-color);
|
|
42061
|
-
}
|
|
42062
|
-
|
|
42063
|
-
:host([main-background="donkergroen"]) {
|
|
42064
|
-
--_hero-main-background-color: var(--semantics-categories-donkergroen-reference-background-color);
|
|
42065
|
-
--_hero-main-content-color: var(--semantics-categories-donkergroen-reference-content-color);
|
|
42066
|
-
}
|
|
42067
|
-
|
|
42068
|
-
:host([main-background="groen"]) {
|
|
42069
|
-
--_hero-main-background-color: var(--semantics-categories-groen-reference-background-color);
|
|
42070
|
-
--_hero-main-content-color: var(--semantics-categories-groen-reference-content-color);
|
|
42071
|
-
}
|
|
42072
|
-
|
|
42073
|
-
:host([main-background="mosgroen"]) {
|
|
42074
|
-
--_hero-main-background-color: var(--semantics-categories-mosgroen-reference-background-color);
|
|
42075
|
-
--_hero-main-content-color: var(--semantics-categories-mosgroen-reference-content-color);
|
|
42076
|
-
}
|
|
42077
|
-
|
|
42078
|
-
:host([main-background="mintgroen"]) {
|
|
42079
|
-
--_hero-main-background-color: var(--semantics-categories-mintgroen-reference-background-color);
|
|
42080
|
-
--_hero-main-content-color: var(--semantics-categories-mintgroen-reference-content-color);
|
|
42081
|
-
}
|
|
42082
|
-
|
|
42083
42165
|
|
|
42084
42166
|
/* # Block */
|
|
42085
42167
|
|
|
@@ -42097,7 +42179,7 @@ var heroStyles = css`
|
|
|
42097
42179
|
|
|
42098
42180
|
@container (max-width: ${smMax$12}) {
|
|
42099
42181
|
padding-inline: var(--semantics-page-sections-sm-margin-inline);
|
|
42100
|
-
padding-top: var(--_hero-sm-padding-top, var(--_hero-padding-top,
|
|
42182
|
+
padding-top: var(--_hero-sm-padding-top, var(--_hero-padding-top, var(--semantics-page-sections-sm-margin-block)));
|
|
42101
42183
|
padding-bottom: var(--_hero-sm-padding-bottom, var(--_hero-padding-bottom, var(--semantics-page-sections-sm-margin-block)));
|
|
42102
42184
|
}
|
|
42103
42185
|
|
|
@@ -42387,10 +42469,10 @@ function heroTemplate(component) {
|
|
|
42387
42469
|
}
|
|
42388
42470
|
//#endregion
|
|
42389
42471
|
//#region src/components/layout/page-sections/hero/hero-corner.styles.ts
|
|
42390
|
-
var smMax$11 = unsafeCSS(
|
|
42391
|
-
var mdMin$10 = unsafeCSS(
|
|
42392
|
-
var mdMax$8 = unsafeCSS(
|
|
42393
|
-
var lgMin$9 = unsafeCSS(
|
|
42472
|
+
var smMax$11 = unsafeCSS(queryBreakpoints.smMax);
|
|
42473
|
+
var mdMin$10 = unsafeCSS(queryBreakpoints.mdMin);
|
|
42474
|
+
var mdMax$8 = unsafeCSS(queryBreakpoints.mdMax);
|
|
42475
|
+
var lgMin$9 = unsafeCSS(queryBreakpoints.lgMin);
|
|
42394
42476
|
var heroCornerStyles = css`
|
|
42395
42477
|
|
|
42396
42478
|
|
|
@@ -42398,12 +42480,15 @@ var heroCornerStyles = css`
|
|
|
42398
42480
|
|
|
42399
42481
|
:host([data-media-corner]) {
|
|
42400
42482
|
--_hero-corner-radius: calc(var(--semantics-brand-ribbon-sm-width) * 1.5);
|
|
42483
|
+
--_hero-media-corner-limit: initial;
|
|
42484
|
+
--_hero-main-corner-limit: initial;
|
|
42401
42485
|
}
|
|
42402
42486
|
|
|
42403
42487
|
/* On .hero, not :host: a var() resolves where it is declared, so on :host
|
|
42404
42488
|
this would halve the sm radius at every breakpoint. */
|
|
42405
42489
|
:host([data-media-corner]) .hero {
|
|
42406
|
-
--_hero-
|
|
42490
|
+
--_hero-media-corner-radius: min(var(--_hero-corner-radius), var(--_hero-media-corner-limit, var(--_hero-corner-radius)));
|
|
42491
|
+
--_hero-main-corner-radius: calc(var(--_hero-media-corner-radius) / 2);
|
|
42407
42492
|
|
|
42408
42493
|
@container (min-width: ${mdMin$10}) and (max-width: ${mdMax$8}) {
|
|
42409
42494
|
--_hero-corner-radius: calc(var(--semantics-brand-ribbon-md-width) * 2);
|
|
@@ -42414,6 +42499,10 @@ var heroCornerStyles = css`
|
|
|
42414
42499
|
}
|
|
42415
42500
|
}
|
|
42416
42501
|
|
|
42502
|
+
:host([data-media-corner]:not([data-has-media])) .hero {
|
|
42503
|
+
--_hero-main-corner-radius: min(var(--_hero-corner-radius) / 2, var(--_hero-main-corner-limit, var(--_hero-corner-radius)));
|
|
42504
|
+
}
|
|
42505
|
+
|
|
42417
42506
|
/* ## Contained */
|
|
42418
42507
|
|
|
42419
42508
|
:host([data-media-corner][data-has-media]) .hero {
|
|
@@ -42437,30 +42526,30 @@ var heroCornerStyles = css`
|
|
|
42437
42526
|
/* ## Media */
|
|
42438
42527
|
|
|
42439
42528
|
:host([data-has-media][data-media-corner="top-left"]) .hero__media {
|
|
42440
|
-
border-top-left-radius: var(--_hero-corner-radius);
|
|
42529
|
+
border-top-left-radius: var(--_hero-media-corner-radius);
|
|
42441
42530
|
}
|
|
42442
42531
|
|
|
42443
42532
|
:host([data-has-media][data-media-corner="top-right"]) .hero__media {
|
|
42444
|
-
border-top-right-radius: var(--_hero-corner-radius);
|
|
42533
|
+
border-top-right-radius: var(--_hero-media-corner-radius);
|
|
42445
42534
|
}
|
|
42446
42535
|
|
|
42447
42536
|
:host([data-has-media][data-media-corner="bottom-left"]) .hero__media {
|
|
42448
42537
|
@container (min-width: ${mdMin$10}) {
|
|
42449
|
-
border-bottom-left-radius: var(--_hero-corner-radius);
|
|
42538
|
+
border-bottom-left-radius: var(--_hero-media-corner-radius);
|
|
42450
42539
|
}
|
|
42451
42540
|
|
|
42452
42541
|
@container (max-width: ${smMax$11}) {
|
|
42453
|
-
border-top-left-radius: var(--_hero-corner-radius);
|
|
42542
|
+
border-top-left-radius: var(--_hero-media-corner-radius);
|
|
42454
42543
|
}
|
|
42455
42544
|
}
|
|
42456
42545
|
|
|
42457
42546
|
:host([data-has-media][data-media-corner="bottom-right"]) .hero__media {
|
|
42458
42547
|
@container (min-width: ${mdMin$10}) {
|
|
42459
|
-
border-bottom-right-radius: var(--_hero-corner-radius);
|
|
42548
|
+
border-bottom-right-radius: var(--_hero-media-corner-radius);
|
|
42460
42549
|
}
|
|
42461
42550
|
|
|
42462
42551
|
@container (max-width: ${smMax$11}) {
|
|
42463
|
-
border-top-right-radius: var(--_hero-corner-radius);
|
|
42552
|
+
border-top-right-radius: var(--_hero-media-corner-radius);
|
|
42464
42553
|
}
|
|
42465
42554
|
}
|
|
42466
42555
|
|
|
@@ -42493,27 +42582,27 @@ var heroCornerStyles = css`
|
|
|
42493
42582
|
/* ## Without media */
|
|
42494
42583
|
|
|
42495
42584
|
:host(:not([data-has-media])[data-media-corner="top-left"]) :is(.hero__body, .hero__main) {
|
|
42496
|
-
border-top-left-radius: var(--_hero-corner-radius);
|
|
42585
|
+
border-top-left-radius: var(--_hero-main-corner-radius);
|
|
42497
42586
|
}
|
|
42498
42587
|
|
|
42499
42588
|
:host(:not([data-has-media])[data-media-corner="top-right"]) :is(.hero__body, .hero__main) {
|
|
42500
|
-
border-top-right-radius: var(--_hero-corner-radius);
|
|
42589
|
+
border-top-right-radius: var(--_hero-main-corner-radius);
|
|
42501
42590
|
}
|
|
42502
42591
|
|
|
42503
42592
|
:host(:not([data-has-media])[data-media-corner="bottom-left"]) :is(.hero__body, .hero__main) {
|
|
42504
|
-
border-bottom-left-radius: var(--_hero-corner-radius);
|
|
42593
|
+
border-bottom-left-radius: var(--_hero-main-corner-radius);
|
|
42505
42594
|
}
|
|
42506
42595
|
|
|
42507
42596
|
:host(:not([data-has-media])[data-media-corner="bottom-right"]) :is(.hero__body, .hero__main) {
|
|
42508
|
-
border-bottom-right-radius: var(--_hero-corner-radius);
|
|
42597
|
+
border-bottom-right-radius: var(--_hero-main-corner-radius);
|
|
42509
42598
|
}
|
|
42510
42599
|
|
|
42511
42600
|
:host(:not([data-has-media]):is([data-media-corner="top-left"], [data-media-corner="bottom-left"])) .hero__main {
|
|
42512
|
-
padding-left: calc(var(--_hero-main-padding) + var(--_hero-corner-radius) / 2);
|
|
42601
|
+
padding-left: calc(var(--_hero-main-padding) + var(--_hero-main-corner-radius) / 2);
|
|
42513
42602
|
}
|
|
42514
42603
|
|
|
42515
42604
|
:host(:not([data-has-media]):is([data-media-corner="top-right"], [data-media-corner="bottom-right"])) .hero__main {
|
|
42516
|
-
padding-right: calc(var(--_hero-main-padding) + var(--_hero-corner-radius) / 2);
|
|
42605
|
+
padding-right: calc(var(--_hero-main-padding) + var(--_hero-main-corner-radius) / 2);
|
|
42517
42606
|
}
|
|
42518
42607
|
`;
|
|
42519
42608
|
//#endregion
|
|
@@ -42532,6 +42621,9 @@ var AUTO_MEDIA_CORNER = {
|
|
|
42532
42621
|
"left": "top-right",
|
|
42533
42622
|
"right": "top-left"
|
|
42534
42623
|
};
|
|
42624
|
+
function autoCornerWithoutMedia(position) {
|
|
42625
|
+
return position.endsWith("right") ? "top-left" : "top-right";
|
|
42626
|
+
}
|
|
42535
42627
|
var MAIN_CORNER = {
|
|
42536
42628
|
"bottom-left": "top-right",
|
|
42537
42629
|
"bottom-right": "top-left",
|
|
@@ -42572,7 +42664,7 @@ function applyCorner(host) {
|
|
|
42572
42664
|
const value = host.corner.trim();
|
|
42573
42665
|
const chosen = CORNERS.includes(value) ? value : null;
|
|
42574
42666
|
const covered = host._hasMedia ? coveredCorners(host, position) : [];
|
|
42575
|
-
let mediaCorner = chosen ?? AUTO_MEDIA_CORNER[position];
|
|
42667
|
+
let mediaCorner = chosen ?? (host._hasMedia ? AUTO_MEDIA_CORNER[position] : autoCornerWithoutMedia(host.mainPosition));
|
|
42576
42668
|
if (!chosen && covered.includes(mediaCorner)) {
|
|
42577
42669
|
const horizontal = mediaCorner.endsWith("left") ? "left" : "right";
|
|
42578
42670
|
mediaCorner = `${mediaCorner.startsWith("top") ? "bottom" : "top"}-${horizontal}`;
|
|
@@ -42582,6 +42674,27 @@ function applyCorner(host) {
|
|
|
42582
42674
|
if (mainCorner) host.setAttribute("data-main-corner", mainCorner);
|
|
42583
42675
|
else host.removeAttribute("data-main-corner");
|
|
42584
42676
|
}
|
|
42677
|
+
var LIMITS = ["--_hero-media-corner-limit", "--_hero-main-corner-limit"];
|
|
42678
|
+
/**
|
|
42679
|
+
* Caps the radius at a third of the shortest side of the area it rounds, so a
|
|
42680
|
+
* low hero (a single title without media, a small `media-height`) keeps a
|
|
42681
|
+
* corner rather than turning into a drop. Fed by a ResizeObserver on the media
|
|
42682
|
+
* and the panel; the panel's own limit only counts without media, where it is
|
|
42683
|
+
* the whole hero. An area that is not shown measures zero and keeps its limit.
|
|
42684
|
+
*/
|
|
42685
|
+
function limitCorner(host, entries) {
|
|
42686
|
+
for (const entry of entries) {
|
|
42687
|
+
const box = entry.borderBoxSize?.[0];
|
|
42688
|
+
const width = box?.inlineSize ?? entry.contentRect.width;
|
|
42689
|
+
const height = box?.blockSize ?? entry.contentRect.height;
|
|
42690
|
+
if (!width || !height) continue;
|
|
42691
|
+
const limit = entry.target.classList.contains("hero__media") ? LIMITS[0] : LIMITS[1];
|
|
42692
|
+
host.style.setProperty(limit, `${Math.min(width, height) / 3}px`);
|
|
42693
|
+
}
|
|
42694
|
+
}
|
|
42695
|
+
function clearCornerLimits(host) {
|
|
42696
|
+
for (const limit of LIMITS) host.style.removeProperty(limit);
|
|
42697
|
+
}
|
|
42585
42698
|
//#endregion
|
|
42586
42699
|
//#region src/components/layout/page-sections/hero/hero.ts
|
|
42587
42700
|
/**
|
|
@@ -42605,11 +42718,12 @@ function applyCorner(host) {
|
|
|
42605
42718
|
* `main-background="base"` that area gets a border so it stays visible on the
|
|
42606
42719
|
* base surface.
|
|
42607
42720
|
*
|
|
42608
|
-
* The hero is the head of a page and sits right under the top bar, so
|
|
42609
|
-
* padding is half that of the other page sections: the full
|
|
42610
|
-
* to separate two sections, and under the top bar it reads
|
|
42611
|
-
*
|
|
42612
|
-
*
|
|
42721
|
+
* The hero is the head of a page and sits right under the top bar, so on md
|
|
42722
|
+
* and lg its top padding is half that of the other page sections: the full
|
|
42723
|
+
* distance is meant to separate two sections, and under the top bar it reads
|
|
42724
|
+
* as a gap. On sm the top keeps the full distance, as the other sections do.
|
|
42725
|
+
* The bottom keeps the full distance to the section below. Set `padding-top`
|
|
42726
|
+
* to place a hero elsewhere.
|
|
42613
42727
|
*
|
|
42614
42728
|
* By default the panel falls over the bottom of the image and runs on below it
|
|
42615
42729
|
* (`layout="overlap"`), so the image keeps its height whatever the content.
|
|
@@ -42621,21 +42735,22 @@ function applyCorner(host) {
|
|
|
42621
42735
|
* a minimum height for the whole hero it stretched the panel once that sat
|
|
42622
42736
|
* below the image. A hero given `height` says so in development.
|
|
42623
42737
|
*
|
|
42624
|
-
*
|
|
42625
|
-
*
|
|
42626
|
-
* `color="inherit"` (title, rich-text) are guaranteed to keep their
|
|
42738
|
+
* The panel takes the accent color of the theme, closest to its reference
|
|
42739
|
+
* color in both modes, with a pure white or black content color, so components
|
|
42740
|
+
* with `color="inherit"` (title, rich-text) are guaranteed to keep their
|
|
42741
|
+
* contrast. `main-background="base"` gives it the base surface instead. A
|
|
42742
|
+
* Rijkshuisstijl color per hero is gone: the theme picks the color for the
|
|
42743
|
+
* whole site, and a hero given one says so in development.
|
|
42627
42744
|
*
|
|
42628
42745
|
* @element nldd-hero
|
|
42629
42746
|
*
|
|
42630
|
-
* @attr {'inherit'|'base'|'tinted'} background - Surface behind the hero (section API)
|
|
42747
|
+
* @attr {'inherit'|'base'|'tinted'|'accent-tinted'} background - Surface behind the hero (section API)
|
|
42631
42748
|
* @attr {string} width - Body max-width; 'full' removes the bound (section API)
|
|
42632
42749
|
* @attr {boolean} grow - Takes the height the page has left, so the footer sits at the bottom of a short page. Without it, nldd-page lets its last section grow.
|
|
42633
42750
|
* @attr {string} padding-block - Block padding override, also per edge and responsive (section API)
|
|
42634
|
-
* @attr {string} corner - Rounds one corner of the media area, in the shape language of the Rijkshuisstijl: 'top-left' | 'top-right' | 'bottom-left' | 'bottom-right', or empty (or 'auto') to let the hero choose a corner the panel leaves free.
|
|
42751
|
+
* @attr {string} corner - Rounds one corner of the media area, in the shape language of the Rijkshuisstijl: 'top-left' | 'top-right' | 'bottom-left' | 'bottom-right', or empty (or 'auto') to let the hero choose a corner the panel leaves free. With media it applies with `layout="contained"` and the panel in a corner or along a side; with overlap or a centered panel the hero stays rectangular and says so in development. The panel stands against the edge of the image, so a `main-width` in percent (33.33%, 50%) is a share of the image, and gets a corner at half the radius, the one pointing into the image; a panel along a full side, a `main-width="full"` strip and the panel on mobile stay square. On mobile a bottom corner moves to the top. Without media the panel is the whole hero: the corner applies in every layout and position, at half the radius, and the hero chooses top-right, or top-left for a panel on the right. The radius comes from the ribbon width: 1.5X on sm, 2X on md and lg, and is never more than a third of the shortest side of the area it rounds, so a low hero keeps a corner rather than a drop. Says so in development when the chosen corner sits under the panel, or with `width="full"`
|
|
42635
42752
|
* @attr {'contained'|'overlap'} layout - How the panel relates to the image (default: 'overlap'). 'contained' keeps it on the image, in any of the eight positions; 'overlap' lets it fall `overlap-size` over the bottom of the image and run on below as far as its content needs, so the image keeps its height whatever the content. In 'overlap' the image has a fixed height (320px on md, 400px on lg) unless `media-height` or `media-aspect-ratio` is set, and only the horizontal side of `main-position` counts. A panel shorter than `overlap-size` ends inside the image and says so in development
|
|
42636
|
-
* @attr {
|
|
42637
|
-
* or a category color — 'accent' (default) or a Rijkshuisstijl color such as
|
|
42638
|
-
* 'lintblauw'|'donkerblauw'|'oranje'
|
|
42753
|
+
* @attr {'accent'|'base'} main-background - Surface color of the panel: 'accent' (default), the accent color of the theme, or 'base', the base surface
|
|
42639
42754
|
* @attr {string} main-width - Width of the panel (default: 'auto'). 'auto' follows the content, between 480px and 640px and never wider than the image allows: a short title gets a narrow panel, a paragraph runs on to a readable line length. 'full' makes a strip across the whole image, at the top or the bottom, and is ignored with 'left'/'right'. Any CSS width (e.g. '560px', '60%') sets it exactly on md and lg, still never wider than the image allows; an invalid value falls back to 'auto'
|
|
42640
42755
|
* @attr {'top-left'|'top-center'|'top-right'|'bottom-left'|'bottom-center'|'bottom-right'|'left'|'right'} main-position -
|
|
42641
42756
|
* Position of the text panel (default: 'bottom-left'); 'left'/'right' span the full height
|
|
@@ -42655,7 +42770,7 @@ function applyCorner(host) {
|
|
|
42655
42770
|
* @slot - Content of the text panel (nldd-title and nldd-rich-text with color="inherit", for instance)
|
|
42656
42771
|
*/
|
|
42657
42772
|
var _NLDDHero;
|
|
42658
|
-
var CSS_WIDE_KEYWORDS = /* @__PURE__ */ new Set([
|
|
42773
|
+
var CSS_WIDE_KEYWORDS$1 = /* @__PURE__ */ new Set([
|
|
42659
42774
|
"inherit",
|
|
42660
42775
|
"initial",
|
|
42661
42776
|
"unset",
|
|
@@ -42669,7 +42784,7 @@ var CSS_WIDE_KEYWORDS = /* @__PURE__ */ new Set([
|
|
|
42669
42784
|
* something else.
|
|
42670
42785
|
*/
|
|
42671
42786
|
function takesValue(property, value) {
|
|
42672
|
-
return !CSS_WIDE_KEYWORDS.has(value.trim().toLowerCase()) && CSS.supports(property, value);
|
|
42787
|
+
return !CSS_WIDE_KEYWORDS$1.has(value.trim().toLowerCase()) && CSS.supports(property, value);
|
|
42673
42788
|
}
|
|
42674
42789
|
var NLDDHero = (_NLDDHero = class NLDDHero extends PageSectionMixin(LitElement) {
|
|
42675
42790
|
constructor(..._args) {
|
|
@@ -42688,6 +42803,7 @@ var NLDDHero = (_NLDDHero = class NLDDHero extends PageSectionMixin(LitElement)
|
|
|
42688
42803
|
this.mediaSizes = "";
|
|
42689
42804
|
this.mediaAlt = "";
|
|
42690
42805
|
this._slotHasMedia = false;
|
|
42806
|
+
this._cornerObserver = null;
|
|
42691
42807
|
this._warnedHeight = false;
|
|
42692
42808
|
this._overlapObserver = null;
|
|
42693
42809
|
this._warnedOverlap = false;
|
|
@@ -42703,11 +42819,14 @@ var NLDDHero = (_NLDDHero = class NLDDHero extends PageSectionMixin(LitElement)
|
|
|
42703
42819
|
}
|
|
42704
42820
|
connectedCallback() {
|
|
42705
42821
|
super.connectedCallback();
|
|
42822
|
+
if (this.hasUpdated) this._watchCorner();
|
|
42706
42823
|
}
|
|
42707
42824
|
disconnectedCallback() {
|
|
42708
42825
|
super.disconnectedCallback();
|
|
42709
42826
|
this._overlapObserver?.disconnect();
|
|
42710
42827
|
this._overlapObserver = null;
|
|
42828
|
+
this._cornerObserver?.disconnect();
|
|
42829
|
+
this._cornerObserver = null;
|
|
42711
42830
|
this._warnedOverlap = false;
|
|
42712
42831
|
}
|
|
42713
42832
|
updated(changed) {
|
|
@@ -42717,6 +42836,7 @@ var NLDDHero = (_NLDDHero = class NLDDHero extends PageSectionMixin(LitElement)
|
|
|
42717
42836
|
if (w && w !== "full" && takesValue("max-width", w)) this.style.setProperty("--_hero-max-width", w);
|
|
42718
42837
|
else this.style.removeProperty("--_hero-max-width");
|
|
42719
42838
|
}
|
|
42839
|
+
if (changed.has("corner")) this._watchCorner();
|
|
42720
42840
|
if (changed.has("mainWidth")) {
|
|
42721
42841
|
const width = (this.mainWidth ?? "").trim();
|
|
42722
42842
|
const valid = width !== "" && width !== "auto" && width !== "full" && takesValue("width", width);
|
|
@@ -42741,6 +42861,21 @@ var NLDDHero = (_NLDDHero = class NLDDHero extends PageSectionMixin(LitElement)
|
|
|
42741
42861
|
else this.style.removeProperty("--_hero-media-aspect-ratio");
|
|
42742
42862
|
}
|
|
42743
42863
|
}
|
|
42864
|
+
_watchCorner() {
|
|
42865
|
+
if (!(this.corner !== null && this.corner !== void 0 && typeof ResizeObserver !== "undefined")) {
|
|
42866
|
+
this._cornerObserver?.disconnect();
|
|
42867
|
+
this._cornerObserver = null;
|
|
42868
|
+
clearCornerLimits(this);
|
|
42869
|
+
return;
|
|
42870
|
+
}
|
|
42871
|
+
if (this._cornerObserver) return;
|
|
42872
|
+
const media = this.shadowRoot?.querySelector(".hero__media");
|
|
42873
|
+
const main = this.shadowRoot?.querySelector(".hero__main");
|
|
42874
|
+
if (!media || !main) return;
|
|
42875
|
+
this._cornerObserver = new ResizeObserver((entries) => limitCorner(this, entries));
|
|
42876
|
+
this._cornerObserver.observe(media);
|
|
42877
|
+
this._cornerObserver.observe(main);
|
|
42878
|
+
}
|
|
42744
42879
|
_watchOverlap() {
|
|
42745
42880
|
if (!(this.layout !== "contained" && typeof ResizeObserver !== "undefined")) {
|
|
42746
42881
|
this._overlapObserver?.disconnect();
|
|
@@ -42841,10 +42976,10 @@ __decorate([state()], NLDDHero.prototype, "_slotHasMedia", void 0);
|
|
|
42841
42976
|
NLDDHero = __decorate([customElement("nldd-hero")], NLDDHero);
|
|
42842
42977
|
//#endregion
|
|
42843
42978
|
//#region src/components/layout/page-sections/full-bleed-section/full-bleed-section.styles.ts
|
|
42844
|
-
var smMax$10 = unsafeCSS(
|
|
42845
|
-
var mdMin$9 = unsafeCSS(
|
|
42846
|
-
var mdMax$7 = unsafeCSS(
|
|
42847
|
-
var lgMin$8 = unsafeCSS(
|
|
42979
|
+
var smMax$10 = unsafeCSS(queryBreakpoints.smMax);
|
|
42980
|
+
var mdMin$9 = unsafeCSS(queryBreakpoints.mdMin);
|
|
42981
|
+
var mdMax$7 = unsafeCSS(queryBreakpoints.mdMax);
|
|
42982
|
+
var lgMin$8 = unsafeCSS(queryBreakpoints.lgMin);
|
|
42848
42983
|
var fullBleedSectionStyles = css`
|
|
42849
42984
|
:host {
|
|
42850
42985
|
box-sizing: border-box;
|
|
@@ -42991,7 +43126,7 @@ function fullBleedSectionTemplate(component) {
|
|
|
42991
43126
|
*
|
|
42992
43127
|
* @element nldd-full-bleed-section
|
|
42993
43128
|
*
|
|
42994
|
-
* @attr {'inherit'|'base'|'tinted'} [background] - Surface background ('inherit' default; 'base'
|
|
43129
|
+
* @attr {'inherit'|'base'|'tinted'|'accent-tinted'} [background] - Surface background ('inherit' default; 'base', 'tinted' and 'accent-tinted', a tint of the theme's accent with the contrast of 'tinted', paint and cascade a surface).
|
|
42995
43130
|
* @attr {string} [width] - Body max-width: 'full' removes the constraint so the section spans the full available width. Any CSS length (e.g. '480px') overrides the default max-width.
|
|
42996
43131
|
* @attr {string} [height] - Minimum section height (any CSS length, e.g. '400px', '100dvh') (mirrors width, which sets the body max-width).
|
|
42997
43132
|
* @attr {boolean} grow - Takes the height the page has left, so the footer sits at the bottom of a short page. Without it, nldd-page lets its last section grow.
|
|
@@ -43029,10 +43164,10 @@ __decorate([property({
|
|
|
43029
43164
|
NLDDFullBleedSection = __decorate([customElement("nldd-full-bleed-section")], NLDDFullBleedSection);
|
|
43030
43165
|
//#endregion
|
|
43031
43166
|
//#region src/components/layout/page-sections/one-third-two-thirds-section/one-third-two-thirds-section.styles.ts
|
|
43032
|
-
var smMax$9 = unsafeCSS(
|
|
43033
|
-
var mdMin$8 = unsafeCSS(
|
|
43034
|
-
var mdMax$6 = unsafeCSS(
|
|
43035
|
-
var lgMin$7 = unsafeCSS(
|
|
43167
|
+
var smMax$9 = unsafeCSS(queryBreakpoints.smMax);
|
|
43168
|
+
var mdMin$8 = unsafeCSS(queryBreakpoints.mdMin);
|
|
43169
|
+
var mdMax$6 = unsafeCSS(queryBreakpoints.mdMax);
|
|
43170
|
+
var lgMin$7 = unsafeCSS(queryBreakpoints.lgMin);
|
|
43036
43171
|
var oneThirdTwoThirdsSectionStyles = css`
|
|
43037
43172
|
:host {
|
|
43038
43173
|
box-sizing: border-box;
|
|
@@ -43139,7 +43274,7 @@ var oneThirdTwoThirdsSectionStyles = css`
|
|
|
43139
43274
|
two near-equal columns; stack to a single column instead. nowrap
|
|
43140
43275
|
stops the column-direction wrap container from stretching the
|
|
43141
43276
|
shorter column to fill height. */
|
|
43142
|
-
@container (max-width:
|
|
43277
|
+
@container (max-width: 48rem) {
|
|
43143
43278
|
flex-direction: column;
|
|
43144
43279
|
flex-wrap: nowrap;
|
|
43145
43280
|
}
|
|
@@ -43158,13 +43293,13 @@ var oneThirdTwoThirdsSectionStyles = css`
|
|
|
43158
43293
|
}
|
|
43159
43294
|
|
|
43160
43295
|
:host([vertical-alignment="center"]) .one-third-two-thirds-section__columns {
|
|
43161
|
-
@container (min-width:
|
|
43296
|
+
@container (min-width: 48.0625rem) {
|
|
43162
43297
|
align-items: center;
|
|
43163
43298
|
}
|
|
43164
43299
|
}
|
|
43165
43300
|
|
|
43166
43301
|
:host([vertical-alignment="bottom"]) .one-third-two-thirds-section__columns {
|
|
43167
|
-
@container (min-width:
|
|
43302
|
+
@container (min-width: 48.0625rem) {
|
|
43168
43303
|
align-items: flex-end;
|
|
43169
43304
|
}
|
|
43170
43305
|
}
|
|
@@ -43229,7 +43364,7 @@ function oneThirdTwoThirdsSectionTemplate(component) {
|
|
|
43229
43364
|
*
|
|
43230
43365
|
* @element nldd-one-third-two-thirds-section
|
|
43231
43366
|
*
|
|
43232
|
-
* @attr {'inherit'|'base'|'tinted'} [background] - Surface background ('inherit' default; 'base'
|
|
43367
|
+
* @attr {'inherit'|'base'|'tinted'|'accent-tinted'} [background] - Surface background ('inherit' default; 'base', 'tinted' and 'accent-tinted', a tint of the theme's accent with the contrast of 'tinted', paint and cascade a surface).
|
|
43233
43368
|
* @attr {string} [width] - Body max-width: 'full' removes the constraint so the section spans the full available width. Any CSS length (e.g. '480px') overrides the default max-width.
|
|
43234
43369
|
* @attr {string} [height] - Minimum section height (any CSS length, e.g. '400px', '100dvh') (mirrors width, which sets the body max-width).
|
|
43235
43370
|
* @attr {boolean} grow - Takes the height the page has left, so the footer sits at the bottom of a short page. Without it, nldd-page lets its last section grow.
|
|
@@ -43276,10 +43411,10 @@ __decorate([property({
|
|
|
43276
43411
|
NLDDOneThirdTwoThirdsSection = __decorate([customElement("nldd-one-third-two-thirds-section")], NLDDOneThirdTwoThirdsSection);
|
|
43277
43412
|
//#endregion
|
|
43278
43413
|
//#region src/components/layout/page-sections/two-thirds-one-third-section/two-thirds-one-third-section.styles.ts
|
|
43279
|
-
var smMax$8 = unsafeCSS(
|
|
43280
|
-
var mdMin$7 = unsafeCSS(
|
|
43281
|
-
var mdMax$5 = unsafeCSS(
|
|
43282
|
-
var lgMin$6 = unsafeCSS(
|
|
43414
|
+
var smMax$8 = unsafeCSS(queryBreakpoints.smMax);
|
|
43415
|
+
var mdMin$7 = unsafeCSS(queryBreakpoints.mdMin);
|
|
43416
|
+
var mdMax$5 = unsafeCSS(queryBreakpoints.mdMax);
|
|
43417
|
+
var lgMin$6 = unsafeCSS(queryBreakpoints.lgMin);
|
|
43283
43418
|
var twoThirdsOneThirdSectionStyles = css`
|
|
43284
43419
|
:host {
|
|
43285
43420
|
box-sizing: border-box;
|
|
@@ -43386,7 +43521,7 @@ var twoThirdsOneThirdSectionStyles = css`
|
|
|
43386
43521
|
two near-equal columns; stack to a single column instead. nowrap
|
|
43387
43522
|
stops the column-direction wrap container from stretching the
|
|
43388
43523
|
shorter column to fill height. */
|
|
43389
|
-
@container (max-width:
|
|
43524
|
+
@container (max-width: 48rem) {
|
|
43390
43525
|
flex-direction: column;
|
|
43391
43526
|
flex-wrap: nowrap;
|
|
43392
43527
|
}
|
|
@@ -43405,13 +43540,13 @@ var twoThirdsOneThirdSectionStyles = css`
|
|
|
43405
43540
|
}
|
|
43406
43541
|
|
|
43407
43542
|
:host([vertical-alignment="center"]) .two-thirds-one-third-section__columns {
|
|
43408
|
-
@container (min-width:
|
|
43543
|
+
@container (min-width: 48.0625rem) {
|
|
43409
43544
|
align-items: center;
|
|
43410
43545
|
}
|
|
43411
43546
|
}
|
|
43412
43547
|
|
|
43413
43548
|
:host([vertical-alignment="bottom"]) .two-thirds-one-third-section__columns {
|
|
43414
|
-
@container (min-width:
|
|
43549
|
+
@container (min-width: 48.0625rem) {
|
|
43415
43550
|
align-items: flex-end;
|
|
43416
43551
|
}
|
|
43417
43552
|
}
|
|
@@ -43476,7 +43611,7 @@ function twoThirdsOneThirdSectionTemplate(component) {
|
|
|
43476
43611
|
*
|
|
43477
43612
|
* @element nldd-two-thirds-one-third-section
|
|
43478
43613
|
*
|
|
43479
|
-
* @attr {'inherit'|'base'|'tinted'} [background] - Surface background ('inherit' default; 'base'
|
|
43614
|
+
* @attr {'inherit'|'base'|'tinted'|'accent-tinted'} [background] - Surface background ('inherit' default; 'base', 'tinted' and 'accent-tinted', a tint of the theme's accent with the contrast of 'tinted', paint and cascade a surface).
|
|
43480
43615
|
* @attr {string} [width] - Body max-width: 'full' removes the constraint so the section spans the full available width. Any CSS length (e.g. '480px') overrides the default max-width.
|
|
43481
43616
|
* @attr {string} [height] - Minimum section height (any CSS length, e.g. '400px', '100dvh') (mirrors width, which sets the body max-width).
|
|
43482
43617
|
* @attr {boolean} grow - Takes the height the page has left, so the footer sits at the bottom of a short page. Without it, nldd-page lets its last section grow.
|
|
@@ -43523,10 +43658,10 @@ __decorate([property({
|
|
|
43523
43658
|
NLDDTwoThirdsOneThirdSection = __decorate([customElement("nldd-two-thirds-one-third-section")], NLDDTwoThirdsOneThirdSection);
|
|
43524
43659
|
//#endregion
|
|
43525
43660
|
//#region src/components/layout/page-sections/one-half-one-half-section/one-half-one-half-section.styles.ts
|
|
43526
|
-
var smMax$7 = unsafeCSS(
|
|
43527
|
-
var mdMin$6 = unsafeCSS(
|
|
43528
|
-
var mdMax$4 = unsafeCSS(
|
|
43529
|
-
var lgMin$5 = unsafeCSS(
|
|
43661
|
+
var smMax$7 = unsafeCSS(queryBreakpoints.smMax);
|
|
43662
|
+
var mdMin$6 = unsafeCSS(queryBreakpoints.mdMin);
|
|
43663
|
+
var mdMax$4 = unsafeCSS(queryBreakpoints.mdMax);
|
|
43664
|
+
var lgMin$5 = unsafeCSS(queryBreakpoints.lgMin);
|
|
43530
43665
|
var oneHalfOneHalfSectionStyles = css`
|
|
43531
43666
|
:host {
|
|
43532
43667
|
box-sizing: border-box;
|
|
@@ -43710,7 +43845,7 @@ function oneHalfOneHalfSectionTemplate(component) {
|
|
|
43710
43845
|
*
|
|
43711
43846
|
* @element nldd-one-half-one-half-section
|
|
43712
43847
|
*
|
|
43713
|
-
* @attr {'inherit'|'base'|'tinted'} [background] - Surface background ('inherit' default; 'base'
|
|
43848
|
+
* @attr {'inherit'|'base'|'tinted'|'accent-tinted'} [background] - Surface background ('inherit' default; 'base', 'tinted' and 'accent-tinted', a tint of the theme's accent with the contrast of 'tinted', paint and cascade a surface).
|
|
43714
43849
|
* @attr {string} [width] - Body max-width: 'full' removes the constraint so the section spans the full available width. Any CSS length (e.g. '480px') overrides the default max-width.
|
|
43715
43850
|
* @attr {string} [height] - Minimum section height (any CSS length, e.g. '400px', '100dvh') (mirrors width, which sets the body max-width).
|
|
43716
43851
|
* @attr {boolean} grow - Takes the height the page has left, so the footer sits at the bottom of a short page. Without it, nldd-page lets its last section grow.
|
|
@@ -43757,10 +43892,10 @@ __decorate([property({
|
|
|
43757
43892
|
NLDDOneHalfOneHalfSection = __decorate([customElement("nldd-one-half-one-half-section")], NLDDOneHalfOneHalfSection);
|
|
43758
43893
|
//#endregion
|
|
43759
43894
|
//#region src/components/layout/page-sections/sidebar-section/sidebar-section.styles.ts
|
|
43760
|
-
var smMax$6 = unsafeCSS(
|
|
43761
|
-
var mdMin$5 = unsafeCSS(
|
|
43762
|
-
var mdMax$3 = unsafeCSS(
|
|
43763
|
-
var lgMin$4 = unsafeCSS(
|
|
43895
|
+
var smMax$6 = unsafeCSS(queryBreakpoints.smMax);
|
|
43896
|
+
var mdMin$5 = unsafeCSS(queryBreakpoints.mdMin);
|
|
43897
|
+
var mdMax$3 = unsafeCSS(queryBreakpoints.mdMax);
|
|
43898
|
+
var lgMin$4 = unsafeCSS(queryBreakpoints.lgMin);
|
|
43764
43899
|
var sidebarSectionStyles = css`
|
|
43765
43900
|
:host {
|
|
43766
43901
|
box-sizing: border-box;
|
|
@@ -43923,7 +44058,7 @@ var sidebarSectionStyles = css`
|
|
|
43923
44058
|
box-sizing: border-box;
|
|
43924
44059
|
border-radius: var(--semantics-surfaces-corner-radius);
|
|
43925
44060
|
background-color: var(--_sidebar-section-sidebar-box-background-color);
|
|
43926
|
-
box-shadow: inset 0 0 0 var(--semantics-surfaces-border-width) var(--_sidebar-section-sidebar-box-border-color);
|
|
44061
|
+
box-shadow: inset 0 0 0 var(--semantics-surfaces-highlight-border-width) var(--_sidebar-section-sidebar-box-border-color);
|
|
43927
44062
|
|
|
43928
44063
|
@container (min-width: ${lgMin$4}) {
|
|
43929
44064
|
position: sticky;
|
|
@@ -44007,9 +44142,9 @@ var nlddSidebarSectionTranslations = {
|
|
|
44007
44142
|
};
|
|
44008
44143
|
//#endregion
|
|
44009
44144
|
//#region src/components/layout/sheet/sheet.styles.ts
|
|
44010
|
-
var smMax$5 = unsafeCSS(
|
|
44011
|
-
var mdMin$4 = unsafeCSS(
|
|
44012
|
-
var lgMin$3 = unsafeCSS(
|
|
44145
|
+
var smMax$5 = unsafeCSS(queryBreakpoints.smMax);
|
|
44146
|
+
var mdMin$4 = unsafeCSS(queryBreakpoints.mdMin);
|
|
44147
|
+
var lgMin$3 = unsafeCSS(queryBreakpoints.lgMin);
|
|
44013
44148
|
var sheetStyles = css`
|
|
44014
44149
|
:host {
|
|
44015
44150
|
box-sizing: border-box;
|
|
@@ -44574,6 +44709,62 @@ __decorate([property({
|
|
|
44574
44709
|
})], NLDDSheet.prototype, "open", void 0);
|
|
44575
44710
|
NLDDSheet = __decorate([customElement("nldd-sheet")], NLDDSheet);
|
|
44576
44711
|
//#endregion
|
|
44712
|
+
//#region src/utilities/focus-target.ts
|
|
44713
|
+
/**
|
|
44714
|
+
* Moving focus to a place on the page, the way a skip link does.
|
|
44715
|
+
*/
|
|
44716
|
+
/**
|
|
44717
|
+
* The fragment of an href that stays on this page, or an empty string. An
|
|
44718
|
+
* absolute URL to the page you are on counts too: a router or a CMS writes
|
|
44719
|
+
* `/pagina#inhoud` as readily as `#inhoud`.
|
|
44720
|
+
*/
|
|
44721
|
+
function samePageHash(href) {
|
|
44722
|
+
try {
|
|
44723
|
+
const url = new URL(href, document.baseURI);
|
|
44724
|
+
return url.origin === location.origin && url.pathname === location.pathname && url.search === location.search ? url.hash : "";
|
|
44725
|
+
} catch {
|
|
44726
|
+
return "";
|
|
44727
|
+
}
|
|
44728
|
+
}
|
|
44729
|
+
/** The element a fragment points at, looked up in the tree of `from` first. */
|
|
44730
|
+
function hashTarget(hash, from) {
|
|
44731
|
+
let id = hash.slice(1);
|
|
44732
|
+
if (!id) return null;
|
|
44733
|
+
try {
|
|
44734
|
+
id = decodeURIComponent(id);
|
|
44735
|
+
} catch {}
|
|
44736
|
+
return from.getRootNode().getElementById?.(id) ?? document.getElementById(id);
|
|
44737
|
+
}
|
|
44738
|
+
/**
|
|
44739
|
+
* Focuses the target and leaves it as it was once focus moves on. Returns the
|
|
44740
|
+
* function that puts it back (safe to call twice), or null when the target did
|
|
44741
|
+
* not take focus because it is hidden or inert; it is then already put back.
|
|
44742
|
+
*
|
|
44743
|
+
* The tabindex is 0 and not -1, also when the target came with a -1 of its
|
|
44744
|
+
* own. WebKit skips everything inside a shadow host that has a negative
|
|
44745
|
+
* tabindex, slotted content included, so with -1 on an nldd-* section the
|
|
44746
|
+
* next Tab left the page instead of reaching the first link in it.
|
|
44747
|
+
*/
|
|
44748
|
+
function focusTemporarily(target, options) {
|
|
44749
|
+
const previous = target.getAttribute("tabindex");
|
|
44750
|
+
let restored = false;
|
|
44751
|
+
const restore = () => {
|
|
44752
|
+
if (restored) return;
|
|
44753
|
+
restored = true;
|
|
44754
|
+
target.removeEventListener("blur", restore);
|
|
44755
|
+
if (previous === null) target.removeAttribute("tabindex");
|
|
44756
|
+
else target.setAttribute("tabindex", previous);
|
|
44757
|
+
};
|
|
44758
|
+
target.setAttribute("tabindex", "0");
|
|
44759
|
+
target.addEventListener("blur", restore);
|
|
44760
|
+
target.focus(options);
|
|
44761
|
+
if (target.getRootNode().activeElement !== target) {
|
|
44762
|
+
restore();
|
|
44763
|
+
return null;
|
|
44764
|
+
}
|
|
44765
|
+
return restore;
|
|
44766
|
+
}
|
|
44767
|
+
//#endregion
|
|
44577
44768
|
//#region src/components/layout/page-sections/sidebar-section/sidebar-section.ts
|
|
44578
44769
|
/**
|
|
44579
44770
|
* Nederlandse Digitale Dienst Sidebar Section Component (Lit + TypeScript)
|
|
@@ -44596,6 +44787,18 @@ NLDDSheet = __decorate([customElement("nldd-sheet")], NLDDSheet);
|
|
|
44596
44787
|
* The sheet gets a sticky title bar by default — the `sidebar-label` as title plus a
|
|
44597
44788
|
* "Sluit" button — overridable via the `sheet-top-title-bar` slot.
|
|
44598
44789
|
*
|
|
44790
|
+
* A link in the sheet to a place on the page beside it, such as a row of a
|
|
44791
|
+
* table of contents, closes the sheet first and then scrolls to that place and
|
|
44792
|
+
* moves focus there, with a temporary tab stop as a skip link does. Left to the
|
|
44793
|
+
* browser, the page would scroll under a sheet that is still open, and on
|
|
44794
|
+
* closing the browser gives focus back to the trigger without scrolling to it,
|
|
44795
|
+
* so focus ends up out of sight. A link that opens elsewhere (another page, a
|
|
44796
|
+
* new tab, a modifier key, a `download`) or points into the sidebar itself is
|
|
44797
|
+
* left alone, as is a click the consumer has already handled with
|
|
44798
|
+
* `preventDefault()`. The address gets the fragment through `replaceState`,
|
|
44799
|
+
* without a new history entry and without a `hashchange` event or a `:target`
|
|
44800
|
+
* match: a router that listens for those does not see the jump.
|
|
44801
|
+
*
|
|
44599
44802
|
* The sidebar content lives in `slot="sidebar"`. Its slot outlet moves between the
|
|
44600
44803
|
* box (expanded) and the sheet (collapsed) so there is a single, never-duplicated
|
|
44601
44804
|
* copy — the light DOM (and its state) is preserved across the switch.
|
|
@@ -44643,7 +44846,6 @@ var _NLDDSidebarSection = class NLDDSidebarSection extends PageSectionMixin(LitE
|
|
|
44643
44846
|
this.stickyTop = "";
|
|
44644
44847
|
this.stickyBottom = "";
|
|
44645
44848
|
this.collapsed = false;
|
|
44646
|
-
this._lgMin = parseInt(breakpoints.lgMin, 10);
|
|
44647
44849
|
this._hasMeasured = false;
|
|
44648
44850
|
this._sheetOpen = false;
|
|
44649
44851
|
this._onResize = (entries) => {
|
|
@@ -44653,8 +44855,37 @@ var _NLDDSidebarSection = class NLDDSidebarSection extends PageSectionMixin(LitE
|
|
|
44653
44855
|
this._hasMeasured = true;
|
|
44654
44856
|
this._applyCollapsed(width, announce);
|
|
44655
44857
|
};
|
|
44858
|
+
this._onClick = (event) => {
|
|
44859
|
+
if (!this.collapsed || !this._sheetOpen || event.defaultPrevented) return;
|
|
44860
|
+
if (event.button !== 0 || event.metaKey || event.ctrlKey || event.shiftKey || event.altKey) return;
|
|
44861
|
+
const path = event.composedPath();
|
|
44862
|
+
if (!path.some((node) => node instanceof Element && node.parentElement === this && node.slot === "sidebar")) return;
|
|
44863
|
+
const anchor = path.find((node) => node instanceof HTMLAnchorElement && node.hasAttribute("href"));
|
|
44864
|
+
if (!anchor || anchor.hasAttribute("download") || anchor.target && anchor.target !== "_self") return;
|
|
44865
|
+
const hash = samePageHash(anchor.href);
|
|
44866
|
+
const target = hash ? hashTarget(hash, this) : null;
|
|
44867
|
+
if (!target || this._inSidebar(target)) return;
|
|
44868
|
+
event.preventDefault();
|
|
44869
|
+
this._pendingJump?.abort();
|
|
44870
|
+
const jump = new AbortController();
|
|
44871
|
+
this._pendingJump = jump;
|
|
44872
|
+
this._sheet?.addEventListener("close", () => queueMicrotask(() => {
|
|
44873
|
+
if (jump.signal.aborted) return;
|
|
44874
|
+
this._pendingJump = void 0;
|
|
44875
|
+
target.scrollIntoView();
|
|
44876
|
+
focusTemporarily(target, { preventScroll: true });
|
|
44877
|
+
history.replaceState(history.state, "", hash);
|
|
44878
|
+
}), {
|
|
44879
|
+
once: true,
|
|
44880
|
+
signal: jump.signal
|
|
44881
|
+
});
|
|
44882
|
+
this.hide();
|
|
44883
|
+
if (this._sheet?.open) jump.abort();
|
|
44884
|
+
};
|
|
44656
44885
|
this._onSheetOpen = () => {
|
|
44657
44886
|
this._sheetOpen = true;
|
|
44887
|
+
this._pendingJump?.abort();
|
|
44888
|
+
this._pendingJump = void 0;
|
|
44658
44889
|
};
|
|
44659
44890
|
this._onSheetClose = () => {
|
|
44660
44891
|
this._sheetOpen = false;
|
|
@@ -44674,18 +44905,21 @@ var _NLDDSidebarSection = class NLDDSidebarSection extends PageSectionMixin(LitE
|
|
|
44674
44905
|
super.connectedCallback();
|
|
44675
44906
|
this._ro = new ResizeObserver(this._onResize);
|
|
44676
44907
|
this._ro.observe(this);
|
|
44908
|
+
this.addEventListener("click", this._onClick);
|
|
44677
44909
|
}
|
|
44678
44910
|
disconnectedCallback() {
|
|
44679
44911
|
super.disconnectedCallback();
|
|
44680
44912
|
this._ro?.disconnect();
|
|
44681
44913
|
this._ro = void 0;
|
|
44682
44914
|
this._hasMeasured = false;
|
|
44915
|
+
this.removeEventListener("click", this._onClick);
|
|
44916
|
+
this._pendingJump?.abort();
|
|
44683
44917
|
}
|
|
44684
44918
|
firstUpdated() {
|
|
44685
44919
|
this._applyCollapsed(this.clientWidth, false);
|
|
44686
44920
|
}
|
|
44687
44921
|
_applyCollapsed(width, announce) {
|
|
44688
|
-
const next = width <
|
|
44922
|
+
const next = width < breakpointPx("lgMin") && !this.noCollapse;
|
|
44689
44923
|
if (next === this.collapsed) return;
|
|
44690
44924
|
this.collapsed = next;
|
|
44691
44925
|
if (announce) this.dispatchEvent(new CustomEvent("collapse-change", {
|
|
@@ -44725,6 +44959,9 @@ var _NLDDSidebarSection = class NLDDSidebarSection extends PageSectionMixin(LitE
|
|
|
44725
44959
|
if (this._sheetOpen) this._sheet?.hide();
|
|
44726
44960
|
else this._sheet?.show();
|
|
44727
44961
|
}
|
|
44962
|
+
_inSidebar(node) {
|
|
44963
|
+
return [...this.children].some((child) => child.slot === "sidebar" && child.contains(node));
|
|
44964
|
+
}
|
|
44728
44965
|
render() {
|
|
44729
44966
|
return sidebarSectionTemplate(this);
|
|
44730
44967
|
}
|
|
@@ -44773,8 +45010,8 @@ var boxStyles = css`
|
|
|
44773
45010
|
:host {
|
|
44774
45011
|
--_box-corner-radius: var(--semantics-surfaces-corner-radius);
|
|
44775
45012
|
--_box-background-color: var(--semantics-surfaces-tinted-background-color);
|
|
44776
|
-
--_box-border-width: var(--semantics-surfaces-border-width);
|
|
44777
|
-
--_box-border-color: var(--semantics-surfaces-tinted-border-color);
|
|
45013
|
+
--_box-border-width: var(--semantics-surfaces-highlight-border-width);
|
|
45014
|
+
--_box-border-color: var(--semantics-surfaces-tinted-highlight-border-color);
|
|
44778
45015
|
--_box-highlight-border: inset 0 0 0 var(--_box-border-width) var(--_box-border-color);
|
|
44779
45016
|
|
|
44780
45017
|
display: block;
|
|
@@ -44790,12 +45027,17 @@ var boxStyles = css`
|
|
|
44790
45027
|
|
|
44791
45028
|
:host([background="base"]) {
|
|
44792
45029
|
--_box-background-color: var(--semantics-surfaces-base-background-color);
|
|
44793
|
-
--_box-border-color: var(--semantics-surfaces-base-border-color);
|
|
45030
|
+
--_box-border-color: var(--semantics-surfaces-base-highlight-border-color);
|
|
45031
|
+
}
|
|
45032
|
+
|
|
45033
|
+
:host([background="accent-tinted"]) {
|
|
45034
|
+
--_box-background-color: var(--semantics-surfaces-accent-tinted-background-color);
|
|
45035
|
+
--_box-border-color: var(--semantics-surfaces-accent-tinted-highlight-border-color);
|
|
44794
45036
|
}
|
|
44795
45037
|
|
|
44796
45038
|
:host([background="critical"]) {
|
|
44797
|
-
--_box-background-color: var(--semantics-
|
|
44798
|
-
--_box-border-color: var(--semantics-
|
|
45039
|
+
--_box-background-color: var(--semantics-surfaces-critical-tinted-background-color);
|
|
45040
|
+
--_box-border-color: var(--semantics-surfaces-critical-tinted-highlight-border-color);
|
|
44799
45041
|
}
|
|
44800
45042
|
|
|
44801
45043
|
|
|
@@ -44836,10 +45078,12 @@ function boxTemplate(_component) {
|
|
|
44836
45078
|
* helping users understand their relationship at a glance.
|
|
44837
45079
|
*
|
|
44838
45080
|
* @element nldd-box
|
|
44839
|
-
* @attr {'tinted'|'base'|'critical'} background - Which surface this box draws, named as it is on nldd-shell, nldd-page, nldd-split-view-pane and nldd-card. It starts tinted where a card starts base: a box is there to stand out from the page, a card to sit on it.
|
|
45081
|
+
* @attr {'tinted'|'base'|'accent-tinted'|'critical'} background - Which surface this box draws, named as it is on nldd-shell, nldd-page, nldd-split-view-pane and nldd-card. It starts tinted where a card starts base: a box is there to stand out from the page, a card to sit on it.
|
|
44840
45082
|
* - `tinted` (default): a box on a plain page background.
|
|
44841
45083
|
* - `base`: a box on an already-tinted parent (the border ring gets +2
|
|
44842
45084
|
* palette steps so it still reads against a card-on-card).
|
|
45085
|
+
* - `accent-tinted`: a tint of the theme's accent, with the contrast of
|
|
45086
|
+
* `tinted`, for a box that belongs to the service rather than to the page.
|
|
44843
45087
|
* - `critical`: a region whose actions are destructive or irreversible (a
|
|
44844
45088
|
* "danger zone"), tinted and outlined in critical. It carries no ARIA of its
|
|
44845
45089
|
* own: unlike nldd-banner this is not an announcement but a permanent part of
|
|
@@ -44879,14 +45123,14 @@ var cardStyles = css`
|
|
|
44879
45123
|
|
|
44880
45124
|
:host {
|
|
44881
45125
|
--_card-background-color: var(--semantics-surfaces-base-background-color);
|
|
44882
|
-
--_card-border-color: var(--semantics-surfaces-base-border-color);
|
|
45126
|
+
--_card-border-color: var(--semantics-surfaces-base-highlight-border-color);
|
|
44883
45127
|
--_card-is-hovered-background-color: light-dark(var(--primitives-color-neutral-25), var(--primitives-color-neutral-150));
|
|
44884
45128
|
--_card-is-hovered-border-color: light-dark(var(--primitives-color-neutral-100), var(--primitives-color-neutral-250));
|
|
44885
45129
|
--_card-is-active-background-color: light-dark(var(--primitives-color-neutral-50), var(--primitives-color-neutral-200));
|
|
44886
45130
|
--_card-is-active-border-color: light-dark(var(--primitives-color-neutral-150), var(--primitives-color-neutral-300));
|
|
44887
45131
|
--_card-corner-radius: var(--semantics-surfaces-corner-radius);
|
|
44888
45132
|
--_card-box-shadow: none;
|
|
44889
|
-
--_card-highlight-border-width: var(--semantics-surfaces-border-width);
|
|
45133
|
+
--_card-highlight-border-width: var(--semantics-surfaces-highlight-border-width);
|
|
44890
45134
|
|
|
44891
45135
|
display: flex;
|
|
44892
45136
|
/* Anchor for the focus ring, which hangs outside the card box. */
|
|
@@ -44904,13 +45148,22 @@ var cardStyles = css`
|
|
|
44904
45148
|
|
|
44905
45149
|
:host([background="tinted"]) {
|
|
44906
45150
|
--_card-background-color: var(--semantics-surfaces-tinted-background-color);
|
|
44907
|
-
--_card-border-color: var(--semantics-surfaces-tinted-border-color);
|
|
45151
|
+
--_card-border-color: var(--semantics-surfaces-tinted-highlight-border-color);
|
|
44908
45152
|
--_card-is-hovered-background-color: light-dark(var(--primitives-color-neutral-50), var(--primitives-color-neutral-100));
|
|
44909
45153
|
--_card-is-hovered-border-color: light-dark(var(--primitives-color-neutral-100), var(--primitives-color-neutral-250));
|
|
44910
45154
|
--_card-is-active-background-color: light-dark(var(--primitives-color-neutral-75), var(--primitives-color-neutral-150));
|
|
44911
45155
|
--_card-is-active-border-color: light-dark(var(--primitives-color-neutral-150), var(--primitives-color-neutral-300));
|
|
44912
45156
|
}
|
|
44913
45157
|
|
|
45158
|
+
:host([background="accent-tinted"]) {
|
|
45159
|
+
--_card-background-color: var(--semantics-surfaces-accent-tinted-background-color);
|
|
45160
|
+
--_card-border-color: var(--semantics-surfaces-accent-tinted-highlight-border-color);
|
|
45161
|
+
--_card-is-hovered-background-color: light-dark(var(--primitives-color-accent-50), var(--primitives-color-accent-100));
|
|
45162
|
+
--_card-is-hovered-border-color: light-dark(var(--primitives-color-accent-100), var(--primitives-color-accent-250));
|
|
45163
|
+
--_card-is-active-background-color: light-dark(var(--primitives-color-accent-75), var(--primitives-color-accent-150));
|
|
45164
|
+
--_card-is-active-border-color: light-dark(var(--primitives-color-accent-150), var(--primitives-color-accent-300));
|
|
45165
|
+
}
|
|
45166
|
+
|
|
44914
45167
|
|
|
44915
45168
|
/* # Block */
|
|
44916
45169
|
|
|
@@ -45028,8 +45281,9 @@ var cardStyles = css`
|
|
|
45028
45281
|
//#endregion
|
|
45029
45282
|
//#region src/components/layout/card/card.template.ts
|
|
45030
45283
|
function cardTemplate(component) {
|
|
45031
|
-
const
|
|
45032
|
-
const
|
|
45284
|
+
const hintKey = linkHintKey(component.href, component.target);
|
|
45285
|
+
const linkHint = hintKey ? component._t(`components.card.${hintKey}`) : "";
|
|
45286
|
+
const linkLabel = [component.accessibleLabel, linkHint].filter(Boolean).join(", ") || nothing;
|
|
45033
45287
|
const isInteractive = Boolean(component.href) || component.button;
|
|
45034
45288
|
return html`
|
|
45035
45289
|
<article class="card"
|
|
@@ -45073,7 +45327,11 @@ function cardTemplate(component) {
|
|
|
45073
45327
|
}
|
|
45074
45328
|
//#endregion
|
|
45075
45329
|
//#region src/components/layout/card/card.i18n.ts
|
|
45076
|
-
var nlddCardTranslations = {
|
|
45330
|
+
var nlddCardTranslations = {
|
|
45331
|
+
"components.card.link-hint-new-tab-lowercase-label": "opent in nieuw tabblad",
|
|
45332
|
+
"components.card.link-hint-external-lowercase-label": "andere website",
|
|
45333
|
+
"components.card.link-hint-external-new-tab-lowercase-label": "andere website, opent in nieuw tabblad"
|
|
45334
|
+
};
|
|
45077
45335
|
//#endregion
|
|
45078
45336
|
//#region src/components/layout/card/card.ts
|
|
45079
45337
|
/**
|
|
@@ -45095,11 +45353,11 @@ var nlddCardTranslations = { "components.card.opens-in-new-tab-label": "Opent in
|
|
|
45095
45353
|
*
|
|
45096
45354
|
* @element nldd-card
|
|
45097
45355
|
*
|
|
45098
|
-
* @attr {'base'|'tinted'} background - Surface color of the card: `base` (default) on a plain page background, `tinted` when the card should stand out against a base surface
|
|
45356
|
+
* @attr {'base'|'tinted'|'accent-tinted'} background - Surface color of the card: `base` (default) on a plain page background, `tinted` when the card should stand out against a base surface, `accent-tinted` for a tint of the theme's accent with the contrast of `tinted`
|
|
45099
45357
|
* @attr {string} accessible-label - Accessible name of the card; with `href`/`button` it names the link or button, otherwise the card region
|
|
45100
|
-
* @attr {object} translations - Override translation keys (e.g. the "
|
|
45358
|
+
* @attr {object} translations - Override translation keys (e.g. the "opent in nieuw tabblad" announcement)
|
|
45101
45359
|
* @attr {string} href - Makes the whole card a link to this URL (empty = no link)
|
|
45102
|
-
* @attr {string} target - Link target for href (e.g. '_blank'); adjusts rel automatically and adds an "
|
|
45360
|
+
* @attr {string} target - Link target for href (e.g. '_blank'); adjusts rel automatically and adds an "opent in nieuw tabblad" announcement for '_blank'. 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.
|
|
45103
45361
|
* @attr {string} rel - Link rel for href; with target '_blank', 'noopener noreferrer' is added to whatever you set
|
|
45104
45362
|
* @attr {boolean} button - Makes the whole card a button; ignored when `href` is set
|
|
45105
45363
|
*
|
|
@@ -45187,10 +45445,10 @@ __decorate([state()], NLDDCard.prototype, "_actionFocused", void 0);
|
|
|
45187
45445
|
NLDDCard = __decorate([customElement("nldd-card")], NLDDCard);
|
|
45188
45446
|
//#endregion
|
|
45189
45447
|
//#region src/components/layout/collection/collection.styles.ts
|
|
45190
|
-
var smMax$4 = unsafeCSS(
|
|
45191
|
-
var mdMin$3 = unsafeCSS(
|
|
45192
|
-
var mdMax$2 = unsafeCSS(
|
|
45193
|
-
var lgMin$2 = unsafeCSS(
|
|
45448
|
+
var smMax$4 = unsafeCSS(queryBreakpoints.smMax);
|
|
45449
|
+
var mdMin$3 = unsafeCSS(queryBreakpoints.mdMin);
|
|
45450
|
+
var mdMax$2 = unsafeCSS(queryBreakpoints.mdMax);
|
|
45451
|
+
var lgMin$2 = unsafeCSS(queryBreakpoints.lgMin);
|
|
45194
45452
|
var collectionStyles = css`
|
|
45195
45453
|
:host {
|
|
45196
45454
|
box-sizing: border-box;
|
|
@@ -45445,6 +45703,12 @@ var nlddCollectionTranslations = {
|
|
|
45445
45703
|
* grid of your own: the collection sets the columns from `item-min-width` and
|
|
45446
45704
|
* the available width, and the gap per breakpoint.
|
|
45447
45705
|
*
|
|
45706
|
+
* A grid keeps as many columns as fit, also when there are fewer items, so a
|
|
45707
|
+
* page of results lines up with the next. For a fixed set of a few cards
|
|
45708
|
+
* without paging, such as three points on a landing page, use
|
|
45709
|
+
* `nldd-container layout="grid"` instead: its empty columns collapse, so the
|
|
45710
|
+
* cards fill the row.
|
|
45711
|
+
*
|
|
45448
45712
|
* In grid and stack modes, items are paginated via a load-more button. In
|
|
45449
45713
|
* horizontal scroll, the prev/next controls and the edge fade appear only when
|
|
45450
45714
|
* the items overflow the container. Use horizontal scroll for items that
|
|
@@ -46100,10 +46364,10 @@ __decorate([property({
|
|
|
46100
46364
|
NLDDWindow = __decorate([customElement("nldd-window")], NLDDWindow);
|
|
46101
46365
|
//#endregion
|
|
46102
46366
|
//#region src/components/layout/page-footer/page-footer.styles.ts
|
|
46103
|
-
var smMax$3 = unsafeCSS(
|
|
46104
|
-
var mdMin$2 = unsafeCSS(
|
|
46105
|
-
var mdMax$1 = unsafeCSS(
|
|
46106
|
-
var lgMin$1 = unsafeCSS(
|
|
46367
|
+
var smMax$3 = unsafeCSS(queryBreakpoints.smMax);
|
|
46368
|
+
var mdMin$2 = unsafeCSS(queryBreakpoints.mdMin);
|
|
46369
|
+
var mdMax$1 = unsafeCSS(queryBreakpoints.mdMax);
|
|
46370
|
+
var lgMin$1 = unsafeCSS(queryBreakpoints.lgMin);
|
|
46107
46371
|
var pageFooterStyles = css`
|
|
46108
46372
|
:host {
|
|
46109
46373
|
box-sizing: border-box;
|
|
@@ -46724,14 +46988,27 @@ var listItemSegmentStyles = css`
|
|
|
46724
46988
|
box-shadow: var(--semantics-focus-ring-box-shadow);
|
|
46725
46989
|
pointer-events: none;
|
|
46726
46990
|
}
|
|
46991
|
+
|
|
46992
|
+
.list-item-segment__link-hint {
|
|
46993
|
+
position: absolute;
|
|
46994
|
+
margin: -1px;
|
|
46995
|
+
border: 0;
|
|
46996
|
+
width: 1px;
|
|
46997
|
+
height: 1px;
|
|
46998
|
+
overflow: hidden;
|
|
46999
|
+
padding: 0;
|
|
47000
|
+
white-space: nowrap;
|
|
47001
|
+
clip-path: inset(50%);
|
|
47002
|
+
}
|
|
46727
47003
|
`;
|
|
46728
47004
|
//#endregion
|
|
46729
47005
|
//#region src/components/lists-and-tables/list-item-segment/list-item-segment.template.ts
|
|
46730
|
-
function template$9(control, href, target, rel, checked, expanded, current, disabled, accessibleLabel, actionTabindex, popupType, popovertarget, popoverTargetElement, popoverTargetAction) {
|
|
47006
|
+
function template$9(control, href, target, rel, checked, expanded, current, disabled, accessibleLabel, actionTabindex, popupType, popovertarget, popoverTargetElement, popoverTargetAction, linkHint = "") {
|
|
46731
47007
|
const content = html`<slot></slot>`;
|
|
46732
47008
|
const ariaExpanded = expanded === void 0 ? popupType ? "false" : nothing : String(expanded);
|
|
46733
47009
|
const ariaCurrent = current ?? nothing;
|
|
46734
47010
|
const label = accessibleLabel || nothing;
|
|
47011
|
+
const linkLabel = accessibleLabel ? [accessibleLabel, linkHint].filter(Boolean).join(", ") : nothing;
|
|
46735
47012
|
if (control === "link") return html`<a class="list-item-segment"
|
|
46736
47013
|
href=${href ?? nothing}
|
|
46737
47014
|
target=${target ?? nothing}
|
|
@@ -46739,9 +47016,9 @@ function template$9(control, href, target, rel, checked, expanded, current, disa
|
|
|
46739
47016
|
aria-disabled=${disabled ? "true" : nothing}
|
|
46740
47017
|
aria-expanded=${ariaExpanded}
|
|
46741
47018
|
aria-current=${ariaCurrent}
|
|
46742
|
-
aria-label=${
|
|
47019
|
+
aria-label=${linkLabel}
|
|
46743
47020
|
tabindex=${actionTabindex ?? nothing}
|
|
46744
|
-
>${content}</a>`;
|
|
47021
|
+
>${content}${linkHint && !accessibleLabel ? html`<span class="list-item-segment__link-hint">, ${linkHint}</span>` : nothing}</a>`;
|
|
46745
47022
|
if (control === "checkbox" || control === "button") return html`<button class="list-item-segment"
|
|
46746
47023
|
type="button"
|
|
46747
47024
|
aria-haspopup=${popupType || nothing}
|
|
@@ -46759,8 +47036,15 @@ function template$9(control, href, target, rel, checked, expanded, current, disa
|
|
|
46759
47036
|
return html`<div class="list-item-segment">${content}</div>`;
|
|
46760
47037
|
}
|
|
46761
47038
|
//#endregion
|
|
47039
|
+
//#region src/components/lists-and-tables/list-item-segment/list-item-segment.i18n.ts
|
|
47040
|
+
var nlddListItemSegmentTranslations = {
|
|
47041
|
+
"components.list-item-segment.link-hint-new-tab-lowercase-label": "opent in nieuw tabblad",
|
|
47042
|
+
"components.list-item-segment.link-hint-external-lowercase-label": "andere website",
|
|
47043
|
+
"components.list-item-segment.link-hint-external-new-tab-lowercase-label": "andere website, opent in nieuw tabblad"
|
|
47044
|
+
};
|
|
47045
|
+
//#endregion
|
|
46762
47046
|
//#region src/components/lists-and-tables/list-item-segment/list-item-segment.ts
|
|
46763
|
-
var _NLDDListItemSegment = class NLDDListItemSegment extends LitElement {
|
|
47047
|
+
var _NLDDListItemSegment = class NLDDListItemSegment extends withTranslations(LitElement, nlddListItemSegmentTranslations) {
|
|
46764
47048
|
constructor(..._args) {
|
|
46765
47049
|
super(..._args);
|
|
46766
47050
|
this.width = "fit-content";
|
|
@@ -46861,7 +47145,8 @@ var _NLDDListItemSegment = class NLDDListItemSegment extends LitElement {
|
|
|
46861
47145
|
this.classList.toggle("is-expanded", expanded === true);
|
|
46862
47146
|
}
|
|
46863
47147
|
render() {
|
|
46864
|
-
|
|
47148
|
+
const hintKey = this._controlType === "link" ? linkHintKey(this.href, this.target) : null;
|
|
47149
|
+
return template$9(this._controlType, this.href, this.target, this.rel, this.checked, this.disclosure ? this._rowExpanded : this.expanded, this.current ? this.currentType : void 0, this.disabled, this.accessibleLabel, this._tabbable === void 0 ? void 0 : this._tabbable ? "0" : "-1", this.popupType, this.popovertarget, this.popoverTargetElement, this.popoverTargetAction, hintKey ? this._t(`components.list-item-segment.${hintKey}`) : "");
|
|
46865
47150
|
}
|
|
46866
47151
|
};
|
|
46867
47152
|
var NLDDListItemSegment = (_NLDDListItemSegment.styles = [listItemSegmentStyles], _NLDDListItemSegment);
|
|
@@ -46929,7 +47214,7 @@ var tableStyles = css`
|
|
|
46929
47214
|
--_table-corner-radius: var(--semantics-tables-corner-radius);
|
|
46930
47215
|
--_table-column-gap: var(--semantics-tables-column-gap);
|
|
46931
47216
|
--_table-background-color: var(--semantics-surfaces-base-background-color);
|
|
46932
|
-
--_table-border-color: var(--semantics-surfaces-base-border-color);
|
|
47217
|
+
--_table-border-color: var(--semantics-surfaces-base-highlight-border-color);
|
|
46933
47218
|
/* Shared so the focus-visible rule can compose the focus ring over the
|
|
46934
47219
|
border ring with var(...) instead of repeating the inset literal. */
|
|
46935
47220
|
--_table-border-shadow: inset 0 0 0 var(--semantics-tables-border-width) var(--_table-border-color);
|
|
@@ -46959,7 +47244,7 @@ var tableStyles = css`
|
|
|
46959
47244
|
/* Default surface is base; tinted is opt-in. */
|
|
46960
47245
|
:host([background="tinted"]) {
|
|
46961
47246
|
--_table-background-color: var(--semantics-surfaces-tinted-background-color);
|
|
46962
|
-
--_table-border-color: var(--semantics-surfaces-tinted-border-color);
|
|
47247
|
+
--_table-border-color: var(--semantics-surfaces-tinted-highlight-border-color);
|
|
46963
47248
|
}
|
|
46964
47249
|
|
|
46965
47250
|
/* Keyboard focus while the table scrolls (it gains tabindex in JS): the
|
|
@@ -47146,11 +47431,7 @@ var nlddTableTranslations = { "components.table.accessible-label": "Tabel" };
|
|
|
47146
47431
|
*
|
|
47147
47432
|
* @slot - The row's cells (`nldd-cell` and variants), one per column
|
|
47148
47433
|
*/
|
|
47149
|
-
var _NLDDTable
|
|
47150
|
-
var _NLDDTableRow;
|
|
47151
|
-
var SM_MAX = parseInt(breakpoints.smMax, 10);
|
|
47152
|
-
var MD_MAX = parseInt(breakpoints.mdMax, 10);
|
|
47153
|
-
var NLDDTable = (_NLDDTable = class NLDDTable extends LitElement {
|
|
47434
|
+
var _NLDDTable = class NLDDTable extends LitElement {
|
|
47154
47435
|
constructor(..._args) {
|
|
47155
47436
|
super(..._args);
|
|
47156
47437
|
this.background = "base";
|
|
@@ -47238,8 +47519,9 @@ var NLDDTable = (_NLDDTable = class NLDDTable extends LitElement {
|
|
|
47238
47519
|
/** The track list for the current width: a breakpoint override when set,
|
|
47239
47520
|
* otherwise the base `columns`. */
|
|
47240
47521
|
_activeColumns() {
|
|
47241
|
-
|
|
47242
|
-
if (this._width <=
|
|
47522
|
+
const fontSize = rootFontSize();
|
|
47523
|
+
if (this._width <= breakpointPx("smMax", fontSize)) return this.smColumns || this.columns;
|
|
47524
|
+
if (this._width <= breakpointPx("mdMax", fontSize)) return this.mdColumns || this.columns;
|
|
47243
47525
|
return this.lgColumns || this.columns;
|
|
47244
47526
|
}
|
|
47245
47527
|
_applyColumns() {
|
|
@@ -47274,7 +47556,9 @@ var NLDDTable = (_NLDDTable = class NLDDTable extends LitElement {
|
|
|
47274
47556
|
render() {
|
|
47275
47557
|
return tableTemplate();
|
|
47276
47558
|
}
|
|
47277
|
-
}
|
|
47559
|
+
};
|
|
47560
|
+
var _NLDDTableRow;
|
|
47561
|
+
var NLDDTable = (_NLDDTable.styles = tableStyles, _NLDDTable);
|
|
47278
47562
|
__decorate([property({
|
|
47279
47563
|
reflect: true,
|
|
47280
47564
|
converter: reflectNonDefault("base")
|
|
@@ -48248,6 +48532,8 @@ var stepCellStyles = css`
|
|
|
48248
48532
|
--_step-cell-future-content-color: var(--semantics-content-secondary-color);
|
|
48249
48533
|
--_step-cell-current-fill-color: light-dark(var(--primitives-color-accent-75), var(--primitives-color-accent-100));
|
|
48250
48534
|
--_step-cell-icon-size: calc(var(--_step-cell-marker-size) * 2 / 3);
|
|
48535
|
+
--_step-cell-marker-offset: 0px;
|
|
48536
|
+
--_step-cell-marker-center: 50%;
|
|
48251
48537
|
|
|
48252
48538
|
isolation: isolate;
|
|
48253
48539
|
display: flex;
|
|
@@ -48276,6 +48562,18 @@ var stepCellStyles = css`
|
|
|
48276
48562
|
--_step-cell-marker-size: var(--primitives-space-12);
|
|
48277
48563
|
}
|
|
48278
48564
|
|
|
48565
|
+
:host([vertical-alignment="top"]) {
|
|
48566
|
+
--_step-cell-marker-center: calc(var(--_step-cell-lane-size) / 2);
|
|
48567
|
+
}
|
|
48568
|
+
|
|
48569
|
+
:host([vertical-alignment="bottom"]) {
|
|
48570
|
+
--_step-cell-marker-center: calc(100% - var(--_step-cell-lane-size) / 2);
|
|
48571
|
+
}
|
|
48572
|
+
|
|
48573
|
+
:host([data-marker-offset]) {
|
|
48574
|
+
--_step-cell-marker-center: var(--_step-cell-marker-offset);
|
|
48575
|
+
}
|
|
48576
|
+
|
|
48279
48577
|
/* Bleeds back over the host's block padding, so consecutive rows connect. */
|
|
48280
48578
|
.step-cell {
|
|
48281
48579
|
position: relative;
|
|
@@ -48285,6 +48583,13 @@ var stepCellStyles = css`
|
|
|
48285
48583
|
margin-block: calc(var(--context-cell-padding-block, 0px) * -1);
|
|
48286
48584
|
}
|
|
48287
48585
|
|
|
48586
|
+
/* The row's content box: the dot is placed in it, and the lines reach out
|
|
48587
|
+
over the padding from it. */
|
|
48588
|
+
.step-cell__content {
|
|
48589
|
+
position: absolute;
|
|
48590
|
+
inset: var(--context-cell-padding-block, 0px) 0;
|
|
48591
|
+
}
|
|
48592
|
+
|
|
48288
48593
|
/* The ring, but only left and right. A spread would put the same band above
|
|
48289
48594
|
and below the line, and there it would cut the track at every row
|
|
48290
48595
|
boundary: the lines that run on downward deliberately reach past the cell
|
|
@@ -48309,18 +48614,18 @@ var stepCellStyles = css`
|
|
|
48309
48614
|
without this the track breaks at every row. The top line needs nothing —
|
|
48310
48615
|
the row above already covers the band. */
|
|
48311
48616
|
.step-cell__full-line {
|
|
48312
|
-
top:
|
|
48313
|
-
bottom: calc(-1 * var(--semantics-dividers-thickness));
|
|
48617
|
+
top: calc(-1 * var(--context-cell-padding-block, 0px));
|
|
48618
|
+
bottom: calc(-1 * var(--context-cell-padding-block, 0px) - var(--semantics-dividers-thickness));
|
|
48314
48619
|
}
|
|
48315
48620
|
|
|
48316
48621
|
.step-cell__top-line {
|
|
48317
|
-
|
|
48318
|
-
height:
|
|
48622
|
+
top: calc(-1 * var(--context-cell-padding-block, 0px));
|
|
48623
|
+
height: calc(var(--context-cell-padding-block, 0px) + var(--_step-cell-marker-center));
|
|
48319
48624
|
}
|
|
48320
48625
|
|
|
48321
48626
|
.step-cell__bottom-line {
|
|
48322
|
-
top:
|
|
48323
|
-
bottom: calc(-1 * var(--semantics-dividers-thickness));
|
|
48627
|
+
top: var(--_step-cell-marker-center);
|
|
48628
|
+
bottom: calc(-1 * var(--context-cell-padding-block, 0px) - var(--semantics-dividers-thickness));
|
|
48324
48629
|
}
|
|
48325
48630
|
|
|
48326
48631
|
:host([status="future"]:not([line])) .step-cell__top-line,
|
|
@@ -48363,7 +48668,7 @@ var stepCellStyles = css`
|
|
|
48363
48668
|
.step-cell__marker {
|
|
48364
48669
|
box-sizing: border-box;
|
|
48365
48670
|
position: absolute;
|
|
48366
|
-
top:
|
|
48671
|
+
top: var(--_step-cell-marker-center);
|
|
48367
48672
|
left: 50%;
|
|
48368
48673
|
z-index: var(--_step-cell-marker-z-index);
|
|
48369
48674
|
display: flex;
|
|
@@ -48415,7 +48720,9 @@ var stepCellStyles = css`
|
|
|
48415
48720
|
function stepCellTemplate(component) {
|
|
48416
48721
|
if (component.level === "none") return html`
|
|
48417
48722
|
<div class="step-cell">
|
|
48418
|
-
|
|
48723
|
+
<div class="step-cell__content">
|
|
48724
|
+
${component.position === "only" ? nothing : html`<div class="step-cell__full-line"></div>`}
|
|
48725
|
+
</div>
|
|
48419
48726
|
</div>
|
|
48420
48727
|
`;
|
|
48421
48728
|
const hasTop = component.position === "between" || component.position === "last";
|
|
@@ -48426,9 +48733,11 @@ function stepCellTemplate(component) {
|
|
|
48426
48733
|
const content = component.showsContent ? html`${marker}<slot></slot>` : marker;
|
|
48427
48734
|
return html`
|
|
48428
48735
|
<div class="step-cell">
|
|
48429
|
-
|
|
48430
|
-
|
|
48431
|
-
|
|
48736
|
+
<div class="step-cell__content">
|
|
48737
|
+
${showTopLine ? html`<div class="step-cell__top-line"></div>` : nothing}
|
|
48738
|
+
<div class="step-cell__marker">${content}</div>
|
|
48739
|
+
${showBottomLine ? html`<div class="step-cell__bottom-line"></div>` : nothing}
|
|
48740
|
+
</div>
|
|
48432
48741
|
</div>
|
|
48433
48742
|
`;
|
|
48434
48743
|
}
|
|
@@ -48454,6 +48763,8 @@ function stepCellTemplate(component) {
|
|
|
48454
48763
|
* @attr {'major' | 'minor' | 'none'} level - What stands in the lane: a whole dot (`major`, the default), a smaller one for a row that belongs under the one above it (`minor`), or nothing at all (`none`) for a row that carries what a step holds rather than being a step. A `none` row keeps its `size` and its `status`, so it stays in the same lane and the track runs on in the right color
|
|
48455
48764
|
* @attr {'past' | 'current' | 'future'} status - How far along this row is (default 'past'); the same values as `nldd-step-bar-item`. It colors the dot and the track around it: covered above where you are, still ahead below
|
|
48456
48765
|
* @attr {'sm' | 'md'} size - How wide the lane is and so how big the dot: `sm` (default, 16px) for steps without a number, `md` (24px) where a number or an icon has to fit. Every row in one list takes the same size, or the track jumps
|
|
48766
|
+
* @attr {'top' | 'center' | 'bottom'} vertical-alignment - Where the dot stands in the row (default 'center'). `top` puts it against the row's top padding and `bottom` against its bottom padding, as a whole dot would stand, so a `minor` dot lines up with a `major` one. To line it up with what stands beside it, such as the first line of a text cell or a title, use `marker-offset`. The track runs to the middle of the dot either way, so consecutive rows still connect
|
|
48767
|
+
* @attr {string} marker-offset - How far below the top of the row's content the middle of the dot stands, as a CSS length or a percentage of the content's height: `0%` is its top, `50%` its middle and `100%` its bottom. For a row whose first line is not as high as a whole dot, such as a large title beside it: half the height of that line puts the dot beside it. Measured after the row's padding, so it stays right when `size` changes that padding. Prefer `rem` over `px`, so the dot moves along when someone sets a larger font size in the browser. Wins over `vertical-alignment`; an invalid value falls back to it and says so in development
|
|
48457
48768
|
* @attr {'down' | 'up'} direction - The direction the timeline moves forward in: `down` (default) puts the past above, `up` below. Only the current step has half a track, so this only has an effect there
|
|
48458
48769
|
* @attr {'first' | 'between' | 'last' | 'only'} position - Place of the row in the list as it stands on screen (default 'between'): decides whether the line continues above the dot, below it, or on both sides. `first` is the top row and only has a line below, `last` the bottom row and only has a line above, also with `direction="up"`: position is about where the row stands, `direction` about which way time runs. `only` is the single row in the series and gets a line on neither side: a track of one dot leads nowhere. On a `level="none"` row, which is nothing but line, `only` leaves it out altogether: the track ends above it
|
|
48459
48770
|
* @attr {'auto' | 'top' | 'bottom' | 'both' | 'none'} line - Which halves of the track you have covered, when `status` and `direction` get it wrong (default 'auto', which is what those two say). The halves you name are drawn as covered and the other one as still ahead, so `none` covers neither. Which halves are drawn at all stays with `position`, except that naming a half draws it: `line="both"` on a `first` row draws one above too. A row that opens a group of its own is the case for `both`, since the going carries on below it. A `level="none"` row has one line rather than two halves, and no point where a fill could change over, so there the status colors the whole of it and `line` overrules the whole of it. On a `current` row that leans the way the timeline runs: what belongs to a point usually comes after it, so going `down` the stretch reads as still ahead and going `up` as behind you
|
|
@@ -48462,12 +48773,22 @@ function stepCellTemplate(component) {
|
|
|
48462
48773
|
*
|
|
48463
48774
|
* @slot - Custom content in the dot (an alternative to `text` and `icon`)
|
|
48464
48775
|
*/
|
|
48465
|
-
var _NLDDStepCell
|
|
48776
|
+
var _NLDDStepCell;
|
|
48777
|
+
var CSS_WIDE_KEYWORDS = /* @__PURE__ */ new Set([
|
|
48778
|
+
"inherit",
|
|
48779
|
+
"initial",
|
|
48780
|
+
"unset",
|
|
48781
|
+
"revert",
|
|
48782
|
+
"revert-layer"
|
|
48783
|
+
]);
|
|
48784
|
+
var NLDDStepCell = (_NLDDStepCell = class NLDDStepCell extends VisibilityMixin(LitElement, "cells-container") {
|
|
48466
48785
|
constructor(..._args) {
|
|
48467
48786
|
super(..._args);
|
|
48468
48787
|
this.level = "major";
|
|
48469
48788
|
this.status = "past";
|
|
48470
48789
|
this.size = "sm";
|
|
48790
|
+
this.verticalAlignment = "center";
|
|
48791
|
+
this.markerOffset = "";
|
|
48471
48792
|
this.direction = "down";
|
|
48472
48793
|
this.position = "between";
|
|
48473
48794
|
this.line = "auto";
|
|
@@ -48482,12 +48803,18 @@ var _NLDDStepCell = class NLDDStepCell extends VisibilityMixin(LitElement, "cell
|
|
|
48482
48803
|
}
|
|
48483
48804
|
updated(changed) {
|
|
48484
48805
|
super.updated(changed);
|
|
48806
|
+
if (changed.has("markerOffset")) {
|
|
48807
|
+
const offset = (this.markerOffset ?? "").trim();
|
|
48808
|
+
const valid = offset !== "" && !CSS_WIDE_KEYWORDS.has(offset.toLowerCase()) && offset.toLowerCase() !== "auto" && CSS.supports("margin-top", offset);
|
|
48809
|
+
if (valid) this.style.setProperty("--_step-cell-marker-offset", offset);
|
|
48810
|
+
else this.style.removeProperty("--_step-cell-marker-offset");
|
|
48811
|
+
this.toggleAttribute("data-marker-offset", valid);
|
|
48812
|
+
}
|
|
48485
48813
|
}
|
|
48486
48814
|
render() {
|
|
48487
48815
|
return stepCellTemplate(this);
|
|
48488
48816
|
}
|
|
48489
|
-
};
|
|
48490
|
-
var NLDDStepCell = (_NLDDStepCell.styles = stepCellStyles, _NLDDStepCell);
|
|
48817
|
+
}, _NLDDStepCell.styles = stepCellStyles, _NLDDStepCell);
|
|
48491
48818
|
__decorate([property({
|
|
48492
48819
|
reflect: true,
|
|
48493
48820
|
converter: reflectNonDefault("major")
|
|
@@ -48500,6 +48827,16 @@ __decorate([property({
|
|
|
48500
48827
|
reflect: true,
|
|
48501
48828
|
converter: reflectNonDefault("sm")
|
|
48502
48829
|
})], NLDDStepCell.prototype, "size", void 0);
|
|
48830
|
+
__decorate([property({
|
|
48831
|
+
reflect: true,
|
|
48832
|
+
attribute: "vertical-alignment",
|
|
48833
|
+
converter: reflectNonDefault("center")
|
|
48834
|
+
})], NLDDStepCell.prototype, "verticalAlignment", void 0);
|
|
48835
|
+
__decorate([property({
|
|
48836
|
+
reflect: true,
|
|
48837
|
+
attribute: "marker-offset",
|
|
48838
|
+
converter: reflectNonDefault("")
|
|
48839
|
+
})], NLDDStepCell.prototype, "markerOffset", void 0);
|
|
48503
48840
|
__decorate([property({
|
|
48504
48841
|
reflect: true,
|
|
48505
48842
|
converter: reflectNonDefault("down")
|
|
@@ -48822,7 +49159,7 @@ var menuBarItemStyles = css`
|
|
|
48822
49159
|
--_menu-bar-item-font: var(--primitives-font-body-md-medium-flat);
|
|
48823
49160
|
--_menu-bar-item-is-hovered-indicator-background-color: light-dark(var(--primitives-color-neutral-50), var(--primitives-color-neutral-200));
|
|
48824
49161
|
--_menu-bar-item-is-expanded-indicator-background-color: light-dark(var(--primitives-color-neutral-75), var(--primitives-color-neutral-250));
|
|
48825
|
-
--_menu-bar-item-is-current-indicator-background-color: var(--semantics-controls-is-
|
|
49162
|
+
--_menu-bar-item-is-current-indicator-background-color: var(--semantics-controls-is-selected-indicator-color);
|
|
48826
49163
|
--_menu-bar-item-is-current-indicator-height: var(--primitives-space-4);
|
|
48827
49164
|
|
|
48828
49165
|
${inheritedTextReset}
|
|
@@ -49690,9 +50027,9 @@ var linkStyles = css`
|
|
|
49690
50027
|
top: 0.2em;
|
|
49691
50028
|
}
|
|
49692
50029
|
|
|
49693
|
-
/* Visually-hidden
|
|
50030
|
+
/* Visually-hidden link hint (another website, a new tab); part of
|
|
49694
50031
|
the link's accessible name but never shown. Standard visually-hidden recipe. */
|
|
49695
|
-
.
|
|
50032
|
+
.link__link-hint {
|
|
49696
50033
|
position: absolute;
|
|
49697
50034
|
margin: -1px;
|
|
49698
50035
|
border: 0;
|
|
@@ -49708,9 +50045,10 @@ var linkStyles = css`
|
|
|
49708
50045
|
//#region src/components/navigation/link/link.template.ts
|
|
49709
50046
|
function template$3(helpers) {
|
|
49710
50047
|
const resolvedRel = linkRel(this.rel, this.target);
|
|
49711
|
-
const
|
|
49712
|
-
const
|
|
49713
|
-
const
|
|
50048
|
+
const hintKey = this.disabled ? null : linkHintKey(this.href, this.target);
|
|
50049
|
+
const linkHint = hintKey ? this._t(`components.link.${hintKey}`) : "";
|
|
50050
|
+
const ariaLabel = this.accessibleLabel ? [this.accessibleLabel, linkHint].filter(Boolean).join(", ") : nothing;
|
|
50051
|
+
const renderLinkHint = !!linkHint && !this.accessibleLabel;
|
|
49714
50052
|
return html`
|
|
49715
50053
|
<a class="link"
|
|
49716
50054
|
href=${this.disabled ? nothing : this.href || nothing}
|
|
@@ -49728,14 +50066,17 @@ function template$3(helpers) {
|
|
|
49728
50066
|
<span class="link__label">${this.text ? this.text : html`<slot></slot>`}</span>
|
|
49729
50067
|
${this.endIcon ? html`
|
|
49730
50068
|
<span class="link__end-icon"><nldd-icon icon=${this.endIcon}></nldd-icon></span>
|
|
49731
|
-
` : html`<slot name="end-icon"></slot>`}
|
|
49732
|
-
${renderOpensInNewTabHint ? html`<span class="link__opens-in-new-tab-hint">${opensInNewTabHint}</span>` : nothing}
|
|
50069
|
+
` : html`<slot name="end-icon"></slot>`}${renderLinkHint ? html`<span class="link__link-hint">, ${linkHint}</span>` : nothing}
|
|
49733
50070
|
</a>
|
|
49734
50071
|
`;
|
|
49735
50072
|
}
|
|
49736
50073
|
//#endregion
|
|
49737
50074
|
//#region src/components/navigation/link/link.i18n.ts
|
|
49738
|
-
var nlddLinkTranslations = {
|
|
50075
|
+
var nlddLinkTranslations = {
|
|
50076
|
+
"components.link.link-hint-new-tab-lowercase-label": "opent in nieuw tabblad",
|
|
50077
|
+
"components.link.link-hint-external-lowercase-label": "andere website",
|
|
50078
|
+
"components.link.link-hint-external-new-tab-lowercase-label": "andere website, opent in nieuw tabblad"
|
|
50079
|
+
};
|
|
49739
50080
|
//#endregion
|
|
49740
50081
|
//#region src/components/navigation/link/link.ts
|
|
49741
50082
|
/**
|
|
@@ -49758,7 +50099,7 @@ var nlddLinkTranslations = { "components.link.opens-in-new-tab-label": "Opent in
|
|
|
49758
50099
|
*
|
|
49759
50100
|
* @element nldd-link
|
|
49760
50101
|
* @attr {string} href - Link target
|
|
49761
|
-
* @attr {string} target - Link target (e.g. '_blank'); adjusts rel automatically. With '_blank' the link adds a visually hidden "
|
|
50102
|
+
* @attr {string} target - Link target (e.g. '_blank'); adjusts rel automatically. With '_blank' the link adds a visually hidden "opent in nieuw tabblad" 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.
|
|
49762
50103
|
* @attr {string} rel - Link rel attribute; with target '_blank', 'noopener noreferrer' is added to whatever you set
|
|
49763
50104
|
* @attr {string} size - Text size: 'inherit' (the default) follows the surrounding text and lays the link out inline, so it wraps in running prose. 'xs' | 'sm' | 'md' | 'lg' pin a size and switch to inline-flex, which baseline-aligns a start or end icon with an explicit gap.
|
|
49764
50105
|
* @attr {string} text - Link text (alternative to the default slot)
|
|
@@ -49767,7 +50108,7 @@ var nlddLinkTranslations = { "components.link.opens-in-new-tab-label": "Opent in
|
|
|
49767
50108
|
* @attr {string} accessible-label - Accessible label for screen readers
|
|
49768
50109
|
* @attr {boolean} disabled - Disabled state. Avoid it where you can; the design guidelines say why.
|
|
49769
50110
|
* @attr {boolean} no-tab - Takes the control out of the tab order (tabindex="-1"), for a control owned by a roving container (a row of an nldd-list, where the arrow keys move between rows) that manages focus itself. Still mouse- and script-focusable.
|
|
49770
|
-
* @attr {object} translations - Override translation keys (e.g. the "
|
|
50111
|
+
* @attr {object} translations - Override translation keys (e.g. the "opent in nieuw tabblad" announcement); unset keys fall back to Dutch.
|
|
49771
50112
|
*
|
|
49772
50113
|
* @slot - Link text (alternative to the text attribute)
|
|
49773
50114
|
* @slot start-icon - Custom icon before the text
|
|
@@ -49983,14 +50324,10 @@ var _NLDDSkipLink = class NLDDSkipLink extends withTranslations(LitElement, nldd
|
|
|
49983
50324
|
this._focus(next);
|
|
49984
50325
|
};
|
|
49985
50326
|
this._handleLinkClick = (event) => {
|
|
49986
|
-
const hash = this.
|
|
50327
|
+
const hash = samePageHash(this.href);
|
|
49987
50328
|
if (!hash) return;
|
|
49988
50329
|
if (event && (event.button !== 0 || event.metaKey || event.ctrlKey || event.shiftKey || event.altKey)) return;
|
|
49989
|
-
|
|
49990
|
-
try {
|
|
49991
|
-
id = decodeURIComponent(id);
|
|
49992
|
-
} catch {}
|
|
49993
|
-
const target = this.getRootNode().getElementById?.(id) ?? document.getElementById(id);
|
|
50330
|
+
const target = hashTarget(hash, this);
|
|
49994
50331
|
if (!target) return;
|
|
49995
50332
|
clearTimeout(this._focusTimer);
|
|
49996
50333
|
this._focusTimer = setTimeout(() => this._focus(target));
|
|
@@ -49999,45 +50336,15 @@ var _NLDDSkipLink = class NLDDSkipLink extends withTranslations(LitElement, nldd
|
|
|
49999
50336
|
get _text() {
|
|
50000
50337
|
return this.text || this._t("components.skip-link.action");
|
|
50001
50338
|
}
|
|
50002
|
-
/**
|
|
50003
|
-
* The fragment of an href that stays on this page, or an empty string. An
|
|
50004
|
-
* absolute URL to the page you are on counts too: a router or a CMS writes
|
|
50005
|
-
* `/pagina#inhoud` as readily as `#inhoud`.
|
|
50006
|
-
*/
|
|
50007
|
-
_samePageHash() {
|
|
50008
|
-
try {
|
|
50009
|
-
const url = new URL(this.href, location.href);
|
|
50010
|
-
return url.origin === location.origin && url.pathname === location.pathname && url.search === location.search ? url.hash : "";
|
|
50011
|
-
} catch {
|
|
50012
|
-
return "";
|
|
50013
|
-
}
|
|
50014
|
-
}
|
|
50015
50339
|
disconnectedCallback() {
|
|
50016
50340
|
super.disconnectedCallback();
|
|
50017
50341
|
clearTimeout(this._focusTimer);
|
|
50018
50342
|
}
|
|
50019
|
-
/**
|
|
50020
|
-
* Focuses the target and leaves it as it was once focus moves on.
|
|
50021
|
-
*
|
|
50022
|
-
* The tabindex is 0 and not -1, also when the target came with a -1 of its
|
|
50023
|
-
* own. WebKit skips everything inside a shadow host that has a negative
|
|
50024
|
-
* tabindex, slotted content included, so with -1 on an nldd-* section the
|
|
50025
|
-
* next Tab left the page instead of reaching the first link in it.
|
|
50026
|
-
*/
|
|
50343
|
+
/** Focuses the target with a temporary tab stop; see focusTemporarily. */
|
|
50027
50344
|
_focus(target) {
|
|
50028
50345
|
this._restoreTarget?.();
|
|
50029
|
-
|
|
50030
|
-
|
|
50031
|
-
target.removeEventListener("blur", restore);
|
|
50032
|
-
if (this._restoreTarget === restore) this._restoreTarget = void 0;
|
|
50033
|
-
if (previous === null) target.removeAttribute("tabindex");
|
|
50034
|
-
else target.setAttribute("tabindex", previous);
|
|
50035
|
-
};
|
|
50036
|
-
this._restoreTarget = restore;
|
|
50037
|
-
target.setAttribute("tabindex", "0");
|
|
50038
|
-
target.addEventListener("blur", restore);
|
|
50039
|
-
target.focus();
|
|
50040
|
-
if (target.getRootNode().activeElement !== target) restore();
|
|
50346
|
+
this._restoreTarget = focusTemporarily(target) ?? void 0;
|
|
50347
|
+
if (!this._restoreTarget && false);
|
|
50041
50348
|
}
|
|
50042
50349
|
/**
|
|
50043
50350
|
* The first following sibling that is rendered. `focus()` does nothing on
|
|
@@ -50082,10 +50389,10 @@ __decorate([property({ type: String })], NLDDSkipLink.prototype, "href", void 0)
|
|
|
50082
50389
|
NLDDSkipLink = __decorate([customElement("nldd-skip-link")], NLDDSkipLink);
|
|
50083
50390
|
//#endregion
|
|
50084
50391
|
//#region src/components/navigation/top-navigation-bar/top-navigation-bar.styles.ts
|
|
50085
|
-
var smMax$2 = unsafeCSS(
|
|
50086
|
-
var mdMin$1 = unsafeCSS(
|
|
50087
|
-
var mdMax = unsafeCSS(
|
|
50088
|
-
var lgMin = unsafeCSS(
|
|
50392
|
+
var smMax$2 = unsafeCSS(queryBreakpoints.smMax);
|
|
50393
|
+
var mdMin$1 = unsafeCSS(queryBreakpoints.mdMin);
|
|
50394
|
+
var mdMax = unsafeCSS(queryBreakpoints.mdMax);
|
|
50395
|
+
var lgMin = unsafeCSS(queryBreakpoints.lgMin);
|
|
50089
50396
|
var topNavigationBarStyles = css`
|
|
50090
50397
|
:host {
|
|
50091
50398
|
box-sizing: border-box;
|
|
@@ -50174,6 +50481,11 @@ var topNavigationBarStyles = css`
|
|
|
50174
50481
|
gap: var(--primitives-space-8);
|
|
50175
50482
|
align-items: center;
|
|
50176
50483
|
width: 100%;
|
|
50484
|
+
|
|
50485
|
+
/* Off the 4px grid on purpose: puts the wordmark where the printed logo has it. */
|
|
50486
|
+
@container (min-width: ${mdMin$1}) {
|
|
50487
|
+
gap: var(--primitives-space-10);
|
|
50488
|
+
}
|
|
50177
50489
|
max-width: var(--_top-navigation-bar-max-width);
|
|
50178
50490
|
}
|
|
50179
50491
|
|
|
@@ -50315,12 +50627,12 @@ var topNavigationBarStyles = css`
|
|
|
50315
50627
|
|
|
50316
50628
|
/* The distance the text keeps from the top edge once it outgrows the
|
|
50317
50629
|
ribbon. Only at the top: space under it would raise the bar for
|
|
50318
|
-
nothing. The minimum gives up the same
|
|
50319
|
-
on the middle of the ribbon rather than
|
|
50630
|
+
nothing. The minimum gives up the same 16, so the text still centres
|
|
50631
|
+
on the middle of the ribbon rather than 8px below it. */
|
|
50320
50632
|
@container (max-width: ${smMax$2}) {
|
|
50321
50633
|
align-self: start;
|
|
50322
|
-
min-height: calc(var(--_top-navigation-bar-logo-height) - var(--primitives-space-
|
|
50323
|
-
padding-block-start: var(--primitives-space-
|
|
50634
|
+
min-height: calc(var(--_top-navigation-bar-logo-height) - var(--primitives-space-16));
|
|
50635
|
+
padding-block-start: var(--primitives-space-16);
|
|
50324
50636
|
}
|
|
50325
50637
|
}
|
|
50326
50638
|
|
|
@@ -50956,7 +51268,7 @@ var _NLDDTopNavigationBar = class NLDDTopNavigationBar extends withTranslations(
|
|
|
50956
51268
|
_isSmBreakpoint() {
|
|
50957
51269
|
const container = this.shadowRoot?.querySelector(".top-navigation-bar");
|
|
50958
51270
|
if (!container) return false;
|
|
50959
|
-
return container.clientWidth <=
|
|
51271
|
+
return container.clientWidth <= breakpointPx("smMax");
|
|
50960
51272
|
}
|
|
50961
51273
|
async _loadGlobalMenuSheetDependencies() {
|
|
50962
51274
|
await Promise.all([
|
|
@@ -51410,26 +51722,26 @@ var tabBarItemStyles = css`
|
|
|
51410
51722
|
}
|
|
51411
51723
|
|
|
51412
51724
|
:host([current]) .tab-bar__item {
|
|
51413
|
-
--_tab-bar-item-highlight-border-color: var(--
|
|
51725
|
+
--_tab-bar-item-highlight-border-color: var(--components-tab-bar-is-current-highlight-border-color);
|
|
51414
51726
|
|
|
51415
|
-
background-color: var(--
|
|
51416
|
-
color: var(--
|
|
51727
|
+
background-color: var(--components-tab-bar-is-current-background-color);
|
|
51728
|
+
color: var(--components-tab-bar-is-current-content-color);
|
|
51417
51729
|
}
|
|
51418
51730
|
|
|
51419
51731
|
@media (hover: hover) {
|
|
51420
51732
|
:host([current]) .tab-bar__item:hover {
|
|
51421
|
-
--_tab-bar-item-highlight-border-color: var(--
|
|
51733
|
+
--_tab-bar-item-highlight-border-color: var(--components-tab-bar-is-current-is-hovered-highlight-border-color);
|
|
51422
51734
|
|
|
51423
|
-
background-color: var(--
|
|
51424
|
-
color: var(--
|
|
51735
|
+
background-color: var(--components-tab-bar-is-current-is-hovered-background-color);
|
|
51736
|
+
color: var(--components-tab-bar-is-current-is-hovered-content-color);
|
|
51425
51737
|
}
|
|
51426
51738
|
}
|
|
51427
51739
|
|
|
51428
51740
|
:host([current]) .tab-bar__item:active {
|
|
51429
|
-
--_tab-bar-item-highlight-border-color: var(--
|
|
51741
|
+
--_tab-bar-item-highlight-border-color: var(--components-tab-bar-is-current-is-active-highlight-border-color);
|
|
51430
51742
|
|
|
51431
|
-
background-color: var(--
|
|
51432
|
-
color: var(--
|
|
51743
|
+
background-color: var(--components-tab-bar-is-current-is-active-background-color);
|
|
51744
|
+
color: var(--components-tab-bar-is-current-is-active-content-color);
|
|
51433
51745
|
}
|
|
51434
51746
|
|
|
51435
51747
|
@media (forced-colors: active) {
|
|
@@ -52364,7 +52676,7 @@ var documentTabBarItemStyles = css`
|
|
|
52364
52676
|
.document-tab-bar__item-normal {
|
|
52365
52677
|
display: contents;
|
|
52366
52678
|
|
|
52367
|
-
@container (max-width:
|
|
52679
|
+
@container (max-width: 12.5rem) {
|
|
52368
52680
|
display: none;
|
|
52369
52681
|
}
|
|
52370
52682
|
}
|
|
@@ -52372,7 +52684,7 @@ var documentTabBarItemStyles = css`
|
|
|
52372
52684
|
.document-tab-bar__item-short {
|
|
52373
52685
|
display: none;
|
|
52374
52686
|
|
|
52375
|
-
@container (max-width:
|
|
52687
|
+
@container (max-width: 12.5rem) {
|
|
52376
52688
|
display: contents;
|
|
52377
52689
|
}
|
|
52378
52690
|
}
|
|
@@ -53629,7 +53941,7 @@ var paginationStyles = css`
|
|
|
53629
53941
|
.pagination__page-buttons {
|
|
53630
53942
|
display: contents;
|
|
53631
53943
|
|
|
53632
|
-
@container (max-width:
|
|
53944
|
+
@container (max-width: 25rem) {
|
|
53633
53945
|
display: none;
|
|
53634
53946
|
}
|
|
53635
53947
|
}
|
|
@@ -53637,7 +53949,7 @@ var paginationStyles = css`
|
|
|
53637
53949
|
.pagination__compact {
|
|
53638
53950
|
display: none;
|
|
53639
53951
|
|
|
53640
|
-
@container (max-width:
|
|
53952
|
+
@container (max-width: 25rem) {
|
|
53641
53953
|
display: contents;
|
|
53642
53954
|
}
|
|
53643
53955
|
}
|
|
@@ -53891,7 +54203,7 @@ __decorate([property({ type: Object })], NLDDPagination.prototype, "translations
|
|
|
53891
54203
|
NLDDPagination = __decorate([customElement("nldd-pagination")], NLDDPagination);
|
|
53892
54204
|
//#endregion
|
|
53893
54205
|
//#region src/components/status-and-feedback/modal-dialog/modal-dialog.styles.ts
|
|
53894
|
-
var mdMin = unsafeCSS(
|
|
54206
|
+
var mdMin = unsafeCSS(queryBreakpoints.mdMin);
|
|
53895
54207
|
var modalDialogStyles = css`
|
|
53896
54208
|
:host {
|
|
53897
54209
|
box-sizing: border-box;
|
|
@@ -54235,10 +54547,10 @@ var bannerStyles = css`
|
|
|
54235
54547
|
:host {
|
|
54236
54548
|
--_banner-corner-radius: var(--semantics-surfaces-corner-radius);
|
|
54237
54549
|
--_banner-padding: var(--primitives-space-12);
|
|
54238
|
-
--_banner-background-color: var(--semantics-
|
|
54239
|
-
--_banner-border-color: var(--semantics-
|
|
54550
|
+
--_banner-background-color: var(--semantics-surfaces-tinted-background-color);
|
|
54551
|
+
--_banner-border-color: var(--semantics-surfaces-tinted-highlight-border-color);
|
|
54240
54552
|
--_banner-border-width: var(--primitives-border-width-thin);
|
|
54241
|
-
--_banner-icon-color: var(--
|
|
54553
|
+
--_banner-icon-color: var(--primitives-color-neutral-750);
|
|
54242
54554
|
--_banner-icon-size: var(--primitives-space-32);
|
|
54243
54555
|
--_banner-content-color: var(--semantics-content-color);
|
|
54244
54556
|
--_banner-text-icon-offset: calc((var(--_banner-icon-size) - var(--primitives-font-size-100) * var(--primitives-line-height-tight)) / 2);
|
|
@@ -54275,27 +54587,27 @@ var bannerStyles = css`
|
|
|
54275
54587
|
}
|
|
54276
54588
|
|
|
54277
54589
|
:host([variant="accent"]) {
|
|
54278
|
-
--_banner-background-color: var(--semantics-
|
|
54279
|
-
--_banner-border-color: var(--semantics-
|
|
54280
|
-
--_banner-icon-color: var(--
|
|
54590
|
+
--_banner-background-color: var(--semantics-surfaces-accent-tinted-background-color);
|
|
54591
|
+
--_banner-border-color: var(--semantics-surfaces-accent-tinted-highlight-border-color);
|
|
54592
|
+
--_banner-icon-color: var(--components-banner-accent-icon-color);
|
|
54281
54593
|
}
|
|
54282
54594
|
|
|
54283
54595
|
:host([variant="success"]) {
|
|
54284
|
-
--_banner-background-color: var(--semantics-
|
|
54285
|
-
--_banner-border-color: var(--semantics-
|
|
54286
|
-
--_banner-icon-color: var(--
|
|
54596
|
+
--_banner-background-color: var(--semantics-surfaces-success-tinted-background-color);
|
|
54597
|
+
--_banner-border-color: var(--semantics-surfaces-success-tinted-highlight-border-color);
|
|
54598
|
+
--_banner-icon-color: light-dark(var(--primitives-color-success-550), var(--primitives-color-success-650));
|
|
54287
54599
|
}
|
|
54288
54600
|
|
|
54289
54601
|
:host([variant="warning"]) {
|
|
54290
|
-
--_banner-background-color: var(--semantics-
|
|
54291
|
-
--_banner-border-color: var(--semantics-
|
|
54292
|
-
--_banner-icon-color: var(--
|
|
54602
|
+
--_banner-background-color: var(--semantics-surfaces-warning-tinted-background-color);
|
|
54603
|
+
--_banner-border-color: var(--semantics-surfaces-warning-tinted-highlight-border-color);
|
|
54604
|
+
--_banner-icon-color: light-dark(var(--primitives-color-warning-450), var(--primitives-color-warning-650));
|
|
54293
54605
|
}
|
|
54294
54606
|
|
|
54295
54607
|
:host([variant="critical"]) {
|
|
54296
|
-
--_banner-background-color: var(--semantics-
|
|
54297
|
-
--_banner-border-color: var(--semantics-
|
|
54298
|
-
--_banner-icon-color: var(--
|
|
54608
|
+
--_banner-background-color: var(--semantics-surfaces-critical-tinted-background-color);
|
|
54609
|
+
--_banner-border-color: var(--semantics-surfaces-critical-tinted-highlight-border-color);
|
|
54610
|
+
--_banner-icon-color: var(--primitives-color-critical-600);
|
|
54299
54611
|
}
|
|
54300
54612
|
|
|
54301
54613
|
/* # Block */
|
|
@@ -54634,7 +54946,7 @@ __decorate([state()], NLDDBanner.prototype, "_hasActions", void 0);
|
|
|
54634
54946
|
NLDDBanner = __decorate([customElement("nldd-banner")], NLDDBanner);
|
|
54635
54947
|
//#endregion
|
|
54636
54948
|
//#region src/components/status-and-feedback/notification/notification.styles.ts
|
|
54637
|
-
var smMax$1 = unsafeCSS(
|
|
54949
|
+
var smMax$1 = unsafeCSS(queryBreakpoints.smMax);
|
|
54638
54950
|
var notificationStyles = css`
|
|
54639
54951
|
:host {
|
|
54640
54952
|
--_notification-width: var(--primitives-area-400);
|
|
@@ -55511,13 +55823,13 @@ var badgeStyles = css`
|
|
|
55511
55823
|
|
|
55512
55824
|
:host {
|
|
55513
55825
|
--_badge-custom-color: transparent;
|
|
55514
|
-
--_badge-background-color: var(--
|
|
55515
|
-
--_badge-border-color: var(--
|
|
55826
|
+
--_badge-background-color: light-dark(var(--primitives-color-critical-650), var(--primitives-color-critical-450));
|
|
55827
|
+
--_badge-border-color: light-dark(var(--primitives-color-critical-600), var(--primitives-color-critical-500));
|
|
55516
55828
|
--_badge-border-width: var(--primitives-border-width-thin);
|
|
55517
55829
|
--_badge-height: var(--primitives-space-20);
|
|
55518
55830
|
--_badge-inline-padding: var(--primitives-space-6);
|
|
55519
55831
|
--_badge-gap: var(--primitives-space-3);
|
|
55520
|
-
--_badge-content-color: var(--
|
|
55832
|
+
--_badge-content-color: light-dark(var(--primitives-color-critical-0), var(--primitives-color-critical-1000));
|
|
55521
55833
|
--_badge-font: var(--primitives-font-body-xs-medium-flat);
|
|
55522
55834
|
--_badge-dot-size: var(--primitives-space-12);
|
|
55523
55835
|
--_badge-icon-size: var(--primitives-space-14);
|
|
@@ -55557,140 +55869,33 @@ var badgeStyles = css`
|
|
|
55557
55869
|
--_badge-content-color: var(--semantics-content-contrast-color);
|
|
55558
55870
|
}
|
|
55559
55871
|
|
|
55560
|
-
:host([color="accent"])
|
|
55561
|
-
|
|
55562
|
-
--_badge-
|
|
55563
|
-
--_badge-
|
|
55872
|
+
:host([color="accent"]),
|
|
55873
|
+
:host([data-color-fallback]) {
|
|
55874
|
+
--_badge-background-color: var(--components-badge-accent-background-color);
|
|
55875
|
+
--_badge-border-color: var(--components-badge-accent-highlight-border-color);
|
|
55876
|
+
--_badge-content-color: var(--components-badge-accent-content-color);
|
|
55564
55877
|
}
|
|
55565
55878
|
|
|
55566
55879
|
:host([color="neutral"]) {
|
|
55567
|
-
--_badge-background-color: var(--
|
|
55568
|
-
--_badge-border-color: var(--
|
|
55569
|
-
--_badge-content-color: var(--
|
|
55880
|
+
--_badge-background-color: light-dark(var(--primitives-color-neutral-600), var(--primitives-color-neutral-450));
|
|
55881
|
+
--_badge-border-color: light-dark(var(--primitives-color-neutral-650), var(--primitives-color-neutral-500));
|
|
55882
|
+
--_badge-content-color: light-dark(var(--primitives-color-neutral-0), var(--primitives-color-neutral-1000));
|
|
55570
55883
|
}
|
|
55571
55884
|
|
|
55572
55885
|
:host([color="warning"]) {
|
|
55573
|
-
--_badge-background-color: var(--
|
|
55574
|
-
--_badge-border-color: var(--
|
|
55575
|
-
--_badge-content-color: var(--
|
|
55886
|
+
--_badge-background-color: light-dark(var(--primitives-color-warning-300), var(--primitives-color-warning-700));
|
|
55887
|
+
--_badge-border-color: light-dark(var(--primitives-color-warning-400), var(--primitives-color-warning-600));
|
|
55888
|
+
--_badge-content-color: light-dark(var(--primitives-color-warning-1000), var(--primitives-color-warning-0));
|
|
55576
55889
|
}
|
|
55577
55890
|
|
|
55578
55891
|
:host([color="success"]) {
|
|
55579
|
-
--_badge-background-color: var(--
|
|
55580
|
-
--_badge-border-color: var(--
|
|
55581
|
-
--_badge-content-color: var(--
|
|
55582
|
-
}
|
|
55583
|
-
|
|
55584
|
-
|
|
55585
|
-
/* ## Color — rijkskleuren */
|
|
55586
|
-
|
|
55587
|
-
:host([color="lintblauw"]) {
|
|
55588
|
-
--_badge-background-color: var(--semantics-categories-lintblauw-filled-background-color);
|
|
55589
|
-
--_badge-border-color: var(--semantics-categories-lintblauw-filled-highlight-border-color);
|
|
55590
|
-
--_badge-content-color: var(--semantics-categories-lintblauw-filled-content-color);
|
|
55591
|
-
}
|
|
55592
|
-
|
|
55593
|
-
:host([color="donkerblauw"]) {
|
|
55594
|
-
--_badge-background-color: var(--semantics-categories-donkerblauw-filled-background-color);
|
|
55595
|
-
--_badge-border-color: var(--semantics-categories-donkerblauw-filled-highlight-border-color);
|
|
55596
|
-
--_badge-content-color: var(--semantics-categories-donkerblauw-filled-content-color);
|
|
55597
|
-
}
|
|
55598
|
-
|
|
55599
|
-
:host([color="hemelblauw"]) {
|
|
55600
|
-
--_badge-background-color: var(--semantics-categories-hemelblauw-filled-background-color);
|
|
55601
|
-
--_badge-border-color: var(--semantics-categories-hemelblauw-filled-highlight-border-color);
|
|
55602
|
-
--_badge-content-color: var(--semantics-categories-hemelblauw-filled-content-color);
|
|
55603
|
-
}
|
|
55604
|
-
|
|
55605
|
-
:host([color="lichtblauw"]) {
|
|
55606
|
-
--_badge-background-color: var(--semantics-categories-lichtblauw-filled-background-color);
|
|
55607
|
-
--_badge-border-color: var(--semantics-categories-lichtblauw-filled-highlight-border-color);
|
|
55608
|
-
--_badge-content-color: var(--semantics-categories-lichtblauw-filled-content-color);
|
|
55609
|
-
}
|
|
55610
|
-
|
|
55611
|
-
:host([color="paars"]) {
|
|
55612
|
-
--_badge-background-color: var(--semantics-categories-paars-filled-background-color);
|
|
55613
|
-
--_badge-border-color: var(--semantics-categories-paars-filled-highlight-border-color);
|
|
55614
|
-
--_badge-content-color: var(--semantics-categories-paars-filled-content-color);
|
|
55615
|
-
}
|
|
55616
|
-
|
|
55617
|
-
:host([color="violet"]) {
|
|
55618
|
-
--_badge-background-color: var(--semantics-categories-violet-filled-background-color);
|
|
55619
|
-
--_badge-border-color: var(--semantics-categories-violet-filled-highlight-border-color);
|
|
55620
|
-
--_badge-content-color: var(--semantics-categories-violet-filled-content-color);
|
|
55621
|
-
}
|
|
55622
|
-
|
|
55623
|
-
:host([color="robijnrood"]) {
|
|
55624
|
-
--_badge-background-color: var(--semantics-categories-robijnrood-filled-background-color);
|
|
55625
|
-
--_badge-border-color: var(--semantics-categories-robijnrood-filled-highlight-border-color);
|
|
55626
|
-
--_badge-content-color: var(--semantics-categories-robijnrood-filled-content-color);
|
|
55627
|
-
}
|
|
55628
|
-
|
|
55629
|
-
:host([color="roze"]) {
|
|
55630
|
-
--_badge-background-color: var(--semantics-categories-roze-filled-background-color);
|
|
55631
|
-
--_badge-border-color: var(--semantics-categories-roze-filled-highlight-border-color);
|
|
55632
|
-
--_badge-content-color: var(--semantics-categories-roze-filled-content-color);
|
|
55633
|
-
}
|
|
55634
|
-
|
|
55635
|
-
:host([color="rood"]) {
|
|
55636
|
-
--_badge-background-color: var(--semantics-categories-rood-filled-background-color);
|
|
55637
|
-
--_badge-border-color: var(--semantics-categories-rood-filled-highlight-border-color);
|
|
55638
|
-
--_badge-content-color: var(--semantics-categories-rood-filled-content-color);
|
|
55639
|
-
}
|
|
55640
|
-
|
|
55641
|
-
:host([color="oranje"]) {
|
|
55642
|
-
--_badge-background-color: var(--semantics-categories-oranje-filled-background-color);
|
|
55643
|
-
--_badge-border-color: var(--semantics-categories-oranje-filled-highlight-border-color);
|
|
55644
|
-
--_badge-content-color: var(--semantics-categories-oranje-filled-content-color);
|
|
55645
|
-
}
|
|
55646
|
-
|
|
55647
|
-
:host([color="donkergeel"]) {
|
|
55648
|
-
--_badge-background-color: var(--semantics-categories-donkergeel-filled-background-color);
|
|
55649
|
-
--_badge-border-color: var(--semantics-categories-donkergeel-filled-highlight-border-color);
|
|
55650
|
-
--_badge-content-color: var(--semantics-categories-donkergeel-filled-content-color);
|
|
55892
|
+
--_badge-background-color: var(--primitives-color-success-500);
|
|
55893
|
+
--_badge-border-color: var(--primitives-color-success-550);
|
|
55894
|
+
--_badge-content-color: light-dark(var(--primitives-color-success-0), var(--primitives-color-success-1000));
|
|
55651
55895
|
}
|
|
55652
55896
|
|
|
55653
|
-
:host([color="geel"]) {
|
|
55654
|
-
--_badge-background-color: var(--semantics-categories-geel-filled-background-color);
|
|
55655
|
-
--_badge-border-color: var(--semantics-categories-geel-filled-highlight-border-color);
|
|
55656
|
-
--_badge-content-color: var(--semantics-categories-geel-filled-content-color);
|
|
55657
|
-
}
|
|
55658
55897
|
|
|
55659
|
-
|
|
55660
|
-
--_badge-background-color: var(--semantics-categories-donkerbruin-filled-background-color);
|
|
55661
|
-
--_badge-border-color: var(--semantics-categories-donkerbruin-filled-highlight-border-color);
|
|
55662
|
-
--_badge-content-color: var(--semantics-categories-donkerbruin-filled-content-color);
|
|
55663
|
-
}
|
|
55664
|
-
|
|
55665
|
-
:host([color="bruin"]) {
|
|
55666
|
-
--_badge-background-color: var(--semantics-categories-bruin-filled-background-color);
|
|
55667
|
-
--_badge-border-color: var(--semantics-categories-bruin-filled-highlight-border-color);
|
|
55668
|
-
--_badge-content-color: var(--semantics-categories-bruin-filled-content-color);
|
|
55669
|
-
}
|
|
55670
|
-
|
|
55671
|
-
:host([color="donkergroen"]) {
|
|
55672
|
-
--_badge-background-color: var(--semantics-categories-donkergroen-filled-background-color);
|
|
55673
|
-
--_badge-border-color: var(--semantics-categories-donkergroen-filled-highlight-border-color);
|
|
55674
|
-
--_badge-content-color: var(--semantics-categories-donkergroen-filled-content-color);
|
|
55675
|
-
}
|
|
55676
|
-
|
|
55677
|
-
:host([color="groen"]) {
|
|
55678
|
-
--_badge-background-color: var(--semantics-categories-groen-filled-background-color);
|
|
55679
|
-
--_badge-border-color: var(--semantics-categories-groen-filled-highlight-border-color);
|
|
55680
|
-
--_badge-content-color: var(--semantics-categories-groen-filled-content-color);
|
|
55681
|
-
}
|
|
55682
|
-
|
|
55683
|
-
:host([color="mosgroen"]) {
|
|
55684
|
-
--_badge-background-color: var(--semantics-categories-mosgroen-filled-background-color);
|
|
55685
|
-
--_badge-border-color: var(--semantics-categories-mosgroen-filled-highlight-border-color);
|
|
55686
|
-
--_badge-content-color: var(--semantics-categories-mosgroen-filled-content-color);
|
|
55687
|
-
}
|
|
55688
|
-
|
|
55689
|
-
:host([color="mintgroen"]) {
|
|
55690
|
-
--_badge-background-color: var(--semantics-categories-mintgroen-filled-background-color);
|
|
55691
|
-
--_badge-border-color: var(--semantics-categories-mintgroen-filled-highlight-border-color);
|
|
55692
|
-
--_badge-content-color: var(--semantics-categories-mintgroen-filled-content-color);
|
|
55693
|
-
}
|
|
55898
|
+
/* ## Custom color */
|
|
55694
55899
|
|
|
55695
55900
|
/* color on the host rather than on the fill: the contrast token reads
|
|
55696
55901
|
currentColor, so the text lands on black or white without a second formula
|
|
@@ -55880,7 +56085,7 @@ var nlddBadgeTranslations = { "components.badge.notification-label": "Notificati
|
|
|
55880
56085
|
*
|
|
55881
56086
|
* @element nldd-badge
|
|
55882
56087
|
* @attr {string} size - Size: 'sm' | 'md' (default: 'md')
|
|
55883
|
-
* @attr {
|
|
56088
|
+
* @attr {'critical'|'accent'|'neutral'|'warning'|'success'|'inherit'} color - The meaning of the badge, the same set as nldd-status-bar, or 'inherit' to fill in the content color around it: the `--context-content-color` channel a list item, table row or menu sets, falling back to `currentColor`. Default: 'critical'. A badge is a signal, not a category, so it has no Rijkshuisstijl colors: the theme picks the accent, and `custom-color` takes any other. Another value falls back to 'accent' and says so in development.
|
|
55884
56089
|
* @attr {string} custom-color - A color of its own, as any CSS color value ('#a90061', 'oklch(0.6 0.2 20)', 'var(--brand-cable-blue)'). For a color the system cannot know: the jacket of a cable, a color someone picked. It wins over `color`. Whatever it paints, the text and icon on top become white or black, whichever contrasts. The text on it is black or white, picked on the relative luminance of the fill, so it clears 4.5:1 whatever color you hand it.
|
|
55885
56090
|
* @attr {boolean} pulse - Grows a ring out of the badge and fades it, for something happening right now (a live connection, an outage). Respects `prefers-reduced-motion`.
|
|
55886
56091
|
* @attr {string} text - Text (takes precedence over number)
|
|
@@ -55890,7 +56095,16 @@ var nlddBadgeTranslations = { "components.badge.notification-label": "Notificati
|
|
|
55890
56095
|
* @attr {string} accessible-label - Accessible label for screen readers. Falls back to text/number; otherwise to the i18n default ("Notificatie").
|
|
55891
56096
|
* @attr {boolean} decorative - Hides the badge from assistive software (use when the text beside it says the same, such as a dot next to a status word)
|
|
55892
56097
|
*/
|
|
55893
|
-
var _NLDDBadge
|
|
56098
|
+
var _NLDDBadge;
|
|
56099
|
+
var COLORS = /* @__PURE__ */ new Set([
|
|
56100
|
+
"critical",
|
|
56101
|
+
"accent",
|
|
56102
|
+
"neutral",
|
|
56103
|
+
"warning",
|
|
56104
|
+
"success",
|
|
56105
|
+
"inherit"
|
|
56106
|
+
]);
|
|
56107
|
+
var NLDDBadge = (_NLDDBadge = class NLDDBadge extends withTranslations(LitElement, nlddBadgeTranslations) {
|
|
55894
56108
|
constructor(..._args) {
|
|
55895
56109
|
super(..._args);
|
|
55896
56110
|
this.size = "md";
|
|
@@ -55904,6 +56118,11 @@ var _NLDDBadge = class NLDDBadge extends withTranslations(LitElement, nlddBadgeT
|
|
|
55904
56118
|
this.accessibleLabel = "";
|
|
55905
56119
|
this.decorative = false;
|
|
55906
56120
|
}
|
|
56121
|
+
willUpdate(changed) {
|
|
56122
|
+
if (!changed.has("color")) return;
|
|
56123
|
+
const known = COLORS.has(this.color);
|
|
56124
|
+
this.toggleAttribute("data-color-fallback", !known);
|
|
56125
|
+
}
|
|
55907
56126
|
updated(changed) {
|
|
55908
56127
|
if (!changed.has("customColor")) return;
|
|
55909
56128
|
if (this.customColor) this.style.setProperty("--_badge-custom-color", this.customColor);
|
|
@@ -55931,8 +56150,7 @@ var _NLDDBadge = class NLDDBadge extends withTranslations(LitElement, nlddBadgeT
|
|
|
55931
56150
|
render() {
|
|
55932
56151
|
return template(this);
|
|
55933
56152
|
}
|
|
55934
|
-
};
|
|
55935
|
-
var NLDDBadge = (_NLDDBadge.styles = badgeStyles, _NLDDBadge);
|
|
56153
|
+
}, _NLDDBadge.styles = badgeStyles, _NLDDBadge);
|
|
55936
56154
|
__decorate([property({
|
|
55937
56155
|
reflect: true,
|
|
55938
56156
|
converter: reflectNonDefault("md")
|
|
@@ -56139,13 +56357,13 @@ var progressBarStyles = css`
|
|
|
56139
56357
|
animation: progress-bar-indeterminate var(--_progress-bar-indeterminate-duration) ease-in-out infinite alternate;
|
|
56140
56358
|
}
|
|
56141
56359
|
|
|
56142
|
-
@container (min-width:
|
|
56360
|
+
@container (min-width: 25.0625rem) and (max-width: 45rem) {
|
|
56143
56361
|
.progress-bar__indeterminate-indicator::before {
|
|
56144
56362
|
--_progress-bar-indeterminate-duration: 1000ms;
|
|
56145
56363
|
}
|
|
56146
56364
|
}
|
|
56147
56365
|
|
|
56148
|
-
@container (min-width:
|
|
56366
|
+
@container (min-width: 45.0625rem) {
|
|
56149
56367
|
.progress-bar__indeterminate-indicator::before {
|
|
56150
56368
|
--_progress-bar-indeterminate-duration: 1200ms;
|
|
56151
56369
|
}
|
|
@@ -56508,7 +56726,7 @@ var nlddProgressBarTranslations = {
|
|
|
56508
56726
|
* @element nldd-progress-bar-segment-indicator
|
|
56509
56727
|
*
|
|
56510
56728
|
* @attr {number} value - Share of the parent's total (default 0; <=0 hides segment)
|
|
56511
|
-
* @attr {string} color - Color. Semantic (neutral, accent, success, warning, critical) or a Rijkskleur. Default 'accent'.
|
|
56729
|
+
* @attr {string} color - Color. Semantic (neutral, accent, success, warning, critical) or a Rijkskleur. Default 'accent'. With more than one segment, give each a Rijkskleur (or success, warning and critical where they mean that): `accent` can turn near-black or match another segment in a theme, and `neutral` disappears against the track.
|
|
56512
56730
|
* @attr {string} name - Name for screenreader text (optional)
|
|
56513
56731
|
* @attr {string} tooltip-text - Override of the auto-generated tooltip text
|
|
56514
56732
|
*/
|
|
@@ -57337,7 +57555,7 @@ var nlddProgressCircleTranslations = {
|
|
|
57337
57555
|
* @element nldd-progress-circle-segment-indicator
|
|
57338
57556
|
*
|
|
57339
57557
|
* @attr {number} value - Share of the parent's total (default 0; <=0 hides segment)
|
|
57340
|
-
* @attr {string} color - Color (semantic or Rijkskleur). Default 'accent'.
|
|
57558
|
+
* @attr {string} color - Color (semantic or Rijkskleur). Default 'accent'. With more than one segment, give each a Rijkskleur (or success, warning and critical where they mean that): `accent` can turn near-black or match another segment in a theme, and `neutral` disappears against the track.
|
|
57341
57559
|
* @attr {string} name - Optional name used in the combined tooltip + screenreader text
|
|
57342
57560
|
*/
|
|
57343
57561
|
var _NLDDProgressCircleSegmentIndicator;
|
|
@@ -57661,7 +57879,7 @@ var nlddStepBarTranslations = {
|
|
|
57661
57879
|
};
|
|
57662
57880
|
//#endregion
|
|
57663
57881
|
//#region src/components/status-and-feedback/step-bar/step-bar.styles.ts
|
|
57664
|
-
var smMax = unsafeCSS(
|
|
57882
|
+
var smMax = unsafeCSS(queryBreakpoints.smMax);
|
|
57665
57883
|
var stepBarStyles = css`
|
|
57666
57884
|
:host {
|
|
57667
57885
|
box-sizing: border-box;
|
|
@@ -58225,11 +58443,11 @@ var statusBarStyles = css`
|
|
|
58225
58443
|
|
|
58226
58444
|
:host {
|
|
58227
58445
|
--_status-bar-corner-radius: var(--primitives-corner-radius-none);
|
|
58228
|
-
--_status-bar-background-color: var(--
|
|
58446
|
+
--_status-bar-background-color: light-dark(var(--primitives-color-neutral-600), var(--primitives-color-neutral-450));
|
|
58229
58447
|
--_status-bar-height: var(--semantics-controls-xs-min-size);
|
|
58230
58448
|
--_status-bar-inline-padding: var(--primitives-space-8);
|
|
58231
58449
|
--_status-bar-gap: var(--primitives-space-2);
|
|
58232
|
-
--_status-bar-content-color: var(--
|
|
58450
|
+
--_status-bar-content-color: light-dark(var(--primitives-color-neutral-0), var(--primitives-color-neutral-1000));
|
|
58233
58451
|
--_status-bar-font: var(--primitives-font-body-xs-medium-flat);
|
|
58234
58452
|
--_status-bar-is-hovered-background-color: light-dark(var(--primitives-color-neutral-650), var(--primitives-color-neutral-500));
|
|
58235
58453
|
--_status-bar-is-active-background-color: light-dark(var(--primitives-color-neutral-700), var(--primitives-color-neutral-550));
|
|
@@ -58244,29 +58462,29 @@ var statusBarStyles = css`
|
|
|
58244
58462
|
}
|
|
58245
58463
|
|
|
58246
58464
|
:host([variant="accent"]) {
|
|
58247
|
-
--_status-bar-background-color: var(--
|
|
58248
|
-
--_status-bar-content-color: var(--
|
|
58249
|
-
--_status-bar-is-hovered-background-color:
|
|
58250
|
-
--_status-bar-is-active-background-color:
|
|
58465
|
+
--_status-bar-background-color: var(--components-status-bar-accent-background-color);
|
|
58466
|
+
--_status-bar-content-color: var(--components-status-bar-accent-content-color);
|
|
58467
|
+
--_status-bar-is-hovered-background-color: var(--components-status-bar-accent-is-hovered-background-color);
|
|
58468
|
+
--_status-bar-is-active-background-color: var(--components-status-bar-accent-is-active-background-color);
|
|
58251
58469
|
}
|
|
58252
58470
|
|
|
58253
58471
|
:host([variant="success"]) {
|
|
58254
|
-
--_status-bar-background-color: var(--
|
|
58255
|
-
--_status-bar-content-color: var(--
|
|
58472
|
+
--_status-bar-background-color: var(--primitives-color-success-500);
|
|
58473
|
+
--_status-bar-content-color: light-dark(var(--primitives-color-success-0), var(--primitives-color-success-1000));
|
|
58256
58474
|
--_status-bar-is-hovered-background-color: var(--primitives-color-success-550);
|
|
58257
58475
|
--_status-bar-is-active-background-color: var(--primitives-color-success-600);
|
|
58258
58476
|
}
|
|
58259
58477
|
|
|
58260
58478
|
:host([variant="warning"]) {
|
|
58261
|
-
--_status-bar-background-color: var(--
|
|
58262
|
-
--_status-bar-content-color: var(--
|
|
58263
|
-
--_status-bar-is-hovered-background-color: light-dark(var(--primitives-color-warning-
|
|
58264
|
-
--_status-bar-is-active-background-color: light-dark(var(--primitives-color-warning-
|
|
58479
|
+
--_status-bar-background-color: light-dark(var(--primitives-color-warning-300), var(--primitives-color-warning-700));
|
|
58480
|
+
--_status-bar-content-color: light-dark(var(--primitives-color-warning-1000), var(--primitives-color-warning-0));
|
|
58481
|
+
--_status-bar-is-hovered-background-color: light-dark(var(--primitives-color-warning-350), var(--primitives-color-warning-650));
|
|
58482
|
+
--_status-bar-is-active-background-color: light-dark(var(--primitives-color-warning-400), var(--primitives-color-warning-600));
|
|
58265
58483
|
}
|
|
58266
58484
|
|
|
58267
58485
|
:host([variant="critical"]) {
|
|
58268
|
-
--_status-bar-background-color: var(--
|
|
58269
|
-
--_status-bar-content-color: var(--
|
|
58486
|
+
--_status-bar-background-color: light-dark(var(--primitives-color-critical-650), var(--primitives-color-critical-450));
|
|
58487
|
+
--_status-bar-content-color: light-dark(var(--primitives-color-critical-0), var(--primitives-color-critical-1000));
|
|
58270
58488
|
--_status-bar-is-hovered-background-color: light-dark(var(--primitives-color-critical-700), var(--primitives-color-critical-500));
|
|
58271
58489
|
--_status-bar-is-active-background-color: light-dark(var(--primitives-color-critical-750), var(--primitives-color-critical-550));
|
|
58272
58490
|
}
|