forked from DSpace/dspace-angular
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f55c02a
commit c1e4777
Showing
15 changed files
with
69 additions
and
9 deletions.
There are no files selected for viewing
44 changes: 44 additions & 0 deletions
44
src/app/shared/dso-selector/dso-selector/themed-dso-selector.component.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
import { Component, Input, Output, EventEmitter } from '@angular/core'; | ||
import { ThemedComponent } from '../../theme-support/themed.component'; | ||
import { DSpaceObjectType } from '../../../core/shared/dspace-object-type.model'; | ||
import { SortOptions } from '../../../core/cache/models/sort-options.model'; | ||
import { DSpaceObject } from '../../../core/shared/dspace-object.model'; | ||
import { DSOSelectorComponent } from './dso-selector.component'; | ||
|
||
/** | ||
* Themed wrapper for {@link DSOSelectorComponent} | ||
*/ | ||
@Component({ | ||
selector: 'ds-themed-dso-selector', | ||
templateUrl: '../../theme-support/themed.component.html', | ||
}) | ||
export class ThemedDSOSelectorComponent extends ThemedComponent<DSOSelectorComponent> { | ||
|
||
@Input() currentDSOId: string; | ||
|
||
@Input() types: DSpaceObjectType[]; | ||
|
||
@Input() sort: SortOptions; | ||
|
||
@Output() onSelect: EventEmitter<DSpaceObject> = new EventEmitter(); | ||
|
||
protected inAndOutputNames: (keyof DSOSelectorComponent & keyof this)[] = [ | ||
'currentDSOId', | ||
'types', | ||
'sort', | ||
'onSelect', | ||
]; | ||
|
||
protected getComponentName(): string { | ||
return 'DSOSelectorComponent'; | ||
} | ||
|
||
protected importThemedComponent(themeName: string): Promise<any> { | ||
return import(`../../../../themes/${themeName}/app/shared/dso-selector/dso-selector/dso-selector.component`); | ||
} | ||
|
||
protected importUnthemedComponent(): Promise<any> { | ||
return import('./dso-selector.component'); | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
Empty file.
12 changes: 12 additions & 0 deletions
12
src/themes/custom/app/shared/dso-selector/dso-selector/dso-selector.component.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
import { Component } from '@angular/core'; | ||
import { DSOSelectorComponent as BaseComponent } from '../../../../../../app/shared/dso-selector/dso-selector/dso-selector.component'; | ||
|
||
@Component({ | ||
selector: 'ds-dso-selector', | ||
// styleUrls: ['./dso-selector.component.scss'], | ||
styleUrls: ['../../../../../../app/shared/dso-selector/dso-selector/dso-selector.component.scss'], | ||
// templateUrl: './dso-selector.component.html', | ||
templateUrl: '../../../../../../app/shared/dso-selector/dso-selector/dso-selector.component.html', | ||
}) | ||
export class DSOSelectorComponent extends BaseComponent { | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters