@ethlete/components 1.0.0-next.84 → 1.0.0-next.86

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.
@@ -6129,6 +6129,7 @@ export declare class CarouselComponent {
6129
6129
  track: import("@angular/core").Signal<ScrollableDirective>;
6130
6130
  protected isAutoplayEnabled: import("@angular/core").Signal<boolean>;
6131
6131
  protected isAutoplayRunning: import("@angular/core").Signal<boolean>;
6132
+ protected hasNavigation: import("@angular/core").Signal<boolean>;
6132
6133
  protected isPlayToggleInCorner: import("@angular/core").Signal<boolean>;
6133
6134
  protected isPlayToggleInBar: import("@angular/core").Signal<boolean>;
6134
6135
  protected autoplayDuration: import("@angular/core").Signal<number>;
@@ -6556,6 +6557,7 @@ export declare class TooltipDirective {
6556
6557
  private focusVisibleTracker;
6557
6558
  private renderer;
6558
6559
  private hasTouchInput;
6560
+ private descriptionRegistry;
6559
6561
  content: import("@angular/core").InputSignal<TooltipContent | null>;
6560
6562
  ariaDescription: import("@angular/core").InputSignal<string | null>;
6561
6563
  /**
@@ -6580,8 +6582,8 @@ export declare class TooltipDirective {
6580
6582
  private hasHover;
6581
6583
  private hideRequest$;
6582
6584
  private hasFocus;
6585
+ private descriptionText;
6583
6586
  private descriptionId;
6584
- private descriptionElement;
6585
6587
  private appliedDescriptionId;
6586
6588
  private isBrowser;
6587
6589
  private hasContent;
@@ -9404,6 +9406,12 @@ export type OverlayRef<TComponent extends object = object, TResult = unknown> =
9404
9406
  * A strategy-controller breakpoint switch overrides this with its own strategy again.
9405
9407
  */
9406
9408
  updatePositionStrategy: (strategy: OverlayRuntimePositionStrategy) => void;
9409
+ /**
9410
+ * Resizes the open overlay, e.g. `overlayRef.updateSize({ maxWidth: 1220 })`. The update belongs to
9411
+ * the breakpoint active when called: it survives re-positioning and a switch back to that
9412
+ * breakpoint, while another breakpoint keeps its own config. Later calls merge; `null` drops a key.
9413
+ */
9414
+ updateSize: (size: OverlaySizeUpdate) => void;
9407
9415
  afterOpened: () => Observable<void>;
9408
9416
  beforeClosed: () => Observable<TResult | undefined>;
9409
9417
  /** Like `beforeClosed`, but also reports how the close was initiated. */
@@ -9525,6 +9533,11 @@ export type OverlayDragToDismissConfig = {
9525
9533
  */
9526
9534
  snapPoints?: number[];
9527
9535
  };
9536
+ /**
9537
+ * A size change for `OverlayRef.updateSize`. A number is in pixels; `null` drops an earlier update
9538
+ * of that key, so the breakpoint config's value applies again.
9539
+ */
9540
+ export type OverlaySizeUpdate = { [K in 'width' | 'height' | 'minWidth' | 'maxWidth' | 'minHeight' | 'maxHeight']?: number | string | null; };
9528
9541
  export type OverlayBreakpointConfig = {
9529
9542
  /** Min-width of the overlay. If a number is provided, assumes pixel units. */
9530
9543
  minWidth?: number | string;
@@ -9627,7 +9640,7 @@ export type OverlayConfig = {
9627
9640
  backdropClass?: string | string[];
9628
9641
  panelClass?: string | string[];
9629
9642
  mode?: OverlayMode;
9630
- closeOnOutsidePointer?: boolean;
9643
+ closeOnOutsidePointer?: boolean | 'except-origin';
9631
9644
  closeOnEscape?: boolean;
9632
9645
  /**
9633
9646
  * Closes the overlay with the source `'navigation'` when an Angular Router navigation to another path
@@ -14324,6 +14337,14 @@ export declare const dropzoneLabelsForLocale: (locale: string) => DropzoneLabels
14324
14337
  export declare const provideDropzoneLabels: (labels: import("@ethlete/core").LabelsSource<DropzoneLabels>) => import("@angular/core").Provider;
14325
14338
  export declare const injectDropzoneLabels: () => import("@angular/core").Signal<DropzoneLabels>;
14326
14339
  export declare const DROPZONE_LABELS: import("@angular/core").InjectionToken<import("@ethlete/core").LabelsSource<DropzoneLabels>>;
14340
+ /**
14341
+ * Turns on the crop step of `et-dropzone`: with it imported, `<et-dropzone [crop]="{ aspectRatio: 1 }">` sends
14342
+ * picked images through the crop step before they upload. Import it via `DROPZONE_CROP_IMPORTS`.
14343
+ */
14344
+ export declare class DropzoneCropStepDirective {
14345
+ static ɵfac: i0.ɵɵFactoryDeclaration<DropzoneCropStepDirective, never>;
14346
+ static ɵdir: i0.ɵɵDirectiveDeclaration<DropzoneCropStepDirective, "et-dropzone[crop]", never, {}, {}, never, never, true, never>;
14347
+ }
14327
14348
  type DropzoneCropConfig = {
14328
14349
  /** Width divided by height of the crop, e.g. `1` for a square or `16 / 9`. */
14329
14350
  aspectRatio: number;
@@ -15052,6 +15073,8 @@ export declare class DropzoneComponent<TValue = unknown> {
15052
15073
  private renderer;
15053
15074
  private prefersReducedMotion;
15054
15075
  private formatUploadedAt;
15076
+ private hostElement;
15077
+ protected cropStep: import("@angular/core").Type<unknown> | null;
15055
15078
  /**
15056
15079
  * The upload workflow configuration. Create it via `createDropzoneUpload()`. Its value type is the
15057
15080
  * type the upload and delete outputs emit.
@@ -15176,11 +15199,13 @@ export declare class DropzoneComponent<TValue = unknown> {
15176
15199
  }]>;
15177
15200
  }
15178
15201
  export declare const DROPZONE_IMPORTS: readonly [typeof DropzoneComponent, typeof DropzoneDirective];
15202
+ export declare const DROPZONE_CROP_IMPORTS: readonly [typeof DropzoneCropStepDirective];
15179
15203
  export declare const DROPZONE_ERROR_CODES: {
15180
15204
  readonly INVALID_UPLOAD_CONFIG: 2400;
15181
15205
  readonly MISSING_EXISTING_RESOLVER: 2401;
15182
15206
  readonly VALUE_MODE_MISMATCH: 2402;
15183
15207
  readonly CROP_EXPORT_FAILED: 2403;
15208
+ readonly MISSING_CROP_STEP: 2404;
15184
15209
  };
15185
15210
  export type FocusFirstInvalidFieldOptions = {
15186
15211
  /** Where the field lands in its scroll container. @default 'center' */
@@ -17906,6 +17931,19 @@ export declare class RichTextEditorImageToolComponent {
17906
17931
  * here, they tree-shake away for editors that don't provide it.
17907
17932
  */
17908
17933
  export declare const provideRichTextEditorTableTool: () => Provider;
17934
+ export declare const MENU_CONFIG_TOKEN: InjectionToken<MenuConfig>;
17935
+ export type MenuConfig = {
17936
+ /** Replaces the default offset of root menus (4px). A trigger's `[offset]` input still wins. */
17937
+ offset?: OffsetOptions;
17938
+ };
17939
+ /**
17940
+ * Sets app-wide menu defaults.
17941
+ *
17942
+ * @example
17943
+ * providers: [provideMenuConfig({ offset: 2 })]
17944
+ */
17945
+ export declare const provideMenuConfig: (config: MenuConfig) => StaticProvider[];
17946
+ export declare const injectMenuConfig: () => MenuConfig | null;
17909
17947
  export declare class MenuContextTriggerDirective {
17910
17948
  private menu;
17911
17949
  elementRef: ElementRef<HTMLElement>;
@@ -18205,6 +18243,7 @@ export declare class MenuDirective {
18205
18243
  private overlayManager;
18206
18244
  private hostElement;
18207
18245
  parent: MenuDirective | null;
18246
+ private menuConfig;
18208
18247
  placement: import("@angular/core").InputSignal<"auto" | Placement>;
18209
18248
  fallbackPlacements: import("@angular/core").InputSignal<Placement[] | undefined>;
18210
18249
  offset: import("@angular/core").InputSignal<"auto" | OffsetOptions | null>;
@@ -21563,6 +21602,8 @@ export declare class SegmentedButtonGroupComponent {
21563
21602
  * [tabs](/components/tabs) instead; this variant is for a filter that happens to look like tabs. @default 'pill'
21564
21603
  */
21565
21604
  variant: import("@angular/core").InputSignal<SegmentedButtonGroupVariant>;
21605
+ /** Gives every segment the same width and makes the group fill its container. */
21606
+ stretch: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
21566
21607
  protected isTabsVariant: import("@angular/core").Signal<boolean>;
21567
21608
  canAnimate: {
21568
21609
  state: import("@angular/core").Signal<boolean>;
@@ -21581,6 +21622,11 @@ export declare class SegmentedButtonGroupComponent {
21581
21622
  "required": false;
21582
21623
  "isSignal": true;
21583
21624
  };
21625
+ "stretch": {
21626
+ "alias": "stretch";
21627
+ "required": false;
21628
+ "isSignal": true;
21629
+ };
21584
21630
  }, {}, never, ["et-label", ".et-segmented-button-group-label", "*", "et-hint"], true, [{
21585
21631
  directive: typeof FormFieldDirective;
21586
21632
  inputs: {};
@@ -24459,17 +24505,80 @@ export declare const alertDialogLabelsForLocale: (locale: string) => AlertDialog
24459
24505
  export declare const provideAlertDialogLabels: (labels: import("@ethlete/core").LabelsSource<AlertDialogLabels>) => import("@angular/core").Provider;
24460
24506
  export declare const injectAlertDialogLabels: () => import("@angular/core").Signal<AlertDialogLabels>;
24461
24507
  export declare const ALERT_DIALOG_LABELS: import("@angular/core").InjectionToken<import("@ethlete/core").LabelsSource<AlertDialogLabels>>;
24462
- export type AlertDialogConfig = {
24508
+ declare const OVERLAY_RESULT_TYPE: unique symbol;
24509
+ /** Carries an overlay's result type for inference. Create it with {@link overlayResult}. */
24510
+ export type OverlayResultMarker<TResult> = {
24511
+ readonly [OVERLAY_RESULT_TYPE]: TResult;
24512
+ };
24513
+ /**
24514
+ * Types an overlay's result without restating its component:
24515
+ * `defineOverlay({ component: ProductOverlayComponent, result: overlayResult<ProductResult>() })`.
24516
+ */
24517
+ export declare const overlayResult: <TResult>() => OverlayResultMarker<TResult>;
24518
+ type OverlayInputWriteType<TMember> = TMember extends InputSignalWithTransform<any, infer TWrite> ? TWrite : never;
24519
+ type OverlayInputKeys<TComponent> = { [K in keyof TComponent]-?: [OverlayInputWriteType<TComponent[K]>] extends [never] ? never : K; }[keyof TComponent];
24520
+ /**
24521
+ * The component's signal inputs, keyed by property name, each set through a getter that is
24522
+ * re-read like an `inputBinding`. Every key is optional: a required input looks the same as an
24523
+ * optional one at the type level.
24524
+ */
24525
+ export type OverlayInputs<TComponent> = { [K in OverlayInputKeys<TComponent>]?: () => OverlayInputWriteType<TComponent[K]>; };
24526
+ export type OverlayInputsConfig<TComponent> = {
24527
+ /** Values for the component's signal inputs, e.g. `{ productId: () => id }`. Applied before `bindings`. */
24528
+ inputs?: NoInfer<OverlayInputs<TComponent>>;
24529
+ };
24530
+ /** Config options that are typed against the overlay component. */
24531
+ export type OverlayTypedConfig<TComponent, TResult> = OverlayInputsConfig<TComponent> & {
24532
+ /** Types the overlay's result, see {@link overlayResult}. Has no effect at runtime. */
24533
+ result?: OverlayResultMarker<TResult>;
24534
+ };
24535
+ export declare const OVERLAY_MAIN_TOKEN: InjectionToken<OverlayMainDirective>;
24536
+ export declare class OverlayMainDirective implements OnInit {
24537
+ private parent;
24538
+ private elementRef;
24539
+ private overlayRef;
24540
+ private overlayManager;
24541
+ enabled: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
24542
+ constructor();
24543
+ ngOnInit(): void;
24544
+ static ɵfac: i0.ɵɵFactoryDeclaration<OverlayMainDirective, never>;
24545
+ static ɵdir: i0.ɵɵDirectiveDeclaration<OverlayMainDirective, "[etOverlayMain], et-overlay-main", never, {
24546
+ "enabled": {
24547
+ "alias": "etOverlayMain";
24548
+ "required": false;
24549
+ "isSignal": true;
24550
+ };
24551
+ }, {}, never, never, true, never>;
24552
+ }
24553
+ type AlertDialogComponentSlot<TComponent> = {
24554
+ /** An app component rendered under the message. */
24555
+ component: Type<TComponent>;
24556
+ /** Values for its signal inputs, as getters, like an overlay's `inputs`: `{ user: () => user }`. */
24557
+ inputs?: NoInfer<OverlayInputs<TComponent>>;
24558
+ };
24559
+ type AlertDialogTemplateSlot<TContext> = {
24560
+ /** An app template rendered under the message. */
24561
+ template: TemplateRef<TContext>;
24562
+ /** The template's context. */
24563
+ context?: TContext;
24564
+ };
24565
+ type AlertDialogSlot<TComponent = unknown, TContext = unknown> = AlertDialogComponentSlot<TComponent> | AlertDialogTemplateSlot<TContext>;
24566
+ export type AlertDialogConfig<TComponent = unknown, TContext = unknown> = {
24463
24567
  /** The dialog's heading, and its accessible name. */
24464
24568
  title: string;
24465
24569
  /** Body text, announced as the dialog's description. Line breaks are kept. */
24466
24570
  message?: string;
24571
+ /**
24572
+ * An app component (`{ component, inputs }`) or template (`{ template, context }`) rendered under the message.
24573
+ * It is not part of the dialog's description.
24574
+ */
24575
+ slot?: AlertDialogSlot<TComponent, TContext>;
24467
24576
  /** Overrides `ALERT_DIALOG_LABELS.acknowledge` for this dialog. */
24468
24577
  acknowledgeLabel?: string;
24469
24578
  /** The element or event the dialog was opened from. Defaults to the focused element. */
24470
24579
  origin?: HTMLElement | Event;
24471
24580
  };
24472
- export type ConfirmDialogConfig = Omit<AlertDialogConfig, 'acknowledgeLabel'> & {
24581
+ export type ConfirmDialogConfig<TComponent = unknown, TContext = unknown> = Omit<AlertDialogConfig<TComponent, TContext>, 'acknowledgeLabel'> & {
24473
24582
  /** Overrides `ALERT_DIALOG_LABELS.confirm` for this dialog. Name the action ("Delete project"), not "OK". */
24474
24583
  confirmLabel?: string;
24475
24584
  /** Overrides `ALERT_DIALOG_LABELS.cancel` for this dialog. */
@@ -24482,12 +24591,12 @@ export type AlertDialogOpener = {
24482
24591
  * A cold observable: subscribing opens a confirm dialog, which emits `true` when the confirm action is
24483
24592
  * pressed and `false` on cancel or <kbd>Escape</kbd>, then completes. Unsubscribing early closes the dialog.
24484
24593
  */
24485
- confirm: (config: ConfirmDialogConfig) => Observable<boolean>;
24594
+ confirm: <TComponent = unknown, TContext = unknown>(config: ConfirmDialogConfig<TComponent, TContext>) => Observable<boolean>;
24486
24595
  /**
24487
24596
  * A cold observable: subscribing opens an alert dialog, which emits once when it is acknowledged or
24488
24597
  * dismissed with <kbd>Escape</kbd>, then completes. Unsubscribing early closes the dialog.
24489
24598
  */
24490
- alert: (config: AlertDialogConfig) => Observable<void>;
24599
+ alert: <TComponent = unknown, TContext = unknown>(config: AlertDialogConfig<TComponent, TContext>) => Observable<void>;
24491
24600
  };
24492
24601
  /**
24493
24602
  * Creates an opener for confirm and alert dialogs (`role="alertdialog"`). Must be called in an injection context.
@@ -24706,33 +24815,6 @@ export declare class OverlayContainerComponent {
24706
24815
  outputs: {};
24707
24816
  }]>;
24708
24817
  }
24709
- declare const OVERLAY_RESULT_TYPE: unique symbol;
24710
- /** Carries an overlay's result type for inference. Create it with {@link overlayResult}. */
24711
- export type OverlayResultMarker<TResult> = {
24712
- readonly [OVERLAY_RESULT_TYPE]: TResult;
24713
- };
24714
- /**
24715
- * Types an overlay's result without restating its component:
24716
- * `defineOverlay({ component: ProductOverlayComponent, result: overlayResult<ProductResult>() })`.
24717
- */
24718
- export declare const overlayResult: <TResult>() => OverlayResultMarker<TResult>;
24719
- type OverlayInputWriteType<TMember> = TMember extends InputSignalWithTransform<any, infer TWrite> ? TWrite : never;
24720
- type OverlayInputKeys<TComponent> = { [K in keyof TComponent]-?: [OverlayInputWriteType<TComponent[K]>] extends [never] ? never : K; }[keyof TComponent];
24721
- /**
24722
- * The component's signal inputs, keyed by property name, each set through a getter that is
24723
- * re-read like an `inputBinding`. Every key is optional: a required input looks the same as an
24724
- * optional one at the type level.
24725
- */
24726
- export type OverlayInputs<TComponent> = { [K in OverlayInputKeys<TComponent>]?: () => OverlayInputWriteType<TComponent[K]>; };
24727
- export type OverlayInputsConfig<TComponent> = {
24728
- /** Values for the component's signal inputs, e.g. `{ productId: () => id }`. Applied before `bindings`. */
24729
- inputs?: NoInfer<OverlayInputs<TComponent>>;
24730
- };
24731
- /** Config options that are typed against the overlay component. */
24732
- export type OverlayTypedConfig<TComponent, TResult> = OverlayInputsConfig<TComponent> & {
24733
- /** Types the overlay's result, see {@link overlayResult}. Has no effect at runtime. */
24734
- result?: OverlayResultMarker<TResult>;
24735
- };
24736
24818
  /** The name of the model the overlay component must expose to participate in query-param sync. */
24737
24819
  export declare const OVERLAY_QUERY_PARAM_INPUT_NAME = "overlayQueryParam";
24738
24820
  /** The shape a component must have to be usable with {@link defineQueryParamOverlay}. */
@@ -24854,24 +24936,6 @@ export declare class OverlayHeaderTemplateDirective implements OnInit, OnDestroy
24854
24936
  static ɵfac: i0.ɵɵFactoryDeclaration<OverlayHeaderTemplateDirective, never>;
24855
24937
  static ɵdir: i0.ɵɵDirectiveDeclaration<OverlayHeaderTemplateDirective, "ng-template[etOverlayHeaderTemplate]", never, {}, {}, never, never, true, never>;
24856
24938
  }
24857
- export declare const OVERLAY_MAIN_TOKEN: InjectionToken<OverlayMainDirective>;
24858
- export declare class OverlayMainDirective implements OnInit {
24859
- private parent;
24860
- private elementRef;
24861
- private overlayRef;
24862
- private overlayManager;
24863
- enabled: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
24864
- constructor();
24865
- ngOnInit(): void;
24866
- static ɵfac: i0.ɵɵFactoryDeclaration<OverlayMainDirective, never>;
24867
- static ɵdir: i0.ɵɵDirectiveDeclaration<OverlayMainDirective, "[etOverlayMain], et-overlay-main", never, {
24868
- "enabled": {
24869
- "alias": "etOverlayMain";
24870
- "required": false;
24871
- "isSignal": true;
24872
- };
24873
- }, {}, never, never, true, never>;
24874
- }
24875
24939
  export type OverlayManagerOpenConfig<TComponent extends object = object, TResult = unknown> = OverlayConfig & OverlayTypedConfig<TComponent, TResult>;
24876
24940
  export type OverlayManager = {
24877
24941
  open: <TComponent extends object, TResult = unknown>(component: Type<TComponent>, config?: OverlayManagerOpenConfig<TComponent, TResult>) => OverlayRef<TComponent, TResult>;
@@ -25018,9 +25082,13 @@ export declare const createOverlayUnsavedChangesGuard: <T>(config: CreateOverlay
25018
25082
  /**
25019
25083
  * Blocks page scrolling while a modal overlay is open, in the window the overlay is mounted in.
25020
25084
  * Register once via `provideOverlay()` (or call `injectOverlayScrollBlocker()` in an environment initializer).
25085
+ * `injectOverlayScrollBlocker().lock(document?)` also locks page scroll outside any overlay and returns an idempotent
25086
+ * release function; the page stays locked until every modal overlay and every manual lock is gone.
25021
25087
  */
25022
25088
  export declare const provideOverlayScrollBlocker: () => import("@angular/core").StaticProvider[];
25023
- export declare const injectOverlayScrollBlocker: import("@ethlete/core").InjectFn<void>;
25089
+ export declare const injectOverlayScrollBlocker: import("@ethlete/core").InjectFn<{
25090
+ lock: (target?: Document) => () => void;
25091
+ }>;
25024
25092
  export declare class OverlayTitleDirective implements OnInit {
25025
25093
  private overlayRef;
25026
25094
  private elementRef;
@@ -25522,6 +25590,10 @@ export type OverlayStrategyController = {
25522
25590
  hasBackdrop: Signal<boolean>;
25523
25591
  /** Wires strategy lifecycle hooks and breakpoint switching. Must be called right after mounting. */
25524
25592
  attach: (runtimeRef: OverlayRuntimeRef<object, unknown>, overlayRef: OverlayRef<object, unknown>) => void;
25593
+ /** Overrides sizing of the active strategy until the overlay closes - see `OverlayRef.updateSize`. */
25594
+ updateSize: (size: OverlaySizeUpdate) => void;
25595
+ /** Puts the active strategy's sizing back on the pane after positioning cleared it. */
25596
+ reapplySizing: () => void;
25525
25597
  /** Releases the controller when the overlay never mounted. A mounted overlay releases it on close. */
25526
25598
  destroy: () => void;
25527
25599
  };
@@ -30629,59 +30701,6 @@ export declare class VimeoPlayerComponent {
30629
30701
  outputs: {};
30630
30702
  }]>;
30631
30703
  }
30632
- export declare class YoutubePlayerParamsDirective implements StreamPlayerParams {
30633
- videoId: import("@angular/core").InputSignal<string>;
30634
- startTime: import("@angular/core").InputSignalWithTransform<number, unknown>;
30635
- width: import("@angular/core").InputSignalWithTransform<string | number, string | number>;
30636
- height: import("@angular/core").InputSignalWithTransform<string | number, string | number>;
30637
- playerId: import("@angular/core").Signal<string>;
30638
- createBindings(): import("@angular/core").Binding[];
30639
- static ɵfac: i0.ɵɵFactoryDeclaration<YoutubePlayerParamsDirective, never>;
30640
- static ɵdir: i0.ɵɵDirectiveDeclaration<YoutubePlayerParamsDirective, never, never, {
30641
- "videoId": {
30642
- "alias": "videoId";
30643
- "required": true;
30644
- "isSignal": true;
30645
- };
30646
- "startTime": {
30647
- "alias": "startTime";
30648
- "required": false;
30649
- "isSignal": true;
30650
- };
30651
- "width": {
30652
- "alias": "width";
30653
- "required": false;
30654
- "isSignal": true;
30655
- };
30656
- "height": {
30657
- "alias": "height";
30658
- "required": false;
30659
- "isSignal": true;
30660
- };
30661
- }, {}, never, never, true, never>;
30662
- }
30663
- export declare const YOUTUBE_PLAYER_TOKEN: InjectionToken<YoutubePlayerDirective>;
30664
- export declare class YoutubePlayerDirective implements StreamPlayer {
30665
- private platformId;
30666
- private document;
30667
- private params;
30668
- private el;
30669
- private scriptLoader;
30670
- private renderer;
30671
- readonly CAPABILITIES: StreamPlayerCapabilities;
30672
- state: import("@angular/core").WritableSignal<StreamPlayerState>;
30673
- thumbnail: import("@angular/core").Signal<string>;
30674
- private playerResource;
30675
- constructor();
30676
- play(): void;
30677
- pause(): void;
30678
- mute(): void;
30679
- unmute(): void;
30680
- seek(seconds: number): void;
30681
- retry(): void;
30682
- static ɵfac: i0.ɵɵFactoryDeclaration<YoutubePlayerDirective, never>;
30683
- static ɵdir: i0.ɵɵDirectiveDeclaration<YoutubePlayerDirective, never, never, {}, {}, never, never, true, never>;
30684
- }
30685
30704
  export type YtWindow = Window & {
30686
30705
  YT: {
30687
30706
  Player: new (elementOrId: HTMLElement | string, config: YtPlayerConfig) => YtPlayer;
@@ -30698,6 +30717,7 @@ export type YtWindow = Window & {
30698
30717
  onYouTubeIframeAPIReady?: () => void;
30699
30718
  };
30700
30719
  export type YtPlayerConfig = {
30720
+ host?: string;
30701
30721
  width?: string | number;
30702
30722
  height?: string | number;
30703
30723
  videoId?: string;
@@ -30745,6 +30765,81 @@ export type YtPlayerErrorEvent = {
30745
30765
  target: YtPlayer;
30746
30766
  data: number;
30747
30767
  };
30768
+ export declare class YoutubePlayerParamsDirective implements StreamPlayerParams {
30769
+ videoId: import("@angular/core").InputSignal<string>;
30770
+ startTime: import("@angular/core").InputSignalWithTransform<number, unknown>;
30771
+ width: import("@angular/core").InputSignalWithTransform<string | number, string | number>;
30772
+ height: import("@angular/core").InputSignalWithTransform<string | number, string | number>;
30773
+ /** Starts the video once the player is ready. Playback starts muted, as browsers block autoplay with sound. */
30774
+ autoplay: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
30775
+ /** The host that serves the embed, e.g. `www.youtube-nocookie.com`. A scheme and a trailing slash are optional. */
30776
+ host: import("@angular/core").InputSignal<string>;
30777
+ /** Player vars merged over the SDK defaults, e.g. `{ controls: 0 }`. The given keys win; every other key keeps its default. */
30778
+ playerVars: import("@angular/core").InputSignal<YtPlayerVars>;
30779
+ hostUrl: import("@angular/core").Signal<string>;
30780
+ playerId: import("@angular/core").Signal<string>;
30781
+ createBindings(): import("@angular/core").Binding[];
30782
+ static ɵfac: i0.ɵɵFactoryDeclaration<YoutubePlayerParamsDirective, never>;
30783
+ static ɵdir: i0.ɵɵDirectiveDeclaration<YoutubePlayerParamsDirective, never, never, {
30784
+ "videoId": {
30785
+ "alias": "videoId";
30786
+ "required": true;
30787
+ "isSignal": true;
30788
+ };
30789
+ "startTime": {
30790
+ "alias": "startTime";
30791
+ "required": false;
30792
+ "isSignal": true;
30793
+ };
30794
+ "width": {
30795
+ "alias": "width";
30796
+ "required": false;
30797
+ "isSignal": true;
30798
+ };
30799
+ "height": {
30800
+ "alias": "height";
30801
+ "required": false;
30802
+ "isSignal": true;
30803
+ };
30804
+ "autoplay": {
30805
+ "alias": "autoplay";
30806
+ "required": false;
30807
+ "isSignal": true;
30808
+ };
30809
+ "host": {
30810
+ "alias": "host";
30811
+ "required": false;
30812
+ "isSignal": true;
30813
+ };
30814
+ "playerVars": {
30815
+ "alias": "playerVars";
30816
+ "required": false;
30817
+ "isSignal": true;
30818
+ };
30819
+ }, {}, never, never, true, never>;
30820
+ }
30821
+ export declare const YOUTUBE_PLAYER_TOKEN: InjectionToken<YoutubePlayerDirective>;
30822
+ export declare class YoutubePlayerDirective implements StreamPlayer {
30823
+ private platformId;
30824
+ private document;
30825
+ private params;
30826
+ private el;
30827
+ private scriptLoader;
30828
+ private renderer;
30829
+ readonly CAPABILITIES: StreamPlayerCapabilities;
30830
+ state: import("@angular/core").WritableSignal<StreamPlayerState>;
30831
+ thumbnail: import("@angular/core").Signal<string>;
30832
+ private playerResource;
30833
+ constructor();
30834
+ play(): void;
30835
+ pause(): void;
30836
+ mute(): void;
30837
+ unmute(): void;
30838
+ seek(seconds: number): void;
30839
+ retry(): void;
30840
+ static ɵfac: i0.ɵɵFactoryDeclaration<YoutubePlayerDirective, never>;
30841
+ static ɵdir: i0.ɵɵDirectiveDeclaration<YoutubePlayerDirective, never, never, {}, {}, never, never, true, never>;
30842
+ }
30748
30843
  export declare class YoutubePlayerSlotComponent {
30749
30844
  /** The slot handle: `currentState()`, `capabilities()`, the playback controls and `pipActivate()`. */
30750
30845
  controls: import("@ethlete/components").StreamPlayerSlotHandle;
@@ -30756,6 +30851,9 @@ export declare class YoutubePlayerSlotComponent {
30756
30851
  "startTime": "startTime";
30757
30852
  "width": "width";
30758
30853
  "height": "height";
30854
+ "autoplay": "autoplay";
30855
+ "host": "host";
30856
+ "playerVars": "playerVars";
30759
30857
  };
30760
30858
  outputs: {};
30761
30859
  }, {
@@ -30777,6 +30875,9 @@ export declare class YoutubePlayerComponent {
30777
30875
  "startTime": "startTime";
30778
30876
  "width": "width";
30779
30877
  "height": "height";
30878
+ "autoplay": "autoplay";
30879
+ "host": "host";
30880
+ "playerVars": "playerVars";
30780
30881
  };
30781
30882
  outputs: {};
30782
30883
  }, {
@@ -36737,5 +36838,5 @@ export declare const provideUnsavedChangesLabels: (labels: import("@ethlete/core
36737
36838
  export declare const injectUnsavedChangesLabels: () => import("@angular/core").Signal<UnsavedChangesLabels>;
36738
36839
  export declare const UNSAVED_CHANGES_LABELS: import("@angular/core").InjectionToken<import("@ethlete/core").LabelsSource<UnsavedChangesLabels>>;
36739
36840
  /** The version of `@ethlete/components` this build was cut from. */
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 };
36841
+ export declare const COMPONENTS_VERSION = "1.0.0-next.86";
36842
+ export { type AlertDialogComponentSlot, type AlertDialogSlot, type AlertDialogTemplateSlot, 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 };