@paperless/angular 2.0.1-beta.169 → 2.0.1-beta.170
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm2020/lib/directives/p-field.directive.mjs +10 -3
- package/fesm2015/paperless-angular.mjs +9 -2
- package/fesm2015/paperless-angular.mjs.map +1 -1
- package/fesm2020/paperless-angular.mjs +9 -2
- package/fesm2020/paperless-angular.mjs.map +1 -1
- package/lib/directives/p-field.directive.d.ts +1 -0
- package/package.json +1 -1
|
@@ -360,9 +360,16 @@ class FieldDirective extends BaseValueAccessor {
|
|
|
360
360
|
constructor(el) {
|
|
361
361
|
super(el);
|
|
362
362
|
}
|
|
363
|
+
handleChangeEvent(value) {
|
|
364
|
+
console.log(this.lastValue, value);
|
|
365
|
+
this.lastValue = value;
|
|
366
|
+
this.onChange(value);
|
|
367
|
+
}
|
|
363
368
|
writeValue(value) {
|
|
364
|
-
|
|
365
|
-
|
|
369
|
+
value = value === null ? JSON.parse(value) : value;
|
|
370
|
+
console.log(this.lastValue, value);
|
|
371
|
+
this.el.nativeElement.value = value;
|
|
372
|
+
this.lastValue = value;
|
|
366
373
|
}
|
|
367
374
|
}
|
|
368
375
|
FieldDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FieldDirective, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });
|