UNPKG

ngx-animate-css-grid

Version:
153 lines (146 loc) 4.82 kB
import { EventEmitter, Directive, ElementRef, Input, Output, NgModule } from '@angular/core'; import { __assign } from 'tslib'; import { wrapGrid } from 'animate-css-grid'; /** * @fileoverview added by tsickle * Generated from: lib/ngx-animate-css-grid.directive.ts * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc */ var NgxAnimateCssGridDirective = /** @class */ (function () { function NgxAnimateCssGridDirective(elementRef) { this.elementRef = elementRef; this.ngxAnimateCssGrid = {}; this.onStart = new EventEmitter(); this.onEnd = new EventEmitter(); } /** * @return {?} */ NgxAnimateCssGridDirective.prototype.ngAfterViewInit = /** * @return {?} */ function () { var _this = this; /** @type {?} */ var config = __assign({}, this.ngxAnimateCssGrid, { onStart: (/** * @param {?} animatedChildren * @return {?} */ function (animatedChildren) { return _this.onStart.emit(animatedChildren); }), onEnd: (/** * @param {?} animatedChildren * @return {?} */ function (animatedChildren) { return _this.onEnd.emit(animatedChildren); }) }); this.gridWrapper = wrapGrid(this.elementRef.nativeElement, config); }; /** * @return {?} */ NgxAnimateCssGridDirective.prototype.unwrapGrid = /** * @return {?} */ function () { if (this.gridWrapper) { this.gridWrapper.unwrapGrid(); } }; /** * @return {?} */ NgxAnimateCssGridDirective.prototype.forceGridAnimation = /** * @return {?} */ function () { if (this.gridWrapper) { this.gridWrapper.forceGridAnimation(); } }; /** * @return {?} */ NgxAnimateCssGridDirective.prototype.ngOnDestroy = /** * @return {?} */ function () { this.unwrapGrid(); }; NgxAnimateCssGridDirective.decorators = [ { type: Directive, args: [{ selector: '[ngxAnimateCssGrid]' },] } ]; /** @nocollapse */ NgxAnimateCssGridDirective.ctorParameters = function () { return [ { type: ElementRef } ]; }; NgxAnimateCssGridDirective.propDecorators = { ngxAnimateCssGrid: [{ type: Input }], onStart: [{ type: Output }], onEnd: [{ type: Output }] }; return NgxAnimateCssGridDirective; }()); if (false) { /** @type {?} */ NgxAnimateCssGridDirective.prototype.ngxAnimateCssGrid; /** @type {?} */ NgxAnimateCssGridDirective.prototype.onStart; /** @type {?} */ NgxAnimateCssGridDirective.prototype.onEnd; /** * @type {?} * @private */ NgxAnimateCssGridDirective.prototype.gridWrapper; /** * @type {?} * @private */ NgxAnimateCssGridDirective.prototype.elementRef; } /** * @fileoverview added by tsickle * Generated from: lib/ngx-animate-css-grid.module.ts * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc */ var NgxAnimateCssGridModule = /** @class */ (function () { function NgxAnimateCssGridModule() { } NgxAnimateCssGridModule.decorators = [ { type: NgModule, args: [{ declarations: [NgxAnimateCssGridDirective], imports: [], exports: [NgxAnimateCssGridDirective] },] } ]; return NgxAnimateCssGridModule; }()); /** * @fileoverview added by tsickle * Generated from: lib/wrap-grid-config.ts * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc */ /** * @record */ function WrapGridConfig() { } if (false) { /** @type {?|undefined} */ WrapGridConfig.prototype.duration; /** @type {?|undefined} */ WrapGridConfig.prototype.stagger; /** @type {?|undefined} */ WrapGridConfig.prototype.easing; } /** * @fileoverview added by tsickle * Generated from: public-api.ts * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc */ /** * @fileoverview added by tsickle * Generated from: ngx-animate-css-grid.ts * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc */ export { NgxAnimateCssGridDirective, NgxAnimateCssGridModule }; //# sourceMappingURL=ngx-animate-css-grid.js.map