@elaraai/east-ui 1.0.30 → 1.0.32
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/src/charts/chart/index.d.ts +116 -12
- package/dist/src/charts/chart/index.d.ts.map +1 -1
- package/dist/src/charts/chart/index.js +100 -37
- package/dist/src/charts/chart/index.js.map +1 -1
- package/dist/src/charts/index.d.ts +2 -1
- package/dist/src/charts/index.d.ts.map +1 -1
- package/dist/src/charts/index.js +2 -1
- package/dist/src/charts/index.js.map +1 -1
- package/dist/src/charts/spec/index.d.ts +5 -3
- package/dist/src/charts/spec/index.d.ts.map +1 -1
- package/dist/src/charts/spec/index.js +2 -2
- package/dist/src/charts/spec/index.js.map +1 -1
- package/dist/src/charts/spec/types.d.ts +7 -2
- package/dist/src/charts/spec/types.d.ts.map +1 -1
- package/dist/src/charts/spec/types.js +7 -2
- package/dist/src/charts/spec/types.js.map +1 -1
- package/dist/src/collections/blend/index.d.ts +59 -0
- package/dist/src/collections/blend/index.d.ts.map +1 -1
- package/dist/src/collections/blend/index.js +1 -0
- package/dist/src/collections/blend/index.js.map +1 -1
- package/dist/src/collections/blend/types.d.ts +66 -0
- package/dist/src/collections/blend/types.d.ts.map +1 -1
- package/dist/src/collections/blend/types.js +15 -1
- package/dist/src/collections/blend/types.js.map +1 -1
- package/dist/src/collections/board/index.d.ts +381 -28
- package/dist/src/collections/board/index.d.ts.map +1 -1
- package/dist/src/collections/board/index.js +133 -5
- package/dist/src/collections/board/index.js.map +1 -1
- package/dist/src/collections/board/types.d.ts +1 -198
- package/dist/src/collections/board/types.d.ts.map +1 -1
- package/dist/src/collections/board/types.js +6 -73
- package/dist/src/collections/board/types.js.map +1 -1
- package/dist/src/collections/gantt/index.d.ts +63 -24
- package/dist/src/collections/gantt/index.d.ts.map +1 -1
- package/dist/src/collections/gantt/index.js +98 -64
- package/dist/src/collections/gantt/index.js.map +1 -1
- package/dist/src/collections/gantt/types.d.ts +31 -76
- package/dist/src/collections/gantt/types.d.ts.map +1 -1
- package/dist/src/collections/gantt/types.js +18 -60
- package/dist/src/collections/gantt/types.js.map +1 -1
- package/dist/src/collections/library/index.d.ts +700 -17
- package/dist/src/collections/library/index.d.ts.map +1 -1
- package/dist/src/collections/library/index.js +66 -12
- package/dist/src/collections/library/index.js.map +1 -1
- package/dist/src/collections/library/types.d.ts +710 -38
- package/dist/src/collections/library/types.d.ts.map +1 -1
- package/dist/src/collections/library/types.js +48 -20
- package/dist/src/collections/library/types.js.map +1 -1
- package/dist/src/collections/planner/index.d.ts +45 -26
- package/dist/src/collections/planner/index.d.ts.map +1 -1
- package/dist/src/collections/planner/index.js +37 -27
- package/dist/src/collections/planner/index.js.map +1 -1
- package/dist/src/collections/planner/types.d.ts +11 -0
- package/dist/src/collections/planner/types.d.ts.map +1 -1
- package/dist/src/collections/planner/types.js +11 -0
- package/dist/src/collections/planner/types.js.map +1 -1
- package/dist/src/collections/roster/index.d.ts +397 -21
- package/dist/src/collections/roster/index.d.ts.map +1 -1
- package/dist/src/collections/roster/index.js +94 -4
- package/dist/src/collections/roster/index.js.map +1 -1
- package/dist/src/collections/roster/types.d.ts +15 -161
- package/dist/src/collections/roster/types.d.ts.map +1 -1
- package/dist/src/collections/roster/types.js +13 -58
- package/dist/src/collections/roster/types.js.map +1 -1
- package/dist/src/collections/table/index.d.ts +8 -0
- package/dist/src/collections/table/index.d.ts.map +1 -1
- package/dist/src/collections/table/index.js +22 -0
- package/dist/src/collections/table/index.js.map +1 -1
- package/dist/src/collections/table/types.d.ts +17 -0
- package/dist/src/collections/table/types.d.ts.map +1 -1
- package/dist/src/collections/table/types.js.map +1 -1
- package/dist/src/component.d.ts +1411 -299
- package/dist/src/component.d.ts.map +1 -1
- package/dist/src/component.js +131 -11
- package/dist/src/component.js.map +1 -1
- package/dist/src/contracts/drag.d.ts +122 -1
- package/dist/src/contracts/drag.d.ts.map +1 -1
- package/dist/src/contracts/drag.js +46 -1
- package/dist/src/contracts/drag.js.map +1 -1
- package/dist/src/contracts/index.d.ts +2 -1
- package/dist/src/contracts/index.d.ts.map +1 -1
- package/dist/src/contracts/index.js +2 -1
- package/dist/src/contracts/index.js.map +1 -1
- package/dist/src/contracts/review.d.ts +198 -0
- package/dist/src/contracts/review.d.ts.map +1 -0
- package/dist/src/contracts/review.js +163 -0
- package/dist/src/contracts/review.js.map +1 -0
- package/dist/src/index.d.ts +3 -2
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/index.js +4 -2
- package/dist/src/index.js.map +1 -1
- package/dist/src/internal.d.ts +4 -2
- package/dist/src/internal.d.ts.map +1 -1
- package/dist/src/internal.js +5 -2
- package/dist/src/internal.js.map +1 -1
- package/dist/src/layout/expandable/index.d.ts +116 -0
- package/dist/src/layout/expandable/index.d.ts.map +1 -0
- package/dist/src/layout/expandable/index.js +129 -0
- package/dist/src/layout/expandable/index.js.map +1 -0
- package/dist/src/layout/expandable/types.d.ts +43 -0
- package/dist/src/layout/expandable/types.d.ts.map +1 -0
- package/dist/src/layout/expandable/types.js +18 -0
- package/dist/src/layout/expandable/types.js.map +1 -0
- package/dist/src/layout/index.d.ts +1 -0
- package/dist/src/layout/index.d.ts.map +1 -1
- package/dist/src/layout/index.js +1 -0
- package/dist/src/layout/index.js.map +1 -1
- package/dist/src/runtime/charts/chart.d.ts +16 -13
- package/dist/src/runtime/charts/chart.d.ts.map +1 -1
- package/dist/src/runtime/charts/chart.js +16 -13
- package/dist/src/runtime/charts/chart.js.map +1 -1
- package/dist/src/runtime/collections/library.d.ts +4 -2
- package/dist/src/runtime/collections/library.d.ts.map +1 -1
- package/dist/src/runtime/collections/library.js +4 -2
- package/dist/src/runtime/collections/library.js.map +1 -1
- package/dist/src/runtime/layout/expandable.d.ts +43 -0
- package/dist/src/runtime/layout/expandable.d.ts.map +1 -0
- package/dist/src/runtime/layout/expandable.js +41 -0
- package/dist/src/runtime/layout/expandable.js.map +1 -0
- package/dist/src/runtime/layout/index.d.ts +1 -0
- package/dist/src/runtime/layout/index.d.ts.map +1 -1
- package/dist/src/runtime/layout/index.js +1 -0
- package/dist/src/runtime/layout/index.js.map +1 -1
- package/dist/test/charts/chart.examples.d.ts +8 -4
- package/dist/test/charts/chart.examples.d.ts.map +1 -1
- package/dist/test/charts/chart.examples.js +89 -34
- package/dist/test/charts/chart.examples.js.map +1 -1
- package/dist/test/collections/blend.examples.d.ts +10 -1
- package/dist/test/collections/blend.examples.d.ts.map +1 -1
- package/dist/test/collections/blend.examples.js +52 -6
- package/dist/test/collections/blend.examples.js.map +1 -1
- package/dist/test/collections/board.examples.d.ts +8 -1
- package/dist/test/collections/board.examples.d.ts.map +1 -1
- package/dist/test/collections/board.examples.js +32 -5
- package/dist/test/collections/board.examples.js.map +1 -1
- package/dist/test/collections/gantt.examples.d.ts +26 -1
- package/dist/test/collections/gantt.examples.d.ts.map +1 -1
- package/dist/test/collections/gantt.examples.js +153 -27
- package/dist/test/collections/gantt.examples.js.map +1 -1
- package/dist/test/collections/library.examples.d.ts +3 -0
- package/dist/test/collections/library.examples.d.ts.map +1 -1
- package/dist/test/collections/library.examples.js +107 -2
- package/dist/test/collections/library.examples.js.map +1 -1
- package/dist/test/collections/planner.examples.d.ts +14 -0
- package/dist/test/collections/planner.examples.d.ts.map +1 -1
- package/dist/test/collections/planner.examples.js +127 -3
- package/dist/test/collections/planner.examples.js.map +1 -1
- package/dist/test/collections/roster.examples.d.ts +17 -1
- package/dist/test/collections/roster.examples.d.ts.map +1 -1
- package/dist/test/collections/roster.examples.js +89 -9
- package/dist/test/collections/roster.examples.js.map +1 -1
- package/dist/test/collections/table.examples.d.ts +16 -0
- package/dist/test/collections/table.examples.d.ts.map +1 -1
- package/dist/test/collections/table.examples.js +62 -2
- package/dist/test/collections/table.examples.js.map +1 -1
- package/dist/test/disclosure/story.examples.js +3 -3
- package/dist/test/disclosure/story.examples.js.map +1 -1
- package/dist/test/layout/expandable.examples.d.ts +3 -0
- package/dist/test/layout/expandable.examples.d.ts.map +1 -0
- package/dist/test/layout/expandable.examples.js +31 -0
- package/dist/test/layout/expandable.examples.js.map +1 -0
- package/dist/test/layout/index.d.ts +1 -0
- package/dist/test/layout/index.d.ts.map +1 -1
- package/dist/test/layout/index.js +1 -0
- package/dist/test/layout/index.js.map +1 -1
- package/package.json +3 -3
|
@@ -7,6 +7,8 @@ import { TableCellClickEventType, TableRowClickEventType, TableSortEventType } f
|
|
|
7
7
|
import { StatusTokenType, DensityType, type DensityLiteral } from "../../style/interaction.js";
|
|
8
8
|
import { type PlotGutter } from "../../shared/plot-gutter.js";
|
|
9
9
|
import { SliceBindType } from "../../platform/slice/index.js";
|
|
10
|
+
import type { ReviewConfig, RowRefType } from "../../contracts/review.js";
|
|
11
|
+
import type { DragEventType } from "../../contracts/drag.js";
|
|
10
12
|
import { type SliceAffordanceLiteral } from "../../contracts/slice-affordances.js";
|
|
11
13
|
export { AlignType, LabelInputType, type AlignLiteral, type LabelInput } from "../../style.js";
|
|
12
14
|
import { TableVariantType, TableSizeType, type TableVariantLiteral, type TableSizeLiteral } from "../table/types.js";
|
|
@@ -31,22 +33,6 @@ export declare const TimeStepType: VariantType<{
|
|
|
31
33
|
readonly months: FloatType;
|
|
32
34
|
}>;
|
|
33
35
|
export type TimeStepType = typeof TimeStepType;
|
|
34
|
-
/**
|
|
35
|
-
* Schedule status of a task bar — drives the bar's colour, border, and
|
|
36
|
-
* progress-fill from the canonical status palette.
|
|
37
|
-
*
|
|
38
|
-
* @property committed - Agreed/baseline work (green).
|
|
39
|
-
* @property proposed - In-progress or not-yet-locked work (brand teal).
|
|
40
|
-
* @property atRisk - Slipping / blocked work (red).
|
|
41
|
-
*/
|
|
42
|
-
export declare const GanttTaskStatusType: VariantType<{
|
|
43
|
-
readonly committed: NullType;
|
|
44
|
-
readonly proposed: NullType;
|
|
45
|
-
readonly atRisk: NullType;
|
|
46
|
-
}>;
|
|
47
|
-
export type GanttTaskStatusType = typeof GanttTaskStatusType;
|
|
48
|
-
/** String shorthand for {@link GanttTaskStatusType}. */
|
|
49
|
-
export type GanttTaskStatusLiteral = "committed" | "proposed" | "atRisk";
|
|
50
36
|
/**
|
|
51
37
|
* Kind of a milestone diamond — drives its fill colour.
|
|
52
38
|
*
|
|
@@ -168,25 +154,6 @@ export declare const GanttTaskClickEventType: StructType<{
|
|
|
168
154
|
readonly taskEnd: DateTimeType;
|
|
169
155
|
}>;
|
|
170
156
|
export type GanttTaskClickEventType = typeof GanttTaskClickEventType;
|
|
171
|
-
/**
|
|
172
|
-
* Event data for task drag/resize events.
|
|
173
|
-
*
|
|
174
|
-
* @property rowIndex - Row index (0-based)
|
|
175
|
-
* @property taskIndex - Task index within the row (0-based)
|
|
176
|
-
* @property previousStart - Previous start date/time
|
|
177
|
-
* @property previousEnd - Previous end date/time
|
|
178
|
-
* @property newStart - New start date/time
|
|
179
|
-
* @property newEnd - New end date/time
|
|
180
|
-
*/
|
|
181
|
-
export declare const GanttTaskDragEventType: StructType<{
|
|
182
|
-
readonly rowIndex: IntegerType;
|
|
183
|
-
readonly taskIndex: IntegerType;
|
|
184
|
-
readonly previousStart: DateTimeType;
|
|
185
|
-
readonly previousEnd: DateTimeType;
|
|
186
|
-
readonly newStart: DateTimeType;
|
|
187
|
-
readonly newEnd: DateTimeType;
|
|
188
|
-
}>;
|
|
189
|
-
export type GanttTaskDragEventType = typeof GanttTaskDragEventType;
|
|
190
157
|
/**
|
|
191
158
|
* Event data for task progress change events.
|
|
192
159
|
*
|
|
@@ -202,21 +169,6 @@ export declare const GanttTaskProgressChangeEventType: StructType<{
|
|
|
202
169
|
readonly newProgress: FloatType;
|
|
203
170
|
}>;
|
|
204
171
|
export type GanttTaskProgressChangeEventType = typeof GanttTaskProgressChangeEventType;
|
|
205
|
-
/**
|
|
206
|
-
* Event data for task duration change events (dragging task end).
|
|
207
|
-
*
|
|
208
|
-
* @property rowIndex - Row index (0-based)
|
|
209
|
-
* @property taskIndex - Task index within the row (0-based)
|
|
210
|
-
* @property previousEnd - Previous end date/time
|
|
211
|
-
* @property newEnd - New end date/time
|
|
212
|
-
*/
|
|
213
|
-
export declare const GanttTaskDurationChangeEventType: StructType<{
|
|
214
|
-
readonly rowIndex: IntegerType;
|
|
215
|
-
readonly taskIndex: IntegerType;
|
|
216
|
-
readonly previousEnd: DateTimeType;
|
|
217
|
-
readonly newEnd: DateTimeType;
|
|
218
|
-
}>;
|
|
219
|
-
export type GanttTaskDurationChangeEventType = typeof GanttTaskDurationChangeEventType;
|
|
220
172
|
/**
|
|
221
173
|
* Event data for milestone click events.
|
|
222
174
|
*
|
|
@@ -230,21 +182,6 @@ export declare const GanttMilestoneClickEventType: StructType<{
|
|
|
230
182
|
readonly milestoneDate: DateTimeType;
|
|
231
183
|
}>;
|
|
232
184
|
export type GanttMilestoneClickEventType = typeof GanttMilestoneClickEventType;
|
|
233
|
-
/**
|
|
234
|
-
* Event data for milestone drag events.
|
|
235
|
-
*
|
|
236
|
-
* @property rowIndex - Row index (0-based)
|
|
237
|
-
* @property milestoneIndex - Milestone index within the row (0-based)
|
|
238
|
-
* @property previousDate - Previous date/time of the milestone
|
|
239
|
-
* @property newDate - New date/time of the milestone
|
|
240
|
-
*/
|
|
241
|
-
export declare const GanttMilestoneDragEventType: StructType<{
|
|
242
|
-
readonly rowIndex: IntegerType;
|
|
243
|
-
readonly milestoneIndex: IntegerType;
|
|
244
|
-
readonly previousDate: DateTimeType;
|
|
245
|
-
readonly newDate: DateTimeType;
|
|
246
|
-
}>;
|
|
247
|
-
export type GanttMilestoneDragEventType = typeof GanttMilestoneDragEventType;
|
|
248
185
|
/**
|
|
249
186
|
* Style type for the Gantt component — visual-only.
|
|
250
187
|
*
|
|
@@ -317,12 +254,13 @@ export type GanttStyleType = typeof GanttStyleType;
|
|
|
317
254
|
* @property onSortChange - Sort change callback — main
|
|
318
255
|
* @property onTaskClick - Task click callback — main
|
|
319
256
|
* @property onTaskDoubleClick - Task double-click callback — main
|
|
320
|
-
* @property
|
|
321
|
-
* @property
|
|
322
|
-
* @property
|
|
257
|
+
* @property id - DnD target identity — main (#268)
|
|
258
|
+
* @property sources - Library ids accepted for `add` drags — main (#268)
|
|
259
|
+
* @property onDrag - Drag funnel (add / move / resize / remove grammar) — main (#268)
|
|
260
|
+
* @property canDrop - Optional IR-level drop veto — main (#268)
|
|
261
|
+
* @property onTaskProgressChange - Task progress change callback (bespoke, out-of-grammar) — main
|
|
323
262
|
* @property onMilestoneClick - Milestone click callback — main
|
|
324
263
|
* @property onMilestoneDoubleClick - Milestone double-click callback — main
|
|
325
|
-
* @property onMilestoneDrag - Milestone drag callback — main
|
|
326
264
|
*/
|
|
327
265
|
export interface GanttStyle<ColumnKeys extends string = string> {
|
|
328
266
|
/** Column keys to freeze (pin left). Frozen columns appear first and stay visible during horizontal scroll. */
|
|
@@ -365,6 +303,11 @@ export interface GanttStyle<ColumnKeys extends string = string> {
|
|
|
365
303
|
durationStep?: SubtypeExprOrValue<TimeStepType>;
|
|
366
304
|
/** Row-status callback: `(rowIndex) => StatusToken`; renderer tints the row. */
|
|
367
305
|
rowStatus?: SubtypeExprOrValue<FunctionType<[IntegerType], StatusTokenType>>;
|
|
306
|
+
/** Optional review chrome (#263) — the shared contract's per-row
|
|
307
|
+
* Approve/Reject decision column + the commitBar batch foot, identical to
|
|
308
|
+
* Planner's. Presence is the opt-in; pair with the `rowSpec` `status` /
|
|
309
|
+
* `approval` accessors. Callbacks receive `{ rowIndex }`. */
|
|
310
|
+
review?: ReviewConfig<RowRefType>;
|
|
368
311
|
/** Callback triggered when a cell is clicked. */
|
|
369
312
|
onCellClick?: SubtypeExprOrValue<FunctionType<[TableCellClickEventType], NullType>>;
|
|
370
313
|
/** Callback triggered when a cell is double-clicked. */
|
|
@@ -379,17 +322,29 @@ export interface GanttStyle<ColumnKeys extends string = string> {
|
|
|
379
322
|
onTaskClick?: SubtypeExprOrValue<FunctionType<[GanttTaskClickEventType], NullType>>;
|
|
380
323
|
/** Callback triggered when a task is double-clicked. */
|
|
381
324
|
onTaskDoubleClick?: SubtypeExprOrValue<FunctionType<[GanttTaskClickEventType], NullType>>;
|
|
382
|
-
/**
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
325
|
+
/** DnD target identity (#268) — connects the Gantt to sibling Libraries
|
|
326
|
+
* and names it in drag-grammar cell refs. Only meaningful with `onDrag`. */
|
|
327
|
+
id?: string;
|
|
328
|
+
/** Library ids accepted for `add` drags (omit = no adds). */
|
|
329
|
+
sources?: string[];
|
|
330
|
+
/** Drag funnel (#268) — every completed drag arrives as ONE shared
|
|
331
|
+
* `DragEventType` value: Library drops as `add` (landing as
|
|
332
|
+
* `proposed(added)` bars), task-body drags as `move`, edge drags as
|
|
333
|
+
* `resize` (`row` = row index key, `slot` = snapped ISO instant,
|
|
334
|
+
* `event` = `t<taskIndex>` / `m<milestoneIndex>`). The target registers
|
|
335
|
+
* iff this is present; without it the Gantt is exactly as before. */
|
|
336
|
+
onDrag?: SubtypeExprOrValue<FunctionType<[DragEventType], NullType>>;
|
|
337
|
+
/** Optional IR-level drop veto — consulted per hovered destination with
|
|
338
|
+
* the synthesized candidate event (`CanDropFnType` semantics); `false`
|
|
339
|
+
* ⇒ the ⊘ invalid stage and the drop is a no-op. Absent ⇒ accept. */
|
|
340
|
+
canDrop?: SubtypeExprOrValue<FunctionType<[DragEventType], BooleanType>>;
|
|
341
|
+
/** Callback triggered when task progress changes. Stays bespoke (out of
|
|
342
|
+
* the drag grammar) on purpose: the progress handle adjusts a percentage
|
|
343
|
+
* INSIDE one bar, not a spatial drag between cells. */
|
|
387
344
|
onTaskProgressChange?: SubtypeExprOrValue<FunctionType<[GanttTaskProgressChangeEventType], NullType>>;
|
|
388
345
|
/** Callback triggered when a milestone is clicked. */
|
|
389
346
|
onMilestoneClick?: SubtypeExprOrValue<FunctionType<[GanttMilestoneClickEventType], NullType>>;
|
|
390
347
|
/** Callback triggered when a milestone is double-clicked. */
|
|
391
348
|
onMilestoneDoubleClick?: SubtypeExprOrValue<FunctionType<[GanttMilestoneClickEventType], NullType>>;
|
|
392
|
-
/** Callback triggered when a milestone is dragged. */
|
|
393
|
-
onMilestoneDrag?: SubtypeExprOrValue<FunctionType<[GanttMilestoneDragEventType], NullType>>;
|
|
394
349
|
}
|
|
395
350
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/collections/gantt/types.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EACH,KAAK,kBAAkB,EACvB,UAAU,EACV,UAAU,EACV,WAAW,EACX,UAAU,EACV,WAAW,EACX,YAAY,EACZ,SAAS,EACT,WAAW,EACX,QAAQ,EACR,YAAY,EACf,MAAM,eAAe,CAAC;AAEvB,OAAO,EAAE,uBAAuB,EAAE,sBAAsB,EAAE,kBAAkB,EAAE,MAAM,mBAAmB,CAAC;AAExG,OAAO,EAAE,eAAe,EAAE,WAAW,EAAE,KAAK,cAAc,EAAE,MAAM,4BAA4B,CAAC;AAC/F,OAAO,EAAkB,KAAK,UAAU,EAAE,MAAM,6BAA6B,CAAC;AAC9E,OAAO,EAAE,aAAa,EAAE,MAAM,+BAA+B,CAAC;
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/collections/gantt/types.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EACH,KAAK,kBAAkB,EACvB,UAAU,EACV,UAAU,EACV,WAAW,EACX,UAAU,EACV,WAAW,EACX,YAAY,EACZ,SAAS,EACT,WAAW,EACX,QAAQ,EACR,YAAY,EACf,MAAM,eAAe,CAAC;AAEvB,OAAO,EAAE,uBAAuB,EAAE,sBAAsB,EAAE,kBAAkB,EAAE,MAAM,mBAAmB,CAAC;AAExG,OAAO,EAAE,eAAe,EAAE,WAAW,EAAE,KAAK,cAAc,EAAE,MAAM,4BAA4B,CAAC;AAC/F,OAAO,EAAkB,KAAK,UAAU,EAAE,MAAM,6BAA6B,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C;IACtG,sDAAsD;IACtD,gBAAgB,CAAC,EAAE,kBAAkB,CAAC,YAAY,CAAC,CAAC,4BAA4B,CAAC,EAAE,QAAQ,CAAC,CAAC,CAAC;IAC9F,6DAA6D;IAC7D,sBAAsB,CAAC,EAAE,kBAAkB,CAAC,YAAY,CAAC,CAAC,4BAA4B,CAAC,EAAE,QAAQ,CAAC,CAAC,CAAC;CACvG"}
|
|
@@ -37,21 +37,15 @@ export const TimeStepType = VariantType({
|
|
|
37
37
|
months: FloatType,
|
|
38
38
|
});
|
|
39
39
|
// ============================================================================
|
|
40
|
-
//
|
|
40
|
+
// Milestone Kind
|
|
41
41
|
// ============================================================================
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
*/
|
|
50
|
-
export const GanttTaskStatusType = VariantType({
|
|
51
|
-
committed: NullType,
|
|
52
|
-
proposed: NullType,
|
|
53
|
-
atRisk: NullType,
|
|
54
|
-
});
|
|
42
|
+
// NOTE (#262, breaking): the private `GanttTaskStatusType`
|
|
43
|
+
// (committed / proposed / atRisk) has been removed. A task's audit state is
|
|
44
|
+
// now the shared event lifecycle `PlannerStateType`
|
|
45
|
+
// (committed / proposed(added|model|removed) / rejected) on `GanttTaskType.state`,
|
|
46
|
+
// and risk moved to the status axis: per-task `status: Option<StatusValueType>`
|
|
47
|
+
// (e.g. the old `"atRisk"` becomes `status: "danger"`) alongside the existing
|
|
48
|
+
// per-row `rowStatus`.
|
|
55
49
|
/**
|
|
56
50
|
* Kind of a milestone diamond — drives its fill colour.
|
|
57
51
|
*
|
|
@@ -145,24 +139,16 @@ export const GanttTaskClickEventType = StructType({
|
|
|
145
139
|
taskStart: DateTimeType,
|
|
146
140
|
taskEnd: DateTimeType,
|
|
147
141
|
});
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
export const GanttTaskDragEventType = StructType({
|
|
159
|
-
rowIndex: IntegerType,
|
|
160
|
-
taskIndex: IntegerType,
|
|
161
|
-
previousStart: DateTimeType,
|
|
162
|
-
previousEnd: DateTimeType,
|
|
163
|
-
newStart: DateTimeType,
|
|
164
|
-
newEnd: DateTimeType,
|
|
165
|
-
});
|
|
142
|
+
// NOTE (#268, breaking): the bespoke `GanttTaskDragEventType`,
|
|
143
|
+
// `GanttTaskDurationChangeEventType`, and `GanttMilestoneDragEventType`
|
|
144
|
+
// (rowIndex/taskIndex integers + DateTimes) are retired — task-body drags
|
|
145
|
+
// now arrive as the shared drag grammar's `move` and edge drags as `resize`
|
|
146
|
+
// through one `onDrag: Fn([DragEventType], Null)` callback (see
|
|
147
|
+
// `contracts/drag.ts`; row = the row index key, slot = the snapped ISO
|
|
148
|
+
// instant, event = the task/milestone index key `t<i>` / `m<i>`).
|
|
149
|
+
// `GanttTaskProgressChangeEventType` stays bespoke on purpose: a progress
|
|
150
|
+
// handle drag adjusts a percentage INSIDE one bar — it is not a spatial drag
|
|
151
|
+
// between cells, so it is out of the grammar.
|
|
166
152
|
/**
|
|
167
153
|
* Event data for task progress change events.
|
|
168
154
|
*
|
|
@@ -177,20 +163,6 @@ export const GanttTaskProgressChangeEventType = StructType({
|
|
|
177
163
|
previousProgress: FloatType,
|
|
178
164
|
newProgress: FloatType,
|
|
179
165
|
});
|
|
180
|
-
/**
|
|
181
|
-
* Event data for task duration change events (dragging task end).
|
|
182
|
-
*
|
|
183
|
-
* @property rowIndex - Row index (0-based)
|
|
184
|
-
* @property taskIndex - Task index within the row (0-based)
|
|
185
|
-
* @property previousEnd - Previous end date/time
|
|
186
|
-
* @property newEnd - New end date/time
|
|
187
|
-
*/
|
|
188
|
-
export const GanttTaskDurationChangeEventType = StructType({
|
|
189
|
-
rowIndex: IntegerType,
|
|
190
|
-
taskIndex: IntegerType,
|
|
191
|
-
previousEnd: DateTimeType,
|
|
192
|
-
newEnd: DateTimeType,
|
|
193
|
-
});
|
|
194
166
|
/**
|
|
195
167
|
* Event data for milestone click events.
|
|
196
168
|
*
|
|
@@ -203,20 +175,6 @@ export const GanttMilestoneClickEventType = StructType({
|
|
|
203
175
|
milestoneIndex: IntegerType,
|
|
204
176
|
milestoneDate: DateTimeType,
|
|
205
177
|
});
|
|
206
|
-
/**
|
|
207
|
-
* Event data for milestone drag events.
|
|
208
|
-
*
|
|
209
|
-
* @property rowIndex - Row index (0-based)
|
|
210
|
-
* @property milestoneIndex - Milestone index within the row (0-based)
|
|
211
|
-
* @property previousDate - Previous date/time of the milestone
|
|
212
|
-
* @property newDate - New date/time of the milestone
|
|
213
|
-
*/
|
|
214
|
-
export const GanttMilestoneDragEventType = StructType({
|
|
215
|
-
rowIndex: IntegerType,
|
|
216
|
-
milestoneIndex: IntegerType,
|
|
217
|
-
previousDate: DateTimeType,
|
|
218
|
-
newDate: DateTimeType,
|
|
219
|
-
});
|
|
220
178
|
/**
|
|
221
179
|
* Style type for the Gantt component — visual-only.
|
|
222
180
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/collections/gantt/types.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAEH,UAAU,EACV,UAAU,EACV,WAAW,EACX,UAAU,EACV,WAAW,EACX,YAAY,EACZ,SAAS,EACT,WAAW,EACX,QAAQ,EACR,YAAY,GACf,MAAM,eAAe,CAAC;AAEvB,OAAO,EAAE,uBAAuB,EAAE,sBAAsB,EAAE,kBAAkB,EAAE,MAAM,mBAAmB,CAAC;AAExG,OAAO,EAAE,eAAe,EAAE,WAAW,EAAuB,MAAM,4BAA4B,CAAC;AAC/F,OAAO,EAAE,cAAc,EAAmB,MAAM,6BAA6B,CAAC;AAC9E,OAAO,EAAE,aAAa,EAAE,MAAM,+BAA+B,CAAC;
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src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