@nldd/design-system 0.8.70 → 0.8.72
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-BP0XMTYa.js → index-B9_6JE9f.js} +1 -1
- package/dist/components/{index-Dgxr-sEe.js → index-Bt_KkJKU.js} +1 -1
- package/dist/components/{index-BuLJAwiB.js → index-CSxjYgj9.js} +4217 -2494
- package/dist/components/{index-sa60dMt-.js → index-CqbiWdc5.js} +1 -1
- package/dist/components/{index-CTUlN5qN.js → index-CvGdvr33.js} +1 -1
- package/dist/components/{index-DS-RnHMu.js → index-i1n9W3UN.js} +1 -1
- package/dist/components/{index-Bh_hMHn8.js → index-ipWLrQY3.js} +1 -1
- 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 +100 -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
|
@@ -17,11 +17,12 @@ export const listStyles = css `
|
|
|
17
17
|
--_max-height: none;
|
|
18
18
|
--_background-color: transparent;
|
|
19
19
|
--_highlight-border-color: transparent;
|
|
20
|
+
--_box-padding: var(--primitives-space-4);
|
|
20
21
|
--_gap: var(--primitives-space-8);
|
|
21
22
|
--_search-field-min-size: var(--semantics-controls-md-min-size);
|
|
22
23
|
--_search-field-icon-size: var(--primitives-space-24);
|
|
23
|
-
--_search-field-end-padding-right: calc((var(--_search-field-min-size) - var(--semantics-controls-sm-min-size)) / 2 - var(--semantics-input-fields-border-
|
|
24
|
-
--_search-field-z-index
|
|
24
|
+
--_search-field-end-padding-right: calc((var(--_search-field-min-size) - var(--semantics-controls-sm-min-size)) / 2 - var(--semantics-input-fields-border-width));
|
|
25
|
+
--_search-field-button-focus-z-index: 1;
|
|
25
26
|
--_search-bar-gap: var(--primitives-space-8);
|
|
26
27
|
--_toolbar-gap: var(--primitives-space-8);
|
|
27
28
|
--_empty-padding: var(--primitives-space-16);
|
|
@@ -46,16 +47,8 @@ export const listStyles = css `
|
|
|
46
47
|
--_highlight-border-color: var(--semantics-surfaces-base-border-color);
|
|
47
48
|
}
|
|
48
49
|
|
|
49
|
-
:host([variant="box"]) .list__main {
|
|
50
|
-
position: relative;
|
|
51
|
-
border-radius: var(--components-list-corner-radius);
|
|
52
|
-
background-color: var(--_background-color);
|
|
53
|
-
box-shadow: inset 0 0 0 1px var(--_highlight-border-color);
|
|
54
|
-
overflow: hidden;
|
|
55
|
-
}
|
|
56
|
-
|
|
57
50
|
|
|
58
|
-
/* #
|
|
51
|
+
/* # Block */
|
|
59
52
|
|
|
60
53
|
.list {
|
|
61
54
|
display: flex;
|
|
@@ -63,6 +56,9 @@ export const listStyles = css `
|
|
|
63
56
|
gap: var(--_gap);
|
|
64
57
|
}
|
|
65
58
|
|
|
59
|
+
|
|
60
|
+
/* # Elements */
|
|
61
|
+
|
|
66
62
|
.list__header {
|
|
67
63
|
display: contents;
|
|
68
64
|
}
|
|
@@ -84,17 +80,29 @@ export const listStyles = css `
|
|
|
84
80
|
flex-direction: column;
|
|
85
81
|
}
|
|
86
82
|
|
|
87
|
-
|
|
88
|
-
|
|
83
|
+
/* No overflow clip: the rows sit 4px inside the frame, so their fills never
|
|
84
|
+
reach its corners and have nothing to be clipped against. Without it a
|
|
85
|
+
focus ring inside the box paints outward, like every other control in the
|
|
86
|
+
system, instead of being cut off by the frame. */
|
|
87
|
+
:host([variant="box"]) .list__main {
|
|
88
|
+
position: relative;
|
|
89
|
+
border-radius: var(--semantics-surfaces-corner-radius);
|
|
90
|
+
background-color: var(--_background-color);
|
|
91
|
+
box-shadow: inset 0 0 0 1px var(--_highlight-border-color);
|
|
89
92
|
}
|
|
90
93
|
|
|
91
94
|
/* Listbox: give the options a bit more breathing room from the pinned
|
|
92
95
|
search bar (and toolbar) above them than the default inter-row gap, so
|
|
93
96
|
the search field reads as a zone distinct from the scrolling options. */
|
|
97
|
+
|
|
94
98
|
:host([type="listbox"]) .list__main {
|
|
95
99
|
margin-block-start: var(--primitives-space-8);
|
|
96
100
|
}
|
|
97
101
|
|
|
102
|
+
.list__main[hidden] {
|
|
103
|
+
display: none;
|
|
104
|
+
}
|
|
105
|
+
|
|
98
106
|
.list__items {
|
|
99
107
|
display: flex;
|
|
100
108
|
flex-direction: column;
|
|
@@ -104,6 +112,11 @@ export const listStyles = css `
|
|
|
104
112
|
display: none;
|
|
105
113
|
}
|
|
106
114
|
|
|
115
|
+
:host([variant="box"]) .list__items {
|
|
116
|
+
padding-inline: calc(var(--components-list-item-indicator-inline-inset) + var(--_box-padding));
|
|
117
|
+
padding-block: var(--_box-padding);
|
|
118
|
+
}
|
|
119
|
+
|
|
107
120
|
:host([type="listbox"]) .list__items {
|
|
108
121
|
max-height: var(--_max-height);
|
|
109
122
|
overflow-x: hidden;
|
|
@@ -111,10 +124,6 @@ export const listStyles = css `
|
|
|
111
124
|
padding-inline: var(--components-list-item-indicator-inline-inset);
|
|
112
125
|
}
|
|
113
126
|
|
|
114
|
-
:host([type="listbox"][variant="box"]) .list__items {
|
|
115
|
-
padding-inline: 0;
|
|
116
|
-
}
|
|
117
|
-
|
|
118
127
|
.list__empty {
|
|
119
128
|
padding: var(--_empty-padding);
|
|
120
129
|
}
|
|
@@ -123,8 +132,6 @@ export const listStyles = css `
|
|
|
123
132
|
display: none;
|
|
124
133
|
}
|
|
125
134
|
|
|
126
|
-
/* ## Search */
|
|
127
|
-
|
|
128
135
|
.list__search-bar {
|
|
129
136
|
display: flex;
|
|
130
137
|
flex-direction: row;
|
|
@@ -175,7 +182,7 @@ export const listStyles = css `
|
|
|
175
182
|
|
|
176
183
|
.list__search-field-icon {
|
|
177
184
|
display: flex;
|
|
178
|
-
margin-inline: calc((var(--_search-field-min-size) - var(--_search-field-icon-size)) / 2 - var(--semantics-input-fields-border-
|
|
185
|
+
margin-inline: calc((var(--_search-field-min-size) - var(--_search-field-icon-size)) / 2 - var(--semantics-input-fields-border-width));
|
|
179
186
|
width: var(--_search-field-icon-size);
|
|
180
187
|
height: var(--_search-field-icon-size);
|
|
181
188
|
flex-shrink: 0;
|
|
@@ -215,7 +222,7 @@ export const listStyles = css `
|
|
|
215
222
|
|
|
216
223
|
.list__search-field-clear:focus-within {
|
|
217
224
|
position: relative;
|
|
218
|
-
z-index: var(--_search-field-z-index
|
|
225
|
+
z-index: var(--_search-field-button-focus-z-index);
|
|
219
226
|
}
|
|
220
227
|
|
|
221
228
|
::slotted(.nldd-list-drag-placeholder) {
|
|
@@ -256,7 +263,7 @@ export const listStyles = css `
|
|
|
256
263
|
}
|
|
257
264
|
|
|
258
265
|
|
|
259
|
-
/* # Accessibility*/
|
|
266
|
+
/* # Accessibility */
|
|
260
267
|
|
|
261
268
|
@media (forced-colors: active) {
|
|
262
269
|
:host([variant="box"]) .list__main {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list.styles.js","sourceRoot":"","sources":["../../../../src/components/lists-and-tables/list/list.styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAE1B,MAAM,CAAC,MAAM,UAAU,GAAG,GAAG,CAAA
|
|
1
|
+
{"version":3,"file":"list.styles.js","sourceRoot":"","sources":["../../../../src/components/lists-and-tables/list/list.styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAE1B,MAAM,CAAC,MAAM,UAAU,GAAG,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA+Q5B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list.template.d.ts","sourceRoot":"","sources":["../../../../src/components/lists-and-tables/list/list.template.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,WAAW,CAAC;AAE1C,6EAA6E;AAC7E,MAAM,WAAW,cAAc;IAC9B,SAAS,EAAE,MAAM,CAAC;IAClB,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,EAAE,MAAM,CAAC;IACjB,iBAAiB,EAAE,MAAM,CAAC;IAC1B,qBAAqB,EAAE,MAAM,CAAC;IAC9B,gBAAgB,EAAE,MAAM,CAAC;IACzB,eAAe,EAAE,OAAO,CAAC;IACzB,aAAa,EAAE,CAAC,KAAK,EAAE,KAAK,KAAK,IAAI,CAAC;IACtC,eAAe,EAAE,CAAC,KAAK,EAAE,aAAa,KAAK,IAAI,CAAC;IAChD,aAAa,EAAE,MAAM,IAAI,CAAC;IAC1B,YAAY,EAAE,MAAM,IAAI,CAAC;IACzB,YAAY,EAAE,MAAM,IAAI,CAAC;IACzB,wBAAwB,EAAE,CAAC,KAAK,EAAE,KAAK,KAAK,IAAI,CAAC;CACjD;AAED,MAAM,WAAW,iBAAiB;IACjC,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,OAAO,CAAC;IACpB,IAAI,EAAE,QAAQ,CAAC;IACf,OAAO,EAAE,OAAO,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;IAClB,mBAAmB,EAAE,MAAM,CAAC;IAC5B,OAAO,EAAE,cAAc,CAAC;CACxB;AAED,eAAO,MAAM,QAAQ,GAAI,qFAQtB,iBAAiB,
|
|
1
|
+
{"version":3,"file":"list.template.d.ts","sourceRoot":"","sources":["../../../../src/components/lists-and-tables/list/list.template.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,WAAW,CAAC;AAE1C,6EAA6E;AAC7E,MAAM,WAAW,cAAc;IAC9B,SAAS,EAAE,MAAM,CAAC;IAClB,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,EAAE,MAAM,CAAC;IACjB,iBAAiB,EAAE,MAAM,CAAC;IAC1B,qBAAqB,EAAE,MAAM,CAAC;IAC9B,gBAAgB,EAAE,MAAM,CAAC;IACzB,eAAe,EAAE,OAAO,CAAC;IACzB,aAAa,EAAE,CAAC,KAAK,EAAE,KAAK,KAAK,IAAI,CAAC;IACtC,eAAe,EAAE,CAAC,KAAK,EAAE,aAAa,KAAK,IAAI,CAAC;IAChD,aAAa,EAAE,MAAM,IAAI,CAAC;IAC1B,YAAY,EAAE,MAAM,IAAI,CAAC;IACzB,YAAY,EAAE,MAAM,IAAI,CAAC;IACzB,wBAAwB,EAAE,CAAC,KAAK,EAAE,KAAK,KAAK,IAAI,CAAC;CACjD;AAED,MAAM,WAAW,iBAAiB;IACjC,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,OAAO,CAAC;IACpB,IAAI,EAAE,QAAQ,CAAC;IACf,OAAO,EAAE,OAAO,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;IAClB,mBAAmB,EAAE,MAAM,CAAC;IAC5B,OAAO,EAAE,cAAc,CAAC;CACxB;AAED,eAAO,MAAM,QAAQ,GAAI,qFAQtB,iBAAiB,yCAyGnB,CAAC"}
|
|
@@ -6,13 +6,14 @@ export const template = ({ itemsLabel, hasToolbar, type, isEmpty, emptyText, emp
|
|
|
6
6
|
// Navigation: the host carries role="navigation" with its own label; an
|
|
7
7
|
// extra aria-label on the inner role="list" would make the landmark name
|
|
8
8
|
// and the inner list name stack in screen-reader announcements. Listbox:
|
|
9
|
-
// the input is the
|
|
9
|
+
// the input is the labeled control, so the listbox itself stays unlabeled.
|
|
10
10
|
const skipItemsLabel = isNavigation || isListbox;
|
|
11
|
-
// Role on .list__items: role="listbox" in listbox mode,
|
|
11
|
+
// Role on .list__items: role="listbox" in listbox mode, role="tree" for a
|
|
12
|
+
// tree, else role="list".
|
|
12
13
|
// The empty-state (a non-option) is now a SIBLING of .list__items inside
|
|
13
14
|
// .list__main, so .list__items only ever contains options/items — the role
|
|
14
15
|
// can be set unconditionally per type (it's hidden when empty anyway).
|
|
15
|
-
const itemsRole = isListbox ? 'listbox' : 'list';
|
|
16
|
+
const itemsRole = isListbox ? 'listbox' : type === 'tree' ? 'tree' : 'list';
|
|
16
17
|
// In listbox mode an empty search has no "no results" meaning yet, so the
|
|
17
18
|
// empty state is suppressed — the consumer shows just the search field (and
|
|
18
19
|
// may place its own hint outside the list). It appears only once a query is
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list.template.js","sourceRoot":"","sources":["../../../../src/components/lists-and-tables/list/list.template.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,KAAK,CAAC;AACpC,OAAO,EAAE,SAAS,EAAE,MAAM,8BAA8B,CAAC;AA8BzD,MAAM,CAAC,MAAM,QAAQ,GAAG,CAAC,EACxB,UAAU,EACV,UAAU,EACV,IAAI,EACJ,OAAO,EACP,SAAS,EACT,mBAAmB,EACnB,OAAO,GACY,EAAE,EAAE;IACvB,MAAM,YAAY,GAAG,IAAI,KAAK,YAAY,CAAC;IAC3C,MAAM,SAAS,GAAG,IAAI,KAAK,SAAS,CAAC;IACrC,wEAAwE;IACxE,yEAAyE;IACzE,yEAAyE;IACzE,
|
|
1
|
+
{"version":3,"file":"list.template.js","sourceRoot":"","sources":["../../../../src/components/lists-and-tables/list/list.template.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,KAAK,CAAC;AACpC,OAAO,EAAE,SAAS,EAAE,MAAM,8BAA8B,CAAC;AA8BzD,MAAM,CAAC,MAAM,QAAQ,GAAG,CAAC,EACxB,UAAU,EACV,UAAU,EACV,IAAI,EACJ,OAAO,EACP,SAAS,EACT,mBAAmB,EACnB,OAAO,GACY,EAAE,EAAE;IACvB,MAAM,YAAY,GAAG,IAAI,KAAK,YAAY,CAAC;IAC3C,MAAM,SAAS,GAAG,IAAI,KAAK,SAAS,CAAC;IACrC,wEAAwE;IACxE,yEAAyE;IACzE,yEAAyE;IACzE,2EAA2E;IAC3E,MAAM,cAAc,GAAG,YAAY,IAAI,SAAS,CAAC;IACjD,0EAA0E;IAC1E,0BAA0B;IAC1B,yEAAyE;IACzE,2EAA2E;IAC3E,uEAAuE;IACvE,MAAM,SAAS,GAAG,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,KAAK,MAAM,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,CAAC;IAC5E,0EAA0E;IAC1E,4EAA4E;IAC5E,4EAA4E;IAC5E,4EAA4E;IAC5E,mDAAmD;IACnD,MAAM,SAAS,GAAG,OAAO,IAAI,CAAC,CAAC,SAAS,IAAI,OAAO,CAAC,WAAW,KAAK,EAAE,CAAC,CAAC;IACxE,MAAM,QAAQ,GAAG,CAAC,OAAO,IAAI,SAAS,CAAC;IACvC,OAAO,IAAI,CAAA;;;MAGN,SAAS,CAAC,CAAC,CAAC,IAAI,CAAA;;;;;;;;;;;;yBAYG,OAAO,CAAC,SAAS;yBACjB,CAAC,OAAO;;iCAEA,OAAO,CAAC,QAAQ,IAAI,OAAO;sBACtC,OAAO,CAAC,qBAAqB;uBAC5B,OAAO,CAAC,iBAAiB;kBAC9B,OAAO,CAAC,WAAW;kBACnB,OAAO,CAAC,aAAa;oBACnB,OAAO,CAAC,eAAe;kBACzB,OAAO,CAAC,aAAa;iBACtB,OAAO,CAAC,YAAY;;;SAG5B,OAAO,CAAC,WAAW,CAAC,CAAC,CAAC,IAAI,CAAA;;;;;;;kBAOjB,OAAO,CAAC,gBAAgB;;oBAEtB,OAAO,CAAC,YAAY;;;;QAIhC,CAAC,CAAC,CAAC,OAAO;;kDAEgC,CAAC,OAAO,CAAC,eAAe;iDACzB,OAAO,CAAC,wBAAwB;;;KAG5E,CAAC,CAAC,CAAC,OAAO;yCAC0B,CAAC,UAAU;;;;qCAIf,CAAC,QAAQ;;UAEpC,SAAS,CAAC,SAAS,CAAC,CAAC,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC;YAClD,SAAS;kBACH,SAAS,CAAC,cAAc,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,UAAU,CAAC;eACrD,OAAO;;;;;eAKP,CAAC,SAAS;;;;cAIX,SAAS;yBACE,mBAAmB,IAAI,OAAO;;;;;;;;;;;;;;;;EAgBrD,CAAC;AACH,CAAC,CAAC"}
|
|
@@ -1,17 +1,60 @@
|
|
|
1
1
|
import { LitElement } from 'lit';
|
|
2
2
|
import type { ListType } from '../list/list.js';
|
|
3
|
-
import '../cells/spacer-cell/spacer-cell.js';
|
|
4
3
|
export type ListItemSize = 'sm' | 'md';
|
|
5
4
|
declare const NLDDListItem_base: (abstract new (...args: any[]) => LitElement & {
|
|
6
5
|
translations: Partial<{
|
|
7
|
-
'components.list-item.opens-in-new-tab-
|
|
6
|
+
'components.list-item.opens-in-new-tab-label': string;
|
|
8
7
|
}>;
|
|
9
|
-
_t(key: "components.list-item.opens-in-new-tab-
|
|
8
|
+
_t(key: "components.list-item.opens-in-new-tab-label", vars?: Record<string, string | number>): string;
|
|
10
9
|
}) & typeof LitElement;
|
|
11
10
|
/**
|
|
12
|
-
* A row within an `nldd-list
|
|
13
|
-
*
|
|
14
|
-
*
|
|
11
|
+
* A row within an `nldd-list`. Renders as a link when `href` is set, as a
|
|
12
|
+
* checkbox when `checkbox` is set, as a button when `button` is set, or as a
|
|
13
|
+
* plain container otherwise. All cells and action segmented actions share one flat
|
|
14
|
+
* slot, in source order.
|
|
15
|
+
*
|
|
16
|
+
* ## Geometry
|
|
17
|
+
* Two rules govern every row:
|
|
18
|
+
* 1. State fills always paint the WIDENED row geometry — the row box extended
|
|
19
|
+
* by the indicator inline inset on both sides — whether or not the row is
|
|
20
|
+
* interactive. Paint never differs between a selected plain row and a
|
|
21
|
+
* selected interactive row.
|
|
22
|
+
* 2. The widened strip belongs to the ROW, never to a segment. A row with any
|
|
23
|
+
* action (its own `href`/`button`/`checkbox`, or a slotted segment) pulls
|
|
24
|
+
* itself outward (`is-interactive` host class → negative inline margin)
|
|
25
|
+
* and pads the row block back by the same amount, so content stays on the
|
|
26
|
+
* grid. A row-wide action owns that padding itself, making the whole
|
|
27
|
+
* widened box one hit area; slotted segmented actions stay in the grid, so their
|
|
28
|
+
* footprint is position-independent and tree columns line up at any depth.
|
|
29
|
+
*
|
|
30
|
+
* ## Divider
|
|
31
|
+
* The divider spans the content width by default. Mark a cell with
|
|
32
|
+
* `divider-start` and/or `divider-end` to run it from that cell's start edge
|
|
33
|
+
* to that cell's end edge instead (e.g. starting after an avatar). Multiple
|
|
34
|
+
* markers resolve as the union: first `divider-start` through last
|
|
35
|
+
* `divider-end`. A start past the last end is an authoring error — the item
|
|
36
|
+
* DEV-warns and falls back to the full content width.
|
|
37
|
+
*
|
|
38
|
+
* ## Disclosure
|
|
39
|
+
* A branch row can disclose its children in two ways: a dedicated
|
|
40
|
+
* `nldd-list-item-action[disclosure]` segment (only the chevron is clickable),
|
|
41
|
+
* or the row itself as the control (`button` + `expanded`, the whole row
|
|
42
|
+
* toggles). In the second case, mark the chevron's `nldd-icon-cell` with
|
|
43
|
+
* `disclosure` and the row turns it with `expanded` — the same affordance,
|
|
44
|
+
* without having to trade a clickable row for a turning chevron.
|
|
45
|
+
*
|
|
46
|
+
* `checkbox` makes the WHOLE row the control: the inner action becomes a
|
|
47
|
+
* `role="checkbox"` button carrying `aria-checked`, it toggles `checked` on
|
|
48
|
+
* activation and fires `change`. Slot a visual `nldd-checkbox` (or any glyph)
|
|
49
|
+
* before the text and mark it `aria-hidden` + non-focusable — the row already
|
|
50
|
+
* conveys role and state, and a second focusable control would double the tab
|
|
51
|
+
* stops. Do NOT nest a real `<input type="checkbox">` in the action: interactive
|
|
52
|
+
* content inside a `<button>` is invalid HTML and AT announces the button, not
|
|
53
|
+
* the checked state. A `<label>` variant is not offered for the same reason it
|
|
54
|
+
* cannot work — label-to-input association walks the DOM tree, and a slotted
|
|
55
|
+
* input is not a descendant of a label in the shadow root.
|
|
56
|
+
*
|
|
57
|
+
* When it renders as a link, `target` and `rel`
|
|
15
58
|
* are forwarded to the inner `<a>` (e.g. `target="_blank" rel="noopener noreferrer"`). With
|
|
16
59
|
* `target="_blank"` the item also injects a visually hidden "opens in new tab"
|
|
17
60
|
* announcement for assistive technology (WCAG 2.1 SC 3.2.2).
|
|
@@ -19,24 +62,28 @@ declare const NLDDListItem_base: (abstract new (...args: any[]) => LitElement &
|
|
|
19
62
|
* The item synchronises its ARIA with its parent `nldd-list`'s `type`:
|
|
20
63
|
* - `list` parent → `role="listitem"`
|
|
21
64
|
* - `navigation` parent → `role="listitem"` + `aria-current="page"` on the
|
|
22
|
-
*
|
|
65
|
+
* inner `<a>` / `<button>` when `selected`
|
|
23
66
|
* - `listbox` parent → `role="option"` + `aria-selected` reflecting `selected`.
|
|
24
|
-
*
|
|
25
|
-
*
|
|
67
|
+
* The list points its search input's `aria-activedescendant`
|
|
68
|
+
* at the active option via `_highlighted` (separate from `selected`).
|
|
26
69
|
*
|
|
27
70
|
* @element nldd-list-item
|
|
28
71
|
*
|
|
29
|
-
* @attr {'sm'|'md'} size - Row size (default: 'md')
|
|
72
|
+
* @attr {'sm'|'md'} size - Row size (default: 'md'). Pushed onto the cells whose `size` means the same scale (nldd-text-cell, nldd-drag-handle-cell), so it is written once per row instead of once per cell. A size set on the cell itself wins. Cells where `size` means something else — pixels on nldd-icon-cell / nldd-spacer-cell, a heading scale on nldd-title-cell — are left alone.
|
|
30
73
|
* @attr {boolean} selected - Marks the item as selected. Selection is consumer-managed; the list never sets it. In a `navigation` parent it puts `aria-current="page"` on the inner action, in a `listbox` parent it drives `aria-selected`.
|
|
31
74
|
* @attr {boolean} button - Renders the item as a `<button>`; ignored when `href` is set (a link wins)
|
|
75
|
+
* @attr {boolean} checkbox - Makes the whole row a `role="checkbox"` control; ignored when `href` is set
|
|
76
|
+
* @attr {boolean} checked - Checked state of a `checkbox` row; the item toggles it on activation
|
|
77
|
+
* @attr {boolean} expanded - Disclosure state. Drives the `children` group's visibility AND supplies `aria-expanded` — to the row's own control when the row is interactive, or to the segmented action marked `disclosure`. Written once either way; the item DEV-warns when there is nowhere for it to live.
|
|
32
78
|
* @attr {string} href - Renders the item as an `<a>` with this URL. Takes precedence over `button`; without either the item is a plain container with no action.
|
|
33
79
|
* @attr {string} target - Link target forwarded to the `<a>` (e.g. '_blank'); only applies with `href`. With '_blank' a visually hidden "opens in new tab" announcement is added for assistive technology.
|
|
34
80
|
* @attr {string} rel - Link rel forwarded to the `<a>` (e.g. 'noopener noreferrer'); only applies with `href`
|
|
35
81
|
* @attr {boolean} reorderable - Set by the parent `nldd-list` when its own `reorderable` is on (with `type="list"`); consumers do not set this. Serves as a CSS hook for drag handle visibility.
|
|
36
82
|
*
|
|
37
|
-
* @slot
|
|
38
|
-
* @slot
|
|
39
|
-
*
|
|
83
|
+
* @slot - Cells and segmented actions, in source order
|
|
84
|
+
* @slot children - Child rows of a branch in an `nldd-list type="tree"`. Rendered as a `role="group"` below the row, hidden while `expanded` is false. The nesting IS the hierarchy, so aria-level / -posinset / -setsize are derived, not authored. The group has no styling of its own: repeat a spacer-cell per level to indent, or show depth some other way.
|
|
85
|
+
*
|
|
86
|
+
* @fires change - On a `checkbox` row after it toggles; detail: { checked: boolean }
|
|
40
87
|
*/
|
|
41
88
|
export declare class NLDDListItem extends NLDDListItem_base {
|
|
42
89
|
static styles: import("lit").CSSResult[];
|
|
@@ -44,6 +91,17 @@ export declare class NLDDListItem extends NLDDListItem_base {
|
|
|
44
91
|
selected: boolean;
|
|
45
92
|
/** When set, renders the item as a button; ignored when href is set. */
|
|
46
93
|
button: boolean;
|
|
94
|
+
/** When set, the whole row is the checkbox control. Ignored when href is set. */
|
|
95
|
+
checkbox: boolean;
|
|
96
|
+
/** Checked state of a `checkbox` row. Toggled by the item on activation. */
|
|
97
|
+
checked: boolean;
|
|
98
|
+
/**
|
|
99
|
+
* Disclosure state of a row that opens something (a tree row's children, a
|
|
100
|
+
* details panel). Reflected as `aria-expanded` on the row's own control —
|
|
101
|
+
* `listitem` does not support the property, a `<button>` / `<a>` does. Leave
|
|
102
|
+
* the attribute off entirely when the row discloses nothing.
|
|
103
|
+
*/
|
|
104
|
+
expanded?: boolean;
|
|
47
105
|
/** When set, renders the item as a link. */
|
|
48
106
|
href?: string;
|
|
49
107
|
/**
|
|
@@ -57,8 +115,7 @@ export declare class NLDDListItem extends NLDDListItem_base {
|
|
|
57
115
|
rel?: string;
|
|
58
116
|
/** Set by the parent nldd-list when reorderable is enabled. Used as a CSS hook for drag handle visibility. */
|
|
59
117
|
reorderable: boolean;
|
|
60
|
-
private
|
|
61
|
-
private _showEnd;
|
|
118
|
+
private _showChildren;
|
|
62
119
|
private _parentType;
|
|
63
120
|
/** Set by the parent nldd-list when `arrow-navigation` (roving tabindex) is on.
|
|
64
121
|
* Switches the inner action from a normal tab stop to a roving one. */
|
|
@@ -74,10 +131,79 @@ export declare class NLDDListItem extends NLDDListItem_base {
|
|
|
74
131
|
_highlighted: boolean;
|
|
75
132
|
private _action?;
|
|
76
133
|
private _isBoxed;
|
|
134
|
+
private _hasCheckedSegment;
|
|
135
|
+
private _lightDomObserver;
|
|
136
|
+
/** Watches the row and its divider-marker cells for size changes; marker
|
|
137
|
+
* insets are measured, so any reflow can move them. */
|
|
138
|
+
private _dividerMarkerObserver;
|
|
139
|
+
private _observedMarkerTargets;
|
|
140
|
+
private _warnedDegenerateDivider;
|
|
77
141
|
connectedCallback(): void;
|
|
78
142
|
disconnectedCallback(): void;
|
|
143
|
+
private _onLightDomChange;
|
|
144
|
+
/** A checked checkbox-segment reads as "this row is selected", so the fill
|
|
145
|
+
* covers the whole row — including a disclosure segment — instead of
|
|
146
|
+
* stopping at the segmented action boundary. Scoped to own descendants: a checked
|
|
147
|
+
* row in a nested branch must not light up its ancestors. */
|
|
148
|
+
private _updateCheckedSegment;
|
|
149
|
+
/** A row with any action — its own href/button/checkbox or a slotted
|
|
150
|
+
* segment — carries the widened geometry: negative host margin plus the
|
|
151
|
+
* compensating row padding (see the geometry rules in the class doc).
|
|
152
|
+
*
|
|
153
|
+
* An action segment at a row edge owns the padding for that side itself,
|
|
154
|
+
* so the row drops its own there and the segmented action lands on the row's edge.
|
|
155
|
+
* Stamped as classes because the CSS cannot ask: `:has()` is not allowed
|
|
156
|
+
* inside `:host()`, and the row's own padding is what has to change — a
|
|
157
|
+
* `::slotted()` rule could only reach the segmented action. */
|
|
158
|
+
private _updateInteractive;
|
|
79
159
|
firstUpdated(): void;
|
|
160
|
+
/**
|
|
161
|
+
* Cells whose `size` means the sm/md scale. NOT every cell: `size` on
|
|
162
|
+
* nldd-icon-cell and nldd-spacer-cell is a pixel value and on nldd-title-cell
|
|
163
|
+
* a 1-6 heading scale, so pushing 'sm' there would corrupt them.
|
|
164
|
+
*/
|
|
165
|
+
private static readonly SIZED_CELLS;
|
|
166
|
+
/** Remembers the size a cell was authored with, so a later push can restore it. */
|
|
167
|
+
private _ownCellSize;
|
|
168
|
+
/**
|
|
169
|
+
* The row's own descendants for `selector` — everything down to and inside
|
|
170
|
+
* its action segmented actions, but NOT inside a nested row. In a tree the child rows
|
|
171
|
+
* are DOM children of this row, so a plain querySelectorAll would push this
|
|
172
|
+
* row's state into theirs (a parent's `expanded` turning every nested
|
|
173
|
+
* chevron, its `size` overwriting theirs). A `:scope >` child selector is
|
|
174
|
+
* too strict the other way: cells legitimately sit one level deeper, inside
|
|
175
|
+
* an nldd-list-item-action.
|
|
176
|
+
*/
|
|
177
|
+
private _ownDescendants;
|
|
178
|
+
/**
|
|
179
|
+
* Records the authored `size` before the cells upgrade. Custom elements
|
|
180
|
+
* upgrade in document order, so the item's connectedCallback runs before its
|
|
181
|
+
* children's — the only moment an authored `size="md"` is still readable.
|
|
182
|
+
* After upgrade `reflectNonDefault` strips it, making it indistinguishable
|
|
183
|
+
* from no attribute at all.
|
|
184
|
+
*/
|
|
185
|
+
private _captureAuthoredCellSizes;
|
|
186
|
+
/**
|
|
187
|
+
* Pushes the row's size onto its sized cells so `size="sm"` is written once
|
|
188
|
+
* instead of on the row and on every cell. An explicit size on the cell wins
|
|
189
|
+
* and survives later pushes.
|
|
190
|
+
*/
|
|
191
|
+
private _propagateSize;
|
|
80
192
|
updated(changed: Map<string, unknown>): void;
|
|
193
|
+
/**
|
|
194
|
+
* A row WITH children is a branch, and a branch is either open or closed —
|
|
195
|
+
* there is no third state. So an absent `expanded` reads as collapsed there,
|
|
196
|
+
* and aria-expanded is always emitted. On a row without children an absent
|
|
197
|
+
* attribute keeps its other meaning: this row discloses nothing, emit no
|
|
198
|
+
* aria-expanded at all. Without this split, `?expanded=\${false}` (which
|
|
199
|
+
* removes the attribute) would leave a branch that never collapses.
|
|
200
|
+
*/
|
|
201
|
+
private get _resolvedExpanded();
|
|
202
|
+
/** Segments marked `disclosure` announce the row's expanded state, so the
|
|
203
|
+
* consumer writes it once — here, where it also drives the children group. */
|
|
204
|
+
private _relayExpanded;
|
|
205
|
+
/** `expanded` needs a control to sit on; a plain container has none. */
|
|
206
|
+
private _warnOnStrayExpanded;
|
|
81
207
|
/** True when the item is an option in a `type="listbox"` parent. */
|
|
82
208
|
get _isListboxOption(): boolean;
|
|
83
209
|
/**
|
|
@@ -91,20 +217,65 @@ export declare class NLDDListItem extends NLDDListItem_base {
|
|
|
91
217
|
private _syncWithList;
|
|
92
218
|
_applyVariant(variant: string): void;
|
|
93
219
|
_applyParentType(type: ListType): void;
|
|
220
|
+
/** Nested rows sit in this item's `children` slot, not the list's, so a plain
|
|
221
|
+
* `querySelector` from the list walks past them. */
|
|
222
|
+
get childRows(): NLDDListItem[];
|
|
223
|
+
/** Every push the item receives is relayed one level down. */
|
|
224
|
+
private _relayToChildren;
|
|
94
225
|
private _updateAriaState;
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
226
|
+
/**
|
|
227
|
+
* Measures the divider markers and writes the result as `--_divider-inset-
|
|
228
|
+
* start/-end` on the host. No markers → the vars are cleared and CSS falls
|
|
229
|
+
* back to the content width. Union semantics: the divider runs from the
|
|
230
|
+
* FIRST `divider-start` to the LAST `divider-end`; a side without markers
|
|
231
|
+
* keeps its default. Insets are measured against the row block (the widened
|
|
232
|
+
* box on interactive rows), so the values compose with the edge geometry.
|
|
233
|
+
*/
|
|
234
|
+
private _measureDividerMarkers;
|
|
235
|
+
private _observeChildrenSlot;
|
|
236
|
+
/** Renders the group only when there is something in it — an empty
|
|
237
|
+
* `role="group"` would be an empty branch in the accessibility tree. */
|
|
238
|
+
private _updateChildren;
|
|
98
239
|
private _handleClick;
|
|
99
240
|
private _handleFocusIn;
|
|
100
241
|
private _handleFocusOut;
|
|
101
242
|
private _onPointerDown;
|
|
243
|
+
/** Whether the event started in a row nested inside this one. Only the part
|
|
244
|
+
* of the path BELOW this row counts — everything above it is this row's own
|
|
245
|
+
* ancestry, which is where the event is heading, not where it came from. */
|
|
246
|
+
private _isFromNestedRow;
|
|
102
247
|
private _clearPressed;
|
|
103
248
|
/**
|
|
104
249
|
* Delegates focus to the inner `.list-item__action` (the button or anchor),
|
|
105
250
|
* so consumers can call `listItemEl.focus()` without reaching into shadow DOM.
|
|
106
251
|
*/
|
|
107
252
|
focus(options?: FocusOptions): void;
|
|
253
|
+
/**
|
|
254
|
+
* The roving tab stop, spread over the row and the controls inside it: the
|
|
255
|
+
* current row is reachable with Tab, everything else only with the arrow
|
|
256
|
+
* keys. Within the current row Tab then walks its segmented actions, so a row
|
|
257
|
+
* that holds a checkbox and a chevron stays fully operable.
|
|
258
|
+
*
|
|
259
|
+
* A row that is not the current one carries NO tabindex at all rather than
|
|
260
|
+
* -1. A shadow host with a tabindex is a focus scope of its own, and Chromium
|
|
261
|
+
* walks straight past such a scope when tabbing BACKWARDS if the host itself
|
|
262
|
+
* isn't tabbable — so a `-1` on a branch made every row inside it
|
|
263
|
+
* unreachable with Shift+Tab, while forward navigation still found them.
|
|
264
|
+
*
|
|
265
|
+
* @internal Also called by the list right after it moves the roving, so the
|
|
266
|
+
* tab stop is in the DOM before focus is handed over.
|
|
267
|
+
*/
|
|
268
|
+
_syncRovingTabStops(): void;
|
|
269
|
+
/** The control that opens and closes this row: the segmented action marked
|
|
270
|
+
* `disclosure`, or the row itself when it is a button. Never a link — Left
|
|
271
|
+
* and Right may not navigate away. */
|
|
272
|
+
private get _disclosureControl();
|
|
273
|
+
/** Activates whatever opens this row, so the consumer's own click handler runs
|
|
274
|
+
* and stays the only place `expanded` is written. Returns false when the row
|
|
275
|
+
* has nothing to activate. */
|
|
276
|
+
_activateDisclosure(): boolean;
|
|
277
|
+
/** The branch this row hangs under, or undefined for a top-level row. */
|
|
278
|
+
get parentRow(): NLDDListItem | undefined;
|
|
108
279
|
render(): import("lit-html").TemplateResult<1>;
|
|
109
280
|
}
|
|
110
281
|
declare global {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-item.d.ts","sourceRoot":"","sources":["../../../../src/components/lists-and-tables/list-item/list-item.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,KAAK,CAAC;AAQjC,OAAO,KAAK,EAAY,QAAQ,EAAE,MAAM,iBAAiB,CAAC;
|
|
1
|
+
{"version":3,"file":"list-item.d.ts","sourceRoot":"","sources":["../../../../src/components/lists-and-tables/list-item/list-item.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,KAAK,CAAC;AAQjC,OAAO,KAAK,EAAY,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAE1D,MAAM,MAAM,YAAY,GAAG,IAAI,GAAG,IAAI,CAAC;;;;;;;AAEvC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6EG;AACH,qBACa,YAAa,SAAQ,iBAAsD;IACvF,OAAgB,MAAM,4BAAoB;IAG1C,IAAI,EAAE,YAAY,CAAQ;IAG1B,QAAQ,UAAS;IAEjB,wEAAwE;IAExE,MAAM,UAAS;IAEf,iFAAiF;IAEjF,QAAQ,UAAS;IAEjB,4EAA4E;IAE5E,OAAO,UAAS;IAEhB;;;;;OAKG;IAEH,QAAQ,CAAC,EAAE,OAAO,CAAC;IAEnB,4CAA4C;IAE5C,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd;;;;;OAKG;IAEH,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB,6FAA6F;IAE7F,GAAG,CAAC,EAAE,MAAM,CAAC;IAEb,8GAA8G;IAE9G,WAAW,UAAS;IAGpB,OAAO,CAAC,aAAa,CAAS;IAG9B,OAAO,CAAC,WAAW,CAAoB;IAEvC;4EACwE;IAExE,gBAAgB,UAAS;IAEzB;4EACwE;IAExE,aAAa,UAAS;IAEtB;;;;+EAI2E;IAE3E,YAAY,UAAS;IAGrB,OAAO,CAAC,OAAO,CAAC,CAAc;IAE9B,OAAO,CAAC,QAAQ,CAAS;IAGzB,OAAO,CAAC,kBAAkB,CAAS;IAEnC,OAAO,CAAC,iBAAiB,CAAiC;IAE1D;4DACwD;IACxD,OAAO,CAAC,sBAAsB,CAA+B;IAE7D,OAAO,CAAC,sBAAsB,CAAiB;IAE/C,OAAO,CAAC,wBAAwB,CAAS;IAEhC,iBAAiB;IAiCjB,oBAAoB;IAc7B,OAAO,CAAC,iBAAiB;IAMzB;;;kEAG8D;IAC9D,OAAO,CAAC,qBAAqB;IAK7B;;;;;;;;oEAQgE;IAChE,OAAO,CAAC,kBAAkB;IAgBjB,YAAY;IAarB;;;;OAIG;IACH,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAC,WAAW,CAA2C;IAE9E,mFAAmF;IACnF,OAAO,CAAC,YAAY,CAAyC;IAE7D;;;;;;;;OAQG;IACH,OAAO,CAAC,eAAe;IAKvB;;;;;;OAMG;IACH,OAAO,CAAC,yBAAyB;IAQjC;;;;OAIG;IACH,OAAO,CAAC,cAAc;IASb,OAAO,CAAC,OAAO,EAAE,GAAG,CAAC,MAAM,EAAE,OAAO,CAAC;IAiB9C;;;;;;;OAOG;IACH,OAAO,KAAK,iBAAiB,GAG5B;IAED;mFAC+E;IAC/E,OAAO,CAAC,cAAc;IAKtB,wEAAwE;IACxE,OAAO,CAAC,oBAAoB;IAQ5B,oEAAoE;IACpE,IAAI,gBAAgB,IAAI,OAAO,CAE9B;IAED;;;;;;;OAOG;IACH,OAAO,CAAC,aAAa;IAYrB,aAAa,CAAC,OAAO,EAAE,MAAM;IAM7B,gBAAgB,CAAC,IAAI,EAAE,QAAQ;IAU/B;yDACqD;IACrD,IAAI,SAAS,IAAI,YAAY,EAAE,CAG9B;IAED,8DAA8D;IAC9D,OAAO,CAAC,gBAAgB;IAIxB,OAAO,CAAC,gBAAgB;IAyBxB;;;;;;;OAOG;IACH,OAAO,CAAC,sBAAsB;IA+D9B,OAAO,CAAC,oBAAoB;IAK5B;6EACyE;IACzE,OAAO,CAAC,eAAe;IAwBvB,OAAO,CAAC,YAAY,CAYlB;IAEF,OAAO,CAAC,cAAc,CAOpB;IAEF,OAAO,CAAC,eAAe,CAErB;IAEF,OAAO,CAAC,cAAc,CAQpB;IAEF;;iFAE6E;IAC7E,OAAO,CAAC,gBAAgB;IAQxB,OAAO,CAAC,aAAa,CAEnB;IAEF;;;OAGG;IACM,KAAK,CAAC,OAAO,CAAC,EAAE,YAAY,GAAG,IAAI;IAY5C;;;;;;;;;;;;;;OAcG;IACH,mBAAmB,IAAI,IAAI;IAqB3B;;2CAEuC;IACvC,OAAO,KAAK,kBAAkB,GAS7B;IAED;;mCAE+B;IAC/B,mBAAmB,IAAI,OAAO;IAa9B,yEAAyE;IACzE,IAAI,SAAS,IAAI,YAAY,GAAG,SAAS,CAIxC;IAEQ,MAAM;CAiCf;AAED,OAAO,CAAC,MAAM,CAAC;IACd,UAAU,qBAAqB;QAC9B,gBAAgB,EAAE,YAAY,CAAC;KAC/B;CACD"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export declare const nlddListItemTranslations: {
|
|
2
|
-
'components.list-item.opens-in-new-tab-
|
|
2
|
+
'components.list-item.opens-in-new-tab-label': string;
|
|
3
3
|
};
|
|
4
4
|
export type NLDDListItemTranslations = typeof nlddListItemTranslations;
|
|
5
5
|
//# sourceMappingURL=list-item.i18n.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-item.i18n.js","sourceRoot":"","sources":["../../../../src/components/lists-and-tables/list-item/list-item.i18n.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,wBAAwB,GAAG;IACvC,
|
|
1
|
+
{"version":3,"file":"list-item.i18n.js","sourceRoot":"","sources":["../../../../src/components/lists-and-tables/list-item/list-item.i18n.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,wBAAwB,GAAG;IACvC,6CAA6C,EAAE,wBAAwB;CACvE,CAAC"}
|