@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
|
@@ -2,7 +2,7 @@ import { t as __exportAll } from "./rolldown-runtime-D8jQpDG7.js";
|
|
|
2
2
|
import { A as syntaxTree, C as indentNodeProp, N as EditorView, n as ExternalTokenizer, p as bracketMatchingHandle, r as LRParser, s as LRLanguage, t as ContextTracker, tt as EditorSelection, u as LanguageSupport, y as foldNodeProp } from "./dist-BFZM0YsR.js";
|
|
3
3
|
import { a as tags, h as parseMixed, r as styleTags } from "./dist-PeUX4vPq.js";
|
|
4
4
|
import { n as cssLanguage, t as css } from "./dist-BNkeFjc3.js";
|
|
5
|
-
import { a as tsxLanguage, i as jsxLanguage, n as javascript, o as typescriptLanguage, r as javascriptLanguage } from "./dist-
|
|
5
|
+
import { a as tsxLanguage, i as jsxLanguage, n as javascript, o as typescriptLanguage, r as javascriptLanguage } from "./dist-4g23YHP0.js";
|
|
6
6
|
// node_modules/@lezer/html/dist/index.js
|
|
7
7
|
var scriptText = 55;
|
|
8
8
|
var StartCloseScriptTag = 1;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-D8jQpDG7.js";
|
|
2
2
|
import { A as syntaxTree, C as indentNodeProp, N as EditorView, O as sublanguageProp, _ as flatIndent, g as delimitedIndent, h as defineLanguageFacet, i as LocalTokenGroup, m as continuedIndent, n as ExternalTokenizer, r as LRParser, s as LRLanguage, t as ContextTracker, tt as EditorSelection, u as LanguageSupport, v as foldInside, y as foldNodeProp } from "./dist-BFZM0YsR.js";
|
|
3
3
|
import { a as tags, d as NodeWeakMap, r as styleTags, s as IterMode } from "./dist-PeUX4vPq.js";
|
|
4
|
-
import {
|
|
4
|
+
import { o as ifNotIn, r as completeFromList, s as snippetCompletion } from "./dist-CeMOOqgP.js";
|
|
5
5
|
// node_modules/@lezer/javascript/dist/index.js
|
|
6
6
|
var noSemi = 316;
|
|
7
7
|
var noSemiType = 317;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { A as syntaxTree, C as indentNodeProp, g as delimitedIndent, n as ExternalTokenizer, r as LRParser, s as LRLanguage, t as ContextTracker, u as LanguageSupport, v as foldInside, y as foldNodeProp } from "./dist-BFZM0YsR.js";
|
|
2
2
|
import { a as tags, d as NodeWeakMap, r as styleTags, s as IterMode } from "./dist-PeUX4vPq.js";
|
|
3
|
-
import {
|
|
3
|
+
import { o as ifNotIn, r as completeFromList, s as snippetCompletion } from "./dist-CeMOOqgP.js";
|
|
4
4
|
// node_modules/@lezer/python/dist/index.js
|
|
5
5
|
var printKeyword = 1;
|
|
6
6
|
var indent = 194;
|
|
@@ -1494,4 +1494,16 @@ function completionStatus(state) {
|
|
|
1494
1494
|
let cState = state.field(completionState, false);
|
|
1495
1495
|
return cState && cState.active.some((a) => a.isPending) ? "pending" : cState && cState.active.some((a) => a.state != 0) ? "active" : null;
|
|
1496
1496
|
}
|
|
1497
|
-
|
|
1497
|
+
var completionArrayCache = /*@__PURE__*/ new WeakMap();
|
|
1498
|
+
/**
|
|
1499
|
+
Returns the available completions as an array.
|
|
1500
|
+
*/
|
|
1501
|
+
function currentCompletions(state) {
|
|
1502
|
+
var _a;
|
|
1503
|
+
let open = (_a = state.field(completionState, false)) === null || _a === void 0 ? void 0 : _a.open;
|
|
1504
|
+
if (!open || open.disabled) return [];
|
|
1505
|
+
let completions = completionArrayCache.get(open.options);
|
|
1506
|
+
if (!completions) completionArrayCache.set(open.options, completions = open.options.map((o) => o.completion));
|
|
1507
|
+
return completions;
|
|
1508
|
+
}
|
|
1509
|
+
export { currentCompletions as a, startCompletion as c, completionStatus as i, autocompletion as n, ifNotIn as o, completeFromList as r, snippetCompletion as s, CompletionContext as t };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { A as syntaxTree, C as indentNodeProp, m as continuedIndent, n as ExternalTokenizer, r as LRParser, s as LRLanguage, u as LanguageSupport, y as foldNodeProp } from "./dist-BFZM0YsR.js";
|
|
2
2
|
import { a as tags, r as styleTags } from "./dist-PeUX4vPq.js";
|
|
3
|
-
import {
|
|
3
|
+
import { o as ifNotIn, r as completeFromList } from "./dist-CeMOOqgP.js";
|
|
4
4
|
// node_modules/@codemirror/lang-sql/dist/index.js
|
|
5
5
|
var whitespace = 36;
|
|
6
6
|
var LineComment = 1;
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
// src/utilities/element-state.ts
|
|
2
|
+
/**
|
|
3
|
+
* Makes a fact about a component visible to CSS, as `:state(name)`.
|
|
4
|
+
*
|
|
5
|
+
* Some things are not in the markup: how wide a component turned out, whether a
|
|
6
|
+
* value could be parsed. A component states that fact here and knows nothing about
|
|
7
|
+
* what it means; a rule in src/rules/ reads it with a selector. While developing
|
|
8
|
+
* only: in production this does nothing.
|
|
9
|
+
*/
|
|
10
|
+
var internals = /* @__PURE__ */ new WeakMap();
|
|
11
|
+
/** An element can attach its internals once, so everything that needs them comes here. */
|
|
12
|
+
function internalsOf(element) {
|
|
13
|
+
let result = internals.get(element);
|
|
14
|
+
if (!result) {
|
|
15
|
+
result = element.attachInternals();
|
|
16
|
+
internals.set(element, result);
|
|
17
|
+
}
|
|
18
|
+
return result;
|
|
19
|
+
}
|
|
20
|
+
/** Whether anything in this root states this. False where the browser has no `:state()`. */
|
|
21
|
+
function hasState(root, name) {
|
|
22
|
+
try {
|
|
23
|
+
return root.querySelector(`:state(${name})`) !== null;
|
|
24
|
+
} catch {
|
|
25
|
+
return false;
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* Nothing to clear means no internals: most elements never state anything, and
|
|
30
|
+
* this also runs in production. A browser that has no custom states, or takes
|
|
31
|
+
* only dashed names, throws here; a fact is not worth breaking a render for.
|
|
32
|
+
*/
|
|
33
|
+
function setState(element, name, on) {
|
|
34
|
+
if (!import.meta.env?.DEV) return;
|
|
35
|
+
if (!on && !internals.has(element)) return;
|
|
36
|
+
try {
|
|
37
|
+
const { states } = internalsOf(element);
|
|
38
|
+
if (on) states.add(name);
|
|
39
|
+
else states.delete(name);
|
|
40
|
+
} catch {}
|
|
41
|
+
}
|
|
42
|
+
export { internalsOf as n, setState as r, hasState as t };
|
|
@@ -1,99 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
* Nederlandse Digitale Dienst Form Component
|
|
3
|
-
*
|
|
4
|
-
* Plain custom element (extends HTMLElement, no Lit), required for light-DOM
|
|
5
|
-
* autofill. Renders a real <form> element in the LIGHT DOM around its
|
|
6
|
-
* children. Chrome's autofill engine looks for native <input> elements that
|
|
7
|
-
* have a <form> ancestor in the light DOM; with shadow-DOM inputs it can't
|
|
8
|
-
* find them, so we keep this component shadow-less.
|
|
9
|
-
*
|
|
10
|
-
* **Differs from other nldd-* components:**
|
|
11
|
-
* - No shadowRoot: all children live in the light DOM (inside the inner <form>)
|
|
12
|
-
* - No Lit: a plain HTMLElement with manual attribute mirroring
|
|
13
|
-
* - **Requires a global stylesheet import**: the vertical rhythm rules live in
|
|
14
|
-
* `dist/css/form.css` (or `global.css`), not in a component-specific shadow
|
|
15
|
-
* stylesheet. Import it as part of your app's global CSS bundle.
|
|
16
|
-
*
|
|
17
|
-
* **When a field turns red:** on submit the form marks every control the
|
|
18
|
-
* browser rejects with `invalid`, and clears it again once the value passes.
|
|
19
|
-
* Setting `invalid` yourself is fine, but do it on submit, not while someone is
|
|
20
|
-
* still typing, or a field turns red over a value that is not finished yet.
|
|
21
|
-
*
|
|
22
|
-
* **Two usage modes:**
|
|
23
|
-
*
|
|
24
|
-
* 1. **Auto-wrap** (default): write children directly. Component creates a
|
|
25
|
-
* `<form>` element and migrates children into it via MutationObserver.
|
|
26
|
-
* Simplest API.
|
|
27
|
-
*
|
|
28
|
-
* 2. **User-provided form** (framework-friendly): write your own `<form>`
|
|
29
|
-
* as direct child. Component detects it, takes over attribute mirroring,
|
|
30
|
-
* and skips the migration. Children stay where your framework puts them,
|
|
31
|
-
* so there is no DOM shuffling to conflict with React/Vue/Angular
|
|
32
|
-
* reconciliation.
|
|
33
|
-
*
|
|
34
|
-
* **Framework interop:**
|
|
35
|
-
*
|
|
36
|
-
* In auto-wrap mode every direct child is moved into the inner form through a
|
|
37
|
-
* MutationObserver. That works fine for most React/Vue use cases, because
|
|
38
|
-
* frameworks only mutate the DOM when their virtual DOM changes. For edge
|
|
39
|
-
* cases (animation libraries that track DOM position, SSR hydration
|
|
40
|
-
* mismatches, frameworks that actively check sibling positions) use
|
|
41
|
-
* **user-provided form** mode instead.
|
|
42
|
-
*
|
|
43
|
-
* For programmatic manipulation, use the `form` getter so you work with the
|
|
44
|
-
* inner `<form>` element directly:
|
|
45
|
-
*
|
|
46
|
-
* const inner = document.querySelector('nldd-form').form;
|
|
47
|
-
* inner.checkValidity();
|
|
48
|
-
* inner.appendChild(myInput); // skips the migration overhead
|
|
49
|
-
*
|
|
50
|
-
* @element nldd-form
|
|
51
|
-
*
|
|
52
|
-
* @attr {string} label-alignment - Default `label-alignment` for descendant nldd-form-field and nldd-form-actions ('top' | 'right' | 'left'). Propagated to descendants as `form-label-alignment`. A `label-alignment` of its own on the descendant takes precedence through the CSS cascade.
|
|
53
|
-
* @attr {string} name - Form name
|
|
54
|
-
* @attr {string} autocomplete - 'on' | 'off' (form-level autofill toggle)
|
|
55
|
-
* @attr {string} target - Submit target ('_self' | '_blank' | ...)
|
|
56
|
-
* @attr {string} method - HTTP method ('get' | 'post' | 'dialog')
|
|
57
|
-
* @attr {string} action - URL endpoint for submission
|
|
58
|
-
* @attr {string} enctype - Encoding type for submission
|
|
59
|
-
* @attr {boolean} novalidate - Skip native browser validation
|
|
60
|
-
*
|
|
61
|
-
* @prop {HTMLFormElement | null} form - The inner <form> element (read-only). Use it for `form.checkValidity()`, direct DOM manipulation, or as the target for framework-managed children.
|
|
62
|
-
*
|
|
63
|
-
* Events bubble naturally from the inner <form>:
|
|
64
|
-
* @fires submit
|
|
65
|
-
* @fires reset
|
|
66
|
-
*
|
|
67
|
-
* @example
|
|
68
|
-
* Global stylesheet import (once, in your app entry):
|
|
69
|
-
* ```js
|
|
70
|
-
* import '@nldd/design-system/styles';
|
|
71
|
-
* ```
|
|
72
|
-
*
|
|
73
|
-
* Auto-wrap mode:
|
|
74
|
-
* ```html
|
|
75
|
-
* <nldd-form
|
|
76
|
-
* name="profile"
|
|
77
|
-
* novalidate
|
|
78
|
-
* >
|
|
79
|
-
* <nldd-text-field name="email" autocomplete="email"></nldd-text-field>
|
|
80
|
-
* <nldd-button type="submit" text="Verstuur"></nldd-button>
|
|
81
|
-
* </nldd-form>
|
|
82
|
-
* ```
|
|
83
|
-
*
|
|
84
|
-
* User-provided form mode (React/Vue/Angular):
|
|
85
|
-
* ```html
|
|
86
|
-
* <nldd-form
|
|
87
|
-
* name="profile"
|
|
88
|
-
* novalidate
|
|
89
|
-
* >
|
|
90
|
-
* <form>
|
|
91
|
-
* <nldd-text-field name="email" autocomplete="email"></nldd-text-field>
|
|
92
|
-
* <nldd-button type="submit" text="Verstuur"></nldd-button>
|
|
93
|
-
* </form>
|
|
94
|
-
* </nldd-form>
|
|
95
|
-
* ```
|
|
96
|
-
*/
|
|
1
|
+
import '../../../utilities/custom-element.js';
|
|
97
2
|
export declare class NLDDForm extends HTMLElement {
|
|
98
3
|
static get observedAttributes(): string[];
|
|
99
4
|
private _form;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"form.d.ts","sourceRoot":"","sources":["../../../../src/components/forms/form/form.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"form.d.ts","sourceRoot":"","sources":["../../../../src/components/forms/form/form.ts"],"names":[],"mappings":"AAAA,OAAO,sCAAsC,CAAC;AA8G9C,qBAAa,QAAS,SAAQ,WAAW;IACxC,MAAM,KAAK,kBAAkB,aAE5B;IAED,OAAO,CAAC,KAAK,CAAgC;IAC7C,OAAO,CAAC,SAA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1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"form-actions.d.ts","sourceRoot":"","sources":["../../../../src/components/forms/form-actions/form-actions.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;AAEH,OAAO,EAAE,UAAU,EAAE,MAAM,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"form-actions.d.ts","sourceRoot":"","sources":["../../../../src/components/forms/form-actions/form-actions.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;AAEH,OAAO,EAAE,UAAU,EAAE,MAAM,KAAK,CAAC;AAMjC,MAAM,MAAM,cAAc,GAAG,KAAK,GAAG,MAAM,GAAG,OAAO,CAAC;AAEtD,qBACa,eAAgB,SAAQ,UAAU;IAC9C,OAAgB,MAAM,0BAAqB;IAE3C;;;;;OAKG;IAEH,cAAc,EAAE,cAAc,GAAG,SAAS,CAAa;IAE9C,MAAM;CAGf;AAED,OAAO,CAAC,MAAM,CAAC;IACd,UAAU,qBAAqB;QAC9B,mBAAmB,EAAE,eAAe,CAAC;KACrC;CACD"}
|
|
@@ -37,7 +37,8 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
37
37
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
38
38
|
};
|
|
39
39
|
import { LitElement } from 'lit';
|
|
40
|
-
import {
|
|
40
|
+
import { property } from 'lit/decorators.js';
|
|
41
|
+
import { customElement } from '../../../utilities/custom-element.js';
|
|
41
42
|
import { formActionsStyles } from './form-actions.styles.js';
|
|
42
43
|
import { formActionsTemplate } from './form-actions.template.js';
|
|
43
44
|
let NLDDFormActions = class NLDDFormActions extends LitElement {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"form-actions.js","sourceRoot":"","sources":["../../../../src/components/forms/form-actions/form-actions.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;;;;;;;AAEH,OAAO,EAAE,UAAU,EAAE,MAAM,KAAK,CAAC;AACjC,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"form-actions.js","sourceRoot":"","sources":["../../../../src/components/forms/form-actions/form-actions.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;;;;;;;AAEH,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,0BAA0B,CAAC;AAC7D,OAAO,EAAE,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AAK1D,IAAM,eAAe,GAArB,MAAM,eAAgB,SAAQ,UAAU;IAAxC;;QAGN;;;;;WAKG;QAEH,mBAAc,GAA+B,SAAS,CAAC;IAKxD,CAAC;IAHS,MAAM;QACd,OAAO,mBAAmB,EAAE,CAAC;IAC9B,CAAC;;AAbe,sBAAM,GAAG,iBAAiB,AAApB,CAAqB;AAS3C;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,iBAAiB,EAAE,CAAC;uDACjB;AAV3C,eAAe;IAD3B,aAAa,CAAC,mBAAmB,CAAC;GACtB,eAAe,CAe3B"}
|
|
@@ -15,8 +15,8 @@
|
|
|
15
15
|
* @element nldd-form-field
|
|
16
16
|
*
|
|
17
17
|
* @attr {string} label-alignment - 'top' (default) | 'right' | 'left'. A value of its own always wins over the inherited form-label-alignment.
|
|
18
|
-
* @attr {string} label - Field label text. Omit for no-label layout.
|
|
19
|
-
* @attr {string} supporting-label - Short supporting text below the label. Same typography as optional badge.
|
|
18
|
+
* @attr {string} label - Field label text. Omit for no-label layout. Supports **bold** markdown syntax, for the word to type in a confirmation; the accessible name of the control takes the text without the markers.
|
|
19
|
+
* @attr {string} supporting-label - Short supporting text below the label. Same typography as optional badge. Supports **bold** markdown syntax.
|
|
20
20
|
* @attr {boolean} optional - Shows an optional badge next to the label.
|
|
21
21
|
* @attr {string} optional-label - Text for the optional badge. Defaults to 'Optioneel'.
|
|
22
22
|
* @attr {string} form-label-alignment - Set by a wrapping nldd-form as a fallback. Do not set it yourself in consumer code.
|
|
@@ -87,7 +87,6 @@ export declare class NLDDFormField extends LitElement {
|
|
|
87
87
|
/** The last label this field wrote onto the control, so it only takes back its own. */
|
|
88
88
|
private _appliedLabel;
|
|
89
89
|
/** Keeps the "no input found" warning to one per field rather than one per mutation. */
|
|
90
|
-
private _warnedNoInput;
|
|
91
90
|
render(): import("lit-html").TemplateResult;
|
|
92
91
|
updated(changed: Map<PropertyKey, unknown>): void;
|
|
93
92
|
connectedCallback(): void;
|
|
@@ -143,7 +142,7 @@ export declare class NLDDFormField extends LitElement {
|
|
|
143
142
|
* group with an "Anders" text field beside it being the case this component
|
|
144
143
|
* is built for. But a list that reads a value would then quietly read the
|
|
145
144
|
* wrong one, and nothing on screen would show it: the rules simply never
|
|
146
|
-
* match.
|
|
145
|
+
* match.
|
|
147
146
|
*/
|
|
148
147
|
private _adoptValidationLists;
|
|
149
148
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"form-field.d.ts","sourceRoot":"","sources":["../../../../src/components/forms/form-field/form-field.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4CG;AACH,OAAO,EAAE,UAAU,EAAE,MAAM,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"form-field.d.ts","sourceRoot":"","sources":["../../../../src/components/forms/form-field/form-field.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4CG;AACH,OAAO,EAAE,UAAU,EAAE,MAAM,KAAK,CAAC;AAgBjC,MAAM,MAAM,cAAc,GAAG,KAAK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
|
|
23
23
|
* @attr {string} label-alignment - 'top' (default) | 'right' | 'left'. A value of its own always wins over the inherited form-label-alignment.
|
|
24
|
-
* @attr {string} label - Field label text. Omit for no-label layout.
|
|
25
|
-
* @attr {string} supporting-label - Short supporting text below the label. Same typography as optional badge.
|
|
24
|
+
* @attr {string} label - Field label text. Omit for no-label layout. Supports **bold** markdown syntax, for the word to type in a confirmation; the accessible name of the control takes the text without the markers.
|
|
25
|
+
* @attr {string} supporting-label - Short supporting text below the label. Same typography as optional badge. Supports **bold** markdown syntax.
|
|
26
26
|
* @attr {boolean} optional - Shows an optional badge next to the label.
|
|
27
27
|
* @attr {string} optional-label - Text for the optional badge. Defaults to 'Optioneel'.
|
|
28
28
|
* @attr {string} form-label-alignment - Set by a wrapping nldd-form as a fallback. Do not set it yourself in consumer code.
|
|
@@ -50,11 +50,14 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
50
50
|
* </nldd-form-field>
|
|
51
51
|
*/
|
|
52
52
|
import { LitElement } from 'lit';
|
|
53
|
-
import {
|
|
53
|
+
import { property } from 'lit/decorators.js';
|
|
54
|
+
import { customElement } from '../../../utilities/custom-element.js';
|
|
54
55
|
import { setOwnedAttribute } from '../../../utilities/owned-attribute.js';
|
|
56
|
+
import { stripBold } from '../../../utilities/render-marked.js';
|
|
55
57
|
import { applyDescribedBy } from '../../../utilities/described-by-mixin.js';
|
|
56
58
|
import { formFieldStyles, formFieldHelpTextStyles, } from './form-field.styles.js';
|
|
57
59
|
import { formFieldTemplate, formFieldHelpTextTemplate, } from './form-field.template.js';
|
|
60
|
+
import { setState } from '../../../utilities/element-state.js';
|
|
58
61
|
// Exclude helper elements so _findInput() never returns them instead of the actual input
|
|
59
62
|
const HELPER_TAGS = ['nldd-form-field-help-text'];
|
|
60
63
|
/**
|
|
@@ -127,9 +130,8 @@ let NLDDFormField = class NLDDFormField extends LitElement {
|
|
|
127
130
|
this._listObserver = null;
|
|
128
131
|
/** The last label this field wrote onto the control, so it only takes back its own. */
|
|
129
132
|
this._appliedLabel = null;
|
|
130
|
-
/** Keeps the "no input found" warning to one per field rather than one per mutation. */
|
|
131
|
-
this._warnedNoInput = false;
|
|
132
133
|
}
|
|
134
|
+
/** Keeps the "no input found" warning to one per field rather than one per mutation. */
|
|
133
135
|
render() {
|
|
134
136
|
return formFieldTemplate(this);
|
|
135
137
|
}
|
|
@@ -175,20 +177,11 @@ let NLDDFormField = class NLDDFormField extends LitElement {
|
|
|
175
177
|
}
|
|
176
178
|
_onSlotChange() {
|
|
177
179
|
const input = this._findInput();
|
|
180
|
+
// A consumer's own element can be an input too, which no selector can know.
|
|
181
|
+
setState(this, 'has-input', Boolean(input));
|
|
178
182
|
if (!input) {
|
|
179
|
-
// Only once there is something to look at. An empty field is usually one
|
|
180
|
-
// still being filled, and a component that forgot `static isFormInput`
|
|
181
|
-
// should be the one that stands out.
|
|
182
|
-
const hasContent = Array.from(this.children)
|
|
183
|
-
.some(el => !HELPER_TAGS.includes(el.tagName.toLowerCase()));
|
|
184
|
-
if (import.meta.env?.DEV && hasContent && !this._warnedNoInput) {
|
|
185
|
-
this._warnedNoInput = true;
|
|
186
|
-
const which = this.label ? ` (label="${this.label}")` : '';
|
|
187
|
-
console.warn(`<nldd-form-field>${which}: No form input found among its children. The label cannot name anything or move focus into it. Every nldd input carries \`static isFormInput = true\`; a component of your own says the same, or names its control itself.`);
|
|
188
|
-
}
|
|
189
183
|
return;
|
|
190
184
|
}
|
|
191
|
-
this._warnedNoInput = false;
|
|
192
185
|
// Ensure the inner native input has an id so aria-describedby can reference it.
|
|
193
186
|
// `inputId` is a component that hands out the id of the control it renders, which
|
|
194
187
|
// is a different question from how it wants to be named, so it is asked separately
|
|
@@ -238,7 +231,7 @@ let NLDDFormField = class NLDDFormField extends LitElement {
|
|
|
238
231
|
: null;
|
|
239
232
|
if (!attribute)
|
|
240
233
|
return;
|
|
241
|
-
this._appliedLabel = setOwnedAttribute(input, attribute, this.label, this._appliedLabel);
|
|
234
|
+
this._appliedLabel = setOwnedAttribute(input, attribute, stripBold(this.label), this._appliedLabel);
|
|
242
235
|
}
|
|
243
236
|
/**
|
|
244
237
|
* Hands every validation list in this field the control it is about, so it
|
|
@@ -251,30 +244,22 @@ let NLDDFormField = class NLDDFormField extends LitElement {
|
|
|
251
244
|
* group with an "Anders" text field beside it being the case this component
|
|
252
245
|
* is built for. But a list that reads a value would then quietly read the
|
|
253
246
|
* wrong one, and nothing on screen would show it: the rules simply never
|
|
254
|
-
* match.
|
|
247
|
+
* match.
|
|
255
248
|
*/
|
|
256
249
|
_adoptValidationLists(input) {
|
|
257
250
|
const lists = Array.from(this.children)
|
|
258
251
|
.filter((el) => el.tagName.toLowerCase() === 'nldd-validation-list');
|
|
259
|
-
if (!lists.length)
|
|
260
|
-
return;
|
|
261
252
|
for (const list of lists) {
|
|
262
253
|
if (!list.getAttribute('for'))
|
|
263
254
|
list.control = input;
|
|
264
255
|
}
|
|
265
256
|
if (!import.meta.env?.DEV)
|
|
266
257
|
return;
|
|
267
|
-
const controls = Array.from(this.children)
|
|
268
|
-
.filter(el => !HELPER_TAGS.includes(el.tagName.toLowerCase()) && isFormInput(el));
|
|
269
|
-
if (controls.length < 2)
|
|
270
|
-
return;
|
|
271
258
|
const readsValue = lists.some(list => !list.getAttribute('for') && Array.from(list.children)
|
|
272
259
|
.some(item => item.hasAttribute('match') || item.hasAttribute('minlength') || item.hasAttribute('maxlength')));
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
console.warn(`<nldd-form-field>${which}: more than one control, and the validation list has rules that read a value. `
|
|
277
|
-
+ `It is reading <${input.localName}>, the first one. Set \`for\` on the list if it should read another.`);
|
|
260
|
+
const controls = Array.from(this.children)
|
|
261
|
+
.filter(el => !HELPER_TAGS.includes(el.tagName.toLowerCase()) && isFormInput(el));
|
|
262
|
+
setState(this, 'list-reads-first-control', readsValue && controls.length > 1);
|
|
278
263
|
}
|
|
279
264
|
/**
|
|
280
265
|
* The input this field is about: the first one in the light DOM, wrapped or
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"form-field.js","sourceRoot":"","sources":["../../../../src/components/forms/form-field/form-field.ts"],"names":[],"mappings":";;;;;;AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4CG;AACH,OAAO,EAAE,UAAU,EAAE,MAAM,KAAK,CAAC;AACjC,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"form-field.js","sourceRoot":"","sources":["../../../../src/components/forms/form-field/form-field.ts"],"names":[],"mappings":";;;;;;AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4CG;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,uCAAuC,CAAC;AAC1E,OAAO,EAAE,SAAS,EAAE,MAAM,qCAAqC,CAAC;AAChE,OAAO,EAAE,gBAAgB,EAAyB,MAAM,0CAA0C,CAAC;AACnG,OAAO,EACN,eAAe,EACf,uBAAuB,GACvB,MAAM,wBAAwB,CAAC;AAChC,OAAO,EACN,iBAAiB,EACjB,yBAAyB,GACzB,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAAE,QAAQ,EAAE,MAAM,qCAAqC,CAAC;AAI/D,yFAAyF;AACzF,MAAM,WAAW,GAAG,CAAC,2BAA2B,CAAC,CAAC;AAElD;;;;;;;;;;;;GAYG;AACH,SAAS,WAAW,CAAC,EAAW;IAC/B,OAAO,EAAE,YAAY,gBAAgB;WACjC,EAAE,YAAY,iBAAiB;WAC/B,EAAE,YAAY,mBAAmB;WAChC,EAAE,CAAC,WAAyC,CAAC,WAAW,KAAK,IAAI,CAAC;AACxE,CAAC;AAED,sEAAsE;AACtE,0FAA0F;AAC1F,SAAS,UAA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AAE,OAAO,EAAE,IAAI,EAAE,CAAC;qDACjB;AAIvD;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;4CAChB;AAOX;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,SAAS,EAAE,kBAAkB,EAAE,CAAC;sDACrC;AAWrB;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC;+CACX;AAIjB;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,SAAS,EAAE,gBAAgB,EAAE,CAAC;oDAC5B;AA7ChB,aAAa;IADzB,aAAa,CAAC,iBAAiB,CAAC;GACpB,aAAa,CA4QzB;;AAGD;;kEAEkE;AAG3D,IAAM,qBAAqB,GAA3B,MAAM,qBAAsB,SAAQ,UAAU;IAG3C,iBAAiB;QACzB,KAAK,CAAC,iBAAiB,EAAE,CAAC;QAC1B,+FAA+F;QAC/F,6EAA6E;QAC7E,IAAI,CAAC,IAAI,GAAG,MAAM,CAAC;IACpB,CAAC;IAEQ,MAAM;QACd,OAAO,yBAAyB,CAAC,IAAI,CAAC,CAAC;IACxC,CAAC;;AAXe,4BAAM,GAAG,uBAAuB,AAA1B,CAA2B;AADrC,qBAAqB;IADjC,aAAa,CAAC,2BAA2B,CAAC;GAC9B,qBAAqB,CAajC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"form-field.template.d.ts","sourceRoot":"","sources":["../../../../src/components/forms/form-field/form-field.template.ts"],"names":[],"mappings":"AACA,OAAO,EAAiB,cAAc,EAAE,MAAM,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"form-field.template.d.ts","sourceRoot":"","sources":["../../../../src/components/forms/form-field/form-field.template.ts"],"names":[],"mappings":"AACA,OAAO,EAAiB,cAAc,EAAE,MAAM,KAAK,CAAC;AAEpD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AACrD,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,iBAAiB,CAAC;AAU7D,wBAAgB,iBAAiB,CAAC,SAAS,EAAE,aAAa,GAAG,cAAc,CA8B1E;AAMD,wBAAgB,yBAAyB,CAAC,UAAU,EAAE,qBAAqB,GAAG,cAAc,CAM3F"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
/* eslint-disable lit-a11y/click-events-have-key-events -- label delegates to inner input */
|
|
2
2
|
import { html, nothing } from 'lit';
|
|
3
|
+
import { renderBold } from '../../../utilities/render-marked.js';
|
|
3
4
|
/* ============================================================
|
|
4
5
|
nldd-form-field
|
|
5
6
|
============================================================ */
|
|
@@ -16,12 +17,12 @@ export function formFieldTemplate(component) {
|
|
|
16
17
|
<label class="form-field__label"
|
|
17
18
|
@click=${(e) => component._focusInput(e)}
|
|
18
19
|
>
|
|
19
|
-
|
|
20
|
+
<span>${renderBold(component.label)}</span>
|
|
20
21
|
${component.optional ? renderOptional(component.optionalLabel) : nothing}
|
|
21
22
|
</label>
|
|
22
23
|
` : nothing}
|
|
23
24
|
${hasSupportingLabel ? html `
|
|
24
|
-
<span class="form-field__supporting-label">${component.supportingLabel}</span>
|
|
25
|
+
<span class="form-field__supporting-label">${renderBold(component.supportingLabel)}</span>
|
|
25
26
|
` : nothing}
|
|
26
27
|
</div>
|
|
27
28
|
`;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"form-field.template.js","sourceRoot":"","sources":["../../../../src/components/forms/form-field/form-field.template.ts"],"names":[],"mappings":"AAAA,4FAA4F;AAC5F,OAAO,EAAE,IAAI,EAAE,OAAO,EAAkB,MAAM,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"form-field.template.js","sourceRoot":"","sources":["../../../../src/components/forms/form-field/form-field.template.ts"],"names":[],"mappings":"AAAA,4FAA4F;AAC5F,OAAO,EAAE,IAAI,EAAE,OAAO,EAAkB,MAAM,KAAK,CAAC;AACpD,OAAO,EAAE,UAAU,EAAE,MAAM,qCAAqC,CAAC;AAIjE;;kEAEkE;AAElE,SAAS,cAAc,CAAC,KAAa;IACpC,OAAO,IAAI,CAAA,sCAAsC,KAAK,SAAS,CAAC;AACjE,CAAC;AAED,MAAM,UAAU,iBAAiB,CAAC,SAAwB;IACzD,MAAM,QAAQ,GAAG,OAAO,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC;IAC1C,MAAM,kBAAkB,GAAG,OAAO,CAAC,SAAS,CAAC,eAAe,CAAC,CAAC;IAC9D,MAAM,aAAa,GAAG,CAAC,QAAQ,IAAI,CAAC,kBAAkB,CAAC;IAEvD,MAAM,QAAQ,GAAG,IAAI,CAAA;mCACa,aAAa,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,EAAE;KAC7D,QAAQ,CAAC,CAAC,CAAC,IAAI,CAAA;;cAEN,CAAC,CAAQ,EAAE,EAAE,CAAC,SAAS,CAAC,WAAW,CAAC,CAAC,CAAC;;aAEvC,UAAU,CAAC,SAAS,CAAC,KAAK,CAAC;OACjC,SAAS,CAAC,QAAQ,CAAC,CAAC,CAAC,cAAc,CAAC,SAAS,CAAC,aAAa,CAAC,CAAC,CAAC,CAAC,OAAO;;IAEzE,CAAC,CAAC,CAAC,OAAO;KACT,kBAAkB,CAAC,CAAC,CAAC,IAAI,CAAA;iDACmB,UAAU,CAAC,SAAS,CAAC,eAAe,CAAC;IAClF,CAAC,CAAC,CAAC,OAAO;;EAEZ,CAAC;IAEF,OAAO,IAAI,CAAA;;KAEP,QAAQ;;;;;;EAMX,CAAC;AACH,CAAC;AAED;;kEAEkE;AAElE,MAAM,UAAU,yBAAyB,CAAC,UAAiC;IAC1E,OAAO,IAAI,CAAA;;;;EAIV,CAAC;AACH,CAAC"}
|
|
@@ -1,75 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
* Nederlandse Digitale Dienst Form Section Component
|
|
3
|
-
*
|
|
4
|
-
* Plain custom element (extends HTMLElement, no Lit). The light-DOM render
|
|
5
|
-
* works around an NVDA + Firefox a11y bug where a shadow-DOM <fieldset> +
|
|
6
|
-
* <legend> is not reliably announced as the group label for slotted controls.
|
|
7
|
-
* A native fieldset/legend in the light DOM works correctly across all
|
|
8
|
-
* AT/browser combinations.
|
|
9
|
-
*
|
|
10
|
-
* **Differs from shadow components:**
|
|
11
|
-
* - No shadowRoot: all children live in the light DOM (inside the rendered
|
|
12
|
-
* <fieldset>).
|
|
13
|
-
* - No Lit: a plain HTMLElement with manual DOM mutation.
|
|
14
|
-
* - **Requires a global stylesheet import**: `dist/css/form-section.css` (or
|
|
15
|
-
* `global.css`). Form-section has no shadow stylesheet.
|
|
16
|
-
*
|
|
17
|
-
* Renders to:
|
|
18
|
-
*
|
|
19
|
-
* <nldd-form-section>
|
|
20
|
-
* <fieldset class="form-section">
|
|
21
|
-
* <legend class="form-section__header">
|
|
22
|
-
* <span class="form-section__title">Title</span>
|
|
23
|
-
* <span class="form-section__supporting-text">Supporting text</span>
|
|
24
|
-
* </legend>
|
|
25
|
-
* <div class="form-section__main">
|
|
26
|
-
* [user's children]
|
|
27
|
-
* </div>
|
|
28
|
-
* </fieldset>
|
|
29
|
-
* </nldd-form-section>
|
|
30
|
-
*
|
|
31
|
-
* **Accessibility note**: the title renders as a `<legend>`. Semantically that
|
|
32
|
-
* is a **group label**, not a heading. Screen readers announce it when the user
|
|
33
|
-
* enters the fieldset, but users jumping through headings with the H key skip
|
|
34
|
-
* it. Visually it looks like a heading, so use this component for *form
|
|
35
|
-
* grouping*, not as page structure. For real page headings, use a separate
|
|
36
|
-
* heading element above the form.
|
|
37
|
-
*
|
|
38
|
-
* **Supporting-text length**: the supporting text sits as a `<span>` inside the
|
|
39
|
-
* `<legend>` so a screen reader reads it along as the group label. Side effect:
|
|
40
|
-
* on every field entry within the section, the whole legend (title + supporting text)
|
|
41
|
-
* is spoken again. Keep `supporting-text` short (roughly 80 characters or less)
|
|
42
|
-
* and use it to introduce the group ("Vul je adresgegevens in"), not for
|
|
43
|
-
* detailed instructions. For a longer explanation on one specific field, use
|
|
44
|
-
* `nldd-form-field-help-text` on that field.
|
|
45
|
-
*
|
|
46
|
-
* <nldd-form>
|
|
47
|
-
* <nldd-form-section text="Persoonsgegevens" supporting-text="Vul je gegevens in.">
|
|
48
|
-
* <nldd-form-field label="Voornaam">...</nldd-form-field>
|
|
49
|
-
* <nldd-form-field label="Achternaam">...</nldd-form-field>
|
|
50
|
-
* </nldd-form-section>
|
|
51
|
-
*
|
|
52
|
-
* <nldd-form-section text="Adres">
|
|
53
|
-
* <nldd-form-field label="Straat">...</nldd-form-field>
|
|
54
|
-
* </nldd-form-section>
|
|
55
|
-
*
|
|
56
|
-
* <nldd-form-actions>...</nldd-form-actions>
|
|
57
|
-
* </nldd-form>
|
|
58
|
-
*
|
|
59
|
-
* @element nldd-form-section
|
|
60
|
-
*
|
|
61
|
-
* @attr {string} text - Heading text (rendered in the `<legend>`).
|
|
62
|
-
* @attr {string} supporting-text - Short description under the heading. Keep it to roughly 80 characters or less (see the a11y note).
|
|
63
|
-
*
|
|
64
|
-
* Children of the form-section are placed in `.form-section__main`.
|
|
65
|
-
*/
|
|
1
|
+
import '../../../utilities/custom-element.js';
|
|
66
2
|
export declare class NLDDFormSection extends HTMLElement {
|
|
67
3
|
static get observedAttributes(): string[];
|
|
68
4
|
private _fieldset;
|
|
69
5
|
private _legend;
|
|
70
6
|
private _main;
|
|
71
7
|
private _observer;
|
|
72
|
-
private _hasWarnedNoLabel;
|
|
73
8
|
get text(): string;
|
|
74
9
|
set text(value: string);
|
|
75
10
|
get supportingText(): string;
|
|
@@ -77,7 +12,6 @@ export declare class NLDDFormSection extends HTMLElement {
|
|
|
77
12
|
connectedCallback(): void;
|
|
78
13
|
disconnectedCallback(): void;
|
|
79
14
|
attributeChangedCallback(name: string): void;
|
|
80
|
-
private _warnIfNoLabel;
|
|
81
15
|
private _buildStructure;
|
|
82
16
|
private _renderLegend;
|
|
83
17
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"form-section.d.ts","sourceRoot":"","sources":["../../../../src/components/forms/form-section/form-section.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"form-section.d.ts","sourceRoot":"","sources":["../../../../src/components/forms/form-section/form-section.ts"],"names":[],"mappings":"AAAA,OAAO,sCAAsC,CAAC;AA0E9C,qBAAa,eAAgB,SAAQ,WAAW;IAC/C,MAAM,KAAK,kBAAkB,IAAI,MAAM,EAAE,CAExC;IAED,OAAO,CAAC,SAAS,CAAoC;IACrD,OAAO,CAAC,OAAO,CAAkC;IACjD,OAAO,CAAC,KAAK,CAA+B;IAC5C,OAAO,CAAC,SAAS,CAAiC;IAElD,IAAI,IAAI,IAAI,MAAM,CAEjB;IACD,IAAI,IAAI,CAAC,KAAK,EAAE,MAAM,EAGrB;IAED,IAAI,cAAc,IAAI,MAAM,CAE3B;IACD,IAAI,cAAc,CAAC,KAAK,EAAE,MAAM,EAG/B;IAED,iBAAiB,IAAI,IAAI;IAwBzB,oBAAoB,IAAI,IAAI;IAK5B,wBAAwB,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI;IAO5C,OAAO,CAAC,eAAe;IA4BvB,OAAO,CAAC,aAAa;CAsCrB;AAMD,OAAO,CAAC,MAAM,CAAC;IACd,UAAU,qBAAqB;QAC9B,mBAAmB,EAAE,eAAe,CAAC;KACrC;CACD"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import '../../../utilities/custom-element.js';
|
|
1
2
|
/**
|
|
2
3
|
* Nederlandse Digitale Dienst Form Section Component
|
|
3
4
|
*
|
|
@@ -75,7 +76,6 @@ export class NLDDFormSection extends HTMLElement {
|
|
|
75
76
|
this._legend = null;
|
|
76
77
|
this._main = null;
|
|
77
78
|
this._observer = null;
|
|
78
|
-
this._hasWarnedNoLabel = false;
|
|
79
79
|
}
|
|
80
80
|
static get observedAttributes() {
|
|
81
81
|
return ['text', 'supporting-text'];
|
|
@@ -105,7 +105,6 @@ export class NLDDFormSection extends HTMLElement {
|
|
|
105
105
|
if (!this._fieldset)
|
|
106
106
|
this._buildStructure();
|
|
107
107
|
this._renderLegend();
|
|
108
|
-
this._warnIfNoLabel();
|
|
109
108
|
// (Re-)attach observer on every connect to catch dynamically added
|
|
110
109
|
// children (which would otherwise land outside the inner fieldset).
|
|
111
110
|
if (!this._observer) {
|
|
@@ -131,23 +130,10 @@ export class NLDDFormSection extends HTMLElement {
|
|
|
131
130
|
attributeChangedCallback(name) {
|
|
132
131
|
if (name === 'text' || name === 'supporting-text') {
|
|
133
132
|
// Pas re-renderen na _buildStructure (eerste connect).
|
|
134
|
-
if (this._legend)
|
|
133
|
+
if (this._legend)
|
|
135
134
|
this._renderLegend();
|
|
136
|
-
this._warnIfNoLabel();
|
|
137
|
-
}
|
|
138
135
|
}
|
|
139
136
|
}
|
|
140
|
-
_warnIfNoLabel() {
|
|
141
|
-
// Dev only, so an end user's production console stays clean.
|
|
142
|
-
if (!import.meta.env?.DEV)
|
|
143
|
-
return;
|
|
144
|
-
if (this._hasWarnedNoLabel)
|
|
145
|
-
return;
|
|
146
|
-
if (this.text || this.supportingText)
|
|
147
|
-
return;
|
|
148
|
-
this._hasWarnedNoLabel = true;
|
|
149
|
-
console.warn('<nldd-form-section>: No `text` or `supporting-text` provided. The <fieldset> has no accessible name and screen readers may announce it as just "group" (Chrome) or nothing (Firefox). Set `text` for a group label, or document this section as purely visual grouping.');
|
|
150
|
-
}
|
|
151
137
|
_buildStructure() {
|
|
152
138
|
// Save user's existing children (light-DOM at construction time).
|
|
153
139
|
const initialChildren = Array.from(this.childNodes);
|