tuain-ng-forms-lib 12.0.8 → 12.0.9
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/bundles/tuain-ng-forms-lib.umd.js +9 -1
- package/bundles/tuain-ng-forms-lib.umd.js.map +1 -1
- package/esm2015/lib/components/elements/field.component.js +10 -2
- package/fesm2015/tuain-ng-forms-lib.js +9 -1
- package/fesm2015/tuain-ng-forms-lib.js.map +1 -1
- package/lib/components/elements/field.component.d.ts +3 -0
- package/package.json +1 -1
- package/tuain-ng-forms-lib.metadata.json +1 -1
|
@@ -372,6 +372,7 @@
|
|
|
372
372
|
return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
|
|
373
373
|
}
|
|
374
374
|
|
|
375
|
+
var VALUE = '';
|
|
375
376
|
var FieldComponent = /** @class */ (function () {
|
|
376
377
|
function FieldComponent() {
|
|
377
378
|
}
|
|
@@ -390,13 +391,20 @@
|
|
|
390
391
|
this.fieldObject.attributeChange.subscribe(function (event) {
|
|
391
392
|
var fieldAttr = event.name, value = event.value;
|
|
392
393
|
var compAttr = _this.formConfig.componentFieldAttrMap[fieldAttr];
|
|
393
|
-
|
|
394
|
+
if (compAttr === VALUE) {
|
|
395
|
+
_this.updateValue();
|
|
396
|
+
}
|
|
397
|
+
else if (_this.hasOwnProperty(compAttr)) {
|
|
398
|
+
_this[compAttr] = value;
|
|
399
|
+
}
|
|
394
400
|
});
|
|
395
401
|
}
|
|
396
402
|
this.start();
|
|
397
403
|
};
|
|
398
404
|
FieldComponent.prototype.start = function () { };
|
|
399
405
|
FieldComponent.prototype.focus = function () { };
|
|
406
|
+
FieldComponent.prototype.updateValue = function () { };
|
|
407
|
+
FieldComponent.prototype.updateObject = function () { };
|
|
400
408
|
FieldComponent.prototype.onInputChange = function () {
|
|
401
409
|
var _this = this;
|
|
402
410
|
setTimeout(function () { return _this.fieldObject.notifyEditionPartial(); }, 50);
|