@ethlete/components 1.0.0-next.120 → 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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ethlete/components",
3
- "version": "1.0.0-next.120",
3
+ "version": "1.0.0-next.121",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/ethlete-io/ethdk",
@@ -148,4 +148,68 @@
148
148
  opacity: 0.25;
149
149
  }
150
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
+ }
151
215
  }
@@ -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.
@@ -3160,6 +3165,7 @@ export declare class BracketComponent<TRoundData = unknown, TMatchData = unknown
3160
3165
  bracketData: Signal<import("@ethlete/components").Bracket<TRoundData, TMatchData>>;
3161
3166
  private journeyParticipants;
3162
3167
  bracketGrid: Signal<import("@ethlete/components").ComputedBracketGrid<TRoundData, TMatchData>>;
3168
+ protected showBusyBar: Signal<boolean>;
3163
3169
  protected matchCardInputs: Signal<Map<string, Record<string, unknown>>>;
3164
3170
  /** The sections whose titles the grid draws - none unless `showSectionTitles` is on. */
3165
3171
  sectionTitles: Signal<import("@ethlete/components").BracketGridSection<TRoundData, TMatchData>[]>;
@@ -3189,6 +3195,11 @@ export declare class BracketComponent<TRoundData = unknown, TMatchData = unknown
3189
3195
  "required": true;
3190
3196
  "isSignal": true;
3191
3197
  };
3198
+ "loading": {
3199
+ "alias": "loading";
3200
+ "required": false;
3201
+ "isSignal": true;
3202
+ };
3192
3203
  "previousMatchIds": {
3193
3204
  "alias": "previousMatchIds";
3194
3205
  "required": false;
@@ -37676,5 +37687,5 @@ export declare const provideUnsavedChangesLabels: (labels: import("@ethlete/core
37676
37687
  export declare const injectUnsavedChangesLabels: () => import("@angular/core").Signal<UnsavedChangesLabels>;
37677
37688
  export declare const UNSAVED_CHANGES_LABELS: import("@angular/core").InjectionToken<import("@ethlete/core").LabelsSource<UnsavedChangesLabels>>;
37678
37689
  /** The version of `@ethlete/components` this build was cut from. */
37679
- export declare const COMPONENTS_VERSION = "1.0.0-next.120";
37690
+ export declare const COMPONENTS_VERSION = "1.0.0-next.121";
37680
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 };