@ks89/angular-modal-gallery 13.0.0 → 15.0.0-alpha.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.
Files changed (66) hide show
  1. package/CHANGELOG.md +47 -0
  2. package/CONTRIBUTING.md +3 -3
  3. package/LICENSE +1 -1
  4. package/README.md +9 -6
  5. package/fesm2022/ks89-angular-modal-gallery.mjs +1497 -1534
  6. package/fesm2022/ks89-angular-modal-gallery.mjs.map +1 -1
  7. package/index.d.ts +2475 -3
  8. package/package.json +9 -9
  9. package/lib/components/accessibility-default.d.ts +0 -5
  10. package/lib/components/accessible.component.d.ts +0 -50
  11. package/lib/components/carousel/carousel-previews/carousel-previews.component.d.ts +0 -195
  12. package/lib/components/carousel/carousel.component.d.ts +0 -276
  13. package/lib/components/components.d.ts +0 -15
  14. package/lib/components/current-image/current-image.component.d.ts +0 -282
  15. package/lib/components/current-image/loading-spinner/loading-spinner.component.d.ts +0 -55
  16. package/lib/components/dots/dots.component.d.ts +0 -81
  17. package/lib/components/modal-gallery/attach-to-overlay.service.d.ts +0 -20
  18. package/lib/components/modal-gallery/modal-gallery-ref.d.ts +0 -64
  19. package/lib/components/modal-gallery/modal-gallery.component.d.ts +0 -246
  20. package/lib/components/modal-gallery/modal-gallery.service.d.ts +0 -100
  21. package/lib/components/modal-gallery/modal-gallery.tokens.d.ts +0 -3
  22. package/lib/components/plain-gallery/plain-gallery.component.d.ts +0 -135
  23. package/lib/components/previews/previews.component.d.ts +0 -155
  24. package/lib/components/upper-buttons/upper-buttons-default.d.ts +0 -29
  25. package/lib/components/upper-buttons/upper-buttons.component.d.ts +0 -132
  26. package/lib/directives/a-tag-bg-image.directive.d.ts +0 -38
  27. package/lib/directives/click-outside.directive.d.ts +0 -24
  28. package/lib/directives/description.directive.d.ts +0 -33
  29. package/lib/directives/direction.directive.d.ts +0 -36
  30. package/lib/directives/directives.d.ts +0 -15
  31. package/lib/directives/fallback-image.directive.d.ts +0 -16
  32. package/lib/directives/keyboard-navigation.directive.d.ts +0 -24
  33. package/lib/directives/margin.directive.d.ts +0 -44
  34. package/lib/directives/max-size.directive.d.ts +0 -33
  35. package/lib/directives/size.directive.d.ts +0 -33
  36. package/lib/directives/swipe.directive.d.ts +0 -35
  37. package/lib/directives/wrap.directive.d.ts +0 -36
  38. package/lib/modal-gallery.module.d.ts +0 -32
  39. package/lib/model/accessibility.interface.d.ts +0 -40
  40. package/lib/model/action.enum.d.ts +0 -11
  41. package/lib/model/buttons-config.interface.d.ts +0 -57
  42. package/lib/model/carousel-config.interface.d.ts +0 -11
  43. package/lib/model/carousel-image-config.interface.d.ts +0 -8
  44. package/lib/model/carousel-preview-config.interface.d.ts +0 -22
  45. package/lib/model/current-image-config.interface.d.ts +0 -12
  46. package/lib/model/description.interface.d.ts +0 -39
  47. package/lib/model/dots-config.interface.d.ts +0 -6
  48. package/lib/model/image-internal.class.d.ts +0 -9
  49. package/lib/model/image.class.d.ts +0 -64
  50. package/lib/model/interaction-event.interface.d.ts +0 -6
  51. package/lib/model/keyboard-config.interface.d.ts +0 -8
  52. package/lib/model/keyboard.enum.d.ts +0 -13
  53. package/lib/model/lib-config.interface.d.ts +0 -39
  54. package/lib/model/loading-config.interface.d.ts +0 -19
  55. package/lib/model/max-size.interface.d.ts +0 -8
  56. package/lib/model/modal-gallery-config.interface.d.ts +0 -16
  57. package/lib/model/plain-gallery-config.interface.d.ts +0 -57
  58. package/lib/model/play-config.interface.d.ts +0 -8
  59. package/lib/model/preview-config.interface.d.ts +0 -12
  60. package/lib/model/size.interface.d.ts +0 -8
  61. package/lib/model/slide-config.interface.d.ts +0 -17
  62. package/lib/services/config.service.d.ts +0 -39
  63. package/lib/services/id-validator.service.d.ts +0 -25
  64. package/lib/utils/image.util.d.ts +0 -10
  65. package/lib/utils/user-input.util.d.ts +0 -80
  66. package/public-api.d.ts +0 -36
@@ -1,282 +0,0 @@
1
- import { AfterContentInit, ChangeDetectorRef, EventEmitter, NgZone, OnChanges, OnDestroy, OnInit, SimpleChanges } from '@angular/core';
2
- import { AccessibleComponent } from '../accessible.component';
3
- import { AccessibilityConfig } from '../../model/accessibility.interface';
4
- import { Action } from '../../model/action.enum';
5
- import { Image, ImageModalEvent } from '../../model/image.class';
6
- import { InternalLibImage } from '../../model/image-internal.class';
7
- import { KeyboardConfig } from '../../model/keyboard-config.interface';
8
- import { SlideConfig } from '../../model/slide-config.interface';
9
- import { CurrentImageConfig } from '../../model/current-image-config.interface';
10
- import { ConfigService } from '../../services/config.service';
11
- import * as i0 from "@angular/core";
12
- /**
13
- * Interface to describe the Load Event, used to
14
- * emit an event when the image is finally loaded and the spinner has gone.
15
- */
16
- export interface ImageLoadEvent {
17
- status: boolean;
18
- index: number;
19
- id: number;
20
- }
21
- /**
22
- * Component with the current image with some additional elements like arrows and side previews.
23
- */
24
- export declare class CurrentImageComponent extends AccessibleComponent implements OnInit, OnChanges, AfterContentInit, OnDestroy {
25
- private platformId;
26
- private ngZone;
27
- ref: ChangeDetectorRef;
28
- private configService;
29
- /**
30
- * Unique id (>=0) of the current instance of this library. This is useful when you are using
31
- * the service to call modal gallery without open it manually.
32
- */
33
- id: number;
34
- /**
35
- * Object of type `InternalLibImage` that represent the visible image.
36
- */
37
- currentImage: InternalLibImage;
38
- /**
39
- * Array of `InternalLibImage` that represent the model of this library with all images,
40
- * thumbs and so on.
41
- */
42
- images: InternalLibImage[];
43
- /**
44
- * Boolean that it is true if the modal gallery is visible.
45
- * If yes, also this component should be visible.
46
- */
47
- isOpen: boolean;
48
- /**
49
- * Output to emit an event when images are loaded. The payload contains an `ImageLoadEvent`.
50
- */
51
- loadImage: EventEmitter<ImageLoadEvent>;
52
- /**
53
- * Output to emit any changes of the current image. The payload contains an `ImageModalEvent`.
54
- */
55
- changeImage: EventEmitter<ImageModalEvent>;
56
- /**
57
- * Output to emit an event when the modal gallery is closed. The payload contains an `ImageModalEvent`.
58
- */
59
- closeGallery: EventEmitter<ImageModalEvent>;
60
- /**
61
- * Subject to play modal-gallery.
62
- */
63
- private start$;
64
- /**
65
- * Subject to stop modal-gallery.
66
- */
67
- private stop$;
68
- /**
69
- * Enum of type `Action` that represents a normal action.
70
- * Declared here to be used inside the template.
71
- */
72
- normalAction: Action;
73
- /**
74
- * Object of type `AccessibilityConfig` to init custom accessibility features.
75
- * For instance, it contains titles, alt texts, aria-labels and so on.
76
- */
77
- accessibilityConfig: AccessibilityConfig | undefined;
78
- /**
79
- * Object of type `SlideConfig` to get `infinite sliding`.
80
- */
81
- slideConfig: SlideConfig | undefined;
82
- /**
83
- * Object to configure current image in modal-gallery.
84
- * For instance you can disable navigation on click on current image (enabled by default).
85
- */
86
- currentImageConfig: CurrentImageConfig | undefined;
87
- /**
88
- * Object of type `KeyboardConfig` to assign custom keys to both ESC, RIGHT and LEFT keyboard's actions.
89
- */
90
- keyboardConfig: KeyboardConfig | undefined;
91
- /**
92
- * Enum of type `Action` that represents a mouse click on a button.
93
- * Declared here to be used inside the template.
94
- */
95
- clickAction: Action;
96
- /**
97
- * Enum of type `Action` that represents a keyboard action.
98
- * Declared here to be used inside the template.
99
- */
100
- keyboardAction: Action;
101
- /**
102
- * Boolean that it's true when you are watching the first image (currently visible).
103
- * False by default
104
- */
105
- isFirstImage: boolean;
106
- /**
107
- * Boolean that it's true when you are watching the last image (currently visible).
108
- * False by default
109
- */
110
- isLastImage: boolean;
111
- /**
112
- * Boolean that it's true if an image of the modal gallery is still loading.
113
- * True by default
114
- */
115
- loading: boolean;
116
- constructor(platformId: any, ngZone: NgZone, ref: ChangeDetectorRef, configService: ConfigService);
117
- /**
118
- * Listener to stop the gallery when the mouse pointer is over the current image.
119
- */
120
- onMouseEnter(): void;
121
- /**
122
- * Listener to play the gallery when the mouse pointer leave the current image.
123
- */
124
- onMouseLeave(): void;
125
- /**
126
- * Method ´ngOnInit´ to init configuration.
127
- * This is an angular lifecycle hook, so its called automatically by Angular itself.
128
- * In particular, it's called only one time!!!
129
- */
130
- ngOnInit(): void;
131
- /**
132
- * Method ´ngOnChanges´ to update `loading` status and emit events.
133
- * If the gallery is open, then it will also manage boundary arrows and sliding.
134
- * This is an angular lifecycle hook, so its called automatically by Angular itself.
135
- * In particular, it's called when any data-bound property of a directive changes!!!
136
- */
137
- ngOnChanges(changes: SimpleChanges): void;
138
- /**
139
- * This is an angular lifecycle hook, so its called automatically by Angular itself.
140
- */
141
- ngAfterContentInit(): void;
142
- /**
143
- * Method to handle keypress based on the `keyboardConfig` input. It gets the code of
144
- * the key that triggered the keypress event to navigate between images or to close the modal gallery.
145
- * @param code string of the key that triggered the keypress event
146
- */
147
- onKeyPress(code: string): void;
148
- /**
149
- * Method to get the image description based on input params.
150
- * If you provide a full description this will be the visible description, otherwise,
151
- * it will be built using the `Description` object, concatenating its fields.
152
- * @param Image image to get its description. If not provided it will be the current image
153
- * @returns String description of the image (or the current image if not provided)
154
- * @throws an Error if description isn't available
155
- */
156
- getDescriptionToDisplay(image?: Image): string;
157
- /**
158
- * Method to get `alt attribute`.
159
- * `alt` specifies an alternate text for an image, if the image cannot be displayed.
160
- * @param Image image to get its alt description. If not provided it will be the current image
161
- * @returns String alt description of the image (or the current image if not provided)
162
- */
163
- getAltDescriptionByImage(image?: Image): string;
164
- /**
165
- * Method to get the title attributes based on descriptions.
166
- * This is useful to prevent accessibility issues, because if DescriptionStrategy is ALWAYS_HIDDEN,
167
- * it prevents an empty string as title.
168
- * @param Image image to get its description. If not provided it will be the current image
169
- * @returns String title of the image based on descriptions
170
- * @throws an Error if description isn't available
171
- */
172
- getTitleToDisplay(image?: Image): string;
173
- /**
174
- * Method to get the left side preview image.
175
- * @returns Image the image to show as size preview on the left
176
- */
177
- getLeftPreviewImage(): Image;
178
- /**
179
- * Method to get the right side preview image.
180
- * @returns Image the image to show as size preview on the right
181
- */
182
- getRightPreviewImage(): Image;
183
- /**
184
- * Method called by events from both keyboard and mouse on an image.
185
- * This will invoke the nextImage method.
186
- * @param KeyboardEvent | MouseEvent event payload
187
- * @param Action action that triggered the event or `Action.NORMAL` if not provided
188
- */
189
- onImageEvent(event: KeyboardEvent | MouseEvent, action?: Action): void;
190
- /**
191
- * Method called by events from both keyboard and mouse on a navigation arrow.
192
- * @param string direction of the navigation that can be either 'next' or 'prev'
193
- * @param KeyboardEvent | MouseEvent event payload
194
- * @param Action action that triggered the event or `Action.NORMAL` if not provided
195
- * @param boolean disable to disable navigation
196
- */
197
- onNavigationEvent(direction: string, event: KeyboardEvent | MouseEvent, action?: Action, disable?: boolean): void;
198
- /**
199
- * Method to go back to the previous image.
200
- * @param action Enum of type `Action` that represents the source
201
- * action that moved back to the previous image. `Action.NORMAL` by default.
202
- */
203
- prevImage(action?: Action): void;
204
- /**
205
- * Method to go back to the previous image.
206
- * @param action Enum of type `Action` that represents the source
207
- * action that moved to the next image. `Action.NORMAL` by default.
208
- */
209
- nextImage(action?: Action): void;
210
- /**
211
- * Method to emit an event as loadImage output to say that the requested image if loaded.
212
- * This method is invoked by the javascript's 'load' event on an img tag.
213
- * @param Event event that triggered the load
214
- */
215
- onImageLoad(event: Event): void;
216
- /**
217
- * Method used by SwipeDirective to support touch gestures (you can also invert the swipe direction with configCurrentImage.invertSwipe).
218
- * @param action String that represent the direction of the swipe action. 'swiperight' by default.
219
- */
220
- swipe(action?: string): void;
221
- /**
222
- * Method used in `modal-gallery.component` to get the index of an image to delete.
223
- * @param Image image to get the index, or the visible image, if not passed
224
- * @returns number the index of the image
225
- */
226
- getIndexToDelete(image?: Image): number;
227
- /**
228
- * Method to play modal gallery.
229
- */
230
- playCarousel(): void;
231
- /**
232
- * Stops modal gallery from cycling through items.
233
- */
234
- stopCarousel(): void;
235
- /**
236
- * Method to cleanup resources. In fact, this will stop the modal gallery.
237
- * This is an angular lifecycle hook that is called when this component is destroyed.
238
- */
239
- ngOnDestroy(): void;
240
- /**
241
- * Private method to update both `isFirstImage` and `isLastImage` based on
242
- * the index of the current image.
243
- * @param number currentIndex is the index of the current image
244
- */
245
- private handleBoundaries;
246
- /**
247
- * Private method to check if next/prev actions should be blocked.
248
- * It checks if slideConfig.infinite === false and if the image index is equals to the input parameter.
249
- * If yes, it returns true to say that sliding should be blocked, otherwise not.
250
- * @param number boundaryIndex that could be either the beginning index (0) or the last index
251
- * of images (this.images.length - 1).
252
- * @returns boolean true if slideConfig.infinite === false and the current index is
253
- * either the first or the last one.
254
- */
255
- private isPreventSliding;
256
- /**
257
- * Private method to get the next index.
258
- * This is necessary because at the end, when you call next again, you'll go to the first image.
259
- * That happens because all modal images are shown like in a circle.
260
- */
261
- private getNextImage;
262
- /**
263
- * Private method to get the previous index.
264
- * This is necessary because at index 0, when you call prev again, you'll go to the last image.
265
- * That happens because all modal images are shown like in a circle.
266
- */
267
- private getPrevImage;
268
- /**
269
- * Private method to build a text description.
270
- * This is used also to create titles.
271
- * @param Image image to get its description. If not provided it will be the current image.
272
- * @param boolean imageWithoutDescription is a boolean that it's true if the image hasn't a 'modal' description.
273
- * @returns String description built concatenating image fields with a specific logic.
274
- */
275
- private buildTextDescription;
276
- /**
277
- * Private method to call handleBoundaries when ngOnChanges is called.
278
- */
279
- private updateIndexes;
280
- static ɵfac: i0.ɵɵFactoryDeclaration<CurrentImageComponent, never>;
281
- static ɵcmp: i0.ɵɵComponentDeclaration<CurrentImageComponent, "ks-current-image", never, { "id": { "alias": "id"; "required": false; }; "currentImage": { "alias": "currentImage"; "required": false; }; "images": { "alias": "images"; "required": false; }; "isOpen": { "alias": "isOpen"; "required": false; }; }, { "loadImage": "loadImage"; "changeImage": "changeImage"; "closeGallery": "closeGallery"; }, never, never, false, never>;
282
- }
@@ -1,55 +0,0 @@
1
- import { AccessibilityConfig } from '../../../model/accessibility.interface';
2
- import { LoadingConfig, LoadingType } from '../../../model/loading-config.interface';
3
- import * as i0 from "@angular/core";
4
- /**
5
- * Component with the loading spinner
6
- */
7
- export declare class LoadingSpinnerComponent {
8
- /**
9
- * Object of type `LoadingConfig` exposed to the template.
10
- * It contains a field to choose a loading spinner.
11
- */
12
- loadingConfig: LoadingConfig;
13
- /**
14
- * Object of type `AccessibilityConfig` to init custom accessibility features.
15
- * For instance, it contains titles, alt texts, aria-labels and so on.
16
- */
17
- accessibilityConfig: AccessibilityConfig;
18
- /**
19
- * Enum of type `LoadingType` to choose the standard loading spinner.
20
- * Declared here to be used inside the template.
21
- */
22
- loadingStandard: LoadingType;
23
- /**
24
- * Enum of type `LoadingType` to choose the bars loading spinner.
25
- * Declared here to be used inside the template.
26
- */
27
- loadingBars: LoadingType;
28
- /**
29
- * Enum of type `LoadingType` to choose the circular loading spinner.
30
- * Declared here to be used inside the template.
31
- */
32
- loadingCircular: LoadingType;
33
- /**
34
- * Enum of type `LoadingType` to choose the dots loading spinner.
35
- * Declared here to be used inside the template.
36
- */
37
- loadingDots: LoadingType;
38
- /**
39
- * Enum of type `LoadingType` to choose the cube flipping loading spinner.
40
- * Declared here to be used inside the template.
41
- */
42
- loadingCubeFlipping: LoadingType;
43
- /**
44
- * Enum of type `LoadingType` to choose the circles loading spinner.
45
- * Declared here to be used inside the template.
46
- */
47
- loadingCircles: LoadingType;
48
- /**
49
- * Enum of type `LoadingType` to choose the explosing squares loading spinner.
50
- * Declared here to be used inside the template.
51
- */
52
- loadingExplosingSquares: LoadingType;
53
- static ɵfac: i0.ɵɵFactoryDeclaration<LoadingSpinnerComponent, never>;
54
- static ɵcmp: i0.ɵɵComponentDeclaration<LoadingSpinnerComponent, "ks-loading-spinner", never, { "loadingConfig": { "alias": "loadingConfig"; "required": false; }; "accessibilityConfig": { "alias": "accessibilityConfig"; "required": false; }; }, {}, never, never, false, never>;
55
- }
@@ -1,81 +0,0 @@
1
- import { EventEmitter, OnChanges, OnInit, SimpleChanges } from '@angular/core';
2
- import { AccessibleComponent } from '../accessible.component';
3
- import { AccessibilityConfig } from '../../model/accessibility.interface';
4
- import { Image } from '../../model/image.class';
5
- import { InternalLibImage } from '../../model/image-internal.class';
6
- import { DotsConfig } from '../../model/dots-config.interface';
7
- import { ConfigService } from '../../services/config.service';
8
- import * as i0 from "@angular/core";
9
- /**
10
- * Component with clickable dots (small circles) to navigate between images inside the modal gallery.
11
- */
12
- export declare class DotsComponent extends AccessibleComponent implements OnInit, OnChanges {
13
- private configService;
14
- /**
15
- * Unique id (>=0) of the current instance of this library. This is required when you are using
16
- * the service to call modal gallery.
17
- */
18
- id: number;
19
- /**
20
- * Object of type `InternalLibImage` that represent the visible image.
21
- */
22
- currentImage: InternalLibImage | undefined;
23
- /**
24
- * Array of `InternalLibImage` that represent the model of this library with all images,
25
- * thumbs and so on.
26
- */
27
- images: InternalLibImage[] | undefined;
28
- /**
29
- * Object of type `DotsConfig` to init DotsComponent's features.
30
- * For instance, it contains a param to show/hide this component.
31
- */
32
- dotsConfig: DotsConfig;
33
- /**
34
- * Output to emit clicks on dots. The payload contains a number that represent
35
- * the index of the clicked dot.
36
- */
37
- clickDot: EventEmitter<number>;
38
- /**
39
- * Object of type `DotsConfig` used in template.
40
- */
41
- configDots: DotsConfig | undefined;
42
- /**
43
- * Object of type `AccessibilityConfig` to init custom accessibility features.
44
- * For instance, it contains titles, alt texts, aria-labels and so on.
45
- */
46
- accessibilityConfig: AccessibilityConfig | undefined;
47
- constructor(configService: ConfigService);
48
- /**
49
- * Method ´ngOnInit´ to build `configDots` applying a default value.
50
- * This is an angular lifecycle hook, so its called automatically by Angular itself.
51
- * In particular, it's called only one time!!!
52
- */
53
- ngOnInit(): void;
54
- /**
55
- * Method ´ngOnChanges´ to change `configDots` if the input dotsConfig is changed.
56
- * This is an angular lifecycle hook, so its called automatically by Angular itself.
57
- */
58
- ngOnChanges(changes: SimpleChanges): void;
59
- /**
60
- * Method to check if an image is active (i.e. the current image).
61
- * It checks currentImage and images to prevent errors.
62
- * @param number index of the image to check if it's active or not
63
- * @returns boolean true if is active (and input params are valid), false otherwise
64
- */
65
- isActive(index: number): boolean;
66
- /**
67
- * Method called by events from keyboard and mouse.
68
- * @param number index of the dot
69
- * @param KeyboardEvent | MouseEvent event payload
70
- */
71
- onDotEvent(index: number, event: KeyboardEvent | MouseEvent): void;
72
- /**
73
- * Method used in the template to track ids in ngFor.
74
- * @param number index of the array
75
- * @param Image item of the array
76
- * @returns number the id of the item
77
- */
78
- trackById(index: number, item: Image): number;
79
- static ɵfac: i0.ɵɵFactoryDeclaration<DotsComponent, never>;
80
- static ɵcmp: i0.ɵɵComponentDeclaration<DotsComponent, "ks-dots", never, { "id": { "alias": "id"; "required": false; }; "currentImage": { "alias": "currentImage"; "required": false; }; "images": { "alias": "images"; "required": false; }; "dotsConfig": { "alias": "dotsConfig"; "required": false; }; }, { "clickDot": "clickDot"; }, never, never, false, never>;
81
- }
@@ -1,20 +0,0 @@
1
- import { Injector } from '@angular/core';
2
- import { ModalGalleryService } from './modal-gallery.service';
3
- import * as i0 from "@angular/core";
4
- export declare class AttachToOverlayService {
5
- private injector;
6
- private modalGalleryService;
7
- constructor(injector: Injector, modalGalleryService: ModalGalleryService);
8
- /**
9
- * To be called by a provider with the APP_INITIALIZER token.
10
- */
11
- initialize(): void;
12
- /**
13
- * Private method to attach ModalGalleryComponent to the overlay.
14
- * @param payload {@link AttachToOverlayPayload} with all necessary information
15
- * @private
16
- */
17
- private attachToOverlay;
18
- static ɵfac: i0.ɵɵFactoryDeclaration<AttachToOverlayService, never>;
19
- static ɵprov: i0.ɵɵInjectableDeclaration<AttachToOverlayService>;
20
- }
@@ -1,64 +0,0 @@
1
- import { OverlayRef } from '@angular/cdk/overlay';
2
- import { ImageModalEvent } from '../../model/image.class';
3
- import { ButtonEvent } from '../../model/buttons-config.interface';
4
- /**
5
- * Class that represents the modal dialog instance.
6
- * It is returned by the open method.
7
- */
8
- export declare class ModalGalleryRef {
9
- private overlayRef;
10
- private close;
11
- close$: import("rxjs").Observable<ImageModalEvent>;
12
- private show;
13
- show$: import("rxjs").Observable<ImageModalEvent>;
14
- private firstImage;
15
- firstImage$: import("rxjs").Observable<ImageModalEvent>;
16
- private lastImage;
17
- lastImage$: import("rxjs").Observable<ImageModalEvent>;
18
- private hasData;
19
- hasData$: import("rxjs").Observable<ImageModalEvent>;
20
- private buttonBeforeHook;
21
- buttonBeforeHook$: import("rxjs").Observable<ButtonEvent>;
22
- private buttonAfterHook;
23
- buttonAfterHook$: import("rxjs").Observable<ButtonEvent>;
24
- constructor(overlayRef: OverlayRef);
25
- /**
26
- * Close modal dialog, disposing the Overlay.
27
- */
28
- closeModal(): void;
29
- /**
30
- * Method to emit close event.
31
- * @param event ImageModalEvent event payload
32
- */
33
- emitClose(event: ImageModalEvent): void;
34
- /**
35
- * Method to emit show event.
36
- * @param event ImageModalEvent event payload
37
- */
38
- emitShow(event: ImageModalEvent): void;
39
- /**
40
- * Method to emit firstImage event.
41
- * @param event ImageModalEvent event payload
42
- */
43
- emitFirstImage(event: ImageModalEvent): void;
44
- /**
45
- * Method to emit lastImage event.
46
- * @param event ImageModalEvent event payload
47
- */
48
- emitLastImage(event: ImageModalEvent): void;
49
- /**
50
- * Method to emit hasData event.
51
- * @param event ImageModalEvent event payload
52
- */
53
- emitHasData(event: ImageModalEvent): void;
54
- /**
55
- * Method to emit buttonBeforeHook event.
56
- * @param event ImageModalEvent event payload
57
- */
58
- emitButtonBeforeHook(event: ButtonEvent): void;
59
- /**
60
- * Method to emit buttonAfterHook event.
61
- * @param event ImageModalEvent event payload
62
- */
63
- emitButtonAfterHook(event: ButtonEvent): void;
64
- }