@ethlete/cdk 3.20.0 → 3.21.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 +13 -0
- package/esm2022/lib/components/forms/components/select/components/combobox/directives/combobox/combobox.directive.mjs +1 -1
- package/esm2022/lib/components/forms/components/select/components/combobox/partials/combobox-option/combobox-option.component.mjs +6 -2
- package/esm2022/lib/components/forms/components/select/components/select/directives/select/select.directive.mjs +1 -1
- package/esm2022/lib/components/forms/components/select/components/select/directives/select-option/select-option.directive.mjs +6 -2
- package/esm2022/lib/components/picture/picture-data.directive.mjs +1 -1
- package/esm2022/lib/components/picture/picture.component.mjs +6 -8
- package/esm2022/lib/components/picture/picture.component.types.mjs +1 -1
- package/esm2022/lib/components/picture/pipes/index.mjs +2 -0
- package/esm2022/lib/components/picture/pipes/normalize-source/index.mjs +2 -0
- package/esm2022/lib/components/picture/pipes/normalize-source/normalize-source.pipe.mjs +18 -0
- package/esm2022/lib/components/picture/pipes/normalize-source/normalize-source.util.mjs +11 -0
- package/fesm2022/ethlete-cdk.mjs +40 -10
- package/fesm2022/ethlete-cdk.mjs.map +1 -1
- package/lib/components/forms/components/select/components/combobox/directives/combobox/combobox.directive.d.ts +2 -2
- package/lib/components/forms/components/select/components/combobox/partials/combobox-option/combobox-option.component.d.ts +1 -0
- package/lib/components/forms/components/select/components/select/directives/select/select.directive.d.ts +1 -1
- package/lib/components/forms/components/select/components/select/directives/select-option/select-option.directive.d.ts +1 -0
- package/lib/components/picture/picture-data.directive.d.ts +1 -1
- package/lib/components/picture/picture.component.d.ts +1 -1
- package/lib/components/picture/picture.component.types.d.ts +1 -1
- package/lib/components/picture/pipes/index.d.ts +1 -0
- package/lib/components/picture/pipes/normalize-source/index.d.ts +1 -0
- package/lib/components/picture/pipes/normalize-source/normalize-source.pipe.d.ts +7 -0
- package/lib/components/picture/pipes/normalize-source/normalize-source.util.d.ts +2 -0
- package/package.json +2 -2
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ComponentType } from '@angular/cdk/overlay';
|
|
2
2
|
import { ElementRef, EventEmitter, InjectionToken, OnInit, TemplateRef, TrackByFunction } from '@angular/core';
|
|
3
|
-
import { AnimatedOverlayComponentBase, SelectionModel, SelectionModelBinding, TypedQueryList } from '@ethlete/core';
|
|
3
|
+
import { ActiveSelectionModel, AnimatedOverlayComponentBase, SelectionModel, SelectionModelBinding, TypedQueryList } from '@ethlete/core';
|
|
4
4
|
import { BehaviorSubject } from 'rxjs';
|
|
5
5
|
import { ComponentWithError, ComponentWithOption, TemplateRefWithError, TemplateRefWithOption } from '../../private';
|
|
6
6
|
import * as i0 from "@angular/core";
|
|
@@ -107,7 +107,7 @@ export declare class ComboboxDirective implements OnInit {
|
|
|
107
107
|
readonly isOpen$: import("rxjs").Observable<boolean>;
|
|
108
108
|
readonly isOpen: import("@angular/core").Signal<boolean | undefined>;
|
|
109
109
|
readonly _selectionModel: SelectionModel<unknown>;
|
|
110
|
-
|
|
110
|
+
readonly _activeSelectionModel: ActiveSelectionModel<unknown>;
|
|
111
111
|
private readonly _backspaceKeyPressManager;
|
|
112
112
|
readonly selectedOptions$: import("rxjs").Observable<unknown[]>;
|
|
113
113
|
readonly multiple$: import("rxjs").Observable<boolean>;
|
|
@@ -26,6 +26,7 @@ export declare class ComboboxOptionComponent implements AbstractComboboxOption {
|
|
|
26
26
|
};
|
|
27
27
|
protected selectOption(): void;
|
|
28
28
|
protected ignoreBlur(): void;
|
|
29
|
+
protected setActiveByHover(): void;
|
|
29
30
|
static ɵfac: i0.ɵɵFactoryDeclaration<ComboboxOptionComponent, never>;
|
|
30
31
|
static ɵcmp: i0.ɵɵComponentDeclaration<ComboboxOptionComponent, "et-combobox-option", never, { "option": { "alias": "option"; "required": true; }; }, {}, never, never, true, never>;
|
|
31
32
|
}
|
|
@@ -84,7 +84,7 @@ export declare class SelectDirective<T extends SelectDirectiveBodyComponentBase>
|
|
|
84
84
|
private _unmountSelectBodyOnDisable;
|
|
85
85
|
private _handleKeyDownInClosedState;
|
|
86
86
|
private _handleKeyDownInOpenState;
|
|
87
|
-
|
|
87
|
+
_setActiveOption(option: SelectOptionDirective | null): Promise<boolean>;
|
|
88
88
|
private _addActiveOptionToSelection;
|
|
89
89
|
private _removeActiveOptionFromSelection;
|
|
90
90
|
private _toggleSelectionOfAllOptions;
|
|
@@ -32,6 +32,7 @@ export declare class SelectOptionDirective implements AfterContentInit {
|
|
|
32
32
|
setSelectValue(): Promise<void>;
|
|
33
33
|
_updateViewValue(): void;
|
|
34
34
|
_setActive(isActive: boolean): void;
|
|
35
|
+
protected setActiveByHover(): void;
|
|
35
36
|
static ɵfac: i0.ɵɵFactoryDeclaration<SelectOptionDirective, never>;
|
|
36
37
|
static ɵdir: i0.ɵɵDirectiveDeclaration<SelectOptionDirective, never, never, { "value": { "alias": "value"; "required": true; }; "disabled": { "alias": "disabled"; "required": false; }; }, {}, never, never, true, [{ directive: typeof i1.ObserveContentDirective; inputs: {}; outputs: {}; }]>;
|
|
37
38
|
}
|
|
@@ -7,7 +7,7 @@ export declare class PictureDataDirective {
|
|
|
7
7
|
figureClass: NgClassType;
|
|
8
8
|
figcaptionClass: NgClassType;
|
|
9
9
|
pictureClass: NgClassType;
|
|
10
|
-
defaultSrc: PictureSource | null;
|
|
10
|
+
defaultSrc: PictureSource | string | null;
|
|
11
11
|
alt: string | null;
|
|
12
12
|
figcaption: string | null;
|
|
13
13
|
width: number | null;
|
|
@@ -6,7 +6,7 @@ import * as i1 from "./picture-data.directive";
|
|
|
6
6
|
export declare class PictureComponent {
|
|
7
7
|
protected readonly pictureData: PictureDataDirective;
|
|
8
8
|
protected readonly config: import("./picture.component.types").PictureConfig | null;
|
|
9
|
-
sources: PictureSource
|
|
9
|
+
sources: Array<PictureSource | string>;
|
|
10
10
|
protected trackBySrc: TrackByFunction<PictureSource>;
|
|
11
11
|
protected combineWithConfig(src: PictureSource): PictureSource;
|
|
12
12
|
static ɵfac: i0.ɵɵFactoryDeclaration<PictureComponent, never>;
|
|
@@ -3,7 +3,7 @@ export interface PictureSource {
|
|
|
3
3
|
* The mime type of the image.
|
|
4
4
|
* @example `image/jpeg`
|
|
5
5
|
*/
|
|
6
|
-
type: string;
|
|
6
|
+
type: string | null;
|
|
7
7
|
/**
|
|
8
8
|
* The source set of the image. Can be either a single URL or a comma-separated list of URLs.
|
|
9
9
|
* @example `https://example.com/image.jpg`
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './normalize-source';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './normalize-source.pipe';
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { PipeTransform } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class NormalizeSourcePipe implements PipeTransform {
|
|
4
|
+
transform: (source: string | import("@ethlete/cdk").PictureSource) => import("@ethlete/cdk").PictureSource;
|
|
5
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NormalizeSourcePipe, never>;
|
|
6
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<NormalizeSourcePipe, "normalizeSource", true>;
|
|
7
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ethlete/cdk",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.21.0",
|
|
4
4
|
"exports": {
|
|
5
5
|
".": {
|
|
6
6
|
"css": "./src/lib/styles/index.css",
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
"@angular/animations": "16.2.5",
|
|
23
23
|
"@angular/platform-browser": "16.2.5",
|
|
24
24
|
"@angular/cdk": "16.2.7",
|
|
25
|
-
"@ethlete/core": "3.
|
|
25
|
+
"@ethlete/core": "3.12.0",
|
|
26
26
|
"@ethlete/query": "4.16.3"
|
|
27
27
|
},
|
|
28
28
|
"module": "fesm2022/ethlete-cdk.mjs",
|