[CST-18016] Fix import suggestion

This commit is contained in:
Adamo
2025-02-20 16:50:47 +01:00
parent 81ec674f38
commit caa5b1e29a

View File

@@ -1,10 +1,15 @@
import {
ChangeDetectorRef,
Component,
EventEmitter,
Input,
Output,
} from '@angular/core';
import { ThemedComponent } from 'src/app/shared/theme-support/themed.component';
import { CreateItemParentSelectorComponent } from './create-item-parent-selector.component';
import { ThemeService } from '../../../theme-support/theme.service';
import { DSpaceObject } from '../../../../core/shared/dspace-object.model';
/**
* Themed wrapper for CreateItemParentSelectorComponent
@@ -19,8 +24,17 @@ import { CreateItemParentSelectorComponent } from './create-item-parent-selector
export class ThemedCreateItemParentSelectorComponent
extends ThemedComponent<CreateItemParentSelectorComponent> {
@Input() entityType: string;
@Output() select: EventEmitter<DSpaceObject> = new EventEmitter<DSpaceObject>();
@Input() emitOnly = true;
protected inAndOutputNames: (keyof CreateItemParentSelectorComponent & keyof this)[] = ['entityType'];
protected inAndOutputNames: (keyof CreateItemParentSelectorComponent & keyof this)[] = ['entityType', 'select', 'emitOnly'];
constructor(
protected cdr: ChangeDetectorRef,
protected themeService: ThemeService,
) {
super(cdr, themeService);
}
protected getComponentName(): string {
return 'CreateItemParentSelectorComponent';