@ethlete/core 2.5.1 → 2.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.
@@ -15,6 +15,7 @@ export declare class CursorDragScrollDirective implements AfterViewInit {
15
15
  get enabled(): boolean;
16
16
  set enabled(value: BooleanInput);
17
17
  private _enabled;
18
+ allowedDirection: 'horizontal' | 'vertical' | 'both';
18
19
  ngAfterViewInit(): void;
19
20
  private _enableCursorDragScroll;
20
21
  private _disableCursorDragScroll;
@@ -23,5 +24,5 @@ export declare class CursorDragScrollDirective implements AfterViewInit {
23
24
  private _mouseUpHandler;
24
25
  private _updateCanScrollState;
25
26
  static ɵfac: i0.ɵɵFactoryDeclaration<CursorDragScrollDirective, never>;
26
- static ɵdir: i0.ɵɵDirectiveDeclaration<CursorDragScrollDirective, "[etCursorDragScroll]", ["etCursorDragScroll"], { "enabled": { "alias": "etCursorDragScroll"; "required": false; }; }, {}, never, never, true, never>;
27
+ static ɵdir: i0.ɵɵDirectiveDeclaration<CursorDragScrollDirective, "[etCursorDragScroll]", ["etCursorDragScroll"], { "enabled": { "alias": "etCursorDragScroll"; "required": false; }; "allowedDirection": { "alias": "allowedDirection"; "required": false; }; }, {}, never, never, true, never>;
27
28
  }
@@ -0,0 +1,12 @@
1
+ import { BooleanInput } from '@angular/cdk/coercion';
2
+ import { ElementRef, InjectionToken } from '@angular/core';
3
+ import * as i0 from "@angular/core";
4
+ export declare const IS_ELEMENT: InjectionToken<IsElementDirective>;
5
+ export declare class IsElementDirective {
6
+ readonly elementRef: ElementRef<HTMLElement>;
7
+ get isElement(): boolean;
8
+ set isElement(value: BooleanInput);
9
+ private _isElement;
10
+ static ɵfac: i0.ɵɵFactoryDeclaration<IsElementDirective, never>;
11
+ static ɵdir: i0.ɵɵDirectiveDeclaration<IsElementDirective, "[etIsElement]", never, { "isElement": { "alias": "etIsElement"; "required": false; }; }, {}, never, never, true, never>;
12
+ }
@@ -0,0 +1 @@
1
+ export * from './is-element.directive';
@@ -2,6 +2,8 @@ import { NumberInput } from '@angular/cdk/coercion';
2
2
  import { EventEmitter, OnDestroy, OnInit } from '@angular/core';
3
3
  import { ScrollObserverScrollState } from './observe-scroll-state.types';
4
4
  import * as i0 from "@angular/core";
5
+ export declare const SCROLL_OBSERVER_OBSERVING_FIRST_ELEMENT_CLASS = "et-scroll-observer-observing-first-element";
6
+ export declare const SCROLL_OBSERVER_OBSERVING_LAST_ELEMENT_CLASS = "et-scroll-observer-observing-last-element";
5
7
  export declare class ObserveScrollStateDirective implements OnInit, OnDestroy {
6
8
  private readonly _destroy$;
7
9
  private readonly _elementRef;
@@ -5,6 +5,7 @@ export * from './click-outside/public-api';
5
5
  export * from './cursor-drag-scroll/public-api';
6
6
  export * from './delayable/public-api';
7
7
  export * from './is-active-element/public-api';
8
+ export * from './is-element/public-api';
8
9
  export * from './let/public-api';
9
10
  export * from './observe-content/public-api';
10
11
  export * from './observe-resize/public-api';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ethlete/core",
3
- "version": "2.5.1",
3
+ "version": "2.6.1",
4
4
  "dependencies": {
5
5
  "tslib": "^2.5.0"
6
6
  },