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 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
@@ -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.onInputChange();
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.formElement) === null || _a === void 0 ? void 0 : _a._formConfig;
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, _b;
496
- 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);
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, _b;
504
- 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));
505
504
  },
506
505
  enumerable: false,
507
506
  configurable: true
@@ -515,8 +514,9 @@
515
514
  },] }
516
515
  ];
517
516
  ElementComponent.propDecorators = {
518
- formElement: [{ type: core.Input }],
519
- formManager: [{ type: core.Input }]
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 () {