mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
Add the default validation array (#4852)
This commit is contained in:
committed by
Eugenio Romano
parent
334ebd1256
commit
f84db2216b
@@ -18,7 +18,7 @@
|
|||||||
import {
|
import {
|
||||||
TabModel, FormWidgetModel, FormOutcomeModel, FormValues,
|
TabModel, FormWidgetModel, FormOutcomeModel, FormValues,
|
||||||
FormWidgetModelCache, FormFieldModel, ContainerModel, FormFieldTypes,
|
FormWidgetModelCache, FormFieldModel, ContainerModel, FormFieldTypes,
|
||||||
ValidateFormFieldEvent, FormFieldValidator, FormFieldTemplates, FormBaseModel } from '@alfresco/adf-core';
|
ValidateFormFieldEvent, FormFieldValidator, FormFieldTemplates, FormBaseModel, FORM_FIELD_VALIDATORS } from '@alfresco/adf-core';
|
||||||
import { FormCloudService } from '../services/form-cloud.service';
|
import { FormCloudService } from '../services/form-cloud.service';
|
||||||
import { TaskVariableCloud } from './task-variable-cloud.model';
|
import { TaskVariableCloud } from './task-variable-cloud.model';
|
||||||
|
|
||||||
@@ -46,7 +46,7 @@ export class FormCloud extends FormBaseModel {
|
|||||||
fields: FormWidgetModel[] = [];
|
fields: FormWidgetModel[] = [];
|
||||||
outcomes: FormOutcomeModel[] = [];
|
outcomes: FormOutcomeModel[] = [];
|
||||||
customFieldTemplates: FormFieldTemplates = {};
|
customFieldTemplates: FormFieldTemplates = {};
|
||||||
fieldValidators: FormFieldValidator[] = [];
|
fieldValidators: FormFieldValidator[] = [...FORM_FIELD_VALIDATORS];
|
||||||
|
|
||||||
constructor(formCloudRepresentationJSON?: any, formData?: TaskVariableCloud[], readOnly: boolean = false, protected formService?: FormCloudService) {
|
constructor(formCloudRepresentationJSON?: any, formData?: TaskVariableCloud[], readOnly: boolean = false, protected formService?: FormCloudService) {
|
||||||
super();
|
super();
|
||||||
|
Reference in New Issue
Block a user