UNPKG

my-test123

Version:
69 lines 3.15 kB
import { Component, Input, EventEmitter, Output, ViewChild, Renderer2 } from '@angular/core'; import { Router, ActivatedRoute } from '@angular/router'; import { Broadcaster } from 'ngx-base'; import { AuthenticationService } from 'ngx-login-client'; import { Spaces } from 'ngx-fabric8-wit'; import { WorkItemService } from '../../../services/work-item.service'; var WorkItemDetailAddTypeSelectorWidgetComponent = /** @class */ (function () { function WorkItemDetailAddTypeSelectorWidgetComponent(router, route, broadcaster, workItemService, auth, spaces, renderer) { this.router = router; this.route = route; this.broadcaster = broadcaster; this.workItemService = workItemService; this.auth = auth; this.spaces = spaces; this.renderer = renderer; this.workItemTypes = []; this.onSelect = new EventEmitter(); this.onClose = new EventEmitter(); this.panelState = 'out'; } WorkItemDetailAddTypeSelectorWidgetComponent.prototype.ngOnInit = function () { }; WorkItemDetailAddTypeSelectorWidgetComponent.prototype.ngAfterViewChecked = function () { if (this.modalPosition) { var hdrHeight = 0; if (document.getElementsByClassName('navbar-pf').length > 0) { hdrHeight = document.getElementsByClassName('navbar-pf')[0].offsetHeight; } this.renderer.setStyle(this.modalPosition.nativeElement, 'top', hdrHeight + "px"); } }; WorkItemDetailAddTypeSelectorWidgetComponent.prototype.close = function () { this.onClose.emit(); this.panelState = 'out'; }; WorkItemDetailAddTypeSelectorWidgetComponent.prototype.open = function () { this.panelState = 'in'; }; WorkItemDetailAddTypeSelectorWidgetComponent.prototype.select = function (type) { this.onSelect.emit(type); this.panelState = 'out'; }; WorkItemDetailAddTypeSelectorWidgetComponent.decorators = [ { type: Component, args: [{ selector: 'create-selector-widget', template: require('./work-item-create-selector.component.html'), styles: [require('./work-item-create-selector.component.css').toString()] },] }, ]; /** @nocollapse */ WorkItemDetailAddTypeSelectorWidgetComponent.ctorParameters = function () { return [ { type: Router, }, { type: ActivatedRoute, }, { type: Broadcaster, }, { type: WorkItemService, }, { type: AuthenticationService, }, { type: Spaces, }, { type: Renderer2, }, ]; }; WorkItemDetailAddTypeSelectorWidgetComponent.propDecorators = { 'workItemTypes': [{ type: Input },], 'onSelect': [{ type: Output, args: ['onSelect',] },], 'onClose': [{ type: Output, args: ['onClose',] },], 'modalPosition': [{ type: ViewChild, args: ['modalPosition',] },], }; return WorkItemDetailAddTypeSelectorWidgetComponent; }()); export { WorkItemDetailAddTypeSelectorWidgetComponent }; //# sourceMappingURL=work-item-create-selector.component.js.map