UNPKG

ngx-modialog

Version:
63 lines (62 loc) 1.99 kB
import * as tslib_1 from "tslib"; /** * @fileoverview added by tsickle * @suppress {checkTypes} checked by tsc */ import { Component, ElementRef, ViewEncapsulation, Renderer2 } from '@angular/core'; import { BaseDynamicComponent } from './base-dynamic-component'; /** * Represents the modal backdrop shaped by CSS. */ var CSSBackdrop = /** @class */ (function (_super) { tslib_1.__extends(CSSBackdrop, _super); /** * @param {?} el * @param {?} renderer */ function CSSBackdrop(el, renderer) { var _this = _super.call(this, el, renderer) || this; _this.activateAnimationListener(); var /** @type {?} */ style = { position: 'absolute', top: 0, left: 0, width: '100%', height: '100%' }; Object.keys(style).forEach(function (k) { return _this.setStyle(k, style[k]); }); return _this; } return CSSBackdrop; }(BaseDynamicComponent)); export { CSSBackdrop }; CSSBackdrop.decorators = [ { type: Component, args: [{ selector: 'css-backdrop', host: { '[attr.class]': 'cssClass', '[attr.style]': 'styleStr' }, encapsulation: ViewEncapsulation.None, template: "" },] }, ]; /** @nocollapse */ CSSBackdrop.ctorParameters = function () { return [ { type: ElementRef, }, { type: Renderer2, }, ]; }; function CSSBackdrop_tsickle_Closure_declarations() { /** @type {!Array<{type: !Function, args: (undefined|!Array<?>)}>} */ CSSBackdrop.decorators; /** * @nocollapse * @type {function(): !Array<(null|{type: ?, decorators: (undefined|!Array<{type: !Function, args: (undefined|!Array<?>)}>)})>} */ CSSBackdrop.ctorParameters; /** @type {?} */ CSSBackdrop.prototype.cssClass; /** @type {?} */ CSSBackdrop.prototype.styleStr; } //# sourceMappingURL=css-backdrop.js.map