@ethlete/components 1.0.0-next.119 → 1.0.0-next.121
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/CHANGELOG.md +14 -0
- package/fesm2022/ethlete-components-bracket.mjs +37 -8
- package/fesm2022/ethlete-components-bracket.mjs.map +1 -1
- package/fesm2022/ethlete-components.mjs +62 -17
- package/fesm2022/ethlete-components.mjs.map +1 -1
- package/package.json +1 -1
- package/src/lib/bracket/bracket.component.css +96 -14
- package/src/lib/button/button.component.css +1 -1
- package/src/lib/button/fab.component.css +1 -1
- package/src/lib/button/icon-button.component.css +1 -1
- package/src/lib/button/text-button.component.css +1 -1
- package/src/lib/button/window-control-button.component.css +1 -1
- package/types/ethlete-components-bracket.d.ts +7 -0
- package/types/ethlete-components.d.ts +15 -1
package/package.json
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
@layer components.sdk {
|
|
2
2
|
.et-bracket {
|
|
3
3
|
position: relative;
|
|
4
|
-
transition: transform var(--et-bracket-move-duration, 0.2s) var(--et-bracket-move-easing, ease);
|
|
5
4
|
}
|
|
6
5
|
|
|
7
6
|
.et-bracket-round {
|
|
@@ -11,7 +10,6 @@
|
|
|
11
10
|
list-style: none;
|
|
12
11
|
margin: 0;
|
|
13
12
|
padding: 0;
|
|
14
|
-
transition: transform var(--et-bracket-move-duration, 0.2s) var(--et-bracket-move-easing, ease);
|
|
15
13
|
}
|
|
16
14
|
|
|
17
15
|
.et-bracket-element {
|
|
@@ -21,18 +19,13 @@
|
|
|
21
19
|
list-style: none;
|
|
22
20
|
margin: 0;
|
|
23
21
|
padding: 0;
|
|
24
|
-
transition:
|
|
25
|
-
transform var(--et-bracket-move-duration, 0.2s) var(--et-bracket-move-easing, ease),
|
|
26
|
-
opacity 0.2s;
|
|
22
|
+
transition: opacity 0.2s;
|
|
27
23
|
}
|
|
28
24
|
|
|
29
25
|
/* Placed with left/top, not a transform: sticky offsets its title against the untransformed box, so
|
|
30
26
|
a translated section would pin its title to the box's far end. */
|
|
31
27
|
.et-bracket-section-title {
|
|
32
28
|
position: absolute;
|
|
33
|
-
transition:
|
|
34
|
-
left var(--et-bracket-move-duration, 0.2s) var(--et-bracket-move-easing, ease),
|
|
35
|
-
top var(--et-bracket-move-duration, 0.2s) var(--et-bracket-move-easing, ease);
|
|
36
29
|
}
|
|
37
30
|
|
|
38
31
|
.et-bracket-section-title::after {
|
|
@@ -73,19 +66,44 @@
|
|
|
73
66
|
*/
|
|
74
67
|
path {
|
|
75
68
|
color: var(--et-bracket-line-color, var(--et-surface-border, rgb(255 255 255 / 0.1)));
|
|
76
|
-
transition:
|
|
77
|
-
d var(--et-bracket-move-duration, 0.2s) var(--et-bracket-move-easing, ease),
|
|
78
|
-
opacity 0.2s;
|
|
69
|
+
transition: opacity 0.2s;
|
|
79
70
|
}
|
|
80
71
|
|
|
81
72
|
/* The swiss group border color lives in BracketSwissStylesComponent, mounted by swissBracketLayout() —
|
|
82
73
|
a bracket that never draws groups never injects it. */
|
|
83
74
|
}
|
|
84
75
|
|
|
85
|
-
|
|
76
|
+
.et-bracket-host--motion {
|
|
86
77
|
.et-bracket,
|
|
87
|
-
.et-bracket-round
|
|
88
|
-
|
|
78
|
+
.et-bracket-round {
|
|
79
|
+
transition: transform var(--et-bracket-move-duration, 0.2s) var(--et-bracket-move-easing, ease);
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
.et-bracket-element {
|
|
83
|
+
transition:
|
|
84
|
+
transform var(--et-bracket-move-duration, 0.2s) var(--et-bracket-move-easing, ease),
|
|
85
|
+
opacity 0.2s;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
.et-bracket-section-title {
|
|
89
|
+
transition:
|
|
90
|
+
left var(--et-bracket-move-duration, 0.2s) var(--et-bracket-move-easing, ease),
|
|
91
|
+
top var(--et-bracket-move-duration, 0.2s) var(--et-bracket-move-easing, ease);
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
.et-bracket-svg path {
|
|
95
|
+
transition:
|
|
96
|
+
d var(--et-bracket-move-duration, 0.2s) var(--et-bracket-move-easing, ease),
|
|
97
|
+
opacity 0.2s;
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
@media (prefers-reduced-motion: reduce) {
|
|
102
|
+
.et-bracket-host--motion .et-bracket,
|
|
103
|
+
.et-bracket-host--motion .et-bracket-round,
|
|
104
|
+
.et-bracket-host--motion .et-bracket-section-title,
|
|
105
|
+
.et-bracket-host--motion .et-bracket-element,
|
|
106
|
+
.et-bracket-host--motion .et-bracket-svg path,
|
|
89
107
|
.et-bracket-element,
|
|
90
108
|
.et-bracket-svg path {
|
|
91
109
|
transition: none;
|
|
@@ -130,4 +148,68 @@
|
|
|
130
148
|
opacity: 0.25;
|
|
131
149
|
}
|
|
132
150
|
}
|
|
151
|
+
|
|
152
|
+
.et-bracket-busy-bar {
|
|
153
|
+
position: sticky;
|
|
154
|
+
inset-inline-start: 0;
|
|
155
|
+
inset-block-start: 0;
|
|
156
|
+
z-index: 1;
|
|
157
|
+
display: block;
|
|
158
|
+
inline-size: 100%;
|
|
159
|
+
block-size: 2px;
|
|
160
|
+
/* Contributes no height, so starting a reload never nudges the bracket down by 2px. */
|
|
161
|
+
margin-block-end: -2px;
|
|
162
|
+
overflow: hidden;
|
|
163
|
+
background: color-mix(in srgb, var(--et-surface-tint, var(--et-surface-text, gray)) 10%, transparent);
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
.et-bracket-busy-bar.et-bracket-busy-bar--enter {
|
|
167
|
+
animation: et-bracket-busy-fade 150ms ease;
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
.et-bracket-busy-bar.et-bracket-busy-bar--leave {
|
|
171
|
+
animation: et-bracket-busy-fade 250ms ease reverse forwards;
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
@keyframes et-bracket-busy-fade {
|
|
175
|
+
from {
|
|
176
|
+
opacity: 0;
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
to {
|
|
180
|
+
opacity: 1;
|
|
181
|
+
}
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
.et-bracket-busy-bar::after {
|
|
185
|
+
content: '';
|
|
186
|
+
display: block;
|
|
187
|
+
inline-size: 40%;
|
|
188
|
+
block-size: 100%;
|
|
189
|
+
border-radius: 999px;
|
|
190
|
+
background: light-dark(var(--et-tone-text), var(--et-tone-fill));
|
|
191
|
+
animation: et-bracket-busy-sweep 1.1s ease-in-out infinite;
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
@keyframes et-bracket-busy-sweep {
|
|
195
|
+
from {
|
|
196
|
+
transform: translateX(-100%);
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
to {
|
|
200
|
+
transform: translateX(250%);
|
|
201
|
+
}
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
@media (prefers-reduced-motion: reduce) {
|
|
205
|
+
.et-bracket-busy-bar::after {
|
|
206
|
+
inline-size: 100%;
|
|
207
|
+
animation: none;
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
.et-bracket-busy-bar.et-bracket-busy-bar--enter,
|
|
211
|
+
.et-bracket-busy-bar.et-bracket-busy-bar--leave {
|
|
212
|
+
animation: none;
|
|
213
|
+
}
|
|
214
|
+
}
|
|
133
215
|
}
|
|
@@ -580,7 +580,14 @@ export type CurveOptions = {
|
|
|
580
580
|
* it at the middle of the gap.
|
|
581
581
|
*/
|
|
582
582
|
turnOffset?: number | null;
|
|
583
|
+
/**
|
|
584
|
+
* Where the closing straight run stops, as an inline coordinate. Omitted, it runs into the target card;
|
|
585
|
+
* a merge stops both arms where they meet and draws the rest once.
|
|
586
|
+
*/
|
|
587
|
+
endInline?: number;
|
|
583
588
|
};
|
|
589
|
+
/** The inline coordinate where a curve's closing straight run into its target card begins. */
|
|
590
|
+
export declare const curveStraightStart: (from: BracketPosition, to: BracketPosition, options: CurveOptions) => number;
|
|
584
591
|
export declare const curvePath: (from: BracketPosition, to: BracketPosition, direction: "up" | "down", options: CurveOptions) => import("@ethlete/components/bracket").BracketEdge;
|
|
585
592
|
/** The table position a `standing-rank` slot asks about, and the slot that asks. */
|
|
586
593
|
export type BracketStandingRankPickQuery = {
|
|
@@ -3051,6 +3051,11 @@ export declare class BracketSkeletonComponent {
|
|
|
3051
3051
|
export declare class BracketComponent<TRoundData = unknown, TMatchData = unknown> {
|
|
3052
3052
|
private config;
|
|
3053
3053
|
source: import("@angular/core").InputSignal<BracketDataSource<TRoundData, TMatchData>>;
|
|
3054
|
+
/**
|
|
3055
|
+
* Marks the bracket as reloading: the drawn bracket stays in place and a busy bar runs along its top,
|
|
3056
|
+
* like `et-table`'s `loading`. The host carries `aria-busy` while it is set.
|
|
3057
|
+
*/
|
|
3058
|
+
loading: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
3054
3059
|
/**
|
|
3055
3060
|
* The matches feeding each match, upper arm first - the same option `createBracket` takes. Pass the
|
|
3056
3061
|
* function your own `createBracket` call uses, so the drawn lines and the resolved picks follow one graph.
|
|
@@ -3148,6 +3153,8 @@ export declare class BracketComponent<TRoundData = unknown, TMatchData = unknown
|
|
|
3148
3153
|
focusedParticipantId: import("@angular/core").ModelSignal<string | null>;
|
|
3149
3154
|
private elementId;
|
|
3150
3155
|
private journeyController;
|
|
3156
|
+
private paintedSource;
|
|
3157
|
+
protected relayoutMotion: Signal<boolean>;
|
|
3151
3158
|
private resolvedLayout;
|
|
3152
3159
|
/**
|
|
3153
3160
|
* Every layout value in effect: this component's inputs first, `provideBracketConfig` second, the
|
|
@@ -3158,6 +3165,7 @@ export declare class BracketComponent<TRoundData = unknown, TMatchData = unknown
|
|
|
3158
3165
|
bracketData: Signal<import("@ethlete/components").Bracket<TRoundData, TMatchData>>;
|
|
3159
3166
|
private journeyParticipants;
|
|
3160
3167
|
bracketGrid: Signal<import("@ethlete/components").ComputedBracketGrid<TRoundData, TMatchData>>;
|
|
3168
|
+
protected showBusyBar: Signal<boolean>;
|
|
3161
3169
|
protected matchCardInputs: Signal<Map<string, Record<string, unknown>>>;
|
|
3162
3170
|
/** The sections whose titles the grid draws - none unless `showSectionTitles` is on. */
|
|
3163
3171
|
sectionTitles: Signal<import("@ethlete/components").BracketGridSection<TRoundData, TMatchData>[]>;
|
|
@@ -3178,6 +3186,7 @@ export declare class BracketComponent<TRoundData = unknown, TMatchData = unknown
|
|
|
3178
3186
|
* style manager dedupes by type, so a page of swiss brackets injects one `<style>`.
|
|
3179
3187
|
*/
|
|
3180
3188
|
private setupLayoutStyles;
|
|
3189
|
+
private setupRelayoutMotion;
|
|
3181
3190
|
private setupJourneyHighlight;
|
|
3182
3191
|
static ɵfac: i0.ɵɵFactoryDeclaration<BracketComponent<any, any>, never>;
|
|
3183
3192
|
static ɵcmp: i0.ɵɵComponentDeclaration<BracketComponent<any, any>, "et-bracket", never, {
|
|
@@ -3186,6 +3195,11 @@ export declare class BracketComponent<TRoundData = unknown, TMatchData = unknown
|
|
|
3186
3195
|
"required": true;
|
|
3187
3196
|
"isSignal": true;
|
|
3188
3197
|
};
|
|
3198
|
+
"loading": {
|
|
3199
|
+
"alias": "loading";
|
|
3200
|
+
"required": false;
|
|
3201
|
+
"isSignal": true;
|
|
3202
|
+
};
|
|
3189
3203
|
"previousMatchIds": {
|
|
3190
3204
|
"alias": "previousMatchIds";
|
|
3191
3205
|
"required": false;
|
|
@@ -37673,5 +37687,5 @@ export declare const provideUnsavedChangesLabels: (labels: import("@ethlete/core
|
|
|
37673
37687
|
export declare const injectUnsavedChangesLabels: () => import("@angular/core").Signal<UnsavedChangesLabels>;
|
|
37674
37688
|
export declare const UNSAVED_CHANGES_LABELS: import("@angular/core").InjectionToken<import("@ethlete/core").LabelsSource<UnsavedChangesLabels>>;
|
|
37675
37689
|
/** The version of `@ethlete/components` this build was cut from. */
|
|
37676
|
-
export declare const COMPONENTS_VERSION = "1.0.0-next.
|
|
37690
|
+
export declare const COMPONENTS_VERSION = "1.0.0-next.121";
|
|
37677
37691
|
export { type AlertDialogComponentSlot, type AlertDialogSlot, type AlertDialogTemplateSlot, type AppointmentTreeNode, BRACKET_DATA_LAYOUT, BRACKET_ERROR_CODES, BRACKET_FINAL_ALIGNMENT, BRACKET_ROUND_MIRROR_TYPE, BRACKET_SECTION_KEY, BRACKET_SWISS_GROUP_COLOR_TYPE, type Bracket, type BracketByeSlotSource, type BracketComponents, type BracketContinueComponent, type BracketDataLayout, type BracketDataSource, type BracketDrawing, type BracketEdge, type BracketExternalSlotSource, type BracketFinalAlignment, type BracketGradient, type BracketGradientStop, type BracketGridSection, type BracketLayoutSettings, BracketMap, type BracketMatch, type BracketMatchComponent, type BracketMatchFactor, type BracketMatchId, type BracketMatchInputs, type BracketMatchOutcomeSlotSource, type BracketMatchParticipant, type BracketMatchPosition, type BracketMatchRelation, type BracketMatchRelationNone, type BracketMatchRelationNothingToOne, type BracketMatchRelationOneToNothing, type BracketMatchRelationOneToOne, type BracketMatchRelationTwoToNothing, type BracketMatchRelationTwoToOne, type BracketMatchShortId, type BracketMatchSlot, type BracketMatchSource, type BracketMatchStatus, type BracketParticipant, type BracketParticipantMatch, type BracketPickMigration, type BracketPickMigrationOptions, type BracketPickSet, type BracketRect, type BracketRound, type BracketRoundHeaderComponent, type BracketRoundId, type BracketRoundMapWithSwissData, type BracketRoundMirrorType, type BracketRoundPosition, type BracketRoundRelation, type BracketRoundRelationNone, type BracketRoundRelationNothingToOne, type BracketRoundRelationOneToNothing, type BracketRoundRelationOneToOne, type BracketRoundRelationTwoToNothing, type BracketRoundRelationTwoToOne, type BracketRoundShortId, type BracketRoundSource, type BracketRoundSwissData, type BracketRoundSwissGroup, type BracketRoundSwissGroupId, type BracketRoundSwissGroupMap, type BracketRoundType, BracketRuntimeError, type BracketSectionKey, type BracketSectionTitleComponent, type BracketSeedSlotSource, type BracketSlotResolutionPolicy, type BracketSlotSource, type BracketSlotSourceKind, type BracketStandingRankSide, type BracketStandingRankSlotSource, type BracketSwissBucketSlotSource, type BracketSwissColors, type BracketSwissGroupColorType, type BracketWarning, COMMON_BRACKET_ROUND_TYPE, type CalendarBandPosition, type CalendarInterval, type CalendarPrecision, type CalendarSelectionFlags, type CalendarView, type CalendarWeekStartsOn, type CascaderCompareWith, type CascaderDataSource, type CascaderNode, type CommonBracketRoundType, type ComputedBracketGrid, type CreateBracketGridConfig, type CreateBracketOptions, type CreateGridAdapterOptions, DOUBLE_ELIMINATION_BRACKET_ROUND_TYPE, type DateRangeSide, type DateRangeSide as TimeRangeInputSide, type DateRangeValue, type DateRangeValue as DateTimeRangeValue, type DateRangeValue as TimeRangeValue, type DoubleEliminationBracketRoundType, type DropzoneCropConfig, type DropzoneCropCorner, type DropzoneCropRect, type DropzoneCropShape, type DurationFormatSpec, type DurationSegment, type DurationUnit, GROUP_BRACKET_ROUND_TYPE, type GridAdapter, type GridAdapterBreakpoints, type GridConfig, type GroupBracketRoundType, type MatchParticipantId, type MatchParticipantShortId, type MatchParticipantSide, type ParticipantMatchResult, type PlaceholderBracketShape, type RichTextEditorHeadingLevel, type RichTextEditorImageFailure, type RichTextEditorImageFailureReason, type RichTextEditorImageUpload, type RichTextEditorImageUploadContext, type RichTextEditorImageUploadFn, type RichTextEditorTokenChip, type RichTextEditorTokenCodec, SINGLE_ELIMINATION_BRACKET_ROUND_TYPE, SWISS_BRACKET_ROUND_TYPE, type SchedulerAgendaDay, type SchedulerMonthDayCell, type SchedulerTimeGridAllDayEntry, type SchedulerTimeGridBlock, type SchedulerTimeGridDay, type SchedulerTimeGridSegment, type ScrollableActiveChildRef, type ScrollableButtonPosition, type ScrollableButtonsConfig, type ScrollableButtonsDefaults, type ScrollableChrome, type ScrollableChromeSlot, type ScrollableConfig, type ScrollableDirection, type ScrollableIntersectionChange, type ScrollableItemSize, type ScrollableLoadingTemplatePosition, type ScrollableLoadingTemplateRef, type ScrollableMaskVariant, type ScrollableNavigation, type ScrollableNavigationConfig, type ScrollableNavigationItem, type ScrollableResponsive, type ScrollableScrollMode, type ScrollableScrollOrigin, type ScrollableScrollState, type ScrollbarGeometry, type ScrollbarOrientation, type ScrollbarTarget, type SerializeOptions, type SingleEliminationBracketRoundType, type StandingPick, type StandingPickOutcome, type SwissBracketRoundType, type SwissPlaceholderShape, TOURNAMENT_MODE, type TournamentMode, bracketSlot, createBracket, createPlaceholderBracketSource, injectRichTextEditorTools, isBracketSlotPredictable, migrateBracketPicks, resolveBracketSlot, standingRankSides, swapStandingRank, validateBracketSource };
|