mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-07 18:14:17 +00:00
87382: fixing circular dependencies
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user