@ethlete/components 1.0.0-next.119 → 1.0.0-next.120
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 +8 -0
- package/fesm2022/ethlete-components-bracket.mjs +37 -8
- package/fesm2022/ethlete-components-bracket.mjs.map +1 -1
- package/fesm2022/ethlete-components.mjs +35 -15
- package/fesm2022/ethlete-components.mjs.map +1 -1
- package/package.json +1 -1
- package/src/lib/bracket/bracket.component.css +32 -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 +4 -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;
|
|
@@ -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 = {
|
|
@@ -3148,6 +3148,8 @@ export declare class BracketComponent<TRoundData = unknown, TMatchData = unknown
|
|
|
3148
3148
|
focusedParticipantId: import("@angular/core").ModelSignal<string | null>;
|
|
3149
3149
|
private elementId;
|
|
3150
3150
|
private journeyController;
|
|
3151
|
+
private paintedSource;
|
|
3152
|
+
protected relayoutMotion: Signal<boolean>;
|
|
3151
3153
|
private resolvedLayout;
|
|
3152
3154
|
/**
|
|
3153
3155
|
* Every layout value in effect: this component's inputs first, `provideBracketConfig` second, the
|
|
@@ -3178,6 +3180,7 @@ export declare class BracketComponent<TRoundData = unknown, TMatchData = unknown
|
|
|
3178
3180
|
* style manager dedupes by type, so a page of swiss brackets injects one `<style>`.
|
|
3179
3181
|
*/
|
|
3180
3182
|
private setupLayoutStyles;
|
|
3183
|
+
private setupRelayoutMotion;
|
|
3181
3184
|
private setupJourneyHighlight;
|
|
3182
3185
|
static ɵfac: i0.ɵɵFactoryDeclaration<BracketComponent<any, any>, never>;
|
|
3183
3186
|
static ɵcmp: i0.ɵɵComponentDeclaration<BracketComponent<any, any>, "et-bracket", never, {
|
|
@@ -37673,5 +37676,5 @@ export declare const provideUnsavedChangesLabels: (labels: import("@ethlete/core
|
|
|
37673
37676
|
export declare const injectUnsavedChangesLabels: () => import("@angular/core").Signal<UnsavedChangesLabels>;
|
|
37674
37677
|
export declare const UNSAVED_CHANGES_LABELS: import("@angular/core").InjectionToken<import("@ethlete/core").LabelsSource<UnsavedChangesLabels>>;
|
|
37675
37678
|
/** The version of `@ethlete/components` this build was cut from. */
|
|
37676
|
-
export declare const COMPONENTS_VERSION = "1.0.0-next.
|
|
37679
|
+
export declare const COMPONENTS_VERSION = "1.0.0-next.120";
|
|
37677
37680
|
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 };
|