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.
Merge remote-tracking branch 'alex/themed-SubmissionUploadFilesCompon…
…ent_contribute-7.6' into minor-themed-component-fixes_contribute-main # Conflicts: # src/app/submission/submission.module.ts # src/themes/custom/lazy-theme.module.ts
- Loading branch information
Showing
7 changed files
with
74 additions
and
11 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
43 changes: 43 additions & 0 deletions
43
src/app/submission/form/submission-upload-files/themed-submission-upload-files.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,43 @@ | ||
import { | ||
Component, | ||
Input, | ||
} from '@angular/core'; | ||
|
||
import { ThemedComponent } from '../../../shared/theme-support/themed.component'; | ||
import { UploaderOptions } from '../../../shared/upload/uploader/uploader-options.model'; | ||
import { SubmissionUploadFilesComponent } from './submission-upload-files.component'; | ||
|
||
/** | ||
* Themed wrapper for {@link SubmissionUploadFilesComponent} | ||
*/ | ||
@Component({ | ||
selector: 'ds-themed-submission-upload-files', | ||
templateUrl: '../../../shared/theme-support/themed.component.html', | ||
standalone: true, | ||
}) | ||
export class ThemedSubmissionUploadFilesComponent extends ThemedComponent<SubmissionUploadFilesComponent> { | ||
|
||
@Input() collectionId: string; | ||
|
||
@Input() submissionId: string; | ||
|
||
@Input() uploadFilesOptions: UploaderOptions; | ||
|
||
protected inAndOutputNames: (keyof SubmissionUploadFilesComponent & keyof this)[] = [ | ||
'collectionId', | ||
'submissionId', | ||
'uploadFilesOptions', | ||
]; | ||
|
||
protected getComponentName(): string { | ||
return 'SubmissionUploadFilesComponent'; | ||
} | ||
|
||
protected importThemedComponent(themeName: string): Promise<any> { | ||
return import(`../../../../themes/${themeName}/app/submission/form/submission-upload-files/submission-upload-files.component.ts`); | ||
} | ||
|
||
protected importUnthemedComponent(): Promise<any> { | ||
return import('./submission-upload-files.component'); | ||
} | ||
} |
Empty file.
18 changes: 18 additions & 0 deletions
18
...s/custom/app/submission/form/submission-upload-files/submission-upload-files.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,18 @@ | ||
import { NgIf } from '@angular/common'; | ||
import { Component } from '@angular/core'; | ||
|
||
import { UploaderComponent } from '../../../../../../app/shared/upload/uploader/uploader.component'; | ||
import { SubmissionUploadFilesComponent as BaseComponent } from '../../../../../../app/submission/form/submission-upload-files/submission-upload-files.component'; | ||
|
||
@Component({ | ||
selector: 'ds-submission-upload-files', | ||
// templateUrl: './submission-upload-files.component.html', | ||
templateUrl: '../../../../../../app/submission/form/submission-upload-files/submission-upload-files.component.html', | ||
imports: [ | ||
UploaderComponent, | ||
NgIf, | ||
], | ||
standalone: true, | ||
}) | ||
export class SubmissionUploadFilesComponent 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