@nldd/design-system 0.8.92 → 0.8.94
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/NOTICES.md +29 -27
- package/README.md +39 -26
- package/custom-elements.json +2134 -1509
- package/dist/components/actions/button/button.d.ts +28 -6
- package/dist/components/actions/button/button.d.ts.map +1 -1
- package/dist/components/actions/button/button.js +58 -8
- 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 +44 -74
- package/dist/components/actions/button/button.styles.js.map +1 -1
- package/dist/components/actions/button/button.template.d.ts.map +1 -1
- package/dist/components/actions/button/button.template.js +4 -3
- package/dist/components/actions/button/button.template.js.map +1 -1
- package/dist/components/actions/button-bar/button-bar.d.ts +11 -4
- package/dist/components/actions/button-bar/button-bar.d.ts.map +1 -1
- package/dist/components/actions/button-bar/button-bar.js +25 -9
- package/dist/components/actions/button-bar/button-bar.js.map +1 -1
- package/dist/components/actions/button-bar/button-bar.styles.d.ts.map +1 -1
- package/dist/components/actions/button-bar/button-bar.styles.js +18 -3
- package/dist/components/actions/button-bar/button-bar.styles.js.map +1 -1
- package/dist/components/actions/button-group/button-group.d.ts +48 -3
- package/dist/components/actions/button-group/button-group.d.ts.map +1 -1
- package/dist/components/actions/button-group/button-group.js +104 -11
- package/dist/components/actions/button-group/button-group.js.map +1 -1
- package/dist/components/actions/button-group/button-group.styles.d.ts.map +1 -1
- package/dist/components/actions/button-group/button-group.styles.js +64 -4
- package/dist/components/actions/button-group/button-group.styles.js.map +1 -1
- package/dist/components/actions/icon-button/icon-button.d.ts +13 -7
- package/dist/components/actions/icon-button/icon-button.d.ts.map +1 -1
- package/dist/components/actions/icon-button/icon-button.js +16 -7
- package/dist/components/actions/icon-button/icon-button.js.map +1 -1
- package/dist/components/actions/icon-button/icon-button.styles.d.ts.map +1 -1
- package/dist/components/actions/icon-button/icon-button.styles.js +35 -61
- package/dist/components/actions/icon-button/icon-button.styles.js.map +1 -1
- package/dist/components/actions/icon-button/icon-button.template.d.ts.map +1 -1
- package/dist/components/actions/icon-button/icon-button.template.js +8 -4
- package/dist/components/actions/icon-button/icon-button.template.js.map +1 -1
- package/dist/components/actions/menu/menu.d.ts +46 -31
- package/dist/components/actions/menu/menu.d.ts.map +1 -1
- package/dist/components/actions/menu/menu.js +87 -64
- 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 +4 -0
- package/dist/components/actions/menu/menu.styles.js.map +1 -1
- package/dist/components/actions/menu/menu.template.d.ts.map +1 -1
- package/dist/components/actions/menu/menu.template.js +13 -5
- package/dist/components/actions/menu/menu.template.js.map +1 -1
- package/dist/components/actions/split-button/split-button.d.ts +2 -2
- package/dist/components/actions/split-button/split-button.d.ts.map +1 -1
- package/dist/components/actions/split-button/split-button.js +5 -4
- package/dist/components/actions/split-button/split-button.js.map +1 -1
- package/dist/components/actions/split-button/split-button.styles.d.ts.map +1 -1
- package/dist/components/actions/split-button/split-button.styles.js +18 -3
- package/dist/components/actions/split-button/split-button.styles.js.map +1 -1
- package/dist/components/actions/split-button/split-button.template.js +2 -2
- package/dist/components/actions/split-button/split-button.template.js.map +1 -1
- package/dist/components/actions/toolbar/toolbar.d.ts +24 -10
- package/dist/components/actions/toolbar/toolbar.d.ts.map +1 -1
- package/dist/components/actions/toolbar/toolbar.js +60 -28
- package/dist/components/actions/toolbar/toolbar.js.map +1 -1
- package/dist/components/actions/toolbar/toolbar.styles.js +7 -7
- package/dist/components/actions/toolbar/toolbar.template.d.ts.map +1 -1
- package/dist/components/actions/toolbar/toolbar.template.js +3 -2
- package/dist/components/actions/toolbar/toolbar.template.js.map +1 -1
- package/dist/components/components.js +3034 -1382
- package/dist/components/content/avatar/avatar.d.ts +23 -5
- package/dist/components/content/avatar/avatar.d.ts.map +1 -1
- package/dist/components/content/avatar/avatar.js +24 -6
- package/dist/components/content/avatar/avatar.js.map +1 -1
- package/dist/components/content/avatar/avatar.template.d.ts.map +1 -1
- package/dist/components/content/avatar/avatar.template.js +5 -2
- package/dist/components/content/avatar/avatar.template.js.map +1 -1
- package/dist/components/content/avatar-group/avatar-group.template.d.ts.map +1 -1
- package/dist/components/content/avatar-group/avatar-group.template.js +6 -2
- package/dist/components/content/avatar-group/avatar-group.template.js.map +1 -1
- package/dist/components/content/code-viewer/code-viewer.d.ts +2 -2
- package/dist/components/content/code-viewer/code-viewer.d.ts.map +1 -1
- package/dist/components/content/code-viewer/code-viewer.js +10 -6
- package/dist/components/content/code-viewer/code-viewer.js.map +1 -1
- package/dist/components/content/code-viewer/code-viewer.styles.js +6 -6
- package/dist/components/content/icon/icon.d.ts +18 -6
- package/dist/components/content/icon/icon.d.ts.map +1 -1
- package/dist/components/content/icon/icon.js +30 -10
- package/dist/components/content/icon/icon.js.map +1 -1
- package/dist/components/content/identity/identity.template.d.ts.map +1 -1
- package/dist/components/content/identity/identity.template.js +4 -1
- package/dist/components/content/identity/identity.template.js.map +1 -1
- package/dist/components/content/image/image.d.ts.map +1 -1
- package/dist/components/content/image/image.js +2 -1
- package/dist/components/content/image/image.js.map +1 -1
- package/dist/components/content/image/image.template.d.ts.map +1 -1
- package/dist/components/content/image/image.template.js +7 -2
- package/dist/components/content/image/image.template.js.map +1 -1
- package/dist/components/content/keyboard-shortcut/keyboard-shortcut.d.ts +3 -3
- package/dist/components/content/keyboard-shortcut/keyboard-shortcut.d.ts.map +1 -1
- package/dist/components/content/keyboard-shortcut/keyboard-shortcut.js +3 -3
- package/dist/components/content/keyboard-shortcut/keyboard-shortcut.js.map +1 -1
- package/dist/components/content/keyboard-shortcut/keyboard-shortcut.styles.js +7 -7
- package/dist/components/content/rich-text/rich-text.d.ts +20 -9
- package/dist/components/content/rich-text/rich-text.d.ts.map +1 -1
- package/dist/components/content/rich-text/rich-text.js +32 -16
- package/dist/components/content/rich-text/rich-text.js.map +1 -1
- package/dist/components/content/tag/tag.d.ts +2 -2
- package/dist/components/content/tag/tag.d.ts.map +1 -1
- package/dist/components/content/tag/tag.js +5 -5
- package/dist/components/content/tag/tag.js.map +1 -1
- package/dist/components/content/tag/tag.template.js +2 -2
- package/dist/components/content/text/text.styles.d.ts.map +1 -1
- package/dist/components/content/text/text.styles.js +1 -0
- package/dist/components/content/text/text.styles.js.map +1 -1
- package/dist/components/content/title/title.d.ts +30 -6
- package/dist/components/content/title/title.d.ts.map +1 -1
- package/dist/components/content/title/title.js +72 -8
- package/dist/components/content/title/title.js.map +1 -1
- package/dist/components/content/title/title.styles.d.ts.map +1 -1
- package/dist/components/content/title/title.styles.js +41 -4
- package/dist/components/content/title/title.styles.js.map +1 -1
- package/dist/components/content/title/title.template.d.ts +2 -1
- package/dist/components/content/title/title.template.d.ts.map +1 -1
- package/dist/components/content/title/title.template.js +33 -5
- package/dist/components/content/title/title.template.js.map +1 -1
- package/dist/components/content/token/token.d.ts +15 -5
- package/dist/components/content/token/token.d.ts.map +1 -1
- package/dist/components/content/token/token.i18n.d.ts +7 -0
- package/dist/components/content/token/token.i18n.d.ts.map +1 -0
- package/dist/components/content/token/token.i18n.js +6 -0
- package/dist/components/content/token/token.i18n.js.map +1 -0
- package/dist/components/content/token/token.js +56 -14
- package/dist/components/content/token/token.js.map +1 -1
- package/dist/components/content/token/token.template.js +6 -6
- package/dist/components/content/token/token.template.js.map +1 -1
- package/dist/components/forms/form/form.d.ts +18 -7
- package/dist/components/forms/form/form.d.ts.map +1 -1
- package/dist/components/forms/form/form.js +18 -7
- package/dist/components/forms/form/form.js.map +1 -1
- package/dist/components/forms/form-actions/form-actions.d.ts +1 -1
- package/dist/components/forms/form-actions/form-actions.js +1 -1
- package/dist/components/forms/form-field/form-field.d.ts +12 -1
- package/dist/components/forms/form-field/form-field.d.ts.map +1 -1
- package/dist/components/forms/form-field/form-field.js +12 -1
- package/dist/components/forms/form-field/form-field.js.map +1 -1
- package/dist/components/forms/form-section/form-section.d.ts +3 -3
- package/dist/components/forms/form-section/form-section.js +8 -8
- package/dist/components/forms/form-section/form-section.js.map +1 -1
- package/dist/components/forms/validation-list/validation-list.d.ts +7 -4
- package/dist/components/forms/validation-list/validation-list.d.ts.map +1 -1
- package/dist/components/forms/validation-list/validation-list.js +7 -4
- package/dist/components/forms/validation-list/validation-list.js.map +1 -1
- package/dist/components/{icon-C_zwJZ_g.js → icon-DWNVcttg.js} +4 -4
- package/dist/components/{icon-button-oua8pmMC.js → icon-button-DHzLMmj0.js} +62 -78
- package/dist/components/index.d.ts +1 -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.template.d.ts.map +1 -1
- package/dist/components/inputs/checkbox/checkbox.template.js +11 -5
- package/dist/components/inputs/checkbox/checkbox.template.js.map +1 -1
- package/dist/components/inputs/code-editor/code-editor.d.ts +5 -5
- package/dist/components/inputs/code-editor/code-editor.d.ts.map +1 -1
- package/dist/components/inputs/code-editor/code-editor.js +5 -5
- package/dist/components/inputs/code-editor/code-editor.js.map +1 -1
- package/dist/components/inputs/code-editor/code-editor.styles.js +3 -3
- package/dist/components/inputs/combo-box/combo-box.d.ts +47 -3
- package/dist/components/inputs/combo-box/combo-box.d.ts.map +1 -1
- package/dist/components/inputs/combo-box/combo-box.js +119 -41
- package/dist/components/inputs/combo-box/combo-box.js.map +1 -1
- package/dist/components/inputs/combo-box/combo-box.template.js +4 -4
- package/dist/components/inputs/date-field/date-field.d.ts.map +1 -1
- package/dist/components/inputs/date-field/date-field.js +2 -1
- package/dist/components/inputs/date-field/date-field.js.map +1 -1
- package/dist/components/inputs/date-field/date-field.template.d.ts.map +1 -1
- package/dist/components/inputs/date-field/date-field.template.js +6 -4
- package/dist/components/inputs/date-field/date-field.template.js.map +1 -1
- package/dist/components/inputs/date-picker/date-picker.template.js +3 -3
- package/dist/components/inputs/date-picker/date-picker.template.js.map +1 -1
- package/dist/components/inputs/dropdown/dropdown.d.ts +0 -2
- package/dist/components/inputs/dropdown/dropdown.d.ts.map +1 -1
- package/dist/components/inputs/dropdown/dropdown.js +1 -13
- package/dist/components/inputs/dropdown/dropdown.js.map +1 -1
- package/dist/components/inputs/dropdown/dropdown.styles.d.ts.map +1 -1
- package/dist/components/inputs/dropdown/dropdown.styles.js +24 -12
- package/dist/components/inputs/dropdown/dropdown.styles.js.map +1 -1
- package/dist/components/inputs/dropdown/dropdown.template.d.ts.map +1 -1
- package/dist/components/inputs/dropdown/dropdown.template.js +3 -4
- package/dist/components/inputs/dropdown/dropdown.template.js.map +1 -1
- package/dist/components/inputs/file-field/file-field.d.ts.map +1 -1
- package/dist/components/inputs/file-field/file-field.js +2 -7
- package/dist/components/inputs/file-field/file-field.js.map +1 -1
- package/dist/components/inputs/file-field/file-field.template.js +3 -3
- package/dist/components/inputs/multi-line-text-field/multi-line-text-field.template.js +2 -2
- package/dist/components/inputs/number-field/number-field.d.ts.map +1 -1
- package/dist/components/inputs/number-field/number-field.js +2 -1
- 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/number-field/number-field.template.js +2 -2
- package/dist/components/inputs/password-field/password-field.template.js +2 -2
- package/dist/components/inputs/radio-button/radio-button.template.d.ts.map +1 -1
- package/dist/components/inputs/radio-button/radio-button.template.js +3 -1
- package/dist/components/inputs/radio-button/radio-button.template.js.map +1 -1
- package/dist/components/inputs/search-field/search-field.d.ts +24 -24
- package/dist/components/inputs/search-field/search-field.d.ts.map +1 -1
- package/dist/components/inputs/search-field/search-field.js +42 -41
- package/dist/components/inputs/search-field/search-field.js.map +1 -1
- package/dist/components/inputs/search-field/search-field.template.d.ts.map +1 -1
- package/dist/components/inputs/search-field/search-field.template.js +6 -4
- package/dist/components/inputs/search-field/search-field.template.js.map +1 -1
- package/dist/components/inputs/segmented-control/segmented-control.d.ts +6 -0
- package/dist/components/inputs/segmented-control/segmented-control.d.ts.map +1 -1
- package/dist/components/inputs/segmented-control/segmented-control.js +13 -0
- package/dist/components/inputs/segmented-control/segmented-control.js.map +1 -1
- package/dist/components/inputs/segmented-control/segmented-control.styles.d.ts.map +1 -1
- package/dist/components/inputs/segmented-control/segmented-control.styles.js +54 -16
- package/dist/components/inputs/segmented-control/segmented-control.styles.js.map +1 -1
- package/dist/components/inputs/segmented-control/segmented-control.template.js +2 -2
- package/dist/components/inputs/stepper/stepper.d.ts.map +1 -1
- package/dist/components/inputs/stepper/stepper.js +2 -1
- package/dist/components/inputs/stepper/stepper.js.map +1 -1
- package/dist/components/inputs/stepper/stepper.template.js +2 -2
- package/dist/components/inputs/switch/switch.template.js +1 -1
- package/dist/components/inputs/text-editor/text-editor.annotations.d.ts.map +1 -1
- package/dist/components/inputs/text-editor/text-editor.annotations.js +6 -4
- package/dist/components/inputs/text-editor/text-editor.annotations.js.map +1 -1
- package/dist/components/inputs/text-editor/text-editor.d.ts +27 -64
- package/dist/components/inputs/text-editor/text-editor.d.ts.map +1 -1
- package/dist/components/inputs/text-editor/text-editor.i18n.d.ts +2 -0
- package/dist/components/inputs/text-editor/text-editor.i18n.d.ts.map +1 -1
- package/dist/components/inputs/text-editor/text-editor.i18n.js +5 -0
- package/dist/components/inputs/text-editor/text-editor.i18n.js.map +1 -1
- package/dist/components/inputs/text-editor/text-editor.js +87 -20
- package/dist/components/inputs/text-editor/text-editor.js.map +1 -1
- package/dist/components/inputs/text-editor/text-editor.labels.d.ts +4 -0
- package/dist/components/inputs/text-editor/text-editor.labels.d.ts.map +1 -0
- package/dist/components/inputs/text-editor/text-editor.labels.js +5 -0
- package/dist/components/inputs/text-editor/text-editor.labels.js.map +1 -0
- package/dist/components/inputs/text-editor/text-editor.links.d.ts.map +1 -1
- package/dist/components/inputs/text-editor/text-editor.links.js +7 -5
- package/dist/components/inputs/text-editor/text-editor.links.js.map +1 -1
- package/dist/components/inputs/text-editor/text-editor.markdown.d.ts.map +1 -1
- package/dist/components/inputs/text-editor/text-editor.markdown.js +6 -2
- package/dist/components/inputs/text-editor/text-editor.markdown.js.map +1 -1
- package/dist/components/inputs/text-editor/text-editor.mentions.d.ts +27 -3
- package/dist/components/inputs/text-editor/text-editor.mentions.d.ts.map +1 -1
- package/dist/components/inputs/text-editor/text-editor.mentions.js +145 -26
- package/dist/components/inputs/text-editor/text-editor.mentions.js.map +1 -1
- package/dist/components/inputs/text-editor/text-editor.spellcheck.d.ts +11 -0
- package/dist/components/inputs/text-editor/text-editor.spellcheck.d.ts.map +1 -0
- package/dist/components/inputs/text-editor/text-editor.spellcheck.js +134 -0
- package/dist/components/inputs/text-editor/text-editor.spellcheck.js.map +1 -0
- package/dist/components/inputs/text-editor/text-editor.styles.d.ts.map +1 -1
- package/dist/components/inputs/text-editor/text-editor.styles.js +9 -3
- package/dist/components/inputs/text-editor/text-editor.styles.js.map +1 -1
- package/dist/components/inputs/text-field/text-field.template.js +2 -2
- package/dist/components/inputs/time-field/time-field.d.ts.map +1 -1
- package/dist/components/inputs/time-field/time-field.js +2 -1
- package/dist/components/inputs/time-field/time-field.js.map +1 -1
- package/dist/components/inputs/time-field/time-field.template.d.ts.map +1 -1
- package/dist/components/inputs/time-field/time-field.template.js +7 -5
- package/dist/components/inputs/time-field/time-field.template.js.map +1 -1
- package/dist/components/inputs/time-picker/time-picker.d.ts.map +1 -1
- package/dist/components/inputs/time-picker/time-picker.js +2 -1
- package/dist/components/inputs/time-picker/time-picker.js.map +1 -1
- package/dist/components/inputs/toggle-button/toggle-button.d.ts +12 -0
- package/dist/components/inputs/toggle-button/toggle-button.d.ts.map +1 -1
- package/dist/components/inputs/toggle-button/toggle-button.js +17 -0
- package/dist/components/inputs/toggle-button/toggle-button.js.map +1 -1
- package/dist/components/inputs/toggle-button/toggle-button.styles.d.ts.map +1 -1
- package/dist/components/inputs/toggle-button/toggle-button.styles.js +99 -12
- package/dist/components/inputs/toggle-button/toggle-button.styles.js.map +1 -1
- package/dist/components/inputs/toggle-button/toggle-button.template.d.ts.map +1 -1
- package/dist/components/inputs/toggle-button/toggle-button.template.js +6 -4
- package/dist/components/inputs/toggle-button/toggle-button.template.js.map +1 -1
- package/dist/components/inputs/toggle-button-group/toggle-button-group.d.ts +4 -2
- 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 +8 -2
- package/dist/components/inputs/toggle-button-group/toggle-button-group.js.map +1 -1
- package/dist/components/inputs/token-field/token-field.d.ts +26 -1
- package/dist/components/inputs/token-field/token-field.d.ts.map +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 +59 -6
- package/dist/components/inputs/token-field/token-field.js.map +1 -1
- package/dist/components/inputs/token-field/token-field.styles.d.ts.map +1 -1
- package/dist/components/inputs/token-field/token-field.styles.js +2 -1
- package/dist/components/inputs/token-field/token-field.styles.js.map +1 -1
- package/dist/components/inputs/token-field/token-field.template.d.ts.map +1 -1
- package/dist/components/inputs/token-field/token-field.template.js +7 -5
- package/dist/components/inputs/token-field/token-field.template.js.map +1 -1
- package/dist/components/layout/app-view/app-view.d.ts +8 -0
- package/dist/components/layout/app-view/app-view.d.ts.map +1 -1
- package/dist/components/layout/app-view/app-view.js +8 -0
- package/dist/components/layout/app-view/app-view.js.map +1 -1
- package/dist/components/layout/card/card.d.ts +7 -4
- package/dist/components/layout/card/card.d.ts.map +1 -1
- package/dist/components/layout/card/card.js +10 -7
- 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 +22 -2
- 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 +4 -2
- package/dist/components/layout/card/card.template.js.map +1 -1
- package/dist/components/layout/collection/collection.d.ts +11 -6
- package/dist/components/layout/collection/collection.d.ts.map +1 -1
- package/dist/components/layout/collection/collection.js +21 -15
- package/dist/components/layout/collection/collection.js.map +1 -1
- package/dist/components/layout/collection/collection.template.d.ts.map +1 -1
- package/dist/components/layout/collection/collection.template.js +5 -2
- package/dist/components/layout/collection/collection.template.js.map +1 -1
- package/dist/components/layout/container/container.d.ts +13 -8
- package/dist/components/layout/container/container.d.ts.map +1 -1
- package/dist/components/layout/container/container.js +19 -14
- package/dist/components/layout/container/container.js.map +1 -1
- package/dist/components/layout/page/page.d.ts +52 -2
- package/dist/components/layout/page/page.d.ts.map +1 -1
- package/dist/components/layout/page/page.js +94 -3
- package/dist/components/layout/page/page.js.map +1 -1
- package/dist/components/layout/page/page.template.d.ts +6 -0
- package/dist/components/layout/page/page.template.d.ts.map +1 -1
- package/dist/components/layout/page/page.template.js +21 -6
- package/dist/components/layout/page/page.template.js.map +1 -1
- package/dist/components/layout/page-footer/page-footer.d.ts +2 -4
- package/dist/components/layout/page-footer/page-footer.d.ts.map +1 -1
- package/dist/components/layout/page-footer/page-footer.js +8 -23
- package/dist/components/layout/page-footer/page-footer.js.map +1 -1
- package/dist/components/layout/page-footer/page-footer.template.d.ts.map +1 -1
- package/dist/components/layout/page-footer/page-footer.template.js +16 -4
- package/dist/components/layout/page-footer/page-footer.template.js.map +1 -1
- package/dist/components/layout/page-sections/full-bleed-section/full-bleed-section.d.ts +4 -6
- 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 +4 -5
- package/dist/components/layout/page-sections/full-bleed-section/full-bleed-section.js.map +1 -1
- package/dist/components/layout/page-sections/full-bleed-section/full-bleed-section.template.d.ts.map +1 -1
- package/dist/components/layout/page-sections/full-bleed-section/full-bleed-section.template.js +8 -2
- package/dist/components/layout/page-sections/full-bleed-section/full-bleed-section.template.js.map +1 -1
- package/dist/components/layout/page-sections/hero/hero.d.ts +12 -14
- package/dist/components/layout/page-sections/hero/hero.d.ts.map +1 -1
- package/dist/components/layout/page-sections/hero/hero.js +19 -20
- package/dist/components/layout/page-sections/hero/hero.js.map +1 -1
- package/dist/components/layout/page-sections/hero/hero.template.d.ts.map +1 -1
- package/dist/components/layout/page-sections/hero/hero.template.js +6 -2
- package/dist/components/layout/page-sections/hero/hero.template.js.map +1 -1
- package/dist/components/layout/page-sections/one-half-one-half-section/one-half-one-half-section.d.ts +6 -8
- 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 +6 -7
- 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-half-one-half-section/one-half-one-half-section.template.d.ts.map +1 -1
- package/dist/components/layout/page-sections/one-half-one-half-section/one-half-one-half-section.template.js +8 -2
- package/dist/components/layout/page-sections/one-half-one-half-section/one-half-one-half-section.template.js.map +1 -1
- package/dist/components/layout/page-sections/one-third-two-thirds-section/one-third-two-thirds-section.d.ts +6 -8
- 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 +6 -7
- 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/one-third-two-thirds-section/one-third-two-thirds-section.template.d.ts.map +1 -1
- package/dist/components/layout/page-sections/one-third-two-thirds-section/one-third-two-thirds-section.template.js +8 -2
- package/dist/components/layout/page-sections/one-third-two-thirds-section/one-third-two-thirds-section.template.js.map +1 -1
- package/dist/components/layout/page-sections/page-section-controls.d.ts +139 -44
- package/dist/components/layout/page-sections/page-section-controls.d.ts.map +1 -1
- package/dist/components/layout/page-sections/page-section-controls.js +44 -47
- package/dist/components/layout/page-sections/page-section-controls.js.map +1 -1
- package/dist/components/layout/page-sections/sidebar-section/sidebar-section.d.ts +11 -12
- 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 +21 -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.template.d.ts.map +1 -1
- package/dist/components/layout/page-sections/sidebar-section/sidebar-section.template.js +8 -2
- package/dist/components/layout/page-sections/sidebar-section/sidebar-section.template.js.map +1 -1
- package/dist/components/layout/page-sections/simple-section/simple-section.d.ts +14 -8
- 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 +14 -7
- package/dist/components/layout/page-sections/simple-section/simple-section.js.map +1 -1
- package/dist/components/layout/page-sections/simple-section/simple-section.template.d.ts.map +1 -1
- package/dist/components/layout/page-sections/simple-section/simple-section.template.js +8 -2
- package/dist/components/layout/page-sections/simple-section/simple-section.template.js.map +1 -1
- package/dist/components/layout/page-sections/two-thirds-one-third-section/two-thirds-one-third-section.d.ts +6 -8
- 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 +6 -7
- package/dist/components/layout/page-sections/two-thirds-one-third-section/two-thirds-one-third-section.js.map +1 -1
- package/dist/components/layout/page-sections/two-thirds-one-third-section/two-thirds-one-third-section.template.d.ts.map +1 -1
- package/dist/components/layout/page-sections/two-thirds-one-third-section/two-thirds-one-third-section.template.js +8 -2
- package/dist/components/layout/page-sections/two-thirds-one-third-section/two-thirds-one-third-section.template.js.map +1 -1
- package/dist/components/layout/popover/popover.d.ts +12 -8
- package/dist/components/layout/popover/popover.d.ts.map +1 -1
- package/dist/components/layout/popover/popover.js +40 -19
- package/dist/components/layout/popover/popover.js.map +1 -1
- package/dist/components/layout/sheet/sheet.d.ts +26 -11
- package/dist/components/layout/sheet/sheet.d.ts.map +1 -1
- package/dist/components/layout/sheet/sheet.js +59 -20
- package/dist/components/layout/sheet/sheet.js.map +1 -1
- package/dist/components/layout/sheet/sheet.styles.d.ts.map +1 -1
- package/dist/components/layout/sheet/sheet.styles.js +4 -0
- package/dist/components/layout/sheet/sheet.styles.js.map +1 -1
- package/dist/components/layout/sheet/sheet.template.js +1 -1
- package/dist/components/layout/sheet/sheet.template.js.map +1 -1
- package/dist/components/layout/spacer/spacer.d.ts +13 -0
- package/dist/components/layout/spacer/spacer.d.ts.map +1 -1
- package/dist/components/layout/spacer/spacer.js +13 -0
- package/dist/components/layout/spacer/spacer.js.map +1 -1
- package/dist/components/layout/split-views/bar-split-view/bar-split-view.d.ts +4 -1
- package/dist/components/layout/split-views/bar-split-view/bar-split-view.d.ts.map +1 -1
- package/dist/components/layout/split-views/bar-split-view/bar-split-view.js +4 -1
- package/dist/components/layout/split-views/bar-split-view/bar-split-view.js.map +1 -1
- package/dist/components/layout/split-views/navigation-split-view/navigation-split-view.d.ts +11 -6
- package/dist/components/layout/split-views/navigation-split-view/navigation-split-view.d.ts.map +1 -1
- package/dist/components/layout/split-views/navigation-split-view/navigation-split-view.js +17 -12
- package/dist/components/layout/split-views/navigation-split-view/navigation-split-view.js.map +1 -1
- package/dist/components/layout/split-views/navigation-split-view/navigation-split-view.styles.d.ts.map +1 -1
- package/dist/components/layout/split-views/navigation-split-view/navigation-split-view.styles.js +4 -0
- package/dist/components/layout/split-views/navigation-split-view/navigation-split-view.styles.js.map +1 -1
- package/dist/components/layout/split-views/side-by-side-split-view/side-by-side-split-view.d.ts +3 -1
- package/dist/components/layout/split-views/side-by-side-split-view/side-by-side-split-view.d.ts.map +1 -1
- package/dist/components/layout/split-views/side-by-side-split-view/side-by-side-split-view.js +3 -1
- package/dist/components/layout/split-views/side-by-side-split-view/side-by-side-split-view.js.map +1 -1
- package/dist/components/layout/split-views/split-view-pane/split-view-pane.d.ts +4 -4
- package/dist/components/layout/split-views/split-view-pane/split-view-pane.d.ts.map +1 -1
- package/dist/components/layout/split-views/split-view-pane/split-view-pane.js +8 -8
- package/dist/components/layout/split-views/split-view-pane/split-view-pane.js.map +1 -1
- package/dist/components/layout/window/window.d.ts +30 -18
- package/dist/components/layout/window/window.d.ts.map +1 -1
- package/dist/components/layout/window/window.js +68 -32
- package/dist/components/layout/window/window.js.map +1 -1
- package/dist/components/lists-and-tables/cells/cell/cell.d.ts +4 -2
- package/dist/components/lists-and-tables/cells/cell/cell.d.ts.map +1 -1
- package/dist/components/lists-and-tables/cells/cell/cell.js +7 -5
- package/dist/components/lists-and-tables/cells/cell/cell.js.map +1 -1
- package/dist/components/lists-and-tables/cells/drag-handle-cell/drag-handle-cell.d.ts.map +1 -1
- package/dist/components/lists-and-tables/cells/drag-handle-cell/drag-handle-cell.js +2 -1
- 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.template.d.ts.map +1 -1
- package/dist/components/lists-and-tables/cells/drag-handle-cell/drag-handle-cell.template.js +88 -16
- package/dist/components/lists-and-tables/cells/drag-handle-cell/drag-handle-cell.template.js.map +1 -1
- package/dist/components/lists-and-tables/cells/icon-cell/icon-cell.d.ts +4 -2
- package/dist/components/lists-and-tables/cells/icon-cell/icon-cell.d.ts.map +1 -1
- package/dist/components/lists-and-tables/cells/icon-cell/icon-cell.js +7 -5
- package/dist/components/lists-and-tables/cells/icon-cell/icon-cell.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 +23 -0
- package/dist/components/lists-and-tables/cells/icon-cell/icon-cell.styles.js.map +1 -1
- package/dist/components/lists-and-tables/cells/icon-cell/icon-cell.template.d.ts.map +1 -1
- package/dist/components/lists-and-tables/cells/icon-cell/icon-cell.template.js +11 -2
- package/dist/components/lists-and-tables/cells/icon-cell/icon-cell.template.js.map +1 -1
- package/dist/components/lists-and-tables/cells/text-cell/text-cell.d.ts +2 -2
- package/dist/components/lists-and-tables/cells/text-cell/text-cell.d.ts.map +1 -1
- package/dist/components/lists-and-tables/cells/text-cell/text-cell.js +5 -5
- package/dist/components/lists-and-tables/cells/text-cell/text-cell.js.map +1 -1
- package/dist/components/lists-and-tables/cells/text-cell/text-cell.template.d.ts.map +1 -1
- package/dist/components/lists-and-tables/cells/text-cell/text-cell.template.js +8 -2
- package/dist/components/lists-and-tables/cells/text-cell/text-cell.template.js.map +1 -1
- package/dist/components/lists-and-tables/cells/timeline-track-cell/timeline-track-cell.d.ts +11 -11
- 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 +15 -15
- 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.js +5 -5
- package/dist/components/lists-and-tables/cells/timeline-track-cell/timeline-track-cell.template.js +2 -2
- 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.d.ts +3 -3
- package/dist/components/lists-and-tables/cells/title-cell/title-cell.d.ts.map +1 -1
- package/dist/components/lists-and-tables/cells/title-cell/title-cell.js +6 -6
- package/dist/components/lists-and-tables/cells/title-cell/title-cell.js.map +1 -1
- package/dist/components/lists-and-tables/cells/title-cell/title-cell.template.d.ts.map +1 -1
- package/dist/components/lists-and-tables/cells/title-cell/title-cell.template.js +8 -2
- package/dist/components/lists-and-tables/cells/title-cell/title-cell.template.js.map +1 -1
- package/dist/components/lists-and-tables/list/list.d.ts +14 -11
- package/dist/components/lists-and-tables/list/list.d.ts.map +1 -1
- package/dist/components/lists-and-tables/list/list.js +36 -36
- 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 +9 -5
- 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 +26 -9
- 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 +65 -43
- package/dist/components/lists-and-tables/list-item/list-item.d.ts.map +1 -1
- package/dist/components/lists-and-tables/list-item/list-item.js +116 -47
- 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 +4 -14
- package/dist/components/lists-and-tables/list-item/list-item.styles.js.map +1 -1
- package/dist/components/lists-and-tables/list-item-segment/list-item-segment.d.ts +35 -10
- package/dist/components/lists-and-tables/list-item-segment/list-item-segment.d.ts.map +1 -1
- package/dist/components/lists-and-tables/list-item-segment/list-item-segment.js +45 -18
- package/dist/components/lists-and-tables/list-item-segment/list-item-segment.js.map +1 -1
- package/dist/components/lists-and-tables/list-item-segment/list-item-segment.styles.d.ts.map +1 -1
- package/dist/components/lists-and-tables/list-item-segment/list-item-segment.styles.js +4 -14
- package/dist/components/lists-and-tables/list-item-segment/list-item-segment.styles.js.map +1 -1
- package/dist/components/lists-and-tables/list-item-segment/list-item-segment.template.d.ts +1 -1
- package/dist/components/lists-and-tables/list-item-segment/list-item-segment.template.d.ts.map +1 -1
- package/dist/components/lists-and-tables/list-item-segment/list-item-segment.template.js +11 -2
- package/dist/components/lists-and-tables/list-item-segment/list-item-segment.template.js.map +1 -1
- package/dist/components/lists-and-tables/table/table.d.ts +4 -2
- package/dist/components/lists-and-tables/table/table.d.ts.map +1 -1
- package/dist/components/lists-and-tables/table/table.js +15 -12
- package/dist/components/lists-and-tables/table/table.js.map +1 -1
- package/dist/components/navigation/breadcrumbs/breadcrumbs.d.ts +0 -2
- package/dist/components/navigation/breadcrumbs/breadcrumbs.d.ts.map +1 -1
- package/dist/components/navigation/breadcrumbs/breadcrumbs.js +4 -19
- 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.js +6 -6
- package/dist/components/navigation/document-tab-bar/document-tab-bar.js.map +1 -1
- package/dist/components/navigation/document-tab-bar/document-tab-bar.template.d.ts.map +1 -1
- package/dist/components/navigation/document-tab-bar/document-tab-bar.template.js +10 -4
- package/dist/components/navigation/document-tab-bar/document-tab-bar.template.js.map +1 -1
- package/dist/components/navigation/link/link.template.js +2 -2
- package/dist/components/navigation/menu-bar/menu-bar.js +1 -1
- package/dist/components/navigation/menu-bar/menu-bar.js.map +1 -1
- package/dist/components/navigation/menu-bar-item/menu-bar-item.template.js +4 -4
- package/dist/components/navigation/pagination/pagination.d.ts +0 -3
- package/dist/components/navigation/pagination/pagination.d.ts.map +1 -1
- package/dist/components/navigation/pagination/pagination.js +2 -13
- package/dist/components/navigation/pagination/pagination.js.map +1 -1
- package/dist/components/navigation/pagination/pagination.styles.js +4 -4
- package/dist/components/navigation/pagination/pagination.template.js +3 -3
- package/dist/components/navigation/tab-bar/tab-bar.template.js +2 -2
- package/dist/components/navigation/top-navigation-bar/top-navigation-bar.d.ts +12 -0
- package/dist/components/navigation/top-navigation-bar/top-navigation-bar.d.ts.map +1 -1
- package/dist/components/navigation/top-navigation-bar/top-navigation-bar.js +37 -2
- package/dist/components/navigation/top-navigation-bar/top-navigation-bar.js.map +1 -1
- package/dist/components/navigation/top-navigation-bar/top-navigation-bar.styles.d.ts.map +1 -1
- package/dist/components/navigation/top-navigation-bar/top-navigation-bar.styles.js +48 -3
- package/dist/components/navigation/top-navigation-bar/top-navigation-bar.styles.js.map +1 -1
- package/dist/components/navigation/top-navigation-bar/top-navigation-bar.template.d.ts.map +1 -1
- package/dist/components/navigation/top-navigation-bar/top-navigation-bar.template.js +4 -2
- package/dist/components/navigation/top-navigation-bar/top-navigation-bar.template.js.map +1 -1
- package/dist/components/navigation/top-title-bar/top-title-bar.d.ts +6 -2
- package/dist/components/navigation/top-title-bar/top-title-bar.d.ts.map +1 -1
- package/dist/components/navigation/top-title-bar/top-title-bar.js +7 -2
- package/dist/components/navigation/top-title-bar/top-title-bar.js.map +1 -1
- package/dist/components/navigation/top-title-bar/top-title-bar.styles.js +2 -2
- package/dist/components/navigation/top-title-bar/top-title-bar.template.d.ts.map +1 -1
- package/dist/components/navigation/top-title-bar/top-title-bar.template.js +21 -6
- package/dist/components/navigation/top-title-bar/top-title-bar.template.js.map +1 -1
- package/dist/components/status-and-feedback/activity-indicator/activity-indicator.d.ts.map +1 -1
- package/dist/components/status-and-feedback/activity-indicator/activity-indicator.js +2 -1
- 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 +4 -4
- package/dist/components/status-and-feedback/badge/badge.template.js +1 -1
- package/dist/components/status-and-feedback/banner/banner.d.ts.map +1 -1
- package/dist/components/status-and-feedback/banner/banner.js +2 -1
- package/dist/components/status-and-feedback/banner/banner.js.map +1 -1
- package/dist/components/status-and-feedback/banner/banner.template.js +2 -2
- package/dist/components/status-and-feedback/inline-dialog/inline-dialog.template.js +1 -1
- package/dist/components/status-and-feedback/just-in-time-education/just-in-time-education.template.js +1 -1
- package/dist/components/status-and-feedback/modal-dialog/modal-dialog.d.ts +14 -5
- 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 +43 -13
- 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 +4 -1
- package/dist/components/status-and-feedback/modal-dialog/modal-dialog.template.js.map +1 -1
- package/dist/components/status-and-feedback/notification/notification.d.ts +8 -8
- package/dist/components/status-and-feedback/notification/notification.d.ts.map +1 -1
- package/dist/components/status-and-feedback/notification/notification.js +13 -13
- package/dist/components/status-and-feedback/notification/notification.js.map +1 -1
- package/dist/components/status-and-feedback/notification/notification.template.d.ts.map +1 -1
- package/dist/components/status-and-feedback/notification/notification.template.js +6 -3
- package/dist/components/status-and-feedback/notification/notification.template.js.map +1 -1
- package/dist/components/status-and-feedback/notification/{notification-region.d.ts → notifications-area.d.ts} +3 -3
- package/dist/components/status-and-feedback/notification/notifications-area.d.ts.map +1 -0
- package/dist/components/status-and-feedback/notification/{notification-region.js → notifications-area.js} +137 -140
- package/dist/components/status-and-feedback/notification/notifications-area.js.map +1 -0
- package/dist/components/status-and-feedback/progress-bar/progress-bar.d.ts +4 -4
- package/dist/components/status-and-feedback/progress-bar/progress-bar.d.ts.map +1 -1
- package/dist/components/status-and-feedback/progress-bar/progress-bar.js +11 -10
- 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.d.ts.map +1 -1
- package/dist/components/status-and-feedback/progress-bar/progress-bar.styles.js +10 -6
- package/dist/components/status-and-feedback/progress-bar/progress-bar.styles.js.map +1 -1
- package/dist/components/status-and-feedback/progress-bar/progress-bar.template.d.ts.map +1 -1
- package/dist/components/status-and-feedback/progress-bar/progress-bar.template.js +3 -2
- 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 +6 -4
- package/dist/components/status-and-feedback/progress-circle/progress-circle.d.ts.map +1 -1
- package/dist/components/status-and-feedback/progress-circle/progress-circle.js +16 -13
- 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.d.ts.map +1 -1
- package/dist/components/status-and-feedback/progress-circle/progress-circle.template.js +106 -18
- 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.template.js +1 -1
- package/dist/components/status-and-feedback/step-indicator/step-indicator.d.ts +4 -1
- package/dist/components/status-and-feedback/step-indicator/step-indicator.d.ts.map +1 -1
- package/dist/components/status-and-feedback/step-indicator/step-indicator.js +4 -1
- package/dist/components/status-and-feedback/step-indicator/step-indicator.js.map +1 -1
- package/dist/components/status-and-feedback/step-indicator/step-indicator.template.js +2 -2
- package/dist/components/{with-translations-BAKFoEKy.js → with-translations-Dt2DTXJF.js} +40 -12
- package/dist/css/form-section.css +4 -4
- package/dist/css/form.css +4 -0
- package/dist/css/rich-text.css +31 -12
- package/dist/css/variables.css +33 -56
- package/dist/nldd.min.js +1772 -1113
- package/dist/translations/en-US.d.ts +17 -0
- package/dist/translations/en-US.d.ts.map +1 -0
- package/dist/translations/en-US.js +185 -0
- package/dist/translations/en-US.js.map +1 -0
- package/dist/translations/fy.d.ts +20 -0
- package/dist/translations/fy.d.ts.map +1 -0
- package/dist/translations/fy.js +185 -0
- package/dist/translations/fy.js.map +1 -0
- package/dist/translations/nl.generated.d.ts +188 -0
- package/dist/translations/nl.generated.d.ts.map +1 -0
- package/dist/translations/nl.generated.js +101 -0
- package/dist/translations/nl.generated.js.map +1 -0
- package/dist/translations/pap-AW.d.ts +22 -0
- package/dist/translations/pap-AW.d.ts.map +1 -0
- package/dist/translations/pap-AW.js +185 -0
- package/dist/translations/pap-AW.js.map +1 -0
- package/dist/translations/pap-CW.d.ts +22 -0
- package/dist/translations/pap-CW.d.ts.map +1 -0
- package/dist/translations/pap-CW.js +185 -0
- package/dist/translations/pap-CW.js.map +1 -0
- package/dist/types/vue.d.ts +387 -302
- package/dist/utilities/page-section-mixin.d.ts +3 -8
- package/dist/utilities/page-section-mixin.d.ts.map +1 -1
- package/dist/utilities/page-section-mixin.js +4 -84
- package/dist/utilities/page-section-mixin.js.map +1 -1
- package/dist/utilities/title-bar-label-controller.d.ts +25 -0
- package/dist/utilities/title-bar-label-controller.d.ts.map +1 -0
- package/dist/utilities/title-bar-label-controller.js +52 -0
- package/dist/utilities/title-bar-label-controller.js.map +1 -0
- package/dist/utilities/translations.d.ts +37 -0
- package/dist/utilities/translations.d.ts.map +1 -0
- package/dist/utilities/translations.js +80 -0
- package/dist/utilities/translations.js.map +1 -0
- package/dist/utilities/with-translations.d.ts.map +1 -1
- package/dist/utilities/with-translations.js +2 -15
- package/dist/utilities/with-translations.js.map +1 -1
- package/package.json +32 -4
- package/dist/components/status-and-feedback/notification/notification-region.d.ts.map +0 -1
- package/dist/components/status-and-feedback/notification/notification-region.js.map +0 -1
|
@@ -17,6 +17,13 @@ declare const NLDDListItem_base: (abstract new (...args: any[]) => LitElement &
|
|
|
17
17
|
* plain container otherwise. All cells and segments share one flat
|
|
18
18
|
* slot, in source order.
|
|
19
19
|
*
|
|
20
|
+
* ## One action or several
|
|
21
|
+
* With one action, make the row itself the control (`href`, `button`,
|
|
22
|
+
* `checkbox` or `radio`): the whole row is then one hit area. With two or
|
|
23
|
+
* more, give each its own `nldd-list-item-segment` and leave the row without
|
|
24
|
+
* an action of its own. Both at once nests a control inside a control, and the
|
|
25
|
+
* item warns about that in development.
|
|
26
|
+
*
|
|
20
27
|
* ## Geometry
|
|
21
28
|
* Two rules govern every row:
|
|
22
29
|
* 1. State fills always paint the WIDENED row geometry — the row box extended
|
|
@@ -57,8 +64,8 @@ declare const NLDDListItem_base: (abstract new (...args: any[]) => LitElement &
|
|
|
57
64
|
*
|
|
58
65
|
* `checkbox` makes the WHOLE row the control: the inner action becomes a
|
|
59
66
|
* `role="checkbox"` button carrying `aria-checked`, it toggles `checked` on
|
|
60
|
-
* activation and fires `change`. Slot
|
|
61
|
-
* before the text
|
|
67
|
+
* activation and fires `change`. Slot an `nldd-checkbox decorative` (or any
|
|
68
|
+
* glyph) before the text: it only shows the state, since the row already
|
|
62
69
|
* conveys role and state, and a second focusable control would double the tab
|
|
63
70
|
* stops. Do NOT nest a real `<input type="checkbox">` in the action: interactive
|
|
64
71
|
* content inside a `<button>` is invalid HTML and AT announces the button, not
|
|
@@ -82,20 +89,24 @@ declare const NLDDListItem_base: (abstract new (...args: any[]) => LitElement &
|
|
|
82
89
|
* @element nldd-list-item
|
|
83
90
|
*
|
|
84
91
|
* @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.
|
|
85
|
-
* @attr {
|
|
86
|
-
* @attr {
|
|
92
|
+
* @attr {string} href - Renders the item as an `<a>` with this URL. Wins over `checkbox` and `button`; without any of the three the item is a plain container with no action.
|
|
93
|
+
* @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.
|
|
94
|
+
* @attr {string} rel - Link rel forwarded to the `<a>`, only with `href`; with target '_blank', 'noopener noreferrer' is added to whatever you set
|
|
87
95
|
* @attr {boolean} button - Renders the item as a `<button>`. Last of the three: `href` and `checkbox` both win over it.
|
|
88
96
|
* @attr {boolean} checkbox - Makes the whole row a `role="checkbox"` control. Wins over `button`, loses to `href`.
|
|
89
97
|
* @attr {boolean} radio - Makes the whole row one radio of a group: the action becomes a `role="radio"` button carrying `aria-checked`, and activation sets `checked` (never clears it) and fires `change`. Put the rows in an `nldd-list type="radiogroup"`, which is what makes them a set. Wins over `button`, loses to `href` and `checkbox`. The arrow keys move focus without checking, where a native radio group and `nldd-radio-button-group` check as they go: a row can carry more than a label, so stepping past one should not commit it.
|
|
98
|
+
* @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.
|
|
99
|
+
* @attr {boolean} selected - Marks the item as selected: it is one of the rows you picked. 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`.
|
|
90
100
|
* @attr {boolean} checked - Checked state of a `checkbox` or `radio` row. A checkbox row toggles it on activation, a radio row only ever sets it
|
|
91
|
-
* @attr {boolean} disabled - Switches the row's own control off: a `button` or `checkbox` row stops responding and dims, a `href` row gets `aria-disabled` and its click is blocked (a link cannot be disabled natively). A row without a control of its own has nothing to switch off, and segments carry their own `disabled`. The arrow keys skip a disabled row.
|
|
92
101
|
* @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 segment marked `disclosure`. Written once either way; the item DEV-warns when there is nowhere for it to live.
|
|
93
|
-
* @attr {
|
|
94
|
-
* @attr {
|
|
95
|
-
* @attr {string} rel - Link rel forwarded to the `<a>`, only with `href`; with target '_blank', 'noopener noreferrer' is added to whatever you set
|
|
96
|
-
* @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.
|
|
102
|
+
* @attr {boolean} current - Marks the item as the one you are on: the page a menu row points at, the record a list has open. Exactly one row in a list carries it, where `selected` may be on many. It paints like `selected` at rest, and takes the highlighted fill while focus is anywhere in the row — including inside a nested `nldd-list-item-segment`, which is what a segmented row needs: the focus never reaches the row's own control, because there is none. In a `navigation` parent it puts `aria-current="page"` on the inner action. On a segmented row set it on the segment that holds the link instead: the row reads `current` off its own segments and paints itself, so it is written once, where `aria-current` belongs.
|
|
103
|
+
* @attr {boolean} disabled - Switches the row's own control off: a `button` or `checkbox` row stops responding and dims, a `href` row gets `aria-disabled` and its click is blocked (a link cannot be disabled natively). A row without a control of its own has nothing to switch off, and segments carry their own `disabled`. The arrow keys skip a disabled row.
|
|
97
104
|
*
|
|
98
|
-
*
|
|
105
|
+
* Divider markers, set on a CELL in the row rather than on the row itself:
|
|
106
|
+
* @attr {boolean} divider-start - The divider starts at this cell instead of at the row's first text or title cell. On the leading cell it restores the full-width line.
|
|
107
|
+
* @attr {boolean} divider-end - The divider stops after this cell. With several markers the line runs from the first start to the last end.
|
|
108
|
+
*
|
|
109
|
+
* @slot - Cells and segments, in source order. Anything else, bare text included, gets none of a cell's typography, size and alignment, and warns in development.
|
|
99
110
|
* @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.
|
|
100
111
|
*
|
|
101
112
|
* @fires change - On a `checkbox` row after it toggles, and on a `radio` row when it becomes checked; detail: { checked: boolean }
|
|
@@ -103,35 +114,31 @@ declare const NLDDListItem_base: (abstract new (...args: any[]) => LitElement &
|
|
|
103
114
|
export declare class NLDDListItem extends NLDDListItem_base {
|
|
104
115
|
static styles: import("lit").CSSResult[];
|
|
105
116
|
size: ListItemSize;
|
|
106
|
-
|
|
117
|
+
/** When set, renders the item as a link. */
|
|
118
|
+
href?: string;
|
|
107
119
|
/**
|
|
108
|
-
*
|
|
109
|
-
*
|
|
110
|
-
*
|
|
111
|
-
*
|
|
112
|
-
* paint the same, so a menu reads the same as it always did; the difference
|
|
113
|
-
* shows when focus is in the row.
|
|
120
|
+
* Link target (e.g. '_blank' to open in a new tab). Forwarded to the `<a>`; only applies with href.
|
|
121
|
+
* When set to '_blank', the item appends a visually hidden "opens in new tab" announcement to the
|
|
122
|
+
* link so the change of context is conveyed to assistive technology (WCAG 2.1 SC 3.2.2). Override
|
|
123
|
+
* the wording via the `translations` property.
|
|
114
124
|
*/
|
|
115
|
-
|
|
125
|
+
target?: string;
|
|
126
|
+
/** Link rel, forwarded to the `<a>` with href. With target '_blank',
|
|
127
|
+
* 'noopener noreferrer' is added to it. */
|
|
128
|
+
rel?: string;
|
|
116
129
|
/** When set, renders the item as a button; ignored when href is set. */
|
|
117
130
|
button: boolean;
|
|
118
131
|
/** When set, the whole row is the checkbox control. Ignored when href is set. */
|
|
119
132
|
checkbox: boolean;
|
|
120
133
|
/** When set, the whole row is one radio of a group. Ignored when href is set. */
|
|
121
134
|
radio: boolean;
|
|
135
|
+
/** Set by the parent nldd-list when reorderable is enabled. Used as a CSS hook for drag handle visibility. */
|
|
136
|
+
reorderable: boolean;
|
|
137
|
+
selected: boolean;
|
|
122
138
|
/** Checked state of a `checkbox` or `radio` row. A checkbox row toggles it on
|
|
123
139
|
* activation; a radio row only ever sets it, because picking the option you
|
|
124
140
|
* already have is not a way to unpick it. */
|
|
125
141
|
checked: boolean;
|
|
126
|
-
/**
|
|
127
|
-
* Switches off the row's own control.
|
|
128
|
-
*
|
|
129
|
-
* Only the row's own: a row built out of segments has no control here, and
|
|
130
|
-
* each segment carries its own `disabled`. A link cannot be disabled the way
|
|
131
|
-
* a button can, so there it is `aria-disabled` plus a blocked click, the
|
|
132
|
-
* same trade `nldd-button` makes.
|
|
133
|
-
*/
|
|
134
|
-
disabled: boolean;
|
|
135
142
|
/**
|
|
136
143
|
* Disclosure state of a row that opens something (a tree row's children, a
|
|
137
144
|
* details panel). Reflected as `aria-expanded` on the row's own control —
|
|
@@ -139,20 +146,24 @@ export declare class NLDDListItem extends NLDDListItem_base {
|
|
|
139
146
|
* the attribute off entirely when the row discloses nothing.
|
|
140
147
|
*/
|
|
141
148
|
expanded?: boolean;
|
|
142
|
-
/** When set, renders the item as a link. */
|
|
143
|
-
href?: string;
|
|
144
149
|
/**
|
|
145
|
-
*
|
|
146
|
-
*
|
|
147
|
-
*
|
|
148
|
-
*
|
|
150
|
+
* The row you are on, as opposed to the rows you picked (`selected`).
|
|
151
|
+
*
|
|
152
|
+
* Kept apart because the two say different things and a list can show both:
|
|
153
|
+
* a checkbox list where three rows are ticked and one is open. At rest they
|
|
154
|
+
* paint the same, so a menu reads the same as it always did; the difference
|
|
155
|
+
* shows when focus is in the row.
|
|
149
156
|
*/
|
|
150
|
-
|
|
151
|
-
/**
|
|
152
|
-
*
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
157
|
+
current: boolean;
|
|
158
|
+
/**
|
|
159
|
+
* Switches off the row's own control.
|
|
160
|
+
*
|
|
161
|
+
* Only the row's own: a row built out of segments has no control here, and
|
|
162
|
+
* each segment carries its own `disabled`. A link cannot be disabled the way
|
|
163
|
+
* a button can, so there it is `aria-disabled` plus a blocked click, the
|
|
164
|
+
* same trade `nldd-button` makes.
|
|
165
|
+
*/
|
|
166
|
+
disabled: boolean;
|
|
156
167
|
private _showChildren;
|
|
157
168
|
private _parentType;
|
|
158
169
|
/** Set by the parent nldd-list when it runs the roving tabindex (everywhere
|
|
@@ -182,6 +193,8 @@ export declare class NLDDListItem extends NLDDListItem_base {
|
|
|
182
193
|
private _observedMarkerTargets;
|
|
183
194
|
private _warnedDegenerateDivider;
|
|
184
195
|
private _warnedChildrenOutsideTree;
|
|
196
|
+
private _warnedStrayContent;
|
|
197
|
+
private _warnedNestedControl;
|
|
185
198
|
connectedCallback(): void;
|
|
186
199
|
disconnectedCallback(): void;
|
|
187
200
|
private _onLightDomChange;
|
|
@@ -282,18 +295,27 @@ export declare class NLDDListItem extends NLDDListItem_base {
|
|
|
282
295
|
private _relayExpanded;
|
|
283
296
|
/** `expanded` needs a control to sit on; a plain container has none. */
|
|
284
297
|
private _warnOnStrayExpanded;
|
|
298
|
+
/** A row takes cells and segments. Anything else gets none of the typography,
|
|
299
|
+
* size and alignment a cell brings, and bare text in a clickable row falls
|
|
300
|
+
* back to the browser's button font. */
|
|
301
|
+
private _warnOnStrayContent;
|
|
302
|
+
/** A row that is its own control cannot hold another one: a control inside a
|
|
303
|
+
* link or button is invalid HTML, doubles the tab stop, and a press on it can
|
|
304
|
+
* set off the row as well. A glyph that only shows the row's state is fine:
|
|
305
|
+
* a `decorative` radio button, or a checkbox marked `aria-hidden`. */
|
|
306
|
+
private _warnOnNestedControl;
|
|
285
307
|
/** True when the item is an option in a `type="listbox"` parent. */
|
|
286
308
|
get _isListboxOption(): boolean;
|
|
287
309
|
/**
|
|
288
|
-
* Reads the initial
|
|
310
|
+
* Reads the initial appearance + type from the closest parent nldd-list, before
|
|
289
311
|
* the first render, so the item is styled correctly on first paint. Later changes
|
|
290
|
-
* are PUSHED by the list: its `updated` / `_updateItems` calls `
|
|
312
|
+
* are PUSHED by the list: its `updated` / `_updateItems` calls `_applyAppearance`
|
|
291
313
|
* and `_applyParentType` on every item, so the list is the single source of
|
|
292
|
-
* truth and a runtime
|
|
314
|
+
* truth and a runtime appearance/type switch (or an item moved to another list)
|
|
293
315
|
* always tracks its current parent.
|
|
294
316
|
*/
|
|
295
317
|
private _syncWithList;
|
|
296
|
-
|
|
318
|
+
_applyAppearance(appearance: string): void;
|
|
297
319
|
_applyParentType(type: ListType): void;
|
|
298
320
|
/** Nested rows sit in this item's `children` slot, not the list's, so a plain
|
|
299
321
|
* `querySelector` from the list walks past them. */
|
|
@@ -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;AACjC,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,KAAK,CAAC;AAQ1C,OAAO,KAAK,EAAY,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAE1D,MAAM,MAAM,YAAY,GAAG,IAAI,GAAG,IAAI,CAAC;AAevC,MAAM,MAAM,aAAa,GAAG,WAAW,GAAG;IAAE,KAAK,CAAC,EAAE,OAAO,CAAA;CAAE,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;AACjC,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,KAAK,CAAC;AAQ1C,OAAO,KAAK,EAAY,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAE1D,MAAM,MAAM,YAAY,GAAG,IAAI,GAAG,IAAI,CAAC;AAevC,MAAM,MAAM,aAAa,GAAG,WAAW,GAAG;IAAE,KAAK,CAAC,EAAE,OAAO,CAAA;CAAE,CAAC;;;;;;;AAyD9D;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmGG;AACH,qBACa,YAAa,SAAQ,iBAAsD;IACvF,OAAgB,MAAM,4BAAoB;IAG1C,IAAI,EAAE,YAAY,CAAQ;IAE1B,4CAA4C;IAE5C,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd;;;;;OAKG;IAEH,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB;gDAC4C;IAE5C,GAAG,CAAC,EAAE,MAAM,CAAC;IAEb,wEAAwE;IAExE,MAAM,UAAS;IAEf,iFAAiF;IAEjF,QAAQ,UAAS;IAEjB,iFAAiF;IAEjF,KAAK,UAAS;IAEd,8GAA8G;IAE9G,WAAW,UAAS;IAGpB,QAAQ,UAAS;IAEjB;;kDAE8C;IAE9C,OAAO,UAAS;IAEhB;;;;;OAKG;IAEH,QAAQ,CAAC,EAAE,OAAO,CAAC;IAEnB;;;;;;;OAOG;IAEH,OAAO,UAAS;IAEhB;;;;;;;OAOG;IAEH,QAAQ,UAAS;IAGjB,OAAO,CAAC,aAAa,CAAS;IAG9B,OAAO,CAAC,WAAW,CAAoB;IAEvC;;4EAEwE;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;;yCAEqC;IACrC,OAAO,CAAC,oBAAoB,CAAgC;IAE5D;4DACwD;IACxD,OAAO,CAAC,sBAAsB,CAA+B;IAE7D,OAAO,CAAC,sBAAsB,CAAiB;IAE/C,OAAO,CAAC,wBAAwB,CAAS;IAEzC,OAAO,CAAC,0BAA0B,CAAS;IAC3C,OAAO,CAAC,mBAAmB,CAAS;IACpC,OAAO,CAAC,oBAAoB,CAAS;IAE5B,iBAAiB;IAkCjB,oBAAoB;IAc7B,OAAO,CAAC,iBAAiB;IAgBzB,OAAO,KAAK,WAAW,GAEtB;IAED;;;;;;;;OAQG;IACH,OAAO,CAAC,eAAe;IAsBvB;;;;;;;;;OASG;IACH,IAAI,aAAa,IAAI,OAAO,CAO3B;IAED;;;;;;;;;OASG;IACH,OAAO,CAAC,qBAAqB;IAO7B;;;kEAG8D;IAC9D,OAAO,CAAC,qBAAqB;IAK7B;;;;;;;;2DAQuD;IACvD,OAAO,CAAC,kBAAkB;IAgBjB,UAAU,CAAC,OAAO,EAAE,cAAc;IASlC,YAAY;IAkBrB;;;;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;IA0B9C;;;;;;;OAOG;IACH,OAAO,KAAK,iBAAiB,GAG5B;IAED;mFAC+E;IAC/E,OAAO,CAAC,cAAc;IAKtB,wEAAwE;IACxE,OAAO,CAAC,oBAAoB;IAQ5B;;6CAEyC;IACzC,OAAO,CAAC,mBAAmB,CAiBzB;IAEF;;;2EAGuE;IACvE,OAAO,CAAC,oBAAoB;IAa5B,oEAAoE;IACpE,IAAI,gBAAgB,IAAI,OAAO,CAE9B;IAED;;;;;;;OAOG;IACH,OAAO,CAAC,aAAa;IAYrB,gBAAgB,CAAC,UAAU,EAAE,MAAM;IAMnC,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;IA8BxB;;;;;;;OAOG;IACH;;;;;;;OAOG;IACH,OAAO,CAAC,qBAAqB;IAa7B,OAAO,CAAC,sBAAsB;IAyE9B,OAAO,CAAC,oBAAoB;IAK5B;6EACyE;IACzE,OAAO,CAAC,eAAe;IAuBvB,OAAO,CAAC,YAAY,CA+BlB;IAEF,OAAO,CAAC,cAAc,CAOpB;IAEF,OAAO,CAAC,eAAe,CAErB;IAEF;;;;;OAKG;IACH,OAAO,CAAC,YAAY,CAKlB;IAEF,OAAO,CAAC,cAAc,CAgBpB;IAEF;;iFAE6E;IAC7E,OAAO,CAAC,gBAAgB;IAQxB,OAAO,CAAC,aAAa,CAInB;IAEF;;;OAGG;IACM,KAAK,CAAC,OAAO,CAAC,EAAE,YAAY,GAAG,IAAI;IAY5C;;;;;;;;;;;;;;;OAeG;IACH,mBAAmB,IAAI,IAAI;IAmB3B;;;;;;;;;;;;;;;;OAgBG;IACH,kBAAkB,CAAC,IAAI,EAAE,SAAS,WAAW,EAAE,GAAG,OAAO,GAAG,IAAI;IAWhE;;;;;;;;;;OAUG;IACH,aAAa,IAAI,IAAI;IAMrB,wEAAwE;IACxE,OAAO,CAAC,YAAY;IAQpB;;2CAEuC;IACvC,OAAO,KAAK,kBAAkB,GAS7B;IAED;;mCAE+B;IAC/B,mBAAmB,IAAI,OAAO;IAa9B;;;;;OAKG;IACH,gBAAgB,IAAI,OAAO;IAc3B,yEAAyE;IACzE,IAAI,SAAS,IAAI,YAAY,GAAG,SAAS,CAIxC;IAEQ,MAAM;CAmCf;AAED,OAAO,CAAC,MAAM,CAAC;IACd,UAAU,qBAAqB;QAC9B,gBAAgB,EAAE,YAAY,CAAC;KAC/B;CACD"}
|
|
@@ -65,12 +65,25 @@ function releaseTabbable(el) {
|
|
|
65
65
|
applyAuthoredTabState(el, authored);
|
|
66
66
|
authoredTabState.delete(el);
|
|
67
67
|
}
|
|
68
|
+
/** What counts as a control of its own inside a row that already is one. */
|
|
69
|
+
const NESTED_CONTROLS = [
|
|
70
|
+
'nldd-list-item-segment', 'nldd-button', 'nldd-icon-button', 'nldd-link',
|
|
71
|
+
'nldd-checkbox', 'nldd-radio-button', 'nldd-switch',
|
|
72
|
+
'a[href]', 'button', 'input', 'select', 'textarea',
|
|
73
|
+
].join(', ');
|
|
68
74
|
/**
|
|
69
75
|
* A row within an `nldd-list`. Renders as a link when `href` is set, as a
|
|
70
76
|
* checkbox when `checkbox` is set, as a button when `button` is set, or as a
|
|
71
77
|
* plain container otherwise. All cells and segments share one flat
|
|
72
78
|
* slot, in source order.
|
|
73
79
|
*
|
|
80
|
+
* ## One action or several
|
|
81
|
+
* With one action, make the row itself the control (`href`, `button`,
|
|
82
|
+
* `checkbox` or `radio`): the whole row is then one hit area. With two or
|
|
83
|
+
* more, give each its own `nldd-list-item-segment` and leave the row without
|
|
84
|
+
* an action of its own. Both at once nests a control inside a control, and the
|
|
85
|
+
* item warns about that in development.
|
|
86
|
+
*
|
|
74
87
|
* ## Geometry
|
|
75
88
|
* Two rules govern every row:
|
|
76
89
|
* 1. State fills always paint the WIDENED row geometry — the row box extended
|
|
@@ -111,8 +124,8 @@ function releaseTabbable(el) {
|
|
|
111
124
|
*
|
|
112
125
|
* `checkbox` makes the WHOLE row the control: the inner action becomes a
|
|
113
126
|
* `role="checkbox"` button carrying `aria-checked`, it toggles `checked` on
|
|
114
|
-
* activation and fires `change`. Slot
|
|
115
|
-
* before the text
|
|
127
|
+
* activation and fires `change`. Slot an `nldd-checkbox decorative` (or any
|
|
128
|
+
* glyph) before the text: it only shows the state, since the row already
|
|
116
129
|
* conveys role and state, and a second focusable control would double the tab
|
|
117
130
|
* stops. Do NOT nest a real `<input type="checkbox">` in the action: interactive
|
|
118
131
|
* content inside a `<button>` is invalid HTML and AT announces the button, not
|
|
@@ -136,20 +149,24 @@ function releaseTabbable(el) {
|
|
|
136
149
|
* @element nldd-list-item
|
|
137
150
|
*
|
|
138
151
|
* @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.
|
|
139
|
-
* @attr {
|
|
140
|
-
* @attr {
|
|
152
|
+
* @attr {string} href - Renders the item as an `<a>` with this URL. Wins over `checkbox` and `button`; without any of the three the item is a plain container with no action.
|
|
153
|
+
* @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.
|
|
154
|
+
* @attr {string} rel - Link rel forwarded to the `<a>`, only with `href`; with target '_blank', 'noopener noreferrer' is added to whatever you set
|
|
141
155
|
* @attr {boolean} button - Renders the item as a `<button>`. Last of the three: `href` and `checkbox` both win over it.
|
|
142
156
|
* @attr {boolean} checkbox - Makes the whole row a `role="checkbox"` control. Wins over `button`, loses to `href`.
|
|
143
157
|
* @attr {boolean} radio - Makes the whole row one radio of a group: the action becomes a `role="radio"` button carrying `aria-checked`, and activation sets `checked` (never clears it) and fires `change`. Put the rows in an `nldd-list type="radiogroup"`, which is what makes them a set. Wins over `button`, loses to `href` and `checkbox`. The arrow keys move focus without checking, where a native radio group and `nldd-radio-button-group` check as they go: a row can carry more than a label, so stepping past one should not commit it.
|
|
158
|
+
* @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.
|
|
159
|
+
* @attr {boolean} selected - Marks the item as selected: it is one of the rows you picked. 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`.
|
|
144
160
|
* @attr {boolean} checked - Checked state of a `checkbox` or `radio` row. A checkbox row toggles it on activation, a radio row only ever sets it
|
|
145
|
-
* @attr {boolean} disabled - Switches the row's own control off: a `button` or `checkbox` row stops responding and dims, a `href` row gets `aria-disabled` and its click is blocked (a link cannot be disabled natively). A row without a control of its own has nothing to switch off, and segments carry their own `disabled`. The arrow keys skip a disabled row.
|
|
146
161
|
* @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 segment marked `disclosure`. Written once either way; the item DEV-warns when there is nowhere for it to live.
|
|
147
|
-
* @attr {
|
|
148
|
-
* @attr {
|
|
149
|
-
*
|
|
150
|
-
*
|
|
162
|
+
* @attr {boolean} current - Marks the item as the one you are on: the page a menu row points at, the record a list has open. Exactly one row in a list carries it, where `selected` may be on many. It paints like `selected` at rest, and takes the highlighted fill while focus is anywhere in the row — including inside a nested `nldd-list-item-segment`, which is what a segmented row needs: the focus never reaches the row's own control, because there is none. In a `navigation` parent it puts `aria-current="page"` on the inner action. On a segmented row set it on the segment that holds the link instead: the row reads `current` off its own segments and paints itself, so it is written once, where `aria-current` belongs.
|
|
163
|
+
* @attr {boolean} disabled - Switches the row's own control off: a `button` or `checkbox` row stops responding and dims, a `href` row gets `aria-disabled` and its click is blocked (a link cannot be disabled natively). A row without a control of its own has nothing to switch off, and segments carry their own `disabled`. The arrow keys skip a disabled row.
|
|
164
|
+
*
|
|
165
|
+
* Divider markers, set on a CELL in the row rather than on the row itself:
|
|
166
|
+
* @attr {boolean} divider-start - The divider starts at this cell instead of at the row's first text or title cell. On the leading cell it restores the full-width line.
|
|
167
|
+
* @attr {boolean} divider-end - The divider stops after this cell. With several markers the line runs from the first start to the last end.
|
|
151
168
|
*
|
|
152
|
-
* @slot - Cells and segments, in source order
|
|
169
|
+
* @slot - Cells and segments, in source order. Anything else, bare text included, gets none of a cell's typography, size and alignment, and warns in development.
|
|
153
170
|
* @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.
|
|
154
171
|
*
|
|
155
172
|
* @fires change - On a `checkbox` row after it toggles, and on a `radio` row when it becomes checked; detail: { checked: boolean }
|
|
@@ -158,26 +175,28 @@ let NLDDListItem = NLDDListItem_1 = class NLDDListItem extends withTranslations(
|
|
|
158
175
|
constructor() {
|
|
159
176
|
super(...arguments);
|
|
160
177
|
this.size = 'md';
|
|
161
|
-
this.selected = false;
|
|
162
|
-
/**
|
|
163
|
-
* The row you are on, as opposed to the rows you picked (`selected`).
|
|
164
|
-
*
|
|
165
|
-
* Kept apart because the two say different things and a list can show both:
|
|
166
|
-
* a checkbox list where three rows are ticked and one is open. At rest they
|
|
167
|
-
* paint the same, so a menu reads the same as it always did; the difference
|
|
168
|
-
* shows when focus is in the row.
|
|
169
|
-
*/
|
|
170
|
-
this.current = false;
|
|
171
178
|
/** When set, renders the item as a button; ignored when href is set. */
|
|
172
179
|
this.button = false;
|
|
173
180
|
/** When set, the whole row is the checkbox control. Ignored when href is set. */
|
|
174
181
|
this.checkbox = false;
|
|
175
182
|
/** When set, the whole row is one radio of a group. Ignored when href is set. */
|
|
176
183
|
this.radio = false;
|
|
184
|
+
/** Set by the parent nldd-list when reorderable is enabled. Used as a CSS hook for drag handle visibility. */
|
|
185
|
+
this.reorderable = false;
|
|
186
|
+
this.selected = false;
|
|
177
187
|
/** Checked state of a `checkbox` or `radio` row. A checkbox row toggles it on
|
|
178
188
|
* activation; a radio row only ever sets it, because picking the option you
|
|
179
189
|
* already have is not a way to unpick it. */
|
|
180
190
|
this.checked = false;
|
|
191
|
+
/**
|
|
192
|
+
* The row you are on, as opposed to the rows you picked (`selected`).
|
|
193
|
+
*
|
|
194
|
+
* Kept apart because the two say different things and a list can show both:
|
|
195
|
+
* a checkbox list where three rows are ticked and one is open. At rest they
|
|
196
|
+
* paint the same, so a menu reads the same as it always did; the difference
|
|
197
|
+
* shows when focus is in the row.
|
|
198
|
+
*/
|
|
199
|
+
this.current = false;
|
|
181
200
|
/**
|
|
182
201
|
* Switches off the row's own control.
|
|
183
202
|
*
|
|
@@ -187,8 +206,6 @@ let NLDDListItem = NLDDListItem_1 = class NLDDListItem extends withTranslations(
|
|
|
187
206
|
* same trade `nldd-button` makes.
|
|
188
207
|
*/
|
|
189
208
|
this.disabled = false;
|
|
190
|
-
/** Set by the parent nldd-list when reorderable is enabled. Used as a CSS hook for drag handle visibility. */
|
|
191
|
-
this.reorderable = false;
|
|
192
209
|
this._showChildren = false;
|
|
193
210
|
this._parentType = 'list';
|
|
194
211
|
/** Set by the parent nldd-list when it runs the roving tabindex (everywhere
|
|
@@ -217,8 +234,36 @@ let NLDDListItem = NLDDListItem_1 = class NLDDListItem extends withTranslations(
|
|
|
217
234
|
this._observedMarkerTargets = [];
|
|
218
235
|
this._warnedDegenerateDivider = false;
|
|
219
236
|
this._warnedChildrenOutsideTree = false;
|
|
237
|
+
this._warnedStrayContent = false;
|
|
238
|
+
this._warnedNestedControl = false;
|
|
220
239
|
/** Remembers the size a cell was authored with, so a later push can restore it. */
|
|
221
240
|
this._ownCellSize = new WeakMap();
|
|
241
|
+
/** A row takes cells and segments. Anything else gets none of the typography,
|
|
242
|
+
* size and alignment a cell brings, and bare text in a clickable row falls
|
|
243
|
+
* back to the browser's button font. */
|
|
244
|
+
this._warnOnStrayContent = (e) => {
|
|
245
|
+
if (!import.meta.env?.DEV || this._warnedStrayContent)
|
|
246
|
+
return;
|
|
247
|
+
const slot = e.target;
|
|
248
|
+
if (slot.name)
|
|
249
|
+
return;
|
|
250
|
+
const stray = slot.assignedNodes({ flatten: true }).find((node) => {
|
|
251
|
+
if (node.nodeType === Node.TEXT_NODE)
|
|
252
|
+
return (node.textContent ?? '').trim() !== '';
|
|
253
|
+
if (node.nodeType !== Node.ELEMENT_NODE)
|
|
254
|
+
return false;
|
|
255
|
+
const tag = node.localName;
|
|
256
|
+
return tag !== 'nldd-list-item-segment' && !(tag.startsWith('nldd-') && tag.endsWith('-cell'));
|
|
257
|
+
});
|
|
258
|
+
this._warnOnNestedControl();
|
|
259
|
+
if (!stray)
|
|
260
|
+
return;
|
|
261
|
+
this._warnedStrayContent = true;
|
|
262
|
+
const what = stray.nodeType === Node.TEXT_NODE
|
|
263
|
+
? `bare text ("${stray.textContent.trim().slice(0, 40)}")`
|
|
264
|
+
: `<${stray.localName}>`;
|
|
265
|
+
console.warn(`nldd-list-item: ${what} sits directly in a row. A row takes cells and segments (nldd-text-cell, nldd-icon-cell, nldd-list-item-segment, …). Anything else gets none of their typography, size and alignment, and bare text in a clickable row falls back to the browser's button font. Wrap it in a cell.`);
|
|
266
|
+
};
|
|
222
267
|
this._handleClick = (e) => {
|
|
223
268
|
// A disabled <button> never gets here, but a link does: there is no such
|
|
224
269
|
// thing as a disabled <a>, so the row stops the navigation itself.
|
|
@@ -467,7 +512,7 @@ let NLDDListItem = NLDDListItem_1 = class NLDDListItem extends withTranslations(
|
|
|
467
512
|
}
|
|
468
513
|
willUpdate(changed) {
|
|
469
514
|
super.willUpdate(changed);
|
|
470
|
-
// Before the first render, so the row is painted with the list's
|
|
515
|
+
// Before the first render, so the row is painted with the list's appearance and
|
|
471
516
|
// type right away. Setting them in `firstUpdated` asks for a second render
|
|
472
517
|
// from inside the first.
|
|
473
518
|
if (this.hasUpdated || this.hasAttribute('data-nldd-clone'))
|
|
@@ -480,6 +525,9 @@ let NLDDListItem = NLDDListItem_1 = class NLDDListItem extends withTranslations(
|
|
|
480
525
|
if (this.hasAttribute('data-nldd-clone'))
|
|
481
526
|
return;
|
|
482
527
|
this._observeChildrenSlot();
|
|
528
|
+
// On the shadow root, not on the slot: the default slot is re-rendered
|
|
529
|
+
// inside a different wrapper when the row becomes a link or a button.
|
|
530
|
+
this.renderRoot.addEventListener('slotchange', this._warnOnStrayContent);
|
|
483
531
|
// Read out of the row's own shadow DOM, so not before the first render,
|
|
484
532
|
// and deferred out of the update cycle: setting the state here would
|
|
485
533
|
// schedule a second update from inside the first.
|
|
@@ -536,6 +584,7 @@ let NLDDListItem = NLDDListItem_1 = class NLDDListItem extends withTranslations(
|
|
|
536
584
|
}
|
|
537
585
|
if (changed.has('button') || changed.has('checkbox') || changed.has('radio') || changed.has('href')) {
|
|
538
586
|
this._updateInteractive();
|
|
587
|
+
this._warnOnNestedControl();
|
|
539
588
|
}
|
|
540
589
|
if (changed.has('expanded')) {
|
|
541
590
|
this._relayExpanded();
|
|
@@ -585,16 +634,36 @@ let NLDDListItem = NLDDListItem_1 = class NLDDListItem extends withTranslations(
|
|
|
585
634
|
return;
|
|
586
635
|
console.warn('nldd-list-item: `expanded` needs somewhere to live — make the row interactive (href, button or checkbox), or mark the segment that does the disclosing with `disclosure`.');
|
|
587
636
|
}
|
|
637
|
+
/** A row that is its own control cannot hold another one: a control inside a
|
|
638
|
+
* link or button is invalid HTML, doubles the tab stop, and a press on it can
|
|
639
|
+
* set off the row as well. A glyph that only shows the row's state is fine:
|
|
640
|
+
* a `decorative` radio button, or a checkbox marked `aria-hidden`. */
|
|
641
|
+
_warnOnNestedControl() {
|
|
642
|
+
if (!import.meta.env?.DEV || this._warnedNestedControl)
|
|
643
|
+
return;
|
|
644
|
+
if (this.hasAttribute('data-nldd-clone'))
|
|
645
|
+
return;
|
|
646
|
+
if (!(this.href || this.button || this.checkbox || this.radio))
|
|
647
|
+
return;
|
|
648
|
+
const nested = [...this.children]
|
|
649
|
+
.filter((child) => !child.slot)
|
|
650
|
+
.flatMap((child) => [child, ...child.querySelectorAll('*')])
|
|
651
|
+
.find((el) => el.matches(NESTED_CONTROLS) && !el.matches('[decorative]') && !el.closest('[aria-hidden="true"], [inert]'));
|
|
652
|
+
if (!nested)
|
|
653
|
+
return;
|
|
654
|
+
this._warnedNestedControl = true;
|
|
655
|
+
console.warn(`nldd-list-item: <${nested.localName}> sits in a row that is its own control (href, button, checkbox or radio). A control inside a control is invalid HTML and doubles the tab stop. With more than one action, give each its own nldd-list-item-segment and leave the row without an action.`);
|
|
656
|
+
}
|
|
588
657
|
/** True when the item is an option in a `type="listbox"` parent. */
|
|
589
658
|
get _isListboxOption() {
|
|
590
659
|
return this._parentType === 'listbox';
|
|
591
660
|
}
|
|
592
661
|
/**
|
|
593
|
-
* Reads the initial
|
|
662
|
+
* Reads the initial appearance + type from the closest parent nldd-list, before
|
|
594
663
|
* the first render, so the item is styled correctly on first paint. Later changes
|
|
595
|
-
* are PUSHED by the list: its `updated` / `_updateItems` calls `
|
|
664
|
+
* are PUSHED by the list: its `updated` / `_updateItems` calls `_applyAppearance`
|
|
596
665
|
* and `_applyParentType` on every item, so the list is the single source of
|
|
597
|
-
* truth and a runtime
|
|
666
|
+
* truth and a runtime appearance/type switch (or an item moved to another list)
|
|
598
667
|
* always tracks its current parent.
|
|
599
668
|
*/
|
|
600
669
|
_syncWithList() {
|
|
@@ -605,12 +674,12 @@ let NLDDListItem = NLDDListItem_1 = class NLDDListItem extends withTranslations(
|
|
|
605
674
|
}
|
|
606
675
|
return;
|
|
607
676
|
}
|
|
608
|
-
this.
|
|
677
|
+
this._applyAppearance(list.appearance);
|
|
609
678
|
this._applyParentType(list.type);
|
|
610
679
|
}
|
|
611
|
-
|
|
612
|
-
this._isBoxed =
|
|
613
|
-
this._relayToChildren(item => item.
|
|
680
|
+
_applyAppearance(appearance) {
|
|
681
|
+
this._isBoxed = appearance.startsWith('box');
|
|
682
|
+
this._relayToChildren(item => item._applyAppearance(appearance));
|
|
614
683
|
this.classList.toggle('is-boxed', this._isBoxed);
|
|
615
684
|
}
|
|
616
685
|
_applyParentType(type) {
|
|
@@ -750,7 +819,7 @@ let NLDDListItem = NLDDListItem_1 = class NLDDListItem extends withTranslations(
|
|
|
750
819
|
// A start past the last end: authoring error, fall back to full width.
|
|
751
820
|
if (import.meta.env?.DEV && !this._warnedDegenerateDivider) {
|
|
752
821
|
this._warnedDegenerateDivider = true;
|
|
753
|
-
console.warn('nldd-list-item
|
|
822
|
+
console.warn('<nldd-list-item>: divider-start lies past the last divider-end, so the divider falls back to the full content width.');
|
|
754
823
|
}
|
|
755
824
|
this.style.removeProperty('--_divider-inset-start');
|
|
756
825
|
this.style.removeProperty('--_divider-inset-end');
|
|
@@ -783,7 +852,7 @@ let NLDDListItem = NLDDListItem_1 = class NLDDListItem extends withTranslations(
|
|
|
783
852
|
// reach them. Relay what we were given, and they relay it downwards.
|
|
784
853
|
rows.forEach(row => {
|
|
785
854
|
const item = row;
|
|
786
|
-
item.
|
|
855
|
+
item._applyAppearance?.(this._isBoxed ? 'box-tinted' : 'simple');
|
|
787
856
|
item._applyParentType?.(this._parentType);
|
|
788
857
|
});
|
|
789
858
|
}
|
|
@@ -998,11 +1067,14 @@ __decorate([
|
|
|
998
1067
|
property({ reflect: true, converter: reflectNonDefault('md') })
|
|
999
1068
|
], NLDDListItem.prototype, "size", void 0);
|
|
1000
1069
|
__decorate([
|
|
1001
|
-
property({
|
|
1002
|
-
], NLDDListItem.prototype, "
|
|
1070
|
+
property({ reflect: true })
|
|
1071
|
+
], NLDDListItem.prototype, "href", void 0);
|
|
1003
1072
|
__decorate([
|
|
1004
|
-
property({
|
|
1005
|
-
], NLDDListItem.prototype, "
|
|
1073
|
+
property({ reflect: true })
|
|
1074
|
+
], NLDDListItem.prototype, "target", void 0);
|
|
1075
|
+
__decorate([
|
|
1076
|
+
property({ reflect: true })
|
|
1077
|
+
], NLDDListItem.prototype, "rel", void 0);
|
|
1006
1078
|
__decorate([
|
|
1007
1079
|
property({ type: Boolean, reflect: true })
|
|
1008
1080
|
], NLDDListItem.prototype, "button", void 0);
|
|
@@ -1014,25 +1086,22 @@ __decorate([
|
|
|
1014
1086
|
], NLDDListItem.prototype, "radio", void 0);
|
|
1015
1087
|
__decorate([
|
|
1016
1088
|
property({ type: Boolean, reflect: true })
|
|
1017
|
-
], NLDDListItem.prototype, "
|
|
1089
|
+
], NLDDListItem.prototype, "reorderable", void 0);
|
|
1018
1090
|
__decorate([
|
|
1019
1091
|
property({ type: Boolean, reflect: true })
|
|
1020
|
-
], NLDDListItem.prototype, "
|
|
1092
|
+
], NLDDListItem.prototype, "selected", void 0);
|
|
1021
1093
|
__decorate([
|
|
1022
1094
|
property({ type: Boolean, reflect: true })
|
|
1023
|
-
], NLDDListItem.prototype, "
|
|
1024
|
-
__decorate([
|
|
1025
|
-
property({ reflect: true })
|
|
1026
|
-
], NLDDListItem.prototype, "href", void 0);
|
|
1095
|
+
], NLDDListItem.prototype, "checked", void 0);
|
|
1027
1096
|
__decorate([
|
|
1028
|
-
property({ reflect: true })
|
|
1029
|
-
], NLDDListItem.prototype, "
|
|
1097
|
+
property({ type: Boolean, reflect: true })
|
|
1098
|
+
], NLDDListItem.prototype, "expanded", void 0);
|
|
1030
1099
|
__decorate([
|
|
1031
|
-
property({ reflect: true })
|
|
1032
|
-
], NLDDListItem.prototype, "
|
|
1100
|
+
property({ type: Boolean, reflect: true })
|
|
1101
|
+
], NLDDListItem.prototype, "current", void 0);
|
|
1033
1102
|
__decorate([
|
|
1034
1103
|
property({ type: Boolean, reflect: true })
|
|
1035
|
-
], NLDDListItem.prototype, "
|
|
1104
|
+
], NLDDListItem.prototype, "disabled", void 0);
|
|
1036
1105
|
__decorate([
|
|
1037
1106
|
state()
|
|
1038
1107
|
], NLDDListItem.prototype, "_showChildren", void 0);
|