@ethlete/core 4.29.0 → 4.29.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/index.d.ts CHANGED
@@ -2,13 +2,12 @@ import { SafeHtml } from '@angular/platform-browser';
2
2
  import * as _ethlete_types from '@ethlete/types';
3
3
  import { JsonLD, ParticipantViewUnion, MatchListView, MatchRankingView, StageType } from '@ethlete/types';
4
4
  import * as i0 from '@angular/core';
5
- import { Type, QueryList, InjectionToken, OnInit, AfterViewInit, ElementRef, ComponentRef, StaticProvider, OnDestroy, EventEmitter, AfterContentInit, Signal, TemplateRef, ViewContainerRef, PipeTransform, TrackByFunction, WritableSignal, DestroyRef, Injector, EffectRef } from '@angular/core';
5
+ import { Type, QueryList, InjectionToken, OnInit, AfterViewInit, ElementRef, ComponentRef, StaticProvider, OnDestroy, EventEmitter, AfterContentInit, Signal, PipeTransform, TrackByFunction, WritableSignal, DestroyRef, TemplateRef, Injector, EffectRef } from '@angular/core';
6
6
  import * as rxjs from 'rxjs';
7
7
  import { Observable, Subject } from 'rxjs';
8
8
  import * as i1 from '@angular/common';
9
9
  import { OverlayRef, ScrollStrategy } from '@angular/cdk/overlay';
10
10
  import { ComponentPortal, ComponentType } from '@angular/cdk/portal';
11
- import { ProvideThemeDirective } from '@ethlete/theming';
12
11
  import { Placement, OffsetOptions, Padding } from '@floating-ui/dom';
13
12
  import * as _ethlete_core from '@ethlete/core';
14
13
  import * as _angular_router from '@angular/router';
@@ -142,7 +141,7 @@ interface AnimatedOverlayComponentBase {
142
141
  _elementRef?: ElementRef<HTMLElement>;
143
142
  _animatedLifecycle?: AnimatedLifecycleDirective;
144
143
  _markForCheck?: () => void;
145
- _setThemeFromProvider?: (provider: ProvideThemeDirective) => void;
144
+ _setThemeFromProvider?: (provider: any) => void;
146
145
  }
147
146
  declare class AnimatedOverlayDirective<T extends AnimatedOverlayComponentBase> {
148
147
  private readonly _destroy$;
@@ -233,7 +232,7 @@ declare class AnimatedOverlayDirective<T extends AnimatedOverlayComponentBase> {
233
232
  providers?: StaticProvider[];
234
233
  data?: Partial<T>;
235
234
  mirrorWidth?: boolean;
236
- themeProvider?: ProvideThemeDirective | null;
235
+ themeProvider?: any | null;
237
236
  }): T | undefined;
238
237
  unmount(): void;
239
238
  beforeOpened(): Subject<void>;
@@ -468,7 +467,6 @@ declare class RepeatDirective {
468
467
  get repeatCount(): number;
469
468
  set repeatCount(value: unknown);
470
469
  private _repeatCount;
471
- constructor(_mainTemplateRef: TemplateRef<unknown>, _viewContainerRef: ViewContainerRef);
472
470
  private _render;
473
471
  static ɵfac: i0.ɵɵFactoryDeclaration<RepeatDirective, never>;
474
472
  static ɵdir: i0.ɵɵDirectiveDeclaration<RepeatDirective, "[etRepeat]", never, { "repeatCount": { "alias": "etRepeat"; "required": false; }; }, {}, never, never, true, never>;
@@ -1745,11 +1743,11 @@ interface ControlValueSignalOptions {
1745
1743
  */
1746
1744
  debounceFirst?: boolean;
1747
1745
  }
1748
- declare const controlValueSignal: <T extends Signal<AbstractControl | null> | AbstractControl, J extends T extends Signal<infer I> ? I : T>(control: T, options?: ControlValueSignalOptions) => Signal<ReturnType<NonNullable<J>["getRawValue"]> | null>;
1746
+ 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>;
1749
1747
  /**
1750
1748
  * The first item in the pair is the previous value and the second item is the current value.
1751
1749
  */
1752
- declare const controlValueSignalWithPrevious: <T extends AbstractControl>(control: T, options?: ControlValueSignalOptions) => Signal<any[] | [ReturnType<NonNullable<T extends Signal<infer I> ? I : T>["getRawValue"]> | null, ReturnType<NonNullable<T extends Signal<infer I> ? I : T>["getRawValue"]> | null]>;
1750
+ declare const controlValueSignalWithPrevious: <T extends AbstractControl>(control: T, options?: ControlValueSignalOptions) => Signal<any[] | [ReturnType<NonNullable<T extends Signal<infer TSignalControl> ? TSignalControl : T>["getRawValue"]> | null, ReturnType<NonNullable<T extends Signal<infer TSignalControl> ? TSignalControl : T>["getRawValue"]> | null]>;
1753
1751
  /**
1754
1752
  * @deprecated Use `controlValueSignal` instead with `debounceTime` option.
1755
1753
  */
@@ -1762,7 +1760,7 @@ interface DebouncedControlValueSignalOptions {
1762
1760
  /**
1763
1761
  * @deprecated Use `controlValueSignal` instead with `debounceTime` set to `300` and `debounceFirst` set to `true`.
1764
1762
  */
1765
- declare const debouncedControlValueSignal: <T extends FormControl>(control: T, options?: DebouncedControlValueSignalOptions) => Signal<ReturnType<NonNullable<T extends Signal<infer I> ? I : T>["getRawValue"]> | null>;
1763
+ declare const debouncedControlValueSignal: <T extends FormControl>(control: T, options?: DebouncedControlValueSignalOptions) => Signal<ReturnType<NonNullable<T extends Signal<infer TSignalControl> ? TSignalControl : T>["getRawValue"]> | null>;
1766
1764
  type InjectUtilConfig = {
1767
1765
  /** The injector to use for the injection. Must be provided if the function is not called from within a injection context. */
1768
1766
  injector?: Injector;
package/package.json CHANGED
@@ -1,18 +1,17 @@
1
1
  {
2
2
  "name": "@ethlete/core",
3
- "version": "4.29.0",
3
+ "version": "4.29.1",
4
4
  "license": "MIT",
5
5
  "sideEffects": false,
6
6
  "peerDependencies": {
7
- "@angular/cdk": "20.0.1",
8
- "@angular/common": "20.0.0",
9
- "@angular/core": "20.0.0",
10
- "@angular/forms": "20.0.0",
11
- "@angular/platform-browser": "20.0.0",
12
- "@angular/router": "20.0.0",
13
- "@ethlete/theming": "^2.3.1",
7
+ "@angular/cdk": "20.0.3",
8
+ "@angular/common": "20.0.3",
9
+ "@angular/core": "20.0.3",
10
+ "@angular/forms": "20.0.3",
11
+ "@angular/platform-browser": "20.0.3",
12
+ "@angular/router": "20.0.3",
14
13
  "@ethlete/types": "^1.6.2",
15
- "@floating-ui/dom": "1.7.0",
14
+ "@floating-ui/dom": "1.7.1",
16
15
  "rxjs": "7.8.2"
17
16
  },
18
17
  "module": "fesm2022/ethlete-core.mjs",