argos/dmp-frontend/src/app/ui/admin/dataset-profile/editor/components/field/view-style-enum.ts

30 lines
828 B
TypeScript
Raw Normal View History

export enum ViewStyleType{
TextArea = "textarea",
Added rich text area field type for response in dataset > chapter > section > questions. 1. dataset-profile.module.ts: Added in declarations "DatasetProfileEditorRichTextAreaFieldComponent". 2. dataset-profile-editor-composite-field.component.html: Added RichTextArea as input field type for response to a question. 3. dataset-profile-editor-composite-field.component.ts: In method "addNewInput()" added case for RichTextArea. 4. dataset-profile-field-view-style.ts & view-style-enum.ts: Added RichTextArea. 5. field-data.ts: Added interface RichTextAreaFieldData. 6. enum-utils.service.ts: In methods "toDatasetProfileFieldViewStyleString()" and "toDatasetProfileViewTypeString()" added cases for RichTextArea 7. field-editor-model.ts: Added richTextarea. 8. component-profile-editor-default-value.component.html: Added <mat-form-field> for RichTextArea (how rich text area is initialized when this type is selected as response). 9. dataset-profile-editor-field.component.html: Added <mat-option> for RichTextArea (to select it) and <app-dataset-profile-editor-rich-text-area-field-component> (to show it). 10. dataset-profile-editor-field.component.ts: Added RichTextArea case everywhere. 11. dataset-wizard.component.ts & dmp-editor.component.ts: In method "_getPlaceHolder()" added case for richTextarea. 12. dataset-description-form.module.ts: Imported RichTextEditorModule. 13. form-field.component.html: Added RichTextArea case with <rich-text-editor-component>. 14. assets/i18n/: Added DATASET-PROFILE-EDITOR.STEPS.FORM.FIELD.FIELDS.FIELD-RICH-TEXT-AREA-TITLE, DATASET-PROFILE-EDITOR.STEPS.FORM.FIELD.FIELDS.FIELD-RICH-TEXT-AREA-PLACEHOLDER and DMP-EDITOR.TYPES.DATASET-PROFILE-FIELD-VIEW-STYLE.RICH-TEXT-AREA. 15. field-data/rich-text-area-field-data-editor-model.ts & field-type/rich-textarea/: [NEW] Files for Rich Text Area field type.
2021-11-01 14:30:21 +01:00
RichTextArea = "richTextarea",
Upload = "upload",
Table = "table",
BooleanDecision = "booleanDecision",
CheckBox = "checkBox",
FreeText = "freetext",
RadioBox = "radiobox",
DatePicker = "datePicker",
InternalDmpEntities = "internalDmpEntities",
ExternalDatasets = "externalDatasets",
DataRepositories = "dataRepositories",
PubRepositories = "pubRepositories",
JournalRepositories = "journalRepositories",
Taxonomies = "taxonomies",
Licenses = "licenses",
Publications = "publications",
Registries = "registries",
Services = "services",
Tags = "tags",
Researchers = "researchers",
Organizations = "organizations",
DatasetIdentifier = "datasetIdentifier",
Currency = "currency",
Validation = 'validation',
Select ="selection",
Other ="other"
Added rich text area field type for response in dataset > chapter > section > questions. 1. dataset-profile.module.ts: Added in declarations "DatasetProfileEditorRichTextAreaFieldComponent". 2. dataset-profile-editor-composite-field.component.html: Added RichTextArea as input field type for response to a question. 3. dataset-profile-editor-composite-field.component.ts: In method "addNewInput()" added case for RichTextArea. 4. dataset-profile-field-view-style.ts & view-style-enum.ts: Added RichTextArea. 5. field-data.ts: Added interface RichTextAreaFieldData. 6. enum-utils.service.ts: In methods "toDatasetProfileFieldViewStyleString()" and "toDatasetProfileViewTypeString()" added cases for RichTextArea 7. field-editor-model.ts: Added richTextarea. 8. component-profile-editor-default-value.component.html: Added <mat-form-field> for RichTextArea (how rich text area is initialized when this type is selected as response). 9. dataset-profile-editor-field.component.html: Added <mat-option> for RichTextArea (to select it) and <app-dataset-profile-editor-rich-text-area-field-component> (to show it). 10. dataset-profile-editor-field.component.ts: Added RichTextArea case everywhere. 11. dataset-wizard.component.ts & dmp-editor.component.ts: In method "_getPlaceHolder()" added case for richTextarea. 12. dataset-description-form.module.ts: Imported RichTextEditorModule. 13. form-field.component.html: Added RichTextArea case with <rich-text-editor-component>. 14. assets/i18n/: Added DATASET-PROFILE-EDITOR.STEPS.FORM.FIELD.FIELDS.FIELD-RICH-TEXT-AREA-TITLE, DATASET-PROFILE-EDITOR.STEPS.FORM.FIELD.FIELDS.FIELD-RICH-TEXT-AREA-PLACEHOLDER and DMP-EDITOR.TYPES.DATASET-PROFILE-FIELD-VIEW-STYLE.RICH-TEXT-AREA. 15. field-data/rich-text-area-field-data-editor-model.ts & field-type/rich-textarea/: [NEW] Files for Rich Text Area field type.
2021-11-01 14:30:21 +01:00
}