mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-17 23:13:04 +00:00
Merged submission module code
This commit is contained in:
115
src/app/submission/sections/upload/file/edit/files-edit.model.ts
Normal file
115
src/app/submission/sections/upload/file/edit/files-edit.model.ts
Normal file
@@ -0,0 +1,115 @@
|
||||
import {
|
||||
DynamicDatePickerModelConfig,
|
||||
DynamicFormArrayModelConfig,
|
||||
DynamicSelectModelConfig,
|
||||
DynamicFormGroupModelConfig, DynamicFormControlLayout,
|
||||
} from '@ng-dynamic-forms/core';
|
||||
|
||||
export const BITSTREAM_METADATA_FORM_GROUP_CONFIG: DynamicFormGroupModelConfig = {
|
||||
id: 'metadata',
|
||||
group: []
|
||||
};
|
||||
export const BITSTREAM_METADATA_FORM_GROUP_LAYOUT: DynamicFormControlLayout = {
|
||||
element: {
|
||||
container: 'form-group',
|
||||
label: 'col-form-label'
|
||||
},
|
||||
grid: {
|
||||
label: 'col-sm-3'
|
||||
}
|
||||
};
|
||||
|
||||
export const BITSTREAM_ACCESS_CONDITIONS_FORM_ARRAY_CONFIG: DynamicFormArrayModelConfig = {
|
||||
id: 'accessConditions',
|
||||
groupFactory: null,
|
||||
};
|
||||
export const BITSTREAM_ACCESS_CONDITIONS_FORM_ARRAY_LAYOUT: DynamicFormControlLayout = {
|
||||
grid: {
|
||||
group: 'form-row'
|
||||
}
|
||||
};
|
||||
|
||||
export const BITSTREAM_FORM_ACCESS_CONDITION_TYPE_CONFIG: DynamicSelectModelConfig<any> = {
|
||||
id: 'name',
|
||||
label: 'submission.sections.upload.form.access-condition-label',
|
||||
options: []
|
||||
};
|
||||
export const BITSTREAM_FORM_ACCESS_CONDITION_TYPE_LAYOUT: DynamicFormControlLayout = {
|
||||
element: {
|
||||
container: 'p-0',
|
||||
label: 'col-form-label'
|
||||
},
|
||||
grid: {
|
||||
host: 'col-md-10'
|
||||
}
|
||||
};
|
||||
|
||||
export const BITSTREAM_FORM_ACCESS_CONDITION_START_DATE_CONFIG: DynamicDatePickerModelConfig = {
|
||||
id: 'startDate',
|
||||
label: 'submission.sections.upload.form.from-label',
|
||||
placeholder: 'submission.sections.upload.form.from-placeholder',
|
||||
inline: false,
|
||||
toggleIcon: 'fa fa-calendar',
|
||||
relation: [
|
||||
{
|
||||
action: 'ENABLE',
|
||||
connective: 'OR',
|
||||
when: []
|
||||
}
|
||||
]
|
||||
};
|
||||
export const BITSTREAM_FORM_ACCESS_CONDITION_START_DATE_LAYOUT: DynamicFormControlLayout = {
|
||||
element: {
|
||||
container: 'p-0',
|
||||
label: 'col-form-label'
|
||||
},
|
||||
grid: {
|
||||
host: 'col-md-4'
|
||||
}
|
||||
};
|
||||
|
||||
export const BITSTREAM_FORM_ACCESS_CONDITION_END_DATE_CONFIG: DynamicDatePickerModelConfig = {
|
||||
id: 'endDate',
|
||||
label: 'submission.sections.upload.form.until-label',
|
||||
placeholder: 'submission.sections.upload.form.until-placeholder',
|
||||
inline: false,
|
||||
toggleIcon: 'fa fa-calendar',
|
||||
relation: [
|
||||
{
|
||||
action: 'ENABLE',
|
||||
connective: 'OR',
|
||||
when: []
|
||||
}
|
||||
]
|
||||
};
|
||||
export const BITSTREAM_FORM_ACCESS_CONDITION_END_DATE_LAYOUT: DynamicFormControlLayout = {
|
||||
element: {
|
||||
container: 'p-0',
|
||||
label: 'col-form-label'
|
||||
},
|
||||
grid: {
|
||||
host: 'col-md-4'
|
||||
}
|
||||
};
|
||||
|
||||
export const BITSTREAM_FORM_ACCESS_CONDITION_GROUPS_CONFIG: DynamicSelectModelConfig<any> = {
|
||||
id: 'groupUUID',
|
||||
label: 'submission.sections.upload.form.group-label',
|
||||
options: [],
|
||||
relation: [
|
||||
{
|
||||
action: 'ENABLE',
|
||||
connective: 'OR',
|
||||
when: []
|
||||
}
|
||||
]
|
||||
};
|
||||
export const BITSTREAM_FORM_ACCESS_CONDITION_GROUPS_LAYOUT: DynamicFormControlLayout = {
|
||||
element: {
|
||||
container: 'p-0',
|
||||
label: 'col-form-label'
|
||||
},
|
||||
grid: {
|
||||
host: 'col-sm-10'
|
||||
}
|
||||
};
|
Reference in New Issue
Block a user