@tetacom/ng-components 1.0.140 → 1.0.142

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.
@@ -4177,7 +4177,7 @@ class TextFieldComponent {
4177
4177
  }
4178
4178
  keyPress(event) {
4179
4179
  if (event.key === 'Enter' || event.keyCode === 13) {
4180
- this.input.nativeElement.blur();
4180
+ this.emitBlur();
4181
4181
  }
4182
4182
  }
4183
4183
  emitBlur() {
@@ -6554,6 +6554,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.2", ngImpor
6554
6554
 
6555
6555
  class FormsUtil {
6556
6556
  static validateAllFormFields(formGroup) {
6557
+ formGroup.updateValueAndValidity();
6557
6558
  Object.keys(formGroup.controls).forEach((field) => {
6558
6559
  const control = formGroup.get(field);
6559
6560
  if (control instanceof UntypedFormControl) {
@@ -12188,14 +12189,22 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.2", ngImpor
12188
12189
  }] });
12189
12190
 
12190
12191
  class LoaderDirective {
12191
- constructor(_elementRef, _renderer, _document) {
12192
+ constructor(_elementRef, _renderer, _document, _zone) {
12192
12193
  this._elementRef = _elementRef;
12193
12194
  this._renderer = _renderer;
12194
12195
  this._document = _document;
12196
+ this._zone = _zone;
12195
12197
  this.appendToBody = false;
12196
12198
  this.mask = false;
12197
12199
  this._alive = true;
12198
12200
  this._element = this._elementRef.nativeElement;
12201
+ this._zone.onStable
12202
+ .pipe(takeWhile((_) => this._alive))
12203
+ .subscribe((_) => {
12204
+ if (this._loading && this._loader) {
12205
+ this.setPosition();
12206
+ }
12207
+ });
12199
12208
  }
12200
12209
  set tetaLoader(value) {
12201
12210
  this._loading = value;
@@ -12242,7 +12251,7 @@ class LoaderDirective {
12242
12251
  this._renderer.setStyle(this._loader, 'left', `${position.x + +position.width / 2}px`);
12243
12252
  }
12244
12253
  }
12245
- LoaderDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: LoaderDirective, deps: [{ token: i0.ElementRef }, { token: i0.Renderer2 }, { token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Directive });
12254
+ LoaderDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: LoaderDirective, deps: [{ token: i0.ElementRef }, { token: i0.Renderer2 }, { token: DOCUMENT }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Directive });
12246
12255
  LoaderDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.0.2", type: LoaderDirective, selector: "[tetaLoader]", inputs: { appendToBody: "appendToBody", mask: "mask", tetaLoader: "tetaLoader" }, ngImport: i0 });
12247
12256
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: LoaderDirective, decorators: [{
12248
12257
  type: Directive,
@@ -12252,7 +12261,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.2", ngImpor
12252
12261
  }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.Renderer2 }, { type: undefined, decorators: [{
12253
12262
  type: Inject,
12254
12263
  args: [DOCUMENT]
12255
- }] }]; }, propDecorators: { appendToBody: [{
12264
+ }] }, { type: i0.NgZone }]; }, propDecorators: { appendToBody: [{
12256
12265
  type: Input
12257
12266
  }], mask: [{
12258
12267
  type: Input