@acorex/components 16.20.3 → 16.20.4
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.
|
@@ -733,14 +733,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.3", ngImpor
|
|
|
733
733
|
}] } });
|
|
734
734
|
|
|
735
735
|
class AXLoadingService {
|
|
736
|
-
injection;
|
|
737
736
|
overlayService;
|
|
738
737
|
_stack = [];
|
|
739
|
-
constructor(
|
|
740
|
-
this.injection = injection;
|
|
738
|
+
constructor(overlayService) {
|
|
741
739
|
this.overlayService = overlayService;
|
|
742
740
|
}
|
|
743
741
|
show(location) {
|
|
742
|
+
debugger;
|
|
744
743
|
let host;
|
|
745
744
|
if (location) {
|
|
746
745
|
host = location.closest('.ax-loading-host');
|
|
@@ -749,28 +748,28 @@ class AXLoadingService {
|
|
|
749
748
|
const com = this.overlayService.show(AXLoadingIndicatorComponent, {}, {
|
|
750
749
|
closeOnClickOutside: false,
|
|
751
750
|
containerElement,
|
|
752
|
-
hasBackdrop:
|
|
751
|
+
hasBackdrop: false,
|
|
753
752
|
backdropClass: ['ax-loading-overlay'],
|
|
754
|
-
scroll: 'block'
|
|
753
|
+
scroll: 'block',
|
|
755
754
|
});
|
|
756
755
|
const id = new Date().getTime();
|
|
757
756
|
this._stack.push({ id, component: com });
|
|
758
757
|
return id;
|
|
759
758
|
}
|
|
760
759
|
hide(id) {
|
|
761
|
-
const f = this._stack.find(c => c.id === id);
|
|
760
|
+
const f = this._stack.find((c) => c.id === id);
|
|
762
761
|
if (f) {
|
|
763
762
|
f.component.dispose();
|
|
764
|
-
this._stack = this._stack.filter(c => c.id !== id);
|
|
763
|
+
this._stack = this._stack.filter((c) => c.id !== id);
|
|
765
764
|
}
|
|
766
765
|
}
|
|
767
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.3", ngImport: i0, type: AXLoadingService, deps: [{ token:
|
|
766
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.3", ngImport: i0, type: AXLoadingService, deps: [{ token: AXOverlayService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
768
767
|
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.3", ngImport: i0, type: AXLoadingService, providedIn: 'root' });
|
|
769
768
|
}
|
|
770
769
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.3", ngImport: i0, type: AXLoadingService, decorators: [{
|
|
771
770
|
type: Injectable,
|
|
772
771
|
args: [{ providedIn: 'root' }]
|
|
773
|
-
}], ctorParameters: () => [{ type:
|
|
772
|
+
}], ctorParameters: () => [{ type: AXOverlayService }] });
|
|
774
773
|
|
|
775
774
|
class AXPageComponent {
|
|
776
775
|
el;
|