mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-05-12 17:04:57 +00:00
form component fixes (#1726)
- fix ‘readonly highlighting when input fields loaded with values - Start Form raises base ‘FormLoaded’ event (including FormService emits)
This commit is contained in:
parent
2a14679603
commit
4dc99ae66a
3
.vscode/settings.json
vendored
3
.vscode/settings.json
vendored
@ -7,7 +7,8 @@
|
||||
"**/.DS_Store": true,
|
||||
"**/*.js": { "when": "$(basename).ts"},
|
||||
"**/*.js.map": { "when": "$(basename)"},
|
||||
"**/*.d.ts": { "when": "$(basename).ts"}
|
||||
"**/*.d.ts": { "when": "$(basename).ts"},
|
||||
"**/coverage": true
|
||||
},
|
||||
"editor.renderIndentGuides": true
|
||||
}
|
||||
|
@ -117,7 +117,7 @@ export class ActivitiStartForm extends ActivitiForm implements AfterViewChecked,
|
||||
this.form = this.parseForm(form);
|
||||
this.form.readOnly = this.readOnlyForm;
|
||||
// this.form.processDefinitionId = this.processDefinitionId;
|
||||
this.formLoaded.emit(this.form);
|
||||
this.onFormLoaded(this.form);
|
||||
},
|
||||
error => this.handleError(error)
|
||||
);
|
||||
@ -131,7 +131,7 @@ export class ActivitiStartForm extends ActivitiForm implements AfterViewChecked,
|
||||
this.formName = form.processDefinitionName;
|
||||
this.form = this.parseForm(form);
|
||||
this.form.readOnly = this.readOnlyForm;
|
||||
this.formLoaded.emit(this.form);
|
||||
this.onFormLoaded(this.form);
|
||||
},
|
||||
error => this.handleError(error)
|
||||
);
|
||||
|
@ -5,6 +5,7 @@
|
||||
type="text"
|
||||
[attr.id]="field.id"
|
||||
[attr.required]="isRequired()"
|
||||
[value]="field.value"
|
||||
[(ngModel)]="field.value"
|
||||
(ngModelChange)="checkVisibility(field)"
|
||||
[disabled]="field.readOnly"
|
||||
|
@ -7,6 +7,7 @@
|
||||
type="text"
|
||||
[attr.id]="field.id"
|
||||
[attr.required]="isRequired()"
|
||||
[value]="field.value"
|
||||
[(ngModel)]="field.value"
|
||||
(ngModelChange)="onDateChanged()"
|
||||
(onOk)="onDateSelected()"
|
||||
|
@ -6,6 +6,7 @@
|
||||
rows= "3"
|
||||
[attr.id]="field.id"
|
||||
[attr.required]="isRequired()"
|
||||
[value]="field.value"
|
||||
[(ngModel)]="field.value"
|
||||
(ngModelChange)="checkVisibility(field)"
|
||||
[disabled]="field.readOnly"
|
||||
|
@ -6,6 +6,7 @@
|
||||
pattern="-?[0-9]*(\.[0-9]+)?"
|
||||
[attr.id]="field.id"
|
||||
[attr.required]="isRequired()"
|
||||
[value]="field.value"
|
||||
[(ngModel)]="field.value"
|
||||
(ngModelChange)="checkVisibility(field)"
|
||||
[disabled]="field.readOnly"
|
||||
|
@ -5,6 +5,7 @@
|
||||
type="text"
|
||||
[attr.id]="field.id"
|
||||
[attr.required]="isRequired()"
|
||||
[value]="field.value"
|
||||
[(ngModel)]="field.value"
|
||||
(ngModelChange)="onFieldChanged(field)"
|
||||
[disabled]="field.readOnly"
|
||||
|
Loading…
x
Reference in New Issue
Block a user