@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
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { html, nothing } from 'lit';
|
|
2
2
|
import { linkRel } from '../../../utilities/link-rel.js';
|
|
3
|
-
export function template(control, href, target, rel, download, checked, expanded, current, disabled, accessibleLabel, actionTabindex, popupType,
|
|
3
|
+
export function template(control, href, target, rel, download, checked, expanded, current, disabled, accessibleLabel, actionTabindex, popupType, popoverTargetElement, popoverTargetAction, linkHint = '') {
|
|
4
4
|
const content = html `<slot></slot>`;
|
|
5
5
|
// A control that opens a popup always carries aria-expanded, open or not:
|
|
6
6
|
// without it a screen reader hears a plain button and cannot tell there is
|
|
@@ -30,7 +30,6 @@ export function template(control, href, target, rel, download, checked, expanded
|
|
|
30
30
|
return html `<button class="list-item-segment"
|
|
31
31
|
type="button"
|
|
32
32
|
aria-haspopup=${popupType || nothing}
|
|
33
|
-
popovertarget=${popovertarget ?? nothing}
|
|
34
33
|
.popoverTargetElement=${popoverTargetElement ?? null}
|
|
35
34
|
.popoverTargetAction=${popoverTargetAction ?? 'toggle'}
|
|
36
35
|
role=${control === 'checkbox' ? 'checkbox' : nothing}
|
package/dist/components/lists-and-tables/list-item-segment/list-item-segment.template.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-item-segment.template.js","sourceRoot":"","sources":["../../../../src/components/lists-and-tables/list-item-segment/list-item-segment.template.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,KAAK,CAAC;AACpC,OAAO,EAAE,OAAO,EAAE,MAAM,gCAAgC,CAAC;AAIzD,MAAM,UAAU,QAAQ,CACvB,OAA+B,EAC/B,IAAwB,EACxB,MAA0B,EAC1B,GAAuB,EACvB,QAA4B,EAC5B,OAAgB,EAChB,QAA6B,EAC7B,OAA2B,EAC3B,QAAiB,EACjB,eAAuB,EACvB,cAAuB,EACvB,SAAkB,EAClB,
|
|
1
|
+
{"version":3,"file":"list-item-segment.template.js","sourceRoot":"","sources":["../../../../src/components/lists-and-tables/list-item-segment/list-item-segment.template.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,KAAK,CAAC;AACpC,OAAO,EAAE,OAAO,EAAE,MAAM,gCAAgC,CAAC;AAIzD,MAAM,UAAU,QAAQ,CACvB,OAA+B,EAC/B,IAAwB,EACxB,MAA0B,EAC1B,GAAuB,EACvB,QAA4B,EAC5B,OAAgB,EAChB,QAA6B,EAC7B,OAA2B,EAC3B,QAAiB,EACjB,eAAuB,EACvB,cAAuB,EACvB,SAAkB,EAClB,oBAAqC,EACrC,mBAAgD,EAChD,QAAQ,GAAG,EAAE;IAEb,MAAM,OAAO,GAAG,IAAI,CAAA,eAAe,CAAC;IACpC,0EAA0E;IAC1E,2EAA2E;IAC3E,6EAA6E;IAC7E,MAAM,YAAY,GAAG,QAAQ,KAAK,SAAS;QAC1C,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,OAAO,CAAC;QACjC,CAAC,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC;IACpB,MAAM,WAAW,GAAG,OAAO,IAAI,OAAO,CAAC;IACvC,MAAM,KAAK,GAAG,eAAe,IAAI,OAAO,CAAC;IACzC,6EAA6E;IAC7E,yEAAyE;IACzE,MAAM,SAAS,GAAG,eAAe,CAAC,CAAC,CAAC,CAAC,eAAe,EAAE,QAAQ,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC;IAErG,IAAI,OAAO,KAAK,MAAM,EAAE,CAAC;QACxB,OAAO,IAAI,CAAA;UACH,IAAI,IAAI,OAAO;YACb,MAAM,IAAI,OAAO;SACpB,OAAO,CAAC,GAAG,EAAE,MAAM,CAAC,IAAI,OAAO;cAC1B,QAAQ,IAAI,OAAO;mBACd,QAAQ,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,OAAO;mBAC3B,YAAY;kBACb,WAAW;gBACb,SAAS;cACX,cAAc,IAAI,OAAO;KAClC,OAAO,GAAG,QAAQ,IAAI,CAAC,eAAe,CAAC,CAAC,CAAC,IAAI,CAAA,gDAAgD,QAAQ,SAAS,CAAC,CAAC,CAAC,OAAO,MAAM,CAAC;IACnI,CAAC;IAED,IAAI,OAAO,KAAK,UAAU,IAAI,OAAO,KAAK,QAAQ,EAAE,CAAC;QACpD,OAAO,IAAI,CAAA;;mBAEM,SAAS,IAAI,OAAO;2BACZ,oBAAoB,IAAI,IAAI;0BAC7B,mBAAmB,IAAI,QAAQ;UAC/C,OAAO,KAAK,UAAU,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,OAAO;kBACrC,OAAO,KAAK,UAAU,CAAC,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,OAAO;mBACjD,YAAY;kBACb,WAAW;gBACb,KAAK;eACN,QAAQ;cACT,cAAc,IAAI,OAAO;KAClC,OAAO,WAAW,CAAC;IACvB,CAAC;IAED,4EAA4E;IAC5E,2EAA2E;IAC3E,2CAA2C;IAC3C,OAAO,IAAI,CAAA,kCAAkC,OAAO,QAAQ,CAAC;AAC9D,CAAC"}
|
|
@@ -16,6 +16,16 @@
|
|
|
16
16
|
* Header: put one `<nldd-table-row slot="header">` in the `header` slot. Its
|
|
17
17
|
* cells become column headers (role="columnheader").
|
|
18
18
|
*
|
|
19
|
+
* Row headers: give the cell that says what a row is about `row-header`
|
|
20
|
+
* (`nldd-cell`, `nldd-title-cell`, `nldd-text-cell`, `nldd-description-cell`).
|
|
21
|
+
* The row then gives it role="rowheader" instead of "cell", so a screen
|
|
22
|
+
* reader names the row along with every other cell in it, like
|
|
23
|
+
* `<th scope="row">`. The attribute goes on the cell, not as a column index on
|
|
24
|
+
* the row or table, so it survives columns hidden at a breakpoint and needs
|
|
25
|
+
* no counting. It changes the semantics only: the cell variant still decides
|
|
26
|
+
* the look. The cell above the row headers, in the header row, stays a
|
|
27
|
+
* columnheader. Headers that span rows or columns are not supported.
|
|
28
|
+
*
|
|
19
29
|
* Responsive: two complementary strategies. (1) Give columns a minimum width
|
|
20
30
|
* (e.g. `minmax(160px,1fr)`) — the table is its own scroll container, so it
|
|
21
31
|
* scrolls horizontally when too narrow (no wrapper needed).
|
|
@@ -48,6 +58,14 @@
|
|
|
48
58
|
*
|
|
49
59
|
* @attr {boolean} selected - Highlights the row (same treatment as nldd-list-item[selected])
|
|
50
60
|
*
|
|
61
|
+
* Assigns each slotted cell its role: "columnheader" in a header row,
|
|
62
|
+
* "rowheader" for a body cell with `row-header`, "cell" otherwise.
|
|
63
|
+
*
|
|
64
|
+
* An `nldd-title-cell` without a `size` gets `size="6"`: the same
|
|
65
|
+
* size as the other cells, in bold. Its default of 5 is made to stand out
|
|
66
|
+
* above the supporting text of a list item, and in a table it towers over the
|
|
67
|
+
* row. A `size` in the markup wins, 5 included.
|
|
68
|
+
*
|
|
51
69
|
* @slot - The row's cells (`nldd-cell` and variants), one per column
|
|
52
70
|
*/
|
|
53
71
|
import { LitElement } from 'lit';
|
|
@@ -72,8 +90,6 @@ export declare class NLDDTable extends LitElement {
|
|
|
72
90
|
* attribute so a non-selectable table isn't announced as selectable
|
|
73
91
|
* (ARIA 1.2 §6.6.5). The visual `selected` tint on a row works either way. */
|
|
74
92
|
selectable: boolean;
|
|
75
|
-
private _warnedColumns;
|
|
76
|
-
private _warnedLabel;
|
|
77
93
|
private _resizeObserver?;
|
|
78
94
|
private _rowsObserver?;
|
|
79
95
|
/** Last observed content-box width, to resolve the active track list. */
|
|
@@ -89,17 +105,6 @@ export declare class NLDDTable extends LitElement {
|
|
|
89
105
|
* firstUpdated. The `is-empty` host class drives hiding the header (CSS)
|
|
90
106
|
* so only the message shows. */
|
|
91
107
|
private _updateEmpty;
|
|
92
|
-
/**
|
|
93
|
-
* A table with no rows and nothing to say about that.
|
|
94
|
-
*
|
|
95
|
-
* There is no default text any more, because what an empty table means is
|
|
96
|
-
* the app's to write and a house sentence was wrong more often than right.
|
|
97
|
-
* That leaves a real risk of a blank area with nothing in the accessibility
|
|
98
|
-
* tree either, so the table asks the person building it rather than
|
|
99
|
-
* answering for them.
|
|
100
|
-
*/
|
|
101
|
-
private _warnSilentEmpty;
|
|
102
|
-
private _warnedSilentEmpty;
|
|
103
108
|
/** The track list for the current width: a breakpoint override when set,
|
|
104
109
|
* otherwise the base `columns`. */
|
|
105
110
|
private _activeColumns;
|
|
@@ -123,7 +128,9 @@ export declare class NLDDTableRow extends LitElement {
|
|
|
123
128
|
* `selectable`, so assistive tech conveys it. Consumer-driven (e.g. a
|
|
124
129
|
* checkbox cell). */
|
|
125
130
|
selected: boolean;
|
|
131
|
+
private _rowHeaderObserver?;
|
|
126
132
|
connectedCallback(): void;
|
|
133
|
+
disconnectedCallback(): void;
|
|
127
134
|
updated(changed: Map<string, unknown>): void;
|
|
128
135
|
/** A header row lives in the table's `header` slot. */
|
|
129
136
|
private get _isHeader();
|
|
@@ -133,6 +140,10 @@ export declare class NLDDTableRow extends LitElement {
|
|
|
133
140
|
* @internal Re-invoked by the parent table when its `selectable` changes. */
|
|
134
141
|
_syncAriaSelected(): void;
|
|
135
142
|
private _onSlotChange;
|
|
143
|
+
/** Cells need explicit roles since the grid layout drops native table
|
|
144
|
+
* semantics. A header row's cells are column headers whatever they say,
|
|
145
|
+
* so the cell above a row-header column stays a columnheader. */
|
|
146
|
+
private _syncCellRoles;
|
|
136
147
|
render(): import("lit-html").TemplateResult<1>;
|
|
137
148
|
private _onSlotChangeBound;
|
|
138
149
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"table.d.ts","sourceRoot":"","sources":["../../../../src/components/lists-and-tables/table/table.ts"],"names":[],"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O,CAAC,GAAG,IAAI;IAoB5C,MAAM;CAGf;AAKD,qBACa,YAAa,SAAQ,UAAU;IAC3C,OAAgB,MAAM,0BAAkB;IAExC;;;0BAGsB;IAEtB,QAAQ,UAAS;IAEjB,OAAO,CAAC,kBAAkB,CAAC,CAAmB;IAErC,iBAAiB,IAAI,IAAI;IAczB,oBAAoB,IAAI,IAAI;IAM5B,OAAO,CAAC,OAAO,EAAE,GAAG,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI;IAMrD,uDAAuD;IACvD,OAAO,KAAK,SAAS,GAEpB;IAED;;;kFAG8E;IAC9E,iBAAiB,IAAI,IAAI;IAUzB,OAAO,CAAC,aAAa;IA4BrB;;sEAEkE;IAClE,OAAO,CAAC,cAAc;IAUb,MAAM;IAIf,OAAO,CAAC,kBAAkB,CAAiC;CAC3D;AAED,OAAO,CAAC,MAAM,CAAC;IACd,UAAU,qBAAqB;QAC9B,YAAY,EAAE,SAAS,CAAC;QACxB,gBAAgB,EAAE,YAAY,CAAC;KAC/B;CACD"}
|
|
@@ -22,6 +22,16 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
22
22
|
* Header: put one `<nldd-table-row slot="header">` in the `header` slot. Its
|
|
23
23
|
* cells become column headers (role="columnheader").
|
|
24
24
|
*
|
|
25
|
+
* Row headers: give the cell that says what a row is about `row-header`
|
|
26
|
+
* (`nldd-cell`, `nldd-title-cell`, `nldd-text-cell`, `nldd-description-cell`).
|
|
27
|
+
* The row then gives it role="rowheader" instead of "cell", so a screen
|
|
28
|
+
* reader names the row along with every other cell in it, like
|
|
29
|
+
* `<th scope="row">`. The attribute goes on the cell, not as a column index on
|
|
30
|
+
* the row or table, so it survives columns hidden at a breakpoint and needs
|
|
31
|
+
* no counting. It changes the semantics only: the cell variant still decides
|
|
32
|
+
* the look. The cell above the row headers, in the header row, stays a
|
|
33
|
+
* columnheader. Headers that span rows or columns are not supported.
|
|
34
|
+
*
|
|
25
35
|
* Responsive: two complementary strategies. (1) Give columns a minimum width
|
|
26
36
|
* (e.g. `minmax(160px,1fr)`) — the table is its own scroll container, so it
|
|
27
37
|
* scrolls horizontally when too narrow (no wrapper needed).
|
|
@@ -54,10 +64,19 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
54
64
|
*
|
|
55
65
|
* @attr {boolean} selected - Highlights the row (same treatment as nldd-list-item[selected])
|
|
56
66
|
*
|
|
67
|
+
* Assigns each slotted cell its role: "columnheader" in a header row,
|
|
68
|
+
* "rowheader" for a body cell with `row-header`, "cell" otherwise.
|
|
69
|
+
*
|
|
70
|
+
* An `nldd-title-cell` without a `size` gets `size="6"`: the same
|
|
71
|
+
* size as the other cells, in bold. Its default of 5 is made to stand out
|
|
72
|
+
* above the supporting text of a list item, and in a table it towers over the
|
|
73
|
+
* row. A `size` in the markup wins, 5 included.
|
|
74
|
+
*
|
|
57
75
|
* @slot - The row's cells (`nldd-cell` and variants), one per column
|
|
58
76
|
*/
|
|
59
77
|
import { LitElement } from 'lit';
|
|
60
|
-
import {
|
|
78
|
+
import { property } from 'lit/decorators.js';
|
|
79
|
+
import { customElement } from '../../../utilities/custom-element.js';
|
|
61
80
|
import { reflectNonDefault } from '../../../utilities/reflect-non-default.js';
|
|
62
81
|
import { tableStyles, tableRowStyles } from './table.styles.js';
|
|
63
82
|
import { tableTemplate, tableRowTemplate } from './table.template.js';
|
|
@@ -65,6 +84,7 @@ import { nlddTableTranslations } from './table.i18n.js';
|
|
|
65
84
|
import { breakpointPx, rootFontSize } from '../../../assets/styles/breakpoints.js';
|
|
66
85
|
import '../../status-and-feedback/inline-dialog/inline-dialog.js';
|
|
67
86
|
import { translate } from '../../../utilities/translations.js';
|
|
87
|
+
import { setState } from '../../../utilities/element-state.js';
|
|
68
88
|
// # nldd-table
|
|
69
89
|
let NLDDTable = class NLDDTable extends LitElement {
|
|
70
90
|
constructor() {
|
|
@@ -85,11 +105,8 @@ let NLDDTable = class NLDDTable extends LitElement {
|
|
|
85
105
|
* attribute so a non-selectable table isn't announced as selectable
|
|
86
106
|
* (ARIA 1.2 §6.6.5). The visual `selected` tint on a row works either way. */
|
|
87
107
|
this.selectable = false;
|
|
88
|
-
this._warnedColumns = false;
|
|
89
|
-
this._warnedLabel = false;
|
|
90
108
|
/** Last observed content-box width, to resolve the active track list. */
|
|
91
109
|
this._width = 0;
|
|
92
|
-
this._warnedSilentEmpty = false;
|
|
93
110
|
}
|
|
94
111
|
_t(key) {
|
|
95
112
|
return translate(this.translations, nlddTableTranslations, key);
|
|
@@ -168,29 +185,9 @@ let NLDDTable = class NLDDTable extends LitElement {
|
|
|
168
185
|
this.classList.toggle('is-empty', isEmpty);
|
|
169
186
|
// See nldd-list: no rows and nothing slotted is not a thing on the page.
|
|
170
187
|
this.classList.toggle('is-blank', isEmpty && !noResults && !hasEmpty);
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
* A table with no rows and nothing to say about that.
|
|
175
|
-
*
|
|
176
|
-
* There is no default text any more, because what an empty table means is
|
|
177
|
-
* the app's to write and a house sentence was wrong more often than right.
|
|
178
|
-
* That leaves a real risk of a blank area with nothing in the accessibility
|
|
179
|
-
* tree either, so the table asks the person building it rather than
|
|
180
|
-
* answering for them.
|
|
181
|
-
*/
|
|
182
|
-
_warnSilentEmpty(isEmpty, hasEmpty, hasRows) {
|
|
183
|
-
if (!import.meta.env?.DEV)
|
|
184
|
-
return;
|
|
185
|
-
if (!isEmpty || this._warnedSilentEmpty || hasEmpty)
|
|
186
|
-
return;
|
|
187
|
-
// Rows that are all hidden are the no-results state, and a slot that covers
|
|
188
|
-
// it answers the question.
|
|
189
|
-
if (hasRows && this.querySelector(':scope > [slot="no-results"]'))
|
|
190
|
-
return;
|
|
191
|
-
this._warnedSilentEmpty = true;
|
|
192
|
-
console.warn('nldd-table: no rows and nothing in [slot="empty"], so the table renders a blank area. '
|
|
193
|
-
+ 'Put an nldd-inline-dialog in that slot saying what is not there and what the next move is.', this);
|
|
188
|
+
// Rows that are all hidden are the no-results state, not an empty table.
|
|
189
|
+
setState(this, 'empty', isEmpty && rows.length === 0);
|
|
190
|
+
setState(this, 'filtered', isEmpty && rows.length > 0);
|
|
194
191
|
}
|
|
195
192
|
/** The track list for the current width: a breakpoint override when set,
|
|
196
193
|
* otherwise the base `columns`. */
|
|
@@ -255,20 +252,6 @@ let NLDDTable = class NLDDTable extends LitElement {
|
|
|
255
252
|
row._syncAriaSelected();
|
|
256
253
|
}
|
|
257
254
|
}
|
|
258
|
-
if (import.meta.env?.DEV && !this.columns && !this._warnedColumns) {
|
|
259
|
-
this._warnedColumns = true;
|
|
260
|
-
console.warn('<nldd-table>: no `columns` set. Define a CSS grid track list (e.g. columns="200px 1fr 80px") so cells align into columns.');
|
|
261
|
-
}
|
|
262
|
-
else if (this.columns) {
|
|
263
|
-
this._warnedColumns = false;
|
|
264
|
-
}
|
|
265
|
-
if (import.meta.env?.DEV && !this.accessibleLabel && !this._warnedLabel) {
|
|
266
|
-
this._warnedLabel = true;
|
|
267
|
-
console.warn('<nldd-table>: no `accessible-label` set. role="table" needs an accessible name — add accessible-label="…".');
|
|
268
|
-
}
|
|
269
|
-
else if (this.accessibleLabel) {
|
|
270
|
-
this._warnedLabel = false;
|
|
271
|
-
}
|
|
272
255
|
}
|
|
273
256
|
render() {
|
|
274
257
|
return tableTemplate();
|
|
@@ -319,6 +302,18 @@ let NLDDTableRow = class NLDDTableRow extends LitElement {
|
|
|
319
302
|
// display:grid strips native row semantics — restore them for AT.
|
|
320
303
|
this.setAttribute('role', 'row');
|
|
321
304
|
this._syncAriaSelected();
|
|
305
|
+
// slotchange misses a cell gaining or losing `row-header` later.
|
|
306
|
+
this._rowHeaderObserver = new MutationObserver(() => this._syncCellRoles());
|
|
307
|
+
this._rowHeaderObserver.observe(this, {
|
|
308
|
+
subtree: true,
|
|
309
|
+
attributes: true,
|
|
310
|
+
attributeFilter: ['row-header'],
|
|
311
|
+
});
|
|
312
|
+
}
|
|
313
|
+
disconnectedCallback() {
|
|
314
|
+
super.disconnectedCallback();
|
|
315
|
+
this._rowHeaderObserver?.disconnect();
|
|
316
|
+
this._rowHeaderObserver = undefined;
|
|
322
317
|
}
|
|
323
318
|
updated(changed) {
|
|
324
319
|
if (changed.has('selected')) {
|
|
@@ -346,11 +341,8 @@ let NLDDTableRow = class NLDDTableRow extends LitElement {
|
|
|
346
341
|
_onSlotChange(e) {
|
|
347
342
|
const slot = e.target;
|
|
348
343
|
const cells = slot.assignedElements();
|
|
349
|
-
|
|
344
|
+
this._syncCellRoles();
|
|
350
345
|
for (const cell of cells) {
|
|
351
|
-
// Cells need explicit roles since the grid layout drops native
|
|
352
|
-
// table semantics.
|
|
353
|
-
cell.setAttribute('role', cellRole);
|
|
354
346
|
// A generic nldd-cell defaults to width="fit-content" (reflected),
|
|
355
347
|
// which would shrink-wrap inside a grid track. Default it to fill
|
|
356
348
|
// the column. The reflected default is indistinguishable from an
|
|
@@ -362,6 +354,27 @@ let NLDDTableRow = class NLDDTableRow extends LitElement {
|
|
|
362
354
|
cell.setAttribute('width', 'full');
|
|
363
355
|
}
|
|
364
356
|
}
|
|
357
|
+
// A title cell's size is unset unless someone chose one. The property
|
|
358
|
+
// covers a size set before the cell reflected it.
|
|
359
|
+
if (cell.localName === 'nldd-title-cell'
|
|
360
|
+
&& !cell.hasAttribute('size')
|
|
361
|
+
&& cell.size === undefined) {
|
|
362
|
+
cell.setAttribute('size', '6');
|
|
363
|
+
}
|
|
364
|
+
}
|
|
365
|
+
}
|
|
366
|
+
/** Cells need explicit roles since the grid layout drops native table
|
|
367
|
+
* semantics. A header row's cells are column headers whatever they say,
|
|
368
|
+
* so the cell above a row-header column stays a columnheader. */
|
|
369
|
+
_syncCellRoles() {
|
|
370
|
+
const slot = this.shadowRoot?.querySelector('slot');
|
|
371
|
+
for (const cell of slot?.assignedElements() ?? []) {
|
|
372
|
+
let role = 'cell';
|
|
373
|
+
if (this._isHeader)
|
|
374
|
+
role = 'columnheader';
|
|
375
|
+
else if (cell.hasAttribute('row-header'))
|
|
376
|
+
role = 'rowheader';
|
|
377
|
+
cell.setAttribute('role', role);
|
|
365
378
|
}
|
|
366
379
|
}
|
|
367
380
|
render() {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"table.js","sourceRoot":"","sources":["../../../../src/components/lists-and-tables/table/table.ts"],"names":[],"mappings":";;;;;;AAAA
|
|
1
|
+
{"version":3,"file":"table.js","sourceRoot":"","sources":["../../../../src/components/lists-and-tables/table/table.ts"],"names":[],"mappings":";;;;;;AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqEG;AACH,OAAO,EAAE,UAAU,EAAE,MAAM,KAAK,CAAC;AACjC,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAC7C,OAAO,EAAE,aAAa,EAAE,MAAM,sCAAsC,CAAC;AACrE,OAAO,EAAE,iBAAiB,EAAE,MAAM,2CAA2C,CAAC;AAC9E,OAAO,EAAE,WAAW,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAChE,OAAO,EAAE,aAAa,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AACtE,OAAO,EAAE,qBAAqB,EAAE,MAAM,iBAAiB,CAAC;AAExD,OAAO,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,uCAAuC,CAAC;AACnF,OAAO,0DAA0D,CAAC;AAClE,OAAO,EAAE,SAAS,EAAE,MAAM,oCAAoC,CAAC;AAC/D,OAAO,EAAE,QAAQ,EAAE,MAAM,qCAAqC,CAAC;AAI/D,eAAe;AAGR,IAAM,SAAS,GAAf,MAAM,SAAU,SAAQ,UAAU;IAAlC;;QAIN,eAAU,GAAoB,MAAM,CAAC;QAErC,+DAA+D;QAE/D,YAAO,GAAG,EAAE,CAAC;QAEb,8EAA8E;QAE9E,cAAS,GAAG,EAAE,CAAC;QAEf,kFAAkF;QAElF,cAAS,GAAG,EAA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,aAAa,CAAC,gBAAgB,CAAC;GACnB,YAAY,CAuGxB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"breadcrumbs.d.ts","sourceRoot":"","sources":["../../../../src/components/navigation/breadcrumbs/breadcrumbs.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AACH,OAAO,EAAE,UAAU,EAAE,KAAK,cAAc,EAAE,MAAM,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"breadcrumbs.d.ts","sourceRoot":"","sources":["../../../../src/components/navigation/breadcrumbs/breadcrumbs.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AACH,OAAO,EAAE,UAAU,EAAE,KAAK,cAAc,EAAE,MAAM,KAAK,CAAC;AAMtD,OAAO,EAA+B,KAAK,2BAA2B,EAAE,MAAM,uBAAuB,CAAC;AAMtG;;;;;;;;;;;;;GAaG;AACH,qBAAa,mBAAoB,SAAQ,UAAU;IAClD,OAAgB,MAAM,0BAAyB;IAG/C,IAAI,CAAC,EAAE,MAAM,CAAC;IAGd,OAAO,UAAS;IAGhB,IAAI,SAAM;IAED,iBAAiB,IAAI,IAAI;IAYzB,OAAO,CAAC,OAAO,EAAE,cAAc,GAAG,IAAI;IAatC,MAAM;CAGf;AAcD,qBACa,eAAgB,SAAQ,UAAU;IAC9C,OAAgB,MAAM,0BAAqB;IAG3C,eAAe,SAAM;IAGrB,YAAY,EAAE,OAAO,CAAC,2BAA2B,CAAC,CAAM;IAExD,EAAE,CAAC,GAAG,EAAE,MAAM,2BAA2B,GAAG,MAAM;IAOzC,MAAM;CAGf;AAED,OAAO,CAAC,MAAM,CAAC;IACd,UAAU,qBAAqB;QAC9B,kBAAkB,EAAE,eAAe,CAAC;QACpC,uBAAuB,EAAE,mBAAmB,CAAC;KAC7C;CACD"}
|
|
@@ -22,7 +22,8 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
22
22
|
* @slot - `nldd-breadcrumbs-item` children.
|
|
23
23
|
*/
|
|
24
24
|
import { LitElement } from 'lit';
|
|
25
|
-
import {
|
|
25
|
+
import { property } from 'lit/decorators.js';
|
|
26
|
+
import { customElement } from '../../../utilities/custom-element.js';
|
|
26
27
|
import { reflectNonDefault } from '../../../utilities/reflect-non-default.js';
|
|
27
28
|
import { breadcrumbsStyles, breadcrumbsItemStyles } from './breadcrumbs.styles.js';
|
|
28
29
|
import { breadcrumbsTemplate, breadcrumbsItemTemplate } from './breadcrumbs.template.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"breadcrumbs.js","sourceRoot":"","sources":["../../../../src/components/navigation/breadcrumbs/breadcrumbs.ts"],"names":[],"mappings":";;;;;;AAAA;;;;;;;;;;;;;;;;GAgBG;AACH,OAAO,EAAE,UAAU,EAAuB,MAAM,KAAK,CAAC;AACtD,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"breadcrumbs.js","sourceRoot":"","sources":["../../../../src/components/navigation/breadcrumbs/breadcrumbs.ts"],"names":[],"mappings":";;;;;;AAAA;;;;;;;;;;;;;;;;GAgBG;AACH,OAAO,EAAE,UAAU,EAAuB,MAAM,KAAK,CAAC;AACtD,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAC7C,OAAO,EAAE,aAAa,EAAE,MAAM,sCAAsC,CAAC;AACrE,OAAO,EAAE,iBAAiB,EAAE,MAAM,2CAA2C,CAAC;AAC9E,OAAO,EAAE,iBAAiB,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AACnF,OAAO,EAAE,mBAAmB,EAAE,uBAAuB,EAAE,MAAM,2BAA2B,CAAC;AACzF,OAAO,EAAE,2BAA2B,EAAoC,MAAM,uBAAuB,CAAC;AACtG,OAAO,EAAE,SAAS,EAAE,MAAM,oCAAoC,CAAC;AAG/D,0BAA0B;AAE1B;;;;;;;;;;;;;GAaG;AACH,MAAM,OAAO,mBAAoB,SAAQ,UAAU;IAAnD;;QAOC,YAAO,G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AE,CAAC;IAClD,cAAc,CAAC,MAAM,CAAC,uBAAuB,EAAE,mBAAmB,CAAC,CAAC;AACrE,CAAC;AAGD,qBAAqB;AAGd,IAAM,eAAe,GAArB,MAAM,eAAgB,SAAQ,UAAU;IAAxC;;QAIN,oBAAe,GAAG,EAAE,CAAC;QAGrB,iBAAY,GAAyC,EAAE,CAAC;IAYzD,CAAC;IAVA,EAAE,CAAC,GAAsC;QACxC,IAAI,GAAG,KAAK,yCAAyC,IAAI,IAAI,CAAC,eAAe,EAAE,CAAC;YAC/E,OAAO,IAAI,CAAC,eAAe,CAAC;QAC7B,CAAC;QACD,OAAO,SAAS,CAAC,IAAI,CAAC,YAAY,EAAE,2BAA2B,EAAE,GAAG,CAAC,CAAC;IACvE,CAAC;IAEQ,MAAM;QACd,OAAO,mBAAmB,CAAC,IAAI,CAAC,CAAC;IAClC,CAAC;;AAjBe,sBAAM,GAAG,iBAAiB,AAApB,CAAqB;AAG3C;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,SAAS,EAAE,kBAAkB,EAAE,CAAC;wDACrC;AAGrB;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;qDAC6B;AAP5C,eAAe;IAD3B,aAAa,CAAC,kBAAkB,CAAC;GACrB,eAAe,CAmB3B"}
|
|
@@ -7,10 +7,10 @@
|
|
|
7
7
|
*
|
|
8
8
|
* @element nldd-document-tab-bar
|
|
9
9
|
* @attr {string} accessible-label - Accessible name for the navigation landmark
|
|
10
|
-
* @attr {object} translations - Translation overrides; unset keys fall back to Dutch. Available keys: 'components.document-tab-bar.
|
|
10
|
+
* @attr {object} translations - Translation overrides; unset keys fall back to Dutch. Available keys: 'components.document-tab-bar.show-more-tabs-action' (default: 'Toon meer tabbladen')
|
|
11
11
|
*
|
|
12
12
|
* @migration The `overflow-button-label` attribute has been removed.
|
|
13
|
-
* Use `translations` property instead: `.translations=${{ 'components.document-tab-bar.
|
|
13
|
+
* Use `translations` property instead: `.translations=${{ 'components.document-tab-bar.show-more-tabs-action': 'Tabs' }}`
|
|
14
14
|
* @attr {boolean} navigation - Renders a nav landmark instead of tablist; use when items have hrefs
|
|
15
15
|
*
|
|
16
16
|
* The tabs can always be put in another order: drag one, or move the focused
|
|
@@ -89,12 +89,12 @@ export declare class NLDDDocumentTabBarItem extends LitElement {
|
|
|
89
89
|
declare const NLDDDocumentTabBar_base: (abstract new (...args: any[]) => LitElement & {
|
|
90
90
|
translations: Partial<{
|
|
91
91
|
'components.document-tab-bar.dismiss-action': string;
|
|
92
|
-
'components.document-tab-bar.
|
|
92
|
+
'components.document-tab-bar.show-more-tabs-action': string;
|
|
93
93
|
'components.document-tab-bar.reorder-dropped-text': string;
|
|
94
94
|
'components.document-tab-bar.reorder-no-change-text': string;
|
|
95
95
|
'components.document-tab-bar.reorder-canceled-text': string;
|
|
96
96
|
}>;
|
|
97
|
-
_t(key: "components.document-tab-bar.dismiss-action" | "components.document-tab-bar.
|
|
97
|
+
_t(key: "components.document-tab-bar.dismiss-action" | "components.document-tab-bar.show-more-tabs-action" | "components.document-tab-bar.reorder-dropped-text" | "components.document-tab-bar.reorder-no-change-text" | "components.document-tab-bar.reorder-canceled-text", vars?: Record<string, string | number>): string;
|
|
98
98
|
}) & typeof LitElement;
|
|
99
99
|
export declare class NLDDDocumentTabBar extends NLDDDocumentTabBar_base {
|
|
100
100
|
static styles: import("lit").CSSResult;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"document-tab-bar.d.ts","sourceRoot":"","sources":["../../../../src/components/navigation/document-tab-bar/document-tab-bar.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiDG;AACH,OAAO,EAAE,UAAU,EAAE,MAAM,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"document-tab-bar.d.ts","sourceRoot":"","sources":["../../../../src/components/navigation/document-tab-bar/document-tab-bar.ts"],"names":[],"m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B,OAAO,CAAC,aAAa;IAoBrB,OAAO,CAAC,aAAa;IAIrB,OAAO,CAAC,QAAQ;IAiChB,OAAO,CAAC,WAAW;IAMnB,OAAO,CAAC,YAAY;IA6BpB,OAAO,CAAC,SAAS;IAYjB,OAAO,CAAC,kBAAkB;IAgC1B,OAAO,CAAC,sBAAsB;IAsB9B,OAAO,CAAC,WAAW;IAyBnB,OAAO,CAAC,iBAAiB;IA0BzB,OAAO,CAAC,WAAW;IAiBnB,OAAO,CAAC,eAAe;IA6BvB,OAAO,CAAC,UAAU;IAOlB,OAAO,CAAC,iBAAiB,CAUvB;IAEF,OAAO,CAAC,kBAAkB,CAqDxB;IAEF;;;;;;;OAOG;IACH,OAAO,CAAC,WAAW;IAYnB;;;;;;;OAOG;IACH,OAAO,CAAC,cAAc,CAgCpB;IAEF,OAAO,CAAC,eAAe,CAAC,CAAgC;IAExD,OAAO,CAAC,cAAc,CA4FpB;IAEO,MAAM;CAGf;AAED,OAAO,CAAC,MAAM,CAAC;IACd,UAAU,qBAAqB;QAC9B,uBAAuB,EAAE,kBAAkB,CAAC;QAC5C,4BAA4B,EAAE,sBAAsB,CAAC;KACrD;CACD"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export declare const nlddDocumentTabBarTranslations: {
|
|
2
2
|
'components.document-tab-bar.dismiss-action': string;
|
|
3
|
-
'components.document-tab-bar.
|
|
3
|
+
'components.document-tab-bar.show-more-tabs-action': string;
|
|
4
4
|
'components.document-tab-bar.reorder-dropped-text': string;
|
|
5
5
|
'components.document-tab-bar.reorder-no-change-text': string;
|
|
6
6
|
'components.document-tab-bar.reorder-canceled-text': string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export const nlddDocumentTabBarTranslations = {
|
|
2
2
|
'components.document-tab-bar.dismiss-action': 'Sluit',
|
|
3
|
-
'components.document-tab-bar.
|
|
3
|
+
'components.document-tab-bar.show-more-tabs-action': 'Toon meer tabbladen',
|
|
4
4
|
'components.document-tab-bar.reorder-dropped-text': 'Tabblad verplaatst naar positie {position}.',
|
|
5
5
|
'components.document-tab-bar.reorder-no-change-text': 'Tabblad verplaatst. Positie ongewijzigd.',
|
|
6
6
|
'components.document-tab-bar.reorder-canceled-text': 'Slepen geannuleerd.',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"document-tab-bar.i18n.js","sourceRoot":"","sources":["../../../../src/components/navigation/document-tab-bar/document-tab-bar.i18n.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,8BAA8B,GAAG;IAC7C,4CAA4C,EAAE,OAAO;IACrD,
|
|
1
|
+
{"version":3,"file":"document-tab-bar.i18n.js","sourceRoot":"","sources":["../../../../src/components/navigation/document-tab-bar/document-tab-bar.i18n.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,8BAA8B,GAAG;IAC7C,4CAA4C,EAAE,OAAO;IACrD,mDAAmD,EAAE,qBAAqB;IAC1E,kDAAkD,EAAE,6CAA6C;IACjG,oDAAoD,EAAE,0CAA0C;IAChG,mDAAmD,EAAE,qBAAqB;CAC1E,CAAC"}
|
|
@@ -14,10 +14,10 @@ var NLDDDocumentTabBarItem_1, NLDDDocumentTabBar_1;
|
|
|
14
14
|
*
|
|
15
15
|
* @element nldd-document-tab-bar
|
|
16
16
|
* @attr {string} accessible-label - Accessible name for the navigation landmark
|
|
17
|
-
* @attr {object} translations - Translation overrides; unset keys fall back to Dutch. Available keys: 'components.document-tab-bar.
|
|
17
|
+
* @attr {object} translations - Translation overrides; unset keys fall back to Dutch. Available keys: 'components.document-tab-bar.show-more-tabs-action' (default: 'Toon meer tabbladen')
|
|
18
18
|
*
|
|
19
19
|
* @migration The `overflow-button-label` attribute has been removed.
|
|
20
|
-
* Use `translations` property instead: `.translations=${{ 'components.document-tab-bar.
|
|
20
|
+
* Use `translations` property instead: `.translations=${{ 'components.document-tab-bar.show-more-tabs-action': 'Tabs' }}`
|
|
21
21
|
* @attr {boolean} navigation - Renders a nav landmark instead of tablist; use when items have hrefs
|
|
22
22
|
*
|
|
23
23
|
* The tabs can always be put in another order: drag one, or move the focused
|
|
@@ -56,7 +56,8 @@ var NLDDDocumentTabBarItem_1, NLDDDocumentTabBar_1;
|
|
|
56
56
|
* @fires dismiss - Fired when the dismiss button is clicked; detail: { item }
|
|
57
57
|
*/
|
|
58
58
|
import { LitElement } from 'lit';
|
|
59
|
-
import {
|
|
59
|
+
import { property, state } from 'lit/decorators.js';
|
|
60
|
+
import { customElement } from '../../../utilities/custom-element.js';
|
|
60
61
|
import { reflectNonDefault } from '../../../utilities/reflect-non-default.js';
|
|
61
62
|
import { documentTabBarStyles, documentTabBarItemStyles } from './document-tab-bar.styles.js';
|
|
62
63
|
import { documentTabBarTemplate, documentTabBarItemTemplate } from './document-tab-bar.template.js';
|
|
@@ -65,6 +66,7 @@ import { nlddDocumentTabBarTranslations } from './document-tab-bar.i18n.js';
|
|
|
65
66
|
import './../../actions/menu/menu.js';
|
|
66
67
|
import { isPointerMode } from '../../../utilities/input-modality.js';
|
|
67
68
|
import { carryContext } from '../../../utilities/carried-context.js';
|
|
69
|
+
import { deferFocus } from '../../../utilities/defer-focus.js';
|
|
68
70
|
// Pointer movement threshold in px before drag mode activates.
|
|
69
71
|
// Distinguishes a click (select) from a drag (reorder).
|
|
70
72
|
const DRAG_THRESHOLD = 5;
|
|
@@ -117,6 +119,8 @@ let NLDDDocumentTabBarItem = NLDDDocumentTabBarItem_1 = class NLDDDocumentTabBar
|
|
|
117
119
|
this._isShort = Number.isFinite(threshold) && this.getBoundingClientRect().width < threshold;
|
|
118
120
|
}
|
|
119
121
|
focus(options) {
|
|
122
|
+
if (deferFocus(this, options))
|
|
123
|
+
return;
|
|
120
124
|
this.shadowRoot?.querySelector('.document-tab-bar__item-tab')?.focus(options);
|
|
121
125
|
}
|
|
122
126
|
_handleClick() {
|
|
@@ -510,9 +514,6 @@ let NLDDDocumentTabBar = NLDDDocumentTabBar_1 = class NLDDDocumentTabBar extends
|
|
|
510
514
|
}
|
|
511
515
|
firstUpdated() {
|
|
512
516
|
this._hasCustomLabel = Boolean(this.accessibleLabel);
|
|
513
|
-
if (!this._hasCustomLabel) {
|
|
514
|
-
import.meta.env?.DEV && console.warn('<nldd-document-tab-bar>: No accessible-label provided. Add an accessible-label attribute for a meaningful navigation landmark name. Falling back to "Tabbladen".');
|
|
515
|
-
}
|
|
516
517
|
const container = this.shadowRoot?.querySelector('.document-tab-bar__items');
|
|
517
518
|
if (container) {
|
|
518
519
|
this._rowWidth = this.clientWidth;
|