UNPKG

@stratio/egeo

Version:
82 lines 5.94 kB
/** * @fileoverview added by tsickle * Generated from: lib/st-alerts/st-alerts.component.ts * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc */ /* * © 2017 Stratio Big Data Inc., Sucursal en España. * * This software is licensed under the Apache License, Version 2.0. * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * See the terms of the License for more details. * * SPDX-License-Identifier: Apache-2.0. */ import { Component, Input, ChangeDetectionStrategy } from '@angular/core'; import { StAlertsService } from './st-alerts.service'; /** * @description {Component} [Alerts] * * Alerts are made to let the user know errors or information about he is trying to do. * * @model * * [Alert] {./st-alerts.model.ts#StAlert} * * @example * * {html} * * ``` * <st-alerts [showInConsole]="true"></st-alerts> * * ``` */ export class StAlertsComponent { /** * @param {?} alertService */ constructor(alertService) { this.alertService = alertService; /** * \@Input {boolean} [showInConsole=false] Display logs in console */ this.showInConsole = false; /** * \@Input {string} [qaTag=] Component qa tag */ this.qaTag = 'st-alert-manager'; } } StAlertsComponent.decorators = [ { type: Component, args: [{ selector: 'st-alerts', template: "<!--\n\n \u00A9 2017 Stratio Big Data Inc., Sucursal en Espa\u00F1a.\n\n This software is licensed under the Apache License, Version 2.0.\n This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;\n without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.\n See the terms of the License for more details.\n\n SPDX-License-Identifier: Apache-2.0.\n\n-->\n<div [attr.id]='qaTag' class=\"st-alerts sth-alerts\">\n <st-alert-box class=\"st-alert-box\" *ngFor=\"let alert of (alertService.alertList | async)\" [alert]=\"alert\" [showInConsole]=\"showInConsole\"></st-alert-box>\n</div>\n", changeDetection: ChangeDetectionStrategy.OnPush, styles: ["@charset \"UTF-8\";.st-alert-box{margin-top:15px;display:block}.st-alerts{width:288px;position:fixed;right:15px;top:0}"] }] } ]; /** @nocollapse */ StAlertsComponent.ctorParameters = () => [ { type: StAlertsService } ]; StAlertsComponent.propDecorators = { showInConsole: [{ type: Input }], qaTag: [{ type: Input }] }; if (false) { /** * \@Input {boolean} [showInConsole=false] Display logs in console * @type {?} */ StAlertsComponent.prototype.showInConsole; /** * \@Input {string} [qaTag=] Component qa tag * @type {?} */ StAlertsComponent.prototype.qaTag; /** @type {?} */ StAlertsComponent.prototype.alertService; } //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic3QtYWxlcnRzLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiJuZzovL0BzdHJhdGlvL2VnZW8vIiwic291cmNlcyI6WyJsaWIvc3QtYWxlcnRzL3N0LWFsZXJ0cy5jb21wb25lbnQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7Ozs7Ozs7O0FBVUEsT0FBTyxFQUFFLFNBQVMsRUFBRSxLQUFLLEVBQUUsdUJBQXVCLEVBQXFCLE1BQU0sZUFBZSxDQUFDO0FBRzdGLE9BQU8sRUFBRSxlQUFlLEVBQUUsTUFBTSxxQkFBcUIsQ0FBQztBQVF0RDs7Ozs7Ozs7Ozs7Ozs7Ozs7R0FpQkc7QUFDSCxNQUFNLE9BQU8saUJBQWlCOzs7O0lBTTNCLFlBQ1UsWUFBNkI7UUFBN0IsaUJBQVksR0FBWixZQUFZLENBQWlCOzs7O1FBTDlCLGtCQUFhLEdBQVksS0FBSyxDQUFDOzs7O1FBRS9CLFVBQUssR0FBVyxrQkFBa0IsQ0FBQztJQUl4QyxDQUFDOzs7WUFoQ1AsU0FBUyxTQUFDO2dCQUNSLFFBQVEsRUFBRSxXQUFXO2dCQUNyQix3cUJBQXlDO2dCQUV6QyxlQUFlLEVBQUUsdUJBQXVCLENBQUMsTUFBTTs7YUFDakQ7Ozs7WUFQUSxlQUFlOzs7NEJBNEJwQixLQUFLO29CQUVMLEtBQUs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