@ks89/angular-modal-gallery 9.1.0-beta.1 → 9.1.0-beta.2
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 +23 -10
- package/README.md +1 -0
- package/esm2020/lib/components/previews/previews.component.mjs +68 -133
- package/fesm2015/ks89-angular-modal-gallery.mjs +71 -132
- package/fesm2015/ks89-angular-modal-gallery.mjs.map +1 -1
- package/fesm2020/ks89-angular-modal-gallery.mjs +68 -132
- package/fesm2020/ks89-angular-modal-gallery.mjs.map +1 -1
- package/lib/components/previews/previews.component.d.ts +12 -20
- package/package.json +1 -1
|
@@ -69,11 +69,11 @@ export declare class PreviewsComponent extends AccessibleComponent implements On
|
|
|
69
69
|
*/
|
|
70
70
|
previews: InternalLibImage[];
|
|
71
71
|
/**
|
|
72
|
-
* Start index of the input images used to display previews.
|
|
72
|
+
* Start index (included) of the input images used to display previews.
|
|
73
73
|
*/
|
|
74
74
|
start: number;
|
|
75
75
|
/**
|
|
76
|
-
* End index of the input images used to display previews.
|
|
76
|
+
* End index (excluded) of the input images used to display previews.
|
|
77
77
|
*/
|
|
78
78
|
end: number;
|
|
79
79
|
defaultPreviewSize: Size;
|
|
@@ -121,6 +121,16 @@ export declare class PreviewsComponent extends AccessibleComponent implements On
|
|
|
121
121
|
* @returns number the id of the item
|
|
122
122
|
*/
|
|
123
123
|
trackById(index: number, item: Image): number;
|
|
124
|
+
/**
|
|
125
|
+
* Indicates if the previews 'left arrow' should be displayed or not.
|
|
126
|
+
* @returns
|
|
127
|
+
*/
|
|
128
|
+
displayLeftPreviewsArrow(): boolean;
|
|
129
|
+
/**
|
|
130
|
+
* Indicates if the previews 'right arrow' should be displayed or not.
|
|
131
|
+
* @returns
|
|
132
|
+
*/
|
|
133
|
+
displayRightPreviewsArrow(): boolean;
|
|
124
134
|
/**
|
|
125
135
|
* Private method to init previews based on the currentImage and the full array of images.
|
|
126
136
|
* The current image in mandatory to show always the current preview (as highlighted).
|
|
@@ -128,14 +138,6 @@ export declare class PreviewsComponent extends AccessibleComponent implements On
|
|
|
128
138
|
* @param InternalLibImage[] images is the array of all images.
|
|
129
139
|
*/
|
|
130
140
|
private initPreviews;
|
|
131
|
-
/**
|
|
132
|
-
* Private method to init both `start` and `end` to the beginning.
|
|
133
|
-
*/
|
|
134
|
-
private setBeginningIndexesPreviews;
|
|
135
|
-
/**
|
|
136
|
-
* Private method to init both `start` and `end` to the end.
|
|
137
|
-
*/
|
|
138
|
-
private setEndIndexesPreviews;
|
|
139
141
|
/**
|
|
140
142
|
* Private method to update both `start` and `end` based on the currentImage.
|
|
141
143
|
*/
|
|
@@ -148,16 +150,6 @@ export declare class PreviewsComponent extends AccessibleComponent implements On
|
|
|
148
150
|
* Private method to update the visible previews navigating to the left (previous).
|
|
149
151
|
*/
|
|
150
152
|
private previous;
|
|
151
|
-
/**
|
|
152
|
-
* Private method to block/permit sliding between previews.
|
|
153
|
-
* @param number boundaryIndex is the first or the last index of `images` input array
|
|
154
|
-
* @returns boolean if true block sliding, otherwise not
|
|
155
|
-
*/
|
|
156
|
-
private isPreventSliding;
|
|
157
|
-
/**
|
|
158
|
-
* Private method to handle navigation changing the previews array and other variables.
|
|
159
|
-
*/
|
|
160
|
-
private updatePreviews;
|
|
161
153
|
static ɵfac: i0.ɵɵFactoryDeclaration<PreviewsComponent, never>;
|
|
162
154
|
static ɵcmp: i0.ɵɵComponentDeclaration<PreviewsComponent, "ks-previews", never, { "id": "id"; "currentImage": "currentImage"; "images": "images"; "customTemplate": "customTemplate"; }, { "clickPreview": "clickPreview"; }, never, never>;
|
|
163
155
|
}
|