127047: Merge branch 'themed-SubmissionComponents_contribute-7.6' into 'themed-SubmissionComponents_contribute-main'

This commit is contained in:
Zahraa Chreim
2025-03-13 16:17:38 +02:00
16 changed files with 318 additions and 7 deletions

View File

@@ -0,0 +1,29 @@
import { ThemedComponent } from '../../../shared/theme-support/themed.component';
import { SubmissionSectionContainerComponent } from './section-container.component';
import { Component, Input } from '@angular/core';
import { SectionDataObject } from '../models/section-data.model';
@Component({
selector: 'ds-themed-submission-section-container',
styleUrls: [],
templateUrl: '../../../shared/theme-support/themed.component.html',
})
export class ThemedSubmissionSectionContainerComponent extends ThemedComponent<SubmissionSectionContainerComponent> {
@Input() collectionId: string;
@Input() sectionData: SectionDataObject;
@Input() submissionId: string;
protected inAndOutputNames: (keyof SubmissionSectionContainerComponent & keyof this)[] = ['collectionId', 'sectionData', 'submissionId'];
protected getComponentName(): string {
return 'SubmissionSectionContainerComponent';
}
protected importThemedComponent(themeName: string): Promise<any> {
return import(`../../../../themes/${themeName}/app/submission/sections/container/section-container.component`);
}
protected importUnthemedComponent(): Promise<any> {
return import(`./section-container.component`);
}
}