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.
119941: Made DynamicLookupRelationModalComponent themable
- Loading branch information
1 parent
404ccd9
commit d705300
Showing
10 changed files
with
76 additions
and
30 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
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
26 changes: 26 additions & 0 deletions
26
...s-dynamic-form-ui/relation-lookup-modal/themed-dynamic-lookup-relation-modal.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,26 @@ | ||
import { ThemedComponent } from '../../../../theme-support/themed.component'; | ||
import { DynamicLookupRelationModalComponent } from './dynamic-lookup-relation-modal.component'; | ||
import { Component } from '@angular/core'; | ||
|
||
/** | ||
* Themed wrapper for {@link DynamicLookupRelationModalComponent} | ||
*/ | ||
@Component({ | ||
selector: 'ds-themed-dynamic-lookup-relation-modal', | ||
templateUrl: '../../../../theme-support/themed.component.html', | ||
}) | ||
export class ThemedDynamicLookupRelationModalComponent extends ThemedComponent<DynamicLookupRelationModalComponent> { | ||
|
||
protected getComponentName(): string { | ||
return 'DynamicLookupRelationModalComponent'; | ||
} | ||
|
||
protected importThemedComponent(themeName: string): Promise<any> { | ||
return import(`../../../../../../themes/${themeName}/app/shared/form/builder/ds-dynamic-form-ui/relation-lookup-modal/dynamic-lookup-relation-modal.component`); | ||
} | ||
|
||
protected importUnthemedComponent(): Promise<any> { | ||
return import('./dynamic-lookup-relation-modal.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
Empty file.
Empty file.
21 changes: 21 additions & 0 deletions
21
...ilder/ds-dynamic-form-ui/relation-lookup-modal/dynamic-lookup-relation-modal.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,21 @@ | ||
import { Component } from '@angular/core'; | ||
|
||
import { SearchConfigurationService } from '../../../../../../../../app/core/shared/search/search-configuration.service'; | ||
import { SEARCH_CONFIG_SERVICE } from '../../../../../../../../app/my-dspace-page/my-dspace-page.component'; | ||
import { DynamicLookupRelationModalComponent as BaseComponent } from '../../../../../../../../app/shared/form/builder/ds-dynamic-form-ui/relation-lookup-modal/dynamic-lookup-relation-modal.component'; | ||
|
||
@Component({ | ||
selector: 'ds-dynamic-lookup-relation-modal', | ||
// styleUrls: ['./dynamic-lookup-relation-modal.component.scss'], | ||
styleUrls: ['../../../../../../../../app/shared/form/builder/ds-dynamic-form-ui/relation-lookup-modal/dynamic-lookup-relation-modal.component.scss'], | ||
// templateUrl: './dynamic-lookup-relation-modal.component.html', | ||
templateUrl: '../../../../../../../../app/shared/form/builder/ds-dynamic-form-ui/relation-lookup-modal/dynamic-lookup-relation-modal.component.html', | ||
providers: [ | ||
{ | ||
provide: SEARCH_CONFIG_SERVICE, | ||
useClass: SearchConfigurationService, | ||
}, | ||
] | ||
}) | ||
export class DynamicLookupRelationModalComponent 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