UNPKG

fabric8-analytics-dep-editor

Version:
61 lines 2.56 kB
import { Component, Input, Output, EventEmitter } from '@angular/core'; import { DomSanitizer } from '@angular/platform-browser'; var CurrentprojectComponent = /** @class */ (function () { function CurrentprojectComponent(dom) { this.dom = dom; this.boosterInfo = null; this.allLicenses = []; this.getMetadata = new EventEmitter(); this.isOpen = false; this.upDown = 'fa fa-angle-up'; this.metadata = {}; this.start = 1; } CurrentprojectComponent.prototype.ngOnInit = function () { }; CurrentprojectComponent.prototype.ngOnChanges = function () { if (this.boosterInfo && this.boosterInfo.mission && this.start > 0) { this.start = 0; this.metadata['groupId'] = 'io.openshift.booster'; this.metadata['artifactId'] = this.boosterInfo.runtime.id + '.' + this.boosterInfo.mission.id; this.metadata['version'] = '1.0.0.SNAPSHOT'; this.getMetadata.emit(this.metadata); } // this.getMetadata.emit(this.metadata); }; CurrentprojectComponent.prototype.getGroupId = function (event) { this.metadata['groupId'] = event.target.value; this.getMetadata.emit(this.metadata); }; CurrentprojectComponent.prototype.getArtifactId = function (event) { this.metadata['artifactId'] = event.target.value; this.getMetadata.emit(this.metadata); }; CurrentprojectComponent.prototype.getVersion = function (event) { this.metadata['version'] = event.target.value; this.getMetadata.emit(this.metadata); }; CurrentprojectComponent.decorators = [ { type: Component, args: [{ selector: 'app-current-project', styles: [require('./current-project.component.less').toString()], template: require('./current-project.component.html') },] }, ]; /** @nocollapse */ CurrentprojectComponent.ctorParameters = function () { return [ { type: DomSanitizer, }, ]; }; CurrentprojectComponent.propDecorators = { 'dependencies': [{ type: Input },], 'boosterInfo': [{ type: Input },], 'licenseData': [{ type: Input },], 'lisData': [{ type: Input },], 'cveData': [{ type: Input },], 'allLicenses': [{ type: Input },], 'getMetadata': [{ type: Output },], }; return CurrentprojectComponent; }()); export { CurrentprojectComponent }; //# sourceMappingURL=current-project.component.js.map