courthive-components 1.0.4 → 1.1.1
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/assets/team-logos/index.d.ts +9 -0
- package/dist/components/burstChart/burstChart.d.ts +108 -0
- package/dist/components/burstChart/matchUpTransform.d.ts +11 -0
- package/dist/components/burstChart/textHelpers.d.ts +11 -0
- package/dist/components/button/barButton.d.ts +1 -0
- package/dist/components/button/cvaButton.d.ts +8 -0
- package/dist/components/button/dropDownButton.d.ts +5 -0
- package/dist/components/categories/ageCategory/ageCategory.d.ts +54 -0
- package/dist/components/categories/ageCategory/ageCategoryLogic.d.ts +55 -0
- package/dist/components/categories/category/category.d.ts +47 -0
- package/dist/components/composition-editor/compositionEditor.d.ts +6 -0
- package/dist/components/composition-editor/compositionEditorStore.d.ts +24 -0
- package/dist/components/composition-editor/compositionEditorTypes.d.ts +37 -0
- package/dist/components/composition-editor/compositionPreview.d.ts +2 -0
- package/dist/components/composition-editor/scaleConstants.d.ts +7 -0
- package/dist/components/composition-editor/sections/displaySection.d.ts +3 -0
- package/dist/components/composition-editor/sections/fieldBuilders.d.ts +20 -0
- package/dist/components/composition-editor/sections/layoutSection.d.ts +3 -0
- package/dist/components/composition-editor/sections/participantSection.d.ts +3 -0
- package/dist/components/composition-editor/sections/placeholderSection.d.ts +3 -0
- package/dist/components/composition-editor/sections/scaleSection.d.ts +3 -0
- package/dist/components/composition-editor/sections/scoreSection.d.ts +3 -0
- package/dist/components/composition-editor/sections/sectionBuilder.d.ts +8 -0
- package/dist/components/composition-editor/sections/themeSection.d.ts +3 -0
- package/dist/components/composition-editor/styles.d.ts +26 -0
- package/dist/components/controlBar/controlBar.d.ts +11 -0
- package/dist/components/controlBar/toggleOverlay.d.ts +3 -0
- package/dist/components/courts/courts.d.ts +7 -0
- package/dist/components/courts/index.d.ts +1 -0
- package/dist/components/drawer/drawer.d.ts +14 -0
- package/dist/components/flightProfile/flightProfileLogic.d.ts +51 -0
- package/dist/components/flightProfile/flightProfileNew.d.ts +34 -0
- package/dist/components/flightProfile/getFlightProfileFormItems.d.ts +13 -0
- package/dist/components/flightProfile/getFlightProfileFormRelationships.d.ts +1 -0
- package/dist/components/forms/createMultiSelect.d.ts +34 -0
- package/dist/components/forms/renderButtons.d.ts +3 -0
- package/dist/components/forms/renderField.d.ts +7 -0
- package/dist/components/forms/renderForm.d.ts +1 -0
- package/dist/components/forms/renderMenu.d.ts +3 -0
- package/dist/components/forms/renderValidator.d.ts +113 -0
- package/dist/components/forms/styles.d.ts +0 -0
- package/dist/components/generateRound.d.ts +6 -0
- package/dist/components/inline-scoring/engineToMatchUp.d.ts +6 -0
- package/dist/components/inline-scoring/index.d.ts +5 -0
- package/dist/components/inline-scoring/inlineScoringFooter.d.ts +18 -0
- package/dist/components/inline-scoring/inlineScoringManager.d.ts +49 -0
- package/dist/components/inline-scoring/inlineScoringTypes.d.ts +40 -0
- package/dist/components/inline-scoring/renderInlineMatchUp.d.ts +27 -0
- package/dist/components/interactive-scoring/buildInteractiveScoringShell.d.ts +28 -0
- package/dist/components/interactive-scoring/index.d.ts +2 -0
- package/dist/components/interactive-scoring/types.d.ts +60 -0
- package/dist/components/matchUpFormat/matchUpFormat.d.ts +81 -0
- package/dist/components/matchUpFormat/matchUpFormatLogic.d.ts +112 -0
- package/dist/components/modal/cmodal.d.ts +30 -0
- package/dist/components/modal/cmodalStyles.d.ts +8 -0
- package/dist/components/modal/compositionEditorModal.d.ts +46 -0
- package/dist/components/modal/generateTeamsModal.d.ts +26 -0
- package/dist/components/modal/mockParticipants.d.ts +91 -0
- package/dist/components/modal/scheduleCellConfigModal.d.ts +44 -0
- package/dist/components/modal/selectItem.d.ts +24 -0
- package/dist/components/notes-toolbar/notesToolbar.d.ts +20 -0
- package/dist/components/policy-catalog/controller/policyCatalogControl.d.ts +18 -0
- package/dist/components/policy-catalog/domain/catalogProjections.d.ts +11 -0
- package/dist/components/policy-catalog/domain/policyDefaults.d.ts +26 -0
- package/dist/components/policy-catalog/domain/utils.d.ts +4 -0
- package/dist/components/policy-catalog/editors/ranking/domain/emptyRankingPolicy.d.ts +2 -0
- package/dist/components/policy-catalog/editors/ranking/domain/rankingProjections.d.ts +32 -0
- package/dist/components/policy-catalog/editors/ranking/index.d.ts +9 -0
- package/dist/components/policy-catalog/editors/ranking/rankingPointsEditorControl.d.ts +27 -0
- package/dist/components/policy-catalog/editors/ranking/rankingPointsEditorPanel.d.ts +8 -0
- package/dist/components/policy-catalog/editors/ranking/rankingPointsEditorStore.d.ts +53 -0
- package/dist/components/policy-catalog/editors/ranking/sections/aggregationSection.d.ts +6 -0
- package/dist/components/policy-catalog/editors/ranking/sections/bonusPointsRow.d.ts +6 -0
- package/dist/components/policy-catalog/editors/ranking/sections/metadataSection.d.ts +6 -0
- package/dist/components/policy-catalog/editors/ranking/sections/perWinPointsRow.d.ts +6 -0
- package/dist/components/policy-catalog/editors/ranking/sections/positionPointsTable.d.ts +6 -0
- package/dist/components/policy-catalog/editors/ranking/sections/profileCard.d.ts +6 -0
- package/dist/components/policy-catalog/editors/ranking/sections/qualityWinSection.d.ts +6 -0
- package/dist/components/policy-catalog/editors/ranking/sections/scopeBadges.d.ts +2 -0
- package/dist/components/policy-catalog/editors/ranking/sections/scopeEditor.d.ts +6 -0
- package/dist/components/policy-catalog/editors/ranking/styles.d.ts +25 -0
- package/dist/components/policy-catalog/editors/ranking/types.d.ts +146 -0
- package/dist/components/policy-catalog/editors/scheduling/domain/schedulingProjections.d.ts +5 -0
- package/dist/components/policy-catalog/editors/scheduling/domain/schedulingValidation.d.ts +2 -0
- package/dist/components/policy-catalog/editors/scheduling/index.d.ts +11 -0
- package/dist/components/policy-catalog/editors/scheduling/schedulingEditorControl.d.ts +26 -0
- package/dist/components/policy-catalog/editors/scheduling/schedulingEditorPanel.d.ts +6 -0
- package/dist/components/policy-catalog/editors/scheduling/schedulingEditorStore.d.ts +32 -0
- package/dist/components/policy-catalog/editors/scheduling/sections/averageTimesSection.d.ts +6 -0
- package/dist/components/policy-catalog/editors/scheduling/sections/dailyLimitsSection.d.ts +6 -0
- package/dist/components/policy-catalog/editors/scheduling/sections/defaultTimesSection.d.ts +6 -0
- package/dist/components/policy-catalog/editors/scheduling/sections/formatTimeRow.d.ts +22 -0
- package/dist/components/policy-catalog/editors/scheduling/sections/modificationFlagsSection.d.ts +6 -0
- package/dist/components/policy-catalog/editors/scheduling/sections/recoveryTimesSection.d.ts +6 -0
- package/dist/components/policy-catalog/editors/scheduling/styles.d.ts +27 -0
- package/dist/components/policy-catalog/editors/scheduling/types.d.ts +65 -0
- package/dist/components/policy-catalog/engine/policyCatalogStore.d.ts +25 -0
- package/dist/components/policy-catalog/index.d.ts +22 -0
- package/dist/components/policy-catalog/types.d.ts +57 -0
- package/dist/components/policy-catalog/ui/editorShell.d.ts +11 -0
- package/dist/components/policy-catalog/ui/jsonEditor.d.ts +5 -0
- package/dist/components/policy-catalog/ui/policyCatalogLayout.d.ts +6 -0
- package/dist/components/policy-catalog/ui/policyCatalogPanel.d.ts +10 -0
- package/dist/components/policy-catalog/ui/styles.d.ts +28 -0
- package/dist/components/popover/tipster.d.ts +14 -0
- package/dist/components/print-composition-editor/printCompositionEditor.d.ts +2 -0
- package/dist/components/print-composition-editor/printCompositionEditorTypes.d.ts +77 -0
- package/dist/components/renderSchematicStructure/index.d.ts +4 -0
- package/dist/components/renderSchematicStructure/renderSchematicMatchUp.d.ts +26 -0
- package/dist/components/renderSchematicStructure/renderSchematicRound.d.ts +15 -0
- package/dist/components/renderSchematicStructure/renderSchematicStructure.d.ts +12 -0
- package/dist/components/renderStructure/isLuckyDraw.d.ts +9 -0
- package/dist/components/renderStructure/renderAddress.d.ts +5 -0
- package/dist/components/renderStructure/renderCenterInfo.d.ts +10 -0
- package/dist/components/renderStructure/renderContainer.d.ts +4 -0
- package/dist/components/renderStructure/renderFlag.d.ts +6 -0
- package/dist/components/renderStructure/renderFrill.d.ts +10 -0
- package/dist/components/renderStructure/renderGameScore.d.ts +3 -0
- package/dist/components/renderStructure/renderIndividual.d.ts +12 -0
- package/dist/components/renderStructure/renderMatchUp.d.ts +14 -0
- package/dist/components/renderStructure/renderParticipant.d.ts +11 -0
- package/dist/components/renderStructure/renderParticipantDetail.d.ts +7 -0
- package/dist/components/renderStructure/renderParticipantInput.d.ts +10 -0
- package/dist/components/renderStructure/renderPersonAttribute.d.ts +6 -0
- package/dist/components/renderStructure/renderRound.d.ts +17 -0
- package/dist/components/renderStructure/renderRoundHeader.d.ts +8 -0
- package/dist/components/renderStructure/renderScale.d.ts +8 -0
- package/dist/components/renderStructure/renderSchedule.d.ts +5 -0
- package/dist/components/renderStructure/renderSeeding.d.ts +6 -0
- package/dist/components/renderStructure/renderSide.d.ts +9 -0
- package/dist/components/renderStructure/renderSideScore.d.ts +16 -0
- package/dist/components/renderStructure/renderStatusPill.d.ts +3 -0
- package/dist/components/renderStructure/renderStructure.d.ts +13 -0
- package/dist/components/renderStructure/renderTeam.d.ts +5 -0
- package/dist/components/renderStructure/renderTeamLogo.d.ts +4 -0
- package/dist/components/renderStructure/renderTick.d.ts +3 -0
- package/dist/components/schedule-page/controller/schedulePageControl.d.ts +18 -0
- package/dist/components/schedule-page/domain/matchUpCatalogProjections.d.ts +4 -0
- package/dist/components/schedule-page/domain/scheduleIssues.d.ts +2 -0
- package/dist/components/schedule-page/domain/utils.d.ts +5 -0
- package/dist/components/schedule-page/engine/schedulePageStore.d.ts +34 -0
- package/dist/components/schedule-page/index.d.ts +24 -0
- package/dist/components/schedule-page/types.d.ts +218 -0
- package/dist/components/schedule-page/ui/courtGridSlot.d.ts +8 -0
- package/dist/components/schedule-page/ui/dateStrip.d.ts +5 -0
- package/dist/components/schedule-page/ui/inspectorPanel.d.ts +2 -0
- package/dist/components/schedule-page/ui/issuesPanel.d.ts +2 -0
- package/dist/components/schedule-page/ui/matchUpCard.d.ts +5 -0
- package/dist/components/schedule-page/ui/matchUpCatalog.d.ts +11 -0
- package/dist/components/schedule-page/ui/scheduleCellTypeAhead.d.ts +23 -0
- package/dist/components/schedule-page/ui/scheduleGridCell.d.ts +8 -0
- package/dist/components/schedule-page/ui/schedulePageLayout.d.ts +18 -0
- package/dist/components/schedule-page/ui/styles.d.ts +41 -0
- package/dist/components/scheduling-profile/controller/schedulingProfileControl.d.ts +14 -0
- package/dist/components/scheduling-profile/domain/catalogProjections.d.ts +16 -0
- package/dist/components/scheduling-profile/domain/dndApply.d.ts +2 -0
- package/dist/components/scheduling-profile/domain/issueIndex.d.ts +2 -0
- package/dist/components/scheduling-profile/domain/profileProjections.d.ts +6 -0
- package/dist/components/scheduling-profile/domain/utils.d.ts +7 -0
- package/dist/components/scheduling-profile/domain/validateProfile.d.ts +13 -0
- package/dist/components/scheduling-profile/engine/profileStore.d.ts +27 -0
- package/dist/components/scheduling-profile/index.d.ts +25 -0
- package/dist/components/scheduling-profile/types.d.ts +197 -0
- package/dist/components/scheduling-profile/ui/cardPopover.d.ts +11 -0
- package/dist/components/scheduling-profile/ui/dateStrip.d.ts +5 -0
- package/dist/components/scheduling-profile/ui/inspectorPanel.d.ts +2 -0
- package/dist/components/scheduling-profile/ui/issuesPanel.d.ts +5 -0
- package/dist/components/scheduling-profile/ui/roundCard.d.ts +12 -0
- package/dist/components/scheduling-profile/ui/roundCatalog.d.ts +8 -0
- package/dist/components/scheduling-profile/ui/schedulingProfileLayout.d.ts +15 -0
- package/dist/components/scheduling-profile/ui/styles.d.ts +46 -0
- package/dist/components/scheduling-profile/ui/venueBoard.d.ts +7 -0
- package/dist/components/scorecard/index.d.ts +2 -0
- package/dist/components/scorecard/renderScorecard.d.ts +26 -0
- package/dist/components/scoring/approaches/dialPadApproach.d.ts +2 -0
- package/dist/components/scoring/approaches/dialPadLogic.d.ts +12 -0
- package/dist/components/scoring/approaches/dynamicSetsApproach.d.ts +2 -0
- package/dist/components/scoring/approaches/freeScoreApproach.d.ts +2 -0
- package/dist/components/scoring/approaches/inlineScoringApproach.d.ts +2 -0
- package/dist/components/scoring/config.d.ts +28 -0
- package/dist/components/scoring/index.d.ts +6 -0
- package/dist/components/scoring/logic/dynamicSetsLogic.d.ts +124 -0
- package/dist/components/scoring/scoringModal.d.ts +2 -0
- package/dist/components/scoring/types.d.ts +60 -0
- package/dist/components/scoring/utils/scoreFormatters.d.ts +12 -0
- package/dist/components/scoring/utils/scoreValidator.d.ts +16 -0
- package/dist/components/scoring/utils/setExpansionLogic.d.ts +24 -0
- package/dist/components/temporal-grid/controller/temporalGridControl.d.ts +137 -0
- package/dist/components/temporal-grid/controller/viewProjections.d.ts +220 -0
- package/dist/components/temporal-grid/engine/viewState.d.ts +34 -0
- package/dist/components/temporal-grid/index.d.ts +18 -0
- package/dist/components/temporal-grid/timeline/CourtTimeline.d.ts +77 -0
- package/dist/components/temporal-grid/timeline/InteractionManager.d.ts +59 -0
- package/dist/components/temporal-grid/timeline/ItemRenderer.d.ts +35 -0
- package/dist/components/temporal-grid/timeline/RowLayout.d.ts +38 -0
- package/dist/components/temporal-grid/timeline/TimeAxis.d.ts +41 -0
- package/dist/components/temporal-grid/timeline/TimeScale.d.ts +106 -0
- package/dist/components/temporal-grid/timeline/types.d.ts +124 -0
- package/dist/components/temporal-grid/ui/blockPopover.d.ts +29 -0
- package/dist/components/temporal-grid/ui/courtAvailabilityModal.d.ts +29 -0
- package/dist/components/temporal-grid/ui/modernTimePicker.d.ts +46 -0
- package/dist/components/temporal-grid/ui/statsBar.d.ts +21 -0
- package/dist/components/temporal-grid/ui/temporalGrid.d.ts +149 -0
- package/dist/components/temporal-grid/ui/viewToolbar.d.ts +37 -0
- package/dist/components/topology-builder/controller/topologyBuilderControl.d.ts +19 -0
- package/dist/components/topology-builder/domain/feedRounds.d.ts +42 -0
- package/dist/components/topology-builder/domain/generateDrawFromTopology.d.ts +16 -0
- package/dist/components/topology-builder/domain/playoffProfilesCache.d.ts +16 -0
- package/dist/components/topology-builder/domain/previewGenerator.d.ts +9 -0
- package/dist/components/topology-builder/domain/templates.d.ts +2 -0
- package/dist/components/topology-builder/domain/topologyToDrawOptions.d.ts +6 -0
- package/dist/components/topology-builder/domain/topologyValidator.d.ts +8 -0
- package/dist/components/topology-builder/engine/topologyStore.d.ts +30 -0
- package/dist/components/topology-builder/index.d.ts +23 -0
- package/dist/components/topology-builder/types.d.ts +59 -0
- package/dist/components/topology-builder/ui/edgeEditor.d.ts +7 -0
- package/dist/components/topology-builder/ui/nodeEditor.d.ts +9 -0
- package/dist/components/topology-builder/ui/structureCard.d.ts +39 -0
- package/dist/components/topology-builder/ui/toolbar.d.ts +15 -0
- package/dist/components/topology-builder/ui/topologyBuilderLayout.d.ts +7 -0
- package/dist/components/topology-builder/ui/topologyCanvas.d.ts +10 -0
- package/dist/components/validators/numericRange.d.ts +1 -0
- package/dist/components/validators/numericValidator.d.ts +1 -0
- package/dist/compositions/compositions.d.ts +2 -0
- package/dist/compositions/lineHeights.d.ts +5 -0
- package/dist/compositions/resolvePublishedComposition.d.ts +12 -0
- package/dist/constants/matchUpFormats.d.ts +34 -0
- package/dist/courthive-components.css +1 -1
- package/dist/courthive-components.es.js +4823 -4605
- package/dist/courthive-components.umd.js +42 -42
- package/dist/data/componentConstants.d.ts +1 -0
- package/dist/data/generateEventData.d.ts +15 -0
- package/dist/data/generateMatchUps.d.ts +25 -0
- package/dist/helpers/createTypeAhead.d.ts +14 -0
- package/dist/helpers/drawStateManager.d.ts +91 -0
- package/dist/helpers/getAttr.d.ts +4 -0
- package/dist/helpers/typeOf.d.ts +4 -0
- package/dist/index.d.ts +80 -3913
- package/dist/styles/centerInfoStyle.d.ts +6 -0
- package/dist/styles/containerStyle.d.ts +1 -0
- package/dist/styles/flagStyle.d.ts +3 -0
- package/dist/styles/getChevronStyle.d.ts +4 -0
- package/dist/styles/getLinkStyle.d.ts +25 -0
- package/dist/styles/getMatchUpStyle.d.ts +4 -0
- package/dist/styles/getSelectedMatchUpStyle.d.ts +1 -0
- package/dist/styles/groupNameStyle.d.ts +1 -0
- package/dist/styles/groupSeparatorStyle.d.ts +4 -0
- package/dist/styles/matchUpContainerStyle.d.ts +1 -0
- package/dist/styles/participantDetailStyle.d.ts +1 -0
- package/dist/styles/participantStyle.d.ts +17 -0
- package/dist/styles/pillStyle.d.ts +3 -0
- package/dist/styles/resultStyles.d.ts +4 -0
- package/dist/styles/roundContainerStyle.d.ts +1 -0
- package/dist/styles/roundHeaderStyle.d.ts +1 -0
- package/dist/styles/roundStyle.d.ts +3 -0
- package/dist/styles/scaleStyle.d.ts +3 -0
- package/dist/styles/schedulingStyle.d.ts +1 -0
- package/dist/styles/scoreStyles.d.ts +9 -0
- package/dist/styles/scoreWrapperStyle.d.ts +4 -0
- package/dist/styles/seedStyle.d.ts +1 -0
- package/dist/styles/sideStyles.d.ts +3 -0
- package/dist/styles/structureStyle.d.ts +1 -0
- package/dist/styles/teamLogoStyle.d.ts +1 -0
- package/dist/styles/themes/australianTheme.d.ts +1 -0
- package/dist/styles/themes/basicCardTheme.d.ts +1 -0
- package/dist/styles/themes/basicTheme.d.ts +1 -0
- package/dist/styles/themes/createTheme.d.ts +5 -0
- package/dist/styles/themes/frenchTheme.d.ts +1 -0
- package/dist/styles/themes/index.d.ts +7 -0
- package/dist/styles/themes/itfTheme.d.ts +1 -0
- package/dist/styles/themes/usOpenTheme.d.ts +1 -0
- package/dist/styles/themes/wimbledonTheme.d.ts +1 -0
- package/dist/tools/freeScore/freeScore.d.ts +79 -0
- package/dist/types.d.ts +321 -0
- package/dist/utilities/isElement.d.ts +1 -0
- package/dist/validators/dateValidator.d.ts +1 -0
- package/dist/validators/emailValidator.d.ts +1 -0
- package/dist/validators/index.d.ts +7 -0
- package/dist/validators/nameValidator.d.ts +1 -0
- package/dist/validators/numericRange.d.ts +1 -0
- package/dist/validators/numericValidator.d.ts +1 -0
- package/dist/validators/passwordValidator.d.ts +1 -0
- package/dist/validators/wordValidator.d.ts +1 -0
- package/dist/version.d.ts +1 -0
- package/package.json +8 -8
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const containerStyle: () => string;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { Composition } from '../types';
|
|
2
|
+
/**
|
|
3
|
+
* Computes connector line configuration and returns a two-call API
|
|
4
|
+
* that matches the previous Stitches pattern.
|
|
5
|
+
*
|
|
6
|
+
* Usage:
|
|
7
|
+
* const linkResult = getLinkStyle({ composition, isDoubles, roundFactor })({ isFirstRound, link });
|
|
8
|
+
* element.className = linkResult.className;
|
|
9
|
+
* linkResult.applyStyles(element); // sets CSS custom properties for dynamic dimensions
|
|
10
|
+
*/
|
|
11
|
+
export declare function getLinkStyle({ composition, isDoubles, roundFactor }: {
|
|
12
|
+
composition?: Composition;
|
|
13
|
+
isDoubles?: boolean;
|
|
14
|
+
roundFactor?: number;
|
|
15
|
+
}): (opts: {
|
|
16
|
+
isFirstRound?: boolean;
|
|
17
|
+
link?: string;
|
|
18
|
+
noProgression?: boolean;
|
|
19
|
+
}) => {
|
|
20
|
+
className: string;
|
|
21
|
+
/** Apply dynamic connector dimensions as CSS custom properties on the element */
|
|
22
|
+
applyStyles(element: HTMLElement): void;
|
|
23
|
+
/** Legacy: return className as string for backward-compat (styles won't include dynamic dimensions) */
|
|
24
|
+
toString(): string;
|
|
25
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function getSelectedMatchUpStyle(): string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const groupNameStyle: () => string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const matchUpContainerStyle: () => string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const participantDetailStyle: () => string;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export declare function getPlacholderStyle({ variant }: {
|
|
2
|
+
variant?: string;
|
|
3
|
+
}): string;
|
|
4
|
+
export declare const participantStyle: (_opts?: {
|
|
5
|
+
variant?: string;
|
|
6
|
+
}) => string;
|
|
7
|
+
export declare const participantNameStyle: (opts?: {
|
|
8
|
+
variant?: string;
|
|
9
|
+
}) => string;
|
|
10
|
+
export declare const participantTypeStyle: (opts?: {
|
|
11
|
+
variant?: string;
|
|
12
|
+
}) => string;
|
|
13
|
+
export declare function getParticipantContainerStyle({ drawPosition, sideNumber }: {
|
|
14
|
+
drawPosition?: number | string;
|
|
15
|
+
sideNumber?: number;
|
|
16
|
+
}): string;
|
|
17
|
+
export declare function getDrawPositionData(drawPosition?: number | string): string | undefined;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const roundContainerStyle: () => string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const roundHeaderStyle: () => string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const schedulingStyle: () => string;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export declare const tieBreakStyle: () => string;
|
|
2
|
+
export declare const gameScoreStyle: (opts?: {
|
|
3
|
+
variant?: string;
|
|
4
|
+
}) => string;
|
|
5
|
+
export declare const gameWrapperStyle: () => string;
|
|
6
|
+
export declare const pointScoreStyle: (opts?: {
|
|
7
|
+
inverted?: boolean;
|
|
8
|
+
position?: "leading" | "trailing";
|
|
9
|
+
}) => string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const seedStyle: () => string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const structureStyle: () => string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const teamLogoStyle: () => string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const australianTheme: string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const basicCardTheme: string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const basicTheme: string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const frenchTheme: string;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export { australianTheme } from './australianTheme';
|
|
2
|
+
export { basicCardTheme } from './basicCardTheme';
|
|
3
|
+
export { wimbledonTheme } from './wimbledonTheme';
|
|
4
|
+
export { frenchTheme } from './frenchTheme';
|
|
5
|
+
export { usOpenTheme } from './usOpenTheme';
|
|
6
|
+
export { basicTheme } from './basicTheme';
|
|
7
|
+
export { itfTheme } from './itfTheme';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const itfTheme: string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const usOpenTheme: string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const wimbledonTheme: string;
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* freeScore Parser
|
|
3
|
+
*
|
|
4
|
+
* Parses free-form score input using matchUpFormat context for intelligent interpretation.
|
|
5
|
+
* Character-by-character state machine that handles ambiguous digit sequences.
|
|
6
|
+
*
|
|
7
|
+
* Goals:
|
|
8
|
+
* - Accept any reasonable score notation (spaces, dashes, brackets optional)
|
|
9
|
+
* - Use matchUpFormat to disambiguate (e.g., "123" → "12-3" vs "1-23" based on setTo)
|
|
10
|
+
* - Provide confidence scores and suggestions for ambiguous inputs
|
|
11
|
+
* - Give helpful error messages with position context
|
|
12
|
+
* - Support incomplete scores (user typing in real-time)
|
|
13
|
+
*/
|
|
14
|
+
type ParsedFormat = any;
|
|
15
|
+
export interface ParsedSet {
|
|
16
|
+
side1Score?: number;
|
|
17
|
+
side2Score?: number;
|
|
18
|
+
side1TiebreakScore?: number;
|
|
19
|
+
side2TiebreakScore?: number;
|
|
20
|
+
winningSide?: number;
|
|
21
|
+
setNumber: number;
|
|
22
|
+
}
|
|
23
|
+
export interface ParserState {
|
|
24
|
+
input: string;
|
|
25
|
+
position: number;
|
|
26
|
+
setIndex: number;
|
|
27
|
+
currentSide1Buffer: string;
|
|
28
|
+
currentSide2Buffer: string;
|
|
29
|
+
currentTiebreakSide1Buffer: string;
|
|
30
|
+
currentTiebreakSide2Buffer: string;
|
|
31
|
+
sets: ParsedSet[];
|
|
32
|
+
parsedFormat: ParsedFormat;
|
|
33
|
+
state: TokenizerState;
|
|
34
|
+
inTiebreak: boolean;
|
|
35
|
+
expectingTiebreakOnly: boolean;
|
|
36
|
+
irregularEnding?: string;
|
|
37
|
+
irregularEndingPosition?: number;
|
|
38
|
+
isValid: boolean;
|
|
39
|
+
errors: ParseError[];
|
|
40
|
+
warnings: string[];
|
|
41
|
+
confidence: number;
|
|
42
|
+
ambiguities: string[];
|
|
43
|
+
suggestions: string[];
|
|
44
|
+
}
|
|
45
|
+
export declare enum TokenizerState {
|
|
46
|
+
START = "START",
|
|
47
|
+
PARSING_SIDE1 = "PARSING_SIDE1",
|
|
48
|
+
PARSING_SIDE2 = "PARSING_SIDE2",
|
|
49
|
+
PARSING_TIEBREAK_SIDE1 = "PARSING_TIEBREAK_SIDE1",
|
|
50
|
+
PARSING_TIEBREAK_SIDE2 = "PARSING_TIEBREAK_SIDE2",
|
|
51
|
+
SET_COMPLETE = "SET_COMPLETE",
|
|
52
|
+
MATCH_COMPLETE = "MATCH_COMPLETE",
|
|
53
|
+
ERROR = "ERROR"
|
|
54
|
+
}
|
|
55
|
+
export interface ParseError {
|
|
56
|
+
position: number;
|
|
57
|
+
message: string;
|
|
58
|
+
expected?: string;
|
|
59
|
+
got?: string;
|
|
60
|
+
context?: string;
|
|
61
|
+
}
|
|
62
|
+
export interface ParseResult {
|
|
63
|
+
valid: boolean;
|
|
64
|
+
formattedScore: string;
|
|
65
|
+
sets: ParsedSet[];
|
|
66
|
+
confidence: number;
|
|
67
|
+
errors: ParseError[];
|
|
68
|
+
warnings: string[];
|
|
69
|
+
ambiguities: string[];
|
|
70
|
+
suggestions: string[];
|
|
71
|
+
incomplete: boolean;
|
|
72
|
+
matchComplete: boolean;
|
|
73
|
+
matchUpStatus?: string;
|
|
74
|
+
}
|
|
75
|
+
/**
|
|
76
|
+
* Parse free-form score string using matchUpFormat context
|
|
77
|
+
*/
|
|
78
|
+
export declare function parseScore(input: string, matchUpFormat: string | ParsedFormat): ParseResult;
|
|
79
|
+
export {};
|
package/dist/types.d.ts
ADDED
|
@@ -0,0 +1,321 @@
|
|
|
1
|
+
export interface MatchUp {
|
|
2
|
+
matchUpId: string;
|
|
3
|
+
matchUpType?: 'SINGLES' | 'DOUBLES';
|
|
4
|
+
matchUpFormat?: string;
|
|
5
|
+
matchUpStatus?: string;
|
|
6
|
+
winningSide?: number;
|
|
7
|
+
roundNumber?: number;
|
|
8
|
+
roundPosition?: number;
|
|
9
|
+
finishingRound?: number;
|
|
10
|
+
roundFactor?: number;
|
|
11
|
+
stage?: string;
|
|
12
|
+
isRoundRobin?: boolean;
|
|
13
|
+
preFeedRound?: boolean;
|
|
14
|
+
collectionId?: string;
|
|
15
|
+
drawPositions?: number[];
|
|
16
|
+
structureName?: string;
|
|
17
|
+
structureId: string;
|
|
18
|
+
drawId?: string;
|
|
19
|
+
containerStructureId?: string;
|
|
20
|
+
tournamentId?: string;
|
|
21
|
+
roundOrder?: number;
|
|
22
|
+
venueId?: string;
|
|
23
|
+
courtId?: string;
|
|
24
|
+
sides?: Side[];
|
|
25
|
+
score?: Score;
|
|
26
|
+
schedule?: Schedule;
|
|
27
|
+
readyToScore?: boolean;
|
|
28
|
+
[key: string]: any;
|
|
29
|
+
}
|
|
30
|
+
export interface Side {
|
|
31
|
+
sideNumber: number;
|
|
32
|
+
drawPosition?: number;
|
|
33
|
+
participant?: Participant;
|
|
34
|
+
participantFed?: string;
|
|
35
|
+
sourceMatchUp?: MatchUp;
|
|
36
|
+
qualifier?: boolean;
|
|
37
|
+
bye?: boolean;
|
|
38
|
+
lineUp?: LineUp[];
|
|
39
|
+
score?: SideScore;
|
|
40
|
+
seedNumber?: number;
|
|
41
|
+
seedValue?: string | number;
|
|
42
|
+
}
|
|
43
|
+
export interface Participant {
|
|
44
|
+
participantId: string;
|
|
45
|
+
participantName?: string;
|
|
46
|
+
participantOtherName?: string;
|
|
47
|
+
participantType?: 'INDIVIDUAL' | 'PAIR' | 'TEAM';
|
|
48
|
+
individualParticipants?: IndividualParticipant[];
|
|
49
|
+
entryStatus?: string;
|
|
50
|
+
luckyAdvancement?: boolean;
|
|
51
|
+
person?: Person;
|
|
52
|
+
useOtherName?: boolean;
|
|
53
|
+
}
|
|
54
|
+
export interface ScaleItem {
|
|
55
|
+
scaleName?: string;
|
|
56
|
+
scaleValue?: any;
|
|
57
|
+
[key: string]: any;
|
|
58
|
+
}
|
|
59
|
+
export interface ScalesByType {
|
|
60
|
+
SINGLES?: ScaleItem[];
|
|
61
|
+
DOUBLES?: ScaleItem[];
|
|
62
|
+
}
|
|
63
|
+
export interface IndividualParticipant {
|
|
64
|
+
participantOtherName?: string;
|
|
65
|
+
participantId: string;
|
|
66
|
+
participantName?: string;
|
|
67
|
+
person?: Person;
|
|
68
|
+
teams?: Participant[];
|
|
69
|
+
rankings?: ScalesByType;
|
|
70
|
+
ratings?: ScalesByType;
|
|
71
|
+
useOtherName?: boolean;
|
|
72
|
+
}
|
|
73
|
+
export interface Person {
|
|
74
|
+
personId?: string;
|
|
75
|
+
standardFamilyName?: string;
|
|
76
|
+
standardGivenName?: string;
|
|
77
|
+
nationalityCode?: string;
|
|
78
|
+
addresses?: Address[];
|
|
79
|
+
rankings?: Ranking[];
|
|
80
|
+
ratings?: Rating[];
|
|
81
|
+
sex?: 'MALE' | 'FEMALE' | 'MIXED';
|
|
82
|
+
[key: string]: any;
|
|
83
|
+
}
|
|
84
|
+
export interface Address {
|
|
85
|
+
addressType?: string;
|
|
86
|
+
city?: string;
|
|
87
|
+
state?: string;
|
|
88
|
+
country?: string;
|
|
89
|
+
countryCode?: string;
|
|
90
|
+
postalCode?: string;
|
|
91
|
+
}
|
|
92
|
+
export interface Ranking {
|
|
93
|
+
rankingType?: string;
|
|
94
|
+
ranking?: number;
|
|
95
|
+
rankingDate?: string;
|
|
96
|
+
}
|
|
97
|
+
export interface Rating {
|
|
98
|
+
ratingType?: string;
|
|
99
|
+
rating?: number;
|
|
100
|
+
ratingDate?: string;
|
|
101
|
+
[key: string]: any;
|
|
102
|
+
}
|
|
103
|
+
export interface LineUp {
|
|
104
|
+
participantId?: string;
|
|
105
|
+
}
|
|
106
|
+
export interface Score {
|
|
107
|
+
scoreStringSide1?: string;
|
|
108
|
+
scoreStringSide2?: string;
|
|
109
|
+
sets?: SetScore[];
|
|
110
|
+
}
|
|
111
|
+
export interface SetScore {
|
|
112
|
+
setNumber: number;
|
|
113
|
+
side1Score?: number;
|
|
114
|
+
side2Score?: number;
|
|
115
|
+
side1TiebreakScore?: number;
|
|
116
|
+
side2TiebreakScore?: number;
|
|
117
|
+
side1PointScore?: number | string;
|
|
118
|
+
side2PointScore?: number | string;
|
|
119
|
+
winningSide?: number;
|
|
120
|
+
}
|
|
121
|
+
export interface SideScore {
|
|
122
|
+
scoreStringSide?: string;
|
|
123
|
+
games?: number;
|
|
124
|
+
points?: number;
|
|
125
|
+
}
|
|
126
|
+
export interface Schedule {
|
|
127
|
+
scheduledDate?: string;
|
|
128
|
+
scheduledTime?: string;
|
|
129
|
+
startTime?: string;
|
|
130
|
+
endTime?: string;
|
|
131
|
+
courtId?: string;
|
|
132
|
+
courtName?: string;
|
|
133
|
+
venueId?: string;
|
|
134
|
+
venueAbbreviation?: string;
|
|
135
|
+
}
|
|
136
|
+
export interface Configuration {
|
|
137
|
+
flags?: boolean;
|
|
138
|
+
flag?: boolean;
|
|
139
|
+
teamLogo?: boolean;
|
|
140
|
+
roundHeader?: boolean;
|
|
141
|
+
winnerChevron?: boolean;
|
|
142
|
+
centerInfo?: boolean;
|
|
143
|
+
resultsInfo?: boolean;
|
|
144
|
+
scoreBox?: boolean;
|
|
145
|
+
gameScoreOnly?: boolean;
|
|
146
|
+
gameScore?: {
|
|
147
|
+
position?: 'leading' | 'trailing';
|
|
148
|
+
inverted?: boolean;
|
|
149
|
+
};
|
|
150
|
+
drawPositions?: boolean;
|
|
151
|
+
allDrawPositions?: boolean;
|
|
152
|
+
drawPositionColor?: string;
|
|
153
|
+
bracketedSeeds?: boolean | 'square';
|
|
154
|
+
scheduleInfo?: boolean;
|
|
155
|
+
matchUpFooter?: boolean;
|
|
156
|
+
showAddress?: boolean;
|
|
157
|
+
seedingElement?: 'sup' | 'span';
|
|
158
|
+
matchUpHover?: boolean | string;
|
|
159
|
+
participantDetail?: string;
|
|
160
|
+
inlineAssignment?: boolean;
|
|
161
|
+
participantProvider?: () => Participant[];
|
|
162
|
+
assignmentInputFontSize?: string;
|
|
163
|
+
persistInputFields?: boolean;
|
|
164
|
+
hasQualifying?: boolean;
|
|
165
|
+
inlineScoring?: {
|
|
166
|
+
mode: 'points' | 'games';
|
|
167
|
+
showFooter?: boolean;
|
|
168
|
+
showSituation?: boolean;
|
|
169
|
+
canUndo?: boolean;
|
|
170
|
+
canRedo?: boolean;
|
|
171
|
+
isComplete?: boolean;
|
|
172
|
+
isDirty?: boolean;
|
|
173
|
+
situationText?: string;
|
|
174
|
+
};
|
|
175
|
+
useParticipantName?: boolean;
|
|
176
|
+
genderColor?: boolean | string;
|
|
177
|
+
winnerColor?: boolean | string;
|
|
178
|
+
placeHolders?: {
|
|
179
|
+
tbd?: string;
|
|
180
|
+
bye?: string;
|
|
181
|
+
qualifier?: string;
|
|
182
|
+
};
|
|
183
|
+
scaleAttributes?: {
|
|
184
|
+
scaleColor?: string;
|
|
185
|
+
scaleType?: string;
|
|
186
|
+
scaleName?: string;
|
|
187
|
+
accessor?: string;
|
|
188
|
+
eventType?: string;
|
|
189
|
+
fallback?: boolean;
|
|
190
|
+
scalePosition?: 'left' | 'right';
|
|
191
|
+
rawValue?: any;
|
|
192
|
+
};
|
|
193
|
+
clickAway?: boolean;
|
|
194
|
+
backdrop?: boolean;
|
|
195
|
+
maxWidth?: number;
|
|
196
|
+
fontSize?: string;
|
|
197
|
+
padding?: string;
|
|
198
|
+
className?: string;
|
|
199
|
+
style?: Partial<CSSStyleDeclaration>;
|
|
200
|
+
info?: string;
|
|
201
|
+
menu?: {
|
|
202
|
+
menuItems: Array<{
|
|
203
|
+
label: string;
|
|
204
|
+
onClick: () => void;
|
|
205
|
+
active?: boolean;
|
|
206
|
+
}>;
|
|
207
|
+
};
|
|
208
|
+
title?: {
|
|
209
|
+
padding?: string;
|
|
210
|
+
};
|
|
211
|
+
content?: {
|
|
212
|
+
padding?: string;
|
|
213
|
+
};
|
|
214
|
+
footer?: {
|
|
215
|
+
padding?: string;
|
|
216
|
+
className?: string;
|
|
217
|
+
};
|
|
218
|
+
dictionary?: {
|
|
219
|
+
close?: string;
|
|
220
|
+
};
|
|
221
|
+
}
|
|
222
|
+
export interface Composition {
|
|
223
|
+
theme: string;
|
|
224
|
+
configuration?: Configuration;
|
|
225
|
+
}
|
|
226
|
+
export interface EventHandlers {
|
|
227
|
+
matchUpClick?: (params: {
|
|
228
|
+
pointerEvent: MouseEvent;
|
|
229
|
+
matchUp: MatchUp;
|
|
230
|
+
}) => void;
|
|
231
|
+
participantClick?: (params: {
|
|
232
|
+
individualParticipant: IndividualParticipant;
|
|
233
|
+
matchUp?: MatchUp;
|
|
234
|
+
pointerEvent: MouseEvent;
|
|
235
|
+
participant?: Participant;
|
|
236
|
+
side?: Side;
|
|
237
|
+
}) => void;
|
|
238
|
+
assignParticipant?: (params: {
|
|
239
|
+
matchUp: MatchUp;
|
|
240
|
+
side: Side;
|
|
241
|
+
sideNumber: number;
|
|
242
|
+
participant: Participant;
|
|
243
|
+
pointerEvent?: Event;
|
|
244
|
+
}) => void;
|
|
245
|
+
assignBye?: (params: {
|
|
246
|
+
matchUp: MatchUp;
|
|
247
|
+
side: Side;
|
|
248
|
+
sideNumber: number;
|
|
249
|
+
pointerEvent?: Event;
|
|
250
|
+
}) => void;
|
|
251
|
+
assignQualifier?: (params: {
|
|
252
|
+
matchUp: MatchUp;
|
|
253
|
+
side: Side;
|
|
254
|
+
sideNumber: number;
|
|
255
|
+
pointerEvent?: Event;
|
|
256
|
+
}) => void;
|
|
257
|
+
removeAssignment?: (params: {
|
|
258
|
+
matchUp: MatchUp;
|
|
259
|
+
side: Side;
|
|
260
|
+
sideNumber: number;
|
|
261
|
+
pointerEvent?: Event;
|
|
262
|
+
}) => void;
|
|
263
|
+
scoreClick?: (params: {
|
|
264
|
+
pointerEvent: MouseEvent;
|
|
265
|
+
matchUp: MatchUp;
|
|
266
|
+
}) => void;
|
|
267
|
+
pillClick?: (params: {
|
|
268
|
+
pointerEvent: MouseEvent;
|
|
269
|
+
matchUp: MatchUp;
|
|
270
|
+
sideNumber: number;
|
|
271
|
+
}) => void;
|
|
272
|
+
scoreIncrement?: (params: {
|
|
273
|
+
matchUpId: string;
|
|
274
|
+
sideNumber: number;
|
|
275
|
+
scoreType: 'point' | 'game' | 'set';
|
|
276
|
+
}) => void;
|
|
277
|
+
inlineUndo?: (params: {
|
|
278
|
+
matchUpId: string;
|
|
279
|
+
}) => void;
|
|
280
|
+
inlineRedo?: (params: {
|
|
281
|
+
matchUpId: string;
|
|
282
|
+
}) => void;
|
|
283
|
+
inlineClear?: (params: {
|
|
284
|
+
matchUpId: string;
|
|
285
|
+
}) => void;
|
|
286
|
+
inlineSubmit?: (params: {
|
|
287
|
+
matchUpId: string;
|
|
288
|
+
}) => void;
|
|
289
|
+
[key: string]: any;
|
|
290
|
+
}
|
|
291
|
+
export interface ModalButton {
|
|
292
|
+
label?: string;
|
|
293
|
+
text?: string;
|
|
294
|
+
id?: string;
|
|
295
|
+
intent?: string;
|
|
296
|
+
close?: boolean | (() => void);
|
|
297
|
+
disabled?: boolean;
|
|
298
|
+
hide?: boolean;
|
|
299
|
+
onClick?: (params: {
|
|
300
|
+
e: MouseEvent;
|
|
301
|
+
content?: any;
|
|
302
|
+
}) => void;
|
|
303
|
+
footer?: {
|
|
304
|
+
className?: string;
|
|
305
|
+
};
|
|
306
|
+
}
|
|
307
|
+
export interface ModalConfig extends Configuration {
|
|
308
|
+
onClose?: (params: {
|
|
309
|
+
content?: any;
|
|
310
|
+
}) => void;
|
|
311
|
+
}
|
|
312
|
+
export interface ModalParams {
|
|
313
|
+
title?: string;
|
|
314
|
+
content?: string | HTMLElement | ((container: HTMLElement) => any);
|
|
315
|
+
buttons?: ModalButton[];
|
|
316
|
+
footer?: string | HTMLElement;
|
|
317
|
+
config?: ModalConfig;
|
|
318
|
+
onClose?: (params: {
|
|
319
|
+
content?: any;
|
|
320
|
+
}) => void;
|
|
321
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function isElement(element: any): element is Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function dateValidator(value: any): boolean;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const emailValidator: (value: string) => RegExpMatchArray | null;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export { nameValidator } from './nameValidator';
|
|
2
|
+
export { numericValidator } from './numericValidator';
|
|
3
|
+
export { numericRange } from './numericRange';
|
|
4
|
+
export { passwordValidator } from './passwordValidator';
|
|
5
|
+
export { dateValidator } from './dateValidator';
|
|
6
|
+
export { wordValidator } from './wordValidator';
|
|
7
|
+
export { emailValidator } from './emailValidator';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const nameValidator: (minLength: number, maxLength?: number) => (value: string) => boolean;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const numericRange: (min: number, max: number) => (value: string | number) => boolean;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function numericValidator(value: string | number): boolean;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const passwordValidator: (value: any) => boolean;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const wordValidator: (minWords: number, maxWords?: number) => (value: string) => boolean;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function courthiveComponentsVersion(): string;
|