UNPKG

fabric8-analytics-dep-editor

Version:
76 lines 2.62 kB
import { Component, Input } from '@angular/core'; var AlertBoxComponent = /** @class */ (function () { function AlertBoxComponent() { this.secureIssue = false; this.licenseAll = []; this.cveName = []; this.liData = []; this.charts = {}; this.cveId = []; this.cvePackage = []; } AlertBoxComponent.prototype.ngOnInit = function () { this.isLoading = null; }; AlertBoxComponent.prototype.ngOnChanges = function () { this.isLoading = true; if (this.issueStatus === null) { this.isLoading = true; } else if (typeof this.issueStatus === 'string' && this.issueStatus) { this.isLoading = false; } else if (typeof this.issueStatus === 'number') { this.isLoading = false; } this.getCves(); }; AlertBoxComponent.prototype.get_secure = function () { this.secureIssue = true; }; AlertBoxComponent.prototype.getCves = function () { var _this = this; this.cveId = []; var _loop_1 = function (i) { this_1.cveName[i][0].forEach(function (e) { _this.cveId.push({ 'id': e.cve_id, 'package': _this.cveName[i][1] }); }); }; var this_1 = this; for (var i = 0; i < this.cveName.length; i++) { _loop_1(i); } }; AlertBoxComponent.decorators = [ { type: Component, args: [{ selector: 'app-alert-box', styles: [require('./alert-box.component.less').toString()], template: require('./alert-box.component.html') },] }, ]; /** @nocollapse */ AlertBoxComponent.ctorParameters = function () { return []; }; AlertBoxComponent.propDecorators = { 'title': [{ type: Input },], 'colored': [{ type: Input },], 'issueStatus': [{ type: Input },], 'issueSymbol': [{ type: Input },], 'issueType': [{ type: Input },], 'licolor': [{ type: Input },], 'secureIssue': [{ type: Input },], 'licenseIssue': [{ type: Input },], 'itSecurity': [{ type: Input },], 'licenseAll': [{ type: Input },], 'hasIssue': [{ type: Input },], 'cveName': [{ type: Input },], 'liData': [{ type: Input },], 'charts': [{ type: Input },], 'boosterInfo': [{ type: Input },], }; return AlertBoxComponent; }()); export { AlertBoxComponent }; //# sourceMappingURL=alert-box.component.js.map