courthive-components 3.13.2 → 3.14.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/controller/schedulePageControl.d.ts +3 -0
- package/dist/components/schedule-page/engine/schedulePageStore.d.ts +2 -0
- package/dist/components/schedule-page/index.d.ts +1 -0
- package/dist/components/schedule-page/types.d.ts +10 -0
- package/dist/components/schedule-page/ui/inspectorPanel.d.ts +8 -2
- package/dist/courthive-components.es.js +6306 -6264
- package/dist/courthive-components.umd.js +15 -15
- package/dist/helpers/cards/coordinates.d.ts +17 -0
- package/dist/helpers/cards/index.d.ts +1 -0
- package/dist/helpers/cards/types.d.ts +2 -2
- package/dist/index.d.ts +1 -1
- package/package.json +6 -6
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Coordinate coercion for venue/court geo values.
|
|
3
|
+
*
|
|
4
|
+
* Geo values reach these components in both forms. TODS/CODES `Address` and
|
|
5
|
+
* `Court` historically declared `latitude`/`longitude` as `string`, production
|
|
6
|
+
* venue records store them as `number`, and the factory itself emits both —
|
|
7
|
+
* `activateFromSanctioning` stringifies sanctioning coordinates while venue
|
|
8
|
+
* records carry numbers. A consumer that gates on `typeof === 'number'`
|
|
9
|
+
* silently drops every string-valued coordinate, rendering no map for a venue
|
|
10
|
+
* whose record looks correctly populated.
|
|
11
|
+
*
|
|
12
|
+
* Strings are parsed with `Number()` rather than `parseFloat` so that trailing
|
|
13
|
+
* junk ("12abc") is rejected outright instead of yielding 12.
|
|
14
|
+
*/
|
|
15
|
+
export declare function toCoordinate(value: unknown): number | undefined;
|
|
16
|
+
/** The first candidate that coerces to a finite coordinate. */
|
|
17
|
+
export declare function firstCoordinate(...values: unknown[]): number | undefined;
|
|
@@ -9,6 +9,7 @@ export { formatDateRange } from './formatDateRange';
|
|
|
9
9
|
export { sortCourtsByOrder } from './sortCourts';
|
|
10
10
|
export type { CourtOrderable } from './sortCourts';
|
|
11
11
|
export { extractImageURL, extractCourtSvgSport } from './resourceExtraction';
|
|
12
|
+
export { toCoordinate, firstCoordinate } from './coordinates';
|
|
12
13
|
export { buildCardSkeleton } from './buildCardSkeleton';
|
|
13
14
|
export type { CardSkeletonConfig } from './buildCardSkeleton';
|
|
14
15
|
export type { CardAddress, CardOnlineResource, CardVenueLike } from './types';
|
|
@@ -14,8 +14,8 @@ export interface CardAddress {
|
|
|
14
14
|
region?: string;
|
|
15
15
|
countryCode?: string;
|
|
16
16
|
country?: string;
|
|
17
|
-
latitude?: number;
|
|
18
|
-
longitude?: number;
|
|
17
|
+
latitude?: number | string;
|
|
18
|
+
longitude?: number | string;
|
|
19
19
|
}
|
|
20
20
|
export interface CardVenueLike {
|
|
21
21
|
venueName?: string;
|
package/dist/index.d.ts
CHANGED
|
@@ -101,7 +101,7 @@ export { TopologyBuilderControl, TopologyStore, topologyToDrawOptions, validateT
|
|
|
101
101
|
export type { TopologyNode, TopologyEdge, TopologyState, TopologyChangeListener, TopologyBuilderConfig, TopologyTemplate, DrawOptionsResult, ValidationError } from './components/topology-builder';
|
|
102
102
|
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';
|
|
103
103
|
export { SchedulePageControl, SchedulePageStore, createSchedulePage, filterMatchUpCatalog, groupMatchUpCatalog, computeBaseRoundByEvent, isCompletedStatus, buildScheduleIssueIndex, matchUpLabel, participantLabel, matchUpSearchKey, buildScheduleDateStrip, buildScheduleIssuesPanel, buildMatchUpCatalog, buildMatchUpCard, buildScheduleInspectorPanel, buildCourtGridSlot, buildSchedulePageLayout, buildScheduleGridCell, mapMatchUpToCellData, DEFAULT_SCHEDULE_CELL_CONFIG, activateScheduleCellTypeAhead, buildActiveStripPanel, computeActiveStrip, computeActiveStripCell, computeReschedulePlacements } from './components/schedule-page';
|
|
104
|
-
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, ActiveStripPanel, ActiveStripPanelCallbacks, ActiveStripPanelData, ActiveStripPanelOptions, ActiveStripCourtMeta, ActiveStripCourtBlock, ActiveStripCell, ActiveStripCellState, ActiveStripGrid, ActiveStripGridMatchUp, RescheduleCandidate, ReschedulePlacement } from './components/schedule-page';
|
|
104
|
+
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, ActiveStripPanel, ActiveStripPanelCallbacks, ActiveStripPanelData, ActiveStripPanelOptions, ActiveStripCourtMeta, ActiveStripCourtBlock, ActiveStripCell, ActiveStripCellState, ActiveStripGrid, ActiveStripGridMatchUp, RescheduleCandidate, ReschedulePlacement } from './components/schedule-page';
|
|
105
105
|
export { createCompositionEditor } from './components/composition-editor/compositionEditor';
|
|
106
106
|
export { CompositionEditorStore } from './components/composition-editor/compositionEditorStore';
|
|
107
107
|
export type { CompositionEditorConfig, SavedComposition, CompositionEditorState, CompositionEditorListener, SectionId as CompositionEditorSectionId, EditorPanel as CompositionEditorPanel } from './components/composition-editor/compositionEditorTypes';
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "courthive-components",
|
|
3
3
|
"packageManager": "pnpm@11.21.0",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.14.0",
|
|
5
5
|
"engines": {
|
|
6
6
|
"node": ">=22"
|
|
7
7
|
},
|
|
@@ -70,8 +70,8 @@
|
|
|
70
70
|
},
|
|
71
71
|
"devDependencies": {
|
|
72
72
|
"@chromatic-com/storybook": "^5.0.0",
|
|
73
|
-
"@commitlint/cli": "21.2.
|
|
74
|
-
"@commitlint/config-conventional": "21.2.
|
|
73
|
+
"@commitlint/cli": "21.2.2",
|
|
74
|
+
"@commitlint/config-conventional": "21.2.2",
|
|
75
75
|
"@eslint/js": "^10.0.1",
|
|
76
76
|
"@fortawesome/fontawesome-free": "^7.2.0",
|
|
77
77
|
"@storybook/addon-docs": "^10.2.17",
|
|
@@ -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.
|
|
84
|
-
"@typescript-eslint/parser": "8.
|
|
83
|
+
"@typescript-eslint/eslint-plugin": "8.67.0",
|
|
84
|
+
"@typescript-eslint/parser": "8.67.0",
|
|
85
85
|
"@vitest/browser-playwright": "^4.0.16",
|
|
86
86
|
"@vitest/coverage-v8": "^4.0.16",
|
|
87
87
|
"@vitest/ui": "^4.0.16",
|
|
@@ -99,7 +99,7 @@
|
|
|
99
99
|
"semver": "7.8.5",
|
|
100
100
|
"storybook": "^10.2.17",
|
|
101
101
|
"tabulator-tables": "6.5.2",
|
|
102
|
-
"tods-competition-factory": "6.
|
|
102
|
+
"tods-competition-factory": "6.27.0",
|
|
103
103
|
"typescript": "^6.0.2",
|
|
104
104
|
"vite": "8.2.1",
|
|
105
105
|
"vite-plugin-dts": "^5.0.0",
|