tuain-ng-forms-lib 12.0.18 → 12.0.22
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/README.md +1 -1
- package/bundles/tuain-ng-forms-lib.umd.js +9 -9
- package/bundles/tuain-ng-forms-lib.umd.js.map +1 -1
- package/esm2015/lib/components/elements/field.component.js +2 -3
- package/esm2015/lib/components/elements/layout/element.component.js +9 -8
- package/fesm2015/tuain-ng-forms-lib.js +9 -9
- package/fesm2015/tuain-ng-forms-lib.js.map +1 -1
- package/lib/components/elements/layout/element.component.d.ts +3 -2
- package/package.json +1 -1
- package/tuain-ng-forms-lib.metadata.json +1 -1
package/README.md
CHANGED
|
@@ -423,11 +423,10 @@
|
|
|
423
423
|
FieldComponent.prototype.focus = function () { };
|
|
424
424
|
FieldComponent.prototype.updateObject = function () {
|
|
425
425
|
this.field._fieldValue = this.value;
|
|
426
|
-
this.onChangeContent();
|
|
427
426
|
};
|
|
428
427
|
FieldComponent.prototype.inputChanged = function () {
|
|
429
428
|
this.field._fieldValue = this.value;
|
|
430
|
-
this.
|
|
429
|
+
this.onChangeContent();
|
|
431
430
|
};
|
|
432
431
|
FieldComponent.prototype.inputTyped = function () {
|
|
433
432
|
this.field._fieldValue = this.value;
|
|
@@ -486,22 +485,22 @@
|
|
|
486
485
|
}
|
|
487
486
|
ElementComponent.prototype.ngOnInit = function () {
|
|
488
487
|
var _a;
|
|
489
|
-
this.formConfig = (_a = this.
|
|
488
|
+
this.formConfig = (_a = this.element) === null || _a === void 0 ? void 0 : _a._formConfig;
|
|
490
489
|
this.start();
|
|
491
490
|
};
|
|
492
491
|
ElementComponent.prototype.start = function () { };
|
|
493
492
|
Object.defineProperty(ElementComponent.prototype, "visible", {
|
|
494
493
|
get: function () {
|
|
495
|
-
var _a
|
|
496
|
-
return (_a = this.
|
|
494
|
+
var _a;
|
|
495
|
+
return (_a = this.element) === null || _a === void 0 ? void 0 : _a.visibleOn(this.currentState);
|
|
497
496
|
},
|
|
498
497
|
enumerable: false,
|
|
499
498
|
configurable: true
|
|
500
499
|
});
|
|
501
500
|
Object.defineProperty(ElementComponent.prototype, "disabled", {
|
|
502
501
|
get: function () {
|
|
503
|
-
var _a
|
|
504
|
-
return !((_a = this.
|
|
502
|
+
var _a;
|
|
503
|
+
return !((_a = this.element) === null || _a === void 0 ? void 0 : _a.enabledOn(this.currentState));
|
|
505
504
|
},
|
|
506
505
|
enumerable: false,
|
|
507
506
|
configurable: true
|
|
@@ -515,8 +514,9 @@
|
|
|
515
514
|
},] }
|
|
516
515
|
];
|
|
517
516
|
ElementComponent.propDecorators = {
|
|
518
|
-
|
|
519
|
-
|
|
517
|
+
element: [{ type: core.Input }],
|
|
518
|
+
form: [{ type: core.Input }],
|
|
519
|
+
currentState: [{ type: core.Input }]
|
|
520
520
|
};
|
|
521
521
|
|
|
522
522
|
var FormErrorComponent = /** @class */ (function () {
|