From 6c0d9946eec776937e36af9953dcd099210a4993 Mon Sep 17 00:00:00 2001 From: annampak Date: Wed, 4 Oct 2017 12:39:45 +0300 Subject: [PATCH] Progress bar improvements, validators --- .../src/app/entities/common/rulestyle.ts | 3 +- .../src/app/form/dynamic-form.component.html | 3 +- .../src/app/form/dynamic-form.component.ts | 71 +++++++----- .../fields/dynamic-form-field.component.ts | 103 ++++++++++++------ .../src/app/form/fields/field-base.ts | 4 +- .../app/services/dataModelBuilder.service.ts | 4 +- .../src/app/services/field-control.service.ts | 8 +- 7 files changed, 121 insertions(+), 75 deletions(-) diff --git a/dmp-frontend/src/app/entities/common/rulestyle.ts b/dmp-frontend/src/app/entities/common/rulestyle.ts index b0c3b204a..5097a69db 100644 --- a/dmp-frontend/src/app/entities/common/rulestyle.ts +++ b/dmp-frontend/src/app/entities/common/rulestyle.ts @@ -1,5 +1,6 @@ export enum RuleStyle { existence, - regex + regex, + customValidation } \ No newline at end of file diff --git a/dmp-frontend/src/app/form/dynamic-form.component.html b/dmp-frontend/src/app/form/dynamic-form.component.html index ac74afb9a..6fb122208 100644 --- a/dmp-frontend/src/app/form/dynamic-form.component.html +++ b/dmp-frontend/src/app/form/dynamic-form.component.html @@ -50,11 +50,10 @@