ngx-spinner
Advanced tools
Comparing version 9.0.2 to 10.0.0
@@ -68,2 +68,2 @@ export const LOADERS = { | ||
} | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibmd4LXNwaW5uZXIuZW51bS5qcyIsInNvdXJjZVJvb3QiOiJuZzovL25neC1zcGlubmVyLyIsInNvdXJjZXMiOlsibGliL25neC1zcGlubmVyLmVudW0udHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsTUFBTSxDQUFDLE1BQU0sT0FBTyxHQUFHO0lBQ3JCLFlBQVksRUFBRSxFQUFFO0lBQ2hCLFdBQVcsRUFBRSxDQUFDO0lBQ2QsV0FBVyxFQUFFLENBQUM7SUFDZCxhQUFhLEVBQUUsQ0FBQztJQUNoQixtQkFBbUIsRUFBRSxDQUFDO0lBQ3RCLGtCQUFrQixFQUFFLENBQUM7SUFDckIsMkJBQTJCLEVBQUUsQ0FBQztJQUM5Qix3QkFBd0IsRUFBRSxDQUFDO0lBQzNCLG1CQUFtQixFQUFFLENBQUM7SUFDdEIsV0FBVyxFQUFFLENBQUM7SUFDZCxjQUFjLEVBQUUsQ0FBQztJQUNqQixnQkFBZ0IsRUFBRSxDQUFDO0lBQ25CLGlCQUFpQixFQUFFLENBQUM7SUFDcEIsb0JBQW9CLEVBQUUsQ0FBQztJQUN2QixZQUFZLEVBQUUsQ0FBQztJQUNmLGlCQUFpQixFQUFFLENBQUM7SUFDcEIsaUJBQWlCLEVBQUUsQ0FBQztJQUNwQixhQUFhLEVBQUUsQ0FBQztJQUNoQixtQkFBbUIsRUFBRSxDQUFDO0lBQ3RCLFlBQVksRUFBRSxDQUFDO0lBQ2YscUJBQXFCLEVBQUUsQ0FBQztJQUN4QixrQkFBa0IsRUFBRSxDQUFDO0lBQ3JCLG1CQUFtQixFQUFFLENBQUM7SUFDdEIsNEJBQTRCLEVBQUUsQ0FBQztJQUMvQixXQUFXLEVBQUUsQ0FBQztJQUNkLHFCQU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kRFWDogOTk5OTksXG59O1xuXG5leHBvcnQgY29uc3QgUFJJTUFSWV9TUElOTkVSID0gJ3ByaW1hcnknO1xuXG5leHBvcnQgdHlwZSBTaXplID0gJ2RlZmF1bHQnIHwgJ3NtYWxsJyB8ICdtZWRpdW0nIHwgJ2xhcmdlJztcblxuZXhwb3J0IGludGVyZmFjZSBTcGlubmVyIHtcbiAgYmRDb2xvcj86IHN0cmluZztcbiAgc2l6ZT86IFNpemU7XG4gIGNvbG9yPzogc3RyaW5nO1xuICB0eXBlPzogc3RyaW5nO1xuICBmdWxsU2NyZWVuPzogYm9vbGVhbjtcbiAgekluZGV4PzogbnVtYmVyO1xuICB0ZW1wbGF0ZT86IHN0cmluZztcbn1cblxuZXhwb3J0IGNsYXNzIE5neFNwaW5uZXIge1xuICBuYW1lOiBzdHJpbmc7XG4gIGJkQ29sb3I6IHN0cmluZztcbiAgc2l6ZTogU2l6ZTtcbiAgY29sb3I6IHN0cmluZztcbiAgdHlwZTogc3RyaW5nO1xuICBjbGFzczogc3RyaW5nO1xuICBkaXZDb3VudDogbnVtYmVyO1xuICBkaXZBcnJheTogQXJyYXk8bnVtYmVyPjtcbiAgZnVsbFNjcmVlbjogYm9vbGVhbjtcbiAgc2hvdzogYm9vbGVhbjtcbiAgekluZGV4OiBudW1iZXI7XG4gIHRlbXBsYXRlOiBzdHJpbmc7XG5cbiAgY29uc3RydWN0b3IoaW5pdD86IFBhcnRpYWw8Tmd4U3Bpbm5lcj4pIHtcbiAgICBPYmplY3QuYXNzaWduKHRoaXMsIGluaXQpO1xuICB9XG59XG4iXX0= |
@@ -1,17 +0,16 @@ | ||
import { __decorate } from "tslib"; | ||
import { NgModule } from '@angular/core'; | ||
import { CommonModule } from '@angular/common'; | ||
import { NgxSpinnerComponent } from './ngx-spinner.component'; | ||
let NgxSpinnerModule = class NgxSpinnerModule { | ||
}; | ||
NgxSpinnerModule = __decorate([ | ||
NgModule({ | ||
imports: [ | ||
CommonModule | ||
], | ||
declarations: [NgxSpinnerComponent], | ||
exports: [NgxSpinnerComponent] | ||
}) | ||
], NgxSpinnerModule); | ||
export { NgxSpinnerModule }; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibmd4LXNwaW5uZXIubW9kdWxlLmpzIiwic291cmNlUm9vdCI6Im5nOi8vbmd4LXNwaW5uZXIvIiwic291cmNlcyI6WyJsaWIvbmd4LXNwaW5uZXIubW9kdWxlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFBQSxPQUFPLEVBQUUsUUFBUSxFQUFFLE1BQU0sZUFBZSxDQUFDO0FBQ3pDLE9BQU8sRUFBRSxZQUFZLEVBQUUsTUFBTSxpQkFBaUIsQ0FBQztBQUMvQyxPQUFPLEVBQUUsbUJBQW1CLEVBQUUsTUFBTSx5QkFBeUIsQ0FBQztBQVM5RCxJQUFhLGdCQUFnQixHQUE3QixNQUFhLGdCQUFnQjtDQUFJLENBQUE7QUFBcEIsZ0JBQWdCO0lBUDVCLFFBQVEsQ0FBQztRQUNSLE9BQU8sRUFBRTtZQUNQLFlBQVk7U0FDYjtRQUNELFlBQVksRUFBRSxDQUFDLG1CQUFtQixDQUFDO1FBQ25DLE9BQU8sRUFBRSxDQUFDLG1CQUFtQixDQUFDO0tBQy9CLENBQUM7R0FDVyxnQkFBZ0IsQ0FBSTtTQUFwQixnQkFBZ0IiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBOZ01vZHVsZSB9IGZyb20gJ0Bhbmd1bGFyL2NvcmUnO1xuaW1wb3J0IHsgQ29tbW9uTW9kdWxlIH0gZnJvbSAnQGFuZ3VsYXIvY29tbW9uJztcbmltcG9ydCB7IE5neFNwaW5uZXJDb21wb25lbnQgfSBmcm9tICcuL25neC1zcGlubmVyLmNvbXBvbmVudCc7XG5cbkBOZ01vZHVsZSh7XG4gIGltcG9ydHM6IFtcbiAgICBDb21tb25Nb2R1bGVcbiAgXSxcbiAgZGVjbGFyYXRpb25zOiBbTmd4U3Bpbm5lckNvbXBvbmVudF0sXG4gIGV4cG9ydHM6IFtOZ3hTcGlubmVyQ29tcG9uZW50XVxufSlcbmV4cG9ydCBjbGFzcyBOZ3hTcGlubmVyTW9kdWxlIHsgfVxuIl19 | ||
import { SafeHtmlPipe } from './safe-html.pipe'; | ||
export class NgxSpinnerModule { | ||
} | ||
NgxSpinnerModule.decorators = [ | ||
{ type: NgModule, args: [{ | ||
imports: [ | ||
CommonModule | ||
], | ||
declarations: [NgxSpinnerComponent, SafeHtmlPipe], | ||
exports: [NgxSpinnerComponent] | ||
},] } | ||
]; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibmd4LXNwaW5uZXIubW9kdWxlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vcHJvamVjdHMvbmd4LXNwaW5uZXIvc3JjL2xpYi9uZ3gtc3Bpbm5lci5tb2R1bGUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLFFBQVEsRUFBRSxNQUFNLGVBQWUsQ0FBQztBQUN6QyxPQUFPLEVBQUUsWUFBWSxFQUFFLE1BQU0saUJBQWlCLENBQUM7QUFDL0MsT0FBTyxFQUFFLG1CQUFtQixFQUFFLE1BQU0seUJBQXlCLENBQUM7QUFDOUQsT0FBTyxFQUFFLFlBQVksRUFBRSxNQUFNLGtCQUFrQixDQUFDO0FBU2hELE1BQU0sT0FBTyxnQkFBZ0I7OztZQVA1QixRQUFRLFNBQUM7Z0JBQ1IsT0FBTyxFQUFFO29CQUNQLFlBQVk7aUJBQ2I7Z0JBQ0QsWUFBWSxFQUFFLENBQUMsbUJBQW1CLEVBQUUsWUFBWSxDQUFDO2dCQUNqRCxPQUFPLEVBQUUsQ0FBQyxtQkFBbUIsQ0FBQzthQUMvQiIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IE5nTW9kdWxlIH0gZnJvbSAnQGFuZ3VsYXIvY29yZSc7XG5pbXBvcnQgeyBDb21tb25Nb2R1bGUgfSBmcm9tICdAYW5ndWxhci9jb21tb24nO1xuaW1wb3J0IHsgTmd4U3Bpbm5lckNvbXBvbmVudCB9IGZyb20gJy4vbmd4LXNwaW5uZXIuY29tcG9uZW50JztcbmltcG9ydCB7IFNhZmVIdG1sUGlwZSB9IGZyb20gJy4vc2FmZS1odG1sLnBpcGUnO1xuXG5ATmdNb2R1bGUoe1xuICBpbXBvcnRzOiBbXG4gICAgQ29tbW9uTW9kdWxlXG4gIF0sXG4gIGRlY2xhcmF0aW9uczogW05neFNwaW5uZXJDb21wb25lbnQsIFNhZmVIdG1sUGlwZV0sXG4gIGV4cG9ydHM6IFtOZ3hTcGlubmVyQ29tcG9uZW50XVxufSlcbmV4cG9ydCBjbGFzcyBOZ3hTcGlubmVyTW9kdWxlIHsgfVxuIl19 |
@@ -1,8 +0,7 @@ | ||
import { __decorate, __metadata } from "tslib"; | ||
import { Injectable } from '@angular/core'; | ||
import { ReplaySubject } from 'rxjs'; | ||
import { BehaviorSubject } from 'rxjs'; | ||
import { filter } from 'rxjs/operators'; | ||
import { NgxSpinner, PRIMARY_SPINNER } from './ngx-spinner.enum'; | ||
import * as i0 from "@angular/core"; | ||
let NgxSpinnerService = class NgxSpinnerService { | ||
export class NgxSpinnerService { | ||
/** | ||
@@ -18,3 +17,4 @@ * Creates an instance of NgxSpinnerService. | ||
*/ | ||
this.spinnerObservable = new ReplaySubject(1); | ||
// private spinnerObservable = new ReplaySubject<NgxSpinner>(1); | ||
this.spinnerObservable = new BehaviorSubject(null); | ||
} | ||
@@ -34,14 +34,16 @@ /** | ||
show(name = PRIMARY_SPINNER, spinner) { | ||
const showPromise = new Promise((resolve, _reject) => { | ||
if (spinner && Object.keys(spinner).length) { | ||
spinner['name'] = name; | ||
this.spinnerObservable.next(new NgxSpinner(Object.assign(Object.assign({}, spinner), { show: true }))); | ||
resolve(true); | ||
} | ||
else { | ||
this.spinnerObservable.next(new NgxSpinner({ name, show: true })); | ||
resolve(true); | ||
} | ||
}); | ||
return showPromise; | ||
setTimeout(() => { | ||
const showPromise = new Promise((resolve, _reject) => { | ||
if (spinner && Object.keys(spinner).length) { | ||
spinner['name'] = name; | ||
this.spinnerObservable.next(new NgxSpinner(Object.assign(Object.assign({}, spinner), { show: true }))); | ||
resolve(true); | ||
} | ||
else { | ||
this.spinnerObservable.next(new NgxSpinner({ name, show: true })); | ||
resolve(true); | ||
} | ||
}); | ||
return showPromise; | ||
}, 10); | ||
} | ||
@@ -53,20 +55,19 @@ /** | ||
*/ | ||
hide(name = PRIMARY_SPINNER, debounce = 0) { | ||
const hidePromise = new Promise((resolve, _reject) => { | ||
setTimeout(() => { | ||
hide(name = PRIMARY_SPINNER, debounce = 10) { | ||
setTimeout(() => { | ||
const hidePromise = new Promise((resolve, _reject) => { | ||
this.spinnerObservable.next(new NgxSpinner({ name, show: false })); | ||
resolve(true); | ||
}, debounce); | ||
}); | ||
return hidePromise; | ||
}); | ||
return hidePromise; | ||
}, debounce); | ||
} | ||
}; | ||
} | ||
NgxSpinnerService.ɵprov = i0.ɵɵdefineInjectable({ factory: function NgxSpinnerService_Factory() { return new NgxSpinnerService(); }, token: NgxSpinnerService, providedIn: "root" }); | ||
NgxSpinnerService = __decorate([ | ||
Injectable({ | ||
providedIn: 'root' | ||
}), | ||
__metadata("design:paramtypes", []) | ||
], NgxSpinnerService); | ||
export { NgxSpinnerService }; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibmd4LXNwaW5uZXIuc2VydmljZS5qcyIsInNvdXJjZVJvb3QiOiJuZzovL25neC1zcGlubmVyLyIsInNvdXJjZXMiOlsibGliL25neC1zcGlubmVyLnNlcnZpY2UudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUFBLE9BQU8sRUFBRSxVQUFVLEVBQUUsTUFBTSxlQUFlLENBQUM7QUFDM0MsT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zZTtcbiAgfVxufVxuIl19 | ||
NgxSpinnerService.decorators = [ | ||
{ type: Injectable, args: [{ | ||
providedIn: 'root' | ||
},] } | ||
]; | ||
NgxSpinnerService.ctorParameters = () => []; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibmd4LXNwaW5uZXIuc2VydmljZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3Byb2plY3RzL25neC1zcGlubmVyL3NyYy9saWIvbmd4LXNwaW5uZXIuc2VydmljZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsVUFBVSxFQUFFLE1BQU0sZUFBZSxDQUFDO0FBQzNDLE9BQU8sRUFBYyxlQUFlLEVBQUUsTUFBTSxNQUFNLENBQUM7QUFDbkQsT0FBTyxFQUFFLE1BQU0sRUFBRSxNQUFNLGdCQUFnQixDQUFDO0FBQ3hDLE9BQU8sRUFBRSxVQUFVLEVBQUUsZUFBZSxFQUFXLE1BQU0sb0JBQW9CLENBQUM7O0FBSzFFLE1BQU0sT0FBTyxpQkFBaUI7SUFRNUI7OztPQUdHO0lBQ0g7UUFYQTs7OztXQUlHO1FBQ0gsZ0VBQWdFO1FBQ3hELHNCQUFpQixHQUFHLElBQUksZUFBZSxDQUFhLElBQUksQ0FBQyxDQUFDO0lBS2xELENBQUM7SUFDakI7OztPQUdHO0lBQ0gsVUFBVSxDQUFDLElBQVk7UUFDckIsT0FBTyxJQUFJLENBQUMsaUJBQWlCLENBQUMsWUFBWSxFQUFFLENBQUMsSUFBSSxDQUFDLE1BQU0sQ0FBQyxDQUFDLENBQWEsRUFBRSxFQUFFLENBQUMsQ0FBQyxJQUFJLENBQUMsQ0FBQyxJQUFJLEtBQUssSUFBSSxDQUFDLENBQUMsQ0FBQztJQUNyRyxDQUFDO0lBQ0Q7Ozs7T0FJRztJQUNILElBQUksQ0FBQyxPQUFlLGVBQW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ydWUgfSkpO1xuICAgICAgICAgIHJlc29sdmUodHJ1ZSk7XG4gICAgICAgIH1cbiAgICAgIH0pO1xuICAgICAgcmV0dXJuIHNob3dQcm9taXNlO1xuICAgIH0sIDEwKTtcbiAgfVxuICAvKipcbiAgKiBUbyBoaWRlIHNwaW5uZXJcbiAgKlxuICAqIEBtZW1iZXJvZiBOZ3hTcGlubmVyU2VydmljZVxuICAqL1xuICBoaWRlKG5hbWU6IHN0cmluZyA9IFBSSU1BUllfU1BJTk5FUiwgZGVib3VuY2U6IG51bWJlciA9IDEwKSB7XG4gICAgc2V0VGltZW91dCgoKSA9PiB7XG4gICAgICBjb25zdCBoaWRlUHJvbWlzZSA9IG5ldyBQcm9taXNlKChyZXNvbHZlLCBfcmVqZWN0KSA9PiB7XG4gICAgICAgIHRoaXMuc3Bpbm5lck9ic2VydmFibGUubmV4dChuZXcgTmd4U3Bpbm5lcih7IG5hbWUsIHNob3c6IGZhbHNlIH0pKTtcbiAgICAgICAgcmVzb2x2ZSh0cnVlKTtcbiAgICAgIH0pO1xuICAgICAgcmV0dXJuIGhpZGVQcm9taXNlO1xuICAgIH0sIGRlYm91bmNlKTtcbiAgfVxufVxuIl19 |
@@ -5,2 +5,3 @@ /** | ||
export * from './public_api'; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibmd4LXNwaW5uZXIuanMiLCJzb3VyY2VSb290Ijoibmc6Ly9uZ3gtc3Bpbm5lci8iLCJzb3VyY2VzIjpbIm5neC1zcGlubmVyLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBOztHQUVHO0FBRUgsY0FBYyxjQUFjLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyIvKipcbiAqIEdlbmVyYXRlZCBidW5kbGUgaW5kZXguIERvIG5vdCBlZGl0LlxuICovXG5cbmV4cG9ydCAqIGZyb20gJy4vcHVibGljX2FwaSc7XG4iXX0= | ||
export { SafeHtmlPipe as ɵa } from './lib/safe-html.pipe'; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibmd4LXNwaW5uZXIuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi9wcm9qZWN0cy9uZ3gtc3Bpbm5lci9zcmMvbmd4LXNwaW5uZXIudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7O0dBRUc7QUFFSCxjQUFjLGNBQWMsQ0FBQztBQUU3QixPQUFPLEVBQUMsWUFBWSxJQUFJLEVBQUUsRUFBQyxNQUFNLHNCQUFzQixDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiLyoqXG4gKiBHZW5lcmF0ZWQgYnVuZGxlIGluZGV4LiBEbyBub3QgZWRpdC5cbiAqL1xuXG5leHBvcnQgKiBmcm9tICcuL3B1YmxpY19hcGknO1xuXG5leHBvcnQge1NhZmVIdG1sUGlwZSBhcyDJtWF9IGZyb20gJy4vbGliL3NhZmUtaHRtbC5waXBlJzsiXX0= |
@@ -7,2 +7,2 @@ /* | ||
export * from './lib/ngx-spinner.module'; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHVibGljX2FwaS5qcyIsInNvdXJjZVJvb3QiOiJuZzovL25neC1zcGlubmVyLyIsInNvdXJjZXMiOlsicHVibGljX2FwaS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTs7R0FFRztBQUNILGNBQWMsMkJBQTJCLENBQUM7QUFDMUMsY0FBYyw2QkFBNkIsQ0FBQztBQUM1QyxjQUFjLDBCQUEwQixDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiLypcbiAqIFB1YmxpYyBBUEkgU3VyZmFjZSBvZiBuZ3gtc3Bpbm5lclxuICovXG5leHBvcnQgKiBmcm9tICcuL2xpYi9uZ3gtc3Bpbm5lci5zZXJ2aWNlJztcbmV4cG9ydCAqIGZyb20gJy4vbGliL25neC1zcGlubmVyLmNvbXBvbmVudCc7XG5leHBvcnQgKiBmcm9tICcuL2xpYi9uZ3gtc3Bpbm5lci5tb2R1bGUnO1xuIl19 | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHVibGljX2FwaS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3Byb2plY3RzL25neC1zcGlubmVyL3NyYy9wdWJsaWNfYXBpLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBOztHQUVHO0FBQ0gsY0FBYywyQkFBMkIsQ0FBQztBQUMxQyxjQUFjLDZCQUE2QixDQUFDO0FBQzVDLGNBQWMsMEJBQTBCLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyIvKlxuICogUHVibGljIEFQSSBTdXJmYWNlIG9mIG5neC1zcGlubmVyXG4gKi9cbmV4cG9ydCAqIGZyb20gJy4vbGliL25neC1zcGlubmVyLnNlcnZpY2UnO1xuZXhwb3J0ICogZnJvbSAnLi9saWIvbmd4LXNwaW5uZXIuY29tcG9uZW50JztcbmV4cG9ydCAqIGZyb20gJy4vbGliL25neC1zcGlubmVyLm1vZHVsZSc7XG4iXX0= |
@@ -38,5 +38,5 @@ export declare const LOADERS: { | ||
'ball-zig-zag-deflect': number; | ||
'cog': number; | ||
cog: number; | ||
'cube-transition': number; | ||
'fire': number; | ||
fire: number; | ||
'line-scale': number; | ||
@@ -50,7 +50,7 @@ 'line-scale-party': number; | ||
'line-spin-fade-rotating': number; | ||
'pacman': number; | ||
pacman: number; | ||
'square-jelly-box': number; | ||
'square-loader': number; | ||
'square-spin': number; | ||
'timer': number; | ||
timer: number; | ||
'triangle-skew-spin': number; | ||
@@ -57,0 +57,0 @@ }; |
@@ -25,3 +25,3 @@ import { Observable } from 'rxjs'; | ||
*/ | ||
show(name?: string, spinner?: Spinner): Promise<unknown>; | ||
show(name?: string, spinner?: Spinner): void; | ||
/** | ||
@@ -32,3 +32,3 @@ * To hide spinner | ||
*/ | ||
hide(name?: string, debounce?: number): Promise<unknown>; | ||
hide(name?: string, debounce?: number): void; | ||
} |
@@ -5,1 +5,2 @@ /** | ||
export * from './public_api'; | ||
export { SafeHtmlPipe as ɵa } from './lib/safe-html.pipe'; |
{ | ||
"name": "ngx-spinner", | ||
"version": "9.0.2", | ||
"version": "10.0.0", | ||
"schematics": "./schematics/collection.json", | ||
@@ -22,2 +22,3 @@ "repository": { | ||
"angular9", | ||
"angular10", | ||
"loading-spinner", | ||
@@ -37,2 +38,3 @@ "loading", | ||
"ng9", | ||
"ng10", | ||
"loadingscreen", | ||
@@ -51,12 +53,12 @@ "progress", | ||
"peerDependencies": { | ||
"@angular/common": "^9.0.0", | ||
"@angular/core": "^9.0.0", | ||
"tslib": "^1.10.0" | ||
"@angular/common": "^7.2.0", | ||
"@angular/core": "^7.2.0" | ||
}, | ||
"dependencies": { | ||
"tslib": "^2.0.0" | ||
}, | ||
"main": "bundles/ngx-spinner.umd.js", | ||
"module": "fesm5/ngx-spinner.js", | ||
"module": "fesm2015/ngx-spinner.js", | ||
"es2015": "fesm2015/ngx-spinner.js", | ||
"esm5": "esm5/ngx-spinner.js", | ||
"esm2015": "esm2015/ngx-spinner.js", | ||
"fesm5": "fesm5/ngx-spinner.js", | ||
"fesm2015": "fesm2015/ngx-spinner.js", | ||
@@ -63,0 +65,0 @@ "typings": "ngx-spinner.d.ts", |
@@ -1,2 +0,2 @@ | ||
A library with more than 50 different loading spinners for Angular 4/5/6/7/8/9. (https://napster2210.github.io/ngx-spinner/) | ||
A library with more than 50 different loading spinners for Angular 4/5/6/7/8/9/10. (https://napster2210.github.io/ngx-spinner/) | ||
@@ -11,3 +11,6 @@ <p align="center"> | ||
[![Support](https://img.shields.io/badge/Support-Angular%206%2B-blue.svg?style=flat-square)]() | ||
[![Support](https://img.shields.io/badge/Support-Angular%207%2B-blue.svg?style=flat-square)]() | ||
[![Support](https://img.shields.io/badge/Support-Angular%208%2B-blue.svg?style=flat-square)]() | ||
[![Support](https://img.shields.io/badge/Support-Angular%209%2B-blue.svg?style=flat-square)]() | ||
[![Support](https://img.shields.io/badge/Support-Angular%2010%2B-blue.svg?style=flat-square)]() | ||
[![License](https://img.shields.io/badge/license-MIT-blue.svg?style=flat-square)]() | ||
@@ -19,12 +22,12 @@ [![devDependency Status](https://img.shields.io/david/expressjs/express.svg?style=flat-square)]() | ||
- Angular 9 support 🥳🥳🥳🥳 | ||
- Angular 10 support 🥳🥳🥳🥳 | ||
- Latest Angular Dependencies | ||
- `ng add` command to add `ngx-spinner` to the project | ||
- Image Support(Finally) 🥳🥳🥳🥳 | ||
- Bug Fixes | ||
Use appropriate version based on your Angular version. | ||
| Angular 4 | Angular 5 | Angular 6/7 | Angular 8 | Angular 9 | | ||
| ----------- | ----------- | ----------- | --------- | --------- | | ||
| >= `v1.2.0` | >= `v2.0.0` | `v7.2.0` | `v8.1.0` | `v9.0.1` | | ||
| Angular 4 | Angular 5 | Angular 6/7 | Angular 8 | Angular 9 | Angular 10 | | ||
| ----------- | ----------- | ----------- | --------- | ----------- | ------------ | | ||
| >= `v1.2.0` | >= `v2.0.0` | `v7.2.0` | `v8.1.0` | >=`v9.0.1` | >=`v10.0.0` | | ||
@@ -47,2 +50,3 @@ ## Table of contents | ||
- [How to use type?](#how-to-use-type) | ||
- [Useful Tips](#useful-tips) | ||
- [Versioning](#versioning) | ||
@@ -64,3 +68,3 @@ - [Creator](#creator) | ||
- **Angular 9** Support | ||
- **Angular 10** Support | ||
- Custom spinner image support(gif), you can pass `img` tag | ||
@@ -227,2 +231,10 @@ - Multiple Spinners | ||
## Useful Tips | ||
- Make sure you've added `CUSTOM_ELEMENTS_SCHEMA` as your schema in your main module. | ||
- If you use multiple `show()` methods in a single component or single function one after another then wrap the `show()` method within `setTimeout()` method to avoid any rendering issue. | ||
- When you want to use spinner inside any container(`fullScreen: false`), in that case your parent element of spinner must have `position: relative;` style property. | ||
- You can't set custom template through service options, it's a limitation by Angular itself. | ||
## Versioning | ||
@@ -229,0 +241,0 @@ |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
Mixed license
License(Experimental) Package contains multiple licenses.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
Mixed license
License(Experimental) Package contains multiple licenses.
Found 1 instance in 1 package
30
267
4
658194
2989
+ Addedtslib@^2.0.0
+ Added@angular/common@7.2.16(transitive)
+ Added@angular/core@7.2.16(transitive)
+ Addedtslib@2.8.1(transitive)
+ Addedzone.js@0.8.29(transitive)
- Removed@angular/common@9.1.13(transitive)
- Removed@angular/core@9.1.13(transitive)
- Removedzone.js@0.10.3(transitive)