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 CHANGED
@@ -123,7 +123,7 @@ This component allows to receive the following information
123
123
 
124
124
  | Input Name | Description |
125
125
  | --- | ----------- |
126
- | formElement | |
126
+ | element | |
127
127
  | formManager | |
128
128
 
129
129
  #### FormErrorComponent
@@ -485,22 +485,22 @@
485
485
  }
486
486
  ElementComponent.prototype.ngOnInit = function () {
487
487
  var _a;
488
- this.formConfig = (_a = this.formElement) === null || _a === void 0 ? void 0 : _a._formConfig;
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, _b;
495
- return (_a = this.formElement) === null || _a === void 0 ? void 0 : _a.visibleOn((_b = this.formManager) === null || _b === void 0 ? void 0 : _b.currentState);
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, _b;
503
- return !((_a = this.formElement) === null || _a === void 0 ? void 0 : _a.enabledOn((_b = this.formManager) === null || _b === void 0 ? void 0 : _b.currentState));
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
- formElement: [{ type: core.Input }],
518
- formManager: [{ type: core.Input }]
517
+ element: [{ type: core.Input }],
518
+ currentState: [{ type: core.Input }]
519
519
  };
520
520
 
521
521
  var FormErrorComponent = /** @class */ (function () {