@nldd/design-system 0.13.2 → 0.15.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/NOTICES.md +1 -1
- package/README.md +4 -2
- package/custom-elements.json +2089 -172
- package/dist/components/actions/button/button.d.ts +1 -3
- package/dist/components/actions/button/button.d.ts.map +1 -1
- package/dist/components/actions/button/button.js +27 -34
- package/dist/components/actions/button/button.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 -4
- package/dist/components/actions/button/button.template.js.map +1 -1
- package/dist/components/actions/button-bar/button-bar.d.ts +0 -2
- package/dist/components/actions/button-bar/button-bar.d.ts.map +1 -1
- package/dist/components/actions/button-bar/button-bar.js +2 -12
- package/dist/components/actions/button-bar/button-bar.js.map +1 -1
- package/dist/components/actions/button-group/button-group.d.ts +8 -3
- package/dist/components/actions/button-group/button-group.d.ts.map +1 -1
- package/dist/components/actions/button-group/button-group.js +40 -22
- package/dist/components/actions/button-group/button-group.js.map +1 -1
- package/dist/components/actions/icon-button/icon-button.d.ts +1 -2
- package/dist/components/actions/icon-button/icon-button.d.ts.map +1 -1
- package/dist/components/actions/icon-button/icon-button.js +14 -12
- package/dist/components/actions/icon-button/icon-button.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 +4 -4
- package/dist/components/actions/icon-button/icon-button.template.js.map +1 -1
- package/dist/components/actions/menu/menu-divider.d.ts +1 -0
- package/dist/components/actions/menu/menu-divider.d.ts.map +1 -1
- package/dist/components/actions/menu/menu-divider.js +1 -0
- package/dist/components/actions/menu/menu-divider.js.map +1 -1
- package/dist/components/actions/menu/menu-group.d.ts +1 -0
- package/dist/components/actions/menu/menu-group.d.ts.map +1 -1
- package/dist/components/actions/menu/menu-group.js +1 -0
- package/dist/components/actions/menu/menu-group.js.map +1 -1
- package/dist/components/actions/menu/menu-item.d.ts +1 -0
- package/dist/components/actions/menu/menu-item.d.ts.map +1 -1
- package/dist/components/actions/menu/menu-item.js +7 -7
- package/dist/components/actions/menu/menu-item.js.map +1 -1
- package/dist/components/actions/menu/menu.d.ts +26 -4
- package/dist/components/actions/menu/menu.d.ts.map +1 -1
- package/dist/components/actions/menu/menu.i18n.d.ts +2 -0
- package/dist/components/actions/menu/menu.i18n.d.ts.map +1 -1
- package/dist/components/actions/menu/menu.i18n.js +4 -0
- package/dist/components/actions/menu/menu.i18n.js.map +1 -1
- package/dist/components/actions/menu/menu.js +57 -19
- package/dist/components/actions/menu/menu.js.map +1 -1
- package/dist/components/actions/split-button/split-button.d.ts.map +1 -1
- package/dist/components/actions/split-button/split-button.js +2 -1
- package/dist/components/actions/split-button/split-button.js.map +1 -1
- package/dist/components/actions/toolbar/toolbar-item.d.ts +0 -2
- package/dist/components/actions/toolbar/toolbar-item.d.ts.map +1 -1
- package/dist/components/actions/toolbar/toolbar-item.js +2 -20
- package/dist/components/actions/toolbar/toolbar-item.js.map +1 -1
- package/dist/components/actions/toolbar/toolbar-title.d.ts.map +1 -1
- package/dist/components/actions/toolbar/toolbar-title.js +2 -1
- package/dist/components/actions/toolbar/toolbar-title.js.map +1 -1
- package/dist/components/actions/toolbar/toolbar.d.ts.map +1 -1
- package/dist/components/actions/toolbar/toolbar.js +2 -1
- package/dist/components/actions/toolbar/toolbar.js.map +1 -1
- package/dist/components/button.i18n-DiDGynnq.js +8 -0
- package/dist/components/components.js +2357 -1255
- package/dist/components/content/avatar/avatar.d.ts +0 -2
- package/dist/components/content/avatar/avatar.d.ts.map +1 -1
- package/dist/components/content/avatar/avatar.js +2 -27
- package/dist/components/content/avatar/avatar.js.map +1 -1
- package/dist/components/content/avatar-group/avatar-group.d.ts +0 -1
- package/dist/components/content/avatar-group/avatar-group.d.ts.map +1 -1
- package/dist/components/content/avatar-group/avatar-group.js +2 -24
- package/dist/components/content/avatar-group/avatar-group.js.map +1 -1
- package/dist/components/content/blockquote/blockquote.d.ts.map +1 -1
- package/dist/components/content/blockquote/blockquote.js +2 -1
- package/dist/components/content/blockquote/blockquote.js.map +1 -1
- package/dist/components/content/code-viewer/code-viewer.d.ts +1 -0
- package/dist/components/content/code-viewer/code-viewer.d.ts.map +1 -1
- package/dist/components/content/code-viewer/code-viewer.diff.d.ts +2 -0
- package/dist/components/content/code-viewer/code-viewer.diff.d.ts.map +1 -1
- package/dist/components/content/code-viewer/code-viewer.diff.js +1 -4
- package/dist/components/content/code-viewer/code-viewer.diff.js.map +1 -1
- package/dist/components/content/code-viewer/code-viewer.js +16 -11
- package/dist/components/content/code-viewer/code-viewer.js.map +1 -1
- package/dist/components/content/icon/icon-aliases.d.ts.map +1 -1
- package/dist/components/content/icon/icon-aliases.js +2 -0
- package/dist/components/content/icon/icon-aliases.js.map +1 -1
- package/dist/components/content/icon/icon.d.ts +3 -0
- package/dist/components/content/icon/icon.d.ts.map +1 -1
- package/dist/components/content/icon/icon.js +19 -15
- package/dist/components/content/icon/icon.js.map +1 -1
- package/dist/components/content/identity/identity.d.ts.map +1 -1
- package/dist/components/content/identity/identity.js +2 -1
- package/dist/components/content/identity/identity.js.map +1 -1
- package/dist/components/content/image/image.d.ts +5 -11
- package/dist/components/content/image/image.d.ts.map +1 -1
- package/dist/components/content/image/image.js +14 -31
- package/dist/components/content/image/image.js.map +1 -1
- package/dist/components/content/image/lqip-encoder-element.d.ts.map +1 -1
- package/dist/components/content/image/lqip-encoder-element.js +2 -1
- package/dist/components/content/image/lqip-encoder-element.js.map +1 -1
- package/dist/components/content/keyboard-shortcut/keyboard-shortcut.d.ts.map +1 -1
- package/dist/components/content/keyboard-shortcut/keyboard-shortcut.js +2 -1
- package/dist/components/content/keyboard-shortcut/keyboard-shortcut.js.map +1 -1
- package/dist/components/content/rich-text/rich-text.d.ts +4 -1
- package/dist/components/content/rich-text/rich-text.d.ts.map +1 -1
- package/dist/components/content/rich-text/rich-text.js +6 -2
- package/dist/components/content/rich-text/rich-text.js.map +1 -1
- 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/text/text.d.ts.map +1 -1
- package/dist/components/content/text/text.js +2 -1
- package/dist/components/content/text/text.js.map +1 -1
- package/dist/components/content/title/title.d.ts +9 -5
- package/dist/components/content/title/title.d.ts.map +1 -1
- package/dist/components/content/title/title.js +23 -27
- 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 +13 -0
- package/dist/components/content/title/title.styles.js.map +1 -1
- package/dist/components/content/token/token.d.ts.map +1 -1
- package/dist/components/content/token/token.js +2 -1
- package/dist/components/content/token/token.js.map +1 -1
- package/dist/components/content/tooltip/tooltip.d.ts.map +1 -1
- package/dist/components/content/tooltip/tooltip.js +6 -2
- package/dist/components/content/tooltip/tooltip.js.map +1 -1
- package/dist/components/content/visually-hidden/visually-hidden.js +1 -1
- package/dist/components/content/visually-hidden/visually-hidden.js.map +1 -1
- package/dist/components/{decorate-Cz9-peTN.js → decorate-CzRe1eif.js} +9 -1
- package/dist/components/{with-translations-DRuOq3QK.js → defer-focus-DIPAUUJa.js} +57 -5
- package/dist/components/dev-checks-tdnaA2UV.js +2518 -0
- package/dist/components/{dist-BaLc58I_.js → dist-245LaK9m.js} +1 -1
- package/dist/components/{dist-DgjvHvsN.js → dist-4g23YHP0.js} +1 -1
- package/dist/components/{dist-YYLChwRq.js → dist-Bf823YyL.js} +1 -1
- package/dist/components/{dist-Bm3708s5.js → dist-CeMOOqgP.js} +13 -1
- package/dist/components/{dist-CJ9uLG0u.js → dist-DFjwTlJV.js} +1 -1
- package/dist/components/element-state-BnarBv0M.js +42 -0
- package/dist/components/forms/form/form.d.ts +1 -96
- package/dist/components/forms/form/form.d.ts.map +1 -1
- package/dist/components/forms/form/form.js +1 -0
- package/dist/components/forms/form/form.js.map +1 -1
- package/dist/components/forms/form-actions/form-actions.d.ts.map +1 -1
- package/dist/components/forms/form-actions/form-actions.js +2 -1
- package/dist/components/forms/form-actions/form-actions.js.map +1 -1
- package/dist/components/forms/form-field/form-field.d.ts +3 -4
- package/dist/components/forms/form-field/form-field.d.ts.map +1 -1
- package/dist/components/forms/form-field/form-field.js +14 -29
- package/dist/components/forms/form-field/form-field.js.map +1 -1
- package/dist/components/forms/form-field/form-field.template.d.ts.map +1 -1
- package/dist/components/forms/form-field/form-field.template.js +3 -2
- package/dist/components/forms/form-field/form-field.template.js.map +1 -1
- package/dist/components/forms/form-section/form-section.d.ts +1 -67
- package/dist/components/forms/form-section/form-section.d.ts.map +1 -1
- package/dist/components/forms/form-section/form-section.js +2 -16
- package/dist/components/forms/form-section/form-section.js.map +1 -1
- package/dist/components/forms/validation-list/validation-list.d.ts +26 -0
- package/dist/components/forms/validation-list/validation-list.d.ts.map +1 -1
- package/dist/components/forms/validation-list/validation-list.i18n.d.ts +12 -0
- package/dist/components/forms/validation-list/validation-list.i18n.d.ts.map +1 -0
- package/dist/components/forms/validation-list/validation-list.i18n.js +11 -0
- package/dist/components/forms/validation-list/validation-list.i18n.js.map +1 -0
- package/dist/components/forms/validation-list/validation-list.js +81 -8
- package/dist/components/forms/validation-list/validation-list.js.map +1 -1
- package/dist/components/{icon-DRpTWSIg.js → icon-BPNDyhu9.js} +18 -4
- package/dist/components/{icon-button-DUEmWlBD.js → icon-button-Dbo_SGor.js} +51 -29
- package/dist/components/icon-button.i18n-1_N-wN6x.js +10 -0
- package/dist/components/inputs/checkbox/checkbox.d.ts.map +1 -1
- package/dist/components/inputs/checkbox/checkbox.js +5 -1
- package/dist/components/inputs/checkbox/checkbox.js.map +1 -1
- package/dist/components/inputs/checkbox-field/checkbox-field.d.ts.map +1 -1
- package/dist/components/inputs/checkbox-field/checkbox-field.js +5 -1
- package/dist/components/inputs/checkbox-field/checkbox-field.js.map +1 -1
- package/dist/components/inputs/code-editor/code-editor.d.ts.map +1 -1
- package/dist/components/inputs/code-editor/code-editor.js +2 -1
- package/dist/components/inputs/code-editor/code-editor.js.map +1 -1
- package/dist/components/inputs/code-editor/code-editor.styles.d.ts.map +1 -1
- package/dist/components/inputs/code-editor/code-editor.styles.js +36 -13
- package/dist/components/inputs/code-editor/code-editor.styles.js.map +1 -1
- package/dist/components/inputs/combo-box/combo-box.d.ts +4 -0
- package/dist/components/inputs/combo-box/combo-box.d.ts.map +1 -1
- package/dist/components/inputs/combo-box/combo-box.js +16 -5
- package/dist/components/inputs/combo-box/combo-box.js.map +1 -1
- package/dist/components/inputs/date-field/date-field.d.ts.map +1 -1
- package/dist/components/inputs/date-field/date-field.i18n.js +4 -4
- package/dist/components/inputs/date-field/date-field.i18n.js.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-picker/date-picker.d.ts +3 -3
- package/dist/components/inputs/date-picker/date-picker.d.ts.map +1 -1
- package/dist/components/inputs/date-picker/date-picker.i18n.d.ts +2 -2
- package/dist/components/inputs/date-picker/date-picker.i18n.js +2 -2
- package/dist/components/inputs/date-picker/date-picker.i18n.js.map +1 -1
- package/dist/components/inputs/date-picker/date-picker.js +5 -1
- package/dist/components/inputs/date-picker/date-picker.js.map +1 -1
- package/dist/components/inputs/date-picker/date-picker.template.js +2 -2
- package/dist/components/inputs/date-picker/date-picker.template.js.map +1 -1
- package/dist/components/inputs/dropdown/dropdown.d.ts.map +1 -1
- package/dist/components/inputs/dropdown/dropdown.js +10 -5
- package/dist/components/inputs/dropdown/dropdown.js.map +1 -1
- package/dist/components/inputs/file-field/file-field.d.ts +147 -17
- package/dist/components/inputs/file-field/file-field.d.ts.map +1 -1
- package/dist/components/inputs/file-field/file-field.drop.d.ts +16 -1
- package/dist/components/inputs/file-field/file-field.drop.d.ts.map +1 -1
- package/dist/components/inputs/file-field/file-field.drop.js +33 -0
- package/dist/components/inputs/file-field/file-field.drop.js.map +1 -1
- package/dist/components/inputs/file-field/file-field.i18n.d.ts +11 -1
- package/dist/components/inputs/file-field/file-field.i18n.d.ts.map +1 -1
- package/dist/components/inputs/file-field/file-field.i18n.js +16 -6
- package/dist/components/inputs/file-field/file-field.i18n.js.map +1 -1
- package/dist/components/inputs/file-field/file-field.js +421 -75
- package/dist/components/inputs/file-field/file-field.js.map +1 -1
- package/dist/components/inputs/file-field/file-field.styles.d.ts.map +1 -1
- package/dist/components/inputs/file-field/file-field.styles.js +235 -91
- package/dist/components/inputs/file-field/file-field.styles.js.map +1 -1
- package/dist/components/inputs/file-field/file-field.template.d.ts +2 -1
- package/dist/components/inputs/file-field/file-field.template.d.ts.map +1 -1
- package/dist/components/inputs/file-field/file-field.template.js +282 -83
- package/dist/components/inputs/file-field/file-field.template.js.map +1 -1
- package/dist/components/inputs/file-field/file-field.truncate.d.ts +17 -0
- package/dist/components/inputs/file-field/file-field.truncate.d.ts.map +1 -1
- package/dist/components/inputs/file-field/file-field.truncate.js +26 -3
- package/dist/components/inputs/file-field/file-field.truncate.js.map +1 -1
- 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 +2 -4
- package/dist/components/inputs/multi-line-text-field/multi-line-text-field.js.map +1 -1
- package/dist/components/inputs/number-field/number-field.d.ts.map +1 -1
- package/dist/components/inputs/number-field/number-field.js +5 -4
- package/dist/components/inputs/number-field/number-field.js.map +1 -1
- package/dist/components/inputs/password-field/password-field.d.ts.map +1 -1
- package/dist/components/inputs/password-field/password-field.js +2 -1
- package/dist/components/inputs/password-field/password-field.js.map +1 -1
- package/dist/components/inputs/radio-button/radio-button.d.ts.map +1 -1
- package/dist/components/inputs/radio-button/radio-button.js +2 -1
- package/dist/components/inputs/radio-button/radio-button.js.map +1 -1
- 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 +2 -1
- 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 +0 -1
- 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 +5 -6
- package/dist/components/inputs/radio-button-group/radio-button-group.js.map +1 -1
- package/dist/components/inputs/search-field/search-field.d.ts.map +1 -1
- package/dist/components/inputs/search-field/search-field.js +5 -1
- package/dist/components/inputs/search-field/search-field.js.map +1 -1
- package/dist/components/inputs/segmented-control/segmented-control.d.ts +0 -1
- package/dist/components/inputs/segmented-control/segmented-control.d.ts.map +1 -1
- package/dist/components/inputs/segmented-control/segmented-control.js +7 -11
- package/dist/components/inputs/segmented-control/segmented-control.js.map +1 -1
- package/dist/components/inputs/slider/slider.d.ts +32 -10
- package/dist/components/inputs/slider/slider.d.ts.map +1 -1
- package/dist/components/inputs/slider/slider.js +115 -35
- package/dist/components/inputs/slider/slider.js.map +1 -1
- package/dist/components/inputs/slider/slider.styles.d.ts.map +1 -1
- package/dist/components/inputs/slider/slider.styles.js +22 -13
- package/dist/components/inputs/slider/slider.styles.js.map +1 -1
- package/dist/components/inputs/slider/slider.template.d.ts.map +1 -1
- package/dist/components/inputs/slider/slider.template.js +12 -4
- package/dist/components/inputs/slider/slider.template.js.map +1 -1
- package/dist/components/inputs/stepper/stepper.d.ts.map +1 -1
- package/dist/components/inputs/stepper/stepper.js +5 -1
- package/dist/components/inputs/stepper/stepper.js.map +1 -1
- package/dist/components/inputs/switch/switch.d.ts.map +1 -1
- package/dist/components/inputs/switch/switch.js +5 -4
- package/dist/components/inputs/switch/switch.js.map +1 -1
- package/dist/components/inputs/switch-field/switch-field.d.ts.map +1 -1
- package/dist/components/inputs/switch-field/switch-field.js +5 -1
- package/dist/components/inputs/switch-field/switch-field.js.map +1 -1
- package/dist/components/inputs/text-editor/text-editor.code-copy.js +2 -2
- package/dist/components/inputs/text-editor/text-editor.code-copy.js.map +1 -1
- package/dist/components/inputs/text-editor/text-editor.cursor.d.ts.map +1 -1
- package/dist/components/inputs/text-editor/text-editor.cursor.js +1 -11
- package/dist/components/inputs/text-editor/text-editor.cursor.js.map +1 -1
- package/dist/components/inputs/text-editor/text-editor.d.ts.map +1 -1
- package/dist/components/inputs/text-editor/text-editor.hidden-syntax.d.ts.map +1 -1
- package/dist/components/inputs/text-editor/text-editor.hidden-syntax.js +127 -11
- package/dist/components/inputs/text-editor/text-editor.hidden-syntax.js.map +1 -1
- package/dist/components/inputs/text-editor/text-editor.i18n.d.ts +3 -1
- 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 -1
- package/dist/components/inputs/text-editor/text-editor.i18n.js.map +1 -1
- package/dist/components/inputs/text-editor/text-editor.js +14 -8
- package/dist/components/inputs/text-editor/text-editor.js.map +1 -1
- package/dist/components/inputs/text-editor/text-editor.markdown.d.ts +3 -0
- package/dist/components/inputs/text-editor/text-editor.markdown.d.ts.map +1 -1
- package/dist/components/inputs/text-editor/text-editor.markdown.js +9 -1
- package/dist/components/inputs/text-editor/text-editor.markdown.js.map +1 -1
- package/dist/components/inputs/text-editor/text-editor.mentions.d.ts +9 -2
- package/dist/components/inputs/text-editor/text-editor.mentions.d.ts.map +1 -1
- package/dist/components/inputs/text-editor/text-editor.mentions.js +61 -147
- package/dist/components/inputs/text-editor/text-editor.mentions.js.map +1 -1
- package/dist/components/inputs/text-editor/text-editor.styles.d.ts.map +1 -1
- package/dist/components/inputs/text-editor/text-editor.styles.js +187 -2
- package/dist/components/inputs/text-editor/text-editor.styles.js.map +1 -1
- package/dist/components/inputs/text-field/text-field.d.ts +1 -5
- package/dist/components/inputs/text-field/text-field.d.ts.map +1 -1
- package/dist/components/inputs/text-field/text-field.js +9 -23
- package/dist/components/inputs/text-field/text-field.js.map +1 -1
- package/dist/components/inputs/time-field/time-field.d.ts.map +1 -1
- package/dist/components/inputs/time-field/time-field.i18n.js +3 -3
- package/dist/components/inputs/time-field/time-field.i18n.js.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-picker/time-picker.d.ts.map +1 -1
- package/dist/components/inputs/time-picker/time-picker.js +5 -1
- package/dist/components/inputs/time-picker/time-picker.js.map +1 -1
- package/dist/components/inputs/toggle-button/toggle-button.d.ts +0 -2
- package/dist/components/inputs/toggle-button/toggle-button.d.ts.map +1 -1
- package/dist/components/inputs/toggle-button/toggle-button.js +5 -23
- package/dist/components/inputs/toggle-button/toggle-button.js.map +1 -1
- package/dist/components/inputs/toggle-button-group/toggle-button-group.d.ts +0 -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 +5 -12
- package/dist/components/inputs/toggle-button-group/toggle-button-group.js.map +1 -1
- package/dist/components/inputs/token-field/token-field.d.ts +4 -0
- 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 +14 -1
- package/dist/components/inputs/token-field/token-field.js.map +1 -1
- 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/just-in-time-education.i18n-BgCd3s-c.js +395 -0
- package/dist/components/layout/box/box.d.ts.map +1 -1
- package/dist/components/layout/box/box.js +2 -1
- package/dist/components/layout/box/box.js.map +1 -1
- package/dist/components/layout/card/card.d.ts +0 -1
- package/dist/components/layout/card/card.d.ts.map +1 -1
- package/dist/components/layout/card/card.js +2 -15
- package/dist/components/layout/card/card.js.map +1 -1
- package/dist/components/layout/card/card.template.js +2 -2
- package/dist/components/layout/collection/collection.d.ts +4 -2
- package/dist/components/layout/collection/collection.d.ts.map +1 -1
- package/dist/components/layout/collection/collection.js +64 -32
- package/dist/components/layout/collection/collection.js.map +1 -1
- package/dist/components/layout/collection/collection.template.js +1 -1
- package/dist/components/layout/collection/collection.template.js.map +1 -1
- package/dist/components/layout/container/container.d.ts +6 -3
- package/dist/components/layout/container/container.d.ts.map +1 -1
- package/dist/components/layout/container/container.js +17 -23
- package/dist/components/layout/container/container.js.map +1 -1
- package/dist/components/layout/divider/divider.js +1 -1
- package/dist/components/layout/divider/divider.js.map +1 -1
- package/dist/components/layout/page/page.d.ts +2 -3
- package/dist/components/layout/page/page.d.ts.map +1 -1
- package/dist/components/layout/page/page.js +9 -12
- package/dist/components/layout/page/page.js.map +1 -1
- package/dist/components/layout/page-footer/page-footer.d.ts +2 -0
- package/dist/components/layout/page-footer/page-footer.d.ts.map +1 -1
- package/dist/components/layout/page-footer/page-footer.js +13 -7
- 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 +22 -8
- package/dist/components/layout/page-footer/page-footer.styles.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 +2 -0
- 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.map +1 -1
- package/dist/components/layout/page-sections/full-bleed-section/full-bleed-section.js +2 -1
- package/dist/components/layout/page-sections/full-bleed-section/full-bleed-section.js.map +1 -1
- package/dist/components/layout/page-sections/hero/hero-corner.d.ts +0 -1
- package/dist/components/layout/page-sections/hero/hero-corner.d.ts.map +1 -1
- package/dist/components/layout/page-sections/hero/hero-corner.js +9 -28
- package/dist/components/layout/page-sections/hero/hero-corner.js.map +1 -1
- package/dist/components/layout/page-sections/hero/hero.d.ts +1 -4
- package/dist/components/layout/page-sections/hero/hero.d.ts.map +1 -1
- package/dist/components/layout/page-sections/hero/hero.js +7 -29
- package/dist/components/layout/page-sections/hero/hero.js.map +1 -1
- 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 +2 -1
- 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.map +1 -1
- package/dist/components/layout/page-sections/one-third-two-thirds-section/one-third-two-thirds-section.js +2 -1
- 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.map +1 -1
- package/dist/components/layout/page-sections/sidebar-section/sidebar-section.js +2 -1
- package/dist/components/layout/page-sections/sidebar-section/sidebar-section.js.map +1 -1
- 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 +2 -1
- 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.map +1 -1
- package/dist/components/layout/page-sections/two-thirds-one-third-section/two-thirds-one-third-section.js +2 -1
- 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 +14 -6
- package/dist/components/layout/popover/popover.d.ts.map +1 -1
- package/dist/components/layout/popover/popover.js +26 -30
- package/dist/components/layout/popover/popover.js.map +1 -1
- package/dist/components/layout/sheet/sheet.d.ts +0 -2
- package/dist/components/layout/sheet/sheet.d.ts.map +1 -1
- package/dist/components/layout/sheet/sheet.js +9 -20
- package/dist/components/layout/sheet/sheet.js.map +1 -1
- package/dist/components/layout/shell/shell.d.ts.map +1 -1
- package/dist/components/layout/shell/shell.js +2 -1
- package/dist/components/layout/shell/shell.js.map +1 -1
- package/dist/components/layout/spacer/spacer.d.ts.map +1 -1
- package/dist/components/layout/spacer/spacer.js +2 -1
- package/dist/components/layout/spacer/spacer.js.map +1 -1
- package/dist/components/layout/split-views/bar-split-view/bar-split-view.d.ts +6 -6
- 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 +9 -12
- 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.map +1 -1
- package/dist/components/layout/split-views/navigation-split-view/navigation-split-view.js +2 -1
- package/dist/components/layout/split-views/navigation-split-view/navigation-split-view.js.map +1 -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 +2 -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-divider/split-view-divider.d.ts.map +1 -1
- package/dist/components/layout/split-views/split-view-divider/split-view-divider.js +2 -1
- package/dist/components/layout/split-views/split-view-divider/split-view-divider.js.map +1 -1
- 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 +2 -1
- package/dist/components/layout/split-views/split-view-pane/split-view-pane.js.map +1 -1
- package/dist/components/layout/split-views/stacked-split-view/stacked-split-view.d.ts.map +1 -1
- package/dist/components/layout/split-views/stacked-split-view/stacked-split-view.js +2 -1
- package/dist/components/layout/split-views/stacked-split-view/stacked-split-view.js.map +1 -1
- package/dist/components/layout/task-board/task-board-column.d.ts.map +1 -1
- package/dist/components/layout/task-board/task-board-column.js +2 -4
- package/dist/components/layout/task-board/task-board-column.js.map +1 -1
- package/dist/components/layout/task-board/task-board.d.ts +1 -1
- package/dist/components/layout/task-board/task-board.d.ts.map +1 -1
- package/dist/components/layout/task-board/task-board.js +12 -7
- package/dist/components/layout/task-board/task-board.js.map +1 -1
- package/dist/components/layout/window/window.d.ts +0 -1
- package/dist/components/layout/window/window.d.ts.map +1 -1
- package/dist/components/layout/window/window.js +4 -6
- package/dist/components/layout/window/window.js.map +1 -1
- package/dist/components/list-item.i18n-89uqlBMK.js +8 -0
- package/dist/components/list.i18n-CKqbhFQ_.js +13 -0
- package/dist/components/lists-and-tables/cells/cell/cell.d.ts +2 -0
- package/dist/components/lists-and-tables/cells/cell/cell.d.ts.map +1 -1
- package/dist/components/lists-and-tables/cells/cell/cell.js +4 -2
- package/dist/components/lists-and-tables/cells/cell/cell.js.map +1 -1
- package/dist/components/lists-and-tables/cells/description-cell/description-cell.d.ts +2 -0
- package/dist/components/lists-and-tables/cells/description-cell/description-cell.d.ts.map +1 -1
- package/dist/components/lists-and-tables/cells/description-cell/description-cell.js +4 -2
- package/dist/components/lists-and-tables/cells/description-cell/description-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/icon-cell/icon-cell.d.ts +1 -0
- 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 +3 -1
- package/dist/components/lists-and-tables/cells/icon-cell/icon-cell.js.map +1 -1
- package/dist/components/lists-and-tables/cells/spacer-cell/spacer-cell.d.ts.map +1 -1
- package/dist/components/lists-and-tables/cells/spacer-cell/spacer-cell.js +2 -1
- package/dist/components/lists-and-tables/cells/spacer-cell/spacer-cell.js.map +1 -1
- package/dist/components/lists-and-tables/cells/step-cell/step-cell.d.ts +0 -1
- package/dist/components/lists-and-tables/cells/step-cell/step-cell.d.ts.map +1 -1
- package/dist/components/lists-and-tables/cells/step-cell/step-cell.js +5 -15
- package/dist/components/lists-and-tables/cells/step-cell/step-cell.js.map +1 -1
- package/dist/components/lists-and-tables/cells/text-cell/text-cell.d.ts +2 -0
- 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 +4 -2
- package/dist/components/lists-and-tables/cells/text-cell/text-cell.js.map +1 -1
- package/dist/components/lists-and-tables/cells/title-cell/title-cell.d.ts +7 -2
- 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 +5 -4
- package/dist/components/lists-and-tables/cells/title-cell/title-cell.js.map +1 -1
- package/dist/components/lists-and-tables/list/list.d.ts +5 -23
- package/dist/components/lists-and-tables/list/list.d.ts.map +1 -1
- package/dist/components/lists-and-tables/list/list.i18n.d.ts +1 -1
- package/dist/components/lists-and-tables/list/list.i18n.js +1 -1
- package/dist/components/lists-and-tables/list/list.js +54 -99
- package/dist/components/lists-and-tables/list/list.js.map +1 -1
- package/dist/components/lists-and-tables/list-item/list-item.d.ts +18 -16
- 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 +61 -88
- package/dist/components/lists-and-tables/list-item/list-item.js.map +1 -1
- package/dist/components/lists-and-tables/list-item-segment/list-item-segment.d.ts +3 -3
- 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 +17 -13
- 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.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 +1 -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 +24 -13
- package/dist/components/lists-and-tables/table/table.d.ts.map +1 -1
- package/dist/components/lists-and-tables/table/table.js +58 -45
- package/dist/components/lists-and-tables/table/table.js.map +1 -1
- package/dist/components/navigation/breadcrumbs/breadcrumbs.d.ts.map +1 -1
- package/dist/components/navigation/breadcrumbs/breadcrumbs.js +2 -1
- package/dist/components/navigation/breadcrumbs/breadcrumbs.js.map +1 -1
- package/dist/components/navigation/document-tab-bar/document-tab-bar.d.ts +4 -4
- 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 +7 -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.js +1 -1
- package/dist/components/navigation/document-tab-bar/document-tab-bar.template.js.map +1 -1
- package/dist/components/navigation/link/link.d.ts.map +1 -1
- package/dist/components/navigation/link/link.js +2 -1
- package/dist/components/navigation/link/link.js.map +1 -1
- package/dist/components/navigation/link/link.styles.d.ts.map +1 -1
- package/dist/components/navigation/link/link.styles.js +0 -4
- package/dist/components/navigation/link/link.styles.js.map +1 -1
- package/dist/components/navigation/link/link.template.js +2 -2
- package/dist/components/navigation/menu-bar/menu-bar.d.ts +4 -0
- package/dist/components/navigation/menu-bar/menu-bar.d.ts.map +1 -1
- package/dist/components/navigation/menu-bar/menu-bar.js +17 -10
- package/dist/components/navigation/menu-bar/menu-bar.js.map +1 -1
- package/dist/components/navigation/menu-bar/menu-bar.styles.d.ts.map +1 -1
- package/dist/components/navigation/menu-bar/menu-bar.styles.js +9 -0
- package/dist/components/navigation/menu-bar/menu-bar.styles.js.map +1 -1
- package/dist/components/navigation/menu-bar/menu-bar.template.d.ts.map +1 -1
- package/dist/components/navigation/menu-bar/menu-bar.template.js +25 -19
- package/dist/components/navigation/menu-bar/menu-bar.template.js.map +1 -1
- package/dist/components/navigation/menu-bar-item/menu-bar-item.d.ts.map +1 -1
- package/dist/components/navigation/menu-bar-item/menu-bar-item.js +12 -1
- package/dist/components/navigation/menu-bar-item/menu-bar-item.js.map +1 -1
- package/dist/components/navigation/pagination/pagination.d.ts.map +1 -1
- package/dist/components/navigation/pagination/pagination.i18n.d.ts +3 -3
- package/dist/components/navigation/pagination/pagination.i18n.js +3 -3
- package/dist/components/navigation/pagination/pagination.i18n.js.map +1 -1
- package/dist/components/navigation/pagination/pagination.js +2 -1
- package/dist/components/navigation/pagination/pagination.js.map +1 -1
- package/dist/components/navigation/pagination/pagination.template.js +3 -3
- package/dist/components/navigation/pagination/pagination.template.js.map +1 -1
- package/dist/components/navigation/skip-link/skip-link.d.ts.map +1 -1
- package/dist/components/navigation/skip-link/skip-link.js +6 -8
- package/dist/components/navigation/skip-link/skip-link.js.map +1 -1
- package/dist/components/navigation/tab-bar/tab-bar.d.ts +1 -1
- package/dist/components/navigation/tab-bar/tab-bar.d.ts.map +1 -1
- package/dist/components/navigation/tab-bar/tab-bar.js +8 -15
- package/dist/components/navigation/tab-bar/tab-bar.js.map +1 -1
- package/dist/components/navigation/top-navigation-bar/top-navigation-bar.d.ts +0 -1
- 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 +6 -6
- package/dist/components/navigation/top-navigation-bar/top-navigation-bar.js.map +1 -1
- package/dist/components/navigation/top-title-bar/top-title-bar.d.ts +11 -0
- 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 +44 -6
- package/dist/components/navigation/top-title-bar/top-title-bar.js.map +1 -1
- package/dist/components/navigation/top-title-bar/top-title-bar.template.js +1 -1
- package/dist/components/navigation/top-title-bar/top-title-bar.template.js.map +1 -1
- package/dist/components/nl.generated-D-8UF1iR.js +62 -0
- package/dist/components/status-and-feedback/activity-indicator/activity-indicator.d.ts +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 +5 -4
- package/dist/components/status-and-feedback/activity-indicator/activity-indicator.js.map +1 -1
- package/dist/components/status-and-feedback/badge/badge.d.ts.map +1 -1
- package/dist/components/status-and-feedback/badge/badge.js +3 -6
- package/dist/components/status-and-feedback/badge/badge.js.map +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/inline-dialog/inline-dialog.d.ts +2 -2
- package/dist/components/status-and-feedback/inline-dialog/inline-dialog.d.ts.map +1 -1
- package/dist/components/status-and-feedback/inline-dialog/inline-dialog.js +4 -3
- package/dist/components/status-and-feedback/inline-dialog/inline-dialog.js.map +1 -1
- package/dist/components/status-and-feedback/inline-dialog/inline-dialog.styles.d.ts.map +1 -1
- package/dist/components/status-and-feedback/inline-dialog/inline-dialog.styles.js +9 -2
- package/dist/components/status-and-feedback/inline-dialog/inline-dialog.styles.js.map +1 -1
- package/dist/components/status-and-feedback/just-in-time-education/just-in-time-education.d.ts.map +1 -1
- package/dist/components/status-and-feedback/just-in-time-education/just-in-time-education.js +2 -1
- package/dist/components/status-and-feedback/just-in-time-education/just-in-time-education.js.map +1 -1
- package/dist/components/status-and-feedback/modal-dialog/modal-dialog.d.ts +1 -4
- 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 +3 -15
- package/dist/components/status-and-feedback/modal-dialog/modal-dialog.js.map +1 -1
- package/dist/components/status-and-feedback/modal-dialog/modal-dialog.styles.d.ts.map +1 -1
- package/dist/components/status-and-feedback/modal-dialog/modal-dialog.styles.js +9 -6
- package/dist/components/status-and-feedback/modal-dialog/modal-dialog.styles.js.map +1 -1
- package/dist/components/status-and-feedback/notification/notification.d.ts.map +1 -1
- package/dist/components/status-and-feedback/notification/notification.js +3 -7
- package/dist/components/status-and-feedback/notification/notification.js.map +1 -1
- 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 +4 -5
- package/dist/components/status-and-feedback/progress-bar/progress-bar.js.map +1 -1
- 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 +2 -1
- package/dist/components/status-and-feedback/progress-circle/progress-circle.js.map +1 -1
- package/dist/components/status-and-feedback/status-bar/status-bar.d.ts +1 -1
- package/dist/components/status-and-feedback/status-bar/status-bar.d.ts.map +1 -1
- package/dist/components/status-and-feedback/status-bar/status-bar.js +8 -7
- package/dist/components/status-and-feedback/status-bar/status-bar.js.map +1 -1
- package/dist/components/status-and-feedback/step-bar/step-bar.d.ts +0 -7
- package/dist/components/status-and-feedback/step-bar/step-bar.d.ts.map +1 -1
- package/dist/components/status-and-feedback/step-bar/step-bar.js +2 -24
- package/dist/components/status-and-feedback/step-bar/step-bar.js.map +1 -1
- package/dist/components/{visibility-mixin-C-K7ho5Q.js → visibility-mixin-CNCT26tu.js} +1 -7
- package/dist/css/rich-text.css +5 -0
- package/dist/nldd.min.js +1493 -997
- package/dist/translations/en-US.d.ts.map +1 -1
- package/dist/translations/en-US.js +44 -22
- package/dist/translations/en-US.js.map +1 -1
- package/dist/translations/fy.d.ts.map +1 -1
- package/dist/translations/fy.js +44 -22
- package/dist/translations/fy.js.map +1 -1
- package/dist/translations/nl.generated.d.ts +32 -10
- package/dist/translations/nl.generated.d.ts.map +1 -1
- package/dist/translations/nl.generated.js +2 -0
- package/dist/translations/nl.generated.js.map +1 -1
- package/dist/translations/pap-AW.d.ts.map +1 -1
- package/dist/translations/pap-AW.js +44 -22
- package/dist/translations/pap-AW.js.map +1 -1
- package/dist/translations/pap-CW.d.ts.map +1 -1
- package/dist/translations/pap-CW.js +44 -22
- package/dist/translations/pap-CW.js.map +1 -1
- package/dist/types/vue.d.ts +123 -35
- package/dist/utilities/carried-context.d.ts +14 -3
- package/dist/utilities/carried-context.d.ts.map +1 -1
- package/dist/utilities/carried-context.js +12 -5
- package/dist/utilities/carried-context.js.map +1 -1
- package/dist/utilities/codemirror/codemirror-input.d.ts +0 -2
- package/dist/utilities/codemirror/codemirror-input.d.ts.map +1 -1
- package/dist/utilities/codemirror/codemirror-input.js +0 -14
- package/dist/utilities/codemirror/codemirror-input.js.map +1 -1
- package/dist/utilities/custom-element.d.ts +7 -0
- package/dist/utilities/custom-element.d.ts.map +1 -0
- package/dist/utilities/custom-element.js +7 -0
- package/dist/utilities/custom-element.js.map +1 -0
- package/dist/utilities/defer-focus.d.ts +24 -0
- package/dist/utilities/defer-focus.d.ts.map +1 -0
- package/dist/utilities/defer-focus.js +33 -0
- package/dist/utilities/defer-focus.js.map +1 -0
- package/dist/utilities/dev-checks-trigger.d.ts +2 -0
- package/dist/utilities/dev-checks-trigger.d.ts.map +1 -0
- package/dist/utilities/dev-checks-trigger.js +10 -0
- package/dist/utilities/dev-checks-trigger.js.map +1 -0
- package/dist/utilities/dev-checks.d.ts +40 -0
- package/dist/utilities/dev-checks.d.ts.map +1 -0
- package/dist/utilities/dev-checks.js +115 -0
- package/dist/utilities/dev-checks.js.map +1 -0
- package/dist/utilities/dev-rules.generated.d.ts +3 -0
- package/dist/utilities/dev-rules.generated.d.ts.map +1 -0
- package/dist/utilities/dev-rules.generated.js +2487 -0
- package/dist/utilities/dev-rules.generated.js.map +1 -0
- package/dist/utilities/element-state.d.ts +19 -0
- package/dist/utilities/element-state.d.ts.map +1 -0
- package/dist/utilities/element-state.js +49 -0
- package/dist/utilities/element-state.js.map +1 -0
- package/dist/utilities/file-drag-and-drop.d.ts +18 -0
- package/dist/utilities/file-drag-and-drop.d.ts.map +1 -0
- package/dist/utilities/file-drag-and-drop.js +31 -0
- package/dist/utilities/file-drag-and-drop.js.map +1 -0
- package/dist/utilities/form-associated-mixin.d.ts.map +1 -1
- package/dist/utilities/form-associated-mixin.js +2 -1
- package/dist/utilities/form-associated-mixin.js.map +1 -1
- package/dist/utilities/link-hint.d.ts +2 -21
- package/dist/utilities/link-hint.d.ts.map +1 -1
- package/dist/utilities/link-hint.js +22 -8
- package/dist/utilities/link-hint.js.map +1 -1
- package/dist/utilities/list-items.d.ts +10 -0
- package/dist/utilities/list-items.d.ts.map +1 -0
- package/dist/utilities/list-items.js +21 -0
- package/dist/utilities/list-items.js.map +1 -0
- package/dist/utilities/popover-target.d.ts +14 -0
- package/dist/utilities/popover-target.d.ts.map +1 -0
- package/dist/utilities/popover-target.js +21 -0
- package/dist/utilities/popover-target.js.map +1 -0
- package/dist/utilities/popup-anchor-controller.d.ts.map +1 -1
- package/dist/utilities/popup-anchor-controller.js +6 -1
- package/dist/utilities/popup-anchor-controller.js.map +1 -1
- package/dist/utilities/render-marked.d.ts +2 -0
- package/dist/utilities/render-marked.d.ts.map +1 -1
- package/dist/utilities/render-marked.js +4 -0
- package/dist/utilities/render-marked.js.map +1 -1
- package/dist/utilities/row-header-mixin.d.ts +31 -0
- package/dist/utilities/row-header-mixin.d.ts.map +1 -0
- package/dist/utilities/row-header-mixin.js +44 -0
- package/dist/utilities/row-header-mixin.js.map +1 -0
- package/dist/utilities/spacing-scale.d.ts +4 -5
- package/dist/utilities/spacing-scale.d.ts.map +1 -1
- package/dist/utilities/spacing-scale.js +4 -23
- package/dist/utilities/spacing-scale.js.map +1 -1
- package/dist/utilities/translations.d.ts.map +1 -1
- package/dist/utilities/translations.js +3 -15
- package/dist/utilities/translations.js.map +1 -1
- package/dist/utilities/visibility-mixin.d.ts +7 -0
- package/dist/utilities/visibility-mixin.d.ts.map +1 -1
- package/dist/utilities/visibility-mixin.js +0 -10
- package/dist/utilities/visibility-mixin.js.map +1 -1
- package/lint/cli.js +18 -0
- package/lint/data.generated.json +1 -0
- package/lint/engine.js +191 -0
- package/lint/fix.js +293 -0
- package/lint/format.js +133 -0
- package/lint/frontends.js +483 -0
- package/lint/linter.js +262 -0
- package/lint/main.js +279 -0
- package/lint/project.js +143 -0
- package/lint/rule-data.js +83 -0
- package/lint/rule-index.js +20 -0
- package/lint/rule.schema.json +65 -0
- package/lint/tree.js +131 -0
- package/package.json +22 -4
|
@@ -34,7 +34,7 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
34
34
|
* @attr {string} download - Saves the file the link points at instead of opening it; only used with href. Without a value the browser takes the name from the URL, with one that is the file name. A browser ignores it for a URL on another origin and opens the file there. Adds a visually hidden "downloadt bestand" for screen readers. Leave `target` off: a download opens no tab.
|
|
35
35
|
* @attr {string} rel - Link rel attribute, used with href; with target '_blank', 'noopener noreferrer' is added to whatever you set
|
|
36
36
|
* @attr {object} translations - Override translation keys (e.g. the "opens in new tab" announcement); unset keys fall back to Dutch.
|
|
37
|
-
* @attr {string} popovertarget - ID of a popover element to toggle
|
|
37
|
+
* @attr {string} popovertarget - ID of a popover element to toggle, looked up in the tree of this button; the inner <button> gets the element.
|
|
38
38
|
*
|
|
39
39
|
* @slot icon - Slot for a custom icon (e.g. custom SVG). Only used when icon attribute is not set; falls back to a placeholder icon when the slot is empty.
|
|
40
40
|
* @slot popup - A single `nldd-menu` or `nldd-popover` this button invokes. Slotting it auto-anchors the overlay to the button and toggles it on click (no id/anchor wiring). The overlay syncs `expanded` and `aria-haspopup` back onto the button. Add `expandable` for the disclosure chevron. Mirrors nldd-split-button; manual `popovertarget` wiring keeps working without a slotted overlay.
|
|
@@ -52,7 +52,8 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
52
52
|
* @fires click - When button is clicked (not fired when disabled)
|
|
53
53
|
*/
|
|
54
54
|
import { LitElement } from 'lit';
|
|
55
|
-
import {
|
|
55
|
+
import { property } from 'lit/decorators.js';
|
|
56
|
+
import { customElement } from '../../../utilities/custom-element.js';
|
|
56
57
|
import { reflectNonDefault } from '../../../utilities/reflect-non-default.js';
|
|
57
58
|
import { iconButtonStyles } from './icon-button.styles.js';
|
|
58
59
|
import { template } from './icon-button.template.js';
|
|
@@ -62,10 +63,13 @@ import { PopupAnchorController } from '../../../utilities/popup-anchor-controlle
|
|
|
62
63
|
import { ShortcutAvailabilityController } from '../../../utilities/shortcut.js';
|
|
63
64
|
import './../../content/icon/icon.js';
|
|
64
65
|
import './../../status-and-feedback/activity-indicator/activity-indicator.js';
|
|
66
|
+
import { internalsOf } from '../../../utilities/element-state.js';
|
|
67
|
+
import { deferFocus } from '../../../utilities/defer-focus.js';
|
|
68
|
+
import { popoverTargetOf } from '../../../utilities/popover-target.js';
|
|
65
69
|
let NLDDIconButton = class NLDDIconButton extends withTranslations(LitElement, nlddIconButtonTranslations) {
|
|
66
70
|
constructor() {
|
|
67
71
|
super(...arguments);
|
|
68
|
-
this._internals = this
|
|
72
|
+
this._internals = internalsOf(this);
|
|
69
73
|
this.appearance = 'neutral-tinted';
|
|
70
74
|
this.size = 'md';
|
|
71
75
|
/** In lg size, hides the text label and enlarges the icon by one step (28px). */
|
|
@@ -140,7 +144,6 @@ let NLDDIconButton = class NLDDIconButton extends withTranslations(LitElement, n
|
|
|
140
144
|
* With target '_blank', 'noopener noreferrer' is added to it.
|
|
141
145
|
*/
|
|
142
146
|
this.rel = undefined;
|
|
143
|
-
this._warnedA11y = false;
|
|
144
147
|
/** Shared wiring for an overlay slotted into `popup`: anchors it to this
|
|
145
148
|
* button and turns clicks into open/close. Not private: the template module
|
|
146
149
|
* binds its handlers. */
|
|
@@ -173,14 +176,6 @@ let NLDDIconButton = class NLDDIconButton extends withTranslations(LitElement, n
|
|
|
173
176
|
this.style.removeProperty('--_icon-button-width');
|
|
174
177
|
}
|
|
175
178
|
}
|
|
176
|
-
const inaccessible = this._hasIcon && !this.text && !this.accessibleLabel;
|
|
177
|
-
if (import.meta.env?.DEV && inaccessible && !this._warnedA11y) {
|
|
178
|
-
this._warnedA11y = true;
|
|
179
|
-
console.warn('<nldd-icon-button>: icon is set without text or accessible-label. This produces an inaccessible button (WCAG SC 4.1.2). Add a text or accessible-label attribute.');
|
|
180
|
-
}
|
|
181
|
-
else if (!inaccessible) {
|
|
182
|
-
this._warnedA11y = false;
|
|
183
|
-
}
|
|
184
179
|
}
|
|
185
180
|
_handleClick(e) {
|
|
186
181
|
if (this.disabled || this.loading) {
|
|
@@ -188,6 +183,11 @@ let NLDDIconButton = class NLDDIconButton extends withTranslations(LitElement, n
|
|
|
188
183
|
e.stopPropagation();
|
|
189
184
|
return;
|
|
190
185
|
}
|
|
186
|
+
// Before the browser's own toggle, which runs after this listener: a
|
|
187
|
+
// popover rendered after the button was not there on its last render.
|
|
188
|
+
if (e.currentTarget instanceof HTMLButtonElement) {
|
|
189
|
+
e.currentTarget.popoverTargetElement = popoverTargetOf(this, this.popovertarget, this.popoverTargetElement);
|
|
190
|
+
}
|
|
191
191
|
// A slotted overlay makes this button its invoker: toggle it and stop —
|
|
192
192
|
// a popup button neither submits a form nor navigates.
|
|
193
193
|
if (this._popup.handleClick(e)) {
|
|
@@ -218,6 +218,8 @@ let NLDDIconButton = class NLDDIconButton extends withTranslations(LitElement, n
|
|
|
218
218
|
* consumers can call `iconButtonEl.focus()` without reaching into shadow DOM.
|
|
219
219
|
*/
|
|
220
220
|
focus(options) {
|
|
221
|
+
if (deferFocus(this, options))
|
|
222
|
+
return;
|
|
221
223
|
this.shadowRoot?.querySelector('.icon-button')?.focus(options);
|
|
222
224
|
}
|
|
223
225
|
// Stable reference (not an inline arrow) so Lit does not re-add the slot
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"icon-button.js","sourceRoot":"","sources":["../../../../src/components/actions/icon-button/icon-button.ts"],"names":[],"mappings":";;;;;;AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8CG;AACH,OAAO,EAAE,UAAU,EAAE,MAAM,KAAK,CAAC;AACjC,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"icon-button.js","sourceRoot":"","sources":["../../../../src/components/actions/icon-button/icon-button.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CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;8CACY;AAKvC;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;gDACc;AAOzC;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;2CACS;AA/IxB,cAAc;IAD1B,aAAa,CAAC,kBAAkB,CAAC;GACrB,cAAc,CAwO1B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"icon-button.template.d.ts","sourceRoot":"","sources":["../../../../src/components/actions/icon-button/icon-button.template.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAIvD,OAAO,kCAAkC,CAAC;
|
|
1
|
+
{"version":3,"file":"icon-button.template.d.ts","sourceRoot":"","sources":["../../../../src/components/actions/icon-button/icon-button.template.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAIvD,OAAO,kCAAkC,CAAC;AAyB1C,wBAAgB,QAAQ,CAAC,IAAI,EAAE,cAAc,wCA2H5C"}
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { html, nothing } from 'lit';
|
|
2
2
|
import { linkRel } from '../../../utilities/link-rel.js';
|
|
3
|
-
import { downloadLinkHintKey,
|
|
3
|
+
import { downloadLinkHintKey, markDownloadTarget } from '../../../utilities/link-hint.js';
|
|
4
4
|
import { hasShortcut, shortcutLabel } from '../../../utilities/shortcut.js';
|
|
5
5
|
import '../../content/tooltip/tooltip.js';
|
|
6
|
+
import { popoverTargetOf } from '../../../utilities/popover-target.js';
|
|
6
7
|
function renderContent(component) {
|
|
7
8
|
return html `
|
|
8
9
|
<span class="icon-button__icon-area">
|
|
@@ -31,7 +32,7 @@ export function template() {
|
|
|
31
32
|
// would override). Only the <a> path (href) navigates.
|
|
32
33
|
const hintKey = downloadLinkHintKey(this.href, this.target, this.download);
|
|
33
34
|
if (this.href)
|
|
34
|
-
|
|
35
|
+
markDownloadTarget(this, this.download, this.target);
|
|
35
36
|
const linkHint = hintKey ? this._t(`components.icon-button.${hintKey}`) : '';
|
|
36
37
|
// The shortcut joins the name the way nldd-menu-item announces it
|
|
37
38
|
// ("Presentatiemodus Alt P"); the tooltip only shows it.
|
|
@@ -109,8 +110,7 @@ export function template() {
|
|
|
109
110
|
aria-expanded=${ariaExpanded}
|
|
110
111
|
aria-busy=${ariaBusy}
|
|
111
112
|
tabindex=${this.noTab ? '-1' : nothing}
|
|
112
|
-
|
|
113
|
-
.popoverTargetElement=${this.popoverTargetElement}
|
|
113
|
+
.popoverTargetElement=${popoverTargetOf(this, this.popovertarget, this.popoverTargetElement)}
|
|
114
114
|
.popoverTargetAction=${this.popoverTargetAction}
|
|
115
115
|
@pointerdown=${this._popup.handlePointerdown}
|
|
116
116
|
@click=${this._handleClick}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"icon-button.template.js","sourceRoot":"","sources":["../../../../src/components/actions/icon-button/icon-button.template.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,KAAK,CAAC;AAEpC,OAAO,EAAE,OAAO,EAAE,MAAM,gCAAgC,CAAC;AACzD,OAAO,EAAE,mBAAmB,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAC1F,OAAO,EAAE,WAAW,EAAE,aAAa,EAAE,MAAM,gCAAgC,CAAC;AAC5E,OAAO,kCAAkC,CAAC;
|
|
1
|
+
{"version":3,"file":"icon-button.template.js","sourceRoot":"","sources":["../../../../src/components/actions/icon-button/icon-button.template.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,KAAK,CAAC;AAEpC,OAAO,EAAE,OAAO,EAAE,MAAM,gCAAgC,CAAC;AACzD,OAAO,EAAE,mBAAmB,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAC1F,OAAO,EAAE,WAA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AAC,mBAAmB;mBAChC,IAAI,CAAC,MAAM,CAAC,iBAAiB;aACnC,IAAI,CAAC,YAAY;;MAExB,OAAO;;GAEV,CAAC;IACH,CAAC,CAAC;IAEF,0EAA0E;IAC1E,0EAA0E;IAC1E,+BAA+B;IAC/B,MAAM,OAAO,GAAG,CAAC,WAAW,IAAI,WAAW,CAAC,IAAI,CAAC,CAAC,IAAI,IAAI,CAAC,aAAa,KAAK,OAAO;QACnF,CAAC,CAAC,IAAI,CAAA;;WAEG,WAAW,IAAI,OAAO;aACpB,IAAI,CAAC,aAAa;eAChB,IAAI,CAAC,QAAQ,IAAI,OAAO;mBACpB,IAAI,CAAC,WAAW,IAAI,OAAO;uBACvB,IAAI,CAAC,eAAe,IAAI,OAAO;qBACjC,IAAI,CAAC,aAAa,IAAI,OAAO;;MAE5C,YAAY,EAAE;;GAEjB;QACD,CAAC,CAAC,YAAY,EAAE,CAAC;IAElB,4EAA4E;IAC5E,yEAAyE;IACzE,2EAA2E;IAC3E,MAAM,SAAS,GAAG,IAAI,CAAA,kCAAkC,IAAI,CAAC,MAAM,CAAC,gBAAgB,UAAU,CAAC;IAE/F,OAAO,IAAI,CAAA,GAAG,OAAO,GAAG,gBAAgB,GAAG,SAAS,EAAE,CAAC;AACxD,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"menu-divider.d.ts","sourceRoot":"","sources":["../../../../src/components/actions/menu/menu-divider.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,KAAK,CAAC;AAGjC,OAAO,EAAuB,KAAK,WAAW,EAAE,MAAM,oBAAoB,CAAC;
|
|
1
|
+
{"version":3,"file":"menu-divider.d.ts","sourceRoot":"","sources":["../../../../src/components/actions/menu/menu-divider.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,KAAK,CAAC;AAGjC,OAAO,EAAuB,KAAK,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAC3E,OAAO,sCAAsC,CAAC;AAE9C;;;;GAIG;AACH,qBAAa,eAAgB,SAAQ,UAAU;IAC9C,OAAgB,MAAM,0BAAqB;IAE3C,0EAA0E;IAE1E,WAAW,EAAE,WAAW,GAAG,IAAI,CAAQ;IAE9B,MAAM;CAGf"}
|
|
@@ -8,6 +8,7 @@ import { LitElement } from 'lit';
|
|
|
8
8
|
import { state } from 'lit/decorators.js';
|
|
9
9
|
import { menuDividerStyles } from './menu.styles.js';
|
|
10
10
|
import { menuDividerTemplate } from './menu.template.js';
|
|
11
|
+
import '../../../utilities/custom-element.js';
|
|
11
12
|
/**
|
|
12
13
|
* A horizontal rule between groups of items in an `nldd-menu`.
|
|
13
14
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"menu-divider.js","sourceRoot":"","sources":["../../../../src/components/actions/menu/menu-divider.ts"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,KAAK,CAAC;AACjC,OAAO,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAC1C,OAAO,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AACrD,OAAO,EAAE,mBAAmB,EAAoB,MAAM,oBAAoB,CAAC;
|
|
1
|
+
{"version":3,"file":"menu-divider.js","sourceRoot":"","sources":["../../../../src/components/actions/menu/menu-divider.ts"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,KAAK,CAAC;AACjC,OAAO,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAC1C,OAAO,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AACrD,OAAO,EAAE,mBAAmB,EAAoB,MAAM,oBAAoB,CAAC;AAC3E,OAAO,sCAAsC,CAAC;AAE9C;;;;GAIG;AACH,MAAM,OAAO,eAAgB,SAAQ,UAAU;IAA/C;;QAGC,0EAA0E;QAE1E,gBAAW,GAAuB,IAAI,CAAC;IAKxC,CAAC;IAHS,MAAM;QACd,OAAO,mBAAmB,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC;IAC9C,CAAC;;AARe,sBAAM,GAAG,iBAAiB,AAApB,CAAqB;AAI3C;IADC,KAAK,EAAE;oDAC+B;AAOxC,IAAI,CAAC,cAAc,CAAC,GAAG,CAAC,mBAAmB,CAAC,EAAE,CAAC;IAC9C,cAAc,CAAC,MAAM,CAAC,mBAAmB,EAAE,eAAe,CAAC,CAAC;AAC7D,CAAC"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { LitElement } from 'lit';
|
|
2
2
|
import { type MenuVariant } from './menu.template.js';
|
|
3
|
+
import '../../../utilities/custom-element.js';
|
|
3
4
|
/**
|
|
4
5
|
* A labeled group of menu items inside an nldd-menu. Wraps its slotted
|
|
5
6
|
* items in `role="group"` with `aria-labelledby` pointing to the group's
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"menu-group.d.ts","sourceRoot":"","sources":["../../../../src/components/actions/menu/menu-group.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,KAAK,CAAC;AAIjC,OAAO,EAAqB,KAAK,WAAW,EAAE,MAAM,oBAAoB,CAAC;
|
|
1
|
+
{"version":3,"file":"menu-group.d.ts","sourceRoot":"","sources":["../../../../src/components/actions/menu/menu-group.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,KAAK,CAAC;AAIjC,OAAO,EAAqB,KAAK,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAEzE,OAAO,sCAAsC,CAAC;AAE9C;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,qBAAa,aAAc,SAAQ,UAAU;IAC5C,OAAgB,MAAM,0BAAmB;IAGzC,IAAI,SAAM;IAOV,OAAO,CAAC,MAAM,CAAC,UAAU,CAAK;IAC9B,QAAQ,CAAC,QAAQ,SAAyD;IAE1E,0EAA0E;IAE1E,WAAW,EAAE,WAAW,GAAG,IAAI,CAAQ;IAE9B,OAAO,CAAC,OAAO,EAAE,GAAG,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI;IAM5C,MAAM;CAGf"}
|
|
@@ -10,6 +10,7 @@ import { reflectNonDefault } from '../../../utilities/reflect-non-default.js';
|
|
|
10
10
|
import { menuGroupStyles } from './menu.styles.js';
|
|
11
11
|
import { menuGroupTemplate } from './menu.template.js';
|
|
12
12
|
import { syncListItemRole } from './menu-item.js';
|
|
13
|
+
import '../../../utilities/custom-element.js';
|
|
13
14
|
/**
|
|
14
15
|
* A labeled group of menu items inside an nldd-menu. Wraps its slotted
|
|
15
16
|
* items in `role="group"` with `aria-labelledby` pointing to the group's
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"menu-group.js","sourceRoot":"","sources":["../../../../src/components/actions/menu/menu-group.ts"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,KAAK,CAAC;AACjC,OAAO,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAE,iBAAiB,EAAE,MAAM,2CAA2C,CAAC;AAC9E,OAAO,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AACnD,OAAO,EAAE,iBAAiB,EAAoB,MAAM,oBAAoB,CAAC;AACzE,OAAO,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;
|
|
1
|
+
{"version":3,"file":"menu-group.js","sourceRoot":"","sources":["../../../../src/components/actions/menu/menu-group.ts"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,KAAK,CAAC;AACjC,OAAO,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAE,iBAAiB,EAAE,MAAM,2CAA2C,CAAC;AAC9E,OAAO,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AACnD,OAAO,EAAE,iBAAiB,EAAoB,MAAM,oBAAoB,CAAC;AACzE,OAAO,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAClD,OAAO,sCAAsC,CAAC;AAE9C;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,MAAM,OAAO,aAAc,SAAQ,UAAU;IAA7C;;QAIC,SAAI,GAAG,EAAE,CAAC;QAQD,aAAQ,GAAG,yBAAyB,aAAa,CAAC,UAAU,EAAE,EAAE,CAAC;QAE1E,0EAA0E;QAE1E,gBAAW,GAAuB,IAAI,CAAC;IAWxC,CAAC;IATS,OAAO,CAAC,OAA6B;QAC7C,qEAAqE;QACrE,+DAA+D;QAC/D,IAAI,OAAO,CAAC,GAAG,CAAC,aAAa,CAAC;YAAE,gBAAgB,CAAC,IAAI,EAAE,IAAI,CAAC,WAAW,CAAC,CAAC;IAC1E,CAAC;IAEQ,MAAM;QACd,OAAO,iBAAiB,CAAC,IAAI,CAAC,CAAC;IAChC,CAAC;;AAzBe,oBAAM,GAAG,eAAe,AAAlB,CAAmB;AAKzC,sEAAsE;AACtE,oEAAoE;AACpE,uEAAuE;AACvE,sEAAsE;AACtE,wCAAwC;AACzB,wBAAU,GAAG,CAAC,AAAJ,CAAK;AAP9B;IADC,QAAQ,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,iBAAiB,CAAS,EAAE,CAAC,EAAE,CAAC;2CAC5D;AAYV;IADC,KAAK,EAAE;kDAC+B;AAaxC,IAAI,CAAC,cAAc,CAAC,GAAG,CAAC,iBAAiB,CAAC,EAAE,CAAC;IAC5C,cAAc,CAAC,MAAM,CAAC,iBAAiB,EAAE,aAAa,CAAC,CAAC;AACzD,CAAC"}
|
|
@@ -2,6 +2,7 @@ import { LitElement } from 'lit';
|
|
|
2
2
|
import { type MenuVariant } from './menu.template.js';
|
|
3
3
|
import type { QueryMarkMode } from '../../../utilities/render-marked.js';
|
|
4
4
|
import type { NLDDMenu } from './menu.js';
|
|
5
|
+
import '../../../utilities/custom-element.js';
|
|
5
6
|
/** Makes `host` a list item while its menu is a navigation menu, and takes
|
|
6
7
|
* that back when it is not. A `listitem` the consumer set by hand on an item
|
|
7
8
|
* goes too when the variant changes back; nothing else uses that role here. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"menu-item.d.ts","sourceRoot":"","sources":["../../../../src/components/actions/menu/menu-item.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,KAAK,CAAC;AAIjC,OAAO,EAAoB,KAAK,WAAW,EAAE,MAAM,oBAAoB,CAAC;AACxE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,qCAAqC,CAAC;AACzE,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,WAAW,CAAC;AAE1C;;gFAEgF;AAChF,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,WAAW,EAAE,OAAO,EAAE,WAAW,GAAG,IAAI,GAAG,IAAI,CAGrF;AAED;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,qBAAa,YAAa,SAAQ,UAAU;IAC3C,OAAgB,MAAM,0BAAkB;IAGxC,WAAW,UAAS;IAGpB,IAAI,SAAM;IAGV,OAAO,SAAM;IAGb,IAAI,SAAM;IAGV,QAAQ,SAAM;IAGd,WAAW,SAAM;IAGjB,eAAe,SAAM;IAGrB,aAAa,SAAM;IAGnB,IAAI,SAAM;IAGV,IAAI,EAAE,QAAQ,GAAG,UAAU,GAAG,OAAO,CAAY;IAGjD,QAAQ,UAAS;IAGjB,QAAQ,UAAS;IAGjB,KAAK,SAAM;IAGX,OAAO,SAAM;IAGb,KAAK,SAAM;IAGX,aAAa,EAAE,aAAa,CAAgB;IAE5C;;;;;;;;;OASG;IAEH,WAAW,EAAE,WAAW,GAAG,IAAI,CAAQ;IAEvC;;sCAEkC;IAElC,WAAW,UAAS;IAEpB;gFAC4E;IAE5E,YAAY,UAAS;IAErB,OAAO,CAAC,MAAM,CAAC,UAAU,CAAK;IAErB,iBAAiB,IAAI,IAAI;IA8BzB,KAAK,CAAC,OAAO,CAAC,EAAE,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AyB;IACjD,OAAO,CAAC,wBAAwB,CAAiC;IAEjE,IAAI,UAAU,IAAI,QAAQ,GAAG,IAAI,CAEhC;IAED,IAAI,WAAW,IAAI,OAAO,CAEzB;IAEQ,UAAU,IAAI,IAAI;IAQlB,OAAO,CAAC,iBAAiB,EAAE,GAAG,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI;IAWtD,YAAY,IAAI,IAAI;IAYpB,oBAAoB,IAAI,IAAI;IAMrC,YAAY,CAAC,KAAK,CAAC,EAAE,KAAK,GAAG,IAAI;IAyCjC,yCAAyC;IACzC,MAAM,IAAI,IAAI;IAIL,MAAM;CAGf"}
|
|
@@ -9,6 +9,9 @@ import { property, state } from 'lit/decorators.js';
|
|
|
9
9
|
import { reflectNonDefault } from '../../../utilities/reflect-non-default.js';
|
|
10
10
|
import { menuItemStyles } from './menu.styles.js';
|
|
11
11
|
import { menuItemTemplate } from './menu.template.js';
|
|
12
|
+
import { setState } from '../../../utilities/element-state.js';
|
|
13
|
+
import '../../../utilities/custom-element.js';
|
|
14
|
+
import { deferFocus } from '../../../utilities/defer-focus.js';
|
|
12
15
|
/** Makes `host` a list item while its menu is a navigation menu, and takes
|
|
13
16
|
* that back when it is not. A `listitem` the consumer set by hand on an item
|
|
14
17
|
* goes too when the variant changes back; nothing else uses that role here. */
|
|
@@ -115,6 +118,8 @@ export class NLDDMenuItem extends LitElement {
|
|
|
115
118
|
});
|
|
116
119
|
}
|
|
117
120
|
focus(options) {
|
|
121
|
+
if (deferFocus(this, options))
|
|
122
|
+
return;
|
|
118
123
|
const focusable = this.shadowRoot?.querySelector('button, a');
|
|
119
124
|
focusable?.focus(options);
|
|
120
125
|
}
|
|
@@ -147,15 +152,10 @@ export class NLDDMenuItem extends LitElement {
|
|
|
147
152
|
// Submenu attachment is one-shot in v1 — a nldd-menu added after this
|
|
148
153
|
// point would silently miss aria-controls, the chevron indicator, the
|
|
149
154
|
// hover-open lifecycle, and the close-state sync. Watch for late
|
|
150
|
-
// additions
|
|
155
|
+
// additions so consumers don't chase the symptom.
|
|
151
156
|
this._submenuMutationObserver = new MutationObserver(() => {
|
|
152
157
|
const current = this.querySelector(':scope > nldd-menu');
|
|
153
|
-
|
|
154
|
-
console.warn('[nldd-menu-item] A nldd-menu child was added after mount. '
|
|
155
|
-
+ 'Submenu attachment is resolved once at firstUpdated in v1, '
|
|
156
|
-
+ 'so this menu will not be treated as a submenu. Define the '
|
|
157
|
-
+ 'nldd-menu child before the item is connected to the DOM.');
|
|
158
|
-
}
|
|
158
|
+
setState(this, 'late-submenu', current !== null && current !== this._cachedSubmenuEl);
|
|
159
159
|
});
|
|
160
160
|
this._submenuMutationObserver.observe(this, { childList: true });
|
|
161
161
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"menu-item.js","sourceRoot":"","sources":["../../../../src/components/actions/menu/menu-item.ts"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,KAAK,CAAC;AACjC,OAAO,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAE,iBAAiB,EAAE,MAAM,2CAA2C,CAAC;AAC9E,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,gBAAgB,EAAoB,MAAM,oBAAoB,CAAC;
|
|
1
|
+
{"version":3,"file":"menu-item.js","sourceRoot":"","sources":["../../../../src/components/actions/menu/menu-item.ts"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,KAAK,CAAC;AACjC,OAAO,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAE,iBAAiB,EAAE,MAAM,2CAA2C,CAAC;AAC9E,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,gBAAgB,EAAoB,MAAM,oBAAoB,CAAC;AAGxE,OAAO,EAAE,QAAQ,EAAE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MAAM,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;0CAChC;AAGV;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;0CACO;AAGjD;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;8CAC1B;AAGjB;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;8CAC1B;AAGjB;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;2CAC/B;AAGX;IADC,QAAQ,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,iBAAiB,CAAS,EAAE,CAAC,EAAE,CAAC;6CACzD;AAGb;IADC,QAAQ,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,iBAAiB,CAAS,EAAE,CAAC,EAAE,CAAC;2CAC3D;AAGX;IADC,QAAQ,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,iBAAiB,EAAE,SAAS,EAAE,iBAAiB,CAAgB,YAAY,CAAC,EAAE,CAAC;mDACzE;AAa5C;IADC,KAAK,EAAE;iDAC+B;AAMvC;IADC,KAAK,EAAE;iDACY;AAKpB;IADC,KAAK,EAAE;kDACa;AA8ItB,IAAI,CAAC,cAAc,CAAC,GAAG,CAAC,gBAAgB,CAAC,EAAE,CAAC;IAC3C,cAAc,CAAC,MAAM,CAAC,gBAAgB,EAAE,YAAY,CAAC,CAAC;AACvD,CAAC"}
|
|
@@ -13,6 +13,7 @@ import { SubmenuLevel } from './menu.chain.js';
|
|
|
13
13
|
import { SafeTriangleController, type Point } from './menu.safe-triangle.js';
|
|
14
14
|
import { NLDDMenuGroup } from './menu-group.js';
|
|
15
15
|
import { NLDDMenuDivider } from './menu-divider.js';
|
|
16
|
+
import '../../../utilities/custom-element.js';
|
|
16
17
|
export { NLDDMenuItem } from './menu-item.js';
|
|
17
18
|
export { NLDDMenuGroup } from './menu-group.js';
|
|
18
19
|
export { NLDDMenuDivider } from './menu-divider.js';
|
|
@@ -168,6 +169,8 @@ export declare class NLDDMenu extends LitElement {
|
|
|
168
169
|
* drop a doubled event in the same tick while still allowing the same
|
|
169
170
|
* text to be re-announced on a later, genuine transition. */
|
|
170
171
|
private _pendingAnnouncement;
|
|
172
|
+
/** Holds a results announcement until the options stop changing. */
|
|
173
|
+
private _announceResultsTimer;
|
|
171
174
|
/**
|
|
172
175
|
* Write `message` to this menu's polite live region. Clears first, then
|
|
173
176
|
* sets on a double rAF — the empty→text transition is what makes screen
|
|
@@ -186,6 +189,15 @@ export declare class NLDDMenu extends LitElement {
|
|
|
186
189
|
/** @internal The name of the element with the menu or listbox role: its
|
|
187
190
|
* own, else the name of what it hangs off. */
|
|
188
191
|
get _listLabel(): string;
|
|
192
|
+
/**
|
|
193
|
+
* Whether the invoking control should treat this menu as open on a
|
|
194
|
+
* pointerdown. In drill-in mode the root is hidden while a submenu shows,
|
|
195
|
+
* and the same pointerdown on the anchor collapses that submenu before the
|
|
196
|
+
* control looks, so `:popover-open` alone would make its click reopen the
|
|
197
|
+
* main level.
|
|
198
|
+
* @internal
|
|
199
|
+
*/
|
|
200
|
+
_shownForInvoker(): boolean;
|
|
189
201
|
/** @internal */
|
|
190
202
|
_getAnchorEl(): Element | null;
|
|
191
203
|
/**
|
|
@@ -404,6 +416,20 @@ export declare class NLDDMenu extends LitElement {
|
|
|
404
416
|
filter(query: string, { hide }?: {
|
|
405
417
|
hide?: boolean;
|
|
406
418
|
}): void;
|
|
419
|
+
/**
|
|
420
|
+
* Says how many options a listbox shows, or its empty text when it shows
|
|
421
|
+
* none, in the live region that is always there.
|
|
422
|
+
*
|
|
423
|
+
* The field that owns the listbox calls this after a keystroke and when
|
|
424
|
+
* options arrive, since only the field knows that a search happened: the
|
|
425
|
+
* menu cannot tell a filter from any other change to its items. The count
|
|
426
|
+
* waits until the options stop changing for a moment, so a screen reader
|
|
427
|
+
* hears the number you land on and not every one on the way. A closed menu
|
|
428
|
+
* says nothing, as it shows nothing.
|
|
429
|
+
*
|
|
430
|
+
* @internal Called by nldd-combo-box and nldd-token-field.
|
|
431
|
+
*/
|
|
432
|
+
_announceResults(): void;
|
|
407
433
|
/**
|
|
408
434
|
* Hide each nldd-menu-group whose items are all filtered out — a labeled
|
|
409
435
|
* heading above an empty section reads as broken. Runs after filter() has
|
|
@@ -497,10 +523,6 @@ export declare class NLDDMenu extends LitElement {
|
|
|
497
523
|
* place. A submenu's items are its own and are left to it.
|
|
498
524
|
*/
|
|
499
525
|
_claimItems: () => void;
|
|
500
|
-
private _warnedActionsInNavigation;
|
|
501
|
-
private _warnedFilterInNavigation;
|
|
502
|
-
/** Checkable items and shortcuts belong to actions, not to a list of links. */
|
|
503
|
-
private _warnOnActionsInNavigation;
|
|
504
526
|
private _handleBeforeToggle;
|
|
505
527
|
private _handleToggle;
|
|
506
528
|
render(): import("lit-html").TemplateResult<1>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"menu.d.ts","sourceRoot":"","sources":["../../../../src/components/actions/menu/menu.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,KAAK,CAAC;AAKjC,OAAO,EAAgB,KAAK,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAEpE,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,gBAAgB,CAAC;AAC3D,OAAO,qDAAqD,CAAC;AAC7D,OAAO,yDAAyD,CAAC;AACjE,OAAO,qDAAqD,CAAC;AAC7D,OAAO,4BAA4B,CAAC;AACpC,OAAO,sDAAsD,CAAC;AAC9D,OAAO,0DAA0D,CAAC;AAIlE,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAE,qBAAqB,EAAE,MAAM,mBAAmB,CAAC;AAC1D,OAAO,EAAE,Y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;;uBAGmB;IACnB,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAC,mBAAmB,CAAO;IAElD;;;;;;;;;;OAUG;IACH,OAAO,CAAC,gBAAgB;IAgCxB;;;;;;;;;;;;;;;;OAgBG;IACI,WAAW,QAAO,IAAI,CAiB3B;IAEF,OAAO,CAAC,mBAAmB,CAEzB;IAEF,OAAO,CAAC,aAAa,CA2DnB;IAEO,MAAM;CAGf;AAMD,OAAO,CAAC,MAAM,CAAC;IACd,UAAU,qBAAqB;QAC9B,WAAW,EAAE,QAAQ,CAAC;QACtB,gBAAgB,EAAE,YAAY,CAAC;QAC/B,mBAAmB,EAAE,eAAe,CAAC;QACrC,iBAAiB,EAAE,aAAa,CAAC;KACjC;CACD"}
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
export declare const nlddMenuTranslations: {
|
|
2
2
|
'components.menu.empty-text': string;
|
|
3
|
+
'components.menu.one-result-text': string;
|
|
4
|
+
'components.menu.results-text': string;
|
|
3
5
|
'components.menu.back-action': string;
|
|
4
6
|
'components.menu.submenu-title': string;
|
|
5
7
|
'components.menu.submenu-back-action': string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"menu.i18n.d.ts","sourceRoot":"","sources":["../../../../src/components/actions/menu/menu.i18n.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,oBAAoB
|
|
1
|
+
{"version":3,"file":"menu.i18n.d.ts","sourceRoot":"","sources":["../../../../src/components/actions/menu/menu.i18n.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,oBAAoB;;;;;;;CAShC,CAAC;AAEF,MAAM,MAAM,oBAAoB,GAAG,OAAO,oBAAoB,CAAC"}
|
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
export const nlddMenuTranslations = {
|
|
2
2
|
'components.menu.empty-text': 'Geen opties beschikbaar',
|
|
3
|
+
// Read by a screen reader when the options of a combobox or token field
|
|
4
|
+
// change while typing. The first for one option, the second for more.
|
|
5
|
+
'components.menu.one-result-text': '1 resultaat',
|
|
6
|
+
'components.menu.results-text': '{count} resultaten',
|
|
3
7
|
'components.menu.back-action': 'Terug',
|
|
4
8
|
'components.menu.submenu-title': 'Submenu: {title}',
|
|
5
9
|
'components.menu.submenu-back-action': 'Terug naar {title}',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"menu.i18n.js","sourceRoot":"","sources":["../../../../src/components/actions/menu/menu.i18n.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,oBAAoB,GAAG;IACnC,4BAA4B,EAAE,yBAAyB;IACvD,6BAA6B,EAAE,OAAO;IACtC,+BAA+B,EAAE,kBAAkB;IACnD,qCAAqC,EAAE,oBAAoB;CAC3D,CAAC"}
|
|
1
|
+
{"version":3,"file":"menu.i18n.js","sourceRoot":"","sources":["../../../../src/components/actions/menu/menu.i18n.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,oBAAoB,GAAG;IACnC,4BAA4B,EAAE,yBAAyB;IACvD,wEAAwE;IACxE,sEAAsE;IACtE,iCAAiC,EAAE,aAAa;IAChD,8BAA8B,EAAE,oBAAoB;IACpD,6BAA6B,EAAE,OAAO;IACtC,+BAA+B,EAAE,kBAAkB;IACnD,qCAAqC,EAAE,oBAAoB;CAC3D,CAAC"}
|
|
@@ -24,6 +24,8 @@ import { MenuPointerController } from './menu.pointer.js';
|
|
|
24
24
|
import { SubmenuLevel } from './menu.chain.js';
|
|
25
25
|
import { SafeTriangleController, rectContainsPoint } from './menu.safe-triangle.js';
|
|
26
26
|
import { nextTabbableAfter } from '../../../utilities/tab-order.js';
|
|
27
|
+
import { setState } from '../../../utilities/element-state.js';
|
|
28
|
+
import '../../../utilities/custom-element.js';
|
|
27
29
|
export { NLDDMenuItem } from './menu-item.js';
|
|
28
30
|
export { NLDDMenuGroup } from './menu-group.js';
|
|
29
31
|
export { NLDDMenuDivider } from './menu-divider.js';
|
|
@@ -51,6 +53,8 @@ function nameOfAnchor(anchor) {
|
|
|
51
53
|
const root = anchor.getRootNode();
|
|
52
54
|
return root instanceof ShadowRoot ? nameOfAnchor(root.host) : '';
|
|
53
55
|
}
|
|
56
|
+
/** How long the options have to stay the same before their number is said. */
|
|
57
|
+
const ANNOUNCE_RESULTS_DELAY_MS = 500;
|
|
54
58
|
/**
|
|
55
59
|
* A floating menu component using the Popover API.
|
|
56
60
|
* Positioned relative to an anchor element using Floating UI.
|
|
@@ -206,6 +210,8 @@ export class NLDDMenu extends LitElement {
|
|
|
206
210
|
* drop a doubled event in the same tick while still allowing the same
|
|
207
211
|
* text to be re-announced on a later, genuine transition. */
|
|
208
212
|
this._pendingAnnouncement = '';
|
|
213
|
+
/** Holds a results announcement until the options stop changing. */
|
|
214
|
+
this._announceResultsTimer = 0;
|
|
209
215
|
/**
|
|
210
216
|
* Reflect this menu's open state on the anchor so an anchor button (or
|
|
211
217
|
* any element exposing an `expanded` IDL property) shows the active
|
|
@@ -257,13 +263,13 @@ export class NLDDMenu extends LitElement {
|
|
|
257
263
|
this._seededPopupType = null;
|
|
258
264
|
// — Event handlers ————————————————————————————————————————————————————————
|
|
259
265
|
this._handleDocumentClick = (event) => {
|
|
260
|
-
if (this.anchorElement)
|
|
261
|
-
return;
|
|
262
266
|
// Consume the same-gesture collapse marker (set when an outside or
|
|
263
267
|
// anchor pointer gesture collapsed the chain). Read+clear for every
|
|
264
268
|
// click so it never leaks past a single gesture.
|
|
265
269
|
const collapsedByGesture = this._collapsedByPointerGesture;
|
|
266
270
|
this._collapsedByPointerGesture = false;
|
|
271
|
+
if (this.anchorElement)
|
|
272
|
+
return;
|
|
267
273
|
const anchorEl = this._getAnchorEl();
|
|
268
274
|
if (!anchorEl)
|
|
269
275
|
return;
|
|
@@ -653,15 +659,12 @@ export class NLDDMenu extends LitElement {
|
|
|
653
659
|
});
|
|
654
660
|
Array.from(this.querySelectorAll('nldd-menu-divider, nldd-menu-group'))
|
|
655
661
|
.forEach(part => { part.menuVariant = this.variant; });
|
|
656
|
-
this._warnOnActionsInNavigation(items);
|
|
657
662
|
const own = items.filter(item => item.closest('nldd-menu') === this);
|
|
658
663
|
const checkColumn = this.variant === 'menu' && own.some(item => item.type !== 'button');
|
|
659
664
|
own.forEach(item => {
|
|
660
665
|
item.checkColumn = checkColumn;
|
|
661
666
|
});
|
|
662
667
|
};
|
|
663
|
-
this._warnedActionsInNavigation = false;
|
|
664
|
-
this._warnedFilterInNavigation = false;
|
|
665
668
|
this._handleBeforeToggle = (event) => {
|
|
666
669
|
if (event.newState === 'open')
|
|
667
670
|
this.removeAttribute('positioned');
|
|
@@ -830,6 +833,17 @@ export class NLDDMenu extends LitElement {
|
|
|
830
833
|
return anchor ? nameOfAnchor(anchor) : '';
|
|
831
834
|
}
|
|
832
835
|
// — Anchor ————————————————————————————————————————————————————————————————
|
|
836
|
+
/**
|
|
837
|
+
* Whether the invoking control should treat this menu as open on a
|
|
838
|
+
* pointerdown. In drill-in mode the root is hidden while a submenu shows,
|
|
839
|
+
* and the same pointerdown on the anchor collapses that submenu before the
|
|
840
|
+
* control looks, so `:popover-open` alone would make its click reopen the
|
|
841
|
+
* main level.
|
|
842
|
+
* @internal
|
|
843
|
+
*/
|
|
844
|
+
_shownForInvoker() {
|
|
845
|
+
return this.matches(':popover-open') || this._openChain.length > 0 || this._collapsedByPointerGesture;
|
|
846
|
+
}
|
|
833
847
|
/** @internal */
|
|
834
848
|
_getAnchorEl() {
|
|
835
849
|
if (this.anchorElement)
|
|
@@ -1043,6 +1057,8 @@ export class NLDDMenu extends LitElement {
|
|
|
1043
1057
|
}
|
|
1044
1058
|
disconnectedCallback() {
|
|
1045
1059
|
super.disconnectedCallback();
|
|
1060
|
+
clearTimeout(this._announceResultsTimer);
|
|
1061
|
+
this._announceResultsTimer = 0;
|
|
1046
1062
|
// Close any open child submenu before tearing down — the submenu is a
|
|
1047
1063
|
// document-anchored popover and would otherwise outlive its parent.
|
|
1048
1064
|
// The toggle listener wired in _handleSubmenuOpen still fires from
|
|
@@ -1199,10 +1215,7 @@ export class NLDDMenu extends LitElement {
|
|
|
1199
1215
|
* keystroke. Text without the query in it is shown as it is.
|
|
1200
1216
|
*/
|
|
1201
1217
|
filter(query, { hide = true } = {}) {
|
|
1202
|
-
|
|
1203
|
-
this._warnedFilterInNavigation = true;
|
|
1204
|
-
console.warn('nldd-menu: filter() belongs to a menu of actions or options. A navigation menu is a short list of links and is not filtered.');
|
|
1205
|
-
}
|
|
1218
|
+
setState(this, 'filtered', true);
|
|
1206
1219
|
const allItems = Array.from(this.querySelectorAll('nldd-menu-item'));
|
|
1207
1220
|
allItems.forEach(item => {
|
|
1208
1221
|
const matches = !hide || !query || this.filterFn(query, item);
|
|
@@ -1216,6 +1229,41 @@ export class NLDDMenu extends LitElement {
|
|
|
1216
1229
|
if (this._isOpen)
|
|
1217
1230
|
this.reposition();
|
|
1218
1231
|
}
|
|
1232
|
+
/**
|
|
1233
|
+
* Says how many options a listbox shows, or its empty text when it shows
|
|
1234
|
+
* none, in the live region that is always there.
|
|
1235
|
+
*
|
|
1236
|
+
* The field that owns the listbox calls this after a keystroke and when
|
|
1237
|
+
* options arrive, since only the field knows that a search happened: the
|
|
1238
|
+
* menu cannot tell a filter from any other change to its items. The count
|
|
1239
|
+
* waits until the options stop changing for a moment, so a screen reader
|
|
1240
|
+
* hears the number you land on and not every one on the way. A closed menu
|
|
1241
|
+
* says nothing, as it shows nothing.
|
|
1242
|
+
*
|
|
1243
|
+
* @internal Called by nldd-combo-box and nldd-token-field.
|
|
1244
|
+
*/
|
|
1245
|
+
_announceResults() {
|
|
1246
|
+
clearTimeout(this._announceResultsTimer);
|
|
1247
|
+
this._announceResultsTimer = window.setTimeout(() => {
|
|
1248
|
+
this._announceResultsTimer = 0;
|
|
1249
|
+
if (!this.isConnected || !this.matches(':popover-open'))
|
|
1250
|
+
return;
|
|
1251
|
+
const count = Array.from(this.querySelectorAll('nldd-menu-item:not([hidden])'))
|
|
1252
|
+
.filter((item) => item.closest('nldd-menu') === this).length;
|
|
1253
|
+
let text;
|
|
1254
|
+
if (count === 0) {
|
|
1255
|
+
const slot = this.shadowRoot?.querySelector('slot[name="empty"]');
|
|
1256
|
+
const own = (slot?.assignedNodes({ flatten: true }) ?? []).map((node) => node.textContent ?? '').join(' ').trim();
|
|
1257
|
+
text = own || this._resolvedEmptyText;
|
|
1258
|
+
}
|
|
1259
|
+
else {
|
|
1260
|
+
text = count === 1
|
|
1261
|
+
? this._t('components.menu.one-result-text')
|
|
1262
|
+
: this._t('components.menu.results-text', { count });
|
|
1263
|
+
}
|
|
1264
|
+
this._announce(text);
|
|
1265
|
+
}, ANNOUNCE_RESULTS_DELAY_MS);
|
|
1266
|
+
}
|
|
1219
1267
|
/**
|
|
1220
1268
|
* Hide each nldd-menu-group whose items are all filtered out — a labeled
|
|
1221
1269
|
* heading above an empty section reads as broken. Runs after filter() has
|
|
@@ -1408,16 +1456,6 @@ export class NLDDMenu extends LitElement {
|
|
|
1408
1456
|
}
|
|
1409
1457
|
}
|
|
1410
1458
|
}
|
|
1411
|
-
/** Checkable items and shortcuts belong to actions, not to a list of links. */
|
|
1412
|
-
_warnOnActionsInNavigation(items) {
|
|
1413
|
-
if (!import.meta.env?.DEV || this.variant !== 'navigation' || this._warnedActionsInNavigation)
|
|
1414
|
-
return;
|
|
1415
|
-
const stray = items.find(item => item.type !== 'button' || item.shortcut);
|
|
1416
|
-
if (!stray)
|
|
1417
|
-
return;
|
|
1418
|
-
this._warnedActionsInNavigation = true;
|
|
1419
|
-
console.warn('nldd-menu: variant="navigation" is a list of links. A checkbox or radio item, or a shortcut, belongs to an action menu and has no role to live in here. Use the default variant for actions.', stray);
|
|
1420
|
-
}
|
|
1421
1459
|
render() {
|
|
1422
1460
|
return menuTemplate.call(this, this._isEmpty, this.variant);
|
|
1423
1461
|
}
|