OpenProject is the leading open source project management software.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
openproject/frontend/app/components/wp-fast-table/wp-table.interfaces.ts

35 lines
986 B

import {
WorkPackageResource,
WorkPackageResourceInterface
} from '../api/api-v3/hal-resources/work-package-resource.service';
import {GroupObject} from '../api/api-v3/hal-resources/wp-collection-resource.service';
import {WorkPackageTable} from './wp-fast-table';
/**
* Interface of a single row instance handled by the table.
* May contain references to the current inserted row (if present)
* or the group it belonged to when initially rendered.
*/
export interface WorkPackageTableRow {
object:WorkPackageResourceInterface;
workPackageId:string;
position:number;
element?:HTMLElement;
group:GroupObject|null;
}
export interface GroupableColumn {
name:string;
title:string;
sortable:boolean;
groupable:boolean;
custom_field:boolean;
}
export interface WPTableRowSelectionState {
// Map of selected rows
selected: {[workPackageId: string]: boolean};
// Index of current selection
// required for shift-offsets
activeRowIndex: number | null;
}