@ethlete/cdk 4.3.0 → 4.3.2

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 (20) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/esm2022/lib/components/overlay/components/overlay/services/overlay.service.mjs +2 -2
  3. package/esm2022/lib/components/overlay/components/overlay/types/overlay.types.mjs +1 -1
  4. package/esm2022/lib/components/overlay/components/overlay/utils/overlay-position-builder.mjs +7 -7
  5. package/esm2022/lib/components/scrollable/components/scrollable/scrollable.component.mjs +10 -9
  6. package/esm2022/lib/components/scrollable/directives/public-api.mjs +2 -1
  7. package/esm2022/lib/components/scrollable/directives/scrollable-ignore-child/scrollable-ignore-child.directive.mjs +3 -3
  8. package/esm2022/lib/components/scrollable/directives/scrollable-is-active-child/public-api.mjs +2 -0
  9. package/esm2022/lib/components/scrollable/directives/scrollable-is-active-child/scrollable-is-active-child.directive.mjs +45 -0
  10. package/esm2022/lib/components/scrollable/scrollable.imports.mjs +4 -7
  11. package/fesm2022/ethlete-cdk.mjs +62 -22
  12. package/fesm2022/ethlete-cdk.mjs.map +1 -1
  13. package/lib/components/overlay/components/overlay/types/overlay.types.d.ts +1 -1
  14. package/lib/components/overlay/components/overlay/utils/overlay-position-builder.d.ts +6 -6
  15. package/lib/components/scrollable/components/scrollable/scrollable.component.d.ts +3 -2
  16. package/lib/components/scrollable/directives/public-api.d.ts +1 -0
  17. package/lib/components/scrollable/directives/scrollable-is-active-child/public-api.d.ts +1 -0
  18. package/lib/components/scrollable/directives/scrollable-is-active-child/scrollable-is-active-child.directive.d.ts +17 -0
  19. package/lib/components/scrollable/scrollable.imports.d.ts +2 -2
  20. package/package.json +2 -2
@@ -53,7 +53,7 @@ export interface OverlayBreakpointConfig {
53
53
  /** Height of the overlay. */
54
54
  height?: number | string;
55
55
  /** Position strategy to be used for the overlay. */
56
- positionStrategy?: PositionStrategy;
56
+ positionStrategy?: () => PositionStrategy;
57
57
  /** Custom class for the overlay container. */
58
58
  containerClass?: string | string[];
59
59
  /** Custom class for the overlay pane. */
@@ -16,7 +16,7 @@ export declare class OverlayPositionBuilder {
16
16
  minHeight: undefined;
17
17
  minWidth: undefined;
18
18
  containerClass: string;
19
- positionStrategy: import("@angular/cdk/overlay").GlobalPositionStrategy;
19
+ positionStrategy: () => import("@angular/cdk/overlay").GlobalPositionStrategy;
20
20
  };
21
21
  fullScreenDialog: {
22
22
  width: string;
@@ -26,7 +26,7 @@ export declare class OverlayPositionBuilder {
26
26
  minHeight: undefined;
27
27
  minWidth: undefined;
28
28
  containerClass: string;
29
- positionStrategy: import("@angular/cdk/overlay").GlobalPositionStrategy;
29
+ positionStrategy: () => import("@angular/cdk/overlay").GlobalPositionStrategy;
30
30
  documentClass: string;
31
31
  applyTransformOrigin: true;
32
32
  };
@@ -38,7 +38,7 @@ export declare class OverlayPositionBuilder {
38
38
  minHeight: undefined;
39
39
  minWidth: undefined;
40
40
  containerClass: string;
41
- positionStrategy: import("@angular/cdk/overlay").GlobalPositionStrategy;
41
+ positionStrategy: () => import("@angular/cdk/overlay").GlobalPositionStrategy;
42
42
  dragToDismiss: {
43
43
  direction: "to-bottom";
44
44
  };
@@ -51,7 +51,7 @@ export declare class OverlayPositionBuilder {
51
51
  minHeight: undefined;
52
52
  minWidth: undefined;
53
53
  containerClass: string;
54
- positionStrategy: import("@angular/cdk/overlay").GlobalPositionStrategy;
54
+ positionStrategy: () => import("@angular/cdk/overlay").GlobalPositionStrategy;
55
55
  dragToDismiss: {
56
56
  direction: "to-top";
57
57
  };
@@ -64,7 +64,7 @@ export declare class OverlayPositionBuilder {
64
64
  minHeight: undefined;
65
65
  minWidth: undefined;
66
66
  containerClass: string;
67
- positionStrategy: import("@angular/cdk/overlay").GlobalPositionStrategy;
67
+ positionStrategy: () => import("@angular/cdk/overlay").GlobalPositionStrategy;
68
68
  dragToDismiss: {
69
69
  direction: "to-left";
70
70
  };
@@ -77,7 +77,7 @@ export declare class OverlayPositionBuilder {
77
77
  minHeight: undefined;
78
78
  minWidth: undefined;
79
79
  containerClass: string;
80
- positionStrategy: import("@angular/cdk/overlay").GlobalPositionStrategy;
80
+ positionStrategy: () => import("@angular/cdk/overlay").GlobalPositionStrategy;
81
81
  dragToDismiss: {
82
82
  direction: "to-right";
83
83
  };
@@ -1,5 +1,6 @@
1
1
  import { ElementRef, EventEmitter } from '@angular/core';
2
- import { IsActiveElementDirective, NgClassType, ScrollObserverScrollState, ScrollToElementOptions, TypedQueryList } from '@ethlete/core';
2
+ import { NgClassType, ScrollObserverScrollState, ScrollToElementOptions, TypedQueryList } from '@ethlete/core';
3
+ import { ScrollableIsActiveChildDirective } from '../../directives';
3
4
  import { ScrollableIntersectionChange, ScrollableScrollMode } from '../../types';
4
5
  import * as i0 from "@angular/core";
5
6
  interface ScrollableNavigationItem {
@@ -48,7 +49,7 @@ export declare class ScrollableComponent {
48
49
  private set _lastElement(value);
49
50
  readonly lastElement: import("@angular/core").WritableSignal<ElementRef<HTMLElement> | null>;
50
51
  private set _activeElementList(value);
51
- readonly activeElementList: import("@angular/core").WritableSignal<TypedQueryList<IsActiveElementDirective> | null>;
52
+ readonly activeElementList: import("@angular/core").WritableSignal<TypedQueryList<ScrollableIsActiveChildDirective> | null>;
52
53
  private readonly containerScrollState;
53
54
  private readonly firstElementIntersection;
54
55
  private readonly firstElementVisibility;
@@ -1 +1,2 @@
1
1
  export * from './scrollable-ignore-child/public-api';
2
+ export * from './scrollable-is-active-child/public-api';
@@ -0,0 +1 @@
1
+ export * from './scrollable-is-active-child.directive';
@@ -0,0 +1,17 @@
1
+ import { ElementRef, InjectionToken } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ export declare const SCROLLABLE_IS_ACTIVE_CHILD_TOKEN: InjectionToken<ScrollableIsActiveChildDirective>;
4
+ export declare const SCROLLABLE_IS_ACTIVE_CHILD_ATTRIBUTE = "etScrollableIsActiveChild";
5
+ export declare const isScrollableChildActive: (e: HTMLElement) => boolean;
6
+ export declare class ScrollableIsActiveChildDirective {
7
+ readonly elementRef: ElementRef<HTMLElement>;
8
+ set _isActiveChildEnabled(v: boolean);
9
+ readonly isActiveChildEnabled: import("@angular/core").WritableSignal<boolean>;
10
+ readonly hostAttributeBindings: {
11
+ remove: (...tokens: string[]) => void;
12
+ has: (token: string) => boolean;
13
+ };
14
+ static ɵfac: i0.ɵɵFactoryDeclaration<ScrollableIsActiveChildDirective, never>;
15
+ static ɵdir: i0.ɵɵDirectiveDeclaration<ScrollableIsActiveChildDirective, "[etScrollableIsActiveChild]", never, { "_isActiveChildEnabled": { "alias": "etScrollableIsActiveChild"; "required": false; }; }, {}, never, never, true, never>;
16
+ static ngAcceptInputType__isActiveChildEnabled: unknown;
17
+ }
@@ -1,3 +1,3 @@
1
- import { IsActiveElementDirective, IsElementDirective, ScrollObserverFirstElementDirective, ScrollObserverIgnoreTargetDirective, ScrollObserverLastElementDirective } from '@ethlete/core';
2
1
  import { ScrollableComponent } from './components';
3
- export declare const ScrollableImports: readonly [typeof ScrollableComponent, typeof IsElementDirective, typeof IsActiveElementDirective, typeof ScrollObserverFirstElementDirective, typeof ScrollObserverLastElementDirective, typeof ScrollObserverIgnoreTargetDirective];
2
+ import { ScrollableIgnoreChildDirective, ScrollableIsActiveChildDirective } from './directives';
3
+ export declare const ScrollableImports: readonly [typeof ScrollableComponent, typeof ScrollableIsActiveChildDirective, typeof ScrollableIgnoreChildDirective];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ethlete/cdk",
3
- "version": "4.3.0",
3
+ "version": "4.3.2",
4
4
  "exports": {
5
5
  ".": {
6
6
  "css": "./src/lib/styles/index.css",
@@ -15,7 +15,7 @@
15
15
  },
16
16
  "peerDependencies": {
17
17
  "@angular/animations": "17.0.3",
18
- "@angular/cdk": "17.0.0",
18
+ "@angular/cdk": "17.0.1",
19
19
  "@angular/common": "17.0.3",
20
20
  "@angular/core": "17.0.3",
21
21
  "@angular/forms": "17.0.3",