Merged dynamic form module

This commit is contained in:
Giuseppe Digilio
2018-05-09 12:14:18 +02:00
parent 99f8d4f24d
commit 7a32d18b1b
111 changed files with 6778 additions and 45 deletions

View File

@@ -0,0 +1,37 @@
import { isEqual } from 'lodash';
export class FormFieldPreviousValueObject {
private _path;
private _value;
constructor(path: any[] = null, value: any = null) {
this._path = path;
this._value = value;
}
get path() {
return this._path;
}
set path(path: any[]) {
this._path = path;
}
get value() {
return this._value;
}
set value(value: any) {
this._value = value;
}
public delete() {
this._value = null;
this._path = null;
}
public isPathEqual(path) {
return this._path && isEqual(this._path, path);
}
}