@ks89/angular-modal-gallery 10.0.1 → 11.0.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.
Files changed (123) hide show
  1. package/CHANGELOG.md +22 -0
  2. package/CONTRIBUTING.md +3 -3
  3. package/LICENSE +1 -1
  4. package/README.md +12 -14
  5. package/esm2022/lib/components/accessible.component.mjs +131 -0
  6. package/esm2022/lib/components/carousel/carousel-previews/carousel-previews.component.mjs +457 -0
  7. package/esm2022/lib/components/carousel/carousel.component.mjs +739 -0
  8. package/{esm2020 → esm2022}/lib/components/components.mjs +2 -2
  9. package/esm2022/lib/components/current-image/current-image.component.mjs +608 -0
  10. package/esm2022/lib/components/current-image/loading-spinner/loading-spinner.component.mjs +81 -0
  11. package/esm2022/lib/components/dots/dots.component.mjs +125 -0
  12. package/{esm2020 → esm2022}/lib/components/modal-gallery/modal-gallery-ref.mjs +2 -2
  13. package/esm2022/lib/components/modal-gallery/modal-gallery.component.mjs +500 -0
  14. package/esm2022/lib/components/modal-gallery/modal-gallery.service.mjs +188 -0
  15. package/{esm2020 → esm2022}/lib/components/modal-gallery/modal-gallery.tokens.mjs +2 -2
  16. package/esm2022/lib/components/plain-gallery/plain-gallery.component.mjs +250 -0
  17. package/esm2022/lib/components/previews/previews.component.mjs +264 -0
  18. package/esm2022/lib/components/upper-buttons/upper-buttons.component.mjs +244 -0
  19. package/esm2022/lib/directives/a-tag-bg-image.directive.mjs +79 -0
  20. package/esm2022/lib/directives/click-outside.directive.mjs +92 -0
  21. package/esm2022/lib/directives/description.directive.mjs +99 -0
  22. package/esm2022/lib/directives/direction.directive.mjs +74 -0
  23. package/esm2022/lib/directives/directives.mjs +51 -0
  24. package/esm2022/lib/directives/fallback-image.directive.mjs +60 -0
  25. package/esm2022/lib/directives/keyboard-navigation.directive.mjs +59 -0
  26. package/esm2022/lib/directives/margin.directive.mjs +85 -0
  27. package/esm2022/lib/directives/max-size.directive.mjs +76 -0
  28. package/esm2022/lib/directives/size.directive.mjs +77 -0
  29. package/esm2022/lib/directives/swipe.directive.mjs +115 -0
  30. package/esm2022/lib/directives/wrap.directive.mjs +75 -0
  31. package/esm2022/lib/modal-gallery.module.mjs +69 -0
  32. package/{esm2020 → esm2022}/lib/model/accessibility.interface.mjs +2 -2
  33. package/{esm2020 → esm2022}/lib/model/action.enum.mjs +2 -2
  34. package/{esm2020 → esm2022}/lib/model/buttons-config.interface.mjs +2 -2
  35. package/{esm2020 → esm2022}/lib/model/carousel-config.interface.mjs +2 -2
  36. package/{esm2020 → esm2022}/lib/model/carousel-image-config.interface.mjs +2 -2
  37. package/{esm2020 → esm2022}/lib/model/carousel-preview-config.interface.mjs +2 -2
  38. package/{esm2020 → esm2022}/lib/model/current-image-config.interface.mjs +2 -2
  39. package/{esm2020 → esm2022}/lib/model/description.interface.mjs +2 -2
  40. package/{esm2020 → esm2022}/lib/model/dots-config.interface.mjs +2 -2
  41. package/{esm2020 → esm2022}/lib/model/image-internal.class.mjs +2 -2
  42. package/{esm2020 → esm2022}/lib/model/image.class.mjs +2 -2
  43. package/{esm2020 → esm2022}/lib/model/keyboard-config.interface.mjs +2 -2
  44. package/{esm2020 → esm2022}/lib/model/keyboard.enum.mjs +2 -2
  45. package/{esm2020 → esm2022}/lib/model/lib-config.interface.mjs +2 -2
  46. package/{esm2020 → esm2022}/lib/model/loading-config.interface.mjs +2 -2
  47. package/{esm2020 → esm2022}/lib/model/max-size.interface.mjs +2 -2
  48. package/{esm2020 → esm2022}/lib/model/modal-gallery-config.interface.mjs +2 -2
  49. package/{esm2020 → esm2022}/lib/model/plain-gallery-config.interface.mjs +2 -2
  50. package/{esm2020 → esm2022}/lib/model/play-config.interface.mjs +2 -2
  51. package/{esm2020 → esm2022}/lib/model/preview-config.interface.mjs +2 -2
  52. package/{esm2020 → esm2022}/lib/model/size.interface.mjs +2 -2
  53. package/{esm2020 → esm2022}/lib/model/slide-config.interface.mjs +2 -2
  54. package/esm2022/lib/services/config.service.mjs +389 -0
  55. package/esm2022/lib/services/id-validator.service.mjs +72 -0
  56. package/{esm2020 → esm2022}/lib/utils/image.util.mjs +4 -4
  57. package/{esm2020 → esm2022}/lib/utils/user-input.util.mjs +2 -2
  58. package/{esm2020 → esm2022}/public-api.mjs +2 -2
  59. package/{fesm2020 → fesm2022}/ks89-angular-modal-gallery.mjs +382 -471
  60. package/fesm2022/ks89-angular-modal-gallery.mjs.map +1 -0
  61. package/lib/components/carousel/carousel-previews/carousel-previews.component.d.ts +4 -4
  62. package/lib/components/carousel/carousel.component.d.ts +5 -8
  63. package/lib/components/current-image/current-image.component.d.ts +6 -10
  64. package/lib/components/current-image/loading-spinner/loading-spinner.component.d.ts +3 -3
  65. package/lib/components/dots/dots.component.d.ts +5 -5
  66. package/lib/components/modal-gallery/modal-gallery.component.d.ts +11 -17
  67. package/lib/components/plain-gallery/plain-gallery.component.d.ts +3 -3
  68. package/lib/components/previews/previews.component.d.ts +6 -6
  69. package/lib/components/upper-buttons/upper-buttons.component.d.ts +4 -4
  70. package/lib/directives/a-tag-bg-image.directive.d.ts +3 -3
  71. package/lib/directives/click-outside.directive.d.ts +2 -2
  72. package/lib/directives/description.directive.d.ts +3 -3
  73. package/lib/directives/direction.directive.d.ts +3 -3
  74. package/lib/directives/directives.d.ts +2 -1
  75. package/lib/directives/fallback-image.directive.d.ts +1 -1
  76. package/lib/directives/keyboard-navigation.directive.d.ts +1 -1
  77. package/lib/directives/margin.directive.d.ts +3 -3
  78. package/lib/directives/max-size.directive.d.ts +3 -3
  79. package/lib/directives/size.directive.d.ts +1 -1
  80. package/lib/directives/swipe.directive.d.ts +33 -0
  81. package/lib/directives/wrap.directive.d.ts +3 -3
  82. package/lib/modal-gallery.module.d.ts +4 -10
  83. package/lib/model/keyboard.enum.d.ts +1 -1
  84. package/lib/model/lib-config.interface.d.ts +2 -6
  85. package/lib/services/config.service.d.ts +0 -2
  86. package/lib/utils/image.util.d.ts +2 -2
  87. package/package.json +10 -18
  88. package/esm2020/lib/components/accessible.component.mjs +0 -130
  89. package/esm2020/lib/components/carousel/carousel-previews/carousel-previews.component.mjs +0 -462
  90. package/esm2020/lib/components/carousel/carousel.component.mjs +0 -747
  91. package/esm2020/lib/components/current-image/current-image.component.mjs +0 -616
  92. package/esm2020/lib/components/current-image/loading-spinner/loading-spinner.component.mjs +0 -80
  93. package/esm2020/lib/components/dots/dots.component.mjs +0 -127
  94. package/esm2020/lib/components/modal-gallery/modal-gallery.component.mjs +0 -524
  95. package/esm2020/lib/components/modal-gallery/modal-gallery.service.mjs +0 -187
  96. package/esm2020/lib/components/plain-gallery/plain-gallery.component.mjs +0 -249
  97. package/esm2020/lib/components/previews/previews.component.mjs +0 -272
  98. package/esm2020/lib/components/upper-buttons/upper-buttons.component.mjs +0 -249
  99. package/esm2020/lib/directives/a-tag-bg-image.directive.mjs +0 -78
  100. package/esm2020/lib/directives/click-outside.directive.mjs +0 -91
  101. package/esm2020/lib/directives/description.directive.mjs +0 -98
  102. package/esm2020/lib/directives/direction.directive.mjs +0 -73
  103. package/esm2020/lib/directives/directives.mjs +0 -49
  104. package/esm2020/lib/directives/fallback-image.directive.mjs +0 -59
  105. package/esm2020/lib/directives/keyboard-navigation.directive.mjs +0 -58
  106. package/esm2020/lib/directives/margin.directive.mjs +0 -84
  107. package/esm2020/lib/directives/max-size.directive.mjs +0 -75
  108. package/esm2020/lib/directives/size.directive.mjs +0 -76
  109. package/esm2020/lib/directives/wrap.directive.mjs +0 -74
  110. package/esm2020/lib/modal-gallery.module.mjs +0 -94
  111. package/esm2020/lib/model/keyboard-service-config.interface.mjs +0 -25
  112. package/esm2020/lib/services/config.service.mjs +0 -396
  113. package/esm2020/lib/services/id-validator.service.mjs +0 -71
  114. package/esm2020/lib/services/keyboard.service.mjs +0 -111
  115. package/fesm2015/ks89-angular-modal-gallery.mjs +0 -5728
  116. package/fesm2015/ks89-angular-modal-gallery.mjs.map +0 -1
  117. package/fesm2020/ks89-angular-modal-gallery.mjs.map +0 -1
  118. package/lib/model/keyboard-service-config.interface.d.ts +0 -8
  119. package/lib/services/keyboard.service.d.ts +0 -26
  120. /package/{esm2020 → esm2022}/ks89-angular-modal-gallery.mjs +0 -0
  121. /package/{esm2020 → esm2022}/lib/components/accessibility-default.mjs +0 -0
  122. /package/{esm2020 → esm2022}/lib/components/upper-buttons/upper-buttons-default.mjs +0 -0
  123. /package/{esm2020 → esm2022}/lib/model/interaction-event.interface.mjs +0 -0
@@ -95,7 +95,7 @@ export declare class CarouselPreviewsComponent extends AccessibleComponent imple
95
95
  /**
96
96
  * Method ´ngOnInit´ to build `configPreview` applying a default value and also to
97
97
  * init the `previews` array.
98
- * This is an Angular's lifecycle hook, so its called automatically by Angular itself.
98
+ * This is an angular lifecycle hook, so its called automatically by Angular itself.
99
99
  * In particular, it's called only one time!!!
100
100
  */
101
101
  ngOnInit(): void;
@@ -108,7 +108,7 @@ export declare class CarouselPreviewsComponent extends AccessibleComponent imple
108
108
  /**
109
109
  * Method ´ngOnChanges´ to update `previews` array.
110
110
  * Also, both `start` and `end` local variables will be updated accordingly.
111
- * This is an Angular's lifecycle hook, so its called automatically by Angular itself.
111
+ * This is an angular lifecycle hook, so its called automatically by Angular itself.
112
112
  * In particular, it's called when any data-bound property of a directive changes!!!
113
113
  */
114
114
  ngOnChanges(changes: SimpleChanges): void;
@@ -158,7 +158,7 @@ export declare class CarouselPreviewsComponent extends AccessibleComponent imple
158
158
  sanitizeUrlBgStyle(unsafeStyle: string | SafeResourceUrl, unsafeStyleFallback: string | SafeResourceUrl): SafeStyle;
159
159
  /**
160
160
  * Method to cleanup resources. In fact, it cleans breakpointSubscription.
161
- * This is an Angular's lifecycle hook that is called when this component is destroyed.
161
+ * This is an angular lifecycle hook that is called when this component is destroyed.
162
162
  */
163
163
  ngOnDestroy(): void;
164
164
  /**
@@ -191,5 +191,5 @@ export declare class CarouselPreviewsComponent extends AccessibleComponent imple
191
191
  */
192
192
  private isPreventSliding;
193
193
  static ɵfac: i0.ɵɵFactoryDeclaration<CarouselPreviewsComponent, never>;
194
- static ɵcmp: i0.ɵɵComponentDeclaration<CarouselPreviewsComponent, "ks-carousel-previews", never, { "id": "id"; "currentImage": "currentImage"; "images": "images"; }, { "clickPreview": "clickPreview"; }, never, never, false, never>;
194
+ static ɵcmp: i0.ɵɵComponentDeclaration<CarouselPreviewsComponent, "ks-carousel-previews", never, { "id": { "alias": "id"; "required": false; }; "currentImage": { "alias": "currentImage"; "required": false; }; "images": { "alias": "images"; "required": false; }; }, { "clickPreview": "clickPreview"; }, never, never, false, never>;
195
195
  }
@@ -9,6 +9,7 @@ import { CarouselImageConfig } from '../../model/carousel-image-config.interface
9
9
  import { ConfigService } from '../../services/config.service';
10
10
  import { ModalGalleryService } from '../modal-gallery/modal-gallery.service';
11
11
  import { CarouselLibConfig } from '../../model/lib-config.interface';
12
+ import { InternalLibImage } from '../../model/image-internal.class';
12
13
  import * as i0 from "@angular/core";
13
14
  /**
14
15
  * Component with configurable inline/plain carousel.
@@ -89,7 +90,7 @@ export declare class CarouselComponent extends AccessibleComponent implements On
89
90
  /**
90
91
  * `Image` that is visible right now.
91
92
  */
92
- currentImage: Image | undefined;
93
+ currentImage: InternalLibImage | undefined;
93
94
  /**
94
95
  * Boolean that it's true when you are watching the first image (currently visible).
95
96
  * False by default
@@ -108,10 +109,6 @@ export declare class CarouselComponent extends AccessibleComponent implements On
108
109
  * Subject to stop the carousel.
109
110
  */
110
111
  private stop$;
111
- /**
112
- * Private object without type to define all swipe actions used by hammerjs.
113
- */
114
- private SWIPE_ACTION;
115
112
  /**
116
113
  * Listener to stop the gallery when the mouse pointer is over the current image.
117
114
  */
@@ -159,7 +156,7 @@ export declare class CarouselComponent extends AccessibleComponent implements On
159
156
  */
160
157
  getDescriptionToDisplay(image?: Image | undefined): string;
161
158
  /**
162
- * Method used by Hammerjs to support touch gestures (you can also invert the swipe direction with configCurrentImage.invertSwipe).
159
+ * Method used by SwipeDirective to support touch gestures (you can also invert the swipe direction with configCurrentImage.invertSwipe).
163
160
  * @param action String that represent the direction of the swipe action. 'swiperight' by default.
164
161
  */
165
162
  swipe(action?: string): void;
@@ -216,7 +213,7 @@ export declare class CarouselComponent extends AccessibleComponent implements On
216
213
  */
217
214
  /**
218
215
  * Method to cleanup resources. In fact, this will stop the carousel.
219
- * This is an Angular's lifecycle hook that is called when this component is destroyed.
216
+ * This is an angular lifecycle hook that is called when this component is destroyed.
220
217
  */
221
218
  ngOnDestroy(): void;
222
219
  /**
@@ -275,5 +272,5 @@ export declare class CarouselComponent extends AccessibleComponent implements On
275
272
  */
276
273
  private isPreventSliding;
277
274
  static ɵfac: i0.ɵɵFactoryDeclaration<CarouselComponent, never>;
278
- static ɵcmp: i0.ɵɵComponentDeclaration<CarouselComponent, "ks-carousel", never, { "id": "id"; "images": "images"; "config": "config"; }, { "clickImage": "clickImage"; "changeImage": "changeImage"; "firstImage": "firstImage"; "lastImage": "lastImage"; }, never, ["*"], false, never>;
275
+ static ɵcmp: i0.ɵɵComponentDeclaration<CarouselComponent, "ks-carousel", never, { "id": { "alias": "id"; "required": false; }; "images": { "alias": "images"; "required": false; }; "config": { "alias": "config"; "required": false; }; }, { "clickImage": "clickImage"; "changeImage": "changeImage"; "firstImage": "firstImage"; "lastImage": "lastImage"; }, never, ["*"], false, never>;
279
276
  }
@@ -113,10 +113,6 @@ export declare class CurrentImageComponent extends AccessibleComponent implement
113
113
  * True by default
114
114
  */
115
115
  loading: boolean;
116
- /**
117
- * Private object without type to define all swipe actions used by hammerjs.
118
- */
119
- private SWIPE_ACTION;
120
116
  constructor(platformId: any, ngZone: NgZone, ref: ChangeDetectorRef, configService: ConfigService);
121
117
  /**
122
118
  * Listener to stop the gallery when the mouse pointer is over the current image.
@@ -128,19 +124,19 @@ export declare class CurrentImageComponent extends AccessibleComponent implement
128
124
  onMouseLeave(): void;
129
125
  /**
130
126
  * Method ´ngOnInit´ to init configuration.
131
- * This is an Angular's lifecycle hook, so its called automatically by Angular itself.
127
+ * This is an angular lifecycle hook, so its called automatically by Angular itself.
132
128
  * In particular, it's called only one time!!!
133
129
  */
134
130
  ngOnInit(): void;
135
131
  /**
136
132
  * Method ´ngOnChanges´ to update `loading` status and emit events.
137
133
  * If the gallery is open, then it will also manage boundary arrows and sliding.
138
- * This is an Angular's lifecycle hook, so its called automatically by Angular itself.
134
+ * This is an angular lifecycle hook, so its called automatically by Angular itself.
139
135
  * In particular, it's called when any data-bound property of a directive changes!!!
140
136
  */
141
137
  ngOnChanges(changes: SimpleChanges): void;
142
138
  /**
143
- * This is an Angular's lifecycle hook, so its called automatically by Angular itself.
139
+ * This is an angular lifecycle hook, so its called automatically by Angular itself.
144
140
  */
145
141
  ngAfterContentInit(): void;
146
142
  /**
@@ -218,7 +214,7 @@ export declare class CurrentImageComponent extends AccessibleComponent implement
218
214
  */
219
215
  onImageLoad(event: Event): void;
220
216
  /**
221
- * Method used by Hammerjs to support touch gestures (you can also invert the swipe direction with configCurrentImage.invertSwipe).
217
+ * Method used by SwipeDirective to support touch gestures (you can also invert the swipe direction with configCurrentImage.invertSwipe).
222
218
  * @param action String that represent the direction of the swipe action. 'swiperight' by default.
223
219
  */
224
220
  swipe(action?: string): void;
@@ -238,7 +234,7 @@ export declare class CurrentImageComponent extends AccessibleComponent implement
238
234
  stopCarousel(): void;
239
235
  /**
240
236
  * Method to cleanup resources. In fact, this will stop the modal gallery.
241
- * This is an Angular's lifecycle hook that is called when this component is destroyed.
237
+ * This is an angular lifecycle hook that is called when this component is destroyed.
242
238
  */
243
239
  ngOnDestroy(): void;
244
240
  /**
@@ -282,5 +278,5 @@ export declare class CurrentImageComponent extends AccessibleComponent implement
282
278
  */
283
279
  private updateIndexes;
284
280
  static ɵfac: i0.ɵɵFactoryDeclaration<CurrentImageComponent, never>;
285
- static ɵcmp: i0.ɵɵComponentDeclaration<CurrentImageComponent, "ks-current-image", never, { "id": "id"; "currentImage": "currentImage"; "images": "images"; "isOpen": "isOpen"; }, { "loadImage": "loadImage"; "changeImage": "changeImage"; "closeGallery": "closeGallery"; }, never, never, false, 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>;
286
282
  }
@@ -9,12 +9,12 @@ export declare class LoadingSpinnerComponent {
9
9
  * Object of type `LoadingConfig` exposed to the template.
10
10
  * It contains a field to choose a loading spinner.
11
11
  */
12
- loadingConfig: LoadingConfig | undefined;
12
+ loadingConfig: LoadingConfig;
13
13
  /**
14
14
  * Object of type `AccessibilityConfig` to init custom accessibility features.
15
15
  * For instance, it contains titles, alt texts, aria-labels and so on.
16
16
  */
17
- accessibilityConfig: AccessibilityConfig | undefined;
17
+ accessibilityConfig: AccessibilityConfig;
18
18
  /**
19
19
  * Enum of type `LoadingType` to choose the standard loading spinner.
20
20
  * Declared here to be used inside the template.
@@ -51,5 +51,5 @@ export declare class LoadingSpinnerComponent {
51
51
  */
52
52
  loadingExplosingSquares: LoadingType;
53
53
  static ɵfac: i0.ɵɵFactoryDeclaration<LoadingSpinnerComponent, never>;
54
- static ɵcmp: i0.ɵɵComponentDeclaration<LoadingSpinnerComponent, "ks-loading-spinner", never, { "loadingConfig": "loadingConfig"; "accessibilityConfig": "accessibilityConfig"; }, {}, never, never, false, 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
55
  }
@@ -15,7 +15,7 @@ export declare class DotsComponent extends AccessibleComponent implements OnInit
15
15
  * Unique id (>=0) of the current instance of this library. This is required when you are using
16
16
  * the service to call modal gallery.
17
17
  */
18
- id: number | undefined;
18
+ id: number;
19
19
  /**
20
20
  * Object of type `InternalLibImage` that represent the visible image.
21
21
  */
@@ -29,7 +29,7 @@ export declare class DotsComponent extends AccessibleComponent implements OnInit
29
29
  * Object of type `DotsConfig` to init DotsComponent's features.
30
30
  * For instance, it contains a param to show/hide this component.
31
31
  */
32
- dotsConfig: DotsConfig | undefined;
32
+ dotsConfig: DotsConfig;
33
33
  /**
34
34
  * Output to emit clicks on dots. The payload contains a number that represent
35
35
  * the index of the clicked dot.
@@ -47,13 +47,13 @@ export declare class DotsComponent extends AccessibleComponent implements OnInit
47
47
  constructor(configService: ConfigService);
48
48
  /**
49
49
  * Method ´ngOnInit´ to build `configDots` applying a default value.
50
- * This is an Angular's lifecycle hook, so its called automatically by Angular itself.
50
+ * This is an angular lifecycle hook, so its called automatically by Angular itself.
51
51
  * In particular, it's called only one time!!!
52
52
  */
53
53
  ngOnInit(): void;
54
54
  /**
55
55
  * Method ´ngOnChanges´ to change `configDots` if the input dotsConfig is changed.
56
- * This is an Angular's lifecycle hook, so its called automatically by Angular itself.
56
+ * This is an angular lifecycle hook, so its called automatically by Angular itself.
57
57
  */
58
58
  ngOnChanges(changes: SimpleChanges): void;
59
59
  /**
@@ -77,5 +77,5 @@ export declare class DotsComponent extends AccessibleComponent implements OnInit
77
77
  */
78
78
  trackById(index: number, item: Image): number;
79
79
  static ɵfac: i0.ɵɵFactoryDeclaration<DotsComponent, never>;
80
- static ɵcmp: i0.ɵɵComponentDeclaration<DotsComponent, "ks-dots", never, { "id": "id"; "currentImage": "currentImage"; "images": "images"; "dotsConfig": "dotsConfig"; }, { "clickDot": "clickDot"; }, never, never, false, 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
81
  }
@@ -7,7 +7,6 @@ import { ButtonEvent, ButtonsConfig } from '../../model/buttons-config.interface
7
7
  import { InternalLibImage } from '../../model/image-internal.class';
8
8
  import { Action } from '../../model/action.enum';
9
9
  import { CurrentImageComponent, ImageLoadEvent } from '../current-image/current-image.component';
10
- import { KeyboardService } from '../../services/keyboard.service';
11
10
  import { IdValidatorService } from '../../services/id-validator.service';
12
11
  import { KeyboardConfig } from '../../model/keyboard-config.interface';
13
12
  import { PreviewConfig } from '../../model/preview-config.interface';
@@ -21,7 +20,6 @@ import * as i0 from "@angular/core";
21
20
  export declare class ModalGalleryComponent implements OnInit, OnDestroy {
22
21
  private dialogContent;
23
22
  private modalGalleryService;
24
- private keyboardService;
25
23
  private platformId;
26
24
  private changeDetectorRef;
27
25
  private idValidatorService;
@@ -98,11 +96,16 @@ export declare class ModalGalleryComponent implements OnInit, OnDestroy {
98
96
  * This prevents weired behaviour about scrolling.
99
97
  * Added to fix this issue: https://github.com/Ks89/angular-modal-gallery/issues/159
100
98
  */
101
- onPopState(e: Event): void;
102
- constructor(dialogContent: ModalGalleryConfig, modalGalleryService: ModalGalleryService, keyboardService: KeyboardService, platformId: Object, changeDetectorRef: ChangeDetectorRef, idValidatorService: IdValidatorService, configService: ConfigService, sanitizer: DomSanitizer);
99
+ onPopState(): void;
100
+ /**
101
+ * HostListener to catch ctrl+s/meta+s and download the current image.
102
+ * Inspired by https://netbasal.com/add-keyboard-shortcuts-to-your-angular-app-9bf2e89862b3
103
+ */
104
+ onSaveListener(event: KeyboardEvent): void;
105
+ constructor(dialogContent: ModalGalleryConfig, modalGalleryService: ModalGalleryService, platformId: Object, changeDetectorRef: ChangeDetectorRef, idValidatorService: IdValidatorService, configService: ConfigService, sanitizer: DomSanitizer);
103
106
  /**
104
107
  * Method ´ngOnInit´ to init images calling `initImages()`.
105
- * This is an Angular's lifecycle hook, so its called automatically by Angular itself.
108
+ * This is an angular lifecycle hook, so its called automatically by Angular itself.
106
109
  * In particular, it's called only one time!!!
107
110
  */
108
111
  ngOnInit(): void;
@@ -144,14 +147,13 @@ export declare class ModalGalleryComponent implements OnInit, OnDestroy {
144
147
  */
145
148
  onCloseGalleryButton(event: ButtonEvent, action?: Action): void;
146
149
  /**
147
- * Method called by CurrentImageComponent and triggered via KeyboardService.
150
+ * Method called by CurrentImageComponent.
148
151
  * @param event ImageModalEvent event payload
149
152
  * @param action Action that triggered the close method. `Action.NORMAL` by default
150
153
  */
151
154
  onCloseGallery(event: ImageModalEvent, action?: Action): void;
152
155
  /**
153
156
  * Method to close the modal gallery specifying the action.
154
- * It also reset the `keyboardService` to prevent multiple listeners.
155
157
  * @param action Action action type. `Action.NORMAL` by default
156
158
  * @param clickOutside boolean that is true if called clicking on the modal background. False by default.
157
159
  */
@@ -184,18 +186,10 @@ export declare class ModalGalleryComponent implements OnInit, OnDestroy {
184
186
  */
185
187
  onClickPreview(event: ImageModalEvent): void;
186
188
  /**
187
- * Method to cleanup resources. In fact, this will reset keyboard's service.
188
- * This is an Angular's lifecycle hook that is called when this component is destroyed.
189
+ * Method to cleanup resources.
190
+ * This is an angular lifecycle hook that is called when this component is destroyed.
189
191
  */
190
192
  ngOnDestroy(): void;
191
- /**
192
- * Method to show the modal gallery displaying the currentImage.
193
- * It will also register a new `keyboardService` to catch keyboard's events to download the current
194
- * image with keyboard's shortcuts. This service, will be removed either when modal gallery component
195
- * will be destroyed or when the gallery is closed invoking the `closeGallery` method.
196
- * @private
197
- */
198
- private registerKeyboardService;
199
193
  /**
200
194
  * Method to download the current image, only if `downloadable` is true.
201
195
  * @private
@@ -76,13 +76,13 @@ export declare class PlainGalleryComponent extends AccessibleComponent implement
76
76
  /**
77
77
  * Method ´ngOnInit´ to init both `configPlainGallery` calling `initPlainGalleryConfig()`
78
78
  * and `imageGrid invoking `initImageGrid()`.
79
- * This is an Angular's lifecycle hook, so its called automatically by Angular itself.
79
+ * This is an angular lifecycle hook, so its called automatically by Angular itself.
80
80
  * In particular, it's called only one time!!!
81
81
  */
82
82
  ngOnInit(): void;
83
83
  /**
84
84
  * Method ´ngOnChanges´ to update both `imageGrid` and`plainGalleryConfig`.
85
- * This is an Angular's lifecycle hook, so its called automatically by Angular itself.
85
+ * This is an angular lifecycle hook, so its called automatically by Angular itself.
86
86
  * In particular, it's called when any data-bound property of a directive changes!!!
87
87
  */
88
88
  ngOnChanges(changes: SimpleChanges): void;
@@ -131,5 +131,5 @@ export declare class PlainGalleryComponent extends AccessibleComponent implement
131
131
  */
132
132
  private initImageGrid;
133
133
  static ɵfac: i0.ɵɵFactoryDeclaration<PlainGalleryComponent, never>;
134
- static ɵcmp: i0.ɵɵComponentDeclaration<PlainGalleryComponent, "ks-plain-gallery", never, { "id": "id"; "images": "images"; "config": "config"; }, { "clickImage": "clickImage"; }, never, never, false, never>;
134
+ static ɵcmp: i0.ɵɵComponentDeclaration<PlainGalleryComponent, "ks-plain-gallery", never, { "id": { "alias": "id"; "required": false; }; "images": { "alias": "images"; "required": false; }; "config": { "alias": "config"; "required": false; }; }, { "clickImage": "clickImage"; }, never, never, false, never>;
135
135
  }
@@ -18,16 +18,16 @@ export declare class PreviewsComponent extends AccessibleComponent implements On
18
18
  * Unique id (>=0) of the current instance of this library. This is required when you are using
19
19
  * the service to call modal gallery.
20
20
  */
21
- id: number | undefined;
21
+ id: number;
22
22
  /**
23
23
  * Object of type `InternalLibImage` that represent the visible image.
24
24
  */
25
- currentImage: InternalLibImage | undefined;
25
+ currentImage: InternalLibImage;
26
26
  /**
27
27
  * Array of `InternalLibImage` that represent the model of this library with all images,
28
28
  * thumbs and so on.
29
29
  */
30
- images: InternalLibImage[] | undefined;
30
+ images: InternalLibImage[];
31
31
  /**
32
32
  * Optional template reference for the rendering of previews.
33
33
  * Template may access following context variables:
@@ -81,7 +81,7 @@ export declare class PreviewsComponent extends AccessibleComponent implements On
81
81
  /**
82
82
  * Method ´ngOnInit´ to build `configPreview` applying a default value and also to
83
83
  * init the `previews` array.
84
- * This is an Angular's lifecycle hook, so its called automatically by Angular itself.
84
+ * This is an angular lifecycle hook, so its called automatically by Angular itself.
85
85
  * In particular, it's called only one time!!!
86
86
  */
87
87
  ngOnInit(): void;
@@ -94,7 +94,7 @@ export declare class PreviewsComponent extends AccessibleComponent implements On
94
94
  /**
95
95
  * Method ´ngOnChanges´ to update `previews` array.
96
96
  * Also, both `start` and `end` local variables will be updated accordingly.
97
- * This is an Angular's lifecycle hook, so its called automatically by Angular itself.
97
+ * This is an angular lifecycle hook, so its called automatically by Angular itself.
98
98
  * In particular, it's called when any data-bound property of a directive changes!!!
99
99
  */
100
100
  ngOnChanges(changes: SimpleChanges): void;
@@ -151,5 +151,5 @@ export declare class PreviewsComponent extends AccessibleComponent implements On
151
151
  */
152
152
  private previous;
153
153
  static ɵfac: i0.ɵɵFactoryDeclaration<PreviewsComponent, never>;
154
- static ɵcmp: i0.ɵɵComponentDeclaration<PreviewsComponent, "ks-previews", never, { "id": "id"; "currentImage": "currentImage"; "images": "images"; "customTemplate": "customTemplate"; }, { "clickPreview": "clickPreview"; }, never, never, false, never>;
154
+ static ɵcmp: i0.ɵɵComponentDeclaration<PreviewsComponent, "ks-previews", never, { "id": { "alias": "id"; "required": false; }; "currentImage": { "alias": "currentImage"; "required": false; }; "images": { "alias": "images"; "required": false; }; "customTemplate": { "alias": "customTemplate"; "required": false; }; }, { "clickPreview": "clickPreview"; }, never, never, false, never>;
155
155
  }
@@ -21,11 +21,11 @@ export declare class UpperButtonsComponent extends AccessibleComponent implement
21
21
  * Unique id (>=0) of the current instance of this library. This is required when you are using
22
22
  * the service to call modal gallery.
23
23
  */
24
- id: number | undefined;
24
+ id: number;
25
25
  /**
26
26
  * Object of type `Image` that represent the visible image.
27
27
  */
28
- currentImage: Image | undefined;
28
+ currentImage: Image;
29
29
  /**
30
30
  * Output to emit clicks on refresh button. The payload contains a `ButtonEvent`.
31
31
  */
@@ -84,7 +84,7 @@ export declare class UpperButtonsComponent extends AccessibleComponent implement
84
84
  /**
85
85
  * Method ´ngOnInit´ to build `configButtons` applying a default value and also to
86
86
  * init the `buttons` array.
87
- * This is an Angular's lifecycle hook, so its called automatically by Angular itself.
87
+ * This is an angular lifecycle hook, so its called automatically by Angular itself.
88
88
  * In particular, it's called only one time!!!
89
89
  */
90
90
  ngOnInit(): void;
@@ -128,5 +128,5 @@ export declare class UpperButtonsComponent extends AccessibleComponent implement
128
128
  */
129
129
  private validateCustomButtons;
130
130
  static ɵfac: i0.ɵɵFactoryDeclaration<UpperButtonsComponent, never>;
131
- static ɵcmp: i0.ɵɵComponentDeclaration<UpperButtonsComponent, "ks-upper-buttons", never, { "id": "id"; "currentImage": "currentImage"; }, { "refresh": "refresh"; "delete": "delete"; "navigate": "navigate"; "download": "download"; "closeButton": "closeButton"; "fullscreen": "fullscreen"; "customEmit": "customEmit"; }, never, never, false, never>;
131
+ static ɵcmp: i0.ɵɵComponentDeclaration<UpperButtonsComponent, "ks-upper-buttons", never, { "id": { "alias": "id"; "required": false; }; "currentImage": { "alias": "currentImage"; "required": false; }; }, { "refresh": "refresh"; "delete": "delete"; "navigate": "navigate"; "download": "download"; "closeButton": "closeButton"; "fullscreen": "fullscreen"; "customEmit": "customEmit"; }, never, never, false, never>;
132
132
  }
@@ -19,13 +19,13 @@ export declare class ATagBgImageDirective implements OnInit, OnChanges {
19
19
  constructor(renderer: Renderer2, el: ElementRef);
20
20
  /**
21
21
  * Method ´ngOnInit´ to apply the style of this directive.
22
- * This is an Angular's lifecycle hook, so its called automatically by Angular itself.
22
+ * This is an angular lifecycle hook, so its called automatically by Angular itself.
23
23
  * In particular, it's called only one time!!!
24
24
  */
25
25
  ngOnInit(): void;
26
26
  /**
27
27
  * Method ´ngOnChanges´ to apply the style of this directive.
28
- * This is an Angular's lifecycle hook, so its called automatically by Angular itself.
28
+ * This is an angular lifecycle hook, so its called automatically by Angular itself.
29
29
  * In particular, it's called when any data-bound property of a directive changes!!!
30
30
  */
31
31
  ngOnChanges(): void;
@@ -34,5 +34,5 @@ export declare class ATagBgImageDirective implements OnInit, OnChanges {
34
34
  */
35
35
  private applyStyle;
36
36
  static ɵfac: i0.ɵɵFactoryDeclaration<ATagBgImageDirective, never>;
37
- static ɵdir: i0.ɵɵDirectiveDeclaration<ATagBgImageDirective, "[ksATagBgImage]", never, { "image": "image"; "style": "style"; }, {}, never, never, false, never>;
37
+ static ɵdir: i0.ɵɵDirectiveDeclaration<ATagBgImageDirective, "[ksATagBgImage]", never, { "image": { "alias": "image"; "required": false; }; "style": { "alias": "style"; "required": false; }; }, {}, never, never, false, never>;
38
38
  }
@@ -16,9 +16,9 @@ export declare class ClickOutsideDirective {
16
16
  clickOutside: EventEmitter<boolean>;
17
17
  /**
18
18
  * Method called by Angular itself every click thanks to `@HostListener`.
19
- * @param MouseEvent event payload received evey click
19
+ * @param event MouseEvent
20
20
  */
21
21
  onClick(event: MouseEvent): void;
22
22
  static ɵfac: i0.ɵɵFactoryDeclaration<ClickOutsideDirective, never>;
23
- static ɵdir: i0.ɵɵDirectiveDeclaration<ClickOutsideDirective, "[ksClickOutside]", never, { "clickOutsideEnable": "clickOutsideEnable"; }, { "clickOutside": "clickOutside"; }, never, never, false, never>;
23
+ static ɵdir: i0.ɵɵDirectiveDeclaration<ClickOutsideDirective, "[ksClickOutside]", never, { "clickOutsideEnable": { "alias": "clickOutsideEnable"; "required": false; }; }, { "clickOutside": "clickOutside"; }, never, never, false, never>;
24
24
  }
@@ -14,13 +14,13 @@ export declare class DescriptionDirective implements OnInit, OnChanges {
14
14
  constructor(renderer: Renderer2, el: ElementRef);
15
15
  /**
16
16
  * Method ´ngOnInit´ to apply the style of this directive.
17
- * This is an Angular's lifecycle hook, so its called automatically by Angular itself.
17
+ * This is an angular lifecycle hook, so its called automatically by Angular itself.
18
18
  * In particular, it's called only one time!!!
19
19
  */
20
20
  ngOnInit(): void;
21
21
  /**
22
22
  * Method ´ngOnChanges´ to apply the style of this directive.
23
- * This is an Angular's lifecycle hook, so its called automatically by Angular itself.
23
+ * This is an angular lifecycle hook, so its called automatically by Angular itself.
24
24
  * In particular, it's called when any data-bound property of a directive changes!!!
25
25
  */
26
26
  ngOnChanges(): void;
@@ -29,5 +29,5 @@ export declare class DescriptionDirective implements OnInit, OnChanges {
29
29
  */
30
30
  private applyStyle;
31
31
  static ɵfac: i0.ɵɵFactoryDeclaration<DescriptionDirective, never>;
32
- static ɵdir: i0.ɵɵDirectiveDeclaration<DescriptionDirective, "[ksDescription]", never, { "description": "description"; }, {}, never, never, false, never>;
32
+ static ɵdir: i0.ɵɵDirectiveDeclaration<DescriptionDirective, "[ksDescription]", never, { "description": { "alias": "description"; "required": false; }; }, {}, never, never, false, never>;
33
33
  }
@@ -17,13 +17,13 @@ export declare class DirectionDirective implements OnInit, OnChanges {
17
17
  constructor(renderer: Renderer2, el: ElementRef);
18
18
  /**
19
19
  * Method ´ngOnInit´ to apply the style of this directive.
20
- * This is an Angular's lifecycle hook, so its called automatically by Angular itself.
20
+ * This is an angular lifecycle hook, so its called automatically by Angular itself.
21
21
  * In particular, it's called only one time!!!
22
22
  */
23
23
  ngOnInit(): void;
24
24
  /**
25
25
  * Method ´ngOnChanges´ to apply the style of this directive.
26
- * This is an Angular's lifecycle hook, so its called automatically by Angular itself.
26
+ * This is an angular lifecycle hook, so its called automatically by Angular itself.
27
27
  * In particular, it's called when any data-bound property of a directive changes!!!
28
28
  */
29
29
  ngOnChanges(): void;
@@ -32,5 +32,5 @@ export declare class DirectionDirective implements OnInit, OnChanges {
32
32
  */
33
33
  private applyStyle;
34
34
  static ɵfac: i0.ɵɵFactoryDeclaration<DirectionDirective, never>;
35
- static ɵdir: i0.ɵɵDirectiveDeclaration<DirectionDirective, "[ksDirection]", never, { "direction": "direction"; "justify": "justify"; }, {}, never, never, false, never>;
35
+ static ɵdir: i0.ɵɵDirectiveDeclaration<DirectionDirective, "[ksDirection]", never, { "direction": { "alias": "direction"; "required": false; }; "justify": { "alias": "justify"; "required": false; }; }, {}, never, never, false, never>;
36
36
  }
@@ -8,7 +8,8 @@ import { DescriptionDirective } from './description.directive';
8
8
  import { MarginDirective } from './margin.directive';
9
9
  import { MaxSizeDirective } from './max-size.directive';
10
10
  import { FallbackImageDirective } from './fallback-image.directive';
11
+ import { SwipeDirective } from './swipe.directive';
11
12
  /**
12
13
  * Array of all directives.
13
14
  */
14
- export declare const DIRECTIVES: (typeof ClickOutsideDirective | typeof SizeDirective | typeof KeyboardNavigationDirective | typeof WrapDirective | typeof DirectionDirective | typeof ATagBgImageDirective | typeof DescriptionDirective | typeof MarginDirective | typeof MaxSizeDirective | typeof FallbackImageDirective)[];
15
+ export declare const DIRECTIVES: (typeof ClickOutsideDirective | typeof SizeDirective | typeof KeyboardNavigationDirective | typeof WrapDirective | typeof DirectionDirective | typeof ATagBgImageDirective | typeof DescriptionDirective | typeof MarginDirective | typeof MaxSizeDirective | typeof FallbackImageDirective | typeof SwipeDirective)[];
@@ -12,5 +12,5 @@ export declare class FallbackImageDirective {
12
12
  constructor(renderer: Renderer2, el: ElementRef);
13
13
  onError(): void;
14
14
  static ɵfac: i0.ɵɵFactoryDeclaration<FallbackImageDirective, never>;
15
- static ɵdir: i0.ɵɵDirectiveDeclaration<FallbackImageDirective, "[ksFallbackImage]", never, { "fallbackImg": "fallbackImg"; }, { "fallbackApplied": "fallbackApplied"; }, never, never, false, never>;
15
+ static ɵdir: i0.ɵɵDirectiveDeclaration<FallbackImageDirective, "[ksFallbackImage]", never, { "fallbackImg": { "alias": "fallbackImg"; "required": false; }; }, { "fallbackApplied": "fallbackApplied"; }, never, never, false, never>;
16
16
  }
@@ -11,5 +11,5 @@ export declare class KeyboardNavigationDirective {
11
11
  */
12
12
  onKeyDown(e: KeyboardEvent): void;
13
13
  static ɵfac: i0.ɵɵFactoryDeclaration<KeyboardNavigationDirective, never>;
14
- static ɵdir: i0.ɵɵDirectiveDeclaration<KeyboardNavigationDirective, "[ksKeyboardNavigation]", never, { "isOpen": "isOpen"; }, { "keyboardNavigation": "keyboardNavigation"; }, never, never, false, never>;
14
+ static ɵdir: i0.ɵɵDirectiveDeclaration<KeyboardNavigationDirective, "[ksKeyboardNavigation]", never, { "isOpen": { "alias": "isOpen"; "required": false; }; }, { "keyboardNavigation": "keyboardNavigation"; }, never, never, false, never>;
15
15
  }
@@ -25,13 +25,13 @@ export declare class MarginDirective implements OnInit, OnChanges {
25
25
  constructor(renderer: Renderer2, el: ElementRef);
26
26
  /**
27
27
  * Method ´ngOnInit´ to apply the style of this directive.
28
- * This is an Angular's lifecycle hook, so its called automatically by Angular itself.
28
+ * This is an angular lifecycle hook, so its called automatically by Angular itself.
29
29
  * In particular, it's called only one time!!!
30
30
  */
31
31
  ngOnInit(): void;
32
32
  /**
33
33
  * Method ´ngOnChanges´ to apply the style of this directive.
34
- * This is an Angular's lifecycle hook, so its called automatically by Angular itself.
34
+ * This is an angular lifecycle hook, so its called automatically by Angular itself.
35
35
  * In particular, it's called when any data-bound property of a directive changes!!!
36
36
  */
37
37
  ngOnChanges(): void;
@@ -40,5 +40,5 @@ export declare class MarginDirective implements OnInit, OnChanges {
40
40
  */
41
41
  private applyStyle;
42
42
  static ɵfac: i0.ɵɵFactoryDeclaration<MarginDirective, never>;
43
- static ɵdir: i0.ɵɵDirectiveDeclaration<MarginDirective, "[ksMargin]", never, { "marginLeft": "marginLeft"; "marginRight": "marginRight"; "marginTop": "marginTop"; "marginBottom": "marginBottom"; }, {}, never, never, false, never>;
43
+ static ɵdir: i0.ɵɵDirectiveDeclaration<MarginDirective, "[ksMargin]", never, { "marginLeft": { "alias": "marginLeft"; "required": false; }; "marginRight": { "alias": "marginRight"; "required": false; }; "marginTop": { "alias": "marginTop"; "required": false; }; "marginBottom": { "alias": "marginBottom"; "required": false; }; }, {}, never, never, false, never>;
44
44
  }
@@ -14,13 +14,13 @@ export declare class MaxSizeDirective implements OnInit, OnChanges {
14
14
  constructor(renderer: Renderer2, el: ElementRef);
15
15
  /**
16
16
  * Method ´ngOnInit´ to apply the style of this directive.
17
- * This is an Angular's lifecycle hook, so its called automatically by Angular itself.
17
+ * This is an angular lifecycle hook, so its called automatically by Angular itself.
18
18
  * In particular, it's called only one time!!!
19
19
  */
20
20
  ngOnInit(): void;
21
21
  /**
22
22
  * Method ´ngOnChanges´ to apply the style of this directive.
23
- * This is an Angular's lifecycle hook, so its called automatically by Angular itself.
23
+ * This is an angular lifecycle hook, so its called automatically by Angular itself.
24
24
  * In particular, it's called when any data-bound property of a directive changes!!!
25
25
  */
26
26
  ngOnChanges(): void;
@@ -29,5 +29,5 @@ export declare class MaxSizeDirective implements OnInit, OnChanges {
29
29
  */
30
30
  private applyStyle;
31
31
  static ɵfac: i0.ɵɵFactoryDeclaration<MaxSizeDirective, never>;
32
- static ɵdir: i0.ɵɵDirectiveDeclaration<MaxSizeDirective, "[ksMaxSize]", never, { "maxSizeConfig": "maxSizeConfig"; }, {}, never, never, false, never>;
32
+ static ɵdir: i0.ɵɵDirectiveDeclaration<MaxSizeDirective, "[ksMaxSize]", never, { "maxSizeConfig": { "alias": "maxSizeConfig"; "required": false; }; }, {}, never, never, false, never>;
33
33
  }
@@ -29,5 +29,5 @@ export declare class SizeDirective implements OnInit, OnChanges {
29
29
  */
30
30
  private applyStyle;
31
31
  static ɵfac: i0.ɵɵFactoryDeclaration<SizeDirective, never>;
32
- static ɵdir: i0.ɵɵDirectiveDeclaration<SizeDirective, "[ksSize]", never, { "sizeConfig": "sizeConfig"; }, {}, never, never, false, never>;
32
+ static ɵdir: i0.ɵɵDirectiveDeclaration<SizeDirective, "[ksSize]", never, { "sizeConfig": { "alias": "sizeConfig"; "required": false; }; }, {}, never, never, false, never>;
33
33
  }
@@ -0,0 +1,33 @@
1
+ import { EventEmitter } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ /**
4
+ * Directive to close the modal gallery clicking on the semi-transparent background.
5
+ * In fact, it listens for a click on all elements that aren't 'inside' and it emits
6
+ * an event using `@Output clickOutside`.
7
+ */
8
+ export declare class SwipeDirective {
9
+ defaultTouch: {
10
+ x: number;
11
+ y: number;
12
+ time: number;
13
+ };
14
+ /**
15
+ */
16
+ swipeLeft: EventEmitter<void>;
17
+ /**
18
+ */
19
+ swipeRight: EventEmitter<void>;
20
+ /**
21
+ */
22
+ swipeUp: EventEmitter<void>;
23
+ /**
24
+ */
25
+ swipeDown: EventEmitter<void>;
26
+ /**
27
+ * Method called by Angular itself every click thanks to `@HostListener`.
28
+ * @param event TouchEvent payload received on touch
29
+ */
30
+ handleTouch(event: TouchEvent): void;
31
+ static ɵfac: i0.ɵɵFactoryDeclaration<SwipeDirective, never>;
32
+ static ɵdir: i0.ɵɵDirectiveDeclaration<SwipeDirective, "[ksSwipe]", never, {}, { "swipeLeft": "swipeLeft"; "swipeRight": "swipeRight"; "swipeUp": "swipeUp"; "swipeDown": "swipeDown"; }, never, never, false, never>;
33
+ }
@@ -17,13 +17,13 @@ export declare class WrapDirective implements OnInit, OnChanges {
17
17
  constructor(renderer: Renderer2, el: ElementRef);
18
18
  /**
19
19
  * Method ´ngOnInit´ to apply the style of this directive.
20
- * This is an Angular's lifecycle hook, so its called automatically by Angular itself.
20
+ * This is an angular lifecycle hook, so its called automatically by Angular itself.
21
21
  * In particular, it's called only one time!!!
22
22
  */
23
23
  ngOnInit(): void;
24
24
  /**
25
25
  * Method ´ngOnChanges´ to apply the style of this directive.
26
- * This is an Angular's lifecycle hook, so its called automatically by Angular itself.
26
+ * This is an angular lifecycle hook, so its called automatically by Angular itself.
27
27
  * In particular, it's called when any data-bound property of a directive changes!!!
28
28
  */
29
29
  ngOnChanges(): void;
@@ -32,5 +32,5 @@ export declare class WrapDirective implements OnInit, OnChanges {
32
32
  */
33
33
  private applyStyle;
34
34
  static ɵfac: i0.ɵɵFactoryDeclaration<WrapDirective, never>;
35
- static ɵdir: i0.ɵɵDirectiveDeclaration<WrapDirective, "[ksWrap]", never, { "wrap": "wrap"; "width": "width"; }, {}, never, never, false, never>;
35
+ static ɵdir: i0.ɵɵDirectiveDeclaration<WrapDirective, "[ksWrap]", never, { "wrap": { "alias": "wrap"; "required": false; }; "width": { "alias": "width"; "required": false; }; }, {}, never, never, false, never>;
36
36
  }