@ethlete/core 0.2.0-next.23 → 0.2.0-next.25

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 (29) hide show
  1. package/esm2020/lib/directives/animatable/animatable.directive.mjs +79 -0
  2. package/esm2020/lib/directives/animatable/public-api.mjs +2 -0
  3. package/esm2020/lib/directives/animated-lifecycle/animated-lifecycle.directive.mjs +113 -0
  4. package/esm2020/lib/directives/animated-lifecycle/public-api.mjs +2 -0
  5. package/esm2020/lib/directives/public-api.mjs +3 -1
  6. package/esm2020/lib/public-api.mjs +2 -1
  7. package/esm2020/lib/utils/animation.utils.mjs +9 -0
  8. package/esm2020/lib/utils/public-api.mjs +2 -1
  9. package/esm2020/lib/validators/is-array-not-empty.validator.mjs +9 -0
  10. package/esm2020/lib/validators/is-email.validator.mjs +10 -0
  11. package/esm2020/lib/validators/must-match.validator.mjs +19 -0
  12. package/esm2020/lib/validators/public-api.mjs +12 -0
  13. package/fesm2015/ethlete-core.mjs +237 -3
  14. package/fesm2015/ethlete-core.mjs.map +1 -1
  15. package/fesm2020/ethlete-core.mjs +237 -3
  16. package/fesm2020/ethlete-core.mjs.map +1 -1
  17. package/lib/directives/animatable/animatable.directive.d.ts +20 -0
  18. package/lib/directives/animatable/public-api.d.ts +1 -0
  19. package/lib/directives/animated-lifecycle/animated-lifecycle.directive.d.ts +22 -0
  20. package/lib/directives/animated-lifecycle/public-api.d.ts +1 -0
  21. package/lib/directives/public-api.d.ts +2 -0
  22. package/lib/public-api.d.ts +1 -0
  23. package/lib/utils/animation.utils.d.ts +2 -0
  24. package/lib/utils/public-api.d.ts +1 -0
  25. package/lib/validators/is-array-not-empty.validator.d.ts +3 -0
  26. package/lib/validators/is-email.validator.d.ts +3 -0
  27. package/lib/validators/must-match.validator.d.ts +3 -0
  28. package/lib/validators/public-api.d.ts +8 -0
  29. package/package.json +3 -2
@@ -0,0 +1,20 @@
1
+ import { InjectionToken, OnInit } from '@angular/core';
2
+ import { Observable } from 'rxjs';
3
+ import * as i0 from "@angular/core";
4
+ export declare const ANIMATABLE_TOKEN: InjectionToken<AnimatableDirective>;
5
+ export declare class AnimatableDirective implements OnInit {
6
+ private _didEmitStart;
7
+ private readonly _parent;
8
+ private readonly _destroy$;
9
+ private readonly _elementRef;
10
+ private readonly _animationStart$;
11
+ private readonly _animationEnd$;
12
+ readonly animationStart$: Observable<void>;
13
+ readonly animationEnd$: Observable<void>;
14
+ private readonly _hostActiveAnimationCount$;
15
+ private readonly _totalActiveAnimationCount$;
16
+ readonly isAnimating$: Observable<boolean>;
17
+ ngOnInit(): void;
18
+ static ɵfac: i0.ɵɵFactoryDeclaration<AnimatableDirective, never>;
19
+ static ɵdir: i0.ɵɵDirectiveDeclaration<AnimatableDirective, "[etAnimatable]", ["etAnimatable"], {}, {}, never, never, true, never>;
20
+ }
@@ -0,0 +1 @@
1
+ export * from './animatable.directive';
@@ -0,0 +1,22 @@
1
+ import { InjectionToken } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ import * as i1 from "../animatable/animatable.directive";
4
+ export declare const ANIMATED_LIFECYCLE_TOKEN: InjectionToken<AnimatedLifecycleDirective>;
5
+ export declare class AnimatedLifecycleDirective {
6
+ private readonly _destroy$;
7
+ private readonly _elementRef;
8
+ private readonly _animatable;
9
+ private readonly _classList;
10
+ private _state$;
11
+ readonly state$: import("rxjs").Observable<"entering" | "entered" | "leaving" | "left" | "init">;
12
+ get state(): "entering" | "entered" | "leaving" | "left" | "init";
13
+ private get _opacity();
14
+ enter(config?: {
15
+ onlyTransition?: boolean;
16
+ }): void;
17
+ leave(config?: {
18
+ onlyTransition?: boolean;
19
+ }): void;
20
+ static ɵfac: i0.ɵɵFactoryDeclaration<AnimatedLifecycleDirective, never>;
21
+ static ɵdir: i0.ɵɵDirectiveDeclaration<AnimatedLifecycleDirective, "[etAnimatedLifecycle]", ["etAnimatedLifecycle"], {}, {}, never, never, true, [{ directive: typeof i1.AnimatableDirective; inputs: {}; outputs: {}; }]>;
22
+ }
@@ -0,0 +1 @@
1
+ export * from './animated-lifecycle.directive';
@@ -1,3 +1,5 @@
1
+ export * from './animatable/public-api';
2
+ export * from './animated-lifecycle/public-api';
1
3
  export * from './click-outside/public-api';
2
4
  export * from './cursor-drag-scroll/public-api';
3
5
  export * from './let/public-api';
@@ -6,3 +6,4 @@ export * from './pipes/public-api';
6
6
  export * from './services/public-api';
7
7
  export * from './types/public-api';
8
8
  export * from './utils/public-api';
9
+ export * from './validators/public-api';
@@ -0,0 +1,2 @@
1
+ export declare const nextFrame: (cb: () => void) => void;
2
+ export declare const forceReflow: (element?: HTMLElement) => number;
@@ -1,3 +1,4 @@
1
+ export * from './animation.utils';
1
2
  export * from './clamp.util';
2
3
  export * from './clone.util';
3
4
  export * from './cookie.util';
@@ -0,0 +1,3 @@
1
+ import { AbstractControl, ValidationErrors } from '@angular/forms';
2
+ export declare const IS_ARRAY_NOT_EMPTY = "isArrayNotEmpty";
3
+ export declare const IsArrayNotEmpty: (control: AbstractControl) => ValidationErrors | null;
@@ -0,0 +1,3 @@
1
+ import { AbstractControl, ValidationErrors } from '@angular/forms';
2
+ export declare const IS_EMAIL = "isEmail";
3
+ export declare const IsEmail: (control: AbstractControl) => ValidationErrors | null;
@@ -0,0 +1,3 @@
1
+ import { FormGroup } from '@angular/forms';
2
+ export declare const MUST_MATCH = "mustMatch";
3
+ export declare const MustMatch: (controlName: string, matchingControlName: string) => (formGroup: FormGroup) => void;
@@ -0,0 +1,8 @@
1
+ export * from './is-array-not-empty.validator';
2
+ export * from './is-email.validator';
3
+ export * from './must-match.validator';
4
+ export declare const Validators: {
5
+ readonly MustMatch: (controlName: string, matchingControlName: string) => (formGroup: import("@angular/forms").FormGroup<any>) => void;
6
+ readonly IsEmail: (control: import("@angular/forms").AbstractControl<any, any>) => import("@angular/forms").ValidationErrors | null;
7
+ readonly IsArrayNotEmpty: (control: import("@angular/forms").AbstractControl<any, any>) => import("@angular/forms").ValidationErrors | null;
8
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ethlete/core",
3
- "version": "0.2.0-next.23",
3
+ "version": "0.2.0-next.25",
4
4
  "dependencies": {
5
5
  "tslib": "2.5.0"
6
6
  },
@@ -11,7 +11,8 @@
11
11
  "@ethlete/types": "0.2.0-next.4",
12
12
  "rxjs": "7.8.0",
13
13
  "@angular/cdk": "15.1.4",
14
- "@angular/router": "15.1.4"
14
+ "@angular/router": "15.1.4",
15
+ "@angular/forms": "15.1.4"
15
16
  },
16
17
  "module": "fesm2015/ethlete-core.mjs",
17
18
  "es2020": "fesm2020/ethlete-core.mjs",