@nldd/design-system 0.13.2 → 0.14.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/README.md +4 -2
- package/custom-elements.json +1425 -136
- package/dist/components/actions/button/button.d.ts +0 -2
- package/dist/components/actions/button/button.d.ts.map +1 -1
- package/dist/components/actions/button/button.js +17 -33
- package/dist/components/actions/button/button.js.map +1 -1
- package/dist/components/actions/button/button.template.js +2 -2
- 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.map +1 -1
- package/dist/components/actions/button-group/button-group.js +9 -10
- package/dist/components/actions/button-group/button-group.js.map +1 -1
- package/dist/components/actions/icon-button/icon-button.d.ts +0 -1
- package/dist/components/actions/icon-button/icon-button.d.ts.map +1 -1
- package/dist/components/actions/icon-button/icon-button.js +4 -11
- package/dist/components/actions/icon-button/icon-button.js.map +1 -1
- package/dist/components/actions/icon-button/icon-button.template.js +2 -2
- 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 +4 -7
- package/dist/components/actions/menu/menu-item.js.map +1 -1
- package/dist/components/actions/menu/menu.d.ts +1 -4
- package/dist/components/actions/menu/menu.d.ts.map +1 -1
- package/dist/components/actions/menu/menu.js +3 -17
- 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 +352 -706
- 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 +13 -11
- package/dist/components/content/code-viewer/code-viewer.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.map +1 -1
- package/dist/components/content/rich-text/rich-text.js +2 -1
- 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 +1 -5
- package/dist/components/content/title/title.d.ts.map +1 -1
- package/dist/components/content/title/title.js +15 -27
- package/dist/components/content/title/title.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 +2 -1
- 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-x12uDAK4.js} +9 -1
- package/dist/components/dev-checks-BgrW077W.js +2503 -0
- 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 +1 -2
- package/dist/components/forms/form-field/form-field.d.ts.map +1 -1
- package/dist/components/forms/form-field/form-field.js +10 -26
- package/dist/components/forms/form-field/form-field.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.map +1 -1
- package/dist/components/forms/validation-list/validation-list.js +7 -6
- package/dist/components/forms/validation-list/validation-list.js.map +1 -1
- package/dist/components/{icon-DRpTWSIg.js → icon-IgCyk9ui.js} +17 -4
- package/dist/components/{icon-button-DUEmWlBD.js → icon-button-B5tH4b3c.js} +8 -17
- 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 +2 -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 +2 -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/combo-box/combo-box.d.ts.map +1 -1
- package/dist/components/inputs/combo-box/combo-box.js +4 -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.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.map +1 -1
- package/dist/components/inputs/date-picker/date-picker.js +2 -1
- package/dist/components/inputs/date-picker/date-picker.js.map +1 -1
- package/dist/components/inputs/dropdown/dropdown.d.ts.map +1 -1
- package/dist/components/inputs/dropdown/dropdown.js +5 -4
- package/dist/components/inputs/dropdown/dropdown.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 -1
- package/dist/components/inputs/file-field/file-field.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 +2 -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 +2 -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 +2 -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 +2 -11
- package/dist/components/inputs/segmented-control/segmented-control.js.map +1 -1
- package/dist/components/inputs/slider/slider.d.ts.map +1 -1
- package/dist/components/inputs/slider/slider.js +2 -1
- package/dist/components/inputs/slider/slider.js.map +1 -1
- 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/switch/switch.d.ts.map +1 -1
- package/dist/components/inputs/switch/switch.js +2 -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 +2 -1
- package/dist/components/inputs/switch-field/switch-field.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.js +7 -3
- package/dist/components/inputs/text-editor/text-editor.js.map +1 -1
- package/dist/components/inputs/text-editor/text-editor.mentions.d.ts +2 -0
- package/dist/components/inputs/text-editor/text-editor.mentions.d.ts.map +1 -1
- package/dist/components/inputs/text-editor/text-editor.mentions.js +14 -2
- package/dist/components/inputs/text-editor/text-editor.mentions.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 +6 -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.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 +2 -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 +2 -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 +2 -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.map +1 -1
- package/dist/components/inputs/token-field/token-field.js +2 -1
- package/dist/components/inputs/token-field/token-field.js.map +1 -1
- package/dist/components/just-in-time-education.i18n-BJ5ovWVB.js +370 -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 +0 -2
- package/dist/components/layout/collection/collection.d.ts.map +1 -1
- package/dist/components/layout/collection/collection.js +8 -24
- package/dist/components/layout/collection/collection.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.map +1 -1
- package/dist/components/layout/page-footer/page-footer.js +6 -7
- package/dist/components/layout/page-footer/page-footer.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 +0 -2
- package/dist/components/layout/popover/popover.d.ts.map +1 -1
- package/dist/components/layout/popover/popover.js +6 -25
- 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.map +1 -1
- package/dist/components/layout/task-board/task-board.js +4 -3
- 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-nFB6dZpc.js +13 -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 +2 -1
- 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.map +1 -1
- package/dist/components/lists-and-tables/cells/description-cell/description-cell.js +2 -1
- 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.map +1 -1
- package/dist/components/lists-and-tables/cells/text-cell/text-cell.js +2 -1
- 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.map +1 -1
- package/dist/components/lists-and-tables/cells/title-cell/title-cell.js +2 -1
- 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.js +53 -98
- package/dist/components/lists-and-tables/list/list.js.map +1 -1
- package/dist/components/lists-and-tables/list-item/list-item.d.ts +10 -15
- 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 +40 -87
- 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 +2 -2
- 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 +6 -11
- package/dist/components/lists-and-tables/list-item-segment/list-item-segment.js.map +1 -1
- package/dist/components/lists-and-tables/table/table.d.ts +0 -13
- package/dist/components/lists-and-tables/table/table.d.ts.map +1 -1
- package/dist/components/lists-and-tables/table/table.js +6 -41
- 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.map +1 -1
- package/dist/components/navigation/document-tab-bar/document-tab-bar.js +2 -4
- package/dist/components/navigation/document-tab-bar/document-tab-bar.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.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 +13 -10
- package/dist/components/navigation/menu-bar/menu-bar.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 +2 -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.js +2 -1
- package/dist/components/navigation/pagination/pagination.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 +5 -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.map +1 -1
- package/dist/components/navigation/top-title-bar/top-title-bar.js +7 -6
- package/dist/components/navigation/top-title-bar/top-title-bar.js.map +1 -1
- package/dist/components/nl.generated-Ny3Kwppu.js +61 -0
- 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/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.map +1 -1
- package/dist/components/status-and-feedback/inline-dialog/inline-dialog.js +2 -1
- package/dist/components/status-and-feedback/inline-dialog/inline-dialog.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 +0 -3
- 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 +2 -14
- package/dist/components/status-and-feedback/modal-dialog/modal-dialog.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-DcwzF0_a.js} +1 -7
- package/dist/components/{with-translations-DRuOq3QK.js → with-translations-DLzmBSkU.js} +26 -5
- package/dist/nldd.min.js +775 -775
- package/dist/types/vue.d.ts +76 -6
- 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/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 +2472 -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/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/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 +21 -4
package/dist/types/vue.d.ts
CHANGED
|
@@ -286,6 +286,24 @@ declare module 'vue' {
|
|
|
286
286
|
type NLDDBarSplitViewProps = {
|
|
287
287
|
/** Background color variant (default: inherit) */
|
|
288
288
|
'background'?: NLDDBarSplitView['background'];
|
|
289
|
+
/** Show this panel from this breakpoint and larger */
|
|
290
|
+
'above'?: NLDDBarSplitView['above'];
|
|
291
|
+
/** Show this panel up to and including this breakpoint */
|
|
292
|
+
'below'?: NLDDBarSplitView['below'];
|
|
293
|
+
/** Show this panel only at this breakpoint */
|
|
294
|
+
'only'?: NLDDBarSplitView['only'];
|
|
295
|
+
/** Position of this panel at sm (lower comes first) */
|
|
296
|
+
'sm-order'?: NLDDBarSplitView['smOrder'];
|
|
297
|
+
/** Position of this panel at sm (lower comes first) */
|
|
298
|
+
'smOrder'?: NLDDBarSplitView['smOrder'];
|
|
299
|
+
/** Position of this panel at md (lower comes first) */
|
|
300
|
+
'md-order'?: NLDDBarSplitView['mdOrder'];
|
|
301
|
+
/** Position of this panel at md (lower comes first) */
|
|
302
|
+
'mdOrder'?: NLDDBarSplitView['mdOrder'];
|
|
303
|
+
/** Position of this panel at lg (lower comes first) */
|
|
304
|
+
'lg-order'?: NLDDBarSplitView['lgOrder'];
|
|
305
|
+
/** Position of this panel at lg (lower comes first) */
|
|
306
|
+
'lgOrder'?: NLDDBarSplitView['lgOrder'];
|
|
289
307
|
};
|
|
290
308
|
|
|
291
309
|
type NLDDBlockquoteProps = {
|
|
@@ -405,6 +423,8 @@ declare module 'vue' {
|
|
|
405
423
|
'rel'?: NLDDButton['rel'];
|
|
406
424
|
/** Override translation keys (e.g. the "opens in new tab" announcement); unset keys fall back to Dutch. */
|
|
407
425
|
'translations'?: NLDDButton['translations'];
|
|
426
|
+
/** Id of the form this button submits or resets, for a button that sits outside it. Takes an `nldd-form` as well as a plain `<form>`. Without it the button acts on the form it stands in. The id is looked up in the button's own root, as the platform does it: a button inside a shadow tree does not reach a form in the document around it. An id that finds nothing, or an `nldd-form` that has not rendered its form yet, says so in development rather than letting the click do nothing. */
|
|
427
|
+
'form'?: NLDDButton['form'];
|
|
408
428
|
/** Direct element reference to the popover this button invokes — IDL-only counterpart to `popovertarget` that works across shadow boundaries. Use this when the popover lives in a different tree (e.g. an `nldd-menu` reparented to `<body>`) so the browser still recognizes this button as the popover's invoker and excludes it from the popover light-dismiss algorithm. Set programmatically; not reflected to an HTML attribute (the attribute form is `popovertarget`, ID-based). */
|
|
409
429
|
'popoverTargetElement'?: NLDDButton['popoverTargetElement'];
|
|
410
430
|
/** Action the browser performs when the button is clicked, mirroring the standard `popovertargetaction` attribute. Defaults to `'toggle'`. Use `'show'` when a separate handler owns the close path (e.g. the consumer toggles the popover programmatically) so the browser's default action doesn't double-fire. */
|
|
@@ -616,8 +636,6 @@ declare module 'vue' {
|
|
|
616
636
|
};
|
|
617
637
|
|
|
618
638
|
type NLDDCollectionProps = {
|
|
619
|
-
'item-width'?: NLDDCollection['itemWidth'];
|
|
620
|
-
'itemWidth'?: NLDDCollection['itemWidth'];
|
|
621
639
|
/** Layout mode: 'grid' | 'stack' | 'lanes' | 'horizontal-scroll' (default: 'grid') */
|
|
622
640
|
'layout'?: NLDDCollection['layout'];
|
|
623
641
|
/** Smallest width an item takes (e.g. '280px', '20rem'). In grid and lanes the minimum column width: columns are at least this wide and grow to fill the row. In horizontal scroll the flex-basis: items never shrink below it, and grow up to `item-max-width` when they fit. No effect in stack. Never forces horizontal overflow, the value is clamped to the container width. */
|
|
@@ -887,6 +905,20 @@ declare module 'vue' {
|
|
|
887
905
|
'vertical-alignment'?: NLDDContainer['verticalAlignment'];
|
|
888
906
|
/** 'top' | 'center' | 'bottom' */
|
|
889
907
|
'verticalAlignment'?: NLDDContainer['verticalAlignment'];
|
|
908
|
+
/** Position of this child in the container */
|
|
909
|
+
'order'?: NLDDContainer['order'];
|
|
910
|
+
/** Position of this child at sm */
|
|
911
|
+
'sm-order'?: NLDDContainer['smOrder'];
|
|
912
|
+
/** Position of this child at sm */
|
|
913
|
+
'smOrder'?: NLDDContainer['smOrder'];
|
|
914
|
+
/** Position of this child at md */
|
|
915
|
+
'md-order'?: NLDDContainer['mdOrder'];
|
|
916
|
+
/** Position of this child at md */
|
|
917
|
+
'mdOrder'?: NLDDContainer['mdOrder'];
|
|
918
|
+
/** Position of this child at lg */
|
|
919
|
+
'lg-order'?: NLDDContainer['lgOrder'];
|
|
920
|
+
/** Position of this child at lg */
|
|
921
|
+
'lgOrder'?: NLDDContainer['lgOrder'];
|
|
890
922
|
};
|
|
891
923
|
|
|
892
924
|
type NLDDDateFieldProps = {
|
|
@@ -1128,6 +1160,20 @@ declare module 'vue' {
|
|
|
1128
1160
|
'label-alignment'?: NLDDForm['labelAlignment'];
|
|
1129
1161
|
/** 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. */
|
|
1130
1162
|
'labelAlignment'?: NLDDForm['labelAlignment'];
|
|
1163
|
+
/** Form name */
|
|
1164
|
+
'name'?: NLDDForm['name'];
|
|
1165
|
+
/** 'on' | 'off' (form-level autofill toggle) */
|
|
1166
|
+
'autocomplete'?: NLDDForm['autocomplete'];
|
|
1167
|
+
/** Submit target ('_self' | '_blank' | ...) */
|
|
1168
|
+
'target'?: NLDDForm['target'];
|
|
1169
|
+
/** HTTP method ('get' | 'post' | 'dialog') */
|
|
1170
|
+
'method'?: NLDDForm['method'];
|
|
1171
|
+
/** URL endpoint for submission */
|
|
1172
|
+
'action'?: NLDDForm['action'];
|
|
1173
|
+
/** Encoding type for submission */
|
|
1174
|
+
'enctype'?: NLDDForm['enctype'];
|
|
1175
|
+
/** Skip native browser validation */
|
|
1176
|
+
'novalidate'?: NLDDForm['novalidate'];
|
|
1131
1177
|
/** The inner <form> element. Useful for `form.checkValidity()` etc. */
|
|
1132
1178
|
'form'?: NLDDForm['form'];
|
|
1133
1179
|
'onSubmit'?: (event: CustomEvent) => void;
|
|
@@ -1139,6 +1185,10 @@ declare module 'vue' {
|
|
|
1139
1185
|
'label-alignment'?: NLDDFormActions['labelAlignment'];
|
|
1140
1186
|
/** 'top' (default) | 'right' | 'left'. A value of its own always wins over the inherited form-label-alignment. */
|
|
1141
1187
|
'labelAlignment'?: NLDDFormActions['labelAlignment'];
|
|
1188
|
+
/** Set by a wrapping nldd-form as a fallback. Do not set it yourself in consumer code. */
|
|
1189
|
+
'form-label-alignment'?: NLDDFormActions['formLabelAlignment'];
|
|
1190
|
+
/** Set by a wrapping nldd-form as a fallback. Do not set it yourself in consumer code. */
|
|
1191
|
+
'formLabelAlignment'?: NLDDFormActions['formLabelAlignment'];
|
|
1142
1192
|
};
|
|
1143
1193
|
|
|
1144
1194
|
type NLDDFormFieldProps = {
|
|
@@ -1158,6 +1208,10 @@ declare module 'vue' {
|
|
|
1158
1208
|
'optional-label'?: NLDDFormField['optionalLabel'];
|
|
1159
1209
|
/** Text for the optional badge. Defaults to 'Optioneel'. */
|
|
1160
1210
|
'optionalLabel'?: NLDDFormField['optionalLabel'];
|
|
1211
|
+
/** Set by a wrapping nldd-form as a fallback. Do not set it yourself in consumer code. */
|
|
1212
|
+
'form-label-alignment'?: NLDDFormField['formLabelAlignment'];
|
|
1213
|
+
/** Set by a wrapping nldd-form as a fallback. Do not set it yourself in consumer code. */
|
|
1214
|
+
'formLabelAlignment'?: NLDDFormField['formLabelAlignment'];
|
|
1161
1215
|
};
|
|
1162
1216
|
|
|
1163
1217
|
type NLDDFormFieldHelpTextProps = {
|
|
@@ -1408,6 +1462,8 @@ declare module 'vue' {
|
|
|
1408
1462
|
'hideBelow'?: NLDDIconCell['hideBelow'];
|
|
1409
1463
|
'hide-above'?: NLDDIconCell['hideAbove'];
|
|
1410
1464
|
'hideAbove'?: NLDDIconCell['hideAbove'];
|
|
1465
|
+
/** Marks this icon as the chevron of a row or segment that opens and closes: the row turns it with `expanded`. */
|
|
1466
|
+
'disclosure'?: NLDDIconCell['disclosure'];
|
|
1411
1467
|
};
|
|
1412
1468
|
|
|
1413
1469
|
type NLDDIdentityProps = {
|
|
@@ -1556,6 +1612,10 @@ declare module 'vue' {
|
|
|
1556
1612
|
'always-visible'?: NLDDKeyboardShortcut['alwaysVisible'];
|
|
1557
1613
|
/** Show on touch-only devices too, where shortcuts cannot be invoked. */
|
|
1558
1614
|
'alwaysVisible'?: NLDDKeyboardShortcut['alwaysVisible'];
|
|
1615
|
+
/** Development aid: overrides the OS detection for this instance, so you can show several platform variants side by side in Storybook or documentation. Not meant for production use; leave it empty (default) so the real OS detection applies. */
|
|
1616
|
+
'debug-os'?: NLDDKeyboardShortcut['debugOs'];
|
|
1617
|
+
/** Development aid: overrides the OS detection for this instance, so you can show several platform variants side by side in Storybook or documentation. Not meant for production use; leave it empty (default) so the real OS detection applies. */
|
|
1618
|
+
'debugOs'?: NLDDKeyboardShortcut['debugOs'];
|
|
1559
1619
|
};
|
|
1560
1620
|
|
|
1561
1621
|
type NLDDLinkProps = {
|
|
@@ -1653,6 +1713,11 @@ declare module 'vue' {
|
|
|
1653
1713
|
'currentType'?: NLDDListItem['currentType'];
|
|
1654
1714
|
/** Switches the row's own control off: a `button` or `checkbox` row stops responding and dims, a `href` row gets `aria-disabled` and its click is blocked (a link cannot be disabled natively). A row without a control of its own has nothing to switch off, and segments carry their own `disabled`. The arrow keys skip a disabled row. */
|
|
1655
1715
|
'disabled'?: NLDDListItem['disabled'];
|
|
1716
|
+
'translations'?: NLDDListItem['translations'];
|
|
1717
|
+
/** Show this cell only while the row is `reorderable` */
|
|
1718
|
+
'reorderable-only'?: NLDDListItem['reorderableOnly'];
|
|
1719
|
+
/** Show this cell only while the row is `reorderable` */
|
|
1720
|
+
'reorderableOnly'?: NLDDListItem['reorderableOnly'];
|
|
1656
1721
|
/** The divider starts at this cell instead of at the row's first text or title cell. On the leading cell it restores the full-width line. */
|
|
1657
1722
|
'divider-start'?: NLDDListItem['dividerStart'];
|
|
1658
1723
|
/** The divider starts at this cell instead of at the row's first text or title cell. On the leading cell it restores the full-width line. */
|
|
@@ -1661,7 +1726,6 @@ declare module 'vue' {
|
|
|
1661
1726
|
'divider-end'?: NLDDListItem['dividerEnd'];
|
|
1662
1727
|
/** The divider stops after this cell. With several markers the line runs from the first start to the last end. */
|
|
1663
1728
|
'dividerEnd'?: NLDDListItem['dividerEnd'];
|
|
1664
|
-
'translations'?: NLDDListItem['translations'];
|
|
1665
1729
|
/** Nested rows sit in this item's `children` slot, not the list's, so a plain `querySelector` from the list walks past them. */
|
|
1666
1730
|
'childRows'?: NLDDListItem['childRows'];
|
|
1667
1731
|
/** The branch this row hangs under, or undefined for a top-level row. */
|
|
@@ -1709,6 +1773,7 @@ declare module 'vue' {
|
|
|
1709
1773
|
'currentType'?: NLDDListItemSegment['currentType'];
|
|
1710
1774
|
/** Switches the segment off: a `button` or `checkbox` segment stops responding and dims, a `href` segment gets `aria-disabled` and its click is blocked (a link cannot be disabled natively). The arrow keys skip a row whose only segment is off. */
|
|
1711
1775
|
'disabled'?: NLDDListItemSegment['disabled'];
|
|
1776
|
+
'translations'?: NLDDListItemSegment['translations'];
|
|
1712
1777
|
/** The row's divider starts at this cell instead of at its first text or title cell. */
|
|
1713
1778
|
'divider-start'?: NLDDListItemSegment['dividerStart'];
|
|
1714
1779
|
/** The row's divider starts at this cell instead of at its first text or title cell. */
|
|
@@ -1717,7 +1782,6 @@ declare module 'vue' {
|
|
|
1717
1782
|
'divider-end'?: NLDDListItemSegment['dividerEnd'];
|
|
1718
1783
|
/** The row's divider stops after this cell. */
|
|
1719
1784
|
'dividerEnd'?: NLDDListItemSegment['dividerEnd'];
|
|
1720
|
-
'translations'?: NLDDListItemSegment['translations'];
|
|
1721
1785
|
/** Direct element reference to that popover, for one living in another tree (an nldd-menu reparented to the body). IDL-only, like the counterpart on nldd-icon-button, so the browser still treats this segment's button as the popover's invoker. */
|
|
1722
1786
|
'popoverTargetElement'?: NLDDListItemSegment['popoverTargetElement'];
|
|
1723
1787
|
/** Action the browser performs on click, mirroring popovertargetaction. */
|
|
@@ -1808,6 +1872,8 @@ declare module 'vue' {
|
|
|
1808
1872
|
'haspopup'?: NLDDMenuBarItem['haspopup'];
|
|
1809
1873
|
/** Whether the matching popover is open; sets aria-expanded on the button when expandable or haspopup is set. Tracked automatically for a slotted `<nldd-menu>`. */
|
|
1810
1874
|
'expanded'?: NLDDMenuBarItem['expanded'];
|
|
1875
|
+
/** Whether the linked popover or menu is open */
|
|
1876
|
+
'open'?: NLDDMenuBarItem['open'];
|
|
1811
1877
|
/** Direct element reference to the popover this item invokes — IDL-only counterpart to `popovertarget` that works across shadow boundaries. Set by `nldd-menu` when this item is wired up as the menu's anchor so the browser recognizes the inner button as the menu's invoker and excludes the click from popover light-dismiss. */
|
|
1812
1878
|
'popoverTargetElement'?: NLDDMenuBarItem['popoverTargetElement'];
|
|
1813
1879
|
/** Action the browser performs when the inner button is clicked, mirroring the standard `popovertargetaction` attribute. The menu keeps this in sync with its open state — `'hide'` while open, `'show'` while closed — so the browser's native invoker action always matches the intent of the click without racing. */
|
|
@@ -2290,6 +2356,8 @@ declare module 'vue' {
|
|
|
2290
2356
|
'translations'?: NLDDPopover['translations'];
|
|
2291
2357
|
/** Whether the popover is open. Set it to open or close the popover, as an alternative to show() and hide(); opening needs an anchor, and without one it stays unset. The popover clears it itself when it closes another way (Escape, a click outside), so bind it together with the close event. */
|
|
2292
2358
|
'open'?: NLDDPopover['open'];
|
|
2359
|
+
/** ARIA role (default: 'dialog'). For informational content (a tooltip callout, a rich-text help panel) without a dialog interaction pattern, set `role="region"`. For menu-style triggers, `role="menu"` plus `aria-haspopup="menu"` on the anchor. The popover never overwrites a role that was set explicitly. */
|
|
2360
|
+
'role'?: NLDDPopover['role'];
|
|
2293
2361
|
'anchorElement'?: NLDDPopover['anchorElement'];
|
|
2294
2362
|
/** When the popover opens */
|
|
2295
2363
|
'onOpen'?: (event: CustomEvent) => void;
|
|
@@ -2941,7 +3009,6 @@ declare module 'vue' {
|
|
|
2941
3009
|
};
|
|
2942
3010
|
|
|
2943
3011
|
type NLDDStepBarProps = {
|
|
2944
|
-
'current'?: NLDDStepBar['current'];
|
|
2945
3012
|
/** Name of the nav; defaults to the i18n value ("Voortgang") */
|
|
2946
3013
|
'accessible-label'?: NLDDStepBar['accessibleLabel'];
|
|
2947
3014
|
/** Name of the nav; defaults to the i18n value ("Voortgang") */
|
|
@@ -2963,7 +3030,7 @@ declare module 'vue' {
|
|
|
2963
3030
|
'icon'?: NLDDStepBarItem['icon'];
|
|
2964
3031
|
/** Makes the step a link (back to a completed step, for instance) */
|
|
2965
3032
|
'href'?: NLDDStepBarItem['href'];
|
|
2966
|
-
/**
|
|
3033
|
+
/** Makes the step a button, for flows without a URL per step; ignored when `href` is set */
|
|
2967
3034
|
'button'?: NLDDStepBarItem['button'];
|
|
2968
3035
|
/** The status that counts. An own `past` or `future` wins over the derived one. An own `current` is what the parent derives from, so the derived status already says it, and on a step that lost to a later one it does not hold. */
|
|
2969
3036
|
'resolvedStatus'?: NLDDStepBarItem['resolvedStatus'];
|
|
@@ -3121,6 +3188,8 @@ declare module 'vue' {
|
|
|
3121
3188
|
'icon'?: NLDDTabBarItem['icon'];
|
|
3122
3189
|
/** Size: 'md' (default) | 'lg'. Set by nldd-tab-bar from its own size; 'lg' enlarges the touch target while keeping the variant layout. */
|
|
3123
3190
|
'size'?: NLDDTabBarItem['size'];
|
|
3191
|
+
/** Forces this presentation on this item, over the one from nldd-tab-bar */
|
|
3192
|
+
'variant'?: NLDDTabBarItem['variant'];
|
|
3124
3193
|
/** When the item is activated; detail: { item: NLDDTabBarItem } */
|
|
3125
3194
|
'onSelect'?: (event: CustomEvent) => void;
|
|
3126
3195
|
};
|
|
@@ -4051,6 +4120,7 @@ declare module 'vue' {
|
|
|
4051
4120
|
'nldd-button': DefineComponent<NLDDButtonProps>;
|
|
4052
4121
|
/** A horizontal container for grouping buttons with a neutral background. Automatically propagates its size and appearance to all child nldd-button and nldd-icon-button elements. Renders nldd-button-bar-divider elements as internal dividers — no separate component needed. The bar is one surface for actions; on/off buttons do not go in it. For a row of toggles use nldd-toggle-button-group, and for one choice out of a few options on one surface nldd-segmented-control. An nldd-toggle-button placed here is shown as it is, and a warning says so in development. */
|
|
4053
4122
|
'nldd-button-bar': DefineComponent<NLDDButtonBarProps>;
|
|
4123
|
+
/** A vertical rule between groups of buttons in an `nldd-button-bar`. Purely presentational: no attributes, no slots — place it between buttons. */
|
|
4054
4124
|
'nldd-button-bar-divider': DefineComponent<anonymous_0Props>;
|
|
4055
4125
|
/** A container for grouping related buttons together, in a row or stacked. `auto`, the default, is a row, and a stack over the full width in a container of 30rem (480px) or less, the width of a phone, where two labels beside each other leave no room for either. A card or a dialog between 480px and the sm breakpoint keeps its row. The group is its own container, so it follows the width it was given rather than the width of the window: the same group is a row in a page and a stack in a sheet beside it. Being a container has one consequence to know: the width has to come from the parent, since a container may not size itself from what is inside it. In a parent that shrink-wraps its content (an inline-flex box, a float, a table cell, a flex item at `width: auto`) the group measures zero and its buttons are invisible. It says so once in development. Give the group or that parent a width. A stack fills the width with its buttons, except an `nldd-icon-button`, which keeps its own size: a bar with a single glyph in the middle is not a bigger target, only a wider one. With `width="full"` the buttons fill the row and share it equally. A button whose label does not fit its share takes the width it needs, and the others share what is left. A button that does not fit beside the others moves to the next line and fills it: two buttons stack, three end up as two over one. That replaces the 480px rule of `auto`, and the group is no container then. With `orientation="horizontal"` it stays a row, and a label that does not fit wraps instead. An `nldd-icon-button` takes no share of the row. The group sets its `size` on every button in it: buttons in one group are the same size. It holds three buttons at most and hides the rest. */
|
|
4056
4126
|
'nldd-button-group': DefineComponent<NLDDButtonGroupProps>;
|
|
@@ -50,7 +50,6 @@ export declare abstract class NLDDCodeMirrorInput extends NLDDCodeMirrorInput_ba
|
|
|
50
50
|
invalid: boolean;
|
|
51
51
|
private _initialValue;
|
|
52
52
|
private _valueAtFocus;
|
|
53
|
-
private _accessibleLabelWarned;
|
|
54
53
|
private _editableCompartment;
|
|
55
54
|
private _placeholderCompartment;
|
|
56
55
|
private _attrsCompartment;
|
|
@@ -79,7 +78,6 @@ export declare abstract class NLDDCodeMirrorInput extends NLDDCodeMirrorInput_ba
|
|
|
79
78
|
private _onDocChanged;
|
|
80
79
|
private _emitChange;
|
|
81
80
|
private _onScrollerPointerDown;
|
|
82
|
-
private _checkAccessibleLabel;
|
|
83
81
|
formValue(): FormValue;
|
|
84
82
|
formResetCallback(): void;
|
|
85
83
|
formStateRestoreCallback(state: File | string | FormData | null): void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"codemirror-input.d.ts","sourceRoot":"","sources":["../../../src/utilities/codemirror/codemirror-input.ts"],"names":[],"mappings":"AAAA,OAAO,EAAc,KAAK,cAAc,EAAE,MAAM,KAAK,CAAC;AAEtD,OAAO,EAAE,UAAU,EAAgC,MAAM,kBAAkB,CAAC;AAC5E,OAAO,EAA4B,KAAK,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAC7E,OAAO,EAAkB,KAAK,SAAS,EAAE,MAAM,6BAA6B,CAAC;AAG7E,OAAO,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;;AAEhE;;;;;;;;;;;;GAYG;AACH,8BAAsB,mBAAoB,SAAQ,wBAAkD;IACnG,OAAgB,iBAAiB;;;;;;;MAG/B;IAEF;wEACoE;IACpE,MAAM,CAAC,WAAW,UAAQ;IAG1B,KAAK,SAAM;IAGX,OAAO,SAAM;IAGb,WAAW,SAAM;IAGjB,QAAQ,UAAS;IAGjB,IAAI,SAAM;IAGV,QAAQ,UAAS;IAGjB,QAAQ,UAAS;IAGjB,IAAI,SAAK;IAGT,eAAe,SAAM;IAErB;;;;;;;;OAQG;IAEH,OAAO,UAAS;IAEhB,OAAO,CAAC,aAAa,CAAM;IAC3B,OAAO,CAAC,aAA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pD;wDACoD;IACpD,SAAS,CAAC,eAAe,IAAI,SAAS,EAAE;IAoBxC,OAAO,CAAC,kBAAkB;IAK1B,OAAO,CAAC,qBAAqB;IAI7B,OAAO,CAAC,eAAe;IAUvB;6BACyB;IACzB,SAAS,CAAC,wBAAwB,IAAI,IAAI;IAIjC,YAAY,IAAI,IAAI;cAUV,eAAe,IAAI,IAAI;IAOjC,OAAO,CAAC,OAAO,EAAE,cAAc,GAAG,IAAI;IA2B/C,OAAO,CAAC,aAAa;IAYrB,OAAO,CAAC,WAAW;IASnB,OAAO,CAAC,sBAAsB,CAK5B;IAEO,SAAS,IAAI,SAAS;IAI/B,iBAAiB,IAAI,IAAI;IAIzB,wBAAwB,CAAC,KAAK,EAAE,IAAI,GAAG,MAAM,GAAG,QAAQ,GAAG,IAAI,GAAG,IAAI;IAItE,qEAAqE;IAC5D,eAAe,IAAI,OAAO,GAAG,IAAI;CAG1C"}
|
|
@@ -49,7 +49,6 @@ export class NLDDCodeMirrorInput extends DescribedBy(FormAssociated(NLDDCodeMirr
|
|
|
49
49
|
this.invalid = false;
|
|
50
50
|
this._initialValue = '';
|
|
51
51
|
this._valueAtFocus = '';
|
|
52
|
-
this._accessibleLabelWarned = false;
|
|
53
52
|
this._editableCompartment = new Compartment();
|
|
54
53
|
this._placeholderCompartment = new Compartment();
|
|
55
54
|
this._attrsCompartment = new Compartment();
|
|
@@ -135,7 +134,6 @@ export class NLDDCodeMirrorInput extends DescribedBy(FormAssociated(NLDDCodeMirr
|
|
|
135
134
|
// a caret; forward it to the nearest line so the padding is clickable too.
|
|
136
135
|
this.view?.scrollDOM.addEventListener('pointerdown', this._onScrollerPointerDown);
|
|
137
136
|
this.commitFormValue();
|
|
138
|
-
this._checkAccessibleLabel();
|
|
139
137
|
}
|
|
140
138
|
updated(changed) {
|
|
141
139
|
if (changed.has('rows')) {
|
|
@@ -162,7 +160,6 @@ export class NLDDCodeMirrorInput extends DescribedBy(FormAssociated(NLDDCodeMirr
|
|
|
162
160
|
this.refreshContentAttributes();
|
|
163
161
|
}
|
|
164
162
|
}
|
|
165
|
-
this._checkAccessibleLabel();
|
|
166
163
|
}
|
|
167
164
|
_onDocChanged() {
|
|
168
165
|
const text = this.docToValue(this.doc);
|
|
@@ -184,17 +181,6 @@ export class NLDDCodeMirrorInput extends DescribedBy(FormAssociated(NLDDCodeMirr
|
|
|
184
181
|
composed: true,
|
|
185
182
|
}));
|
|
186
183
|
}
|
|
187
|
-
/* From updated(), not firstUpdated(): a parent nldd-form-field sets input-id
|
|
188
|
-
* slightly after the first render, so an earlier check would warn for the
|
|
189
|
-
* standard form-field usage. It warns once if the label is still missing. */
|
|
190
|
-
_checkAccessibleLabel() {
|
|
191
|
-
if (this._accessibleLabelWarned)
|
|
192
|
-
return;
|
|
193
|
-
if (this.accessibleLabel || this.inputId)
|
|
194
|
-
return;
|
|
195
|
-
this._accessibleLabelWarned = true;
|
|
196
|
-
console.warn(`<${this.localName}>: No accessible-label or input-id provided. Use nldd-form-field for labeled usage, or set accessible-label for screen reader accessibility (WCAG SC 4.1.2).`);
|
|
197
|
-
}
|
|
198
184
|
formValue() {
|
|
199
185
|
return this.value;
|
|
200
186
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"codemirror-input.js","sourceRoot":"","sources":["../../../src/utilities/codemirror/codemirror-input.ts"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAAE,UAAU,EAAuB,MAAM,KAAK,CAAC;AACtD,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAC7C,OAAO,EAAE,UAAU,EAAE,WAAW,IAAI,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAC5E,OAAO,EAAE,WAAW,EAAE,WAAW,EAAkB,MAAM,mBAAmB,CAAC;AAC7E,OAAO,EAAE,cAAc,EAAkB,MAAM,6BAA6B,CAAC;AAC7E,OAAO,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAC;AAC9D,OAAO,EAAE,WAAW,EAAE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AS,EAAE,CAAC,EAAE,CAAC;wDACrD;AAGjB;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;qDAC1B;AAGjB;IADC,QAAQ,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,iBAAiB,CAAC,EAAE,CAAC,EAAE,CAAC;iDACpD;AAGV;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;qDAC1B;AAGjB;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;qDAC1B;AAGjB;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;iDAClB;AAGT;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,SAAS,EAAE,kBAAkB,EAAE,CAAC;4DACrC;AAYrB;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;oDAC3B"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Lit's decorator, plus the rule checks in a consumer's dev server. Every component
|
|
3
|
+
* registers through here, so none of them can be imported without the checks.
|
|
4
|
+
*/
|
|
5
|
+
import './dev-checks-trigger.js';
|
|
6
|
+
export { customElement } from 'lit/decorators.js';
|
|
7
|
+
//# sourceMappingURL=custom-element.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"custom-element.d.ts","sourceRoot":"","sources":["../../src/utilities/custom-element.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,OAAO,yBAAyB,CAAC;AAEjC,OAAO,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Lit's decorator, plus the rule checks in a consumer's dev server. Every component
|
|
3
|
+
* registers through here, so none of them can be imported without the checks.
|
|
4
|
+
*/
|
|
5
|
+
import './dev-checks-trigger.js';
|
|
6
|
+
export { customElement } from 'lit/decorators.js';
|
|
7
|
+
//# sourceMappingURL=custom-element.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"custom-element.js","sourceRoot":"","sources":["../../src/utilities/custom-element.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,OAAO,yBAAyB,CAAC;AAEjC,OAAO,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dev-checks-trigger.d.ts","sourceRoot":"","sources":["../../src/utilities/dev-checks-trigger.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Starts the rule checks in a consumer's dev server. A separate file, so a
|
|
3
|
+
* production build drops this branch and with it the import of the rules.
|
|
4
|
+
* Tests stay out: they set up wrong markup on purpose.
|
|
5
|
+
*/
|
|
6
|
+
if (import.meta.env?.DEV && import.meta.env?.MODE !== 'test') {
|
|
7
|
+
void import('./dev-checks.js').then(({ startDevChecks }) => startDevChecks());
|
|
8
|
+
}
|
|
9
|
+
export {};
|
|
10
|
+
//# sourceMappingURL=dev-checks-trigger.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dev-checks-trigger.js","sourceRoot":"","sources":["../../src/utilities/dev-checks-trigger.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,IAAI,MAAM,CAAC,IAAI,CAAC,GAAG,EAAE,GAAG,IAAI,MAAM,CAAC,IAAI,CAAC,GAAG,EAAE,IAAI,KAAK,MAAM,EAAE,CAAC;IAC9D,KAAK,MAAM,CAAC,iBAAiB,CAAC,CAAC,IAAI,CAAC,CAAC,EAAE,cAAc,EAAE,EAAE,EAAE,CAAC,cAAc,EAAE,CAAC,CAAC;AAC/E,CAAC"}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Runs the rules from src/rules/ on the live page while developing.
|
|
3
|
+
*
|
|
4
|
+
* The same rules `nldd lint` runs on the source, so a rule has one definition.
|
|
5
|
+
* The two see different things: the linter finds a mistake before anyone opens the
|
|
6
|
+
* page, this sees the values a template only knows at runtime, and everything
|
|
7
|
+
* that different components rendered together.
|
|
8
|
+
*
|
|
9
|
+
* Rules are plain CSS, so the browser evaluates them itself. Only loaded in DEV,
|
|
10
|
+
* through dev-checks-trigger.ts; a production build does not contain it.
|
|
11
|
+
*/
|
|
12
|
+
export interface DevRule {
|
|
13
|
+
id: string;
|
|
14
|
+
message: string;
|
|
15
|
+
context: string;
|
|
16
|
+
assert?: string;
|
|
17
|
+
report?: string;
|
|
18
|
+
count?: {
|
|
19
|
+
of: string;
|
|
20
|
+
min?: number;
|
|
21
|
+
max?: number;
|
|
22
|
+
};
|
|
23
|
+
/** Properties that count as the attributes `assert` asks for. */
|
|
24
|
+
properties?: string[];
|
|
25
|
+
}
|
|
26
|
+
/** @returns The rules each element breaks, per element in document order. */
|
|
27
|
+
export declare function findViolations(root: ParentNode, rules?: DevRule[]): {
|
|
28
|
+
rule: DevRule;
|
|
29
|
+
element: Element;
|
|
30
|
+
}[];
|
|
31
|
+
/**
|
|
32
|
+
* The document plus the open shadow roots of an app's own components, which
|
|
33
|
+
* querySelectorAll does not enter. Not our own: what a component renders inside
|
|
34
|
+
* itself is its own business, and a test's.
|
|
35
|
+
*/
|
|
36
|
+
export declare function findRoots(root?: ParentNode): ParentNode[];
|
|
37
|
+
/** A translation has no element to state a fact on, so this one reports itself. */
|
|
38
|
+
export declare function checkTranslationKeys(keys: string[]): Promise<void>;
|
|
39
|
+
export declare function startDevChecks(): void;
|
|
40
|
+
//# sourceMappingURL=dev-checks.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dev-checks.d.ts","sourceRoot":"","sources":["../../src/utilities/dev-checks.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAIH,MAAM,WAAW,OAAO;IACvB,EAAE,EAAE,MAAM,CAAC;IACX,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,KAAK,CAAC,EAAE;QAAE,EAAE,EAAE,MAAM,CAAC;QAAC,GAAG,CAAC,EAAE,MAAM,CAAC;QAAC,GAAG,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;IACnD,iEAAiE;IACjE,UAAU,CAAC,EAAE,MAAM,EAAE,CAAC;CACtB;AAwCD,6EAA6E;AAC7E,wBAAgB,cAAc,CAAC,IAAI,EAAE,UAAU,EAAE,KAAK,GAAE,OAAO,EAAa;UACtD,OAAO;aAAW,OAAO;IAO9C;AAED;;;;GAIG;AACH,wBAAgB,SAAS,CAAC,IAAI,GAAE,UAAqB,GAAG,UAAU,EAAE,CAMnE;AAcD,mFAAmF;AACnF,wBAAsB,oBAAoB,CAAC,IAAI,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC,IAAI,CAAC,CAIxE;AAID,wBAAgB,cAAc,IAAI,IAAI,CAmBrC"}
|
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Runs the rules from src/rules/ on the live page while developing.
|
|
3
|
+
*
|
|
4
|
+
* The same rules `nldd lint` runs on the source, so a rule has one definition.
|
|
5
|
+
* The two see different things: the linter finds a mistake before anyone opens the
|
|
6
|
+
* page, this sees the values a template only knows at runtime, and everything
|
|
7
|
+
* that different components rendered together.
|
|
8
|
+
*
|
|
9
|
+
* Rules are plain CSS, so the browser evaluates them itself. Only loaded in DEV,
|
|
10
|
+
* through dev-checks-trigger.ts; a production build does not contain it.
|
|
11
|
+
*/
|
|
12
|
+
import { devRules } from './dev-rules.generated.js';
|
|
13
|
+
/** Long enough for a framework to finish a render, and for most first data. */
|
|
14
|
+
const SETTLE_MS = 300;
|
|
15
|
+
/** A `:state()` changes nothing a MutationObserver sees, so also look regularly. */
|
|
16
|
+
const RECHECK_MS = 2000;
|
|
17
|
+
function isViolated(rule, element) {
|
|
18
|
+
if (rule.assert) {
|
|
19
|
+
// A framework can set a property, which a selector does not see.
|
|
20
|
+
const set = rule.properties?.some((name) => element[name]);
|
|
21
|
+
return !set && !element.matches(rule.assert);
|
|
22
|
+
}
|
|
23
|
+
if (rule.report)
|
|
24
|
+
return element.matches(rule.report);
|
|
25
|
+
if (rule.count) {
|
|
26
|
+
const { of, min, max } = rule.count;
|
|
27
|
+
const counted = [...element.children].filter((child) => child.matches(of)).length;
|
|
28
|
+
return (max !== undefined && counted > max) || (min !== undefined && counted < min);
|
|
29
|
+
}
|
|
30
|
+
return true;
|
|
31
|
+
}
|
|
32
|
+
/** An older browser without `:state()` rejects the selector; that rule then does not run. */
|
|
33
|
+
function holdsNot(rule, element) {
|
|
34
|
+
try {
|
|
35
|
+
return isViolated(rule, element);
|
|
36
|
+
}
|
|
37
|
+
catch {
|
|
38
|
+
return false;
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
function selectAll(root, selector) {
|
|
42
|
+
try {
|
|
43
|
+
return root.querySelectorAll(selector);
|
|
44
|
+
}
|
|
45
|
+
catch {
|
|
46
|
+
return [];
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
/** @returns The rules each element breaks, per element in document order. */
|
|
50
|
+
export function findViolations(root, rules = devRules) {
|
|
51
|
+
const found = [];
|
|
52
|
+
for (const rule of rules) {
|
|
53
|
+
for (const element of selectAll(root, rule.context)) {
|
|
54
|
+
if (holdsNot(rule, element))
|
|
55
|
+
found.push({ rule, element });
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
return found;
|
|
59
|
+
}
|
|
60
|
+
/**
|
|
61
|
+
* The document plus the open shadow roots of an app's own components, which
|
|
62
|
+
* querySelectorAll does not enter. Not our own: what a component renders inside
|
|
63
|
+
* itself is its own business, and a test's.
|
|
64
|
+
*/
|
|
65
|
+
export function findRoots(root = document) {
|
|
66
|
+
const roots = [root];
|
|
67
|
+
for (const element of root.querySelectorAll('*')) {
|
|
68
|
+
if (element.shadowRoot && !element.localName.startsWith('nldd-'))
|
|
69
|
+
roots.push(...findRoots(element.shadowRoot));
|
|
70
|
+
}
|
|
71
|
+
return roots;
|
|
72
|
+
}
|
|
73
|
+
function createReporter() {
|
|
74
|
+
const reported = new WeakMap();
|
|
75
|
+
return (rules = devRules) => {
|
|
76
|
+
for (const { rule, element } of findRoots().flatMap((root) => findViolations(root, rules))) {
|
|
77
|
+
const seen = reported.get(element) ?? new Set();
|
|
78
|
+
if (seen.has(rule.id))
|
|
79
|
+
continue;
|
|
80
|
+
reported.set(element, seen.add(rule.id));
|
|
81
|
+
console.warn(`[nldd] ${rule.id}: ${rule.message}`, element);
|
|
82
|
+
}
|
|
83
|
+
};
|
|
84
|
+
}
|
|
85
|
+
/** A translation has no element to state a fact on, so this one reports itself. */
|
|
86
|
+
export async function checkTranslationKeys(keys) {
|
|
87
|
+
const { nl } = await import('../translations/nl.generated.js');
|
|
88
|
+
const unknown = keys.filter((key) => !(key in nl));
|
|
89
|
+
if (unknown.length > 0)
|
|
90
|
+
console.warn(`[nldd] setTranslations: no component knows ${unknown.join(', ')}.`);
|
|
91
|
+
}
|
|
92
|
+
let started = false;
|
|
93
|
+
export function startDevChecks() {
|
|
94
|
+
if (started || typeof MutationObserver === 'undefined')
|
|
95
|
+
return;
|
|
96
|
+
started = true;
|
|
97
|
+
const report = createReporter();
|
|
98
|
+
const stateRules = devRules.filter((rule) => rule.context.includes(':state('));
|
|
99
|
+
let timer;
|
|
100
|
+
const schedule = () => {
|
|
101
|
+
clearTimeout(timer);
|
|
102
|
+
timer = setTimeout(() => report(), SETTLE_MS);
|
|
103
|
+
};
|
|
104
|
+
new MutationObserver(schedule).observe(document.documentElement, {
|
|
105
|
+
subtree: true,
|
|
106
|
+
childList: true,
|
|
107
|
+
attributes: true,
|
|
108
|
+
});
|
|
109
|
+
setInterval(() => {
|
|
110
|
+
if (!document.hidden)
|
|
111
|
+
report(stateRules);
|
|
112
|
+
}, RECHECK_MS);
|
|
113
|
+
schedule();
|
|
114
|
+
}
|
|
115
|
+
//# sourceMappingURL=dev-checks.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dev-checks.js","sourceRoot":"","sources":["../../src/utilities/dev-checks.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAapD,+EAA+E;AAC/E,MAAM,SAAS,GAAG,GAAG,CAAC;AAEtB,oFAAoF;AACpF,MAAM,UAAU,GAAG,IAAI,CAAC;AAExB,SAAS,UAAU,CAAC,IAAa,EAAE,OAAgB;IAClD,IAAI,IAAI,CAAC,MAAM,EAAE,CAAC;QACjB,iEAAiE;QACjE,MAAM,GAAG,GAAG,IAAI,CAAC,UAAU,EAAE,IAAI,CAAC,CAAC,IAAI,EAAE,EAAE,CAAE,OAA8C,CAAC,IAAI,CAAC,CAAC,CAAC;QACnG,OAAO,CAAC,GAAG,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;IAC9C,CAAC;IACD,IAAI,IAAI,CAAC,MAAM;QAAE,OAAO,OAAO,CAAC,OAAO,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;IACrD,IAAI,IAAI,CAAC,KAAK,EAAE,CAAC;QAChB,MAAM,EAAE,EAAE,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,IAAI,CAAC,KAAK,CAAC;QACpC,MAAM,OAAO,GAAG,CAAC,GAAG,OAAO,CAAC,QAAQ,CAAC,CAAC,MAAM,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC,CAAC,MAAM,CAAC;QAClF,OAAO,CAAC,GAAG,KAAK,SAAS,I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