@ethlete/core 4.31.0 → 4.32.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,7 +2,7 @@ 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, PipeTransform, TrackByFunction, WritableSignal, DestroyRef, TemplateRef, Injector, EffectRef } from '@angular/core';
5
+ import { QueryList, Type, InjectionToken, OnInit, AfterViewInit, ElementRef, ComponentRef, StaticProvider, OnDestroy, EventEmitter, AfterContentInit, Signal, PipeTransform, TrackByFunction, WritableSignal, DestroyRef, TemplateRef, Injector, Provider, InjectOptions, 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';
@@ -1152,6 +1152,8 @@ type SelectionModelBinding<T extends SelectionModelTypes = any> = SelectionModel
1152
1152
  declare class SelectionModel<T extends SelectionModelTypes = unknown> {
1153
1153
  private readonly _destroy$;
1154
1154
  private _lastSelectionSetSubscription;
1155
+ get isSyncingSelectionFromValue(): boolean;
1156
+ private _isSyncingSelectionFromValue;
1155
1157
  get selection$(): Observable<T[]>;
1156
1158
  get selection(): T[];
1157
1159
  private readonly _selection$;
@@ -1183,6 +1185,10 @@ declare class SelectionModel<T extends SelectionModelTypes = unknown> {
1183
1185
  constructor();
1184
1186
  setSelection(selection: T | T[]): this;
1185
1187
  setSelectionFromValue(value: unknown): void;
1188
+ /**
1189
+ * Applies `value` once options are available. Until then, and while applying it, `isSyncingSelectionFromValue` is `true`.
1190
+ * Any user selection change cancels a pending sync.
1191
+ */
1186
1192
  setSelectionFromValue$(value: unknown): void;
1187
1193
  setValueBinding(fnOrPropertyPath: SelectionModelBinding<T> | null): this;
1188
1194
  setKeyBinding(fnOrPropertyPath: SelectionModelBinding<T> | null): this;
@@ -1238,6 +1244,7 @@ declare class SelectionModel<T extends SelectionModelTypes = unknown> {
1238
1244
  clearSelectedOptions(): void;
1239
1245
  toggleSelectedOption(option: T): void;
1240
1246
  toggleAllSelectedOptions(): void;
1247
+ private _cancelPendingSelectionFromValue;
1241
1248
  }
1242
1249
 
1243
1250
  declare class ActiveSelectionModel<T = unknown> {
@@ -1381,6 +1388,53 @@ declare const getFormGroupValue: <T extends FormGroup>(formGroup: T) => Record<s
1381
1388
 
1382
1389
  declare const injectHostElement: <T = HTMLElement>() => T;
1383
1390
  declare const injectTemplateRef: <C = unknown>() => TemplateRef<C>;
1391
+ type CreateProviderOptions = {
1392
+ /**
1393
+ * Optional name for the provider, useful for debugging.
1394
+ * If not provided, the name will be a generated string.
1395
+ */
1396
+ name?: string;
1397
+ /**
1398
+ * Optional existing InjectionToken to also provide the created provider under.
1399
+ */
1400
+ extraInjectionToken?: InjectionToken<unknown>;
1401
+ };
1402
+ type ProviderResult<T> = readonly [
1403
+ provide: () => Provider[],
1404
+ inject: {
1405
+ (): T;
1406
+ (options: InjectOptions & {
1407
+ optional?: false;
1408
+ }): T;
1409
+ (options: InjectOptions): T | null;
1410
+ },
1411
+ token: InjectionToken<T>
1412
+ ];
1413
+ type StaticProviderResult<T> = readonly [
1414
+ provide: (valueOverride?: Partial<T>) => Provider[],
1415
+ inject: {
1416
+ (): T;
1417
+ (options: InjectOptions & {
1418
+ optional?: false;
1419
+ }): T;
1420
+ (options: InjectOptions): T | null;
1421
+ },
1422
+ token: InjectionToken<T>
1423
+ ];
1424
+ type RootProviderResult<T> = readonly [
1425
+ inject: {
1426
+ (): T;
1427
+ (options: InjectOptions & {
1428
+ optional?: false;
1429
+ }): T;
1430
+ (options: InjectOptions): T | null;
1431
+ },
1432
+ token: InjectionToken<T>
1433
+ ];
1434
+ declare const createProvider: <T>(factory: () => T, options?: CreateProviderOptions) => ProviderResult<T>;
1435
+ declare const createRootProvider: <T>(factory: () => T, options?: CreateProviderOptions) => ProviderResult<T>;
1436
+ declare const createStaticProvider: <T>(defaultValue?: T, options?: CreateProviderOptions) => StaticProviderResult<T>;
1437
+ declare const createStaticRootProvider: <T>(defaultValue?: T, options?: CreateProviderOptions) => StaticProviderResult<T>;
1384
1438
 
1385
1439
  declare const getIntersectionInfo: (intersections: IntersectionObserverEntry[]) => {
1386
1440
  partial: {
@@ -1971,5 +2025,5 @@ declare const Validators: {
1971
2025
  readonly ValidateAtLeastOneRequired: (config: ValidateAtLeastOneRequiredConfig) => _angular_forms.ValidatorFn;
1972
2026
  };
1973
2027
 
1974
- export { ANIMATABLE_TOKEN, ANIMATED_IF_TOKEN, ANIMATED_LIFECYCLE_TOKEN, AT_LEAST_ONE_REQUIRED, ActiveSelectionModel, AnimatableDirective, AnimatedIfDirective, AnimatedLifecycleDirective, AnimatedOverlayDirective, CURSOR_DRAG_SCROLLING_CLASS, CURSOR_DRAG_SCROLLING_PREPARED_CLASS, ClickObserverFactory, ClickObserverService, ClickOutsideDirective, ContentObserverService, CursorDragScrollDirective, DEBUG_TOKEN, DEFAULT_VIEWPORT_CONFIG, DELAYABLE_TOKEN, DISABLE_LOGGER_PARAM, DebugDirective, DelayableDirective, ET_PROPERTY_REMOVED, FocusVisibleService, IS_ACTIVE_ELEMENT, IS_ARRAY_NOT_EMPTY, IS_ELEMENT, IS_EMAIL, InferMimeTypePipe, IntersectionObserverFactory, IntersectionObserverService, IsActiveElementDirective, IsArrayNotEmpty, IsElementDirective, IsEmail, KeyPressManager, LetContext, LetDirective, MUST_MATCH, MatchStateType, Memo, MustMatch, MutationObserverFactory, NormalizeGameResultTypePipe, NormalizeMatchParticipantsPipe, NormalizeMatchScorePipe, NormalizeMatchStatePipe, NormalizeMatchTypePipe, OBSERVE_SCROLL_STATE, OBSERVE_VISIBILITY_TOKEN, ObserveContentDirective, ObserveResizeDirective, ObserveScrollStateDirective, ObserveVisibilityDirective, PropsDirective, ROOT_BOUNDARY_TOKEN, RUNTIME_ERROR_NO_DATA, RepeatDirective, ResizeObserverFactory, ResizeObserverService, RootBoundaryDirective, RouterStateService, RuntimeError, SCROLL_OBSERVER_FIRST_ELEMENT_CLASS, SCROLL_OBSERVER_IGNORE_TARGET_CLASS, SCROLL_OBSERVER_LAST_ELEMENT_CLASS, SCROLL_OBSERVER_OBSERVING_FIRST_ELEMENT_CLASS, SCROLL_OBSERVER_OBSERVING_LAST_ELEMENT_CLASS, SEO_DIRECTIVE_TOKEN, ScrollObserverFirstElementDirective, ScrollObserverIgnoreTargetDirective, ScrollObserverLastElementDirective, SelectionModel, SeoDirective, SmartBlockScrollStrategy, StructuredDataComponent, ToArrayPipe, TypedQueryList, VIEWPORT_CONFIG, ValidateAtLeastOneRequired, Validators, ViewportService, areScrollStatesEqual, bindProps, boundingClientRectToElementRect, buildSignalEffects, clamp, clone, cloneFormGroup, computedTillFalsy, computedTillTruthy, controlValueSignal, controlValueSignalWithPrevious, createCanAnimateSignal, createComponentId, createDependencyStash, createDestroy, createElementDictionary, createElementDimensions, createFlipAnimation, createFlipAnimationGroup, createHostProps, createIsRenderedSignal, createLogger, createMediaQueryObservable, createMutationObservable, createPropHandlers, createProps, createReactiveBindings, createResizeObservable, createSetup, debouncedControlValueSignal, deferredSignal, deleteCookie, elementCanScroll, equal, forceReflow, formatRuntimeError, fromNextFrame, getCookie, getDomain, getElementScrollCoordinates, getFormGroupValue, getGroupMatchPoints, getGroupMatchScore, getIntersectionInfo, getKnockoutMatchScore, getMatchScoreSubLine, getObjectProperty, hasCookie, inferMimeType, injectBreakpointIsMatched, injectCanHover, injectCurrentBreakpoint, injectDeviceInputType, injectDisplayOrientation, injectFragment, injectHasPrecisionInput, injectHasTouchInput, injectHostElement, injectIs2Xl, injectIsLandscape, injectIsLg, injectIsMd, injectIsPortrait, injectIsSm, injectIsXl, injectIsXs, injectObserveBreakpoint, injectPathParam, injectPathParamChanges, injectPathParams, injectQueryParam, injectQueryParamChanges, injectQueryParams, injectRoute, injectRouteData, injectRouteDataItem, injectRouteTitle, injectRouterEvent, injectRouterState, injectTemplateRef, injectUrl, isArray, isElementVisible, isEmptyArray, isGroupMatch, isKnockoutMatch, isObject, isObjectArray, isPrimitiveArray, maybeSignalValue, mergeSeoConfig, nextFrame, normalizeGameResultType, normalizeMatchParticipant, normalizeMatchParticipants, normalizeMatchScore, normalizeMatchState, normalizeMatchType, previousSignalValue, provideViewportConfig, round, routerDisableScrollTop, scrollToElement, setCookie, signalAttributes, signalClasses, signalElementChildren, signalElementDimensions, signalElementIntersection, signalElementLastScrollDirection, signalElementMutations, signalElementScrollState, signalHostAttributes, signalHostClasses, signalHostElementDimensions, signalHostElementIntersection, signalHostElementLastScrollDirection, signalHostElementMutations, signalHostElementScrollState, signalHostStyles, signalIsRendered, signalStyles, signalVisibilityChangeClasses, switchQueryListChanges, syncSignal, templateComputed, toArray, toArrayTrackByFn, transformOrReturn, unbindProps, useCursorDragScroll };
1975
- export type { AlternateLink, AnimatedLifecycleState, AnimatedOverlayComponentBase, AnyTemplateType, BindPropsOptions, Breakpoint, BuildMediaQueryOptions, BuildSignalEffectsConfig, ComponentTemplate, ComponentTypeWithInputs, ControlValueSignalOptions, CreateLoggerConfig, CreatePropsOptions, CurrentElementVisibility, CursorDragScrollDirection, CursorDragScrollOptions, DebouncedControlValueSignalOptions, ElementDimensions, ElementLastScrollDirection, ElementLastScrollDirectionType, ElementRect, ElementScrollState, ElementSize, FacebookCard, FlipAnimationConfig, HostDirective, HostProps, InjectQueryParamConfig, InjectUtilConfig, InjectUtilTransformConfig, IsElementVisibleOptions, LogicalSize, MapLike, MaybeObservable, MaybeSignal, MemoConfig, MemoResolver, NgClassType, NgTemplateTemplate, NormalizedGameResultType, NormalizedMatchParticipant, NormalizedMatchParticipants, NormalizedMatchScore, NullableElementDimensions, ObserveVisibilityChange, ObservedScrollableChild, OpenGraph, Primitive, PropHandlers, Props, PropsAttachedElements, PropsAttachedElementsInternal, PropsInternal, ReactiveAttributes, ReactiveBindingResult, Reference, RouterDisableScrollTopConfig, RouterState, ScrollEnhancementsConfig, ScrollObserverScrollState, ScrollToElementOptions, SelectionModelBinding, SelectionModelOptionValueFn, SelectionModelPropertyPath, SelectionModelTypes, SeoConfig, SignalElementIntersectionOptions, SignalElementScrollStateOptions, Size, StringTemplate, SyncSignalOptions, TemplateRefWithContext, Translatable, TwitterCard, UnbindPropsOptions, ValidateAtLeastOneRequiredConfig, Vec2, ViewportConfig };
2028
+ export { ANIMATABLE_TOKEN, ANIMATED_IF_TOKEN, ANIMATED_LIFECYCLE_TOKEN, AT_LEAST_ONE_REQUIRED, ActiveSelectionModel, AnimatableDirective, AnimatedIfDirective, AnimatedLifecycleDirective, AnimatedOverlayDirective, CURSOR_DRAG_SCROLLING_CLASS, CURSOR_DRAG_SCROLLING_PREPARED_CLASS, ClickObserverFactory, ClickObserverService, ClickOutsideDirective, ContentObserverService, CursorDragScrollDirective, DEBUG_TOKEN, DEFAULT_VIEWPORT_CONFIG, DELAYABLE_TOKEN, DISABLE_LOGGER_PARAM, DebugDirective, DelayableDirective, ET_PROPERTY_REMOVED, FocusVisibleService, IS_ACTIVE_ELEMENT, IS_ARRAY_NOT_EMPTY, IS_ELEMENT, IS_EMAIL, InferMimeTypePipe, IntersectionObserverFactory, IntersectionObserverService, IsActiveElementDirective, IsArrayNotEmpty, IsElementDirective, IsEmail, KeyPressManager, LetContext, LetDirective, MUST_MATCH, MatchStateType, Memo, MustMatch, MutationObserverFactory, NormalizeGameResultTypePipe, NormalizeMatchParticipantsPipe, NormalizeMatchScorePipe, NormalizeMatchStatePipe, NormalizeMatchTypePipe, OBSERVE_SCROLL_STATE, OBSERVE_VISIBILITY_TOKEN, ObserveContentDirective, ObserveResizeDirective, ObserveScrollStateDirective, ObserveVisibilityDirective, PropsDirective, ROOT_BOUNDARY_TOKEN, RUNTIME_ERROR_NO_DATA, RepeatDirective, ResizeObserverFactory, ResizeObserverService, RootBoundaryDirective, RouterStateService, RuntimeError, SCROLL_OBSERVER_FIRST_ELEMENT_CLASS, SCROLL_OBSERVER_IGNORE_TARGET_CLASS, SCROLL_OBSERVER_LAST_ELEMENT_CLASS, SCROLL_OBSERVER_OBSERVING_FIRST_ELEMENT_CLASS, SCROLL_OBSERVER_OBSERVING_LAST_ELEMENT_CLASS, SEO_DIRECTIVE_TOKEN, ScrollObserverFirstElementDirective, ScrollObserverIgnoreTargetDirective, ScrollObserverLastElementDirective, SelectionModel, SeoDirective, SmartBlockScrollStrategy, StructuredDataComponent, ToArrayPipe, TypedQueryList, VIEWPORT_CONFIG, ValidateAtLeastOneRequired, Validators, ViewportService, areScrollStatesEqual, bindProps, boundingClientRectToElementRect, buildSignalEffects, clamp, clone, cloneFormGroup, computedTillFalsy, computedTillTruthy, controlValueSignal, controlValueSignalWithPrevious, createCanAnimateSignal, createComponentId, createDependencyStash, createDestroy, createElementDictionary, createElementDimensions, createFlipAnimation, createFlipAnimationGroup, createHostProps, createIsRenderedSignal, createLogger, createMediaQueryObservable, createMutationObservable, createPropHandlers, createProps, createProvider, createReactiveBindings, createResizeObservable, createRootProvider, createSetup, createStaticProvider, createStaticRootProvider, debouncedControlValueSignal, deferredSignal, deleteCookie, elementCanScroll, equal, forceReflow, formatRuntimeError, fromNextFrame, getCookie, getDomain, getElementScrollCoordinates, getFormGroupValue, getGroupMatchPoints, getGroupMatchScore, getIntersectionInfo, getKnockoutMatchScore, getMatchScoreSubLine, getObjectProperty, hasCookie, inferMimeType, injectBreakpointIsMatched, injectCanHover, injectCurrentBreakpoint, injectDeviceInputType, injectDisplayOrientation, injectFragment, injectHasPrecisionInput, injectHasTouchInput, injectHostElement, injectIs2Xl, injectIsLandscape, injectIsLg, injectIsMd, injectIsPortrait, injectIsSm, injectIsXl, injectIsXs, injectObserveBreakpoint, injectPathParam, injectPathParamChanges, injectPathParams, injectQueryParam, injectQueryParamChanges, injectQueryParams, injectRoute, injectRouteData, injectRouteDataItem, injectRouteTitle, injectRouterEvent, injectRouterState, injectTemplateRef, injectUrl, isArray, isElementVisible, isEmptyArray, isGroupMatch, isKnockoutMatch, isObject, isObjectArray, isPrimitiveArray, maybeSignalValue, mergeSeoConfig, nextFrame, normalizeGameResultType, normalizeMatchParticipant, normalizeMatchParticipants, normalizeMatchScore, normalizeMatchState, normalizeMatchType, previousSignalValue, provideViewportConfig, round, routerDisableScrollTop, scrollToElement, setCookie, signalAttributes, signalClasses, signalElementChildren, signalElementDimensions, signalElementIntersection, signalElementLastScrollDirection, signalElementMutations, signalElementScrollState, signalHostAttributes, signalHostClasses, signalHostElementDimensions, signalHostElementIntersection, signalHostElementLastScrollDirection, signalHostElementMutations, signalHostElementScrollState, signalHostStyles, signalIsRendered, signalStyles, signalVisibilityChangeClasses, switchQueryListChanges, syncSignal, templateComputed, toArray, toArrayTrackByFn, transformOrReturn, unbindProps, useCursorDragScroll };
2029
+ export type { AlternateLink, AnimatedLifecycleState, AnimatedOverlayComponentBase, AnyTemplateType, BindPropsOptions, Breakpoint, BuildMediaQueryOptions, BuildSignalEffectsConfig, ComponentTemplate, ComponentTypeWithInputs, ControlValueSignalOptions, CreateLoggerConfig, CreatePropsOptions, CreateProviderOptions, CurrentElementVisibility, CursorDragScrollDirection, CursorDragScrollOptions, DebouncedControlValueSignalOptions, ElementDimensions, ElementLastScrollDirection, ElementLastScrollDirectionType, ElementRect, ElementScrollState, ElementSize, FacebookCard, FlipAnimationConfig, HostDirective, HostProps, InjectQueryParamConfig, InjectUtilConfig, InjectUtilTransformConfig, IsElementVisibleOptions, LogicalSize, MapLike, MaybeObservable, MaybeSignal, MemoConfig, MemoResolver, NgClassType, NgTemplateTemplate, NormalizedGameResultType, NormalizedMatchParticipant, NormalizedMatchParticipants, NormalizedMatchScore, NullableElementDimensions, ObserveVisibilityChange, ObservedScrollableChild, OpenGraph, Primitive, PropHandlers, Props, PropsAttachedElements, PropsAttachedElementsInternal, PropsInternal, ProviderResult, ReactiveAttributes, ReactiveBindingResult, Reference, RootProviderResult, RouterDisableScrollTopConfig, RouterState, ScrollEnhancementsConfig, ScrollObserverScrollState, ScrollToElementOptions, SelectionModelBinding, SelectionModelOptionValueFn, SelectionModelPropertyPath, SelectionModelTypes, SeoConfig, SignalElementIntersectionOptions, SignalElementScrollStateOptions, Size, StaticProviderResult, StringTemplate, SyncSignalOptions, TemplateRefWithContext, Translatable, TwitterCard, UnbindPropsOptions, ValidateAtLeastOneRequiredConfig, Vec2, ViewportConfig };
package/package.json CHANGED
@@ -1,15 +1,20 @@
1
1
  {
2
2
  "name": "@ethlete/core",
3
- "version": "4.31.0",
3
+ "version": "4.32.1",
4
+ "repository": {
5
+ "type": "git",
6
+ "url": "https://github.com/ethlete-io/ethdk",
7
+ "directory": "libs/core"
8
+ },
4
9
  "license": "MIT",
5
10
  "sideEffects": false,
6
11
  "peerDependencies": {
7
- "@angular/cdk": "20.2.8",
8
- "@angular/common": "20.3.4",
9
- "@angular/core": "20.3.4",
10
- "@angular/forms": "20.3.4",
11
- "@angular/platform-browser": "20.3.4",
12
- "@angular/router": "20.3.4",
12
+ "@angular/cdk": "20.2.9",
13
+ "@angular/common": "20.3.6",
14
+ "@angular/core": "20.3.6",
15
+ "@angular/forms": "20.3.6",
16
+ "@angular/platform-browser": "20.3.6",
17
+ "@angular/router": "20.3.6",
13
18
  "@ethlete/types": "^1.6.2",
14
19
  "@floating-ui/dom": "1.7.4",
15
20
  "rxjs": "7.8.2"