courthive-components 4.2.0 → 4.3.0
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.
|
@@ -52,7 +52,7 @@ export interface ActiveStripCourtColumn {
|
|
|
52
52
|
export interface ActiveStripGrid {
|
|
53
53
|
columns: ActiveStripCourtColumn[];
|
|
54
54
|
}
|
|
55
|
-
export type ActiveStripCellState = 'free' | 'in-progress' | 'suspended' | 'next' | 'completed';
|
|
55
|
+
export type ActiveStripCellState = 'free' | 'in-progress' | 'suspended' | 'next' | 'due' | 'completed';
|
|
56
56
|
export interface ActiveStripCell {
|
|
57
57
|
courtId: string;
|
|
58
58
|
state: ActiveStripCellState;
|
|
@@ -73,6 +73,18 @@ export interface ActiveStripStatusOptions {
|
|
|
73
73
|
inProgressStatuses?: ReadonlySet<string>;
|
|
74
74
|
suspendedStatuses?: ReadonlySet<string>;
|
|
75
75
|
completedStatuses?: ReadonlySet<string>;
|
|
76
|
+
/**
|
|
77
|
+
* MatchUps that should have started by now and have not been called.
|
|
78
|
+
*
|
|
79
|
+
* The consumer decides — the rule needs a venue-local clock and knowledge of
|
|
80
|
+
* the schedule annotations (a "followed by" matchUp was never promised its
|
|
81
|
+
* `scheduledTime`), neither of which this component has.
|
|
82
|
+
*
|
|
83
|
+
* Only consulted for a court with nothing live and nothing called, which is
|
|
84
|
+
* the case where the `free` state was lying: the court is not free-and-fine,
|
|
85
|
+
* it is idle with work waiting on it.
|
|
86
|
+
*/
|
|
87
|
+
dueMatchUpIds?: ReadonlySet<string>;
|
|
76
88
|
}
|
|
77
89
|
export declare function computeActiveStripCell(column: ActiveStripCourtColumn, options?: ActiveStripStatusOptions): ActiveStripCell;
|
|
78
90
|
export declare function computeActiveStrip(grid: ActiveStripGrid, options?: ActiveStripStatusOptions): ActiveStripCell[];
|
|
@@ -25,6 +25,12 @@ export interface ActiveStripCourtBlock {
|
|
|
25
25
|
export interface ActiveStripPanelData {
|
|
26
26
|
/** Court columns, in display order. The strip computes one cell per column. */
|
|
27
27
|
grid: ActiveStripGrid;
|
|
28
|
+
/**
|
|
29
|
+
* MatchUps that should have started by now and have not been called — see
|
|
30
|
+
* `ActiveStripStatusOptions.dueMatchUpIds`. Supplied per refresh because it
|
|
31
|
+
* moves with the clock.
|
|
32
|
+
*/
|
|
33
|
+
dueMatchUpIds?: readonly string[];
|
|
28
34
|
/** Optional display labels per courtId. Falls back to courtId. */
|
|
29
35
|
courts?: ActiveStripCourtMeta[];
|
|
30
36
|
/**
|