@ethlete/components 1.0.0-next.92 → 1.0.0-next.93

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.92",
3
+ "version": "1.0.0-next.93",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/ethlete-io/ethdk",
@@ -107,6 +107,18 @@
107
107
  content: attr(data-mark);
108
108
  }
109
109
 
110
+ .et-match-participant:has(> [etMatchParticipantEdit]:not([etMatchParticipantEdit='beside']))
111
+ .et-match-participant-names,
112
+ .et-match-participant:has(> [etMatchParticipantEdit]:not([etMatchParticipantEdit='beside']))
113
+ .et-match-participant-name-bone {
114
+ display: none;
115
+ }
116
+
117
+ .et-match-participant > [etMatchParticipantEdit] {
118
+ flex: 1;
119
+ min-inline-size: 0;
120
+ }
121
+
110
122
  /* One column for the two lines, so the emblem stays centred against both of them. */
111
123
  .et-match-participant-names {
112
124
  display: flex;
@@ -0,0 +1,53 @@
1
+ @layer components.sdk {
2
+ @property --et-match-scoreline-score-font-size {
3
+ syntax: '<length>';
4
+ inherits: true;
5
+ initial-value: 16px;
6
+ }
7
+
8
+ @property --et-match-scoreline-score-font-weight {
9
+ syntax: '<number>';
10
+ inherits: true;
11
+ initial-value: 700;
12
+ }
13
+
14
+ @property --et-match-scoreline-time-font-size {
15
+ syntax: '<length>';
16
+ inherits: true;
17
+ initial-value: 10px;
18
+ }
19
+
20
+ @property --et-match-scoreline-gap {
21
+ syntax: '<length>';
22
+ inherits: true;
23
+ initial-value: 2px;
24
+ }
25
+
26
+ .et-match-scoreline {
27
+ display: flex;
28
+ flex-direction: column;
29
+ align-items: center;
30
+ gap: var(--et-match-scoreline-gap);
31
+ color: var(--et-surface-color-solid, currentColor);
32
+ }
33
+
34
+ .et-match-scoreline-scores {
35
+ display: flex;
36
+ align-items: center;
37
+ gap: 4px;
38
+ font-size: var(--et-match-scoreline-score-font-size);
39
+ font-weight: var(--et-match-scoreline-score-font-weight);
40
+ }
41
+
42
+ .et-match-scoreline-separator {
43
+ color: var(--et-surface-color-muted-solid, currentColor);
44
+ }
45
+
46
+ .et-match-scoreline-time {
47
+ font-size: var(--et-match-scoreline-time-font-size);
48
+ font-weight: 700;
49
+ letter-spacing: 0.03em;
50
+ text-transform: uppercase;
51
+ color: var(--et-surface-color-muted-solid, currentColor);
52
+ }
53
+ }
@@ -0,0 +1,5 @@
1
+ @layer components.sdk {
2
+ .et-match-time {
3
+ font-variant-numeric: tabular-nums;
4
+ }
5
+ }
@@ -1671,6 +1671,10 @@ export declare const matchParticipantDisplayName: ({ participant, labels, compac
1671
1671
  * participant (so the link doesn't read "FC Berlin emblem FC Berlin"), takes the shared focus ring, and gets
1672
1672
  * an interactive hover.
1673
1673
  *
1674
+ * **An edit slot** takes a control - a select, a button - marked `etMatchParticipantEdit`. By default it
1675
+ * replaces the name block (the emblem stays); `etMatchParticipantEdit="beside"` keeps the name and
1676
+ * puts the control after it. It works for a `null` participant too, which is how an editor picks one.
1677
+ *
1674
1678
  * @example
1675
1679
  * <et-match-participant [participant]="match().home" />
1676
1680
  *
@@ -1679,6 +1683,12 @@ export declare const matchParticipantDisplayName: ({ participant, labels, compac
1679
1683
  * <et-match-participant [participant]="match().away" compact showSeed />
1680
1684
  *
1681
1685
  * @example
1686
+ * <!-- an editor: pick the participant of a TBD slot -->
1687
+ * <et-match-participant [participant]="match().home">
1688
+ * <button etMatchParticipantEdit type="button">Select home team</button>
1689
+ * </et-match-participant>
1690
+ *
1691
+ * @example
1682
1692
  * <!-- a player card that navigates -->
1683
1693
  * <a [participant]="player()" [routerLink]="['/players', player().id]" et-match-participant showSeed></a>
1684
1694
  */
@@ -1759,7 +1769,7 @@ export declare class MatchParticipantComponent {
1759
1769
  "required": false;
1760
1770
  "isSignal": true;
1761
1771
  };
1762
- }, {}, never, never, true, [{
1772
+ }, {}, never, ["[etMatchParticipantEdit]"], true, [{
1763
1773
  directive: typeof FocusRingDirective;
1764
1774
  inputs: {};
1765
1775
  outputs: {};
@@ -1822,6 +1832,70 @@ export declare class MatchScoreComponent {
1822
1832
  };
1823
1833
  }, {}, never, never, true, never>;
1824
1834
  }
1835
+ /**
1836
+ * The centre of a match row: `home : away` with the start time under it. Use it between two
1837
+ * `et-match-participant`s where a card's own layout is not wanted, e.g. an editor.
1838
+ *
1839
+ * A missing score draws `-`. The row has no accessible name of its own: put an `aria-label` on it when
1840
+ * it is the only place the result appears.
1841
+ *
1842
+ * @example
1843
+ * <et-match-scoreline [homeScore]="match.homeScore" [awayScore]="match.awayScore" time="18:30" />
1844
+ */
1845
+ export declare class MatchScorelineComponent {
1846
+ /** The home value. `null` draws `-`. */
1847
+ homeScore: import("@angular/core").InputSignal<string | number | null>;
1848
+ /** The away value. `null` draws `-`. */
1849
+ awayScore: import("@angular/core").InputSignal<string | number | null>;
1850
+ /** The text between the two values. @default ':' */
1851
+ separator: import("@angular/core").InputSignal<string>;
1852
+ /** The already formatted start time. `null` draws none. */
1853
+ time: import("@angular/core").InputSignal<string | null>;
1854
+ /** Roll a value when it changes - see `et-match-score`. @default false */
1855
+ animate: import("@angular/core").InputSignal<boolean>;
1856
+ /** What the values belong to, e.g. a match id. */
1857
+ subject: import("@angular/core").InputSignal<unknown>;
1858
+ protected homeText: import("@angular/core").Signal<string>;
1859
+ protected awayText: import("@angular/core").Signal<string>;
1860
+ static ɵfac: i0.ɵɵFactoryDeclaration<MatchScorelineComponent, never>;
1861
+ static ɵcmp: i0.ɵɵComponentDeclaration<MatchScorelineComponent, "et-match-scoreline", never, {
1862
+ "homeScore": {
1863
+ "alias": "homeScore";
1864
+ "required": false;
1865
+ "isSignal": true;
1866
+ };
1867
+ "awayScore": {
1868
+ "alias": "awayScore";
1869
+ "required": false;
1870
+ "isSignal": true;
1871
+ };
1872
+ "separator": {
1873
+ "alias": "separator";
1874
+ "required": false;
1875
+ "isSignal": true;
1876
+ };
1877
+ "time": {
1878
+ "alias": "time";
1879
+ "required": false;
1880
+ "isSignal": true;
1881
+ };
1882
+ "animate": {
1883
+ "alias": "animate";
1884
+ "required": false;
1885
+ "isSignal": true;
1886
+ };
1887
+ "subject": {
1888
+ "alias": "subject";
1889
+ "required": false;
1890
+ "isSignal": true;
1891
+ };
1892
+ }, {}, never, never, true, never>;
1893
+ }
1894
+ /** A kick-off or clock time, drawn in tabular figures so a column of them lines up. Content is the text. */
1895
+ export declare class MatchTimeComponent {
1896
+ static ɵfac: i0.ɵɵFactoryDeclaration<MatchTimeComponent, never>;
1897
+ static ɵcmp: i0.ɵɵComponentDeclaration<MatchTimeComponent, "et-match-time", never, {}, {}, never, ["*"], true, never>;
1898
+ }
1825
1899
  /**
1826
1900
  * The participant display primitive (`<et-match-participant>`) - emblem, name and optional seed for one
1827
1901
  * side of a match. Standalone as well as inside a card: a roster, a standings cell, a filter chip.
@@ -1832,7 +1906,7 @@ export declare const MATCH_PARTICIPANT_IMPORTS: readonly [typeof MatchParticipan
1832
1906
  * The match card (`<et-match-card>` / `<a et-match-card>`), the participant primitive it draws, and the
1833
1907
  * headless directive plus parts to build a card of your own.
1834
1908
  */
1835
- export declare const MATCH_CARD_IMPORTS: readonly [typeof MatchCardComponent, typeof MatchParticipantComponent, typeof MatchScoreComponent, typeof MatchCardDirective, typeof MatchCardMetaDirective, typeof MatchCardScoreDirective, typeof MatchCardGameScoresDirective, typeof MatchCardBadgeDirective];
1909
+ export declare const MATCH_CARD_IMPORTS: readonly [typeof MatchCardComponent, typeof MatchParticipantComponent, typeof MatchScoreComponent, typeof MatchScorelineComponent, typeof MatchTimeComponent, typeof MatchCardDirective, typeof MatchCardMetaDirective, typeof MatchCardScoreDirective, typeof MatchCardGameScoresDirective, typeof MatchCardBadgeDirective];
1836
1910
  /** The round kinds of the Ethlete API. */
1837
1911
  export type EthleteRoundTypeInput = 'normal' | 'third_place' | 'final' | 'reverse_final' | 'winner_bracket' | 'loser_bracket';
1838
1912
  /** The stage kinds of the Ethlete API, carried on each match as `matchType`. */
@@ -37255,5 +37329,5 @@ export declare const provideUnsavedChangesLabels: (labels: import("@ethlete/core
37255
37329
  export declare const injectUnsavedChangesLabels: () => import("@angular/core").Signal<UnsavedChangesLabels>;
37256
37330
  export declare const UNSAVED_CHANGES_LABELS: import("@angular/core").InjectionToken<import("@ethlete/core").LabelsSource<UnsavedChangesLabels>>;
37257
37331
  /** The version of `@ethlete/components` this build was cut from. */
37258
- export declare const COMPONENTS_VERSION = "1.0.0-next.92";
37332
+ export declare const COMPONENTS_VERSION = "1.0.0-next.93";
37259
37333
  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, TOURNAMENT_MODE, type TournamentMode, bracketSlot, createBracket, createPlaceholderBracketSource, injectRichTextEditorTools, isBracketSlotPredictable, migrateBracketPicks, resolveBracketSlot, standingRankSides, swapStandingRank, validateBracketSource };