[ACS-8960] Review and apply required inputs where possible (#4339)

This commit is contained in:
dominikiwanekhyland
2025-01-17 13:15:35 +01:00
committed by GitHub
parent d30c933259
commit 52b4060e78
8 changed files with 10 additions and 10 deletions

View File

@@ -41,7 +41,7 @@ import { takeUntilDestroyed } from '@angular/core/rxjs-interop';
standalone: true
})
export class DatatableCellBadgesComponent implements OnInit {
@Input() node: NodeEntry;
@Input({ required: true }) node: NodeEntry;
badges: Badge[];

View File

@@ -54,7 +54,7 @@ export class SearchResultsRowComponent implements OnInit {
private node: NodeEntry;
@Input()
@Input({ required: true })
context: any;
name$ = new BehaviorSubject<string>('');

View File

@@ -22,7 +22,7 @@
* from Hyland Software. If not, see <http://www.gnu.org/licenses/>.
*/
import { Component, Input, ViewEncapsulation, OnInit, ChangeDetectorRef } from '@angular/core';
import { ChangeDetectorRef, Component, Input, OnInit, ViewEncapsulation } from '@angular/core';
import { OverlayContainer } from '@angular/cdk/overlay';
import { NavBarLinkRef } from '@alfresco/adf-extensions';
import { CommonModule } from '@angular/common';
@@ -43,7 +43,7 @@ import { MenuPanelDirective } from '../directives/menu-panel.directive';
encapsulation: ViewEncapsulation.None
})
export class ButtonMenuComponent implements OnInit {
@Input()
@Input({ required: true })
item: NavBarLinkRef;
constructor(private cd: ChangeDetectorRef, private overlayContainer: OverlayContainer) {

View File

@@ -51,7 +51,7 @@ import { ExpansionPanelDirective } from '../directives/expansion-panel.directive
host: { class: 'app-expand-menu' }
})
export class ExpandMenuComponent implements OnInit {
@Input()
@Input({ required: true })
item: NavBarLinkRef;
@Output()