mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-07 10:04:11 +00:00
42 lines
1.5 KiB
TypeScript
42 lines
1.5 KiB
TypeScript
import { Component, Input } from '@angular/core';
|
|
import { ThemedComponent } from '../../../theme-support/themed.component';
|
|
import { ItemListPreviewComponent } from './item-list-preview.component';
|
|
import { Item } from '../../../../core/shared/item.model';
|
|
import { MyDspaceItemStatusType } from '../../../object-collection/shared/mydspace-item-status/my-dspace-item-status-type';
|
|
import { SearchResult } from '../../../search/models/search-result.model';
|
|
import { WorkflowItem } from 'src/app/core/submission/models/workflowitem.model';
|
|
|
|
/**
|
|
* Themed wrapper for ItemListPreviewComponent
|
|
*/
|
|
@Component({
|
|
selector: 'ds-themed-item-list-preview',
|
|
styleUrls: [],
|
|
templateUrl: '../../../theme-support/themed.component.html'
|
|
})
|
|
export class ThemedItemListPreviewComponent extends ThemedComponent<ItemListPreviewComponent> {
|
|
protected inAndOutputNames: (keyof ItemListPreviewComponent & keyof this)[] = ['item', 'object', 'status', 'showSubmitter', 'workflowItem'];
|
|
|
|
@Input() item: Item;
|
|
|
|
@Input() object: SearchResult<any>;
|
|
|
|
@Input() status: MyDspaceItemStatusType;
|
|
|
|
@Input() showSubmitter: boolean;
|
|
|
|
@Input() workflowItem: WorkflowItem;
|
|
|
|
protected getComponentName(): string {
|
|
return 'ItemListPreviewComponent';
|
|
}
|
|
|
|
protected importThemedComponent(themeName: string): Promise<any> {
|
|
return import(`../../../../../themes/${themeName}/app/shared/object-list/my-dspace-result-list-element/item-list-preview/item-list-preview.component`);
|
|
}
|
|
|
|
protected importUnthemedComponent(): Promise<any> {
|
|
return import('./item-list-preview.component');
|
|
}
|
|
}
|