Commits
Vasilii Fedorov authored 7505a5a208f
1 + | import { ThemedComponent } from '../../../../shared/theme-support/themed.component'; |
2 + | import { FileSectionComponent } from './file-section.component'; |
3 + | import {Component, Input} from '@angular/core'; |
4 + | import {Item} from '../../../../core/shared/item.model'; |
5 + | |
6 + | @Component({ |
7 + | selector: 'ds-themed-item-page-file-section', |
8 + | templateUrl: '../../../../shared/theme-support/themed.component.html', |
9 + | }) |
10 + | export class ThemedFileSectionComponent extends ThemedComponent<FileSectionComponent> { |
11 + | |
12 + | @Input() item: Item; |
13 + | |
14 + | protected inAndOutputNames: (keyof FileSectionComponent & keyof this)[] = ['item']; |
15 + | |
16 + | protected getComponentName(): string { |
17 + | return 'FileSectionComponent'; |
18 + | } |
19 + | |
20 + | protected importThemedComponent(themeName: string): Promise<any> { |
21 + | return import(`../../../../../themes/${themeName}/app/item-page/simple/field-components/file-section/file-section.component`); |
22 + | } |
23 + | |
24 + | protected importUnthemedComponent(): Promise<any> { |
25 + | return import(`./file-section.component`); |
26 + | } |
27 + | |
28 + | } |