@ethlete/components 1.0.0-next.88 → 1.0.0-next.90
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 +45 -0
- package/design/sdk/components/accent-on-light/accent-on-light.ts +5 -0
- package/design/sdk/components/accordion/accordion.ts +11 -0
- package/design/sdk/components/action-sheet/action-sheet.ts +37 -1
- package/design/sdk/components/anchored-dialog/anchored-dialog.css +2 -5
- package/design/sdk/components/anchored-dialog/anchored-dialog.ts +22 -8
- package/design/sdk/components/avatar/avatar.ts +16 -0
- package/design/sdk/components/badge/badge.css +18 -0
- package/design/sdk/components/badge/badge.ts +39 -3
- package/design/sdk/components/banner/banner.ts +48 -1
- package/design/sdk/components/bracket/bracket.ts +17 -0
- package/design/sdk/components/breadcrumb/breadcrumb.ts +15 -1
- package/design/sdk/components/button/button.ts +106 -3
- package/design/sdk/components/calendar/calendar.ts +56 -4
- package/design/sdk/components/card/card.ts +50 -1
- package/design/sdk/components/carousel/carousel.ts +60 -5
- package/design/sdk/components/chart/chart.ts +31 -2
- package/design/sdk/components/checkbox/checkbox.ts +53 -3
- package/design/sdk/components/chip/chip.ts +39 -8
- package/design/sdk/components/copy-button/copy-button.ts +18 -1
- package/design/sdk/components/description-list/description-list.ts +10 -0
- package/design/sdk/components/dialog/dialog.ts +71 -1
- package/design/sdk/components/divider/divider.ts +5 -0
- package/design/sdk/components/empty-state/empty-state.ts +10 -0
- package/design/sdk/components/floating-action/floating-action.ts +15 -0
- package/design/sdk/components/form-field/form-field.ts +102 -16
- package/design/sdk/components/grid/grid.ts +16 -1
- package/design/sdk/components/input/input.ts +50 -0
- package/design/sdk/components/kbd/kbd.ts +12 -0
- package/design/sdk/components/loader/loader.ts +11 -0
- package/design/sdk/components/masonry/masonry.ts +7 -0
- package/design/sdk/components/match/match.ts +17 -0
- package/design/sdk/components/menu/menu.ts +17 -0
- package/design/sdk/components/notification/notification.ts +19 -0
- package/design/sdk/components/otp-input/otp-input.ts +21 -0
- package/design/sdk/components/pagination/pagination.ts +22 -1
- package/design/sdk/components/picture/picture.ts +15 -0
- package/design/sdk/components/progress-steps/progress-steps.ts +17 -0
- package/design/sdk/components/query-error/query-error.ts +26 -1
- package/design/sdk/components/radio-group/radio-group.ts +43 -1
- package/design/sdk/components/scheduler/scheduler.ts +34 -1
- package/design/sdk/components/scrollable/scrollable.ts +58 -2
- package/design/sdk/components/scrollbar/scrollbar.css +1 -1
- package/design/sdk/components/scrollbar/scrollbar.ts +28 -0
- package/design/sdk/components/select/select.ts +26 -0
- package/design/sdk/components/select/shared/select-part.ts +4 -12
- package/design/sdk/components/select-panel/select-panel.ts +19 -0
- package/design/sdk/components/skeleton/skeleton.ts +7 -0
- package/design/sdk/components/slider/slider.ts +34 -0
- package/design/sdk/components/standings/standings.ts +16 -1
- package/design/sdk/components/stat-tile/stat-tile.ts +12 -0
- package/design/sdk/components/stream/stream.ts +23 -3
- package/design/sdk/components/switch/switch.ts +32 -4
- package/design/sdk/components/table/table.ts +128 -12
- package/design/sdk/components/tabs/tabs.ts +22 -1
- package/design/sdk/components/textarea/textarea.ts +63 -2
- package/design/sdk/components/timeline/timeline.ts +11 -0
- package/design/sdk/components/toolbar/toolbar.ts +16 -0
- package/design/sdk/components/tooltip/tooltip.ts +11 -0
- package/design/sdk/components/tree/tree.ts +20 -1
- package/design/sdk/foundations/colors/colors.ts +22 -0
- package/design/sdk/foundations/elevation/elevation.ts +7 -0
- package/design/sdk/foundations/icons/icons.ts +6 -0
- package/design/sdk/ready.json +334 -87
- package/design/sdk/rule-baseline.json +48 -0
- package/design/table.ts +11 -4
- package/design/tooltip.ts +7 -1
- package/fesm2022/ethlete-components.mjs +528 -103
- package/fesm2022/ethlete-components.mjs.map +1 -1
- package/package.json +1 -1
- package/src/lib/accordion/accordion-group.component.css +1 -1
- package/src/lib/accordion/accordion.component.css +19 -5
- package/src/lib/bracket/bracket.component.css +4 -1
- package/src/lib/button/button-properties-styles.component.css +46 -0
- package/src/lib/button/button.component.css +3 -2
- package/src/lib/button/fab.component.css +8 -2
- package/src/lib/button/icon-button.component.css +3 -3
- package/src/lib/forms/choice-field/choice-field.component.css +4 -2
- package/src/lib/forms/dropzone/dropzone-crop.component.css +21 -0
- package/src/lib/forms/form-field/form-field-text-shell-styles.component.css +5 -4
- package/src/lib/forms/select/select-option-styles.component.css +1 -0
- package/src/lib/match/match-card.component.css +8 -2
- package/src/lib/match/match-participant.component.css +21 -1
- package/src/lib/progress-steps/progress-step.component.css +12 -0
- package/src/lib/stream/consent/stream-consent.component.css +1 -0
- package/src/lib/stream/error/stream-player-error.component.css +1 -0
- package/src/lib/stream/stream-overlay-card-styles.component.css +9 -3
- package/src/lib/table/table.component.css +6 -2
- package/src/lib/tabs/tab-bar-styles.component.css +8 -8
- package/src/lib/timeline/timeline-item.component.css +13 -1
- package/types/ethlete-components.d.ts +136 -13
- package/design/sdk/components/switch/switch.css +0 -37
|
@@ -188,8 +188,16 @@ export declare class AccordionGroupDirective {
|
|
|
188
188
|
* </et-accordion-group>
|
|
189
189
|
*/
|
|
190
190
|
export declare class AccordionGroupComponent {
|
|
191
|
+
/** Keep the hairline under the last accordion, which the group drops by default. */
|
|
192
|
+
lastDivider: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
191
193
|
static ɵfac: i0.ɵɵFactoryDeclaration<AccordionGroupComponent, never>;
|
|
192
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<AccordionGroupComponent, "et-accordion-group", never, {
|
|
194
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AccordionGroupComponent, "et-accordion-group", never, {
|
|
195
|
+
"lastDivider": {
|
|
196
|
+
"alias": "lastDivider";
|
|
197
|
+
"required": false;
|
|
198
|
+
"isSignal": true;
|
|
199
|
+
};
|
|
200
|
+
}, {}, never, ["*"], true, [{
|
|
193
201
|
directive: typeof AccordionGroupDirective;
|
|
194
202
|
inputs: {
|
|
195
203
|
"autoCloseOthers": "autoCloseOthers";
|
|
@@ -11078,6 +11086,7 @@ export type FormFieldAppearance = (typeof FORM_FIELD_APPEARANCES)[keyof typeof F
|
|
|
11078
11086
|
export declare const FORM_FIELD_FILLS: {
|
|
11079
11087
|
readonly TRANSPARENT: "transparent";
|
|
11080
11088
|
readonly FILLED: "filled";
|
|
11089
|
+
readonly SUNKEN: "sunken";
|
|
11081
11090
|
};
|
|
11082
11091
|
export type FormFieldFill = (typeof FORM_FIELD_FILLS)[keyof typeof FORM_FIELD_FILLS];
|
|
11083
11092
|
export declare const FORM_FIELD_LABEL_MODES: {
|
|
@@ -14384,6 +14393,11 @@ export type DropzoneLabels = {
|
|
|
14384
14393
|
fileTooLarge: (fileName: string, maxFileSize: number | undefined) => string;
|
|
14385
14394
|
/** A file rejected by `minFileSize`. */
|
|
14386
14395
|
fileTooSmall: (fileName: string, minFileSize: number | undefined) => string;
|
|
14396
|
+
/** An image rejected by `minImageWidth` or `minImageHeight`. */
|
|
14397
|
+
imageTooSmall: (fileName: string, minSize: {
|
|
14398
|
+
width: number | undefined;
|
|
14399
|
+
height: number | undefined;
|
|
14400
|
+
}) => string;
|
|
14387
14401
|
/** An extra file dropped onto a single-file dropzone. */
|
|
14388
14402
|
tooManyFiles: (fileName: string) => string;
|
|
14389
14403
|
/** Announced while uploads are in flight. */
|
|
@@ -14420,9 +14434,19 @@ export declare class DropzoneCropStepDirective {
|
|
|
14420
14434
|
static ɵfac: i0.ɵɵFactoryDeclaration<DropzoneCropStepDirective, never>;
|
|
14421
14435
|
static ɵdir: i0.ɵɵDirectiveDeclaration<DropzoneCropStepDirective, "et-dropzone[crop]", never, {}, {}, never, never, true, never>;
|
|
14422
14436
|
}
|
|
14437
|
+
export declare const DROPZONE_CROP_SHAPES: {
|
|
14438
|
+
readonly RECT: "rect";
|
|
14439
|
+
readonly ROUND: "round";
|
|
14440
|
+
};
|
|
14441
|
+
type DropzoneCropShape = (typeof DROPZONE_CROP_SHAPES)[keyof typeof DROPZONE_CROP_SHAPES];
|
|
14423
14442
|
type DropzoneCropConfig = {
|
|
14424
|
-
/** Width divided by height of the crop, e.g. `1` for a square or `16 / 9`. */
|
|
14425
|
-
aspectRatio
|
|
14443
|
+
/** Width divided by height of the crop, e.g. `1` for a square or `16 / 9`. Leave it out for a free crop. */
|
|
14444
|
+
aspectRatio?: number;
|
|
14445
|
+
/**
|
|
14446
|
+
* Shape of the crop frame. `'round'` shows a circle, or an ellipse without a square aspect ratio. The cropped
|
|
14447
|
+
* file is always the rectangle around it. @default 'rect'
|
|
14448
|
+
*/
|
|
14449
|
+
shape?: DropzoneCropShape;
|
|
14426
14450
|
/** Scales the cropped image down to at most this many pixels wide. */
|
|
14427
14451
|
maxWidth?: number;
|
|
14428
14452
|
/** Scales the cropped image down to at most this many pixels high. */
|
|
@@ -14444,9 +14468,9 @@ type DropzoneCropSize = {
|
|
|
14444
14468
|
};
|
|
14445
14469
|
type DropzoneCropCorner = 'nw' | 'ne' | 'sw' | 'se';
|
|
14446
14470
|
/**
|
|
14447
|
-
* Crop state for one image file:
|
|
14448
|
-
* `etDropzoneCropHandle` and by keyboard (arrows move, shift +
|
|
14449
|
-
* of the rendered image
|
|
14471
|
+
* Crop state for one image file: a rect in image pixels, aspect-locked when the config has an `aspectRatio` and free
|
|
14472
|
+
* otherwise, moved by `etDropzoneCropRect`, resized by `etDropzoneCropHandle` and by keyboard (arrows move, shift +
|
|
14473
|
+
* arrows resize). The host must have exactly the size of the rendered image and carries `data-shape`.
|
|
14450
14474
|
*/
|
|
14451
14475
|
export declare class DropzoneCropDirective {
|
|
14452
14476
|
private hostElement;
|
|
@@ -14468,6 +14492,7 @@ export declare class DropzoneCropDirective {
|
|
|
14468
14492
|
height: number;
|
|
14469
14493
|
} | null>;
|
|
14470
14494
|
ready: import("@angular/core").Signal<boolean>;
|
|
14495
|
+
shape: import("@angular/core").Signal<import("@ethlete/components").DropzoneCropShape>;
|
|
14471
14496
|
protected rectVars: import("@angular/core").Signal<{
|
|
14472
14497
|
'--_et-dropzone-crop-left': string;
|
|
14473
14498
|
'--_et-dropzone-crop-top': string;
|
|
@@ -14516,7 +14541,7 @@ export declare class DropzoneCropHandleDirective {
|
|
|
14516
14541
|
};
|
|
14517
14542
|
}, {}, never, never, true, never>;
|
|
14518
14543
|
}
|
|
14519
|
-
/** The default crop step of `et-dropzone`: the image with
|
|
14544
|
+
/** The default crop step of `et-dropzone`: the image with a crop frame, cancel and confirm. Takes focus once the image is ready. */
|
|
14520
14545
|
export declare class DropzoneCropComponent {
|
|
14521
14546
|
private destroyRef;
|
|
14522
14547
|
file: import("@angular/core").InputSignal<File>;
|
|
@@ -14528,7 +14553,10 @@ export declare class DropzoneCropComponent {
|
|
|
14528
14553
|
/** Emits the cropped file. */
|
|
14529
14554
|
cropConfirm: import("@angular/core").OutputEmitterRef<File>;
|
|
14530
14555
|
cropCancel: import("@angular/core").OutputEmitterRef<void>;
|
|
14556
|
+
crop: import("@angular/core").Signal<DropzoneCropDirective>;
|
|
14557
|
+
private cropRect;
|
|
14531
14558
|
protected exporting: import("@angular/core").WritableSignal<boolean>;
|
|
14559
|
+
constructor();
|
|
14532
14560
|
protected confirmCrop(crop: DropzoneCropDirective): void;
|
|
14533
14561
|
static ɵfac: i0.ɵɵFactoryDeclaration<DropzoneCropComponent, never>;
|
|
14534
14562
|
static ɵcmp: i0.ɵɵComponentDeclaration<DropzoneCropComponent, "et-dropzone-crop", never, {
|
|
@@ -14852,6 +14880,7 @@ export declare const DROPZONE_FILE_REJECTION_REASONS: {
|
|
|
14852
14880
|
readonly MAX_FILE_SIZE: "maxFileSize";
|
|
14853
14881
|
readonly MIN_FILE_SIZE: "minFileSize";
|
|
14854
14882
|
readonly MAX_FILES: "maxFiles";
|
|
14883
|
+
readonly IMAGE_TOO_SMALL: "imageTooSmall";
|
|
14855
14884
|
};
|
|
14856
14885
|
export type DropzoneFileRejectionReason = (typeof DROPZONE_FILE_REJECTION_REASONS)[keyof typeof DROPZONE_FILE_REJECTION_REASONS];
|
|
14857
14886
|
export type DropzoneFileRejection = {
|
|
@@ -14870,6 +14899,10 @@ export type DropzoneFileConstraints = {
|
|
|
14870
14899
|
maxFileSize?: number;
|
|
14871
14900
|
/** Minimum size of a single file in bytes. */
|
|
14872
14901
|
minFileSize?: number;
|
|
14902
|
+
/** Minimum width of a picked raster image in pixels. Checked before the crop step and the upload. */
|
|
14903
|
+
minImageWidth?: number;
|
|
14904
|
+
/** Minimum height of a picked raster image in pixels. Checked before the crop step and the upload. */
|
|
14905
|
+
minImageHeight?: number;
|
|
14873
14906
|
/** Overrides the built-in per-rejection error message (e.g. for i18n). */
|
|
14874
14907
|
message?: (rejection: DropzoneFileRejection) => string;
|
|
14875
14908
|
};
|
|
@@ -14927,6 +14960,13 @@ export declare class DropzoneDirective<TValue = unknown> extends FieldStateContr
|
|
|
14927
14960
|
maxFileSize: import("@angular/core").InputSignalWithTransform<number | undefined, unknown>;
|
|
14928
14961
|
/** Minimum size of a single file in bytes. A bound field's `dropzoneFiles()` rule overrides it. */
|
|
14929
14962
|
minFileSize: import("@angular/core").InputSignalWithTransform<number | undefined, unknown>;
|
|
14963
|
+
/**
|
|
14964
|
+
* Minimum width of a picked raster image in pixels; smaller images are rejected as `imageTooSmall` before the crop
|
|
14965
|
+
* step and the upload. A bound field's `dropzoneFiles()` rule overrides it.
|
|
14966
|
+
*/
|
|
14967
|
+
minImageWidth: import("@angular/core").InputSignalWithTransform<number | undefined, unknown>;
|
|
14968
|
+
/** Minimum height of a picked raster image in pixels, like {@link minImageWidth}. */
|
|
14969
|
+
minImageHeight: import("@angular/core").InputSignalWithTransform<number | undefined, unknown>;
|
|
14930
14970
|
/** Whether multiple files can be uploaded. The control value becomes an array. */
|
|
14931
14971
|
multiple: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
14932
14972
|
/** Sends picked images through a crop step before they upload. Other files upload right away. */
|
|
@@ -14957,6 +14997,7 @@ export declare class DropzoneDirective<TValue = unknown> extends FieldStateContr
|
|
|
14957
14997
|
private entryWatchers;
|
|
14958
14998
|
private lastSyncedValue;
|
|
14959
14999
|
private hasSyncedValue;
|
|
15000
|
+
private imageMeasurement;
|
|
14960
15001
|
/** Whether files can still be added, replaced or removed. */
|
|
14961
15002
|
interactive: Signal<boolean>;
|
|
14962
15003
|
/** All entries currently managed by the dropzone, including uploading and failed ones. */
|
|
@@ -14981,7 +15022,10 @@ export declare class DropzoneDirective<TValue = unknown> extends FieldStateContr
|
|
|
14981
15022
|
describedBy: import("@angular/core").WritableSignal<string | null>;
|
|
14982
15023
|
controlType: import("@angular/core").WritableSignal<"dropzone">;
|
|
14983
15024
|
constructor();
|
|
14984
|
-
/**
|
|
15025
|
+
/**
|
|
15026
|
+
* Validates the given files and uploads all accepted ones. With a minimum image size, the images are decoded first,
|
|
15027
|
+
* so the rejections and uploads of that selection follow asynchronously.
|
|
15028
|
+
*/
|
|
14985
15029
|
selectFiles(files: FileList | readonly File[]): void;
|
|
14986
15030
|
/** Replaces a pending crop with the cropped file, which then uploads like a picked one. */
|
|
14987
15031
|
confirmCrop(id: string, file: File): void;
|
|
@@ -15004,6 +15048,7 @@ export declare class DropzoneDirective<TValue = unknown> extends FieldStateContr
|
|
|
15004
15048
|
protected handleDragOver(event: DragEvent): void;
|
|
15005
15049
|
protected handleDragLeave(): void;
|
|
15006
15050
|
protected handleDrop(event: DragEvent): void;
|
|
15051
|
+
private finishSelection;
|
|
15007
15052
|
private addFiles;
|
|
15008
15053
|
private setRejections;
|
|
15009
15054
|
private createFileEntry;
|
|
@@ -15079,6 +15124,16 @@ export declare class DropzoneDirective<TValue = unknown> extends FieldStateContr
|
|
|
15079
15124
|
"required": false;
|
|
15080
15125
|
"isSignal": true;
|
|
15081
15126
|
};
|
|
15127
|
+
"minImageWidth": {
|
|
15128
|
+
"alias": "minImageWidth";
|
|
15129
|
+
"required": false;
|
|
15130
|
+
"isSignal": true;
|
|
15131
|
+
};
|
|
15132
|
+
"minImageHeight": {
|
|
15133
|
+
"alias": "minImageHeight";
|
|
15134
|
+
"required": false;
|
|
15135
|
+
"isSignal": true;
|
|
15136
|
+
};
|
|
15082
15137
|
"multiple": {
|
|
15083
15138
|
"alias": "multiple";
|
|
15084
15139
|
"required": false;
|
|
@@ -15189,7 +15244,8 @@ export declare class DropzoneComponent<TValue = unknown> {
|
|
|
15189
15244
|
iso: string;
|
|
15190
15245
|
label: string;
|
|
15191
15246
|
} | null>;
|
|
15192
|
-
|
|
15247
|
+
pendingCrop: import("@angular/core").Signal<import("@ethlete/components").DropzonePendingCrop | null>;
|
|
15248
|
+
protected cropOpen: import("@angular/core").Signal<boolean>;
|
|
15193
15249
|
protected readonlyList: import("@angular/core").Signal<boolean>;
|
|
15194
15250
|
protected liveStatusMessage: import("@angular/core").Signal<string>;
|
|
15195
15251
|
protected internalErrorMessages: import("@angular/core").Signal<string[]>;
|
|
@@ -15205,6 +15261,7 @@ export declare class DropzoneComponent<TValue = unknown> {
|
|
|
15205
15261
|
protected uploadPickedFiles(event: Event): void;
|
|
15206
15262
|
protected removeEntryAnimated(entry: DropzoneEntry, entryElement: HTMLElement): void;
|
|
15207
15263
|
focus(options?: FocusOptions): void;
|
|
15264
|
+
private restoreFocusAfterCrop;
|
|
15208
15265
|
private defaultUploadErrorMessage;
|
|
15209
15266
|
static ɵfac: i0.ɵɵFactoryDeclaration<DropzoneComponent<any>, never>;
|
|
15210
15267
|
static ɵcmp: i0.ɵɵComponentDeclaration<DropzoneComponent<any>, "et-dropzone", never, {
|
|
@@ -15253,6 +15310,8 @@ export declare class DropzoneComponent<TValue = unknown> {
|
|
|
15253
15310
|
"accept": "accept";
|
|
15254
15311
|
"maxFileSize": "maxFileSize";
|
|
15255
15312
|
"minFileSize": "minFileSize";
|
|
15313
|
+
"minImageWidth": "minImageWidth";
|
|
15314
|
+
"minImageHeight": "minImageHeight";
|
|
15256
15315
|
"crop": "crop";
|
|
15257
15316
|
"aria-label": "aria-label";
|
|
15258
15317
|
"aria-labelledby": "aria-labelledby";
|
|
@@ -15630,6 +15689,7 @@ export declare class FormFieldComponent {
|
|
|
15630
15689
|
protected showBusySpinner: import("@angular/core").Signal<boolean>;
|
|
15631
15690
|
private prefixDimensions;
|
|
15632
15691
|
protected paintsElevatedFill: import("@angular/core").Signal<boolean>;
|
|
15692
|
+
private fillElevationOffset;
|
|
15633
15693
|
private resolvedSurface;
|
|
15634
15694
|
canAnimate: {
|
|
15635
15695
|
state: import("@angular/core").Signal<boolean>;
|
|
@@ -20015,6 +20075,7 @@ export declare class SelectDirective<TValue = unknown> extends FieldStateControl
|
|
|
20015
20075
|
private dataItemRegistry;
|
|
20016
20076
|
private dataItemRegistryIdentity;
|
|
20017
20077
|
sortedItems: Signal<SelectItem[]>;
|
|
20078
|
+
private selectsNullOption;
|
|
20018
20079
|
/** The current search query (empty string when no search is registered). */
|
|
20019
20080
|
query: Signal<string>;
|
|
20020
20081
|
/**
|
|
@@ -22490,6 +22551,7 @@ export declare class SwitchDirective extends FieldStateControlDirective implemen
|
|
|
22490
22551
|
private formField;
|
|
22491
22552
|
private destroyRef;
|
|
22492
22553
|
private el;
|
|
22554
|
+
private renderer;
|
|
22493
22555
|
checked: import("@angular/core").ModelSignal<boolean>;
|
|
22494
22556
|
/**
|
|
22495
22557
|
* Bulk-edit state for a switch whose source records disagree (some on, some off), mirroring
|
|
@@ -22506,6 +22568,7 @@ export declare class SwitchDirective extends FieldStateControlDirective implemen
|
|
|
22506
22568
|
required: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
22507
22569
|
name: import("@angular/core").InputSignal<string>;
|
|
22508
22570
|
touch: import("@angular/core").OutputRef<void>;
|
|
22571
|
+
private nativeLabelId;
|
|
22509
22572
|
shouldDisplayError: import("@angular/core").Signal<boolean>;
|
|
22510
22573
|
describedBy: import("@angular/core").WritableSignal<string | null>;
|
|
22511
22574
|
controlType: import("@angular/core").WritableSignal<"switch">;
|
|
@@ -22513,6 +22576,9 @@ export declare class SwitchDirective extends FieldStateControlDirective implemen
|
|
|
22513
22576
|
toggle(): void;
|
|
22514
22577
|
activate(): void;
|
|
22515
22578
|
focus(options?: FocusOptions): void;
|
|
22579
|
+
/** A host binding would remove a consumer's `[attr.aria-*]` binding whenever ours is null. */
|
|
22580
|
+
private syncOwnedAttribute;
|
|
22581
|
+
private connectNativeLabel;
|
|
22516
22582
|
static ɵfac: i0.ɵɵFactoryDeclaration<SwitchDirective, never>;
|
|
22517
22583
|
static ɵdir: i0.ɵɵDirectiveDeclaration<SwitchDirective, "[etSwitch]", never, {
|
|
22518
22584
|
"checked": {
|
|
@@ -26427,6 +26493,11 @@ export declare class ProgressStepComponent {
|
|
|
26427
26493
|
outputs: {};
|
|
26428
26494
|
}]>;
|
|
26429
26495
|
}
|
|
26496
|
+
export declare const PROGRESS_STEPS_ALIGNS: {
|
|
26497
|
+
readonly CENTER: "center";
|
|
26498
|
+
readonly START: "start";
|
|
26499
|
+
};
|
|
26500
|
+
export type ProgressStepsAlign = (typeof PROGRESS_STEPS_ALIGNS)[keyof typeof PROGRESS_STEPS_ALIGNS];
|
|
26430
26501
|
/**
|
|
26431
26502
|
* Lays out a row - or a column - of `et-progress-step`s with automatic step numbering and a connecting line
|
|
26432
26503
|
* between them. Project the steps in order, each with its own `stepState`. The default `orientation="auto"`
|
|
@@ -26440,8 +26511,16 @@ export declare class ProgressStepComponent {
|
|
|
26440
26511
|
* </et-progress-steps>
|
|
26441
26512
|
*/
|
|
26442
26513
|
export declare class ProgressStepsComponent {
|
|
26514
|
+
/** In a row, whether each step's marker, label and description center in the step or sit at its start. */
|
|
26515
|
+
align: import("@angular/core").InputSignal<ProgressStepsAlign>;
|
|
26443
26516
|
static ɵfac: i0.ɵɵFactoryDeclaration<ProgressStepsComponent, never>;
|
|
26444
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ProgressStepsComponent, "et-progress-steps", never, {
|
|
26517
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ProgressStepsComponent, "et-progress-steps", never, {
|
|
26518
|
+
"align": {
|
|
26519
|
+
"alias": "align";
|
|
26520
|
+
"required": false;
|
|
26521
|
+
"isSignal": true;
|
|
26522
|
+
};
|
|
26523
|
+
}, {}, never, ["*"], true, [{
|
|
26445
26524
|
directive: typeof ProgressStepsDirective;
|
|
26446
26525
|
inputs: {
|
|
26447
26526
|
"orientation": "orientation";
|
|
@@ -28530,6 +28609,11 @@ export declare class SkeletonComponent {
|
|
|
28530
28609
|
export declare const SKELETON_IMPORTS: readonly [typeof SkeletonComponent, typeof SkeletonItemComponent, typeof SkeletonTextComponent];
|
|
28531
28610
|
/** One result in a participant's recent form. */
|
|
28532
28611
|
export type StandingsFormResult = 'win' | 'loss' | 'tie';
|
|
28612
|
+
/** A recent-form result with a label, shown as its tooltip and read as part of its name - the opponent and score, say. */
|
|
28613
|
+
export type StandingsFormEntry = {
|
|
28614
|
+
result: StandingsFormResult;
|
|
28615
|
+
label?: string | null;
|
|
28616
|
+
};
|
|
28533
28617
|
/**
|
|
28534
28618
|
* One row of a table, in the shape `et-standings` draws. Same philosophy as the match domain: **every
|
|
28535
28619
|
* backend maps into it** with a plain adapter, and the components never learn one API's field names.
|
|
@@ -28553,8 +28637,23 @@ export type NormalizedStandingRow = {
|
|
|
28553
28637
|
/** Goal or game difference, when the competition tracks one. */
|
|
28554
28638
|
difference: number | null;
|
|
28555
28639
|
/** Recent results, **oldest first**. `null` when the competition doesn't report form. */
|
|
28556
|
-
form: StandingsFormResult[] | null;
|
|
28640
|
+
form: (StandingsFormResult | StandingsFormEntry)[] | null;
|
|
28641
|
+
/** Values for the consumer's `extraColumns`, keyed by each column's `key`. A missing key renders an empty cell. */
|
|
28642
|
+
extraStats?: Readonly<Record<string, string | number | null>>;
|
|
28643
|
+
};
|
|
28644
|
+
/** A stat column the consumer adds after the built-in ones. Its values come from each row's `extraStats[key]`. */
|
|
28645
|
+
export type StandingsExtraColumn = {
|
|
28646
|
+
key: string;
|
|
28647
|
+
/** The header text - an abbreviation is fine when `labelFull` spells it out. */
|
|
28648
|
+
label: string;
|
|
28649
|
+
/** The unabbreviated header, for screen readers (the header's `abbr`). */
|
|
28650
|
+
labelFull?: string;
|
|
28557
28651
|
};
|
|
28652
|
+
/**
|
|
28653
|
+
* Where a participant links to - what a `participantLink` callback answers with. A **string** is an `href`; an
|
|
28654
|
+
* **array** is router commands, rendered through `routerLink`.
|
|
28655
|
+
*/
|
|
28656
|
+
export type StandingsParticipantLink = string | readonly unknown[];
|
|
28558
28657
|
/**
|
|
28559
28658
|
* A band of positions that means something: promotion, playoffs, relegation, advancing out of a group.
|
|
28560
28659
|
*
|
|
@@ -28605,6 +28704,8 @@ export type StandingsLabels = {
|
|
|
28605
28704
|
formResult: (result: StandingsFormResult) => string;
|
|
28606
28705
|
/** The letter drawn inside one entry of the form column, e.g. `'W'`. */
|
|
28607
28706
|
formResultShort: (result: StandingsFormResult) => string;
|
|
28707
|
+
/** The accessible name of a form result that has a label. Gets the `formResult` text and the label. */
|
|
28708
|
+
formEntry: (result: string, label: string) => string;
|
|
28608
28709
|
/** Names the zone legend for assistive tech. */
|
|
28609
28710
|
legend: string;
|
|
28610
28711
|
/** Announced on the highlighted row, so it is findable without seeing the highlight. */
|
|
@@ -28680,6 +28781,12 @@ export type StandingsRenderRow = {
|
|
|
28680
28781
|
isExpanded: boolean;
|
|
28681
28782
|
/** The id for the element holding the row's detail, for the toggle's `aria-controls`. */
|
|
28682
28783
|
detailId: string;
|
|
28784
|
+
/** The row's form with every result as an entry, or `null` when it reports none. */
|
|
28785
|
+
formEntries: StandingsFormEntry[] | null;
|
|
28786
|
+
/** The participant's `href` when `participantLink` answered with a string, else `null`. */
|
|
28787
|
+
participantHref: string | null;
|
|
28788
|
+
/** The participant's router commands when `participantLink` answered with an array, else `null`. */
|
|
28789
|
+
participantCommands: readonly unknown[] | null;
|
|
28683
28790
|
};
|
|
28684
28791
|
/**
|
|
28685
28792
|
* Headless standings: takes rows and zone bands and works out what each row means - which band it sits in,
|
|
@@ -28708,6 +28815,10 @@ export declare class StandingsDirective {
|
|
|
28708
28815
|
expandedRows: import("@angular/core").ModelSignal<readonly string[]>;
|
|
28709
28816
|
/** `'single'` closes the open row when another one opens; `'multiple'` lets rows open independently. @default 'multiple' */
|
|
28710
28817
|
expandMode: import("@angular/core").InputSignal<StandingsExpandMode>;
|
|
28818
|
+
/** Stat columns added after the built-in ones, filled from each row's `extraStats`. @default [] */
|
|
28819
|
+
extraColumns: import("@angular/core").InputSignal<readonly StandingsExtraColumn[]>;
|
|
28820
|
+
/** Makes each participant a link: answer with an `href` string, router commands, or `null` for no link. @default null */
|
|
28821
|
+
participantLink: import("@angular/core").InputSignal<((row: NormalizedStandingRow) => StandingsParticipantLink | null) | null>;
|
|
28711
28822
|
/** The `ng-template[etStandingsRowDetail]` registered here, or `null` when the rows do not expand. */
|
|
28712
28823
|
registeredRowDetailTemplate: import("@angular/core").WritableSignal<StandingsRowDetailDirective | null>;
|
|
28713
28824
|
/** Whether the rows have a detail to expand into. */
|
|
@@ -28766,6 +28877,16 @@ export declare class StandingsDirective {
|
|
|
28766
28877
|
"required": false;
|
|
28767
28878
|
"isSignal": true;
|
|
28768
28879
|
};
|
|
28880
|
+
"extraColumns": {
|
|
28881
|
+
"alias": "extraColumns";
|
|
28882
|
+
"required": false;
|
|
28883
|
+
"isSignal": true;
|
|
28884
|
+
};
|
|
28885
|
+
"participantLink": {
|
|
28886
|
+
"alias": "participantLink";
|
|
28887
|
+
"required": false;
|
|
28888
|
+
"isSignal": true;
|
|
28889
|
+
};
|
|
28769
28890
|
}, {
|
|
28770
28891
|
"expandedRows": "expandedRowsChange";
|
|
28771
28892
|
}, never, never, true, never>;
|
|
@@ -29080,6 +29201,8 @@ export declare class StandingsComponent {
|
|
|
29080
29201
|
"labels": "labels";
|
|
29081
29202
|
"expandedRows": "expandedRows";
|
|
29082
29203
|
"expandMode": "expandMode";
|
|
29204
|
+
"extraColumns": "extraColumns";
|
|
29205
|
+
"participantLink": "participantLink";
|
|
29083
29206
|
};
|
|
29084
29207
|
outputs: {
|
|
29085
29208
|
"expandedRowsChange": "expandedRowsChange";
|
|
@@ -36949,5 +37072,5 @@ export declare const provideUnsavedChangesLabels: (labels: import("@ethlete/core
|
|
|
36949
37072
|
export declare const injectUnsavedChangesLabels: () => import("@angular/core").Signal<UnsavedChangesLabels>;
|
|
36950
37073
|
export declare const UNSAVED_CHANGES_LABELS: import("@angular/core").InjectionToken<import("@ethlete/core").LabelsSource<UnsavedChangesLabels>>;
|
|
36951
37074
|
/** The version of `@ethlete/components` this build was cut from. */
|
|
36952
|
-
export declare const COMPONENTS_VERSION = "1.0.0-next.
|
|
36953
|
-
export { type AlertDialogComponentSlot, type AlertDialogSlot, type AlertDialogTemplateSlot, type AppointmentTreeNode, BRACKET_DATA_LAYOUT, BRACKET_ERROR_CODES, BRACKET_FINAL_ALIGNMENT, BRACKET_ROUND_MIRROR_TYPE, BRACKET_SECTION_KEY, BRACKET_SWISS_GROUP_COLOR_TYPE, type Bracket, type BracketByeSlotSource, type BracketComponents, type BracketContinueComponent, type BracketDataLayout, type BracketDataSource, type BracketDrawing, type BracketEdge, type BracketExternalSlotSource, type BracketFinalAlignment, type BracketGradient, type BracketGradientStop, type BracketGridSection, type BracketLayoutSettings, BracketMap, type BracketMatch, type BracketMatchComponent, type BracketMatchFactor, type BracketMatchId, type BracketMatchInputs, type BracketMatchOutcomeSlotSource, type BracketMatchParticipant, type BracketMatchPosition, type BracketMatchRelation, type BracketMatchRelationNone, type BracketMatchRelationNothingToOne, type BracketMatchRelationOneToNothing, type BracketMatchRelationOneToOne, type BracketMatchRelationTwoToNothing, type BracketMatchRelationTwoToOne, type BracketMatchShortId, type BracketMatchSlot, type BracketMatchSource, type BracketMatchStatus, type BracketParticipant, type BracketParticipantMatch, type BracketPickMigration, type BracketPickMigrationOptions, type BracketPickSet, type BracketRect, type BracketRound, type BracketRoundHeaderComponent, type BracketRoundId, type BracketRoundMapWithSwissData, type BracketRoundMirrorType, type BracketRoundPosition, type BracketRoundRelation, type BracketRoundRelationNone, type BracketRoundRelationNothingToOne, type BracketRoundRelationOneToNothing, type BracketRoundRelationOneToOne, type BracketRoundRelationTwoToNothing, type BracketRoundRelationTwoToOne, type BracketRoundShortId, type BracketRoundSource, type BracketRoundSwissData, type BracketRoundSwissGroup, type BracketRoundSwissGroupId, type BracketRoundSwissGroupMap, type BracketRoundType, BracketRuntimeError, type BracketSectionKey, type BracketSectionTitleComponent, type BracketSeedSlotSource, type BracketSlotResolutionPolicy, type BracketSlotSource, type BracketSlotSourceKind, type BracketStandingRankSide, type BracketStandingRankSlotSource, type BracketSwissBucketSlotSource, type BracketSwissColors, type BracketSwissGroupColorType, type BracketWarning, COMMON_BRACKET_ROUND_TYPE, type CalendarBandPosition, type CalendarInterval, type CalendarPrecision, type CalendarSelectionFlags, type CalendarView, type CalendarWeekStartsOn, type CascaderCompareWith, type CascaderDataSource, type CascaderNode, type CommonBracketRoundType, type ComputedBracketGrid, type CreateBracketGridConfig, type CreateBracketOptions, type CreateGridAdapterOptions, DOUBLE_ELIMINATION_BRACKET_ROUND_TYPE, type DateRangeSide, type DateRangeSide as TimeRangeInputSide, type DateRangeValue, type DateRangeValue as DateTimeRangeValue, type DateRangeValue as TimeRangeValue, type DoubleEliminationBracketRoundType, type DropzoneCropConfig, type DropzoneCropCorner, type DropzoneCropRect, type 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 };
|
|
37075
|
+
export declare const COMPONENTS_VERSION = "1.0.0-next.90";
|
|
37076
|
+
export { type AlertDialogComponentSlot, type AlertDialogSlot, type AlertDialogTemplateSlot, type AppointmentTreeNode, BRACKET_DATA_LAYOUT, BRACKET_ERROR_CODES, BRACKET_FINAL_ALIGNMENT, BRACKET_ROUND_MIRROR_TYPE, BRACKET_SECTION_KEY, BRACKET_SWISS_GROUP_COLOR_TYPE, type Bracket, type BracketByeSlotSource, type BracketComponents, type BracketContinueComponent, type BracketDataLayout, type BracketDataSource, type BracketDrawing, type BracketEdge, type BracketExternalSlotSource, type BracketFinalAlignment, type BracketGradient, type BracketGradientStop, type BracketGridSection, type BracketLayoutSettings, BracketMap, type BracketMatch, type BracketMatchComponent, type BracketMatchFactor, type BracketMatchId, type BracketMatchInputs, type BracketMatchOutcomeSlotSource, type BracketMatchParticipant, type BracketMatchPosition, type BracketMatchRelation, type BracketMatchRelationNone, type BracketMatchRelationNothingToOne, type BracketMatchRelationOneToNothing, type BracketMatchRelationOneToOne, type BracketMatchRelationTwoToNothing, type BracketMatchRelationTwoToOne, type BracketMatchShortId, type BracketMatchSlot, type BracketMatchSource, type BracketMatchStatus, type BracketParticipant, type BracketParticipantMatch, type BracketPickMigration, type BracketPickMigrationOptions, type BracketPickSet, type BracketRect, type BracketRound, type BracketRoundHeaderComponent, type BracketRoundId, type BracketRoundMapWithSwissData, type BracketRoundMirrorType, type BracketRoundPosition, type BracketRoundRelation, type BracketRoundRelationNone, type BracketRoundRelationNothingToOne, type BracketRoundRelationOneToNothing, type BracketRoundRelationOneToOne, type BracketRoundRelationTwoToNothing, type BracketRoundRelationTwoToOne, type BracketRoundShortId, type BracketRoundSource, type BracketRoundSwissData, type BracketRoundSwissGroup, type BracketRoundSwissGroupId, type BracketRoundSwissGroupMap, type BracketRoundType, BracketRuntimeError, type BracketSectionKey, type BracketSectionTitleComponent, type BracketSeedSlotSource, type BracketSlotResolutionPolicy, type BracketSlotSource, type BracketSlotSourceKind, type BracketStandingRankSide, type BracketStandingRankSlotSource, type BracketSwissBucketSlotSource, type BracketSwissColors, type BracketSwissGroupColorType, type BracketWarning, COMMON_BRACKET_ROUND_TYPE, type CalendarBandPosition, type CalendarInterval, type CalendarPrecision, type CalendarSelectionFlags, type CalendarView, type CalendarWeekStartsOn, type CascaderCompareWith, type CascaderDataSource, type CascaderNode, type CommonBracketRoundType, type ComputedBracketGrid, type CreateBracketGridConfig, type CreateBracketOptions, type CreateGridAdapterOptions, DOUBLE_ELIMINATION_BRACKET_ROUND_TYPE, type DateRangeSide, type DateRangeSide as TimeRangeInputSide, type DateRangeValue, type DateRangeValue as DateTimeRangeValue, type DateRangeValue as TimeRangeValue, type DoubleEliminationBracketRoundType, type DropzoneCropConfig, type DropzoneCropCorner, type DropzoneCropRect, type DropzoneCropShape, type DurationFormatSpec, type DurationSegment, type DurationUnit, GROUP_BRACKET_ROUND_TYPE, type GridAdapter, type GridAdapterBreakpoints, type GridConfig, type GroupBracketRoundType, type MatchParticipantId, type MatchParticipantShortId, type MatchParticipantSide, type ParticipantMatchResult, type PlaceholderBracketShape, type RichTextEditorHeadingLevel, type RichTextEditorImageFailure, type RichTextEditorImageFailureReason, type RichTextEditorImageUpload, type RichTextEditorImageUploadContext, type RichTextEditorImageUploadFn, type RichTextEditorTokenChip, type RichTextEditorTokenCodec, SINGLE_ELIMINATION_BRACKET_ROUND_TYPE, SWISS_BRACKET_ROUND_TYPE, type SchedulerAgendaDay, type SchedulerMonthDayCell, type SchedulerTimeGridAllDayEntry, type SchedulerTimeGridBlock, type SchedulerTimeGridDay, type SchedulerTimeGridSegment, type ScrollableActiveChildRef, type ScrollableButtonPosition, type ScrollableButtonsConfig, type 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 };
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
@layer components {
|
|
2
|
-
et-switch:not([aria-checked='true']):not([data-indeterminate]) .et-switch-track {
|
|
3
|
-
box-shadow: none;
|
|
4
|
-
background-color: color-mix(in srgb, var(--et-surface-interaction-solid, currentColor) 38%, transparent);
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
@media (hover: hover) {
|
|
8
|
-
et-switch:hover:not([aria-disabled='true']):not([data-readonly]):not([aria-checked='true']):not(
|
|
9
|
-
[data-indeterminate]
|
|
10
|
-
),
|
|
11
|
-
:where(et-choice-field:has(.et-choice-field-label-area:hover))
|
|
12
|
-
et-switch:not([aria-disabled='true']):not([data-readonly]):not([aria-checked='true']):not([data-indeterminate]) {
|
|
13
|
-
.et-switch-track {
|
|
14
|
-
box-shadow: none;
|
|
15
|
-
background-color: color-mix(in srgb, var(--et-surface-interaction-solid, currentColor) 38%, transparent);
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
et-switch:focus-visible .et-switch-track {
|
|
21
|
-
outline-color: light-dark(var(--et-theme-color-ink-solid), var(--et-theme-color-primary-solid));
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
et-switch[aria-checked='true'] .et-switch-track {
|
|
25
|
-
box-shadow: inset 0 0 0 1px light-dark(var(--et-theme-color-ink-solid), transparent);
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
et-switch[data-indeterminate] {
|
|
29
|
-
.et-switch-track::before {
|
|
30
|
-
border-color: var(--et-theme-color-ink-solid);
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
.et-switch-thumb {
|
|
34
|
-
background-color: var(--et-theme-color-ink-solid);
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
}
|