@nldd/design-system 0.8.63 → 0.8.64
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/dist/assets/styles/{slotted-reset.d.ts → style-resets.d.ts} +1 -1
- package/dist/assets/styles/style-resets.d.ts.map +1 -0
- package/dist/assets/styles/{slotted-reset.fixtures.d.ts → style-resets.fixtures.d.ts} +4 -4
- package/dist/assets/styles/style-resets.fixtures.d.ts.map +1 -0
- package/dist/assets/styles/{slotted-reset.fixtures.js → style-resets.fixtures.js} +4 -4
- package/dist/assets/styles/style-resets.fixtures.js.map +1 -0
- package/dist/assets/styles/{slotted-reset.js → style-resets.js} +1 -1
- package/dist/assets/styles/style-resets.js.map +1 -0
- package/dist/components/actions/button/button.styles.js +7 -7
- package/dist/components/actions/button/button.styles.js.map +1 -1
- package/dist/components/actions/button-bar/button-bar.styles.d.ts.map +1 -1
- package/dist/components/actions/button-bar/button-bar.styles.js +3 -0
- package/dist/components/actions/button-bar/button-bar.styles.js.map +1 -1
- package/dist/components/actions/button-group/button-group.styles.d.ts.map +1 -1
- package/dist/components/actions/button-group/button-group.styles.js +3 -0
- package/dist/components/actions/button-group/button-group.styles.js.map +1 -1
- package/dist/components/actions/icon-button/icon-button.styles.d.ts.map +1 -1
- package/dist/components/actions/icon-button/icon-button.styles.js +4 -1
- package/dist/components/actions/icon-button/icon-button.styles.js.map +1 -1
- package/dist/components/actions/menu/menu.styles.d.ts.map +1 -1
- package/dist/components/actions/menu/menu.styles.js +4 -1
- package/dist/components/actions/menu/menu.styles.js.map +1 -1
- package/dist/components/actions/split-button/split-button.styles.d.ts.map +1 -1
- package/dist/components/actions/split-button/split-button.styles.js +4 -1
- package/dist/components/actions/split-button/split-button.styles.js.map +1 -1
- package/dist/components/actions/toolbar/toolbar.styles.d.ts.map +1 -1
- package/dist/components/actions/toolbar/toolbar.styles.js +4 -1
- package/dist/components/actions/toolbar/toolbar.styles.js.map +1 -1
- package/dist/components/components.js +31 -30
- package/dist/components/content/blockquote/blockquote.styles.d.ts.map +1 -1
- package/dist/components/content/blockquote/blockquote.styles.js +4 -1
- package/dist/components/content/blockquote/blockquote.styles.js.map +1 -1
- package/dist/components/content/byline/byline.styles.d.ts.map +1 -1
- package/dist/components/content/byline/byline.styles.js +4 -1
- package/dist/components/content/byline/byline.styles.js.map +1 -1
- package/dist/components/content/code-viewer/code-viewer.styles.d.ts.map +1 -1
- package/dist/components/content/code-viewer/code-viewer.styles.js +4 -1
- package/dist/components/content/code-viewer/code-viewer.styles.js.map +1 -1
- package/dist/components/content/icon/icon-aliases.js +1 -1
- package/dist/components/content/icon/icon-aliases.js.map +1 -1
- package/dist/components/content/icon/icon.styles.d.ts.map +1 -1
- package/dist/components/content/icon/icon.styles.js +3 -0
- package/dist/components/content/icon/icon.styles.js.map +1 -1
- package/dist/components/content/image/image.styles.d.ts.map +1 -1
- package/dist/components/content/image/image.styles.js +4 -1
- package/dist/components/content/image/image.styles.js.map +1 -1
- package/dist/components/content/keyboard-shortcut/keyboard-shortcut.styles.d.ts.map +1 -1
- package/dist/components/content/keyboard-shortcut/keyboard-shortcut.styles.js +4 -1
- package/dist/components/content/keyboard-shortcut/keyboard-shortcut.styles.js.map +1 -1
- package/dist/components/content/tag/tag.styles.d.ts.map +1 -1
- package/dist/components/content/tag/tag.styles.js +4 -1
- package/dist/components/content/tag/tag.styles.js.map +1 -1
- package/dist/components/content/title/title.styles.d.ts.map +1 -1
- package/dist/components/content/title/title.styles.js +4 -1
- package/dist/components/content/title/title.styles.js.map +1 -1
- package/dist/components/content/tooltip/tooltip.styles.d.ts.map +1 -1
- package/dist/components/content/tooltip/tooltip.styles.js +4 -1
- package/dist/components/content/tooltip/tooltip.styles.js.map +1 -1
- package/dist/components/forms/form-actions/form-actions.styles.d.ts.map +1 -1
- package/dist/components/forms/form-actions/form-actions.styles.js +3 -0
- package/dist/components/forms/form-actions/form-actions.styles.js.map +1 -1
- package/dist/components/forms/form-field/form-field.styles.d.ts.map +1 -1
- package/dist/components/forms/form-field/form-field.styles.js +4 -1
- package/dist/components/forms/form-field/form-field.styles.js.map +1 -1
- package/dist/components/{index-BVaijKe_.js → index-BNhqNvDd.js} +3672 -2673
- package/dist/components/index.d.ts +1 -0
- package/dist/components/index.d.ts.map +1 -1
- package/dist/components/index.js +1 -0
- package/dist/components/index.js.map +1 -1
- package/dist/components/inputs/checkbox/checkbox.styles.d.ts.map +1 -1
- package/dist/components/inputs/checkbox/checkbox.styles.js +3 -0
- package/dist/components/inputs/checkbox/checkbox.styles.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 +4 -1
- package/dist/components/inputs/checkbox-field/checkbox-field.styles.js.map +1 -1
- package/dist/components/inputs/code-editor/code-editor.styles.d.ts.map +1 -1
- package/dist/components/inputs/code-editor/code-editor.styles.js +4 -1
- package/dist/components/inputs/code-editor/code-editor.styles.js.map +1 -1
- package/dist/components/inputs/combo-box/combo-box.styles.d.ts.map +1 -1
- package/dist/components/inputs/combo-box/combo-box.styles.js +4 -1
- package/dist/components/inputs/combo-box/combo-box.styles.js.map +1 -1
- package/dist/components/inputs/dropdown/dropdown.styles.d.ts.map +1 -1
- package/dist/components/inputs/dropdown/dropdown.styles.js +4 -1
- package/dist/components/inputs/dropdown/dropdown.styles.js.map +1 -1
- package/dist/components/inputs/multi-line-text-field/multi-line-text-field.styles.d.ts.map +1 -1
- package/dist/components/inputs/multi-line-text-field/multi-line-text-field.styles.js +4 -1
- package/dist/components/inputs/multi-line-text-field/multi-line-text-field.styles.js.map +1 -1
- package/dist/components/inputs/number-field/number-field.styles.d.ts.map +1 -1
- package/dist/components/inputs/number-field/number-field.styles.js +4 -1
- package/dist/components/inputs/number-field/number-field.styles.js.map +1 -1
- package/dist/components/inputs/password-field/password-field.styles.d.ts.map +1 -1
- package/dist/components/inputs/password-field/password-field.styles.js +4 -1
- package/dist/components/inputs/password-field/password-field.styles.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 +3 -0
- package/dist/components/inputs/radio-button/radio-button.styles.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 +4 -1
- package/dist/components/inputs/radio-button-field/radio-button-field.styles.js.map +1 -1
- package/dist/components/inputs/radio-button-group/radio-button-group.styles.d.ts.map +1 -1
- package/dist/components/inputs/radio-button-group/radio-button-group.styles.js +4 -1
- package/dist/components/inputs/radio-button-group/radio-button-group.styles.js.map +1 -1
- package/dist/components/inputs/search-field/search-field.styles.d.ts.map +1 -1
- package/dist/components/inputs/search-field/search-field.styles.js +13 -1
- package/dist/components/inputs/search-field/search-field.styles.js.map +1 -1
- package/dist/components/inputs/search-field/search-field.template.d.ts.map +1 -1
- package/dist/components/inputs/search-field/search-field.template.js +47 -39
- package/dist/components/inputs/search-field/search-field.template.js.map +1 -1
- package/dist/components/inputs/segmented-control/segmented-control.styles.d.ts.map +1 -1
- package/dist/components/inputs/segmented-control/segmented-control.styles.js +4 -1
- package/dist/components/inputs/segmented-control/segmented-control.styles.js.map +1 -1
- package/dist/components/inputs/stepper/stepper.styles.d.ts.map +1 -1
- package/dist/components/inputs/stepper/stepper.styles.js +3 -0
- package/dist/components/inputs/stepper/stepper.styles.js.map +1 -1
- package/dist/components/inputs/switch/switch.styles.d.ts.map +1 -1
- package/dist/components/inputs/switch/switch.styles.js +3 -0
- package/dist/components/inputs/switch/switch.styles.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 +4 -1
- package/dist/components/inputs/switch-field/switch-field.styles.js.map +1 -1
- package/dist/components/inputs/text-field/text-field.styles.d.ts.map +1 -1
- package/dist/components/inputs/text-field/text-field.styles.js +4 -1
- package/dist/components/inputs/text-field/text-field.styles.js.map +1 -1
- package/dist/components/inputs/toggle-button/toggle-button.styles.d.ts.map +1 -1
- package/dist/components/inputs/toggle-button/toggle-button.styles.js +4 -1
- package/dist/components/inputs/toggle-button/toggle-button.styles.js.map +1 -1
- package/dist/components/inputs/toggle-button-group/toggle-button-group.styles.d.ts.map +1 -1
- package/dist/components/inputs/toggle-button-group/toggle-button-group.styles.js +3 -0
- package/dist/components/inputs/toggle-button-group/toggle-button-group.styles.js.map +1 -1
- package/dist/components/inputs/token/token.styles.d.ts.map +1 -1
- package/dist/components/inputs/token/token.styles.js +4 -1
- package/dist/components/inputs/token/token.styles.js.map +1 -1
- package/dist/components/layout/app-view/app-view.styles.d.ts.map +1 -1
- package/dist/components/layout/app-view/app-view.styles.js +3 -0
- package/dist/components/layout/app-view/app-view.styles.js.map +1 -1
- package/dist/components/layout/box/box.styles.d.ts.map +1 -1
- package/dist/components/layout/box/box.styles.js +3 -0
- package/dist/components/layout/box/box.styles.js.map +1 -1
- package/dist/components/layout/card/card.d.ts +28 -2
- package/dist/components/layout/card/card.d.ts.map +1 -1
- package/dist/components/layout/card/card.i18n.d.ts +5 -0
- package/dist/components/layout/card/card.i18n.d.ts.map +1 -0
- package/dist/components/layout/card/card.i18n.js +4 -0
- package/dist/components/layout/card/card.i18n.js.map +1 -0
- package/dist/components/layout/card/card.js +54 -2
- package/dist/components/layout/card/card.js.map +1 -1
- package/dist/components/layout/card/card.styles.d.ts.map +1 -1
- package/dist/components/layout/card/card.styles.js +20 -0
- 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 +17 -1
- package/dist/components/layout/card/card.template.js.map +1 -1
- package/dist/components/layout/collection/collection.d.ts +5 -5
- package/dist/components/layout/collection/collection.d.ts.map +1 -1
- package/dist/components/layout/collection/collection.js +4 -4
- package/dist/components/layout/collection/collection.styles.d.ts.map +1 -1
- package/dist/components/layout/collection/collection.styles.js +5 -2
- package/dist/components/layout/collection/collection.styles.js.map +1 -1
- package/dist/components/layout/container/container.d.ts +7 -3
- package/dist/components/layout/container/container.d.ts.map +1 -1
- package/dist/components/layout/container/container.js +15 -3
- package/dist/components/layout/container/container.js.map +1 -1
- package/dist/components/layout/container/container.styles.d.ts.map +1 -1
- package/dist/components/layout/container/container.styles.js +42 -1
- package/dist/components/layout/container/container.styles.js.map +1 -1
- package/dist/components/layout/divider/divider.styles.d.ts.map +1 -1
- package/dist/components/layout/divider/divider.styles.js +3 -0
- package/dist/components/layout/divider/divider.styles.js.map +1 -1
- package/dist/components/layout/page/page.styles.d.ts.map +1 -1
- package/dist/components/layout/page/page.styles.js +3 -0
- package/dist/components/layout/page/page.styles.js.map +1 -1
- package/dist/components/layout/page-footer/page-footer.styles.d.ts.map +1 -1
- package/dist/components/layout/page-footer/page-footer.styles.js +4 -1
- 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.styles.d.ts.map +1 -1
- package/dist/components/layout/page-sections/full-bleed-section/full-bleed-section.styles.js +3 -0
- 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.d.ts +25 -5
- package/dist/components/layout/page-sections/hero/hero.d.ts.map +1 -1
- package/dist/components/layout/page-sections/hero/hero.js +60 -11
- 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 +15 -4
- package/dist/components/layout/page-sections/hero/hero.styles.js.map +1 -1
- package/dist/components/layout/page-sections/hero/hero.template.d.ts.map +1 -1
- package/dist/components/layout/page-sections/hero/hero.template.js +13 -1
- package/dist/components/layout/page-sections/hero/hero.template.js.map +1 -1
- package/dist/components/layout/page-sections/one-half-one-half-section/one-half-one-half-section.styles.d.ts.map +1 -1
- package/dist/components/layout/page-sections/one-half-one-half-section/one-half-one-half-section.styles.js +3 -0
- 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.styles.d.ts.map +1 -1
- package/dist/components/layout/page-sections/one-third-two-thirds-section/one-third-two-thirds-section.styles.js +3 -0
- 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/sidebar-section/sidebar-section.d.ts +119 -0
- package/dist/components/layout/page-sections/sidebar-section/sidebar-section.d.ts.map +1 -0
- package/dist/components/layout/page-sections/sidebar-section/sidebar-section.i18n.d.ts +6 -0
- package/dist/components/layout/page-sections/sidebar-section/sidebar-section.i18n.d.ts.map +1 -0
- package/dist/components/layout/page-sections/sidebar-section/sidebar-section.i18n.js +5 -0
- package/dist/components/layout/page-sections/sidebar-section/sidebar-section.i18n.js.map +1 -0
- package/dist/components/layout/page-sections/sidebar-section/sidebar-section.js +219 -0
- package/dist/components/layout/page-sections/sidebar-section/sidebar-section.js.map +1 -0
- package/dist/components/layout/page-sections/sidebar-section/sidebar-section.styles.d.ts +2 -0
- package/dist/components/layout/page-sections/sidebar-section/sidebar-section.styles.d.ts.map +1 -0
- package/dist/components/layout/page-sections/sidebar-section/sidebar-section.styles.js +157 -0
- package/dist/components/layout/page-sections/sidebar-section/sidebar-section.styles.js.map +1 -0
- package/dist/components/layout/page-sections/sidebar-section/sidebar-section.template.d.ts +4 -0
- package/dist/components/layout/page-sections/sidebar-section/sidebar-section.template.d.ts.map +1 -0
- package/dist/components/layout/page-sections/sidebar-section/sidebar-section.template.js +57 -0
- package/dist/components/layout/page-sections/sidebar-section/sidebar-section.template.js.map +1 -0
- package/dist/components/layout/page-sections/simple-section/simple-section.styles.d.ts.map +1 -1
- package/dist/components/layout/page-sections/simple-section/simple-section.styles.js +3 -0
- 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.styles.d.ts.map +1 -1
- package/dist/components/layout/page-sections/two-thirds-one-third-section/two-thirds-one-third-section.styles.js +3 -0
- 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.styles.d.ts.map +1 -1
- package/dist/components/layout/popover/popover.styles.js +3 -0
- package/dist/components/layout/popover/popover.styles.js.map +1 -1
- package/dist/components/layout/sheet/sheet.styles.d.ts.map +1 -1
- package/dist/components/layout/sheet/sheet.styles.js +3 -0
- package/dist/components/layout/sheet/sheet.styles.js.map +1 -1
- package/dist/components/layout/spacer/spacer.styles.d.ts.map +1 -1
- package/dist/components/layout/spacer/spacer.styles.js +3 -0
- package/dist/components/layout/spacer/spacer.styles.js.map +1 -1
- package/dist/components/layout/split-views/bar-split-view/bar-split-view.styles.d.ts.map +1 -1
- package/dist/components/layout/split-views/bar-split-view/bar-split-view.styles.js +3 -0
- package/dist/components/layout/split-views/bar-split-view/bar-split-view.styles.js.map +1 -1
- package/dist/components/layout/split-views/navigation-split-view/navigation-split-view.d.ts +47 -19
- package/dist/components/layout/split-views/navigation-split-view/navigation-split-view.d.ts.map +1 -1
- package/dist/components/layout/split-views/navigation-split-view/navigation-split-view.js +123 -73
- package/dist/components/layout/split-views/navigation-split-view/navigation-split-view.js.map +1 -1
- package/dist/components/layout/split-views/navigation-split-view/navigation-split-view.styles.d.ts.map +1 -1
- package/dist/components/layout/split-views/navigation-split-view/navigation-split-view.styles.js +17 -14
- package/dist/components/layout/split-views/navigation-split-view/navigation-split-view.styles.js.map +1 -1
- package/dist/components/layout/split-views/navigation-split-view/navigation-split-view.template.d.ts.map +1 -1
- package/dist/components/layout/split-views/navigation-split-view/navigation-split-view.template.js +10 -8
- package/dist/components/layout/split-views/navigation-split-view/navigation-split-view.template.js.map +1 -1
- package/dist/components/layout/split-views/side-by-side-split-view/side-by-side-split-view.styles.d.ts.map +1 -1
- package/dist/components/layout/split-views/side-by-side-split-view/side-by-side-split-view.styles.js +3 -0
- package/dist/components/layout/split-views/side-by-side-split-view/side-by-side-split-view.styles.js.map +1 -1
- package/dist/components/layout/split-views/split-view-divider/split-view-divider.styles.d.ts.map +1 -1
- package/dist/components/layout/split-views/split-view-divider/split-view-divider.styles.js +3 -0
- package/dist/components/layout/split-views/split-view-divider/split-view-divider.styles.js.map +1 -1
- package/dist/components/layout/split-views/split-view-pane/split-view-pane.styles.d.ts.map +1 -1
- package/dist/components/layout/split-views/split-view-pane/split-view-pane.styles.js +3 -0
- package/dist/components/layout/split-views/split-view-pane/split-view-pane.styles.js.map +1 -1
- package/dist/components/layout/split-views/stacked-split-view/stacked-split-view.styles.d.ts.map +1 -1
- package/dist/components/layout/split-views/stacked-split-view/stacked-split-view.styles.js +3 -0
- package/dist/components/layout/split-views/stacked-split-view/stacked-split-view.styles.js.map +1 -1
- package/dist/components/layout/window/window.d.ts +1 -19
- package/dist/components/layout/window/window.d.ts.map +1 -1
- package/dist/components/layout/window/window.js +1 -187
- package/dist/components/layout/window/window.js.map +1 -1
- package/dist/components/layout/window/window.styles.d.ts.map +1 -1
- package/dist/components/layout/window/window.styles.js +5 -28
- package/dist/components/layout/window/window.styles.js.map +1 -1
- package/dist/components/layout/window/window.template.d.ts.map +1 -1
- package/dist/components/layout/window/window.template.js +1 -2
- package/dist/components/layout/window/window.template.js.map +1 -1
- package/dist/components/lists-and-tables/cells/cell/cell.styles.d.ts.map +1 -1
- package/dist/components/lists-and-tables/cells/cell/cell.styles.js +4 -1
- package/dist/components/lists-and-tables/cells/cell/cell.styles.js.map +1 -1
- package/dist/components/lists-and-tables/cells/description-cell/description-cell.styles.d.ts.map +1 -1
- package/dist/components/lists-and-tables/cells/description-cell/description-cell.styles.js +4 -1
- package/dist/components/lists-and-tables/cells/description-cell/description-cell.styles.js.map +1 -1
- package/dist/components/lists-and-tables/cells/drag-handle-cell/drag-handle-cell.styles.d.ts.map +1 -1
- package/dist/components/lists-and-tables/cells/drag-handle-cell/drag-handle-cell.styles.js +3 -0
- package/dist/components/lists-and-tables/cells/drag-handle-cell/drag-handle-cell.styles.js.map +1 -1
- package/dist/components/lists-and-tables/cells/icon-cell/icon-cell.styles.d.ts.map +1 -1
- package/dist/components/lists-and-tables/cells/icon-cell/icon-cell.styles.js +3 -0
- package/dist/components/lists-and-tables/cells/icon-cell/icon-cell.styles.js.map +1 -1
- package/dist/components/lists-and-tables/cells/spacer-cell/spacer-cell.styles.d.ts.map +1 -1
- package/dist/components/lists-and-tables/cells/spacer-cell/spacer-cell.styles.js +3 -0
- package/dist/components/lists-and-tables/cells/spacer-cell/spacer-cell.styles.js.map +1 -1
- package/dist/components/lists-and-tables/cells/text-cell/text-cell.styles.d.ts.map +1 -1
- package/dist/components/lists-and-tables/cells/text-cell/text-cell.styles.js +4 -1
- package/dist/components/lists-and-tables/cells/text-cell/text-cell.styles.js.map +1 -1
- package/dist/components/lists-and-tables/cells/timeline-track-cell/timeline-track-cell.styles.d.ts.map +1 -1
- package/dist/components/lists-and-tables/cells/timeline-track-cell/timeline-track-cell.styles.js +3 -0
- package/dist/components/lists-and-tables/cells/timeline-track-cell/timeline-track-cell.styles.js.map +1 -1
- package/dist/components/lists-and-tables/cells/title-cell/title-cell.styles.d.ts.map +1 -1
- package/dist/components/lists-and-tables/cells/title-cell/title-cell.styles.js +4 -1
- package/dist/components/lists-and-tables/cells/title-cell/title-cell.styles.js.map +1 -1
- package/dist/components/lists-and-tables/list/list.d.ts +138 -8
- package/dist/components/lists-and-tables/list/list.d.ts.map +1 -1
- package/dist/components/lists-and-tables/list/list.i18n.d.ts +2 -0
- package/dist/components/lists-and-tables/list/list.i18n.d.ts.map +1 -1
- package/dist/components/lists-and-tables/list/list.i18n.js +2 -0
- package/dist/components/lists-and-tables/list/list.i18n.js.map +1 -1
- package/dist/components/lists-and-tables/list/list.js +368 -16
- package/dist/components/lists-and-tables/list/list.js.map +1 -1
- package/dist/components/lists-and-tables/list/list.styles.d.ts.map +1 -1
- package/dist/components/lists-and-tables/list/list.styles.js +163 -25
- package/dist/components/lists-and-tables/list/list.styles.js.map +1 -1
- package/dist/components/lists-and-tables/list/list.template.d.ts +26 -1
- package/dist/components/lists-and-tables/list/list.template.d.ts.map +1 -1
- package/dist/components/lists-and-tables/list/list.template.js +76 -18
- package/dist/components/lists-and-tables/list/list.template.js.map +1 -1
- package/dist/components/lists-and-tables/list-item/list-item.d.ts +20 -7
- 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.js +49 -24
- 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 +50 -28
- 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 -6
- package/dist/components/lists-and-tables/list-item/list-item.template.js.map +1 -1
- package/dist/components/lists-and-tables/table/table.styles.d.ts.map +1 -1
- package/dist/components/lists-and-tables/table/table.styles.js +4 -1
- package/dist/components/lists-and-tables/table/table.styles.js.map +1 -1
- package/dist/components/navigation/breadcrumbs/breadcrumbs.d.ts +0 -44
- package/dist/components/navigation/breadcrumbs/breadcrumbs.d.ts.map +1 -1
- package/dist/components/navigation/breadcrumbs/breadcrumbs.i18n.d.ts +0 -1
- package/dist/components/navigation/breadcrumbs/breadcrumbs.i18n.d.ts.map +1 -1
- package/dist/components/navigation/breadcrumbs/breadcrumbs.i18n.js +0 -1
- package/dist/components/navigation/breadcrumbs/breadcrumbs.i18n.js.map +1 -1
- package/dist/components/navigation/breadcrumbs/breadcrumbs.js +1 -84
- package/dist/components/navigation/breadcrumbs/breadcrumbs.js.map +1 -1
- package/dist/components/navigation/breadcrumbs/breadcrumbs.styles.d.ts.map +1 -1
- package/dist/components/navigation/breadcrumbs/breadcrumbs.styles.js +6 -52
- package/dist/components/navigation/breadcrumbs/breadcrumbs.styles.js.map +1 -1
- package/dist/components/navigation/breadcrumbs/breadcrumbs.template.d.ts.map +1 -1
- package/dist/components/navigation/breadcrumbs/breadcrumbs.template.js +1 -17
- package/dist/components/navigation/breadcrumbs/breadcrumbs.template.js.map +1 -1
- package/dist/components/navigation/document-tab-bar/document-tab-bar.styles.d.ts.map +1 -1
- package/dist/components/navigation/document-tab-bar/document-tab-bar.styles.js +4 -1
- package/dist/components/navigation/document-tab-bar/document-tab-bar.styles.js.map +1 -1
- package/dist/components/navigation/link/link.styles.d.ts.map +1 -1
- package/dist/components/navigation/link/link.styles.js +4 -1
- package/dist/components/navigation/link/link.styles.js.map +1 -1
- package/dist/components/navigation/menu-bar/menu-bar.styles.d.ts.map +1 -1
- package/dist/components/navigation/menu-bar/menu-bar.styles.js +4 -1
- package/dist/components/navigation/menu-bar/menu-bar.styles.js.map +1 -1
- package/dist/components/navigation/menu-bar-item/menu-bar-item.styles.d.ts.map +1 -1
- package/dist/components/navigation/menu-bar-item/menu-bar-item.styles.js +4 -1
- package/dist/components/navigation/menu-bar-item/menu-bar-item.styles.js.map +1 -1
- package/dist/components/navigation/pagination/pagination.styles.d.ts.map +1 -1
- package/dist/components/navigation/pagination/pagination.styles.js +4 -1
- package/dist/components/navigation/pagination/pagination.styles.js.map +1 -1
- package/dist/components/navigation/skip-link/skip-link.styles.d.ts.map +1 -1
- package/dist/components/navigation/skip-link/skip-link.styles.js +4 -1
- package/dist/components/navigation/skip-link/skip-link.styles.js.map +1 -1
- package/dist/components/navigation/tab-bar/tab-bar.styles.d.ts.map +1 -1
- package/dist/components/navigation/tab-bar/tab-bar.styles.js +4 -1
- package/dist/components/navigation/tab-bar/tab-bar.styles.js.map +1 -1
- package/dist/components/navigation/top-navigation-bar/top-navigation-bar.d.ts +5 -0
- package/dist/components/navigation/top-navigation-bar/top-navigation-bar.d.ts.map +1 -1
- package/dist/components/navigation/top-navigation-bar/top-navigation-bar.js +17 -0
- 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 +32 -16
- package/dist/components/navigation/top-navigation-bar/top-navigation-bar.styles.js.map +1 -1
- package/dist/components/navigation/top-title-bar/top-title-bar.styles.d.ts.map +1 -1
- package/dist/components/navigation/top-title-bar/top-title-bar.styles.js +4 -1
- package/dist/components/navigation/top-title-bar/top-title-bar.styles.js.map +1 -1
- package/dist/components/{prism-python-Tr_Ff1KJ.js → prism-python--N285k7w.js} +1 -1
- package/dist/components/{prism-rust-CxUpjfK5.js → prism-rust-Cnm1tSdo.js} +1 -1
- package/dist/components/{prism-typescript-zaF4YQWN.js → prism-typescript-BPJAiB1s.js} +1 -1
- package/dist/components/status-and-feedback/activity-indicator/activity-indicator.styles.d.ts.map +1 -1
- package/dist/components/status-and-feedback/activity-indicator/activity-indicator.styles.js +4 -1
- package/dist/components/status-and-feedback/activity-indicator/activity-indicator.styles.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 +4 -1
- package/dist/components/status-and-feedback/badge/badge.styles.js.map +1 -1
- package/dist/components/status-and-feedback/banner/banner.styles.d.ts.map +1 -1
- package/dist/components/status-and-feedback/banner/banner.styles.js +4 -1
- package/dist/components/status-and-feedback/banner/banner.styles.js.map +1 -1
- package/dist/components/status-and-feedback/inline-dialog/inline-dialog.styles.d.ts.map +1 -1
- package/dist/components/status-and-feedback/inline-dialog/inline-dialog.styles.js +4 -1
- package/dist/components/status-and-feedback/inline-dialog/inline-dialog.styles.js.map +1 -1
- package/dist/components/status-and-feedback/just-in-time-education/just-in-time-education.d.ts +5 -4
- package/dist/components/status-and-feedback/just-in-time-education/just-in-time-education.d.ts.map +1 -1
- package/dist/components/status-and-feedback/just-in-time-education/just-in-time-education.js +5 -5
- package/dist/components/status-and-feedback/just-in-time-education/just-in-time-education.js.map +1 -1
- package/dist/components/status-and-feedback/just-in-time-education/just-in-time-education.styles.d.ts.map +1 -1
- package/dist/components/status-and-feedback/just-in-time-education/just-in-time-education.styles.js +5 -2
- package/dist/components/status-and-feedback/just-in-time-education/just-in-time-education.styles.js.map +1 -1
- package/dist/components/status-and-feedback/modal-dialog/modal-dialog.styles.d.ts.map +1 -1
- package/dist/components/status-and-feedback/modal-dialog/modal-dialog.styles.js +4 -1
- package/dist/components/status-and-feedback/modal-dialog/modal-dialog.styles.js.map +1 -1
- package/dist/components/status-and-feedback/progress-bar/progress-bar.styles.d.ts.map +1 -1
- package/dist/components/status-and-feedback/progress-bar/progress-bar.styles.js +4 -1
- package/dist/components/status-and-feedback/progress-bar/progress-bar.styles.js.map +1 -1
- package/dist/components/status-and-feedback/progress-circle/progress-circle.styles.d.ts.map +1 -1
- package/dist/components/status-and-feedback/progress-circle/progress-circle.styles.js +4 -1
- package/dist/components/status-and-feedback/progress-circle/progress-circle.styles.js.map +1 -1
- package/dist/components/status-and-feedback/status-bar/status-bar.styles.d.ts.map +1 -1
- package/dist/components/status-and-feedback/status-bar/status-bar.styles.js +4 -1
- package/dist/components/status-and-feedback/status-bar/status-bar.styles.js.map +1 -1
- package/dist/css/rich-text.css +63 -0
- package/dist/css/settings.css +10 -3
- package/package.json +5 -1
- package/dist/assets/styles/slotted-reset.d.ts.map +0 -1
- package/dist/assets/styles/slotted-reset.fixtures.d.ts.map +0 -1
- package/dist/assets/styles/slotted-reset.fixtures.js.map +0 -1
- package/dist/assets/styles/slotted-reset.js.map +0 -1
|
@@ -24,6 +24,9 @@ import '../cells/spacer-cell/spacer-cell.js';
|
|
|
24
24
|
* - `list` parent → `role="listitem"`
|
|
25
25
|
* - `navigation` parent → `role="listitem"` + `aria-current="page"` on the
|
|
26
26
|
* inner `<a>` / `<button>` when `selected`
|
|
27
|
+
* - `listbox` parent → `role="option"` + `aria-selected` reflecting `selected`.
|
|
28
|
+
* The list points its search input's `aria-activedescendant`
|
|
29
|
+
* at the active option via `_highlighted` (separate from `selected`).
|
|
27
30
|
*
|
|
28
31
|
* @slot - Main content area
|
|
29
32
|
* @slot start - Content at the start of the row
|
|
@@ -47,8 +50,13 @@ let NLDDListItem = class NLDDListItem extends withTranslations(LitElement, nlddL
|
|
|
47
50
|
/** Set by the parent nldd-list: when arrow-navigation is on, exactly one item
|
|
48
51
|
* is the roving entry point (tabindex 0); the rest are tabindex -1. */
|
|
49
52
|
this._rovingActive = false;
|
|
53
|
+
/** Set by the parent nldd-list in `type="listbox"`: marks this option as
|
|
54
|
+
* highlighted — the active descendant the search input's `aria-activedescendant`
|
|
55
|
+
* points at. Kept SEPARATE from `selected`: the highlight moves with the arrow
|
|
56
|
+
* keys, selection stays consumer-managed. Named for the visual state (not
|
|
57
|
+
* `_active`, which would clash with the pressed / `:active` feedback). */
|
|
58
|
+
this._highlighted = false;
|
|
50
59
|
this._isBoxed = false;
|
|
51
|
-
this._listObserver = null;
|
|
52
60
|
this._handleClick = () => {
|
|
53
61
|
// Safari and Firefox on Mac don't focus buttons on click. Force focus
|
|
54
62
|
// so :has(.list-item__action:focus) and :focus-within CSS work reliably.
|
|
@@ -96,8 +104,6 @@ let NLDDListItem = class NLDDListItem extends withTranslations(LitElement, nlddL
|
|
|
96
104
|
}
|
|
97
105
|
disconnectedCallback() {
|
|
98
106
|
super.disconnectedCallback();
|
|
99
|
-
this._listObserver?.disconnect();
|
|
100
|
-
this._listObserver = null;
|
|
101
107
|
this.removeEventListener('focusin', this._handleFocusIn);
|
|
102
108
|
this.removeEventListener('focusout', this._handleFocusOut);
|
|
103
109
|
this.removeEventListener('click', this._handleClick);
|
|
@@ -122,11 +128,17 @@ let NLDDListItem = class NLDDListItem extends withTranslations(LitElement, nlddL
|
|
|
122
128
|
this._updateAriaState();
|
|
123
129
|
}
|
|
124
130
|
}
|
|
131
|
+
/** True when the item is an option in a `type="listbox"` parent. */
|
|
132
|
+
get _isListboxOption() {
|
|
133
|
+
return this._parentType === 'listbox';
|
|
134
|
+
}
|
|
125
135
|
/**
|
|
126
|
-
*
|
|
127
|
-
*
|
|
128
|
-
*
|
|
129
|
-
*
|
|
136
|
+
* Reads the initial variant + type from the closest parent nldd-list, once in
|
|
137
|
+
* firstUpdated, so the item is styled correctly on first paint. Later changes
|
|
138
|
+
* are PUSHED by the list: its `updated` / `_updateItems` calls `_applyVariant`
|
|
139
|
+
* and `_applyParentType` on every item, so the list is the single source of
|
|
140
|
+
* truth and a runtime variant/type switch (or an item moved to another list)
|
|
141
|
+
* always tracks its current parent.
|
|
130
142
|
*/
|
|
131
143
|
_syncWithList() {
|
|
132
144
|
const list = this.closest('nldd-list');
|
|
@@ -138,14 +150,6 @@ let NLDDListItem = class NLDDListItem extends withTranslations(LitElement, nlddL
|
|
|
138
150
|
}
|
|
139
151
|
this._applyVariant(list.variant);
|
|
140
152
|
this._applyParentType(list.type);
|
|
141
|
-
this._listObserver = new MutationObserver(() => {
|
|
142
|
-
this._applyVariant(list.variant);
|
|
143
|
-
this._applyParentType(list.type);
|
|
144
|
-
});
|
|
145
|
-
this._listObserver.observe(list, {
|
|
146
|
-
attributes: true,
|
|
147
|
-
attributeFilter: ['variant', 'type'],
|
|
148
|
-
});
|
|
149
153
|
}
|
|
150
154
|
_applyVariant(variant) {
|
|
151
155
|
this._isBoxed = variant === 'box';
|
|
@@ -156,9 +160,20 @@ let NLDDListItem = class NLDDListItem extends withTranslations(LitElement, nlddL
|
|
|
156
160
|
this._parentType = type;
|
|
157
161
|
}
|
|
158
162
|
_updateAriaState() {
|
|
159
|
-
|
|
163
|
+
// In a listbox parent the item is an `option`, not a `listitem`, and
|
|
164
|
+
// carries aria-selected so AT announces selection state. The active
|
|
165
|
+
// option (the input's aria-activedescendant) is conveyed via `_highlighted`
|
|
166
|
+
// (a highlight class), kept separate from selection.
|
|
167
|
+
if (this._isListboxOption) {
|
|
168
|
+
this.setAttribute('role', 'option');
|
|
169
|
+
this.setAttribute('aria-selected', String(this.selected));
|
|
170
|
+
}
|
|
171
|
+
else {
|
|
172
|
+
this.setAttribute('role', 'listitem');
|
|
173
|
+
this.removeAttribute('aria-selected');
|
|
174
|
+
}
|
|
160
175
|
// aria-current on the inner action (link/button) — navigation only
|
|
161
|
-
const action = this.
|
|
176
|
+
const action = this._action;
|
|
162
177
|
if (this._parentType === 'navigation' && this.selected && action) {
|
|
163
178
|
action.setAttribute('aria-current', 'page');
|
|
164
179
|
}
|
|
@@ -191,13 +206,20 @@ let NLDDListItem = class NLDDListItem extends withTranslations(LitElement, nlddL
|
|
|
191
206
|
const opensInNewTabLabel = this.href && this.target === '_blank'
|
|
192
207
|
? this._t('components.list-item.opens-in-new-tab-text')
|
|
193
208
|
: undefined;
|
|
194
|
-
//
|
|
195
|
-
//
|
|
196
|
-
//
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
209
|
+
// Listbox options are never separate tab stops — only the list's own
|
|
210
|
+
// search input is in the tab order, and active moves via
|
|
211
|
+
// aria-activedescendant. Roving tabindex (arrow-navigation) supersedes
|
|
212
|
+
// nothing here: the two modes are mutually exclusive on the parent list.
|
|
213
|
+
// Otherwise, roving tabindex: when the list runs arrow-navigation,
|
|
214
|
+
// exactly one item is the tab stop (0) and the rest are reachable only
|
|
215
|
+
// via the arrow keys (-1). Off → undefined leaves the native
|
|
216
|
+
// button/link as a normal tab stop.
|
|
217
|
+
const actionTabindex = this._isListboxOption
|
|
218
|
+
? '-1'
|
|
219
|
+
: this._arrowNavigation
|
|
220
|
+
? (this._rovingActive ? '0' : '-1')
|
|
221
|
+
: undefined;
|
|
222
|
+
return template(this.button, this.href, this.target, this.rel, this._showStart, this._showEnd, opensInNewTabLabel, actionTabindex, this._highlighted);
|
|
201
223
|
}
|
|
202
224
|
};
|
|
203
225
|
NLDDListItem.styles = [listItemStyles];
|
|
@@ -237,6 +259,9 @@ __decorate([
|
|
|
237
259
|
__decorate([
|
|
238
260
|
state()
|
|
239
261
|
], NLDDListItem.prototype, "_rovingActive", void 0);
|
|
262
|
+
__decorate([
|
|
263
|
+
state()
|
|
264
|
+
], NLDDListItem.prototype, "_highlighted", void 0);
|
|
240
265
|
__decorate([
|
|
241
266
|
query('.list-item__action')
|
|
242
267
|
], NLDDListItem.prototype, "_action", void 0);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-item.js","sourceRoot":"","sources":["../../../../src/components/lists-and-tables/list-item/list-item.ts"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,KAAK,CAAC;AACjC,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAC1E,OAAO,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AACvD,OAAO,EAAE,QAAQ,EAAE,MAAM,yBAAyB,CAAC;AACnD,OAAO,EAAE,aAAa,EAAE,MAAM,sCAAsC,CAAC;AACrE,OAAO,EAAE,gBAAgB,EAAE,MAAM,yCAAyC,CAAC;AAC3E,OAAO,EAAE,wBAAwB,EAAE,MAAM,qBAAqB,CAAC;AAE/D,OAAO,qCAAqC,CAAC;AAI7C
|
|
1
|
+
{"version":3,"file":"list-item.js","sourceRoot":"","sources":["../../../../src/components/lists-and-tables/list-item/list-item.ts"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,KAAK,CAAC;AACjC,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAC1E,OAAO,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AACvD,OAAO,EAAE,QAAQ,EAAE,MAAM,yBAAyB,CAAC;AACnD,OAAO,EAAE,aAAa,EAAE,MAAM,sCAAsC,CAAC;AACrE,OAAO,EAAE,gBAAgB,EAAE,MAAM,yCAAyC,CAAC;AAC3E,OAAO,EAAE,wBA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AAC,oBAAoB,CAAC;6CACE;AA9DlB,YAAY;IADxB,aAAa,CAAC,gBAAgB,CAAC;GACnB,YAAY,CA+PxB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-item.styles.d.ts","sourceRoot":"","sources":["../../../../src/components/lists-and-tables/list-item/list-item.styles.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,cAAc,
|
|
1
|
+
{"version":3,"file":"list-item.styles.d.ts","sourceRoot":"","sources":["../../../../src/components/lists-and-tables/list-item/list-item.styles.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,cAAc,yBAmS1B,CAAC"}
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
import { css } from 'lit';
|
|
2
2
|
export const listItemStyles = css `
|
|
3
|
+
:host {
|
|
4
|
+
box-sizing: border-box;
|
|
5
|
+
}
|
|
3
6
|
|
|
4
7
|
|
|
5
8
|
/* # Host */
|
|
@@ -108,15 +111,16 @@ export const listItemStyles = css `
|
|
|
108
111
|
|
|
109
112
|
/* # Indicator */
|
|
110
113
|
|
|
111
|
-
/* Non-interactive
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
.list-item:not(:has(.list-item__action))::before
|
|
114
|
+
/* The selection / state fill. Non-interactive items carry it on .list-item
|
|
115
|
+
(driven only by :host([selected])); interactive items carry it on
|
|
116
|
+
.list-item__action (and respond to hover / focus / press below). */
|
|
117
|
+
.list-item:not(:has(.list-item__action))::before,
|
|
118
|
+
.list-item__action::before {
|
|
115
119
|
content: '';
|
|
116
120
|
display: block;
|
|
117
121
|
position: absolute;
|
|
118
122
|
inset-block: 0;
|
|
119
|
-
inset-inline:
|
|
123
|
+
inset-inline: calc(-1 * var(--components-list-item-indicator-inline-inset));
|
|
120
124
|
z-index: var(--_z-index-indicator);
|
|
121
125
|
border-radius: var(--components-list-item-indicator-corner-radius);
|
|
122
126
|
background-color: var(--_background-color);
|
|
@@ -128,21 +132,6 @@ export const listItemStyles = css `
|
|
|
128
132
|
--context-cell-content-color: var(--components-list-item-is-selected-content-color);
|
|
129
133
|
}
|
|
130
134
|
|
|
131
|
-
/* Interactive: items with a link/button inner element; indicator responds
|
|
132
|
-
to hover and focus on top of the selected state */
|
|
133
|
-
|
|
134
|
-
.list-item__action::before {
|
|
135
|
-
content: '';
|
|
136
|
-
display: block;
|
|
137
|
-
position: absolute;
|
|
138
|
-
inset-block: 0;
|
|
139
|
-
inset-inline: min(calc(var(--primitives-space-8) * -1), calc(var(--components-list-item-indicator-corner-radius) * -1));
|
|
140
|
-
z-index: var(--_z-index-indicator);
|
|
141
|
-
border-radius: var(--components-list-item-indicator-corner-radius);
|
|
142
|
-
background-color: var(--_background-color);
|
|
143
|
-
pointer-events: none;
|
|
144
|
-
}
|
|
145
|
-
|
|
146
135
|
/* hover only on hover-capable devices: avoids touch-scroll flashing the
|
|
147
136
|
hover state on the row under the finger */
|
|
148
137
|
@media (hover: hover) {
|
|
@@ -171,17 +160,20 @@ export const listItemStyles = css `
|
|
|
171
160
|
--context-cell-content-color: var(--components-list-item-is-hovered-content-color);
|
|
172
161
|
}
|
|
173
162
|
|
|
174
|
-
:host([selected]) .list-item__action.is-pressed {
|
|
175
|
-
--_background-color: var(--components-list-item-is-highlighted-background-color);
|
|
176
|
-
--context-cell-content-color: var(--components-list-item-is-highlighted-content-color);
|
|
177
|
-
}
|
|
178
|
-
|
|
179
163
|
:host([selected]) .list-item__action {
|
|
180
164
|
--_background-color: var(--components-list-item-is-selected-background-color);
|
|
181
165
|
--context-cell-content-color: var(--components-list-item-is-selected-content-color);
|
|
182
166
|
}
|
|
183
167
|
|
|
184
|
-
|
|
168
|
+
/* Highlight accent — the strongest fill. Shown for a selected item that is
|
|
169
|
+
pressed or focused, for the listbox active descendant (.is-highlighted —
|
|
170
|
+
the option the search input's aria-activedescendant points at), and for a
|
|
171
|
+
selected active descendant (.is-highlighted on the action, to outweigh the
|
|
172
|
+
selected fill). The hover+focus variant sits in the @media block above. */
|
|
173
|
+
:host([selected]) .list-item__action.is-pressed,
|
|
174
|
+
:host([selected]) .list-item__action:focus,
|
|
175
|
+
.list-item.is-highlighted,
|
|
176
|
+
:host([selected]) .list-item.is-highlighted .list-item__action {
|
|
185
177
|
--_background-color: var(--components-list-item-is-highlighted-background-color);
|
|
186
178
|
--context-cell-content-color: var(--components-list-item-is-highlighted-content-color);
|
|
187
179
|
}
|
|
@@ -201,7 +193,7 @@ export const listItemStyles = css `
|
|
|
201
193
|
|
|
202
194
|
:host(:not(.is-boxed)) .list-item__action:focus-visible:not(.is-pointer-focus)::after {
|
|
203
195
|
inset-block: 0;
|
|
204
|
-
inset-inline:
|
|
196
|
+
inset-inline: calc(-1 * var(--components-list-item-indicator-inline-inset));
|
|
205
197
|
border-radius: var(--components-list-item-indicator-corner-radius);
|
|
206
198
|
}
|
|
207
199
|
|
|
@@ -220,6 +212,35 @@ export const listItemStyles = css `
|
|
|
220
212
|
}
|
|
221
213
|
|
|
222
214
|
|
|
215
|
+
/* # Boxed indicator + first/last corners
|
|
216
|
+
In a box the rows fill the frame edge-to-edge, so the indicator drops its
|
|
217
|
+
outward inline bleed and pill radius (inset-inline / border-radius 0).
|
|
218
|
+
Without this, overflow-x: hidden on .list__items clips the bled-out rounded
|
|
219
|
+
corners back to a square edge. The first/last VISIBLE row then rounds its
|
|
220
|
+
outer corners to the box radius, so the fill follows the frame (and bounce /
|
|
221
|
+
overscroll, where the rounded clip can leak, shows rounded rows). Visible-
|
|
222
|
+
aware via .is-first / .is-last (set by the list), so it tracks the filtered
|
|
223
|
+
set in a listbox. */
|
|
224
|
+
|
|
225
|
+
:host(.is-boxed) .list-item__action::before,
|
|
226
|
+
:host(.is-boxed) .list-item:not(:has(.list-item__action))::before {
|
|
227
|
+
inset-inline: 0;
|
|
228
|
+
border-radius: 0;
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
:host(.is-boxed.is-first) .list-item__action::before,
|
|
232
|
+
:host(.is-boxed.is-first) .list-item:not(:has(.list-item__action))::before {
|
|
233
|
+
border-top-left-radius: var(--components-list-corner-radius);
|
|
234
|
+
border-top-right-radius: var(--components-list-corner-radius);
|
|
235
|
+
}
|
|
236
|
+
|
|
237
|
+
:host(.is-boxed.is-last) .list-item__action::before,
|
|
238
|
+
:host(.is-boxed.is-last) .list-item:not(:has(.list-item__action))::before {
|
|
239
|
+
border-bottom-left-radius: var(--components-list-corner-radius);
|
|
240
|
+
border-bottom-right-radius: var(--components-list-corner-radius);
|
|
241
|
+
}
|
|
242
|
+
|
|
243
|
+
|
|
223
244
|
/* # Start & end area */
|
|
224
245
|
|
|
225
246
|
.list-item__start-area,
|
|
@@ -265,7 +286,8 @@ export const listItemStyles = css `
|
|
|
265
286
|
}
|
|
266
287
|
|
|
267
288
|
:host([selected]) .list-item__divider,
|
|
268
|
-
:host(.is-boxed.is-last) .list-item__divider
|
|
289
|
+
:host(.is-boxed.is-last) .list-item__divider,
|
|
290
|
+
.list-item.is-highlighted .list-item__divider {
|
|
269
291
|
display: none;
|
|
270
292
|
}
|
|
271
293
|
`;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-item.styles.js","sourceRoot":"","sources":["../../../../src/components/lists-and-tables/list-item/list-item.styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAE1B,MAAM,CAAC,MAAM,cAAc,GAAG,GAAG,CAAA
|
|
1
|
+
{"version":3,"file":"list-item.styles.js","sourceRoot":"","sources":["../../../../src/components/lists-and-tables/list-item/list-item.styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAE1B,MAAM,CAAC,MAAM,cAAc,GAAG,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAmShC,CAAC"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const template: (button: boolean, href: string | undefined, target: string | undefined, rel: string | undefined, showStart: boolean, showEnd: boolean, opensInNewTabLabel?: string,
|
|
1
|
+
export declare const template: (button: boolean, href: string | undefined, target: string | undefined, rel: string | undefined, showStart: boolean, showEnd: boolean, opensInNewTabLabel?: string, actionTabindex?: string, isHighlighted?: boolean) => import("lit-html").TemplateResult<1>;
|
|
2
2
|
//# sourceMappingURL=list-item.template.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-item.template.d.ts","sourceRoot":"","sources":["../../../../src/components/lists-and-tables/list-item/list-item.template.ts"],"names":[],"mappings":"AAoBA,eAAO,MAAM,QAAQ,GACpB,QAAQ,OAAO,EACf,MAAM,MAAM,GAAG,SAAS,EACxB,QAAQ,MAAM,GAAG,SAAS,EAC1B,KAAK,MAAM,GAAG,SAAS,EACvB,WAAW,OAAO,EAClB,SAAS,OAAO,EAChB,qBAAqB,MAAM,EAC3B,iBAAiB,MAAM,
|
|
1
|
+
{"version":3,"file":"list-item.template.d.ts","sourceRoot":"","sources":["../../../../src/components/lists-and-tables/list-item/list-item.template.ts"],"names":[],"mappings":"AAoBA,eAAO,MAAM,QAAQ,GACpB,QAAQ,OAAO,EACf,MAAM,MAAM,GAAG,SAAS,EACxB,QAAQ,MAAM,GAAG,SAAS,EAC1B,KAAK,MAAM,GAAG,SAAS,EACvB,WAAW,OAAO,EAClB,SAAS,OAAO,EAChB,qBAAqB,MAAM,EAC3B,iBAAiB,MAAM,EACvB,uBAAqB,yCA4BrB,CAAC"}
|
|
@@ -16,26 +16,29 @@ const areas = (showStart, showEnd) => html `
|
|
|
16
16
|
</slot>
|
|
17
17
|
</div>
|
|
18
18
|
`;
|
|
19
|
-
export const template = (button, href, target, rel, showStart, showEnd, opensInNewTabLabel,
|
|
19
|
+
export const template = (button, href, target, rel, showStart, showEnd, opensInNewTabLabel, actionTabindex, isHighlighted = false) => {
|
|
20
|
+
// `is-highlighted` paints the listbox active-option highlight (separate from
|
|
21
|
+
// selected). Only the list sets `_highlighted`, and only in listbox mode.
|
|
22
|
+
const blockClass = classMap({ 'list-item': true, 'is-highlighted': isHighlighted });
|
|
20
23
|
if (href) {
|
|
21
|
-
return html `<div class
|
|
24
|
+
return html `<div class=${blockClass}>
|
|
22
25
|
<a class="list-item__action"
|
|
23
26
|
href=${href}
|
|
24
27
|
target=${target ?? nothing}
|
|
25
28
|
rel=${rel ?? nothing}
|
|
26
|
-
tabindex=${
|
|
29
|
+
tabindex=${actionTabindex ?? nothing}
|
|
27
30
|
>${areas(showStart, showEnd)}${opensInNewTabLabel ? html `<span class="list-item__opens-in-new-tab-hint">${opensInNewTabLabel}</span>` : nothing}</a>
|
|
28
31
|
</div>`;
|
|
29
32
|
}
|
|
30
33
|
if (button) {
|
|
31
|
-
return html `<div class
|
|
34
|
+
return html `<div class=${blockClass}>
|
|
32
35
|
<button class="list-item__action"
|
|
33
36
|
type="button"
|
|
34
|
-
tabindex=${
|
|
37
|
+
tabindex=${actionTabindex ?? nothing}
|
|
35
38
|
>${areas(showStart, showEnd)}</button>
|
|
36
39
|
</div>`;
|
|
37
40
|
}
|
|
38
|
-
return html `<div class
|
|
41
|
+
return html `<div class=${blockClass}>
|
|
39
42
|
${areas(showStart, showEnd)}
|
|
40
43
|
</div>`;
|
|
41
44
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-item.template.js","sourceRoot":"","sources":["../../../../src/components/lists-and-tables/list-item/list-item.template.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,KAAK,CAAC;AACpC,OAAO,EAAE,QAAQ,EAAE,MAAM,6BAA6B,CAAC;AAEvD,MAAM,KAAK,GAAG,CAAC,SAAkB,EAAE,OAAgB,EAAE,EAAE,CAAC,IAAI,CAAA;cAC9C,QAAQ,CAAC,EAAE,uBAAuB,EAAE,IAAI,EAAE,YAAY,EAAE,SAAS,EAAE,CAAC;;;;;;;;;cASpE,QAAQ,CAAC,EAAE,qBAAqB,EAAE,IAAI,EAAE,YAAY,EAAE,OAAO,EAAE,CAAC;;;;;CAK7E,CAAC;AAEF,MAAM,CAAC,MAAM,QAAQ,GAAG,CACvB,MAAe,EACf,IAAwB,EACxB,MAA0B,EAC1B,GAAuB,EACvB,SAAkB,EAClB,OAAgB,EAChB,kBAA2B,EAC3B,cAAuB,
|
|
1
|
+
{"version":3,"file":"list-item.template.js","sourceRoot":"","sources":["../../../../src/components/lists-and-tables/list-item/list-item.template.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,KAAK,CAAC;AACpC,OAAO,EAAE,QAAQ,EAAE,MAAM,6BAA6B,CAAC;AAEvD,MAAM,KAAK,GAAG,CAAC,SAAkB,EAAE,OAAgB,EAAE,EAAE,CAAC,IAAI,CAAA;cAC9C,QAAQ,CAAC,EAAE,uBAAuB,EAAE,IAAI,EAAE,YAAY,EAAE,SAAS,EAAE,CAAC;;;;;;;;;cASpE,QAAQ,CAAC,EAAE,qBAAqB,EAAE,IAAI,EAAE,YAAY,EAAE,OAAO,EAAE,CAAC;;;;;CAK7E,CAAC;AAEF,MAAM,CAAC,MAAM,QAAQ,GAAG,CACvB,MAAe,EACf,IAAwB,EACxB,MAA0B,EAC1B,GAAuB,EACvB,SAAkB,EAClB,OAAgB,EAChB,kBAA2B,EAC3B,cAAuB,EACvB,aAAa,GAAG,KAAK,EACpB,EAAE;IACH,6EAA6E;IAC7E,0EAA0E;IAC1E,MAAM,UAAU,GAAG,QAAQ,CAAC,EAAE,WAAW,EAAE,IAAI,EAAE,gBAAgB,EAAE,aAAa,EAAE,CAAC,CAAC;IACpF,IAAI,IAAI,EAAE,CAAC;QACV,OAAO,IAAI,CAAA,cAAc,UAAU;;WAE1B,IAAI;aACF,MAAM,IAAI,OAAO;UACpB,GAAG,IAAI,OAAO;eACT,cAAc,IAAI,OAAO;MAClC,KAAK,CAAC,SAAS,EAAE,OAAO,CAAC,GAC3B,kBAAkB,CAAC,CAAC,CAAC,IAAI,CAAA,kDAAkD,kBAAkB,SAAS,CAAC,CAAC,CAAC,OAC1G;SACM,CAAC;IACT,CAAC;IACD,IAAI,MAAM,EAAE,CAAC;QACZ,OAAO,IAAI,CAAA,cAAc,UAAU;;;eAGtB,cAAc,IAAI,OAAO;MAClC,KAAK,CAAC,SAAS,EAAE,OAAO,CAAC;SACtB,CAAC;IACT,CAAC;IACD,OAAO,IAAI,CAAA,cAAc,UAAU;IAChC,KAAK,CAAC,SAAS,EAAE,OAAO,CAAC;QACrB,CAAC;AACT,CAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"table.styles.d.ts","sourceRoot":"","sources":["../../../../src/components/lists-and-tables/table/table.styles.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,WAAW,
|
|
1
|
+
{"version":3,"file":"table.styles.d.ts","sourceRoot":"","sources":["../../../../src/components/lists-and-tables/table/table.styles.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,WAAW,yBAmFvB,CAAC;AAEF,eAAO,MAAM,cAAc,yBA0C1B,CAAC"}
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
import { css } from 'lit';
|
|
2
|
-
import { inheritedTextReset } from '../../../assets/styles/
|
|
2
|
+
import { inheritedTextReset } from '../../../assets/styles/style-resets.js';
|
|
3
3
|
export const tableStyles = css `
|
|
4
|
+
:host {
|
|
5
|
+
box-sizing: border-box;
|
|
6
|
+
}
|
|
4
7
|
:host {
|
|
5
8
|
--_columns: none;
|
|
6
9
|
--_corner-radius: var(--semantics-tables-corner-radius);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"table.styles.js","sourceRoot":"","sources":["../../../../src/components/lists-and-tables/table/table.styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAC1B,OAAO,EAAE,kBAAkB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"table.styles.js","sourceRoot":"","sources":["../../../../src/components/lists-and-tables/table/table.styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAC1B,OAAO,EAAE,kBAAkB,EAAE,MAAM,wCAAwC,CAAC;AAE5E,MAAM,CAAC,MAAM,WAAW,GAAG,GAAG,CAAA;;;;;;;;;;;;;;IAc1B,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAqErB,CAAC;AAEF,MAAM,CAAC,MAAM,cAAc,GAAG,GAAG,CAAA;;;;;;;;IAQ7B,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAkCrB,CAAC"}
|
|
@@ -8,19 +8,10 @@
|
|
|
8
8
|
* AT + browser combos. The trail wraps onto multiple lines when it doesn't
|
|
9
9
|
* fit, so it adapts to any width.
|
|
10
10
|
*
|
|
11
|
-
* Vanaf vier niveaus klapt het pad standaard in tot
|
|
12
|
-
* `Home › … › {bovenliggende pagina} › {huidige pagina}`. De ellipsis is een
|
|
13
|
-
* knop die bij activeren de verborgen niveaus op hun plek toont (eenmalig;
|
|
14
|
-
* de focus verplaatst naar het eerste onthulde niveau). De verborgen items
|
|
15
|
-
* blijven in de DOM, zodat zoekmachines en agents het volledige pad zien.
|
|
16
|
-
* Zet `no-collapse` om het pad altijd volledig te tonen.
|
|
17
|
-
*
|
|
18
11
|
* @element nldd-breadcrumbs
|
|
19
12
|
*
|
|
20
13
|
* @attr {string} accessible-label - Override the nav's aria-label.
|
|
21
14
|
* Defaults to the i18n value (NL: "Kruimelpad").
|
|
22
|
-
* @attr {boolean} no-collapse - Toon altijd alle niveaus; schakelt het
|
|
23
|
-
* inklappen vanaf vier niveaus uit.
|
|
24
15
|
* @attr {object} translations - Override translation keys; unset keys
|
|
25
16
|
* fall back to the Dutch default.
|
|
26
17
|
*
|
|
@@ -49,49 +40,14 @@ export declare class NLDDBreadcrumbsItem extends LitElement {
|
|
|
49
40
|
text: string;
|
|
50
41
|
connectedCallback(): void;
|
|
51
42
|
updated(changed: PropertyValues): void;
|
|
52
|
-
/**
|
|
53
|
-
* Delegates focus to the inner link, so the parent can move focus to a
|
|
54
|
-
* revealed item after expanding the collapsed trail. A plain-text or current
|
|
55
|
-
* crumb has no inner link; it makes its own host focusable (tabindex="-1")
|
|
56
|
-
* and takes focus there instead, so the parent can land focus on any
|
|
57
|
-
* revealed item rather than dropping it to <body> (WCAG 2.4.3).
|
|
58
|
-
*/
|
|
59
|
-
focus(options?: FocusOptions): void;
|
|
60
43
|
render(): import("lit-html").TemplateResult;
|
|
61
44
|
}
|
|
62
45
|
export declare class NLDDBreadcrumbs extends LitElement {
|
|
63
46
|
static styles: import("lit").CSSResult;
|
|
64
47
|
accessibleLabel: string;
|
|
65
|
-
noCollapse: boolean;
|
|
66
48
|
translations: Partial<NLDDBreadcrumbsTranslations>;
|
|
67
|
-
_collapsed: boolean;
|
|
68
|
-
/** One-shot: once the user expands the trail it stays expanded. */
|
|
69
|
-
private _expanded;
|
|
70
49
|
private _mergedTranslations;
|
|
71
|
-
private _items;
|
|
72
|
-
/** Defers the slotchange-driven sync to a microtask: _syncCollapse moves
|
|
73
|
-
* an item between slots, which fires another slotchange — running it
|
|
74
|
-
* inline could mutate the DOM while Lit is mid-render. The direct calls
|
|
75
|
-
* from updated() and _expand() stay synchronous.
|
|
76
|
-
*
|
|
77
|
-
* An arrow-function class field (not a method) on purpose: it gives a
|
|
78
|
-
* stable per-instance reference so add/removeEventListener pair up. */
|
|
79
|
-
_onSlotChange: () => void;
|
|
80
|
-
/**
|
|
81
|
-
* Applies the collapsed state to the light-DOM items. While collapsed the
|
|
82
|
-
* first item moves to the "first" slot (so the shadow ellipsis can sit
|
|
83
|
-
* between it and the tail) and the middle items get a marker attribute
|
|
84
|
-
* that hides them via the item's own styles. The consumer's `hidden`
|
|
85
|
-
* attribute is deliberately left alone. Re-runs are idempotent, so the
|
|
86
|
-
* slotchange this triggers settles immediately.
|
|
87
|
-
*/
|
|
88
|
-
_syncCollapse: () => void;
|
|
89
|
-
/** @internal Expands the trail and moves focus to a revealed item.
|
|
90
|
-
* Prefers the first revealed link; falls back to the first revealed item
|
|
91
|
-
* so focus is never silently dropped (WCAG 2.4.3). */
|
|
92
|
-
_expand: () => void;
|
|
93
50
|
willUpdate(changed: PropertyValues): void;
|
|
94
|
-
updated(changed: PropertyValues): void;
|
|
95
51
|
_t(key: keyof NLDDBreadcrumbsTranslations): string;
|
|
96
52
|
render(): import("lit-html").TemplateResult;
|
|
97
53
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"breadcrumbs.d.ts","sourceRoot":"","sources":["../../../../src/components/navigation/breadcrumbs/breadcrumbs.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"breadcrumbs.d.ts","sourceRoot":"","sources":["../../../../src/components/navigation/breadcrumbs/breadcrumbs.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AACH,OAAO,EAAE,UAAU,EAAE,KAAK,cAAc,EAAE,MAAM,KAAK,CAAC;AAItD,OAAO,EAA+B,KAAK,2BAA2B,EAAE,MAAM,uBAAuB,CAAC;AAKtG;;;;;;;;;;;;;GAaG;AACH,qBAAa,mBAAoB,SAAQ,UAAU;IAClD,OAAgB,MAAM,0BAAyB;IAG/C,IAAI,CAAC,EAAE,MAAM,CAAC;IAGd,OAAO,UAAS;IAGhB,IAAI,SAAM;IAED,iBAAiB,IAAI,IAAI;IAYzB,OAAO,CAAC,OAAO,EAAE,cAAc,GAAG,IAAI;IAatC,MAAM;CAGf;AAcD,qBACa,eAAgB,SAAQ,UAAU;IAC9C,OAAgB,MAAM,0BAAqB;IAG3C,eAAe,SAAM;IAGrB,YAAY,EAAE,OAAO,CAAC,2BAA2B,CAAC,CAAM;IAExD,OAAO,CAAC,mBAAmB,CAAmE;IAErF,UAAU,CAAC,OAAO,EAAE,cAAc,GAAG,IAAI;IAYlD,EAAE,CAAC,GAAG,EAAE,MAAM,2BAA2B,GAAG,MAAM;IAWzC,MAAM;CAGf;AAED,OAAO,CAAC,MAAM,CAAC;IACd,UAAU,qBAAqB;QAC9B,kBAAkB,EAAE,eAAe,CAAC;QACpC,uBAAuB,EAAE,mBAAmB,CAAC;KAC7C;CACD"}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
export declare const nlddBreadcrumbsTranslations: {
|
|
2
2
|
'components.breadcrumbs.accessible-label': string;
|
|
3
|
-
'components.breadcrumbs.show-all-levels': string;
|
|
4
3
|
};
|
|
5
4
|
export type NLDDBreadcrumbsTranslations = typeof nlddBreadcrumbsTranslations;
|
|
6
5
|
//# sourceMappingURL=breadcrumbs.i18n.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"breadcrumbs.i18n.d.ts","sourceRoot":"","sources":["../../../../src/components/navigation/breadcrumbs/breadcrumbs.i18n.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,2BAA2B
|
|
1
|
+
{"version":3,"file":"breadcrumbs.i18n.d.ts","sourceRoot":"","sources":["../../../../src/components/navigation/breadcrumbs/breadcrumbs.i18n.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,2BAA2B;;CAEvC,CAAC;AAEF,MAAM,MAAM,2BAA2B,GAAG,OAAO,2BAA2B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"breadcrumbs.i18n.js","sourceRoot":"","sources":["../../../../src/components/navigation/breadcrumbs/breadcrumbs.i18n.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,2BAA2B,GAAG;IAC1C,yCAAyC,EAAE,YAAY;
|
|
1
|
+
{"version":3,"file":"breadcrumbs.i18n.js","sourceRoot":"","sources":["../../../../src/components/navigation/breadcrumbs/breadcrumbs.i18n.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,2BAA2B,GAAG;IAC1C,yCAAyC,EAAE,YAAY;CACvD,CAAC"}
|
|
@@ -14,26 +14,17 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
14
14
|
* AT + browser combos. The trail wraps onto multiple lines when it doesn't
|
|
15
15
|
* fit, so it adapts to any width.
|
|
16
16
|
*
|
|
17
|
-
* Vanaf vier niveaus klapt het pad standaard in tot
|
|
18
|
-
* `Home › … › {bovenliggende pagina} › {huidige pagina}`. De ellipsis is een
|
|
19
|
-
* knop die bij activeren de verborgen niveaus op hun plek toont (eenmalig;
|
|
20
|
-
* de focus verplaatst naar het eerste onthulde niveau). De verborgen items
|
|
21
|
-
* blijven in de DOM, zodat zoekmachines en agents het volledige pad zien.
|
|
22
|
-
* Zet `no-collapse` om het pad altijd volledig te tonen.
|
|
23
|
-
*
|
|
24
17
|
* @element nldd-breadcrumbs
|
|
25
18
|
*
|
|
26
19
|
* @attr {string} accessible-label - Override the nav's aria-label.
|
|
27
20
|
* Defaults to the i18n value (NL: "Kruimelpad").
|
|
28
|
-
* @attr {boolean} no-collapse - Toon altijd alle niveaus; schakelt het
|
|
29
|
-
* inklappen vanaf vier niveaus uit.
|
|
30
21
|
* @attr {object} translations - Override translation keys; unset keys
|
|
31
22
|
* fall back to the Dutch default.
|
|
32
23
|
*
|
|
33
24
|
* @slot - `nldd-breadcrumbs-item` children.
|
|
34
25
|
*/
|
|
35
26
|
import { LitElement } from 'lit';
|
|
36
|
-
import { customElement, property
|
|
27
|
+
import { customElement, property } from 'lit/decorators.js';
|
|
37
28
|
import { breadcrumbsStyles, breadcrumbsItemStyles } from './breadcrumbs.styles.js';
|
|
38
29
|
import { breadcrumbsTemplate, breadcrumbsItemTemplate } from './breadcrumbs.template.js';
|
|
39
30
|
import { nlddBreadcrumbsTranslations } from './breadcrumbs.i18n.js';
|
|
@@ -82,22 +73,6 @@ export class NLDDBreadcrumbsItem extends LitElement {
|
|
|
82
73
|
}
|
|
83
74
|
}
|
|
84
75
|
}
|
|
85
|
-
/**
|
|
86
|
-
* Delegates focus to the inner link, so the parent can move focus to a
|
|
87
|
-
* revealed item after expanding the collapsed trail. A plain-text or current
|
|
88
|
-
* crumb has no inner link; it makes its own host focusable (tabindex="-1")
|
|
89
|
-
* and takes focus there instead, so the parent can land focus on any
|
|
90
|
-
* revealed item rather than dropping it to <body> (WCAG 2.4.3).
|
|
91
|
-
*/
|
|
92
|
-
focus(options) {
|
|
93
|
-
const link = this.shadowRoot?.querySelector('.breadcrumbs__item-link');
|
|
94
|
-
if (link) {
|
|
95
|
-
link.focus(options);
|
|
96
|
-
return;
|
|
97
|
-
}
|
|
98
|
-
this.tabIndex = -1;
|
|
99
|
-
super.focus(options);
|
|
100
|
-
}
|
|
101
76
|
render() {
|
|
102
77
|
return breadcrumbsItemTemplate(this);
|
|
103
78
|
}
|
|
@@ -125,56 +100,8 @@ let NLDDBreadcrumbs = class NLDDBreadcrumbs extends LitElement {
|
|
|
125
100
|
constructor() {
|
|
126
101
|
super(...arguments);
|
|
127
102
|
this.accessibleLabel = '';
|
|
128
|
-
this.noCollapse = false;
|
|
129
103
|
this.translations = {};
|
|
130
|
-
this._collapsed = false;
|
|
131
|
-
/** One-shot: once the user expands the trail it stays expanded. */
|
|
132
|
-
this._expanded = false;
|
|
133
104
|
this._mergedTranslations = { ...nlddBreadcrumbsTranslations };
|
|
134
|
-
/** Defers the slotchange-driven sync to a microtask: _syncCollapse moves
|
|
135
|
-
* an item between slots, which fires another slotchange — running it
|
|
136
|
-
* inline could mutate the DOM while Lit is mid-render. The direct calls
|
|
137
|
-
* from updated() and _expand() stay synchronous.
|
|
138
|
-
*
|
|
139
|
-
* An arrow-function class field (not a method) on purpose: it gives a
|
|
140
|
-
* stable per-instance reference so add/removeEventListener pair up. */
|
|
141
|
-
this._onSlotChange = () => {
|
|
142
|
-
void Promise.resolve().then(() => this._syncCollapse());
|
|
143
|
-
};
|
|
144
|
-
/**
|
|
145
|
-
* Applies the collapsed state to the light-DOM items. While collapsed the
|
|
146
|
-
* first item moves to the "first" slot (so the shadow ellipsis can sit
|
|
147
|
-
* between it and the tail) and the middle items get a marker attribute
|
|
148
|
-
* that hides them via the item's own styles. The consumer's `hidden`
|
|
149
|
-
* attribute is deliberately left alone. Re-runs are idempotent, so the
|
|
150
|
-
* slotchange this triggers settles immediately.
|
|
151
|
-
*/
|
|
152
|
-
this._syncCollapse = () => {
|
|
153
|
-
const items = this._items();
|
|
154
|
-
const collapsed = !this.noCollapse && !this._expanded && items.length >= 4;
|
|
155
|
-
items.forEach((item, index) => {
|
|
156
|
-
if (collapsed && index === 0) {
|
|
157
|
-
item.setAttribute('slot', 'first');
|
|
158
|
-
}
|
|
159
|
-
else if (item.getAttribute('slot') === 'first') {
|
|
160
|
-
item.removeAttribute('slot');
|
|
161
|
-
}
|
|
162
|
-
item.toggleAttribute('data-nldd-collapsed', collapsed && index >= 1 && index <= items.length - 3);
|
|
163
|
-
});
|
|
164
|
-
this._collapsed = collapsed;
|
|
165
|
-
};
|
|
166
|
-
/** @internal Expands the trail and moves focus to a revealed item.
|
|
167
|
-
* Prefers the first revealed link; falls back to the first revealed item
|
|
168
|
-
* so focus is never silently dropped (WCAG 2.4.3). */
|
|
169
|
-
this._expand = () => {
|
|
170
|
-
const revealed = this._items().filter((item) => item.hasAttribute('data-nldd-collapsed'));
|
|
171
|
-
this._expanded = true;
|
|
172
|
-
this._syncCollapse();
|
|
173
|
-
(revealed.find((item) => item.href && !item.current) ?? revealed[0])?.focus();
|
|
174
|
-
};
|
|
175
|
-
}
|
|
176
|
-
_items() {
|
|
177
|
-
return Array.from(this.children).filter((child) => child instanceof NLDDBreadcrumbsItem);
|
|
178
105
|
}
|
|
179
106
|
willUpdate(changed) {
|
|
180
107
|
if (changed.has('translations') || changed.has('accessibleLabel')) {
|
|
@@ -187,10 +114,6 @@ let NLDDBreadcrumbs = class NLDDBreadcrumbs extends LitElement {
|
|
|
187
114
|
}
|
|
188
115
|
}
|
|
189
116
|
}
|
|
190
|
-
updated(changed) {
|
|
191
|
-
if (changed.has('noCollapse'))
|
|
192
|
-
this._syncCollapse();
|
|
193
|
-
}
|
|
194
117
|
_t(key) {
|
|
195
118
|
// Return '' (not the key) for missing translations so callers can do
|
|
196
119
|
// `value || nothing` to suppress aria-label / text rather than
|
|
@@ -209,15 +132,9 @@ NLDDBreadcrumbs.styles = breadcrumbsStyles;
|
|
|
209
132
|
__decorate([
|
|
210
133
|
property({ type: String, attribute: 'accessible-label' })
|
|
211
134
|
], NLDDBreadcrumbs.prototype, "accessibleLabel", void 0);
|
|
212
|
-
__decorate([
|
|
213
|
-
property({ type: Boolean, reflect: true, attribute: 'no-collapse' })
|
|
214
|
-
], NLDDBreadcrumbs.prototype, "noCollapse", void 0);
|
|
215
135
|
__decorate([
|
|
216
136
|
property({ type: Object })
|
|
217
137
|
], NLDDBreadcrumbs.prototype, "translations", void 0);
|
|
218
|
-
__decorate([
|
|
219
|
-
state()
|
|
220
|
-
], NLDDBreadcrumbs.prototype, "_collapsed", void 0);
|
|
221
138
|
NLDDBreadcrumbs = __decorate([
|
|
222
139
|
customElement('nldd-breadcrumbs')
|
|
223
140
|
], NLDDBreadcrumbs);
|