mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-07 10:04:11 +00:00
Merge branch 'DSpace:main' into DA-1767
This commit is contained in:
@@ -2,6 +2,7 @@ import { Subject } from 'rxjs';
|
|||||||
import {
|
import {
|
||||||
DynamicCheckboxGroupModel,
|
DynamicCheckboxGroupModel,
|
||||||
DynamicFormControlLayout,
|
DynamicFormControlLayout,
|
||||||
|
DynamicFormControlRelation,
|
||||||
DynamicFormGroupModelConfig,
|
DynamicFormGroupModelConfig,
|
||||||
serializable
|
serializable
|
||||||
} from '@ng-dynamic-forms/core';
|
} from '@ng-dynamic-forms/core';
|
||||||
@@ -15,6 +16,7 @@ export interface DynamicListCheckboxGroupModelConfig extends DynamicFormGroupMod
|
|||||||
groupLength?: number;
|
groupLength?: number;
|
||||||
repeatable: boolean;
|
repeatable: boolean;
|
||||||
value?: any;
|
value?: any;
|
||||||
|
typeBindRelations?: DynamicFormControlRelation[];
|
||||||
}
|
}
|
||||||
|
|
||||||
export class DynamicListCheckboxGroupModel extends DynamicCheckboxGroupModel {
|
export class DynamicListCheckboxGroupModel extends DynamicCheckboxGroupModel {
|
||||||
@@ -23,6 +25,7 @@ export class DynamicListCheckboxGroupModel extends DynamicCheckboxGroupModel {
|
|||||||
@serializable() repeatable: boolean;
|
@serializable() repeatable: boolean;
|
||||||
@serializable() groupLength: number;
|
@serializable() groupLength: number;
|
||||||
@serializable() _value: VocabularyEntry[];
|
@serializable() _value: VocabularyEntry[];
|
||||||
|
@serializable() typeBindRelations: DynamicFormControlRelation[];
|
||||||
isListGroup = true;
|
isListGroup = true;
|
||||||
valueUpdates: Subject<any>;
|
valueUpdates: Subject<any>;
|
||||||
|
|
||||||
@@ -37,6 +40,7 @@ export class DynamicListCheckboxGroupModel extends DynamicCheckboxGroupModel {
|
|||||||
this.valueUpdates = new Subject<any>();
|
this.valueUpdates = new Subject<any>();
|
||||||
this.valueUpdates.subscribe((value: VocabularyEntry | VocabularyEntry[]) => this.value = value);
|
this.valueUpdates.subscribe((value: VocabularyEntry | VocabularyEntry[]) => this.value = value);
|
||||||
this.valueUpdates.next(config.value);
|
this.valueUpdates.next(config.value);
|
||||||
|
this.typeBindRelations = config.typeBindRelations ? config.typeBindRelations : [];
|
||||||
}
|
}
|
||||||
|
|
||||||
get hasAuthority(): boolean {
|
get hasAuthority(): boolean {
|
||||||
|
Reference in New Issue
Block a user