@ethlete/core 0.2.0-next.1 → 0.2.0-next.10
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/esm2020/lib/decorators/index.mjs +2 -0
- package/esm2020/lib/decorators/memo/memo.decorator.mjs +2 -2
- package/esm2020/lib/directives/click-outside/click-outside.directive.mjs +37 -0
- package/esm2020/lib/directives/click-outside/public-api.mjs +2 -0
- package/esm2020/lib/directives/cursor-drag-scroll/cursor-drag-scroll.constants.mjs +3 -0
- package/esm2020/lib/directives/cursor-drag-scroll/cursor-drag-scroll.directive.mjs +147 -0
- package/esm2020/lib/directives/cursor-drag-scroll/public-api.mjs +2 -0
- package/esm2020/lib/directives/let/let.directive.mjs +8 -8
- package/esm2020/lib/directives/observe-content/observe-content.directive.mjs +68 -0
- package/esm2020/lib/directives/observe-content/public-api.mjs +2 -0
- package/esm2020/lib/directives/observe-resize/observe-resize.directive.mjs +68 -0
- package/esm2020/lib/directives/observe-resize/public-api.mjs +2 -0
- package/esm2020/lib/directives/observe-scroll-state/observe-scroll-state.constants.mjs +3 -0
- package/esm2020/lib/directives/observe-scroll-state/observe-scroll-state.directive.mjs +171 -0
- package/esm2020/lib/directives/observe-scroll-state/observe-scroll-state.types.mjs +2 -0
- package/esm2020/lib/directives/observe-scroll-state/public-api.mjs +3 -0
- package/esm2020/lib/directives/public-api.mjs +10 -1
- package/esm2020/lib/directives/repeat/repeat.directive.mjs +10 -11
- package/esm2020/lib/directives/scroll-observer-first-element/index.mjs +2 -0
- package/esm2020/lib/directives/scroll-observer-first-element/public-api.mjs +2 -0
- package/esm2020/lib/directives/scroll-observer-first-element/scroll-observer-first-element.directive.mjs +31 -0
- package/esm2020/lib/directives/scroll-observer-ignore-target/index.mjs +2 -0
- package/esm2020/lib/directives/scroll-observer-ignore-target/public-api.mjs +2 -0
- package/esm2020/lib/directives/scroll-observer-ignore-target/scroll-observer-ignore-target.directive.mjs +18 -0
- package/esm2020/lib/directives/scroll-observer-last-element/index.mjs +2 -0
- package/esm2020/lib/directives/scroll-observer-last-element/public-api.mjs +2 -0
- package/esm2020/lib/directives/scroll-observer-last-element/scroll-observer-last-element.directive.mjs +34 -0
- package/esm2020/lib/directives/seo/public-api.mjs +5 -0
- package/esm2020/lib/directives/seo/seo.directive.constants.mjs +3 -0
- package/esm2020/lib/directives/seo/seo.directive.mjs +166 -0
- package/esm2020/lib/directives/seo/seo.directive.types.mjs +2 -0
- package/esm2020/lib/directives/seo/seo.directive.utils.mjs +7 -0
- package/esm2020/lib/pipes/normalize-game-result-type/normalize-game-result-type.pipe.mjs +15 -0
- package/esm2020/lib/pipes/normalize-game-result-type/normalize-game-result-type.types.mjs +2 -0
- package/esm2020/lib/pipes/normalize-game-result-type/normalize-game-result-type.util.mjs +34 -0
- package/esm2020/lib/pipes/normalize-game-result-type/public-api.mjs +4 -0
- package/esm2020/lib/pipes/normalize-match-participants/normalize-match-participants.pipe.mjs +15 -0
- package/esm2020/lib/pipes/normalize-match-participants/normalize-match-participants.types.mjs +2 -0
- package/esm2020/lib/pipes/normalize-match-participants/normalize-match-participants.util.mjs +47 -0
- package/esm2020/lib/pipes/normalize-match-participants/public-api.mjs +4 -0
- package/esm2020/lib/pipes/normalize-match-score/normalize-match-score.pipe.mjs +15 -0
- package/esm2020/lib/pipes/normalize-match-score/normalize-match-score.types.mjs +2 -0
- package/esm2020/lib/pipes/normalize-match-score/normalize-match-score.util.mjs +126 -0
- package/esm2020/lib/pipes/normalize-match-score/public-api.mjs +4 -0
- package/esm2020/lib/pipes/normalize-match-state/index.mjs +2 -0
- package/esm2020/lib/pipes/normalize-match-state/normalize-match-state.constants.mjs +2 -0
- package/esm2020/lib/pipes/normalize-match-state/normalize-match-state.pipe.mjs +15 -0
- package/esm2020/lib/pipes/normalize-match-state/normalize-match-state.util.mjs +19 -0
- package/esm2020/lib/pipes/normalize-match-state/public-api.mjs +4 -0
- package/esm2020/lib/pipes/normalize-match-type/normalize-match-type.pipe.mjs +15 -0
- package/esm2020/lib/pipes/normalize-match-type/normalize-match-type.util.mjs +38 -0
- package/esm2020/lib/pipes/normalize-match-type/public-api.mjs +3 -0
- package/esm2020/lib/pipes/public-api.mjs +6 -1
- package/esm2020/lib/pipes/to-array/to-array.pipe.mjs +3 -3
- package/esm2020/lib/services/click-observer.service.mjs +73 -0
- package/esm2020/lib/services/content-observer.service.mjs +79 -0
- package/esm2020/lib/services/destroy.service.mjs +19 -0
- package/esm2020/lib/services/focus-visible.service.mjs +7 -7
- package/esm2020/lib/services/index.mjs +2 -0
- package/esm2020/lib/services/public-api.mjs +6 -2
- package/esm2020/lib/services/resize-observer.service.mjs +75 -0
- package/esm2020/lib/services/viewport.service.mjs +43 -18
- package/esm2020/lib/types/i18n.types.mjs +2 -0
- package/esm2020/lib/types/public-api.mjs +3 -2
- package/esm2020/lib/utils/index.mjs +2 -0
- package/esm2020/lib/utils/public-api.mjs +2 -1
- package/esm2020/lib/utils/scrollable.utils.mjs +5 -0
- package/fesm2015/ethlete-core.mjs +1413 -116
- package/fesm2015/ethlete-core.mjs.map +1 -1
- package/fesm2020/ethlete-core.mjs +1410 -116
- package/fesm2020/ethlete-core.mjs.map +1 -1
- package/lib/decorators/index.d.ts +1 -0
- package/lib/directives/click-outside/click-outside.directive.d.ts +12 -0
- package/lib/directives/click-outside/public-api.d.ts +1 -0
- package/lib/directives/cursor-drag-scroll/cursor-drag-scroll.constants.d.ts +2 -0
- package/lib/directives/cursor-drag-scroll/cursor-drag-scroll.directive.d.ts +27 -0
- package/lib/directives/cursor-drag-scroll/public-api.d.ts +1 -0
- package/lib/directives/let/let.directive.d.ts +1 -1
- package/lib/directives/observe-content/observe-content.directive.d.ts +22 -0
- package/lib/directives/observe-content/public-api.d.ts +1 -0
- package/lib/directives/observe-resize/observe-resize.directive.d.ts +22 -0
- package/lib/directives/observe-resize/public-api.d.ts +1 -0
- package/lib/directives/observe-scroll-state/observe-scroll-state.constants.d.ts +3 -0
- package/lib/directives/observe-scroll-state/observe-scroll-state.directive.d.ts +31 -0
- package/lib/directives/observe-scroll-state/observe-scroll-state.types.d.ts +6 -0
- package/lib/directives/observe-scroll-state/public-api.d.ts +3 -0
- package/lib/directives/public-api.d.ts +9 -0
- package/lib/directives/repeat/repeat.directive.d.ts +3 -4
- package/lib/directives/scroll-observer-first-element/index.d.ts +1 -0
- package/lib/directives/scroll-observer-first-element/public-api.d.ts +1 -0
- package/lib/directives/scroll-observer-first-element/scroll-observer-first-element.directive.d.ts +10 -0
- package/lib/directives/scroll-observer-ignore-target/index.d.ts +1 -0
- package/lib/directives/scroll-observer-ignore-target/public-api.d.ts +1 -0
- package/lib/directives/scroll-observer-ignore-target/scroll-observer-ignore-target.directive.d.ts +6 -0
- package/lib/directives/scroll-observer-last-element/index.d.ts +1 -0
- package/lib/directives/scroll-observer-last-element/public-api.d.ts +1 -0
- package/lib/directives/scroll-observer-last-element/scroll-observer-last-element.directive.d.ts +10 -0
- package/lib/directives/seo/public-api.d.ts +4 -0
- package/lib/directives/seo/seo.directive.constants.d.ts +3 -0
- package/lib/directives/seo/seo.directive.d.ts +21 -0
- package/lib/directives/seo/seo.directive.types.d.ts +51 -0
- package/lib/directives/seo/seo.directive.utils.d.ts +2 -0
- package/lib/pipes/normalize-game-result-type/normalize-game-result-type.pipe.d.ts +7 -0
- package/lib/pipes/normalize-game-result-type/normalize-game-result-type.types.d.ts +4 -0
- package/lib/pipes/normalize-game-result-type/normalize-game-result-type.util.d.ts +2 -0
- package/lib/pipes/normalize-game-result-type/public-api.d.ts +3 -0
- package/lib/pipes/normalize-match-participants/normalize-match-participants.pipe.d.ts +7 -0
- package/lib/pipes/normalize-match-participants/normalize-match-participants.types.d.ts +21 -0
- package/lib/pipes/normalize-match-participants/normalize-match-participants.util.d.ts +4 -0
- package/lib/pipes/normalize-match-participants/public-api.d.ts +3 -0
- package/lib/pipes/normalize-match-score/normalize-match-score.pipe.d.ts +7 -0
- package/lib/pipes/normalize-match-score/normalize-match-score.types.d.ts +12 -0
- package/lib/pipes/normalize-match-score/normalize-match-score.util.d.ts +27 -0
- package/lib/pipes/normalize-match-score/public-api.d.ts +3 -0
- package/lib/pipes/normalize-match-state/index.d.ts +1 -0
- package/lib/pipes/normalize-match-state/normalize-match-state.constants.d.ts +7 -0
- package/lib/pipes/normalize-match-state/normalize-match-state.pipe.d.ts +7 -0
- package/lib/pipes/normalize-match-state/normalize-match-state.util.d.ts +3 -0
- package/lib/pipes/normalize-match-state/public-api.d.ts +3 -0
- package/lib/pipes/normalize-match-type/normalize-match-type.pipe.d.ts +7 -0
- package/lib/pipes/normalize-match-type/normalize-match-type.util.d.ts +3 -0
- package/lib/pipes/normalize-match-type/public-api.d.ts +2 -0
- package/lib/pipes/public-api.d.ts +5 -0
- package/lib/services/click-observer.service.d.ts +21 -0
- package/lib/services/content-observer.service.d.ts +21 -0
- package/lib/services/destroy.service.d.ts +9 -0
- package/lib/services/index.d.ts +1 -0
- package/lib/services/public-api.d.ts +5 -1
- package/lib/services/resize-observer.service.d.ts +21 -0
- package/lib/services/viewport.service.d.ts +3 -0
- package/lib/services/viewport.types.d.ts +1 -1
- package/lib/types/angular.types.d.ts +1 -1
- package/lib/types/i18n.types.d.ts +4 -0
- package/lib/types/public-api.d.ts +2 -1
- package/lib/types/viewport.types.d.ts +2 -2
- package/lib/utils/index.d.ts +1 -0
- package/lib/utils/public-api.d.ts +1 -0
- package/lib/utils/scrollable.utils.d.ts +1 -0
- package/package.json +8 -6
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './public-api';
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { EventEmitter, OnDestroy, OnInit } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class ClickOutsideDirective implements OnInit, OnDestroy {
|
|
4
|
+
private _elementRef;
|
|
5
|
+
private _clickObserverService;
|
|
6
|
+
private _subscription;
|
|
7
|
+
etClickOutside: EventEmitter<MouseEvent>;
|
|
8
|
+
ngOnInit(): void;
|
|
9
|
+
ngOnDestroy(): void;
|
|
10
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ClickOutsideDirective, never>;
|
|
11
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<ClickOutsideDirective, "[etClickOutside]", never, {}, { "etClickOutside": "etClickOutside"; }, never, never, true, never>;
|
|
12
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './click-outside.directive';
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { BooleanInput } from '@angular/cdk/coercion';
|
|
2
|
+
import { AfterViewInit } from '@angular/core';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class CursorDragScrollDirective implements AfterViewInit {
|
|
5
|
+
private readonly _subscriptions;
|
|
6
|
+
private readonly _destroy$;
|
|
7
|
+
private readonly _elementRef;
|
|
8
|
+
private readonly _contentObserverService;
|
|
9
|
+
private readonly _resizeObserverService;
|
|
10
|
+
private readonly _bufferUntilScroll;
|
|
11
|
+
private readonly _mouseUp$;
|
|
12
|
+
private _isScrolling;
|
|
13
|
+
private _canScroll;
|
|
14
|
+
private _currentScrollState;
|
|
15
|
+
get enabled(): boolean;
|
|
16
|
+
set enabled(value: BooleanInput);
|
|
17
|
+
private _enabled;
|
|
18
|
+
ngAfterViewInit(): void;
|
|
19
|
+
private _enableCursorDragScroll;
|
|
20
|
+
private _disableCursorDragScroll;
|
|
21
|
+
private _onMouseDown;
|
|
22
|
+
private _mouseMoveHandler;
|
|
23
|
+
private _mouseUpHandler;
|
|
24
|
+
private _updateCanScrollState;
|
|
25
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CursorDragScrollDirective, never>;
|
|
26
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<CursorDragScrollDirective, "[etCursorDragScroll]", ["etCursorDragScroll"], { "enabled": "etCursorDragScroll"; }, {}, never, never, true, never>;
|
|
27
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './cursor-drag-scroll.directive';
|
|
@@ -12,5 +12,5 @@ export declare class LetDirective<T = unknown> {
|
|
|
12
12
|
static ngTemplateContextGuard<T>(dir: LetDirective<T>, ctx: any): ctx is LetContext<T>;
|
|
13
13
|
private _updateView;
|
|
14
14
|
static ɵfac: i0.ɵɵFactoryDeclaration<LetDirective<any>, never>;
|
|
15
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<LetDirective<any>, "[etLet]", never, { "etLet": "etLet"; }, {}, never, never, true>;
|
|
15
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<LetDirective<any>, "[etLet]", never, { "etLet": "etLet"; }, {}, never, never, true, never>;
|
|
16
16
|
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { BooleanInput, NumberInput } from '@angular/cdk/coercion';
|
|
2
|
+
import { AfterContentInit, EventEmitter, OnDestroy } from '@angular/core';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class ObserveContentDirective implements AfterContentInit, OnDestroy {
|
|
5
|
+
private _contentObserver;
|
|
6
|
+
private _elementRef;
|
|
7
|
+
private _ngZone;
|
|
8
|
+
readonly event: EventEmitter<MutationRecord[]>;
|
|
9
|
+
get disabled(): boolean;
|
|
10
|
+
set disabled(value: BooleanInput);
|
|
11
|
+
private _disabled;
|
|
12
|
+
get debounce(): number | null;
|
|
13
|
+
set debounce(value: NumberInput);
|
|
14
|
+
private _debounce;
|
|
15
|
+
private _currentSubscription;
|
|
16
|
+
ngAfterContentInit(): void;
|
|
17
|
+
ngOnDestroy(): void;
|
|
18
|
+
private _subscribe;
|
|
19
|
+
private _unsubscribe;
|
|
20
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ObserveContentDirective, never>;
|
|
21
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<ObserveContentDirective, "[etObserveContent]", ["etObserveContent"], { "disabled": "etObserveContentDisabled"; "debounce": "etObserveContentDebounce"; }, { "event": "etObserveContent"; }, never, never, true, never>;
|
|
22
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './observe-content.directive';
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { BooleanInput, NumberInput } from '@angular/cdk/coercion';
|
|
2
|
+
import { AfterContentInit, EventEmitter, OnDestroy } from '@angular/core';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class ObserveResizeDirective implements AfterContentInit, OnDestroy {
|
|
5
|
+
private _resizeObserver;
|
|
6
|
+
private _elementRef;
|
|
7
|
+
private _ngZone;
|
|
8
|
+
readonly event: EventEmitter<ResizeObserverEntry[]>;
|
|
9
|
+
get disabled(): boolean;
|
|
10
|
+
set disabled(value: BooleanInput);
|
|
11
|
+
private _disabled;
|
|
12
|
+
get debounce(): number | null;
|
|
13
|
+
set debounce(value: NumberInput);
|
|
14
|
+
private _debounce;
|
|
15
|
+
private _currentSubscription;
|
|
16
|
+
ngAfterContentInit(): void;
|
|
17
|
+
ngOnDestroy(): void;
|
|
18
|
+
private _subscribe;
|
|
19
|
+
private _unsubscribe;
|
|
20
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ObserveResizeDirective, never>;
|
|
21
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<ObserveResizeDirective, "[etObserveResize]", ["etObserveResize"], { "disabled": "etObserveResizeDisabled"; "debounce": "etObserveResizeDebounce"; }, { "event": "etObserveResize"; }, never, never, true, never>;
|
|
22
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './observe-resize.directive';
|
|
@@ -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
|
+
}
|
|
@@ -1,2 +1,11 @@
|
|
|
1
|
+
export * from './click-outside/public-api';
|
|
2
|
+
export * from './cursor-drag-scroll/public-api';
|
|
1
3
|
export * from './let/public-api';
|
|
4
|
+
export * from './observe-content/public-api';
|
|
5
|
+
export * from './observe-resize/public-api';
|
|
6
|
+
export * from './observe-scroll-state/public-api';
|
|
2
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 {
|
|
2
|
+
import { TemplateRef, ViewContainerRef } from '@angular/core';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
|
-
export declare class RepeatDirective
|
|
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';
|
package/lib/directives/scroll-observer-first-element/scroll-observer-first-element.directive.d.ts
ADDED
|
@@ -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';
|
package/lib/directives/scroll-observer-ignore-target/scroll-observer-ignore-target.directive.d.ts
ADDED
|
@@ -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';
|
package/lib/directives/scroll-observer-last-element/scroll-observer-last-element.directive.d.ts
ADDED
|
@@ -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,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,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,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,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,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 @@
|
|
|
1
|
+
export * from './public-api';
|
|
@@ -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,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
|
+
}
|
|
@@ -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';
|
|
@@ -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,21 @@
|
|
|
1
|
+
import { OnDestroy, ElementRef } 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
|
+
constructor(_mutationObserverFactory: MutationObserverFactory);
|
|
13
|
+
ngOnDestroy(): void;
|
|
14
|
+
observe(element: Element): Observable<MutationRecord[]>;
|
|
15
|
+
observe(element: ElementRef<Element>): Observable<MutationRecord[]>;
|
|
16
|
+
private _observeElement;
|
|
17
|
+
private _unobserveElement;
|
|
18
|
+
private _cleanupObserver;
|
|
19
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ContentObserverService, never>;
|
|
20
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<ContentObserverService>;
|
|
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
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './public-api';
|
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
export * from './click-observer.service';
|
|
2
|
+
export * from './content-observer.service';
|
|
3
|
+
export * from './destroy.service';
|
|
4
|
+
export * from './focus-visible.service';
|
|
5
|
+
export * from './resize-observer.service';
|
|
1
6
|
export * from './viewport.service';
|
|
2
7
|
export * from './viewport.types';
|
|
3
|
-
export * from './focus-visible.service';
|
|
@@ -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 ResizeObserverFactory {
|
|
5
|
+
create(callback: ResizeObserverCallback): ResizeObserver | null;
|
|
6
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ResizeObserverFactory, never>;
|
|
7
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<ResizeObserverFactory>;
|
|
8
|
+
}
|
|
9
|
+
export declare class ResizeObserverService implements OnDestroy {
|
|
10
|
+
private _mutationObserverFactory;
|
|
11
|
+
private _observedElements;
|
|
12
|
+
constructor(_mutationObserverFactory: ResizeObserverFactory);
|
|
13
|
+
ngOnDestroy(): void;
|
|
14
|
+
observe(element: Element): Observable<ResizeObserverEntry[]>;
|
|
15
|
+
observe(element: ElementRef<Element>): Observable<ResizeObserverEntry[]>;
|
|
16
|
+
private _observeElement;
|
|
17
|
+
private _unobserveElement;
|
|
18
|
+
private _cleanupObserver;
|
|
19
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ResizeObserverService, never>;
|
|
20
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<ResizeObserverService>;
|
|
21
|
+
}
|