@ethlete/components 1.0.0-next.82 → 1.0.0-next.84
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 +70 -0
- package/design/loader.ts +1 -0
- package/design/sdk/components/switch/switch.css +1 -1
- package/fesm2022/ethlete-components-testing.mjs +5 -1
- package/fesm2022/ethlete-components-testing.mjs.map +1 -1
- package/fesm2022/ethlete-components.mjs +2816 -473
- package/fesm2022/ethlete-components.mjs.map +1 -1
- package/generators/icons/generator.js +10 -3
- package/package.json +1 -1
- package/src/lib/avatar/avatar.component.css +12 -7
- package/src/lib/badge/badge.component.css +2 -3
- package/src/lib/banner/banner.component.css +7 -1
- package/src/lib/breadcrumb/breadcrumb.component.css +7 -4
- package/src/lib/button/button-properties-styles.component.css +6 -0
- package/src/lib/button/button.component.css +15 -1
- package/src/lib/carousel/carousel-autoplay-styles.component.css +8 -2
- package/src/lib/carousel/carousel.component.css +62 -4
- package/src/lib/collapse/collapse.component.css +43 -0
- package/src/lib/command-palette/command-palette.component.css +4 -4
- package/src/lib/empty-state/empty-state.component.css +3 -1
- package/src/lib/forms/cascader/cascader-panel.component.css +1 -1
- package/src/lib/forms/choice-field/choice-field.component.css +39 -0
- package/src/lib/forms/date-time/date-range-presets.component.css +1 -1
- package/src/lib/forms/dropzone/dropzone-crop.component.css +114 -0
- package/src/lib/forms/dropzone/dropzone-item.component.css +16 -0
- package/src/lib/forms/dropzone/dropzone-preview-styles.component.css +17 -1
- package/src/lib/forms/dropzone/dropzone-row-styles.component.css +85 -0
- package/src/lib/forms/form-field/form-field-text-shell-styles.component.css +31 -7
- package/src/lib/forms/form-field/form-field.component.css +45 -11
- package/src/lib/forms/form-field/hint.component.css +1 -3
- package/src/lib/forms/select/select-extras-styles.component.css +9 -3
- package/src/lib/forms/select/select-option-styles.component.css +26 -3
- package/src/lib/forms/select/select-panel.component.css +4 -4
- package/src/lib/forms/selection-list/segmented-button-group/segmented-button-group.component.css +5 -1
- package/src/lib/forms/selection-list/segmented-button-group/segmented-button.component.css +13 -1
- package/src/lib/loader/progress-bar/progress-bar.component.css +9 -0
- package/src/lib/loader/spinner/spinner-styles.component.css +1 -7
- package/src/lib/match/match-card.component.css +106 -12
- package/src/lib/match/match-participant.component.css +31 -0
- package/src/lib/menu/menu-item.component.css +4 -0
- package/src/lib/menu/menu-search-styles.component.css +1 -1
- package/src/lib/menu/menu-selection-item.component.css +4 -0
- package/src/lib/menu/menu.component.css +20 -10
- package/src/lib/overlay/floating-tip-styles.component.css +11 -5
- package/src/lib/overlay/overlay-container.component.css +2 -3
- package/src/lib/picture/picture.component.css +1 -0
- package/src/lib/progress-steps/progress-step.component.css +26 -6
- package/src/lib/skeleton/skeleton.component.css +33 -4
- package/src/lib/standings/standings.component.css +119 -0
- package/src/lib/stat-tile/stat-tile.component.css +23 -0
- package/src/lib/table/table-row-box-styles.component.css +15 -3
- package/src/lib/table/table-sticky-columns-styles.component.css +2 -2
- package/src/lib/table/table.component.css +10 -4
- package/src/lib/timeline/timeline-item.component.css +10 -0
- package/src/lib/toggletip/toggletip.component.css +2 -2
- package/src/lib/tooltip/tooltip.component.css +12 -6
- package/types/ethlete-components-testing.d.ts +2 -0
- package/types/ethlete-components.d.ts +928 -90
|
@@ -3,7 +3,7 @@ import { Binding, ComponentRef, DirectiveWithBindings, ElementRef, EnvironmentIn
|
|
|
3
3
|
import * as i1$1 from "@ethlete/core";
|
|
4
4
|
import { AngularRenderer, AnimatableDirective, AnimatedLifecycleDirective, AnimatedLifecycleState, Breakpoint, ColorTheme, ColorThemeInput, ConsentHandler, CreateUnsavedChangesTrackerConfig, DragHandleDirective, DragMoveEvent, JsonLD, LabelsSource, OverlayRuntimeAnimationDelegate, OverlayRuntimeCloseEvent, OverlayRuntimeCloseGuard, OverlayRuntimeCloseSource, OverlayRuntimeElements, OverlayRuntimePositionStrategy, OverlayRuntimeRef, OverlayRuntimeShiftOptions, ProvideColorDirective, RegisteredColorThemeName, ResizeEdge, ResizeMoveEvent, RuntimeError, ScrollToElementOptions, UnsavedChangesTrackerRef } from "@ethlete/core";
|
|
5
5
|
import { BRACKET_DATA_LAYOUT, BRACKET_ERROR_CODES, BRACKET_ROUND_MIRROR_TYPE, BRACKET_SWISS_GROUP_COLOR_TYPE, Bracket, Bracket as Bracket$1, BracketByeSlotSource, BracketComponents, BracketComponents as BracketComponents$1, BracketContinueComponent, BracketContinueComponent as BracketContinueComponent$1, BracketDataLayout, BracketDataSource, BracketDrawing, BracketDrawing as BracketDrawing$1, BracketEdge, BracketExternalSlotSource, BracketGradient, BracketGradientStop, BracketMap, BracketMatch, BracketMatch as BracketMatch$1, BracketMatchComponent, BracketMatchComponent as BracketMatchComponent$1, BracketMatchFactor, BracketMatchId, BracketMatchOutcomeSlotSource, BracketMatchParticipant, BracketMatchPosition, BracketMatchRelation, BracketMatchRelationNone, BracketMatchRelationNothingToOne, BracketMatchRelationOneToNothing, BracketMatchRelationOneToOne, BracketMatchRelationTwoToNothing, BracketMatchRelationTwoToOne, BracketMatchShortId, BracketMatchSlot, BracketMatchSource, BracketMatchStatus, BracketParticipant, BracketParticipantMatch, BracketPickMigration, BracketPickMigrationOptions, BracketPickSet, BracketRect, BracketRound, BracketRound as BracketRound$1, BracketRoundHeaderComponent, BracketRoundHeaderComponent as BracketRoundHeaderComponent$1, BracketRoundId, BracketRoundMapWithSwissData, BracketRoundMapWithSwissData as BracketRoundMapWithSwissData$1, BracketRoundMirrorType, BracketRoundPosition, BracketRoundRelation, BracketRoundRelationNone, BracketRoundRelationNothingToOne, BracketRoundRelationOneToNothing, BracketRoundRelationOneToOne, BracketRoundRelationTwoToNothing, BracketRoundRelationTwoToOne, BracketRoundShortId, BracketRoundSource, BracketRoundSwissData, BracketRoundSwissGroup, BracketRoundSwissGroup as BracketRoundSwissGroup$1, BracketRoundSwissGroupId, BracketRoundSwissGroupMap, BracketRoundType, BracketRoundType as BracketRoundType$1, BracketRuntimeError, BracketSeedSlotSource, BracketSlotResolutionPolicy, BracketSlotSource, BracketSlotSource as BracketSlotSource$1, BracketSlotSourceKind, BracketStandingRankSide, BracketStandingRankSlotSource, BracketSwissBucketSlotSource, BracketSwissColors, BracketSwissColors as BracketSwissColors$1, BracketSwissGroupColorType, BracketWarning, COMMON_BRACKET_ROUND_TYPE, CommonBracketRoundType, ComputedBracketGrid, ComputedBracketGrid as ComputedBracketGrid$1, CreateBracketGridConfig, CreateBracketGridConfig as CreateBracketGridConfig$1, CreateBracketOptions, DOUBLE_ELIMINATION_BRACKET_ROUND_TYPE, DoubleEliminationBracketRoundType, FinalizedBracketElement, GROUP_BRACKET_ROUND_TYPE, GroupBracketRoundType, MatchParticipantId, MatchParticipantShortId, MatchParticipantSide, MatchParticipantSide as MatchParticipantSide$1, ParticipantMatchResult, PlaceholderBracketShape, PlaceholderBracketShape as PlaceholderBracketShape$1, SINGLE_ELIMINATION_BRACKET_ROUND_TYPE, SWISS_BRACKET_ROUND_TYPE, SingleEliminationBracketRoundType, StandingPick, StandingPick as StandingPick$1, StandingPickOutcome, SwissBracketRoundType, TOURNAMENT_MODE, TournamentMode, TournamentMode as TournamentMode$1, bracketSlot, createBracket, createPlaceholderBracketSource, isBracketSlotPredictable, migrateBracketPicks, resolveBracketSlot, standingRankSides, swapStandingRank, validateBracketSource } from "@ethlete/bracket";
|
|
6
|
-
import { AnyLegacyQuery, AnyLegacyQueryCreator, AnyPagedQueryStack, AnyQueryCollection, AnyQueryCreator, AnyV2Query, AnyV2QueryCreator, PagedQueryStackDirection, QueryArgs, QueryArgsOf, QueryCreator, QueryDataOf, QueryErrorResponse, QueryFormFields, QueryFormModel, QueryFormSignals, ReadonlyQuery, RequestArgs, RequestError, ResponseType } from "@ethlete/query";
|
|
6
|
+
import { AnyLegacyQuery, AnyLegacyQueryCreator, AnyPagedQueryStack, AnyQueryCollection, AnyQueryCreator, AnyV2Query, AnyV2QueryCreator, PagedQueryStackDirection, QueryArgs, QueryArgsOf, QueryCreator, QueryDataOf, QueryErrorResponse, QueryFormFields, QueryFormModel, QueryFormSignals, ReadonlyQuery, RequestArgs, RequestError, ResponseType, ServerViolationValidationError } from "@ethlete/query";
|
|
7
7
|
import { Locale } from "date-fns";
|
|
8
8
|
import { OffsetOptions, Padding, Placement } from "@floating-ui/dom";
|
|
9
9
|
import { FieldTree, FormCheckboxControl, FormValueControl, LogicFn, PathKind, SchemaPath, SchemaPathRules, ValidationError, validate } from "@angular/forms/signals";
|
|
@@ -674,6 +674,29 @@ export declare class MatchCardGameScoresDirective {
|
|
|
674
674
|
static ɵfac: i0.ɵɵFactoryDeclaration<MatchCardGameScoresDirective, never>;
|
|
675
675
|
static ɵdir: i0.ɵɵDirectiveDeclaration<MatchCardGameScoresDirective, "[etMatchCardGameScores]", ["etMatchCardGameScores"], {}, {}, never, never, true, never>;
|
|
676
676
|
}
|
|
677
|
+
/**
|
|
678
|
+
* Marks a badge in the card's meta row - a highlight star, a stream or VOD marker. The meta row is hidden
|
|
679
|
+
* from assistive tech, so the badge's label (the directive's value) joins the card's accessible name instead.
|
|
680
|
+
*
|
|
681
|
+
* @example
|
|
682
|
+
* <et-match-card [match]="match()">
|
|
683
|
+
* <span etMatchCardBadge="Video on demand">VOD</span>
|
|
684
|
+
* </et-match-card>
|
|
685
|
+
*/
|
|
686
|
+
export declare class MatchCardBadgeDirective {
|
|
687
|
+
private card;
|
|
688
|
+
/** What the badge means, spoken as part of the card's accessible name. */
|
|
689
|
+
label: import("@angular/core").InputSignal<string>;
|
|
690
|
+
constructor();
|
|
691
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MatchCardBadgeDirective, never>;
|
|
692
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<MatchCardBadgeDirective, "[etMatchCardBadge]", ["etMatchCardBadge"], {
|
|
693
|
+
"label": {
|
|
694
|
+
"alias": "etMatchCardBadge";
|
|
695
|
+
"required": true;
|
|
696
|
+
"isSignal": true;
|
|
697
|
+
};
|
|
698
|
+
}, {}, never, never, true, never>;
|
|
699
|
+
}
|
|
677
700
|
/**
|
|
678
701
|
* One candidate set for a `<picture>`, i.e. one `<source>` element.
|
|
679
702
|
*
|
|
@@ -832,6 +855,11 @@ export declare class PictureComponent {
|
|
|
832
855
|
* host to have a definite size in both axes. Omit for the default flow layout, where the image sizes itself.
|
|
833
856
|
*/
|
|
834
857
|
fit: import("@angular/core").InputSignal<"fill" | "none" | "contain" | "cover" | "scale-down" | null>;
|
|
858
|
+
/**
|
|
859
|
+
* The part of the image to keep in view when `fit` crops it, as a CSS `object-position` value: `'top'`,
|
|
860
|
+
* `'left bottom'`, or a focal point such as `'30% 20%'`. Has an effect only together with `fit`. @default center
|
|
861
|
+
*/
|
|
862
|
+
position: import("@angular/core").InputSignal<string | null>;
|
|
835
863
|
/** The image finished loading, with the intrinsic pixel dimensions the browser decoded. */
|
|
836
864
|
imageLoad: import("@angular/core").OutputEmitterRef<{
|
|
837
865
|
naturalWidth: number;
|
|
@@ -930,6 +958,11 @@ export declare class PictureComponent {
|
|
|
930
958
|
"required": false;
|
|
931
959
|
"isSignal": true;
|
|
932
960
|
};
|
|
961
|
+
"position": {
|
|
962
|
+
"alias": "position";
|
|
963
|
+
"required": false;
|
|
964
|
+
"isSignal": true;
|
|
965
|
+
};
|
|
933
966
|
}, {
|
|
934
967
|
"imageLoad": "imageLoad";
|
|
935
968
|
"imageError": "imageError";
|
|
@@ -969,6 +1002,15 @@ export type NormalizedMedia = {
|
|
|
969
1002
|
/** The fallback the browser uses when no source matches - and the whole image for a plain URL. */
|
|
970
1003
|
defaultSrc?: PictureSource | string | null;
|
|
971
1004
|
};
|
|
1005
|
+
/** The country a participant represents, as a national team, a player's nationality, or a club's league. */
|
|
1006
|
+
export type NormalizedMatchCountry = {
|
|
1007
|
+
/** An identifier for the country, e.g. an ISO 3166 code (`'DE'`). */
|
|
1008
|
+
code: string;
|
|
1009
|
+
/** The country's display name, drawn next to its flag. */
|
|
1010
|
+
name: string;
|
|
1011
|
+
/** The flag. `null` draws the name alone. */
|
|
1012
|
+
flag: NormalizedMedia | null;
|
|
1013
|
+
};
|
|
972
1014
|
/** One side of a match: a team, a player, a club. `null` on a match stands for a TBD slot. */
|
|
973
1015
|
export type NormalizedMatchParticipant = {
|
|
974
1016
|
id: string;
|
|
@@ -986,12 +1028,17 @@ export type NormalizedMatchParticipant = {
|
|
|
986
1028
|
emblem: NormalizedMedia | null;
|
|
987
1029
|
/** Seeding position, when the competition has one. */
|
|
988
1030
|
seed: number | null;
|
|
1031
|
+
/**
|
|
1032
|
+
* The country this side represents, drawn as a flag and a name under the participant's name. Dropped in a
|
|
1033
|
+
* dense row, like `subtitle`, and not part of the card's accessible name.
|
|
1034
|
+
*/
|
|
1035
|
+
country?: NormalizedMatchCountry | null;
|
|
989
1036
|
};
|
|
990
1037
|
/**
|
|
991
|
-
* How far along a match is
|
|
992
|
-
*
|
|
1038
|
+
* How far along a match is: the states presentation turns on. An API's richer lifecycle
|
|
1039
|
+
* (`preparing`/`published`/`hidden`/…) is the adapter's to collapse. A `cancelled` match draws no result.
|
|
993
1040
|
*/
|
|
994
|
-
export type NormalizedMatchStatus = 'scheduled' | 'live' | 'finished';
|
|
1041
|
+
export type NormalizedMatchStatus = 'scheduled' | 'live' | 'finished' | 'cancelled';
|
|
995
1042
|
/** One game of a series (a map, a leg), as its two scores. */
|
|
996
1043
|
export type NormalizedGameScore = {
|
|
997
1044
|
home: number;
|
|
@@ -1089,6 +1136,8 @@ export type MatchCardNameContext = {
|
|
|
1089
1136
|
status: NormalizedMatchStatus;
|
|
1090
1137
|
/** The match's `label` (`'Grand Final'`), or its `number` named by `matchNumber`, or `null`. */
|
|
1091
1138
|
label: string | null;
|
|
1139
|
+
/** The labels of the card's `etMatchCardBadge` badges, in template order. */
|
|
1140
|
+
badges: readonly string[];
|
|
1092
1141
|
/** Every match label in effect, so this one can reuse the localized `live`, `finished` and `versus`. */
|
|
1093
1142
|
labels: MatchLabels;
|
|
1094
1143
|
};
|
|
@@ -1106,6 +1155,10 @@ export type MatchLabels = {
|
|
|
1106
1155
|
finished: string;
|
|
1107
1156
|
/** Announced for a match that hasn't started. */
|
|
1108
1157
|
scheduled: string;
|
|
1158
|
+
/** The tag a cancelled match draws, also announced in its accessible name. */
|
|
1159
|
+
cancelled: string;
|
|
1160
|
+
/** The card's accessible name while it waits for its match (`loading`). */
|
|
1161
|
+
loading: string;
|
|
1109
1162
|
/** Separates the two scores, e.g. `' : '`. Also used to build the accessible name. */
|
|
1110
1163
|
scoreSeparator: string;
|
|
1111
1164
|
/**
|
|
@@ -1209,8 +1262,16 @@ export declare class MatchCardDirective {
|
|
|
1209
1262
|
private elementRef;
|
|
1210
1263
|
private injectedLabels;
|
|
1211
1264
|
private dateLocale;
|
|
1212
|
-
/**
|
|
1213
|
-
|
|
1265
|
+
/**
|
|
1266
|
+
* The match to draw, already normalized - see {@link NormalizedMatch} and the `integrations/` adapters.
|
|
1267
|
+
* `null` while it has not arrived; pair that with `loading`.
|
|
1268
|
+
*/
|
|
1269
|
+
matchInput: import("@angular/core").InputSignal<NormalizedMatch | null>;
|
|
1270
|
+
/**
|
|
1271
|
+
* Draw a placeholder card while the match loads: `aria-busy`, the `loading` label as the accessible name,
|
|
1272
|
+
* and no participant, result or kick-off content. @default false
|
|
1273
|
+
*/
|
|
1274
|
+
loading: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
1214
1275
|
/**
|
|
1215
1276
|
* Which layout to render. `auto` (the default) lets the card's own inline size decide via a container
|
|
1216
1277
|
* query - dense row, then featured card, then wide row as it gets wider; the other three fix it, for
|
|
@@ -1258,6 +1319,11 @@ export declare class MatchCardDirective {
|
|
|
1258
1319
|
* deliberately doesn't ship (a sound, confetti, a toast). Both sides can fire from one update.
|
|
1259
1320
|
*/
|
|
1260
1321
|
scoreChange: import("@angular/core").OutputEmitterRef<MatchScoreChange>;
|
|
1322
|
+
/** The match in effect: the `match` input, or an empty scheduled match while there is none. */
|
|
1323
|
+
match: import("@angular/core").Signal<NormalizedMatch>;
|
|
1324
|
+
private badgeLabelsByElement;
|
|
1325
|
+
/** The labels of the `etMatchCardBadge` badges inside the card, in document order. */
|
|
1326
|
+
badgeLabels: import("@angular/core").Signal<string[]>;
|
|
1261
1327
|
/** The strings in effect here: the injected label set with this instance's `labels` applied. */
|
|
1262
1328
|
resolvedLabels: import("@angular/core").Signal<MatchLabels>;
|
|
1263
1329
|
private readonly IS_NATIVELY_INTERACTIVE;
|
|
@@ -1268,6 +1334,7 @@ export declare class MatchCardDirective {
|
|
|
1268
1334
|
isLive: import("@angular/core").Signal<boolean>;
|
|
1269
1335
|
isFinished: import("@angular/core").Signal<boolean>;
|
|
1270
1336
|
isScheduled: import("@angular/core").Signal<boolean>;
|
|
1337
|
+
isCancelled: import("@angular/core").Signal<boolean>;
|
|
1271
1338
|
/**
|
|
1272
1339
|
* Whether participants render as short codes. Tied to an explicit `compact`, not to the rendered
|
|
1273
1340
|
* width - see the `size` input.
|
|
@@ -1341,9 +1408,14 @@ export declare class MatchCardDirective {
|
|
|
1341
1408
|
private outcomeFor;
|
|
1342
1409
|
static ɵfac: i0.ɵɵFactoryDeclaration<MatchCardDirective, never>;
|
|
1343
1410
|
static ɵdir: i0.ɵɵDirectiveDeclaration<MatchCardDirective, "[etMatchCard]", ["etMatchCard"], {
|
|
1344
|
-
"
|
|
1411
|
+
"matchInput": {
|
|
1345
1412
|
"alias": "match";
|
|
1346
|
-
"required":
|
|
1413
|
+
"required": false;
|
|
1414
|
+
"isSignal": true;
|
|
1415
|
+
};
|
|
1416
|
+
"loading": {
|
|
1417
|
+
"alias": "loading";
|
|
1418
|
+
"required": false;
|
|
1347
1419
|
"isSignal": true;
|
|
1348
1420
|
};
|
|
1349
1421
|
"size": {
|
|
@@ -1517,7 +1589,7 @@ export declare class MatchCardComponent {
|
|
|
1517
1589
|
"required": false;
|
|
1518
1590
|
"isSignal": true;
|
|
1519
1591
|
};
|
|
1520
|
-
}, {}, never,
|
|
1592
|
+
}, {}, never, ["[etMatchCardBadge]"], true, [{
|
|
1521
1593
|
directive: typeof MatchCardDirective;
|
|
1522
1594
|
inputs: {
|
|
1523
1595
|
"match": "match";
|
|
@@ -1528,6 +1600,7 @@ export declare class MatchCardComponent {
|
|
|
1528
1600
|
"interactive": "interactive";
|
|
1529
1601
|
"labels": "labels";
|
|
1530
1602
|
"animateScoreChanges": "animateScoreChanges";
|
|
1603
|
+
"loading": "loading";
|
|
1531
1604
|
};
|
|
1532
1605
|
outputs: {
|
|
1533
1606
|
"scoreChange": "scoreChange";
|
|
@@ -1619,6 +1692,7 @@ export declare class MatchParticipantComponent {
|
|
|
1619
1692
|
* The quieter second line, where there is one. Dropped in compact: the point of compact is that the
|
|
1620
1693
|
* row fits a bracket column, and a second line is the first thing that stops fitting.
|
|
1621
1694
|
*/
|
|
1695
|
+
protected country: import("@angular/core").Signal<import("@ethlete/components").NormalizedMatchCountry | null>;
|
|
1622
1696
|
protected subtitle: import("@angular/core").Signal<string | null>;
|
|
1623
1697
|
/**
|
|
1624
1698
|
* What this side is called, in one string - also what the card composes its accessible name from. The
|
|
@@ -1736,7 +1810,7 @@ export declare const MATCH_PARTICIPANT_IMPORTS: readonly [typeof MatchParticipan
|
|
|
1736
1810
|
* The match card (`<et-match-card>` / `<a et-match-card>`), the participant primitive it draws, and the
|
|
1737
1811
|
* headless directive plus parts to build a card of your own.
|
|
1738
1812
|
*/
|
|
1739
|
-
export declare const MATCH_CARD_IMPORTS: readonly [typeof MatchCardComponent, typeof MatchParticipantComponent, typeof MatchScoreComponent, typeof MatchCardDirective, typeof MatchCardMetaDirective, typeof MatchCardScoreDirective, typeof MatchCardGameScoresDirective];
|
|
1813
|
+
export declare const MATCH_CARD_IMPORTS: readonly [typeof MatchCardComponent, typeof MatchParticipantComponent, typeof MatchScoreComponent, typeof MatchCardDirective, typeof MatchCardMetaDirective, typeof MatchCardScoreDirective, typeof MatchCardGameScoresDirective, typeof MatchCardBadgeDirective];
|
|
1740
1814
|
/** The round kinds of the Ethlete API. */
|
|
1741
1815
|
export type EthleteRoundTypeInput = 'normal' | 'third_place' | 'final' | 'reverse_final' | 'winner_bracket' | 'loser_bracket';
|
|
1742
1816
|
/** The stage kinds of the Ethlete API, carried on each match as `matchType`. */
|
|
@@ -6041,9 +6115,22 @@ export declare class CarouselComponent {
|
|
|
6041
6115
|
showControls: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
6042
6116
|
/** Render the slide dots, which double as the autoplay progress indicator. @default true */
|
|
6043
6117
|
showDots: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
6118
|
+
/**
|
|
6119
|
+
* Where the control bar sits: `'below'` the track (the default), or `'overlay'` over its bottom edge,
|
|
6120
|
+
* inset by `--et-carousel-controls-inset`. @default 'below'
|
|
6121
|
+
*/
|
|
6122
|
+
controlsPosition: import("@angular/core").InputSignal<"overlay" | "below">;
|
|
6123
|
+
/**
|
|
6124
|
+
* Where the autoplay pause toggle sits: in the bar between the dots and the next arrow (`'controls'`, the
|
|
6125
|
+
* default), at the bar's `'start'` or `'end'`, or alone in the track's `'top-start'` or `'top-end'` corner.
|
|
6126
|
+
* The toggle always renders while autoplay is on. @default 'controls'
|
|
6127
|
+
*/
|
|
6128
|
+
pauseTogglePosition: import("@angular/core").InputSignal<"start" | "end" | "top-start" | "top-end" | "controls">;
|
|
6044
6129
|
track: import("@angular/core").Signal<ScrollableDirective>;
|
|
6045
6130
|
protected isAutoplayEnabled: import("@angular/core").Signal<boolean>;
|
|
6046
6131
|
protected isAutoplayRunning: import("@angular/core").Signal<boolean>;
|
|
6132
|
+
protected isPlayToggleInCorner: import("@angular/core").Signal<boolean>;
|
|
6133
|
+
protected isPlayToggleInBar: import("@angular/core").Signal<boolean>;
|
|
6047
6134
|
protected autoplayDuration: import("@angular/core").Signal<number>;
|
|
6048
6135
|
protected slideTemplate: import("@angular/core").Signal<import("@angular/core").TemplateRef<any> | null>;
|
|
6049
6136
|
protected slideViews: import("@angular/core").Signal<CarouselSlideView[]>;
|
|
@@ -6075,6 +6162,16 @@ export declare class CarouselComponent {
|
|
|
6075
6162
|
"required": false;
|
|
6076
6163
|
"isSignal": true;
|
|
6077
6164
|
};
|
|
6165
|
+
"controlsPosition": {
|
|
6166
|
+
"alias": "controlsPosition";
|
|
6167
|
+
"required": false;
|
|
6168
|
+
"isSignal": true;
|
|
6169
|
+
};
|
|
6170
|
+
"pauseTogglePosition": {
|
|
6171
|
+
"alias": "pauseTogglePosition";
|
|
6172
|
+
"required": false;
|
|
6173
|
+
"isSignal": true;
|
|
6174
|
+
};
|
|
6078
6175
|
}, {}, never, never, true, [{
|
|
6079
6176
|
directive: typeof CarouselDirective;
|
|
6080
6177
|
inputs: {
|
|
@@ -7676,6 +7773,49 @@ export declare class ChipComponent {
|
|
|
7676
7773
|
}]>;
|
|
7677
7774
|
}
|
|
7678
7775
|
export declare const CHIP_IMPORTS: readonly [typeof ChipComponent, typeof ChipDirective, typeof ChipRemoveDirective];
|
|
7776
|
+
/**
|
|
7777
|
+
* Marks an element as a region that is either open or collapsed. Collapsed content is `inert`;
|
|
7778
|
+
* the host carries `data-open` while open and `data-can-animate` from one frame after the first
|
|
7779
|
+
* render, so a region that starts open does not animate in. It adds no styles - the default
|
|
7780
|
+
* `et-collapse` animates the height off these attributes.
|
|
7781
|
+
*/
|
|
7782
|
+
export declare class CollapseDirective {
|
|
7783
|
+
open: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
7784
|
+
/** Set one frame after the first render. Gate transitions on `[data-can-animate]`. */
|
|
7785
|
+
canAnimate: {
|
|
7786
|
+
state: import("@angular/core").Signal<boolean>;
|
|
7787
|
+
};
|
|
7788
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CollapseDirective, never>;
|
|
7789
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<CollapseDirective, "[etCollapse]", ["etCollapse"], {
|
|
7790
|
+
"open": {
|
|
7791
|
+
"alias": "open";
|
|
7792
|
+
"required": false;
|
|
7793
|
+
"isSignal": true;
|
|
7794
|
+
};
|
|
7795
|
+
}, {}, never, never, true, never>;
|
|
7796
|
+
}
|
|
7797
|
+
/**
|
|
7798
|
+
* Animates its content between a height of 0 and its natural height. Toggle it with `open`.
|
|
7799
|
+
*
|
|
7800
|
+
* The clip carries no padding or border of its own - put spacing on the projected content, or it
|
|
7801
|
+
* sets a floor under the collapsed height.
|
|
7802
|
+
*
|
|
7803
|
+
* @example
|
|
7804
|
+
* <et-collapse [open]="isOpen()">
|
|
7805
|
+
* <p>Details</p>
|
|
7806
|
+
* </et-collapse>
|
|
7807
|
+
*/
|
|
7808
|
+
export declare class CollapseComponent {
|
|
7809
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CollapseComponent, never>;
|
|
7810
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CollapseComponent, "et-collapse", never, {}, {}, never, ["*"], true, [{
|
|
7811
|
+
directive: typeof CollapseDirective;
|
|
7812
|
+
inputs: {
|
|
7813
|
+
"open": "open";
|
|
7814
|
+
};
|
|
7815
|
+
outputs: {};
|
|
7816
|
+
}]>;
|
|
7817
|
+
}
|
|
7818
|
+
export declare const COLLAPSE_IMPORTS: readonly [typeof CollapseComponent, typeof CollapseDirective];
|
|
7679
7819
|
/**
|
|
7680
7820
|
* The palette's search field. Writes what the reader types into the palette's `query`, and hands the
|
|
7681
7821
|
* keys that move between rows to the palette while keeping normal text editing for the rest.
|
|
@@ -9275,6 +9415,8 @@ export type OverlayRef<TComponent extends object = object, TResult = unknown> =
|
|
|
9275
9415
|
* outside-pointer close was aimed at.
|
|
9276
9416
|
*/
|
|
9277
9417
|
afterClosedEvent: () => Observable<OverlayRuntimeCloseEvent<TResult | undefined>>;
|
|
9418
|
+
/** Emits for every click on the backdrop, whether or not it closes the overlay. Completes after close. */
|
|
9419
|
+
backdropClick: () => Observable<MouseEvent>;
|
|
9278
9420
|
};
|
|
9279
9421
|
export declare const OVERLAY_REF: InjectionToken<OverlayRef<object, unknown>>;
|
|
9280
9422
|
export type OverlayStrategyContext = {
|
|
@@ -9558,6 +9700,8 @@ export declare class OverlayDirective {
|
|
|
9558
9700
|
autoCloseIfReferenceHidden: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
9559
9701
|
/** Matches the overlay's width to its anchor. Applies at the next open. */
|
|
9560
9702
|
mirrorWidth: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
9703
|
+
/** Emits for every click on the backdrop, whether or not it closes the overlay. */
|
|
9704
|
+
backdropClick: import("@angular/core").OutputEmitterRef<MouseEvent>;
|
|
9561
9705
|
/** The `id` of the mounted overlay element, referenced by the trigger's `aria-controls`. */
|
|
9562
9706
|
readonly panelId: string;
|
|
9563
9707
|
isMounted: import("@angular/core").Signal<boolean>;
|
|
@@ -9692,6 +9836,7 @@ export declare class OverlayDirective {
|
|
|
9692
9836
|
};
|
|
9693
9837
|
}, {
|
|
9694
9838
|
"open": "openChange";
|
|
9839
|
+
"backdropClick": "backdropClick";
|
|
9695
9840
|
}, never, never, true, never>;
|
|
9696
9841
|
}
|
|
9697
9842
|
export type OverlaySurfaceContext = {
|
|
@@ -10854,6 +10999,11 @@ export declare const FORM_FIELD_LABEL_MODES: {
|
|
|
10854
10999
|
readonly FLOATING_OUTSIDE: "floating-outside";
|
|
10855
11000
|
};
|
|
10856
11001
|
export type FormFieldLabelMode = (typeof FORM_FIELD_LABEL_MODES)[keyof typeof FORM_FIELD_LABEL_MODES];
|
|
11002
|
+
export declare const FORM_FIELD_LABEL_POSITIONS: {
|
|
11003
|
+
readonly TOP: "top";
|
|
11004
|
+
readonly START: "start";
|
|
11005
|
+
};
|
|
11006
|
+
export type FormFieldLabelPosition = (typeof FORM_FIELD_LABEL_POSITIONS)[keyof typeof FORM_FIELD_LABEL_POSITIONS];
|
|
10857
11007
|
export declare const FORM_FIELD_SIZES: {
|
|
10858
11008
|
readonly SM: "sm";
|
|
10859
11009
|
readonly MD: "md";
|
|
@@ -10866,6 +11016,18 @@ export declare const CHOICE_FIELD_VARIANTS: {
|
|
|
10866
11016
|
readonly CARD: "card";
|
|
10867
11017
|
};
|
|
10868
11018
|
export type ChoiceFieldVariant = (typeof CHOICE_FIELD_VARIANTS)[keyof typeof CHOICE_FIELD_VARIANTS];
|
|
11019
|
+
/** Which side of the control the label sits on. See {@link ChoiceFieldComponent.labelPosition}. */
|
|
11020
|
+
export declare const CHOICE_FIELD_LABEL_POSITIONS: {
|
|
11021
|
+
readonly START: "start";
|
|
11022
|
+
readonly END: "end";
|
|
11023
|
+
};
|
|
11024
|
+
export type ChoiceFieldLabelPosition = (typeof CHOICE_FIELD_LABEL_POSITIONS)[keyof typeof CHOICE_FIELD_LABEL_POSITIONS];
|
|
11025
|
+
/** How a plain choice field lays out its parts. See {@link ChoiceFieldComponent.layout}. */
|
|
11026
|
+
export declare const CHOICE_FIELD_LAYOUTS: {
|
|
11027
|
+
readonly INLINE: "inline";
|
|
11028
|
+
readonly SUBGRID: "subgrid";
|
|
11029
|
+
};
|
|
11030
|
+
export type ChoiceFieldLayout = (typeof CHOICE_FIELD_LAYOUTS)[keyof typeof CHOICE_FIELD_LAYOUTS];
|
|
10869
11031
|
export declare class ChoiceFieldComponent {
|
|
10870
11032
|
support: {
|
|
10871
11033
|
errorColorTheme: import("@angular/core").Signal<import("@ethlete/core").ColorTheme>;
|
|
@@ -10918,6 +11080,17 @@ export declare class ChoiceFieldComponent {
|
|
|
10918
11080
|
* reads it. @default 'end'
|
|
10919
11081
|
*/
|
|
10920
11082
|
controlPosition: import("@angular/core").InputSignal<SelectionCardControlPosition>;
|
|
11083
|
+
/**
|
|
11084
|
+
* Which side of the control the label sits on in `variant="plain"`. `'start'` puts the text before the control;
|
|
11085
|
+
* the DOM order and the accessible name stay the same. A card uses `controlPosition` instead. @default 'end'
|
|
11086
|
+
*/
|
|
11087
|
+
labelPosition: import("@angular/core").InputSignal<ChoiceFieldLabelPosition>;
|
|
11088
|
+
/**
|
|
11089
|
+
* `'subgrid'` makes the field span two columns of the parent grid and places the control and the label in those
|
|
11090
|
+
* columns, so rows of fields line up. The parent must be a grid with at least two columns. Only
|
|
11091
|
+
* `variant="plain"` reads it. @default 'inline'
|
|
11092
|
+
*/
|
|
11093
|
+
layout: import("@angular/core").InputSignal<ChoiceFieldLayout>;
|
|
10921
11094
|
private description;
|
|
10922
11095
|
canAnimate: {
|
|
10923
11096
|
state: import("@angular/core").Signal<boolean>;
|
|
@@ -10940,6 +11113,16 @@ export declare class ChoiceFieldComponent {
|
|
|
10940
11113
|
"required": false;
|
|
10941
11114
|
"isSignal": true;
|
|
10942
11115
|
};
|
|
11116
|
+
"labelPosition": {
|
|
11117
|
+
"alias": "labelPosition";
|
|
11118
|
+
"required": false;
|
|
11119
|
+
"isSignal": true;
|
|
11120
|
+
};
|
|
11121
|
+
"layout": {
|
|
11122
|
+
"alias": "layout";
|
|
11123
|
+
"required": false;
|
|
11124
|
+
"isSignal": true;
|
|
11125
|
+
};
|
|
10943
11126
|
}, {}, ["description"], ["*", "[etSelectionCardLeading]", "et-label", "et-description", "[etSelectionCardTrailing]", "et-hint"], true, [{
|
|
10944
11127
|
directive: typeof FormFieldDirective;
|
|
10945
11128
|
inputs: {};
|
|
@@ -11618,6 +11801,7 @@ declare abstract class DatePickerInputDirective extends PickerInputBaseDirective
|
|
|
11618
11801
|
/** The wire value in `valueFormat`, or `null` while empty/unparseable. */
|
|
11619
11802
|
value: import("@angular/core").ModelSignal<string | null>;
|
|
11620
11803
|
placeholder: import("@angular/core").InputSignal<string>;
|
|
11804
|
+
autocomplete: import("@angular/core").InputSignal<string>;
|
|
11621
11805
|
/** Uncommitted field text - kept visible when it fails to parse. */
|
|
11622
11806
|
inputText: import("@angular/core").WritableSignal<string>;
|
|
11623
11807
|
/** `true` while the field holds text that does not parse. */
|
|
@@ -11643,6 +11827,11 @@ declare abstract class DatePickerInputDirective extends PickerInputBaseDirective
|
|
|
11643
11827
|
"required": false;
|
|
11644
11828
|
"isSignal": true;
|
|
11645
11829
|
};
|
|
11830
|
+
"autocomplete": {
|
|
11831
|
+
"alias": "autocomplete";
|
|
11832
|
+
"required": false;
|
|
11833
|
+
"isSignal": true;
|
|
11834
|
+
};
|
|
11646
11835
|
}, {
|
|
11647
11836
|
"value": "valueChange";
|
|
11648
11837
|
}, never, never, true, never>;
|
|
@@ -11880,6 +12069,7 @@ export declare class DateInputComponent {
|
|
|
11880
12069
|
"required": "required";
|
|
11881
12070
|
"name": "name";
|
|
11882
12071
|
"placeholder": "placeholder";
|
|
12072
|
+
"autocomplete": "autocomplete";
|
|
11883
12073
|
"parseErrorMessage": "parseErrorMessage";
|
|
11884
12074
|
"valueFormat": "valueFormat";
|
|
11885
12075
|
"displayFormat": "displayFormat";
|
|
@@ -11982,6 +12172,7 @@ declare abstract class DateRangePickerInputDirective extends PickerInputBaseDire
|
|
|
11982
12172
|
value: import("@angular/core").ModelSignal<DateRangeValue>;
|
|
11983
12173
|
startPlaceholder: import("@angular/core").InputSignal<string>;
|
|
11984
12174
|
endPlaceholder: import("@angular/core").InputSignal<string>;
|
|
12175
|
+
autocomplete: import("@angular/core").InputSignal<string>;
|
|
11985
12176
|
/**
|
|
11986
12177
|
* Accessible name of the start field, which is the named widget - the group around both fields
|
|
11987
12178
|
* takes the projected `<et-label>` (or the control's own `aria-label`) instead.
|
|
@@ -12051,6 +12242,11 @@ declare abstract class DateRangePickerInputDirective extends PickerInputBaseDire
|
|
|
12051
12242
|
"required": false;
|
|
12052
12243
|
"isSignal": true;
|
|
12053
12244
|
};
|
|
12245
|
+
"autocomplete": {
|
|
12246
|
+
"alias": "autocomplete";
|
|
12247
|
+
"required": false;
|
|
12248
|
+
"isSignal": true;
|
|
12249
|
+
};
|
|
12054
12250
|
"startAriaLabel": {
|
|
12055
12251
|
"alias": "startAriaLabel";
|
|
12056
12252
|
"required": false;
|
|
@@ -12513,6 +12709,7 @@ export declare class DateRangeInputComponent {
|
|
|
12513
12709
|
"name": "name";
|
|
12514
12710
|
"startPlaceholder": "startPlaceholder";
|
|
12515
12711
|
"endPlaceholder": "endPlaceholder";
|
|
12712
|
+
"autocomplete": "autocomplete";
|
|
12516
12713
|
"parseErrorMessage": "parseErrorMessage";
|
|
12517
12714
|
"valueFormat": "valueFormat";
|
|
12518
12715
|
"displayFormat": "displayFormat";
|
|
@@ -12880,6 +13077,7 @@ export declare class DateTimeInputComponent {
|
|
|
12880
13077
|
"required": "required";
|
|
12881
13078
|
"name": "name";
|
|
12882
13079
|
"placeholder": "placeholder";
|
|
13080
|
+
"autocomplete": "autocomplete";
|
|
12883
13081
|
"parseErrorMessage": "parseErrorMessage";
|
|
12884
13082
|
"valueFormat": "valueFormat";
|
|
12885
13083
|
"displayFormat": "displayFormat";
|
|
@@ -13237,6 +13435,7 @@ export declare class DateTimeRangeInputComponent {
|
|
|
13237
13435
|
"name": "name";
|
|
13238
13436
|
"startPlaceholder": "startPlaceholder";
|
|
13239
13437
|
"endPlaceholder": "endPlaceholder";
|
|
13438
|
+
"autocomplete": "autocomplete";
|
|
13240
13439
|
"parseErrorMessage": "parseErrorMessage";
|
|
13241
13440
|
"valueFormat": "valueFormat";
|
|
13242
13441
|
"displayFormat": "displayFormat";
|
|
@@ -13519,6 +13718,7 @@ export declare class DurationInputDirective extends FieldStateControlDirective i
|
|
|
13519
13718
|
required: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
13520
13719
|
name: import("@angular/core").InputSignal<string>;
|
|
13521
13720
|
placeholder: import("@angular/core").InputSignal<string>;
|
|
13721
|
+
autocomplete: import("@angular/core").InputSignal<string>;
|
|
13522
13722
|
/** Field placeholder shown while `mixed` is set. Presentation only - it never enters the form value. */
|
|
13523
13723
|
mixedLabel: import("@angular/core").InputSignal<string | null>;
|
|
13524
13724
|
/** Message the form field shows when typed text can't be parsed as a duration. */
|
|
@@ -13601,6 +13801,11 @@ export declare class DurationInputDirective extends FieldStateControlDirective i
|
|
|
13601
13801
|
"required": false;
|
|
13602
13802
|
"isSignal": true;
|
|
13603
13803
|
};
|
|
13804
|
+
"autocomplete": {
|
|
13805
|
+
"alias": "autocomplete";
|
|
13806
|
+
"required": false;
|
|
13807
|
+
"isSignal": true;
|
|
13808
|
+
};
|
|
13604
13809
|
"mixedLabel": {
|
|
13605
13810
|
"alias": "mixedLabel";
|
|
13606
13811
|
"required": false;
|
|
@@ -13685,6 +13890,7 @@ export declare class DurationInputComponent {
|
|
|
13685
13890
|
"required": "required";
|
|
13686
13891
|
"name": "name";
|
|
13687
13892
|
"placeholder": "placeholder";
|
|
13893
|
+
"autocomplete": "autocomplete";
|
|
13688
13894
|
"parseErrorMessage": "parseErrorMessage";
|
|
13689
13895
|
"durationFormat": "durationFormat";
|
|
13690
13896
|
"aria-label": "aria-label";
|
|
@@ -13834,6 +14040,7 @@ export declare class TimeInputComponent {
|
|
|
13834
14040
|
"required": "required";
|
|
13835
14041
|
"name": "name";
|
|
13836
14042
|
"placeholder": "placeholder";
|
|
14043
|
+
"autocomplete": "autocomplete";
|
|
13837
14044
|
"parseErrorMessage": "parseErrorMessage";
|
|
13838
14045
|
"valueFormat": "valueFormat";
|
|
13839
14046
|
"displayFormat": "displayFormat";
|
|
@@ -14015,6 +14222,7 @@ export declare class TimeRangeInputComponent {
|
|
|
14015
14222
|
"name": "name";
|
|
14016
14223
|
"startPlaceholder": "startPlaceholder";
|
|
14017
14224
|
"endPlaceholder": "endPlaceholder";
|
|
14225
|
+
"autocomplete": "autocomplete";
|
|
14018
14226
|
"parseErrorMessage": "parseErrorMessage";
|
|
14019
14227
|
"valueFormat": "valueFormat";
|
|
14020
14228
|
"displayFormat": "displayFormat";
|
|
@@ -14080,6 +14288,8 @@ export type DropzoneLabels = {
|
|
|
14080
14288
|
uploadFailed: string;
|
|
14081
14289
|
/** The full message of a failed upload, rendered below the field. */
|
|
14082
14290
|
uploadFailedMessage: (context: DropzoneUploadFailedContext) => string;
|
|
14291
|
+
/** Shown on a failed entry in the file list when the server sent no error message. */
|
|
14292
|
+
entryUploadFailed: string;
|
|
14083
14293
|
/** A file rejected by the `accept` constraint of `dropzoneFiles()`. */
|
|
14084
14294
|
unsupportedFileType: (fileName: string) => string;
|
|
14085
14295
|
/** A file rejected by `maxFileSize`. */
|
|
@@ -14090,6 +14300,12 @@ export type DropzoneLabels = {
|
|
|
14090
14300
|
tooManyFiles: (fileName: string) => string;
|
|
14091
14301
|
/** Announced while uploads are in flight. */
|
|
14092
14302
|
uploading: (count: number) => string;
|
|
14303
|
+
/** Accessible label of the crop frame in the crop step. */
|
|
14304
|
+
cropArea: string;
|
|
14305
|
+
/** Confirms the crop step; the cropped image then uploads. */
|
|
14306
|
+
cropConfirm: string;
|
|
14307
|
+
/** Leaves the crop step without uploading the image. */
|
|
14308
|
+
cropCancel: string;
|
|
14093
14309
|
};
|
|
14094
14310
|
/** The built-in English labels. */
|
|
14095
14311
|
export declare const DEFAULT_DROPZONE_LABELS: DropzoneLabels;
|
|
@@ -14108,9 +14324,157 @@ export declare const dropzoneLabelsForLocale: (locale: string) => DropzoneLabels
|
|
|
14108
14324
|
export declare const provideDropzoneLabels: (labels: import("@ethlete/core").LabelsSource<DropzoneLabels>) => import("@angular/core").Provider;
|
|
14109
14325
|
export declare const injectDropzoneLabels: () => import("@angular/core").Signal<DropzoneLabels>;
|
|
14110
14326
|
export declare const DROPZONE_LABELS: import("@angular/core").InjectionToken<import("@ethlete/core").LabelsSource<DropzoneLabels>>;
|
|
14327
|
+
type DropzoneCropConfig = {
|
|
14328
|
+
/** Width divided by height of the crop, e.g. `1` for a square or `16 / 9`. */
|
|
14329
|
+
aspectRatio: number;
|
|
14330
|
+
/** Scales the cropped image down to at most this many pixels wide. */
|
|
14331
|
+
maxWidth?: number;
|
|
14332
|
+
/** Scales the cropped image down to at most this many pixels high. */
|
|
14333
|
+
maxHeight?: number;
|
|
14334
|
+
/** MIME type of the cropped file. Defaults to the picked file's type, or `image/png` when canvas cannot encode it. */
|
|
14335
|
+
type?: string;
|
|
14336
|
+
/** Encoder quality from 0 to 1 for lossy types. @default 0.92 */
|
|
14337
|
+
quality?: number;
|
|
14338
|
+
};
|
|
14339
|
+
type DropzoneCropRect = {
|
|
14340
|
+
x: number;
|
|
14341
|
+
y: number;
|
|
14342
|
+
width: number;
|
|
14343
|
+
height: number;
|
|
14344
|
+
};
|
|
14345
|
+
type DropzoneCropSize = {
|
|
14346
|
+
width: number;
|
|
14347
|
+
height: number;
|
|
14348
|
+
};
|
|
14349
|
+
type DropzoneCropCorner = 'nw' | 'ne' | 'sw' | 'se';
|
|
14350
|
+
/**
|
|
14351
|
+
* Crop state for one image file: an aspect-locked rect in image pixels, moved by `etDropzoneCropRect`, resized by
|
|
14352
|
+
* `etDropzoneCropHandle` and by keyboard (arrows move, shift + arrows resize). The host must have exactly the size
|
|
14353
|
+
* of the rendered image.
|
|
14354
|
+
*/
|
|
14355
|
+
export declare class DropzoneCropDirective {
|
|
14356
|
+
private hostElement;
|
|
14357
|
+
private renderer;
|
|
14358
|
+
file: import("@angular/core").InputSignal<File>;
|
|
14359
|
+
config: import("@angular/core").InputSignal<DropzoneCropConfig>;
|
|
14360
|
+
private image;
|
|
14361
|
+
private dragState;
|
|
14362
|
+
/** A `data:` URL of the file, `null` while it is read. */
|
|
14363
|
+
imageSrc: import("@angular/core").WritableSignal<string | null>;
|
|
14364
|
+
imageSize: import("@angular/core").Signal<DropzoneCropSize | null>;
|
|
14365
|
+
/** The crop in image pixels. `null` until the image is decoded. */
|
|
14366
|
+
rect: import("@angular/core").WritableSignal<DropzoneCropRect | null>;
|
|
14367
|
+
/** The rect in percent of the image, for positioning the crop frame. */
|
|
14368
|
+
rectPercent: import("@angular/core").Signal<{
|
|
14369
|
+
left: number;
|
|
14370
|
+
top: number;
|
|
14371
|
+
width: number;
|
|
14372
|
+
height: number;
|
|
14373
|
+
} | null>;
|
|
14374
|
+
ready: import("@angular/core").Signal<boolean>;
|
|
14375
|
+
protected rectVars: import("@angular/core").Signal<{
|
|
14376
|
+
'--_et-dropzone-crop-left': string;
|
|
14377
|
+
'--_et-dropzone-crop-top': string;
|
|
14378
|
+
'--_et-dropzone-crop-right': string;
|
|
14379
|
+
'--_et-dropzone-crop-bottom': string;
|
|
14380
|
+
} | null>;
|
|
14381
|
+
constructor();
|
|
14382
|
+
/** Renders the current crop into a new `File`. Rejects while the image is not decoded yet. */
|
|
14383
|
+
export(): Promise<File>;
|
|
14384
|
+
protected drag(event: PointerEvent): void;
|
|
14385
|
+
protected endDrag(event: PointerEvent): void;
|
|
14386
|
+
protected handleKeydown(event: KeyboardEvent): void;
|
|
14387
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DropzoneCropDirective, never>;
|
|
14388
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<DropzoneCropDirective, "[etDropzoneCrop]", ["etDropzoneCrop"], {
|
|
14389
|
+
"file": {
|
|
14390
|
+
"alias": "file";
|
|
14391
|
+
"required": true;
|
|
14392
|
+
"isSignal": true;
|
|
14393
|
+
};
|
|
14394
|
+
"config": {
|
|
14395
|
+
"alias": "config";
|
|
14396
|
+
"required": true;
|
|
14397
|
+
"isSignal": true;
|
|
14398
|
+
};
|
|
14399
|
+
}, {}, never, never, true, never>;
|
|
14400
|
+
}
|
|
14401
|
+
/**
|
|
14402
|
+
* The crop frame: starts a move on pointer down and takes keyboard focus. Position it with the
|
|
14403
|
+
* `--_et-dropzone-crop-{left,top,right,bottom}` percentages the crop host sets.
|
|
14404
|
+
*/
|
|
14405
|
+
export declare class DropzoneCropRectDirective {
|
|
14406
|
+
protected crop: DropzoneCropDirective;
|
|
14407
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DropzoneCropRectDirective, never>;
|
|
14408
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<DropzoneCropRectDirective, "[etDropzoneCropRect]", never, {}, {}, never, never, true, never>;
|
|
14409
|
+
}
|
|
14410
|
+
/** A resize handle on one corner of the crop frame. */
|
|
14411
|
+
export declare class DropzoneCropHandleDirective {
|
|
14412
|
+
protected crop: DropzoneCropDirective;
|
|
14413
|
+
corner: import("@angular/core").InputSignal<DropzoneCropCorner>;
|
|
14414
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DropzoneCropHandleDirective, never>;
|
|
14415
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<DropzoneCropHandleDirective, "[etDropzoneCropHandle]", never, {
|
|
14416
|
+
"corner": {
|
|
14417
|
+
"alias": "etDropzoneCropHandle";
|
|
14418
|
+
"required": true;
|
|
14419
|
+
"isSignal": true;
|
|
14420
|
+
};
|
|
14421
|
+
}, {}, never, never, true, never>;
|
|
14422
|
+
}
|
|
14423
|
+
/** The default crop step of `et-dropzone`: the image with an aspect-locked crop frame, cancel and confirm. */
|
|
14424
|
+
export declare class DropzoneCropComponent {
|
|
14425
|
+
private destroyRef;
|
|
14426
|
+
file: import("@angular/core").InputSignal<File>;
|
|
14427
|
+
config: import("@angular/core").InputSignal<DropzoneCropConfig>;
|
|
14428
|
+
areaLabel: import("@angular/core").InputSignal<string>;
|
|
14429
|
+
confirmLabel: import("@angular/core").InputSignal<string>;
|
|
14430
|
+
cancelLabel: import("@angular/core").InputSignal<string>;
|
|
14431
|
+
disabled: import("@angular/core").InputSignal<boolean>;
|
|
14432
|
+
/** Emits the cropped file. */
|
|
14433
|
+
cropConfirm: import("@angular/core").OutputEmitterRef<File>;
|
|
14434
|
+
cropCancel: import("@angular/core").OutputEmitterRef<void>;
|
|
14435
|
+
protected exporting: import("@angular/core").WritableSignal<boolean>;
|
|
14436
|
+
protected confirmCrop(crop: DropzoneCropDirective): void;
|
|
14437
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DropzoneCropComponent, never>;
|
|
14438
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DropzoneCropComponent, "et-dropzone-crop", never, {
|
|
14439
|
+
"file": {
|
|
14440
|
+
"alias": "file";
|
|
14441
|
+
"required": true;
|
|
14442
|
+
"isSignal": true;
|
|
14443
|
+
};
|
|
14444
|
+
"config": {
|
|
14445
|
+
"alias": "config";
|
|
14446
|
+
"required": true;
|
|
14447
|
+
"isSignal": true;
|
|
14448
|
+
};
|
|
14449
|
+
"areaLabel": {
|
|
14450
|
+
"alias": "areaLabel";
|
|
14451
|
+
"required": false;
|
|
14452
|
+
"isSignal": true;
|
|
14453
|
+
};
|
|
14454
|
+
"confirmLabel": {
|
|
14455
|
+
"alias": "confirmLabel";
|
|
14456
|
+
"required": false;
|
|
14457
|
+
"isSignal": true;
|
|
14458
|
+
};
|
|
14459
|
+
"cancelLabel": {
|
|
14460
|
+
"alias": "cancelLabel";
|
|
14461
|
+
"required": false;
|
|
14462
|
+
"isSignal": true;
|
|
14463
|
+
};
|
|
14464
|
+
"disabled": {
|
|
14465
|
+
"alias": "disabled";
|
|
14466
|
+
"required": false;
|
|
14467
|
+
"isSignal": true;
|
|
14468
|
+
};
|
|
14469
|
+
}, {
|
|
14470
|
+
"cropConfirm": "cropConfirm";
|
|
14471
|
+
"cropCancel": "cropCancel";
|
|
14472
|
+
}, never, never, true, never>;
|
|
14473
|
+
}
|
|
14111
14474
|
/**
|
|
14112
|
-
* Display information for a
|
|
14113
|
-
*
|
|
14475
|
+
* Display information for a file: one already part of the form control (from `resolveExisting`, e.g.
|
|
14476
|
+
* media uploaded in a previous session inside an edit form) or one uploaded in this session (from
|
|
14477
|
+
* `selectFileInfo`). Every field is optional; an unset field falls back to what the dropzone knows.
|
|
14114
14478
|
*/
|
|
14115
14479
|
export type DropzoneExistingFileInfo = {
|
|
14116
14480
|
/** URL rendered as a preview thumbnail. */
|
|
@@ -14119,6 +14483,10 @@ export type DropzoneExistingFileInfo = {
|
|
|
14119
14483
|
name?: string;
|
|
14120
14484
|
/** File size in bytes. */
|
|
14121
14485
|
size?: number | null;
|
|
14486
|
+
/** The file's MIME type, e.g. `image/png`. */
|
|
14487
|
+
mimeType?: string | null;
|
|
14488
|
+
/** When the file was uploaded, as a `Date`, an ISO string or epoch milliseconds. */
|
|
14489
|
+
uploadedAt?: Date | string | number | null;
|
|
14122
14490
|
};
|
|
14123
14491
|
/** The upload error of a failed entry. */
|
|
14124
14492
|
export type DropzoneUploadError = QueryErrorResponse | RequestError;
|
|
@@ -14139,6 +14507,10 @@ export type DropzoneUploadHandle<TValue> = {
|
|
|
14139
14507
|
errorMessage: Signal<string | null>;
|
|
14140
14508
|
/** The resolved form control value. `null` until the upload succeeded. */
|
|
14141
14509
|
value: Signal<TValue | null>;
|
|
14510
|
+
/** The server's response to the upload. `null` until the upload succeeded. */
|
|
14511
|
+
response?: Signal<unknown>;
|
|
14512
|
+
/** Display information mapped from the response by `selectFileInfo`. `null` until the upload succeeded. */
|
|
14513
|
+
fileInfo?: Signal<DropzoneExistingFileInfo | null>;
|
|
14142
14514
|
/** (Re)runs the upload with the frozen request args. */
|
|
14143
14515
|
execute: () => void;
|
|
14144
14516
|
/** Releases the underlying query (aborts an in-flight request). */
|
|
@@ -14215,6 +14587,11 @@ export type DropzoneUploadConfig<TArgs extends QueryArgs = QueryArgs, TValue = u
|
|
|
14215
14587
|
* (e.g. `(media) => media.uuid`).
|
|
14216
14588
|
*/
|
|
14217
14589
|
selectValue: (response: NonNullable<ResponseType<TArgs>>) => TValue;
|
|
14590
|
+
/**
|
|
14591
|
+
* Maps the upload response to display information for the uploaded entry (e.g. a server
|
|
14592
|
+
* thumbnail URL or the upload date). Set fields override what the dropzone read from the file.
|
|
14593
|
+
*/
|
|
14594
|
+
selectFileInfo?: (response: NonNullable<ResponseType<TArgs>>) => DropzoneExistingFileInfo;
|
|
14218
14595
|
/**
|
|
14219
14596
|
* Maps a value that is already part of the form control (edit forms) to display info.
|
|
14220
14597
|
* Called in a reactive context - reading signals inside it is supported, so async
|
|
@@ -14268,6 +14645,8 @@ export type V2DropzoneUploadConfig<TCreator extends AnyV2QueryCreator | AnyLegac
|
|
|
14268
14645
|
* (e.g. `(media) => media.uuid`).
|
|
14269
14646
|
*/
|
|
14270
14647
|
selectValue: (response: NonNullable<QueryDataOf<TCreator>>) => TValue;
|
|
14648
|
+
/** @see DropzoneUploadConfig.selectFileInfo */
|
|
14649
|
+
selectFileInfo?: (response: NonNullable<QueryDataOf<TCreator>>) => DropzoneExistingFileInfo;
|
|
14271
14650
|
/**
|
|
14272
14651
|
* Maps a value that is already part of the form control (edit forms) to display info.
|
|
14273
14652
|
* Called in a reactive context - reading signals inside it is supported, so async
|
|
@@ -14322,7 +14701,7 @@ export type DropzoneEntrySource<TValue = unknown> = {
|
|
|
14322
14701
|
type: 'existing';
|
|
14323
14702
|
value: TValue;
|
|
14324
14703
|
};
|
|
14325
|
-
export type DropzoneEntry<TValue = unknown> = {
|
|
14704
|
+
export type DropzoneEntry<TValue = unknown, TResponse = unknown> = {
|
|
14326
14705
|
/** Unique id of this entry. Stable for the lifetime of the entry. */
|
|
14327
14706
|
id: string;
|
|
14328
14707
|
/** What this entry was created from - a picked/dropped file or an existing form control value. */
|
|
@@ -14331,6 +14710,10 @@ export type DropzoneEntry<TValue = unknown> = {
|
|
|
14331
14710
|
name: Signal<string>;
|
|
14332
14711
|
/** File size in bytes. `null` when unknown. */
|
|
14333
14712
|
size: Signal<number | null>;
|
|
14713
|
+
/** The file's MIME type, e.g. `image/png`. `null` when unknown. */
|
|
14714
|
+
mimeType: Signal<string | null>;
|
|
14715
|
+
/** When the file was uploaded, as far as the server's display info says. `null` when unknown. */
|
|
14716
|
+
uploadedAt: Signal<Date | null>;
|
|
14334
14717
|
/**
|
|
14335
14718
|
* Preview URL: a `data:` URL for image files, read asynchronously so it starts as `null`, or the
|
|
14336
14719
|
* resolver-provided URL for existing values.
|
|
@@ -14345,6 +14728,8 @@ export type DropzoneEntry<TValue = unknown> = {
|
|
|
14345
14728
|
errorMessage: Signal<string | null>;
|
|
14346
14729
|
/** The form control value of this entry. `null` until the upload succeeded. */
|
|
14347
14730
|
value: Signal<TValue | null>;
|
|
14731
|
+
/** The server's response to this entry's upload. `null` until the upload succeeded, and for existing entries. */
|
|
14732
|
+
response: Signal<TResponse | null>;
|
|
14348
14733
|
};
|
|
14349
14734
|
/** The image preview size cap a dropzone applies unless `maxPreviewFileSize` says otherwise: 10 MB. */
|
|
14350
14735
|
export declare const DEFAULT_DROPZONE_MAX_PREVIEW_FILE_SIZE: number;
|
|
@@ -14411,6 +14796,11 @@ export declare const defaultDropzoneRejectionMessage: (rejection: DropzoneFileRe
|
|
|
14411
14796
|
* ```
|
|
14412
14797
|
*/
|
|
14413
14798
|
export declare const dropzoneFiles: <TValue, TPathKind extends PathKind = PathKind.Root>(path: SchemaPath<TValue, SchemaPathRules.Supported, TPathKind>, constraints: DropzoneFileConstraints | (() => DropzoneFileConstraints)) => void;
|
|
14799
|
+
/** An image file waiting in the crop step. It becomes an entry once the crop is confirmed. */
|
|
14800
|
+
export type DropzonePendingCrop = {
|
|
14801
|
+
id: string;
|
|
14802
|
+
file: File;
|
|
14803
|
+
};
|
|
14414
14804
|
export declare class DropzoneDirective<TValue = unknown> extends FieldStateControlDirective implements FormValueControl<TValue | TValue[] | null>, FormFieldControl {
|
|
14415
14805
|
private formField;
|
|
14416
14806
|
private signalFormField;
|
|
@@ -14443,6 +14833,8 @@ export declare class DropzoneDirective<TValue = unknown> extends FieldStateContr
|
|
|
14443
14833
|
minFileSize: import("@angular/core").InputSignalWithTransform<number | undefined, unknown>;
|
|
14444
14834
|
/** Whether multiple files can be uploaded. The control value becomes an array. */
|
|
14445
14835
|
multiple: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
14836
|
+
/** Sends picked images through a crop step before they upload. Other files upload right away. */
|
|
14837
|
+
crop: import("@angular/core").InputSignal<DropzoneCropConfig | null>;
|
|
14446
14838
|
touch: import("@angular/core").OutputRef<void>;
|
|
14447
14839
|
/** Emits all files of a selection that were rejected, with the reason per file. */
|
|
14448
14840
|
filesReject: import("@angular/core").OutputEmitterRef<DropzoneFileRejection[]>;
|
|
@@ -14463,6 +14855,7 @@ export declare class DropzoneDirective<TValue = unknown> extends FieldStateContr
|
|
|
14463
14855
|
private uploadSource;
|
|
14464
14856
|
private uploadConfig;
|
|
14465
14857
|
private internalEntries;
|
|
14858
|
+
private internalPendingCrops;
|
|
14466
14859
|
private internalLastRejections;
|
|
14467
14860
|
private dragDepth;
|
|
14468
14861
|
private entryWatchers;
|
|
@@ -14472,6 +14865,8 @@ export declare class DropzoneDirective<TValue = unknown> extends FieldStateContr
|
|
|
14472
14865
|
interactive: Signal<boolean>;
|
|
14473
14866
|
/** All entries currently managed by the dropzone, including uploading and failed ones. */
|
|
14474
14867
|
entries: Signal<DropzoneEntry<TValue>[]>;
|
|
14868
|
+
/** Images waiting for {@link confirmCrop} or {@link cancelCrop}, in pick order. */
|
|
14869
|
+
pendingCrops: Signal<DropzonePendingCrop[]>;
|
|
14475
14870
|
/** The rejections of the most recent file selection. Reset by the next selection, removal or clear. */
|
|
14476
14871
|
lastRejections: Signal<DropzoneFileRejection[]>;
|
|
14477
14872
|
private fileValidation;
|
|
@@ -14492,6 +14887,10 @@ export declare class DropzoneDirective<TValue = unknown> extends FieldStateContr
|
|
|
14492
14887
|
constructor();
|
|
14493
14888
|
/** Validates the given files and uploads all accepted ones. */
|
|
14494
14889
|
selectFiles(files: FileList | readonly File[]): void;
|
|
14890
|
+
/** Replaces a pending crop with the cropped file, which then uploads like a picked one. */
|
|
14891
|
+
confirmCrop(id: string, file: File): void;
|
|
14892
|
+
/** Drops a pending crop. Nothing uploads, and the current value stays. */
|
|
14893
|
+
cancelCrop(id: string): void;
|
|
14495
14894
|
/** Removes an entry. Cancels its upload if it is still in flight. */
|
|
14496
14895
|
removeEntry(id: string): void;
|
|
14497
14896
|
/** Retries the upload of a failed entry with its original request args. */
|
|
@@ -14509,6 +14908,7 @@ export declare class DropzoneDirective<TValue = unknown> extends FieldStateContr
|
|
|
14509
14908
|
protected handleDragOver(event: DragEvent): void;
|
|
14510
14909
|
protected handleDragLeave(): void;
|
|
14511
14910
|
protected handleDrop(event: DragEvent): void;
|
|
14911
|
+
private addFiles;
|
|
14512
14912
|
private setRejections;
|
|
14513
14913
|
private createFileEntry;
|
|
14514
14914
|
private disposeEntry;
|
|
@@ -14588,6 +14988,11 @@ export declare class DropzoneDirective<TValue = unknown> extends FieldStateContr
|
|
|
14588
14988
|
"required": false;
|
|
14589
14989
|
"isSignal": true;
|
|
14590
14990
|
};
|
|
14991
|
+
"crop": {
|
|
14992
|
+
"alias": "crop";
|
|
14993
|
+
"required": false;
|
|
14994
|
+
"isSignal": true;
|
|
14995
|
+
};
|
|
14591
14996
|
}, {
|
|
14592
14997
|
"value": "valueChange";
|
|
14593
14998
|
"touched": "touchedChange";
|
|
@@ -14599,6 +15004,11 @@ export declare class DropzoneDirective<TValue = unknown> extends FieldStateContr
|
|
|
14599
15004
|
"deleteFail": "deleteFail";
|
|
14600
15005
|
}, never, never, true, never>;
|
|
14601
15006
|
}
|
|
15007
|
+
export declare const DROPZONE_LAYOUTS: {
|
|
15008
|
+
readonly AREA: "area";
|
|
15009
|
+
readonly ROW: "row";
|
|
15010
|
+
};
|
|
15011
|
+
export type DropzoneLayout = (typeof DROPZONE_LAYOUTS)[keyof typeof DROPZONE_LAYOUTS];
|
|
14602
15012
|
export declare class DropzoneComponent<TValue = unknown> {
|
|
14603
15013
|
dropzoneLabels: import("@angular/core").Signal<DropzoneLabels>;
|
|
14604
15014
|
protected dropzoneDir: DropzoneDirective<TValue>;
|
|
@@ -14641,11 +15051,17 @@ export declare class DropzoneComponent<TValue = unknown> {
|
|
|
14641
15051
|
private injector;
|
|
14642
15052
|
private renderer;
|
|
14643
15053
|
private prefersReducedMotion;
|
|
15054
|
+
private formatUploadedAt;
|
|
14644
15055
|
/**
|
|
14645
15056
|
* The upload workflow configuration. Create it via `createDropzoneUpload()`. Its value type is the
|
|
14646
15057
|
* type the upload and delete outputs emit.
|
|
14647
15058
|
*/
|
|
14648
15059
|
upload: import("@angular/core").InputSignal<AnyDropzoneUploadConfig<TValue>>;
|
|
15060
|
+
/**
|
|
15061
|
+
* `'area'` is the large drop area with a single file previewed inside it. `'row'` shrinks the drop area to
|
|
15062
|
+
* one input-height row that shows a single file's thumbnail, data, status and actions in place.
|
|
15063
|
+
*/
|
|
15064
|
+
layout: import("@angular/core").InputSignal<DropzoneLayout>;
|
|
14649
15065
|
/** Per-instance overrides of the dropzone labels, merged over `provideDropzoneLabels()`. */
|
|
14650
15066
|
labels: import("@angular/core").InputSignal<Partial<DropzoneLabels> | null>;
|
|
14651
15067
|
/** Overrides the built-in per-entry upload failure message (e.g. for i18n). */
|
|
@@ -14671,6 +15087,11 @@ export declare class DropzoneComponent<TValue = unknown> {
|
|
|
14671
15087
|
state: import("@angular/core").Signal<boolean>;
|
|
14672
15088
|
};
|
|
14673
15089
|
protected singleEntry: import("@angular/core").Signal<DropzoneEntry<TValue> | null>;
|
|
15090
|
+
protected singleEntryUploadedAt: import("@angular/core").Signal<{
|
|
15091
|
+
iso: string;
|
|
15092
|
+
label: string;
|
|
15093
|
+
} | null>;
|
|
15094
|
+
protected pendingCrop: import("@angular/core").Signal<import("@ethlete/components").DropzonePendingCrop | null>;
|
|
14674
15095
|
protected readonlyList: import("@angular/core").Signal<boolean>;
|
|
14675
15096
|
protected liveStatusMessage: import("@angular/core").Signal<string>;
|
|
14676
15097
|
protected internalErrorMessages: import("@angular/core").Signal<string[]>;
|
|
@@ -14694,6 +15115,11 @@ export declare class DropzoneComponent<TValue = unknown> {
|
|
|
14694
15115
|
"required": true;
|
|
14695
15116
|
"isSignal": true;
|
|
14696
15117
|
};
|
|
15118
|
+
"layout": {
|
|
15119
|
+
"alias": "layout";
|
|
15120
|
+
"required": false;
|
|
15121
|
+
"isSignal": true;
|
|
15122
|
+
};
|
|
14697
15123
|
"labels": {
|
|
14698
15124
|
"alias": "labels";
|
|
14699
15125
|
"required": false;
|
|
@@ -14729,6 +15155,7 @@ export declare class DropzoneComponent<TValue = unknown> {
|
|
|
14729
15155
|
"accept": "accept";
|
|
14730
15156
|
"maxFileSize": "maxFileSize";
|
|
14731
15157
|
"minFileSize": "minFileSize";
|
|
15158
|
+
"crop": "crop";
|
|
14732
15159
|
"aria-label": "aria-label";
|
|
14733
15160
|
"aria-labelledby": "aria-labelledby";
|
|
14734
15161
|
"hidden": "hidden";
|
|
@@ -14753,6 +15180,7 @@ export declare const DROPZONE_ERROR_CODES: {
|
|
|
14753
15180
|
readonly INVALID_UPLOAD_CONFIG: 2400;
|
|
14754
15181
|
readonly MISSING_EXISTING_RESOLVER: 2401;
|
|
14755
15182
|
readonly VALUE_MODE_MISMATCH: 2402;
|
|
15183
|
+
readonly CROP_EXPORT_FAILED: 2403;
|
|
14756
15184
|
};
|
|
14757
15185
|
export type FocusFirstInvalidFieldOptions = {
|
|
14758
15186
|
/** Where the field lands in its scroll container. @default 'center' */
|
|
@@ -14868,10 +15296,52 @@ export declare class CounterComponent implements CounterComponentBase {
|
|
|
14868
15296
|
export type FormErrorMessageResolver = (error: ValidationError.WithOptionalFieldTree) => string | null;
|
|
14869
15297
|
export declare const FORM_ERROR_MESSAGE_RESOLVER: InjectionToken<FormErrorMessageResolver>;
|
|
14870
15298
|
export declare const provideFormErrorMessageResolver: (resolver: FormErrorMessageResolver) => Provider;
|
|
15299
|
+
/** The validator value of each known error `kind`, as `formErrorContext()` and `provideFormErrorMessages()` hand it out. */
|
|
15300
|
+
export type FormErrorContextMap = {
|
|
15301
|
+
required: true | undefined;
|
|
15302
|
+
email: true | undefined;
|
|
15303
|
+
min: {
|
|
15304
|
+
min: number;
|
|
15305
|
+
actual: number | undefined;
|
|
15306
|
+
};
|
|
15307
|
+
max: {
|
|
15308
|
+
max: number;
|
|
15309
|
+
actual: number | undefined;
|
|
15310
|
+
};
|
|
15311
|
+
minLength: {
|
|
15312
|
+
minLength: number;
|
|
15313
|
+
};
|
|
15314
|
+
maxLength: {
|
|
15315
|
+
maxLength: number;
|
|
15316
|
+
};
|
|
15317
|
+
minlength: {
|
|
15318
|
+
requiredLength: number;
|
|
15319
|
+
actualLength: number;
|
|
15320
|
+
};
|
|
15321
|
+
maxlength: {
|
|
15322
|
+
requiredLength: number;
|
|
15323
|
+
actualLength: number;
|
|
15324
|
+
};
|
|
15325
|
+
pattern: {
|
|
15326
|
+
requiredPattern: string | RegExp;
|
|
15327
|
+
actualValue: string | undefined;
|
|
15328
|
+
};
|
|
15329
|
+
etServerViolation: ServerViolationValidationError['violation'];
|
|
15330
|
+
etServerError: undefined;
|
|
15331
|
+
};
|
|
15332
|
+
export type FormErrorContext<TKind extends string> = TKind extends keyof FormErrorContextMap ? FormErrorContextMap[TKind] : unknown;
|
|
15333
|
+
/** Reads the validator value of an error, typed by its `kind`; `unknown` for a kind outside `FormErrorContextMap`. */
|
|
15334
|
+
export declare const formErrorContext: <const TKind extends string>(error: ValidationError.WithOptionalFieldTree, kind: TKind) => FormErrorContext<TKind> | undefined;
|
|
15335
|
+
export type FormErrorMessages = { [TKind in keyof FormErrorContextMap]?: (context: FormErrorContextMap[TKind], error: ValidationError.WithOptionalFieldTree) => string | null; } & {
|
|
15336
|
+
otherwise?: (error: ValidationError.WithOptionalFieldTree) => string | null;
|
|
15337
|
+
};
|
|
15338
|
+
/** Provides a resolver from a map of texts per error `kind`; each function receives the validator value typed for its kind, `null` falls back to the default text. */
|
|
15339
|
+
export declare const provideFormErrorMessages: (messages: FormErrorMessages) => Provider;
|
|
14871
15340
|
export declare class FormErrorComponent {
|
|
14872
15341
|
private messageResolver;
|
|
14873
15342
|
private labels;
|
|
14874
15343
|
error: import("@angular/core").InputSignal<ValidationError.WithOptionalFieldTree>;
|
|
15344
|
+
private specificMessage;
|
|
14875
15345
|
protected message: import("@angular/core").Signal<string>;
|
|
14876
15346
|
constructor();
|
|
14877
15347
|
static ɵfac: i0.ɵɵFactoryDeclaration<FormErrorComponent, never>;
|
|
@@ -14946,6 +15416,8 @@ export type FormFieldLabels = {
|
|
|
14946
15416
|
}) => string;
|
|
14947
15417
|
/** Error text for an `email` validator without a `message`. */
|
|
14948
15418
|
errorEmail: string;
|
|
15419
|
+
/** Error text for an error `kind` with no resolver text, no `message` and no built-in default. */
|
|
15420
|
+
errorFallback: string;
|
|
14949
15421
|
};
|
|
14950
15422
|
/** The built-in English labels. */
|
|
14951
15423
|
export declare const DEFAULT_FORM_FIELD_LABELS: FormFieldLabels;
|
|
@@ -15032,6 +15504,12 @@ export declare class FormFieldComponent {
|
|
|
15032
15504
|
fill: import("@angular/core").InputSignal<FormFieldFill>;
|
|
15033
15505
|
labelMode: import("@angular/core").InputSignal<FormFieldLabelMode>;
|
|
15034
15506
|
size: import("@angular/core").InputSignal<FormFieldSize>;
|
|
15507
|
+
/**
|
|
15508
|
+
* `'start'` puts the label outside the control frame, before it and vertically centred, and the control takes
|
|
15509
|
+
* the remaining width. It replaces `labelMode` with a static label, and only applies to text-field controls.
|
|
15510
|
+
* @default 'top'
|
|
15511
|
+
*/
|
|
15512
|
+
labelPosition: import("@angular/core").InputSignal<FormFieldLabelPosition>;
|
|
15035
15513
|
/**
|
|
15036
15514
|
* Shows the busy spinner for work the form doesn't know about (saving, a lookup of your own). A
|
|
15037
15515
|
* pending async validator only sets `aria-busy`; it never shows the spinner.
|
|
@@ -15056,6 +15534,7 @@ export declare class FormFieldComponent {
|
|
|
15056
15534
|
canAnimate: {
|
|
15057
15535
|
state: import("@angular/core").Signal<boolean>;
|
|
15058
15536
|
};
|
|
15537
|
+
protected hasStartLabel: import("@angular/core").Signal<boolean>;
|
|
15059
15538
|
protected hasFloatingTextLabel: import("@angular/core").Signal<boolean>;
|
|
15060
15539
|
protected hasInlineLabel: import("@angular/core").Signal<boolean>;
|
|
15061
15540
|
protected prefixOffset: import("@angular/core").Signal<string | null>;
|
|
@@ -15083,12 +15562,17 @@ export declare class FormFieldComponent {
|
|
|
15083
15562
|
"required": false;
|
|
15084
15563
|
"isSignal": true;
|
|
15085
15564
|
};
|
|
15565
|
+
"labelPosition": {
|
|
15566
|
+
"alias": "labelPosition";
|
|
15567
|
+
"required": false;
|
|
15568
|
+
"isSignal": true;
|
|
15569
|
+
};
|
|
15086
15570
|
"busy": {
|
|
15087
15571
|
"alias": "busy";
|
|
15088
15572
|
"required": false;
|
|
15089
15573
|
"isSignal": true;
|
|
15090
15574
|
};
|
|
15091
|
-
}, {}, ["description"], ["
|
|
15575
|
+
}, {}, ["description"], ["et-label", "[etInputPrefix]", "*", "[etInputSuffix]", "et-description", "et-hint", "et-counter"], true, [{
|
|
15092
15576
|
directive: typeof FormFieldDirective;
|
|
15093
15577
|
inputs: {};
|
|
15094
15578
|
outputs: {};
|
|
@@ -15471,6 +15955,8 @@ export declare class InputComponent {
|
|
|
15471
15955
|
protected inputDir: InputDirective;
|
|
15472
15956
|
private nativeInput;
|
|
15473
15957
|
constructor();
|
|
15958
|
+
/** Empties the value, as the clear control does. A no-op while disabled or readonly. */
|
|
15959
|
+
clear(): void;
|
|
15474
15960
|
focus(options?: FocusOptions): void;
|
|
15475
15961
|
static ɵfac: i0.ɵɵFactoryDeclaration<InputComponent, never>;
|
|
15476
15962
|
static ɵcmp: i0.ɵɵComponentDeclaration<InputComponent, "et-input", never, {}, {}, never, never, true, [{
|
|
@@ -15509,6 +15995,36 @@ export declare class InputComponent {
|
|
|
15509
15995
|
outputs: {};
|
|
15510
15996
|
}]>;
|
|
15511
15997
|
}
|
|
15998
|
+
/**
|
|
15999
|
+
* Adds a clear (×) button to an `et-input`'s suffix stack while the focused input holds a value. Clearing empties
|
|
16000
|
+
* the value, emits `valueChange` and keeps focus in the input.
|
|
16001
|
+
*
|
|
16002
|
+
* @example
|
|
16003
|
+
* <et-input [formField]="form.search" etInputClear type="search" />
|
|
16004
|
+
*/
|
|
16005
|
+
export declare class InputClearDirective {
|
|
16006
|
+
private input;
|
|
16007
|
+
private inputDir;
|
|
16008
|
+
private formFieldLabels;
|
|
16009
|
+
/** Shows the button. Bind `false` to hide it without removing the directive. @default true */
|
|
16010
|
+
etInputClear: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
16011
|
+
/** Accessible name of the button. Defaults to the shared `clear` label - see `provideFormFieldLabels`. */
|
|
16012
|
+
clearLabel: import("@angular/core").InputSignal<string | null>;
|
|
16013
|
+
constructor();
|
|
16014
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<InputClearDirective, never>;
|
|
16015
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<InputClearDirective, "et-input[etInputClear]", never, {
|
|
16016
|
+
"etInputClear": {
|
|
16017
|
+
"alias": "etInputClear";
|
|
16018
|
+
"required": false;
|
|
16019
|
+
"isSignal": true;
|
|
16020
|
+
};
|
|
16021
|
+
"clearLabel": {
|
|
16022
|
+
"alias": "clearLabel";
|
|
16023
|
+
"required": false;
|
|
16024
|
+
"isSignal": true;
|
|
16025
|
+
};
|
|
16026
|
+
}, {}, never, never, true, never>;
|
|
16027
|
+
}
|
|
15512
16028
|
export declare class NumberInputComponent {
|
|
15513
16029
|
private inputLabels;
|
|
15514
16030
|
protected numberInputDir: NumberInputDirective;
|
|
@@ -15687,6 +16203,7 @@ export declare class PasswordInputComponent {
|
|
|
15687
16203
|
export declare const INPUT_IMPORTS: readonly [typeof InputComponent, typeof InputDirective];
|
|
15688
16204
|
export declare const NUMBER_INPUT_IMPORTS: readonly [typeof NumberInputComponent, typeof NumberInputDirective];
|
|
15689
16205
|
export declare const PASSWORD_INPUT_IMPORTS: readonly [typeof PasswordInputComponent, typeof PasswordInputDirective];
|
|
16206
|
+
export declare const INPUT_CLEAR_IMPORTS: readonly [typeof InputClearDirective];
|
|
15690
16207
|
/**
|
|
15691
16208
|
* A mask definition: a pair of pure text transforms plus caret metadata. Pattern
|
|
15692
16209
|
* strings passed to `[etInputMask]` are compiled into one of these; the shipped
|
|
@@ -17413,6 +17930,11 @@ export declare class MenuItemDirective {
|
|
|
17413
17930
|
elementRef: ElementRef<HTMLElement>;
|
|
17414
17931
|
private destroyRef;
|
|
17415
17932
|
disabled: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
17933
|
+
/**
|
|
17934
|
+
* Shows a spinner and blocks activation while async work started by this item runs. Unlike `disabled`,
|
|
17935
|
+
* the item stays reachable with the arrow keys.
|
|
17936
|
+
*/
|
|
17937
|
+
loading: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
17416
17938
|
closeOnActivate: import("@angular/core").InputSignalWithTransform<boolean | undefined, unknown>;
|
|
17417
17939
|
activate: import("@angular/core").OutputEmitterRef<MenuItemActivationEvent>;
|
|
17418
17940
|
private defaultCloseOnActivate;
|
|
@@ -17430,6 +17952,7 @@ export declare class MenuItemDirective {
|
|
|
17430
17952
|
protected handlePointerMove(event: PointerEvent): void;
|
|
17431
17953
|
protected handlePointerLeave(): void;
|
|
17432
17954
|
protected handleFocus(): void;
|
|
17955
|
+
private blockLoadingClick;
|
|
17433
17956
|
private keyboardTookOver;
|
|
17434
17957
|
static ɵfac: i0.ɵɵFactoryDeclaration<MenuItemDirective, never>;
|
|
17435
17958
|
static ɵdir: i0.ɵɵDirectiveDeclaration<MenuItemDirective, "[etMenuItem]", ["etMenuItem"], {
|
|
@@ -17438,6 +17961,11 @@ export declare class MenuItemDirective {
|
|
|
17438
17961
|
"required": false;
|
|
17439
17962
|
"isSignal": true;
|
|
17440
17963
|
};
|
|
17964
|
+
"loading": {
|
|
17965
|
+
"alias": "loading";
|
|
17966
|
+
"required": false;
|
|
17967
|
+
"isSignal": true;
|
|
17968
|
+
};
|
|
17441
17969
|
"closeOnActivate": {
|
|
17442
17970
|
"alias": "closeOnActivate";
|
|
17443
17971
|
"required": false;
|
|
@@ -17862,6 +18390,7 @@ export declare class MenuCheckboxGroupComponent {
|
|
|
17862
18390
|
}]>;
|
|
17863
18391
|
}
|
|
17864
18392
|
export declare class MenuCheckboxItemComponent {
|
|
18393
|
+
protected item: MenuItemDirective;
|
|
17865
18394
|
icon: import("@angular/core").InputSignal<string | null>;
|
|
17866
18395
|
static ɵfac: i0.ɵɵFactoryDeclaration<MenuCheckboxItemComponent, never>;
|
|
17867
18396
|
static ɵcmp: i0.ɵɵComponentDeclaration<MenuCheckboxItemComponent, "et-menu-checkbox-item", never, {
|
|
@@ -17873,6 +18402,7 @@ export declare class MenuCheckboxItemComponent {
|
|
|
17873
18402
|
}, {}, never, ["*"], true, [{
|
|
17874
18403
|
directive: typeof MenuItemDirective;
|
|
17875
18404
|
inputs: {
|
|
18405
|
+
"loading": "loading";
|
|
17876
18406
|
"closeOnActivate": "closeOnActivate";
|
|
17877
18407
|
};
|
|
17878
18408
|
outputs: {
|
|
@@ -17927,7 +18457,7 @@ export type MenuItemVariant = (typeof MENU_ITEM_VARIANTS)[keyof typeof MENU_ITEM
|
|
|
17927
18457
|
export declare class MenuItemComponent {
|
|
17928
18458
|
private provideColor;
|
|
17929
18459
|
private errorColorTheme;
|
|
17930
|
-
|
|
18460
|
+
protected item: MenuItemDirective;
|
|
17931
18461
|
variant: import("@angular/core").InputSignal<MenuItemVariant>;
|
|
17932
18462
|
protected isSubmenuTrigger: boolean;
|
|
17933
18463
|
constructor();
|
|
@@ -17942,6 +18472,7 @@ export declare class MenuItemComponent {
|
|
|
17942
18472
|
directive: typeof MenuItemDirective;
|
|
17943
18473
|
inputs: {
|
|
17944
18474
|
"disabled": "disabled";
|
|
18475
|
+
"loading": "loading";
|
|
17945
18476
|
"closeOnActivate": "closeOnActivate";
|
|
17946
18477
|
};
|
|
17947
18478
|
outputs: {
|
|
@@ -17978,6 +18509,7 @@ export declare class MenuRadioGroupComponent {
|
|
|
17978
18509
|
}]>;
|
|
17979
18510
|
}
|
|
17980
18511
|
export declare class MenuRadioItemComponent {
|
|
18512
|
+
protected item: MenuItemDirective;
|
|
17981
18513
|
icon: import("@angular/core").InputSignal<string | null>;
|
|
17982
18514
|
static ɵfac: i0.ɵɵFactoryDeclaration<MenuRadioItemComponent, never>;
|
|
17983
18515
|
static ɵcmp: i0.ɵɵComponentDeclaration<MenuRadioItemComponent, "et-menu-radio-item", never, {
|
|
@@ -17989,6 +18521,7 @@ export declare class MenuRadioItemComponent {
|
|
|
17989
18521
|
}, {}, never, ["*"], true, [{
|
|
17990
18522
|
directive: typeof MenuItemDirective;
|
|
17991
18523
|
inputs: {
|
|
18524
|
+
"loading": "loading";
|
|
17992
18525
|
"closeOnActivate": "closeOnActivate";
|
|
17993
18526
|
};
|
|
17994
18527
|
outputs: {
|
|
@@ -18646,6 +19179,7 @@ export declare class PhoneInputDirective extends TextFieldControlDirective imple
|
|
|
18646
19179
|
/** Normalized `+<dialCode><national digits>` - empty string while nothing is entered. */
|
|
18647
19180
|
value: import("@angular/core").ModelSignal<string>;
|
|
18648
19181
|
placeholder: import("@angular/core").InputSignal<string>;
|
|
19182
|
+
autocomplete: import("@angular/core").InputSignal<string>;
|
|
18649
19183
|
/** ISO 3166-1 alpha-2 code, case-insensitive. */
|
|
18650
19184
|
defaultCountry: import("@angular/core").InputSignalWithTransform<string, string>;
|
|
18651
19185
|
/** ISO codes listed on top of the country dropdown, case-insensitive. */
|
|
@@ -18712,6 +19246,11 @@ export declare class PhoneInputDirective extends TextFieldControlDirective imple
|
|
|
18712
19246
|
"required": false;
|
|
18713
19247
|
"isSignal": true;
|
|
18714
19248
|
};
|
|
19249
|
+
"autocomplete": {
|
|
19250
|
+
"alias": "autocomplete";
|
|
19251
|
+
"required": false;
|
|
19252
|
+
"isSignal": true;
|
|
19253
|
+
};
|
|
18715
19254
|
"defaultCountry": {
|
|
18716
19255
|
"alias": "defaultCountry";
|
|
18717
19256
|
"required": false;
|
|
@@ -18852,6 +19391,7 @@ export declare class PhoneInputComponent {
|
|
|
18852
19391
|
inputs: {
|
|
18853
19392
|
"value": "value";
|
|
18854
19393
|
"placeholder": "placeholder";
|
|
19394
|
+
"autocomplete": "autocomplete";
|
|
18855
19395
|
"defaultCountry": "defaultCountry";
|
|
18856
19396
|
"preferredCountries": "preferredCountries";
|
|
18857
19397
|
"touched": "touched";
|
|
@@ -19862,6 +20402,7 @@ export declare class SelectSearchDirective {
|
|
|
19862
20402
|
private document;
|
|
19863
20403
|
elementRef: ElementRef<HTMLInputElement>;
|
|
19864
20404
|
query: import("@angular/core").ModelSignal<string>;
|
|
20405
|
+
autocomplete: import("@angular/core").InputSignal<string>;
|
|
19865
20406
|
private edited;
|
|
19866
20407
|
protected expanded: import("@angular/core").Signal<boolean>;
|
|
19867
20408
|
protected controls: import("@angular/core").Signal<string | null>;
|
|
@@ -19884,6 +20425,11 @@ export declare class SelectSearchDirective {
|
|
|
19884
20425
|
"required": false;
|
|
19885
20426
|
"isSignal": true;
|
|
19886
20427
|
};
|
|
20428
|
+
"autocomplete": {
|
|
20429
|
+
"alias": "autocomplete";
|
|
20430
|
+
"required": false;
|
|
20431
|
+
"isSignal": true;
|
|
20432
|
+
};
|
|
19887
20433
|
}, {
|
|
19888
20434
|
"query": "queryChange";
|
|
19889
20435
|
}, never, never, true, never>;
|
|
@@ -20021,6 +20567,7 @@ export declare class SelectVirtualOptionDirective {
|
|
|
20021
20567
|
/** The styled "Select all" row `et-select` renders for `selectAll`. Project the row's text. */
|
|
20022
20568
|
export declare class SelectAllOptionComponent {
|
|
20023
20569
|
protected option: SelectAllOptionDirective;
|
|
20570
|
+
protected icons: import("@ethlete/components").SelectIcons;
|
|
20024
20571
|
constructor();
|
|
20025
20572
|
static ɵfac: i0.ɵɵFactoryDeclaration<SelectAllOptionComponent, never>;
|
|
20026
20573
|
static ɵcmp: i0.ɵɵComponentDeclaration<SelectAllOptionComponent, "et-select-all-option", never, {}, {}, never, ["*"], true, [{
|
|
@@ -20047,6 +20594,25 @@ export declare const SELECT_ERROR_CODES: {
|
|
|
20047
20594
|
readonly SELECT_ALL_OPTION_OUTSIDE_SELECT: 1014;
|
|
20048
20595
|
readonly VALUE_SHAPE_MISMATCH: 1015;
|
|
20049
20596
|
};
|
|
20597
|
+
export type SelectIcons = {
|
|
20598
|
+
/** The trigger's open/close chevron, also drawn (rotated) on the panel's load-more row. */
|
|
20599
|
+
chevron: RegisteredIconName;
|
|
20600
|
+
/** The trigger's clear button. */
|
|
20601
|
+
clear: RegisteredIconName;
|
|
20602
|
+
/** The mark on a selected option. */
|
|
20603
|
+
check: RegisteredIconName;
|
|
20604
|
+
};
|
|
20605
|
+
export declare const DEFAULT_SELECT_ICONS: SelectIcons;
|
|
20606
|
+
/**
|
|
20607
|
+
* Swap the glyphs the select draws itself, for every select below this injector. Each value is an icon name; register
|
|
20608
|
+
* a name outside the built-in `et-*` set with `provideIconOverrides()`. Partial - whatever you leave out keeps its
|
|
20609
|
+
* {@link DEFAULT_SELECT_ICONS} value.
|
|
20610
|
+
*
|
|
20611
|
+
* @example
|
|
20612
|
+
* provideSelectIcons({ chevron: 'app-caret', check: 'app-tick' });
|
|
20613
|
+
*/
|
|
20614
|
+
export declare const provideSelectIcons: (valueOverride?: Partial<SelectIcons> | undefined) => import("@angular/core").StaticProvider[];
|
|
20615
|
+
export declare const injectSelectIcons: import("@ethlete/core").InjectFn<SelectIcons>;
|
|
20050
20616
|
/**
|
|
20051
20617
|
* The strings the select's panel renders itself. The options are yours; these are the panel's own
|
|
20052
20618
|
* affordances - paging through an async option list, and the create-a-value flow (`allowCustomValues`).
|
|
@@ -20097,6 +20663,7 @@ export declare class SelectOptionGroupComponent {
|
|
|
20097
20663
|
}
|
|
20098
20664
|
export declare class SelectOptionComponent {
|
|
20099
20665
|
protected option: SelectOptionDirective;
|
|
20666
|
+
protected icons: import("@ethlete/components").SelectIcons;
|
|
20100
20667
|
constructor();
|
|
20101
20668
|
static ɵfac: i0.ɵɵFactoryDeclaration<SelectOptionComponent, never>;
|
|
20102
20669
|
static ɵcmp: i0.ɵɵComponentDeclaration<SelectOptionComponent, "et-select-option", never, {}, {}, never, ["*"], true, [{
|
|
@@ -20258,6 +20825,7 @@ export declare class SelectPanelComponent {
|
|
|
20258
20825
|
export declare class SelectVirtualOptionComponent {
|
|
20259
20826
|
protected select: SelectDirective<any>;
|
|
20260
20827
|
protected virtualOption: SelectVirtualOptionDirective;
|
|
20828
|
+
protected icons: import("@ethlete/components").SelectIcons;
|
|
20261
20829
|
protected templateContext: import("@angular/core").Signal<SelectOptionTemplateContext>;
|
|
20262
20830
|
constructor();
|
|
20263
20831
|
static ɵfac: i0.ɵɵFactoryDeclaration<SelectVirtualOptionComponent, never>;
|
|
@@ -20271,6 +20839,7 @@ export declare class SelectVirtualOptionComponent {
|
|
|
20271
20839
|
}
|
|
20272
20840
|
export declare class SelectComponent {
|
|
20273
20841
|
protected selectLabels: import("@angular/core").Signal<import("@ethlete/components").SelectLabels>;
|
|
20842
|
+
protected icons: import("@ethlete/components").SelectIcons;
|
|
20274
20843
|
private formFieldLabels;
|
|
20275
20844
|
protected select: SelectDirective<any>;
|
|
20276
20845
|
loadMoreLabel: import("@angular/core").InputSignal<string | null>;
|
|
@@ -20467,7 +21036,7 @@ export type SelectionListDirectiveBase<TValue = unknown> = {
|
|
|
20467
21036
|
focusItem(item: SelectionListItem<TValue>, options?: FocusOptions): void;
|
|
20468
21037
|
markTouched(): void;
|
|
20469
21038
|
};
|
|
20470
|
-
export declare class SelectionListDirective extends FieldStateControlDirective implements SelectionListDirectiveBase, FormFieldControl {
|
|
21039
|
+
export declare class SelectionListDirective extends FieldStateControlDirective implements SelectionListDirectiveBase, FormValueControl<unknown>, FormFieldControl {
|
|
20471
21040
|
private formField;
|
|
20472
21041
|
private destroyRef;
|
|
20473
21042
|
private multipleOverride;
|
|
@@ -21796,7 +22365,7 @@ export declare class SliderComponent {
|
|
|
21796
22365
|
}]>;
|
|
21797
22366
|
}
|
|
21798
22367
|
export declare const SLIDER_IMPORTS: readonly [typeof SliderComponent, typeof RangeSliderComponent, typeof SliderDirective, typeof RangeSliderDirective, typeof SliderThumbDirective, typeof SliderThumbLabelDirective, typeof SliderTrackDirective];
|
|
21799
|
-
export declare class SwitchDirective extends FieldStateControlDirective implements FormFieldControl {
|
|
22368
|
+
export declare class SwitchDirective extends FieldStateControlDirective implements FormCheckboxControl, FormFieldControl {
|
|
21800
22369
|
private formField;
|
|
21801
22370
|
private destroyRef;
|
|
21802
22371
|
private el;
|
|
@@ -21929,6 +22498,7 @@ export declare class TagInputDirective extends TextShellControlDirective impleme
|
|
|
21929
22498
|
*/
|
|
21930
22499
|
pending: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
21931
22500
|
placeholder: import("@angular/core").InputSignal<string>;
|
|
22501
|
+
autocomplete: import("@angular/core").InputSignal<string>;
|
|
21932
22502
|
/**
|
|
21933
22503
|
* What commits the pending text as a tag: multi-character entries are key names
|
|
21934
22504
|
* (`'Enter'`), single characters commit as soon as they are typed (and split pastes).
|
|
@@ -21981,6 +22551,11 @@ export declare class TagInputDirective extends TextShellControlDirective impleme
|
|
|
21981
22551
|
"required": false;
|
|
21982
22552
|
"isSignal": true;
|
|
21983
22553
|
};
|
|
22554
|
+
"autocomplete": {
|
|
22555
|
+
"alias": "autocomplete";
|
|
22556
|
+
"required": false;
|
|
22557
|
+
"isSignal": true;
|
|
22558
|
+
};
|
|
21984
22559
|
"separators": {
|
|
21985
22560
|
"alias": "separators";
|
|
21986
22561
|
"required": false;
|
|
@@ -22050,6 +22625,7 @@ export declare class TagInputComponent {
|
|
|
22050
22625
|
"maxLength": "maxLength";
|
|
22051
22626
|
"pending": "pending";
|
|
22052
22627
|
"placeholder": "placeholder";
|
|
22628
|
+
"autocomplete": "autocomplete";
|
|
22053
22629
|
"mixedLabel": "mixedLabel";
|
|
22054
22630
|
"separators": "separators";
|
|
22055
22631
|
"allowDuplicates": "allowDuplicates";
|
|
@@ -23073,6 +23649,11 @@ export declare class ProgressBarComponent {
|
|
|
23073
23649
|
* value attributes. @default null
|
|
23074
23650
|
*/
|
|
23075
23651
|
value: import("@angular/core").InputSignalWithTransform<number | null, string | number | null | undefined>;
|
|
23652
|
+
/**
|
|
23653
|
+
* Round the end of the determinate fill with `--et-progress-bar-border-radius`. Off, the fill ends square.
|
|
23654
|
+
* @default false
|
|
23655
|
+
*/
|
|
23656
|
+
roundedEnd: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
23076
23657
|
protected indeterminate: import("@angular/core").Signal<boolean>;
|
|
23077
23658
|
protected hasExplicitColor: import("@angular/core").Signal<boolean>;
|
|
23078
23659
|
protected clampedValue: import("@angular/core").Signal<number>;
|
|
@@ -23083,6 +23664,11 @@ export declare class ProgressBarComponent {
|
|
|
23083
23664
|
"required": false;
|
|
23084
23665
|
"isSignal": true;
|
|
23085
23666
|
};
|
|
23667
|
+
"roundedEnd": {
|
|
23668
|
+
"alias": "roundedEnd";
|
|
23669
|
+
"required": false;
|
|
23670
|
+
"isSignal": true;
|
|
23671
|
+
};
|
|
23086
23672
|
}, {}, never, never, true, [{
|
|
23087
23673
|
directive: typeof i1$1.ProvideColorDirective;
|
|
23088
23674
|
inputs: {
|
|
@@ -23102,8 +23688,11 @@ export declare class ProgressBarComponent {
|
|
|
23102
23688
|
export declare class SpinnerComponent {
|
|
23103
23689
|
private provideColor;
|
|
23104
23690
|
protected name: import("@angular/core").Signal<string>;
|
|
23105
|
-
/**
|
|
23106
|
-
|
|
23691
|
+
/**
|
|
23692
|
+
* The size in px. Unbound, the spinner takes `--et-spinner-size` from its context (18px if nothing sets it) and
|
|
23693
|
+
* scales its stroke with it.
|
|
23694
|
+
*/
|
|
23695
|
+
diameter: import("@angular/core").InputSignalWithTransform<number | undefined, unknown>;
|
|
23107
23696
|
/** The stroke width in px. @default 2.25 */
|
|
23108
23697
|
strokeWidth: import("@angular/core").InputSignalWithTransform<number, unknown>;
|
|
23109
23698
|
/** Render a background ring behind the stroke. @default false */
|
|
@@ -23121,6 +23710,7 @@ export declare class SpinnerComponent {
|
|
|
23121
23710
|
* scope.
|
|
23122
23711
|
*/
|
|
23123
23712
|
protected hasExplicitColor: import("@angular/core").Signal<boolean>;
|
|
23713
|
+
private geometryDiameter;
|
|
23124
23714
|
protected circleRadius: import("@angular/core").Signal<number>;
|
|
23125
23715
|
protected normalizedStrokeWidth: import("@angular/core").Signal<number>;
|
|
23126
23716
|
protected viewBox: import("@angular/core").Signal<string>;
|
|
@@ -25504,12 +26094,96 @@ export declare class PaginationSeoDirective {
|
|
|
25504
26094
|
};
|
|
25505
26095
|
}, {}, never, never, true, never>;
|
|
25506
26096
|
}
|
|
26097
|
+
export declare const PROGRESS_STEP_STATES: {
|
|
26098
|
+
readonly COMPLETE: "complete";
|
|
26099
|
+
readonly CURRENT: "current";
|
|
26100
|
+
readonly UPCOMING: "upcoming";
|
|
26101
|
+
readonly SUCCESS: "success";
|
|
26102
|
+
readonly WARNING: "warning";
|
|
26103
|
+
readonly ERROR: "error";
|
|
26104
|
+
readonly SKIPPED: "skipped";
|
|
26105
|
+
};
|
|
26106
|
+
export type ProgressStepState = (typeof PROGRESS_STEP_STATES)[keyof typeof PROGRESS_STEP_STATES];
|
|
26107
|
+
/**
|
|
26108
|
+
* The behavior of one step, with no look: its state, `aria-current="step"` on the current one, and the
|
|
26109
|
+
* `listitem` role unless the host is a link or a button. Put it on any element inside an `etProgressSteps`
|
|
26110
|
+
* to render the step yourself; `et-progress-step` is this directive plus the default look.
|
|
26111
|
+
*
|
|
26112
|
+
* @example
|
|
26113
|
+
* <li etProgressStep [stepState]="step.state" #step="etProgressStep">{{ step.label }}</li>
|
|
26114
|
+
*/
|
|
26115
|
+
export declare class ProgressStepDirective {
|
|
26116
|
+
private elementRef;
|
|
26117
|
+
private group;
|
|
26118
|
+
stepState: import("@angular/core").InputSignal<ProgressStepState>;
|
|
26119
|
+
protected role: string | null;
|
|
26120
|
+
private currentSource;
|
|
26121
|
+
/** The state the step shows: `current` while a registered current source is active, otherwise `stepState`. */
|
|
26122
|
+
resolvedState: Signal<ProgressStepState>;
|
|
26123
|
+
/** Whether the process is past this step. */
|
|
26124
|
+
isResolved: Signal<boolean>;
|
|
26125
|
+
protected ariaCurrent: Signal<"step" | null>;
|
|
26126
|
+
constructor();
|
|
26127
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ProgressStepDirective, never>;
|
|
26128
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<ProgressStepDirective, "[etProgressStep]", ["etProgressStep"], {
|
|
26129
|
+
"stepState": {
|
|
26130
|
+
"alias": "stepState";
|
|
26131
|
+
"required": false;
|
|
26132
|
+
"isSignal": true;
|
|
26133
|
+
};
|
|
26134
|
+
}, {}, never, never, true, never>;
|
|
26135
|
+
}
|
|
26136
|
+
type ProgressStepsRegistry = {
|
|
26137
|
+
registerStep(step: object): void;
|
|
26138
|
+
unregisterStep(step: object): void;
|
|
26139
|
+
};
|
|
26140
|
+
export declare const PROGRESS_STEPS_ORIENTATIONS: {
|
|
26141
|
+
readonly HORIZONTAL: "horizontal";
|
|
26142
|
+
readonly VERTICAL: "vertical";
|
|
26143
|
+
readonly AUTO: "auto";
|
|
26144
|
+
};
|
|
26145
|
+
export type ProgressStepsOrientation = (typeof PROGRESS_STEPS_ORIENTATIONS)[keyof typeof PROGRESS_STEPS_ORIENTATIONS];
|
|
26146
|
+
export type ResolvedProgressStepsOrientation = Exclude<ProgressStepsOrientation, 'auto'>;
|
|
26147
|
+
/**
|
|
26148
|
+
* The behavior of a group of progress steps, with no look: the `list` role, the step registry, and the
|
|
26149
|
+
* orientation. In `auto` the row turns into a column once a step would get less than `minStepSize` pixels,
|
|
26150
|
+
* so the steps never need to scroll sideways. The resolved orientation is on `data-orientation`.
|
|
26151
|
+
*
|
|
26152
|
+
* @example
|
|
26153
|
+
* <ol etProgressSteps #steps="etProgressSteps">
|
|
26154
|
+
* <li etProgressStep stepState="complete">Account</li>
|
|
26155
|
+
* <li etProgressStep stepState="current">Shipping</li>
|
|
26156
|
+
* </ol>
|
|
26157
|
+
*/
|
|
26158
|
+
export declare class ProgressStepsDirective implements ProgressStepsRegistry {
|
|
26159
|
+
orientation: import("@angular/core").InputSignal<ProgressStepsOrientation>;
|
|
26160
|
+
/** In `auto`, the narrowest a step may get, in pixels, before the steps stack into a column. */
|
|
26161
|
+
minStepSize: import("@angular/core").InputSignalWithTransform<number, unknown>;
|
|
26162
|
+
private dimensions;
|
|
26163
|
+
private registeredSteps;
|
|
26164
|
+
steps: import("@angular/core").Signal<readonly ProgressStepDirective[]>;
|
|
26165
|
+
resolvedOrientation: import("@angular/core").Signal<ResolvedProgressStepsOrientation>;
|
|
26166
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ProgressStepsDirective, never>;
|
|
26167
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<ProgressStepsDirective, "[etProgressSteps]", ["etProgressSteps"], {
|
|
26168
|
+
"orientation": {
|
|
26169
|
+
"alias": "orientation";
|
|
26170
|
+
"required": false;
|
|
26171
|
+
"isSignal": true;
|
|
26172
|
+
};
|
|
26173
|
+
"minStepSize": {
|
|
26174
|
+
"alias": "minStepSize";
|
|
26175
|
+
"required": false;
|
|
26176
|
+
"isSignal": true;
|
|
26177
|
+
};
|
|
26178
|
+
}, {}, never, never, true, never>;
|
|
26179
|
+
}
|
|
25507
26180
|
/** The text a progress step announces for a resolved state, which its marker otherwise shows only as an icon. */
|
|
25508
26181
|
export type ProgressStepLabels = {
|
|
25509
26182
|
complete: string;
|
|
25510
26183
|
success: string;
|
|
25511
26184
|
warning: string;
|
|
25512
26185
|
error: string;
|
|
26186
|
+
skipped: string;
|
|
25513
26187
|
};
|
|
25514
26188
|
/** The built-in English labels. */
|
|
25515
26189
|
export declare const DEFAULT_PROGRESS_STEP_LABELS: ProgressStepLabels;
|
|
@@ -25552,15 +26226,6 @@ export declare class ProgressStepRouterActiveDirective {
|
|
|
25552
26226
|
};
|
|
25553
26227
|
}, {}, never, never, true, never>;
|
|
25554
26228
|
}
|
|
25555
|
-
export declare const PROGRESS_STEP_STATES: {
|
|
25556
|
-
readonly COMPLETE: "complete";
|
|
25557
|
-
readonly CURRENT: "current";
|
|
25558
|
-
readonly UPCOMING: "upcoming";
|
|
25559
|
-
readonly SUCCESS: "success";
|
|
25560
|
-
readonly WARNING: "warning";
|
|
25561
|
-
readonly ERROR: "error";
|
|
25562
|
-
};
|
|
25563
|
-
export type ProgressStepState = (typeof PROGRESS_STEP_STATES)[keyof typeof PROGRESS_STEP_STATES];
|
|
25564
26229
|
/**
|
|
25565
26230
|
* One step in an `et-progress-steps` row: a numbered marker that becomes an icon once resolved, plus
|
|
25566
26231
|
* a label. `stepState` is yours to set per step - nothing is derived from position, so a skipped or
|
|
@@ -25568,7 +26233,8 @@ export type ProgressStepState = (typeof PROGRESS_STEP_STATES)[keyof typeof PROGR
|
|
|
25568
26233
|
*
|
|
25569
26234
|
* `complete` marks a step as done in the surrounding color theme; `success`, `warning` and `error`
|
|
25570
26235
|
* mark it as done with an outcome and recolor the step in the app's matching semantic theme, each
|
|
25571
|
-
* with its own icon so the outcome does not rest on color alone.
|
|
26236
|
+
* with its own icon so the outcome does not rest on color alone. `skipped` marks a step the process
|
|
26237
|
+
* passed without doing it.
|
|
25572
26238
|
*
|
|
25573
26239
|
* Project `[etProgressStepDescription]` for a second, muted line under the label - what the step
|
|
25574
26240
|
* covers, what it produced, why it failed:
|
|
@@ -25579,6 +26245,10 @@ export type ProgressStepState = (typeof PROGRESS_STEP_STATES)[keyof typeof PROGR
|
|
|
25579
26245
|
* <span etProgressStepDescription>Card ending 4242</span>
|
|
25580
26246
|
* </et-progress-step>
|
|
25581
26247
|
*
|
|
26248
|
+
* Project `[etProgressStepContent]` for any further content under the text, and `[etProgressStepMarker]`
|
|
26249
|
+
* to replace the number or icon inside the marker. For a look of your own, use the headless
|
|
26250
|
+
* `etProgressSteps` and `etProgressStep` directives instead.
|
|
26251
|
+
*
|
|
25582
26252
|
* Write the step as a link or a button to make it interactive - the attribute selector puts the step
|
|
25583
26253
|
* on the consumer's own element, so `routerLink`, `href` and click handlers all stay where they
|
|
25584
26254
|
* belong, and the whole step becomes the target:
|
|
@@ -25587,26 +26257,20 @@ export type ProgressStepState = (typeof PROGRESS_STEP_STATES)[keyof typeof PROGR
|
|
|
25587
26257
|
* <a [routerLink]="['/checkout/account']" stepState="complete" et-progress-step>Account</a>
|
|
25588
26258
|
*/
|
|
25589
26259
|
export declare class ProgressStepComponent {
|
|
25590
|
-
private
|
|
25591
|
-
|
|
25592
|
-
|
|
25593
|
-
|
|
25594
|
-
|
|
25595
|
-
protected role: string | null;
|
|
25596
|
-
private currentSource;
|
|
25597
|
-
protected resolvedState: Signal<ProgressStepState>;
|
|
25598
|
-
protected markerIcon: Signal<string | null>;
|
|
25599
|
-
protected stateLabel: Signal<string | null>;
|
|
25600
|
-
protected ariaCurrent: Signal<"step" | null>;
|
|
26260
|
+
private step;
|
|
26261
|
+
protected visuals: {
|
|
26262
|
+
icon: import("@angular/core").Signal<string | null>;
|
|
26263
|
+
label: import("@angular/core").Signal<string | null>;
|
|
26264
|
+
};
|
|
25601
26265
|
constructor();
|
|
25602
26266
|
static ɵfac: i0.ɵɵFactoryDeclaration<ProgressStepComponent, never>;
|
|
25603
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ProgressStepComponent, "et-progress-step, [et-progress-step]", never, {
|
|
25604
|
-
|
|
25605
|
-
|
|
25606
|
-
"
|
|
25607
|
-
"isSignal": true;
|
|
26267
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ProgressStepComponent, "et-progress-step, [et-progress-step]", never, {}, {}, never, ["[etProgressStepMarker]", "*", "[etProgressStepDescription]", "[etProgressStepContent]"], true, [{
|
|
26268
|
+
directive: typeof ProgressStepDirective;
|
|
26269
|
+
inputs: {
|
|
26270
|
+
"stepState": "stepState";
|
|
25608
26271
|
};
|
|
25609
|
-
|
|
26272
|
+
outputs: {};
|
|
26273
|
+
}, {
|
|
25610
26274
|
directive: typeof i1$1.ProvideColorDirective;
|
|
25611
26275
|
inputs: {};
|
|
25612
26276
|
outputs: {};
|
|
@@ -25616,15 +26280,10 @@ export declare class ProgressStepComponent {
|
|
|
25616
26280
|
outputs: {};
|
|
25617
26281
|
}]>;
|
|
25618
26282
|
}
|
|
25619
|
-
export declare const PROGRESS_STEPS_ORIENTATIONS: {
|
|
25620
|
-
readonly HORIZONTAL: "horizontal";
|
|
25621
|
-
readonly VERTICAL: "vertical";
|
|
25622
|
-
};
|
|
25623
|
-
export type ProgressStepsOrientation = (typeof PROGRESS_STEPS_ORIENTATIONS)[keyof typeof PROGRESS_STEPS_ORIENTATIONS];
|
|
25624
26283
|
/**
|
|
25625
|
-
* Lays out a row - or
|
|
25626
|
-
*
|
|
25627
|
-
*
|
|
26284
|
+
* Lays out a row - or a column - of `et-progress-step`s with automatic step numbering and a connecting line
|
|
26285
|
+
* between them. Project the steps in order, each with its own `stepState`. The default `orientation="auto"`
|
|
26286
|
+
* stacks the steps into a column once the row gets too narrow for them, so they never scroll sideways.
|
|
25628
26287
|
*
|
|
25629
26288
|
* @example
|
|
25630
26289
|
* <et-progress-steps>
|
|
@@ -25634,16 +26293,15 @@ export type ProgressStepsOrientation = (typeof PROGRESS_STEPS_ORIENTATIONS)[keyo
|
|
|
25634
26293
|
* </et-progress-steps>
|
|
25635
26294
|
*/
|
|
25636
26295
|
export declare class ProgressStepsComponent {
|
|
25637
|
-
/** Whether the steps run across the row or down a column. The connector follows. */
|
|
25638
|
-
orientation: import("@angular/core").InputSignal<ProgressStepsOrientation>;
|
|
25639
26296
|
static ɵfac: i0.ɵɵFactoryDeclaration<ProgressStepsComponent, never>;
|
|
25640
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ProgressStepsComponent, "et-progress-steps", never, {
|
|
25641
|
-
|
|
25642
|
-
|
|
25643
|
-
"
|
|
25644
|
-
"
|
|
26297
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ProgressStepsComponent, "et-progress-steps", never, {}, {}, never, ["*"], true, [{
|
|
26298
|
+
directive: typeof ProgressStepsDirective;
|
|
26299
|
+
inputs: {
|
|
26300
|
+
"orientation": "orientation";
|
|
26301
|
+
"minStepSize": "minStepSize";
|
|
25645
26302
|
};
|
|
25646
|
-
|
|
26303
|
+
outputs: {};
|
|
26304
|
+
}]>;
|
|
25647
26305
|
}
|
|
25648
26306
|
export declare const PROGRESS_STEPS_IMPORTS: readonly [typeof ProgressStepsComponent, typeof ProgressStepComponent, typeof ProgressStepRouterActiveDirective];
|
|
25649
26307
|
/**
|
|
@@ -27682,6 +28340,7 @@ export declare class SkeletonTextComponent {
|
|
|
27682
28340
|
* Light by default - the container announces the wait to assistive tech and owns the animation switch;
|
|
27683
28341
|
* the shapes are `<et-skeleton-item>`s sized by your own CSS, or by their `shape` for the common cases.
|
|
27684
28342
|
* Colors come from the surface tokens, so a skeleton reads correctly on any surface it is placed on.
|
|
28343
|
+
* A skeleton nested in another one stays silent: only the outermost is a live region.
|
|
27685
28344
|
*
|
|
27686
28345
|
* @example
|
|
27687
28346
|
* <et-skeleton>
|
|
@@ -27690,6 +28349,7 @@ export declare class SkeletonTextComponent {
|
|
|
27690
28349
|
* </et-skeleton>
|
|
27691
28350
|
*/
|
|
27692
28351
|
export declare class SkeletonComponent {
|
|
28352
|
+
protected outerSkeleton: SkeletonComponent | null;
|
|
27693
28353
|
private injectedLabels;
|
|
27694
28354
|
/**
|
|
27695
28355
|
* Per-instance overrides merged over the injected `LOADER_LABELS`. `loadingContent` is what a screen reader
|
|
@@ -27765,6 +28425,8 @@ export type StandingsZone = {
|
|
|
27765
28425
|
/** What the band means, for the legend. */
|
|
27766
28426
|
label: string;
|
|
27767
28427
|
};
|
|
28428
|
+
/** How the rows of a table with a row detail expand: one at a time, or independently. */
|
|
28429
|
+
export type StandingsExpandMode = 'single' | 'multiple';
|
|
27768
28430
|
/**
|
|
27769
28431
|
* Every string `et-standings` renders or announces. Column headers are abbreviated on screen and spelled
|
|
27770
28432
|
* out for assistive tech, which is the whole reason there are two of each.
|
|
@@ -27800,6 +28462,10 @@ export type StandingsLabels = {
|
|
|
27800
28462
|
legend: string;
|
|
27801
28463
|
/** Announced on the highlighted row, so it is findable without seeing the highlight. */
|
|
27802
28464
|
highlightedRow: string;
|
|
28465
|
+
/** Names the header of the column holding the row detail toggles. */
|
|
28466
|
+
rowDetailColumn: string;
|
|
28467
|
+
/** Names a row's detail toggle; `aria-expanded` says whether it is open. */
|
|
28468
|
+
rowDetailToggle: (participant: string) => string;
|
|
27803
28469
|
/** Names the pick list - what the order being arranged is an order of. */
|
|
27804
28470
|
pickCaption: string;
|
|
27805
28471
|
/** The cut between the last advancing position and the first one below it. */
|
|
@@ -27829,6 +28495,33 @@ export declare const standingsLabelsForLocale: (locale: string) => StandingsLabe
|
|
|
27829
28495
|
export declare const provideStandingsLabels: (labels: import("@ethlete/core").LabelsSource<StandingsLabels>) => import("@angular/core").Provider;
|
|
27830
28496
|
export declare const injectStandingsLabels: () => import("@angular/core").Signal<StandingsLabels>;
|
|
27831
28497
|
export declare const STANDINGS_LABELS: import("@angular/core").InjectionToken<import("@ethlete/core").LabelsSource<StandingsLabels>>;
|
|
28498
|
+
export type StandingsRowDetailContext = {
|
|
28499
|
+
$implicit: NormalizedStandingRow;
|
|
28500
|
+
renderRow: StandingsRenderRow;
|
|
28501
|
+
/** How many columns the table draws, for a full-width cell's `colspan`. */
|
|
28502
|
+
columnCount: number;
|
|
28503
|
+
};
|
|
28504
|
+
/**
|
|
28505
|
+
* Makes every standings row expandable. The template renders the detail's own `<tr>`s straight into the
|
|
28506
|
+
* table, so its cells can line up with the row's columns - or span them all with `columnCount`.
|
|
28507
|
+
*
|
|
28508
|
+
* @example
|
|
28509
|
+
* <et-standings [rows]="rows()" [(expandedRows)]="expanded">
|
|
28510
|
+
* <ng-template let-row let-columnCount="columnCount" etStandingsRowDetail>
|
|
28511
|
+
* <tr><td [attr.colspan]="columnCount">{{ row.participant?.name }}</td></tr>
|
|
28512
|
+
* </ng-template>
|
|
28513
|
+
* </et-standings>
|
|
28514
|
+
*/
|
|
28515
|
+
export declare class StandingsRowDetailDirective {
|
|
28516
|
+
private standings;
|
|
28517
|
+
private destroyRef;
|
|
28518
|
+
private hostElement;
|
|
28519
|
+
templateRef: TemplateRef<StandingsRowDetailContext>;
|
|
28520
|
+
static ngTemplateContextGuard(_directive: StandingsRowDetailDirective, _context: unknown): _context is StandingsRowDetailContext;
|
|
28521
|
+
constructor();
|
|
28522
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<StandingsRowDetailDirective, never>;
|
|
28523
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<StandingsRowDetailDirective, "ng-template[etStandingsRowDetail]", ["etStandingsRowDetail"], {}, {}, never, never, true, never>;
|
|
28524
|
+
}
|
|
27832
28525
|
/** A row paired with whatever the config says about the position it sits in. */
|
|
27833
28526
|
export type StandingsRenderRow = {
|
|
27834
28527
|
row: NormalizedStandingRow;
|
|
@@ -27836,6 +28529,10 @@ export type StandingsRenderRow = {
|
|
|
27836
28529
|
zone: StandingsZone | null;
|
|
27837
28530
|
/** Whether this is the row the consumer asked to highlight. */
|
|
27838
28531
|
isHighlighted: boolean;
|
|
28532
|
+
/** Whether the row's detail is open. Always `false` without a row detail template. */
|
|
28533
|
+
isExpanded: boolean;
|
|
28534
|
+
/** The id for the element holding the row's detail, for the toggle's `aria-controls`. */
|
|
28535
|
+
detailId: string;
|
|
27839
28536
|
};
|
|
27840
28537
|
/**
|
|
27841
28538
|
* Headless standings: takes rows and zone bands and works out what each row means - which band it sits in,
|
|
@@ -27860,6 +28557,15 @@ export declare class StandingsDirective {
|
|
|
27860
28557
|
showLegend: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
27861
28558
|
/** Override this instance's strings - see {@link provideStandingsLabels} for the app-wide version. */
|
|
27862
28559
|
labels: import("@angular/core").InputSignal<Partial<StandingsLabels> | null>;
|
|
28560
|
+
/** The `id`s of the rows whose detail is open. Two-way bindable. @default [] */
|
|
28561
|
+
expandedRows: import("@angular/core").ModelSignal<readonly string[]>;
|
|
28562
|
+
/** `'single'` closes the open row when another one opens; `'multiple'` lets rows open independently. @default 'multiple' */
|
|
28563
|
+
expandMode: import("@angular/core").InputSignal<StandingsExpandMode>;
|
|
28564
|
+
/** The `ng-template[etStandingsRowDetail]` registered here, or `null` when the rows do not expand. */
|
|
28565
|
+
registeredRowDetailTemplate: import("@angular/core").WritableSignal<StandingsRowDetailDirective | null>;
|
|
28566
|
+
/** Whether the rows have a detail to expand into. */
|
|
28567
|
+
isExpandable: import("@angular/core").Signal<boolean>;
|
|
28568
|
+
private readonly DETAIL_ID_PREFIX;
|
|
27863
28569
|
/** The strings in effect here: the injected label set with this instance's `labels` applied. */
|
|
27864
28570
|
resolvedLabels: import("@angular/core").Signal<StandingsLabels>;
|
|
27865
28571
|
/** Every row with its zone and highlight state resolved - what a template iterates. */
|
|
@@ -27871,6 +28577,10 @@ export declare class StandingsDirective {
|
|
|
27871
28577
|
/** Whether any row reports a difference. */
|
|
27872
28578
|
hasDifference: import("@angular/core").Signal<boolean>;
|
|
27873
28579
|
constructor();
|
|
28580
|
+
/** Whether the row with this `id` has its detail open. Always `false` without a row detail template. */
|
|
28581
|
+
isRowExpanded(rowId: string): boolean;
|
|
28582
|
+
/** Open the row's detail, or close it when it is open. In `'single'` mode opening a row closes the others. */
|
|
28583
|
+
toggleRow(rowId: string): void;
|
|
27874
28584
|
private assertZonesDoNotOverlap;
|
|
27875
28585
|
static ɵfac: i0.ɵɵFactoryDeclaration<StandingsDirective, never>;
|
|
27876
28586
|
static ɵdir: i0.ɵɵDirectiveDeclaration<StandingsDirective, "[etStandings]", ["etStandings"], {
|
|
@@ -27899,7 +28609,19 @@ export declare class StandingsDirective {
|
|
|
27899
28609
|
"required": false;
|
|
27900
28610
|
"isSignal": true;
|
|
27901
28611
|
};
|
|
27902
|
-
|
|
28612
|
+
"expandedRows": {
|
|
28613
|
+
"alias": "expandedRows";
|
|
28614
|
+
"required": false;
|
|
28615
|
+
"isSignal": true;
|
|
28616
|
+
};
|
|
28617
|
+
"expandMode": {
|
|
28618
|
+
"alias": "expandMode";
|
|
28619
|
+
"required": false;
|
|
28620
|
+
"isSignal": true;
|
|
28621
|
+
};
|
|
28622
|
+
}, {
|
|
28623
|
+
"expandedRows": "expandedRowsChange";
|
|
28624
|
+
}, never, never, true, never>;
|
|
27903
28625
|
}
|
|
27904
28626
|
export type StandingsPickMarkContext = {
|
|
27905
28627
|
$implicit: StandingsPickRow;
|
|
@@ -28085,6 +28807,8 @@ export declare const STANDINGS_ERROR_CODES: {
|
|
|
28085
28807
|
readonly OVERLAPPING_ZONES: 4400;
|
|
28086
28808
|
/** More than one mark template was given to one pick list. */
|
|
28087
28809
|
readonly DUPLICATE_MARK_TEMPLATE: 4401;
|
|
28810
|
+
/** More than one row detail template was given to one table. */
|
|
28811
|
+
readonly DUPLICATE_ROW_DETAIL_TEMPLATE: 4402;
|
|
28088
28812
|
};
|
|
28089
28813
|
/**
|
|
28090
28814
|
* A group table a viewer predicts the order of: the participants as a list of cards, reorderable by drag
|
|
@@ -28190,8 +28914,12 @@ export declare class StandingsPickComponent {
|
|
|
28190
28914
|
*/
|
|
28191
28915
|
export declare class StandingsComponent {
|
|
28192
28916
|
protected standings: StandingsDirective;
|
|
28917
|
+
private matchLabels;
|
|
28193
28918
|
protected labels: import("@angular/core").Signal<import("@ethlete/components").StandingsLabels>;
|
|
28919
|
+
protected columnCount: import("@angular/core").Signal<number>;
|
|
28194
28920
|
constructor();
|
|
28921
|
+
protected participantName(row: NormalizedStandingRow): string;
|
|
28922
|
+
protected toggleRow(event: Event, rowId: string): void;
|
|
28195
28923
|
/** Signed, because a difference of `-4` and one of `4` are the two things this column exists to tell apart. */
|
|
28196
28924
|
protected differenceText(difference: number | null): string;
|
|
28197
28925
|
static ɵfac: i0.ɵɵFactoryDeclaration<StandingsComponent, never>;
|
|
@@ -28203,15 +28931,19 @@ export declare class StandingsComponent {
|
|
|
28203
28931
|
"highlightedRowId": "highlightedRowId";
|
|
28204
28932
|
"showLegend": "showLegend";
|
|
28205
28933
|
"labels": "labels";
|
|
28934
|
+
"expandedRows": "expandedRows";
|
|
28935
|
+
"expandMode": "expandMode";
|
|
28936
|
+
};
|
|
28937
|
+
outputs: {
|
|
28938
|
+
"expandedRowsChange": "expandedRowsChange";
|
|
28206
28939
|
};
|
|
28207
|
-
outputs: {};
|
|
28208
28940
|
}]>;
|
|
28209
28941
|
}
|
|
28210
28942
|
/**
|
|
28211
28943
|
* The standings table (`<et-standings>`) and the headless directive to build a table of your own. Pulls in
|
|
28212
28944
|
* the match domain's participant primitive for the name column.
|
|
28213
28945
|
*/
|
|
28214
|
-
export declare const STANDINGS_IMPORTS: readonly [typeof StandingsComponent, typeof StandingsDirective];
|
|
28946
|
+
export declare const STANDINGS_IMPORTS: readonly [typeof StandingsComponent, typeof StandingsDirective, typeof StandingsRowDetailDirective];
|
|
28215
28947
|
/**
|
|
28216
28948
|
* The predicted-order list (`<et-standings-pick>`), its headless directive, and the per-row mark template
|
|
28217
28949
|
* a scored list fills.
|
|
@@ -28275,8 +29007,10 @@ export declare class StatTileSparklineComponent {
|
|
|
28275
29007
|
}, {}, never, never, true, never>;
|
|
28276
29008
|
}
|
|
28277
29009
|
export type StatTileFormatter = (value: number) => string;
|
|
28278
|
-
/** Intl options for `Intl.NumberFormat` in the app locale,
|
|
28279
|
-
export type StatTileFormat = Intl.NumberFormatOptions | StatTileFormatter;
|
|
29010
|
+
/** Intl options for `Intl.NumberFormat` in the app locale, a function that returns the finished string, or `'rank'` for `#<n>`. */
|
|
29011
|
+
export type StatTileFormat = Intl.NumberFormatOptions | StatTileFormatter | 'rank';
|
|
29012
|
+
export type StatTileAlign = 'start' | 'center';
|
|
29013
|
+
export type StatTileLabelPosition = 'above' | 'below';
|
|
28280
29014
|
export type StatTileDirection = 'up' | 'down' | 'neutral';
|
|
28281
29015
|
export type StatTileGoodDirection = 'up' | 'down';
|
|
28282
29016
|
export type StatTileSentiment = 'good' | 'bad' | 'neutral';
|
|
@@ -28297,7 +29031,7 @@ export declare class StatTileComponent {
|
|
|
28297
29031
|
label: import("@angular/core").InputSignal<string>;
|
|
28298
29032
|
/** A number is formatted with `format`; a string is shown as given. `null` shows a dash. */
|
|
28299
29033
|
value: import("@angular/core").InputSignal<string | number | null>;
|
|
28300
|
-
/** How a numeric value is formatted. @default compact from 10,000 (`12.9K`), one fraction digit */
|
|
29034
|
+
/** How a numeric value is formatted. `'rank'` shows an integer as `#<n>`. @default compact from 10,000 (`12.9K`), one fraction digit */
|
|
28301
29035
|
format: import("@angular/core").InputSignal<StatTileFormat | null>;
|
|
28302
29036
|
/** Shown after the value, smaller - `ms`, `users`. */
|
|
28303
29037
|
unit: import("@angular/core").InputSignal<string | null>;
|
|
@@ -28309,6 +29043,10 @@ export declare class StatTileComponent {
|
|
|
28309
29043
|
goodDirection: import("@angular/core").InputSignal<StatTileGoodDirection | null>;
|
|
28310
29044
|
/** The comparison the delta is measured against, or any short context line - `vs last month`. */
|
|
28311
29045
|
caption: import("@angular/core").InputSignal<string | null>;
|
|
29046
|
+
/** Aligns the label, value, footer and sparkline. */
|
|
29047
|
+
align: import("@angular/core").InputSignal<StatTileAlign>;
|
|
29048
|
+
/** Shows the label above or below the value. Only the visual order changes; the label stays first for assistive tech. */
|
|
29049
|
+
labelPosition: import("@angular/core").InputSignal<StatTileLabelPosition>;
|
|
28312
29050
|
/** Replaces the value and delta with a skeleton. The label stays. */
|
|
28313
29051
|
loading: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
28314
29052
|
private hasWarnedMissingTheme;
|
|
@@ -28363,6 +29101,16 @@ export declare class StatTileComponent {
|
|
|
28363
29101
|
"required": false;
|
|
28364
29102
|
"isSignal": true;
|
|
28365
29103
|
};
|
|
29104
|
+
"align": {
|
|
29105
|
+
"alias": "align";
|
|
29106
|
+
"required": false;
|
|
29107
|
+
"isSignal": true;
|
|
29108
|
+
};
|
|
29109
|
+
"labelPosition": {
|
|
29110
|
+
"alias": "labelPosition";
|
|
29111
|
+
"required": false;
|
|
29112
|
+
"isSignal": true;
|
|
29113
|
+
};
|
|
28366
29114
|
"loading": {
|
|
28367
29115
|
"alias": "loading";
|
|
28368
29116
|
"required": false;
|
|
@@ -30299,12 +31047,16 @@ export type ReconcilableColumn = {
|
|
|
30299
31047
|
*/
|
|
30300
31048
|
export declare const reconcileColumnOrder: (keys: string[], previous: string[] | undefined) => string[];
|
|
30301
31049
|
/**
|
|
30302
|
-
* The hidden-column set after a `columns` change:
|
|
30303
|
-
*
|
|
31050
|
+
* The hidden-column set after a `columns` change: the last write wins. A column whose declared `hidden`
|
|
31051
|
+
* changed takes the new declaration; otherwise a column the user hid stays hidden and one they revealed
|
|
31052
|
+
* stays visible, while a column that wasn't there before takes its declared `hidden`. With
|
|
31053
|
+
* `columnsAreRestored`, `previous.columns` carry a restored state rather than a declaration, so no
|
|
31054
|
+
* declared change is read from them.
|
|
30304
31055
|
*/
|
|
30305
31056
|
export declare const reconcileHiddenColumns: (columns: readonly ReconcilableColumn[], previous: {
|
|
30306
31057
|
columns: readonly ReconcilableColumn[];
|
|
30307
31058
|
hidden: ReadonlySet<string>;
|
|
31059
|
+
columnsAreRestored?: boolean;
|
|
30308
31060
|
} | undefined) => Set<string>;
|
|
30309
31061
|
/** The user's width overrides after a `columns` change, dropping the ones whose column is gone. */
|
|
30310
31062
|
export declare const reconcileColumnWidths: (columns: readonly ReconcilableColumn[], previous: Record<string, number> | undefined) => Record<string, number>;
|
|
@@ -30557,6 +31309,11 @@ export type TableColumn<T, TValue = unknown> = {
|
|
|
30557
31309
|
* @default 96
|
|
30558
31310
|
*/
|
|
30559
31311
|
minWidth?: number;
|
|
31312
|
+
/**
|
|
31313
|
+
* Render this column only from this breakpoint up. Below it the column is left out everywhere - header, cells,
|
|
31314
|
+
* footer, the column chooser and a `'visible'` CSV export - without touching the user's hidden columns.
|
|
31315
|
+
*/
|
|
31316
|
+
visibleFrom?: Breakpoint;
|
|
30560
31317
|
/** Hide the column initially. Toggle later via table state. @default false */
|
|
30561
31318
|
hidden?: boolean;
|
|
30562
31319
|
/**
|
|
@@ -30658,14 +31415,35 @@ export type TableHeaderGroup = {
|
|
|
30658
31415
|
};
|
|
30659
31416
|
/** A table's `rowKey`: the stable identity of a row. */
|
|
30660
31417
|
export type TableRowKey<T = unknown> = (row: T) => string | number;
|
|
31418
|
+
/**
|
|
31419
|
+
* A row link given as router commands plus the rest of what `routerLink` takes - resolved by
|
|
31420
|
+
* `etTableRowRouterLink`.
|
|
31421
|
+
*/
|
|
31422
|
+
export type TableRowCommandsLink = {
|
|
31423
|
+
commands: readonly unknown[];
|
|
31424
|
+
queryParams?: Record<string, unknown> | null;
|
|
31425
|
+
fragment?: string;
|
|
31426
|
+
/** Rendered as the `title` attribute of the row's anchor. */
|
|
31427
|
+
title?: string;
|
|
31428
|
+
href?: never;
|
|
31429
|
+
};
|
|
31430
|
+
/** A row link given as a plain `href`, with an optional `title` for the row's anchor. */
|
|
31431
|
+
export type TableRowHrefLink = {
|
|
31432
|
+
href: string;
|
|
31433
|
+
title?: string;
|
|
31434
|
+
commands?: never;
|
|
31435
|
+
queryParams?: never;
|
|
31436
|
+
fragment?: never;
|
|
31437
|
+
};
|
|
30661
31438
|
/**
|
|
30662
31439
|
* Where a row links to - what a `rowLink` callback answers with.
|
|
30663
31440
|
*
|
|
30664
31441
|
* A **string** is an `href` the browser follows, which is what an external URL or an app without the
|
|
30665
31442
|
* Angular router needs. An **array** is router commands (`['/orders', order.id]`), resolved and
|
|
30666
|
-
* navigated by `etTableRowRouterLink` - the table itself never depends on the router.
|
|
31443
|
+
* navigated by `etTableRowRouterLink` - the table itself never depends on the router. An **object**
|
|
31444
|
+
* is either of those with a `title`, and the commands form also takes `queryParams` and `fragment`.
|
|
30667
31445
|
*/
|
|
30668
|
-
export type TableRowLink = string | readonly unknown[];
|
|
31446
|
+
export type TableRowLink = string | readonly unknown[] | TableRowCommandsLink | TableRowHrefLink;
|
|
30669
31447
|
/**
|
|
30670
31448
|
* The part of an `et-table` a CSV export reads. `TableComponent` satisfies it - the export is typed
|
|
30671
31449
|
* against this shape rather than against the component so it stays a pure function (and so the
|
|
@@ -31269,12 +32047,12 @@ export type TableCellEditing = {
|
|
|
31269
32047
|
*/
|
|
31270
32048
|
export type TableRowNavigation = {
|
|
31271
32049
|
/** The `href` to render for these commands. */
|
|
31272
|
-
href(
|
|
32050
|
+
href(link: TableRowCommandsLink): string;
|
|
31273
32051
|
/**
|
|
31274
32052
|
* Follow the link in place of the browser. Returns whether it did: a modified click (middle button,
|
|
31275
32053
|
* Ctrl/Cmd/Shift) is left alone, which is what keeps "open in a new tab" working.
|
|
31276
32054
|
*/
|
|
31277
|
-
navigate(
|
|
32055
|
+
navigate(link: TableRowCommandsLink, event: MouseEvent): boolean;
|
|
31278
32056
|
/** Whether the navigator is live - see {@link TableHeaderAdornment.enabled}. */
|
|
31279
32057
|
enabled?: Signal<boolean>;
|
|
31280
32058
|
};
|
|
@@ -31563,8 +32341,10 @@ export type TableFeatureHost = {
|
|
|
31563
32341
|
setSort(key: string, direction: TableSortDirection | null): void;
|
|
31564
32342
|
/** Show or hide a column. */
|
|
31565
32343
|
setColumnVisible(key: string, visible: boolean): void;
|
|
31566
|
-
/** Every declared column in order, hidden ones included
|
|
32344
|
+
/** Every declared column in order, hidden ones included. */
|
|
31567
32345
|
allColumns(): TableColumnMeta[];
|
|
32346
|
+
/** The columns whose `visibleFrom` breakpoint is met, hidden ones included - what a "choose columns" panel lists. */
|
|
32347
|
+
availableColumns(): TableColumnMeta[];
|
|
31568
32348
|
/** Whether a column is currently shown. */
|
|
31569
32349
|
isColumnVisible(key: string): boolean;
|
|
31570
32350
|
/** Show every hidden column again. */
|
|
@@ -32160,7 +32940,7 @@ export declare class TableCellErrorTooltipDirective {
|
|
|
32160
32940
|
}, {}, never, never, true, never>;
|
|
32161
32941
|
}
|
|
32162
32942
|
/** The slice of the table a column chooser drives - any `et-table` satisfies it. */
|
|
32163
|
-
export type TableColumnVisibilityHost = Pick<TableFeatureHost, '
|
|
32943
|
+
export type TableColumnVisibilityHost = Pick<TableFeatureHost, 'availableColumns' | 'visibleColumnsMeta' | 'isColumnVisible' | 'setColumnVisible' | 'showAllColumns' | 'resolvedLabels'>;
|
|
32164
32944
|
/**
|
|
32165
32945
|
* A "columns" button and menu for toggling column visibility, placed wherever you like - a toolbar
|
|
32166
32946
|
* above the table, the `[etTableFooter]` slot, a page header.
|
|
@@ -32979,10 +33759,10 @@ export declare class TableRowRouterLinkDirective {
|
|
|
32979
33759
|
/** See {@link TableRowRouterLinkConfig}. */
|
|
32980
33760
|
config: import("@angular/core").InputSignalWithTransform<TableFeatureConfig, "" | TableFeatureConfig>;
|
|
32981
33761
|
constructor();
|
|
32982
|
-
/** The URL
|
|
32983
|
-
href(
|
|
32984
|
-
/** Navigate to
|
|
32985
|
-
navigate(
|
|
33762
|
+
/** The URL this link resolves to - what the row's anchor carries as its `href`. */
|
|
33763
|
+
href(link: readonly unknown[] | TableRowCommandsLink): string;
|
|
33764
|
+
/** Navigate to this link, unless the click asked for the browser's own behaviour. */
|
|
33765
|
+
navigate(link: readonly unknown[] | TableRowCommandsLink, event: MouseEvent): boolean;
|
|
32986
33766
|
private urlTree;
|
|
32987
33767
|
static ɵfac: i0.ɵɵFactoryDeclaration<TableRowRouterLinkDirective, never>;
|
|
32988
33768
|
static ɵdir: i0.ɵɵDirectiveDeclaration<TableRowRouterLinkDirective, "[etTableRowRouterLink]", ["etTableRowRouterLink"], {
|
|
@@ -33321,6 +34101,8 @@ type TableBodyRowVm<T> = {
|
|
|
33321
34101
|
link: TableRowLink | null;
|
|
33322
34102
|
/** The `href` the row's anchor carries - the link itself, or a navigator's resolution of it. */
|
|
33323
34103
|
href: string | null;
|
|
34104
|
+
/** The link's `title`, rendered on the row's anchor. */
|
|
34105
|
+
title: string | null;
|
|
33324
34106
|
/** Id of the cell naming the link, which names the (textless) anchor via `aria-labelledby`. */
|
|
33325
34107
|
linkLabelId: string;
|
|
33326
34108
|
/** The registered detail row to stamp under this row, while it is open. */
|
|
@@ -33363,6 +34145,7 @@ export declare class TableComponent<T> implements TableFeatureHost {
|
|
|
33363
34145
|
* just to render a list, so the error UI then stays on the surface's own colors.
|
|
33364
34146
|
*/
|
|
33365
34147
|
errorColorTheme: import("@angular/core").Signal<import("@ethlete/core").ColorTheme | null>;
|
|
34148
|
+
private currentBreakpoint;
|
|
33366
34149
|
/** The rows to render. */
|
|
33367
34150
|
data: import("@angular/core").InputSignal<readonly T[]>;
|
|
33368
34151
|
/**
|
|
@@ -33621,6 +34404,7 @@ export declare class TableComponent<T> implements TableFeatureHost {
|
|
|
33621
34404
|
private columnTemplateList;
|
|
33622
34405
|
columnTemplates: import("@angular/core").Signal<Record<TableTemplateSlot, Map<string, TemplateRef<unknown>>>>;
|
|
33623
34406
|
private orderedColumns;
|
|
34407
|
+
private breakpointColumns;
|
|
33624
34408
|
/**
|
|
33625
34409
|
* Columns currently displayed, in order. While a feature pins columns, each carries its effective
|
|
33626
34410
|
* `sticky` (a runtime pin wins over the declared one) and the pinned ones render in their edge's block.
|
|
@@ -33737,21 +34521,23 @@ export declare class TableComponent<T> implements TableFeatureHost {
|
|
|
33737
34521
|
/**
|
|
33738
34522
|
* The keys of the currently hidden columns, in declared order. Nothing in the table's own chrome
|
|
33739
34523
|
* shows a hidden column - the column menu's "Hide column" takes one away and has no way back - so
|
|
33740
|
-
* this is what an app builds its own "columns" chooser from, together with {@link
|
|
34524
|
+
* this is what an app builds its own "columns" chooser from, together with {@link availableColumns},
|
|
33741
34525
|
* {@link setColumnVisible} and {@link showAllColumns}.
|
|
33742
34526
|
*
|
|
33743
34527
|
* @example
|
|
33744
34528
|
* // a menu of every column, checked when visible
|
|
33745
|
-
* for (const column of table.
|
|
34529
|
+
* for (const column of table.availableColumns()) {
|
|
33746
34530
|
* … table.isColumnVisible(column.key) … table.toggleColumnVisibility(column.key) …
|
|
33747
34531
|
* }
|
|
33748
34532
|
*/
|
|
33749
34533
|
hiddenColumnKeys: import("@angular/core").Signal<string[]>;
|
|
34534
|
+
/** Every declared column in the current order, hidden ones included - the counterpart to {@link visibleColumns}. */
|
|
34535
|
+
allColumns: import("@angular/core").Signal<TableColumnDef<T>[]>;
|
|
33750
34536
|
/**
|
|
33751
|
-
*
|
|
33752
|
-
*
|
|
34537
|
+
* The columns whose `visibleFrom` breakpoint is met, user-hidden ones included - the list a "columns"
|
|
34538
|
+
* chooser iterates.
|
|
33753
34539
|
*/
|
|
33754
|
-
|
|
34540
|
+
availableColumns: import("@angular/core").Signal<TableColumnDef<T>[]>;
|
|
33755
34541
|
private pointerGestureClaims;
|
|
33756
34542
|
constructor();
|
|
33757
34543
|
/** The `aria-rowindex` of an open row's detail row, or `null` while every row is in the DOM. Part of the feature contract. */
|
|
@@ -35117,22 +35903,70 @@ export declare class TimePickerComponent {
|
|
|
35117
35903
|
}]>;
|
|
35118
35904
|
}
|
|
35119
35905
|
export declare const TIME_PICKER_IMPORTS: readonly [typeof TimePickerComponent, typeof TimePickerDirective, typeof TimePickerRingDirective, typeof TimePickerRingHandleDirective];
|
|
35906
|
+
/** The status of a timeline item. Same vocabulary as a progress step's state. */
|
|
35907
|
+
export type TimelineItemStatus = ProgressStepState;
|
|
35908
|
+
/**
|
|
35909
|
+
* The behavior of one timeline item, with no look: the `listitem` role, its optional `status` on
|
|
35910
|
+
* `data-status`, and `aria-current="step"` on the `current` one.
|
|
35911
|
+
*
|
|
35912
|
+
* @example
|
|
35913
|
+
* <li etTimelineItem status="error">Deployment failed</li>
|
|
35914
|
+
*/
|
|
35915
|
+
export declare class TimelineItemDirective {
|
|
35916
|
+
status: import("@angular/core").InputSignal<ProgressStepState | null>;
|
|
35917
|
+
protected ariaCurrent: import("@angular/core").Signal<"step" | null>;
|
|
35918
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TimelineItemDirective, never>;
|
|
35919
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<TimelineItemDirective, "[etTimelineItem]", ["etTimelineItem"], {
|
|
35920
|
+
"status": {
|
|
35921
|
+
"alias": "status";
|
|
35922
|
+
"required": false;
|
|
35923
|
+
"isSignal": true;
|
|
35924
|
+
};
|
|
35925
|
+
}, {}, never, never, true, never>;
|
|
35926
|
+
}
|
|
35927
|
+
/**
|
|
35928
|
+
* The behavior of a timeline, with no look: the `list` role for the `etTimelineItem`s inside it. `et-timeline`
|
|
35929
|
+
* is this directive plus the default rail.
|
|
35930
|
+
*
|
|
35931
|
+
* @example
|
|
35932
|
+
* <ol etTimeline>
|
|
35933
|
+
* <li etTimelineItem status="complete">Kick-off</li>
|
|
35934
|
+
* </ol>
|
|
35935
|
+
*/
|
|
35936
|
+
export declare class TimelineDirective {
|
|
35937
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TimelineDirective, never>;
|
|
35938
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<TimelineDirective, "[etTimeline]", ["etTimeline"], {}, {}, never, never, true, never>;
|
|
35939
|
+
}
|
|
35120
35940
|
/**
|
|
35121
35941
|
* One event on an `et-timeline`: a marker on the rail plus whatever content describes it. Project
|
|
35122
35942
|
* `[etTimelineTime]` for the timestamp above the content, and `[etTimelineMarker]` to replace the
|
|
35123
35943
|
* default dot with an icon or an avatar. `color` scopes a color theme to this item, which is what
|
|
35124
35944
|
* tints its marker.
|
|
35125
35945
|
*
|
|
35946
|
+
* `status` takes the progress-step vocabulary: a resolved status shows its icon in the marker and is
|
|
35947
|
+
* announced, and `success`, `warning` and `error` recolor the item in the app's matching semantic theme.
|
|
35948
|
+
*
|
|
35126
35949
|
* @example
|
|
35127
|
-
* <et-timeline-item
|
|
35950
|
+
* <et-timeline-item status="error">
|
|
35128
35951
|
* <span etTimelineTime>14:02</span>
|
|
35129
|
-
* <i etTimelineMarker etIcon="et-triangle-exclamation"></i>
|
|
35130
35952
|
* <p>Deployment failed</p>
|
|
35131
35953
|
* </et-timeline-item>
|
|
35132
35954
|
*/
|
|
35133
35955
|
export declare class TimelineItemComponent {
|
|
35956
|
+
private item;
|
|
35957
|
+
protected visuals: {
|
|
35958
|
+
icon: import("@angular/core").Signal<string | null>;
|
|
35959
|
+
label: import("@angular/core").Signal<string | null>;
|
|
35960
|
+
};
|
|
35961
|
+
constructor();
|
|
35134
35962
|
static ɵfac: i0.ɵɵFactoryDeclaration<TimelineItemComponent, never>;
|
|
35135
35963
|
static ɵcmp: i0.ɵɵComponentDeclaration<TimelineItemComponent, "et-timeline-item", never, {}, {}, never, ["[etTimelineMarker]", "[etTimelineTime]", "*"], true, [{
|
|
35964
|
+
directive: typeof TimelineItemDirective;
|
|
35965
|
+
inputs: {
|
|
35966
|
+
"status": "status";
|
|
35967
|
+
};
|
|
35968
|
+
outputs: {};
|
|
35969
|
+
}, {
|
|
35136
35970
|
directive: typeof i1$1.ProvideColorDirective;
|
|
35137
35971
|
inputs: {
|
|
35138
35972
|
"etProvideColor": "color";
|
|
@@ -35162,7 +35996,11 @@ export declare class TimelineItemComponent {
|
|
|
35162
35996
|
*/
|
|
35163
35997
|
export declare class TimelineComponent {
|
|
35164
35998
|
static ɵfac: i0.ɵɵFactoryDeclaration<TimelineComponent, never>;
|
|
35165
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<TimelineComponent, "et-timeline", never, {}, {}, never, ["*"], true,
|
|
35999
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TimelineComponent, "et-timeline", never, {}, {}, never, ["*"], true, [{
|
|
36000
|
+
directive: typeof TimelineDirective;
|
|
36001
|
+
inputs: {};
|
|
36002
|
+
outputs: {};
|
|
36003
|
+
}]>;
|
|
35166
36004
|
}
|
|
35167
36005
|
export declare const TIMELINE_IMPORTS: readonly [typeof TimelineComponent, typeof TimelineItemComponent];
|
|
35168
36006
|
export type ToggletipContent = string | TemplateRef<unknown>;
|
|
@@ -35899,5 +36737,5 @@ export declare const provideUnsavedChangesLabels: (labels: import("@ethlete/core
|
|
|
35899
36737
|
export declare const injectUnsavedChangesLabels: () => import("@angular/core").Signal<UnsavedChangesLabels>;
|
|
35900
36738
|
export declare const UNSAVED_CHANGES_LABELS: import("@angular/core").InjectionToken<import("@ethlete/core").LabelsSource<UnsavedChangesLabels>>;
|
|
35901
36739
|
/** The version of `@ethlete/components` this build was cut from. */
|
|
35902
|
-
export declare const COMPONENTS_VERSION = "1.0.0-next.
|
|
35903
|
-
export { type AppointmentTreeNode, BRACKET_DATA_LAYOUT, BRACKET_ERROR_CODES, BRACKET_ROUND_MIRROR_TYPE, BRACKET_SWISS_GROUP_COLOR_TYPE, type Bracket, type BracketByeSlotSource, type BracketComponents, type BracketContinueComponent, type BracketDataLayout, type BracketDataSource, type BracketDrawing, type BracketEdge, type BracketExternalSlotSource, type BracketGradient, type BracketGradientStop, 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 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 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 ScrollableChrome, type ScrollableChromeSlot, type ScrollableDirection, type ScrollableIntersectionChange, type ScrollableItemSize, type ScrollableLoadingTemplatePosition, type ScrollableLoadingTemplateRef, type ScrollableMaskVariant, type ScrollableNavigation, type ScrollableNavigationConfig, type ScrollableNavigationItem, 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 };
|
|
36740
|
+
export declare const COMPONENTS_VERSION = "1.0.0-next.84";
|
|
36741
|
+
export { type AppointmentTreeNode, BRACKET_DATA_LAYOUT, BRACKET_ERROR_CODES, BRACKET_ROUND_MIRROR_TYPE, BRACKET_SWISS_GROUP_COLOR_TYPE, type Bracket, type BracketByeSlotSource, type BracketComponents, type BracketContinueComponent, type BracketDataLayout, type BracketDataSource, type BracketDrawing, type BracketEdge, type BracketExternalSlotSource, type BracketGradient, type BracketGradientStop, 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 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 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 ScrollableChrome, type ScrollableChromeSlot, type ScrollableDirection, type ScrollableIntersectionChange, type ScrollableItemSize, type ScrollableLoadingTemplatePosition, type ScrollableLoadingTemplateRef, type ScrollableMaskVariant, type ScrollableNavigation, type ScrollableNavigationConfig, type ScrollableNavigationItem, 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 };
|