@nldd/design-system 0.8.92 → 0.8.94
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/NOTICES.md +29 -27
- package/README.md +39 -26
- package/custom-elements.json +2134 -1509
- package/dist/components/actions/button/button.d.ts +28 -6
- package/dist/components/actions/button/button.d.ts.map +1 -1
- package/dist/components/actions/button/button.js +58 -8
- package/dist/components/actions/button/button.js.map +1 -1
- package/dist/components/actions/button/button.styles.d.ts.map +1 -1
- package/dist/components/actions/button/button.styles.js +44 -74
- package/dist/components/actions/button/button.styles.js.map +1 -1
- package/dist/components/actions/button/button.template.d.ts.map +1 -1
- package/dist/components/actions/button/button.template.js +4 -3
- package/dist/components/actions/button/button.template.js.map +1 -1
- package/dist/components/actions/button-bar/button-bar.d.ts +11 -4
- package/dist/components/actions/button-bar/button-bar.d.ts.map +1 -1
- package/dist/components/actions/button-bar/button-bar.js +25 -9
- package/dist/components/actions/button-bar/button-bar.js.map +1 -1
- package/dist/components/actions/button-bar/button-bar.styles.d.ts.map +1 -1
- package/dist/components/actions/button-bar/button-bar.styles.js +18 -3
- package/dist/components/actions/button-bar/button-bar.styles.js.map +1 -1
- package/dist/components/actions/button-group/button-group.d.ts +48 -3
- package/dist/components/actions/button-group/button-group.d.ts.map +1 -1
- package/dist/components/actions/button-group/button-group.js +104 -11
- package/dist/components/actions/button-group/button-group.js.map +1 -1
- package/dist/components/actions/button-group/button-group.styles.d.ts.map +1 -1
- package/dist/components/actions/button-group/button-group.styles.js +64 -4
- package/dist/components/actions/button-group/button-group.styles.js.map +1 -1
- package/dist/components/actions/icon-button/icon-button.d.ts +13 -7
- package/dist/components/actions/icon-button/icon-button.d.ts.map +1 -1
- package/dist/components/actions/icon-button/icon-button.js +16 -7
- package/dist/components/actions/icon-button/icon-button.js.map +1 -1
- package/dist/components/actions/icon-button/icon-button.styles.d.ts.map +1 -1
- package/dist/components/actions/icon-button/icon-button.styles.js +35 -61
- package/dist/components/actions/icon-button/icon-button.styles.js.map +1 -1
- package/dist/components/actions/icon-button/icon-button.template.d.ts.map +1 -1
- package/dist/components/actions/icon-button/icon-button.template.js +8 -4
- package/dist/components/actions/icon-button/icon-button.template.js.map +1 -1
- package/dist/components/actions/menu/menu.d.ts +46 -31
- package/dist/components/actions/menu/menu.d.ts.map +1 -1
- package/dist/components/actions/menu/menu.js +87 -64
- package/dist/components/actions/menu/menu.js.map +1 -1
- package/dist/components/actions/menu/menu.styles.d.ts.map +1 -1
- package/dist/components/actions/menu/menu.styles.js +4 -0
- package/dist/components/actions/menu/menu.styles.js.map +1 -1
- package/dist/components/actions/menu/menu.template.d.ts.map +1 -1
- package/dist/components/actions/menu/menu.template.js +13 -5
- package/dist/components/actions/menu/menu.template.js.map +1 -1
- package/dist/components/actions/split-button/split-button.d.ts +2 -2
- package/dist/components/actions/split-button/split-button.d.ts.map +1 -1
- package/dist/components/actions/split-button/split-button.js +5 -4
- package/dist/components/actions/split-button/split-button.js.map +1 -1
- package/dist/components/actions/split-button/split-button.styles.d.ts.map +1 -1
- package/dist/components/actions/split-button/split-button.styles.js +18 -3
- package/dist/components/actions/split-button/split-button.styles.js.map +1 -1
- package/dist/components/actions/split-button/split-button.template.js +2 -2
- package/dist/components/actions/split-button/split-button.template.js.map +1 -1
- package/dist/components/actions/toolbar/toolbar.d.ts +24 -10
- package/dist/components/actions/toolbar/toolbar.d.ts.map +1 -1
- package/dist/components/actions/toolbar/toolbar.js +60 -28
- package/dist/components/actions/toolbar/toolbar.js.map +1 -1
- package/dist/components/actions/toolbar/toolbar.styles.js +7 -7
- package/dist/components/actions/toolbar/toolbar.template.d.ts.map +1 -1
- package/dist/components/actions/toolbar/toolbar.template.js +3 -2
- package/dist/components/actions/toolbar/toolbar.template.js.map +1 -1
- package/dist/components/components.js +3034 -1382
- package/dist/components/content/avatar/avatar.d.ts +23 -5
- package/dist/components/content/avatar/avatar.d.ts.map +1 -1
- package/dist/components/content/avatar/avatar.js +24 -6
- package/dist/components/content/avatar/avatar.js.map +1 -1
- package/dist/components/content/avatar/avatar.template.d.ts.map +1 -1
- package/dist/components/content/avatar/avatar.template.js +5 -2
- package/dist/components/content/avatar/avatar.template.js.map +1 -1
- package/dist/components/content/avatar-group/avatar-group.template.d.ts.map +1 -1
- package/dist/components/content/avatar-group/avatar-group.template.js +6 -2
- package/dist/components/content/avatar-group/avatar-group.template.js.map +1 -1
- package/dist/components/content/code-viewer/code-viewer.d.ts +2 -2
- package/dist/components/content/code-viewer/code-viewer.d.ts.map +1 -1
- package/dist/components/content/code-viewer/code-viewer.js +10 -6
- package/dist/components/content/code-viewer/code-viewer.js.map +1 -1
- package/dist/components/content/code-viewer/code-viewer.styles.js +6 -6
- package/dist/components/content/icon/icon.d.ts +18 -6
- package/dist/components/content/icon/icon.d.ts.map +1 -1
- package/dist/components/content/icon/icon.js +30 -10
- package/dist/components/content/icon/icon.js.map +1 -1
- package/dist/components/content/identity/identity.template.d.ts.map +1 -1
- package/dist/components/content/identity/identity.template.js +4 -1
- package/dist/components/content/identity/identity.template.js.map +1 -1
- package/dist/components/content/image/image.d.ts.map +1 -1
- package/dist/components/content/image/image.js +2 -1
- package/dist/components/content/image/image.js.map +1 -1
- package/dist/components/content/image/image.template.d.ts.map +1 -1
- package/dist/components/content/image/image.template.js +7 -2
- package/dist/components/content/image/image.template.js.map +1 -1
- package/dist/components/content/keyboard-shortcut/keyboard-shortcut.d.ts +3 -3
- package/dist/components/content/keyboard-shortcut/keyboard-shortcut.d.ts.map +1 -1
- package/dist/components/content/keyboard-shortcut/keyboard-shortcut.js +3 -3
- package/dist/components/content/keyboard-shortcut/keyboard-shortcut.js.map +1 -1
- package/dist/components/content/keyboard-shortcut/keyboard-shortcut.styles.js +7 -7
- package/dist/components/content/rich-text/rich-text.d.ts +20 -9
- package/dist/components/content/rich-text/rich-text.d.ts.map +1 -1
- package/dist/components/content/rich-text/rich-text.js +32 -16
- package/dist/components/content/rich-text/rich-text.js.map +1 -1
- package/dist/components/content/tag/tag.d.ts +2 -2
- package/dist/components/content/tag/tag.d.ts.map +1 -1
- package/dist/components/content/tag/tag.js +5 -5
- package/dist/components/content/tag/tag.js.map +1 -1
- package/dist/components/content/tag/tag.template.js +2 -2
- package/dist/components/content/text/text.styles.d.ts.map +1 -1
- package/dist/components/content/text/text.styles.js +1 -0
- package/dist/components/content/text/text.styles.js.map +1 -1
- package/dist/components/content/title/title.d.ts +30 -6
- package/dist/components/content/title/title.d.ts.map +1 -1
- package/dist/components/content/title/title.js +72 -8
- package/dist/components/content/title/title.js.map +1 -1
- package/dist/components/content/title/title.styles.d.ts.map +1 -1
- package/dist/components/content/title/title.styles.js +41 -4
- package/dist/components/content/title/title.styles.js.map +1 -1
- package/dist/components/content/title/title.template.d.ts +2 -1
- package/dist/components/content/title/title.template.d.ts.map +1 -1
- package/dist/components/content/title/title.template.js +33 -5
- package/dist/components/content/title/title.template.js.map +1 -1
- package/dist/components/content/token/token.d.ts +15 -5
- package/dist/components/content/token/token.d.ts.map +1 -1
- package/dist/components/content/token/token.i18n.d.ts +7 -0
- package/dist/components/content/token/token.i18n.d.ts.map +1 -0
- package/dist/components/content/token/token.i18n.js +6 -0
- package/dist/components/content/token/token.i18n.js.map +1 -0
- package/dist/components/content/token/token.js +56 -14
- package/dist/components/content/token/token.js.map +1 -1
- package/dist/components/content/token/token.template.js +6 -6
- package/dist/components/content/token/token.template.js.map +1 -1
- package/dist/components/forms/form/form.d.ts +18 -7
- package/dist/components/forms/form/form.d.ts.map +1 -1
- package/dist/components/forms/form/form.js +18 -7
- package/dist/components/forms/form/form.js.map +1 -1
- package/dist/components/forms/form-actions/form-actions.d.ts +1 -1
- package/dist/components/forms/form-actions/form-actions.js +1 -1
- package/dist/components/forms/form-field/form-field.d.ts +12 -1
- package/dist/components/forms/form-field/form-field.d.ts.map +1 -1
- package/dist/components/forms/form-field/form-field.js +12 -1
- package/dist/components/forms/form-field/form-field.js.map +1 -1
- package/dist/components/forms/form-section/form-section.d.ts +3 -3
- package/dist/components/forms/form-section/form-section.js +8 -8
- package/dist/components/forms/form-section/form-section.js.map +1 -1
- package/dist/components/forms/validation-list/validation-list.d.ts +7 -4
- package/dist/components/forms/validation-list/validation-list.d.ts.map +1 -1
- package/dist/components/forms/validation-list/validation-list.js +7 -4
- package/dist/components/forms/validation-list/validation-list.js.map +1 -1
- package/dist/components/{icon-C_zwJZ_g.js → icon-DWNVcttg.js} +4 -4
- package/dist/components/{icon-button-oua8pmMC.js → icon-button-DHzLMmj0.js} +62 -78
- package/dist/components/index.d.ts +1 -0
- package/dist/components/index.d.ts.map +1 -1
- package/dist/components/index.js +2 -0
- package/dist/components/index.js.map +1 -1
- package/dist/components/inputs/checkbox/checkbox.template.d.ts.map +1 -1
- package/dist/components/inputs/checkbox/checkbox.template.js +11 -5
- package/dist/components/inputs/checkbox/checkbox.template.js.map +1 -1
- package/dist/components/inputs/code-editor/code-editor.d.ts +5 -5
- package/dist/components/inputs/code-editor/code-editor.d.ts.map +1 -1
- package/dist/components/inputs/code-editor/code-editor.js +5 -5
- package/dist/components/inputs/code-editor/code-editor.js.map +1 -1
- package/dist/components/inputs/code-editor/code-editor.styles.js +3 -3
- package/dist/components/inputs/combo-box/combo-box.d.ts +47 -3
- package/dist/components/inputs/combo-box/combo-box.d.ts.map +1 -1
- package/dist/components/inputs/combo-box/combo-box.js +119 -41
- package/dist/components/inputs/combo-box/combo-box.js.map +1 -1
- package/dist/components/inputs/combo-box/combo-box.template.js +4 -4
- package/dist/components/inputs/date-field/date-field.d.ts.map +1 -1
- package/dist/components/inputs/date-field/date-field.js +2 -1
- package/dist/components/inputs/date-field/date-field.js.map +1 -1
- package/dist/components/inputs/date-field/date-field.template.d.ts.map +1 -1
- package/dist/components/inputs/date-field/date-field.template.js +6 -4
- package/dist/components/inputs/date-field/date-field.template.js.map +1 -1
- package/dist/components/inputs/date-picker/date-picker.template.js +3 -3
- package/dist/components/inputs/date-picker/date-picker.template.js.map +1 -1
- package/dist/components/inputs/dropdown/dropdown.d.ts +0 -2
- package/dist/components/inputs/dropdown/dropdown.d.ts.map +1 -1
- package/dist/components/inputs/dropdown/dropdown.js +1 -13
- package/dist/components/inputs/dropdown/dropdown.js.map +1 -1
- package/dist/components/inputs/dropdown/dropdown.styles.d.ts.map +1 -1
- package/dist/components/inputs/dropdown/dropdown.styles.js +24 -12
- package/dist/components/inputs/dropdown/dropdown.styles.js.map +1 -1
- package/dist/components/inputs/dropdown/dropdown.template.d.ts.map +1 -1
- package/dist/components/inputs/dropdown/dropdown.template.js +3 -4
- package/dist/components/inputs/dropdown/dropdown.template.js.map +1 -1
- package/dist/components/inputs/file-field/file-field.d.ts.map +1 -1
- package/dist/components/inputs/file-field/file-field.js +2 -7
- package/dist/components/inputs/file-field/file-field.js.map +1 -1
- package/dist/components/inputs/file-field/file-field.template.js +3 -3
- package/dist/components/inputs/multi-line-text-field/multi-line-text-field.template.js +2 -2
- package/dist/components/inputs/number-field/number-field.d.ts.map +1 -1
- package/dist/components/inputs/number-field/number-field.js +2 -1
- package/dist/components/inputs/number-field/number-field.js.map +1 -1
- package/dist/components/inputs/number-field/number-field.styles.js +4 -4
- package/dist/components/inputs/number-field/number-field.template.js +2 -2
- package/dist/components/inputs/password-field/password-field.template.js +2 -2
- package/dist/components/inputs/radio-button/radio-button.template.d.ts.map +1 -1
- package/dist/components/inputs/radio-button/radio-button.template.js +3 -1
- package/dist/components/inputs/radio-button/radio-button.template.js.map +1 -1
- package/dist/components/inputs/search-field/search-field.d.ts +24 -24
- package/dist/components/inputs/search-field/search-field.d.ts.map +1 -1
- package/dist/components/inputs/search-field/search-field.js +42 -41
- package/dist/components/inputs/search-field/search-field.js.map +1 -1
- package/dist/components/inputs/search-field/search-field.template.d.ts.map +1 -1
- package/dist/components/inputs/search-field/search-field.template.js +6 -4
- package/dist/components/inputs/search-field/search-field.template.js.map +1 -1
- package/dist/components/inputs/segmented-control/segmented-control.d.ts +6 -0
- package/dist/components/inputs/segmented-control/segmented-control.d.ts.map +1 -1
- package/dist/components/inputs/segmented-control/segmented-control.js +13 -0
- package/dist/components/inputs/segmented-control/segmented-control.js.map +1 -1
- package/dist/components/inputs/segmented-control/segmented-control.styles.d.ts.map +1 -1
- package/dist/components/inputs/segmented-control/segmented-control.styles.js +54 -16
- package/dist/components/inputs/segmented-control/segmented-control.styles.js.map +1 -1
- package/dist/components/inputs/segmented-control/segmented-control.template.js +2 -2
- package/dist/components/inputs/stepper/stepper.d.ts.map +1 -1
- package/dist/components/inputs/stepper/stepper.js +2 -1
- package/dist/components/inputs/stepper/stepper.js.map +1 -1
- package/dist/components/inputs/stepper/stepper.template.js +2 -2
- package/dist/components/inputs/switch/switch.template.js +1 -1
- package/dist/components/inputs/text-editor/text-editor.annotations.d.ts.map +1 -1
- package/dist/components/inputs/text-editor/text-editor.annotations.js +6 -4
- package/dist/components/inputs/text-editor/text-editor.annotations.js.map +1 -1
- package/dist/components/inputs/text-editor/text-editor.d.ts +27 -64
- package/dist/components/inputs/text-editor/text-editor.d.ts.map +1 -1
- package/dist/components/inputs/text-editor/text-editor.i18n.d.ts +2 -0
- package/dist/components/inputs/text-editor/text-editor.i18n.d.ts.map +1 -1
- package/dist/components/inputs/text-editor/text-editor.i18n.js +5 -0
- package/dist/components/inputs/text-editor/text-editor.i18n.js.map +1 -1
- package/dist/components/inputs/text-editor/text-editor.js +87 -20
- package/dist/components/inputs/text-editor/text-editor.js.map +1 -1
- package/dist/components/inputs/text-editor/text-editor.labels.d.ts +4 -0
- package/dist/components/inputs/text-editor/text-editor.labels.d.ts.map +1 -0
- package/dist/components/inputs/text-editor/text-editor.labels.js +5 -0
- package/dist/components/inputs/text-editor/text-editor.labels.js.map +1 -0
- package/dist/components/inputs/text-editor/text-editor.links.d.ts.map +1 -1
- package/dist/components/inputs/text-editor/text-editor.links.js +7 -5
- package/dist/components/inputs/text-editor/text-editor.links.js.map +1 -1
- package/dist/components/inputs/text-editor/text-editor.markdown.d.ts.map +1 -1
- package/dist/components/inputs/text-editor/text-editor.markdown.js +6 -2
- package/dist/components/inputs/text-editor/text-editor.markdown.js.map +1 -1
- package/dist/components/inputs/text-editor/text-editor.mentions.d.ts +27 -3
- package/dist/components/inputs/text-editor/text-editor.mentions.d.ts.map +1 -1
- package/dist/components/inputs/text-editor/text-editor.mentions.js +145 -26
- package/dist/components/inputs/text-editor/text-editor.mentions.js.map +1 -1
- package/dist/components/inputs/text-editor/text-editor.spellcheck.d.ts +11 -0
- package/dist/components/inputs/text-editor/text-editor.spellcheck.d.ts.map +1 -0
- package/dist/components/inputs/text-editor/text-editor.spellcheck.js +134 -0
- package/dist/components/inputs/text-editor/text-editor.spellcheck.js.map +1 -0
- package/dist/components/inputs/text-editor/text-editor.styles.d.ts.map +1 -1
- package/dist/components/inputs/text-editor/text-editor.styles.js +9 -3
- package/dist/components/inputs/text-editor/text-editor.styles.js.map +1 -1
- package/dist/components/inputs/text-field/text-field.template.js +2 -2
- package/dist/components/inputs/time-field/time-field.d.ts.map +1 -1
- package/dist/components/inputs/time-field/time-field.js +2 -1
- package/dist/components/inputs/time-field/time-field.js.map +1 -1
- package/dist/components/inputs/time-field/time-field.template.d.ts.map +1 -1
- package/dist/components/inputs/time-field/time-field.template.js +7 -5
- package/dist/components/inputs/time-field/time-field.template.js.map +1 -1
- package/dist/components/inputs/time-picker/time-picker.d.ts.map +1 -1
- package/dist/components/inputs/time-picker/time-picker.js +2 -1
- package/dist/components/inputs/time-picker/time-picker.js.map +1 -1
- package/dist/components/inputs/toggle-button/toggle-button.d.ts +12 -0
- package/dist/components/inputs/toggle-button/toggle-button.d.ts.map +1 -1
- package/dist/components/inputs/toggle-button/toggle-button.js +17 -0
- package/dist/components/inputs/toggle-button/toggle-button.js.map +1 -1
- package/dist/components/inputs/toggle-button/toggle-button.styles.d.ts.map +1 -1
- package/dist/components/inputs/toggle-button/toggle-button.styles.js +99 -12
- package/dist/components/inputs/toggle-button/toggle-button.styles.js.map +1 -1
- package/dist/components/inputs/toggle-button/toggle-button.template.d.ts.map +1 -1
- package/dist/components/inputs/toggle-button/toggle-button.template.js +6 -4
- package/dist/components/inputs/toggle-button/toggle-button.template.js.map +1 -1
- package/dist/components/inputs/toggle-button-group/toggle-button-group.d.ts +4 -2
- package/dist/components/inputs/toggle-button-group/toggle-button-group.d.ts.map +1 -1
- package/dist/components/inputs/toggle-button-group/toggle-button-group.js +8 -2
- package/dist/components/inputs/toggle-button-group/toggle-button-group.js.map +1 -1
- package/dist/components/inputs/token-field/token-field.d.ts +26 -1
- package/dist/components/inputs/token-field/token-field.d.ts.map +1 -1
- package/dist/components/inputs/token-field/token-field.i18n.js +1 -1
- package/dist/components/inputs/token-field/token-field.i18n.js.map +1 -1
- package/dist/components/inputs/token-field/token-field.js +59 -6
- package/dist/components/inputs/token-field/token-field.js.map +1 -1
- package/dist/components/inputs/token-field/token-field.styles.d.ts.map +1 -1
- package/dist/components/inputs/token-field/token-field.styles.js +2 -1
- package/dist/components/inputs/token-field/token-field.styles.js.map +1 -1
- package/dist/components/inputs/token-field/token-field.template.d.ts.map +1 -1
- package/dist/components/inputs/token-field/token-field.template.js +7 -5
- package/dist/components/inputs/token-field/token-field.template.js.map +1 -1
- package/dist/components/layout/app-view/app-view.d.ts +8 -0
- package/dist/components/layout/app-view/app-view.d.ts.map +1 -1
- package/dist/components/layout/app-view/app-view.js +8 -0
- package/dist/components/layout/app-view/app-view.js.map +1 -1
- package/dist/components/layout/card/card.d.ts +7 -4
- package/dist/components/layout/card/card.d.ts.map +1 -1
- package/dist/components/layout/card/card.js +10 -7
- package/dist/components/layout/card/card.js.map +1 -1
- package/dist/components/layout/card/card.styles.d.ts.map +1 -1
- package/dist/components/layout/card/card.styles.js +22 -2
- package/dist/components/layout/card/card.styles.js.map +1 -1
- package/dist/components/layout/card/card.template.d.ts.map +1 -1
- package/dist/components/layout/card/card.template.js +4 -2
- package/dist/components/layout/card/card.template.js.map +1 -1
- package/dist/components/layout/collection/collection.d.ts +11 -6
- package/dist/components/layout/collection/collection.d.ts.map +1 -1
- package/dist/components/layout/collection/collection.js +21 -15
- package/dist/components/layout/collection/collection.js.map +1 -1
- package/dist/components/layout/collection/collection.template.d.ts.map +1 -1
- package/dist/components/layout/collection/collection.template.js +5 -2
- package/dist/components/layout/collection/collection.template.js.map +1 -1
- package/dist/components/layout/container/container.d.ts +13 -8
- package/dist/components/layout/container/container.d.ts.map +1 -1
- package/dist/components/layout/container/container.js +19 -14
- package/dist/components/layout/container/container.js.map +1 -1
- package/dist/components/layout/page/page.d.ts +52 -2
- package/dist/components/layout/page/page.d.ts.map +1 -1
- package/dist/components/layout/page/page.js +94 -3
- package/dist/components/layout/page/page.js.map +1 -1
- package/dist/components/layout/page/page.template.d.ts +6 -0
- package/dist/components/layout/page/page.template.d.ts.map +1 -1
- package/dist/components/layout/page/page.template.js +21 -6
- package/dist/components/layout/page/page.template.js.map +1 -1
- package/dist/components/layout/page-footer/page-footer.d.ts +2 -4
- package/dist/components/layout/page-footer/page-footer.d.ts.map +1 -1
- package/dist/components/layout/page-footer/page-footer.js +8 -23
- package/dist/components/layout/page-footer/page-footer.js.map +1 -1
- package/dist/components/layout/page-footer/page-footer.template.d.ts.map +1 -1
- package/dist/components/layout/page-footer/page-footer.template.js +16 -4
- package/dist/components/layout/page-footer/page-footer.template.js.map +1 -1
- package/dist/components/layout/page-sections/full-bleed-section/full-bleed-section.d.ts +4 -6
- package/dist/components/layout/page-sections/full-bleed-section/full-bleed-section.d.ts.map +1 -1
- package/dist/components/layout/page-sections/full-bleed-section/full-bleed-section.js +4 -5
- package/dist/components/layout/page-sections/full-bleed-section/full-bleed-section.js.map +1 -1
- package/dist/components/layout/page-sections/full-bleed-section/full-bleed-section.template.d.ts.map +1 -1
- package/dist/components/layout/page-sections/full-bleed-section/full-bleed-section.template.js +8 -2
- package/dist/components/layout/page-sections/full-bleed-section/full-bleed-section.template.js.map +1 -1
- package/dist/components/layout/page-sections/hero/hero.d.ts +12 -14
- package/dist/components/layout/page-sections/hero/hero.d.ts.map +1 -1
- package/dist/components/layout/page-sections/hero/hero.js +19 -20
- package/dist/components/layout/page-sections/hero/hero.js.map +1 -1
- package/dist/components/layout/page-sections/hero/hero.template.d.ts.map +1 -1
- package/dist/components/layout/page-sections/hero/hero.template.js +6 -2
- package/dist/components/layout/page-sections/hero/hero.template.js.map +1 -1
- package/dist/components/layout/page-sections/one-half-one-half-section/one-half-one-half-section.d.ts +6 -8
- package/dist/components/layout/page-sections/one-half-one-half-section/one-half-one-half-section.d.ts.map +1 -1
- package/dist/components/layout/page-sections/one-half-one-half-section/one-half-one-half-section.js +6 -7
- package/dist/components/layout/page-sections/one-half-one-half-section/one-half-one-half-section.js.map +1 -1
- package/dist/components/layout/page-sections/one-half-one-half-section/one-half-one-half-section.template.d.ts.map +1 -1
- package/dist/components/layout/page-sections/one-half-one-half-section/one-half-one-half-section.template.js +8 -2
- package/dist/components/layout/page-sections/one-half-one-half-section/one-half-one-half-section.template.js.map +1 -1
- package/dist/components/layout/page-sections/one-third-two-thirds-section/one-third-two-thirds-section.d.ts +6 -8
- package/dist/components/layout/page-sections/one-third-two-thirds-section/one-third-two-thirds-section.d.ts.map +1 -1
- package/dist/components/layout/page-sections/one-third-two-thirds-section/one-third-two-thirds-section.js +6 -7
- package/dist/components/layout/page-sections/one-third-two-thirds-section/one-third-two-thirds-section.js.map +1 -1
- package/dist/components/layout/page-sections/one-third-two-thirds-section/one-third-two-thirds-section.template.d.ts.map +1 -1
- package/dist/components/layout/page-sections/one-third-two-thirds-section/one-third-two-thirds-section.template.js +8 -2
- package/dist/components/layout/page-sections/one-third-two-thirds-section/one-third-two-thirds-section.template.js.map +1 -1
- package/dist/components/layout/page-sections/page-section-controls.d.ts +139 -44
- package/dist/components/layout/page-sections/page-section-controls.d.ts.map +1 -1
- package/dist/components/layout/page-sections/page-section-controls.js +44 -47
- package/dist/components/layout/page-sections/page-section-controls.js.map +1 -1
- package/dist/components/layout/page-sections/sidebar-section/sidebar-section.d.ts +11 -12
- package/dist/components/layout/page-sections/sidebar-section/sidebar-section.d.ts.map +1 -1
- package/dist/components/layout/page-sections/sidebar-section/sidebar-section.js +21 -20
- package/dist/components/layout/page-sections/sidebar-section/sidebar-section.js.map +1 -1
- package/dist/components/layout/page-sections/sidebar-section/sidebar-section.template.d.ts.map +1 -1
- package/dist/components/layout/page-sections/sidebar-section/sidebar-section.template.js +8 -2
- package/dist/components/layout/page-sections/sidebar-section/sidebar-section.template.js.map +1 -1
- package/dist/components/layout/page-sections/simple-section/simple-section.d.ts +14 -8
- package/dist/components/layout/page-sections/simple-section/simple-section.d.ts.map +1 -1
- package/dist/components/layout/page-sections/simple-section/simple-section.js +14 -7
- package/dist/components/layout/page-sections/simple-section/simple-section.js.map +1 -1
- package/dist/components/layout/page-sections/simple-section/simple-section.template.d.ts.map +1 -1
- package/dist/components/layout/page-sections/simple-section/simple-section.template.js +8 -2
- package/dist/components/layout/page-sections/simple-section/simple-section.template.js.map +1 -1
- package/dist/components/layout/page-sections/two-thirds-one-third-section/two-thirds-one-third-section.d.ts +6 -8
- package/dist/components/layout/page-sections/two-thirds-one-third-section/two-thirds-one-third-section.d.ts.map +1 -1
- package/dist/components/layout/page-sections/two-thirds-one-third-section/two-thirds-one-third-section.js +6 -7
- package/dist/components/layout/page-sections/two-thirds-one-third-section/two-thirds-one-third-section.js.map +1 -1
- package/dist/components/layout/page-sections/two-thirds-one-third-section/two-thirds-one-third-section.template.d.ts.map +1 -1
- package/dist/components/layout/page-sections/two-thirds-one-third-section/two-thirds-one-third-section.template.js +8 -2
- package/dist/components/layout/page-sections/two-thirds-one-third-section/two-thirds-one-third-section.template.js.map +1 -1
- package/dist/components/layout/popover/popover.d.ts +12 -8
- package/dist/components/layout/popover/popover.d.ts.map +1 -1
- package/dist/components/layout/popover/popover.js +40 -19
- package/dist/components/layout/popover/popover.js.map +1 -1
- package/dist/components/layout/sheet/sheet.d.ts +26 -11
- package/dist/components/layout/sheet/sheet.d.ts.map +1 -1
- package/dist/components/layout/sheet/sheet.js +59 -20
- package/dist/components/layout/sheet/sheet.js.map +1 -1
- package/dist/components/layout/sheet/sheet.styles.d.ts.map +1 -1
- package/dist/components/layout/sheet/sheet.styles.js +4 -0
- package/dist/components/layout/sheet/sheet.styles.js.map +1 -1
- package/dist/components/layout/sheet/sheet.template.js +1 -1
- package/dist/components/layout/sheet/sheet.template.js.map +1 -1
- package/dist/components/layout/spacer/spacer.d.ts +13 -0
- package/dist/components/layout/spacer/spacer.d.ts.map +1 -1
- package/dist/components/layout/spacer/spacer.js +13 -0
- package/dist/components/layout/spacer/spacer.js.map +1 -1
- package/dist/components/layout/split-views/bar-split-view/bar-split-view.d.ts +4 -1
- package/dist/components/layout/split-views/bar-split-view/bar-split-view.d.ts.map +1 -1
- package/dist/components/layout/split-views/bar-split-view/bar-split-view.js +4 -1
- package/dist/components/layout/split-views/bar-split-view/bar-split-view.js.map +1 -1
- package/dist/components/layout/split-views/navigation-split-view/navigation-split-view.d.ts +11 -6
- package/dist/components/layout/split-views/navigation-split-view/navigation-split-view.d.ts.map +1 -1
- package/dist/components/layout/split-views/navigation-split-view/navigation-split-view.js +17 -12
- package/dist/components/layout/split-views/navigation-split-view/navigation-split-view.js.map +1 -1
- package/dist/components/layout/split-views/navigation-split-view/navigation-split-view.styles.d.ts.map +1 -1
- package/dist/components/layout/split-views/navigation-split-view/navigation-split-view.styles.js +4 -0
- package/dist/components/layout/split-views/navigation-split-view/navigation-split-view.styles.js.map +1 -1
- package/dist/components/layout/split-views/side-by-side-split-view/side-by-side-split-view.d.ts +3 -1
- package/dist/components/layout/split-views/side-by-side-split-view/side-by-side-split-view.d.ts.map +1 -1
- package/dist/components/layout/split-views/side-by-side-split-view/side-by-side-split-view.js +3 -1
- package/dist/components/layout/split-views/side-by-side-split-view/side-by-side-split-view.js.map +1 -1
- package/dist/components/layout/split-views/split-view-pane/split-view-pane.d.ts +4 -4
- package/dist/components/layout/split-views/split-view-pane/split-view-pane.d.ts.map +1 -1
- package/dist/components/layout/split-views/split-view-pane/split-view-pane.js +8 -8
- package/dist/components/layout/split-views/split-view-pane/split-view-pane.js.map +1 -1
- package/dist/components/layout/window/window.d.ts +30 -18
- package/dist/components/layout/window/window.d.ts.map +1 -1
- package/dist/components/layout/window/window.js +68 -32
- package/dist/components/layout/window/window.js.map +1 -1
- package/dist/components/lists-and-tables/cells/cell/cell.d.ts +4 -2
- package/dist/components/lists-and-tables/cells/cell/cell.d.ts.map +1 -1
- package/dist/components/lists-and-tables/cells/cell/cell.js +7 -5
- package/dist/components/lists-and-tables/cells/cell/cell.js.map +1 -1
- package/dist/components/lists-and-tables/cells/drag-handle-cell/drag-handle-cell.d.ts.map +1 -1
- package/dist/components/lists-and-tables/cells/drag-handle-cell/drag-handle-cell.js +2 -1
- package/dist/components/lists-and-tables/cells/drag-handle-cell/drag-handle-cell.js.map +1 -1
- package/dist/components/lists-and-tables/cells/drag-handle-cell/drag-handle-cell.template.d.ts.map +1 -1
- package/dist/components/lists-and-tables/cells/drag-handle-cell/drag-handle-cell.template.js +88 -16
- package/dist/components/lists-and-tables/cells/drag-handle-cell/drag-handle-cell.template.js.map +1 -1
- package/dist/components/lists-and-tables/cells/icon-cell/icon-cell.d.ts +4 -2
- package/dist/components/lists-and-tables/cells/icon-cell/icon-cell.d.ts.map +1 -1
- package/dist/components/lists-and-tables/cells/icon-cell/icon-cell.js +7 -5
- package/dist/components/lists-and-tables/cells/icon-cell/icon-cell.js.map +1 -1
- package/dist/components/lists-and-tables/cells/icon-cell/icon-cell.styles.d.ts.map +1 -1
- package/dist/components/lists-and-tables/cells/icon-cell/icon-cell.styles.js +23 -0
- package/dist/components/lists-and-tables/cells/icon-cell/icon-cell.styles.js.map +1 -1
- package/dist/components/lists-and-tables/cells/icon-cell/icon-cell.template.d.ts.map +1 -1
- package/dist/components/lists-and-tables/cells/icon-cell/icon-cell.template.js +11 -2
- package/dist/components/lists-and-tables/cells/icon-cell/icon-cell.template.js.map +1 -1
- package/dist/components/lists-and-tables/cells/text-cell/text-cell.d.ts +2 -2
- package/dist/components/lists-and-tables/cells/text-cell/text-cell.d.ts.map +1 -1
- package/dist/components/lists-and-tables/cells/text-cell/text-cell.js +5 -5
- package/dist/components/lists-and-tables/cells/text-cell/text-cell.js.map +1 -1
- package/dist/components/lists-and-tables/cells/text-cell/text-cell.template.d.ts.map +1 -1
- package/dist/components/lists-and-tables/cells/text-cell/text-cell.template.js +8 -2
- package/dist/components/lists-and-tables/cells/text-cell/text-cell.template.js.map +1 -1
- package/dist/components/lists-and-tables/cells/timeline-track-cell/timeline-track-cell.d.ts +11 -11
- package/dist/components/lists-and-tables/cells/timeline-track-cell/timeline-track-cell.d.ts.map +1 -1
- package/dist/components/lists-and-tables/cells/timeline-track-cell/timeline-track-cell.js +15 -15
- package/dist/components/lists-and-tables/cells/timeline-track-cell/timeline-track-cell.js.map +1 -1
- package/dist/components/lists-and-tables/cells/timeline-track-cell/timeline-track-cell.styles.js +5 -5
- package/dist/components/lists-and-tables/cells/timeline-track-cell/timeline-track-cell.template.js +2 -2
- package/dist/components/lists-and-tables/cells/timeline-track-cell/timeline-track-cell.template.js.map +1 -1
- package/dist/components/lists-and-tables/cells/title-cell/title-cell.d.ts +3 -3
- package/dist/components/lists-and-tables/cells/title-cell/title-cell.d.ts.map +1 -1
- package/dist/components/lists-and-tables/cells/title-cell/title-cell.js +6 -6
- package/dist/components/lists-and-tables/cells/title-cell/title-cell.js.map +1 -1
- package/dist/components/lists-and-tables/cells/title-cell/title-cell.template.d.ts.map +1 -1
- package/dist/components/lists-and-tables/cells/title-cell/title-cell.template.js +8 -2
- package/dist/components/lists-and-tables/cells/title-cell/title-cell.template.js.map +1 -1
- package/dist/components/lists-and-tables/list/list.d.ts +14 -11
- package/dist/components/lists-and-tables/list/list.d.ts.map +1 -1
- package/dist/components/lists-and-tables/list/list.js +36 -36
- package/dist/components/lists-and-tables/list/list.js.map +1 -1
- package/dist/components/lists-and-tables/list/list.styles.d.ts.map +1 -1
- package/dist/components/lists-and-tables/list/list.styles.js +9 -5
- package/dist/components/lists-and-tables/list/list.styles.js.map +1 -1
- package/dist/components/lists-and-tables/list/list.template.d.ts.map +1 -1
- package/dist/components/lists-and-tables/list/list.template.js +26 -9
- package/dist/components/lists-and-tables/list/list.template.js.map +1 -1
- package/dist/components/lists-and-tables/list-item/list-item.d.ts +65 -43
- package/dist/components/lists-and-tables/list-item/list-item.d.ts.map +1 -1
- package/dist/components/lists-and-tables/list-item/list-item.js +116 -47
- package/dist/components/lists-and-tables/list-item/list-item.js.map +1 -1
- package/dist/components/lists-and-tables/list-item/list-item.styles.d.ts.map +1 -1
- package/dist/components/lists-and-tables/list-item/list-item.styles.js +4 -14
- package/dist/components/lists-and-tables/list-item/list-item.styles.js.map +1 -1
- package/dist/components/lists-and-tables/list-item-segment/list-item-segment.d.ts +35 -10
- package/dist/components/lists-and-tables/list-item-segment/list-item-segment.d.ts.map +1 -1
- package/dist/components/lists-and-tables/list-item-segment/list-item-segment.js +45 -18
- package/dist/components/lists-and-tables/list-item-segment/list-item-segment.js.map +1 -1
- package/dist/components/lists-and-tables/list-item-segment/list-item-segment.styles.d.ts.map +1 -1
- package/dist/components/lists-and-tables/list-item-segment/list-item-segment.styles.js +4 -14
- package/dist/components/lists-and-tables/list-item-segment/list-item-segment.styles.js.map +1 -1
- package/dist/components/lists-and-tables/list-item-segment/list-item-segment.template.d.ts +1 -1
- package/dist/components/lists-and-tables/list-item-segment/list-item-segment.template.d.ts.map +1 -1
- package/dist/components/lists-and-tables/list-item-segment/list-item-segment.template.js +11 -2
- package/dist/components/lists-and-tables/list-item-segment/list-item-segment.template.js.map +1 -1
- package/dist/components/lists-and-tables/table/table.d.ts +4 -2
- package/dist/components/lists-and-tables/table/table.d.ts.map +1 -1
- package/dist/components/lists-and-tables/table/table.js +15 -12
- package/dist/components/lists-and-tables/table/table.js.map +1 -1
- package/dist/components/navigation/breadcrumbs/breadcrumbs.d.ts +0 -2
- package/dist/components/navigation/breadcrumbs/breadcrumbs.d.ts.map +1 -1
- package/dist/components/navigation/breadcrumbs/breadcrumbs.js +4 -19
- package/dist/components/navigation/breadcrumbs/breadcrumbs.js.map +1 -1
- package/dist/components/navigation/breadcrumbs/breadcrumbs.template.js +1 -1
- package/dist/components/navigation/document-tab-bar/document-tab-bar.js +6 -6
- package/dist/components/navigation/document-tab-bar/document-tab-bar.js.map +1 -1
- package/dist/components/navigation/document-tab-bar/document-tab-bar.template.d.ts.map +1 -1
- package/dist/components/navigation/document-tab-bar/document-tab-bar.template.js +10 -4
- package/dist/components/navigation/document-tab-bar/document-tab-bar.template.js.map +1 -1
- package/dist/components/navigation/link/link.template.js +2 -2
- package/dist/components/navigation/menu-bar/menu-bar.js +1 -1
- package/dist/components/navigation/menu-bar/menu-bar.js.map +1 -1
- package/dist/components/navigation/menu-bar-item/menu-bar-item.template.js +4 -4
- package/dist/components/navigation/pagination/pagination.d.ts +0 -3
- package/dist/components/navigation/pagination/pagination.d.ts.map +1 -1
- package/dist/components/navigation/pagination/pagination.js +2 -13
- package/dist/components/navigation/pagination/pagination.js.map +1 -1
- package/dist/components/navigation/pagination/pagination.styles.js +4 -4
- package/dist/components/navigation/pagination/pagination.template.js +3 -3
- package/dist/components/navigation/tab-bar/tab-bar.template.js +2 -2
- package/dist/components/navigation/top-navigation-bar/top-navigation-bar.d.ts +12 -0
- package/dist/components/navigation/top-navigation-bar/top-navigation-bar.d.ts.map +1 -1
- package/dist/components/navigation/top-navigation-bar/top-navigation-bar.js +37 -2
- package/dist/components/navigation/top-navigation-bar/top-navigation-bar.js.map +1 -1
- package/dist/components/navigation/top-navigation-bar/top-navigation-bar.styles.d.ts.map +1 -1
- package/dist/components/navigation/top-navigation-bar/top-navigation-bar.styles.js +48 -3
- package/dist/components/navigation/top-navigation-bar/top-navigation-bar.styles.js.map +1 -1
- package/dist/components/navigation/top-navigation-bar/top-navigation-bar.template.d.ts.map +1 -1
- package/dist/components/navigation/top-navigation-bar/top-navigation-bar.template.js +4 -2
- package/dist/components/navigation/top-navigation-bar/top-navigation-bar.template.js.map +1 -1
- package/dist/components/navigation/top-title-bar/top-title-bar.d.ts +6 -2
- package/dist/components/navigation/top-title-bar/top-title-bar.d.ts.map +1 -1
- package/dist/components/navigation/top-title-bar/top-title-bar.js +7 -2
- package/dist/components/navigation/top-title-bar/top-title-bar.js.map +1 -1
- package/dist/components/navigation/top-title-bar/top-title-bar.styles.js +2 -2
- package/dist/components/navigation/top-title-bar/top-title-bar.template.d.ts.map +1 -1
- package/dist/components/navigation/top-title-bar/top-title-bar.template.js +21 -6
- package/dist/components/navigation/top-title-bar/top-title-bar.template.js.map +1 -1
- package/dist/components/status-and-feedback/activity-indicator/activity-indicator.d.ts.map +1 -1
- package/dist/components/status-and-feedback/activity-indicator/activity-indicator.js +2 -1
- package/dist/components/status-and-feedback/activity-indicator/activity-indicator.js.map +1 -1
- package/dist/components/status-and-feedback/activity-indicator/activity-indicator.styles.js +4 -4
- package/dist/components/status-and-feedback/badge/badge.template.js +1 -1
- package/dist/components/status-and-feedback/banner/banner.d.ts.map +1 -1
- package/dist/components/status-and-feedback/banner/banner.js +2 -1
- package/dist/components/status-and-feedback/banner/banner.js.map +1 -1
- package/dist/components/status-and-feedback/banner/banner.template.js +2 -2
- package/dist/components/status-and-feedback/inline-dialog/inline-dialog.template.js +1 -1
- package/dist/components/status-and-feedback/just-in-time-education/just-in-time-education.template.js +1 -1
- package/dist/components/status-and-feedback/modal-dialog/modal-dialog.d.ts +14 -5
- package/dist/components/status-and-feedback/modal-dialog/modal-dialog.d.ts.map +1 -1
- package/dist/components/status-and-feedback/modal-dialog/modal-dialog.js +43 -13
- package/dist/components/status-and-feedback/modal-dialog/modal-dialog.js.map +1 -1
- package/dist/components/status-and-feedback/modal-dialog/modal-dialog.template.d.ts.map +1 -1
- package/dist/components/status-and-feedback/modal-dialog/modal-dialog.template.js +4 -1
- package/dist/components/status-and-feedback/modal-dialog/modal-dialog.template.js.map +1 -1
- package/dist/components/status-and-feedback/notification/notification.d.ts +8 -8
- package/dist/components/status-and-feedback/notification/notification.d.ts.map +1 -1
- package/dist/components/status-and-feedback/notification/notification.js +13 -13
- package/dist/components/status-and-feedback/notification/notification.js.map +1 -1
- package/dist/components/status-and-feedback/notification/notification.template.d.ts.map +1 -1
- package/dist/components/status-and-feedback/notification/notification.template.js +6 -3
- package/dist/components/status-and-feedback/notification/notification.template.js.map +1 -1
- package/dist/components/status-and-feedback/notification/{notification-region.d.ts → notifications-area.d.ts} +3 -3
- package/dist/components/status-and-feedback/notification/notifications-area.d.ts.map +1 -0
- package/dist/components/status-and-feedback/notification/{notification-region.js → notifications-area.js} +137 -140
- package/dist/components/status-and-feedback/notification/notifications-area.js.map +1 -0
- package/dist/components/status-and-feedback/progress-bar/progress-bar.d.ts +4 -4
- package/dist/components/status-and-feedback/progress-bar/progress-bar.d.ts.map +1 -1
- package/dist/components/status-and-feedback/progress-bar/progress-bar.js +11 -10
- package/dist/components/status-and-feedback/progress-bar/progress-bar.js.map +1 -1
- package/dist/components/status-and-feedback/progress-bar/progress-bar.styles.d.ts.map +1 -1
- package/dist/components/status-and-feedback/progress-bar/progress-bar.styles.js +10 -6
- package/dist/components/status-and-feedback/progress-bar/progress-bar.styles.js.map +1 -1
- package/dist/components/status-and-feedback/progress-bar/progress-bar.template.d.ts.map +1 -1
- package/dist/components/status-and-feedback/progress-bar/progress-bar.template.js +3 -2
- package/dist/components/status-and-feedback/progress-bar/progress-bar.template.js.map +1 -1
- package/dist/components/status-and-feedback/progress-circle/progress-circle.d.ts +6 -4
- package/dist/components/status-and-feedback/progress-circle/progress-circle.d.ts.map +1 -1
- package/dist/components/status-and-feedback/progress-circle/progress-circle.js +16 -13
- package/dist/components/status-and-feedback/progress-circle/progress-circle.js.map +1 -1
- package/dist/components/status-and-feedback/progress-circle/progress-circle.styles.js +3 -3
- package/dist/components/status-and-feedback/progress-circle/progress-circle.template.d.ts.map +1 -1
- package/dist/components/status-and-feedback/progress-circle/progress-circle.template.js +106 -18
- package/dist/components/status-and-feedback/progress-circle/progress-circle.template.js.map +1 -1
- package/dist/components/status-and-feedback/status-bar/status-bar.template.js +1 -1
- package/dist/components/status-and-feedback/step-indicator/step-indicator.d.ts +4 -1
- package/dist/components/status-and-feedback/step-indicator/step-indicator.d.ts.map +1 -1
- package/dist/components/status-and-feedback/step-indicator/step-indicator.js +4 -1
- package/dist/components/status-and-feedback/step-indicator/step-indicator.js.map +1 -1
- package/dist/components/status-and-feedback/step-indicator/step-indicator.template.js +2 -2
- package/dist/components/{with-translations-BAKFoEKy.js → with-translations-Dt2DTXJF.js} +40 -12
- package/dist/css/form-section.css +4 -4
- package/dist/css/form.css +4 -0
- package/dist/css/rich-text.css +31 -12
- package/dist/css/variables.css +33 -56
- package/dist/nldd.min.js +1772 -1113
- package/dist/translations/en-US.d.ts +17 -0
- package/dist/translations/en-US.d.ts.map +1 -0
- package/dist/translations/en-US.js +185 -0
- package/dist/translations/en-US.js.map +1 -0
- package/dist/translations/fy.d.ts +20 -0
- package/dist/translations/fy.d.ts.map +1 -0
- package/dist/translations/fy.js +185 -0
- package/dist/translations/fy.js.map +1 -0
- package/dist/translations/nl.generated.d.ts +188 -0
- package/dist/translations/nl.generated.d.ts.map +1 -0
- package/dist/translations/nl.generated.js +101 -0
- package/dist/translations/nl.generated.js.map +1 -0
- package/dist/translations/pap-AW.d.ts +22 -0
- package/dist/translations/pap-AW.d.ts.map +1 -0
- package/dist/translations/pap-AW.js +185 -0
- package/dist/translations/pap-AW.js.map +1 -0
- package/dist/translations/pap-CW.d.ts +22 -0
- package/dist/translations/pap-CW.d.ts.map +1 -0
- package/dist/translations/pap-CW.js +185 -0
- package/dist/translations/pap-CW.js.map +1 -0
- package/dist/types/vue.d.ts +387 -302
- package/dist/utilities/page-section-mixin.d.ts +3 -8
- package/dist/utilities/page-section-mixin.d.ts.map +1 -1
- package/dist/utilities/page-section-mixin.js +4 -84
- package/dist/utilities/page-section-mixin.js.map +1 -1
- package/dist/utilities/title-bar-label-controller.d.ts +25 -0
- package/dist/utilities/title-bar-label-controller.d.ts.map +1 -0
- package/dist/utilities/title-bar-label-controller.js +52 -0
- package/dist/utilities/title-bar-label-controller.js.map +1 -0
- package/dist/utilities/translations.d.ts +37 -0
- package/dist/utilities/translations.d.ts.map +1 -0
- package/dist/utilities/translations.js +80 -0
- package/dist/utilities/translations.js.map +1 -0
- package/dist/utilities/with-translations.d.ts.map +1 -1
- package/dist/utilities/with-translations.js +2 -15
- package/dist/utilities/with-translations.js.map +1 -1
- package/package.json +32 -4
- package/dist/components/status-and-feedback/notification/notification-region.d.ts.map +0 -1
- package/dist/components/status-and-feedback/notification/notification-region.js.map +0 -1
|
@@ -50,18 +50,18 @@ export declare class NLDDMenuGroup extends LitElement {
|
|
|
50
50
|
*
|
|
51
51
|
* @element nldd-menu-item
|
|
52
52
|
*
|
|
53
|
+
* @attr {boolean} destructive - Marks the item as destructive (red text; red highlight bg). Use for irreversible actions like "Delete". Color is the only built-in signal, so per WCAG 1.4.1 the item's own label must convey the destructive nature (e.g. "Verwijder") — don't rely on the red alone. Confirming the action (e.g. a follow-up dialog) is the consumer's responsibility.
|
|
53
54
|
* @attr {string} text - Display text. Supports **bold** markdown syntax.
|
|
54
|
-
* @attr {string} value - A value of the item's own, read off the item in a `select` handler. The default filter matches on it as well as on `text` and `aliases`. Not a form value: this component is not form-associated.
|
|
55
|
-
* @attr {string} href - Optional link target. A plain button item with an href renders as an `<a>` so it is a real link (middle-click, open in new tab, copy link). Ignored for submenu openers, checkbox/radio items, and while disabled.
|
|
56
|
-
* @attr {string} aliases - Space-separated alternative search terms.
|
|
57
55
|
* @attr {string} details - Secondary label shown on the right side.
|
|
56
|
+
* @attr {string} icon - Icon name rendered before the text.
|
|
58
57
|
* @attr {string} shortcut - Keyboard shortcut hint shown on the right, e.g. 'Cmd+E'. Display only (rendered via nldd-keyboard-shortcut) — it does not bind the key; wire up the handling in your app. Hidden on touch-only devices, where it isn't invokable.
|
|
59
58
|
* @attr {string} shortcut-mac / shortcut-windows / shortcut-linux - Per-OS overrides for `shortcut`, picked by detected OS (falls back to `shortcut`).
|
|
60
|
-
* @attr {string}
|
|
61
|
-
* @attr {string} type - Item type: 'button' | 'checkbox' | 'radio'. Default: 'button'.
|
|
59
|
+
* @attr {string} href - Optional link target. A plain button item with an href renders as an `<a>` so it is a real link (middle-click, open in new tab, copy link). Ignored for submenu openers, checkbox/radio items, and while disabled.
|
|
60
|
+
* @attr {string} type - Item type: 'button' | 'checkbox' | 'radio'. Default: 'button'. One checkbox or radio item gives every item in its menu the check-mark column, so the text of the whole menu starts at one line, as in a native menu. Submenus decide for themselves.
|
|
62
61
|
* @attr {boolean} selected - Selected state for checkbox and radio types.
|
|
63
|
-
* @attr {boolean} destructive - Marks the item as destructive (red text; red highlight bg). Use for irreversible actions like "Delete". Color is the only built-in signal, so per WCAG 1.4.1 the item's own label must convey the destructive nature (e.g. "Verwijder") — don't rely on the red alone. Confirming the action (e.g. a follow-up dialog) is the consumer's responsibility.
|
|
64
62
|
* @attr {boolean} disabled - Disabled state.
|
|
63
|
+
* @attr {string} value - A value of the item's own, read off the item in a `select` handler. The default filter matches on it as well as on `text` and `aliases`. Not a form value: this component is not form-associated.
|
|
64
|
+
* @attr {string} aliases - Space-separated alternative search terms.
|
|
65
65
|
* @attr {string} query - Query substring to bold-highlight in text. Set by menu's filter(); also settable by consumers.
|
|
66
66
|
* @attr {string} query-mark-mode - 'match' | 'predictive' (default: 'predictive'). See text-cell for details.
|
|
67
67
|
*
|
|
@@ -69,20 +69,20 @@ export declare class NLDDMenuGroup extends LitElement {
|
|
|
69
69
|
*/
|
|
70
70
|
export declare class NLDDMenuItem extends LitElement {
|
|
71
71
|
static styles: import("lit").CSSResult;
|
|
72
|
+
destructive: boolean;
|
|
72
73
|
text: string;
|
|
73
|
-
value: string;
|
|
74
|
-
href: string;
|
|
75
|
-
aliases: string;
|
|
76
74
|
details: string;
|
|
75
|
+
icon: string;
|
|
77
76
|
shortcut: string;
|
|
78
77
|
shortcutMac: string;
|
|
79
78
|
shortcutWindows: string;
|
|
80
79
|
shortcutLinux: string;
|
|
81
|
-
|
|
80
|
+
href: string;
|
|
82
81
|
type: 'button' | 'checkbox' | 'radio';
|
|
83
82
|
selected: boolean;
|
|
84
|
-
destructive: boolean;
|
|
85
83
|
disabled: boolean;
|
|
84
|
+
value: string;
|
|
85
|
+
aliases: string;
|
|
86
86
|
query: string;
|
|
87
87
|
queryMarkMode: QueryMarkMode;
|
|
88
88
|
/**
|
|
@@ -96,6 +96,10 @@ export declare class NLDDMenuItem extends LitElement {
|
|
|
96
96
|
* declaration stays what it is.
|
|
97
97
|
*/
|
|
98
98
|
menuVariant: 'menu' | 'listbox' | null;
|
|
99
|
+
/** Whether this item keeps the check-mark column free without being
|
|
100
|
+
* checkable, because another item in its menu is. Set by that nldd-menu.
|
|
101
|
+
* Not part of the public API. */
|
|
102
|
+
checkColumn: boolean;
|
|
99
103
|
/** Tracks whether this item's submenu (if any) is currently open. Set by
|
|
100
104
|
* the parent nldd-menu via the `submenu-open`/`submenu-close` lifecycle. */
|
|
101
105
|
_submenuOpen: boolean;
|
|
@@ -110,6 +114,7 @@ export declare class NLDDMenuItem extends LitElement {
|
|
|
110
114
|
get _submenuEl(): NLDDMenu | null;
|
|
111
115
|
get _hasSubmenu(): boolean;
|
|
112
116
|
willUpdate(): void;
|
|
117
|
+
updated(changedProperties: Map<string, unknown>): void;
|
|
113
118
|
firstUpdated(): void;
|
|
114
119
|
disconnectedCallback(): void;
|
|
115
120
|
_handleClick(event?: Event): void;
|
|
@@ -129,12 +134,12 @@ export declare class NLDDMenuItem extends LitElement {
|
|
|
129
134
|
*
|
|
130
135
|
* @element nldd-menu
|
|
131
136
|
*
|
|
137
|
+
* @attr {string} width - Explicit width, pinned exactly. Without it the menu sizes to its content between a minimum and a viewport-aware maximum (min(100vw - inset, 640px)).
|
|
132
138
|
* @attr {string} anchor - ID of the anchor element. Positions the menu against it AND makes it a toggle: the menu listens on document click and opens/closes itself when the click lands on the anchor. Use this for a menu hung off a button. For a menu you open yourself (a type-ahead under a text field, say), set the `anchorElement` property instead — same positioning, no toggle.
|
|
133
139
|
* @attr {string} placement - Floating UI placement. Default: 'bottom-start'.
|
|
140
|
+
* @attr {number} max-items - Maximum number of visible items before scrolling. Sets --_max-items internally. Default: 0 (no limit).
|
|
134
141
|
* @attr {string} empty-text - Text of the default empty-state dialog. Falls back to Dutch i18n "Geen opties beschikbaar".
|
|
135
142
|
* @attr {string} empty-supporting-text - Supporting text of the default empty-state dialog.
|
|
136
|
-
* @attr {string} width - Explicit width, pinned exactly. Without it the menu sizes to its content between a minimum and a viewport-aware maximum (min(100vw - inset, 640px)).
|
|
137
|
-
* @attr {number} max-items - Maximum number of visible items before scrolling. Sets --_max-items internally. Default: 0 (no limit).
|
|
138
143
|
* @attr {object} translations - Override one or more translation keys.
|
|
139
144
|
* @attr {Function} filterFn - Custom filter function (query, item) => boolean.
|
|
140
145
|
*
|
|
@@ -145,40 +150,45 @@ export declare class NLDDMenuItem extends LitElement {
|
|
|
145
150
|
*/
|
|
146
151
|
export declare class NLDDMenu extends LitElement {
|
|
147
152
|
static styles: import("lit").CSSResult;
|
|
148
|
-
anchor: string;
|
|
149
|
-
/**
|
|
150
|
-
* The anchor as an element reference. Positions the menu exactly like the
|
|
151
|
-
* `anchor` attribute, but does NOT turn the anchor into a toggle — clicking
|
|
152
|
-
* it does not open the menu. Use this whenever you drive open/close yourself
|
|
153
|
-
* (`showPopover()` / `hidePopover()`), which is what nldd-combo-box and
|
|
154
|
-
* nldd-token-field do: their input must stay an input, not a menu button.
|
|
155
|
-
*/
|
|
156
|
-
anchorElement: Element | null;
|
|
157
|
-
placement: string;
|
|
158
153
|
/**
|
|
159
154
|
* Render variant. Use 'listbox' when the menu serves as a combobox popup —
|
|
160
155
|
* this switches role to "listbox" and item roles to "option" per ARIA spec.
|
|
161
156
|
* Default: 'menu'.
|
|
162
157
|
*/
|
|
163
158
|
variant: 'menu' | 'listbox';
|
|
164
|
-
emptyText: string;
|
|
165
|
-
emptySupportingText: string;
|
|
166
159
|
/**
|
|
167
160
|
* Explicit width, pinned exactly (sets --_width and clamps min/max to it).
|
|
168
161
|
* Leave unset to let the menu size to its content between a minimum and a
|
|
169
162
|
* viewport-aware maximum of min(100vw - inset, 640px).
|
|
170
163
|
*/
|
|
171
164
|
width: string;
|
|
165
|
+
anchor: string;
|
|
166
|
+
/**
|
|
167
|
+
* The anchor as an element reference. Positions the menu exactly like the
|
|
168
|
+
* `anchor` attribute, but does NOT turn the anchor into a toggle — clicking
|
|
169
|
+
* it does not open the menu. Use this whenever you drive open/close yourself
|
|
170
|
+
* (`showPopover()` / `hidePopover()`), which is what nldd-combo-box and
|
|
171
|
+
* nldd-token-field do: their input must stay an input, not a menu button.
|
|
172
|
+
*/
|
|
173
|
+
anchorElement: Element | null;
|
|
174
|
+
placement: string;
|
|
172
175
|
/**
|
|
173
176
|
* Maximum number of visible items before the menu scrolls.
|
|
174
177
|
* Sets --_max-items internally. Default: 0 (no limit).
|
|
175
178
|
*/
|
|
176
179
|
maxItems: number;
|
|
180
|
+
emptyText: string;
|
|
181
|
+
emptySupportingText: string;
|
|
177
182
|
/**
|
|
178
183
|
* Override one or more translation keys.
|
|
179
184
|
* Unset keys fall back to the Dutch default.
|
|
180
185
|
*/
|
|
181
186
|
translations: Partial<NLDDMenuTranslations>;
|
|
187
|
+
/**
|
|
188
|
+
* Custom filter function. Defaults to case-insensitive substring match
|
|
189
|
+
* on text, value, and aliases attributes.
|
|
190
|
+
*/
|
|
191
|
+
filterFn: (query: string, item: NLDDMenuItem) => boolean;
|
|
182
192
|
/**
|
|
183
193
|
* @internal — development only.
|
|
184
194
|
*
|
|
@@ -189,11 +199,6 @@ export declare class NLDDMenu extends LitElement {
|
|
|
189
199
|
* as a development aid.
|
|
190
200
|
*/
|
|
191
201
|
debugSafeTriangle: boolean;
|
|
192
|
-
/**
|
|
193
|
-
* Custom filter function. Defaults to case-insensitive substring match
|
|
194
|
-
* on text, value, and aliases attributes.
|
|
195
|
-
*/
|
|
196
|
-
filterFn: (query: string, item: NLDDMenuItem) => boolean;
|
|
197
202
|
private _isEmpty;
|
|
198
203
|
/** Whether the `header` / `footer` slots have meaningful content, driving
|
|
199
204
|
* whether their (root-only) region renders. Set from slotchange + an initial
|
|
@@ -584,8 +589,14 @@ export declare class NLDDMenu extends LitElement {
|
|
|
584
589
|
* remainder (predictive completion — the ARIA APG pattern for combobox).
|
|
585
590
|
*
|
|
586
591
|
* When the query is empty, all items are shown and `query` is cleared.
|
|
592
|
+
*
|
|
593
|
+
* With `hide: false` nothing is hidden and every item gets the `query`, for
|
|
594
|
+
* a list someone else already filtered, such as a server answering per
|
|
595
|
+
* keystroke. Text without the query in it is shown as it is.
|
|
587
596
|
*/
|
|
588
|
-
filter(query: string
|
|
597
|
+
filter(query: string, { hide }?: {
|
|
598
|
+
hide?: boolean;
|
|
599
|
+
}): void;
|
|
589
600
|
/**
|
|
590
601
|
* Hide each nldd-menu-group whose items are all filtered out — a labeled
|
|
591
602
|
* heading above an empty section reads as broken. Runs after filter() has
|
|
@@ -642,6 +653,10 @@ export declare class NLDDMenu extends LitElement {
|
|
|
642
653
|
* Items nested in an `nldd-menu-group` are reached by the query but not by
|
|
643
654
|
* that slotchange, since they are assigned to the group's slot. They are
|
|
644
655
|
* claimed on the next open.
|
|
656
|
+
*
|
|
657
|
+
* The same pass gives the menu's own items one check-mark column when any of
|
|
658
|
+
* them is a checkbox or radio, so the text of every group starts at the same
|
|
659
|
+
* place. A submenu's items are its own and are left to it.
|
|
645
660
|
*/
|
|
646
661
|
_claimItems: () => void;
|
|
647
662
|
private _handleBeforeToggle;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"menu.d.ts","sourceRoot":"","sources":["../../../../src/components/actions/menu/menu.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,KAAK,CAAC;AAOjC,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,gBAAgB,CAAC;AAC3D,OAAO,KAAK,EAAE,aAAa,EAAE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AgB,IAAI,MAAM;IAIjC;sEACkE;IAClE,OAAO,CAAC,MAAM;IAKd,oEAAoE;IACvD,UAAU,IAAI,OAAO,CAAC,IAAI,CAAC;IAmDxC,OAAO,CAAC,cAAc,CA0FpB;IAEF,OAAO,CAAC,gBAAgB,CAAM;IAC9B,OAAO,CAAC,eAAe,CAAuB;IAC9C;;;uBAGmB;IACnB,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAC,mBAAmB,CAAO;IAElD;;;;;;;;;;OAUG;IACH,OAAO,CAAC,gBAAgB;IAgCxB;;;;;;;;;;;;;;;;OAgBG;IACI,WAAW,QAAO,IAAI,CAU3B;IAEF,OAAO,CAAC,mBAAmB,CAEzB;IAEF,OAAO,CAAC,aAAa,CAwDnB;IAEO,MAAM;CAGf;AAMD,OAAO,CAAC,MAAM,CAAC;IACd,UAAU,qBAAqB;QAC9B,WAAW,EAAE,QAAQ,CAAC;QACtB,gBAAgB,EAAE,YAAY,CAAC;QAC/B,mBAAmB,EAAE,eAAe,CAAC;QACrC,iBAAiB,EAAE,aAAa,CAAC;KACjC;CACD"}
|
|
@@ -19,6 +19,7 @@ import '../../content/keyboard-shortcut/keyboard-shortcut.js';
|
|
|
19
19
|
import '../../status-and-feedback/inline-dialog/inline-dialog.js';
|
|
20
20
|
import { isKeyboardMode, isTouchMode } from '../../../utilities/input-modality.js';
|
|
21
21
|
import { breakpoints } from '../../../assets/styles/breakpoints.js';
|
|
22
|
+
import { translate } from '../../../utilities/translations.js';
|
|
22
23
|
// # nldd-menu-divider
|
|
23
24
|
/**
|
|
24
25
|
* A horizontal rule between groups of items in an `nldd-menu`.
|
|
@@ -86,18 +87,18 @@ if (!customElements.get('nldd-menu-group')) {
|
|
|
86
87
|
*
|
|
87
88
|
* @element nldd-menu-item
|
|
88
89
|
*
|
|
90
|
+
* @attr {boolean} destructive - Marks the item as destructive (red text; red highlight bg). Use for irreversible actions like "Delete". Color is the only built-in signal, so per WCAG 1.4.1 the item's own label must convey the destructive nature (e.g. "Verwijder") — don't rely on the red alone. Confirming the action (e.g. a follow-up dialog) is the consumer's responsibility.
|
|
89
91
|
* @attr {string} text - Display text. Supports **bold** markdown syntax.
|
|
90
|
-
* @attr {string} value - A value of the item's own, read off the item in a `select` handler. The default filter matches on it as well as on `text` and `aliases`. Not a form value: this component is not form-associated.
|
|
91
|
-
* @attr {string} href - Optional link target. A plain button item with an href renders as an `<a>` so it is a real link (middle-click, open in new tab, copy link). Ignored for submenu openers, checkbox/radio items, and while disabled.
|
|
92
|
-
* @attr {string} aliases - Space-separated alternative search terms.
|
|
93
92
|
* @attr {string} details - Secondary label shown on the right side.
|
|
93
|
+
* @attr {string} icon - Icon name rendered before the text.
|
|
94
94
|
* @attr {string} shortcut - Keyboard shortcut hint shown on the right, e.g. 'Cmd+E'. Display only (rendered via nldd-keyboard-shortcut) — it does not bind the key; wire up the handling in your app. Hidden on touch-only devices, where it isn't invokable.
|
|
95
95
|
* @attr {string} shortcut-mac / shortcut-windows / shortcut-linux - Per-OS overrides for `shortcut`, picked by detected OS (falls back to `shortcut`).
|
|
96
|
-
* @attr {string}
|
|
97
|
-
* @attr {string} type - Item type: 'button' | 'checkbox' | 'radio'. Default: 'button'.
|
|
96
|
+
* @attr {string} href - Optional link target. A plain button item with an href renders as an `<a>` so it is a real link (middle-click, open in new tab, copy link). Ignored for submenu openers, checkbox/radio items, and while disabled.
|
|
97
|
+
* @attr {string} type - Item type: 'button' | 'checkbox' | 'radio'. Default: 'button'. One checkbox or radio item gives every item in its menu the check-mark column, so the text of the whole menu starts at one line, as in a native menu. Submenus decide for themselves.
|
|
98
98
|
* @attr {boolean} selected - Selected state for checkbox and radio types.
|
|
99
|
-
* @attr {boolean} destructive - Marks the item as destructive (red text; red highlight bg). Use for irreversible actions like "Delete". Color is the only built-in signal, so per WCAG 1.4.1 the item's own label must convey the destructive nature (e.g. "Verwijder") — don't rely on the red alone. Confirming the action (e.g. a follow-up dialog) is the consumer's responsibility.
|
|
100
99
|
* @attr {boolean} disabled - Disabled state.
|
|
100
|
+
* @attr {string} value - A value of the item's own, read off the item in a `select` handler. The default filter matches on it as well as on `text` and `aliases`. Not a form value: this component is not form-associated.
|
|
101
|
+
* @attr {string} aliases - Space-separated alternative search terms.
|
|
101
102
|
* @attr {string} query - Query substring to bold-highlight in text. Set by menu's filter(); also settable by consumers.
|
|
102
103
|
* @attr {string} query-mark-mode - 'match' | 'predictive' (default: 'predictive'). See text-cell for details.
|
|
103
104
|
*
|
|
@@ -106,20 +107,20 @@ if (!customElements.get('nldd-menu-group')) {
|
|
|
106
107
|
export class NLDDMenuItem extends LitElement {
|
|
107
108
|
constructor() {
|
|
108
109
|
super(...arguments);
|
|
110
|
+
this.destructive = false;
|
|
109
111
|
this.text = '';
|
|
110
|
-
this.value = '';
|
|
111
|
-
this.href = '';
|
|
112
|
-
this.aliases = '';
|
|
113
112
|
this.details = '';
|
|
113
|
+
this.icon = '';
|
|
114
114
|
this.shortcut = '';
|
|
115
115
|
this.shortcutMac = '';
|
|
116
116
|
this.shortcutWindows = '';
|
|
117
117
|
this.shortcutLinux = '';
|
|
118
|
-
this.
|
|
118
|
+
this.href = '';
|
|
119
119
|
this.type = 'button';
|
|
120
120
|
this.selected = false;
|
|
121
|
-
this.destructive = false;
|
|
122
121
|
this.disabled = false;
|
|
122
|
+
this.value = '';
|
|
123
|
+
this.aliases = '';
|
|
123
124
|
this.query = '';
|
|
124
125
|
this.queryMarkMode = 'predictive';
|
|
125
126
|
/**
|
|
@@ -133,6 +134,10 @@ export class NLDDMenuItem extends LitElement {
|
|
|
133
134
|
* declaration stays what it is.
|
|
134
135
|
*/
|
|
135
136
|
this.menuVariant = null;
|
|
137
|
+
/** Whether this item keeps the check-mark column free without being
|
|
138
|
+
* checkable, because another item in its menu is. Set by that nldd-menu.
|
|
139
|
+
* Not part of the public API. */
|
|
140
|
+
this.checkColumn = false;
|
|
136
141
|
/** Tracks whether this item's submenu (if any) is currently open. Set by
|
|
137
142
|
* the parent nldd-menu via the `submenu-open`/`submenu-close` lifecycle. */
|
|
138
143
|
this._submenuOpen = false;
|
|
@@ -191,6 +196,13 @@ export class NLDDMenuItem extends LitElement {
|
|
|
191
196
|
// for a second render from inside the first.
|
|
192
197
|
this._cachedSubmenuEl = this.querySelector(':scope > nldd-menu');
|
|
193
198
|
}
|
|
199
|
+
updated(changedProperties) {
|
|
200
|
+
// An item that becomes checkable, or stops being so, changes whether its
|
|
201
|
+
// menu reserves the check-mark column, also while the menu is open.
|
|
202
|
+
if (changedProperties.has('type') && changedProperties.get('type') !== undefined && this.menuVariant) {
|
|
203
|
+
this.closest('nldd-menu')?._claimItems();
|
|
204
|
+
}
|
|
205
|
+
}
|
|
194
206
|
firstUpdated() {
|
|
195
207
|
// Submenu attachment is one-shot in v1 — a nldd-menu added after this
|
|
196
208
|
// point would silently miss aria-controls, the chevron indicator, the
|
|
@@ -265,20 +277,17 @@ export class NLDDMenuItem extends LitElement {
|
|
|
265
277
|
NLDDMenuItem.styles = menuItemStyles;
|
|
266
278
|
NLDDMenuItem._idCounter = 0;
|
|
267
279
|
__decorate([
|
|
268
|
-
property({
|
|
269
|
-
], NLDDMenuItem.prototype, "
|
|
270
|
-
__decorate([
|
|
271
|
-
property({ type: String, reflect: true })
|
|
272
|
-
], NLDDMenuItem.prototype, "value", void 0);
|
|
273
|
-
__decorate([
|
|
274
|
-
property({ type: String, reflect: true })
|
|
275
|
-
], NLDDMenuItem.prototype, "href", void 0);
|
|
280
|
+
property({ type: Boolean, reflect: true })
|
|
281
|
+
], NLDDMenuItem.prototype, "destructive", void 0);
|
|
276
282
|
__decorate([
|
|
277
283
|
property({ reflect: true, converter: reflectNonDefault('') })
|
|
278
|
-
], NLDDMenuItem.prototype, "
|
|
284
|
+
], NLDDMenuItem.prototype, "text", void 0);
|
|
279
285
|
__decorate([
|
|
280
286
|
property({ reflect: true, converter: reflectNonDefault('') })
|
|
281
287
|
], NLDDMenuItem.prototype, "details", void 0);
|
|
288
|
+
__decorate([
|
|
289
|
+
property({ type: String, reflect: true })
|
|
290
|
+
], NLDDMenuItem.prototype, "icon", void 0);
|
|
282
291
|
__decorate([
|
|
283
292
|
property({ reflect: true, converter: reflectNonDefault('') })
|
|
284
293
|
], NLDDMenuItem.prototype, "shortcut", void 0);
|
|
@@ -293,19 +302,22 @@ __decorate([
|
|
|
293
302
|
], NLDDMenuItem.prototype, "shortcutLinux", void 0);
|
|
294
303
|
__decorate([
|
|
295
304
|
property({ type: String, reflect: true })
|
|
296
|
-
], NLDDMenuItem.prototype, "
|
|
305
|
+
], NLDDMenuItem.prototype, "href", void 0);
|
|
297
306
|
__decorate([
|
|
298
307
|
property({ type: String, reflect: true })
|
|
299
308
|
], NLDDMenuItem.prototype, "type", void 0);
|
|
300
309
|
__decorate([
|
|
301
310
|
property({ type: Boolean, reflect: true })
|
|
302
311
|
], NLDDMenuItem.prototype, "selected", void 0);
|
|
303
|
-
__decorate([
|
|
304
|
-
property({ type: Boolean, reflect: true })
|
|
305
|
-
], NLDDMenuItem.prototype, "destructive", void 0);
|
|
306
312
|
__decorate([
|
|
307
313
|
property({ type: Boolean, reflect: true })
|
|
308
314
|
], NLDDMenuItem.prototype, "disabled", void 0);
|
|
315
|
+
__decorate([
|
|
316
|
+
property({ type: String, reflect: true })
|
|
317
|
+
], NLDDMenuItem.prototype, "value", void 0);
|
|
318
|
+
__decorate([
|
|
319
|
+
property({ reflect: true, converter: reflectNonDefault('') })
|
|
320
|
+
], NLDDMenuItem.prototype, "aliases", void 0);
|
|
309
321
|
__decorate([
|
|
310
322
|
property({ reflect: true, converter: reflectNonDefault('') })
|
|
311
323
|
], NLDDMenuItem.prototype, "query", void 0);
|
|
@@ -315,6 +327,9 @@ __decorate([
|
|
|
315
327
|
__decorate([
|
|
316
328
|
state()
|
|
317
329
|
], NLDDMenuItem.prototype, "menuVariant", void 0);
|
|
330
|
+
__decorate([
|
|
331
|
+
state()
|
|
332
|
+
], NLDDMenuItem.prototype, "checkColumn", void 0);
|
|
318
333
|
__decorate([
|
|
319
334
|
state()
|
|
320
335
|
], NLDDMenuItem.prototype, "_submenuOpen", void 0);
|
|
@@ -341,12 +356,12 @@ const defaultFilterFn = (query, item) => {
|
|
|
341
356
|
*
|
|
342
357
|
* @element nldd-menu
|
|
343
358
|
*
|
|
359
|
+
* @attr {string} width - Explicit width, pinned exactly. Without it the menu sizes to its content between a minimum and a viewport-aware maximum (min(100vw - inset, 640px)).
|
|
344
360
|
* @attr {string} anchor - ID of the anchor element. Positions the menu against it AND makes it a toggle: the menu listens on document click and opens/closes itself when the click lands on the anchor. Use this for a menu hung off a button. For a menu you open yourself (a type-ahead under a text field, say), set the `anchorElement` property instead — same positioning, no toggle.
|
|
345
361
|
* @attr {string} placement - Floating UI placement. Default: 'bottom-start'.
|
|
362
|
+
* @attr {number} max-items - Maximum number of visible items before scrolling. Sets --_max-items internally. Default: 0 (no limit).
|
|
346
363
|
* @attr {string} empty-text - Text of the default empty-state dialog. Falls back to Dutch i18n "Geen opties beschikbaar".
|
|
347
364
|
* @attr {string} empty-supporting-text - Supporting text of the default empty-state dialog.
|
|
348
|
-
* @attr {string} width - Explicit width, pinned exactly. Without it the menu sizes to its content between a minimum and a viewport-aware maximum (min(100vw - inset, 640px)).
|
|
349
|
-
* @attr {number} max-items - Maximum number of visible items before scrolling. Sets --_max-items internally. Default: 0 (no limit).
|
|
350
365
|
* @attr {object} translations - Override one or more translation keys.
|
|
351
366
|
* @attr {Function} filterFn - Custom filter function (query, item) => boolean.
|
|
352
367
|
*
|
|
@@ -358,40 +373,45 @@ const defaultFilterFn = (query, item) => {
|
|
|
358
373
|
export class NLDDMenu extends LitElement {
|
|
359
374
|
constructor() {
|
|
360
375
|
super(...arguments);
|
|
361
|
-
this.anchor = '';
|
|
362
|
-
/**
|
|
363
|
-
* The anchor as an element reference. Positions the menu exactly like the
|
|
364
|
-
* `anchor` attribute, but does NOT turn the anchor into a toggle — clicking
|
|
365
|
-
* it does not open the menu. Use this whenever you drive open/close yourself
|
|
366
|
-
* (`showPopover()` / `hidePopover()`), which is what nldd-combo-box and
|
|
367
|
-
* nldd-token-field do: their input must stay an input, not a menu button.
|
|
368
|
-
*/
|
|
369
|
-
this.anchorElement = null;
|
|
370
|
-
this.placement = 'bottom-start';
|
|
371
376
|
/**
|
|
372
377
|
* Render variant. Use 'listbox' when the menu serves as a combobox popup —
|
|
373
378
|
* this switches role to "listbox" and item roles to "option" per ARIA spec.
|
|
374
379
|
* Default: 'menu'.
|
|
375
380
|
*/
|
|
376
381
|
this.variant = 'menu';
|
|
377
|
-
this.emptyText = '';
|
|
378
|
-
this.emptySupportingText = '';
|
|
379
382
|
/**
|
|
380
383
|
* Explicit width, pinned exactly (sets --_width and clamps min/max to it).
|
|
381
384
|
* Leave unset to let the menu size to its content between a minimum and a
|
|
382
385
|
* viewport-aware maximum of min(100vw - inset, 640px).
|
|
383
386
|
*/
|
|
384
387
|
this.width = '';
|
|
388
|
+
this.anchor = '';
|
|
389
|
+
/**
|
|
390
|
+
* The anchor as an element reference. Positions the menu exactly like the
|
|
391
|
+
* `anchor` attribute, but does NOT turn the anchor into a toggle — clicking
|
|
392
|
+
* it does not open the menu. Use this whenever you drive open/close yourself
|
|
393
|
+
* (`showPopover()` / `hidePopover()`), which is what nldd-combo-box and
|
|
394
|
+
* nldd-token-field do: their input must stay an input, not a menu button.
|
|
395
|
+
*/
|
|
396
|
+
this.anchorElement = null;
|
|
397
|
+
this.placement = 'bottom-start';
|
|
385
398
|
/**
|
|
386
399
|
* Maximum number of visible items before the menu scrolls.
|
|
387
400
|
* Sets --_max-items internally. Default: 0 (no limit).
|
|
388
401
|
*/
|
|
389
402
|
this.maxItems = 0;
|
|
403
|
+
this.emptyText = '';
|
|
404
|
+
this.emptySupportingText = '';
|
|
390
405
|
/**
|
|
391
406
|
* Override one or more translation keys.
|
|
392
407
|
* Unset keys fall back to the Dutch default.
|
|
393
408
|
*/
|
|
394
409
|
this.translations = {};
|
|
410
|
+
/**
|
|
411
|
+
* Custom filter function. Defaults to case-insensitive substring match
|
|
412
|
+
* on text, value, and aliases attributes.
|
|
413
|
+
*/
|
|
414
|
+
this.filterFn = defaultFilterFn;
|
|
395
415
|
/**
|
|
396
416
|
* @internal — development only.
|
|
397
417
|
*
|
|
@@ -402,11 +422,6 @@ export class NLDDMenu extends LitElement {
|
|
|
402
422
|
* as a development aid.
|
|
403
423
|
*/
|
|
404
424
|
this.debugSafeTriangle = false;
|
|
405
|
-
/**
|
|
406
|
-
* Custom filter function. Defaults to case-insensitive substring match
|
|
407
|
-
* on text, value, and aliases attributes.
|
|
408
|
-
*/
|
|
409
|
-
this.filterFn = defaultFilterFn;
|
|
410
425
|
this._isEmpty = false;
|
|
411
426
|
/** Whether the `header` / `footer` slots have meaningful content, driving
|
|
412
427
|
* whether their (root-only) region renders. Set from slotchange + an initial
|
|
@@ -1137,11 +1152,21 @@ export class NLDDMenu extends LitElement {
|
|
|
1137
1152
|
* Items nested in an `nldd-menu-group` are reached by the query but not by
|
|
1138
1153
|
* that slotchange, since they are assigned to the group's slot. They are
|
|
1139
1154
|
* claimed on the next open.
|
|
1155
|
+
*
|
|
1156
|
+
* The same pass gives the menu's own items one check-mark column when any of
|
|
1157
|
+
* them is a checkbox or radio, so the text of every group starts at the same
|
|
1158
|
+
* place. A submenu's items are its own and are left to it.
|
|
1140
1159
|
*/
|
|
1141
1160
|
this._claimItems = () => {
|
|
1142
|
-
Array.from(this.querySelectorAll('nldd-menu-item'))
|
|
1161
|
+
const items = Array.from(this.querySelectorAll('nldd-menu-item'));
|
|
1162
|
+
items.forEach(item => {
|
|
1143
1163
|
item.menuVariant = this.variant;
|
|
1144
1164
|
});
|
|
1165
|
+
const own = items.filter(item => item.closest('nldd-menu') === this);
|
|
1166
|
+
const checkColumn = this.variant === 'menu' && own.some(item => item.type !== 'button');
|
|
1167
|
+
own.forEach(item => {
|
|
1168
|
+
item.checkColumn = checkColumn;
|
|
1169
|
+
});
|
|
1145
1170
|
};
|
|
1146
1171
|
this._handleBeforeToggle = (event) => {
|
|
1147
1172
|
if (event.newState === 'open')
|
|
@@ -1203,13 +1228,7 @@ export class NLDDMenu extends LitElement {
|
|
|
1203
1228
|
}
|
|
1204
1229
|
// — i18n ——————————————————————————————————————————————————————————————————
|
|
1205
1230
|
_t(key, vars) {
|
|
1206
|
-
|
|
1207
|
-
if (vars) {
|
|
1208
|
-
for (const [k, v] of Object.entries(vars)) {
|
|
1209
|
-
str = str.replace(`{${k}}`, String(v));
|
|
1210
|
-
}
|
|
1211
|
-
}
|
|
1212
|
-
return str;
|
|
1231
|
+
return translate(this.translations, nlddMenuTranslations, key, vars);
|
|
1213
1232
|
}
|
|
1214
1233
|
/** Resolved empty text: emptyText attribute takes precedence, then i18n fallback. */
|
|
1215
1234
|
get _resolvedEmptyText() {
|
|
@@ -1910,11 +1929,15 @@ export class NLDDMenu extends LitElement {
|
|
|
1910
1929
|
* remainder (predictive completion — the ARIA APG pattern for combobox).
|
|
1911
1930
|
*
|
|
1912
1931
|
* When the query is empty, all items are shown and `query` is cleared.
|
|
1932
|
+
*
|
|
1933
|
+
* With `hide: false` nothing is hidden and every item gets the `query`, for
|
|
1934
|
+
* a list someone else already filtered, such as a server answering per
|
|
1935
|
+
* keystroke. Text without the query in it is shown as it is.
|
|
1913
1936
|
*/
|
|
1914
|
-
filter(query) {
|
|
1937
|
+
filter(query, { hide = true } = {}) {
|
|
1915
1938
|
const allItems = Array.from(this.querySelectorAll('nldd-menu-item'));
|
|
1916
1939
|
allItems.forEach(item => {
|
|
1917
|
-
const matches = !query || this.filterFn(query, item);
|
|
1940
|
+
const matches = !hide || !query || this.filterFn(query, item);
|
|
1918
1941
|
item.toggleAttribute('hidden', !matches);
|
|
1919
1942
|
item.query = (matches && query) ? query : '';
|
|
1920
1943
|
});
|
|
@@ -2132,6 +2155,12 @@ NLDDMenu._menuIdCounter = 0;
|
|
|
2132
2155
|
* comfortably, short enough that an unrelated later keystroke starts a
|
|
2133
2156
|
* fresh search. */
|
|
2134
2157
|
NLDDMenu._TYPEAHEAD_RESET_MS = 500;
|
|
2158
|
+
__decorate([
|
|
2159
|
+
property({ reflect: true, converter: reflectNonDefault('menu') })
|
|
2160
|
+
], NLDDMenu.prototype, "variant", void 0);
|
|
2161
|
+
__decorate([
|
|
2162
|
+
property({ type: String, reflect: true })
|
|
2163
|
+
], NLDDMenu.prototype, "width", void 0);
|
|
2135
2164
|
__decorate([
|
|
2136
2165
|
property({ type: String, reflect: true })
|
|
2137
2166
|
], NLDDMenu.prototype, "anchor", void 0);
|
|
@@ -2142,29 +2171,23 @@ __decorate([
|
|
|
2142
2171
|
property({ reflect: true, converter: reflectNonDefault('bottom-start') })
|
|
2143
2172
|
], NLDDMenu.prototype, "placement", void 0);
|
|
2144
2173
|
__decorate([
|
|
2145
|
-
property({
|
|
2146
|
-
], NLDDMenu.prototype, "
|
|
2174
|
+
property({ type: Number, attribute: 'max-items' })
|
|
2175
|
+
], NLDDMenu.prototype, "maxItems", void 0);
|
|
2147
2176
|
__decorate([
|
|
2148
2177
|
property({ reflect: true, attribute: 'empty-text', converter: reflectNonDefault('') })
|
|
2149
2178
|
], NLDDMenu.prototype, "emptyText", void 0);
|
|
2150
2179
|
__decorate([
|
|
2151
2180
|
property({ reflect: true, attribute: 'empty-supporting-text', converter: reflectNonDefault('') })
|
|
2152
2181
|
], NLDDMenu.prototype, "emptySupportingText", void 0);
|
|
2153
|
-
__decorate([
|
|
2154
|
-
property({ type: String, reflect: true })
|
|
2155
|
-
], NLDDMenu.prototype, "width", void 0);
|
|
2156
|
-
__decorate([
|
|
2157
|
-
property({ type: Number, attribute: 'max-items' })
|
|
2158
|
-
], NLDDMenu.prototype, "maxItems", void 0);
|
|
2159
2182
|
__decorate([
|
|
2160
2183
|
property({ type: Object })
|
|
2161
2184
|
], NLDDMenu.prototype, "translations", void 0);
|
|
2162
|
-
__decorate([
|
|
2163
|
-
property({ type: Boolean, reflect: true, attribute: 'debug-safe-triangle' })
|
|
2164
|
-
], NLDDMenu.prototype, "debugSafeTriangle", void 0);
|
|
2165
2185
|
__decorate([
|
|
2166
2186
|
property({ attribute: false })
|
|
2167
2187
|
], NLDDMenu.prototype, "filterFn", void 0);
|
|
2188
|
+
__decorate([
|
|
2189
|
+
property({ type: Boolean, reflect: true, attribute: 'debug-safe-triangle' })
|
|
2190
|
+
], NLDDMenu.prototype, "debugSafeTriangle", void 0);
|
|
2168
2191
|
__decorate([
|
|
2169
2192
|
state()
|
|
2170
2193
|
], NLDDMenu.prototype, "_isEmpty", void 0);
|