courthive-components 1.7.1 → 1.8.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.
- package/dist/components/schedule-page/ui/matchUpCard.d.ts +7 -1
- package/dist/components/scheduling-profile/domain/catalogProjections.d.ts +38 -1
- package/dist/components/scheduling-profile/index.d.ts +0 -1
- package/dist/components/scheduling-profile/types.d.ts +1 -0
- package/dist/components/scheduling-profile/ui/schedulingProfileLayout.d.ts +0 -1
- package/dist/components/scheduling-profile/ui/styles.d.ts +0 -4
- package/dist/courthive-components.css +1 -1
- package/dist/courthive-components.es.js +2617 -2545
- package/dist/courthive-components.umd.js +13 -13
- package/dist/index.d.ts +1 -1
- package/package.json +2 -2
- package/dist/components/scheduling-profile/ui/inspectorPanel.d.ts +0 -2
|
@@ -2,4 +2,10 @@ import { CatalogMatchUpItem } from '../types';
|
|
|
2
2
|
export interface MatchUpCardCallbacks {
|
|
3
3
|
onClick?: (matchUp: CatalogMatchUpItem) => void;
|
|
4
4
|
}
|
|
5
|
-
export
|
|
5
|
+
export interface MatchUpCardOptions {
|
|
6
|
+
/** When true, render `scheduledTime` as a prominent header in the title row
|
|
7
|
+
* (top-right) and suppress the standard time chip. Used by the schedule
|
|
8
|
+
* grid's Scheduled tab where the time is the card's primary signal. */
|
|
9
|
+
prominentTime?: boolean;
|
|
10
|
+
}
|
|
11
|
+
export declare function buildMatchUpCard(item: CatalogMatchUpItem, callbacks: MatchUpCardCallbacks, options?: MatchUpCardOptions): HTMLElement;
|
|
@@ -1,4 +1,25 @@
|
|
|
1
|
-
import { CatalogRoundItem, CatalogGroupBy, PlannedRoundBehavior } from '../types';
|
|
1
|
+
import { CatalogRoundItem, CatalogGroupBy, PlannedRoundBehavior, RoundSegment, SchedulingProfile, RoundLocator } from '../types';
|
|
2
|
+
export declare function segmentKeyString(roundKey: string, seg: RoundSegment): string;
|
|
3
|
+
export interface RoundPlacement {
|
|
4
|
+
locator: RoundLocator;
|
|
5
|
+
date: string;
|
|
6
|
+
venueId: string;
|
|
7
|
+
roundSegment?: RoundSegment;
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Build a placement index keyed by `{roundKey}` (whole) and
|
|
11
|
+
* `{roundKey}|{n}/{count}` (segmented). The catalog UI uses this to display
|
|
12
|
+
* the date + venue for any placed round so an operator can locate (and
|
|
13
|
+
* remove) placements without remembering where they were dropped.
|
|
14
|
+
*/
|
|
15
|
+
export declare function buildPlacementIndex(profile: SchedulingProfile): Map<string, RoundPlacement[]>;
|
|
16
|
+
/**
|
|
17
|
+
* Max `segmentsCount` per roundKey across all placed segments. Lets the
|
|
18
|
+
* catalog auto-expand a round into sub-rows when segments are already
|
|
19
|
+
* placed — so an orphaned segment is always visible and removable, even if
|
|
20
|
+
* the operator has not manually clicked the split chip.
|
|
21
|
+
*/
|
|
22
|
+
export declare function getPlacedSegmentsCount(profile: SchedulingProfile): Map<string, number>;
|
|
2
23
|
export declare function filterCatalog(catalog: CatalogRoundItem[], query: string, plannedKeys: Set<string>, behavior?: PlannedRoundBehavior): Array<CatalogRoundItem & {
|
|
3
24
|
isPlanned: boolean;
|
|
4
25
|
}>;
|
|
@@ -14,3 +35,19 @@ export declare function getPlannedRoundKeys(profile: {
|
|
|
14
35
|
}[];
|
|
15
36
|
}[];
|
|
16
37
|
}[]): Set<string>;
|
|
38
|
+
/**
|
|
39
|
+
* Per-segment planned keys — every placed segment gets a key
|
|
40
|
+
* `{roundKey}|{n}/{count}` so that exploded catalog rows can mark only the
|
|
41
|
+
* specific segment(s) already placed (instead of dimming the whole round).
|
|
42
|
+
* A whole-round placement claims every segment regardless of split count.
|
|
43
|
+
*/
|
|
44
|
+
export declare function getPlannedSegmentKeys(profile: {
|
|
45
|
+
venues: {
|
|
46
|
+
rounds: ({
|
|
47
|
+
roundSegment?: {
|
|
48
|
+
segmentNumber: number;
|
|
49
|
+
segmentsCount: number;
|
|
50
|
+
};
|
|
51
|
+
} & Partial<CatalogRoundItem>)[];
|
|
52
|
+
}[];
|
|
53
|
+
}[]): Set<string>;
|
|
@@ -16,7 +16,6 @@ export { deepClone, clamp, roundKeyString, roundLabel, sameLocator, pickRoundKey
|
|
|
16
16
|
export { buildDateStrip } from './ui/dateStrip';
|
|
17
17
|
export { buildVenueBoard } from './ui/venueBoard';
|
|
18
18
|
export { buildRoundCatalog } from './ui/roundCatalog';
|
|
19
|
-
export { buildInspectorPanel } from './ui/inspectorPanel';
|
|
20
19
|
export { buildIssuesPanel } from './ui/issuesPanel';
|
|
21
20
|
export { buildRoundCard } from './ui/roundCard';
|
|
22
21
|
export { createCardPopoverManager } from './ui/cardPopover';
|
|
@@ -4,7 +4,6 @@ export interface LayoutPanels {
|
|
|
4
4
|
issuesPanel: UIPanel<ProfileStoreState>;
|
|
5
5
|
venueBoard: UIPanel<ProfileStoreState>;
|
|
6
6
|
roundCatalog: UIPanel<ProfileStoreState>;
|
|
7
|
-
inspectorPanel: UIPanel<ProfileStoreState>;
|
|
8
7
|
}
|
|
9
8
|
export declare function buildSchedulingProfileLayout(panels: LayoutPanels, options?: {
|
|
10
9
|
hideLeft?: boolean;
|
|
@@ -36,10 +36,6 @@ export declare const spGroupStyle: () => string;
|
|
|
36
36
|
export declare const spGroupHeaderStyle: () => string;
|
|
37
37
|
export declare const spGroupBodyStyle: () => string;
|
|
38
38
|
export declare const spCatalogItemStyle: () => string;
|
|
39
|
-
export declare const spInspectorStyle: () => string;
|
|
40
|
-
export declare const spKvStyle: () => string;
|
|
41
|
-
export declare const spKvKeyStyle: () => string;
|
|
42
|
-
export declare const spKvValueStyle: () => string;
|
|
43
39
|
export declare const spSmallStyle: () => string;
|
|
44
40
|
export declare const spPopoverItemStyle: () => string;
|
|
45
41
|
export declare const spPopoverDeleteStyle: () => string;
|