@tetacom/ng-components 1.0.141 → 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.
- package/directive/loader/loader.directive.d.ts +3 -2
- package/esm2020/directive/loader/loader.directive.mjs +13 -4
- package/fesm2015/tetacom-ng-components.mjs +11 -3
- package/fesm2015/tetacom-ng-components.mjs.map +1 -1
- package/fesm2020/tetacom-ng-components.mjs +11 -3
- package/fesm2020/tetacom-ng-components.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -12189,14 +12189,22 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.2", ngImpor
|
|
|
12189
12189
|
}] });
|
|
12190
12190
|
|
|
12191
12191
|
class LoaderDirective {
|
|
12192
|
-
constructor(_elementRef, _renderer, _document) {
|
|
12192
|
+
constructor(_elementRef, _renderer, _document, _zone) {
|
|
12193
12193
|
this._elementRef = _elementRef;
|
|
12194
12194
|
this._renderer = _renderer;
|
|
12195
12195
|
this._document = _document;
|
|
12196
|
+
this._zone = _zone;
|
|
12196
12197
|
this.appendToBody = false;
|
|
12197
12198
|
this.mask = false;
|
|
12198
12199
|
this._alive = true;
|
|
12199
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
|
+
});
|
|
12200
12208
|
}
|
|
12201
12209
|
set tetaLoader(value) {
|
|
12202
12210
|
this._loading = value;
|
|
@@ -12243,7 +12251,7 @@ class LoaderDirective {
|
|
|
12243
12251
|
this._renderer.setStyle(this._loader, 'left', `${position.x + +position.width / 2}px`);
|
|
12244
12252
|
}
|
|
12245
12253
|
}
|
|
12246
|
-
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 });
|
|
12247
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 });
|
|
12248
12256
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: LoaderDirective, decorators: [{
|
|
12249
12257
|
type: Directive,
|
|
@@ -12253,7 +12261,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.2", ngImpor
|
|
|
12253
12261
|
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.Renderer2 }, { type: undefined, decorators: [{
|
|
12254
12262
|
type: Inject,
|
|
12255
12263
|
args: [DOCUMENT]
|
|
12256
|
-
}] }]; }, propDecorators: { appendToBody: [{
|
|
12264
|
+
}] }, { type: i0.NgZone }]; }, propDecorators: { appendToBody: [{
|
|
12257
12265
|
type: Input
|
|
12258
12266
|
}], mask: [{
|
|
12259
12267
|
type: Input
|