@nldd/design-system 0.8.70 → 0.8.71
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/README.md +12 -5
- package/custom-elements.json +2990 -577
- package/dist/assets/styles/style-resets.d.ts +1 -1
- package/dist/assets/styles/style-resets.js +1 -1
- package/dist/components/actions/button/button.d.ts +10 -5
- package/dist/components/actions/button/button.d.ts.map +1 -1
- package/dist/components/actions/button/button.i18n.d.ts +1 -1
- package/dist/components/actions/button/button.i18n.js +1 -1
- package/dist/components/actions/button/button.i18n.js.map +1 -1
- package/dist/components/actions/button/button.js +19 -4
- package/dist/components/actions/button/button.js.map +1 -1
- package/dist/components/actions/button/button.styles.d.ts.map +1 -1
- package/dist/components/actions/button/button.styles.js +13 -3
- package/dist/components/actions/button/button.styles.js.map +1 -1
- package/dist/components/actions/button/button.template.js +1 -1
- package/dist/components/actions/button/button.template.js.map +1 -1
- package/dist/components/actions/button-bar/button-bar.d.ts.map +1 -1
- package/dist/components/actions/button-bar/button-bar.js +6 -0
- package/dist/components/actions/button-bar/button-bar.js.map +1 -1
- package/dist/components/actions/icon-button/icon-button.d.ts +26 -39
- package/dist/components/actions/icon-button/icon-button.d.ts.map +1 -1
- package/dist/components/actions/icon-button/icon-button.i18n.d.ts +1 -1
- package/dist/components/actions/icon-button/icon-button.i18n.js +1 -1
- package/dist/components/actions/icon-button/icon-button.i18n.js.map +1 -1
- package/dist/components/actions/icon-button/icon-button.js +25 -38
- package/dist/components/actions/icon-button/icon-button.js.map +1 -1
- package/dist/components/actions/icon-button/icon-button.styles.js +1 -1
- package/dist/components/actions/icon-button/icon-button.template.js +1 -1
- package/dist/components/actions/icon-button/icon-button.template.js.map +1 -1
- package/dist/components/actions/menu/menu.d.ts +47 -52
- package/dist/components/actions/menu/menu.d.ts.map +1 -1
- package/dist/components/actions/menu/menu.js +55 -54
- package/dist/components/actions/menu/menu.js.map +1 -1
- package/dist/components/actions/menu/menu.styles.d.ts.map +1 -1
- package/dist/components/actions/menu/menu.styles.js +7 -1
- package/dist/components/actions/menu/menu.styles.js.map +1 -1
- package/dist/components/actions/menu/menu.template.js +1 -1
- package/dist/components/actions/menu/menu.template.js.map +1 -1
- package/dist/components/actions/toolbar/toolbar.d.ts +10 -4
- package/dist/components/actions/toolbar/toolbar.d.ts.map +1 -1
- package/dist/components/actions/toolbar/toolbar.js +30 -11
- package/dist/components/actions/toolbar/toolbar.js.map +1 -1
- package/dist/components/actions/toolbar/toolbar.styles.js +3 -3
- package/dist/components/components.js +65 -62
- package/dist/components/content/avatar/avatar.d.ts +44 -12
- package/dist/components/content/avatar/avatar.d.ts.map +1 -1
- package/dist/components/content/avatar/avatar.i18n.d.ts +5 -0
- package/dist/components/content/avatar/avatar.i18n.d.ts.map +1 -0
- package/dist/components/content/avatar/avatar.i18n.js +4 -0
- package/dist/components/content/avatar/avatar.i18n.js.map +1 -0
- package/dist/components/content/avatar/avatar.js +87 -13
- package/dist/components/content/avatar/avatar.js.map +1 -1
- package/dist/components/content/avatar/avatar.styles.d.ts.map +1 -1
- package/dist/components/content/avatar/avatar.styles.js +44 -9
- package/dist/components/content/avatar/avatar.styles.js.map +1 -1
- package/dist/components/content/avatar/avatar.template.d.ts +2 -1
- package/dist/components/content/avatar/avatar.template.d.ts.map +1 -1
- package/dist/components/content/avatar/avatar.template.js +53 -23
- package/dist/components/content/avatar/avatar.template.js.map +1 -1
- package/dist/components/content/byline/byline.d.ts +6 -6
- package/dist/components/content/byline/byline.js +6 -6
- package/dist/components/content/code-viewer/code-viewer.js +2 -2
- package/dist/components/content/code-viewer/code-viewer.styles.d.ts.map +1 -1
- package/dist/components/content/code-viewer/code-viewer.styles.js +5 -4
- package/dist/components/content/code-viewer/code-viewer.styles.js.map +1 -1
- package/dist/components/content/icon/icon-aliases.d.ts.map +1 -1
- package/dist/components/content/icon/icon-aliases.js +19 -5
- package/dist/components/content/icon/icon-aliases.js.map +1 -1
- package/dist/components/content/icon/icon-registry.d.ts.map +1 -1
- package/dist/components/content/icon/icon-registry.js +9 -2
- package/dist/components/content/icon/icon-registry.js.map +1 -1
- package/dist/components/content/icon/icon.d.ts +14 -16
- package/dist/components/content/icon/icon.d.ts.map +1 -1
- package/dist/components/content/icon/icon.js +13 -15
- package/dist/components/content/icon/icon.js.map +1 -1
- package/dist/components/content/icon/icon.styles.d.ts.map +1 -1
- package/dist/components/content/icon/icon.styles.js +7 -4
- package/dist/components/content/icon/icon.styles.js.map +1 -1
- package/dist/components/content/image/image.d.ts +9 -9
- package/dist/components/content/image/image.js +9 -9
- package/dist/components/content/image/image.styles.js +2 -2
- package/dist/components/content/image/image.template.js +2 -2
- package/dist/components/content/image/image.template.js.map +1 -1
- package/dist/components/content/image/lqip-encoder.js +1 -1
- package/dist/components/content/keyboard-shortcut/keyboard-shortcut.styles.js +2 -2
- package/dist/components/content/rich-text/rich-text.d.ts +4 -4
- package/dist/components/content/rich-text/rich-text.js +4 -4
- package/dist/components/content/token/token.d.ts +7 -7
- package/dist/components/content/token/token.js +7 -7
- package/dist/components/content/tooltip/tooltip.d.ts +4 -14
- package/dist/components/content/tooltip/tooltip.d.ts.map +1 -1
- package/dist/components/content/tooltip/tooltip.js +4 -14
- package/dist/components/content/tooltip/tooltip.js.map +1 -1
- package/dist/components/forms/form/form.d.ts +10 -19
- package/dist/components/forms/form/form.d.ts.map +1 -1
- package/dist/components/forms/form/form.js +10 -19
- package/dist/components/forms/form/form.js.map +1 -1
- package/dist/components/forms/form-actions/form-actions.d.ts +2 -6
- package/dist/components/forms/form-actions/form-actions.d.ts.map +1 -1
- package/dist/components/forms/form-actions/form-actions.js +2 -6
- package/dist/components/forms/form-actions/form-actions.js.map +1 -1
- package/dist/components/forms/form-field/form-field.d.ts +7 -14
- package/dist/components/forms/form-field/form-field.d.ts.map +1 -1
- package/dist/components/forms/form-field/form-field.js +7 -14
- package/dist/components/forms/form-field/form-field.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 +15 -2
- package/dist/components/forms/form-field/form-field.styles.js.map +1 -1
- package/dist/components/forms/form-section/form-section.d.ts +2 -3
- package/dist/components/forms/form-section/form-section.d.ts.map +1 -1
- package/dist/components/forms/form-section/form-section.js +2 -3
- package/dist/components/forms/form-section/form-section.js.map +1 -1
- package/dist/components/{index-Dgxr-sEe.js → index-CDK46KLh.js} +1 -1
- package/dist/components/{index-Bh_hMHn8.js → index-CbaaFM8N.js} +1 -1
- package/dist/components/{index-DS-RnHMu.js → index-DRtuMofR.js} +1 -1
- package/dist/components/{index-BP0XMTYa.js → index-DuvuHfMi.js} +1 -1
- package/dist/components/{index-CTUlN5qN.js → index-DzJola_U.js} +1 -1
- package/dist/components/{index-sa60dMt-.js → index-n8evy8Za.js} +1 -1
- package/dist/components/{index-BuLJAwiB.js → index-t08wCuGl.js} +4213 -2494
- package/dist/components/index.d.ts +2 -0
- package/dist/components/index.d.ts.map +1 -1
- package/dist/components/index.js +2 -0
- package/dist/components/index.js.map +1 -1
- package/dist/components/inputs/checkbox/checkbox.d.ts +11 -11
- package/dist/components/inputs/checkbox/checkbox.d.ts.map +1 -1
- package/dist/components/inputs/checkbox/checkbox.js +11 -15
- package/dist/components/inputs/checkbox/checkbox.js.map +1 -1
- package/dist/components/inputs/checkbox/checkbox.styles.js +1 -1
- package/dist/components/inputs/checkbox-field/checkbox-field.d.ts +20 -6
- package/dist/components/inputs/checkbox-field/checkbox-field.d.ts.map +1 -1
- package/dist/components/inputs/checkbox-field/checkbox-field.js +29 -7
- package/dist/components/inputs/checkbox-field/checkbox-field.js.map +1 -1
- package/dist/components/inputs/code-editor/code-editor.d.ts +19 -18
- package/dist/components/inputs/code-editor/code-editor.d.ts.map +1 -1
- package/dist/components/inputs/code-editor/code-editor.js +23 -23
- package/dist/components/inputs/code-editor/code-editor.js.map +1 -1
- package/dist/components/inputs/code-editor/code-editor.styles.js +2 -2
- package/dist/components/inputs/combo-box/combo-box.d.ts +26 -29
- package/dist/components/inputs/combo-box/combo-box.d.ts.map +1 -1
- package/dist/components/inputs/combo-box/combo-box.js +74 -39
- package/dist/components/inputs/combo-box/combo-box.js.map +1 -1
- package/dist/components/inputs/combo-box/combo-box.styles.js +7 -7
- package/dist/components/inputs/date-field/date-field.d.ts +25 -24
- package/dist/components/inputs/date-field/date-field.d.ts.map +1 -1
- package/dist/components/inputs/date-field/date-field.js +26 -29
- package/dist/components/inputs/date-field/date-field.js.map +1 -1
- package/dist/components/inputs/date-field/date-field.styles.js +5 -5
- package/dist/components/inputs/date-picker/date-picker.d.ts +16 -13
- package/dist/components/inputs/date-picker/date-picker.d.ts.map +1 -1
- package/dist/components/inputs/date-picker/date-picker.js +35 -15
- package/dist/components/inputs/date-picker/date-picker.js.map +1 -1
- package/dist/components/inputs/date-picker/date-picker.styles.d.ts.map +1 -1
- package/dist/components/inputs/date-picker/date-picker.styles.js +21 -29
- package/dist/components/inputs/date-picker/date-picker.styles.js.map +1 -1
- package/dist/components/inputs/dropdown/dropdown.d.ts +4 -4
- package/dist/components/inputs/dropdown/dropdown.js +4 -4
- package/dist/components/inputs/multi-line-text-field/multi-line-text-field.d.ts +21 -21
- package/dist/components/inputs/multi-line-text-field/multi-line-text-field.d.ts.map +1 -1
- package/dist/components/inputs/multi-line-text-field/multi-line-text-field.js +23 -26
- package/dist/components/inputs/multi-line-text-field/multi-line-text-field.js.map +1 -1
- package/dist/components/inputs/multi-line-text-field/multi-line-text-field.styles.js +5 -5
- package/dist/components/inputs/number-field/number-field.d.ts +17 -20
- package/dist/components/inputs/number-field/number-field.d.ts.map +1 -1
- package/dist/components/inputs/number-field/number-field.js +20 -23
- package/dist/components/inputs/number-field/number-field.js.map +1 -1
- package/dist/components/inputs/number-field/number-field.styles.js +4 -4
- package/dist/components/inputs/password-field/password-field.d.ts +25 -24
- package/dist/components/inputs/password-field/password-field.d.ts.map +1 -1
- package/dist/components/inputs/password-field/password-field.js +27 -29
- package/dist/components/inputs/password-field/password-field.js.map +1 -1
- package/dist/components/inputs/password-field/password-field.styles.js +7 -7
- package/dist/components/inputs/radio-button/radio-button.d.ts +10 -10
- package/dist/components/inputs/radio-button/radio-button.d.ts.map +1 -1
- package/dist/components/inputs/radio-button/radio-button.js +9 -14
- package/dist/components/inputs/radio-button/radio-button.js.map +1 -1
- package/dist/components/inputs/radio-button/radio-button.styles.js +2 -2
- package/dist/components/inputs/radio-button-field/radio-button-field.d.ts +24 -6
- 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 +32 -7
- package/dist/components/inputs/radio-button-field/radio-button-field.js.map +1 -1
- package/dist/components/inputs/radio-button-group/radio-button-group.d.ts +3 -3
- package/dist/components/inputs/radio-button-group/radio-button-group.d.ts.map +1 -1
- package/dist/components/inputs/radio-button-group/radio-button-group.js +17 -10
- package/dist/components/inputs/radio-button-group/radio-button-group.js.map +1 -1
- package/dist/components/inputs/search-field/search-field.d.ts +15 -17
- package/dist/components/inputs/search-field/search-field.d.ts.map +1 -1
- package/dist/components/inputs/search-field/search-field.js +19 -22
- package/dist/components/inputs/search-field/search-field.js.map +1 -1
- package/dist/components/inputs/search-field/search-field.styles.js +5 -5
- package/dist/components/inputs/segmented-control/segmented-control.d.ts +27 -29
- package/dist/components/inputs/segmented-control/segmented-control.d.ts.map +1 -1
- package/dist/components/inputs/segmented-control/segmented-control.js +47 -57
- package/dist/components/inputs/segmented-control/segmented-control.js.map +1 -1
- package/dist/components/inputs/segmented-control/segmented-control.styles.js +4 -4
- package/dist/components/inputs/stepper/stepper.d.ts +14 -14
- package/dist/components/inputs/stepper/stepper.d.ts.map +1 -1
- package/dist/components/inputs/stepper/stepper.js +13 -18
- package/dist/components/inputs/stepper/stepper.js.map +1 -1
- package/dist/components/inputs/switch/switch.d.ts +12 -13
- package/dist/components/inputs/switch/switch.d.ts.map +1 -1
- package/dist/components/inputs/switch/switch.js +13 -18
- package/dist/components/inputs/switch/switch.js.map +1 -1
- package/dist/components/inputs/switch/switch.styles.js +6 -6
- package/dist/components/inputs/switch-field/switch-field.d.ts +4 -4
- package/dist/components/inputs/switch-field/switch-field.js +4 -4
- package/dist/components/inputs/text-editor/text-editor.caret.d.ts +1 -1
- package/dist/components/inputs/text-editor/text-editor.caret.js +1 -1
- package/dist/components/inputs/text-editor/text-editor.commands.js +1 -1
- package/dist/components/inputs/text-editor/text-editor.d.ts +21 -21
- package/dist/components/inputs/text-editor/text-editor.d.ts.map +1 -1
- package/dist/components/inputs/text-editor/text-editor.js +27 -27
- package/dist/components/inputs/text-editor/text-editor.js.map +1 -1
- package/dist/components/inputs/text-editor/text-editor.links.js +4 -4
- package/dist/components/inputs/text-editor/text-editor.markdown.js +7 -7
- package/dist/components/inputs/text-editor/text-editor.markdown.js.map +1 -1
- package/dist/components/inputs/text-editor/text-editor.ordered-list.js +1 -1
- package/dist/components/inputs/text-editor/text-editor.styles.js +14 -14
- package/dist/components/inputs/text-field/text-field.d.ts +20 -19
- package/dist/components/inputs/text-field/text-field.d.ts.map +1 -1
- package/dist/components/inputs/text-field/text-field.js +22 -24
- package/dist/components/inputs/text-field/text-field.js.map +1 -1
- package/dist/components/inputs/text-field/text-field.styles.js +3 -3
- package/dist/components/inputs/toggle-button/toggle-button.d.ts +14 -13
- package/dist/components/inputs/toggle-button/toggle-button.d.ts.map +1 -1
- package/dist/components/inputs/toggle-button/toggle-button.js +18 -18
- package/dist/components/inputs/toggle-button/toggle-button.js.map +1 -1
- package/dist/components/inputs/toggle-button-group/toggle-button-group.d.ts +7 -7
- package/dist/components/inputs/toggle-button-group/toggle-button-group.d.ts.map +1 -1
- package/dist/components/inputs/toggle-button-group/toggle-button-group.js +25 -17
- package/dist/components/inputs/toggle-button-group/toggle-button-group.js.map +1 -1
- package/dist/components/inputs/token-field/token-field.d.ts +24 -29
- package/dist/components/inputs/token-field/token-field.d.ts.map +1 -1
- package/dist/components/inputs/token-field/token-field.i18n.d.ts +1 -1
- package/dist/components/inputs/token-field/token-field.i18n.js +1 -1
- package/dist/components/inputs/token-field/token-field.i18n.js.map +1 -1
- package/dist/components/inputs/token-field/token-field.js +35 -39
- package/dist/components/inputs/token-field/token-field.js.map +1 -1
- package/dist/components/inputs/token-field/token-field.styles.js +4 -4
- package/dist/components/inputs/token-field/token-field.template.js +1 -1
- package/dist/components/inputs/token-field/token-field.template.js.map +1 -1
- package/dist/components/layout/app-view/app-view.d.ts +16 -4
- package/dist/components/layout/app-view/app-view.d.ts.map +1 -1
- package/dist/components/layout/app-view/app-view.js +18 -13
- package/dist/components/layout/app-view/app-view.js.map +1 -1
- package/dist/components/layout/box/box.d.ts +1 -1
- package/dist/components/layout/box/box.js +1 -1
- package/dist/components/layout/box/box.styles.d.ts.map +1 -1
- package/dist/components/layout/box/box.styles.js +8 -18
- package/dist/components/layout/box/box.styles.js.map +1 -1
- package/dist/components/layout/card/card.d.ts +26 -9
- package/dist/components/layout/card/card.d.ts.map +1 -1
- package/dist/components/layout/card/card.i18n.d.ts +1 -1
- package/dist/components/layout/card/card.i18n.js +1 -1
- package/dist/components/layout/card/card.i18n.js.map +1 -1
- package/dist/components/layout/card/card.js +51 -14
- 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 +41 -4
- 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 +14 -6
- package/dist/components/layout/card/card.template.js.map +1 -1
- package/dist/components/layout/collection/collection.d.ts +3 -10
- package/dist/components/layout/collection/collection.d.ts.map +1 -1
- package/dist/components/layout/collection/collection.js +3 -10
- package/dist/components/layout/collection/collection.js.map +1 -1
- package/dist/components/layout/collection/collection.styles.d.ts.map +1 -1
- package/dist/components/layout/collection/collection.styles.js +21 -3
- package/dist/components/layout/collection/collection.styles.js.map +1 -1
- package/dist/components/layout/container/container.d.ts +41 -41
- package/dist/components/layout/container/container.js +41 -41
- package/dist/components/layout/page/page.d.ts +1 -1
- package/dist/components/layout/page/page.js +2 -2
- package/dist/components/layout/page-footer/page-footer.d.ts +10 -12
- package/dist/components/layout/page-footer/page-footer.d.ts.map +1 -1
- package/dist/components/layout/page-footer/page-footer.js +11 -13
- package/dist/components/layout/page-footer/page-footer.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 +8 -1
- package/dist/components/layout/page-footer/page-footer.styles.js.map +1 -1
- package/dist/components/layout/page-footer/page-footer.template.js +1 -1
- package/dist/components/layout/page-sections/full-bleed-section/full-bleed-section.d.ts +1 -3
- package/dist/components/layout/page-sections/full-bleed-section/full-bleed-section.d.ts.map +1 -1
- package/dist/components/layout/page-sections/full-bleed-section/full-bleed-section.js +1 -3
- package/dist/components/layout/page-sections/full-bleed-section/full-bleed-section.js.map +1 -1
- package/dist/components/layout/page-sections/one-half-one-half-section/one-half-one-half-section.d.ts +1 -3
- package/dist/components/layout/page-sections/one-half-one-half-section/one-half-one-half-section.d.ts.map +1 -1
- package/dist/components/layout/page-sections/one-half-one-half-section/one-half-one-half-section.js +1 -3
- package/dist/components/layout/page-sections/one-half-one-half-section/one-half-one-half-section.js.map +1 -1
- package/dist/components/layout/page-sections/one-third-two-thirds-section/one-third-two-thirds-section.d.ts +1 -3
- package/dist/components/layout/page-sections/one-third-two-thirds-section/one-third-two-thirds-section.d.ts.map +1 -1
- package/dist/components/layout/page-sections/one-third-two-thirds-section/one-third-two-thirds-section.js +1 -3
- package/dist/components/layout/page-sections/one-third-two-thirds-section/one-third-two-thirds-section.js.map +1 -1
- package/dist/components/layout/page-sections/sidebar-section/sidebar-section.d.ts +20 -18
- 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 +26 -20
- 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.d.ts.map +1 -1
- package/dist/components/layout/page-sections/sidebar-section/sidebar-section.styles.js +20 -2
- 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 -3
- package/dist/components/layout/page-sections/simple-section/simple-section.d.ts.map +1 -1
- package/dist/components/layout/page-sections/simple-section/simple-section.js +1 -3
- package/dist/components/layout/page-sections/simple-section/simple-section.js.map +1 -1
- package/dist/components/layout/page-sections/two-thirds-one-third-section/two-thirds-one-third-section.d.ts +1 -3
- package/dist/components/layout/page-sections/two-thirds-one-third-section/two-thirds-one-third-section.d.ts.map +1 -1
- package/dist/components/layout/page-sections/two-thirds-one-third-section/two-thirds-one-third-section.js +1 -3
- package/dist/components/layout/page-sections/two-thirds-one-third-section/two-thirds-one-third-section.js.map +1 -1
- package/dist/components/layout/popover/popover.d.ts +18 -47
- package/dist/components/layout/popover/popover.d.ts.map +1 -1
- package/dist/components/layout/popover/popover.js +18 -47
- package/dist/components/layout/popover/popover.js.map +1 -1
- package/dist/components/layout/sheet/sheet.d.ts +9 -17
- package/dist/components/layout/sheet/sheet.d.ts.map +1 -1
- package/dist/components/layout/sheet/sheet.js +39 -27
- package/dist/components/layout/sheet/sheet.js.map +1 -1
- package/dist/components/layout/split-views/bar-split-view/bar-split-view.d.ts +4 -4
- package/dist/components/layout/split-views/bar-split-view/bar-split-view.js +4 -4
- package/dist/components/layout/split-views/navigation-split-view/navigation-split-view.d.ts +17 -17
- package/dist/components/layout/split-views/navigation-split-view/navigation-split-view.js +17 -17
- package/dist/components/layout/split-views/split-view-pane/split-view-pane.d.ts +2 -2
- package/dist/components/layout/split-views/split-view-pane/split-view-pane.js +2 -2
- package/dist/components/layout/window/window.d.ts +26 -20
- package/dist/components/layout/window/window.d.ts.map +1 -1
- package/dist/components/layout/window/window.js +58 -30
- package/dist/components/layout/window/window.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 -0
- 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 +1 -0
- 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 +1 -0
- 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.d.ts +1 -1
- package/dist/components/lists-and-tables/cells/drag-handle-cell/drag-handle-cell.i18n.d.ts +1 -1
- package/dist/components/lists-and-tables/cells/drag-handle-cell/drag-handle-cell.i18n.js +1 -1
- package/dist/components/lists-and-tables/cells/drag-handle-cell/drag-handle-cell.i18n.js.map +1 -1
- package/dist/components/lists-and-tables/cells/drag-handle-cell/drag-handle-cell.js +2 -2
- package/dist/components/lists-and-tables/cells/drag-handle-cell/drag-handle-cell.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 +1 -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 +1 -0
- package/dist/components/lists-and-tables/cells/icon-cell/icon-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 +1 -0
- 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.d.ts +43 -9
- package/dist/components/lists-and-tables/cells/timeline-track-cell/timeline-track-cell.d.ts.map +1 -1
- package/dist/components/lists-and-tables/cells/timeline-track-cell/timeline-track-cell.js +69 -9
- package/dist/components/lists-and-tables/cells/timeline-track-cell/timeline-track-cell.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 +96 -43
- 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/timeline-track-cell/timeline-track-cell.template.d.ts.map +1 -1
- package/dist/components/lists-and-tables/cells/timeline-track-cell/timeline-track-cell.template.js +19 -7
- package/dist/components/lists-and-tables/cells/timeline-track-cell/timeline-track-cell.template.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 +1 -0
- 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 +77 -31
- package/dist/components/lists-and-tables/list/list.d.ts.map +1 -1
- package/dist/components/lists-and-tables/list/list.i18n.d.ts +4 -4
- package/dist/components/lists-and-tables/list/list.i18n.js +4 -4
- package/dist/components/lists-and-tables/list/list.i18n.js.map +1 -1
- package/dist/components/lists-and-tables/list/list.js +202 -70
- 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 +29 -22
- package/dist/components/lists-and-tables/list/list.styles.js.map +1 -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 +4 -3
- 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 +189 -18
- package/dist/components/lists-and-tables/list-item/list-item.d.ts.map +1 -1
- package/dist/components/lists-and-tables/list-item/list-item.i18n.d.ts +1 -1
- package/dist/components/lists-and-tables/list-item/list-item.i18n.js +1 -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 +467 -45
- 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 +133 -101
- 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 +51 -24
- package/dist/components/lists-and-tables/list-item/list-item.template.js.map +1 -1
- package/dist/components/lists-and-tables/list-item-action/list-item-action.d.ts +108 -0
- package/dist/components/lists-and-tables/list-item-action/list-item-action.d.ts.map +1 -0
- package/dist/components/lists-and-tables/list-item-action/list-item-action.js +228 -0
- package/dist/components/lists-and-tables/list-item-action/list-item-action.js.map +1 -0
- package/dist/components/lists-and-tables/list-item-action/list-item-action.styles.d.ts +2 -0
- package/dist/components/lists-and-tables/list-item-action/list-item-action.styles.d.ts.map +1 -0
- package/dist/components/lists-and-tables/list-item-action/list-item-action.styles.js +145 -0
- package/dist/components/lists-and-tables/list-item-action/list-item-action.styles.js.map +1 -0
- package/dist/components/lists-and-tables/list-item-action/list-item-action.template.d.ts +3 -0
- package/dist/components/lists-and-tables/list-item-action/list-item-action.template.d.ts.map +1 -0
- package/dist/components/lists-and-tables/list-item-action/list-item-action.template.js +35 -0
- package/dist/components/lists-and-tables/list-item-action/list-item-action.template.js.map +1 -0
- 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 -2
- package/dist/components/lists-and-tables/table/table.styles.js.map +1 -1
- package/dist/components/navigation/breadcrumbs/breadcrumbs.d.ts +5 -7
- package/dist/components/navigation/breadcrumbs/breadcrumbs.d.ts.map +1 -1
- package/dist/components/navigation/breadcrumbs/breadcrumbs.js +5 -7
- package/dist/components/navigation/breadcrumbs/breadcrumbs.js.map +1 -1
- package/dist/components/navigation/breadcrumbs/breadcrumbs.template.js +1 -1
- package/dist/components/navigation/document-tab-bar/document-tab-bar.d.ts +15 -16
- package/dist/components/navigation/document-tab-bar/document-tab-bar.d.ts.map +1 -1
- package/dist/components/navigation/document-tab-bar/document-tab-bar.i18n.d.ts +1 -1
- package/dist/components/navigation/document-tab-bar/document-tab-bar.i18n.js +1 -1
- package/dist/components/navigation/document-tab-bar/document-tab-bar.i18n.js.map +1 -1
- package/dist/components/navigation/document-tab-bar/document-tab-bar.js +14 -15
- package/dist/components/navigation/document-tab-bar/document-tab-bar.js.map +1 -1
- package/dist/components/navigation/link/link.d.ts +2 -2
- package/dist/components/navigation/link/link.i18n.d.ts +1 -1
- package/dist/components/navigation/link/link.i18n.js +1 -1
- package/dist/components/navigation/link/link.i18n.js.map +1 -1
- package/dist/components/navigation/link/link.template.js +1 -1
- package/dist/components/navigation/link/link.template.js.map +1 -1
- package/dist/components/navigation/menu-bar-item/menu-bar-item.d.ts +1 -1
- package/dist/components/navigation/menu-bar-item/menu-bar-item.js +1 -1
- package/dist/components/navigation/pagination/pagination.i18n.d.ts +1 -1
- package/dist/components/navigation/pagination/pagination.i18n.js +1 -1
- package/dist/components/navigation/pagination/pagination.i18n.js.map +1 -1
- package/dist/components/navigation/pagination/pagination.styles.js +5 -5
- package/dist/components/navigation/pagination/pagination.template.js +1 -1
- package/dist/components/navigation/pagination/pagination.template.js.map +1 -1
- package/dist/components/navigation/tab-bar/tab-bar.d.ts +11 -11
- package/dist/components/navigation/tab-bar/tab-bar.js +11 -11
- package/dist/components/navigation/tab-bar/tab-bar.styles.js +7 -7
- package/dist/components/navigation/top-navigation-bar/top-navigation-bar.d.ts +11 -11
- 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 +11 -12
- 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 +9 -4
- 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.d.ts +5 -5
- package/dist/components/navigation/top-title-bar/top-title-bar.js +6 -6
- package/dist/components/navigation/top-title-bar/top-title-bar.js.map +1 -1
- package/dist/components/status-and-feedback/activity-indicator/activity-indicator.d.ts +3 -3
- package/dist/components/status-and-feedback/activity-indicator/activity-indicator.i18n.d.ts +1 -1
- package/dist/components/status-and-feedback/activity-indicator/activity-indicator.i18n.js +1 -1
- package/dist/components/status-and-feedback/activity-indicator/activity-indicator.i18n.js.map +1 -1
- package/dist/components/status-and-feedback/activity-indicator/activity-indicator.js +4 -4
- package/dist/components/status-and-feedback/activity-indicator/activity-indicator.js.map +1 -1
- package/dist/components/status-and-feedback/activity-indicator/activity-indicator.styles.js +6 -6
- package/dist/components/status-and-feedback/badge/badge.d.ts +2 -2
- package/dist/components/status-and-feedback/badge/badge.i18n.d.ts +1 -1
- package/dist/components/status-and-feedback/badge/badge.i18n.js +1 -1
- package/dist/components/status-and-feedback/badge/badge.i18n.js.map +1 -1
- package/dist/components/status-and-feedback/badge/badge.js +1 -1
- package/dist/components/status-and-feedback/badge/badge.js.map +1 -1
- package/dist/components/status-and-feedback/banner/banner.d.ts +9 -9
- package/dist/components/status-and-feedback/banner/banner.js +9 -9
- package/dist/components/status-and-feedback/inline-dialog/inline-dialog.d.ts +6 -6
- package/dist/components/status-and-feedback/inline-dialog/inline-dialog.js +6 -6
- package/dist/components/status-and-feedback/just-in-time-education/just-in-time-education.d.ts +7 -7
- package/dist/components/status-and-feedback/just-in-time-education/just-in-time-education.js +8 -8
- package/dist/components/status-and-feedback/just-in-time-education/just-in-time-education.styles.js +1 -1
- package/dist/components/status-and-feedback/modal-dialog/modal-dialog.d.ts +22 -8
- package/dist/components/status-and-feedback/modal-dialog/modal-dialog.d.ts.map +1 -1
- package/dist/components/status-and-feedback/modal-dialog/modal-dialog.js +63 -27
- package/dist/components/status-and-feedback/modal-dialog/modal-dialog.js.map +1 -1
- package/dist/components/status-and-feedback/modal-dialog/modal-dialog.template.d.ts.map +1 -1
- package/dist/components/status-and-feedback/modal-dialog/modal-dialog.template.js +1 -0
- package/dist/components/status-and-feedback/modal-dialog/modal-dialog.template.js.map +1 -1
- package/dist/components/status-and-feedback/progress-bar/progress-bar.d.ts +13 -13
- package/dist/components/status-and-feedback/progress-bar/progress-bar.i18n.d.ts +2 -2
- package/dist/components/status-and-feedback/progress-bar/progress-bar.i18n.js +2 -2
- package/dist/components/status-and-feedback/progress-bar/progress-bar.i18n.js.map +1 -1
- package/dist/components/status-and-feedback/progress-bar/progress-bar.js +14 -14
- package/dist/components/status-and-feedback/progress-bar/progress-bar.js.map +1 -1
- package/dist/components/status-and-feedback/progress-bar/progress-bar.styles.js +1 -1
- package/dist/components/status-and-feedback/progress-bar/progress-bar.template.js +1 -1
- package/dist/components/status-and-feedback/progress-bar/progress-bar.template.js.map +1 -1
- package/dist/components/status-and-feedback/progress-circle/progress-circle.d.ts +15 -15
- package/dist/components/status-and-feedback/progress-circle/progress-circle.i18n.d.ts +2 -2
- package/dist/components/status-and-feedback/progress-circle/progress-circle.i18n.js +2 -2
- package/dist/components/status-and-feedback/progress-circle/progress-circle.i18n.js.map +1 -1
- package/dist/components/status-and-feedback/progress-circle/progress-circle.js +20 -20
- package/dist/components/status-and-feedback/progress-circle/progress-circle.js.map +1 -1
- package/dist/components/status-and-feedback/progress-circle/progress-circle.styles.js +3 -3
- package/dist/components/status-and-feedback/progress-circle/progress-circle.template.js +4 -4
- package/dist/components/status-and-feedback/progress-circle/progress-circle.template.js.map +1 -1
- package/dist/components/status-and-feedback/status-bar/status-bar.d.ts +4 -4
- package/dist/components/status-and-feedback/status-bar/status-bar.js +4 -4
- package/dist/components/status-and-feedback/step-indicator/step-indicator.d.ts +124 -0
- package/dist/components/status-and-feedback/step-indicator/step-indicator.d.ts.map +1 -0
- package/dist/components/status-and-feedback/step-indicator/step-indicator.i18n.d.ts +9 -0
- package/dist/components/status-and-feedback/step-indicator/step-indicator.i18n.d.ts.map +1 -0
- package/dist/components/status-and-feedback/step-indicator/step-indicator.i18n.js +8 -0
- package/dist/components/status-and-feedback/step-indicator/step-indicator.i18n.js.map +1 -0
- package/dist/components/status-and-feedback/step-indicator/step-indicator.js +210 -0
- package/dist/components/status-and-feedback/step-indicator/step-indicator.js.map +1 -0
- package/dist/components/status-and-feedback/step-indicator/step-indicator.styles.d.ts +3 -0
- package/dist/components/status-and-feedback/step-indicator/step-indicator.styles.d.ts.map +1 -0
- package/dist/components/status-and-feedback/step-indicator/step-indicator.styles.js +294 -0
- package/dist/components/status-and-feedback/step-indicator/step-indicator.styles.js.map +1 -0
- package/dist/components/status-and-feedback/step-indicator/step-indicator.template.d.ts +5 -0
- package/dist/components/status-and-feedback/step-indicator/step-indicator.template.d.ts.map +1 -0
- package/dist/components/status-and-feedback/step-indicator/step-indicator.template.js +69 -0
- package/dist/components/status-and-feedback/step-indicator/step-indicator.template.js.map +1 -0
- package/dist/css/form.css +16 -7
- package/dist/css/settings.css +68 -73
- package/dist/types/vue.d.ts +186 -42
- package/dist/utilities/autofocus.d.ts +19 -0
- package/dist/utilities/autofocus.d.ts.map +1 -0
- package/dist/utilities/autofocus.js +35 -0
- package/dist/utilities/autofocus.js.map +1 -0
- package/dist/utilities/codemirror/theme.js +2 -2
- package/dist/utilities/codemirror/theme.js.map +1 -1
- package/dist/utilities/color-scheme-repaint.d.ts +2 -2
- package/dist/utilities/color-scheme-repaint.js +2 -2
- package/dist/utilities/form-associated-mixin.d.ts +33 -0
- package/dist/utilities/form-associated-mixin.d.ts.map +1 -0
- package/dist/utilities/form-associated-mixin.js +52 -0
- package/dist/utilities/form-associated-mixin.js.map +1 -0
- package/dist/utilities/input-modality.d.ts +3 -1
- package/dist/utilities/input-modality.d.ts.map +1 -1
- package/dist/utilities/input-modality.js +12 -1
- package/dist/utilities/input-modality.js.map +1 -1
- package/dist/utilities/page-section-mixin.d.ts +1 -1
- package/dist/utilities/page-section-mixin.js +2 -2
- package/dist/utilities/popup-anchor-controller.d.ts +2 -2
- package/package.json +9 -1
|
@@ -14,8 +14,18 @@
|
|
|
14
14
|
* blend with the app instead of revealing the user-agent's default white.
|
|
15
15
|
* Cleared when the app-view disconnects.
|
|
16
16
|
*
|
|
17
|
+
* ## Scroll mode
|
|
18
|
+
* The app scrolls the DOCUMENT (root mode) or lets each `nldd-page` scroll
|
|
19
|
+
* inside its pane (nested mode). The mode is derived from the outermost
|
|
20
|
+
* horizontal split view: one column means the document scrolls, several columns
|
|
21
|
+
* mean the panes do. An app without such a split view is a single column at
|
|
22
|
+
* every width and therefore scrolls the document too — nested scrolling would
|
|
23
|
+
* cost it the rubber-band and the collapsing browser toolbar on iOS for nothing.
|
|
24
|
+
* Set `--context-scroll-mode` on the `nldd-app-view` itself to override the
|
|
25
|
+
* derived mode; an inherited value loses from it.
|
|
26
|
+
*
|
|
17
27
|
* ## Overscroll
|
|
18
|
-
* In nested
|
|
28
|
+
* In nested scroll mode `overscroll-behavior: none` is set on
|
|
19
29
|
* `document.documentElement` and `document.body` while the app-view is
|
|
20
30
|
* connected. Combined with `overscroll-behavior: contain` on `nldd-page`'s
|
|
21
31
|
* scroll target, this prevents iOS rubber-band on the viewport when scroll
|
|
@@ -45,9 +55,11 @@ export declare class NLDDAppView extends LitElement implements ScrollModeProvide
|
|
|
45
55
|
private _onSingleColumnChange;
|
|
46
56
|
/**
|
|
47
57
|
* Derive the document-vs-nested scroll mode from the outermost horizontal
|
|
48
|
-
* split view and push it to every registered layer.
|
|
49
|
-
*
|
|
50
|
-
*
|
|
58
|
+
* split view and push it to every registered layer. Without such a split view
|
|
59
|
+
* the app is a single column at any width, so it scrolls the document: nested
|
|
60
|
+
* scrolling costs you the rubber-band and the collapsing browser toolbar on
|
|
61
|
+
* iOS for nothing. Set `--context-scroll-mode: nested` on the `nldd-app-view`
|
|
62
|
+
* itself to override (an inherited value loses from the derived one).
|
|
51
63
|
*/
|
|
52
64
|
private _evaluateScrollMode;
|
|
53
65
|
connectedCallback(): void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"app-view.d.ts","sourceRoot":"","sources":["../../../../src/components/layout/app-view/app-view.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"app-view.d.ts","sourceRoot":"","sources":["../../../../src/components/layout/app-view/app-view.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAwCG;AACH,OAAO,EAAE,UAAU,EAAE,cAAc,EAAE,MAAM,KAAK,CAAC;AAIjD,OAAO,KAAK,EAAc,kBAAkB,EAAE,kBAAkB,EAAE,MAAM,8CAA8C,CAAC;AAyBvH,qBACa,WAAY,SAAQ,UAAW,YAAW,kBAAkB;IACxE,OAAgB,MAAM,0BAAiB;IAGvC,UAAU,EAAE,MAAM,GAAG,QAAQ,CAAU;IAIvC,OAAO,CAAC,gBAAgB,CAAiC;IAIzD,OAAO,CAAC,YAAY,CAA2B;IAK/C,OAAO,CAAC,WAAW,CAAiE;IAIpF,gBAAgB;IAChB,sBAAsB,CAAC,QAAQ,EAAE,kBAAkB,GAAG,IAAI;IAQ1D,gBAAgB;IAChB,wBAAwB,CAAC,QAAQ,EAAE,kBAAkB,GAAG,IAAI;IAQ5D,OAAO,CAAC,mBAAmB;IAI3B,OAAO,CAAC,qBAAqB,CAE3B;IAEF;;;;;;;OAOG;IACH,OAAO,CAAC,mBAAmB;IAqBlB,iBAAiB,IAAI,IAAI;IAYzB,oBAAoB,IAAI,IAAI;IAsBrC,OAAO,CAAC,gBAAgB;IAWf,OAAO,CAAC,OAAO,EAAE,cAAc,GAAG,IAAI;IAM/C,OAAO,CAAC,oBAAoB;IAOnB,MAAM;CAGf;AAED,OAAO,CAAC,MAAM,CAAC;IACd,UAAU,qBAAqB;QAC9B,eAAe,EAAE,WAAW,CAAC;KAC7B;CACD"}
|
|
@@ -20,8 +20,18 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
20
20
|
* blend with the app instead of revealing the user-agent's default white.
|
|
21
21
|
* Cleared when the app-view disconnects.
|
|
22
22
|
*
|
|
23
|
+
* ## Scroll mode
|
|
24
|
+
* The app scrolls the DOCUMENT (root mode) or lets each `nldd-page` scroll
|
|
25
|
+
* inside its pane (nested mode). The mode is derived from the outermost
|
|
26
|
+
* horizontal split view: one column means the document scrolls, several columns
|
|
27
|
+
* mean the panes do. An app without such a split view is a single column at
|
|
28
|
+
* every width and therefore scrolls the document too — nested scrolling would
|
|
29
|
+
* cost it the rubber-band and the collapsing browser toolbar on iOS for nothing.
|
|
30
|
+
* Set `--context-scroll-mode` on the `nldd-app-view` itself to override the
|
|
31
|
+
* derived mode; an inherited value loses from it.
|
|
32
|
+
*
|
|
23
33
|
* ## Overscroll
|
|
24
|
-
* In nested
|
|
34
|
+
* In nested scroll mode `overscroll-behavior: none` is set on
|
|
25
35
|
* `document.documentElement` and `document.body` while the app-view is
|
|
26
36
|
* connected. Combined with `overscroll-behavior: contain` on `nldd-page`'s
|
|
27
37
|
* scroll target, this prevents iOS rubber-band on the viewport when scroll
|
|
@@ -97,9 +107,11 @@ let NLDDAppView = class NLDDAppView extends LitElement {
|
|
|
97
107
|
}
|
|
98
108
|
/**
|
|
99
109
|
* Derive the document-vs-nested scroll mode from the outermost horizontal
|
|
100
|
-
* split view and push it to every registered layer.
|
|
101
|
-
*
|
|
102
|
-
*
|
|
110
|
+
* split view and push it to every registered layer. Without such a split view
|
|
111
|
+
* the app is a single column at any width, so it scrolls the document: nested
|
|
112
|
+
* scrolling costs you the rubber-band and the collapsing browser toolbar on
|
|
113
|
+
* iOS for nothing. Set `--context-scroll-mode: nested` on the `nldd-app-view`
|
|
114
|
+
* itself to override (an inherited value loses from the derived one).
|
|
103
115
|
*/
|
|
104
116
|
_evaluateScrollMode() {
|
|
105
117
|
const splitView = this._outermostSplitView();
|
|
@@ -109,23 +121,16 @@ let NLDDAppView = class NLDDAppView extends LitElement {
|
|
|
109
121
|
return;
|
|
110
122
|
const next = splitView
|
|
111
123
|
? (splitView.isSingleColumn ? 'root' : 'nested')
|
|
112
|
-
:
|
|
124
|
+
: 'root';
|
|
113
125
|
if (next === this._derivedMode)
|
|
114
126
|
return;
|
|
115
127
|
this._derivedMode = next;
|
|
116
|
-
|
|
117
|
-
this.style.setProperty('--context-scroll-mode', next);
|
|
118
|
-
}
|
|
119
|
-
else {
|
|
120
|
-
this.style.removeProperty('--context-scroll-mode');
|
|
121
|
-
}
|
|
128
|
+
this.style.setProperty('--context-scroll-mode', next);
|
|
122
129
|
// Push the derived mode to every layer. Pass the value explicitly rather
|
|
123
130
|
// than letting each layer re-read the CSS var: a plain var change wouldn't
|
|
124
131
|
// reach the resize-polling layers in the same frame, and a getComputedStyle
|
|
125
132
|
// read during this synchronous push can be stale for a deeply-nested layer
|
|
126
133
|
// (the var may not have propagated through an ancestor's pending re-render).
|
|
127
|
-
// When there is no derived mode (bare-page app) pass undefined so layers
|
|
128
|
-
// fall back to the inherited var.
|
|
129
134
|
this._scrollConsumers.forEach(consumer => consumer.readScrollMode(this._derivedMode ?? undefined));
|
|
130
135
|
}
|
|
131
136
|
connectedCallback() {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"app-view.js","sourceRoot":"","sources":["../../../../src/components/layout/app-view/app-view.ts"],"names":[],"mappings":";;;;;;AAAA
|
|
1
|
+
{"version":3,"file":"app-view.js","sourceRoot":"","sources":["../../../../src/components/layout/app-view/app-view.ts"],"names":[],"mappings":";;;;;;AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAwCG;AACH,OAAO,EAAE,UA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(default): for a box on a plain page bg.
|
|
11
11
|
* - `base`: for a box sitting on an already-tinted parent (the border
|
|
12
|
-
*
|
|
12
|
+
* ring gets +2 palette steps so it still reads against a card-on-card).
|
|
13
13
|
* @slot - Place components inside the box
|
|
14
14
|
*/
|
|
15
15
|
import { LitElement } from 'lit';
|
|
@@ -15,7 +15,7 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
15
15
|
* @attr {'tinted'|'base'} background - Surface fill.
|
|
16
16
|
* - `tinted` (default): for a box on a plain page bg.
|
|
17
17
|
* - `base`: for a box sitting on an already-tinted parent (the border
|
|
18
|
-
*
|
|
18
|
+
* ring gets +2 palette steps so it still reads against a card-on-card).
|
|
19
19
|
* @slot - Place components inside the box
|
|
20
20
|
*/
|
|
21
21
|
import { LitElement } from 'lit';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"box.styles.d.ts","sourceRoot":"","sources":["../../../../src/components/layout/box/box.styles.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,SAAS,
|
|
1
|
+
{"version":3,"file":"box.styles.d.ts","sourceRoot":"","sources":["../../../../src/components/layout/box/box.styles.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,SAAS,yBAiDrB,CAAC"}
|
|
@@ -8,8 +8,11 @@ export const boxStyles = css `
|
|
|
8
8
|
/* # Host */
|
|
9
9
|
|
|
10
10
|
:host {
|
|
11
|
+
--_corner-radius: var(--semantics-surfaces-corner-radius);
|
|
11
12
|
--_background-color: var(--components-box-background-color);
|
|
13
|
+
--_border-width: var(--components-box-border-width);
|
|
12
14
|
--_border-color: var(--components-box-border-color);
|
|
15
|
+
--_highlight-border: inset 0 0 0 var(--_border-width) var(--_border-color);
|
|
13
16
|
|
|
14
17
|
display: block;
|
|
15
18
|
}
|
|
@@ -19,10 +22,7 @@ export const boxStyles = css `
|
|
|
19
22
|
}
|
|
20
23
|
|
|
21
24
|
|
|
22
|
-
/* ## Background variants
|
|
23
|
-
The default (tinted) lives on the :host base. base = card-on-tinted, the
|
|
24
|
-
border ring picks the +2-step semantic so the frame still reads
|
|
25
|
-
against an already-tinted parent. */
|
|
25
|
+
/* ## Background variants */
|
|
26
26
|
|
|
27
27
|
:host([background="base"]) {
|
|
28
28
|
--_background-color: var(--components-box-base-background-color);
|
|
@@ -34,28 +34,18 @@ export const boxStyles = css `
|
|
|
34
34
|
|
|
35
35
|
.box {
|
|
36
36
|
box-sizing: border-box;
|
|
37
|
-
border-radius: var(--
|
|
38
|
-
|
|
39
|
-
without taking layout space. The color is one to two palette
|
|
40
|
-
steps above the surface bg depending on the variant, giving the
|
|
41
|
-
box a defined edge that reads as "subtle dimensional lift"
|
|
42
|
-
rather than a hard border. */
|
|
43
|
-
box-shadow: inset 0 0 0 1px var(--_border-color);
|
|
37
|
+
border-radius: var(--_corner-radius);
|
|
38
|
+
box-shadow: var(--_highlight-border);
|
|
44
39
|
background-color: var(--_background-color);
|
|
45
40
|
padding: var(--components-box-padding);
|
|
46
41
|
}
|
|
47
42
|
|
|
48
43
|
|
|
49
|
-
/* # Accessibility
|
|
50
|
-
box-shadow is dropped by Windows High Contrast / forced-colors mode,
|
|
51
|
-
so the border ring would disappear and the box would lose its
|
|
52
|
-
defined edge against the system background. Restore the edge with a
|
|
53
|
-
real border in that mode. CanvasText is the system foreground color
|
|
54
|
-
so the border always meets contrast. */
|
|
44
|
+
/* # Accessibility */
|
|
55
45
|
|
|
56
46
|
@media (forced-colors: active) {
|
|
57
47
|
.box {
|
|
58
|
-
border:
|
|
48
|
+
border: var(--_border-width) solid CanvasText;
|
|
59
49
|
}
|
|
60
50
|
}
|
|
61
51
|
`;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"box.styles.js","sourceRoot":"","sources":["../../../../src/components/layout/box/box.styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAE1B,MAAM,CAAC,MAAM,SAAS,GAAG,GAAG,CAAA
|
|
1
|
+
{"version":3,"file":"box.styles.js","sourceRoot":"","sources":["../../../../src/components/layout/box/box.styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAE1B,MAAM,CAAC,MAAM,SAAS,GAAG,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAiD3B,CAAC"}
|
|
@@ -5,17 +5,21 @@
|
|
|
5
5
|
* De kaart heeft een elevated look als standaard. Padding wordt overgelaten
|
|
6
6
|
* aan geneste containers.
|
|
7
7
|
*
|
|
8
|
-
* Met `href` wordt de hele kaart een link (een overlay-anchor over de kaart)
|
|
9
|
-
*
|
|
8
|
+
* Met `href` wordt de hele kaart een link (een overlay-anchor over de kaart);
|
|
9
|
+
* met `button` een knop (een overlay-button die een gewone, composed `click`
|
|
10
|
+
* geeft — een klik-listener of htmx-attribuut op de kaart zelf werkt dus direct,
|
|
11
|
+
* en Enter/Space doen het native). `href` wint als beide gezet zijn. Geneste
|
|
12
|
+
* interactieve content (bijv. footer-knoppen) moet je erboven tillen met
|
|
10
13
|
* `position: relative; z-index: 1` om klikbaar te blijven.
|
|
11
14
|
*
|
|
12
15
|
* @element nldd-card
|
|
13
16
|
*
|
|
14
|
-
* @attr {string} accessible-label - Toegankelijke naam van de kaart; bij `href` benoemt deze de link, anders de kaart-region
|
|
15
|
-
* @attr {string} href
|
|
16
|
-
* @attr {
|
|
17
|
-
* @attr {string}
|
|
18
|
-
* @attr {
|
|
17
|
+
* @attr {string} accessible-label - Toegankelijke naam van de kaart; bij `href`/`button` benoemt deze de link of knop, anders de kaart-region
|
|
18
|
+
* @attr {string} href - Maakt de hele kaart een link naar deze URL (leeg = geen link)
|
|
19
|
+
* @attr {boolean} button - Maakt de hele kaart een knop; genegeerd wanneer `href` is gezet
|
|
20
|
+
* @attr {string} target - Link target voor href (bijv. '_blank'); stelt rel automatisch bij en voegt bij '_blank' een "Opent in nieuw tabblad"-melding toe
|
|
21
|
+
* @attr {string} rel - Link rel voor href; standaard 'noopener noreferrer' bij target='_blank'
|
|
22
|
+
* @attr {object} translations - Overschrijf vertaalsleutels (bijv. de "Opent in nieuw tabblad"-melding)
|
|
19
23
|
*
|
|
20
24
|
* @slot header - Header-content (bijv. nldd-title)
|
|
21
25
|
* @slot - Body-content
|
|
@@ -24,9 +28,9 @@
|
|
|
24
28
|
import { LitElement } from 'lit';
|
|
25
29
|
declare const NLDDCard_base: (abstract new (...args: any[]) => LitElement & {
|
|
26
30
|
translations: Partial<{
|
|
27
|
-
'components.card.opens-in-new-tab-
|
|
31
|
+
'components.card.opens-in-new-tab-label': string;
|
|
28
32
|
}>;
|
|
29
|
-
_t(key: "components.card.opens-in-new-tab-
|
|
33
|
+
_t(key: "components.card.opens-in-new-tab-label", vars?: Record<string, string | number>): string;
|
|
30
34
|
}) & typeof LitElement;
|
|
31
35
|
export declare class NLDDCard extends NLDDCard_base {
|
|
32
36
|
static styles: import("lit").CSSResult;
|
|
@@ -35,15 +39,28 @@ export declare class NLDDCard extends NLDDCard_base {
|
|
|
35
39
|
* Nested interactive content must be raised above it (position: relative;
|
|
36
40
|
* z-index: 1) to stay clickable. */
|
|
37
41
|
href: string;
|
|
42
|
+
/** Makes the whole card a button via an overlay `<button>`: activation (click,
|
|
43
|
+
* Enter, Space) surfaces as a composed `click` on the host, so a listener or
|
|
44
|
+
* htmx attribute on the card just works. Ignored when `href` is set — a card
|
|
45
|
+
* is one action, and a link outranks a button. */
|
|
46
|
+
button: boolean;
|
|
38
47
|
target: string;
|
|
39
48
|
rel: string;
|
|
40
49
|
/** Resolve rel for the overlay link: add noopener noreferrer for _blank
|
|
41
50
|
* (mirrors nldd-link), merged with any consumer-set rel. */
|
|
42
51
|
_resolvedRel(): string;
|
|
43
52
|
private _warnedLabel;
|
|
53
|
+
/** True while the card's own overlay control holds keyboard focus. Drives the
|
|
54
|
+
* focus ring from JS rather than from `:has(… :focus-visible)` in CSS:
|
|
55
|
+
* Safari does not re-evaluate a dynamic pseudo-class inside `:has()`, so the
|
|
56
|
+
* ring stayed away there while it worked in Chromium. */
|
|
57
|
+
private _actionFocused;
|
|
58
|
+
private _onFocusIn;
|
|
59
|
+
private _onFocusOut;
|
|
44
60
|
connectedCallback(): void;
|
|
45
61
|
updated(): void;
|
|
46
62
|
_onSlotChange: (e: Event) => void;
|
|
63
|
+
disconnectedCallback(): void;
|
|
47
64
|
render(): import("lit-html").TemplateResult;
|
|
48
65
|
}
|
|
49
66
|
declare global {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"card.d.ts","sourceRoot":"","sources":["../../../../src/components/layout/card/card.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"card.d.ts","sourceRoot":"","sources":["../../../../src/components/layout/card/card.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AAEH,OAAO,EAAE,UAAU,EAAE,MAAM,KAAK,CAAC;;;;;;;AAOjC,qBACa,QAAS,SAAQ,aAAkD;IAC/E,OAAgB,MAAM,0BAAc;IAGpC,eAAe,EAAE,MAAM,GAAG,SAAS,CAAC;IAEpC;;yCAEqC;IAErC,IAAI,SAAM;IAEV;;;uDAGmD;IAEnD,MAAM,UAAS;IAGf,MAAM,SAAM;IAGZ,GAAG,SAAM;IAET;iEAC6D;IAC7D,YAAY,IAAI,MAAM;IAStB,OAAO,CAAC,YAAY,CAAS;IAE7B;;;8DAG0D;IAE1D,OAAO,CAAC,cAAc,CAAS;IAE/B,OAAO,CAAC,UAAU,CAKhB;IAEF,OAAO,CAAC,WAAW,CAEjB;IAEO,iBAAiB;IAiBjB,OAAO,IAAI,IAAI;IAgBxB,aAAa,GAAI,GAAG,KAAK,KAAG,IAAI,CAI9B;IAEO,oBAAoB;IAMpB,MAAM;CAGf;AAED,OAAO,CAAC,MAAM,CAAC;IACd,UAAU,qBAAqB;QAC9B,WAAW,EAAE,QAAQ,CAAC;KACtB;CACD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"card.i18n.js","sourceRoot":"","sources":["../../../../src/components/layout/card/card.i18n.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,oBAAoB,GAAG;IACnC,
|
|
1
|
+
{"version":3,"file":"card.i18n.js","sourceRoot":"","sources":["../../../../src/components/layout/card/card.i18n.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,oBAAoB,GAAG;IACnC,wCAAwC,EAAE,wBAAwB;CAClE,CAAC"}
|
|
@@ -5,17 +5,21 @@
|
|
|
5
5
|
* De kaart heeft een elevated look als standaard. Padding wordt overgelaten
|
|
6
6
|
* aan geneste containers.
|
|
7
7
|
*
|
|
8
|
-
* Met `href` wordt de hele kaart een link (een overlay-anchor over de kaart)
|
|
9
|
-
*
|
|
8
|
+
* Met `href` wordt de hele kaart een link (een overlay-anchor over de kaart);
|
|
9
|
+
* met `button` een knop (een overlay-button die een gewone, composed `click`
|
|
10
|
+
* geeft — een klik-listener of htmx-attribuut op de kaart zelf werkt dus direct,
|
|
11
|
+
* en Enter/Space doen het native). `href` wint als beide gezet zijn. Geneste
|
|
12
|
+
* interactieve content (bijv. footer-knoppen) moet je erboven tillen met
|
|
10
13
|
* `position: relative; z-index: 1` om klikbaar te blijven.
|
|
11
14
|
*
|
|
12
15
|
* @element nldd-card
|
|
13
16
|
*
|
|
14
|
-
* @attr {string} accessible-label - Toegankelijke naam van de kaart; bij `href` benoemt deze de link, anders de kaart-region
|
|
15
|
-
* @attr {string} href
|
|
16
|
-
* @attr {
|
|
17
|
-
* @attr {string}
|
|
18
|
-
* @attr {
|
|
17
|
+
* @attr {string} accessible-label - Toegankelijke naam van de kaart; bij `href`/`button` benoemt deze de link of knop, anders de kaart-region
|
|
18
|
+
* @attr {string} href - Maakt de hele kaart een link naar deze URL (leeg = geen link)
|
|
19
|
+
* @attr {boolean} button - Maakt de hele kaart een knop; genegeerd wanneer `href` is gezet
|
|
20
|
+
* @attr {string} target - Link target voor href (bijv. '_blank'); stelt rel automatisch bij en voegt bij '_blank' een "Opent in nieuw tabblad"-melding toe
|
|
21
|
+
* @attr {string} rel - Link rel voor href; standaard 'noopener noreferrer' bij target='_blank'
|
|
22
|
+
* @attr {object} translations - Overschrijf vertaalsleutels (bijv. de "Opent in nieuw tabblad"-melding)
|
|
19
23
|
*
|
|
20
24
|
* @slot header - Header-content (bijv. nldd-title)
|
|
21
25
|
* @slot - Body-content
|
|
@@ -28,7 +32,7 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
28
32
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
29
33
|
};
|
|
30
34
|
import { LitElement } from 'lit';
|
|
31
|
-
import { customElement, property } from 'lit/decorators.js';
|
|
35
|
+
import { customElement, property, state } from 'lit/decorators.js';
|
|
32
36
|
import { cardStyles } from './card.styles.js';
|
|
33
37
|
import { cardTemplate } from './card.template.js';
|
|
34
38
|
import { withTranslations } from '../../../utilities/with-translations.js';
|
|
@@ -40,9 +44,28 @@ let NLDDCard = class NLDDCard extends withTranslations(LitElement, nlddCardTrans
|
|
|
40
44
|
* Nested interactive content must be raised above it (position: relative;
|
|
41
45
|
* z-index: 1) to stay clickable. */
|
|
42
46
|
this.href = '';
|
|
47
|
+
/** Makes the whole card a button via an overlay `<button>`: activation (click,
|
|
48
|
+
* Enter, Space) surfaces as a composed `click` on the host, so a listener or
|
|
49
|
+
* htmx attribute on the card just works. Ignored when `href` is set — a card
|
|
50
|
+
* is one action, and a link outranks a button. */
|
|
51
|
+
this.button = false;
|
|
43
52
|
this.target = '';
|
|
44
53
|
this.rel = '';
|
|
45
54
|
this._warnedLabel = false;
|
|
55
|
+
/** True while the card's own overlay control holds keyboard focus. Drives the
|
|
56
|
+
* focus ring from JS rather than from `:has(… :focus-visible)` in CSS:
|
|
57
|
+
* Safari does not re-evaluate a dynamic pseudo-class inside `:has()`, so the
|
|
58
|
+
* ring stayed away there while it worked in Chromium. */
|
|
59
|
+
this._actionFocused = false;
|
|
60
|
+
this._onFocusIn = (e) => {
|
|
61
|
+
// composedPath()[0], not e.target: the control lives in the shadow root, so
|
|
62
|
+
// the event is retargeted to the host by the time it reaches this listener.
|
|
63
|
+
const focused = e.composedPath()[0];
|
|
64
|
+
this._actionFocused = !!focused?.matches?.('.card__action:focus-visible');
|
|
65
|
+
};
|
|
66
|
+
this._onFocusOut = () => {
|
|
67
|
+
this._actionFocused = false;
|
|
68
|
+
};
|
|
46
69
|
this._onSlotChange = (e) => {
|
|
47
70
|
const slot = e.target;
|
|
48
71
|
const wrapper = slot.parentElement;
|
|
@@ -64,31 +87,39 @@ let NLDDCard = class NLDDCard extends withTranslations(LitElement, nlddCardTrans
|
|
|
64
87
|
super.connectedCallback();
|
|
65
88
|
// Set container-type/name as inline style on the host. Doing this from
|
|
66
89
|
// a `:host` rule inside the shadow DOM works in Chromium but Safari
|
|
67
|
-
// does not always
|
|
90
|
+
// does not always recognize the host as a container for slotted
|
|
68
91
|
// descendants — a known engine inconsistency.
|
|
69
92
|
//
|
|
70
93
|
// We don't clear these on disconnect: a DOM move (disconnect →
|
|
71
94
|
// reconnect) would just re-set them, and there's no scenario where the
|
|
72
95
|
// styles being absent is meaningful. They are effectively part of the
|
|
73
96
|
// element's identity, written once and kept.
|
|
97
|
+
this.addEventListener('focusin', this._onFocusIn);
|
|
98
|
+
this.addEventListener('focusout', this._onFocusOut);
|
|
74
99
|
this.style.containerType = 'inline-size';
|
|
75
100
|
this.style.containerName = 'layout-container';
|
|
76
101
|
}
|
|
77
102
|
updated() {
|
|
78
|
-
|
|
79
|
-
//
|
|
80
|
-
//
|
|
103
|
+
this.classList.toggle('is-action-focused', this._actionFocused);
|
|
104
|
+
// An interactive card with no accessible name is a silent a11y failure —
|
|
105
|
+
// the overlay control has no text. Warn once in dev (like nldd-image does
|
|
106
|
+
// for alt); stay quiet in production.
|
|
81
107
|
if (import.meta.env?.DEV) {
|
|
82
|
-
const missing = !!this.href && !(this.accessibleLabel ?? '').trim();
|
|
108
|
+
const missing = (!!this.href || this.button) && !(this.accessibleLabel ?? '').trim();
|
|
83
109
|
if (missing && !this._warnedLabel) {
|
|
84
110
|
this._warnedLabel = true;
|
|
85
|
-
console.warn('<nldd-card>: a card with `href` needs `accessible-label` so the
|
|
111
|
+
console.warn('<nldd-card>: a card with `href` or `button` needs `accessible-label` so the control has an accessible name.');
|
|
86
112
|
}
|
|
87
113
|
else if (!missing) {
|
|
88
114
|
this._warnedLabel = false;
|
|
89
115
|
}
|
|
90
116
|
}
|
|
91
117
|
}
|
|
118
|
+
disconnectedCallback() {
|
|
119
|
+
this.removeEventListener('focusin', this._onFocusIn);
|
|
120
|
+
this.removeEventListener('focusout', this._onFocusOut);
|
|
121
|
+
super.disconnectedCallback();
|
|
122
|
+
}
|
|
92
123
|
render() {
|
|
93
124
|
return cardTemplate(this);
|
|
94
125
|
}
|
|
@@ -100,12 +131,18 @@ __decorate([
|
|
|
100
131
|
__decorate([
|
|
101
132
|
property({ type: String, reflect: true })
|
|
102
133
|
], NLDDCard.prototype, "href", void 0);
|
|
134
|
+
__decorate([
|
|
135
|
+
property({ type: Boolean, reflect: true })
|
|
136
|
+
], NLDDCard.prototype, "button", void 0);
|
|
103
137
|
__decorate([
|
|
104
138
|
property({ type: String })
|
|
105
139
|
], NLDDCard.prototype, "target", void 0);
|
|
106
140
|
__decorate([
|
|
107
141
|
property({ type: String })
|
|
108
142
|
], NLDDCard.prototype, "rel", void 0);
|
|
143
|
+
__decorate([
|
|
144
|
+
state()
|
|
145
|
+
], NLDDCard.prototype, "_actionFocused", void 0);
|
|
109
146
|
NLDDCard = __decorate([
|
|
110
147
|
customElement('nldd-card')
|
|
111
148
|
], NLDDCard);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"card.js","sourceRoot":"","sources":["../../../../src/components/layout/card/card.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"card.js","sourceRoot":"","sources":["../../../../src/components/layout/card/card.ts"],"names":[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3CnB,QAAQ;IADpB,aAAa,CAAC,WAAW,CAAC;GACd,QAAQ,CAwGpB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"card.styles.d.ts","sourceRoot":"","sources":["../../../../src/components/layout/card/card.styles.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,UAAU,
|
|
1
|
+
{"version":3,"file":"card.styles.d.ts","sourceRoot":"","sources":["../../../../src/components/layout/card/card.styles.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,UAAU,yBAyHtB,CAAC"}
|
|
@@ -11,6 +11,8 @@ export const cardStyles = css `
|
|
|
11
11
|
--_highlight-border: inset 0 0 0 var(--components-card-highlight-border-width) var(--components-card-highlight-border-color);
|
|
12
12
|
|
|
13
13
|
display: flex;
|
|
14
|
+
/* Anchor for the focus ring, which hangs outside the card box. */
|
|
15
|
+
position: relative;
|
|
14
16
|
flex-direction: column;
|
|
15
17
|
}
|
|
16
18
|
|
|
@@ -43,19 +45,54 @@ export const cardStyles = css `
|
|
|
43
45
|
}
|
|
44
46
|
|
|
45
47
|
|
|
46
|
-
/* # Link */
|
|
48
|
+
/* # Link / button overlay */
|
|
47
49
|
|
|
48
|
-
.
|
|
50
|
+
.card__action {
|
|
49
51
|
position: absolute;
|
|
50
52
|
inset: 0;
|
|
51
53
|
z-index: 0;
|
|
52
54
|
border-radius: inherit;
|
|
53
55
|
}
|
|
54
56
|
|
|
55
|
-
.
|
|
57
|
+
a.card__action {
|
|
58
|
+
cursor: var(--semantics-controls-link-cursor);
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
/* Strip the native button chrome so the overlay stays invisible; the focus
|
|
62
|
+
ring is drawn on the card below, same as for the anchor. */
|
|
63
|
+
button.card__action {
|
|
64
|
+
margin: 0;
|
|
65
|
+
outline: none;
|
|
66
|
+
border: none;
|
|
67
|
+
background: none;
|
|
68
|
+
padding: 0;
|
|
69
|
+
appearance: none;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
/* Shown from JS (a class on the host) instead of with
|
|
73
|
+
:has(.card__action:focus-visible): Safari does not re-evaluate a dynamic
|
|
74
|
+
pseudo-class inside :has(), so the ring stayed away there while Chromium
|
|
75
|
+
drew it.
|
|
76
|
+
|
|
77
|
+
The ring is a sibling of the card, not something drawn on it. Two reasons:
|
|
78
|
+
the card clips its descendants (overflow: hidden keeps images and fills
|
|
79
|
+
inside the rounded corners), so a ring drawn within would be cut off at the
|
|
80
|
+
edge; and the card's own box-shadow is a token that may be "none", which
|
|
81
|
+
cannot be combined with a second shadow in one declaration — the whole
|
|
82
|
+
declaration would be dropped and the ring's halo with it. */
|
|
83
|
+
.card__focus-ring {
|
|
84
|
+
display: none;
|
|
85
|
+
position: absolute;
|
|
86
|
+
inset: 0;
|
|
87
|
+
border-radius: var(--components-card-corner-radius);
|
|
56
88
|
outline: var(--semantics-focus-ring-outline);
|
|
57
89
|
outline-offset: var(--semantics-focus-ring-outline-offset);
|
|
58
|
-
box-shadow: var(--
|
|
90
|
+
box-shadow: var(--semantics-focus-ring-box-shadow);
|
|
91
|
+
pointer-events: none;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
:host(.is-action-focused) .card__focus-ring {
|
|
95
|
+
display: block;
|
|
59
96
|
}
|
|
60
97
|
|
|
61
98
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"card.styles.js","sourceRoot":"","sources":["../../../../src/components/layout/card/card.styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAE1B,MAAM,CAAC,MAAM,UAAU,GAAG,GAAG,CAAA
|
|
1
|
+
{"version":3,"file":"card.styles.js","sourceRoot":"","sources":["../../../../src/components/layout/card/card.styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAE1B,MAAM,CAAC,MAAM,UAAU,GAAG,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAyH5B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"card.template.d.ts","sourceRoot":"","sources":["../../../../src/components/layout/card/card.template.ts"],"names":[],"mappings":"AAAA,OAAO,EAAiB,cAAc,EAAE,MAAM,KAAK,CAAC;AACpD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,WAAW,CAAC;AAE1C,wBAAgB,YAAY,CAAC,SAAS,EAAE,QAAQ,GAAG,cAAc,
|
|
1
|
+
{"version":3,"file":"card.template.d.ts","sourceRoot":"","sources":["../../../../src/components/layout/card/card.template.ts"],"names":[],"mappings":"AAAA,OAAO,EAAiB,cAAc,EAAE,MAAM,KAAK,CAAC;AACpD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,WAAW,CAAC;AAE1C,wBAAgB,YAAY,CAAC,SAAS,EAAE,QAAQ,GAAG,cAAc,CAgDhE"}
|
|
@@ -2,23 +2,30 @@ import { html, nothing } from 'lit';
|
|
|
2
2
|
export function cardTemplate(component) {
|
|
3
3
|
// A new-tab link is a change of context, so announce it (WCAG 2.1 SC 3.2.2).
|
|
4
4
|
const opensInNewTabHint = component.href && component.target === '_blank'
|
|
5
|
-
? component._t('components.card.opens-in-new-tab-
|
|
5
|
+
? component._t('components.card.opens-in-new-tab-label')
|
|
6
6
|
: '';
|
|
7
|
-
// The overlay
|
|
8
|
-
// new-tab hint appended. accessible-label names the link
|
|
9
|
-
//
|
|
7
|
+
// The overlay control has no text, so its name comes from aria-label, with
|
|
8
|
+
// the new-tab hint appended. accessible-label names the link or button when
|
|
9
|
+
// the card is interactive, the article otherwise — so the card carries
|
|
10
|
+
// exactly one name.
|
|
10
11
|
const linkLabel = [component.accessibleLabel, opensInNewTabHint].filter(Boolean).join(', ') || nothing;
|
|
12
|
+
const isInteractive = Boolean(component.href) || component.button;
|
|
11
13
|
return html `
|
|
12
14
|
<article class="card"
|
|
13
|
-
aria-label=${
|
|
15
|
+
aria-label=${isInteractive ? nothing : (component.accessibleLabel ?? nothing)}
|
|
14
16
|
>
|
|
15
17
|
${component.href ? html `
|
|
16
|
-
<a class="
|
|
18
|
+
<a class="card__action"
|
|
17
19
|
href=${component.href}
|
|
18
20
|
target=${component.target || nothing}
|
|
19
21
|
rel=${component._resolvedRel() || nothing}
|
|
20
22
|
aria-label=${linkLabel}
|
|
21
23
|
></a>
|
|
24
|
+
` : component.button ? html `
|
|
25
|
+
<button class="card__action"
|
|
26
|
+
type="button"
|
|
27
|
+
aria-label=${linkLabel}
|
|
28
|
+
></button>
|
|
22
29
|
` : nothing}
|
|
23
30
|
<header class="card__header"
|
|
24
31
|
hidden
|
|
@@ -38,6 +45,7 @@ export function cardTemplate(component) {
|
|
|
38
45
|
></slot>
|
|
39
46
|
</footer>
|
|
40
47
|
</article>
|
|
48
|
+
<span class="card__focus-ring"></span>
|
|
41
49
|
`;
|
|
42
50
|
}
|
|
43
51
|
//# sourceMappingURL=card.template.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"card.template.js","sourceRoot":"","sources":["../../../../src/components/layout/card/card.template.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,OAAO,EAAkB,MAAM,KAAK,CAAC;AAGpD,MAAM,UAAU,YAAY,CAAC,SAAmB;IAC/C,6EAA6E;IAC7E,MAAM,iBAAiB,GAAG,SAAS,CAAC,IAAI,IAAI,SAAS,CAAC,MAAM,KAAK,QAAQ;QACxE,CAAC,CAAC,SAAS,CAAC,EAAE,CAAC,
|
|
1
|
+
{"version":3,"file":"card.template.js","sourceRoot":"","sources":["../../../../src/components/layout/card/card.template.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,OAAO,EAAkB,MAAM,KAAK,CAAC;AAGpD,MAAM,UAAU,YAAY,CAAC,SAAmB;IAC/C,6EAA6E;IAC7E,MAAM,iBAAiB,GAAG,SAAS,CAAC,IAAI,IAAI,SAAS,CAAC,MAAM,KAAK,QAAQ;QACxE,CAAC,CAAC,SAAS,CAAC,EAAE,CAAC,wCAAwC,CAAC;QACxD,CAAC,CAAC,EAAE,CAAC;IACN,2EAA2E;IAC3E,4EAA4E;IAC5E,uEAAuE;IACvE,oBAAoB;IACpB,MAAM,SAAS,GAAG,CAAC,SAAS,CAAC,eAAe,EAAE,iBAAiB,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,OAAO,CAAC;IACvG,MAAM,aAAa,GAAG,OAAO,CAAC,SAAS,CAAC,IAAI,CAAC,IAAI,SAAS,CAAC,MAAM,CAAC;IAClE,OAAO,IAAI,CAAA;;gBAEI,aAAa,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,eAAe,IAAI,OAAO,CAAC;;KAE3E,SAAS,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,CAAA;;YAEd,SAAS,CAAC,IAAI;cACZ,SAAS,CAAC,MAAM,IAAI,OAAO;WAC9B,SAAS,CAAC,YAAY,EAAE,IAAI,OAAO;kBAC5B,SAAS;;IAEvB,CAAC,CAAC,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC,CAAC,IAAI,CAAA;;;kBAGZ,SAAS;;IAEvB,CAAC,CAAC,CAAC,OAAO;;;;;mBAKK,SAAS,CAAC,aAAa;;;;;;;;;;mBAUvB,SAAS,CAAC,aAAa;;;;;EAKxC,CAAC;AACH,CAAC"}
|
|
@@ -15,16 +15,9 @@
|
|
|
15
15
|
* @attr {boolean} show-load-more - Show load-more button in grid/stack (default: false)
|
|
16
16
|
* @attr {number} max-items - Number of visible items per page (default: 24)
|
|
17
17
|
* @attr {boolean} lazy-load - Automatically load more items when the button becomes visible
|
|
18
|
-
* @attr {string}
|
|
19
|
-
*
|
|
20
|
-
*
|
|
21
|
-
* scroll used as flex-basis. Never forces horizontal overflow —
|
|
22
|
-
* the value is clamped to container width.
|
|
23
|
-
* @attr {string} gap - Custom gap between items (any CSS length, e.g. '8px'). Overrides the
|
|
24
|
-
* responsive default at every breakpoint; unset keeps the default.
|
|
25
|
-
* @attr {object} translations - Translation overrides; unset keys fall back to Dutch.
|
|
26
|
-
* Available keys: 'components.collection.previous-action',
|
|
27
|
-
* 'components.collection.next-action', 'components.collection.load-more-action'
|
|
18
|
+
* @attr {string} item-width - Preferred width for each item (e.g. '280px', '20rem'). In grid layout used as the minimum column width (columns will be at least this wide; 1fr if container allows more). In horizontal scroll used as flex-basis. Never forces horizontal overflow — the value is clamped to container width.
|
|
19
|
+
* @attr {string} gap - Custom gap between items (any CSS length, e.g. '8px'). Overrides the responsive default at every breakpoint; unset keeps the default.
|
|
20
|
+
* @attr {object} translations - Translation overrides; unset keys fall back to Dutch. Available keys: 'components.collection.previous-action', 'components.collection.next-action', 'components.collection.load-more-action'
|
|
28
21
|
*
|
|
29
22
|
* @migration The `load-more-label` attribute has been removed.
|
|
30
23
|
* Use `translations` property instead: `.translations=${{ 'components.collection.load-more-action': 'Show more' }}`
|