mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-07 01:54:15 +00:00

# Conflicts: # src/app/access-control/bulk-access/browse/bulk-access-browse.component.html # src/app/access-control/epeople-registry/epeople-registry.component.html # src/app/access-control/epeople-registry/eperson-form/eperson-form.component.html # src/app/access-control/group-registry/group-form/members-list/members-list.component.html # src/app/access-control/group-registry/group-form/subgroup-list/subgroups-list.component.html # src/app/process-page/overview/process-overview.component.html # src/app/shared/object-select/collection-select/collection-select.component.html # src/app/shared/object-select/collection-select/collection-select.component.ts # src/app/shared/object-select/item-select/item-select.component.html # src/app/shared/object-select/item-select/item-select.component.ts # src/app/shared/object-select/object-select/object-select.component.ts # src/app/shared/pagination/pagination.component.ts
31 lines
613 B
TypeScript
31 lines
613 B
TypeScript
import { Observable } from 'rxjs';
|
|
|
|
import { DSpaceObject } from '../../core/shared/dspace-object.model';
|
|
|
|
/**
|
|
* Class used to collect all the data that that is used by the {@link ObjectSelectComponent} in the HTML.
|
|
*/
|
|
export class DSpaceObjectSelect<T extends DSpaceObject> {
|
|
|
|
/**
|
|
* The {@link DSpaceObject} to display
|
|
*/
|
|
dso: T;
|
|
|
|
/**
|
|
* Whether the {@link DSpaceObject} can be selected
|
|
*/
|
|
canSelect$: Observable<boolean>;
|
|
|
|
/**
|
|
* Whether the {@link DSpaceObject} is selected
|
|
*/
|
|
selected$: Observable<boolean>;
|
|
|
|
/**
|
|
* The {@link DSpaceObject}'s route
|
|
*/
|
|
route: string;
|
|
|
|
}
|