ngx-loading
Version:
A customisable loading spinner for Angular applications.
71 lines • 6.19 kB
JavaScript
/**
* @fileoverview added by tsickle
* @suppress {checkTypes,extraRequire,uselessCode} checked by tsc
*/
/**
* @record
*/
export function INgxLoadingConfig() { }
if (false) {
/** @type {?|undefined} */
INgxLoadingConfig.prototype.backdropBorderRadius;
/** @type {?|undefined} */
INgxLoadingConfig.prototype.backdropBackgroundColour;
/** @type {?|undefined} */
INgxLoadingConfig.prototype.fullScreenBackdrop;
/** @type {?|undefined} */
INgxLoadingConfig.prototype.animationType;
/** @type {?|undefined} */
INgxLoadingConfig.prototype.primaryColour;
/** @type {?|undefined} */
INgxLoadingConfig.prototype.secondaryColour;
/** @type {?|undefined} */
INgxLoadingConfig.prototype.tertiaryColour;
/* Skipping unhandled member: [key: string]: string | boolean | undefined;*/
}
var NgxLoadingConfig = /** @class */ (function () {
function NgxLoadingConfig(config) {
if (config === void 0) { config = {}; }
this.backdropBorderRadius = config.backdropBorderRadius;
this.backdropBackgroundColour = config.backdropBackgroundColour;
this.fullScreenBackdrop = config.fullScreenBackdrop;
this.animationType = config.animationType;
this.primaryColour = config.primaryColour;
this.secondaryColour = config.secondaryColour;
this.tertiaryColour = config.tertiaryColour;
}
return NgxLoadingConfig;
}());
export { NgxLoadingConfig };
if (false) {
/** @type {?} */
NgxLoadingConfig.prototype.backdropBorderRadius;
/** @type {?} */
NgxLoadingConfig.prototype.backdropBackgroundColour;
/** @type {?} */
NgxLoadingConfig.prototype.fullScreenBackdrop;
/** @type {?} */
NgxLoadingConfig.prototype.animationType;
/** @type {?} */
NgxLoadingConfig.prototype.primaryColour;
/** @type {?} */
NgxLoadingConfig.prototype.secondaryColour;
/** @type {?} */
NgxLoadingConfig.prototype.tertiaryColour;
/* Skipping unhandled member: [key: string]: string | boolean | undefined;*/
}
/** @type {?} */
export var ngxLoadingAnimationTypes = {
chasingDots: 'chasing-dots',
circle: 'sk-circle',
circleSwish: 'circleSwish',
cubeGrid: 'sk-cube-grid',
doubleBounce: 'double-bounce',
none: 'none',
pulse: 'pulse',
rectangleBounce: 'rectangle-bounce',
rotatingPlane: 'rotating-plane',
threeBounce: 'three-bounce',
wanderingCubes: 'wandering-cubes'
};
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibmd4LWxvYWRpbmctY29uZmlnLmpzIiwic291cmNlUm9vdCI6Im5nOi8vbmd4LWxvYWRpbmcvIiwic291cmNlcyI6WyJsaWIvbmd4LWxvYWRpbmctY29uZmlnLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7Ozs7QUFBQSx1Q0FTQzs7O0lBUkcsaURBQThCOztJQUM5QixxREFBa0M7O0lBQ2xDLCtDQUE2Qjs7SUFDN0IsMENBQXVCOztJQUN2QiwwQ0FBdUI7O0lBQ3ZCLDRDQUF5Qjs7SUFDekIsMkNBQXdCOzs7QUFJNUI7SUFVSSwwQkFBWSxNQUE4QjtRQUE5Qix1QkFBQSxFQUFBLFdBQThCO1FBQ3RDLElBQUksQ0FBQyxvQkFBb0IsR0FBRyxNQUFNLENBQUMsb0JBQW9CLENBQUM7UUFDeEQsSUFBSSxDQUFDLHdCQUF3QixHQUFHLE1BQU0sQ0FBQyx3QkFBd0IsQ0FBQztRQUNoRSxJQUFJLENBQUMsa0JBQWtCLEdBQUcsTUFBTSxDQUFDLGtCQUFrQixDQUFDO1FBQ3BELElBQUksQ0FBQyxhQUFhLEdBQUcsTUFBTSxDQUFDLGFBQWEsQ0FBQztRQUMxQyxJQUFJLENBQUMsYUFBYSxHQUFHLE1BQU0sQ0FBQyxhQUFhLENBQUM7UUFDMUMsSUFBSSxDQUFDLGVBQWUsR0FBRyxNQUFNLENBQUMsZUFBZSxDQUFDO1FBQzlDLElBQUksQ0FBQyxjQUFjLEdBQUcsTUFBTSxDQUFDLGNBQWMsQ0FBQztJQUNoRCxDQUFDO0lBQ0wsdUJBQUM7QUFBRCxDQUFDLEFBbkJELElBbUJDOzs7O0lBbEJH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