@ks89/angular-modal-gallery 8.0.0-rc.1 → 9.0.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 +123 -0
- package/CONTRIBUTING.md +3 -3
- package/README.md +26 -34
- package/{esm2015/ks89-angular-modal-gallery.js → esm2020/ks89-angular-modal-gallery.mjs} +0 -0
- package/{esm2015/lib/components/accessibility-default.js → esm2020/lib/components/accessibility-default.mjs} +0 -0
- package/{esm2015/lib/components/accessible.component.js → esm2020/lib/components/accessible.component.mjs} +6 -6
- package/esm2020/lib/components/carousel/carousel-previews/carousel-previews.component.mjs +462 -0
- package/esm2020/lib/components/carousel/carousel.component.mjs +747 -0
- package/{esm2015/lib/components/components.js → esm2020/lib/components/components.mjs} +0 -0
- package/esm2020/lib/components/current-image/current-image.component.mjs +616 -0
- package/esm2020/lib/components/current-image/loading-spinner/loading-spinner.component.mjs +80 -0
- package/esm2020/lib/components/dots/dots.component.mjs +127 -0
- package/esm2020/lib/components/modal-gallery/modal-gallery-ref.mjs +103 -0
- package/esm2020/lib/components/modal-gallery/modal-gallery.component.mjs +523 -0
- package/esm2020/lib/components/modal-gallery/modal-gallery.service.mjs +187 -0
- package/esm2020/lib/components/modal-gallery/modal-gallery.tokens.mjs +26 -0
- package/esm2020/lib/components/plain-gallery/plain-gallery.component.mjs +249 -0
- package/esm2020/lib/components/previews/previews.component.mjs +332 -0
- package/{esm2015/lib/components/upper-buttons/upper-buttons-default.js → esm2020/lib/components/upper-buttons/upper-buttons-default.mjs} +0 -0
- package/esm2020/lib/components/upper-buttons/upper-buttons.component.mjs +249 -0
- package/{esm2015/lib/directives/a-tag-bg-image.directive.js → esm2020/lib/directives/a-tag-bg-image.directive.mjs} +3 -3
- package/{esm2015/lib/directives/click-outside.directive.js → esm2020/lib/directives/click-outside.directive.mjs} +3 -3
- package/{esm2015/lib/directives/description.directive.js → esm2020/lib/directives/description.directive.mjs} +3 -3
- package/{esm2015/lib/directives/direction.directive.js → esm2020/lib/directives/direction.directive.mjs} +3 -3
- package/{esm2015/lib/directives/directives.js → esm2020/lib/directives/directives.mjs} +0 -0
- package/esm2020/lib/directives/fallback-image.directive.mjs +59 -0
- package/{esm2015/lib/directives/keyboard-navigation.directive.js → esm2020/lib/directives/keyboard-navigation.directive.mjs} +5 -5
- package/{esm2015/lib/directives/margin.directive.js → esm2020/lib/directives/margin.directive.mjs} +3 -3
- package/{esm2015/lib/directives/max-size.directive.js → esm2020/lib/directives/max-size.directive.mjs} +3 -3
- package/{esm2015/lib/directives/size.directive.js → esm2020/lib/directives/size.directive.mjs} +3 -3
- package/{esm2015/lib/directives/wrap.directive.js → esm2020/lib/directives/wrap.directive.mjs} +6 -6
- package/{esm2015/lib/modal-gallery.module.js → esm2020/lib/modal-gallery.module.mjs} +10 -13
- package/{esm2015/lib/model/accessibility.interface.js → esm2020/lib/model/accessibility.interface.mjs} +0 -0
- package/{esm2015/lib/model/action.enum.js → esm2020/lib/model/action.enum.mjs} +0 -0
- package/esm2020/lib/model/buttons-config.interface.mjs +62 -0
- package/{esm2015/lib/model/carousel-config.interface.js → esm2020/lib/model/carousel-config.interface.mjs} +1 -1
- package/{esm2015/lib/model/carousel-image-config.interface.js → esm2020/lib/model/carousel-image-config.interface.mjs} +0 -0
- package/{esm2015/lib/model/carousel-preview-config.interface.js → esm2020/lib/model/carousel-preview-config.interface.mjs} +0 -0
- package/{esm2015/lib/model/current-image-config.interface.js → esm2020/lib/model/current-image-config.interface.mjs} +0 -0
- package/{esm2015/lib/model/description.interface.js → esm2020/lib/model/description.interface.mjs} +0 -0
- package/{esm2015/lib/model/dots-config.interface.js → esm2020/lib/model/dots-config.interface.mjs} +0 -0
- package/{esm2015/lib/model/image-internal.class.js → esm2020/lib/model/image-internal.class.mjs} +0 -0
- package/{esm2015/lib/model/image.class.js → esm2020/lib/model/image.class.mjs} +0 -0
- package/{esm2015/lib/model/interaction-event.interface.js → esm2020/lib/model/interaction-event.interface.mjs} +0 -0
- package/{esm2015/lib/model/keyboard-config.interface.js → esm2020/lib/model/keyboard-config.interface.mjs} +1 -1
- package/{esm2015/lib/model/keyboard-service-config.interface.js → esm2020/lib/model/keyboard-service-config.interface.mjs} +0 -0
- package/esm2020/lib/model/keyboard.enum.mjs +35 -0
- package/{esm2015/lib/model/lib-config.interface.js → esm2020/lib/model/lib-config.interface.mjs} +1 -1
- package/{esm2015/lib/model/loading-config.interface.js → esm2020/lib/model/loading-config.interface.mjs} +0 -0
- package/{esm2015/lib/model/max-size.interface.js → esm2020/lib/model/max-size.interface.mjs} +0 -0
- package/{esm2015/lib/model/modal-gallery-config.interface.js → esm2020/lib/model/modal-gallery-config.interface.mjs} +1 -1
- package/esm2020/lib/model/plain-gallery-config.interface.mjs +55 -0
- package/{esm2015/lib/model/play-config.interface.js → esm2020/lib/model/play-config.interface.mjs} +0 -0
- package/{esm2015/lib/model/preview-config.interface.js → esm2020/lib/model/preview-config.interface.mjs} +0 -0
- package/{esm2015/lib/model/size.interface.js → esm2020/lib/model/size.interface.mjs} +0 -0
- package/{esm2015/lib/model/slide-config.interface.js → esm2020/lib/model/slide-config.interface.mjs} +0 -0
- package/esm2020/lib/services/config.service.mjs +396 -0
- package/esm2020/lib/services/id-validator.service.mjs +71 -0
- package/{esm2015/lib/services/keyboard.service.js → esm2020/lib/services/keyboard.service.mjs} +3 -3
- package/{esm2015/lib/utils/image.util.js → esm2020/lib/utils/image.util.mjs} +0 -0
- package/esm2020/lib/utils/user-input.util.mjs +104 -0
- package/esm2020/public-api.mjs +42 -0
- package/fesm2015/ks89-angular-modal-gallery.mjs +5782 -0
- package/fesm2015/ks89-angular-modal-gallery.mjs.map +1 -0
- package/{fesm2015/ks89-angular-modal-gallery.js → fesm2020/ks89-angular-modal-gallery.mjs} +521 -544
- package/fesm2020/ks89-angular-modal-gallery.mjs.map +1 -0
- package/lib/components/accessible.component.d.ts +2 -2
- package/lib/components/carousel/carousel-previews/carousel-previews.component.d.ts +0 -7
- package/lib/components/carousel/carousel.component.d.ts +25 -67
- package/lib/components/current-image/current-image.component.d.ts +6 -3
- package/lib/components/dots/dots.component.d.ts +4 -0
- package/lib/components/modal-gallery/modal-gallery-ref.d.ts +35 -0
- package/lib/components/modal-gallery/modal-gallery.component.d.ts +53 -49
- package/lib/components/modal-gallery/modal-gallery.service.d.ts +57 -1
- package/lib/components/plain-gallery/plain-gallery.component.d.ts +16 -10
- package/lib/components/previews/previews.component.d.ts +6 -0
- package/lib/components/upper-buttons/upper-buttons.component.d.ts +5 -1
- package/lib/directives/fallback-image.directive.d.ts +3 -0
- package/lib/directives/keyboard-navigation.directive.d.ts +1 -1
- package/lib/directives/wrap.directive.d.ts +1 -1
- package/lib/model/carousel-config.interface.d.ts +0 -1
- package/lib/model/keyboard-config.interface.d.ts +4 -4
- package/lib/model/keyboard.enum.d.ts +11 -8
- package/lib/model/lib-config.interface.d.ts +20 -7
- package/lib/model/modal-gallery-config.interface.d.ts +2 -2
- package/lib/model/plain-gallery-config.interface.d.ts +1 -9
- package/lib/services/id-validator.service.d.ts +2 -1
- package/lib/utils/user-input.util.d.ts +35 -26
- package/package.json +27 -14
- package/public-api.d.ts +2 -2
- package/bundles/ks89-angular-modal-gallery.umd.js +0 -6067
- package/bundles/ks89-angular-modal-gallery.umd.js.map +0 -1
- package/esm2015/lib/components/carousel/carousel-previews/carousel-previews.component.js +0 -480
- package/esm2015/lib/components/carousel/carousel.component.js +0 -800
- package/esm2015/lib/components/current-image/current-image.component.js +0 -618
- package/esm2015/lib/components/current-image/loading-spinner/loading-spinner.component.js +0 -93
- package/esm2015/lib/components/dots/dots.component.js +0 -132
- package/esm2015/lib/components/modal-gallery/modal-gallery-ref.js +0 -45
- package/esm2015/lib/components/modal-gallery/modal-gallery.component.js +0 -558
- package/esm2015/lib/components/modal-gallery/modal-gallery.service.js +0 -131
- package/esm2015/lib/components/modal-gallery/modal-gallery.tokens.js +0 -3
- package/esm2015/lib/components/plain-gallery/plain-gallery.component.js +0 -253
- package/esm2015/lib/components/previews/previews.component.js +0 -338
- package/esm2015/lib/components/upper-buttons/upper-buttons.component.js +0 -266
- package/esm2015/lib/directives/fallback-image.directive.js +0 -56
- package/esm2015/lib/model/buttons-config.interface.js +0 -66
- package/esm2015/lib/model/keyboard.enum.js +0 -35
- package/esm2015/lib/model/plain-gallery-config.interface.js +0 -64
- package/esm2015/lib/services/config.service.js +0 -395
- package/esm2015/lib/services/id-validator.service.js +0 -73
- package/esm2015/lib/utils/user-input.util.js +0 -95
- package/esm2015/public-api.js +0 -46
- package/fesm2015/ks89-angular-modal-gallery.js.map +0 -1
|
@@ -17,6 +17,10 @@ export interface InternalButtonConfig extends ButtonConfig {
|
|
|
17
17
|
*/
|
|
18
18
|
export declare class UpperButtonsComponent extends AccessibleComponent implements OnInit {
|
|
19
19
|
private configService;
|
|
20
|
+
/**
|
|
21
|
+
* Unique id (>=0) of the current instance of this library. This is required when you are using
|
|
22
|
+
* the service to call modal gallery.
|
|
23
|
+
*/
|
|
20
24
|
id: number | undefined;
|
|
21
25
|
/**
|
|
22
26
|
* Object of type `Image` that represent the visible image.
|
|
@@ -118,7 +122,7 @@ export declare class UpperButtonsComponent extends AccessibleComponent implement
|
|
|
118
122
|
private addButtonIds;
|
|
119
123
|
/**
|
|
120
124
|
* Private method to validate custom buttons received as input.
|
|
121
|
-
* @param ButtonConfig[] buttons config array
|
|
125
|
+
* @param ButtonConfig[] buttons config array. [] by default.
|
|
122
126
|
* @returns ButtonConfig[] the same input buttons config array
|
|
123
127
|
* @throws an error is exists a button with an unknown type
|
|
124
128
|
*/
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
import { ElementRef, EventEmitter, Renderer2 } from '@angular/core';
|
|
2
2
|
import { SafeResourceUrl } from '@angular/platform-browser';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
|
+
/**
|
|
5
|
+
* Directive to add fallback image if the original one is not reachable.
|
|
6
|
+
*/
|
|
4
7
|
export declare class FallbackImageDirective {
|
|
5
8
|
private renderer;
|
|
6
9
|
private el;
|
|
@@ -2,7 +2,7 @@ import { EventEmitter } from '@angular/core';
|
|
|
2
2
|
import * as i0 from "@angular/core";
|
|
3
3
|
export declare class KeyboardNavigationDirective {
|
|
4
4
|
isOpen: boolean | undefined;
|
|
5
|
-
keyboardNavigation: EventEmitter<
|
|
5
|
+
keyboardNavigation: EventEmitter<string>;
|
|
6
6
|
/**
|
|
7
7
|
* Listener to catch keyboard's events and call the right method based on the key.
|
|
8
8
|
* For instance, pressing esc, this will call `closeGallery(Action.KEYBOARD)` and so on.
|
|
@@ -28,7 +28,7 @@ export declare class WrapDirective implements OnInit, OnChanges {
|
|
|
28
28
|
*/
|
|
29
29
|
ngOnChanges(): void;
|
|
30
30
|
/**
|
|
31
|
-
* Private method to change both
|
|
31
|
+
* Private method to change both width and flex-wrap css properties.
|
|
32
32
|
*/
|
|
33
33
|
private applyStyle;
|
|
34
34
|
static ɵfac: i0.ɵɵFactoryDeclaration<WrapDirective, never>;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Interface `KeyboardConfig` to assign custom
|
|
2
|
+
* Interface `KeyboardConfig` to assign custom codes to ESC, RIGHT and LEFT keyboard's actions.
|
|
3
3
|
*/
|
|
4
4
|
export interface KeyboardConfig {
|
|
5
|
-
esc?:
|
|
6
|
-
right?:
|
|
7
|
-
left?:
|
|
5
|
+
esc?: string;
|
|
6
|
+
right?: string;
|
|
7
|
+
left?: string;
|
|
8
8
|
}
|
|
@@ -1,10 +1,13 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Enum `Keyboard` with keys and their relative
|
|
2
|
+
* Enum `Keyboard` with keys and their relative codes.
|
|
3
3
|
*/
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
4
|
+
import { DOWN_ARROW_CODE, ESC_CODE, LEFT_ARROW_CODE, RIGHT_ARROW_CODE, UP_ARROW_CODE } from '../utils/user-input.util';
|
|
5
|
+
declare type Keyboard = Readonly<{
|
|
6
|
+
ESC: typeof ESC_CODE;
|
|
7
|
+
LEFT_ARROW: typeof LEFT_ARROW_CODE;
|
|
8
|
+
RIGHT_ARROW: typeof RIGHT_ARROW_CODE;
|
|
9
|
+
UP_ARROW: typeof UP_ARROW_CODE;
|
|
10
|
+
DOWN_ARROW: typeof DOWN_ARROW_CODE;
|
|
11
|
+
}>;
|
|
12
|
+
export declare const Keyboard: Keyboard;
|
|
13
|
+
export {};
|
|
@@ -11,20 +11,33 @@ import { CarouselImageConfig } from './carousel-image-config.interface';
|
|
|
11
11
|
import { CarouselPreviewConfig } from './carousel-preview-config.interface';
|
|
12
12
|
import { PlayConfig } from './play-config.interface';
|
|
13
13
|
import { KeyboardServiceConfig } from './keyboard-service-config.interface';
|
|
14
|
-
export interface
|
|
15
|
-
slideConfig?: SlideConfig;
|
|
14
|
+
export interface AccessibleLibConfig {
|
|
16
15
|
accessibilityConfig?: AccessibilityConfig;
|
|
16
|
+
}
|
|
17
|
+
export interface CommonLibConfig {
|
|
17
18
|
previewConfig?: PreviewConfig;
|
|
18
|
-
buttonsConfig?: ButtonsConfig;
|
|
19
19
|
dotsConfig?: DotsConfig;
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
20
|
+
slideConfig?: SlideConfig;
|
|
21
|
+
}
|
|
22
|
+
export interface KeyboardServiceLibConfig {
|
|
23
|
+
keyboardServiceConfig?: KeyboardServiceConfig;
|
|
24
|
+
}
|
|
25
|
+
export interface CarouselLibConfig extends CommonLibConfig, AccessibleLibConfig, KeyboardServiceLibConfig {
|
|
23
26
|
carouselConfig?: CarouselConfig;
|
|
24
27
|
carouselImageConfig?: CarouselImageConfig;
|
|
25
28
|
carouselPreviewsConfig?: CarouselPreviewConfig;
|
|
26
29
|
carouselPlayConfig?: PlayConfig;
|
|
27
30
|
carouselDotsConfig?: DotsConfig;
|
|
31
|
+
carouselSlideInfinite?: boolean;
|
|
32
|
+
}
|
|
33
|
+
export interface ModalLibConfig extends CommonLibConfig, AccessibleLibConfig, KeyboardServiceLibConfig {
|
|
28
34
|
enableCloseOutside?: boolean;
|
|
29
|
-
|
|
35
|
+
keyboardConfig?: KeyboardConfig;
|
|
36
|
+
currentImageConfig?: CurrentImageConfig;
|
|
37
|
+
buttonsConfig?: ButtonsConfig;
|
|
38
|
+
}
|
|
39
|
+
export interface PlainLibConfig extends AccessibleLibConfig {
|
|
40
|
+
plainGalleryConfig?: PlainGalleryConfig;
|
|
41
|
+
}
|
|
42
|
+
export interface LibConfig extends ModalLibConfig, PlainLibConfig, CarouselLibConfig {
|
|
30
43
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Image } from './image.class';
|
|
2
|
-
import {
|
|
2
|
+
import { ModalLibConfig } from './lib-config.interface';
|
|
3
3
|
export interface ModalGalleryConfig {
|
|
4
4
|
id: number;
|
|
5
5
|
images: Image[];
|
|
6
6
|
currentImage: Image;
|
|
7
|
-
libConfig?:
|
|
7
|
+
libConfig?: ModalLibConfig;
|
|
8
8
|
}
|
|
@@ -9,7 +9,7 @@ export interface PlainGalleryConfig {
|
|
|
9
9
|
}
|
|
10
10
|
/**
|
|
11
11
|
* Interface `PlainGalleryLayout` to configure the layout. This interface isn't used directly, instead
|
|
12
|
-
* refers to either `LineLayout`, `GridLayout
|
|
12
|
+
* refers to either `LineLayout`, `GridLayout`.
|
|
13
13
|
*/
|
|
14
14
|
export interface PlainGalleryLayout {
|
|
15
15
|
}
|
|
@@ -30,14 +30,6 @@ export declare class GridLayout implements PlainGalleryLayout {
|
|
|
30
30
|
size: Size;
|
|
31
31
|
constructor(size: Size, breakConfig: BreakConfig);
|
|
32
32
|
}
|
|
33
|
-
/**
|
|
34
|
-
* Class `AdvancedLayout` to configure a fully custom plain gallery.
|
|
35
|
-
*/
|
|
36
|
-
export declare class AdvancedLayout implements PlainGalleryLayout {
|
|
37
|
-
modalOpenerByIndex: number;
|
|
38
|
-
hideDefaultPlainGallery: boolean;
|
|
39
|
-
constructor(modalOpenerByIndex: number, hideDefaultPlainGallery: boolean);
|
|
40
|
-
}
|
|
41
33
|
/**
|
|
42
34
|
* Enum `PlainGalleryStrategy` to choose the behaviour of the plain gallery.
|
|
43
35
|
*/
|
|
@@ -15,8 +15,9 @@ export declare class IdValidatorService {
|
|
|
15
15
|
/**
|
|
16
16
|
* Method to remove a reserved id. In this way you are able to use the id again for another instance of the library.
|
|
17
17
|
* @param galleryId number or undefined that represents the unique id of the gallery.
|
|
18
|
-
* @return boolean true if success. false is never returned, instead an exception is thrown
|
|
18
|
+
* @return boolean true if success. false is never returned, instead an exception is thrown*
|
|
19
19
|
* @throws a error with a message if galleryId is neither integer or < 0
|
|
20
|
+
* * this should be improved without return true, because it doesn't make sense! :(
|
|
20
21
|
*/
|
|
21
22
|
remove(galleryId: number | undefined): boolean;
|
|
22
23
|
static ɵfac: i0.ɵɵFactoryDeclaration<IdValidatorService, never>;
|
|
@@ -1,52 +1,69 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Key of the keyboard's key `enter`
|
|
3
3
|
*/
|
|
4
|
-
export declare const ENTER_KEY
|
|
4
|
+
export declare const ENTER_KEY: string;
|
|
5
5
|
/**
|
|
6
6
|
* Code of the keyboard's key `enter`
|
|
7
7
|
*/
|
|
8
|
-
export declare const ENTER_CODE
|
|
8
|
+
export declare const ENTER_CODE: string;
|
|
9
|
+
/**
|
|
10
|
+
* Key of the keyboard's key `esc`
|
|
11
|
+
*/
|
|
12
|
+
export declare const ESC_KEY: string;
|
|
13
|
+
/**
|
|
14
|
+
* Code of the keyboard's key `esc`
|
|
15
|
+
*/
|
|
16
|
+
export declare const ESC_CODE: string;
|
|
9
17
|
/**
|
|
10
18
|
* Key of the keyboard's key 'right arrow'
|
|
11
19
|
*/
|
|
12
|
-
export declare const RIGHT_ARROW_KEY
|
|
20
|
+
export declare const RIGHT_ARROW_KEY: string;
|
|
13
21
|
/**
|
|
14
22
|
* Code of the keyboard's key 'right arrow'
|
|
15
23
|
*/
|
|
16
|
-
export declare const RIGHT_ARROW_CODE
|
|
24
|
+
export declare const RIGHT_ARROW_CODE: string;
|
|
17
25
|
/**
|
|
18
|
-
*
|
|
19
|
-
* Used in unit tests only
|
|
26
|
+
* Key of the keyboard's key 'left arrow'
|
|
20
27
|
*/
|
|
21
|
-
export declare const
|
|
28
|
+
export declare const LEFT_ARROW_KEY: string;
|
|
29
|
+
/**
|
|
30
|
+
* Code of the keyboard's key 'left arrow'
|
|
31
|
+
*/
|
|
32
|
+
export declare const LEFT_ARROW_CODE: string;
|
|
22
33
|
/**
|
|
23
34
|
* Key of the keyboard's key 'left arrow'
|
|
24
35
|
*/
|
|
25
|
-
export declare const
|
|
36
|
+
export declare const UP_ARROW_KEY: string;
|
|
26
37
|
/**
|
|
27
38
|
* Code of the keyboard's key 'left arrow'
|
|
28
39
|
*/
|
|
29
|
-
export declare const
|
|
40
|
+
export declare const UP_ARROW_CODE: string;
|
|
41
|
+
/**
|
|
42
|
+
* Key of the keyboard's key 'left arrow'
|
|
43
|
+
*/
|
|
44
|
+
export declare const DOWN_ARROW_KEY: string;
|
|
30
45
|
/**
|
|
31
|
-
*
|
|
32
|
-
* Used in unit tests only
|
|
46
|
+
* Code of the keyboard's key 'left arrow'
|
|
33
47
|
*/
|
|
34
|
-
export declare const
|
|
48
|
+
export declare const DOWN_ARROW_CODE: string;
|
|
35
49
|
/**
|
|
36
50
|
* Key of the keyboard's key `space`
|
|
37
51
|
*/
|
|
38
|
-
export declare const SPACE_KEY
|
|
52
|
+
export declare const SPACE_KEY: string;
|
|
39
53
|
/**
|
|
40
54
|
* Code of the keyboard's key `space`
|
|
41
55
|
*/
|
|
42
|
-
export declare const SPACE_CODE
|
|
56
|
+
export declare const SPACE_CODE: string;
|
|
57
|
+
/**
|
|
58
|
+
* Const to represent the right direction
|
|
59
|
+
*/
|
|
60
|
+
export declare const DIRECTION_RIGHT: string;
|
|
43
61
|
/**
|
|
44
|
-
*
|
|
45
|
-
* Used in unit tests only
|
|
62
|
+
* Const to represent the left direction
|
|
46
63
|
*/
|
|
47
|
-
export declare const
|
|
64
|
+
export declare const DIRECTION_LEFT: string;
|
|
48
65
|
/**
|
|
49
|
-
*
|
|
66
|
+
* Keycode of the main mouse button
|
|
50
67
|
*/
|
|
51
68
|
export declare const MOUSE_MAIN_BUTTON_CLICK = 0;
|
|
52
69
|
/**
|
|
@@ -61,11 +78,3 @@ export declare const PREV = -1;
|
|
|
61
78
|
* Const NOTHING to represents a situation when it isn't both NEXT and PREV
|
|
62
79
|
*/
|
|
63
80
|
export declare const NOTHING = 0;
|
|
64
|
-
/**
|
|
65
|
-
* Const to represent the right direction
|
|
66
|
-
*/
|
|
67
|
-
export declare const DIRECTION_RIGHT = "right";
|
|
68
|
-
/**
|
|
69
|
-
* Const to represent the left direction
|
|
70
|
-
*/
|
|
71
|
-
export declare const DIRECTION_LEFT = "left";
|
package/package.json
CHANGED
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ks89/angular-modal-gallery",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "9.0.1",
|
|
4
4
|
"description": "Image gallery for Angular",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Stefano Cappa",
|
|
7
7
|
"engines": {
|
|
8
|
-
"node": ">=
|
|
8
|
+
"node": ">=16.3.0",
|
|
9
9
|
"npm": ">=7.16.0"
|
|
10
10
|
},
|
|
11
|
-
"homepage": "https://ks89.github.io/angular-modal-gallery-
|
|
11
|
+
"homepage": "https://ks89.github.io/angular-modal-gallery-2021-v9.github.io/",
|
|
12
12
|
"dependencies": {
|
|
13
|
-
"tslib": ">=2.
|
|
13
|
+
"tslib": ">=2.3.0"
|
|
14
14
|
},
|
|
15
15
|
"peerDependencies": {
|
|
16
|
-
"@angular/platform-browser": ">=
|
|
17
|
-
"@angular/common": ">=
|
|
18
|
-
"@angular/core": ">=
|
|
19
|
-
"@angular/cdk": ">=
|
|
16
|
+
"@angular/platform-browser": ">=13.0.0",
|
|
17
|
+
"@angular/common": ">=13.0.0",
|
|
18
|
+
"@angular/core": ">=13.0.0",
|
|
19
|
+
"@angular/cdk": ">=13.0.0",
|
|
20
20
|
"hammerjs": ">=2.0.8",
|
|
21
21
|
"mousetrap": ">=1.6.5",
|
|
22
|
-
"rxjs": ">=
|
|
22
|
+
"rxjs": ">=7.4.0"
|
|
23
23
|
},
|
|
24
24
|
"keywords": [
|
|
25
25
|
"angular-modal-gallery",
|
|
@@ -54,11 +54,24 @@
|
|
|
54
54
|
"bugs": {
|
|
55
55
|
"url": "https://github.com/Ks89/angular-modal-gallery/issues"
|
|
56
56
|
},
|
|
57
|
-
"
|
|
58
|
-
"
|
|
59
|
-
"
|
|
60
|
-
"
|
|
61
|
-
"fesm2015": "fesm2015/ks89-angular-modal-gallery.
|
|
57
|
+
"module": "fesm2015/ks89-angular-modal-gallery.mjs",
|
|
58
|
+
"es2020": "fesm2020/ks89-angular-modal-gallery.mjs",
|
|
59
|
+
"esm2020": "esm2020/ks89-angular-modal-gallery.mjs",
|
|
60
|
+
"fesm2020": "fesm2020/ks89-angular-modal-gallery.mjs",
|
|
61
|
+
"fesm2015": "fesm2015/ks89-angular-modal-gallery.mjs",
|
|
62
62
|
"typings": "ks89-angular-modal-gallery.d.ts",
|
|
63
|
+
"exports": {
|
|
64
|
+
"./package.json": {
|
|
65
|
+
"default": "./package.json"
|
|
66
|
+
},
|
|
67
|
+
".": {
|
|
68
|
+
"types": "./ks89-angular-modal-gallery.d.ts",
|
|
69
|
+
"esm2020": "./esm2020/ks89-angular-modal-gallery.mjs",
|
|
70
|
+
"es2020": "./fesm2020/ks89-angular-modal-gallery.mjs",
|
|
71
|
+
"es2015": "./fesm2015/ks89-angular-modal-gallery.mjs",
|
|
72
|
+
"node": "./fesm2015/ks89-angular-modal-gallery.mjs",
|
|
73
|
+
"default": "./fesm2020/ks89-angular-modal-gallery.mjs"
|
|
74
|
+
}
|
|
75
|
+
},
|
|
63
76
|
"sideEffects": false
|
|
64
77
|
}
|
package/public-api.d.ts
CHANGED
|
@@ -16,14 +16,14 @@ export { PlayConfig } from './lib/model/play-config.interface';
|
|
|
16
16
|
export { CarouselImageConfig } from './lib/model/carousel-image-config.interface';
|
|
17
17
|
export { Size } from './lib/model/size.interface';
|
|
18
18
|
export { ButtonsConfig, ButtonsStrategy, ButtonType, ButtonEvent } from './lib/model/buttons-config.interface';
|
|
19
|
-
export {
|
|
19
|
+
export { ModalLibConfig, PlainLibConfig, CarouselLibConfig } from './lib/model/lib-config.interface';
|
|
20
20
|
export { ModalGalleryConfig } from './lib/model/modal-gallery-config.interface';
|
|
21
21
|
export { CurrentImageConfig } from './lib/model/current-image-config.interface';
|
|
22
22
|
export { LoadingConfig, LoadingType } from './lib/model/loading-config.interface';
|
|
23
23
|
export { InteractionEvent } from './lib/model/interaction-event.interface';
|
|
24
24
|
export { KS_DEFAULT_ACCESSIBILITY_CONFIG } from './lib/components/accessibility-default';
|
|
25
25
|
export { KS_DEFAULT_BTN_FULL_SCREEN, KS_DEFAULT_BTN_CLOSE, KS_DEFAULT_BTN_DELETE, KS_DEFAULT_BTN_DOWNLOAD, KS_DEFAULT_BTN_EXTURL, KS_DEFAULT_SIZE } from './lib/components/upper-buttons/upper-buttons-default';
|
|
26
|
-
export { PlainGalleryConfig, PlainGalleryLayout, LineLayout, GridLayout,
|
|
26
|
+
export { PlainGalleryConfig, PlainGalleryLayout, LineLayout, GridLayout, PlainGalleryStrategy, BreakConfig } from './lib/model/plain-gallery-config.interface';
|
|
27
27
|
export { ModalGalleryComponent } from './lib/components/modal-gallery/modal-gallery.component';
|
|
28
28
|
export { PlainGalleryComponent } from './lib/components/plain-gallery/plain-gallery.component';
|
|
29
29
|
export { CarouselComponent } from './lib/components/carousel/carousel.component';
|