tuain-ng-forms-lib 12.0.20 → 12.0.21
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 +7 -7
- package/bundles/tuain-ng-forms-lib.umd.js.map +1 -1
- package/esm2015/lib/components/elements/layout/element.component.js +8 -8
- package/fesm2015/tuain-ng-forms-lib.js +7 -7
- package/fesm2015/tuain-ng-forms-lib.js.map +1 -1
- package/lib/components/elements/layout/element.component.d.ts +2 -2
- package/package.json +1 -1
- package/tuain-ng-forms-lib.metadata.json +1 -1
package/README.md
CHANGED
|
@@ -485,22 +485,22 @@
|
|
|
485
485
|
}
|
|
486
486
|
ElementComponent.prototype.ngOnInit = function () {
|
|
487
487
|
var _a;
|
|
488
|
-
this.formConfig = (_a = this.
|
|
488
|
+
this.formConfig = (_a = this.element) === null || _a === void 0 ? void 0 : _a._formConfig;
|
|
489
489
|
this.start();
|
|
490
490
|
};
|
|
491
491
|
ElementComponent.prototype.start = function () { };
|
|
492
492
|
Object.defineProperty(ElementComponent.prototype, "visible", {
|
|
493
493
|
get: function () {
|
|
494
|
-
var _a
|
|
495
|
-
return (_a = this.
|
|
494
|
+
var _a;
|
|
495
|
+
return (_a = this.element) === null || _a === void 0 ? void 0 : _a.visibleOn(this.currentState);
|
|
496
496
|
},
|
|
497
497
|
enumerable: false,
|
|
498
498
|
configurable: true
|
|
499
499
|
});
|
|
500
500
|
Object.defineProperty(ElementComponent.prototype, "disabled", {
|
|
501
501
|
get: function () {
|
|
502
|
-
var _a
|
|
503
|
-
return !((_a = this.
|
|
502
|
+
var _a;
|
|
503
|
+
return !((_a = this.element) === null || _a === void 0 ? void 0 : _a.enabledOn(this.currentState));
|
|
504
504
|
},
|
|
505
505
|
enumerable: false,
|
|
506
506
|
configurable: true
|
|
@@ -514,8 +514,8 @@
|
|
|
514
514
|
},] }
|
|
515
515
|
];
|
|
516
516
|
ElementComponent.propDecorators = {
|
|
517
|
-
|
|
518
|
-
|
|
517
|
+
element: [{ type: core.Input }],
|
|
518
|
+
currentState: [{ type: core.Input }]
|
|
519
519
|
};
|
|
520
520
|
|
|
521
521
|
var FormErrorComponent = /** @class */ (function () {
|