@ethlete/components 1.0.0-next.85 → 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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ethlete/components",
3
- "version": "1.0.0-next.85",
3
+ "version": "1.0.0-next.86",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/ethlete-io/ethdk",
@@ -60,6 +60,10 @@
60
60
  )
61
61
  );
62
62
  --_et-form-field-frame-focus: var(
63
+ --et-form-field-control-border-color-focus,
64
+ var(--et-theme-color-primary-solid, currentColor)
65
+ );
66
+ --_et-form-field-frame-focus-readonly: var(
63
67
  --et-form-field-control-border-color-focus,
64
68
  var(--et-surface-color-solid, currentColor)
65
69
  );
@@ -90,6 +94,7 @@
90
94
  )
91
95
  );
92
96
  --_et-form-field-frame-focus: var(--et-theme-color-ink-solid);
97
+ --_et-form-field-frame-focus-readonly: var(--et-theme-color-ink-solid);
93
98
  --_et-form-field-label-color: var(--et-theme-color-ink-solid);
94
99
  --_et-form-field-label-color-active: var(--et-theme-color-ink-solid);
95
100
  }
@@ -280,12 +285,16 @@
280
285
  }
281
286
  }
282
287
 
283
- &:where(:has(:focus-visible):not([data-readonly])) .et-form-field-control-frame,
288
+ &:where(:has(:focus-visible)) .et-form-field-control-frame,
284
289
  &:where([data-expanded]:not([data-readonly])) .et-form-field-control-frame,
285
- &:where([data-focused]:not([data-readonly])) .et-form-field-control-frame {
290
+ &:where([data-focused]) .et-form-field-control-frame {
286
291
  border-color: var(--_et-form-field-frame-focus);
292
+ }
293
+
294
+ &[data-readonly]:where([data-focused], :has(:focus-visible)) .et-form-field-control-frame {
295
+ border-color: var(--_et-form-field-frame-focus-readonly);
287
296
  box-shadow: inset 0 0 0 var(--et-form-field-control-focus-ring-width, var(--et-form-field-control-border-width))
288
- var(--_et-form-field-frame-focus);
297
+ var(--_et-form-field-frame-focus-readonly);
289
298
  }
290
299
 
291
300
  &:where(:has(:focus-visible):not([data-readonly])) .et-form-field-control-slot,
@@ -310,18 +319,22 @@
310
319
  }
311
320
 
312
321
  .et-form-field-control-frame {
313
- border-style: dashed;
314
322
  cursor: default;
315
323
  }
316
324
 
317
- &:is([data-focused], :has(:focus-visible)) .et-form-field-control-frame {
318
- border-color: var(--_et-form-field-frame-focus);
325
+ &:where(:not([data-error]):not([data-focused]):not(:has(:focus-visible))) .et-form-field-control-frame {
326
+ border-color: var(
327
+ --et-form-field-control-border-color-readonly,
328
+ var(--et-surface-border-solid, color-mix(in srgb, var(--_et-form-field-frame-border) 50%, transparent))
329
+ );
319
330
  }
320
331
 
321
- &:not([data-appearance='underline']):is([data-focused], :has(:focus-visible)) .et-form-field-control-frame {
322
- border-color: transparent;
323
- outline: calc(2 * var(--et-form-field-control-border-width)) dashed var(--_et-form-field-frame-focus);
324
- outline-offset: calc(-2 * var(--et-form-field-control-border-width));
332
+ &:where(:not([data-appearance='underline'])) .et-form-field-control-frame {
333
+ background: color-mix(
334
+ in srgb,
335
+ var(--et-surface-interaction-solid, currentColor) 6%,
336
+ var(--_et-form-field-control-background)
337
+ );
325
338
  }
326
339
 
327
340
  .et-form-field-label-area {
@@ -47,6 +47,12 @@
47
47
  initial-value: 10px;
48
48
  }
49
49
 
50
+ @property --et-segmented-button-group-segment-min-width {
51
+ syntax: '<length>';
52
+ inherits: true;
53
+ initial-value: 0px;
54
+ }
55
+
50
56
  et-segmented-button-group {
51
57
  display: flex;
52
58
  flex-direction: column;
@@ -116,6 +122,16 @@
116
122
  background-color: color-mix(in srgb, var(--et-surface-interaction-solid, currentColor) 8%, transparent);
117
123
  }
118
124
 
125
+ &:where([data-stretch]) .et-segmented-button-group-buttons {
126
+ display: grid;
127
+ grid-auto-columns: minmax(var(--et-segmented-button-group-segment-min-width), 1fr);
128
+ align-self: stretch;
129
+ }
130
+
131
+ &:where([data-stretch]) et-segmented-button {
132
+ min-width: var(--et-segmented-button-group-segment-min-width);
133
+ }
134
+
119
135
  &[data-error] .et-segmented-button-group-buttons {
120
136
  box-shadow: inset 0 0 0 1px var(--et-theme-color-primary-solid);
121
137
  }
@@ -7,4 +7,20 @@
7
7
  font-variant-numeric: tabular-nums;
8
8
  letter-spacing: 0.04em;
9
9
  }
10
+
11
+ .et-menu-item {
12
+ &[data-active]:where([data-active-source='keyboard']:focus-visible),
13
+ &[data-highlight-held],
14
+ &[data-menu-open] {
15
+ .et-menu-item-shortcut {
16
+ color: var(--_et-menu-color);
17
+ }
18
+ }
19
+
20
+ @media (hover: hover) {
21
+ &[data-active]:where(:hover) .et-menu-item-shortcut {
22
+ color: var(--_et-menu-color);
23
+ }
24
+ }
25
+ }
10
26
  }
@@ -11,6 +11,12 @@
11
11
  initial-value: 14px;
12
12
  }
13
13
 
14
+ @property --et-alert-dialog-slot-gap {
15
+ syntax: '<length>';
16
+ inherits: true;
17
+ initial-value: 12px;
18
+ }
19
+
14
20
  @property --et-alert-dialog-actions-gap {
15
21
  syntax: '<length>';
16
22
  inherits: true;
@@ -35,6 +41,10 @@
35
41
  white-space: pre-line;
36
42
  }
37
43
 
44
+ .et-alert-dialog-message + .et-alert-dialog-slot {
45
+ margin-block-start: var(--et-alert-dialog-slot-gap);
46
+ }
47
+
38
48
  .et-alert-dialog-actions {
39
49
  display: flex;
40
50
  flex-wrap: wrap;
@@ -24,9 +24,10 @@
24
24
  gap: var(--et-pagination-gap);
25
25
  }
26
26
 
27
- /* The fit measures the host. Sized to its trimmed content, a flex item would never see room return. */
27
+ /* The fit measures the host. Sized to its trimmed content, a flex item would never see room return. A full inline
28
+ size instead of flex-grow, so a column flex parent does not stretch the height. */
28
29
  :where(.et-pagination-host[data-fit-width]) {
29
- flex-grow: 1;
30
+ inline-size: 100%;
30
31
  }
31
32
 
32
33
  /* Touch gets the comfortable 44px target. `:where()` holds this at zero specificity so the `sm` and
@@ -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;
@@ -17918,6 +17931,19 @@ export declare class RichTextEditorImageToolComponent {
17918
17931
  * here, they tree-shake away for editors that don't provide it.
17919
17932
  */
17920
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;
17921
17947
  export declare class MenuContextTriggerDirective {
17922
17948
  private menu;
17923
17949
  elementRef: ElementRef<HTMLElement>;
@@ -18217,6 +18243,7 @@ export declare class MenuDirective {
18217
18243
  private overlayManager;
18218
18244
  private hostElement;
18219
18245
  parent: MenuDirective | null;
18246
+ private menuConfig;
18220
18247
  placement: import("@angular/core").InputSignal<"auto" | Placement>;
18221
18248
  fallbackPlacements: import("@angular/core").InputSignal<Placement[] | undefined>;
18222
18249
  offset: import("@angular/core").InputSignal<"auto" | OffsetOptions | null>;
@@ -21575,6 +21602,8 @@ export declare class SegmentedButtonGroupComponent {
21575
21602
  * [tabs](/components/tabs) instead; this variant is for a filter that happens to look like tabs. @default 'pill'
21576
21603
  */
21577
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>;
21578
21607
  protected isTabsVariant: import("@angular/core").Signal<boolean>;
21579
21608
  canAnimate: {
21580
21609
  state: import("@angular/core").Signal<boolean>;
@@ -21593,6 +21622,11 @@ export declare class SegmentedButtonGroupComponent {
21593
21622
  "required": false;
21594
21623
  "isSignal": true;
21595
21624
  };
21625
+ "stretch": {
21626
+ "alias": "stretch";
21627
+ "required": false;
21628
+ "isSignal": true;
21629
+ };
21596
21630
  }, {}, never, ["et-label", ".et-segmented-button-group-label", "*", "et-hint"], true, [{
21597
21631
  directive: typeof FormFieldDirective;
21598
21632
  inputs: {};
@@ -24471,17 +24505,80 @@ export declare const alertDialogLabelsForLocale: (locale: string) => AlertDialog
24471
24505
  export declare const provideAlertDialogLabels: (labels: import("@ethlete/core").LabelsSource<AlertDialogLabels>) => import("@angular/core").Provider;
24472
24506
  export declare const injectAlertDialogLabels: () => import("@angular/core").Signal<AlertDialogLabels>;
24473
24507
  export declare const ALERT_DIALOG_LABELS: import("@angular/core").InjectionToken<import("@ethlete/core").LabelsSource<AlertDialogLabels>>;
24474
- 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> = {
24475
24567
  /** The dialog's heading, and its accessible name. */
24476
24568
  title: string;
24477
24569
  /** Body text, announced as the dialog's description. Line breaks are kept. */
24478
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>;
24479
24576
  /** Overrides `ALERT_DIALOG_LABELS.acknowledge` for this dialog. */
24480
24577
  acknowledgeLabel?: string;
24481
24578
  /** The element or event the dialog was opened from. Defaults to the focused element. */
24482
24579
  origin?: HTMLElement | Event;
24483
24580
  };
24484
- export type ConfirmDialogConfig = Omit<AlertDialogConfig, 'acknowledgeLabel'> & {
24581
+ export type ConfirmDialogConfig<TComponent = unknown, TContext = unknown> = Omit<AlertDialogConfig<TComponent, TContext>, 'acknowledgeLabel'> & {
24485
24582
  /** Overrides `ALERT_DIALOG_LABELS.confirm` for this dialog. Name the action ("Delete project"), not "OK". */
24486
24583
  confirmLabel?: string;
24487
24584
  /** Overrides `ALERT_DIALOG_LABELS.cancel` for this dialog. */
@@ -24494,12 +24591,12 @@ export type AlertDialogOpener = {
24494
24591
  * A cold observable: subscribing opens a confirm dialog, which emits `true` when the confirm action is
24495
24592
  * pressed and `false` on cancel or <kbd>Escape</kbd>, then completes. Unsubscribing early closes the dialog.
24496
24593
  */
24497
- confirm: (config: ConfirmDialogConfig) => Observable<boolean>;
24594
+ confirm: <TComponent = unknown, TContext = unknown>(config: ConfirmDialogConfig<TComponent, TContext>) => Observable<boolean>;
24498
24595
  /**
24499
24596
  * A cold observable: subscribing opens an alert dialog, which emits once when it is acknowledged or
24500
24597
  * dismissed with <kbd>Escape</kbd>, then completes. Unsubscribing early closes the dialog.
24501
24598
  */
24502
- alert: (config: AlertDialogConfig) => Observable<void>;
24599
+ alert: <TComponent = unknown, TContext = unknown>(config: AlertDialogConfig<TComponent, TContext>) => Observable<void>;
24503
24600
  };
24504
24601
  /**
24505
24602
  * Creates an opener for confirm and alert dialogs (`role="alertdialog"`). Must be called in an injection context.
@@ -24718,33 +24815,6 @@ export declare class OverlayContainerComponent {
24718
24815
  outputs: {};
24719
24816
  }]>;
24720
24817
  }
24721
- declare const OVERLAY_RESULT_TYPE: unique symbol;
24722
- /** Carries an overlay's result type for inference. Create it with {@link overlayResult}. */
24723
- export type OverlayResultMarker<TResult> = {
24724
- readonly [OVERLAY_RESULT_TYPE]: TResult;
24725
- };
24726
- /**
24727
- * Types an overlay's result without restating its component:
24728
- * `defineOverlay({ component: ProductOverlayComponent, result: overlayResult<ProductResult>() })`.
24729
- */
24730
- export declare const overlayResult: <TResult>() => OverlayResultMarker<TResult>;
24731
- type OverlayInputWriteType<TMember> = TMember extends InputSignalWithTransform<any, infer TWrite> ? TWrite : never;
24732
- type OverlayInputKeys<TComponent> = { [K in keyof TComponent]-?: [OverlayInputWriteType<TComponent[K]>] extends [never] ? never : K; }[keyof TComponent];
24733
- /**
24734
- * The component's signal inputs, keyed by property name, each set through a getter that is
24735
- * re-read like an `inputBinding`. Every key is optional: a required input looks the same as an
24736
- * optional one at the type level.
24737
- */
24738
- export type OverlayInputs<TComponent> = { [K in OverlayInputKeys<TComponent>]?: () => OverlayInputWriteType<TComponent[K]>; };
24739
- export type OverlayInputsConfig<TComponent> = {
24740
- /** Values for the component's signal inputs, e.g. `{ productId: () => id }`. Applied before `bindings`. */
24741
- inputs?: NoInfer<OverlayInputs<TComponent>>;
24742
- };
24743
- /** Config options that are typed against the overlay component. */
24744
- export type OverlayTypedConfig<TComponent, TResult> = OverlayInputsConfig<TComponent> & {
24745
- /** Types the overlay's result, see {@link overlayResult}. Has no effect at runtime. */
24746
- result?: OverlayResultMarker<TResult>;
24747
- };
24748
24818
  /** The name of the model the overlay component must expose to participate in query-param sync. */
24749
24819
  export declare const OVERLAY_QUERY_PARAM_INPUT_NAME = "overlayQueryParam";
24750
24820
  /** The shape a component must have to be usable with {@link defineQueryParamOverlay}. */
@@ -24866,24 +24936,6 @@ export declare class OverlayHeaderTemplateDirective implements OnInit, OnDestroy
24866
24936
  static ɵfac: i0.ɵɵFactoryDeclaration<OverlayHeaderTemplateDirective, never>;
24867
24937
  static ɵdir: i0.ɵɵDirectiveDeclaration<OverlayHeaderTemplateDirective, "ng-template[etOverlayHeaderTemplate]", never, {}, {}, never, never, true, never>;
24868
24938
  }
24869
- export declare const OVERLAY_MAIN_TOKEN: InjectionToken<OverlayMainDirective>;
24870
- export declare class OverlayMainDirective implements OnInit {
24871
- private parent;
24872
- private elementRef;
24873
- private overlayRef;
24874
- private overlayManager;
24875
- enabled: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
24876
- constructor();
24877
- ngOnInit(): void;
24878
- static ɵfac: i0.ɵɵFactoryDeclaration<OverlayMainDirective, never>;
24879
- static ɵdir: i0.ɵɵDirectiveDeclaration<OverlayMainDirective, "[etOverlayMain], et-overlay-main", never, {
24880
- "enabled": {
24881
- "alias": "etOverlayMain";
24882
- "required": false;
24883
- "isSignal": true;
24884
- };
24885
- }, {}, never, never, true, never>;
24886
- }
24887
24939
  export type OverlayManagerOpenConfig<TComponent extends object = object, TResult = unknown> = OverlayConfig & OverlayTypedConfig<TComponent, TResult>;
24888
24940
  export type OverlayManager = {
24889
24941
  open: <TComponent extends object, TResult = unknown>(component: Type<TComponent>, config?: OverlayManagerOpenConfig<TComponent, TResult>) => OverlayRef<TComponent, TResult>;
@@ -25030,9 +25082,13 @@ export declare const createOverlayUnsavedChangesGuard: <T>(config: CreateOverlay
25030
25082
  /**
25031
25083
  * Blocks page scrolling while a modal overlay is open, in the window the overlay is mounted in.
25032
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.
25033
25087
  */
25034
25088
  export declare const provideOverlayScrollBlocker: () => import("@angular/core").StaticProvider[];
25035
- export declare const injectOverlayScrollBlocker: import("@ethlete/core").InjectFn<void>;
25089
+ export declare const injectOverlayScrollBlocker: import("@ethlete/core").InjectFn<{
25090
+ lock: (target?: Document) => () => void;
25091
+ }>;
25036
25092
  export declare class OverlayTitleDirective implements OnInit {
25037
25093
  private overlayRef;
25038
25094
  private elementRef;
@@ -25534,6 +25590,10 @@ export type OverlayStrategyController = {
25534
25590
  hasBackdrop: Signal<boolean>;
25535
25591
  /** Wires strategy lifecycle hooks and breakpoint switching. Must be called right after mounting. */
25536
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;
25537
25597
  /** Releases the controller when the overlay never mounted. A mounted overlay releases it on close. */
25538
25598
  destroy: () => void;
25539
25599
  };
@@ -30641,59 +30701,6 @@ export declare class VimeoPlayerComponent {
30641
30701
  outputs: {};
30642
30702
  }]>;
30643
30703
  }
30644
- export declare class YoutubePlayerParamsDirective implements StreamPlayerParams {
30645
- videoId: import("@angular/core").InputSignal<string>;
30646
- startTime: import("@angular/core").InputSignalWithTransform<number, unknown>;
30647
- width: import("@angular/core").InputSignalWithTransform<string | number, string | number>;
30648
- height: import("@angular/core").InputSignalWithTransform<string | number, string | number>;
30649
- playerId: import("@angular/core").Signal<string>;
30650
- createBindings(): import("@angular/core").Binding[];
30651
- static ɵfac: i0.ɵɵFactoryDeclaration<YoutubePlayerParamsDirective, never>;
30652
- static ɵdir: i0.ɵɵDirectiveDeclaration<YoutubePlayerParamsDirective, never, never, {
30653
- "videoId": {
30654
- "alias": "videoId";
30655
- "required": true;
30656
- "isSignal": true;
30657
- };
30658
- "startTime": {
30659
- "alias": "startTime";
30660
- "required": false;
30661
- "isSignal": true;
30662
- };
30663
- "width": {
30664
- "alias": "width";
30665
- "required": false;
30666
- "isSignal": true;
30667
- };
30668
- "height": {
30669
- "alias": "height";
30670
- "required": false;
30671
- "isSignal": true;
30672
- };
30673
- }, {}, never, never, true, never>;
30674
- }
30675
- export declare const YOUTUBE_PLAYER_TOKEN: InjectionToken<YoutubePlayerDirective>;
30676
- export declare class YoutubePlayerDirective implements StreamPlayer {
30677
- private platformId;
30678
- private document;
30679
- private params;
30680
- private el;
30681
- private scriptLoader;
30682
- private renderer;
30683
- readonly CAPABILITIES: StreamPlayerCapabilities;
30684
- state: import("@angular/core").WritableSignal<StreamPlayerState>;
30685
- thumbnail: import("@angular/core").Signal<string>;
30686
- private playerResource;
30687
- constructor();
30688
- play(): void;
30689
- pause(): void;
30690
- mute(): void;
30691
- unmute(): void;
30692
- seek(seconds: number): void;
30693
- retry(): void;
30694
- static ɵfac: i0.ɵɵFactoryDeclaration<YoutubePlayerDirective, never>;
30695
- static ɵdir: i0.ɵɵDirectiveDeclaration<YoutubePlayerDirective, never, never, {}, {}, never, never, true, never>;
30696
- }
30697
30704
  export type YtWindow = Window & {
30698
30705
  YT: {
30699
30706
  Player: new (elementOrId: HTMLElement | string, config: YtPlayerConfig) => YtPlayer;
@@ -30710,6 +30717,7 @@ export type YtWindow = Window & {
30710
30717
  onYouTubeIframeAPIReady?: () => void;
30711
30718
  };
30712
30719
  export type YtPlayerConfig = {
30720
+ host?: string;
30713
30721
  width?: string | number;
30714
30722
  height?: string | number;
30715
30723
  videoId?: string;
@@ -30757,6 +30765,81 @@ export type YtPlayerErrorEvent = {
30757
30765
  target: YtPlayer;
30758
30766
  data: number;
30759
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
+ }
30760
30843
  export declare class YoutubePlayerSlotComponent {
30761
30844
  /** The slot handle: `currentState()`, `capabilities()`, the playback controls and `pipActivate()`. */
30762
30845
  controls: import("@ethlete/components").StreamPlayerSlotHandle;
@@ -30768,6 +30851,9 @@ export declare class YoutubePlayerSlotComponent {
30768
30851
  "startTime": "startTime";
30769
30852
  "width": "width";
30770
30853
  "height": "height";
30854
+ "autoplay": "autoplay";
30855
+ "host": "host";
30856
+ "playerVars": "playerVars";
30771
30857
  };
30772
30858
  outputs: {};
30773
30859
  }, {
@@ -30789,6 +30875,9 @@ export declare class YoutubePlayerComponent {
30789
30875
  "startTime": "startTime";
30790
30876
  "width": "width";
30791
30877
  "height": "height";
30878
+ "autoplay": "autoplay";
30879
+ "host": "host";
30880
+ "playerVars": "playerVars";
30792
30881
  };
30793
30882
  outputs: {};
30794
30883
  }, {
@@ -36749,5 +36838,5 @@ export declare const provideUnsavedChangesLabels: (labels: import("@ethlete/core
36749
36838
  export declare const injectUnsavedChangesLabels: () => import("@angular/core").Signal<UnsavedChangesLabels>;
36750
36839
  export declare const UNSAVED_CHANGES_LABELS: import("@angular/core").InjectionToken<import("@ethlete/core").LabelsSource<UnsavedChangesLabels>>;
36751
36840
  /** The version of `@ethlete/components` this build was cut from. */
36752
- export declare const COMPONENTS_VERSION = "1.0.0-next.85";
36753
- 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 };