import { ITask } from "../../models"; import * as AppConfig from "../../state/AppConfig"; /** * Properties of TaskList. * * @typedef TaskList.TaskListProps * @property {string} [selectedTaskSid] - Sid of the selected task. * @property {Function} [compareFunction=defaultTaskOrderCompare] - Callback to control how tasks should be sorted in task list. Negative number means task a should be above task b, positive number that a should be below b. 0 indicates equal priority. * @property {AppConfig.TaskFilterCallback} [staticFilter] - Callback to test if a task belongs to the static area (upper area before filters) in the task list. * @property {Array} [filters] - Filter tasks displayed in the list. * @property {Function} [onFilterChange] - Callback when a filter changes. * @property {Function} [onTaskSelected] - Callback when a task is selected from the list. * @property {Map} [tasks] - Tasks. * @property {DynamicContentStore.DynamicComponentChildren} [children] - children */ export interface TaskListProps { selectedTaskSid?: string; compareFunction?: (a: ITask, b: ITask) => number; staticFilter?: AppConfig.TaskFilterCallback; filters?: Array; onFilterChange?: (filter: AppConfig.TaskFilter) => void; onTaskSelected?: (sid: string) => void; tasks?: Map; } export { TaskListChildrenKeys } from "../../internal-flex-commons/src";