TaskModel
Defined in: core/src/model/task.ts:87
A normalized task: core’s internal, numeric record of one input Task. Deeply frozen
except for task (the caller’s object, referenced, never copied or mutated) and the values
of issues. The public, Date-based TaskRecord is derived from it by the
facade, together with the hierarchy fields (level, childIds, rowIndex, …).
Type Parameters
Section titled “Type Parameters”TData = unknown
Type of task.data.
Properties
Section titled “Properties”durationMode
Section titled “durationMode”
readonlydurationMode:DurationMode
Defined in: core/src/model/task.ts:109
task.durationMode or the default from the options.
readonlyid:TaskId
Defined in: core/src/model/task.ts:89
task.id.
readonlyindex:number
Defined in: core/src/model/task.ts:91
Position in NormalizedModel.tasks (input order without dropped tasks).
issues
Section titled “issues”
readonlyissues: readonlyModelIssue[]
Defined in: core/src/model/task.ts:117
Issues of this task, also listed in NormalizedModel.issues.
readonlyname:string
Defined in: core/src/model/task.ts:95
task.name, or '' when it is not a string.
parentId
Section titled “parentId”
readonlyparentId:TaskId|undefined
Defined in: core/src/model/task.ts:113
task.parentId as given (resolved by the hierarchy); undefined if malformed.
precision
Section titled “precision”
readonlyprecision:DatePrecision
Defined in: core/src/model/task.ts:107
task.precision, else 'time' when a used start / end carries a time of day or the
duration has a part shorter than a day, else 'day'.
progress
Section titled “progress”
readonlyprogress:number
Defined in: core/src/model/task.ts:111
task.progress clamped to 0 … 100; 0 when missing or malformed.
readonlyspan:TaskSpan|undefined
Defined in: core/src/model/task.ts:115
The bar; undefined for placeholders and invalid tasks.
readonlytask:Task<TData>
Defined in: core/src/model/task.ts:93
The caller’s task. With 'invalid-shape' issues it does not match Task.
readonlytype:TaskType
Defined in: core/src/model/task.ts:100
Effective kind: 'placeholder' also for a task without dates; 'task' when
the input type is malformed.
readonlyvalid:boolean
Defined in: core/src/model/task.ts:102
false when an error issue made the task unusable: it is a row without a bar.