@ethlete/cdk 2.3.3 → 2.4.0
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/CHANGELOG.md +6 -0
- package/esm2022/lib/components/scrollable/components/scrollable/scrollable.component.mjs +53 -6
- package/esm2022/lib/components/tabs/components/nav-tabs/nav-tabs.component.mjs +1 -1
- package/esm2022/lib/components/tabs/partials/inline-tabs/inline-tab-header/inline-tab-header.component.mjs +1 -1
- package/fesm2022/ethlete-cdk.mjs +51 -4
- package/fesm2022/ethlete-cdk.mjs.map +1 -1
- package/lib/components/scrollable/components/scrollable/scrollable.component.d.ts +13 -5
- package/package.json +3 -3
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { BooleanInput } from '@angular/cdk/coercion';
|
|
2
|
-
import { ElementRef, OnInit } from '@angular/core';
|
|
3
|
-
import { NgClassType, ScrollObserverScrollState } from '@ethlete/core';
|
|
1
|
+
import { BooleanInput, NumberInput } from '@angular/cdk/coercion';
|
|
2
|
+
import { AfterContentInit, ElementRef, OnInit } from '@angular/core';
|
|
3
|
+
import { IsActiveElementDirective, NgClassType, ScrollObserverScrollState, TypedQueryList } from '@ethlete/core';
|
|
4
4
|
import { BehaviorSubject } from 'rxjs';
|
|
5
5
|
import * as i0 from "@angular/core";
|
|
6
|
-
export declare class ScrollableComponent implements OnInit {
|
|
6
|
+
export declare class ScrollableComponent implements OnInit, AfterContentInit {
|
|
7
7
|
private readonly _destroy$;
|
|
8
8
|
private readonly _renderer;
|
|
9
9
|
private readonly _elementRef;
|
|
@@ -26,13 +26,21 @@ export declare class ScrollableComponent implements OnInit {
|
|
|
26
26
|
get cursorDragScroll(): boolean;
|
|
27
27
|
set cursorDragScroll(value: BooleanInput);
|
|
28
28
|
private _cursorDragScroll;
|
|
29
|
+
get activeElementScrollMargin(): number;
|
|
30
|
+
set activeElementScrollMargin(value: NumberInput);
|
|
31
|
+
private _activeElementScrollMargin;
|
|
32
|
+
get disableActiveElementScrolling(): boolean;
|
|
33
|
+
set disableActiveElementScrolling(value: BooleanInput);
|
|
34
|
+
private _disableActiveElementScrolling;
|
|
29
35
|
scrollable: ElementRef<HTMLElement>;
|
|
36
|
+
activeElements: TypedQueryList<IsActiveElementDirective> | null;
|
|
30
37
|
protected readonly scrollState$: BehaviorSubject<ScrollObserverScrollState | null>;
|
|
31
38
|
ngOnInit(): void;
|
|
39
|
+
ngAfterContentInit(): void;
|
|
32
40
|
protected _scrollStateChanged(scrollState: ScrollObserverScrollState): void;
|
|
33
41
|
protected scrollOneContainerSizeToStart(): void;
|
|
34
42
|
protected scrollOneContainerSizeToEnd(): void;
|
|
35
43
|
scrollOneContainerSize(direction: 'start' | 'end'): void;
|
|
36
44
|
static ɵfac: i0.ɵɵFactoryDeclaration<ScrollableComponent, never>;
|
|
37
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ScrollableComponent, "et-scrollable", never, { "itemSize": { "alias": "itemSize"; "required": false; }; "direction": { "alias": "direction"; "required": false; }; "scrollableRole": { "alias": "scrollableRole"; "required": false; }; "scrollableClass": { "alias": "scrollableClass"; "required": false; }; "renderMasks": { "alias": "renderMasks"; "required": false; }; "renderButtons": { "alias": "renderButtons"; "required": false; }; "renderScrollbars": { "alias": "renderScrollbars"; "required": false; }; "stickyButtons": { "alias": "stickyButtons"; "required": false; }; "cursorDragScroll": { "alias": "cursorDragScroll"; "required": false; }; }, {},
|
|
45
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ScrollableComponent, "et-scrollable", never, { "itemSize": { "alias": "itemSize"; "required": false; }; "direction": { "alias": "direction"; "required": false; }; "scrollableRole": { "alias": "scrollableRole"; "required": false; }; "scrollableClass": { "alias": "scrollableClass"; "required": false; }; "renderMasks": { "alias": "renderMasks"; "required": false; }; "renderButtons": { "alias": "renderButtons"; "required": false; }; "renderScrollbars": { "alias": "renderScrollbars"; "required": false; }; "stickyButtons": { "alias": "stickyButtons"; "required": false; }; "cursorDragScroll": { "alias": "cursorDragScroll"; "required": false; }; "activeElementScrollMargin": { "alias": "activeElementScrollMargin"; "required": false; }; "disableActiveElementScrolling": { "alias": "disableActiveElementScrolling"; "required": false; }; }, {}, ["activeElements"], ["*"], true, never>;
|
|
38
46
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ethlete/cdk",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.4.0",
|
|
4
4
|
"exports": {
|
|
5
5
|
".": {
|
|
6
6
|
"css": "./src/lib/styles/index.css",
|
|
@@ -20,9 +20,9 @@
|
|
|
20
20
|
"@angular/common": "^15.2.1 || ^16.0.0",
|
|
21
21
|
"@angular/core": "^15.2.1 || ^16.0.0",
|
|
22
22
|
"@angular/cdk": "16.0.0",
|
|
23
|
-
"@ethlete/core": "2.
|
|
23
|
+
"@ethlete/core": "2.1.0",
|
|
24
24
|
"@angular/animations": "16.0.0",
|
|
25
|
-
"@ethlete/query": "4.
|
|
25
|
+
"@ethlete/query": "4.3.0"
|
|
26
26
|
},
|
|
27
27
|
"module": "fesm2022/ethlete-cdk.mjs",
|
|
28
28
|
"typings": "index.d.ts",
|