@ethlete/core 0.2.0-next.2 → 0.2.0-next.21

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 (146) hide show
  1. package/esm2020/lib/components/public-api.mjs +2 -0
  2. package/esm2020/lib/components/structured-data/public-api.mjs +2 -0
  3. package/esm2020/lib/components/structured-data/structured-data.component.mjs +37 -0
  4. package/esm2020/lib/directives/click-outside/click-outside.directive.mjs +37 -0
  5. package/esm2020/lib/directives/click-outside/public-api.mjs +2 -0
  6. package/esm2020/lib/directives/cursor-drag-scroll/cursor-drag-scroll.constants.mjs +3 -0
  7. package/esm2020/lib/directives/cursor-drag-scroll/cursor-drag-scroll.directive.mjs +147 -0
  8. package/esm2020/lib/directives/cursor-drag-scroll/public-api.mjs +2 -0
  9. package/esm2020/lib/directives/let/let.directive.mjs +8 -8
  10. package/esm2020/lib/directives/observe-content/observe-content.directive.mjs +11 -11
  11. package/esm2020/lib/directives/observe-resize/observe-resize.directive.mjs +11 -12
  12. package/esm2020/lib/directives/observe-scroll-state/observe-scroll-state.constants.mjs +3 -0
  13. package/esm2020/lib/directives/observe-scroll-state/observe-scroll-state.directive.mjs +171 -0
  14. package/esm2020/lib/directives/observe-scroll-state/observe-scroll-state.types.mjs +2 -0
  15. package/esm2020/lib/directives/observe-scroll-state/public-api.mjs +3 -0
  16. package/esm2020/lib/directives/public-api.mjs +10 -3
  17. package/esm2020/lib/directives/repeat/repeat.directive.mjs +10 -11
  18. package/esm2020/lib/directives/scroll-observer-first-element/index.mjs +2 -0
  19. package/esm2020/lib/directives/scroll-observer-first-element/public-api.mjs +2 -0
  20. package/esm2020/lib/directives/scroll-observer-first-element/scroll-observer-first-element.directive.mjs +31 -0
  21. package/esm2020/lib/directives/scroll-observer-ignore-target/index.mjs +2 -0
  22. package/esm2020/lib/directives/scroll-observer-ignore-target/public-api.mjs +2 -0
  23. package/esm2020/lib/directives/scroll-observer-ignore-target/scroll-observer-ignore-target.directive.mjs +18 -0
  24. package/esm2020/lib/directives/scroll-observer-last-element/index.mjs +2 -0
  25. package/esm2020/lib/directives/scroll-observer-last-element/public-api.mjs +2 -0
  26. package/esm2020/lib/directives/scroll-observer-last-element/scroll-observer-last-element.directive.mjs +34 -0
  27. package/esm2020/lib/directives/seo/public-api.mjs +5 -0
  28. package/esm2020/lib/directives/seo/seo.directive.constants.mjs +3 -0
  29. package/esm2020/lib/directives/seo/seo.directive.mjs +166 -0
  30. package/esm2020/lib/directives/seo/seo.directive.types.mjs +2 -0
  31. package/esm2020/lib/directives/seo/seo.directive.utils.mjs +7 -0
  32. package/esm2020/lib/pipes/normalize-game-result-type/normalize-game-result-type.pipe.mjs +15 -0
  33. package/esm2020/lib/pipes/normalize-game-result-type/normalize-game-result-type.types.mjs +2 -0
  34. package/esm2020/lib/pipes/normalize-game-result-type/normalize-game-result-type.util.mjs +34 -0
  35. package/esm2020/lib/pipes/normalize-game-result-type/public-api.mjs +4 -0
  36. package/esm2020/lib/pipes/normalize-match-participants/normalize-match-participants.pipe.mjs +15 -0
  37. package/esm2020/lib/pipes/normalize-match-participants/normalize-match-participants.types.mjs +2 -0
  38. package/esm2020/lib/pipes/normalize-match-participants/normalize-match-participants.util.mjs +47 -0
  39. package/esm2020/lib/pipes/normalize-match-participants/public-api.mjs +4 -0
  40. package/esm2020/lib/pipes/normalize-match-score/normalize-match-score.pipe.mjs +15 -0
  41. package/esm2020/lib/pipes/normalize-match-score/normalize-match-score.types.mjs +2 -0
  42. package/esm2020/lib/pipes/normalize-match-score/normalize-match-score.util.mjs +126 -0
  43. package/esm2020/lib/pipes/normalize-match-score/public-api.mjs +4 -0
  44. package/esm2020/lib/pipes/normalize-match-state/index.mjs +2 -0
  45. package/esm2020/lib/pipes/normalize-match-state/normalize-match-state.constants.mjs +2 -0
  46. package/esm2020/lib/pipes/normalize-match-state/normalize-match-state.pipe.mjs +15 -0
  47. package/esm2020/lib/pipes/normalize-match-state/normalize-match-state.util.mjs +19 -0
  48. package/esm2020/lib/pipes/normalize-match-state/public-api.mjs +4 -0
  49. package/esm2020/lib/pipes/normalize-match-type/normalize-match-type.pipe.mjs +15 -0
  50. package/esm2020/lib/pipes/normalize-match-type/normalize-match-type.util.mjs +38 -0
  51. package/esm2020/lib/pipes/normalize-match-type/public-api.mjs +3 -0
  52. package/esm2020/lib/pipes/public-api.mjs +6 -1
  53. package/esm2020/lib/pipes/to-array/to-array.pipe.mjs +3 -3
  54. package/esm2020/lib/public-api.mjs +2 -1
  55. package/esm2020/lib/services/click-observer.service.mjs +73 -0
  56. package/esm2020/lib/services/content-observer.service.mjs +6 -6
  57. package/esm2020/lib/services/destroy.service.mjs +19 -0
  58. package/esm2020/lib/services/focus-visible.service.mjs +7 -7
  59. package/esm2020/lib/services/public-api.mjs +7 -4
  60. package/esm2020/lib/services/resize-observer.service.mjs +6 -6
  61. package/esm2020/lib/services/router-state.service.mjs +115 -0
  62. package/esm2020/lib/services/viewport.service.mjs +16 -16
  63. package/esm2020/lib/types/angular.types.mjs +36 -2
  64. package/esm2020/lib/types/i18n.types.mjs +2 -0
  65. package/esm2020/lib/types/public-api.mjs +3 -2
  66. package/esm2020/lib/utils/clone.util.mjs +78 -0
  67. package/esm2020/lib/utils/cookie.util.mjs +48 -0
  68. package/esm2020/lib/utils/equal.util.mjs +118 -0
  69. package/esm2020/lib/utils/index.mjs +2 -0
  70. package/esm2020/lib/utils/public-api.mjs +7 -2
  71. package/esm2020/lib/utils/reactive-binding.util.mjs +111 -0
  72. package/esm2020/lib/utils/scrollable.utils.mjs +5 -0
  73. package/fesm2015/ethlete-core.mjs +1821 -289
  74. package/fesm2015/ethlete-core.mjs.map +1 -1
  75. package/fesm2020/ethlete-core.mjs +1818 -289
  76. package/fesm2020/ethlete-core.mjs.map +1 -1
  77. package/lib/components/public-api.d.ts +1 -0
  78. package/lib/components/structured-data/public-api.d.ts +1 -0
  79. package/lib/components/structured-data/structured-data.component.d.ts +11 -0
  80. package/lib/directives/click-outside/click-outside.directive.d.ts +12 -0
  81. package/lib/directives/click-outside/public-api.d.ts +1 -0
  82. package/lib/directives/cursor-drag-scroll/cursor-drag-scroll.constants.d.ts +2 -0
  83. package/lib/directives/cursor-drag-scroll/cursor-drag-scroll.directive.d.ts +27 -0
  84. package/lib/directives/cursor-drag-scroll/public-api.d.ts +1 -0
  85. package/lib/directives/let/let.directive.d.ts +1 -1
  86. package/lib/directives/observe-content/observe-content.directive.d.ts +2 -4
  87. package/lib/directives/observe-resize/observe-resize.directive.d.ts +3 -5
  88. package/lib/directives/observe-scroll-state/observe-scroll-state.constants.d.ts +3 -0
  89. package/lib/directives/observe-scroll-state/observe-scroll-state.directive.d.ts +31 -0
  90. package/lib/directives/observe-scroll-state/observe-scroll-state.types.d.ts +6 -0
  91. package/lib/directives/observe-scroll-state/public-api.d.ts +3 -0
  92. package/lib/directives/public-api.d.ts +9 -2
  93. package/lib/directives/repeat/repeat.directive.d.ts +3 -4
  94. package/lib/directives/scroll-observer-first-element/index.d.ts +1 -0
  95. package/lib/directives/scroll-observer-first-element/public-api.d.ts +1 -0
  96. package/lib/directives/scroll-observer-first-element/scroll-observer-first-element.directive.d.ts +10 -0
  97. package/lib/directives/scroll-observer-ignore-target/index.d.ts +1 -0
  98. package/lib/directives/scroll-observer-ignore-target/public-api.d.ts +1 -0
  99. package/lib/directives/scroll-observer-ignore-target/scroll-observer-ignore-target.directive.d.ts +6 -0
  100. package/lib/directives/scroll-observer-last-element/index.d.ts +1 -0
  101. package/lib/directives/scroll-observer-last-element/public-api.d.ts +1 -0
  102. package/lib/directives/scroll-observer-last-element/scroll-observer-last-element.directive.d.ts +10 -0
  103. package/lib/directives/seo/public-api.d.ts +4 -0
  104. package/lib/directives/seo/seo.directive.constants.d.ts +3 -0
  105. package/lib/directives/seo/seo.directive.d.ts +21 -0
  106. package/lib/directives/seo/seo.directive.types.d.ts +51 -0
  107. package/lib/directives/seo/seo.directive.utils.d.ts +2 -0
  108. package/lib/pipes/normalize-game-result-type/normalize-game-result-type.pipe.d.ts +7 -0
  109. package/lib/pipes/normalize-game-result-type/normalize-game-result-type.types.d.ts +4 -0
  110. package/lib/pipes/normalize-game-result-type/normalize-game-result-type.util.d.ts +2 -0
  111. package/lib/pipes/normalize-game-result-type/public-api.d.ts +3 -0
  112. package/lib/pipes/normalize-match-participants/normalize-match-participants.pipe.d.ts +7 -0
  113. package/lib/pipes/normalize-match-participants/normalize-match-participants.types.d.ts +21 -0
  114. package/lib/pipes/normalize-match-participants/normalize-match-participants.util.d.ts +4 -0
  115. package/lib/pipes/normalize-match-participants/public-api.d.ts +3 -0
  116. package/lib/pipes/normalize-match-score/normalize-match-score.pipe.d.ts +7 -0
  117. package/lib/pipes/normalize-match-score/normalize-match-score.types.d.ts +12 -0
  118. package/lib/pipes/normalize-match-score/normalize-match-score.util.d.ts +27 -0
  119. package/lib/pipes/normalize-match-score/public-api.d.ts +3 -0
  120. package/lib/pipes/normalize-match-state/index.d.ts +1 -0
  121. package/lib/pipes/normalize-match-state/normalize-match-state.constants.d.ts +7 -0
  122. package/lib/pipes/normalize-match-state/normalize-match-state.pipe.d.ts +7 -0
  123. package/lib/pipes/normalize-match-state/normalize-match-state.util.d.ts +3 -0
  124. package/lib/pipes/normalize-match-state/public-api.d.ts +3 -0
  125. package/lib/pipes/normalize-match-type/normalize-match-type.pipe.d.ts +7 -0
  126. package/lib/pipes/normalize-match-type/normalize-match-type.util.d.ts +3 -0
  127. package/lib/pipes/normalize-match-type/public-api.d.ts +2 -0
  128. package/lib/pipes/public-api.d.ts +5 -0
  129. package/lib/public-api.d.ts +1 -0
  130. package/lib/services/click-observer.service.d.ts +21 -0
  131. package/lib/services/destroy.service.d.ts +9 -0
  132. package/lib/services/public-api.d.ts +6 -3
  133. package/lib/services/router-state.service.d.ts +40 -0
  134. package/lib/services/viewport.types.d.ts +1 -1
  135. package/lib/types/angular.types.d.ts +14 -1
  136. package/lib/types/i18n.types.d.ts +4 -0
  137. package/lib/types/public-api.d.ts +2 -1
  138. package/lib/types/viewport.types.d.ts +2 -2
  139. package/lib/utils/clone.util.d.ts +15 -0
  140. package/lib/utils/cookie.util.d.ts +5 -0
  141. package/lib/utils/equal.util.d.ts +27 -0
  142. package/lib/utils/index.d.ts +1 -0
  143. package/lib/utils/public-api.d.ts +6 -1
  144. package/lib/utils/reactive-binding.util.d.ts +19 -0
  145. package/lib/utils/scrollable.utils.d.ts +1 -0
  146. package/package.json +9 -5
@@ -1,9 +1,8 @@
1
1
  import { BooleanInput, NumberInput } from '@angular/cdk/coercion';
2
- import { AfterContentInit, ElementRef, EventEmitter, NgZone, OnDestroy } from '@angular/core';
3
- import { ResizeObserverService } from '../../services';
2
+ import { AfterContentInit, EventEmitter, OnDestroy } from '@angular/core';
4
3
  import * as i0 from "@angular/core";
5
4
  export declare class ObserveResizeDirective implements AfterContentInit, OnDestroy {
6
- private _contentObserver;
5
+ private _resizeObserver;
7
6
  private _elementRef;
8
7
  private _ngZone;
9
8
  readonly event: EventEmitter<ResizeObserverEntry[]>;
@@ -14,11 +13,10 @@ export declare class ObserveResizeDirective implements AfterContentInit, OnDestr
14
13
  set debounce(value: NumberInput);
15
14
  private _debounce;
16
15
  private _currentSubscription;
17
- constructor(_contentObserver: ResizeObserverService, _elementRef: ElementRef<HTMLElement>, _ngZone: NgZone);
18
16
  ngAfterContentInit(): void;
19
17
  ngOnDestroy(): void;
20
18
  private _subscribe;
21
19
  private _unsubscribe;
22
20
  static ɵfac: i0.ɵɵFactoryDeclaration<ObserveResizeDirective, never>;
23
- static ɵdir: i0.ɵɵDirectiveDeclaration<ObserveResizeDirective, "[etObserveResize]", ["etObserveResize"], { "disabled": "etObserveResizeDisabled"; "debounce": "etObserveResizeDebounce"; }, { "event": "etObserveResize"; }, never, never, true>;
21
+ static ɵdir: i0.ɵɵDirectiveDeclaration<ObserveResizeDirective, "[etObserveResize]", ["etObserveResize"], { "disabled": "etObserveResizeDisabled"; "debounce": "etObserveResizeDebounce"; }, { "event": "etObserveResize"; }, never, never, true, never>;
24
22
  }
@@ -0,0 +1,3 @@
1
+ import { InjectionToken } from '@angular/core';
2
+ import { ObserveScrollStateDirective } from './observe-scroll-state.directive';
3
+ export declare const OBSERVE_SCROLL_STATE: InjectionToken<ObserveScrollStateDirective>;
@@ -0,0 +1,31 @@
1
+ import { NumberInput } from '@angular/cdk/coercion';
2
+ import { EventEmitter, OnDestroy, OnInit } from '@angular/core';
3
+ import { ScrollObserverScrollState } from './observe-scroll-state.types';
4
+ import * as i0 from "@angular/core";
5
+ export declare class ObserveScrollStateDirective implements OnInit, OnDestroy {
6
+ private readonly _destroy$;
7
+ private readonly _elementRef;
8
+ private readonly _contentObserverService;
9
+ private readonly _resizeObserverService;
10
+ private readonly _observedChildren;
11
+ private get _firstCurrentChild();
12
+ private get _lastCurrentChild();
13
+ get observerRootMargin(): number;
14
+ set observerRootMargin(value: NumberInput);
15
+ private _rootMargin;
16
+ get observerThreshold(): number;
17
+ set observerThreshold(value: NumberInput);
18
+ private _threshold;
19
+ private _intersectionObserver;
20
+ etObserveScrollState: EventEmitter<ScrollObserverScrollState>;
21
+ ngOnInit(): void;
22
+ ngOnDestroy(): void;
23
+ private _checkChildren;
24
+ private _initiateIntersectionObserver;
25
+ private _observeChild;
26
+ private _unobserveChild;
27
+ private _clearIntersectionObserver;
28
+ private _getNonIgnoredChild;
29
+ static ɵfac: i0.ɵɵFactoryDeclaration<ObserveScrollStateDirective, never>;
30
+ static ɵdir: i0.ɵɵDirectiveDeclaration<ObserveScrollStateDirective, "[etObserveScrollState]", ["etObserveScrollState"], { "observerRootMargin": "observerRootMargin"; "observerThreshold": "observerThreshold"; }, { "etObserveScrollState": "etObserveScrollState"; }, never, never, true, never>;
31
+ }
@@ -0,0 +1,6 @@
1
+ export interface ScrollObserverScrollState {
2
+ isAtStart: boolean;
3
+ isAtEnd: boolean;
4
+ canScroll: boolean;
5
+ }
6
+ export type ObservedScrollableChild = 'first' | 'last';
@@ -0,0 +1,3 @@
1
+ export * from './observe-scroll-state.directive';
2
+ export { ScrollObserverScrollState } from './observe-scroll-state.types';
3
+ export * from './observe-scroll-state.constants';
@@ -1,4 +1,11 @@
1
+ export * from './click-outside/public-api';
2
+ export * from './cursor-drag-scroll/public-api';
1
3
  export * from './let/public-api';
2
- export * from './repeat/public-api';
3
- export * from './observe-resize/public-api';
4
4
  export * from './observe-content/public-api';
5
+ export * from './observe-resize/public-api';
6
+ export * from './observe-scroll-state/public-api';
7
+ export * from './repeat/public-api';
8
+ export * from './scroll-observer-first-element/public-api';
9
+ export * from './scroll-observer-ignore-target/public-api';
10
+ export * from './scroll-observer-last-element/public-api';
11
+ export * from './seo/public-api';
@@ -1,15 +1,14 @@
1
1
  import { NumberInput } from '@angular/cdk/coercion';
2
- import { OnInit, TemplateRef, ViewContainerRef } from '@angular/core';
2
+ import { TemplateRef, ViewContainerRef } from '@angular/core';
3
3
  import * as i0 from "@angular/core";
4
- export declare class RepeatDirective implements OnInit {
4
+ export declare class RepeatDirective {
5
5
  private _mainTemplateRef;
6
6
  private _viewContainerRef;
7
7
  get repeatCount(): number;
8
8
  set repeatCount(value: NumberInput);
9
9
  private _repeatCount;
10
10
  constructor(_mainTemplateRef: TemplateRef<unknown>, _viewContainerRef: ViewContainerRef);
11
- ngOnInit(): void;
12
11
  private _render;
13
12
  static ɵfac: i0.ɵɵFactoryDeclaration<RepeatDirective, never>;
14
- static ɵdir: i0.ɵɵDirectiveDeclaration<RepeatDirective, "[etRepeat]", never, { "repeatCount": "etRepeat"; }, {}, never, never, true>;
13
+ static ɵdir: i0.ɵɵDirectiveDeclaration<RepeatDirective, "[etRepeat]", never, { "repeatCount": "etRepeat"; }, {}, never, never, true, never>;
15
14
  }
@@ -0,0 +1 @@
1
+ export * from './public-api';
@@ -0,0 +1 @@
1
+ export * from './scroll-observer-first-element.directive';
@@ -0,0 +1,10 @@
1
+ import { BooleanInput } from '@angular/cdk/coercion';
2
+ import * as i0 from "@angular/core";
3
+ export declare const SCROLL_OBSERVER_FIRST_ELEMENT_CLASS = "et-scroll-observer-first-element";
4
+ export declare class ScrollObserverFirstElementDirective {
5
+ get isFirstElement(): boolean;
6
+ set isFirstElement(value: BooleanInput);
7
+ private _isFirstElement;
8
+ static ɵfac: i0.ɵɵFactoryDeclaration<ScrollObserverFirstElementDirective, never>;
9
+ static ɵdir: i0.ɵɵDirectiveDeclaration<ScrollObserverFirstElementDirective, "[etScrollObserverFirstElement]", never, { "isFirstElement": "etScrollObserverFirstElement"; }, {}, never, never, true, never>;
10
+ }
@@ -0,0 +1 @@
1
+ export * from './public-api';
@@ -0,0 +1 @@
1
+ export * from './scroll-observer-ignore-target.directive';
@@ -0,0 +1,6 @@
1
+ import * as i0 from "@angular/core";
2
+ export declare const SCROLL_OBSERVER_IGNORE_TARGET_CLASS = "et-scroll-observer-ignore-target";
3
+ export declare class ScrollObserverIgnoreTargetDirective {
4
+ static ɵfac: i0.ɵɵFactoryDeclaration<ScrollObserverIgnoreTargetDirective, never>;
5
+ static ɵdir: i0.ɵɵDirectiveDeclaration<ScrollObserverIgnoreTargetDirective, "[etScrollObserverIgnoreTarget]", never, {}, {}, never, never, true, never>;
6
+ }
@@ -0,0 +1 @@
1
+ export * from './public-api';
@@ -0,0 +1 @@
1
+ export * from './scroll-observer-last-element.directive';
@@ -0,0 +1,10 @@
1
+ import { BooleanInput } from '@angular/cdk/coercion';
2
+ import * as i0 from "@angular/core";
3
+ export declare const SCROLL_OBSERVER_LAST_ELEMENT_CLASS = "et-scroll-observer-last-element";
4
+ export declare class ScrollObserverLastElementDirective {
5
+ get isLastElement(): boolean;
6
+ set isLastElement(value: BooleanInput);
7
+ private _isLastElement;
8
+ static ɵfac: i0.ɵɵFactoryDeclaration<ScrollObserverLastElementDirective, never>;
9
+ static ɵdir: i0.ɵɵDirectiveDeclaration<ScrollObserverLastElementDirective, "[etScrollObserverLastElement]", never, { "isLastElement": "etScrollObserverLastElement"; }, {}, never, never, true, never>;
10
+ }
@@ -0,0 +1,4 @@
1
+ export * from './seo.directive';
2
+ export * from './seo.directive.constants';
3
+ export * from './seo.directive.types';
4
+ export * from './seo.directive.utils';
@@ -0,0 +1,3 @@
1
+ import { InjectionToken } from '@angular/core';
2
+ import { SeoDirective } from './seo.directive';
3
+ export declare const SEO_DIRECTIVE_TOKEN: InjectionToken<SeoDirective>;
@@ -0,0 +1,21 @@
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
+ }
@@ -0,0 +1,51 @@
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
+ }
@@ -0,0 +1,2 @@
1
+ import { SeoConfig } from './seo.directive.types';
2
+ export declare const mergeSeoConfig: (config: SeoConfig, parentConfig: SeoConfig) => SeoConfig;
@@ -0,0 +1,7 @@
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
+ }
@@ -0,0 +1,4 @@
1
+ import { Translatable } from '../../types';
2
+ export interface NormalizedGameResultType extends Translatable {
3
+ shortCode: string;
4
+ }
@@ -0,0 +1,2 @@
1
+ import { NormalizedGameResultType } from './normalize-game-result-type.types';
2
+ export declare const normalizeGameResultType: (type: string | null) => NormalizedGameResultType | null;
@@ -0,0 +1,3 @@
1
+ export * from './normalize-game-result-type.pipe';
2
+ export * from './normalize-game-result-type.types';
3
+ export * from './normalize-game-result-type.util';
@@ -0,0 +1,7 @@
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
+ }
@@ -0,0 +1,21 @@
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 {};
@@ -0,0 +1,4 @@
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;
@@ -0,0 +1,3 @@
1
+ export * from './normalize-match-participants.pipe';
2
+ export * from './normalize-match-participants.types';
3
+ export * from './normalize-match-participants.util';
@@ -0,0 +1,7 @@
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
+ }
@@ -0,0 +1,12 @@
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
+ }
@@ -0,0 +1,27 @@
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;
@@ -0,0 +1,3 @@
1
+ export * from './normalize-match-score.pipe';
2
+ export * from './normalize-match-score.types';
3
+ export * from './normalize-match-score.util';
@@ -0,0 +1 @@
1
+ export * from './public-api';
@@ -0,0 +1,7 @@
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
+ }
@@ -0,0 +1,7 @@
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
+ }
@@ -0,0 +1,3 @@
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;
@@ -0,0 +1,3 @@
1
+ export * from './normalize-match-state.constants';
2
+ export * from './normalize-match-state.pipe';
3
+ export * from './normalize-match-state.util';
@@ -0,0 +1,7 @@
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
+ }
@@ -0,0 +1,3 @@
1
+ import { StageType } from '@ethlete/types';
2
+ import { Translatable } from '../../types';
3
+ export declare const normalizeMatchType: (matchType: StageType | null | undefined) => Translatable | null;
@@ -0,0 +1,2 @@
1
+ export * from './normalize-match-type.pipe';
2
+ export * from './normalize-match-type.util';
@@ -1 +1,6 @@
1
+ export * from './normalize-game-result-type/public-api';
2
+ export * from './normalize-match-participants/public-api';
3
+ export * from './normalize-match-score/public-api';
4
+ export * from './normalize-match-state/public-api';
5
+ export * from './normalize-match-type/public-api';
1
6
  export * from './to-array/public-api';
@@ -1,3 +1,4 @@
1
+ export * from './components/public-api';
1
2
  export * from './constants/public-api';
2
3
  export * from './decorators/public-api';
3
4
  export * from './directives/public-api';
@@ -0,0 +1,21 @@
1
+ import { OnDestroy, ElementRef } 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
+ constructor(_clickObserverFactory: ClickObserverFactory);
13
+ ngOnDestroy(): void;
14
+ observe(element: Element): Observable<MouseEvent>;
15
+ observe(element: ElementRef<Element>): Observable<MouseEvent>;
16
+ private _observeElement;
17
+ private _unobserveElement;
18
+ private _cleanupObserver;
19
+ static ɵfac: i0.ɵɵFactoryDeclaration<ClickObserverService, never>;
20
+ static ɵprov: i0.ɵɵInjectableDeclaration<ClickObserverService>;
21
+ }
@@ -0,0 +1,9 @@
1
+ import { OnDestroy } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ export declare class DestroyService implements OnDestroy {
4
+ private readonly _destroy$;
5
+ readonly destroy$: import("rxjs").Observable<boolean>;
6
+ ngOnDestroy(): void;
7
+ static ɵfac: i0.ɵɵFactoryDeclaration<DestroyService, never>;
8
+ static ɵprov: i0.ɵɵInjectableDeclaration<DestroyService>;
9
+ }
@@ -1,5 +1,8 @@
1
- export * from './viewport.service';
2
- export * from './viewport.types';
1
+ export * from './click-observer.service';
2
+ export * from './content-observer.service';
3
+ export * from './destroy.service';
3
4
  export * from './focus-visible.service';
4
5
  export * from './resize-observer.service';
5
- export * from './content-observer.service';
6
+ export * from './router-state.service';
7
+ export * from './viewport.service';
8
+ export * from './viewport.types';
@@ -0,0 +1,40 @@
1
+ import { Data, Params } from '@angular/router';
2
+ import { Observable } from 'rxjs';
3
+ import * as i0 from "@angular/core";
4
+ export declare const routerDisableScrollTop: (config?: {
5
+ asReturnRoute?: boolean;
6
+ }) => {
7
+ disableScrollTop: boolean;
8
+ disableScrollTopAsReturnRoute?: undefined;
9
+ } | {
10
+ disableScrollTopAsReturnRoute: boolean;
11
+ disableScrollTop?: undefined;
12
+ };
13
+ export declare class RouterStateService {
14
+ private _isScrollTopOnNavigationEnabled;
15
+ private readonly _router;
16
+ private readonly _route$;
17
+ private readonly _state$;
18
+ get route$(): Observable<string>;
19
+ get state$(): Observable<{
20
+ data: Data;
21
+ pathParams: Params;
22
+ queryParams: Params;
23
+ title: string | null;
24
+ fragment: string | null;
25
+ }>;
26
+ constructor();
27
+ enableScrollEnhancements(config?: {
28
+ scrollElement?: HTMLElement;
29
+ queryParamTriggerList?: string[];
30
+ fragment?: {
31
+ enabled?: boolean;
32
+ smooth?: boolean;
33
+ };
34
+ }): void;
35
+ selectQueryParam<T = string | undefined>(key: string): Observable<T>;
36
+ selectPathParam<T = string | undefined>(key: string): Observable<T>;
37
+ selectData<T = unknown>(key: string): Observable<T>;
38
+ static ɵfac: i0.ɵɵFactoryDeclaration<RouterStateService, never>;
39
+ static ɵprov: i0.ɵɵInjectableDeclaration<RouterStateService>;
40
+ }
@@ -1,5 +1,5 @@
1
1
  import { Breakpoint } from '../types';
2
- export declare type BuildMediaQueryOptions = {
2
+ export type BuildMediaQueryOptions = {
3
3
  min?: number | Breakpoint;
4
4
  max?: number | Breakpoint;
5
5
  };
@@ -1,3 +1,16 @@
1
- export declare type NgClassType = string | string[] | Set<string> | {
1
+ import { QueryList } from '@angular/core';
2
+ import { Observable } from 'rxjs';
3
+ export type NgClassType = string | string[] | Set<string> | {
2
4
  [klass: string]: any;
3
5
  } | null | undefined;
6
+ export declare class TypedQueryList<T> extends QueryList<T | undefined> {
7
+ [Symbol.iterator]: () => Iterator<T>;
8
+ get changes(): Observable<TypedQueryList<T>>;
9
+ toArray(): T[];
10
+ forEach(fn: (item: T, index: number, array: T[]) => void): void;
11
+ filter(fn: (item: T, index: number, array: T[]) => boolean): T[];
12
+ map<U>(fn: (item: T, index: number, array: T[]) => U): U[];
13
+ reduce<U>(fn: (previousValue: U, currentValue: T, currentIndex: number, array: T[]) => U, initialValue: U): U;
14
+ some(fn: (value: T, index: number, array: T[]) => boolean): boolean;
15
+ find(fn: (value: T, index: number, array: T[]) => boolean): T | undefined;
16
+ }
@@ -0,0 +1,4 @@
1
+ export interface Translatable {
2
+ i18n: string;
3
+ text: string;
4
+ }
@@ -1,2 +1,3 @@
1
- export * from './viewport.types';
2
1
  export * from './angular.types';
2
+ export * from './i18n.types';
3
+ export * from './viewport.types';
@@ -1,4 +1,4 @@
1
- export declare type Vec2 = [number, number];
1
+ export type Vec2 = [number, number];
2
2
  export interface ViewportConfig {
3
3
  breakpoints: {
4
4
  xs: Vec2;
@@ -9,4 +9,4 @@ export interface ViewportConfig {
9
9
  '2xl': Vec2;
10
10
  };
11
11
  }
12
- export declare type Breakpoint = keyof ViewportConfig['breakpoints'];
12
+ export type Breakpoint = keyof ViewportConfig['breakpoints'];
@@ -0,0 +1,15 @@
1
+ /**
2
+ * Stolen from klona to avoid adding a dependency
3
+ * https://github.com/lukeed/klona
4
+ *
5
+ * MIT License
6
+ *
7
+ * Copyright (c) Luke Edwards <luke.edwards05@gmail.com> (lukeed.com)
8
+ *
9
+ * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
10
+ *
11
+ * The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
12
+ *
13
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
14
+ */
15
+ export declare const clone: <T>(original: T) => T;
@@ -0,0 +1,5 @@
1
+ export declare const hasCookie: (name: string) => boolean;
2
+ export declare const getCookie: (name: string) => string | null | undefined;
3
+ export declare const setCookie: (name: string, data: string, expiresInDays?: number, domain?: string | null) => void;
4
+ export declare const deleteCookie: (name: string, path: string, domain?: string | null) => void;
5
+ export declare const getDomain: () => string | null;