@ethlete/core 4.28.0 → 4.29.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +12 -0
- package/fesm2022/ethlete-core.mjs +149 -142
- package/fesm2022/ethlete-core.mjs.map +1 -1
- package/index.d.ts +1971 -36
- package/package.json +9 -9
- package/lib/components/structured-data/index.d.ts +0 -1
- package/lib/components/structured-data/structured-data.component.d.ts +0 -11
- package/lib/constants/index.d.ts +0 -1
- package/lib/constants/viewport.constants.d.ts +0 -8
- package/lib/decorators/memo/index.d.ts +0 -1
- package/lib/decorators/memo/memo.decorator.d.ts +0 -13
- package/lib/directives/animatable/animatable.directive.d.ts +0 -24
- package/lib/directives/animatable/index.d.ts +0 -1
- package/lib/directives/animated-if/animated-if.directive.d.ts +0 -12
- package/lib/directives/animated-if/index.d.ts +0 -1
- package/lib/directives/animated-lifecycle/animated-lifecycle.directive.d.ts +0 -29
- package/lib/directives/animated-lifecycle/index.d.ts +0 -1
- package/lib/directives/animated-overlay/animated-overlay.directive.d.ts +0 -118
- package/lib/directives/animated-overlay/index.d.ts +0 -1
- package/lib/directives/click-outside/click-outside.directive.d.ts +0 -12
- package/lib/directives/click-outside/index.d.ts +0 -1
- package/lib/directives/cursor-drag-scroll/cursor-drag-scroll.constants.d.ts +0 -2
- package/lib/directives/cursor-drag-scroll/cursor-drag-scroll.directive.d.ts +0 -30
- package/lib/directives/cursor-drag-scroll/index.d.ts +0 -2
- package/lib/directives/debug/debug.directive.d.ts +0 -15
- package/lib/directives/debug/index.d.ts +0 -1
- package/lib/directives/delayable/delayable.directive.d.ts +0 -13
- package/lib/directives/delayable/index.d.ts +0 -1
- package/lib/directives/is-active-element/index.d.ts +0 -1
- package/lib/directives/is-active-element/is-active-element.directive.d.ts +0 -10
- package/lib/directives/is-element/index.d.ts +0 -1
- package/lib/directives/is-element/is-element.directive.d.ts +0 -10
- package/lib/directives/let/index.d.ts +0 -2
- package/lib/directives/let/let.directive.d.ts +0 -15
- package/lib/directives/let/let.types.d.ts +0 -4
- package/lib/directives/observe-content/index.d.ts +0 -1
- package/lib/directives/observe-content/observe-content.directive.d.ts +0 -21
- package/lib/directives/observe-resize/index.d.ts +0 -1
- package/lib/directives/observe-resize/observe-resize.directive.d.ts +0 -21
- package/lib/directives/observe-scroll-state/index.d.ts +0 -3
- package/lib/directives/observe-scroll-state/observe-scroll-state.constants.d.ts +0 -3
- package/lib/directives/observe-scroll-state/observe-scroll-state.directive.d.ts +0 -31
- package/lib/directives/observe-scroll-state/observe-scroll-state.types.d.ts +0 -6
- package/lib/directives/observe-visibility/index.d.ts +0 -1
- package/lib/directives/observe-visibility/observe-visibility.directive.d.ts +0 -30
- package/lib/directives/repeat/index.d.ts +0 -1
- package/lib/directives/repeat/repeat.directive.d.ts +0 -13
- package/lib/directives/root-boundary/index.d.ts +0 -1
- package/lib/directives/root-boundary/root-boundary.directive.d.ts +0 -11
- package/lib/directives/scroll-observer-first-element/index.d.ts +0 -1
- package/lib/directives/scroll-observer-first-element/scroll-observer-first-element.directive.d.ts +0 -8
- package/lib/directives/scroll-observer-ignore-target/index.d.ts +0 -1
- package/lib/directives/scroll-observer-ignore-target/scroll-observer-ignore-target.directive.d.ts +0 -6
- package/lib/directives/scroll-observer-last-element/index.d.ts +0 -1
- package/lib/directives/scroll-observer-last-element/scroll-observer-last-element.directive.d.ts +0 -8
- package/lib/directives/seo/index.d.ts +0 -4
- package/lib/directives/seo/seo.directive.constants.d.ts +0 -3
- package/lib/directives/seo/seo.directive.d.ts +0 -21
- package/lib/directives/seo/seo.directive.types.d.ts +0 -51
- package/lib/directives/seo/seo.directive.utils.d.ts +0 -2
- package/lib/pipes/infer-mime-type/index.d.ts +0 -2
- package/lib/pipes/infer-mime-type/infer-mime-type.pipe.d.ts +0 -7
- package/lib/pipes/infer-mime-type/infer-mime-type.util.d.ts +0 -6
- package/lib/pipes/normalize-game-result-type/index.d.ts +0 -3
- package/lib/pipes/normalize-game-result-type/normalize-game-result-type.pipe.d.ts +0 -7
- package/lib/pipes/normalize-game-result-type/normalize-game-result-type.types.d.ts +0 -4
- package/lib/pipes/normalize-game-result-type/normalize-game-result-type.util.d.ts +0 -2
- package/lib/pipes/normalize-match-participants/index.d.ts +0 -3
- package/lib/pipes/normalize-match-participants/normalize-match-participants.pipe.d.ts +0 -7
- package/lib/pipes/normalize-match-participants/normalize-match-participants.types.d.ts +0 -21
- package/lib/pipes/normalize-match-participants/normalize-match-participants.util.d.ts +0 -4
- package/lib/pipes/normalize-match-score/index.d.ts +0 -3
- package/lib/pipes/normalize-match-score/normalize-match-score.pipe.d.ts +0 -7
- package/lib/pipes/normalize-match-score/normalize-match-score.types.d.ts +0 -12
- package/lib/pipes/normalize-match-score/normalize-match-score.util.d.ts +0 -27
- package/lib/pipes/normalize-match-state/index.d.ts +0 -3
- package/lib/pipes/normalize-match-state/normalize-match-state.constants.d.ts +0 -7
- package/lib/pipes/normalize-match-state/normalize-match-state.pipe.d.ts +0 -7
- package/lib/pipes/normalize-match-state/normalize-match-state.util.d.ts +0 -3
- package/lib/pipes/normalize-match-type/index.d.ts +0 -2
- package/lib/pipes/normalize-match-type/normalize-match-type.pipe.d.ts +0 -7
- package/lib/pipes/normalize-match-type/normalize-match-type.util.d.ts +0 -3
- package/lib/pipes/to-array/index.d.ts +0 -2
- package/lib/pipes/to-array/to-array.pipe.d.ts +0 -7
- package/lib/pipes/to-array/to-array.util.d.ts +0 -3
- package/lib/props/create-prop-handlers.d.ts +0 -27
- package/lib/props/create-props.d.ts +0 -54
- package/lib/props/create-setup.d.ts +0 -4
- package/lib/props/dependency-stash.d.ts +0 -11
- package/lib/props/element-dictionary.d.ts +0 -11
- package/lib/props/index.d.ts +0 -8
- package/lib/props/props-binding.d.ts +0 -12
- package/lib/props/props.directive.d.ts +0 -38
- package/lib/props/template-input.d.ts +0 -30
- package/lib/services/click-observer.service.d.ts +0 -20
- package/lib/services/content-observer.service.d.ts +0 -20
- package/lib/services/focus-visible.service.d.ts +0 -11
- package/lib/services/index.d.ts +0 -8
- package/lib/services/intersection-observer.service.d.ts +0 -20
- package/lib/services/resize-observer.service.d.ts +0 -20
- package/lib/services/router-state.service.d.ts +0 -96
- package/lib/services/viewport.service.d.ts +0 -64
- package/lib/services/viewport.types.d.ts +0 -5
- package/lib/types/angular.types.d.ts +0 -13
- package/lib/types/i18n.types.d.ts +0 -4
- package/lib/types/index.d.ts +0 -4
- package/lib/types/value.types.d.ts +0 -2
- package/lib/types/viewport.types.d.ts +0 -12
- package/lib/utils/active-selection-model.utils.d.ts +0 -18
- package/lib/utils/angular.utils.d.ts +0 -3
- package/lib/utils/animation.utils.d.ts +0 -61
- package/lib/utils/clamp.util.d.ts +0 -1
- package/lib/utils/clone.util.d.ts +0 -15
- package/lib/utils/component-id.utils.d.ts +0 -1
- package/lib/utils/cookie.util.d.ts +0 -5
- package/lib/utils/destroy.utils.d.ts +0 -1
- package/lib/utils/equal.util.d.ts +0 -27
- package/lib/utils/form.utils.d.ts +0 -3
- package/lib/utils/index.d.ts +0 -27
- package/lib/utils/inject.utils.d.ts +0 -3
- package/lib/utils/intersection-observer.utils.d.ts +0 -40
- package/lib/utils/key-press-manager.utils.d.ts +0 -9
- package/lib/utils/logger.d.ts +0 -10
- package/lib/utils/media-query-observable.util.d.ts +0 -5
- package/lib/utils/mutation-observable.util.d.ts +0 -7
- package/lib/utils/object.utils.d.ts +0 -3
- package/lib/utils/reactive-binding.util.d.ts +0 -31
- package/lib/utils/resize-observable.util.d.ts +0 -5
- package/lib/utils/round.utils.d.ts +0 -1
- package/lib/utils/runtime-error.utils.d.ts +0 -8
- package/lib/utils/scrollable.utils.d.ts +0 -91
- package/lib/utils/selection-model.utils.d.ts +0 -108
- package/lib/utils/signal.utils.d.ts +0 -312
- package/lib/utils/smart-block-scroll-strategy.utils.d.ts +0 -17
- package/lib/utils/value.utils.d.ts +0 -4
- package/lib/utils/viewport.util.d.ts +0 -6
- package/lib/validators/at-least-one-required.validator.d.ts +0 -14
- package/lib/validators/index.d.ts +0 -12
- package/lib/validators/is-array-not-empty.validator.d.ts +0 -3
- package/lib/validators/is-email.validator.d.ts +0 -3
- package/lib/validators/must-match.validator.d.ts +0 -5
|
@@ -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 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
|
-
ngOnDestroy(): void;
|
|
13
|
-
observe(element: Element): Observable<ResizeObserverEntry[]>;
|
|
14
|
-
observe(element: ElementRef<Element>): Observable<ResizeObserverEntry[]>;
|
|
15
|
-
private _observeElement;
|
|
16
|
-
private _unobserveElement;
|
|
17
|
-
private _cleanupObserver;
|
|
18
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ResizeObserverService, never>;
|
|
19
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<ResizeObserverService>;
|
|
20
|
-
}
|
|
@@ -1,96 +0,0 @@
|
|
|
1
|
-
import { Data, Params } from '@angular/router';
|
|
2
|
-
import { Observable } from 'rxjs';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
declare const ET_DISABLE_SCROLL_TOP: unique symbol;
|
|
5
|
-
declare const ET_DISABLE_SCROLL_TOP_AS_RETURN_ROUTE: unique symbol;
|
|
6
|
-
declare const ET_DISABLE_SCROLL_TOP_ON_PATH_PARAM_CHANGE: unique symbol;
|
|
7
|
-
export interface RouterDisableScrollTopConfig {
|
|
8
|
-
/**
|
|
9
|
-
* Whether to disable scroll to top ONLY when navigating back to this route.
|
|
10
|
-
* @default false
|
|
11
|
-
*/
|
|
12
|
-
asReturnRoute?: boolean;
|
|
13
|
-
/**
|
|
14
|
-
* Whether to disable scroll to top when a path param changes.
|
|
15
|
-
* @default false
|
|
16
|
-
*/
|
|
17
|
-
onPathParamChange?: boolean;
|
|
18
|
-
}
|
|
19
|
-
export declare const routerDisableScrollTop: (config?: RouterDisableScrollTopConfig) => {
|
|
20
|
-
[ET_DISABLE_SCROLL_TOP_ON_PATH_PARAM_CHANGE]?: boolean | undefined;
|
|
21
|
-
[ET_DISABLE_SCROLL_TOP]: boolean;
|
|
22
|
-
} | {
|
|
23
|
-
[ET_DISABLE_SCROLL_TOP_ON_PATH_PARAM_CHANGE]?: boolean | undefined;
|
|
24
|
-
[ET_DISABLE_SCROLL_TOP_AS_RETURN_ROUTE]: boolean;
|
|
25
|
-
};
|
|
26
|
-
export declare const ET_PROPERTY_REMOVED: unique symbol;
|
|
27
|
-
export interface ScrollEnhancementsConfig {
|
|
28
|
-
/**
|
|
29
|
-
* The scrollable container.
|
|
30
|
-
* @default document.documentElement
|
|
31
|
-
*/
|
|
32
|
-
scrollElement?: HTMLElement;
|
|
33
|
-
/**
|
|
34
|
-
* A list of query params that should trigger a scroll to top.
|
|
35
|
-
* @default []
|
|
36
|
-
* @example ['page'] // will scroll to top when the page query param changes
|
|
37
|
-
*/
|
|
38
|
-
queryParamTriggerList?: string[];
|
|
39
|
-
/**
|
|
40
|
-
* Config for fragment scrolling.
|
|
41
|
-
*/
|
|
42
|
-
fragment?: {
|
|
43
|
-
/**
|
|
44
|
-
* Enable fragment scrolling (scroll to element with id)
|
|
45
|
-
* @default false
|
|
46
|
-
*/
|
|
47
|
-
enabled?: boolean;
|
|
48
|
-
/**
|
|
49
|
-
* Whether to use smooth scrolling or not.
|
|
50
|
-
* @default false
|
|
51
|
-
*/
|
|
52
|
-
smooth?: boolean;
|
|
53
|
-
};
|
|
54
|
-
}
|
|
55
|
-
export interface RouterState {
|
|
56
|
-
data: Data;
|
|
57
|
-
pathParams: Params;
|
|
58
|
-
queryParams: Params;
|
|
59
|
-
title: string | null;
|
|
60
|
-
fragment: string | null;
|
|
61
|
-
}
|
|
62
|
-
export declare class RouterStateService {
|
|
63
|
-
private _isScrollTopOnNavigationEnabled;
|
|
64
|
-
private readonly _router;
|
|
65
|
-
private readonly _route$;
|
|
66
|
-
private readonly _state$;
|
|
67
|
-
private readonly _afterInitialize$;
|
|
68
|
-
readonly afterInitialize$: Observable<boolean>;
|
|
69
|
-
get route$(): Observable<string>;
|
|
70
|
-
get route(): string;
|
|
71
|
-
get state$(): Observable<RouterState>;
|
|
72
|
-
get state(): RouterState;
|
|
73
|
-
get data$(): Observable<Data>;
|
|
74
|
-
get data(): Data;
|
|
75
|
-
get pathParams$(): Observable<Params>;
|
|
76
|
-
get pathParams(): Params;
|
|
77
|
-
get queryParams$(): Observable<Params>;
|
|
78
|
-
get queryParams(): Params;
|
|
79
|
-
get title$(): Observable<string | null>;
|
|
80
|
-
get title(): string | null;
|
|
81
|
-
get fragment$(): Observable<string | null>;
|
|
82
|
-
get fragment(): string | null;
|
|
83
|
-
get dataChanges$(): Observable<Partial<Data>>;
|
|
84
|
-
get queryParamChanges$(): Observable<Partial<Params>>;
|
|
85
|
-
get pathParamChanges$(): Observable<Partial<Params>>;
|
|
86
|
-
constructor();
|
|
87
|
-
enableScrollEnhancements(config?: ScrollEnhancementsConfig): void;
|
|
88
|
-
selectQueryParam<T = string | undefined>(key: string): Observable<T>;
|
|
89
|
-
selectPathParam<T = string | undefined>(key: string): Observable<T>;
|
|
90
|
-
selectData<T = unknown>(key: string): Observable<T>;
|
|
91
|
-
private _findChanges;
|
|
92
|
-
private _getInitialState;
|
|
93
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<RouterStateService, never>;
|
|
94
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<RouterStateService>;
|
|
95
|
-
}
|
|
96
|
-
export {};
|
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
import { Observable } from 'rxjs';
|
|
2
|
-
import { Breakpoint } from '../types';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
export interface Size {
|
|
5
|
-
width: number;
|
|
6
|
-
height: number;
|
|
7
|
-
}
|
|
8
|
-
export declare class ViewportService {
|
|
9
|
-
private readonly _resizeObserverService;
|
|
10
|
-
private readonly _viewportConfig;
|
|
11
|
-
private readonly _breakpointObserver;
|
|
12
|
-
private readonly _viewportMonitorStop$;
|
|
13
|
-
private _isViewportMonitorEnabled;
|
|
14
|
-
private _isXs$;
|
|
15
|
-
private _isSm$;
|
|
16
|
-
private _isMd$;
|
|
17
|
-
private _isLg$;
|
|
18
|
-
private _isXl$;
|
|
19
|
-
private _is2Xl$;
|
|
20
|
-
private _viewportSize$;
|
|
21
|
-
private _scrollbarSize$;
|
|
22
|
-
get isXs$(): Observable<boolean>;
|
|
23
|
-
get isXs(): boolean;
|
|
24
|
-
get isSm$(): Observable<boolean>;
|
|
25
|
-
get isSm(): boolean;
|
|
26
|
-
get isMd$(): Observable<boolean>;
|
|
27
|
-
get isMd(): boolean;
|
|
28
|
-
get isLg$(): Observable<boolean>;
|
|
29
|
-
get isLg(): boolean;
|
|
30
|
-
get isXl$(): Observable<boolean>;
|
|
31
|
-
get isXl(): boolean;
|
|
32
|
-
get is2Xl$(): Observable<boolean>;
|
|
33
|
-
get is2Xl(): boolean;
|
|
34
|
-
get viewportSize$(): Observable<Size | null>;
|
|
35
|
-
get viewportSize(): Size | null;
|
|
36
|
-
get scrollbarSize$(): Observable<Size | null>;
|
|
37
|
-
get scrollbarSize(): Size | null;
|
|
38
|
-
currentViewport$: Observable<"xs" | "sm" | "md" | "lg" | "xl" | "2xl">;
|
|
39
|
-
get currentViewport(): "xs" | "sm" | "md" | "lg" | "xl" | "2xl";
|
|
40
|
-
constructor();
|
|
41
|
-
observe(options: {
|
|
42
|
-
min?: number | Breakpoint;
|
|
43
|
-
max?: number | Breakpoint;
|
|
44
|
-
}): Observable<boolean>;
|
|
45
|
-
isMatched(options: {
|
|
46
|
-
min?: number | Breakpoint;
|
|
47
|
-
max?: number | Breakpoint;
|
|
48
|
-
}): boolean;
|
|
49
|
-
/**
|
|
50
|
-
* Applies size CSS variables to the documentElement in pixels.
|
|
51
|
-
* - `--et-vw`: viewport width excluding scrollbar width
|
|
52
|
-
* - `--et-vh`: viewport height excluding scrollbar height
|
|
53
|
-
* - `--et-sw`: scrollbar width
|
|
54
|
-
* - `--et-sh`: scrollbar height
|
|
55
|
-
*/
|
|
56
|
-
monitorViewport(): void;
|
|
57
|
-
unmonitorViewport(): void;
|
|
58
|
-
getBreakpointSize(type: Breakpoint, option: 'min' | 'max'): number;
|
|
59
|
-
private _observeDefaultBreakpoints;
|
|
60
|
-
private _buildMediaQuery;
|
|
61
|
-
private getCurrentViewport;
|
|
62
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ViewportService, never>;
|
|
63
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<ViewportService>;
|
|
64
|
-
}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { QueryList, Type } from '@angular/core';
|
|
2
|
-
import { Observable } from 'rxjs';
|
|
3
|
-
export type NgClassType = string | string[] | Set<string> | {
|
|
4
|
-
[klass: string]: any;
|
|
5
|
-
} | null | undefined;
|
|
6
|
-
export type HostDirective = Type<unknown> | {
|
|
7
|
-
directive: Type<unknown>;
|
|
8
|
-
inputs?: string[];
|
|
9
|
-
outputs?: string[];
|
|
10
|
-
};
|
|
11
|
-
export declare class TypedQueryList<T> extends QueryList<T> {
|
|
12
|
-
get changes(): Observable<TypedQueryList<T>>;
|
|
13
|
-
}
|
package/lib/types/index.d.ts
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { SelectionModel } from './selection-model.utils';
|
|
2
|
-
export declare class ActiveSelectionModel<T = unknown> {
|
|
3
|
-
private readonly _destroy$;
|
|
4
|
-
get selectionModel$(): import("rxjs").Observable<SelectionModel<T> | null>;
|
|
5
|
-
get selectionModel(): SelectionModel<T> | null;
|
|
6
|
-
private readonly _selectionModel$;
|
|
7
|
-
get activeOption$(): import("rxjs").Observable<T | null>;
|
|
8
|
-
get activeOption(): T | null;
|
|
9
|
-
private readonly _activeOption$;
|
|
10
|
-
constructor();
|
|
11
|
-
setSelectionModel(selectionModel: SelectionModel<T> | null): this;
|
|
12
|
-
setActiveOption(option: T | null): this;
|
|
13
|
-
isOptionActive$(option: T): import("rxjs").Observable<boolean>;
|
|
14
|
-
evaluateKeyboardEvent(event: KeyboardEvent, config?: {
|
|
15
|
-
skipDisabled?: boolean;
|
|
16
|
-
}): NonNullable<T> | null;
|
|
17
|
-
private _resetActiveOptions;
|
|
18
|
-
}
|
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
import { Observable } from 'rxjs';
|
|
2
|
-
export declare const nextFrame: (cb: () => void) => void;
|
|
3
|
-
export declare const fromNextFrame: () => Observable<void>;
|
|
4
|
-
export declare const forceReflow: (element?: HTMLElement) => number;
|
|
5
|
-
interface FlipAnimationGroupConfig {
|
|
6
|
-
/**
|
|
7
|
-
* The elements to animate
|
|
8
|
-
*/
|
|
9
|
-
elements: Array<HTMLElement | {
|
|
10
|
-
element: HTMLElement;
|
|
11
|
-
originElement?: HTMLElement;
|
|
12
|
-
}>;
|
|
13
|
-
/**
|
|
14
|
-
* The duration of the animation in milliseconds
|
|
15
|
-
* @default 250
|
|
16
|
-
*/
|
|
17
|
-
duration?: number;
|
|
18
|
-
/**
|
|
19
|
-
* The easing function to use for the animation
|
|
20
|
-
* @default 'cubic-bezier(0.4, 0, 0.2, 1)'
|
|
21
|
-
*/
|
|
22
|
-
easing?: string;
|
|
23
|
-
}
|
|
24
|
-
export declare const createFlipAnimationGroup: (config: FlipAnimationGroupConfig) => {
|
|
25
|
-
updateInit: () => void;
|
|
26
|
-
play: () => void;
|
|
27
|
-
cancel: () => void;
|
|
28
|
-
onStart$: Observable<void[]>;
|
|
29
|
-
onFinish$: Observable<void[]>;
|
|
30
|
-
onCancel$: Observable<void[]>;
|
|
31
|
-
};
|
|
32
|
-
export interface FlipAnimationConfig {
|
|
33
|
-
/**
|
|
34
|
-
* The element to animate
|
|
35
|
-
*/
|
|
36
|
-
element: HTMLElement;
|
|
37
|
-
/**
|
|
38
|
-
* The element to use as the origin for the animation
|
|
39
|
-
* @default element
|
|
40
|
-
*/
|
|
41
|
-
originElement?: HTMLElement;
|
|
42
|
-
/**
|
|
43
|
-
* The duration of the animation in milliseconds
|
|
44
|
-
* @default 250
|
|
45
|
-
*/
|
|
46
|
-
duration?: number;
|
|
47
|
-
/**
|
|
48
|
-
* The easing function to use for the animation
|
|
49
|
-
* @default 'cubic-bezier(0.4, 0, 0.2, 1)'
|
|
50
|
-
*/
|
|
51
|
-
easing?: string;
|
|
52
|
-
}
|
|
53
|
-
export declare const createFlipAnimation: (config: FlipAnimationConfig) => {
|
|
54
|
-
updateInit: () => void;
|
|
55
|
-
play: () => void;
|
|
56
|
-
cancel: () => void;
|
|
57
|
-
onStart$: Observable<void>;
|
|
58
|
-
onFinish$: Observable<void>;
|
|
59
|
-
onCancel$: Observable<void>;
|
|
60
|
-
};
|
|
61
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const clamp: (value: number, min?: number, max?: number) => number;
|
|
@@ -1,15 +0,0 @@
|
|
|
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;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const createComponentId: (prefix: string) => string;
|
|
@@ -1,5 +0,0 @@
|
|
|
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, path?: string, sameSite?: "strict" | "none" | "lax") => void;
|
|
4
|
-
export declare const deleteCookie: (name: string, path?: string, domain?: string | null) => void;
|
|
5
|
-
export declare const getDomain: () => string | null;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const createDestroy: () => import("rxjs").Observable<boolean>;
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Stolen from dequal to avoid adding a dependency
|
|
3
|
-
* https://github.com/lukeed/dequal
|
|
4
|
-
*
|
|
5
|
-
* The MIT License (MIT)
|
|
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
|
|
10
|
-
* of this software and associated documentation files (the "Software"), to deal
|
|
11
|
-
* in the Software without restriction, including without limitation the rights
|
|
12
|
-
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
13
|
-
* copies of the Software, and to permit persons to whom the Software is
|
|
14
|
-
* furnished to do so, subject to the following conditions:
|
|
15
|
-
*
|
|
16
|
-
* The above copyright notice and this permission notice shall be included in
|
|
17
|
-
* all copies or substantial portions of the Software.
|
|
18
|
-
*
|
|
19
|
-
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
20
|
-
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
21
|
-
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
22
|
-
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
23
|
-
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
24
|
-
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
25
|
-
* THE SOFTWARE.
|
|
26
|
-
*/
|
|
27
|
-
export declare const equal: (foo: any, bar: any) => boolean;
|
package/lib/utils/index.d.ts
DELETED
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
export * from './active-selection-model.utils';
|
|
2
|
-
export * from './angular.utils';
|
|
3
|
-
export * from './animation.utils';
|
|
4
|
-
export * from './clamp.util';
|
|
5
|
-
export * from './clone.util';
|
|
6
|
-
export * from './component-id.utils';
|
|
7
|
-
export * from './cookie.util';
|
|
8
|
-
export * from './destroy.utils';
|
|
9
|
-
export * from './equal.util';
|
|
10
|
-
export * from './form.utils';
|
|
11
|
-
export * from './inject.utils';
|
|
12
|
-
export * from './intersection-observer.utils';
|
|
13
|
-
export * from './key-press-manager.utils';
|
|
14
|
-
export * from './logger';
|
|
15
|
-
export * from './media-query-observable.util';
|
|
16
|
-
export * from './mutation-observable.util';
|
|
17
|
-
export * from './object.utils';
|
|
18
|
-
export * from './reactive-binding.util';
|
|
19
|
-
export * from './resize-observable.util';
|
|
20
|
-
export * from './round.utils';
|
|
21
|
-
export * from './runtime-error.utils';
|
|
22
|
-
export * from './scrollable.utils';
|
|
23
|
-
export * from './selection-model.utils';
|
|
24
|
-
export * from './signal.utils';
|
|
25
|
-
export * from './smart-block-scroll-strategy.utils';
|
|
26
|
-
export * from './value.utils';
|
|
27
|
-
export * from './viewport.util';
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
export declare const getIntersectionInfo: (intersections: IntersectionObserverEntry[]) => {
|
|
2
|
-
partial: {
|
|
3
|
-
hasAny: boolean;
|
|
4
|
-
hasMultiple: boolean;
|
|
5
|
-
first: {
|
|
6
|
-
intersection: IntersectionObserverEntry;
|
|
7
|
-
index: number;
|
|
8
|
-
};
|
|
9
|
-
last: {
|
|
10
|
-
intersection: IntersectionObserverEntry;
|
|
11
|
-
index: number;
|
|
12
|
-
};
|
|
13
|
-
biggest: {
|
|
14
|
-
intersection: IntersectionObserverEntry;
|
|
15
|
-
index: number;
|
|
16
|
-
};
|
|
17
|
-
};
|
|
18
|
-
full: {
|
|
19
|
-
hasAny: boolean;
|
|
20
|
-
hasMultiple: boolean;
|
|
21
|
-
first: {
|
|
22
|
-
index: number;
|
|
23
|
-
intersection: IntersectionObserverEntry | undefined;
|
|
24
|
-
};
|
|
25
|
-
last: {
|
|
26
|
-
index: number;
|
|
27
|
-
intersection: IntersectionObserverEntry | undefined;
|
|
28
|
-
};
|
|
29
|
-
};
|
|
30
|
-
none: {
|
|
31
|
-
first: {
|
|
32
|
-
index: number;
|
|
33
|
-
intersection: IntersectionObserverEntry | undefined;
|
|
34
|
-
};
|
|
35
|
-
last: {
|
|
36
|
-
index: number;
|
|
37
|
-
intersection: IntersectionObserverEntry | undefined;
|
|
38
|
-
};
|
|
39
|
-
};
|
|
40
|
-
} | null;
|
package/lib/utils/logger.d.ts
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
export declare const DISABLE_LOGGER_PARAM = "et-logger-quiet";
|
|
2
|
-
export type CreateLoggerConfig = {
|
|
3
|
-
scope: string;
|
|
4
|
-
feature: string;
|
|
5
|
-
};
|
|
6
|
-
export declare const createLogger: (config: CreateLoggerConfig) => {
|
|
7
|
-
log: (...args: unknown[]) => void;
|
|
8
|
-
warn: (...args: unknown[]) => void;
|
|
9
|
-
error: (...args: unknown[]) => void;
|
|
10
|
-
};
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import { ElementRef } from '@angular/core';
|
|
2
|
-
import { Observable } from 'rxjs';
|
|
3
|
-
type AttributeValueBinding = {
|
|
4
|
-
render: boolean;
|
|
5
|
-
value: boolean | string | number;
|
|
6
|
-
};
|
|
7
|
-
type AttributeRenderBinding = boolean;
|
|
8
|
-
export type ReactiveAttributes = {
|
|
9
|
-
attribute: string | string[];
|
|
10
|
-
observable: Observable<AttributeValueBinding | AttributeRenderBinding>;
|
|
11
|
-
eager?: boolean;
|
|
12
|
-
elementRef?: ElementRef<HTMLElement>;
|
|
13
|
-
};
|
|
14
|
-
export interface ReactiveBindingResult {
|
|
15
|
-
reset: () => void;
|
|
16
|
-
remove: (...attributes: string[]) => void;
|
|
17
|
-
push: (value: ReactiveAttributes) => void;
|
|
18
|
-
}
|
|
19
|
-
/**
|
|
20
|
-
* @deprecated Use one of the following instead:
|
|
21
|
-
* - `signalHostAttributes`
|
|
22
|
-
* - `signalHostClasses`
|
|
23
|
-
* - `signalHostStyles`
|
|
24
|
-
* - `signalAttributes`
|
|
25
|
-
* - `signalClasses`
|
|
26
|
-
* - `signalStyles`
|
|
27
|
-
*
|
|
28
|
-
* Will be removed in v5.
|
|
29
|
-
*/
|
|
30
|
-
export declare const createReactiveBindings: (...values: ReactiveAttributes[]) => ReactiveBindingResult;
|
|
31
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const round: (value: number, precision?: number) => number;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
export declare const RUNTIME_ERROR_NO_DATA = "__ET_NO_DATA__";
|
|
2
|
-
export declare class RuntimeError<T extends number> extends Error {
|
|
3
|
-
code: T;
|
|
4
|
-
devOnly: boolean;
|
|
5
|
-
data: unknown;
|
|
6
|
-
constructor(code: T, message: null | false | string, devOnly?: boolean, data?: unknown);
|
|
7
|
-
}
|
|
8
|
-
export declare function formatRuntimeError<T extends number>(code: T, message: null | false | string, devOnly: boolean): string;
|
|
@@ -1,91 +0,0 @@
|
|
|
1
|
-
export declare const elementCanScroll: (element: HTMLElement, direction?: "x" | "y") => boolean;
|
|
2
|
-
export interface IsElementVisibleOptions {
|
|
3
|
-
/**
|
|
4
|
-
* The element to check if it is visible inside a container.
|
|
5
|
-
*/
|
|
6
|
-
element?: HTMLElement | null;
|
|
7
|
-
/**
|
|
8
|
-
* The container to check if the element is visible inside.
|
|
9
|
-
* @default document.documentElement
|
|
10
|
-
*/
|
|
11
|
-
container?: HTMLElement | null;
|
|
12
|
-
/**
|
|
13
|
-
* The container's rect to check if the element is visible inside. Can be supplied to reduce the amount of DOM reads.
|
|
14
|
-
* @default container.getBoundingClientRect()
|
|
15
|
-
*/
|
|
16
|
-
containerRect?: DOMRect | null;
|
|
17
|
-
/**
|
|
18
|
-
* The element's rect. Can be supplied to reduce the amount of DOM reads.
|
|
19
|
-
* @default container.getBoundingClientRect()
|
|
20
|
-
*/
|
|
21
|
-
elementRect?: DOMRect | null;
|
|
22
|
-
}
|
|
23
|
-
export interface CurrentElementVisibility {
|
|
24
|
-
/**
|
|
25
|
-
* Whether the element is visible in the inline direction.
|
|
26
|
-
*/
|
|
27
|
-
inline: boolean;
|
|
28
|
-
/**
|
|
29
|
-
* Whether the element is visible in the block direction.
|
|
30
|
-
*/
|
|
31
|
-
block: boolean;
|
|
32
|
-
/**
|
|
33
|
-
* The percentage of the element that is visible in the inline direction.
|
|
34
|
-
*/
|
|
35
|
-
inlineIntersection: number;
|
|
36
|
-
/**
|
|
37
|
-
* The percentage of the element that is visible in the block direction.
|
|
38
|
-
*/
|
|
39
|
-
blockIntersection: number;
|
|
40
|
-
/**
|
|
41
|
-
* Whether the element is intersecting the container.
|
|
42
|
-
*/
|
|
43
|
-
isIntersecting: boolean;
|
|
44
|
-
/**
|
|
45
|
-
* The ratio of the element that is intersecting the container.
|
|
46
|
-
*/
|
|
47
|
-
intersectionRatio: number;
|
|
48
|
-
/**
|
|
49
|
-
* The element that is being checked for visibility.
|
|
50
|
-
*/
|
|
51
|
-
element: HTMLElement;
|
|
52
|
-
}
|
|
53
|
-
export declare const isElementVisible: (options: IsElementVisibleOptions) => CurrentElementVisibility | null;
|
|
54
|
-
export declare const getElementScrollCoordinates: (options: ScrollToElementOptions) => ScrollToOptions;
|
|
55
|
-
export interface ScrollToElementOptions {
|
|
56
|
-
/**
|
|
57
|
-
* The element to scroll to.
|
|
58
|
-
*/
|
|
59
|
-
element?: HTMLElement | null;
|
|
60
|
-
/**
|
|
61
|
-
* The scroll container to scroll to the element in.
|
|
62
|
-
* @default document.documentElement
|
|
63
|
-
*/
|
|
64
|
-
container?: HTMLElement | null;
|
|
65
|
-
/**
|
|
66
|
-
* The direction to scroll in.
|
|
67
|
-
* @default 'both'
|
|
68
|
-
*/
|
|
69
|
-
direction?: 'inline' | 'block' | 'both';
|
|
70
|
-
/**
|
|
71
|
-
* The origin of the element to scroll to.
|
|
72
|
-
* @default 'nearest'
|
|
73
|
-
*/
|
|
74
|
-
origin?: 'start' | 'end' | 'center' | 'nearest';
|
|
75
|
-
/**
|
|
76
|
-
* The scroll behavior.
|
|
77
|
-
* @default 'smooth'
|
|
78
|
-
*/
|
|
79
|
-
behavior?: ScrollBehavior;
|
|
80
|
-
/**
|
|
81
|
-
* The scroll inline-margin
|
|
82
|
-
* @default 0
|
|
83
|
-
*/
|
|
84
|
-
scrollInlineMargin?: number;
|
|
85
|
-
/**
|
|
86
|
-
* The scroll block-margin
|
|
87
|
-
* @default 0
|
|
88
|
-
*/
|
|
89
|
-
scrollBlockMargin?: number;
|
|
90
|
-
}
|
|
91
|
-
export declare const scrollToElement: (options: ScrollToElementOptions) => void;
|