mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-18 07:23:03 +00:00
[CST-18016] Fix import suggestion
This commit is contained in:
@@ -1,10 +1,15 @@
|
|||||||
import {
|
import {
|
||||||
|
ChangeDetectorRef,
|
||||||
Component,
|
Component,
|
||||||
|
EventEmitter,
|
||||||
Input,
|
Input,
|
||||||
|
Output,
|
||||||
} from '@angular/core';
|
} from '@angular/core';
|
||||||
import { ThemedComponent } from 'src/app/shared/theme-support/themed.component';
|
import { ThemedComponent } from 'src/app/shared/theme-support/themed.component';
|
||||||
|
|
||||||
import { CreateItemParentSelectorComponent } from './create-item-parent-selector.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
|
* Themed wrapper for CreateItemParentSelectorComponent
|
||||||
@@ -18,20 +23,29 @@ import { CreateItemParentSelectorComponent } from './create-item-parent-selector
|
|||||||
})
|
})
|
||||||
export class ThemedCreateItemParentSelectorComponent
|
export class ThemedCreateItemParentSelectorComponent
|
||||||
extends ThemedComponent<CreateItemParentSelectorComponent> {
|
extends ThemedComponent<CreateItemParentSelectorComponent> {
|
||||||
@Input() entityType: string;
|
@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'];
|
||||||
|
|
||||||
protected getComponentName(): string {
|
constructor(
|
||||||
return 'CreateItemParentSelectorComponent';
|
protected cdr: ChangeDetectorRef,
|
||||||
}
|
protected themeService: ThemeService,
|
||||||
|
) {
|
||||||
|
super(cdr, themeService);
|
||||||
|
}
|
||||||
|
|
||||||
protected importThemedComponent(themeName: string): Promise<any> {
|
protected getComponentName(): string {
|
||||||
return import(`../../../../../themes/${themeName}/app/shared/dso-selector/modal-wrappers/create-item-parent-selector/create-item-parent-selector.component`);
|
return 'CreateItemParentSelectorComponent';
|
||||||
}
|
}
|
||||||
|
|
||||||
protected importUnthemedComponent(): Promise<any> {
|
protected importThemedComponent(themeName: string): Promise<any> {
|
||||||
return import('./create-item-parent-selector.component');
|
return import(`../../../../../themes/${themeName}/app/shared/dso-selector/modal-wrappers/create-item-parent-selector/create-item-parent-selector.component`);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
protected importUnthemedComponent(): Promise<any> {
|
||||||
|
return import('./create-item-parent-selector.component');
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user