tuain-ng-forms-lib 12.0.17 → 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
@@ -423,8 +423,15 @@
423
423
  FieldComponent.prototype.focus = function () { };
424
424
  FieldComponent.prototype.updateObject = function () {
425
425
  this.field._fieldValue = this.value;
426
+ };
427
+ FieldComponent.prototype.inputChanged = function () {
428
+ this.field._fieldValue = this.value;
426
429
  this.onChangeContent();
427
430
  };
431
+ FieldComponent.prototype.inputTyped = function () {
432
+ this.field._fieldValue = this.value;
433
+ this.onInputChange();
434
+ };
428
435
  FieldComponent.prototype.updateValue = function () {
429
436
  this.value = this.field._fieldValue;
430
437
  };
@@ -478,22 +485,22 @@
478
485
  }
479
486
  ElementComponent.prototype.ngOnInit = function () {
480
487
  var _a;
481
- 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;
482
489
  this.start();
483
490
  };
484
491
  ElementComponent.prototype.start = function () { };
485
492
  Object.defineProperty(ElementComponent.prototype, "visible", {
486
493
  get: function () {
487
- var _a, _b;
488
- 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);
489
496
  },
490
497
  enumerable: false,
491
498
  configurable: true
492
499
  });
493
500
  Object.defineProperty(ElementComponent.prototype, "disabled", {
494
501
  get: function () {
495
- var _a, _b;
496
- 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));
497
504
  },
498
505
  enumerable: false,
499
506
  configurable: true
@@ -507,8 +514,8 @@
507
514
  },] }
508
515
  ];
509
516
  ElementComponent.propDecorators = {
510
- formElement: [{ type: core.Input }],
511
- formManager: [{ type: core.Input }]
517
+ element: [{ type: core.Input }],
518
+ currentState: [{ type: core.Input }]
512
519
  };
513
520
 
514
521
  var FormErrorComponent = /** @class */ (function () {