-
Notifications
You must be signed in to change notification settings - Fork 433
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2585 from tdonohue/port_2442_to_7x
[Port dspace-7_x] New themed components & minor CSS fixes
- Loading branch information
Showing
37 changed files
with
290 additions
and
35 deletions.
There are no files selected for viewing
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
4 changes: 2 additions & 2 deletions
4
src/app/forgot-password/forgot-password-email/forgot-email.component.html
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 |
---|---|---|
@@ -1,3 +1,3 @@ | ||
<ds-register-email-form | ||
<ds-themed-register-email-form | ||
[MESSAGE_PREFIX]="'forgot-email.form'" [typeRequest]="typeRequest"> | ||
</ds-register-email-form> | ||
</ds-themed-register-email-form> |
4 changes: 2 additions & 2 deletions
4
src/app/home-page/recent-item-list/recent-item-list.component.html
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
36 changes: 36 additions & 0 deletions
36
src/app/register-email-form/themed-registry-email-form.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,36 @@ | ||
import { Component, Input } from '@angular/core'; | ||
import { ThemedComponent } from '../shared/theme-support/themed.component'; | ||
import { RegisterEmailFormComponent } from './register-email-form.component'; | ||
|
||
/** | ||
* Themed wrapper for {@link RegisterEmailFormComponent} | ||
*/ | ||
@Component({ | ||
selector: 'ds-themed-register-email-form', | ||
styleUrls: [], | ||
templateUrl: '../shared/theme-support/themed.component.html', | ||
}) | ||
export class ThemedRegisterEmailFormComponent extends ThemedComponent<RegisterEmailFormComponent> { | ||
|
||
@Input() MESSAGE_PREFIX: string; | ||
|
||
@Input() typeRequest: string; | ||
|
||
protected inAndOutputNames: (keyof RegisterEmailFormComponent & keyof this)[] = [ | ||
'MESSAGE_PREFIX', | ||
'typeRequest', | ||
]; | ||
|
||
protected getComponentName(): string { | ||
return 'RegisterEmailFormComponent'; | ||
} | ||
|
||
protected importThemedComponent(themeName: string): Promise<any> { | ||
return import(`../../themes/${themeName}/app/register-email-form/register-email-form.component`); | ||
} | ||
|
||
protected importUnthemedComponent(): Promise<any> { | ||
return import('./register-email-form.component'); | ||
} | ||
|
||
} |
4 changes: 2 additions & 2 deletions
4
src/app/register-page/register-email/register-email.component.html
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 |
---|---|---|
@@ -1,3 +1,3 @@ | ||
<ds-register-email-form | ||
<ds-themed-register-email-form | ||
[MESSAGE_PREFIX]="'register-page.registration'" [typeRequest]="typeRequest"> | ||
</ds-register-email-form> | ||
</ds-themed-register-email-form> |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,76 @@ | ||
import { Component, Input, Output, EventEmitter } from '@angular/core'; | ||
import { ThemedComponent } from '../theme-support/themed.component'; | ||
import { BrowseByComponent } from './browse-by.component'; | ||
import { Observable } from 'rxjs'; | ||
import { RemoteData } from '../../core/data/remote-data'; | ||
import { PaginatedList } from '../../core/data/paginated-list.model'; | ||
import { ListableObject } from '../object-collection/shared/listable-object.model'; | ||
import { PaginationComponentOptions } from '../pagination/pagination-component-options.model'; | ||
import { SortOptions, SortDirection } from '../../core/cache/models/sort-options.model'; | ||
import { StartsWithType } from '../starts-with/starts-with-decorator'; | ||
|
||
/** | ||
* Themed wrapper for {@link BrowseByComponent} | ||
*/ | ||
@Component({ | ||
selector: 'ds-themed-browse-by', | ||
styleUrls: [], | ||
templateUrl: '../theme-support/themed.component.html', | ||
}) | ||
export class ThemedBrowseByComponent extends ThemedComponent<BrowseByComponent> { | ||
|
||
@Input() title: string; | ||
|
||
@Input() parentname: string; | ||
|
||
@Input() objects$: Observable<RemoteData<PaginatedList<ListableObject>>>; | ||
|
||
@Input() paginationConfig: PaginationComponentOptions; | ||
|
||
@Input() sortConfig: SortOptions; | ||
|
||
@Input() type: StartsWithType; | ||
|
||
@Input() startsWithOptions: number[]; | ||
|
||
@Input() showPaginator: boolean; | ||
|
||
@Input() hideGear: boolean; | ||
|
||
@Output() prev: EventEmitter<boolean> = new EventEmitter(); | ||
|
||
@Output() next: EventEmitter<boolean> = new EventEmitter(); | ||
|
||
@Output() pageSizeChange: EventEmitter<number> = new EventEmitter(); | ||
|
||
@Output() sortDirectionChange: EventEmitter<SortDirection> = new EventEmitter(); | ||
|
||
protected inAndOutputNames: (keyof BrowseByComponent & keyof this)[] = [ | ||
'title', | ||
'parentname', | ||
'objects$', | ||
'paginationConfig', | ||
'sortConfig', | ||
'type', | ||
'startsWithOptions', | ||
'showPaginator', | ||
'hideGear', | ||
'prev', | ||
'next', | ||
'pageSizeChange', | ||
'sortDirectionChange', | ||
]; | ||
|
||
protected getComponentName(): string { | ||
return 'BrowseByComponent'; | ||
} | ||
|
||
protected importThemedComponent(themeName: string): Promise<any> { | ||
return import(`../../../themes/${themeName}/app/shared/browse-by/browse-by.component.ts`); | ||
} | ||
|
||
protected importUnthemedComponent(): Promise<any> { | ||
return import('./browse-by.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
import { Component, Input } from '@angular/core'; | ||
import { ThemedComponent } from '../theme-support/themed.component'; | ||
import { LogInComponent } from './log-in.component'; | ||
|
||
/** | ||
* Themed wrapper for {@link LogInComponent} | ||
*/ | ||
@Component({ | ||
selector: 'ds-themed-log-in', | ||
styleUrls: [], | ||
templateUrl: './../theme-support/themed.component.html' | ||
}) | ||
export class ThemedLogInComponent extends ThemedComponent<LogInComponent> { | ||
|
||
@Input() isStandalonePage: boolean; | ||
|
||
protected inAndOutputNames: (keyof LogInComponent & keyof this)[] = [ | ||
'isStandalonePage', | ||
]; | ||
|
||
protected getComponentName(): string { | ||
return 'LogInComponent'; | ||
} | ||
|
||
protected importThemedComponent(themeName: string): Promise<any> { | ||
return import(`../../../themes/${themeName}/app/shared/log-in/log-in.component`); | ||
} | ||
|
||
protected importUnthemedComponent(): Promise<any> { | ||
return import('./log-in.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
Empty file.
Empty file.
Oops, something went wrong.