@ethlete/core 4.28.0 → 4.29.0

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.
Files changed (141) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/fesm2022/ethlete-core.mjs +123 -123
  3. package/fesm2022/ethlete-core.mjs.map +1 -1
  4. package/index.d.ts +1973 -36
  5. package/package.json +9 -8
  6. package/lib/components/structured-data/index.d.ts +0 -1
  7. package/lib/components/structured-data/structured-data.component.d.ts +0 -11
  8. package/lib/constants/index.d.ts +0 -1
  9. package/lib/constants/viewport.constants.d.ts +0 -8
  10. package/lib/decorators/memo/index.d.ts +0 -1
  11. package/lib/decorators/memo/memo.decorator.d.ts +0 -13
  12. package/lib/directives/animatable/animatable.directive.d.ts +0 -24
  13. package/lib/directives/animatable/index.d.ts +0 -1
  14. package/lib/directives/animated-if/animated-if.directive.d.ts +0 -12
  15. package/lib/directives/animated-if/index.d.ts +0 -1
  16. package/lib/directives/animated-lifecycle/animated-lifecycle.directive.d.ts +0 -29
  17. package/lib/directives/animated-lifecycle/index.d.ts +0 -1
  18. package/lib/directives/animated-overlay/animated-overlay.directive.d.ts +0 -118
  19. package/lib/directives/animated-overlay/index.d.ts +0 -1
  20. package/lib/directives/click-outside/click-outside.directive.d.ts +0 -12
  21. package/lib/directives/click-outside/index.d.ts +0 -1
  22. package/lib/directives/cursor-drag-scroll/cursor-drag-scroll.constants.d.ts +0 -2
  23. package/lib/directives/cursor-drag-scroll/cursor-drag-scroll.directive.d.ts +0 -30
  24. package/lib/directives/cursor-drag-scroll/index.d.ts +0 -2
  25. package/lib/directives/debug/debug.directive.d.ts +0 -15
  26. package/lib/directives/debug/index.d.ts +0 -1
  27. package/lib/directives/delayable/delayable.directive.d.ts +0 -13
  28. package/lib/directives/delayable/index.d.ts +0 -1
  29. package/lib/directives/is-active-element/index.d.ts +0 -1
  30. package/lib/directives/is-active-element/is-active-element.directive.d.ts +0 -10
  31. package/lib/directives/is-element/index.d.ts +0 -1
  32. package/lib/directives/is-element/is-element.directive.d.ts +0 -10
  33. package/lib/directives/let/index.d.ts +0 -2
  34. package/lib/directives/let/let.directive.d.ts +0 -15
  35. package/lib/directives/let/let.types.d.ts +0 -4
  36. package/lib/directives/observe-content/index.d.ts +0 -1
  37. package/lib/directives/observe-content/observe-content.directive.d.ts +0 -21
  38. package/lib/directives/observe-resize/index.d.ts +0 -1
  39. package/lib/directives/observe-resize/observe-resize.directive.d.ts +0 -21
  40. package/lib/directives/observe-scroll-state/index.d.ts +0 -3
  41. package/lib/directives/observe-scroll-state/observe-scroll-state.constants.d.ts +0 -3
  42. package/lib/directives/observe-scroll-state/observe-scroll-state.directive.d.ts +0 -31
  43. package/lib/directives/observe-scroll-state/observe-scroll-state.types.d.ts +0 -6
  44. package/lib/directives/observe-visibility/index.d.ts +0 -1
  45. package/lib/directives/observe-visibility/observe-visibility.directive.d.ts +0 -30
  46. package/lib/directives/repeat/index.d.ts +0 -1
  47. package/lib/directives/repeat/repeat.directive.d.ts +0 -13
  48. package/lib/directives/root-boundary/index.d.ts +0 -1
  49. package/lib/directives/root-boundary/root-boundary.directive.d.ts +0 -11
  50. package/lib/directives/scroll-observer-first-element/index.d.ts +0 -1
  51. package/lib/directives/scroll-observer-first-element/scroll-observer-first-element.directive.d.ts +0 -8
  52. package/lib/directives/scroll-observer-ignore-target/index.d.ts +0 -1
  53. package/lib/directives/scroll-observer-ignore-target/scroll-observer-ignore-target.directive.d.ts +0 -6
  54. package/lib/directives/scroll-observer-last-element/index.d.ts +0 -1
  55. package/lib/directives/scroll-observer-last-element/scroll-observer-last-element.directive.d.ts +0 -8
  56. package/lib/directives/seo/index.d.ts +0 -4
  57. package/lib/directives/seo/seo.directive.constants.d.ts +0 -3
  58. package/lib/directives/seo/seo.directive.d.ts +0 -21
  59. package/lib/directives/seo/seo.directive.types.d.ts +0 -51
  60. package/lib/directives/seo/seo.directive.utils.d.ts +0 -2
  61. package/lib/pipes/infer-mime-type/index.d.ts +0 -2
  62. package/lib/pipes/infer-mime-type/infer-mime-type.pipe.d.ts +0 -7
  63. package/lib/pipes/infer-mime-type/infer-mime-type.util.d.ts +0 -6
  64. package/lib/pipes/normalize-game-result-type/index.d.ts +0 -3
  65. package/lib/pipes/normalize-game-result-type/normalize-game-result-type.pipe.d.ts +0 -7
  66. package/lib/pipes/normalize-game-result-type/normalize-game-result-type.types.d.ts +0 -4
  67. package/lib/pipes/normalize-game-result-type/normalize-game-result-type.util.d.ts +0 -2
  68. package/lib/pipes/normalize-match-participants/index.d.ts +0 -3
  69. package/lib/pipes/normalize-match-participants/normalize-match-participants.pipe.d.ts +0 -7
  70. package/lib/pipes/normalize-match-participants/normalize-match-participants.types.d.ts +0 -21
  71. package/lib/pipes/normalize-match-participants/normalize-match-participants.util.d.ts +0 -4
  72. package/lib/pipes/normalize-match-score/index.d.ts +0 -3
  73. package/lib/pipes/normalize-match-score/normalize-match-score.pipe.d.ts +0 -7
  74. package/lib/pipes/normalize-match-score/normalize-match-score.types.d.ts +0 -12
  75. package/lib/pipes/normalize-match-score/normalize-match-score.util.d.ts +0 -27
  76. package/lib/pipes/normalize-match-state/index.d.ts +0 -3
  77. package/lib/pipes/normalize-match-state/normalize-match-state.constants.d.ts +0 -7
  78. package/lib/pipes/normalize-match-state/normalize-match-state.pipe.d.ts +0 -7
  79. package/lib/pipes/normalize-match-state/normalize-match-state.util.d.ts +0 -3
  80. package/lib/pipes/normalize-match-type/index.d.ts +0 -2
  81. package/lib/pipes/normalize-match-type/normalize-match-type.pipe.d.ts +0 -7
  82. package/lib/pipes/normalize-match-type/normalize-match-type.util.d.ts +0 -3
  83. package/lib/pipes/to-array/index.d.ts +0 -2
  84. package/lib/pipes/to-array/to-array.pipe.d.ts +0 -7
  85. package/lib/pipes/to-array/to-array.util.d.ts +0 -3
  86. package/lib/props/create-prop-handlers.d.ts +0 -27
  87. package/lib/props/create-props.d.ts +0 -54
  88. package/lib/props/create-setup.d.ts +0 -4
  89. package/lib/props/dependency-stash.d.ts +0 -11
  90. package/lib/props/element-dictionary.d.ts +0 -11
  91. package/lib/props/index.d.ts +0 -8
  92. package/lib/props/props-binding.d.ts +0 -12
  93. package/lib/props/props.directive.d.ts +0 -38
  94. package/lib/props/template-input.d.ts +0 -30
  95. package/lib/services/click-observer.service.d.ts +0 -20
  96. package/lib/services/content-observer.service.d.ts +0 -20
  97. package/lib/services/focus-visible.service.d.ts +0 -11
  98. package/lib/services/index.d.ts +0 -8
  99. package/lib/services/intersection-observer.service.d.ts +0 -20
  100. package/lib/services/resize-observer.service.d.ts +0 -20
  101. package/lib/services/router-state.service.d.ts +0 -96
  102. package/lib/services/viewport.service.d.ts +0 -64
  103. package/lib/services/viewport.types.d.ts +0 -5
  104. package/lib/types/angular.types.d.ts +0 -13
  105. package/lib/types/i18n.types.d.ts +0 -4
  106. package/lib/types/index.d.ts +0 -4
  107. package/lib/types/value.types.d.ts +0 -2
  108. package/lib/types/viewport.types.d.ts +0 -12
  109. package/lib/utils/active-selection-model.utils.d.ts +0 -18
  110. package/lib/utils/angular.utils.d.ts +0 -3
  111. package/lib/utils/animation.utils.d.ts +0 -61
  112. package/lib/utils/clamp.util.d.ts +0 -1
  113. package/lib/utils/clone.util.d.ts +0 -15
  114. package/lib/utils/component-id.utils.d.ts +0 -1
  115. package/lib/utils/cookie.util.d.ts +0 -5
  116. package/lib/utils/destroy.utils.d.ts +0 -1
  117. package/lib/utils/equal.util.d.ts +0 -27
  118. package/lib/utils/form.utils.d.ts +0 -3
  119. package/lib/utils/index.d.ts +0 -27
  120. package/lib/utils/inject.utils.d.ts +0 -3
  121. package/lib/utils/intersection-observer.utils.d.ts +0 -40
  122. package/lib/utils/key-press-manager.utils.d.ts +0 -9
  123. package/lib/utils/logger.d.ts +0 -10
  124. package/lib/utils/media-query-observable.util.d.ts +0 -5
  125. package/lib/utils/mutation-observable.util.d.ts +0 -7
  126. package/lib/utils/object.utils.d.ts +0 -3
  127. package/lib/utils/reactive-binding.util.d.ts +0 -31
  128. package/lib/utils/resize-observable.util.d.ts +0 -5
  129. package/lib/utils/round.utils.d.ts +0 -1
  130. package/lib/utils/runtime-error.utils.d.ts +0 -8
  131. package/lib/utils/scrollable.utils.d.ts +0 -91
  132. package/lib/utils/selection-model.utils.d.ts +0 -108
  133. package/lib/utils/signal.utils.d.ts +0 -312
  134. package/lib/utils/smart-block-scroll-strategy.utils.d.ts +0 -17
  135. package/lib/utils/value.utils.d.ts +0 -4
  136. package/lib/utils/viewport.util.d.ts +0 -6
  137. package/lib/validators/at-least-one-required.validator.d.ts +0 -14
  138. package/lib/validators/index.d.ts +0 -12
  139. package/lib/validators/is-array-not-empty.validator.d.ts +0 -3
  140. package/lib/validators/is-email.validator.d.ts +0 -3
  141. package/lib/validators/must-match.validator.d.ts +0 -5
@@ -1 +0,0 @@
1
- export * from './scroll-observer-last-element.directive';
@@ -1,8 +0,0 @@
1
- import * as i0 from "@angular/core";
2
- export declare const SCROLL_OBSERVER_LAST_ELEMENT_CLASS = "et-scroll-observer-last-element";
3
- export declare class ScrollObserverLastElementDirective {
4
- isLastElement: boolean;
5
- static ɵfac: i0.ɵɵFactoryDeclaration<ScrollObserverLastElementDirective, never>;
6
- static ɵdir: i0.ɵɵDirectiveDeclaration<ScrollObserverLastElementDirective, "[etScrollObserverLastElement]", never, { "isLastElement": { "alias": "etScrollObserverLastElement"; "required": false; }; }, {}, never, never, true, never>;
7
- static ngAcceptInputType_isLastElement: unknown;
8
- }
@@ -1,4 +0,0 @@
1
- export * from './seo.directive';
2
- export * from './seo.directive.constants';
3
- export * from './seo.directive.types';
4
- export * from './seo.directive.utils';
@@ -1,3 +0,0 @@
1
- import { InjectionToken } from '@angular/core';
2
- import { SeoDirective } from './seo.directive';
3
- export declare const SEO_DIRECTIVE_TOKEN: InjectionToken<SeoDirective>;
@@ -1,21 +0,0 @@
1
- import { OnDestroy, OnInit } from '@angular/core';
2
- import { SeoConfig } from './seo.directive.types';
3
- import * as i0 from "@angular/core";
4
- export declare class SeoDirective implements OnInit, OnDestroy {
5
- private readonly _metaService;
6
- private readonly _titleService;
7
- private readonly _onDeactivate$;
8
- private _isDeactivated;
9
- readonly parent: SeoDirective | null;
10
- get config(): SeoConfig;
11
- private _config;
12
- ngOnInit(): void;
13
- ngOnDestroy(): void;
14
- updateConfig(config: SeoConfig): void;
15
- _activate(): void;
16
- _deactivate(): void;
17
- private _update;
18
- private _cleanUp;
19
- static ɵfac: i0.ɵɵFactoryDeclaration<SeoDirective, never>;
20
- static ɵdir: i0.ɵɵDirectiveDeclaration<SeoDirective, never, never, {}, {}, never, never, true, never>;
21
- }
@@ -1,51 +0,0 @@
1
- import { Observable } from 'rxjs';
2
- export type MaybeObservable<T> = T | Observable<T>;
3
- export interface SeoConfig {
4
- title?: MaybeObservable<string>;
5
- description?: MaybeObservable<string>;
6
- keywords?: MaybeObservable<string[]>;
7
- icon?: MaybeObservable<string>;
8
- themeColor?: MaybeObservable<string>;
9
- colorScheme?: MaybeObservable<'light' | 'dark'>;
10
- robots?: MaybeObservable<string>;
11
- canonical?: MaybeObservable<string>;
12
- alternate?: MaybeObservable<AlternateLink>[];
13
- og?: MaybeObservable<OpenGraph>;
14
- twitter?: MaybeObservable<TwitterCard>;
15
- facebook?: MaybeObservable<FacebookCard>;
16
- [key: string]: MaybeObservable<unknown>;
17
- }
18
- export interface AlternateLink {
19
- href: string;
20
- hreflang: string;
21
- }
22
- export interface OpenGraph {
23
- title?: MaybeObservable<string>;
24
- description?: MaybeObservable<string>;
25
- type?: MaybeObservable<string>;
26
- url?: MaybeObservable<string>;
27
- image?: MaybeObservable<string>;
28
- siteName?: MaybeObservable<string>;
29
- locale?: MaybeObservable<string>;
30
- localeAlternate?: MaybeObservable<string[]>;
31
- }
32
- export interface TwitterCard {
33
- card?: MaybeObservable<string>;
34
- site?: MaybeObservable<string>;
35
- creator?: MaybeObservable<string>;
36
- title?: MaybeObservable<string>;
37
- description?: MaybeObservable<string>;
38
- image?: MaybeObservable<string>;
39
- imageAlt?: MaybeObservable<string>;
40
- }
41
- export interface FacebookCard {
42
- title?: MaybeObservable<string>;
43
- description?: MaybeObservable<string>;
44
- image?: MaybeObservable<string>;
45
- imageAlt?: MaybeObservable<string>;
46
- type?: MaybeObservable<string>;
47
- url?: MaybeObservable<string>;
48
- siteName?: MaybeObservable<string>;
49
- locale?: MaybeObservable<string>;
50
- localeAlternate?: MaybeObservable<string[]>;
51
- }
@@ -1,2 +0,0 @@
1
- import { SeoConfig } from './seo.directive.types';
2
- export declare const mergeSeoConfig: (config: SeoConfig, parentConfig: SeoConfig) => SeoConfig;
@@ -1,2 +0,0 @@
1
- export * from './infer-mime-type.pipe';
2
- export * from './infer-mime-type.util';
@@ -1,7 +0,0 @@
1
- import { PipeTransform } from '@angular/core';
2
- import * as i0 from "@angular/core";
3
- export declare class InferMimeTypePipe implements PipeTransform {
4
- 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;
5
- static ɵfac: i0.ɵɵFactoryDeclaration<InferMimeTypePipe, never>;
6
- static ɵpipe: i0.ɵɵPipeDeclaration<InferMimeTypePipe, "inferMimeType", true>;
7
- }
@@ -1,6 +0,0 @@
1
- /**
2
- * Infers the mime type of a given url or srcset.
3
- * If a srcset is provided, it will infer the mime type of the first url in the srcset.
4
- * 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.
5
- */
6
- export 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;
@@ -1,3 +0,0 @@
1
- export * from './normalize-game-result-type.pipe';
2
- export * from './normalize-game-result-type.types';
3
- export * from './normalize-game-result-type.util';
@@ -1,7 +0,0 @@
1
- import { PipeTransform } from '@angular/core';
2
- import * as i0 from "@angular/core";
3
- export declare class NormalizeGameResultTypePipe implements PipeTransform {
4
- transform: (type: string | null) => import("@ethlete/core").NormalizedGameResultType | null;
5
- static ɵfac: i0.ɵɵFactoryDeclaration<NormalizeGameResultTypePipe, never>;
6
- static ɵpipe: i0.ɵɵPipeDeclaration<NormalizeGameResultTypePipe, "etNormalizeGameResultType", true>;
7
- }
@@ -1,4 +0,0 @@
1
- import { Translatable } from '../../types';
2
- export interface NormalizedGameResultType extends Translatable {
3
- shortCode: string;
4
- }
@@ -1,2 +0,0 @@
1
- import { NormalizedGameResultType } from './normalize-game-result-type.types';
2
- export declare const normalizeGameResultType: (type: string | null) => NormalizedGameResultType | null;
@@ -1,3 +0,0 @@
1
- export * from './normalize-match-participants.pipe';
2
- export * from './normalize-match-participants.types';
3
- export * from './normalize-match-participants.util';
@@ -1,7 +0,0 @@
1
- import { PipeTransform } from '@angular/core';
2
- import * as i0 from "@angular/core";
3
- export declare class NormalizeMatchParticipantsPipe implements PipeTransform {
4
- transform: (match: import("@ethlete/types").MatchListView | null) => import("@ethlete/core").NormalizedMatchParticipants | null;
5
- static ɵfac: i0.ɵɵFactoryDeclaration<NormalizeMatchParticipantsPipe, never>;
6
- static ɵpipe: i0.ɵɵPipeDeclaration<NormalizeMatchParticipantsPipe, "etNormalizeMatchParticipants", true>;
7
- }
@@ -1,21 +0,0 @@
1
- import { ParticipantViewUnion } from '@ethlete/types';
2
- import { Translatable } from '../../types';
3
- export interface NormalizedMatchParticipants {
4
- home: NormalizedMatchParticipant | null;
5
- away: NormalizedMatchParticipant | null;
6
- }
7
- type NormalizedParticipantType = 'team' | 'player' | 'unknown';
8
- export type NormalizedMatchParticipant = ({
9
- type: 'tbd';
10
- participantType: NormalizedParticipantType;
11
- data: ParticipantViewUnion | null;
12
- } & Translatable) | {
13
- type: 'participant';
14
- participantType: NormalizedParticipantType;
15
- data: ParticipantViewUnion;
16
- } | ({
17
- type: 'none';
18
- participantType: NormalizedParticipantType;
19
- data: ParticipantViewUnion | null;
20
- } & Translatable);
21
- export {};
@@ -1,4 +0,0 @@
1
- import { MatchListView } from '@ethlete/types';
2
- import { NormalizedMatchParticipant, NormalizedMatchParticipants } from './normalize-match-participants.types';
3
- export declare const normalizeMatchParticipants: (match: MatchListView | null) => NormalizedMatchParticipants | null;
4
- export declare const normalizeMatchParticipant: (match: MatchListView | null, side: "home" | "away") => NormalizedMatchParticipant | null;
@@ -1,3 +0,0 @@
1
- export * from './normalize-match-score.pipe';
2
- export * from './normalize-match-score.types';
3
- export * from './normalize-match-score.util';
@@ -1,7 +0,0 @@
1
- import { PipeTransform } from '@angular/core';
2
- import * as i0 from "@angular/core";
3
- export declare class NormalizeMatchScorePipe implements PipeTransform {
4
- transform: (match: import("@ethlete/types").MatchListView | null | undefined) => import("@ethlete/core").NormalizedMatchScore | null;
5
- static ɵfac: i0.ɵɵFactoryDeclaration<NormalizeMatchScorePipe, never>;
6
- static ɵpipe: i0.ɵɵPipeDeclaration<NormalizeMatchScorePipe, "etNormalizeMatchScore", true>;
7
- }
@@ -1,12 +0,0 @@
1
- export interface NormalizedMatchScore {
2
- home: {
3
- score: string | number | null;
4
- isWinner: boolean;
5
- };
6
- away: {
7
- score: string | number | null;
8
- isWinner: boolean;
9
- };
10
- subLine: string | null;
11
- isNumeric: boolean;
12
- }
@@ -1,27 +0,0 @@
1
- import { MatchListView, MatchRankingView } from '@ethlete/types';
2
- import { NormalizedMatchScore } from './normalize-match-score.types';
3
- export declare const normalizeMatchScore: (match: MatchListView | null | undefined) => NormalizedMatchScore | null;
4
- export declare const isKnockoutMatch: (match: MatchListView | null | undefined) => boolean;
5
- export declare const isGroupMatch: (match: MatchListView | null | undefined) => boolean;
6
- export declare const getKnockoutMatchScore: (score: MatchRankingView | null | undefined) => "match-score.knockout.won" | "match-score.knockout.lost" | "match-score.knockout.tie" | null;
7
- export declare const getMatchScoreSubLine: (match: MatchListView | null | undefined) => "match-score.groups.sub-line" | null;
8
- export declare const getGroupMatchScore: (match: MatchListView | null | undefined) => {
9
- home: {
10
- score: number;
11
- isWinner: boolean;
12
- };
13
- away: {
14
- score: number;
15
- isWinner: boolean;
16
- };
17
- } | null;
18
- export declare const getGroupMatchPoints: (match: MatchListView | null | undefined) => {
19
- home: {
20
- score: number;
21
- isWinner: boolean;
22
- };
23
- away: {
24
- score: number;
25
- isWinner: boolean;
26
- };
27
- } | null;
@@ -1,3 +0,0 @@
1
- export * from './normalize-match-state.constants';
2
- export * from './normalize-match-state.pipe';
3
- export * from './normalize-match-state.util';
@@ -1,7 +0,0 @@
1
- export declare const enum MatchStateType {
2
- PREPARING_ROUND = "preparingRound",
3
- PRE_MATCH = "preMatch",
4
- LIVE = "live",
5
- POST_MATCH = "postMatch",
6
- AUTO_WIN = "autoWin"
7
- }
@@ -1,7 +0,0 @@
1
- import { PipeTransform } from '@angular/core';
2
- import * as i0 from "@angular/core";
3
- export declare class NormalizeMatchStatePipe implements PipeTransform {
4
- transform: (match: import("@ethlete/types").MatchListView | null | undefined) => import("@ethlete/core").MatchStateType | null;
5
- static ɵfac: i0.ɵɵFactoryDeclaration<NormalizeMatchStatePipe, never>;
6
- static ɵpipe: i0.ɵɵPipeDeclaration<NormalizeMatchStatePipe, "etNormalizeMatchState", true>;
7
- }
@@ -1,3 +0,0 @@
1
- import { MatchListView } from '@ethlete/types';
2
- import { MatchStateType } from './normalize-match-state.constants';
3
- export declare const normalizeMatchState: (match: MatchListView | null | undefined) => MatchStateType | null;
@@ -1,2 +0,0 @@
1
- export * from './normalize-match-type.pipe';
2
- export * from './normalize-match-type.util';
@@ -1,7 +0,0 @@
1
- import { PipeTransform } from '@angular/core';
2
- import * as i0 from "@angular/core";
3
- export declare class NormalizeMatchTypePipe implements PipeTransform {
4
- transform: (matchType: import("@ethlete/types").StageType | null | undefined) => import("@ethlete/core").Translatable | null;
5
- static ɵfac: i0.ɵɵFactoryDeclaration<NormalizeMatchTypePipe, never>;
6
- static ɵpipe: i0.ɵɵPipeDeclaration<NormalizeMatchTypePipe, "etNormalizeMatchType", true>;
7
- }
@@ -1,3 +0,0 @@
1
- import { StageType } from '@ethlete/types';
2
- import { Translatable } from '../../types';
3
- export declare const normalizeMatchType: (matchType: StageType | null | undefined) => Translatable | null;
@@ -1,2 +0,0 @@
1
- export * from './to-array.pipe';
2
- export * from './to-array.util';
@@ -1,7 +0,0 @@
1
- import { PipeTransform } from '@angular/core';
2
- import * as i0 from "@angular/core";
3
- export declare class ToArrayPipe implements PipeTransform {
4
- transform: (value: number) => number[];
5
- static ɵfac: i0.ɵɵFactoryDeclaration<ToArrayPipe, never>;
6
- static ɵpipe: i0.ɵɵPipeDeclaration<ToArrayPipe, "toArray", true>;
7
- }
@@ -1,3 +0,0 @@
1
- import { TrackByFunction } from '@angular/core';
2
- export declare const toArray: (value: number) => number[];
3
- export declare const toArrayTrackByFn: TrackByFunction<number>;
@@ -1,27 +0,0 @@
1
- import { ElementRef } from '@angular/core';
2
- export declare const createPropHandlers: () => {
3
- classes: {
4
- remove: (tokens: string) => void;
5
- removeMany: (tokens: string[]) => void;
6
- has: (tokens: string) => boolean;
7
- push: (tokens: string, signal: import("@angular/core").Signal<unknown>) => void;
8
- pushMany: (map: Record<string, import("@angular/core").Signal<unknown>>) => void;
9
- };
10
- attributes: {
11
- remove: (tokens: string) => void;
12
- removeMany: (tokens: string[]) => void;
13
- has: (tokens: string) => boolean;
14
- push: (tokens: string, signal: import("@angular/core").Signal<unknown>) => void;
15
- pushMany: (map: Record<string, import("@angular/core").Signal<unknown>>) => void;
16
- };
17
- styles: {
18
- remove: (tokens: string) => void;
19
- removeMany: (tokens: string[]) => void;
20
- has: (tokens: string) => boolean;
21
- push: (tokens: string, signal: import("@angular/core").Signal<unknown>) => void;
22
- pushMany: (map: Record<string, import("@angular/core").Signal<unknown>>) => void;
23
- };
24
- id: string;
25
- elementRef: ElementRef<HTMLElement>;
26
- };
27
- export type PropHandlers = ReturnType<typeof createPropHandlers>;
@@ -1,54 +0,0 @@
1
- import { Signal } from '@angular/core';
2
- import { PropHandlers } from './create-prop-handlers';
3
- export type Props = Readonly<{
4
- attached: Signal<boolean>;
5
- attachedElements: PropsAttachedElements;
6
- }>;
7
- export interface PropsAttachedElements {
8
- first: Signal<HTMLElement | null>;
9
- firstId: Signal<string | null>;
10
- get(id: string): HTMLElement | null;
11
- }
12
- export interface PropsAttachedElementsInternal extends PropsAttachedElements {
13
- has: (id: string) => boolean;
14
- push: (id: string, element: HTMLElement) => void;
15
- remove: (id: string) => void;
16
- }
17
- export interface PropsInternal {
18
- single: boolean;
19
- name: string;
20
- bindId: boolean;
21
- attached: Signal<boolean>;
22
- attachedElements: PropsAttachedElementsInternal;
23
- classBindings: Record<string, Signal<unknown>> | null;
24
- attributeBindings: Record<string, Signal<unknown>> | null;
25
- styleBindings: Record<string, Signal<unknown>> | null;
26
- staticClassBindings: string[] | null;
27
- staticAttributeBindings: Record<string, unknown> | null;
28
- staticStyleBindings: Record<string, unknown> | null;
29
- attachEventListeners: ((context: {
30
- on: HTMLElement['addEventListener'];
31
- element: HTMLElement;
32
- }) => void) | null;
33
- }
34
- export interface CreatePropsOptions {
35
- name: string;
36
- bindId?: boolean;
37
- single?: boolean;
38
- classes?: Record<string, Signal<unknown>>;
39
- attributes?: Record<string, Signal<unknown>>;
40
- styles?: Record<string, Signal<unknown>>;
41
- staticClasses?: string[];
42
- staticAttributes?: Record<string, unknown>;
43
- staticStyles?: Record<string, unknown>;
44
- listeners?: (context: {
45
- on: HTMLElement['addEventListener'];
46
- element: HTMLElement;
47
- }) => void;
48
- }
49
- export declare const createProps: (props: CreatePropsOptions) => Props;
50
- export interface HostProps {
51
- props: Props;
52
- handlers: PropHandlers;
53
- }
54
- export declare const createHostProps: (props: CreatePropsOptions) => HostProps;
@@ -1,4 +0,0 @@
1
- export declare const createSetup: <T extends Record<string, unknown>>(config: {
2
- setupFn: (params: T) => void;
3
- this: ThisType<unknown>;
4
- }) => (params: T) => void;
@@ -1,11 +0,0 @@
1
- import { Signal, WritableSignal } from '@angular/core';
2
- export declare const createDependencyStash: <T extends Record<string, WritableSignal<unknown>>>(stash: T) => T & {
3
- provideSignal: <K extends keyof T>(data: {
4
- signal: Signal<ReturnType<T[K]>>;
5
- for: K;
6
- }) => void;
7
- provideValue: <K extends keyof T>(data: {
8
- value: ReturnType<T[K]>;
9
- for: K;
10
- }) => void;
11
- };
@@ -1,11 +0,0 @@
1
- export declare const createElementDictionary: () => {
2
- ids: import("@angular/core").Signal<string[]>;
3
- elements: import("@angular/core").Signal<HTMLElement[]>;
4
- has: (id: string) => boolean;
5
- get: (id: string) => HTMLElement | null;
6
- push: (id: string, element: HTMLElement) => void;
7
- remove: (id: string) => void;
8
- isEmpty: import("@angular/core").Signal<boolean>;
9
- firstElement: import("@angular/core").Signal<HTMLElement | null>;
10
- firstId: import("@angular/core").Signal<string | null>;
11
- };
@@ -1,8 +0,0 @@
1
- export * from './create-prop-handlers';
2
- export * from './create-props';
3
- export * from './create-setup';
4
- export * from './dependency-stash';
5
- export * from './element-dictionary';
6
- export * from './props-binding';
7
- export * from './props.directive';
8
- export * from './template-input';
@@ -1,12 +0,0 @@
1
- import { PropHandlers } from './create-prop-handlers';
2
- import { Props, PropsInternal } from './create-props';
3
- export interface BindPropsOptions {
4
- props: Props | PropsInternal;
5
- handlers: PropHandlers;
6
- }
7
- export declare const bindProps: (config: BindPropsOptions) => void;
8
- export interface UnbindPropsOptions {
9
- props: Props | PropsInternal;
10
- handlers: PropHandlers;
11
- }
12
- export declare const unbindProps: (config: UnbindPropsOptions) => void;
@@ -1,38 +0,0 @@
1
- import { DestroyRef } from '@angular/core';
2
- import { PropsInternal } from './create-props';
3
- import * as i0 from "@angular/core";
4
- export declare class PropsDirective {
5
- destroyRef: DestroyRef;
6
- props: import("@angular/core").InputSignalWithTransform<PropsInternal, Readonly<{
7
- attached: import("@angular/core").Signal<boolean>;
8
- attachedElements: import("./create-props").PropsAttachedElements;
9
- }>>;
10
- propHandlers: {
11
- classes: {
12
- remove: (tokens: string) => void;
13
- removeMany: (tokens: string[]) => void;
14
- has: (tokens: string) => boolean;
15
- push: (tokens: string, signal: import("@angular/core").Signal<unknown>) => void;
16
- pushMany: (map: Record<string, import("@angular/core").Signal<unknown>>) => void;
17
- };
18
- attributes: {
19
- remove: (tokens: string) => void;
20
- removeMany: (tokens: string[]) => void;
21
- has: (tokens: string) => boolean;
22
- push: (tokens: string, signal: import("@angular/core").Signal<unknown>) => void;
23
- pushMany: (map: Record<string, import("@angular/core").Signal<unknown>>) => void;
24
- };
25
- styles: {
26
- remove: (tokens: string) => void;
27
- removeMany: (tokens: string[]) => void;
28
- has: (tokens: string) => boolean;
29
- push: (tokens: string, signal: import("@angular/core").Signal<unknown>) => void;
30
- pushMany: (map: Record<string, import("@angular/core").Signal<unknown>>) => void;
31
- };
32
- id: string;
33
- elementRef: import("@angular/core").ElementRef<HTMLElement>;
34
- };
35
- constructor();
36
- static ɵfac: i0.ɵɵFactoryDeclaration<PropsDirective, never>;
37
- static ɵdir: i0.ɵɵDirectiveDeclaration<PropsDirective, "[etProps]", never, { "props": { "alias": "etProps"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
38
- }
@@ -1,30 +0,0 @@
1
- import { ComponentType } from '@angular/cdk/portal';
2
- import { Injector, Signal, TemplateRef } from '@angular/core';
3
- export type AnyTemplateType = string | TemplateRef<unknown> | ComponentType<unknown> | TemplateRefWithContext | ComponentTypeWithInputs;
4
- export type TemplateRefWithContext<T = Record<string, unknown> | undefined, J = unknown> = {
5
- template: TemplateRef<J>;
6
- context?: T;
7
- injector?: Injector;
8
- };
9
- export type ComponentTypeWithInputs<T = Record<string, unknown> | undefined, J = unknown> = {
10
- component: ComponentType<J>;
11
- inputs?: T;
12
- injector?: Injector;
13
- };
14
- export type StringTemplate = {
15
- type: 'string';
16
- value: string;
17
- };
18
- export type NgTemplateTemplate = {
19
- type: 'template';
20
- value: TemplateRef<unknown>;
21
- context?: Record<string, unknown>;
22
- injector: Injector | null;
23
- };
24
- export type ComponentTemplate = {
25
- type: 'component';
26
- value: ComponentType<unknown>;
27
- inputs?: Record<string, unknown>;
28
- injector: Injector | null;
29
- };
30
- export declare const templateComputed: (templateSignal: Signal<AnyTemplateType | null>) => Signal<StringTemplate | NgTemplateTemplate | ComponentTemplate | null>;
@@ -1,20 +0,0 @@
1
- import { ElementRef, OnDestroy } from '@angular/core';
2
- import { Observable } from 'rxjs';
3
- import * as i0 from "@angular/core";
4
- export declare class ClickObserverFactory {
5
- create(): Observable<MouseEvent>;
6
- static ɵfac: i0.ɵɵFactoryDeclaration<ClickObserverFactory, never>;
7
- static ɵprov: i0.ɵɵInjectableDeclaration<ClickObserverFactory>;
8
- }
9
- export declare class ClickObserverService implements OnDestroy {
10
- private _clickObserverFactory;
11
- private _observedElements;
12
- ngOnDestroy(): void;
13
- observe(element: Element): Observable<MouseEvent>;
14
- observe(element: ElementRef<Element>): Observable<MouseEvent>;
15
- private _observeElement;
16
- private _unobserveElement;
17
- private _cleanupObserver;
18
- static ɵfac: i0.ɵɵFactoryDeclaration<ClickObserverService, never>;
19
- static ɵprov: i0.ɵɵInjectableDeclaration<ClickObserverService>;
20
- }
@@ -1,20 +0,0 @@
1
- import { ElementRef, OnDestroy } from '@angular/core';
2
- import { Observable } from 'rxjs';
3
- import * as i0 from "@angular/core";
4
- export declare class MutationObserverFactory {
5
- create(callback: MutationCallback): MutationObserver | null;
6
- static ɵfac: i0.ɵɵFactoryDeclaration<MutationObserverFactory, never>;
7
- static ɵprov: i0.ɵɵInjectableDeclaration<MutationObserverFactory>;
8
- }
9
- export declare class ContentObserverService implements OnDestroy {
10
- private _mutationObserverFactory;
11
- private _observedElements;
12
- ngOnDestroy(): void;
13
- observe(element: Element): Observable<MutationRecord[]>;
14
- observe(element: ElementRef<Element>): Observable<MutationRecord[]>;
15
- private _observeElement;
16
- private _unobserveElement;
17
- private _cleanupObserver;
18
- static ɵfac: i0.ɵɵFactoryDeclaration<ContentObserverService, never>;
19
- static ɵprov: i0.ɵɵInjectableDeclaration<ContentObserverService>;
20
- }
@@ -1,11 +0,0 @@
1
- import * as i0 from "@angular/core";
2
- export declare class FocusVisibleService {
3
- private readonly _document;
4
- private _hadKeyboardEvent;
5
- get isFocusVisible(): boolean;
6
- constructor();
7
- onKeyDown(e: KeyboardEvent): void;
8
- onPointerDown(): void;
9
- static ɵfac: i0.ɵɵFactoryDeclaration<FocusVisibleService, never>;
10
- static ɵprov: i0.ɵɵInjectableDeclaration<FocusVisibleService>;
11
- }
@@ -1,8 +0,0 @@
1
- export * from './click-observer.service';
2
- export * from './content-observer.service';
3
- export * from './focus-visible.service';
4
- export * from './intersection-observer.service';
5
- export * from './resize-observer.service';
6
- export * from './router-state.service';
7
- export * from './viewport.service';
8
- export * from './viewport.types';
@@ -1,20 +0,0 @@
1
- import { ElementRef, OnDestroy } from '@angular/core';
2
- import { Observable } from 'rxjs';
3
- import * as i0 from "@angular/core";
4
- export declare class IntersectionObserverFactory {
5
- create(callback: IntersectionObserverCallback): IntersectionObserver | null;
6
- static ɵfac: i0.ɵɵFactoryDeclaration<IntersectionObserverFactory, never>;
7
- static ɵprov: i0.ɵɵInjectableDeclaration<IntersectionObserverFactory>;
8
- }
9
- export declare class IntersectionObserverService implements OnDestroy {
10
- private _intersectionObserverFactory;
11
- private _observedElements;
12
- ngOnDestroy(): void;
13
- observe(element: Element): Observable<IntersectionObserverEntry[]>;
14
- observe(element: ElementRef<Element>): Observable<IntersectionObserverEntry[]>;
15
- private _observeElement;
16
- private _unobserveElement;
17
- private _cleanupObserver;
18
- static ɵfac: i0.ɵɵFactoryDeclaration<IntersectionObserverService, never>;
19
- static ɵprov: i0.ɵɵInjectableDeclaration<IntersectionObserverService>;
20
- }