@ethlete/core 5.0.0-next.3 → 5.0.0-next.30

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.
@@ -1,15 +1,16 @@
1
1
  import * as _angular_core from '@angular/core';
2
- import { InjectionToken, AfterViewInit, Signal, ComponentRef, StaticProvider, EmbeddedViewRef, Provider, InjectOptions, TemplateRef, QueryList, InputSignal, InputSignalWithTransform, PipeTransform, TrackByFunction, ElementRef, WritableSignal, DestroyRef, Injector, RendererStyleFlags2, OnInit, OnDestroy } from '@angular/core';
2
+ import { InjectionToken, AfterViewInit, InputSignal, ApplicationRef, Signal, ComponentRef, StaticProvider, EmbeddedViewRef, ElementRef, QueryList, WritableSignal, InputSignalWithTransform, RendererStyleFlags2, Type, Provider, Injector, ViewContainerRef, Binding, computed, InjectOptions, TemplateRef, PipeTransform, TrackByFunction, DestroyRef, OnInit, OnDestroy } from '@angular/core';
3
3
  import * as rxjs from 'rxjs';
4
4
  import { Observable, BehaviorSubject, Subject } from 'rxjs';
5
5
  import * as _ethlete_core from '@ethlete/core';
6
6
  import { OverlayRef } from '@angular/cdk/overlay';
7
7
  import { ComponentPortal, ComponentType } from '@angular/cdk/portal';
8
- import { Placement, OffsetOptions, Padding } from '@floating-ui/dom';
8
+ import { Placement, OffsetOptions, Padding, VirtualElement } from '@floating-ui/dom';
9
9
  import { MatchListView, ParticipantViewUnion, MatchRankingView, StageType } from '@ethlete/types';
10
10
  import * as _angular_platform_browser from '@angular/platform-browser';
11
- import { FormGroup, AbstractControl, ValidationErrors, ValidatorFn } from '@angular/forms';
12
- import { Data, Params, Event as Event$1 } from '@angular/router';
11
+ import { AbstractControl, FormGroup, ValidationErrors, ValidatorFn } from '@angular/forms';
12
+ import * as _angular_router from '@angular/router';
13
+ import { Data, Params, Router } from '@angular/router';
13
14
 
14
15
  declare const ANIMATABLE_TOKEN: InjectionToken<AnimatableDirective>;
15
16
  type AnimationEndEvent = {
@@ -36,6 +37,14 @@ declare class AnimatableDirective {
36
37
  static ɵdir: _angular_core.ɵɵDirectiveDeclaration<AnimatableDirective, "[etAnimatable]", ["etAnimatable"], {}, {}, never, never, true, never>;
37
38
  }
38
39
 
40
+ declare const ANIMATION_DEBUG_STORAGE_KEY = "et-overlay-debug";
41
+ /**
42
+ * Debug logging for overlay and animation lifecycle internals.
43
+ * Enable via `localStorage.setItem('et-overlay-debug', 'true')` and reload.
44
+ */
45
+ declare const isAnimationDebugEnabled: () => boolean;
46
+ declare const animationDebugLog: (scope: string, ...args: unknown[]) => void;
47
+
39
48
  declare const ANIMATED_IF_TOKEN: InjectionToken<AnimatedIfDirective>;
40
49
  declare class AnimatedIfDirective {
41
50
  private templateRef;
@@ -77,10 +86,193 @@ declare class AnimatedLifecycleDirective implements AfterViewInit {
77
86
  private removeClass;
78
87
  private removeClasses;
79
88
  private updateState;
89
+ private debugLog;
80
90
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<AnimatedLifecycleDirective, never>;
81
91
  static ɵdir: _angular_core.ɵɵDirectiveDeclaration<AnimatedLifecycleDirective, "[etAnimatedLifecycle]", ["etAnimatedLifecycle"], { "skipNextEnter": { "alias": "skipNextEnter"; "required": false; "isSignal": true; }; }, { "stateChange": "stateChange"; "skipNextEnter": "skipNextEnterChange"; }, never, never, true, [{ directive: typeof AnimatableDirective; inputs: {}; outputs: {}; }]>;
82
92
  }
83
93
 
94
+ /**
95
+ * Cascades hover/active-driven color DOWN to descendants explicitly marked with
96
+ * `ColorInteractiveDirective` — this element does not color itself. Use it when a wrapper should
97
+ * expand a nested control's hit/visual area (e.g. clicking a checkbox's label should light up the
98
+ * checkbox itself), never to give a wrapper its own interactive coloring — that's
99
+ * `ColorInteractiveDirective`.
100
+ *
101
+ * Does nothing unless at least one descendant carries `ColorInteractiveDirective` — check for
102
+ * that before adding this. It was mistakenly added to a component with no such descendant once
103
+ * already, where it did nothing but was confusing to read.
104
+ */
105
+ declare class ColorInteractiveContainerDirective {
106
+ private styleManager;
107
+ constructor();
108
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<ColorInteractiveContainerDirective, never>;
109
+ static ɵdir: _angular_core.ɵɵDirectiveDeclaration<ColorInteractiveContainerDirective, "[etColorInteractiveContainer]", never, {}, {}, never, never, true, never>;
110
+ }
111
+
112
+ /**
113
+ * Marks a descendant as NOT counting toward an ancestor's `ColorInteractiveDirective`
114
+ * `:hover`/`:active` reaction (via the `:has()` guard in color-interactive-styles.component.css).
115
+ * Use it for content that's incidentally inside an interactive ancestor but isn't part of what
116
+ * makes that ancestor interactive — e.g. a hint/error block sitting inside a form field's frame.
117
+ *
118
+ * This only suppresses the ancestor's OWN reaction to hovering/pressing the excluded element — it
119
+ * has no effect on custom-property inheritance into descendants past the excluded element. If
120
+ * what you actually need is "stop my own cosmetic styling from reacting to a parent's unrelated
121
+ * interaction," this is the wrong tool; that's the class of bug `ColorInteractiveHasFocusDirective`
122
+ * used to have (see its own comment).
123
+ */
124
+ declare class ColorInteractiveExcludeDirective {
125
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<ColorInteractiveExcludeDirective, never>;
126
+ static ɵdir: _angular_core.ɵɵDirectiveDeclaration<ColorInteractiveExcludeDirective, "[etColorInteractiveExclude]", never, {}, {}, never, never, true, never>;
127
+ }
128
+
129
+ /**
130
+ * Tints `--et-theme-color-primary-*` etc. only when a descendant genuinely has `:focus-visible`
131
+ * (`:has(:focus-visible)`) — never on mouse `:hover`/`:active`. Use this for a wrapper (like a
132
+ * form field's frame) that should show the theme color while its control is focused, but must
133
+ * NOT react to incidental mouse interaction with unrelated nested widgets (a toolbar button, a
134
+ * rendered link) that happen to live inside the same wrapper.
135
+ *
136
+ * Deliberately does NOT also carry `ColorInteractiveDirective`'s `et-color-interactive` class:
137
+ * that class's plain `:hover`/`:active` rules locally override the same (inheriting)
138
+ * `--et-theme-color-primary-rgb`, so anything bubbling up from ANYWHERE in the subtree would
139
+ * leak the transient hover/press color into every descendant reading it for unrelated cosmetics —
140
+ * exactly the bug this directive's only consumer (form-field) shipped once, before the two
141
+ * behaviors were split apart. If you need the plain hover/active reaction too, add
142
+ * `ColorInteractiveDirective` explicitly and make sure you actually want both.
143
+ */
144
+ declare class ColorInteractiveHasFocusDirective {
145
+ private styleManager;
146
+ constructor();
147
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<ColorInteractiveHasFocusDirective, never>;
148
+ static ɵdir: _angular_core.ɵɵDirectiveDeclaration<ColorInteractiveHasFocusDirective, "[etColorInteractiveHasFocus]", never, {}, {}, never, never, true, never>;
149
+ }
150
+
151
+ /**
152
+ * Makes an element react to ITS OWN `:hover`/`:active`/`:focus-visible`/`[disabled]` by tinting
153
+ * `--et-theme-color-primary-*`/`-on-primary-*`/`-ink-*` with the current color theme. Use this on
154
+ * a single, self-contained interactive element — a button, a checkbox, a segmented button.
155
+ *
156
+ * Do NOT apply this to a wrapper that also contains OTHER, independently-interactive elements
157
+ * (e.g. a toolbar with its own buttons, or a form-field's control slot). These are ordinary
158
+ * inheriting CSS custom properties, so a descendant reading them for its own cosmetics (a caret
159
+ * color, a link color) gets swept along whenever ANYTHING inside the wrapper is hovered or
160
+ * clicked — not just when the wrapper itself is the thing being interacted with. That exact bug
161
+ * shipped once already; see ColorInteractiveContainerDirective/ColorInteractiveHasFocusDirective
162
+ * for the shapes that avoid it.
163
+ */
164
+ declare class ColorInteractiveDirective {
165
+ private styleManager;
166
+ constructor();
167
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<ColorInteractiveDirective, never>;
168
+ static ɵdir: _angular_core.ɵɵDirectiveDeclaration<ColorInteractiveDirective, "[etColorInteractive]", never, {}, {}, never, never, true, never>;
169
+ }
170
+
171
+ declare const SURFACE_TYPE: {
172
+ readonly LIGHT: "light";
173
+ readonly DARK: "dark";
174
+ };
175
+ type SurfaceType = (typeof SURFACE_TYPE)[keyof typeof SURFACE_TYPE];
176
+ type SurfaceThemeColor = `${number} ${number} ${number}`;
177
+ type SurfaceInteractionColor = {
178
+ default: SurfaceThemeColor;
179
+ hover: SurfaceThemeColor;
180
+ focus: SurfaceThemeColor;
181
+ active: SurfaceThemeColor;
182
+ disabled: SurfaceThemeColor;
183
+ };
184
+ type SurfaceTheme = {
185
+ name: string;
186
+ type: SurfaceType;
187
+ elevation: number;
188
+ isDefault?: boolean;
189
+ interactionColor?: SurfaceInteractionColor;
190
+ background: SurfaceThemeColor;
191
+ color: SurfaceThemeColor;
192
+ colorMuted: SurfaceThemeColor;
193
+ colorSubtle: SurfaceThemeColor;
194
+ border: SurfaceThemeColor;
195
+ };
196
+ /**
197
+ * Augmentable registry for the literal set of surface theme names an app defines. Left
198
+ * empty by default, which keeps surface-theme-name-accepting APIs (like `etProvideSurface`)
199
+ * typed as plain `string`.
200
+ *
201
+ * Apps that want those APIs checked and autocompleted against their own surface theme
202
+ * names should augment this interface once, near where their surface themes are defined:
203
+ *
204
+ * ```ts
205
+ * declare module '@ethlete/core' {
206
+ * interface EthleteSurfaceThemeNameRegistry {
207
+ * name: 'card' | 'sheet' | 'popover';
208
+ * }
209
+ * }
210
+ * ```
211
+ */
212
+ interface EthleteSurfaceThemeNameRegistry {
213
+ }
214
+ type RegisteredSurfaceThemeName = EthleteSurfaceThemeNameRegistry extends {
215
+ name: infer N extends string;
216
+ } ? N : string;
217
+ declare const createCssSurfaceName: (name: string) => string;
218
+ declare const resolveSurfaceByElevation: (themes: SurfaceTheme[], type: SurfaceType, elevation: number) => SurfaceTheme | null;
219
+ declare const ɵProvideSurfaceThemes: (valueOverride?: (SurfaceTheme | undefined)[] | undefined) => _angular_core.Provider[];
220
+ declare const injectSurfaceThemes: {
221
+ (): SurfaceTheme[];
222
+ (options: _angular_core.InjectOptions & {
223
+ optional?: false;
224
+ }): SurfaceTheme[];
225
+ (options: _angular_core.InjectOptions): SurfaceTheme[] | null;
226
+ };
227
+ declare const ɵProvideSurfaceThemesPrefix: (valueOverride?: string | undefined) => _angular_core.Provider[];
228
+ declare const injectSurfaceThemesPrefix: {
229
+ (): string;
230
+ (options: _angular_core.InjectOptions & {
231
+ optional?: false;
232
+ }): string;
233
+ (options: _angular_core.InjectOptions): string | null;
234
+ };
235
+ declare const provideSurfaceThemesWithTailwind4: (themes: SurfaceTheme[], prefix?: string) => _angular_core.Provider[][];
236
+
237
+ declare const SURFACE_PROVIDER: InjectionToken<ProvideSurfaceDirective>;
238
+ declare class ProvideSurfaceDirective {
239
+ private themes;
240
+ private prefix;
241
+ private injector;
242
+ private currentProviderSync;
243
+ private forcedSurface;
244
+ surface: InputSignal<RegisteredSurfaceThemeName | null | undefined>;
245
+ effectiveSurface: _angular_core.Signal<string | null | undefined>;
246
+ resolvedTheme: _angular_core.Signal<SurfaceTheme | null>;
247
+ elevation: _angular_core.Signal<number>;
248
+ surfaceType: _angular_core.Signal<_ethlete_core.SurfaceType | null>;
249
+ surfaceName: _angular_core.Signal<string | undefined>;
250
+ protected surfaceClass: _angular_core.Signal<string>;
251
+ syncWithProvider(provider: ProvideSurfaceDirective): void;
252
+ stopSyncWithProvider(): void;
253
+ /** @internal */
254
+ forceSurface(surface: RegisteredSurfaceThemeName | null): void;
255
+ /** @internal */
256
+ clearForcedSurface(): void;
257
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<ProvideSurfaceDirective, never>;
258
+ static ɵdir: _angular_core.ɵɵDirectiveDeclaration<ProvideSurfaceDirective, "[etProvideSurface]", never, { "surface": { "alias": "etProvideSurface"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
259
+ }
260
+
261
+ declare class AutoSurfaceDirective {
262
+ private ownSurfaceProvider;
263
+ private contextSurfaceProvider;
264
+ private surfaceThemes;
265
+ /**
266
+ * Explicit surface provider to resolve the surface relative to. Falls back to the
267
+ * surface provider from the surrounding (trigger) context when not set.
268
+ */
269
+ surfaceProvider: _angular_core.InputSignal<ProvideSurfaceDirective | null>;
270
+ resolvedSurface: _angular_core.Signal<string | null>;
271
+ constructor();
272
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<AutoSurfaceDirective, never>;
273
+ static ɵdir: _angular_core.ɵɵDirectiveDeclaration<AutoSurfaceDirective, "[etAutoSurface]", never, { "surfaceProvider": { "alias": "surfaceProvider"; "required": false; "isSignal": true; }; }, {}, never, never, true, [{ directive: typeof ProvideSurfaceDirective; inputs: {}; outputs: {}; }]>;
274
+ }
275
+
84
276
  type ThemeRGBColor = `${number} ${number} ${number}`;
85
277
  type ThemeHSLColor = `${number} ${number}% ${number}%`;
86
278
  type ThemeColor = ThemeRGBColor | ThemeHSLColor;
@@ -98,36 +290,69 @@ type OnThemeColorMap = {
98
290
  active?: ThemeColor;
99
291
  disabled?: ThemeColor;
100
292
  };
293
+ type ThemeInkColorMap = {
294
+ default: ThemeColor;
295
+ hover?: ThemeColor;
296
+ focus?: ThemeColor;
297
+ active?: ThemeColor;
298
+ disabled?: ThemeColor;
299
+ };
101
300
  type ThemeSwatch = {
102
301
  color: ThemeColorMap;
103
302
  onColor: OnThemeColorMap;
303
+ inkColor?: ThemeInkColorMap;
104
304
  };
105
- type Theme = {
305
+ type ColorThemeType = 'success' | 'warning' | 'error';
306
+ type ColorTheme = {
106
307
  name: string;
308
+ type?: ColorThemeType;
107
309
  isDefault?: boolean;
108
- isDefaultAlt?: boolean;
109
310
  primary: ThemeSwatch;
110
311
  secondary?: ThemeSwatch;
111
312
  tertiary?: ThemeSwatch;
112
313
  };
113
- declare const createCssThemeName: (name: string) => string;
114
- declare const ɵProvideColorThemes: (valueOverride?: (string | undefined)[] | undefined) => _angular_core.Provider[];
314
+ /**
315
+ * Augmentable registry for the literal set of color theme names an app defines. Left
316
+ * empty by default, which keeps theme-name-accepting APIs (like `etProvideColor`) typed
317
+ * as plain `string`.
318
+ *
319
+ * Apps that want those APIs checked and autocompleted against their own theme names
320
+ * should augment this interface once, near where their themes are defined:
321
+ *
322
+ * ```ts
323
+ * declare module '@ethlete/core' {
324
+ * interface EthleteColorThemeNameRegistry {
325
+ * name: 'pitch-green' | 'red' | 'light-grey';
326
+ * }
327
+ * }
328
+ * ```
329
+ */
330
+ interface EthleteColorThemeNameRegistry {
331
+ }
332
+ type RegisteredColorThemeName = EthleteColorThemeNameRegistry extends {
333
+ name: infer N extends string;
334
+ } ? N : string;
335
+ declare const createCssColorThemeName: (name: string) => string;
336
+ declare const ɵProvideColorThemes: (valueOverride?: (ColorTheme | undefined)[] | undefined) => _angular_core.Provider[];
115
337
  declare const injectColorThemes: {
116
- (): string[];
338
+ (): ColorTheme[];
117
339
  (options: _angular_core.InjectOptions & {
118
340
  optional?: false;
119
- }): string[];
120
- (options: _angular_core.InjectOptions): string[] | null;
341
+ }): ColorTheme[];
342
+ (options: _angular_core.InjectOptions): ColorTheme[] | null;
121
343
  };
122
- declare const ɵProvideThemesPrefix: (valueOverride?: string | undefined) => _angular_core.Provider[];
123
- declare const injectThemesPrefix: {
344
+ declare const ɵProvideColorThemesPrefix: (valueOverride?: string | undefined) => _angular_core.Provider[];
345
+ declare const injectColorThemesPrefix: {
124
346
  (): string;
125
347
  (options: _angular_core.InjectOptions & {
126
348
  optional?: false;
127
349
  }): string;
128
350
  (options: _angular_core.InjectOptions): string | null;
129
351
  };
130
- declare const provideColorThemesWithTailwind4: (themes: Theme[], prefix?: string) => _angular_core.Provider[][];
352
+ declare const provideColorThemesWithTailwind4: (themes: ColorTheme[], prefix?: string) => _angular_core.Provider[][];
353
+ declare const injectErrorTheme: () => ColorTheme;
354
+ declare const injectWarningTheme: () => ColorTheme;
355
+ declare const injectSuccessTheme: () => ColorTheme;
131
356
 
132
357
  /**
133
358
  * @deprecated Migrate to Tailwind v4. Intent to remove in v6.
@@ -136,11 +361,11 @@ declare const createSwatchCss: (swatch: string, isAlt: boolean, data: ThemeSwatc
136
361
  /**
137
362
  * @deprecated Migrate to Tailwind v4. Intent to remove in v6.
138
363
  */
139
- declare const createRootThemeCss: (themes: Theme[]) => void;
364
+ declare const createRootThemeCss: (themes: ColorTheme[]) => void;
140
365
  /**
141
366
  * @deprecated Migrate to Tailwind v4. Intent to remove in v6.
142
367
  */
143
- declare const createThemeStyle: (theme: Theme, isAlt: boolean) => void;
368
+ declare const createThemeStyle: (theme: ColorTheme, isAlt: boolean) => void;
144
369
  /**
145
370
  * @deprecated Migrate to Tailwind v4. Intent to remove in v6.
146
371
  */
@@ -152,7 +377,7 @@ declare const createTailwindRgbVar: (val: string | undefined) => string | null;
152
377
  /**
153
378
  * @deprecated Migrate to Tailwind v4. Intent to remove in v6.
154
379
  */
155
- declare const createTailwindColorThemes: (themes: Theme[], prefix?: string) => Record<string, {
380
+ declare const createTailwindColorThemes: (themes: ColorTheme[], prefix?: string) => Record<string, {
156
381
  DEFAULT: string;
157
382
  hover: string;
158
383
  focus: string;
@@ -162,34 +387,94 @@ declare const createTailwindColorThemes: (themes: Theme[], prefix?: string) => R
162
387
  /**
163
388
  * @deprecated Use provideColorThemesWithTailwind4 instead after migrating to Tailwind CSS v4. Intent to remove in v6.
164
389
  */
165
- declare const provideColorThemes: (themes: Theme[]) => _angular_core.Provider[][];
390
+ declare const provideColorThemes: (themes: ColorTheme[]) => _angular_core.Provider[][];
166
391
 
167
- declare const THEME_PROVIDER: InjectionToken<ProvideThemeDirective>;
168
- declare class ProvideThemeDirective {
392
+ declare const COLOR_PROVIDER: InjectionToken<ProvideColorDirective>;
393
+ /**
394
+ * The color provider attached to a bootstrapped root component (e.g. `ProvideColorDirective` in
395
+ * the app component's `hostDirectives`), if any. Detached DOM such as overlay panes can't reach
396
+ * it through element DI, so overlay containers fall back to this when resolving the provider to
397
+ * `syncWithProvider()` — resolve at sync time, not at injection time, since root components only
398
+ * register with `ApplicationRef` once bootstrap completes.
399
+ *
400
+ * @internal
401
+ */
402
+ declare const resolveAppRootColorProvider: (appRef: ApplicationRef) => ProvideColorDirective | null;
403
+ declare class ProvideColorDirective {
169
404
  private themes;
170
405
  private prefix;
171
406
  private injector;
407
+ private parentProvider;
172
408
  private currentProviderSync;
173
- mainTheme: _angular_core.InputSignal<string | null | undefined>;
174
- altTheme: _angular_core.InputSignal<string | null | undefined>;
175
- mainThemeName: _angular_core.Signal<string | undefined>;
176
- altThemeName: _angular_core.Signal<string | undefined>;
409
+ private forcedColor;
410
+ color: InputSignal<RegisteredColorThemeName | ColorTheme | null | undefined>;
411
+ effectiveColor: _angular_core.Signal<string | ColorTheme | null | undefined>;
412
+ /**
413
+ * The color that actually applies at this provider's location: its own effective color, or —
414
+ * when this provider is passive (no input, nothing forced) — the nearest ancestor provider's.
415
+ * Mirrors the CSS cascade, which falls through a provider's `-color--inherited` scope class;
416
+ * consumers that re-apply context across detached DOM (overlay panes) must use this instead
417
+ * of `effectiveColor` or a passive in-between provider (e.g. a form field's) erases the theme.
418
+ */
419
+ resolvedColor: _angular_core.Signal<string | ColorTheme | null | undefined>;
420
+ colorName: _angular_core.Signal<string | undefined>;
177
421
  protected themeClass: _angular_core.Signal<string>;
178
- syncWithProvider(provider: ProvideThemeDirective): void;
422
+ syncWithProvider(provider: ProvideColorDirective): void;
179
423
  stopSyncWithProvider(): void;
180
- static ɵfac: _angular_core.ɵɵFactoryDeclaration<ProvideThemeDirective, never>;
181
- static ɵdir: _angular_core.ɵɵDirectiveDeclaration<ProvideThemeDirective, "[etProvideTheme]", never, { "mainTheme": { "alias": "etProvideTheme"; "required": false; "isSignal": true; }; "altTheme": { "alias": "etProvideAltTheme"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
424
+ /** @internal */
425
+ forceColor(color: RegisteredColorThemeName | ColorTheme | null): void;
426
+ /** @internal */
427
+ clearForcedColor(): void;
428
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<ProvideColorDirective, never>;
429
+ static ɵdir: _angular_core.ɵɵDirectiveDeclaration<ProvideColorDirective, "[etProvideColor]", never, { "color": { "alias": "etProvideColor"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
430
+ }
431
+
432
+ type SurfaceContextEntry = {
433
+ id: string;
434
+ type: SurfaceType;
435
+ elevation: number;
436
+ };
437
+ type SurfaceContextTracker = {
438
+ topType: Signal<SurfaceType | null>;
439
+ topElevation: Signal<number>;
440
+ register: (type: SurfaceType, elevation: number) => () => void;
441
+ };
442
+ declare const provideSurfaceContextTracker: () => _angular_core.Provider[];
443
+ declare const injectSurfaceContextTracker: {
444
+ (): SurfaceContextTracker;
445
+ (options: _angular_core.InjectOptions & {
446
+ optional?: false;
447
+ }): SurfaceContextTracker;
448
+ (options: _angular_core.InjectOptions): SurfaceContextTracker | null;
449
+ };
450
+
451
+ /**
452
+ * Same shape as `ColorInteractiveDirective` — reacts to its own `:hover`/`:focus-visible`/
453
+ * `:active`/`[disabled]` — but drives `--et-surface-interaction-*`, a neutral/muted tint, instead
454
+ * of the ambient color theme. Use it for chrome-level interaction feedback that shouldn't borrow
455
+ * the page's brand color (a tab trigger's hover state, a toggle button that should look neutral
456
+ * until it's actually active — see `ButtonDirective`'s `mutedUntilPressed`).
457
+ *
458
+ * Has no container/exclude/has-focus variants: it has no descendant-cascading CSS at all, so
459
+ * applying it to a wrapper with independently-interactive children is safe by construction —
460
+ * unlike `ColorInteractiveDirective`, there's no bubbling-leak failure mode to worry about here.
461
+ */
462
+ declare class SurfaceInteractiveDirective {
463
+ private styleManager;
464
+ constructor();
465
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<SurfaceInteractiveDirective, never>;
466
+ static ɵdir: _angular_core.ɵɵDirectiveDeclaration<SurfaceInteractiveDirective, "[etSurfaceInteractive]", never, {}, {}, never, never, true, never>;
182
467
  }
183
468
 
184
469
  type AnimatedOverlayComponentBase = {
185
470
  animatedLifecycle: Signal<AnimatedLifecycleDirective | undefined>;
186
- setThemeFromProvider: (provider: ProvideThemeDirective) => void;
471
+ setColorFromProvider: (provider: ProvideColorDirective) => void;
187
472
  };
188
473
  type AnimatedOverlayMountConfig<T> = {
189
474
  component: ComponentType<T>;
190
475
  providers?: StaticProvider[];
191
476
  data?: Partial<T>;
192
- themeProvider?: ProvideThemeDirective | null;
477
+ colorProvider?: ProvideColorDirective | null;
193
478
  };
194
479
  type AnimatedOverlayState = 'init' | 'mounting' | 'mounted' | 'unmounting' | 'unmounted';
195
480
  declare class AnimatedOverlayDirective<T extends AnimatedOverlayComponentBase> {
@@ -240,7 +525,7 @@ declare class AnimatedOverlayDirective<T extends AnimatedOverlayComponentBase> {
240
525
  mount(config: AnimatedOverlayMountConfig<T>): T | undefined;
241
526
  unmount(): void;
242
527
  private applyComponentData;
243
- private applyThemeProvider;
528
+ private applyColorProvider;
244
529
  private updateOverlaySize;
245
530
  private setupFloatingUI;
246
531
  private getFloatingArrow;
@@ -335,574 +620,432 @@ declare class RepeatDirective {
335
620
  static ɵdir: _angular_core.ɵɵDirectiveDeclaration<RepeatDirective, "[etRepeat]", never, { "repeatCount": { "alias": "etRepeat"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
336
621
  }
337
622
 
338
- declare const createComponentId: (prefix: string) => string;
623
+ declare class ScrollObserverEndDirective {
624
+ private elementRef;
625
+ private host;
626
+ constructor();
627
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<ScrollObserverEndDirective, never>;
628
+ static ɵdir: _angular_core.ɵɵDirectiveDeclaration<ScrollObserverEndDirective, "[etScrollObserverEnd]", never, {}, {}, never, never, true, never>;
629
+ }
339
630
 
340
- declare const createDestroy: () => rxjs.Observable<boolean>;
631
+ declare class ScrollObserverStartDirective {
632
+ private elementRef;
633
+ private host;
634
+ constructor();
635
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<ScrollObserverStartDirective, never>;
636
+ static ɵdir: _angular_core.ɵɵDirectiveDeclaration<ScrollObserverStartDirective, "[etScrollObserverStart]", never, {}, {}, never, never, true, never>;
637
+ }
341
638
 
342
- declare const injectHostElement: <T = HTMLElement>() => T;
343
- declare const injectTemplateRef: <C = unknown>() => TemplateRef<C>;
344
- type CreateProviderOptions = {
639
+ type SignalElementBindingComplexType = HTMLElement | ElementRef<HTMLElement> | QueryList<ElementRef<HTMLElement> | HTMLElement> | Array<ElementRef<HTMLElement> | HTMLElement> | null | undefined;
640
+ type SignalElementBindingType = HTMLElement | ElementRef<HTMLElement> | Observable<SignalElementBindingComplexType> | Signal<SignalElementBindingComplexType> | QueryList<ElementRef<HTMLElement> | HTMLElement> | ElementSignal;
641
+ type ElementSignal = Signal<{
642
+ currentElements: HTMLElement[];
643
+ previousElements: HTMLElement[];
644
+ }>;
645
+ type ElementSignalValue = ReturnType<ElementSignal>;
646
+ declare const isElementSignal: (el: unknown) => el is ElementSignal;
647
+ declare const createDocumentElementSignal: () => ElementSignal;
648
+ declare const createEmptyElementSignal: () => ElementSignal;
649
+ declare const buildElementSignal: (el: SignalElementBindingType | null | undefined) => ElementSignal;
650
+ declare const firstElementSignal: (el: ElementSignal) => Signal<{
651
+ currentElement: HTMLElement | null;
652
+ previousElement: HTMLElement | null;
653
+ }>;
654
+
655
+ type AnimatedSizeAxis = 'block' | 'inline';
656
+ type AnimatedBlockSizeConfig = {
657
+ /** The element whose size is animated. Defaults to the host `ElementRef`. */
658
+ host?: SignalElementBindingType;
345
659
  /**
346
- * Optional name for the provider, useful for debugging.
347
- * If not provided, the name will be a generated string.
660
+ * The content element(s) whose size changes drive the animation. Observe the content (children),
661
+ * **not** the animated host — observing the host would feed the animation back into itself.
662
+ * For the `inline` axis this also means the observed content must be content-sized (e.g.
663
+ * `inline-size: max-content`); a plain block child just mirrors the host's animated width back.
348
664
  */
349
- name?: string;
665
+ observe: SignalElementBindingType | SignalElementBindingType[];
350
666
  /**
351
- * Optional existing InjectionToken to also provide the created provider under.
667
+ * The axes to animate. May be a signal — e.g. to drop the `inline` axis while a panel is in a
668
+ * presentation whose width follows the viewport instead of its content. @default ['block']
352
669
  */
353
- extraInjectionToken?: InjectionToken<unknown>;
670
+ axes?: AnimatedSizeAxis[] | Signal<AnimatedSizeAxis[]>;
671
+ /** Animation duration in ms. @default 160 */
672
+ duration?: number;
673
+ /** Animation easing. @default 'ease' */
674
+ easing?: string;
675
+ /** Class toggled on the host while animating — use it to `overflow: clip` during the resize. */
676
+ resizingClass?: string;
354
677
  };
355
- type ProviderResult<T> = readonly [
356
- provide: () => Provider[],
357
- inject: {
358
- (): T;
359
- (options: InjectOptions & {
360
- optional?: false;
361
- }): T;
362
- (options: InjectOptions): T | null;
363
- },
364
- token: InjectionToken<T>
365
- ];
366
- type StaticProviderResult<T> = readonly [
367
- provide: (valueOverride?: Partial<T>) => Provider[],
368
- inject: {
369
- (): T;
370
- (options: InjectOptions & {
371
- optional?: false;
372
- }): T;
373
- (options: InjectOptions): T | null;
374
- },
375
- token: InjectionToken<T>
376
- ];
377
- type RootProviderResult<T> = readonly [
378
- inject: {
379
- (): T;
380
- (options: InjectOptions & {
381
- optional?: false;
382
- }): T;
383
- (options: InjectOptions): T | null;
384
- },
385
- token: InjectionToken<T>
386
- ];
387
- declare const createProvider: <T>(factory: () => T, options?: CreateProviderOptions) => ProviderResult<T>;
388
- declare const createRootProvider: <T>(factory: () => T, options?: CreateProviderOptions) => ProviderResult<T>;
389
- declare const createStaticProvider: <T>(defaultValue?: T, options?: CreateProviderOptions) => StaticProviderResult<T>;
390
- declare const createStaticRootProvider: <T>(defaultValue?: T, options?: CreateProviderOptions) => StaticProviderResult<T>;
391
-
392
- declare const cloneFormGroup: <T extends FormGroup<any>>(formGroup: T) => T;
393
- declare const getFormGroupValue: <T extends FormGroup>(formGroup: T) => Record<string, unknown>;
394
-
395
- declare const createRxHostListener: <K extends keyof HTMLElementEventMap>(eventName: K, options?: EventListenerOptions) => rxjs.Observable<HTMLElementEventMap[K]>;
396
- declare const applyHostListener: <K extends keyof HTMLElementEventMap>(eventName: K, handler: (event: HTMLElementEventMap[K]) => void, options?: EventListenerOptions) => rxjs.Subscription;
397
- declare const applyHostListeners: (listeners: Partial<{ [K in keyof HTMLElementEventMap]: (event: HTMLElementEventMap[K]) => void; }>, options?: EventListenerOptions) => void;
398
-
399
- declare class TypedQueryList<T> extends QueryList<T> {
400
- get changes(): Observable<TypedQueryList<T>>;
401
- }
402
- declare function switchQueryListChanges(): <T extends TypedQueryList<unknown> | null | undefined>(source: Observable<T>) => Observable<T>;
403
-
404
678
  /**
405
- * Sets the value of an input signal.
406
- * See issue: https://github.com/angular/angular/issues/54782
679
+ * Smoothly animates an element's `block-size` (and optionally `inline-size`, via `axes`) when its
680
+ * content changes size (e.g. a list filtering, a loading state resolving, a column being added).
681
+ * Set up once in an injection context; it observes the given content element(s) and animates the
682
+ * host from its previous size to its new natural size.
683
+ *
684
+ * Robustness notes: the baseline size is captured on the first render (via `afterNextRender`) and
685
+ * only later changes animate, so the initial layout settling never plays as a grow-from-0.
686
+ * A change that interrupts an in-flight animation continues from the current animated size, and
687
+ * zero/pre-layout measurements are ignored. Respects `prefers-reduced-motion`.
688
+ *
689
+ * The animation starts synchronously inside the `ResizeObserver` callback — it runs after layout
690
+ * but **before paint**, so the host never paints a frame at its new natural size. Routing the
691
+ * resize through a signal + effect instead would apply the animation one change-detection cycle
692
+ * (= one painted frame) late: a growing panel would flash at its final size, snap back, and only
693
+ * then animate.
407
694
  */
408
- declare const setInputSignal: <T>(input: InputSignal<T> | InputSignalWithTransform<T, unknown>, value: T) => void;
409
-
410
- type NgClassType = string | string[] | Set<string> | {
411
- [klass: string]: any;
412
- } | null | undefined;
695
+ declare const injectAnimatedBlockSize: (config: AnimatedBlockSizeConfig) => void;
413
696
 
414
- declare const AT_LEAST_ONE_REQUIRED = "atLeastOneRequired";
415
- type ValidateAtLeastOneRequiredConfig = {
697
+ declare const previousSignalValue: <T>(signal: Signal<T>) => Signal<T | undefined>;
698
+ type SyncSignalOptions = {
416
699
  /**
417
- * Keys of form controls to validate in the supplied form group
700
+ * If true, the target signal will not be updated with the source signal's value in a sync operation.
701
+ * This should be set to true for signals that need to be initialized first before syncing (eg. required inputs)
702
+ * @default false
418
703
  */
419
- keys: string[];
704
+ skipSyncRead?: boolean;
420
705
  /**
421
- * If true, the value `false` will result in a validation error
706
+ * If true, the first time the effect will be triggered will be skipped.
422
707
  * @default false
423
708
  */
424
- checkFalse?: boolean;
425
- };
426
- declare const ValidateAtLeastOneRequired: (config: ValidateAtLeastOneRequiredConfig) => ValidatorFn;
427
- declare const IS_ARRAY_NOT_EMPTY = "isArrayNotEmpty";
428
- declare const IsArrayNotEmpty: (control: AbstractControl) => ValidationErrors | null;
429
- declare const IS_EMAIL = "isEmail";
430
- declare const IsEmail: (control: AbstractControl) => ValidationErrors | null;
431
- declare const MUST_MATCH = "mustMatch";
432
- declare const MustMatch: (controlName: string, matchingControlName: string) => (formGroup: AbstractControl) => {
433
- mustMatch: boolean;
434
- } | null;
435
- declare const Validators: {
436
- readonly MustMatch: (controlName: string, matchingControlName: string) => (formGroup: AbstractControl) => {
437
- mustMatch: boolean;
438
- } | null;
439
- readonly IsEmail: (control: AbstractControl) => ValidationErrors | null;
440
- readonly IsArrayNotEmpty: (control: AbstractControl) => ValidationErrors | null;
441
- readonly ValidateAtLeastOneRequired: (config: ValidateAtLeastOneRequiredConfig) => ValidatorFn;
442
- };
443
-
444
- declare const clone: <T>(original: T) => T;
445
- declare const equal: (foo: any, bar: any) => boolean;
446
-
447
- declare const hasCookie: (name: string) => boolean;
448
- declare const getCookie: (name: string) => string | null | undefined;
449
- declare const setCookie: (name: string, data: string, expiresInDays?: number | null, domain?: string | null, path?: string, sameSite?: "strict" | "none" | "lax") => void;
450
- declare const deleteCookie: (name: string, path?: string, domain?: string | null) => void;
451
- declare const getDomain: () => string | null;
452
-
453
- type Translatable = {
454
- i18n: string;
455
- text: string;
456
- };
457
-
458
- declare class KeyPressManager {
459
- readonly key: number;
460
- private readonly _isKeyPressed$;
461
- private readonly _keyPressCount$;
462
- private readonly _stopTimeout$;
463
- constructor(key: number);
464
- isPressed(event: KeyboardEvent): boolean;
465
- clear(): void;
466
- }
467
-
468
- declare const DISABLE_LOGGER_PARAM = "et-logger-quiet";
469
- type CreateLoggerConfig = {
470
- scope: string;
471
- feature: string;
472
- };
473
- declare const createLogger: (config: CreateLoggerConfig) => {
474
- log: (...args: unknown[]) => void;
475
- warn: (...args: unknown[]) => void;
476
- error: (...args: unknown[]) => void;
709
+ skipFirstRun?: boolean;
477
710
  };
478
-
479
- declare const clamp: (value: number, min?: number, max?: number) => number;
480
- declare const round: (value: number, precision?: number) => number;
481
-
482
- declare const isObject: (value: unknown) => value is Record<string, unknown>;
483
- declare const isArray: (value: unknown) => value is unknown[];
484
- declare const getObjectProperty: (obj: Record<string, unknown>, prop: string) => unknown;
485
-
486
- declare const RUNTIME_ERROR_NO_DATA = "__ET_NO_DATA__";
487
- declare class RuntimeError<T extends number> extends Error {
488
- code: T;
489
- devOnly: boolean;
490
- data: unknown;
491
- constructor(code: T, message: null | false | string, devOnly?: boolean, data?: unknown);
492
- }
493
- declare function formatRuntimeError<T extends number>(code: T, message: null | false | string, devOnly: boolean): string;
494
-
711
+ declare const syncSignal: <T>(from: Signal<T>, to: WritableSignal<T>, options?: SyncSignalOptions) => _angular_core.EffectRef;
712
+ type MaybeSignal<T> = T | Signal<T>;
713
+ declare const maybeSignalValue: <T>(value: MaybeSignal<T>) => T;
495
714
  /**
496
- * Checks if an element or the viewport can scroll in a given direction.
497
- * @param element The element to check. If null/undefined, checks if the viewport can scroll.
498
- * @param direction The direction to check. If not provided, checks both directions.
499
- * @returns true if the element or viewport can scroll in the given direction.
715
+ * A computed that will only be reactive until the source signal contains a truthy value.
716
+ * All subsequent changes inside the computation will be ignored.
500
717
  */
501
- declare const elementCanScroll: (element?: HTMLElement | null, direction?: "x" | "y") => boolean;
502
- type IsElementVisibleOptions = {
503
- /**
504
- * The element to check if it is visible inside a container.
505
- */
506
- element?: HTMLElement | null;
507
- /**
508
- * The container to check if the element is visible inside.
509
- * If null or undefined, uses the viewport as the container.
510
- * @default null (viewport)
511
- */
512
- container?: HTMLElement | null;
513
- /**
514
- * The container's rect to check if the element is visible inside. Can be supplied to reduce the amount of DOM reads.
515
- * Only used when container is provided and not null.
516
- * @default container.getBoundingClientRect()
517
- */
518
- containerRect?: DOMRect | null;
519
- /**
520
- * The element's rect. Can be supplied to reduce the amount of DOM reads.
521
- * @default element.getBoundingClientRect()
522
- */
523
- elementRect?: DOMRect | null;
524
- };
525
- type CurrentElementVisibility = {
526
- /**
527
- * Whether the element is visible in the inline direction.
528
- */
529
- inline: boolean;
530
- /**
531
- * Whether the element is visible in the block direction.
532
- */
533
- block: boolean;
534
- /**
535
- * The percentage of the element that is visible in the inline direction.
536
- */
537
- inlineIntersection: number;
718
+ declare const computedTillTruthy: <T>(source: Signal<T>) => Signal<T | null>;
719
+ /**
720
+ * A computed that will only be reactive until the source signal contains a falsy value.
721
+ * All subsequent changes inside the computation will be ignored.
722
+ */
723
+ declare const computedTillFalsy: <T>(source: Signal<T>) => Signal<T | null>;
724
+ /**
725
+ * A writeable signal that will be set to the provided value once all inputs are set.
726
+ * During that time, the signal will be set to `null`.
727
+ */
728
+ declare const deferredSignal: <T extends () => unknown>(valueFn: T) => WritableSignal<ReturnType<T> | null>;
729
+ declare const memoizeSignal: <T>(factory: () => Signal<T>) => () => Signal<T>;
730
+
731
+ type SignalAnimatedNumberOptions = {
538
732
  /**
539
- * The percentage of the element that is visible in the block direction.
733
+ * The initial value to start animating from.
734
+ * If not provided, the animation will start from 0
540
735
  */
541
- blockIntersection: number;
736
+ initialValue?: number;
542
737
  /**
543
- * Whether the element is intersecting the container.
738
+ * Duration of the animation in milliseconds.
739
+ * @default 1000
544
740
  */
545
- isIntersecting: boolean;
741
+ duration?: number;
546
742
  /**
547
- * The ratio of the element that is intersecting the container.
743
+ * Easing function that takes a progress value (0 to 1) and returns an eased value (0 to 1).
744
+ * Options:
745
+ * - `easeLinear()`
746
+ * - `easeIn()`
747
+ * - `easeOut()`
748
+ * - `easeInOut()`
749
+ * - `easeElastic()`
750
+ * - `easeOutBack()`
751
+ * - `easeOutBackStrong()`
752
+ * @default easeOut()
548
753
  */
549
- intersectionRatio: number;
754
+ easing?: (t: number) => number;
550
755
  /**
551
- * The element that is being checked for visibility.
756
+ * Function to round the animated value.
757
+ * @default (v: number) => Math.round(v)
552
758
  */
553
- element: HTMLElement;
759
+ round?: (value: number) => number;
554
760
  /**
555
- * The container's rect used for the calculation.
761
+ * Callback invoked when the animation starts.
556
762
  */
557
- containerRect: DOMRect;
763
+ onAnimationStart?: () => void;
558
764
  /**
559
- * The element's rect used for the calculation.
765
+ * Callback invoked when the animation ends.
560
766
  */
561
- elementRect: DOMRect;
767
+ onAnimationEnd?: () => void;
562
768
  };
563
- declare const isElementVisible: (options: IsElementVisibleOptions) => CurrentElementVisibility | null;
564
- declare const getElementScrollCoordinates: (options: ScrollToElementOptions) => ScrollToOptions;
565
- type ScrollToElementOptions = {
566
- /**
567
- * The element to scroll to.
568
- */
569
- element?: HTMLElement | null;
570
- /**
571
- * The scroll container to scroll to the element in.
572
- * Must be provided - cannot scroll the viewport programmatically with this function.
573
- */
574
- container?: HTMLElement | null;
575
- /**
576
- * The direction to scroll in.
577
- * @default 'both'
578
- */
579
- direction?: 'inline' | 'block' | 'both';
580
- /**
581
- * The origin of the element to scroll to.
582
- * @default 'nearest'
583
- */
584
- origin?: 'start' | 'end' | 'center' | 'nearest';
769
+ type AnimatedNumberSignal = Signal<number> & {
585
770
  /**
586
- * The scroll behavior.
587
- * @default 'smooth'
771
+ * Starts the animation from the current value to the target value.
772
+ * @returns The animated signal for chaining
588
773
  */
589
- behavior?: ScrollBehavior;
774
+ play: () => AnimatedNumberSignal;
590
775
  /**
591
- * The scroll inline-margin
592
- * @default 0
776
+ * Resets the animation to the initial value and stops any ongoing animation.
777
+ * @returns The animated signal for chaining
593
778
  */
594
- scrollInlineMargin?: number;
779
+ reset: () => AnimatedNumberSignal;
595
780
  /**
596
- * The scroll block-margin
597
- * @default 0
781
+ * Stops the current animation at its current position.
782
+ * @returns The animated signal for chaining
598
783
  */
599
- scrollBlockMargin?: number;
784
+ stop: () => AnimatedNumberSignal;
600
785
  };
601
- declare const scrollToElement: (options: ScrollToElementOptions) => void;
786
+ /**
787
+ * Creates a signal that animates the transition of a numeric signal's value over time.
788
+ */
789
+ declare const signalAnimatedNumber: (source: MaybeSignal<number>, options?: SignalAnimatedNumberOptions) => AnimatedNumberSignal;
790
+ declare const easeLinear: (t: number) => number;
791
+ declare const easeIn: (t: number) => number;
792
+ declare const easeOut: (t: number) => number;
793
+ declare const easeInOut: (t: number) => number;
794
+ /** Elastic easing function (overshoots) */
795
+ declare const easeElastic: (t: number) => number;
796
+ /** Back easing function (overshoots slightly then settles) */
797
+ declare const easeOutBack: (t: number) => number;
798
+ /** Back easing function with more overshoot */
799
+ declare const easeOutBackStrong: (t: number) => number;
602
800
 
603
- declare class NormalizeGameResultTypePipe implements PipeTransform {
604
- transform: (type: string | null) => NormalizedGameResultType | null;
605
- static ɵfac: _angular_core.ɵɵFactoryDeclaration<NormalizeGameResultTypePipe, never>;
606
- static ɵpipe: _angular_core.ɵɵPipeDeclaration<NormalizeGameResultTypePipe, "etNormalizeGameResultType", true>;
607
- }
608
- type NormalizedGameResultType = Translatable & {
609
- shortCode: string;
801
+ type Vec2 = [number, number];
802
+ type ViewportConfig = {
803
+ breakpoints: {
804
+ xs: Vec2;
805
+ sm: Vec2;
806
+ md: Vec2;
807
+ lg: Vec2;
808
+ xl: Vec2;
809
+ '2xl': Vec2;
810
+ };
610
811
  };
611
- declare const normalizeGameResultType: (type: string | null) => NormalizedGameResultType | null;
612
-
613
- declare class NormalizeMatchParticipantsPipe implements PipeTransform {
614
- transform: (match: MatchListView | null) => NormalizedMatchParticipants | null;
615
- static ɵfac: _angular_core.ɵɵFactoryDeclaration<NormalizeMatchParticipantsPipe, never>;
616
- static ɵpipe: _angular_core.ɵɵPipeDeclaration<NormalizeMatchParticipantsPipe, "etNormalizeMatchParticipants", true>;
617
- }
618
- type NormalizedMatchParticipants = {
619
- home: NormalizedMatchParticipant | null;
620
- away: NormalizedMatchParticipant | null;
812
+ type Breakpoint = keyof ViewportConfig['breakpoints'];
813
+ declare const BREAKPOINT_ORDER: Breakpoint[];
814
+ /**
815
+ * Default viewport config based on Tailwind CSS.
816
+ * @see https://tailwindcss.com/docs/screens
817
+ */
818
+ declare const DEFAULT_VIEWPORT_CONFIG: ViewportConfig;
819
+ declare const provideViewportConfig: (valueOverride?: Partial<ViewportConfig> | undefined) => _angular_core.Provider[];
820
+ declare const injectViewportConfig: {
821
+ (): ViewportConfig;
822
+ (options: _angular_core.InjectOptions & {
823
+ optional?: false;
824
+ }): ViewportConfig;
825
+ (options: _angular_core.InjectOptions): ViewportConfig | null;
621
826
  };
622
- type NormalizedParticipantType = 'team' | 'player' | 'unknown';
623
- type NormalizedMatchParticipant = ({
624
- type: 'tbd';
625
- participantType: NormalizedParticipantType;
626
- data: ParticipantViewUnion | null;
627
- } & Translatable) | {
628
- type: 'participant';
629
- participantType: NormalizedParticipantType;
630
- data: ParticipantViewUnion;
631
- } | ({
632
- type: 'none';
633
- participantType: NormalizedParticipantType;
634
- data: ParticipantViewUnion | null;
635
- } & Translatable);
636
- declare const normalizeMatchParticipants: (match: MatchListView | null) => NormalizedMatchParticipants | null;
637
- declare const normalizeMatchParticipant: (match: MatchListView | null, side: "home" | "away") => NormalizedMatchParticipant | null;
638
-
639
- declare class NormalizeMatchScorePipe implements PipeTransform {
640
- transform: (match: MatchListView | null | undefined) => NormalizedMatchScore | null;
641
- static ɵfac: _angular_core.ɵɵFactoryDeclaration<NormalizeMatchScorePipe, never>;
642
- static ɵpipe: _angular_core.ɵɵPipeDeclaration<NormalizeMatchScorePipe, "etNormalizeMatchScore", true>;
643
- }
644
- declare const enum MatchStateType {
645
- PREPARING_ROUND = "preparingRound",
646
- PRE_MATCH = "preMatch",
647
- LIVE = "live",
648
- POST_MATCH = "postMatch",
649
- AUTO_WIN = "autoWin"
650
- }
651
- type NormalizedMatchScore = {
652
- home: {
653
- score: string | number | null;
654
- isWinner: boolean;
655
- };
656
- away: {
657
- score: string | number | null;
658
- isWinner: boolean;
659
- };
660
- subLine: string | null;
661
- isNumeric: boolean;
827
+ type BuildMediaQueryOptions = {
828
+ min?: number | Breakpoint;
829
+ max?: number | Breakpoint;
662
830
  };
663
- declare const normalizeMatchScore: (match: MatchListView | null | undefined) => NormalizedMatchScore | null;
664
- declare const isKnockoutMatch: (match: MatchListView | null | undefined) => boolean;
665
- declare const isGroupMatch: (match: MatchListView | null | undefined) => boolean;
666
- declare const getKnockoutMatchScore: (score: MatchRankingView | null | undefined) => "match-score.knockout.won" | "match-score.knockout.lost" | "match-score.knockout.tie" | null;
667
- declare const getMatchScoreSubLine: (match: MatchListView | null | undefined) => "match-score.groups.sub-line" | null;
668
- declare const getGroupMatchScore: (match: MatchListView | null | undefined) => {
669
- home: {
670
- score: number;
671
- isWinner: boolean;
831
+ declare const provideBreakpointObserver: () => _angular_core.Provider[];
832
+ declare const injectBreakpointObserver: {
833
+ (): {
834
+ observeBreakpoint: (options: BuildMediaQueryOptions) => _angular_core.Signal<boolean>;
835
+ isBreakpointMatched: (options: BuildMediaQueryOptions) => boolean;
836
+ getBreakpointSize: (type: Breakpoint, option: "min" | "max") => number;
837
+ buildMediaQueryString: (options: BuildMediaQueryOptions) => string;
838
+ observeMediaQuery: (mediaQuery: string) => _angular_core.Signal<boolean>;
839
+ isMediaQueryMatched: (mediaQuery: string) => boolean;
672
840
  };
673
- away: {
674
- score: number;
675
- isWinner: boolean;
841
+ (options: _angular_core.InjectOptions & {
842
+ optional?: false;
843
+ }): {
844
+ observeBreakpoint: (options: BuildMediaQueryOptions) => _angular_core.Signal<boolean>;
845
+ isBreakpointMatched: (options: BuildMediaQueryOptions) => boolean;
846
+ getBreakpointSize: (type: Breakpoint, option: "min" | "max") => number;
847
+ buildMediaQueryString: (options: BuildMediaQueryOptions) => string;
848
+ observeMediaQuery: (mediaQuery: string) => _angular_core.Signal<boolean>;
849
+ isMediaQueryMatched: (mediaQuery: string) => boolean;
676
850
  };
677
- } | null;
678
- declare const getGroupMatchPoints: (match: MatchListView | null | undefined) => {
679
- home: {
680
- score: number;
681
- isWinner: boolean;
682
- };
683
- away: {
684
- score: number;
685
- isWinner: boolean;
686
- };
687
- } | null;
688
-
689
- declare class NormalizeMatchStatePipe implements PipeTransform {
690
- transform: (match: MatchListView | null | undefined) => MatchStateType | null;
691
- static ɵfac: _angular_core.ɵɵFactoryDeclaration<NormalizeMatchStatePipe, never>;
692
- static ɵpipe: _angular_core.ɵɵPipeDeclaration<NormalizeMatchStatePipe, "etNormalizeMatchState", true>;
693
- }
694
- declare const normalizeMatchState: (match: MatchListView | null | undefined) => MatchStateType | null;
851
+ (options: _angular_core.InjectOptions): {
852
+ observeBreakpoint: (options: BuildMediaQueryOptions) => _angular_core.Signal<boolean>;
853
+ isBreakpointMatched: (options: BuildMediaQueryOptions) => boolean;
854
+ getBreakpointSize: (type: Breakpoint, option: "min" | "max") => number;
855
+ buildMediaQueryString: (options: BuildMediaQueryOptions) => string;
856
+ observeMediaQuery: (mediaQuery: string) => _angular_core.Signal<boolean>;
857
+ isMediaQueryMatched: (mediaQuery: string) => boolean;
858
+ } | null;
859
+ };
695
860
 
696
- declare class NormalizeMatchTypePipe implements PipeTransform {
697
- transform: (matchType: StageType | null | undefined) => Translatable | null;
698
- static ɵfac: _angular_core.ɵɵFactoryDeclaration<NormalizeMatchTypePipe, never>;
699
- static ɵpipe: _angular_core.ɵɵPipeDeclaration<NormalizeMatchTypePipe, "etNormalizeMatchType", true>;
700
- }
701
- declare const normalizeMatchType: (matchType: StageType | null | undefined) => Translatable | null;
861
+ type BreakpointMap<T> = Partial<Record<Breakpoint, T>>;
862
+ type BreakpointInput<T> = T | BreakpointMap<T>;
863
+ declare const breakpointTransformBase: <T, WriteT = BreakpointInput<T>>(coerce: (value: WriteT) => T) => ((value: WriteT) => T);
864
+ /**
865
+ * Transform factory for boolean inputs.
866
+ * Coerces plain values with `booleanAttribute`; resolves {@link BreakpointMap} mobile-first.
867
+ *
868
+ * @example
869
+ * snap = input(false, { transform: boolBreakpointTransform() });
870
+ * // Template: `snap` | `[snap]="true"` | `[snap]="{ xs: false, md: true }"`
871
+ */
872
+ declare const boolBreakpointTransform: () => ((value: BreakpointInput<boolean> | string) => boolean);
873
+ /**
874
+ * Transform factory for number inputs.
875
+ * Coerces plain values with `numberAttribute`; resolves {@link BreakpointMap} mobile-first.
876
+ *
877
+ * @example
878
+ * scrollMargin = input(0, { transform: numberBreakpointTransform() });
879
+ * // Template: `[scrollMargin]="16"` | `[scrollMargin]="{ xs: 0, md: 16 }"`
880
+ */
881
+ declare const numberBreakpointTransform: () => ((value: BreakpointInput<number> | string) => number);
882
+ /**
883
+ * Transform factory for any typed input (string unions, arrays, objects, etc.).
884
+ * Passes plain values through as-is; resolves {@link BreakpointMap} mobile-first.
885
+ * A value is treated as a {@link BreakpointMap} only when all its keys are valid breakpoint names.
886
+ *
887
+ * @example
888
+ * itemSize = input('auto', { transform: typedBreakpointTransform<ScrollableItemSize>() });
889
+ * tags = input([], { transform: typedBreakpointTransform<string[]>() });
890
+ * // Template: `[itemSize]="'third'"` | `[itemSize]="{ xs: 'full', md: 'third' }"`
891
+ */
892
+ declare const typedBreakpointTransform: <T>() => ((value: BreakpointInput<T>) => T);
893
+ type BoolBreakpointSignal = InputSignalWithTransform<boolean, BreakpointInput<boolean> | string>;
894
+ type NumberBreakpointSignal = InputSignalWithTransform<number, BreakpointInput<number> | string>;
895
+ type TypedBreakpointSignal<T> = InputSignalWithTransform<T, BreakpointInput<T>>;
896
+ declare const injectBreakpointInput: <T>(inputSignal: Signal<BreakpointInput<T>>, defaultValue: T) => Signal<T>;
897
+ declare const booleanBreakpointAttribute: (value: unknown) => BreakpointInput<boolean>;
898
+ declare const numberBreakpointAttribute: (value: unknown) => BreakpointInput<number>;
899
+ declare const BREAKPOINT_INSTANCE_TOKEN: InjectionToken<unknown>;
900
+ declare const provideBreakpointInstance: (componentClass: unknown) => {
901
+ provide: InjectionToken<unknown>;
902
+ useExisting: unknown;
903
+ };
702
904
 
703
- declare class InferMimeTypePipe implements PipeTransform {
704
- transform: (srcset: string) => "image/avif" | "image/bmp" | "image/gif" | "image/vdn.microsoft.icon" | "image/jpeg" | "image/png" | "image/svg+xml" | "image/tiff" | "image/webp" | "audio/aac" | "application/x-abiword" | "application/x-freearc" | "video/x-msvideo" | "application/vnd.amazon.ebook" | "application/octet-stream" | "application/x-bzip" | "application/x-bzip2" | "application/x-cdf" | "application/x-csh" | "text/css" | "text/csv" | "application/msword" | "application/vnd.openxmlformats-officedocument.wordprocessingml.document" | "application/vnd.ms-fontobject" | "application/epub+zip" | "application/gzip" | "text/html" | "text/calendar" | "application/java-archive" | "text/javascript" | "application/json" | "application/ld+json" | "audio/midi" | "audio/mpeg" | "video/mp4" | "video/mpeg" | "tapplication/vnd.apple.installer+xml" | "application/vnd.oasis.opendocument.presentation" | "application/vnd.oasis.opendocument.spreadsheet" | "application/vnd.oasis.opendocument.text" | "audio/ogg" | "video/ogg" | "application/ogg" | "audio/opus" | "font/otf" | "application/pdf" | "application/x-httpd-php" | "application/vnd.ms-powerpoint" | "application/vnd.openxmlformats-officedocument.presentationml.presentation" | "application/vnd.rar" | "application/rtf" | "application/x-sh" | "application/x-tar" | "video/mp2t" | "font/ttf" | "text/plain" | "application/vnd.visio" | "audio/wav" | "audio/webm" | "video/webm" | "font/woff" | "font/woff2" | "application/xhtml+xml" | "application/vnd.ms-excel" | "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet" | "application/xml" | "application/vnd.mozilla.xul+xml" | "application/zip" | "video/3gpp" | "video/3gpp2" | "application/x-7z-compressed" | null;
705
- static ɵfac: _angular_core.ɵɵFactoryDeclaration<InferMimeTypePipe, never>;
706
- static ɵpipe: _angular_core.ɵɵPipeDeclaration<InferMimeTypePipe, "inferMimeType", true>;
707
- }
905
+ type ControlValueSignalOptions = {
906
+ debounceTime?: number;
907
+ /**
908
+ * @default false
909
+ */
910
+ debounceFirst?: boolean;
911
+ };
912
+ declare const controlValueSignal: <TControlInput extends Signal<AbstractControl | null> | AbstractControl, TControl extends TControlInput extends Signal<infer TSignalControl> ? TSignalControl : TControlInput>(control: TControlInput, options?: ControlValueSignalOptions) => Signal<ReturnType<NonNullable<TControl>["getRawValue"]> | null>;
708
913
  /**
709
- * Infers the mime type of a given url or srcset.
710
- * If a srcset is provided, it will infer the mime type of the first url in the srcset.
711
- * If the srcset contains a query parameter `?fm=`, it will use the value of that parameter, since it is often used to specify the file format in image api's like contentful.
914
+ * The first item in the pair is the previous value and the second item is the current value.
712
915
  */
713
- declare const inferMimeType: (srcset: string) => "image/avif" | "image/bmp" | "image/gif" | "image/vdn.microsoft.icon" | "image/jpeg" | "image/png" | "image/svg+xml" | "image/tiff" | "image/webp" | "audio/aac" | "application/x-abiword" | "application/x-freearc" | "video/x-msvideo" | "application/vnd.amazon.ebook" | "application/octet-stream" | "application/x-bzip" | "application/x-bzip2" | "application/x-cdf" | "application/x-csh" | "text/css" | "text/csv" | "application/msword" | "application/vnd.openxmlformats-officedocument.wordprocessingml.document" | "application/vnd.ms-fontobject" | "application/epub+zip" | "application/gzip" | "text/html" | "text/calendar" | "application/java-archive" | "text/javascript" | "application/json" | "application/ld+json" | "audio/midi" | "audio/mpeg" | "video/mp4" | "video/mpeg" | "tapplication/vnd.apple.installer+xml" | "application/vnd.oasis.opendocument.presentation" | "application/vnd.oasis.opendocument.spreadsheet" | "application/vnd.oasis.opendocument.text" | "audio/ogg" | "video/ogg" | "application/ogg" | "audio/opus" | "font/otf" | "application/pdf" | "application/x-httpd-php" | "application/vnd.ms-powerpoint" | "application/vnd.openxmlformats-officedocument.presentationml.presentation" | "application/vnd.rar" | "application/rtf" | "application/x-sh" | "application/x-tar" | "video/mp2t" | "font/ttf" | "text/plain" | "application/vnd.visio" | "audio/wav" | "audio/webm" | "video/webm" | "font/woff" | "font/woff2" | "application/xhtml+xml" | "application/vnd.ms-excel" | "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet" | "application/xml" | "application/vnd.mozilla.xul+xml" | "application/zip" | "video/3gpp" | "video/3gpp2" | "application/x-7z-compressed" | null;
916
+ declare const controlValueSignalWithPrevious: <T extends AbstractControl>(control: T, options?: ControlValueSignalOptions) => Signal<[ReturnType<NonNullable<T extends Signal<infer TSignalControl> ? TSignalControl : T>["getRawValue"]> | null, ReturnType<NonNullable<T extends Signal<infer TSignalControl> ? TSignalControl : T>["getRawValue"]> | null]>;
714
917
 
715
- declare class ToArrayPipe implements PipeTransform {
716
- transform: (value: number) => number[];
717
- static ɵfac: _angular_core.ɵɵFactoryDeclaration<ToArrayPipe, never>;
718
- static ɵpipe: _angular_core.ɵɵPipeDeclaration<ToArrayPipe, "toArray", true>;
719
- }
720
- declare const toArray: (value: number) => number[];
721
- declare const toArrayTrackByFn: TrackByFunction<number>;
918
+ declare const signalElementChildren: (el: SignalElementBindingType) => _angular_core.Signal<HTMLElement[]>;
722
919
 
723
- declare const createPropHandlers: () => {
724
- classes: {
725
- remove: (tokens: string) => void;
726
- removeMany: (tokens: string[]) => void;
727
- has: (tokens: string) => boolean;
728
- push: (tokens: string, signal: _angular_core.Signal<unknown>) => void;
729
- pushMany: (map: Record<string, _angular_core.Signal<unknown>>) => void;
730
- };
731
- attributes: {
732
- remove: (tokens: string) => void;
733
- removeMany: (tokens: string[]) => void;
734
- has: (tokens: string) => boolean;
735
- push: (tokens: string, signal: _angular_core.Signal<unknown>) => void;
736
- pushMany: (map: Record<string, _angular_core.Signal<unknown>>) => void;
737
- };
738
- styles: {
739
- remove: (tokens: string) => void;
740
- removeMany: (tokens: string[]) => void;
741
- has: (tokens: string) => boolean;
742
- push: (tokens: string, signal: _angular_core.Signal<unknown>) => void;
743
- pushMany: (map: Record<string, _angular_core.Signal<unknown>>) => void;
744
- };
745
- id: string;
746
- elementRef: ElementRef<HTMLElement>;
920
+ type BuildSignalEffectsConfig<T extends Record<string, Signal<unknown>>> = {
921
+ /** The tokens to apply and their signal value */
922
+ tokenMap: T;
923
+ /** This function will be invoked for elements that were removed from the signal effects */
924
+ cleanupFn: (el: HTMLElement, tokens: string[]) => void;
925
+ /** This function will be invoked for elements that were added to the signal effects or when their signal value changes */
926
+ updateFn: (el: HTMLElement, tokens: string[], conditionResult: unknown) => void;
747
927
  };
748
- type PropHandlers = ReturnType<typeof createPropHandlers>;
749
-
750
- type Props = Readonly<{
751
- attached: Signal<boolean>;
752
- attachedElements: PropsAttachedElements;
753
- }>;
754
- type PropsAttachedElements = {
755
- first: Signal<HTMLElement | null>;
756
- firstId: Signal<string | null>;
757
- get(id: string): HTMLElement | null;
928
+ declare const buildSignalEffects: <T extends Record<string, Signal<unknown>>>(el: SignalElementBindingType, config: BuildSignalEffectsConfig<T>) => {
929
+ remove: (tokens: string) => void;
930
+ removeMany: (tokens: string[]) => void;
931
+ has: (tokens: string) => boolean;
932
+ push: (tokens: string, signal: Signal<unknown>) => void;
933
+ pushMany: (map: Record<string, Signal<unknown>>) => void;
758
934
  };
759
- type PropsAttachedElementsInternal = PropsAttachedElements & {
760
- has: (id: string) => boolean;
761
- push: (id: string, element: HTMLElement) => void;
762
- remove: (id: string) => void;
935
+ declare const signalClasses: <T extends Record<string, Signal<unknown>>>(el: SignalElementBindingType, classMap: T) => {
936
+ remove: (tokens: string) => void;
937
+ removeMany: (tokens: string[]) => void;
938
+ has: (tokens: string) => boolean;
939
+ push: (tokens: string, signal: Signal<unknown>) => void;
940
+ pushMany: (map: Record<string, Signal<unknown>>) => void;
763
941
  };
764
- type PropsInternal = {
765
- single: boolean;
766
- name: string;
767
- bindId: boolean;
768
- attached: Signal<boolean>;
769
- attachedElements: PropsAttachedElementsInternal;
770
- classBindings: Record<string, Signal<unknown>> | null;
771
- attributeBindings: Record<string, Signal<unknown>> | null;
772
- styleBindings: Record<string, Signal<unknown>> | null;
773
- staticClassBindings: string[] | null;
774
- staticAttributeBindings: Record<string, unknown> | null;
775
- staticStyleBindings: Record<string, unknown> | null;
776
- attachEventListeners: ((context: {
777
- on: HTMLElement['addEventListener'];
778
- element: HTMLElement;
779
- }) => void) | null;
942
+ declare const signalHostClasses: <T extends Record<string, Signal<unknown>>>(classMap: T) => {
943
+ remove: (tokens: string) => void;
944
+ removeMany: (tokens: string[]) => void;
945
+ has: (tokens: string) => boolean;
946
+ push: (tokens: string, signal: Signal<unknown>) => void;
947
+ pushMany: (map: Record<string, Signal<unknown>>) => void;
780
948
  };
781
- type CreatePropsOptions = {
782
- name: string;
783
- bindId?: boolean;
784
- single?: boolean;
785
- classes?: Record<string, Signal<unknown>>;
786
- attributes?: Record<string, Signal<unknown>>;
787
- styles?: Record<string, Signal<unknown>>;
788
- staticClasses?: string[];
789
- staticAttributes?: Record<string, unknown>;
790
- staticStyles?: Record<string, unknown>;
791
- listeners?: (context: {
792
- on: HTMLElement['addEventListener'];
793
- element: HTMLElement;
794
- }) => void;
949
+ declare const signalAttributes: <T extends Record<string, Signal<unknown>>>(el: SignalElementBindingType, attributeMap: T) => {
950
+ remove: (tokens: string) => void;
951
+ removeMany: (tokens: string[]) => void;
952
+ has: (tokens: string) => boolean;
953
+ push: (tokens: string, signal: Signal<unknown>) => void;
954
+ pushMany: (map: Record<string, Signal<unknown>>) => void;
795
955
  };
796
- declare const createProps: (props: CreatePropsOptions) => Props;
797
- type HostProps = {
798
- props: Props;
799
- handlers: PropHandlers;
956
+ declare const signalHostAttributes: <T extends Record<string, Signal<unknown>>>(attributeMap: T) => {
957
+ remove: (tokens: string) => void;
958
+ removeMany: (tokens: string[]) => void;
959
+ has: (tokens: string) => boolean;
960
+ push: (tokens: string, signal: Signal<unknown>) => void;
961
+ pushMany: (map: Record<string, Signal<unknown>>) => void;
800
962
  };
801
- declare const createHostProps: (props: CreatePropsOptions) => HostProps;
802
-
803
- declare const createSetup: <T extends Record<string, unknown>>(config: {
804
- setupFn: (params: T) => void;
805
- this: ThisType<unknown>;
806
- }) => (params: T) => void;
807
-
808
- declare const createDependencyStash: <T extends Record<string, WritableSignal<unknown>>>(stash: T) => T & {
809
- provideSignal: <K extends keyof T>(data: {
810
- signal: Signal<ReturnType<T[K]>>;
811
- for: K;
812
- }) => void;
813
- provideValue: <K extends keyof T>(data: {
814
- value: ReturnType<T[K]>;
815
- for: K;
816
- }) => void;
963
+ declare const signalStyles: <T extends Record<string, Signal<unknown>>>(el: SignalElementBindingType, styleMap: T) => {
964
+ remove: (tokens: string) => void;
965
+ removeMany: (tokens: string[]) => void;
966
+ has: (tokens: string) => boolean;
967
+ push: (tokens: string, signal: Signal<unknown>) => void;
968
+ pushMany: (map: Record<string, Signal<unknown>>) => void;
969
+ };
970
+ declare const signalHostStyles: <T extends Record<string, Signal<unknown>>>(styleMap: T) => {
971
+ remove: (tokens: string) => void;
972
+ removeMany: (tokens: string[]) => void;
973
+ has: (tokens: string) => boolean;
974
+ push: (tokens: string, signal: Signal<unknown>) => void;
975
+ pushMany: (map: Record<string, Signal<unknown>>) => void;
817
976
  };
818
977
 
819
- declare const createElementDictionary: () => {
820
- ids: _angular_core.Signal<string[]>;
821
- elements: _angular_core.Signal<HTMLElement[]>;
822
- has: (id: string) => boolean;
823
- get: (id: string) => HTMLElement | null;
824
- push: (id: string, element: HTMLElement) => void;
825
- remove: (id: string) => void;
826
- isEmpty: _angular_core.Signal<boolean>;
827
- firstElement: _angular_core.Signal<HTMLElement | null>;
828
- firstId: _angular_core.Signal<string | null>;
978
+ type LogicalSize = {
979
+ inlineSize: number;
980
+ blockSize: number;
981
+ };
982
+ type ElementRect = {
983
+ bottom: number;
984
+ height: number;
985
+ left: number;
986
+ right: number;
987
+ top: number;
988
+ width: number;
989
+ x: number;
990
+ y: number;
991
+ };
992
+ type ElementSize = {
993
+ width: number;
994
+ height: number;
995
+ };
996
+ declare const boundingClientRectToElementRect: (rect: DOMRectReadOnly) => ElementRect;
997
+ declare const createElementDimensions: (el: HTMLElement | null, rect?: DOMRect) => NullableElementDimensions;
998
+ type ElementDimensions = {
999
+ rect: () => ElementRect;
1000
+ client: ElementSize;
1001
+ scroll: ElementSize;
1002
+ offset: ElementSize;
1003
+ };
1004
+ type NullableElementDimensions = {
1005
+ [K in keyof ElementDimensions]: ElementDimensions[K] | null;
829
1006
  };
1007
+ declare const signalElementDimensions: (el: SignalElementBindingType) => Signal<NullableElementDimensions>;
1008
+ declare const signalHostElementDimensions: () => Signal<NullableElementDimensions>;
1009
+ declare const injectViewportSize: () => Signal<ElementSize>;
830
1010
 
831
- type BindPropsOptions = {
832
- props: Props | PropsInternal;
833
- handlers: PropHandlers;
1011
+ type SignalElementIntersectionOptions = Omit<IntersectionObserverInit, 'root'> & {
1012
+ root?: SignalElementBindingType;
1013
+ enabled?: Signal<boolean>;
834
1014
  };
835
- declare const bindProps: (config: BindPropsOptions) => void;
836
- type UnbindPropsOptions = {
837
- props: Props | PropsInternal;
838
- handlers: PropHandlers;
1015
+ type IntersectionObserverEntryWithDetails = IntersectionObserverEntry & {
1016
+ isAbove: boolean;
1017
+ isBelow: boolean;
1018
+ isLeft: boolean;
1019
+ isRight: boolean;
1020
+ isVisible: boolean;
839
1021
  };
840
- declare const unbindProps: (config: UnbindPropsOptions) => void;
1022
+ declare const signalElementIntersection: (el: SignalElementBindingType, options?: SignalElementIntersectionOptions) => Signal<IntersectionObserverEntryWithDetails[]>;
1023
+ declare const signalHostElementIntersection: (options?: SignalElementIntersectionOptions) => Signal<IntersectionObserverEntryWithDetails[]>;
841
1024
 
842
- declare class PropsDirective {
843
- destroyRef: DestroyRef;
844
- props: _angular_core.InputSignalWithTransform<PropsInternal, Readonly<{
845
- attached: _angular_core.Signal<boolean>;
846
- attachedElements: _ethlete_core.PropsAttachedElements;
847
- }>>;
848
- propHandlers: {
849
- classes: {
850
- remove: (tokens: string) => void;
851
- removeMany: (tokens: string[]) => void;
852
- has: (tokens: string) => boolean;
853
- push: (tokens: string, signal: _angular_core.Signal<unknown>) => void;
854
- pushMany: (map: Record<string, _angular_core.Signal<unknown>>) => void;
855
- };
856
- attributes: {
857
- remove: (tokens: string) => void;
858
- removeMany: (tokens: string[]) => void;
859
- has: (tokens: string) => boolean;
860
- push: (tokens: string, signal: _angular_core.Signal<unknown>) => void;
861
- pushMany: (map: Record<string, _angular_core.Signal<unknown>>) => void;
862
- };
863
- styles: {
864
- remove: (tokens: string) => void;
865
- removeMany: (tokens: string[]) => void;
866
- has: (tokens: string) => boolean;
867
- push: (tokens: string, signal: _angular_core.Signal<unknown>) => void;
868
- pushMany: (map: Record<string, _angular_core.Signal<unknown>>) => void;
869
- };
870
- id: string;
871
- elementRef: _angular_core.ElementRef<HTMLElement>;
872
- };
873
- constructor();
874
- static ɵfac: _angular_core.ɵɵFactoryDeclaration<PropsDirective, never>;
875
- static ɵdir: _angular_core.ɵɵDirectiveDeclaration<PropsDirective, "[etProps]", never, { "props": { "alias": "etProps"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
876
- }
1025
+ declare const signalElementMutations: (el: SignalElementBindingType, options?: MutationObserverInit) => _angular_core.Signal<MutationRecord | null>;
1026
+ declare const signalHostElementMutations: (options?: MutationObserverInit) => _angular_core.Signal<MutationRecord | null>;
877
1027
 
878
- type AnyTemplateType = string | TemplateRef<unknown> | ComponentType<unknown> | TemplateRefWithContext | ComponentTypeWithInputs;
879
- type TemplateRefWithContext<T = Record<string, unknown> | undefined, J = unknown> = {
880
- template: TemplateRef<J>;
881
- context?: T;
882
- injector?: Injector;
883
- };
884
- type ComponentTypeWithInputs<T = Record<string, unknown> | undefined, J = unknown> = {
885
- component: ComponentType<J>;
886
- inputs?: T;
887
- injector?: Injector;
888
- };
889
- type StringTemplate = {
890
- type: 'string';
891
- value: string;
1028
+ type ElementLastScrollDirectionType = 'up' | 'down' | 'left' | 'right';
1029
+ type ElementLastScrollDirection = {
1030
+ type: ElementLastScrollDirectionType;
1031
+ time: number;
892
1032
  };
893
- type NgTemplateTemplate = {
894
- type: 'template';
895
- value: TemplateRef<unknown>;
896
- context?: Record<string, unknown>;
897
- injector: Injector | null;
1033
+ declare const signalElementLastScrollDirection: (el: SignalElementBindingType) => _angular_core.Signal<ElementLastScrollDirection | null>;
1034
+ declare const signalHostElementLastScrollDirection: () => _angular_core.Signal<ElementLastScrollDirection | null>;
1035
+
1036
+ type SignalElementScrollStateOptions = {
1037
+ /** The initial scroll position to scroll to. Once a truthy value get's emitted, all further values will be ignored. */
1038
+ initialScrollPosition?: Signal<ScrollToOptions | null>;
898
1039
  };
899
- type ComponentTemplate = {
900
- type: 'component';
901
- value: ComponentType<unknown>;
902
- inputs?: Record<string, unknown>;
903
- injector: Injector | null;
1040
+ type ElementScrollState = {
1041
+ canScroll: boolean;
1042
+ canScrollHorizontally: boolean;
1043
+ canScrollVertically: boolean;
1044
+ elementDimensions: NullableElementDimensions;
904
1045
  };
905
- declare const templateComputed: (templateSignal: Signal<AnyTemplateType | null>) => Signal<StringTemplate | NgTemplateTemplate | ComponentTemplate | null>;
1046
+ declare const areScrollStatesEqual: (a: ElementScrollState, b: ElementScrollState) => boolean;
1047
+ declare const signalElementScrollState: (el: SignalElementBindingType, options?: SignalElementScrollStateOptions) => Signal<ElementScrollState>;
1048
+ declare const signalHostElementScrollState: () => Signal<ElementScrollState>;
906
1049
 
907
1050
  declare const injectAngularRootElement: {
908
1051
  (): _angular_core.WritableSignal<HTMLElement | null>;
@@ -934,65 +1077,6 @@ declare const BOUNDARY_ELEMENT_TOKEN: _angular_core.InjectionToken<{
934
1077
  override: _angular_core.WritableSignal<HTMLElement | null>;
935
1078
  }>;
936
1079
 
937
- type Vec2 = [number, number];
938
- type ViewportConfig = {
939
- breakpoints: {
940
- xs: Vec2;
941
- sm: Vec2;
942
- md: Vec2;
943
- lg: Vec2;
944
- xl: Vec2;
945
- '2xl': Vec2;
946
- };
947
- };
948
- type Breakpoint = keyof ViewportConfig['breakpoints'];
949
- /**
950
- * Default viewport config based on Tailwind CSS.
951
- * @see https://tailwindcss.com/docs/screens
952
- */
953
- declare const DEFAULT_VIEWPORT_CONFIG: ViewportConfig;
954
- declare const provideViewportConfig: (valueOverride?: Partial<ViewportConfig> | undefined) => _angular_core.Provider[];
955
- declare const injectViewportConfig: {
956
- (): ViewportConfig;
957
- (options: _angular_core.InjectOptions & {
958
- optional?: false;
959
- }): ViewportConfig;
960
- (options: _angular_core.InjectOptions): ViewportConfig | null;
961
- };
962
- type BuildMediaQueryOptions = {
963
- min?: number | Breakpoint;
964
- max?: number | Breakpoint;
965
- };
966
- declare const provideBreakpointObserver: () => _angular_core.Provider[];
967
- declare const injectBreakpointObserver: {
968
- (): {
969
- observeBreakpoint: (options: BuildMediaQueryOptions) => _angular_core.Signal<boolean>;
970
- isBreakpointMatched: (options: BuildMediaQueryOptions) => boolean;
971
- getBreakpointSize: (type: Breakpoint, option: "min" | "max") => number;
972
- buildMediaQueryString: (options: BuildMediaQueryOptions) => string;
973
- observeMediaQuery: (mediaQuery: string) => _angular_core.Signal<boolean>;
974
- isMediaQueryMatched: (mediaQuery: string) => boolean;
975
- };
976
- (options: _angular_core.InjectOptions & {
977
- optional?: false;
978
- }): {
979
- observeBreakpoint: (options: BuildMediaQueryOptions) => _angular_core.Signal<boolean>;
980
- isBreakpointMatched: (options: BuildMediaQueryOptions) => boolean;
981
- getBreakpointSize: (type: Breakpoint, option: "min" | "max") => number;
982
- buildMediaQueryString: (options: BuildMediaQueryOptions) => string;
983
- observeMediaQuery: (mediaQuery: string) => _angular_core.Signal<boolean>;
984
- isMediaQueryMatched: (mediaQuery: string) => boolean;
985
- };
986
- (options: _angular_core.InjectOptions): {
987
- observeBreakpoint: (options: BuildMediaQueryOptions) => _angular_core.Signal<boolean>;
988
- isBreakpointMatched: (options: BuildMediaQueryOptions) => boolean;
989
- getBreakpointSize: (type: Breakpoint, option: "min" | "max") => number;
990
- buildMediaQueryString: (options: BuildMediaQueryOptions) => string;
991
- observeMediaQuery: (mediaQuery: string) => _angular_core.Signal<boolean>;
992
- isMediaQueryMatched: (mediaQuery: string) => boolean;
993
- } | null;
994
- };
995
-
996
1080
  declare const provideFocusVisibleTracker: () => _angular_core.Provider[];
997
1081
  declare const injectFocusVisibleTracker: {
998
1082
  (): {
@@ -1059,6 +1143,11 @@ declare const injectRenderer: {
1059
1143
  setDataAttributes: (element: HTMLElement, data: Record<string, string | null>) => void;
1060
1144
  setCssProperty: (element: HTMLElement, name: string, value: string | null) => void;
1061
1145
  setCssProperties: (element: HTMLElement, properties: Record<string, string | null>) => void;
1146
+ moveBefore: (config: {
1147
+ newParent: HTMLElement;
1148
+ child: HTMLElement;
1149
+ before?: Node | null;
1150
+ }) => void;
1062
1151
  renderer: _angular_core.Renderer2;
1063
1152
  };
1064
1153
  (options: _angular_core.InjectOptions & {
@@ -1094,6 +1183,11 @@ declare const injectRenderer: {
1094
1183
  setDataAttributes: (element: HTMLElement, data: Record<string, string | null>) => void;
1095
1184
  setCssProperty: (element: HTMLElement, name: string, value: string | null) => void;
1096
1185
  setCssProperties: (element: HTMLElement, properties: Record<string, string | null>) => void;
1186
+ moveBefore: (config: {
1187
+ newParent: HTMLElement;
1188
+ child: HTMLElement;
1189
+ before?: Node | null;
1190
+ }) => void;
1097
1191
  renderer: _angular_core.Renderer2;
1098
1192
  };
1099
1193
  (options: _angular_core.InjectOptions): {
@@ -1127,303 +1221,91 @@ declare const injectRenderer: {
1127
1221
  setDataAttributes: (element: HTMLElement, data: Record<string, string | null>) => void;
1128
1222
  setCssProperty: (element: HTMLElement, name: string, value: string | null) => void;
1129
1223
  setCssProperties: (element: HTMLElement, properties: Record<string, string | null>) => void;
1224
+ moveBefore: (config: {
1225
+ newParent: HTMLElement;
1226
+ child: HTMLElement;
1227
+ before?: Node | null;
1228
+ }) => void;
1130
1229
  renderer: _angular_core.Renderer2;
1131
1230
  } | null;
1132
1231
  };
1133
1232
  type AngularRenderer = NonNullable<ReturnType<typeof injectRenderer>>;
1134
1233
 
1135
- declare const previousSignalValue: <T>(signal: Signal<T>) => Signal<T | undefined>;
1136
- type SyncSignalOptions = {
1234
+ type StyleManager = {
1235
+ mount: <TComponent>(component: Type<TComponent>) => ComponentRef<TComponent>;
1236
+ };
1237
+ declare const provideStyleManager: () => _angular_core.Provider[];
1238
+ declare const injectStyleManager: {
1239
+ (): StyleManager;
1240
+ (options: _angular_core.InjectOptions & {
1241
+ optional?: false;
1242
+ }): StyleManager;
1243
+ (options: _angular_core.InjectOptions): StyleManager | null;
1244
+ };
1245
+
1246
+ interface ConsentHandler {
1247
+ /** Signal that is `true` when consent has been granted. */
1248
+ isGranted: Signal<boolean>;
1249
+ /** Grants consent and writes the decision back to the source. */
1250
+ grant: () => void;
1251
+ /** Revokes consent and writes the decision back to the source. */
1252
+ revoke?: () => void;
1253
+ }
1254
+ type CreateUserConsentProviderOptions = {
1255
+ /** The provider result returned by `createStaticProvider` that this consent provider should be associated with. */
1256
+ for: InjectionToken<ConsentHandler | null>;
1137
1257
  /**
1138
- * If true, the target signal will not be updated with the source signal's value in a sync operation.
1139
- * This should be set to true for signals that need to be initialized first before syncing (eg. required inputs)
1140
- * @default false
1258
+ * Factory executed inside the injection context that returns a `Signal<boolean>`.
1259
+ *
1260
+ * @example
1261
+ * isGranted: () => inject(CookieService).hasMediaConsent
1141
1262
  */
1142
- skipSyncRead?: boolean;
1263
+ isGranted: () => Signal<boolean>;
1143
1264
  /**
1144
- * If true, the first time the effect will be triggered will be skipped.
1145
- * @default false
1265
+ * Factory executed inside the injection context that returns the grant function.
1266
+ *
1267
+ * @example
1268
+ * grant: () => () => inject(CookieService).acceptAll()
1146
1269
  */
1147
- skipFirstRun?: boolean;
1270
+ grant: () => () => void;
1271
+ /**
1272
+ * Factory executed inside the injection context that returns the revoke function.
1273
+ *
1274
+ * @example
1275
+ * revoke : () => () => inject(CookieService).revokeAll()
1276
+ */
1277
+ revoke?: () => () => void;
1148
1278
  };
1149
- declare const syncSignal: <T>(from: Signal<T>, to: WritableSignal<T>, options?: SyncSignalOptions) => _angular_core.EffectRef;
1150
- type MaybeSignal<T> = T | Signal<T>;
1151
- declare const maybeSignalValue: <T>(value: MaybeSignal<T>) => T;
1279
+ declare const createUserConsentProvider: (options: CreateUserConsentProviderOptions) => Provider;
1280
+
1281
+ /** Inject a signal containing a boolean value indicating if the viewport is xs */
1282
+ declare const injectIsXs: () => _angular_core.Signal<boolean>;
1283
+ /** Inject a signal containing a boolean value indicating if the viewport is sm */
1284
+ declare const injectIsSm: () => _angular_core.Signal<boolean>;
1285
+ /** Inject a signal containing a boolean value indicating if the viewport is md */
1286
+ declare const injectIsMd: () => _angular_core.Signal<boolean>;
1287
+ /** Inject a signal containing a boolean value indicating if the viewport is lg */
1288
+ declare const injectIsLg: () => _angular_core.Signal<boolean>;
1289
+ /** Inject a signal containing a boolean value indicating if the viewport is xl */
1290
+ declare const injectIsXl: () => _angular_core.Signal<boolean>;
1291
+ /** Inject a signal containing a boolean value indicating if the viewport is 2xl */
1292
+ declare const injectIs2Xl: () => _angular_core.Signal<boolean>;
1152
1293
  /**
1153
- * A computed that will only be reactive until the source signal contains a truthy value.
1154
- * All subsequent changes inside the computation will be ignored.
1294
+ * Inject a boolean value indicating if the viewport is matching the provided options.
1295
+ * This value is not reactive. If you want to react to changes, use the {@link injectObserveBreakpoint} function instead.
1155
1296
  */
1156
- declare const computedTillTruthy: <T>(source: Signal<T>) => Signal<T | null>;
1297
+ declare const injectBreakpointIsMatched: (options: BuildMediaQueryOptions) => boolean;
1157
1298
  /**
1158
- * A computed that will only be reactive until the source signal contains a falsy value.
1159
- * All subsequent changes inside the computation will be ignored.
1299
+ * Inject a boolean value indicating if the media query is matched.
1300
+ * This value is not reactive. If you want to react to changes, use the {@link injectObserveMediaQuery} function instead.
1160
1301
  */
1161
- declare const computedTillFalsy: <T>(source: Signal<T>) => Signal<T | null>;
1302
+ declare const injectMediaQueryIsMatched: (mediaQuery: string) => boolean;
1162
1303
  /**
1163
- * A writeable signal that will be set to the provided value once all inputs are set.
1164
- * During that time, the signal will be set to `null`.
1304
+ * Inject a signal containing a boolean value indicating if the viewport is matching the provided options.
1165
1305
  */
1166
- declare const deferredSignal: <T extends () => unknown>(valueFn: T) => WritableSignal<ReturnType<T> | null>;
1167
- declare const memoizeSignal: <T>(factory: () => Signal<T>) => () => Signal<T>;
1168
-
1169
- type SignalAnimatedNumberOptions = {
1170
- /**
1171
- * The initial value to start animating from.
1172
- * If not provided, the animation will start from 0
1173
- */
1174
- initialValue?: number;
1175
- /**
1176
- * Duration of the animation in milliseconds.
1177
- * @default 1000
1178
- */
1179
- duration?: number;
1180
- /**
1181
- * Easing function that takes a progress value (0 to 1) and returns an eased value (0 to 1).
1182
- * Options:
1183
- * - `easeLinear()`
1184
- * - `easeIn()`
1185
- * - `easeOut()`
1186
- * - `easeInOut()`
1187
- * - `easeElastic()`
1188
- * - `easeOutBack()`
1189
- * - `easeOutBackStrong()`
1190
- * @default easeOut()
1191
- */
1192
- easing?: (t: number) => number;
1193
- /**
1194
- * Function to round the animated value.
1195
- * @default (v: number) => Math.round(v)
1196
- */
1197
- round?: (value: number) => number;
1198
- /**
1199
- * Callback invoked when the animation starts.
1200
- */
1201
- onAnimationStart?: () => void;
1202
- /**
1203
- * Callback invoked when the animation ends.
1204
- */
1205
- onAnimationEnd?: () => void;
1206
- };
1207
- type AnimatedNumberSignal = Signal<number> & {
1208
- /**
1209
- * Starts the animation from the current value to the target value.
1210
- * @returns The animated signal for chaining
1211
- */
1212
- play: () => AnimatedNumberSignal;
1213
- /**
1214
- * Resets the animation to the initial value and stops any ongoing animation.
1215
- * @returns The animated signal for chaining
1216
- */
1217
- reset: () => AnimatedNumberSignal;
1218
- /**
1219
- * Stops the current animation at its current position.
1220
- * @returns The animated signal for chaining
1221
- */
1222
- stop: () => AnimatedNumberSignal;
1223
- };
1306
+ declare const injectObserveBreakpoint: (options: BuildMediaQueryOptions) => _angular_core.Signal<boolean>;
1224
1307
  /**
1225
- * Creates a signal that animates the transition of a numeric signal's value over time.
1226
- */
1227
- declare const signalAnimatedNumber: (source: MaybeSignal<number>, options?: SignalAnimatedNumberOptions) => AnimatedNumberSignal;
1228
- declare const easeLinear: (t: number) => number;
1229
- declare const easeIn: (t: number) => number;
1230
- declare const easeOut: (t: number) => number;
1231
- declare const easeInOut: (t: number) => number;
1232
- /** Elastic easing function (overshoots) */
1233
- declare const easeElastic: (t: number) => number;
1234
- /** Back easing function (overshoots slightly then settles) */
1235
- declare const easeOutBack: (t: number) => number;
1236
- /** Back easing function with more overshoot */
1237
- declare const easeOutBackStrong: (t: number) => number;
1238
-
1239
- type ControlValueSignalOptions = {
1240
- debounceTime?: number;
1241
- /**
1242
- * @default false
1243
- */
1244
- debounceFirst?: boolean;
1245
- };
1246
- declare const controlValueSignal: <TControlInput extends Signal<AbstractControl | null> | AbstractControl, TControl extends TControlInput extends Signal<infer TSignalControl> ? TSignalControl : TControlInput>(control: TControlInput, options?: ControlValueSignalOptions) => Signal<ReturnType<NonNullable<TControl>["getRawValue"]> | null>;
1247
- /**
1248
- * The first item in the pair is the previous value and the second item is the current value.
1249
- */
1250
- declare const controlValueSignalWithPrevious: <T extends AbstractControl>(control: T, options?: ControlValueSignalOptions) => Signal<[ReturnType<NonNullable<T extends Signal<infer TSignalControl> ? TSignalControl : T>["getRawValue"]> | null, ReturnType<NonNullable<T extends Signal<infer TSignalControl> ? TSignalControl : T>["getRawValue"]> | null]>;
1251
-
1252
- type SignalElementBindingComplexType = HTMLElement | ElementRef<HTMLElement> | QueryList<ElementRef<HTMLElement> | HTMLElement> | Array<ElementRef<HTMLElement> | HTMLElement> | null | undefined;
1253
- type SignalElementBindingType = HTMLElement | ElementRef<HTMLElement> | Observable<SignalElementBindingComplexType> | Signal<SignalElementBindingComplexType> | QueryList<ElementRef<HTMLElement> | HTMLElement> | ElementSignal;
1254
- type ElementSignal = Signal<{
1255
- currentElements: HTMLElement[];
1256
- previousElements: HTMLElement[];
1257
- }>;
1258
- type ElementSignalValue = ReturnType<ElementSignal>;
1259
- declare const isElementSignal: (el: unknown) => el is ElementSignal;
1260
- declare const createDocumentElementSignal: () => ElementSignal;
1261
- declare const createEmptyElementSignal: () => ElementSignal;
1262
- declare const buildElementSignal: (el: SignalElementBindingType | null | undefined) => ElementSignal;
1263
- declare const firstElementSignal: (el: ElementSignal) => Signal<{
1264
- currentElement: HTMLElement | null;
1265
- previousElement: HTMLElement | null;
1266
- }>;
1267
-
1268
- declare const signalElementChildren: (el: SignalElementBindingType) => _angular_core.Signal<HTMLElement[]>;
1269
-
1270
- type BuildSignalEffectsConfig<T extends Record<string, Signal<unknown>>> = {
1271
- /** The tokens to apply and their signal value */
1272
- tokenMap: T;
1273
- /** This function will be invoked for elements that were removed from the signal effects */
1274
- cleanupFn: (el: HTMLElement, tokens: string[]) => void;
1275
- /** This function will be invoked for elements that were added to the signal effects or when their signal value changes */
1276
- updateFn: (el: HTMLElement, tokens: string[], conditionResult: unknown) => void;
1277
- };
1278
- declare const buildSignalEffects: <T extends Record<string, Signal<unknown>>>(el: SignalElementBindingType, config: BuildSignalEffectsConfig<T>) => {
1279
- remove: (tokens: string) => void;
1280
- removeMany: (tokens: string[]) => void;
1281
- has: (tokens: string) => boolean;
1282
- push: (tokens: string, signal: Signal<unknown>) => void;
1283
- pushMany: (map: Record<string, Signal<unknown>>) => void;
1284
- };
1285
- declare const signalClasses: <T extends Record<string, Signal<unknown>>>(el: SignalElementBindingType, classMap: T) => {
1286
- remove: (tokens: string) => void;
1287
- removeMany: (tokens: string[]) => void;
1288
- has: (tokens: string) => boolean;
1289
- push: (tokens: string, signal: Signal<unknown>) => void;
1290
- pushMany: (map: Record<string, Signal<unknown>>) => void;
1291
- };
1292
- declare const signalHostClasses: <T extends Record<string, Signal<unknown>>>(classMap: T) => {
1293
- remove: (tokens: string) => void;
1294
- removeMany: (tokens: string[]) => void;
1295
- has: (tokens: string) => boolean;
1296
- push: (tokens: string, signal: Signal<unknown>) => void;
1297
- pushMany: (map: Record<string, Signal<unknown>>) => void;
1298
- };
1299
- declare const signalAttributes: <T extends Record<string, Signal<unknown>>>(el: SignalElementBindingType, attributeMap: T) => {
1300
- remove: (tokens: string) => void;
1301
- removeMany: (tokens: string[]) => void;
1302
- has: (tokens: string) => boolean;
1303
- push: (tokens: string, signal: Signal<unknown>) => void;
1304
- pushMany: (map: Record<string, Signal<unknown>>) => void;
1305
- };
1306
- declare const signalHostAttributes: <T extends Record<string, Signal<unknown>>>(attributeMap: T) => {
1307
- remove: (tokens: string) => void;
1308
- removeMany: (tokens: string[]) => void;
1309
- has: (tokens: string) => boolean;
1310
- push: (tokens: string, signal: Signal<unknown>) => void;
1311
- pushMany: (map: Record<string, Signal<unknown>>) => void;
1312
- };
1313
- declare const signalStyles: <T extends Record<string, Signal<unknown>>>(el: SignalElementBindingType, styleMap: T) => {
1314
- remove: (tokens: string) => void;
1315
- removeMany: (tokens: string[]) => void;
1316
- has: (tokens: string) => boolean;
1317
- push: (tokens: string, signal: Signal<unknown>) => void;
1318
- pushMany: (map: Record<string, Signal<unknown>>) => void;
1319
- };
1320
- declare const signalHostStyles: <T extends Record<string, Signal<unknown>>>(styleMap: T) => {
1321
- remove: (tokens: string) => void;
1322
- removeMany: (tokens: string[]) => void;
1323
- has: (tokens: string) => boolean;
1324
- push: (tokens: string, signal: Signal<unknown>) => void;
1325
- pushMany: (map: Record<string, Signal<unknown>>) => void;
1326
- };
1327
-
1328
- type LogicalSize = {
1329
- inlineSize: number;
1330
- blockSize: number;
1331
- };
1332
- type ElementRect = {
1333
- bottom: number;
1334
- height: number;
1335
- left: number;
1336
- right: number;
1337
- top: number;
1338
- width: number;
1339
- x: number;
1340
- y: number;
1341
- };
1342
- type ElementSize = {
1343
- width: number;
1344
- height: number;
1345
- };
1346
- declare const boundingClientRectToElementRect: (rect: DOMRectReadOnly) => ElementRect;
1347
- declare const createElementDimensions: (el: HTMLElement | null, rect?: DOMRect) => NullableElementDimensions;
1348
- type ElementDimensions = {
1349
- rect: () => ElementRect;
1350
- client: ElementSize;
1351
- scroll: ElementSize;
1352
- offset: ElementSize;
1353
- };
1354
- type NullableElementDimensions = {
1355
- [K in keyof ElementDimensions]: ElementDimensions[K] | null;
1356
- };
1357
- declare const signalElementDimensions: (el: SignalElementBindingType) => _angular_core.Signal<NullableElementDimensions>;
1358
- declare const signalHostElementDimensions: () => _angular_core.Signal<NullableElementDimensions>;
1359
-
1360
- type SignalElementIntersectionOptions = Omit<IntersectionObserverInit, 'root'> & {
1361
- root?: SignalElementBindingType;
1362
- enabled?: Signal<boolean>;
1363
- };
1364
- type IntersectionObserverEntryWithDetails = IntersectionObserverEntry & {
1365
- isAbove: boolean;
1366
- isBelow: boolean;
1367
- isLeft: boolean;
1368
- isRight: boolean;
1369
- isVisible: boolean;
1370
- };
1371
- declare const signalElementIntersection: (el: SignalElementBindingType, options?: SignalElementIntersectionOptions) => Signal<IntersectionObserverEntryWithDetails[]>;
1372
- declare const signalHostElementIntersection: (options?: SignalElementIntersectionOptions) => Signal<IntersectionObserverEntryWithDetails[]>;
1373
-
1374
- declare const signalElementMutations: (el: SignalElementBindingType, options?: MutationObserverInit) => _angular_core.Signal<MutationRecord | null>;
1375
- declare const signalHostElementMutations: (options?: MutationObserverInit) => _angular_core.Signal<MutationRecord | null>;
1376
-
1377
- type ElementLastScrollDirectionType = 'up' | 'down' | 'left' | 'right';
1378
- type ElementLastScrollDirection = {
1379
- type: ElementLastScrollDirectionType;
1380
- time: number;
1381
- };
1382
- declare const signalElementLastScrollDirection: (el: SignalElementBindingType) => _angular_core.Signal<ElementLastScrollDirection | null>;
1383
- declare const signalHostElementLastScrollDirection: () => _angular_core.Signal<ElementLastScrollDirection | null>;
1384
-
1385
- type SignalElementScrollStateOptions = {
1386
- /** The initial scroll position to scroll to. Once a truthy value get's emitted, all further values will be ignored. */
1387
- initialScrollPosition?: Signal<ScrollToOptions | null>;
1388
- };
1389
- type ElementScrollState = {
1390
- canScroll: boolean;
1391
- canScrollHorizontally: boolean;
1392
- canScrollVertically: boolean;
1393
- elementDimensions: NullableElementDimensions;
1394
- };
1395
- declare const areScrollStatesEqual: (a: ElementScrollState, b: ElementScrollState) => boolean;
1396
- declare const signalElementScrollState: (el: SignalElementBindingType, options?: SignalElementScrollStateOptions) => Signal<ElementScrollState>;
1397
- declare const signalHostElementScrollState: () => Signal<ElementScrollState>;
1398
-
1399
- /** Inject a signal containing a boolean value indicating if the viewport is xs */
1400
- declare const injectIsXs: () => _angular_core.Signal<boolean>;
1401
- /** Inject a signal containing a boolean value indicating if the viewport is sm */
1402
- declare const injectIsSm: () => _angular_core.Signal<boolean>;
1403
- /** Inject a signal containing a boolean value indicating if the viewport is md */
1404
- declare const injectIsMd: () => _angular_core.Signal<boolean>;
1405
- /** Inject a signal containing a boolean value indicating if the viewport is lg */
1406
- declare const injectIsLg: () => _angular_core.Signal<boolean>;
1407
- /** Inject a signal containing a boolean value indicating if the viewport is xl */
1408
- declare const injectIsXl: () => _angular_core.Signal<boolean>;
1409
- /** Inject a signal containing a boolean value indicating if the viewport is 2xl */
1410
- declare const injectIs2Xl: () => _angular_core.Signal<boolean>;
1411
- /**
1412
- * Inject a boolean value indicating if the viewport is matching the provided options.
1413
- * This value is not reactive. If you want to react to changes, use the {@link injectObserveBreakpoint} function instead.
1414
- */
1415
- declare const injectBreakpointIsMatched: (options: BuildMediaQueryOptions) => boolean;
1416
- /**
1417
- * Inject a boolean value indicating if the media query is matched.
1418
- * This value is not reactive. If you want to react to changes, use the {@link injectObserveMediaQuery} function instead.
1419
- */
1420
- declare const injectMediaQueryIsMatched: (mediaQuery: string) => boolean;
1421
- /**
1422
- * Inject a signal containing a boolean value indicating if the viewport is matching the provided options.
1423
- */
1424
- declare const injectObserveBreakpoint: (options: BuildMediaQueryOptions) => _angular_core.Signal<boolean>;
1425
- /**
1426
- * Inject a signal containing a boolean value indicating if the media query is matched.
1308
+ * Inject a signal containing a boolean value indicating if the media query is matched.
1427
1309
  */
1428
1310
  declare const injectObserveMediaQuery: (mediaQuery: string) => _angular_core.Signal<boolean>;
1429
1311
  /** Inject a signal containing the current breakpoint. */
@@ -1440,6 +1322,8 @@ declare const injectHasTouchInput: () => _angular_core.Signal<boolean>;
1440
1322
  declare const injectHasPrecisionInput: () => _angular_core.Signal<boolean>;
1441
1323
  /** Inject a signal containing the current device input type */
1442
1324
  declare const injectDeviceInputType: () => _angular_core.Signal<"touch" | "mouse">;
1325
+ /** Inject a signal that indicates if the user prefers reduced motion */
1326
+ declare const injectPrefersReducedMotion: () => _angular_core.Signal<boolean>;
1443
1327
  /** Inject a signal containing a boolean value indicating if the user can hover (eg. using a mouse) */
1444
1328
  declare const injectCanHover: () => _angular_core.Signal<boolean>;
1445
1329
  /** Inject a signal containing the viewport dimensions */
@@ -1463,159 +1347,1103 @@ declare const writeScrollbarSizeToCssVariables: () => void;
1463
1347
  */
1464
1348
  declare const writeViewportSizeToCssVariables: () => void;
1465
1349
 
1466
- type CursorDragScrollDirection = 'horizontal' | 'vertical' | 'both';
1467
- type CursorDragScrollOptions = {
1468
- /** If true, cursor drag scrolling will be enabled. */
1469
- enabled?: Signal<boolean>;
1470
- /** The allowed scroll direction. */
1471
- allowedDirection?: MaybeSignal<CursorDragScrollDirection>;
1350
+ type CursorDragScrollDirection = 'horizontal' | 'vertical' | 'both';
1351
+ type CursorDragScrollOptions = {
1352
+ /** If true, cursor drag scrolling will be enabled. */
1353
+ enabled?: Signal<boolean>;
1354
+ /** The allowed scroll direction. */
1355
+ allowedDirection?: MaybeSignal<CursorDragScrollDirection>;
1356
+ };
1357
+ /** A function to apply cursor drag scroll behavior to an element. */
1358
+ declare const useCursorDragScroll: (el: SignalElementBindingType, options?: CursorDragScrollOptions) => {
1359
+ isDragging: Signal<boolean>;
1360
+ currentDragAmount: Signal<{
1361
+ x: number;
1362
+ y: number;
1363
+ }>;
1364
+ };
1365
+
1366
+ type SetupScrollRestorationConfig = {
1367
+ /**
1368
+ * The scrollable container.
1369
+ * @default document.documentElement
1370
+ */
1371
+ scrollElement?: HTMLElement;
1372
+ /**
1373
+ * A list of query params that should trigger a scroll to top.
1374
+ * @default []
1375
+ * @example ['page'] // will scroll to top when the page query param changes
1376
+ */
1377
+ queryParamTriggerList?: string[];
1378
+ /**
1379
+ * Config for fragment scrolling.
1380
+ */
1381
+ fragment?: {
1382
+ /**
1383
+ * Enable fragment scrolling (scroll to element with id)
1384
+ * @default false
1385
+ */
1386
+ enabled?: boolean;
1387
+ /**
1388
+ * Whether to use smooth scrolling or not.
1389
+ * @default false
1390
+ */
1391
+ smooth?: boolean;
1392
+ };
1393
+ };
1394
+ declare const ET_DISABLE_SCROLL_TOP: unique symbol;
1395
+ declare const ET_DISABLE_SCROLL_TOP_AS_RETURN_ROUTE: unique symbol;
1396
+ declare const ET_DISABLE_SCROLL_TOP_ON_PATH_PARAM_CHANGE: unique symbol;
1397
+ type RouterDisableScrollTopConfig = {
1398
+ /**
1399
+ * Whether to disable scroll to top ONLY when navigating back to this route.
1400
+ * @default false
1401
+ */
1402
+ asReturnRoute?: boolean;
1403
+ /**
1404
+ * Whether to disable scroll to top when a path param changes.
1405
+ * @default false
1406
+ */
1407
+ onPathParamChange?: boolean;
1408
+ };
1409
+ declare const routerDisableScrollTop: (config?: RouterDisableScrollTopConfig) => {
1410
+ [ET_DISABLE_SCROLL_TOP_ON_PATH_PARAM_CHANGE]?: boolean | undefined;
1411
+ [ET_DISABLE_SCROLL_TOP]: boolean;
1412
+ } | {
1413
+ [ET_DISABLE_SCROLL_TOP_ON_PATH_PARAM_CHANGE]?: boolean | undefined;
1414
+ [ET_DISABLE_SCROLL_TOP_AS_RETURN_ROUTE]: boolean;
1415
+ };
1416
+ declare const setupScrollRestoration: (config?: SetupScrollRestorationConfig) => void;
1417
+
1418
+ declare const signalIsRendered: () => _angular_core.Signal<boolean>;
1419
+ declare const createIsRenderedSignal: () => {
1420
+ state: _angular_core.WritableSignal<boolean>;
1421
+ bind: () => _angular_core.EffectRef;
1422
+ };
1423
+ declare const createCanAnimateSignal: () => {
1424
+ state: _angular_core.Signal<boolean>;
1425
+ };
1426
+
1427
+ type RouterState = {
1428
+ data: Data;
1429
+ pathParams: Params;
1430
+ queryParams: Params;
1431
+ title: string | null;
1432
+ fragment: string | null;
1433
+ };
1434
+ declare const ET_PROPERTY_REMOVED: unique symbol;
1435
+ type InjectUtilConfig = {
1436
+ /** The injector to use for the injection. Must be provided if the function is not called from within a injection context. */
1437
+ injector?: Injector;
1438
+ };
1439
+ type InjectUtilTransformConfig<In, Out> = {
1440
+ /**
1441
+ * A transform function similar to the `transform` function in Angular input bindings.
1442
+ * Can be used to transform the value before it is returned.
1443
+ * E.g. transforming `"true"` to `true` for a boolean attribute.
1444
+ */
1445
+ transform?: (value: In) => Out;
1446
+ };
1447
+ declare const transformOrReturn: <In, Out>(src: Signal<In>, config?: InjectUtilTransformConfig<In, Out>) => Signal<Out>;
1448
+ /** Inject the current router event */
1449
+ declare const injectRouterEvent: () => Signal<_angular_router.Event>;
1450
+ /**
1451
+ * Signal that indicates whether the router has been initialized.
1452
+ * The router is considered initialized once the first NavigationEnd event with an id different than -1 has been emitted.
1453
+ */
1454
+ declare const injectIsRouterInitialized: () => Signal<boolean>;
1455
+ /**
1456
+ * Inject the current url.
1457
+ * The url includes query params as well as the fragment. Use `injectRoute` instead if you are not intrusted in those.
1458
+ * @example "/my-page?query=1&param=true#fragment"
1459
+ */
1460
+ declare const injectUrl: () => Signal<string>;
1461
+ /**
1462
+ * Inject the current route
1463
+ * @example "/my-page"
1464
+ */
1465
+ declare const injectRoute: () => Signal<string>;
1466
+ declare const createRouterState: (router: Router) => RouterState;
1467
+ /**
1468
+ * Read the current route (the committed url without query params and fragment) straight from the router.
1469
+ * Unlike the `injectRoute` signal this reads synchronously, so it can be used inside a `router.events` handler
1470
+ * where `router.url` is already committed. Falls back to the browser location before the first navigation commits.
1471
+ */
1472
+ declare const createRoute: (router: Router) => string;
1473
+ /**
1474
+ * Inject the complete router state. This includes the current route data, path params, query params, title and fragment.
1475
+ */
1476
+ declare const injectRouterState: () => Signal<RouterState>;
1477
+ /** Inject a signal containing the current route fragment (the part after the # inside the url if present) */
1478
+ declare const injectFragment: <T = string | null>(config?: InjectUtilConfig & InjectUtilTransformConfig<string | null, T>) => Signal<T>;
1479
+ /** Inject all currently available query parameters as a signal */
1480
+ declare const injectQueryParams: () => Signal<Params>;
1481
+ /** Inject all currently available route data as a signal */
1482
+ declare const injectRouteData: () => Signal<Data>;
1483
+ /** Inject the current route title as a signal */
1484
+ declare const injectRouteTitle: <T = string | null>(config?: InjectUtilTransformConfig<string | null, T>) => Signal<T>;
1485
+ /** Inject all currently available path parameters as a signal */
1486
+ declare const injectPathParams: () => Signal<Params>;
1487
+ type InjectQueryParamConfig<T> = InjectUtilTransformConfig<string | null, T> & {
1488
+ /**
1489
+ * If true, the initial value will be read from the browser's url.
1490
+ * Note that this will not work with arrays or complex objects.
1491
+ */
1492
+ requireSync?: boolean;
1493
+ };
1494
+ /** Inject a specific query parameter as a signal */
1495
+ declare const injectQueryParam: <T = string | null>(key: string, config?: InjectQueryParamConfig<T>) => Signal<T>;
1496
+ /** Inject a specific route data item as a signal */
1497
+ declare const injectRouteDataItem: <T = unknown>(key: string, config?: InjectUtilTransformConfig<unknown, T>) => Signal<T>;
1498
+ /** Inject a specific path parameter as a signal */
1499
+ declare const injectPathParam: <T = string | null>(key: string, config?: InjectUtilTransformConfig<string | null, T>) => Signal<T>;
1500
+ /**
1501
+ * Inject query params that changed during navigation. Unchanged query params will be ignored.
1502
+ * Removed query params will be represented by the symbol `ET_PROPERTY_REMOVED`.
1503
+ */
1504
+ declare const injectQueryParamChanges: () => Signal<Record<string, unknown>>;
1505
+ /**
1506
+ * Inject path params that changed during navigation. Unchanged path params will be ignored.
1507
+ * Removed path params will be represented by the symbol `ET_PROPERTY_REMOVED`.
1508
+ */
1509
+ declare const injectPathParamChanges: () => Signal<Record<string, unknown>>;
1510
+
1511
+ declare class ScrollObserverDirective {
1512
+ private elementRef;
1513
+ enabled: _angular_core.ModelSignal<MaybeSignal<boolean>>;
1514
+ private enabledValue;
1515
+ private _startEl;
1516
+ private _endEl;
1517
+ private _startIntersection;
1518
+ private _endIntersection;
1519
+ isAtStart: Signal<boolean>;
1520
+ isAtEnd: Signal<boolean>;
1521
+ _registerStart(el: ElementRef<HTMLElement>): void;
1522
+ _registerEnd(el: ElementRef<HTMLElement>): void;
1523
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<ScrollObserverDirective, never>;
1524
+ static ɵdir: _angular_core.ɵɵDirectiveDeclaration<ScrollObserverDirective, "[etScrollObserver]", ["etScrollObserver"], { "enabled": { "alias": "enabled"; "required": false; "isSignal": true; }; }, { "enabled": "enabledChange"; }, never, never, true, never>;
1525
+ }
1526
+
1527
+ type DragStartEvent = {
1528
+ /** Pointer position at pointerdown — NOT at commit-threshold crossing. */
1529
+ readonly clientX: number;
1530
+ readonly clientY: number;
1531
+ };
1532
+ type DragMoveEvent = {
1533
+ readonly stepX: number;
1534
+ readonly stepY: number;
1535
+ readonly clientX: number;
1536
+ readonly clientY: number;
1537
+ /** Cumulative delta from the pointerdown position. */
1538
+ readonly totalDx: number;
1539
+ readonly totalDy: number;
1540
+ };
1541
+ declare class DragHandleDirective {
1542
+ private el;
1543
+ commitThreshold: _angular_core.InputSignal<number>;
1544
+ disabled: _angular_core.InputSignalWithTransform<boolean, unknown>;
1545
+ private gestureStart$;
1546
+ private gesture$;
1547
+ dragTapped: _angular_core.OutputRef<void>;
1548
+ dragStarted: _angular_core.OutputRef<DragStartEvent>;
1549
+ dragMoved: _angular_core.OutputRef<DragMoveEvent>;
1550
+ dragEnded: _angular_core.OutputRef<void>;
1551
+ isDragging: _angular_core.Signal<boolean>;
1552
+ constructor();
1553
+ startGesture(event: PointerEvent): void;
1554
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<DragHandleDirective, never>;
1555
+ static ɵdir: _angular_core.ɵɵDirectiveDeclaration<DragHandleDirective, "[etDragHandle]", never, { "commitThreshold": { "alias": "commitThreshold"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; }, { "dragTapped": "dragTapped"; "dragStarted": "dragStarted"; "dragMoved": "dragMoved"; "dragEnded": "dragEnded"; }, never, never, true, never>;
1556
+ }
1557
+
1558
+ type OverlayRuntimeRole = 'dialog' | 'alertdialog';
1559
+ type OverlayRuntimeAutoFocusTarget = 'container' | 'first-heading' | 'first-tabbable';
1560
+ type OverlayRuntimeCloseSource = 'api' | 'escape' | 'outside-pointer' | 'drag' | 'reference-detached';
1561
+ type OverlayRuntimeCenteredPosition = {
1562
+ kind: 'center';
1563
+ };
1564
+ type OverlayRuntimeGlobalPositionAlignment = 'start' | 'center' | 'end' | 'stretch';
1565
+ type OverlayRuntimeGlobalPosition = {
1566
+ kind: 'global';
1567
+ /** Horizontal placement of the pane inside the viewport. Defaults to `center`. */
1568
+ horizontal?: OverlayRuntimeGlobalPositionAlignment;
1569
+ /** Vertical placement of the pane inside the viewport. Defaults to `center`. */
1570
+ vertical?: OverlayRuntimeGlobalPositionAlignment;
1571
+ /** Padding applied to the host element. Defaults to `0`. */
1572
+ padding?: string;
1573
+ };
1574
+ type OverlayRuntimeShiftOptions = {
1575
+ /**
1576
+ * Also shift along the placement's cross axis (e.g. horizontally for a `right-*` placement)
1577
+ * when no placement fits the viewport. The pane may then overlap its reference element —
1578
+ * desirable for nested menus, usually not for tooltips. Defaults to `false`.
1579
+ */
1580
+ crossAxis?: boolean;
1581
+ };
1582
+ type OverlayRuntimeAnchoredPosition = {
1583
+ kind: 'anchored';
1584
+ referenceElement: HTMLElement | VirtualElement;
1585
+ placement?: Placement;
1586
+ fallbackPlacements?: Placement[];
1587
+ offset?: OffsetOptions | null;
1588
+ arrowPadding?: Padding | null;
1589
+ viewportPadding?: Padding | null;
1590
+ autoResize?: boolean;
1591
+ shift?: boolean | OverlayRuntimeShiftOptions;
1592
+ autoHide?: boolean;
1593
+ autoCloseIfReferenceHidden?: boolean;
1594
+ mirrorWidth?: boolean;
1595
+ /**
1596
+ * Clipping element(s) the pane must stay within when flipping/shifting, instead of the default
1597
+ * viewport (`clippingAncestors`). Use it to keep an anchored pane inside a specific region — e.g.
1598
+ * a rich-text editor's content area, so its selection toolbar flips below rather than covering the
1599
+ * static toolbar above.
1600
+ */
1601
+ boundary?: Element | Element[];
1602
+ };
1603
+ type OverlayRuntimePositionStrategy = OverlayRuntimeCenteredPosition | OverlayRuntimeAnchoredPosition | OverlayRuntimeGlobalPosition;
1604
+ type OverlayRuntimeElements = {
1605
+ rootElement: HTMLElement;
1606
+ hostElement: HTMLElement;
1607
+ backdropElement: HTMLElement | null;
1608
+ paneElement: HTMLElement;
1609
+ };
1610
+ type OverlayRuntimeCloseEvent<TResult = unknown> = {
1611
+ result: TResult | undefined;
1612
+ source: OverlayRuntimeCloseSource;
1613
+ };
1614
+ type OverlayRuntimeComponentBase = {
1615
+ animatedLifecycle?: Signal<AnimatedLifecycleDirective | undefined>;
1616
+ };
1617
+ type OverlayRuntimeAnimationDelegateEnterContext = {
1618
+ lifecycle: AnimatedLifecycleDirective;
1619
+ elements: OverlayRuntimeElements;
1620
+ };
1621
+ type OverlayRuntimeAnimationDelegateLeaveContext = OverlayRuntimeAnimationDelegateEnterContext & {
1622
+ closeEvent: OverlayRuntimeCloseEvent;
1623
+ };
1624
+ /**
1625
+ * Overrides the runtime's default enter/leave animation handling.
1626
+ * A delegate must eventually drive the lifecycle state to `entered` (enter) or `left` (leave),
1627
+ * otherwise the overlay will never finish opening or closing.
1628
+ */
1629
+ type OverlayRuntimeAnimationDelegate = {
1630
+ enter?: (context: OverlayRuntimeAnimationDelegateEnterContext) => void;
1631
+ leave?: (context: OverlayRuntimeAnimationDelegateLeaveContext) => void;
1632
+ };
1633
+ type OverlayRuntimeMountConfig<TComponent extends object> = {
1634
+ id: string;
1635
+ component: Type<TComponent>;
1636
+ viewContainerRef?: ViewContainerRef;
1637
+ injector?: Injector;
1638
+ providers?: StaticProvider[];
1639
+ role?: OverlayRuntimeRole;
1640
+ positionStrategy?: OverlayRuntimePositionStrategy;
1641
+ hasBackdrop?: boolean;
1642
+ modal?: boolean;
1643
+ autoFocus?: OverlayRuntimeAutoFocusTarget | string | false;
1644
+ restoreFocus?: boolean;
1645
+ closeOnEscape?: boolean;
1646
+ closeOnOutsidePointer?: boolean;
1647
+ ariaDescribedBy?: string | null;
1648
+ ariaLabelledBy?: string | null;
1649
+ ariaLabel?: string | null;
1650
+ hostClass?: string[];
1651
+ backdropClass?: string[];
1652
+ paneClass?: string[];
1653
+ /**
1654
+ * Bindings applied to the mounted component, using Angular's native binding API
1655
+ * (`inputBinding`, `outputBinding`, `twoWayBinding`).
1656
+ */
1657
+ bindings?: Binding[];
1658
+ animationDelegate?: OverlayRuntimeAnimationDelegate;
1659
+ };
1660
+
1661
+ type OverlayRuntimeState = 'mounting' | 'mounted' | 'closing' | 'closed';
1662
+ declare const createOverlayRuntimeRef: <TComponent extends object, TResult = unknown>(id: string, config: Omit<OverlayRuntimeMountConfig<TComponent>, "component">, elements: OverlayRuntimeElements, requestClose: (result: TResult | undefined, source: OverlayRuntimeCloseSource) => void) => {
1663
+ id: string;
1664
+ config: Omit<OverlayRuntimeMountConfig<TComponent>, "component">;
1665
+ elements: OverlayRuntimeElements;
1666
+ state: _angular_core.Signal<OverlayRuntimeState>;
1667
+ componentInstance: _angular_core.Signal<TComponent | null>;
1668
+ beforeOpenedSubject: Subject<void>;
1669
+ close(result?: TResult, source?: OverlayRuntimeCloseSource): void;
1670
+ beforeOpened(): Observable<void>;
1671
+ afterOpened(): Observable<void>;
1672
+ beforeClosed(): Observable<OverlayRuntimeCloseEvent<TResult>>;
1673
+ afterClosed(): Observable<OverlayRuntimeCloseEvent<TResult>>;
1674
+ attachComponentRef(componentRef: ComponentRef<TComponent>): void;
1675
+ /** @internal */
1676
+ attachPositionUpdater(updater: (strategy: OverlayRuntimePositionStrategy) => void): void;
1677
+ updatePositionStrategy(strategy: OverlayRuntimePositionStrategy): void;
1678
+ markOpened(): void;
1679
+ beginClose(closeEvent: OverlayRuntimeCloseEvent<TResult>): boolean;
1680
+ finishClose(closeEvent: OverlayRuntimeCloseEvent<TResult>): void;
1681
+ };
1682
+ type OverlayRuntimeRef<TComponent extends object = object, TResult = unknown> = ReturnType<typeof createOverlayRuntimeRef<TComponent, TResult>>;
1683
+
1684
+ declare const FOCUSABLE_SELECTOR: string;
1685
+ declare const isHTMLElement: (value: unknown) => value is HTMLElement;
1686
+ declare const isFocusable: (element: HTMLElement, document: Document) => boolean;
1687
+ declare const getFocusableElements: (container: HTMLElement, document: Document) => HTMLElement[];
1688
+ declare const getHeadingElement: (container: HTMLElement) => HTMLElement | null;
1689
+ declare const focusElement: (element: HTMLElement | null) => void;
1690
+ declare const applyInitialFocus: (paneElement: HTMLElement, autoFocus: OverlayRuntimeAutoFocusTarget | string | false, document: Document) => void;
1691
+ declare const setupFocusTrap: (paneElement: HTMLElement, overlayRef: OverlayRuntimeRef<object, unknown>, enabled: boolean, isTopMost: (ref: OverlayRuntimeRef<object, unknown>) => boolean, document: Document) => () => void;
1692
+
1693
+ declare const setBaseElementStyles: (config: OverlayRuntimeMountConfig<object>, hostElement: HTMLElement, paneElement: HTMLElement, renderer: AngularRenderer) => void;
1694
+ declare const setBackdropStyles: (backdropElement: HTMLElement, renderer: AngularRenderer) => void;
1695
+ declare const applyCenteredPosition: (hostElement: HTMLElement, paneElement: HTMLElement, renderer: AngularRenderer, _config: OverlayRuntimeCenteredPosition) => void;
1696
+ declare const applyGlobalPosition: (hostElement: HTMLElement, paneElement: HTMLElement, renderer: AngularRenderer, config: OverlayRuntimeGlobalPosition) => void;
1697
+ /**
1698
+ * Clears every inline style any position strategy kind may have set and
1699
+ * restores the base element styles, so a different strategy can be applied afterwards.
1700
+ */
1701
+ declare const resetPositioningStyles: (config: OverlayRuntimeMountConfig<object>, hostElement: HTMLElement, paneElement: HTMLElement, renderer: AngularRenderer) => void;
1702
+ declare const createAnchoredPositionCleanup: (strategy: OverlayRuntimeAnchoredPosition, paneElement: HTMLElement, overlayRef: OverlayRuntimeRef<object, unknown>, renderer: AngularRenderer) => () => void;
1703
+ declare const setupPositioning: (config: OverlayRuntimeMountConfig<object>, hostElement: HTMLElement, paneElement: HTMLElement, overlayRef: OverlayRuntimeRef<object, unknown>, renderer: AngularRenderer) => () => void;
1704
+
1705
+ type OverlayRuntime = {
1706
+ mount: <TComponent extends object, TResult = unknown>(config: OverlayRuntimeMountConfig<TComponent>) => OverlayRuntimeRef<TComponent, TResult>;
1707
+ openEntries: ReturnType<typeof computed<OverlayRuntimeRef<object, unknown>[]>>;
1708
+ };
1709
+ declare const provideOverlayRuntime: () => _angular_core.Provider[];
1710
+ declare const injectOverlayRuntime: {
1711
+ (): OverlayRuntime;
1712
+ (options: _angular_core.InjectOptions & {
1713
+ optional?: false;
1714
+ }): OverlayRuntime;
1715
+ (options: _angular_core.InjectOptions): OverlayRuntime | null;
1716
+ };
1717
+
1718
+ declare const createComponentId: (prefix: string) => string;
1719
+ /**
1720
+ * A unique id string. Uses `crypto.randomUUID()` when available, but falls back gracefully when it is
1721
+ * not — crucially in **insecure contexts** (a plain-HTTP page served from a LAN IP, not `localhost`),
1722
+ * where `crypto.randomUUID` is `undefined`. Calling it there throws, so anything using it during e.g.
1723
+ * an overlay/menu open would break on such hosts. Prefer this over `crypto.randomUUID()` directly.
1724
+ */
1725
+ declare const randomId: () => string;
1726
+
1727
+ declare const createDestroy: () => rxjs.Observable<boolean>;
1728
+
1729
+ declare const injectHostElement: <T = HTMLElement>() => T;
1730
+ declare const injectTemplateRef: <C = unknown>() => TemplateRef<C>;
1731
+ type CreateProviderOptions = {
1732
+ /**
1733
+ * Optional name for the provider, useful for debugging.
1734
+ * If not provided, the name will be a generated string.
1735
+ */
1736
+ name?: string;
1737
+ /**
1738
+ * Optional existing InjectionToken to also provide the created provider under.
1739
+ */
1740
+ extraInjectionToken?: InjectionToken<unknown>;
1741
+ };
1742
+ type ProviderResult<T> = readonly [
1743
+ provide: () => Provider[],
1744
+ inject: {
1745
+ (): T;
1746
+ (options: InjectOptions & {
1747
+ optional?: false;
1748
+ }): T;
1749
+ (options: InjectOptions): T | null;
1750
+ },
1751
+ token: InjectionToken<T>
1752
+ ];
1753
+ type StaticProviderResult<T> = readonly [
1754
+ provide: (valueOverride?: Partial<T>) => Provider[],
1755
+ inject: {
1756
+ (): T;
1757
+ (options: InjectOptions & {
1758
+ optional?: false;
1759
+ }): T;
1760
+ (options: InjectOptions): T | null;
1761
+ },
1762
+ token: InjectionToken<T>
1763
+ ];
1764
+ type RootProviderResult<T> = readonly [
1765
+ inject: {
1766
+ (): T;
1767
+ (options: InjectOptions & {
1768
+ optional?: false;
1769
+ }): T;
1770
+ (options: InjectOptions): T | null;
1771
+ },
1772
+ token: InjectionToken<T>
1773
+ ];
1774
+ declare const createProvider: <T>(factory: () => T, options?: CreateProviderOptions) => ProviderResult<T>;
1775
+ declare const createRootProvider: <T>(factory: () => T, options?: CreateProviderOptions) => ProviderResult<T>;
1776
+ declare const createStaticProvider: <T>(defaultValue?: T, options?: CreateProviderOptions) => StaticProviderResult<T>;
1777
+ declare const createStaticRootProvider: <T>(defaultValue?: T, options?: CreateProviderOptions) => StaticProviderResult<T>;
1778
+
1779
+ declare const cloneFormGroup: <T extends FormGroup<any>>(formGroup: T) => T;
1780
+ declare const getFormGroupValue: <T extends FormGroup>(formGroup: T) => Record<string, unknown>;
1781
+
1782
+ declare const createRxHostListener: <K extends keyof HTMLElementEventMap>(eventName: K, options?: EventListenerOptions) => rxjs.Observable<HTMLElementEventMap[K]>;
1783
+ declare const applyHostListener: <K extends keyof HTMLElementEventMap>(eventName: K, handler: (event: HTMLElementEventMap[K]) => void, options?: EventListenerOptions) => rxjs.Subscription;
1784
+ declare const applyHostListeners: (listeners: Partial<{ [K in keyof HTMLElementEventMap]: (event: HTMLElementEventMap[K]) => void; }>, options?: EventListenerOptions) => void;
1785
+
1786
+ declare class TypedQueryList<T> extends QueryList<T> {
1787
+ get changes(): Observable<TypedQueryList<T>>;
1788
+ }
1789
+ declare function switchQueryListChanges(): <T extends TypedQueryList<unknown> | null | undefined>(source: Observable<T>) => Observable<T>;
1790
+
1791
+ /**
1792
+ * Sets the value of an input signal.
1793
+ * See issue: https://github.com/angular/angular/issues/54782
1794
+ */
1795
+ declare const setInputSignal: <T>(input: InputSignal<T> | InputSignalWithTransform<T, unknown>, value: T) => void;
1796
+
1797
+ type NgClassType = string | string[] | Set<string> | {
1798
+ [klass: string]: any;
1799
+ } | null | undefined;
1800
+
1801
+ declare const AT_LEAST_ONE_REQUIRED = "atLeastOneRequired";
1802
+ type ValidateAtLeastOneRequiredConfig = {
1803
+ /**
1804
+ * Keys of form controls to validate in the supplied form group
1805
+ */
1806
+ keys: string[];
1807
+ /**
1808
+ * If true, the value `false` will result in a validation error
1809
+ * @default false
1810
+ */
1811
+ checkFalse?: boolean;
1812
+ };
1813
+ declare const ValidateAtLeastOneRequired: (config: ValidateAtLeastOneRequiredConfig) => ValidatorFn;
1814
+ declare const IS_ARRAY_NOT_EMPTY = "isArrayNotEmpty";
1815
+ declare const IsArrayNotEmpty: (control: AbstractControl) => ValidationErrors | null;
1816
+ declare const IS_EMAIL = "isEmail";
1817
+ declare const IsEmail: (control: AbstractControl) => ValidationErrors | null;
1818
+ declare const MUST_MATCH = "mustMatch";
1819
+ declare const MustMatch: (controlName: string, matchingControlName: string) => (formGroup: AbstractControl) => {
1820
+ mustMatch: boolean;
1821
+ } | null;
1822
+ declare const Validators: {
1823
+ readonly MustMatch: (controlName: string, matchingControlName: string) => (formGroup: AbstractControl) => {
1824
+ mustMatch: boolean;
1825
+ } | null;
1826
+ readonly IsEmail: (control: AbstractControl) => ValidationErrors | null;
1827
+ readonly IsArrayNotEmpty: (control: AbstractControl) => ValidationErrors | null;
1828
+ readonly ValidateAtLeastOneRequired: (config: ValidateAtLeastOneRequiredConfig) => ValidatorFn;
1829
+ };
1830
+
1831
+ declare const copyToClipboard: (text: string) => Observable<boolean>;
1832
+ declare const readFromClipboard: () => Observable<string | null>;
1833
+
1834
+ declare const clone: <T>(original: T) => T;
1835
+ declare const equal: (foo: any, bar: any) => boolean;
1836
+
1837
+ declare const hasCookie: (name: string) => boolean;
1838
+ declare const getCookie: (name: string) => string | null | undefined;
1839
+ declare const setCookie: (name: string, data: string, expiresInDays?: number | null, domain?: string | null, path?: string, sameSite?: "strict" | "none" | "lax") => void;
1840
+ declare const deleteCookie: (name: string, path?: string, domain?: string | null) => void;
1841
+ declare const getDomain: () => string | null;
1842
+
1843
+ type Translatable = {
1844
+ i18n: string;
1845
+ text: string;
1846
+ };
1847
+
1848
+ declare class KeyPressManager {
1849
+ readonly key: number;
1850
+ private readonly _isKeyPressed$;
1851
+ private readonly _keyPressCount$;
1852
+ private readonly _stopTimeout$;
1853
+ constructor(key: number);
1854
+ isPressed(event: KeyboardEvent): boolean;
1855
+ clear(): void;
1856
+ }
1857
+
1858
+ declare const DISABLE_LOGGER_PARAM = "et-logger-quiet";
1859
+ type CreateLoggerConfig = {
1860
+ scope: string;
1861
+ feature: string;
1862
+ };
1863
+ declare const createLogger: (config: CreateLoggerConfig) => {
1864
+ log: (...args: unknown[]) => void;
1865
+ warn: (...args: unknown[]) => void;
1866
+ error: (...args: unknown[]) => void;
1867
+ };
1868
+
1869
+ /**
1870
+ * Converts a markdown string to HTML.
1871
+ * Covers headings, bold, italic, strikethrough, inline code, fenced code blocks,
1872
+ * links, images, block quotes, unordered/ordered (and nested) lists, tables, horizontal rules, and paragraphs.
1873
+ */
1874
+ declare const markdownToHtml: (markdown: string) => string;
1875
+ /**
1876
+ * Converts an HTML string to markdown.
1877
+ * Covers headings, bold, italic, strikethrough, inline code, fenced code blocks,
1878
+ * links, images, block quotes, unordered/ordered lists, tables, horizontal rules, and paragraphs.
1879
+ */
1880
+ declare const htmlToMarkdown: (html: string) => string;
1881
+
1882
+ declare const clamp: (value: number, min?: number, max?: number) => number;
1883
+ declare const round: (value: number, precision?: number) => number;
1884
+
1885
+ declare const isObject: (value: unknown) => value is Record<string, unknown>;
1886
+ declare const isArray: (value: unknown) => value is unknown[];
1887
+ declare const getObjectProperty: (obj: Record<string, unknown>, prop: string) => unknown;
1888
+
1889
+ declare const RUNTIME_ERROR_NO_DATA = "__ET_NO_DATA__";
1890
+ declare class RuntimeError<T extends number> extends Error {
1891
+ code: T;
1892
+ data: unknown;
1893
+ constructor(code: T, message: null | false | string, data?: unknown);
1894
+ }
1895
+ declare function formatRuntimeError<T extends number>(code: T, message: null | false | string): string;
1896
+
1897
+ type CreateSessionMemoryConfig<TValue> = {
1898
+ key: string;
1899
+ parse: (storedValue: string) => TValue | null;
1900
+ serialize: (value: TValue) => string;
1901
+ };
1902
+ declare const createAutoSessionMemoryKey: ({ element, prefix }: {
1903
+ element: HTMLElement;
1904
+ prefix: string;
1905
+ }) => string;
1906
+ declare const canUseSessionMemory: () => boolean;
1907
+ declare const createSessionMemory: <TValue>({ key, parse, serialize }: CreateSessionMemoryConfig<TValue>) => {
1908
+ read: () => TValue | null;
1909
+ write: (value: TValue) => boolean;
1910
+ remove: () => boolean;
1911
+ };
1912
+
1913
+ type SwipeTracker = {
1914
+ update(event: TouchEvent | MouseEvent): SwipeUpdateEvent;
1915
+ end(): SwipeEndEvent;
1916
+ cancel(): void;
1917
+ };
1918
+ type SwipeEndEvent = {
1919
+ positivePixelPerSecondX: number;
1920
+ positivePixelPerSecondY: number;
1921
+ pixelPerSecondX: number;
1922
+ pixelPerSecondY: number;
1923
+ movementX: number;
1924
+ movementY: number;
1925
+ positiveMovementX: number;
1926
+ positiveMovementY: number;
1927
+ originClientX: number;
1928
+ originClientY: number;
1929
+ };
1930
+ type SwipeUpdateEvent = {
1931
+ originClientX: number;
1932
+ originClientY: number;
1933
+ timestamp: number;
1934
+ movementX: number;
1935
+ movementY: number;
1936
+ positiveMovementX: number;
1937
+ positiveMovementY: number;
1938
+ isScrolling: boolean;
1939
+ isSwiping: boolean;
1940
+ };
1941
+ declare const createSwipeTracker: (startEvent: TouchEvent | MouseEvent) => SwipeTracker;
1942
+
1943
+ declare class NormalizeGameResultTypePipe implements PipeTransform {
1944
+ transform: (type: string | null) => NormalizedGameResultType | null;
1945
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<NormalizeGameResultTypePipe, never>;
1946
+ static ɵpipe: _angular_core.ɵɵPipeDeclaration<NormalizeGameResultTypePipe, "etNormalizeGameResultType", true>;
1947
+ }
1948
+ type NormalizedGameResultType = Translatable & {
1949
+ shortCode: string;
1950
+ };
1951
+ declare const normalizeGameResultType: (type: string | null) => NormalizedGameResultType | null;
1952
+
1953
+ declare class NormalizeMatchParticipantsPipe implements PipeTransform {
1954
+ transform: (match: MatchListView | null) => NormalizedMatchParticipants | null;
1955
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<NormalizeMatchParticipantsPipe, never>;
1956
+ static ɵpipe: _angular_core.ɵɵPipeDeclaration<NormalizeMatchParticipantsPipe, "etNormalizeMatchParticipants", true>;
1957
+ }
1958
+ type NormalizedMatchParticipants = {
1959
+ home: NormalizedMatchParticipant | null;
1960
+ away: NormalizedMatchParticipant | null;
1961
+ };
1962
+ type NormalizedParticipantType = 'team' | 'player' | 'unknown';
1963
+ type NormalizedMatchParticipant = ({
1964
+ type: 'tbd';
1965
+ participantType: NormalizedParticipantType;
1966
+ data: ParticipantViewUnion | null;
1967
+ } & Translatable) | {
1968
+ type: 'participant';
1969
+ participantType: NormalizedParticipantType;
1970
+ data: ParticipantViewUnion;
1971
+ } | ({
1972
+ type: 'none';
1973
+ participantType: NormalizedParticipantType;
1974
+ data: ParticipantViewUnion | null;
1975
+ } & Translatable);
1976
+ declare const normalizeMatchParticipants: (match: MatchListView | null) => NormalizedMatchParticipants | null;
1977
+ declare const normalizeMatchParticipant: (match: MatchListView | null, side: "home" | "away") => NormalizedMatchParticipant | null;
1978
+
1979
+ declare class NormalizeMatchScorePipe implements PipeTransform {
1980
+ transform: (match: MatchListView | null | undefined) => NormalizedMatchScore | null;
1981
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<NormalizeMatchScorePipe, never>;
1982
+ static ɵpipe: _angular_core.ɵɵPipeDeclaration<NormalizeMatchScorePipe, "etNormalizeMatchScore", true>;
1983
+ }
1984
+ declare const enum MatchStateType {
1985
+ PREPARING_ROUND = "preparingRound",
1986
+ PRE_MATCH = "preMatch",
1987
+ LIVE = "live",
1988
+ POST_MATCH = "postMatch",
1989
+ AUTO_WIN = "autoWin"
1990
+ }
1991
+ type NormalizedMatchScore = {
1992
+ home: {
1993
+ score: string | number | null;
1994
+ isWinner: boolean;
1995
+ };
1996
+ away: {
1997
+ score: string | number | null;
1998
+ isWinner: boolean;
1999
+ };
2000
+ subLine: string | null;
2001
+ isNumeric: boolean;
2002
+ };
2003
+ declare const normalizeMatchScore: (match: MatchListView | null | undefined) => NormalizedMatchScore | null;
2004
+ declare const isKnockoutMatch: (match: MatchListView | null | undefined) => boolean;
2005
+ declare const isGroupMatch: (match: MatchListView | null | undefined) => boolean;
2006
+ declare const getKnockoutMatchScore: (score: MatchRankingView | null | undefined) => "match-score.knockout.won" | "match-score.knockout.lost" | "match-score.knockout.tie" | null;
2007
+ declare const getMatchScoreSubLine: (match: MatchListView | null | undefined) => "match-score.groups.sub-line" | null;
2008
+ declare const getGroupMatchScore: (match: MatchListView | null | undefined) => {
2009
+ home: {
2010
+ score: number;
2011
+ isWinner: boolean;
2012
+ };
2013
+ away: {
2014
+ score: number;
2015
+ isWinner: boolean;
2016
+ };
2017
+ } | null;
2018
+ declare const getGroupMatchPoints: (match: MatchListView | null | undefined) => {
2019
+ home: {
2020
+ score: number;
2021
+ isWinner: boolean;
2022
+ };
2023
+ away: {
2024
+ score: number;
2025
+ isWinner: boolean;
2026
+ };
2027
+ } | null;
2028
+
2029
+ declare class NormalizeMatchStatePipe implements PipeTransform {
2030
+ transform: (match: MatchListView | null | undefined) => MatchStateType | null;
2031
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<NormalizeMatchStatePipe, never>;
2032
+ static ɵpipe: _angular_core.ɵɵPipeDeclaration<NormalizeMatchStatePipe, "etNormalizeMatchState", true>;
2033
+ }
2034
+ declare const normalizeMatchState: (match: MatchListView | null | undefined) => MatchStateType | null;
2035
+
2036
+ declare class NormalizeMatchTypePipe implements PipeTransform {
2037
+ transform: (matchType: StageType | null | undefined) => Translatable | null;
2038
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<NormalizeMatchTypePipe, never>;
2039
+ static ɵpipe: _angular_core.ɵɵPipeDeclaration<NormalizeMatchTypePipe, "etNormalizeMatchType", true>;
2040
+ }
2041
+ declare const normalizeMatchType: (matchType: StageType | null | undefined) => Translatable | null;
2042
+
2043
+ declare class HtmlToMarkdownPipe implements PipeTransform {
2044
+ transform: (html: string) => string;
2045
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<HtmlToMarkdownPipe, never>;
2046
+ static ɵpipe: _angular_core.ɵɵPipeDeclaration<HtmlToMarkdownPipe, "htmlToMarkdown", true>;
2047
+ }
2048
+
2049
+ declare class InferMimeTypePipe implements PipeTransform {
2050
+ transform: (srcset: string) => string | null;
2051
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<InferMimeTypePipe, never>;
2052
+ static ɵpipe: _angular_core.ɵɵPipeDeclaration<InferMimeTypePipe, "inferMimeType", true>;
2053
+ }
2054
+ /**
2055
+ * Infers the mime type of a given url or srcset.
2056
+ * If a srcset is provided, it will infer the mime type of the first url in the srcset.
2057
+ * If the srcset contains a query parameter `?fm=`, it will use the value of that parameter, since it is often used to specify the file format in image api's like contentful.
2058
+ */
2059
+ declare const inferMimeType: (srcset: string) => string | null;
2060
+
2061
+ declare class InitialsPipe implements PipeTransform {
2062
+ transform: (value: string | null | undefined, maxLength?: number) => string;
2063
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<InitialsPipe, never>;
2064
+ static ɵpipe: _angular_core.ɵɵPipeDeclaration<InitialsPipe, "initials", true>;
2065
+ }
2066
+ /**
2067
+ * Extracts the initials from a name (or any whitespace separated string).
2068
+ *
2069
+ * Words are split on whitespace, and the first character of each word is taken.
2070
+ * At most `maxLength` initials are returned (defaults to 2), always uppercased.
2071
+ *
2072
+ * @example
2073
+ * initials('John Doe') // 'JD'
2074
+ * initials('john doe smith') // 'JD'
2075
+ * initials('john doe smith', 3) // 'JDS'
2076
+ * initials('Madonna') // 'M'
2077
+ * initials(' ') // ''
2078
+ * initials(null) // ''
2079
+ */
2080
+ declare const initials: (value: string | null | undefined, maxLength?: number) => string;
2081
+
2082
+ declare class MarkdownToHtmlPipe implements PipeTransform {
2083
+ transform: (markdown: string) => string;
2084
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<MarkdownToHtmlPipe, never>;
2085
+ static ɵpipe: _angular_core.ɵɵPipeDeclaration<MarkdownToHtmlPipe, "markdownToHtml", true>;
2086
+ }
2087
+
2088
+ declare class SlugifyPipe implements PipeTransform {
2089
+ transform: (value: string | null | undefined) => string;
2090
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<SlugifyPipe, never>;
2091
+ static ɵpipe: _angular_core.ɵɵPipeDeclaration<SlugifyPipe, "slugify", true>;
2092
+ }
2093
+ /**
2094
+ * Converts a string into a URL-friendly slug.
2095
+ *
2096
+ * Diacritics are stripped, the string is lowercased, and any run of
2097
+ * non-alphanumeric characters becomes a single hyphen. Leading/trailing
2098
+ * hyphens are trimmed.
2099
+ *
2100
+ * @example
2101
+ * slugify('Hello World') // 'hello-world'
2102
+ * slugify(' Crème brûlée! ') // 'creme-brulee'
2103
+ * slugify('FC Bayern München') // 'fc-bayern-munchen'
2104
+ * slugify('foo_bar / baz') // 'foo-bar-baz'
2105
+ * slugify(null) // ''
2106
+ */
2107
+ declare const slugify: (value: string | null | undefined) => string;
2108
+
2109
+ declare class ToArrayPipe implements PipeTransform {
2110
+ transform: (value: number) => number[];
2111
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<ToArrayPipe, never>;
2112
+ static ɵpipe: _angular_core.ɵɵPipeDeclaration<ToArrayPipe, "toArray", true>;
2113
+ }
2114
+ declare const toArray: (value: number) => number[];
2115
+ declare const toArrayTrackByFn: TrackByFunction<number>;
2116
+
2117
+ declare const createPropHandlers: () => {
2118
+ classes: {
2119
+ remove: (tokens: string) => void;
2120
+ removeMany: (tokens: string[]) => void;
2121
+ has: (tokens: string) => boolean;
2122
+ push: (tokens: string, signal: _angular_core.Signal<unknown>) => void;
2123
+ pushMany: (map: Record<string, _angular_core.Signal<unknown>>) => void;
2124
+ };
2125
+ attributes: {
2126
+ remove: (tokens: string) => void;
2127
+ removeMany: (tokens: string[]) => void;
2128
+ has: (tokens: string) => boolean;
2129
+ push: (tokens: string, signal: _angular_core.Signal<unknown>) => void;
2130
+ pushMany: (map: Record<string, _angular_core.Signal<unknown>>) => void;
2131
+ };
2132
+ styles: {
2133
+ remove: (tokens: string) => void;
2134
+ removeMany: (tokens: string[]) => void;
2135
+ has: (tokens: string) => boolean;
2136
+ push: (tokens: string, signal: _angular_core.Signal<unknown>) => void;
2137
+ pushMany: (map: Record<string, _angular_core.Signal<unknown>>) => void;
2138
+ };
2139
+ id: string;
2140
+ elementRef: ElementRef<HTMLElement>;
2141
+ };
2142
+ type PropHandlers = ReturnType<typeof createPropHandlers>;
2143
+
2144
+ type Props = Readonly<{
2145
+ attached: Signal<boolean>;
2146
+ attachedElements: PropsAttachedElements;
2147
+ }>;
2148
+ type PropsAttachedElements = {
2149
+ first: Signal<HTMLElement | null>;
2150
+ firstId: Signal<string | null>;
2151
+ get(id: string): HTMLElement | null;
2152
+ };
2153
+ type PropsAttachedElementsInternal = PropsAttachedElements & {
2154
+ has: (id: string) => boolean;
2155
+ push: (id: string, element: HTMLElement) => void;
2156
+ remove: (id: string) => void;
2157
+ };
2158
+ type PropsInternal = {
2159
+ single: boolean;
2160
+ name: string;
2161
+ bindId: boolean;
2162
+ attached: Signal<boolean>;
2163
+ attachedElements: PropsAttachedElementsInternal;
2164
+ classBindings: Record<string, Signal<unknown>> | null;
2165
+ attributeBindings: Record<string, Signal<unknown>> | null;
2166
+ styleBindings: Record<string, Signal<unknown>> | null;
2167
+ staticClassBindings: string[] | null;
2168
+ staticAttributeBindings: Record<string, unknown> | null;
2169
+ staticStyleBindings: Record<string, unknown> | null;
2170
+ attachEventListeners: ((context: {
2171
+ on: HTMLElement['addEventListener'];
2172
+ element: HTMLElement;
2173
+ }) => void) | null;
2174
+ };
2175
+ type CreatePropsOptions = {
2176
+ name: string;
2177
+ bindId?: boolean;
2178
+ single?: boolean;
2179
+ classes?: Record<string, Signal<unknown>>;
2180
+ attributes?: Record<string, Signal<unknown>>;
2181
+ styles?: Record<string, Signal<unknown>>;
2182
+ staticClasses?: string[];
2183
+ staticAttributes?: Record<string, unknown>;
2184
+ staticStyles?: Record<string, unknown>;
2185
+ listeners?: (context: {
2186
+ on: HTMLElement['addEventListener'];
2187
+ element: HTMLElement;
2188
+ }) => void;
2189
+ };
2190
+ declare const createProps: (props: CreatePropsOptions) => Props;
2191
+ type HostProps = {
2192
+ props: Props;
2193
+ handlers: PropHandlers;
2194
+ };
2195
+ declare const createHostProps: (props: CreatePropsOptions) => HostProps;
2196
+
2197
+ declare const createSetup: <T extends Record<string, unknown>>(config: {
2198
+ setupFn: (params: T) => void;
2199
+ this: ThisType<unknown>;
2200
+ }) => (params: T) => void;
2201
+
2202
+ declare const createDependencyStash: <T extends Record<string, WritableSignal<unknown>>>(stash: T) => T & {
2203
+ provideSignal: <K extends keyof T>(data: {
2204
+ signal: Signal<ReturnType<T[K]>>;
2205
+ for: K;
2206
+ }) => void;
2207
+ provideValue: <K extends keyof T>(data: {
2208
+ value: ReturnType<T[K]>;
2209
+ for: K;
2210
+ }) => void;
2211
+ };
2212
+
2213
+ declare const createElementDictionary: () => {
2214
+ ids: _angular_core.Signal<string[]>;
2215
+ elements: _angular_core.Signal<HTMLElement[]>;
2216
+ has: (id: string) => boolean;
2217
+ get: (id: string) => HTMLElement | null;
2218
+ push: (id: string, element: HTMLElement) => void;
2219
+ remove: (id: string) => void;
2220
+ isEmpty: _angular_core.Signal<boolean>;
2221
+ firstElement: _angular_core.Signal<HTMLElement | null>;
2222
+ firstId: _angular_core.Signal<string | null>;
2223
+ };
2224
+
2225
+ type BindPropsOptions = {
2226
+ props: Props | PropsInternal;
2227
+ handlers: PropHandlers;
2228
+ };
2229
+ declare const bindProps: (config: BindPropsOptions) => void;
2230
+ type UnbindPropsOptions = {
2231
+ props: Props | PropsInternal;
2232
+ handlers: PropHandlers;
2233
+ };
2234
+ declare const unbindProps: (config: UnbindPropsOptions) => void;
2235
+
2236
+ declare class PropsDirective {
2237
+ destroyRef: DestroyRef;
2238
+ props: _angular_core.InputSignalWithTransform<PropsInternal, Readonly<{
2239
+ attached: _angular_core.Signal<boolean>;
2240
+ attachedElements: _ethlete_core.PropsAttachedElements;
2241
+ }>>;
2242
+ propHandlers: {
2243
+ classes: {
2244
+ remove: (tokens: string) => void;
2245
+ removeMany: (tokens: string[]) => void;
2246
+ has: (tokens: string) => boolean;
2247
+ push: (tokens: string, signal: _angular_core.Signal<unknown>) => void;
2248
+ pushMany: (map: Record<string, _angular_core.Signal<unknown>>) => void;
2249
+ };
2250
+ attributes: {
2251
+ remove: (tokens: string) => void;
2252
+ removeMany: (tokens: string[]) => void;
2253
+ has: (tokens: string) => boolean;
2254
+ push: (tokens: string, signal: _angular_core.Signal<unknown>) => void;
2255
+ pushMany: (map: Record<string, _angular_core.Signal<unknown>>) => void;
2256
+ };
2257
+ styles: {
2258
+ remove: (tokens: string) => void;
2259
+ removeMany: (tokens: string[]) => void;
2260
+ has: (tokens: string) => boolean;
2261
+ push: (tokens: string, signal: _angular_core.Signal<unknown>) => void;
2262
+ pushMany: (map: Record<string, _angular_core.Signal<unknown>>) => void;
2263
+ };
2264
+ id: string;
2265
+ elementRef: _angular_core.ElementRef<HTMLElement>;
2266
+ };
2267
+ constructor();
2268
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<PropsDirective, never>;
2269
+ static ɵdir: _angular_core.ɵɵDirectiveDeclaration<PropsDirective, "[etProps]", never, { "props": { "alias": "etProps"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
2270
+ }
2271
+
2272
+ type AnyTemplateType = string | TemplateRef<unknown> | ComponentType<unknown> | TemplateRefWithContext | ComponentTypeWithInputs;
2273
+ type TemplateRefWithContext<T = Record<string, unknown> | undefined, J = unknown> = {
2274
+ template: TemplateRef<J>;
2275
+ context?: T;
2276
+ injector?: Injector;
1472
2277
  };
1473
- /** A function to apply cursor drag scroll behavior to an element. */
1474
- declare const useCursorDragScroll: (el: SignalElementBindingType, options?: CursorDragScrollOptions) => {
1475
- isDragging: Signal<boolean>;
1476
- currentDragAmount: Signal<{
1477
- x: number;
1478
- y: number;
1479
- }>;
2278
+ type ComponentTypeWithInputs<T = Record<string, unknown> | undefined, J = unknown> = {
2279
+ component: ComponentType<J>;
2280
+ inputs?: T;
2281
+ injector?: Injector;
2282
+ };
2283
+ type StringTemplate = {
2284
+ type: 'string';
2285
+ value: string;
2286
+ };
2287
+ type NgTemplateTemplate = {
2288
+ type: 'template';
2289
+ value: TemplateRef<unknown>;
2290
+ context?: Record<string, unknown>;
2291
+ injector: Injector | null;
2292
+ };
2293
+ type ComponentTemplate = {
2294
+ type: 'component';
2295
+ value: ComponentType<unknown>;
2296
+ inputs?: Record<string, unknown>;
2297
+ injector: Injector | null;
1480
2298
  };
2299
+ declare const templateComputed: (templateSignal: Signal<AnyTemplateType | null>) => Signal<StringTemplate | NgTemplateTemplate | ComponentTemplate | null>;
1481
2300
 
1482
- type SetupScrollRestorationConfig = {
2301
+ type ResizeEdge = 'n' | 's' | 'e' | 'w' | 'ne' | 'nw' | 'se' | 'sw';
2302
+ type ResizeMoveEvent = {
2303
+ edge: ResizeEdge;
2304
+ /** Cumulative delta from the pointerdown position. */
2305
+ dx: number;
2306
+ dy: number;
2307
+ clientX: number;
2308
+ clientY: number;
2309
+ };
2310
+ declare class ResizeHandlesComponent {
2311
+ edges: _angular_core.InputSignal<ResizeEdge[]>;
2312
+ disabled: _angular_core.InputSignalWithTransform<boolean, unknown>;
2313
+ private gestureStart$;
2314
+ private gesture$;
2315
+ resizeStarted: _angular_core.OutputRef<ResizeEdge>;
2316
+ resizeMoved: _angular_core.OutputRef<ResizeMoveEvent>;
2317
+ resizeEnded: _angular_core.OutputRef<void>;
2318
+ isResizing: _angular_core.Signal<boolean>;
2319
+ activeEdge: _angular_core.Signal<ResizeEdge | null>;
2320
+ readonly edgeCursors: Record<ResizeEdge, string>;
2321
+ startResizeGesture(event: PointerEvent, edge: ResizeEdge): void;
2322
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<ResizeHandlesComponent, never>;
2323
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<ResizeHandlesComponent, "et-resize-handles", never, { "edges": { "alias": "edges"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; }, { "resizeStarted": "resizeStarted"; "resizeMoved": "resizeMoved"; "resizeEnded": "resizeEnded"; }, never, never, true, never>;
2324
+ }
2325
+
2326
+ declare const elementCanScroll: (element?: HTMLElement | null, direction?: "x" | "y") => boolean;
2327
+ type IsElementVisibleOptions = {
1483
2328
  /**
1484
- * The scrollable container.
1485
- * @default document.documentElement
2329
+ * The element to check if it is visible inside a container.
1486
2330
  */
1487
- scrollElement?: HTMLElement;
2331
+ element?: HTMLElement | null;
1488
2332
  /**
1489
- * A list of query params that should trigger a scroll to top.
1490
- * @default []
1491
- * @example ['page'] // will scroll to top when the page query param changes
2333
+ * The container to check if the element is visible inside.
2334
+ * If null or undefined, uses the viewport as the container.
2335
+ * @default null (viewport)
1492
2336
  */
1493
- queryParamTriggerList?: string[];
2337
+ container?: HTMLElement | null;
1494
2338
  /**
1495
- * Config for fragment scrolling.
2339
+ * The container's rect to check if the element is visible inside. Can be supplied to reduce the amount of DOM reads.
2340
+ * Only used when container is provided and not null.
2341
+ * @default container.getBoundingClientRect()
1496
2342
  */
1497
- fragment?: {
1498
- /**
1499
- * Enable fragment scrolling (scroll to element with id)
1500
- * @default false
1501
- */
1502
- enabled?: boolean;
1503
- /**
1504
- * Whether to use smooth scrolling or not.
1505
- * @default false
1506
- */
1507
- smooth?: boolean;
1508
- };
2343
+ containerRect?: DOMRect | null;
2344
+ /**
2345
+ * The element's rect. Can be supplied to reduce the amount of DOM reads.
2346
+ * @default element.getBoundingClientRect()
2347
+ */
2348
+ elementRect?: DOMRect | null;
1509
2349
  };
1510
- declare const ET_DISABLE_SCROLL_TOP: unique symbol;
1511
- declare const ET_DISABLE_SCROLL_TOP_AS_RETURN_ROUTE: unique symbol;
1512
- declare const ET_DISABLE_SCROLL_TOP_ON_PATH_PARAM_CHANGE: unique symbol;
1513
- type RouterDisableScrollTopConfig = {
2350
+ type CurrentElementVisibility = {
1514
2351
  /**
1515
- * Whether to disable scroll to top ONLY when navigating back to this route.
1516
- * @default false
2352
+ * Whether the element is visible in the inline direction.
1517
2353
  */
1518
- asReturnRoute?: boolean;
2354
+ inline: boolean;
1519
2355
  /**
1520
- * Whether to disable scroll to top when a path param changes.
1521
- * @default false
2356
+ * Whether the element is visible in the block direction.
1522
2357
  */
1523
- onPathParamChange?: boolean;
1524
- };
1525
- declare const routerDisableScrollTop: (config?: RouterDisableScrollTopConfig) => {
1526
- [ET_DISABLE_SCROLL_TOP_ON_PATH_PARAM_CHANGE]?: boolean | undefined;
1527
- [ET_DISABLE_SCROLL_TOP]: boolean;
1528
- } | {
1529
- [ET_DISABLE_SCROLL_TOP_ON_PATH_PARAM_CHANGE]?: boolean | undefined;
1530
- [ET_DISABLE_SCROLL_TOP_AS_RETURN_ROUTE]: boolean;
1531
- };
1532
- declare const setupScrollRestoration: (config?: SetupScrollRestorationConfig) => void;
1533
-
1534
- declare const signalIsRendered: () => _angular_core.Signal<boolean>;
1535
- declare const createIsRenderedSignal: () => {
1536
- state: _angular_core.WritableSignal<boolean>;
1537
- bind: () => _angular_core.EffectRef;
1538
- };
1539
- declare const createCanAnimateSignal: () => {
1540
- state: _angular_core.Signal<boolean>;
1541
- };
1542
-
1543
- type RouterState = {
1544
- data: Data;
1545
- pathParams: Params;
1546
- queryParams: Params;
1547
- title: string | null;
1548
- fragment: string | null;
1549
- };
1550
- declare const ET_PROPERTY_REMOVED: unique symbol;
1551
- type InjectUtilConfig = {
1552
- /** The injector to use for the injection. Must be provided if the function is not called from within a injection context. */
1553
- injector?: Injector;
1554
- };
1555
- type InjectUtilTransformConfig<In, Out> = {
2358
+ block: boolean;
1556
2359
  /**
1557
- * A transform function similar to the `transform` function in Angular input bindings.
1558
- * Can be used to transform the value before it is returned.
1559
- * E.g. transforming `"true"` to `true` for a boolean attribute.
2360
+ * The percentage of the element that is visible in the inline direction.
1560
2361
  */
1561
- transform?: (value: In) => Out;
2362
+ inlineIntersection: number;
2363
+ /**
2364
+ * The percentage of the element that is visible in the block direction.
2365
+ */
2366
+ blockIntersection: number;
2367
+ /**
2368
+ * Whether the element is intersecting the container.
2369
+ */
2370
+ isIntersecting: boolean;
2371
+ /**
2372
+ * The ratio of the element that is intersecting the container.
2373
+ */
2374
+ intersectionRatio: number;
2375
+ /**
2376
+ * The element that is being checked for visibility.
2377
+ */
2378
+ element: HTMLElement;
2379
+ /**
2380
+ * The container's rect used for the calculation.
2381
+ */
2382
+ containerRect: DOMRect;
2383
+ /**
2384
+ * The element's rect used for the calculation.
2385
+ */
2386
+ elementRect: DOMRect;
1562
2387
  };
1563
- declare const transformOrReturn: <In, Out>(src: Signal<In>, config?: InjectUtilTransformConfig<In, Out>) => Signal<Out>;
1564
- /** Inject the current router event */
1565
- declare const injectRouterEvent: () => Signal<Event$1>;
1566
- /**
1567
- * Signal that indicates whether the router has been initialized.
1568
- * The router is considered initialized once the first NavigationEnd event with an id different than -1 has been emitted.
1569
- */
1570
- declare const injectIsRouterInitialized: () => Signal<boolean>;
1571
- /**
1572
- * Inject the current url.
1573
- * The url includes query params as well as the fragment. Use `injectRoute` instead if you are not intrusted in those.
1574
- * @example "/my-page?query=1&param=true#fragment"
1575
- */
1576
- declare const injectUrl: () => Signal<string>;
1577
- /**
1578
- * Inject the current route
1579
- * @example "/my-page"
1580
- */
1581
- declare const injectRoute: () => Signal<string>;
1582
- /**
1583
- * Inject the complete router state. This includes the current route data, path params, query params, title and fragment.
1584
- */
1585
- declare const injectRouterState: () => Signal<RouterState>;
1586
- /** Inject a signal containing the current route fragment (the part after the # inside the url if present) */
1587
- declare const injectFragment: <T = string | null>(config?: InjectUtilConfig & InjectUtilTransformConfig<string | null, T>) => Signal<T>;
1588
- /** Inject all currently available query parameters as a signal */
1589
- declare const injectQueryParams: () => Signal<Params>;
1590
- /** Inject all currently available route data as a signal */
1591
- declare const injectRouteData: () => Signal<Data>;
1592
- /** Inject the current route title as a signal */
1593
- declare const injectRouteTitle: <T = string | null>(config?: InjectUtilTransformConfig<string | null, T>) => Signal<T>;
1594
- /** Inject all currently available path parameters as a signal */
1595
- declare const injectPathParams: () => Signal<Params>;
1596
- type InjectQueryParamConfig<T> = InjectUtilTransformConfig<string | null, T> & {
2388
+ declare const isElementVisible: (options: IsElementVisibleOptions) => CurrentElementVisibility | null;
2389
+ declare const getElementScrollCoordinates: (options: ScrollToElementOptions) => ScrollToOptions;
2390
+ type ScrollToElementOptions = {
1597
2391
  /**
1598
- * If true, the initial value will be read from the browser's url.
1599
- * Note that this will not work with arrays or complex objects.
2392
+ * The element to scroll to.
1600
2393
  */
1601
- requireSync?: boolean;
2394
+ element?: HTMLElement | null;
2395
+ /**
2396
+ * The scroll container to scroll to the element in.
2397
+ * Must be provided - cannot scroll the viewport programmatically with this function.
2398
+ */
2399
+ container?: HTMLElement | null;
2400
+ /**
2401
+ * The direction to scroll in.
2402
+ * @default 'both'
2403
+ */
2404
+ direction?: 'inline' | 'block' | 'both';
2405
+ /**
2406
+ * The origin of the element to scroll to.
2407
+ * @default 'nearest'
2408
+ */
2409
+ origin?: 'start' | 'end' | 'center' | 'nearest';
2410
+ /**
2411
+ * The scroll behavior.
2412
+ * @default 'smooth'
2413
+ */
2414
+ behavior?: ScrollBehavior;
2415
+ /**
2416
+ * The scroll inline-margin
2417
+ * @default 0
2418
+ */
2419
+ scrollInlineMargin?: number;
2420
+ /**
2421
+ * The scroll block-margin
2422
+ * @default 0
2423
+ */
2424
+ scrollBlockMargin?: number;
1602
2425
  };
1603
- /** Inject a specific query parameter as a signal */
1604
- declare const injectQueryParam: <T = string | null>(key: string, config?: InjectQueryParamConfig<T>) => Signal<T>;
1605
- /** Inject a specific route data item as a signal */
1606
- declare const injectRouteDataItem: <T = unknown>(key: string, config?: InjectUtilTransformConfig<unknown, T>) => Signal<T>;
1607
- /** Inject a specific path parameter as a signal */
1608
- declare const injectPathParam: <T = string | null>(key: string, config?: InjectUtilTransformConfig<string | null, T>) => Signal<T>;
1609
- /**
1610
- * Inject query params that changed during navigation. Unchanged query params will be ignored.
1611
- * Removed query params will be represented by the symbol `ET_PROPERTY_REMOVED`.
1612
- */
1613
- declare const injectQueryParamChanges: () => Signal<Record<string, unknown>>;
1614
- /**
1615
- * Inject path params that changed during navigation. Unchanged path params will be ignored.
1616
- * Removed path params will be represented by the symbol `ET_PROPERTY_REMOVED`.
1617
- */
1618
- declare const injectPathParamChanges: () => Signal<Record<string, unknown>>;
2426
+ declare const scrollToElement: (options: ScrollToElementOptions) => void;
2427
+
2428
+ type ScrollSnapOrigin = 'auto' | 'start' | 'center' | 'end';
2429
+ type ScrollSnapTarget = {
2430
+ /** The element to snap to. */
2431
+ element: HTMLElement;
2432
+ /** The resolved alignment to use when scrolling to the element. */
2433
+ origin: 'start' | 'center' | 'end';
2434
+ } | null;
2435
+ declare const getScrollSnapTarget: (items: HTMLElement[], container: HTMLElement, direction: "horizontal" | "vertical", origin: ScrollSnapOrigin, margin?: number) => ScrollSnapTarget;
2436
+ type ScrollContainerTarget = {
2437
+ element: HTMLElement;
2438
+ origin: 'start' | 'end';
2439
+ } | null;
2440
+ declare const getScrollContainerTarget: (entries: IntersectionObserverEntry[], direction: "start" | "end") => ScrollContainerTarget;
2441
+ type ScrollItemTarget = {
2442
+ element: HTMLElement;
2443
+ index: number;
2444
+ origin: 'start' | 'end' | 'center';
2445
+ } | null;
2446
+ declare const getScrollItemTarget: (entries: IntersectionObserverEntry[], container: HTMLElement, direction: "start" | "end", scrollOrigin: "auto" | "center" | "start" | "end", axisDirection: "horizontal" | "vertical") => ScrollItemTarget;
1619
2447
 
1620
2448
  type HeadBinding<T> = {
1621
2449
  id: symbol;
@@ -2163,5 +2991,5 @@ declare const injectTitleStore: {
2163
2991
  };
2164
2992
  declare const applyHeadTitleBinding: (binding: MaybeSignal<string | number | null | undefined>, options?: Omit<TitlePart, "text">) => void;
2165
2993
 
2166
- export { ANIMATABLE_TOKEN, ANIMATED_IF_TOKEN, ANIMATED_LIFECYCLE_TOKEN, AT_LEAST_ONE_REQUIRED, AnimatableDirective, AnimatedIfDirective, AnimatedLifecycleDirective, AnimatedOverlayDirective, BOUNDARY_ELEMENT_TOKEN, ClickOutsideDirective, DEFAULT_MULTI_INSTANCE_RELS, DEFAULT_MULTI_INSTANCE_TAGS, DEFAULT_VIEWPORT_CONFIG, DISABLE_LOGGER_PARAM, ET_DISABLE_SCROLL_TOP, ET_DISABLE_SCROLL_TOP_AS_RETURN_ROUTE, ET_DISABLE_SCROLL_TOP_ON_PATH_PARAM_CHANGE, ET_PROPERTY_REMOVED, FOCUS_VISIBLE_TRACKER_TOKEN, IS_ARRAY_NOT_EMPTY, IS_EMAIL, InferMimeTypePipe, IsArrayNotEmpty, IsEmail, jsonLd_d as JsonLD, KeyPressManager, MUST_MATCH, MatchStateType, MustMatch, NormalizeGameResultTypePipe, NormalizeMatchParticipantsPipe, NormalizeMatchScorePipe, NormalizeMatchStatePipe, NormalizeMatchTypePipe, PropsDirective, ProvideThemeDirective, RUNTIME_ERROR_NO_DATA, RepeatDirective, RuntimeError, SEO_DIRECTIVE_TOKEN, SeoDirective, StructuredDataComponent, THEME_PROVIDER, ToArrayPipe, TypedQueryList, ValidateAtLeastOneRequired, Validators, applyAlternateBinding, applyAlternateLanguagesBindings, applyArticleBindings, applyAuthorBinding, applyCanonicalBinding, applyDescriptionBinding, applyHeadBinding, applyHeadTitleBinding, applyHostListener, applyHostListeners, applyKeywordsBinding, applyLinkBinding, applyMetaBinding, applyNextBinding, applyOgBinding, applyOpenGraphBindings, applyPrevBinding, applyResourceHintsBindings, applyRobotsBinding, applySocialMediaBindings, applyStructuredDataBinding, applyTwitterCardBindings, areScrollStatesEqual, bindProps, boundingClientRectToElementRect, buildElementSignal, buildSignalEffects, clamp, clone, cloneFormGroup, computedTillFalsy, computedTillTruthy, controlValueSignal, controlValueSignalWithPrevious, createArrayPropertyBinding, createBulkPropertyBinding, createCanAnimateSignal, createComponentId, createCssThemeName, createDependencyStash, createDestroy, createDocumentElementSignal, createElementDictionary, createElementDimensions, createEmptyElementSignal, createFlipAnimation, createFlipAnimationGroup, createHostProps, createIsRenderedSignal, createLogger, createPropHandlers, createPropertyBinding, createProps, createProvider, createRootProvider, createRootThemeCss, createRxHostListener, createSetup, createStaticProvider, createStaticRootProvider, createSwatchCss, createTailwindColorThemes, createTailwindCssVar, createTailwindRgbVar, createThemeStyle, deferredSignal, deleteCookie, easeElastic, easeIn, easeInOut, easeLinear, easeOut, easeOutBack, easeOutBackStrong, elementCanScroll, equal, firstElementSignal, forceReflow, formatRuntimeError, fromNextFrame, getCookie, getDomain, getElementScrollCoordinates, getFormGroupValue, getGroupMatchPoints, getGroupMatchScore, getKnockoutMatchScore, getMatchScoreSubLine, getObjectProperty, hasCookie, inferMimeType, injectAngularRootElement, injectBoundaryElement, injectBreakpointIsMatched, injectBreakpointObserver, injectCanHover, injectColorThemes, injectCurrentBreakpoint, injectDeviceInputType, injectDisplayOrientation, injectFocusVisibleTracker, injectFragment, injectHasPrecisionInput, injectHasTouchInput, injectHostElement, injectIs2Xl, injectIsLandscape, injectIsLg, injectIsMd, injectIsPortrait, injectIsRouterInitialized, injectIsSm, injectIsXl, injectIsXs, injectLinkStore, injectLinkStoreConfig, injectLocale, injectMediaQueryIsMatched, injectMetaConfig, injectMetaStore, injectObserveBreakpoint, injectObserveMediaQuery, injectPathParam, injectPathParamChanges, injectPathParams, injectQueryParam, injectQueryParamChanges, injectQueryParams, injectRenderer, injectRoute, injectRouteData, injectRouteDataItem, injectRouteTitle, injectRouterEvent, injectRouterState, injectScrollbarDimensions, injectStructuredDataConfig, injectStructuredDataStore, injectTemplateRef, injectThemesPrefix, injectTitleConfig, injectTitleStore, injectUrl, injectViewportConfig, injectViewportDimensions, isArray, isElementSignal, isElementVisible, isGroupMatch, isKnockoutMatch, isObject, maybeSignalValue, memoizeSignal, nextFrame, normalizeGameResultType, normalizeMatchParticipant, normalizeMatchParticipants, normalizeMatchScore, normalizeMatchState, normalizeMatchType, previousSignalValue, provideBoundaryElement, provideBreakpointObserver, provideColorThemes, provideColorThemesWithTailwind4, provideFocusVisibleTracker, provideLinkStore, provideLinkStoreConfig, provideLocale, provideMetaConfig, provideMetaStore, provideRenderer, provideStructuredDataConfig, provideStructuredDataStore, provideTitleConfig, provideTitleStore, provideViewportConfig, round, routerDisableScrollTop, scrollToElement, setCookie, setInputSignal, setupScrollRestoration, signalAnimatedNumber, signalAttributes, signalClasses, signalElementChildren, signalElementDimensions, signalElementIntersection, signalElementLastScrollDirection, signalElementMutations, signalElementScrollState, signalHostAttributes, signalHostClasses, signalHostElementDimensions, signalHostElementIntersection, signalHostElementLastScrollDirection, signalHostElementMutations, signalHostElementScrollState, signalHostStyles, signalIsRendered, signalStyles, switchQueryListChanges, syncSignal, templateComputed, toArray, toArrayTrackByFn, toStringBinding, transformOrReturn, unbindProps, useCursorDragScroll, writeScrollbarSizeToCssVariables, writeViewportSizeToCssVariables, ɵProvideColorThemes, ɵProvideThemesPrefix };
2167
- export type { AlternateLanguagesConfig, AlternateLink, AngularRenderer, AnimatedLifecycleState, AnimatedNumberSignal, AnimatedOverlayComponentBase, AnimatedOverlayMountConfig, AnimatedOverlayState, AnimationEndEvent, AnyTemplateType, ArticleConfig, BindPropsOptions, Breakpoint, BuildMediaQueryOptions, BuildSignalEffectsConfig, ComponentTemplate, ComponentTypeWithInputs, ControlValueSignalOptions, CreateLoggerConfig, CreatePropsOptions, CreateProviderOptions, CurrentElementVisibility, CursorDragScrollDirection, CursorDragScrollOptions, ElementDimensions, ElementLastScrollDirection, ElementLastScrollDirectionType, ElementRect, ElementScrollState, ElementSignal, ElementSignalValue, ElementSize, FacebookCard, FlipAnimationConfig, HeadBinding, HostProps, InjectQueryParamConfig, InjectUtilConfig, InjectUtilTransformConfig, IntersectionObserverEntryWithDetails, IsElementVisibleOptions, LinkConfig, LinkStoreConfig, LogicalSize, MaybeObservable, MaybeSignal, MetaConfig, MetaTagConfig, NgClassType, NgTemplateTemplate, NormalizedGameResultType, NormalizedMatchParticipant, NormalizedMatchParticipants, NormalizedMatchScore, NullableElementDimensions, OnThemeColorMap, OpenGraph, OpenGraphConfig, PropHandlers, Props, PropsAttachedElements, PropsAttachedElementsInternal, PropsInternal, ProviderResult, ResourceHintsConfig, RobotsConfig, RootProviderResult, RouterDisableScrollTopConfig, RouterState, ScrollToElementOptions, SeoConfig, SetupScrollRestorationConfig, SignalAnimatedNumberOptions, SignalElementBindingComplexType, SignalElementBindingType, SignalElementIntersectionOptions, SignalElementScrollStateOptions, SocialMediaConfig, StaticProviderResult, StringTemplate, StructuredDataConfig, SyncSignalOptions, TemplateRefWithContext, Theme, ThemeColor, ThemeColorMap, ThemeHSLColor, ThemeRGBColor, ThemeSwatch, TitleConfig, TitlePart, Translatable, TwitterCard, TwitterCardConfig, UnbindPropsOptions, ValidateAtLeastOneRequiredConfig, Vec2, ViewportConfig };
2994
+ export { ANIMATABLE_TOKEN, ANIMATED_IF_TOKEN, ANIMATED_LIFECYCLE_TOKEN, ANIMATION_DEBUG_STORAGE_KEY, AT_LEAST_ONE_REQUIRED, AnimatableDirective, AnimatedIfDirective, AnimatedLifecycleDirective, AnimatedOverlayDirective, AutoSurfaceDirective, BOUNDARY_ELEMENT_TOKEN, BREAKPOINT_INSTANCE_TOKEN, BREAKPOINT_ORDER, COLOR_PROVIDER, ClickOutsideDirective, ColorInteractiveContainerDirective, ColorInteractiveDirective, ColorInteractiveExcludeDirective, ColorInteractiveHasFocusDirective, DEFAULT_MULTI_INSTANCE_RELS, DEFAULT_MULTI_INSTANCE_TAGS, DEFAULT_VIEWPORT_CONFIG, DISABLE_LOGGER_PARAM, DragHandleDirective, ET_DISABLE_SCROLL_TOP, ET_DISABLE_SCROLL_TOP_AS_RETURN_ROUTE, ET_DISABLE_SCROLL_TOP_ON_PATH_PARAM_CHANGE, ET_PROPERTY_REMOVED, FOCUSABLE_SELECTOR, FOCUS_VISIBLE_TRACKER_TOKEN, HtmlToMarkdownPipe, IS_ARRAY_NOT_EMPTY, IS_EMAIL, InferMimeTypePipe, InitialsPipe, IsArrayNotEmpty, IsEmail, jsonLd_d as JsonLD, KeyPressManager, MUST_MATCH, MarkdownToHtmlPipe, MatchStateType, MustMatch, NormalizeGameResultTypePipe, NormalizeMatchParticipantsPipe, NormalizeMatchScorePipe, NormalizeMatchStatePipe, NormalizeMatchTypePipe, PropsDirective, ProvideColorDirective, ProvideSurfaceDirective, RUNTIME_ERROR_NO_DATA, RepeatDirective, ResizeHandlesComponent, RuntimeError, SEO_DIRECTIVE_TOKEN, SURFACE_PROVIDER, SURFACE_TYPE, ScrollObserverDirective, ScrollObserverEndDirective, ScrollObserverStartDirective, SeoDirective, SlugifyPipe, StructuredDataComponent, SurfaceInteractiveDirective, ToArrayPipe, TypedQueryList, ValidateAtLeastOneRequired, Validators, animationDebugLog, applyAlternateBinding, applyAlternateLanguagesBindings, applyArticleBindings, applyAuthorBinding, applyCanonicalBinding, applyCenteredPosition, applyDescriptionBinding, applyGlobalPosition, applyHeadBinding, applyHeadTitleBinding, applyHostListener, applyHostListeners, applyInitialFocus, applyKeywordsBinding, applyLinkBinding, applyMetaBinding, applyNextBinding, applyOgBinding, applyOpenGraphBindings, applyPrevBinding, applyResourceHintsBindings, applyRobotsBinding, applySocialMediaBindings, applyStructuredDataBinding, applyTwitterCardBindings, areScrollStatesEqual, bindProps, boolBreakpointTransform, booleanBreakpointAttribute, boundingClientRectToElementRect, breakpointTransformBase, buildElementSignal, buildSignalEffects, canUseSessionMemory, clamp, clone, cloneFormGroup, computedTillFalsy, computedTillTruthy, controlValueSignal, controlValueSignalWithPrevious, copyToClipboard, createAnchoredPositionCleanup, createArrayPropertyBinding, createAutoSessionMemoryKey, createBulkPropertyBinding, createCanAnimateSignal, createComponentId, createCssColorThemeName, createCssSurfaceName, createDependencyStash, createDestroy, createDocumentElementSignal, createElementDictionary, createElementDimensions, createEmptyElementSignal, createFlipAnimation, createFlipAnimationGroup, createHostProps, createIsRenderedSignal, createLogger, createOverlayRuntimeRef, createPropHandlers, createPropertyBinding, createProps, createProvider, createRootProvider, createRootThemeCss, createRoute, createRouterState, createRxHostListener, createSessionMemory, createSetup, createStaticProvider, createStaticRootProvider, createSwatchCss, createSwipeTracker, createTailwindColorThemes, createTailwindCssVar, createTailwindRgbVar, createThemeStyle, createUserConsentProvider, deferredSignal, deleteCookie, easeElastic, easeIn, easeInOut, easeLinear, easeOut, easeOutBack, easeOutBackStrong, elementCanScroll, equal, firstElementSignal, focusElement, forceReflow, formatRuntimeError, fromNextFrame, getCookie, getDomain, getElementScrollCoordinates, getFocusableElements, getFormGroupValue, getGroupMatchPoints, getGroupMatchScore, getHeadingElement, getKnockoutMatchScore, getMatchScoreSubLine, getObjectProperty, getScrollContainerTarget, getScrollItemTarget, getScrollSnapTarget, hasCookie, htmlToMarkdown, inferMimeType, initials, injectAngularRootElement, injectAnimatedBlockSize, injectBoundaryElement, injectBreakpointInput, injectBreakpointIsMatched, injectBreakpointObserver, injectCanHover, injectColorThemes, injectColorThemesPrefix, injectCurrentBreakpoint, injectDeviceInputType, injectDisplayOrientation, injectErrorTheme, injectFocusVisibleTracker, injectFragment, injectHasPrecisionInput, injectHasTouchInput, injectHostElement, injectIs2Xl, injectIsLandscape, injectIsLg, injectIsMd, injectIsPortrait, injectIsRouterInitialized, injectIsSm, injectIsXl, injectIsXs, injectLinkStore, injectLinkStoreConfig, injectLocale, injectMediaQueryIsMatched, injectMetaConfig, injectMetaStore, injectObserveBreakpoint, injectObserveMediaQuery, injectOverlayRuntime, injectPathParam, injectPathParamChanges, injectPathParams, injectPrefersReducedMotion, injectQueryParam, injectQueryParamChanges, injectQueryParams, injectRenderer, injectRoute, injectRouteData, injectRouteDataItem, injectRouteTitle, injectRouterEvent, injectRouterState, injectScrollbarDimensions, injectStructuredDataConfig, injectStructuredDataStore, injectStyleManager, injectSuccessTheme, injectSurfaceContextTracker, injectSurfaceThemes, injectSurfaceThemesPrefix, injectTemplateRef, injectTitleConfig, injectTitleStore, injectUrl, injectViewportConfig, injectViewportDimensions, injectViewportSize, injectWarningTheme, isAnimationDebugEnabled, isArray, isElementSignal, isElementVisible, isFocusable, isGroupMatch, isHTMLElement, isKnockoutMatch, isObject, markdownToHtml, maybeSignalValue, memoizeSignal, nextFrame, normalizeGameResultType, normalizeMatchParticipant, normalizeMatchParticipants, normalizeMatchScore, normalizeMatchState, normalizeMatchType, numberBreakpointAttribute, numberBreakpointTransform, previousSignalValue, provideBoundaryElement, provideBreakpointInstance, provideBreakpointObserver, provideColorThemes, provideColorThemesWithTailwind4, provideFocusVisibleTracker, provideLinkStore, provideLinkStoreConfig, provideLocale, provideMetaConfig, provideMetaStore, provideOverlayRuntime, provideRenderer, provideStructuredDataConfig, provideStructuredDataStore, provideStyleManager, provideSurfaceContextTracker, provideSurfaceThemesWithTailwind4, provideTitleConfig, provideTitleStore, provideViewportConfig, randomId, readFromClipboard, resetPositioningStyles, resolveAppRootColorProvider, resolveSurfaceByElevation, round, routerDisableScrollTop, scrollToElement, setBackdropStyles, setBaseElementStyles, setCookie, setInputSignal, setupFocusTrap, setupPositioning, setupScrollRestoration, signalAnimatedNumber, signalAttributes, signalClasses, signalElementChildren, signalElementDimensions, signalElementIntersection, signalElementLastScrollDirection, signalElementMutations, signalElementScrollState, signalHostAttributes, signalHostClasses, signalHostElementDimensions, signalHostElementIntersection, signalHostElementLastScrollDirection, signalHostElementMutations, signalHostElementScrollState, signalHostStyles, signalIsRendered, signalStyles, slugify, switchQueryListChanges, syncSignal, templateComputed, toArray, toArrayTrackByFn, toStringBinding, transformOrReturn, typedBreakpointTransform, unbindProps, useCursorDragScroll, writeScrollbarSizeToCssVariables, writeViewportSizeToCssVariables, ɵProvideColorThemes, ɵProvideColorThemesPrefix, ɵProvideSurfaceThemes, ɵProvideSurfaceThemesPrefix };
2995
+ export type { AlternateLanguagesConfig, AlternateLink, AngularRenderer, AnimatedBlockSizeConfig, AnimatedLifecycleState, AnimatedNumberSignal, AnimatedOverlayComponentBase, AnimatedOverlayMountConfig, AnimatedOverlayState, AnimatedSizeAxis, AnimationEndEvent, AnyTemplateType, ArticleConfig, BindPropsOptions, BoolBreakpointSignal, Breakpoint, BreakpointInput, BreakpointMap, BuildMediaQueryOptions, BuildSignalEffectsConfig, ColorTheme, ColorThemeType, ComponentTemplate, ComponentTypeWithInputs, ConsentHandler, ControlValueSignalOptions, CreateLoggerConfig, CreatePropsOptions, CreateProviderOptions, CreateSessionMemoryConfig, CreateUserConsentProviderOptions, CurrentElementVisibility, CursorDragScrollDirection, CursorDragScrollOptions, DragMoveEvent, DragStartEvent, ElementDimensions, ElementLastScrollDirection, ElementLastScrollDirectionType, ElementRect, ElementScrollState, ElementSignal, ElementSignalValue, ElementSize, EthleteColorThemeNameRegistry, EthleteSurfaceThemeNameRegistry, FacebookCard, FlipAnimationConfig, HeadBinding, HostProps, InjectQueryParamConfig, InjectUtilConfig, InjectUtilTransformConfig, IntersectionObserverEntryWithDetails, IsElementVisibleOptions, LinkConfig, LinkStoreConfig, LogicalSize, MaybeObservable, MaybeSignal, MetaConfig, MetaTagConfig, NgClassType, NgTemplateTemplate, NormalizedGameResultType, NormalizedMatchParticipant, NormalizedMatchParticipants, NormalizedMatchScore, NullableElementDimensions, NumberBreakpointSignal, OnThemeColorMap, OpenGraph, OpenGraphConfig, OverlayRuntimeAnchoredPosition, OverlayRuntimeAnimationDelegate, OverlayRuntimeAnimationDelegateEnterContext, OverlayRuntimeAnimationDelegateLeaveContext, OverlayRuntimeAutoFocusTarget, OverlayRuntimeCenteredPosition, OverlayRuntimeCloseEvent, OverlayRuntimeCloseSource, OverlayRuntimeComponentBase, OverlayRuntimeElements, OverlayRuntimeGlobalPosition, OverlayRuntimeGlobalPositionAlignment, OverlayRuntimeMountConfig, OverlayRuntimePositionStrategy, OverlayRuntimeRef, OverlayRuntimeRole, OverlayRuntimeShiftOptions, OverlayRuntimeState, PropHandlers, Props, PropsAttachedElements, PropsAttachedElementsInternal, PropsInternal, ProviderResult, RegisteredColorThemeName, RegisteredSurfaceThemeName, ResizeEdge, ResizeMoveEvent, ResourceHintsConfig, RobotsConfig, RootProviderResult, RouterDisableScrollTopConfig, RouterState, ScrollContainerTarget, ScrollItemTarget, ScrollSnapOrigin, ScrollSnapTarget, ScrollToElementOptions, SeoConfig, SetupScrollRestorationConfig, SignalAnimatedNumberOptions, SignalElementBindingComplexType, SignalElementBindingType, SignalElementIntersectionOptions, SignalElementScrollStateOptions, SocialMediaConfig, StaticProviderResult, StringTemplate, StructuredDataConfig, StyleManager, SurfaceContextEntry, SurfaceContextTracker, SurfaceInteractionColor, SurfaceTheme, SurfaceThemeColor, SurfaceType, SwipeEndEvent, SwipeTracker, SwipeUpdateEvent, SyncSignalOptions, TemplateRefWithContext, ThemeColor, ThemeColorMap, ThemeHSLColor, ThemeInkColorMap, ThemeRGBColor, ThemeSwatch, TitleConfig, TitlePart, Translatable, TwitterCard, TwitterCardConfig, TypedBreakpointSignal, UnbindPropsOptions, ValidateAtLeastOneRequiredConfig, Vec2, ViewportConfig };