my-test123
Version:
A planner front-end for Fabric8.
122 lines (121 loc) • 4.92 kB
TypeScript
import { FilterService } from '../../services/filter.service';
import { AreaService } from '../../services/area.service';
import { ElementRef, OnInit, OnDestroy, QueryList, Renderer2, AfterViewChecked } from '@angular/core';
import { Router, ActivatedRoute } from '@angular/router';
import { IterationService } from '../../services/iteration.service';
import { Observable } from 'rxjs/Observable';
import { Subscription } from 'rxjs/Subscription';
import { Broadcaster, Notifications } from 'ngx-base';
import { Spaces } from 'ngx-fabric8-wit';
import { AuthenticationService, UserService } from 'ngx-login-client';
import { DragulaService } from 'ng2-dragula';
import { Dialog } from 'ngx-widgets';
import { CardValue } from './../card/card.component';
import { UrlService } from './../../services/url.service';
import { WorkItem } from '../../models/work-item';
import { WorkItemService } from '../../services/work-item.service';
import { WorkItemDataService } from './../../services/work-item-data.service';
import { CollaboratorService } from '../../services/collaborator.service';
import { LabelService } from '../../services/label.service';
import { GroupTypesService } from '../../services/group-types.service';
import { GroupTypesModel } from '../../models/group-types.model';
export declare class PlannerBoardComponent implements OnInit, OnDestroy, AfterViewChecked {
private auth;
private broadcaster;
private collaboratorService;
private notifications;
private router;
private workItemService;
private groupTypesService;
private workItemDataService;
private dragulaService;
private iterationService;
private labelService;
private userService;
private urlService;
private spaces;
private areaService;
private filterService;
private route;
private renderer;
activeFiltersRef: QueryList<ElementRef>;
activeFiltersDiv: any;
associateIterationModal: any;
sidePanelRef: any;
toolbarHeight: ElementRef;
boardContainer: any;
containerHeight: ElementRef;
workItem: WorkItem;
cardItem: CardValue;
filters: any[];
lanes: Array<any>;
pageSize: number;
loggedIn: Boolean;
spaceSubscription: Subscription;
contentItemHeight: number;
boardContextSubscription: Subscription;
private allUsers;
private iterations;
private workItemTypes;
private readyToInit;
private areas;
private loggedInUser;
eventListeners: any[];
dialog: Dialog;
showDialog: boolean;
dragulaEventListeners: any[];
private allowedFilterParams;
private urlListener;
private currentIteration;
private currentWIType;
private existingQueryParams;
private quickAddContext;
private initialGroup;
private wiSubscription;
lane: any;
private labels;
private uiLockedAll;
private uiLockedBoard;
private uiLockedSidebar;
private currentSpace;
private included;
groupTypes: GroupTypesModel[];
sidePanelOpen: boolean;
constructor(auth: AuthenticationService, broadcaster: Broadcaster, collaboratorService: CollaboratorService, notifications: Notifications, router: Router, workItemService: WorkItemService, groupTypesService: GroupTypesService, workItemDataService: WorkItemDataService, dragulaService: DragulaService, iterationService: IterationService, labelService: LabelService, userService: UserService, urlService: UrlService, spaces: Spaces, areaService: AreaService, filterService: FilterService, route: ActivatedRoute, renderer: Renderer2);
ngOnInit(): void;
ngAfterViewChecked(): void;
ngOnDestroy(): void;
initStuff(): void;
getWorkItems(pageSize: any, mainLane: any, payload: any): Observable<any>;
createCardItem(workItems: WorkItem[]): void;
updateCardItem(workItem: WorkItem): void;
cardMenuClick(menuId: string, itemNumber: string, lane: any): void;
onMoveToBacklog(): void;
prepareLanes(): void;
/**
* Called from each lane
* @param event
* @param lane
*/
initWiItems($event: any, lane: any): void;
fetchMoreWiItems(lane: any): void;
onCreateWorkItem(workItem: any): void;
openDetail(event: any): void;
confirmDelete(event: MouseEvent): void;
onButtonClick(val: number): void;
onDelete(event: MouseEvent): void;
onTouchstart(event: any): void;
onDrag(args: any): void;
getWI(workItemNumber: string, lane: any): void;
isSelected(wi: WorkItem): boolean;
onDrop(args: any): void;
onOver(args: any): void;
onOut(args: any): void;
activeOnList(timeOut?: number): void;
changeState(option: any, elId: string, adjElmId: string | null, direction: string): void;
changeLane(oldState: any, newState: any, workItem: any, prevIdEl?: string | null): void;
listenToEvents(): void;
listenToUrlParams(): void;
togglePanelState(event: any): void;
togglePanel(): void;
}