courthive-components 1.10.1 → 3.0.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.
Files changed (46) hide show
  1. package/dist/components/{temporal-grid/controller/temporalGridControl.d.ts → availability-grid/controller/availabilityGridControl.d.ts} +40 -13
  2. package/dist/components/{temporal-grid → availability-grid}/controller/viewProjections.d.ts +5 -5
  3. package/dist/components/{temporal-grid → availability-grid}/engine/viewState.d.ts +4 -4
  4. package/dist/components/{temporal-grid → availability-grid}/index.d.ts +6 -6
  5. package/dist/components/{temporal-grid → availability-grid}/timeline/types.d.ts +2 -2
  6. package/dist/components/{temporal-grid/ui/temporalGrid.d.ts → availability-grid/ui/availabilityGrid.d.ts} +14 -14
  7. package/dist/components/{temporal-grid → availability-grid}/ui/blockPopover.d.ts +17 -2
  8. package/dist/components/editor/notesEditor.d.ts +13 -0
  9. package/dist/components/hive-id-login/buildHiveIDLogin.d.ts +4 -0
  10. package/dist/components/hive-id-login/hiveIDClient.d.ts +14 -0
  11. package/dist/components/hive-id-login/index.d.ts +3 -0
  12. package/dist/components/hive-id-login/styles.d.ts +16 -0
  13. package/dist/components/hive-id-login/types.d.ts +115 -0
  14. package/dist/components/interactive-scoring/types.d.ts +8 -0
  15. package/dist/components/modal/mockParticipants.d.ts +1 -1
  16. package/dist/components/renderStructure/renderStructureMinimap.d.ts +7 -0
  17. package/dist/components/schedule-page/domain/activeStrip.d.ts +1 -1
  18. package/dist/components/schedule-page/domain/matchUpCatalogProjections.d.ts +11 -0
  19. package/dist/components/schedule-page/index.d.ts +2 -2
  20. package/dist/components/schedule-page/types.d.ts +19 -0
  21. package/dist/components/schedule-page/ui/activeStrip.d.ts +23 -0
  22. package/dist/components/schedule-page/ui/matchUpCard.d.ts +8 -0
  23. package/dist/components/scheduling-profile/domain/validateProfile.d.ts +4 -3
  24. package/dist/components/scheduling-profile/index.d.ts +1 -1
  25. package/dist/components/scheduling-profile/types.d.ts +3 -3
  26. package/dist/components/scoring/logic/dynamicSetsLogic.d.ts +2 -0
  27. package/dist/components/team-card/buildTeamCard.d.ts +2 -0
  28. package/dist/components/team-card/index.d.ts +2 -0
  29. package/dist/components/team-card/styles.d.ts +13 -0
  30. package/dist/components/team-card/types.d.ts +27 -0
  31. package/dist/courthive-components.css +1 -1
  32. package/dist/courthive-components.es.js +6102 -5565
  33. package/dist/courthive-components.umd.js +52 -52
  34. package/dist/index.d.ts +13 -5
  35. package/dist/types.d.ts +3 -3
  36. package/package.json +17 -10
  37. /package/dist/components/{temporal-grid → availability-grid}/timeline/CourtTimeline.d.ts +0 -0
  38. /package/dist/components/{temporal-grid → availability-grid}/timeline/InteractionManager.d.ts +0 -0
  39. /package/dist/components/{temporal-grid → availability-grid}/timeline/ItemRenderer.d.ts +0 -0
  40. /package/dist/components/{temporal-grid → availability-grid}/timeline/RowLayout.d.ts +0 -0
  41. /package/dist/components/{temporal-grid → availability-grid}/timeline/TimeAxis.d.ts +0 -0
  42. /package/dist/components/{temporal-grid → availability-grid}/timeline/TimeScale.d.ts +0 -0
  43. /package/dist/components/{temporal-grid → availability-grid}/ui/courtAvailabilityModal.d.ts +0 -0
  44. /package/dist/components/{temporal-grid → availability-grid}/ui/modernTimePicker.d.ts +0 -0
  45. /package/dist/components/{temporal-grid → availability-grid}/ui/statsBar.d.ts +0 -0
  46. /package/dist/components/{temporal-grid → availability-grid}/ui/viewToolbar.d.ts +0 -0
@@ -85,7 +85,7 @@ export interface DropResult {
85
85
  }
86
86
  export type Severity = 'ERROR' | 'WARN' | 'INFO';
87
87
  export type ValidationCode = 'DATE_UNAVAILABLE' | 'DUPLICATE_ROUND' | 'DUPLICATE_SEGMENT' | 'INVALID_SEGMENT_CONFIG' | 'ROUND_ORDER_VIOLATION' | 'DEPENDENCY_VIOLATION' | 'DAY_OVERLOAD' | 'DROP_REJECTED';
88
- export type FixActionKind = 'JUMP_TO_ITEM' | 'OPEN_TEMPORAL_GRID' | 'MOVE_ITEM_AFTER' | 'MOVE_ITEM_BEFORE';
88
+ export type FixActionKind = 'JUMP_TO_ITEM' | 'OPEN_AVAILABILITY_GRID' | 'MOVE_ITEM_AFTER' | 'MOVE_ITEM_BEFORE';
89
89
  export interface FixAction {
90
90
  kind: FixActionKind;
91
91
  label: string;
@@ -150,7 +150,7 @@ export interface ProfileStoreState {
150
150
  plannedRoundBehavior: PlannedRoundBehavior;
151
151
  }
152
152
  export type ProfileChangeListener = (state: ProfileStoreState) => void;
153
- export interface TemporalAdapter {
153
+ export interface AvailabilityAdapter {
154
154
  isDateAvailable: (date: string) => {
155
155
  ok: boolean;
156
156
  reason?: string;
@@ -179,7 +179,7 @@ export interface SchedulingProfileConfig {
179
179
  catalogSide?: 'left' | 'right';
180
180
  initialProfile?: SchedulingProfile;
181
181
  selectedDate?: string;
182
- temporalAdapter?: TemporalAdapter;
182
+ availabilityAdapter?: AvailabilityAdapter;
183
183
  demandAdapter?: DemandAdapter;
184
184
  dependencyAdapter?: DependencyAdapter;
185
185
  venueOrder?: string[];
@@ -15,6 +15,8 @@ export type SetFormat = {
15
15
  };
16
16
  timed?: boolean;
17
17
  minutes?: number;
18
+ noTiebreak?: boolean;
19
+ winBy?: number;
18
20
  };
19
21
  /**
20
22
  * Configuration for a matchUp
@@ -0,0 +1,2 @@
1
+ import { TeamCardCallbacks, TeamCardData } from './types';
2
+ export declare function buildTeamCard(data: TeamCardData, callbacks?: TeamCardCallbacks): HTMLElement;
@@ -0,0 +1,2 @@
1
+ export { buildTeamCard } from './buildTeamCard';
2
+ export type { TeamCardCallbacks, TeamCardData } from './types';
@@ -0,0 +1,13 @@
1
+ /**
2
+ * Team Card — Class-name constants.
3
+ *
4
+ * One class per zone. CSS lives in `team-card.css` and is themed via
5
+ * `--chc-*` custom properties so consumers can re-skin without touching
6
+ * the primitive.
7
+ */
8
+ export declare const tcCardClass: () => string;
9
+ export declare const tcCardClickableClass: () => string;
10
+ export declare const tcTitleRowClass: () => string;
11
+ export declare const tcNameClass: () => string;
12
+ export declare const tcNicknameClass: () => string;
13
+ export declare const tcCountsClass: () => string;
@@ -0,0 +1,27 @@
1
+ /**
2
+ * Team Card — Type Definitions
3
+ *
4
+ * Flat data + JSON-serializable config consumed by `buildTeamCard`.
5
+ *
6
+ * v1 surface is intentionally minimal: a card header that renders a team
7
+ * name, an optional nickname, and a `·`-separated summary line of
8
+ * pre-formatted count segments (e.g. "9 players · 1 coach · 1 physio").
9
+ * i18n / pluralization is the consumer's responsibility — the primitive
10
+ * stays locale-agnostic so it can ship in any CourtHive surface.
11
+ */
12
+ export interface TeamCardData {
13
+ teamId?: string;
14
+ teamName: string;
15
+ /** Short alias shown in italic quotes next to the name. */
16
+ nickname?: string;
17
+ /**
18
+ * Pre-formatted summary segments joined with " · ".
19
+ * Empty values are dropped; falsy array → segment line is omitted entirely.
20
+ */
21
+ countSegments?: string[];
22
+ }
23
+ export interface TeamCardCallbacks {
24
+ /** Click handler. Mirrors the other card primitives' contract — sets
25
+ * `tabindex` / `role=button` / keyboard activation automatically. */
26
+ onClick?: (data: TeamCardData) => void;
27
+ }