mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-31 17:38:48 +00:00
AAE-20480 Full Screen User Task Forms (#9341)
* AAE-20480 Full Screen User Task Forms * AAE-20480 Attend review comments * AAE-20480 Remove leftovers * AAE-20480 Enable changing the display mode from task-form-cloud * AAE-20480 Fix fullscreen mode header * AAE-20480 Fix review comments * AAE-20480 Allow hiding the full screen toolbar by configuration * AAE-20480 Add review comments * AAE-20480 Create display mode service
This commit is contained in:
@@ -26,6 +26,7 @@ export interface FormRepresentation {
|
||||
version?: number;
|
||||
formDefinition?: FormDefinition;
|
||||
standAlone?: boolean;
|
||||
displayMode?: FormCloudDisplayMode;
|
||||
}
|
||||
|
||||
export interface FormTab {
|
||||
@@ -59,7 +60,7 @@ export interface Container {
|
||||
}
|
||||
|
||||
export type FormFieldRepresentation = (DateField | DateTimeField | TextField | AttachFileField | DropDownField |
|
||||
RadioField | TypeaheadField | PeopleField | AmountField | NumberField | CheckboxField | HyperlinkField );
|
||||
RadioField | TypeaheadField | PeopleField | AmountField | NumberField | CheckboxField | HyperlinkField);
|
||||
|
||||
export interface AttachFileField extends FormField {
|
||||
required: boolean;
|
||||
@@ -233,3 +234,28 @@ export enum FormFieldType {
|
||||
displayText = 'readonly-text',
|
||||
fileViewer = 'file-viewer'
|
||||
}
|
||||
|
||||
export interface FormCloudDisplayModeConfigurationOptions {
|
||||
onCompleteTask(id?: string): void;
|
||||
onSaveTask(id?: string): void;
|
||||
onDisplayModeOn(id?: string): void;
|
||||
onDisplayModeOff(id?: string): void;
|
||||
[key: string]: any;
|
||||
};
|
||||
|
||||
export interface FormCloudDisplayModeConfiguration {
|
||||
displayMode: FormCloudDisplayMode;
|
||||
options?: FormCloudDisplayModeConfigurationOptions;
|
||||
default?: boolean;
|
||||
};
|
||||
|
||||
// eslint-disable-next-line no-shadow
|
||||
export enum FormCloudDisplayMode {
|
||||
inline = 'inline',
|
||||
fullScreen = 'fullScreen'
|
||||
};
|
||||
|
||||
export interface FormCloudDisplayModeChange {
|
||||
displayMode: FormCloudDisplayMode;
|
||||
id?: string;
|
||||
};
|
||||
|
Reference in New Issue
Block a user