@tetacom/ng-components 1.0.71 → 1.0.72

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.
@@ -11083,12 +11083,20 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.2", ngImpor
11083
11083
  /* accordion */
11084
11084
 
11085
11085
  class AutoPositionDirective {
11086
- constructor(_elementRef) {
11086
+ constructor(_elementRef, _zone) {
11087
11087
  this._elementRef = _elementRef;
11088
+ this._zone = _zone;
11088
11089
  this.fixed = 'fixed';
11090
+ this._alive = true;
11089
11091
  }
11090
11092
  ngAfterViewInit() {
11091
11093
  this.setPosition();
11094
+ this._zone.onStable.pipe(takeWhile(() => this._alive)).subscribe(() => {
11095
+ this.setPosition();
11096
+ });
11097
+ }
11098
+ ngOnDestroy() {
11099
+ this._alive = false;
11092
11100
  }
11093
11101
  setPosition() {
11094
11102
  const target = this._elementRef.nativeElement;
@@ -11120,14 +11128,14 @@ class AutoPositionDirective {
11120
11128
  PositionUtil.setElementPosition(target, position);
11121
11129
  }
11122
11130
  }
11123
- AutoPositionDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: AutoPositionDirective, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });
11131
+ AutoPositionDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: AutoPositionDirective, deps: [{ token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Directive });
11124
11132
  AutoPositionDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.0.2", type: AutoPositionDirective, selector: "[tetaAutoPosition]", inputs: { align: "align", verticalAlign: "verticalAlign" }, host: { properties: { "style.position": "this.fixed" } }, ngImport: i0 });
11125
11133
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: AutoPositionDirective, decorators: [{
11126
11134
  type: Directive,
11127
11135
  args: [{
11128
11136
  selector: '[tetaAutoPosition]'
11129
11137
  }]
11130
- }], ctorParameters: function () { return [{ type: i0.ElementRef }]; }, propDecorators: { align: [{
11138
+ }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.NgZone }]; }, propDecorators: { align: [{
11131
11139
  type: Input
11132
11140
  }], verticalAlign: [{
11133
11141
  type: Input