87382: fixing circular dependencies

This commit is contained in:
lotte
2022-02-16 13:52:32 +01:00
parent 9fc7b57157
commit 143b7c3e0d
210 changed files with 1192 additions and 1033 deletions

View File

@@ -35,114 +35,8 @@ import {
SubmissionObjectActionTypes,
UpdateSectionDataAction
} from './submission-objects.actions';
import { WorkspaceitemSectionDataType } from '../../core/submission/models/workspaceitem-sections.model';
import { WorkspaceitemSectionUploadObject } from '../../core/submission/models/workspaceitem-section-upload.model';
import { SectionsType } from '../sections/sections-type';
/**
* An interface to represent section visibility
*/
export interface SectionVisibility {
main: any;
other: any;
}
/**
* An interface to represent section object state
*/
export interface SubmissionSectionObject {
/**
* The section header
*/
header: string;
/**
* The section configuration url
*/
config: string;
/**
* A boolean representing if this section is mandatory
*/
mandatory: boolean;
/**
* The section type
*/
sectionType: SectionsType;
/**
* The section visibility
*/
visibility: SectionVisibility;
/**
* A boolean representing if this section is collapsed
*/
collapsed: boolean;
/**
* A boolean representing if this section is enabled
*/
enabled: boolean;
/**
* The list of the metadata ids of the section.
*/
metadata: string[];
/**
* The section data object
*/
data: WorkspaceitemSectionDataType;
/**
* The list of the section's errors to show. It contains the error list to display when section is not pristine
*/
errorsToShow: SubmissionSectionError[];
/**
* The list of the section's errors detected by the server. They may not be shown yet if section is pristine
*/
serverValidationErrors: SubmissionSectionError[];
/**
* A boolean representing if this section is loading
*/
isLoading: boolean;
/**
* A boolean representing if this section is valid
*/
isValid: boolean;
/**
* The formId related to this section
*/
formId: string;
}
/**
* An interface to represent section error
*/
export interface SubmissionError {
[submissionId: string]: SubmissionSectionError[];
}
/**
* An interface to represent section error
*/
export interface SubmissionSectionError {
/**
* A string representing error path
*/
path: string;
/**
* The error message
*/
message: string;
}
import { SubmissionSectionObject } from './submission-section-object.model';
/**
* An interface to represent SubmissionSectionObject entry