mirror of
https://github.com/Alfresco/alfresco-content-app.git
synced 2025-07-24 17:31:52 +00:00
[ACS-8960] Review and apply required inputs where possible (#4339)
This commit is contained in:
committed by
GitHub
parent
d30c933259
commit
52b4060e78
@@ -37,7 +37,7 @@ import { MatSlideToggleModule } from '@angular/material/slide-toggle';
|
|||||||
host: { class: 'aca-rule-list-item' }
|
host: { class: 'aca-rule-list-item' }
|
||||||
})
|
})
|
||||||
export class RuleListItemUiComponent {
|
export class RuleListItemUiComponent {
|
||||||
@Input()
|
@Input({ required: true })
|
||||||
rule: Rule;
|
rule: Rule;
|
||||||
@Input()
|
@Input()
|
||||||
@HostBinding('class.aca-selected')
|
@HostBinding('class.aca-selected')
|
||||||
|
@@ -57,9 +57,9 @@ import { takeUntilDestroyed } from '@angular/core/rxjs-interop';
|
|||||||
host: { class: 'aca-rule-list' }
|
host: { class: 'aca-rule-list' }
|
||||||
})
|
})
|
||||||
export class RuleListUiComponent implements OnInit {
|
export class RuleListUiComponent implements OnInit {
|
||||||
@Input()
|
@Input({ required: true })
|
||||||
mainRuleSet$: Observable<RuleSet>;
|
mainRuleSet$: Observable<RuleSet>;
|
||||||
@Input()
|
@Input({ required: true })
|
||||||
folderId: string;
|
folderId: string;
|
||||||
@Input()
|
@Input()
|
||||||
inheritedRuleSets: RuleSet[] = [];
|
inheritedRuleSets: RuleSet[] = [];
|
||||||
|
@@ -41,7 +41,7 @@ import { takeUntilDestroyed } from '@angular/core/rxjs-interop';
|
|||||||
standalone: true
|
standalone: true
|
||||||
})
|
})
|
||||||
export class DatatableCellBadgesComponent implements OnInit {
|
export class DatatableCellBadgesComponent implements OnInit {
|
||||||
@Input() node: NodeEntry;
|
@Input({ required: true }) node: NodeEntry;
|
||||||
|
|
||||||
badges: Badge[];
|
badges: Badge[];
|
||||||
|
|
||||||
|
@@ -54,7 +54,7 @@ export class SearchResultsRowComponent implements OnInit {
|
|||||||
|
|
||||||
private node: NodeEntry;
|
private node: NodeEntry;
|
||||||
|
|
||||||
@Input()
|
@Input({ required: true })
|
||||||
context: any;
|
context: any;
|
||||||
|
|
||||||
name$ = new BehaviorSubject<string>('');
|
name$ = new BehaviorSubject<string>('');
|
||||||
|
@@ -22,7 +22,7 @@
|
|||||||
* from Hyland Software. If not, see <http://www.gnu.org/licenses/>.
|
* 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 { OverlayContainer } from '@angular/cdk/overlay';
|
||||||
import { NavBarLinkRef } from '@alfresco/adf-extensions';
|
import { NavBarLinkRef } from '@alfresco/adf-extensions';
|
||||||
import { CommonModule } from '@angular/common';
|
import { CommonModule } from '@angular/common';
|
||||||
@@ -43,7 +43,7 @@ import { MenuPanelDirective } from '../directives/menu-panel.directive';
|
|||||||
encapsulation: ViewEncapsulation.None
|
encapsulation: ViewEncapsulation.None
|
||||||
})
|
})
|
||||||
export class ButtonMenuComponent implements OnInit {
|
export class ButtonMenuComponent implements OnInit {
|
||||||
@Input()
|
@Input({ required: true })
|
||||||
item: NavBarLinkRef;
|
item: NavBarLinkRef;
|
||||||
|
|
||||||
constructor(private cd: ChangeDetectorRef, private overlayContainer: OverlayContainer) {
|
constructor(private cd: ChangeDetectorRef, private overlayContainer: OverlayContainer) {
|
||||||
|
@@ -51,7 +51,7 @@ import { ExpansionPanelDirective } from '../directives/expansion-panel.directive
|
|||||||
host: { class: 'app-expand-menu' }
|
host: { class: 'app-expand-menu' }
|
||||||
})
|
})
|
||||||
export class ExpandMenuComponent implements OnInit {
|
export class ExpandMenuComponent implements OnInit {
|
||||||
@Input()
|
@Input({ required: true })
|
||||||
item: NavBarLinkRef;
|
item: NavBarLinkRef;
|
||||||
|
|
||||||
@Output()
|
@Output()
|
||||||
|
@@ -49,7 +49,7 @@ export class InfoDrawerComponent implements OnChanges, OnInit, OnDestroy {
|
|||||||
@Input()
|
@Input()
|
||||||
nodeId: string;
|
nodeId: string;
|
||||||
|
|
||||||
@Input()
|
@Input({ required: true })
|
||||||
node: NodeEntry;
|
node: NodeEntry;
|
||||||
|
|
||||||
isLoading = false;
|
isLoading = false;
|
||||||
|
@@ -37,7 +37,7 @@ import { MatToolbarModule } from '@angular/material/toolbar';
|
|||||||
encapsulation: ViewEncapsulation.None
|
encapsulation: ViewEncapsulation.None
|
||||||
})
|
})
|
||||||
export class ToolbarComponent {
|
export class ToolbarComponent {
|
||||||
@Input() items: ContentActionRef[];
|
@Input({ required: true }) items: ContentActionRef[];
|
||||||
|
|
||||||
trackByActionId(_: number, action: ContentActionRef) {
|
trackByActionId(_: number, action: ContentActionRef) {
|
||||||
return action.id;
|
return action.id;
|
||||||
|
Reference in New Issue
Block a user