1- import {
2- Component ,
3- Input ,
4- } from '@angular/core' ;
5- import { ThemedComponent } from 'src/app/shared/theme-support/themed.component' ;
1+ import { ChangeDetectorRef , Component , EventEmitter , Input , Output , } from '@angular/core' ;
2+ import { ThemedComponent } from 'src/app/shared/theme-support/themed.component' ;
63
7- import { CreateItemParentSelectorComponent } from './create-item-parent-selector.component' ;
4+ import { CreateItemParentSelectorComponent } from './create-item-parent-selector.component' ;
5+ import { ThemeService } from "../../../theme-support/theme.service" ;
6+ import { DSpaceObject } from "../../../../core/shared/dspace-object.model" ;
87
98/**
109 * Themed wrapper for CreateItemParentSelectorComponent
@@ -14,13 +13,22 @@ import { CreateItemParentSelectorComponent } from './create-item-parent-selector
1413 styleUrls : [ ] ,
1514 templateUrl : '../../../theme-support/themed.component.html' ,
1615 standalone : true ,
17- imports : [ CreateItemParentSelectorComponent ] ,
16+ imports : [ ] ,
1817} )
1918export class ThemedCreateItemParentSelectorComponent
2019 extends ThemedComponent < CreateItemParentSelectorComponent > {
2120 @Input ( ) entityType : string ;
21+ @Output ( ) select : EventEmitter < DSpaceObject > = new EventEmitter < DSpaceObject > ( ) ;
22+ @Input ( ) emitOnly : boolean = true ;
2223
23- protected inAndOutputNames : ( keyof CreateItemParentSelectorComponent & keyof this) [ ] = [ 'entityType' ] ;
24+ protected inAndOutputNames : ( keyof CreateItemParentSelectorComponent & keyof this) [ ] = [ 'entityType' , 'select' , 'emitOnly' ] ;
25+
26+ constructor (
27+ protected cdr : ChangeDetectorRef ,
28+ protected themeService : ThemeService ,
29+ ) {
30+ super ( cdr , themeService ) ;
31+ }
2432
2533 protected getComponentName ( ) : string {
2634 return 'CreateItemParentSelectorComponent' ;
0 commit comments