2019-01-18 18:03:45 +01:00
|
|
|
import { DatasetProfileComboBoxType } from "../../../common/enum/dataset-profile-combo-box-type";
|
2019-07-16 15:41:12 +02:00
|
|
|
import { DatasetProfileInternalDmpEntitiesType } from "../../../common/enum/dataset-profile-internal-dmp-entities-type";
|
2019-01-18 18:03:45 +01:00
|
|
|
|
|
|
|
export interface FieldData {
|
|
|
|
label: string;
|
|
|
|
}
|
|
|
|
|
|
|
|
export interface AutoCompleteFieldData extends FieldData {
|
2019-01-28 14:05:19 +01:00
|
|
|
type: DatasetProfileComboBoxType;
|
2020-05-25 16:14:42 +02:00
|
|
|
autoCompleteSingleDataList: AutoCompleteSingleData[];
|
|
|
|
multiAutoComplete: boolean;
|
|
|
|
}
|
|
|
|
|
|
|
|
export interface AutoCompleteSingleData extends FieldData {
|
2019-01-18 18:03:45 +01:00
|
|
|
url: string;
|
|
|
|
optionsRoot: string;
|
|
|
|
autoCompleteOptions: FieldDataOption;
|
2020-05-25 16:14:42 +02:00
|
|
|
autocompleteType: number;
|
2019-01-18 18:03:45 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
export interface CheckBoxFieldData extends FieldData {
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
export interface BooleanDecisionFieldData extends FieldData {
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
export interface FreeTextFieldData extends FieldData {
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
export interface RadioBoxFieldData extends FieldData {
|
|
|
|
options: Array<FieldDataOption>;
|
|
|
|
}
|
|
|
|
|
|
|
|
export interface TextAreaFieldData extends FieldData {
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
export interface WordListFieldData extends FieldData {
|
|
|
|
type: DatasetProfileComboBoxType;
|
|
|
|
options: Array<FieldDataOption>;
|
|
|
|
}
|
|
|
|
|
|
|
|
export interface FieldDataOption extends FieldData {
|
|
|
|
label: string;
|
|
|
|
value: string;
|
2019-09-10 17:30:46 +02:00
|
|
|
source: string;
|
2019-02-15 11:26:14 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
export interface DatePickerFieldData extends FieldData {
|
|
|
|
|
2019-03-26 16:09:02 +01:00
|
|
|
}
|
2019-07-16 15:41:12 +02:00
|
|
|
|
|
|
|
export interface ResearchersAutoCompleteFieldData extends FieldData {
|
|
|
|
type: DatasetProfileInternalDmpEntitiesType;
|
|
|
|
multiAutoComplete: boolean;
|
|
|
|
}
|
2019-07-30 12:35:06 +02:00
|
|
|
|
|
|
|
export interface DatasetsAutoCompleteFieldData extends FieldData {
|
|
|
|
type: DatasetProfileInternalDmpEntitiesType;
|
|
|
|
multiAutoComplete: boolean;
|
2020-05-25 16:14:42 +02:00
|
|
|
autoCompleteType: number;
|
2019-07-30 12:35:06 +02:00
|
|
|
}
|
2019-07-30 13:31:41 +02:00
|
|
|
|
|
|
|
export interface DmpsAutoCompleteFieldData extends FieldData {
|
|
|
|
type: DatasetProfileInternalDmpEntitiesType;
|
|
|
|
multiAutoComplete: boolean;
|
|
|
|
}
|