courthive-components 6.10.0 → 6.10.2
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/inline-scoring/inlineScoringManager.d.ts +4 -0
- package/dist/components/scoring/logic/combinedPointTie.d.ts +9 -0
- package/dist/components/scoring/scoreEntryCard.d.ts +2 -3
- package/dist/components/scoring/types.d.ts +2 -2
- package/dist/courthive-components.es.js +6080 -6029
- package/dist/courthive-components.umd.js +30 -30
- package/package.json +2 -2
|
@@ -27,6 +27,10 @@ export declare class InlineScoringManager {
|
|
|
27
27
|
addGame(matchUpId: string, winner: 0 | 1, baseMatchUp: MatchUp): MatchUp | undefined;
|
|
28
28
|
/**
|
|
29
29
|
* Add a set score. Used in 'entry' mode.
|
|
30
|
+
*
|
|
31
|
+
* The factory judges the total by its segment's rule and refuses a total that is not a fact (a negative
|
|
32
|
+
* or non-integer score): that refusal records nothing and returns undefined, as input on a completed
|
|
33
|
+
* match does. An input the engine ignores (`recorded: false`) returns undefined too.
|
|
30
34
|
*/
|
|
31
35
|
addSet(matchUpId: string, side1Score: number, side2Score: number, baseMatchUp: MatchUp): MatchUp | undefined;
|
|
32
36
|
undo(matchUpId: string, baseMatchUp: MatchUp): MatchUp | undefined;
|
|
@@ -8,3 +8,12 @@ import { SetScore } from '../types';
|
|
|
8
8
|
* deciding-point or win-by format (`P32DP`, `P32WB2`) never ends level, so it is never a completed tie.
|
|
9
9
|
*/
|
|
10
10
|
export declare function isCompletedCombinedPointTie(sets: SetScore[], matchUpFormat?: string): boolean;
|
|
11
|
+
/**
|
|
12
|
+
* A match the factory completes with no winner: the combined-point tie above, and (factory 7.16, #5612)
|
|
13
|
+
* an exactly or aggregate count that closes level with no declared decider, such as `HAL2X-S:TB11` at one
|
|
14
|
+
* half each or `SET2XA-S:T10` level on games. The score dialogs judge completion by a winner, so they ask
|
|
15
|
+
* the factory: the entered sets are played through its ScoringEngine as set totals, and the result is a
|
|
16
|
+
* tie when the engine completes the match and names no winner. A set the engine refuses or ignores (one
|
|
17
|
+
* past the close) is not a completed tie.
|
|
18
|
+
*/
|
|
19
|
+
export declare function isCompletedLevelClose(sets: SetScore[], matchUpFormat?: string): boolean;
|
|
@@ -159,9 +159,8 @@ export type ScoreEntryCardParams = {
|
|
|
159
159
|
/**
|
|
160
160
|
* Whether a recorded outcome may be REMOVED. Only the draw knows whether a later match depends on the
|
|
161
161
|
* result, so the host reads it from the engine (the factory's `CLEAR_SCORE` matchUp action) rather than
|
|
162
|
-
* the dialog guessing. `false` disables
|
|
163
|
-
*
|
|
164
|
-
* submission the engine will refuse. Omitted, `[Clear]` behaves as it always has.
|
|
162
|
+
* the dialog guessing. `false` disables submitting an empty replacement for a recorded result.
|
|
163
|
+
* `[Clear]` still resets the entry form so the operator can type a replacement score.
|
|
165
164
|
*/
|
|
166
165
|
clearable?: boolean;
|
|
167
166
|
/** Scoped statuses refused by the factory SCORE action. */
|
|
@@ -73,8 +73,8 @@ export type ScoringModalParams = {
|
|
|
73
73
|
/**
|
|
74
74
|
* Whether a recorded outcome may be REMOVED. Only the draw knows whether a later match depends on the
|
|
75
75
|
* result, so the host reads it from the engine (the factory's `CLEAR_SCORE` matchUp action) rather than
|
|
76
|
-
* the dialog guessing. `false`
|
|
77
|
-
*
|
|
76
|
+
* the dialog guessing. `false` disables submitting an empty replacement for a recorded result.
|
|
77
|
+
* `[Clear]` still resets the entry form so the operator can type a replacement score.
|
|
78
78
|
*/
|
|
79
79
|
clearable?: boolean;
|
|
80
80
|
/** Scoped statuses refused by the factory SCORE action. Omitted preserves the unrestricted vocabulary. */
|