@ethlete/cdk 2.3.2 → 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 +12 -0
- package/esm2022/lib/components/accordion/components/accordion-group/accordion-group.component.mjs +6 -6
- package/esm2022/lib/components/button/directives/button/button.directive.mjs +4 -5
- package/esm2022/lib/components/button/directives/query-button/query-button.directive.mjs +4 -5
- package/esm2022/lib/components/forms/components/checkbox/components/checkbox-group/checkbox-group.component.mjs +3 -4
- package/esm2022/lib/components/forms/components/checkbox/directives/checkbox/checkbox.directive.mjs +4 -4
- package/esm2022/lib/components/forms/components/checkbox/directives/checkbox-field/checkbox-field.directive.mjs +4 -4
- package/esm2022/lib/components/forms/components/checkbox/directives/checkbox-group/checkbox-group.directive.mjs +6 -6
- package/esm2022/lib/components/forms/components/checkbox/directives/checkbox-group-control/checkbox-group-control.directive.mjs +4 -4
- package/esm2022/lib/components/forms/components/error/components/error/error.component.mjs +5 -5
- package/esm2022/lib/components/forms/components/input/components/email-input/email-input.component.mjs +3 -4
- package/esm2022/lib/components/forms/components/input/components/number-input/number-input.component.mjs +4 -5
- package/esm2022/lib/components/forms/components/input/components/password-input/password-input.component.mjs +4 -5
- package/esm2022/lib/components/forms/components/input/components/search-input/search-input.component.mjs +4 -5
- package/esm2022/lib/components/forms/components/input/components/text-input/text-input.component.mjs +4 -5
- package/esm2022/lib/components/forms/components/input/components/textarea-input/textarea-input.component.mjs +4 -5
- package/esm2022/lib/components/forms/components/input/directives/autosize-textarea/autosize-textarea.directive.mjs +4 -5
- package/esm2022/lib/components/forms/components/input/directives/email-input/email-input.directive.mjs +5 -5
- package/esm2022/lib/components/forms/components/input/directives/number-input/number-input.directive.mjs +5 -5
- package/esm2022/lib/components/forms/components/input/directives/password-input/password-input.directive.mjs +5 -5
- package/esm2022/lib/components/forms/components/input/directives/search-input/search-input.directive.mjs +5 -5
- package/esm2022/lib/components/forms/components/input/directives/text-input/text-input.directive.mjs +5 -5
- package/esm2022/lib/components/forms/components/input/directives/textarea-input/textarea-input.directive.mjs +5 -5
- package/esm2022/lib/components/forms/components/radio/directives/radio/radio.directive.mjs +5 -5
- package/esm2022/lib/components/forms/components/radio/directives/radio-field/radio-field.directive.mjs +4 -4
- package/esm2022/lib/components/forms/components/radio/directives/radio-group/radio-group.directive.mjs +4 -4
- package/esm2022/lib/components/forms/components/segmented-button/directives/segmented-button/segmented-button.directive.mjs +4 -4
- package/esm2022/lib/components/forms/components/segmented-button/directives/segmented-button-field/segmented-button-field.directive.mjs +4 -4
- package/esm2022/lib/components/forms/components/segmented-button/directives/segmented-button-group/segmented-button-group.directive.mjs +5 -5
- package/esm2022/lib/components/forms/components/select/components/native-select/components/native-select/native-select.component.mjs +3 -4
- package/esm2022/lib/components/forms/components/select/components/native-select/directives/native-select-input/native-select-input.directive.mjs +5 -5
- package/esm2022/lib/components/forms/components/select/components/select/components/select/select.component.mjs +24 -12
- package/esm2022/lib/components/forms/components/select/components/select/partials/select-body/select-body.component.mjs +11 -16
- package/esm2022/lib/components/forms/components/slider/components/slider/slider.component.mjs +6 -6
- package/esm2022/lib/components/forms/directives/if-input-empty/if-input-empty.directive.mjs +4 -5
- package/esm2022/lib/components/forms/directives/if-input-filled/if-input-filled.directive.mjs +4 -5
- package/esm2022/lib/components/forms/directives/input/input.directive.mjs +6 -6
- package/esm2022/lib/components/forms/directives/static-form-field/static-form-field.directive.mjs +3 -5
- package/esm2022/lib/components/forms/directives/writeable-input/writeable-input.directive.mjs +2 -4
- package/esm2022/lib/components/forms/utils/decorated-input.base.mjs +3 -3
- package/esm2022/lib/components/masonry/components/masonry/masonry.component.mjs +5 -5
- package/esm2022/lib/components/overlay/components/bottom-sheet/partials/bottom-sheet-drag-handle/bottom-sheet-drag-handle.component.mjs +5 -5
- package/esm2022/lib/components/overlay/components/toggletip/directives/toggletip/toggletip.directive.mjs +41 -107
- package/esm2022/lib/components/overlay/components/tooltip/directives/tooltip/tooltip.directive.mjs +41 -117
- package/esm2022/lib/components/scrollable/components/scrollable/scrollable.component.mjs +55 -8
- 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/esm2022/lib/components/tabs/utils/paginated-tab-header.directive.mjs +3 -4
- package/fesm2022/ethlete-cdk.mjs +290 -389
- package/fesm2022/ethlete-cdk.mjs.map +1 -1
- package/lib/components/forms/components/select/components/select/components/select/select.component.d.ts +5 -1
- package/lib/components/forms/components/select/components/select/partials/select-body/select-body.component.d.ts +2 -0
- package/lib/components/overlay/components/toggletip/directives/toggletip/toggletip.directive.d.ts +11 -18
- package/lib/components/overlay/components/tooltip/directives/tooltip/tooltip.directive.d.ts +6 -17
- package/lib/components/scrollable/components/scrollable/scrollable.component.d.ts +13 -5
- package/lib/components/tabs/utils/paginated-tab-header.directive.d.ts +1 -2
- package/package.json +3 -4
|
@@ -3,11 +3,15 @@ import { TemplateRef } from '@angular/core';
|
|
|
3
3
|
import { DecoratedInputBase } from '../../../../../../utils';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
5
|
import * as i1 from "../../../../../../directives/input/input.directive";
|
|
6
|
+
import * as i2 from "@ethlete/core";
|
|
6
7
|
export declare class SelectComponent extends DecoratedInputBase {
|
|
8
|
+
private readonly _animatedOverlay;
|
|
7
9
|
get searchable(): boolean;
|
|
8
10
|
set searchable(value: BooleanInput);
|
|
9
11
|
private _searchable$;
|
|
10
12
|
selectBodyTpl: TemplateRef<unknown> | null;
|
|
13
|
+
constructor();
|
|
14
|
+
mountOrUnmountSelectBody(): void;
|
|
11
15
|
static ɵfac: i0.ɵɵFactoryDeclaration<SelectComponent, never>;
|
|
12
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<SelectComponent, "et-select", never, { "searchable": { "alias": "searchable"; "required": false; }; }, {}, never, ["[etInputPrefix]", "[etInputSuffix]", "*"], true, [{ directive: typeof i1.InputDirective; inputs: { "autocomplete": "autocomplete"; }; outputs: {}; }]>;
|
|
16
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SelectComponent, "et-select", never, { "searchable": { "alias": "searchable"; "required": false; }; }, {}, never, ["[etInputPrefix]", "[etInputSuffix]", "*"], true, [{ directive: typeof i1.InputDirective; inputs: { "autocomplete": "autocomplete"; }; outputs: {}; }, { directive: typeof i2.AnimatedOverlayDirective; inputs: {}; outputs: {}; }]>;
|
|
13
17
|
}
|
|
@@ -1,5 +1,7 @@
|
|
|
1
|
+
import { AnimatedLifecycleDirective } from '@ethlete/core';
|
|
1
2
|
import * as i0 from "@angular/core";
|
|
2
3
|
export declare class SelectBodyComponent {
|
|
4
|
+
readonly _animatedLifecycle?: AnimatedLifecycleDirective;
|
|
3
5
|
static ɵfac: i0.ɵɵFactoryDeclaration<SelectBodyComponent, never>;
|
|
4
6
|
static ɵcmp: i0.ɵɵComponentDeclaration<SelectBodyComponent, "et-select-body", never, {}, {}, never, never, true, never>;
|
|
5
7
|
}
|
package/lib/components/overlay/components/toggletip/directives/toggletip/toggletip.directive.d.ts
CHANGED
|
@@ -1,38 +1,31 @@
|
|
|
1
1
|
import { BooleanInput } from '@angular/cdk/coercion';
|
|
2
|
-
import { EventEmitter, InjectionToken, OnDestroy, TemplateRef } from '@angular/core';
|
|
3
|
-
import {
|
|
2
|
+
import { EventEmitter, InjectionToken, OnDestroy, OnInit, TemplateRef } from '@angular/core';
|
|
3
|
+
import { AnimatedOverlayDirective } from '@ethlete/core';
|
|
4
|
+
import { ToggletipComponent } from '../../components';
|
|
4
5
|
import * as i0 from "@angular/core";
|
|
6
|
+
import * as i1 from "@ethlete/core";
|
|
5
7
|
type ToggletipTemplate = string | TemplateRef<unknown>;
|
|
6
8
|
export declare const TOGGLETIP_DIRECTIVE: InjectionToken<ToggletipDirective>;
|
|
7
|
-
export declare class ToggletipDirective implements OnDestroy {
|
|
8
|
-
private
|
|
9
|
+
export declare class ToggletipDirective implements OnInit, OnDestroy {
|
|
10
|
+
private readonly _destroy$;
|
|
11
|
+
private readonly _defaultConfig;
|
|
12
|
+
readonly _animatedOverlay: AnimatedOverlayDirective<ToggletipComponent>;
|
|
9
13
|
get toggletip(): ToggletipTemplate | null;
|
|
10
14
|
set toggletip(v: ToggletipTemplate | null);
|
|
11
15
|
private _toggletip;
|
|
12
16
|
get showToggletip(): boolean;
|
|
13
17
|
set showToggletip(value: BooleanInput);
|
|
14
18
|
private _showToggletip;
|
|
15
|
-
placement: PopperPlacement;
|
|
16
19
|
toggletipClose: EventEmitter<any>;
|
|
17
|
-
private _hostElementRef;
|
|
18
|
-
private _viewContainerRef;
|
|
19
|
-
private _overlayService;
|
|
20
20
|
private _clickObserverService;
|
|
21
|
-
private _injector;
|
|
22
|
-
private _zone;
|
|
23
|
-
private _overlayRef;
|
|
24
|
-
private _portal;
|
|
25
|
-
private _toggletipRef;
|
|
26
|
-
private _popper;
|
|
27
21
|
private readonly _listenerSubscriptions;
|
|
22
|
+
constructor();
|
|
23
|
+
ngOnInit(): void;
|
|
28
24
|
ngOnDestroy(): void;
|
|
29
25
|
private _addListeners;
|
|
30
26
|
private _removeListeners;
|
|
31
27
|
private _mountToggletip;
|
|
32
|
-
_animateUnmount(): void;
|
|
33
|
-
private _unmountToggletip;
|
|
34
|
-
private _createOverlay;
|
|
35
28
|
static ɵfac: i0.ɵɵFactoryDeclaration<ToggletipDirective, never>;
|
|
36
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<ToggletipDirective, "[etToggletip]", never, { "toggletip": { "alias": "etToggletip"; "required": false; }; "showToggletip": { "alias": "showToggletip"; "required": false; };
|
|
29
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<ToggletipDirective, "[etToggletip]", never, { "toggletip": { "alias": "etToggletip"; "required": false; }; "showToggletip": { "alias": "showToggletip"; "required": false; }; }, { "toggletipClose": "toggletipClose"; }, never, never, true, [{ directive: typeof i1.AnimatedOverlayDirective; inputs: { "placement": "placement"; }; outputs: {}; }]>;
|
|
37
30
|
}
|
|
38
31
|
export {};
|
|
@@ -1,44 +1,33 @@
|
|
|
1
1
|
import { InjectionToken, OnDestroy, TemplateRef } from '@angular/core';
|
|
2
|
-
import { Placement as PopperPlacement } from '@popperjs/core';
|
|
3
2
|
import * as i0 from "@angular/core";
|
|
3
|
+
import * as i1 from "@ethlete/core";
|
|
4
4
|
type TooltipTemplate = string | TemplateRef<unknown>;
|
|
5
5
|
export declare const TOOLTIP_DIRECTIVE: InjectionToken<TooltipDirective>;
|
|
6
6
|
export declare class TooltipDirective implements OnDestroy {
|
|
7
|
-
private _defaultConfig;
|
|
7
|
+
private readonly _defaultConfig;
|
|
8
|
+
private readonly _animatedOverlay;
|
|
8
9
|
get tooltip(): TooltipTemplate | null;
|
|
9
10
|
set tooltip(v: TooltipTemplate | null);
|
|
10
11
|
private _tooltip;
|
|
11
|
-
placement: PopperPlacement;
|
|
12
12
|
get tooltipAriaDescription(): string | null;
|
|
13
13
|
set tooltipAriaDescription(v: string | null);
|
|
14
14
|
private _tooltipAriaDescription;
|
|
15
15
|
private _lastTooltipText;
|
|
16
|
-
private
|
|
17
|
-
private _viewContainerRef;
|
|
18
|
-
private _overlayService;
|
|
16
|
+
private _elementRef;
|
|
19
17
|
private _ariaDescriberService;
|
|
20
18
|
private _focusVisibleService;
|
|
21
|
-
private _injector;
|
|
22
|
-
private _zone;
|
|
23
|
-
private _overlayRef;
|
|
24
|
-
private _portal;
|
|
25
|
-
private _tooltipRef;
|
|
26
|
-
private _popper;
|
|
27
19
|
private _willMount;
|
|
28
20
|
private _hasFocus;
|
|
29
21
|
private _hasHover;
|
|
30
|
-
private get _isMounted();
|
|
31
22
|
private readonly _listenerSubscriptions;
|
|
23
|
+
constructor();
|
|
32
24
|
ngOnDestroy(): void;
|
|
33
25
|
private _updateAriaDescription;
|
|
34
26
|
private _addListeners;
|
|
35
27
|
private _removeListeners;
|
|
36
28
|
private _mountTooltip;
|
|
37
|
-
private _animateUnmount;
|
|
38
|
-
private _unmountTooltip;
|
|
39
|
-
private _createOverlay;
|
|
40
29
|
private _getTooltipText;
|
|
41
30
|
static ɵfac: i0.ɵɵFactoryDeclaration<TooltipDirective, never>;
|
|
42
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<TooltipDirective, "[etTooltip]", never, { "tooltip": { "alias": "etTooltip"; "required": false; }; "
|
|
31
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<TooltipDirective, "[etTooltip]", never, { "tooltip": { "alias": "etTooltip"; "required": false; }; "tooltipAriaDescription": { "alias": "tooltipAriaDescription"; "required": false; }; }, {}, never, never, true, [{ directive: typeof i1.AnimatedOverlayDirective; inputs: { "placement": "placement"; }; outputs: {}; }]>;
|
|
43
32
|
}
|
|
44
33
|
export {};
|
|
@@ -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
|
}
|
|
@@ -4,7 +4,6 @@ import { BooleanInput, NumberInput } from '@angular/cdk/coercion';
|
|
|
4
4
|
import { ViewportRuler } from '@angular/cdk/scrolling';
|
|
5
5
|
import { AfterContentChecked, AfterContentInit, ChangeDetectorRef, ElementRef, EventEmitter, NgZone, OnDestroy } from '@angular/core';
|
|
6
6
|
import { NgClassType, TypedQueryList } from '@ethlete/core';
|
|
7
|
-
import { Subject } from 'rxjs';
|
|
8
7
|
import { ScrollableComponent } from '../../scrollable';
|
|
9
8
|
import * as i0 from "@angular/core";
|
|
10
9
|
export type TabPaginationScrollDirection = 'after' | 'before';
|
|
@@ -25,7 +24,7 @@ export declare abstract class PaginatedTabHeaderDirective implements AfterConten
|
|
|
25
24
|
};
|
|
26
25
|
private _scrollDistance;
|
|
27
26
|
private _selectedIndexChanged;
|
|
28
|
-
protected readonly _destroy$:
|
|
27
|
+
protected readonly _destroy$: import("rxjs").Observable<boolean>;
|
|
29
28
|
_tabLabelCount: number;
|
|
30
29
|
private _scrollDistanceChanged;
|
|
31
30
|
private _keyManager;
|
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,10 +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": "1.
|
|
23
|
+
"@ethlete/core": "2.1.0",
|
|
24
24
|
"@angular/animations": "16.0.0",
|
|
25
|
-
"@ethlete/query": "4.
|
|
26
|
-
"@popperjs/core": "2.11.7"
|
|
25
|
+
"@ethlete/query": "4.3.0"
|
|
27
26
|
},
|
|
28
27
|
"module": "fesm2022/ethlete-cdk.mjs",
|
|
29
28
|
"typings": "index.d.ts",
|