@ethlete/core 3.5.0 → 3.6.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.
@@ -0,0 +1,13 @@
1
+ import { AfterViewInit, EventEmitter, InjectionToken } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ export declare const OBSERVE_VISIBILITY_TOKEN: InjectionToken<ObserveVisibilityDirective>;
4
+ export declare class ObserveVisibilityDirective implements AfterViewInit {
5
+ private readonly _destroy$;
6
+ private readonly _elementRef;
7
+ private readonly _intersectionObserverService;
8
+ protected readonly isIntersecting: import("@angular/core").WritableSignal<boolean>;
9
+ readonly etObserveVisibility: EventEmitter<boolean>;
10
+ ngAfterViewInit(): void;
11
+ static ɵfac: i0.ɵɵFactoryDeclaration<ObserveVisibilityDirective, never>;
12
+ static ɵdir: i0.ɵɵDirectiveDeclaration<ObserveVisibilityDirective, "[etObserveVisibility]", never, {}, { "etObserveVisibility": "etObserveVisibility"; }, never, never, true, never>;
13
+ }
@@ -0,0 +1 @@
1
+ export * from './observe-visibility.directive';
@@ -11,6 +11,7 @@ export * from './let/public-api';
11
11
  export * from './observe-content/public-api';
12
12
  export * from './observe-resize/public-api';
13
13
  export * from './observe-scroll-state/public-api';
14
+ export * from './observe-visibility/public-api';
14
15
  export * from './repeat/public-api';
15
16
  export * from './scroll-observer-first-element/public-api';
16
17
  export * from './scroll-observer-ignore-target/public-api';
@@ -0,0 +1,20 @@
1
+ import { ElementRef, OnDestroy } from '@angular/core';
2
+ import { Observable } from 'rxjs';
3
+ import * as i0 from "@angular/core";
4
+ export declare class IntersectionObserverFactory {
5
+ create(callback: IntersectionObserverCallback): IntersectionObserver | null;
6
+ static ɵfac: i0.ɵɵFactoryDeclaration<IntersectionObserverFactory, never>;
7
+ static ɵprov: i0.ɵɵInjectableDeclaration<IntersectionObserverFactory>;
8
+ }
9
+ export declare class IntersectionObserverService implements OnDestroy {
10
+ private _intersectionObserverFactory;
11
+ private _observedElements;
12
+ ngOnDestroy(): void;
13
+ observe(element: Element): Observable<IntersectionObserverEntry[]>;
14
+ observe(element: ElementRef<Element>): Observable<IntersectionObserverEntry[]>;
15
+ private _observeElement;
16
+ private _unobserveElement;
17
+ private _cleanupObserver;
18
+ static ɵfac: i0.ɵɵFactoryDeclaration<IntersectionObserverService, never>;
19
+ static ɵprov: i0.ɵɵInjectableDeclaration<IntersectionObserverService>;
20
+ }
@@ -1,6 +1,7 @@
1
1
  export * from './click-observer.service';
2
2
  export * from './content-observer.service';
3
3
  export * from './focus-visible.service';
4
+ export * from './intersection-observer.service';
4
5
  export * from './resize-observer.service';
5
6
  export * from './router-state.service';
6
7
  export * from './viewport.service';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ethlete/core",
3
- "version": "3.5.0",
3
+ "version": "3.6.1",
4
4
  "dependencies": {
5
5
  "tslib": "^2.5.0"
6
6
  },
@@ -10,7 +10,7 @@
10
10
  "@angular/platform-browser": "16.2.5",
11
11
  "@ethlete/types": "1.4.0",
12
12
  "rxjs": "7.8.1",
13
- "@angular/cdk": "16.2.4",
13
+ "@angular/cdk": "16.2.5",
14
14
  "@floating-ui/dom": "1.5.3",
15
15
  "@angular/router": "16.2.5",
16
16
  "@angular/forms": "16.2.5"