courthive-components 6.0.1 → 6.2.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/matchUpFormat/matchUpFormatLogic.d.ts +1 -1
- package/dist/components/schedule-page/domain/utils.d.ts +21 -1
- package/dist/components/schedule-page/index.d.ts +1 -1
- package/dist/components/schedule-page/types.d.ts +26 -0
- package/dist/components/scoring/approaches/dialPadLogic.d.ts +5 -0
- package/dist/components/scoring/keyboard.d.ts +24 -0
- package/dist/components/scoring/logic/dynamicSetsLogic.d.ts +26 -8
- package/dist/components/scoring/logic/irregularEnding.d.ts +156 -16
- package/dist/components/scoring/logic/outcomeProjection.d.ts +25 -0
- package/dist/components/scoring/logic/scoreEntryModel.d.ts +175 -0
- package/dist/components/scoring/logic/scoreEntrySelectors.d.ts +88 -0
- package/dist/components/scoring/logic/scoreEntryState.d.ts +163 -0
- package/dist/components/scoring/logic/scoreEntryStore.d.ts +8 -0
- package/dist/components/scoring/logic/scoreEntrySummary.d.ts +28 -0
- package/dist/components/scoring/logic/statusCodes.d.ts +34 -0
- package/dist/components/scoring/logic/tiebreakEntry.d.ts +14 -0
- package/dist/components/scoring/regions/dialPadRegion.d.ts +17 -0
- package/dist/components/scoring/regions/dynamicSetsRegion.d.ts +28 -0
- package/dist/components/scoring/regions/freeScoreRegion.d.ts +24 -0
- package/dist/components/scoring/regions/scoreLine.d.ts +2 -0
- package/dist/components/scoring/regions/scoreReadout.d.ts +11 -0
- package/dist/components/scoring/regions/setColumns.d.ts +17 -0
- package/dist/components/scoring/scoreEntryCard.d.ts +191 -0
- package/dist/components/scoring/scoreEntryDialog.d.ts +94 -0
- package/dist/components/scoring/types.d.ts +4 -0
- package/dist/components/scoring/utils/aggregateDecider.d.ts +18 -0
- package/dist/courthive-components.css +1 -1
- package/dist/courthive-components.es.js +8996 -7025
- package/dist/courthive-components.umd.js +44 -44
- package/dist/index.d.ts +4 -1
- package/dist/types.d.ts +10 -0
- package/package.json +7 -7
package/dist/index.d.ts
CHANGED
|
@@ -32,6 +32,9 @@ export { scoringModal } from './components/scoring/scoringModal';
|
|
|
32
32
|
export { setScoringConfig, getScoringConfig, resetScoringConfig } from './components/scoring/config';
|
|
33
33
|
export type { ScoringModalParams, ScoringModalLabels, ScoreOutcome, SetScore } from './components/scoring/types';
|
|
34
34
|
export type { StatusCodeGroups, StatusCodeEntry } from './components/scoring/logic/statusCodes';
|
|
35
|
+
export { openScoreEntryDialog } from './components/scoring/scoreEntryDialog';
|
|
36
|
+
export type { ScoreEntryDialogParams, ScoreEntryApproach, ScoreEntryDialog } from './components/scoring/scoreEntryDialog';
|
|
37
|
+
export type { ScoreEntryOutcome, ScoreEntryCard } from './components/scoring/scoreEntryCard';
|
|
35
38
|
export { getSetFormatForIndex, isSetTiebreakOnly, isSetTimed, getMaxAllowedScore, isSetComplete, getSetWinner, isMatchComplete, getMatchWinner, calculateComplement, shouldApplySmartComplement, shouldShowTiebreak, shouldCreateNextSet, buildSetScore } from './components/scoring/logic/dynamicSetsLogic';
|
|
36
39
|
export type { SetFormat, MatchUpConfig, SmartComplementResult } from './components/scoring/logic/dynamicSetsLogic';
|
|
37
40
|
export { drawer, initDrawer } from './components/drawer/drawer';
|
|
@@ -105,7 +108,7 @@ export type { AvailabilityGridConfig, AvailabilityGridLabels } from './component
|
|
|
105
108
|
export { TopologyBuilderControl, TopologyStore, topologyToDrawOptions, validateTopology, generatePreviewMatchUps, standardTemplates, buildTopologyCanvas, buildStructureCard, getPortPosition, buildNodeEditor, buildEdgeEditor, buildToolbar, buildTopologyBuilderLayout } from './components/topology-builder';
|
|
106
109
|
export type { TopologyNode, TopologyEdge, TopologyState, TopologyChangeListener, TopologyBuilderConfig, TopologyTemplate, DrawOptionsResult, ValidationError } from './components/topology-builder';
|
|
107
110
|
export type { SchedulingProfile, ScheduleDay, VenueSchedule, RoundProfile, RoundSegment, VenueInfo, CatalogRoundItem, CatalogGroupBy, RoundKey, RoundLocator, DragPayload, DropTarget, DropResult, Severity, ValidationCode, FixAction, ValidationResult, IssueIndex, ProfileStoreState, SchedulingProfileConfig, AvailabilityAdapter, DemandAdapter, DependencyAdapter, UIPanel } from './components/scheduling-profile';
|
|
108
|
-
export { SchedulePageControl, SchedulePageStore, createSchedulePage, filterMatchUpCatalog, groupMatchUpCatalog, computeBaseRoundByEvent, isCompletedStatus, buildScheduleIssueIndex, matchUpLabel, participantLabel, matchUpSearchKey, buildScheduleDateStrip, buildScheduleIssuesPanel, buildMatchUpCatalog, buildMatchUpCard, applyRelatedHighlight, clearRelatedHighlight, RELATED_HIGHLIGHT, buildScheduleInspectorPanel, buildCourtGridSlot, buildSchedulePageLayout, buildScheduleGridCell, mapMatchUpToCellData, DEFAULT_SCHEDULE_CELL_CONFIG, activateScheduleCellTypeAhead, buildActiveStripPanel, computeActiveStrip, computeActiveStripCell, computeReschedulePlacements } from './components/schedule-page';
|
|
111
|
+
export { SchedulePageControl, SchedulePageStore, createSchedulePage, filterMatchUpCatalog, groupMatchUpCatalog, computeBaseRoundByEvent, isCompletedStatus, buildScheduleIssueIndex, matchUpLabel, participantLabel, matchUpSearchKey, memberNamesLabel, buildScheduleDateStrip, buildScheduleIssuesPanel, buildMatchUpCatalog, buildMatchUpCard, applyRelatedHighlight, clearRelatedHighlight, RELATED_HIGHLIGHT, buildScheduleInspectorPanel, buildCourtGridSlot, buildSchedulePageLayout, buildScheduleGridCell, mapMatchUpToCellData, DEFAULT_SCHEDULE_CELL_CONFIG, activateScheduleCellTypeAhead, buildActiveStripPanel, computeActiveStrip, computeActiveStripCell, computeReschedulePlacements } from './components/schedule-page';
|
|
109
112
|
export type { CatalogMatchUpItem, CatalogFilters, MatchUpSide, ScheduleDate, ScheduleIssue, ScheduleIssueSeverity, ScheduleIssueIndex, ScheduleIssueCounts, MatchUpCatalogGroupBy, ScheduledBehavior, SchedulingMode, PendingScheduleAction, CatalogMatchUpDragPayload, GridMatchUpDragPayload, SchedulePageDragPayload, SchedulePageConfig, SchedulePageCatalogState, SchedulePageState, SchedulePageChangeListener, ScheduleCellConfig, ScheduleCellField, ParticipantDisplayConfig, ScheduleCellData, ScheduleCellSide, ScheduleCellTypeAheadOptions, ScheduleInspectorPanelOptions, CardTimeStatus, MatchUpCardCallbacks, MatchUpCardOptions, ActiveStripPanel, ActiveStripPanelCallbacks, ActiveStripPanelData, ActiveStripPanelOptions, ActiveStripCourtMeta, ActiveStripCourtBlock, ActiveStripUpcomingBlock, ActiveStripCell, ActiveStripCellState, ActiveStripGrid, ActiveStripGridMatchUp, RescheduleCandidate, ReschedulePlacement } from './components/schedule-page';
|
|
110
113
|
export { createCompositionEditor } from './components/composition-editor/compositionEditor';
|
|
111
114
|
export { CompositionEditorStore } from './components/composition-editor/compositionEditorStore';
|
package/dist/types.d.ts
CHANGED
|
@@ -5,6 +5,16 @@ export interface MatchUp {
|
|
|
5
5
|
matchUpType?: 'SINGLES' | 'DOUBLES' | 'TEAM' | 'HYBRID';
|
|
6
6
|
matchUpFormat?: string;
|
|
7
7
|
matchUpStatus?: string;
|
|
8
|
+
/**
|
|
9
|
+
* The reason code recorded against each side, keyed by side number — `{ 2: 'W1' }`.
|
|
10
|
+
*
|
|
11
|
+
* Mirrored here rather than imported from the factory, for the reason the rest of this file records:
|
|
12
|
+
* the field does not exist in the older factory major this package's peer range still admits. Read it
|
|
13
|
+
* through `recordedStatusCode`, never positionally.
|
|
14
|
+
*/
|
|
15
|
+
sideStatusCodes?: Record<number, string>;
|
|
16
|
+
/** The reason code recorded against the MATCH, for an ending that resolves nobody. */
|
|
17
|
+
matchUpStatusCode?: string;
|
|
8
18
|
winningSide?: number;
|
|
9
19
|
roundNumber?: number;
|
|
10
20
|
roundPosition?: number;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "courthive-components",
|
|
3
|
-
"packageManager": "pnpm@12.
|
|
4
|
-
"version": "6.0
|
|
3
|
+
"packageManager": "pnpm@12.8.2",
|
|
4
|
+
"version": "6.2.0",
|
|
5
5
|
"engines": {
|
|
6
6
|
"node": ">=22"
|
|
7
7
|
},
|
|
@@ -80,8 +80,8 @@
|
|
|
80
80
|
"@types/d3": "^7.4.3",
|
|
81
81
|
"@types/leaflet": "^1.9.12",
|
|
82
82
|
"@types/vanillajs-datepicker": "^1.3.5",
|
|
83
|
-
"@typescript-eslint/eslint-plugin": "8.70.
|
|
84
|
-
"@typescript-eslint/parser": "8.70.
|
|
83
|
+
"@typescript-eslint/eslint-plugin": "8.70.1",
|
|
84
|
+
"@typescript-eslint/parser": "8.70.1",
|
|
85
85
|
"@vitest/coverage-v8": "^5.0.0",
|
|
86
86
|
"@vitest/ui": "^5.0.0",
|
|
87
87
|
"eslint": "10.11.0",
|
|
@@ -98,9 +98,9 @@
|
|
|
98
98
|
"semver": "7.8.5",
|
|
99
99
|
"storybook": "^10.2.17",
|
|
100
100
|
"tabulator-tables": "6.5.3",
|
|
101
|
-
"tods-competition-factory": "7.
|
|
101
|
+
"tods-competition-factory": "7.5.0",
|
|
102
102
|
"typescript": "^6.0.2",
|
|
103
|
-
"vite": "8.3.
|
|
103
|
+
"vite": "8.3.1",
|
|
104
104
|
"vite-plugin-dts": "^5.0.0",
|
|
105
105
|
"vitest": "^5.0.0"
|
|
106
106
|
},
|
|
@@ -123,7 +123,7 @@
|
|
|
123
123
|
"vanillajs-datepicker": "1.3.4"
|
|
124
124
|
},
|
|
125
125
|
"peerDependencies": {
|
|
126
|
-
"tods-competition-factory": "^7.
|
|
126
|
+
"tods-competition-factory": "^7.5.0",
|
|
127
127
|
"leaflet": "^1.9.4"
|
|
128
128
|
},
|
|
129
129
|
"peerDependenciesMeta": {
|