@ethlete/core 1.7.0 → 1.8.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/esm2020/lib/components/structured-data/structured-data.component.mjs +3 -3
- package/esm2020/lib/directives/animatable/animatable.directive.mjs +3 -3
- package/esm2020/lib/directives/animated-lifecycle/animated-lifecycle.directive.mjs +3 -3
- package/esm2020/lib/directives/click-outside/click-outside.directive.mjs +3 -3
- package/esm2020/lib/directives/cursor-drag-scroll/cursor-drag-scroll.directive.mjs +3 -3
- package/esm2020/lib/directives/let/let.directive.mjs +3 -3
- package/esm2020/lib/directives/observe-content/observe-content.directive.mjs +3 -3
- package/esm2020/lib/directives/observe-resize/observe-resize.directive.mjs +3 -3
- package/esm2020/lib/directives/observe-scroll-state/observe-scroll-state.directive.mjs +3 -3
- package/esm2020/lib/directives/repeat/repeat.directive.mjs +3 -3
- package/esm2020/lib/directives/scroll-observer-first-element/scroll-observer-first-element.directive.mjs +3 -3
- package/esm2020/lib/directives/scroll-observer-ignore-target/scroll-observer-ignore-target.directive.mjs +3 -3
- package/esm2020/lib/directives/scroll-observer-last-element/scroll-observer-last-element.directive.mjs +3 -3
- package/esm2020/lib/directives/seo/seo.directive.mjs +3 -3
- package/esm2020/lib/pipes/normalize-game-result-type/normalize-game-result-type.pipe.mjs +3 -3
- package/esm2020/lib/pipes/normalize-match-participants/normalize-match-participants.pipe.mjs +3 -3
- package/esm2020/lib/pipes/normalize-match-score/normalize-match-score.pipe.mjs +3 -3
- package/esm2020/lib/pipes/normalize-match-state/normalize-match-state.pipe.mjs +3 -3
- package/esm2020/lib/pipes/normalize-match-type/normalize-match-type.pipe.mjs +3 -3
- package/esm2020/lib/pipes/to-array/to-array.pipe.mjs +3 -3
- package/esm2020/lib/services/click-observer.service.mjs +6 -6
- package/esm2020/lib/services/content-observer.service.mjs +6 -6
- package/esm2020/lib/services/destroy.service.mjs +3 -3
- package/esm2020/lib/services/focus-visible.service.mjs +3 -3
- package/esm2020/lib/services/resize-observer.service.mjs +6 -6
- package/esm2020/lib/services/router-state.service.mjs +3 -3
- package/esm2020/lib/services/viewport.service.mjs +3 -3
- package/esm2020/lib/utils/animation.utils.mjs +9 -5
- package/esm2020/lib/validators/is-email.validator.mjs +2 -2
- package/fesm2015/ethlete-core.mjs +99 -95
- package/fesm2015/ethlete-core.mjs.map +1 -1
- package/fesm2020/ethlete-core.mjs +99 -95
- package/fesm2020/ethlete-core.mjs.map +1 -1
- package/lib/utils/animation.utils.d.ts +38 -5
- package/package.json +5 -5
|
@@ -2,11 +2,26 @@ import { Observable } from 'rxjs';
|
|
|
2
2
|
export declare const nextFrame: (cb: () => void) => void;
|
|
3
3
|
export declare const fromNextFrame: () => Observable<void>;
|
|
4
4
|
export declare const forceReflow: (element?: HTMLElement) => number;
|
|
5
|
-
|
|
6
|
-
|
|
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
|
+
*/
|
|
7
17
|
duration?: number;
|
|
18
|
+
/**
|
|
19
|
+
* The easing function to use for the animation
|
|
20
|
+
* @default 'cubic-bezier(0.4, 0, 0.2, 1)'
|
|
21
|
+
*/
|
|
8
22
|
easing?: string;
|
|
9
|
-
}
|
|
23
|
+
}
|
|
24
|
+
export declare const createFlipAnimationGroup: (config: FlipAnimationGroupConfig) => {
|
|
10
25
|
updateInit: () => void;
|
|
11
26
|
play: () => void;
|
|
12
27
|
cancel: () => void;
|
|
@@ -14,11 +29,28 @@ export declare const createFlipAnimationGroup: (config: {
|
|
|
14
29
|
onFinish$: Observable<void[]>;
|
|
15
30
|
onCancel$: Observable<void[]>;
|
|
16
31
|
};
|
|
17
|
-
export
|
|
32
|
+
export interface FlipAnimationConfig {
|
|
33
|
+
/**
|
|
34
|
+
* The element to animate
|
|
35
|
+
*/
|
|
18
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
|
+
*/
|
|
19
46
|
duration?: number;
|
|
47
|
+
/**
|
|
48
|
+
* The easing function to use for the animation
|
|
49
|
+
* @default 'cubic-bezier(0.4, 0, 0.2, 1)'
|
|
50
|
+
*/
|
|
20
51
|
easing?: string;
|
|
21
|
-
}
|
|
52
|
+
}
|
|
53
|
+
export declare const createFlipAnimation: (config: FlipAnimationConfig) => {
|
|
22
54
|
updateInit: () => void;
|
|
23
55
|
play: () => void;
|
|
24
56
|
cancel: () => void;
|
|
@@ -26,3 +58,4 @@ export declare const createFlipAnimation: (config: {
|
|
|
26
58
|
onFinish$: Observable<void>;
|
|
27
59
|
onCancel$: Observable<void>;
|
|
28
60
|
};
|
|
61
|
+
export {};
|
package/package.json
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ethlete/core",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.8.1",
|
|
4
4
|
"dependencies": {
|
|
5
5
|
"tslib": "^2.5.0"
|
|
6
6
|
},
|
|
7
7
|
"peerDependencies": {
|
|
8
8
|
"@angular/common": "^15.2.1",
|
|
9
9
|
"@angular/core": "^15.2.1",
|
|
10
|
-
"@angular/platform-browser": "15.2.
|
|
10
|
+
"@angular/platform-browser": "15.2.5",
|
|
11
11
|
"@ethlete/types": "1.1.0",
|
|
12
12
|
"rxjs": "7.8.0",
|
|
13
|
-
"@angular/cdk": "15.2.
|
|
14
|
-
"@angular/router": "15.2.
|
|
15
|
-
"@angular/forms": "15.2.
|
|
13
|
+
"@angular/cdk": "15.2.5",
|
|
14
|
+
"@angular/router": "15.2.5",
|
|
15
|
+
"@angular/forms": "15.2.5"
|
|
16
16
|
},
|
|
17
17
|
"module": "fesm2015/ethlete-core.mjs",
|
|
18
18
|
"es2020": "fesm2020/ethlete-core.mjs",
|