@ks89/angular-modal-gallery 11.0.0 → 11.1.0-rc.1
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/README.md +1 -0
- package/esm2022/lib/components/carousel/carousel-previews/carousel-previews.component.mjs +3 -3
- package/esm2022/lib/components/carousel/carousel.component.mjs +3 -3
- package/esm2022/lib/components/current-image/current-image.component.mjs +3 -3
- package/esm2022/lib/components/plain-gallery/plain-gallery.component.mjs +3 -3
- package/esm2022/lib/components/previews/previews.component.mjs +3 -3
- package/esm2022/lib/model/image.class.mjs +4 -2
- package/fesm2022/ks89-angular-modal-gallery.mjs +13 -11
- package/fesm2022/ks89-angular-modal-gallery.mjs.map +1 -1
- package/lib/model/image.class.d.ts +11 -1
- package/package.json +1 -1
|
@@ -7,9 +7,11 @@ import { SafeResourceUrl } from '@angular/platform-browser';
|
|
|
7
7
|
*/
|
|
8
8
|
export declare class Image {
|
|
9
9
|
id: number;
|
|
10
|
+
loading: 'eager' | 'lazy';
|
|
11
|
+
fetchpriority: 'high' | 'low' | 'auto';
|
|
10
12
|
modal: ModalImage;
|
|
11
13
|
plain?: PlainImage;
|
|
12
|
-
constructor(id: number, modal: ModalImage, plain?: PlainImage);
|
|
14
|
+
constructor(id: number, modal: ModalImage, plain?: PlainImage, loading?: 'eager' | 'lazy', fetchpriority?: 'high' | 'low' | 'auto');
|
|
13
15
|
}
|
|
14
16
|
/**
|
|
15
17
|
* Interface `ImageData` to configure an image, but it isn't used directly.
|
|
@@ -29,6 +31,7 @@ export interface ImageData {
|
|
|
29
31
|
export interface ModalImage extends ImageData {
|
|
30
32
|
extUrl?: string;
|
|
31
33
|
downloadFileName?: string;
|
|
34
|
+
sources?: Source[];
|
|
32
35
|
}
|
|
33
36
|
/**
|
|
34
37
|
* Interface `PlainImage` to configure the plain image.
|
|
@@ -52,3 +55,10 @@ export declare class ImageEvent {
|
|
|
52
55
|
export declare class ImageModalEvent extends ImageEvent {
|
|
53
56
|
constructor(galleryId: number, action: Action, result: number | boolean);
|
|
54
57
|
}
|
|
58
|
+
/**
|
|
59
|
+
* Interface `Source` to configure sources of picture element.
|
|
60
|
+
*/
|
|
61
|
+
export interface Source {
|
|
62
|
+
srcset: string;
|
|
63
|
+
media: string;
|
|
64
|
+
}
|