Fixed Related Dynamic Form Controls functionality after Angular 8 upgrade

This commit is contained in:
Giuseppe Digilio
2020-02-26 13:58:36 +01:00
parent 653cf8e921
commit 5d22ba7d36
3 changed files with 22 additions and 17 deletions

View File

@@ -1,8 +1,11 @@
import {
DynamicDatePickerModelConfig,
DynamicFormArrayModelConfig,
DynamicFormControlLayout,
DynamicFormGroupModelConfig,
DynamicSelectModelConfig,
DynamicFormGroupModelConfig, DynamicFormControlLayout,
MATCH_ENABLED,
OR_OPERATOR,
} from '@ng-dynamic-forms/core';
export const BITSTREAM_METADATA_FORM_GROUP_CONFIG: DynamicFormGroupModelConfig = {
@@ -15,7 +18,7 @@ export const BITSTREAM_METADATA_FORM_GROUP_LAYOUT: DynamicFormControlLayout = {
label: 'col-form-label'
},
grid: {
label: 'col-sm-3'
label: 'col-sm-3'
}
};
@@ -52,8 +55,8 @@ export const BITSTREAM_FORM_ACCESS_CONDITION_START_DATE_CONFIG: DynamicDatePicke
toggleIcon: 'far fa-calendar-alt',
relations: [
{
match: 'ENABLE',
operator: 'OR',
match: MATCH_ENABLED,
operator: OR_OPERATOR,
when: []
}
],
@@ -83,8 +86,8 @@ export const BITSTREAM_FORM_ACCESS_CONDITION_END_DATE_CONFIG: DynamicDatePickerM
toggleIcon: 'far fa-calendar-alt',
relations: [
{
match: 'ENABLE',
operator: 'OR',
match: MATCH_ENABLED,
operator: OR_OPERATOR,
when: []
}
],
@@ -112,8 +115,8 @@ export const BITSTREAM_FORM_ACCESS_CONDITION_GROUPS_CONFIG: DynamicSelectModelCo
options: [],
relations: [
{
match: 'ENABLE',
operator: 'OR',
match: MATCH_ENABLED,
operator: OR_OPERATOR,
when: []
}
],