|
|
|
@ -1,20 +1,5 @@ |
|
|
|
|
import {AfterViewInit, Component, Injector, Input, OnDestroy, OnInit} from '@angular/core'; |
|
|
|
|
import {IsolatedQuerySpace} from "core-app/modules/work_packages/query-space/isolated-query-space"; |
|
|
|
|
import {WorkPackageStatesInitializationService} from 'core-components/wp-list/wp-states-initialization.service'; |
|
|
|
|
import {WorkPackageTableRelationColumnsService} from 'core-components/wp-fast-table/state/wp-table-relation-columns.service'; |
|
|
|
|
import {WorkPackageTableHierarchiesService} from 'core-components/wp-fast-table/state/wp-table-hierarchy.service'; |
|
|
|
|
import {WorkPackageTableTimelineService} from 'core-components/wp-fast-table/state/wp-table-timeline.service'; |
|
|
|
|
import {WorkPackageTablePaginationService} from 'core-components/wp-fast-table/state/wp-table-pagination.service'; |
|
|
|
|
import {WorkPackageTableGroupByService} from 'core-components/wp-fast-table/state/wp-table-group-by.service'; |
|
|
|
|
import {WorkPackageTableSortByService} from 'core-components/wp-fast-table/state/wp-table-sort-by.service'; |
|
|
|
|
import {WorkPackageTableFiltersService} from 'core-components/wp-fast-table/state/wp-table-filters.service'; |
|
|
|
|
import {WorkPackageTableColumnsService} from 'core-components/wp-fast-table/state/wp-table-columns.service'; |
|
|
|
|
import {WorkPackageTableSumService} from 'core-components/wp-fast-table/state/wp-table-sum.service'; |
|
|
|
|
import {WorkPackageTableAdditionalElementsService} from 'core-components/wp-fast-table/state/wp-table-additional-elements.service'; |
|
|
|
|
import {AfterViewInit, Component, Injector, Input, OnDestroy, OnInit, SimpleChanges} from '@angular/core'; |
|
|
|
|
import {WorkPackageTableConfiguration} from 'core-components/wp-table/wp-table-configuration'; |
|
|
|
|
import {WorkPackageTableRefreshService} from 'core-components/wp-table/wp-table-refresh-request.service'; |
|
|
|
|
import {OpTableActionsService} from 'core-components/wp-table/table-actions/table-actions.service'; |
|
|
|
|
import {WorkPackageTableSelection} from 'core-components/wp-fast-table/state/wp-table-selection.service'; |
|
|
|
|
import {GroupObject} from 'core-app/modules/hal/resources/wp-collection-resource'; |
|
|
|
|
import {Chart} from 'chart.js'; |
|
|
|
|
import {WorkPackageEmbeddedBaseComponent} from "core-components/wp-table/embedded/wp-embedded-base.component"; |
|
|
|
@ -65,8 +50,10 @@ export class WorkPackageEmbeddedGraphComponent extends WorkPackageEmbeddedBaseCo |
|
|
|
|
super(injector); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public refresh(visible:boolean = true):Promise<any> { |
|
|
|
|
return super.refresh(visible).then(() => this.updateChartData()); |
|
|
|
|
ngOnChanges(changes:SimpleChanges) { |
|
|
|
|
if (this.initialized && (changes.datasets)) { |
|
|
|
|
this.loadQuery(false); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
private updateChartData() { |
|
|
|
|