@ethlete/cdk 3.20.1 → 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 +7 -0
- 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 +30 -8
- package/fesm2022/ethlete-cdk.mjs.map +1 -1
- 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
|
@@ -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",
|