@ks89/angular-modal-gallery 12.0.0 → 14.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.
- package/CHANGELOG.md +26 -0
- package/CONTRIBUTING.md +8 -11
- package/LICENSE +1 -1
- package/README.md +10 -6
- package/fesm2022/ks89-angular-modal-gallery.mjs +832 -909
- package/fesm2022/ks89-angular-modal-gallery.mjs.map +1 -1
- package/index.d.ts +2528 -3
- package/package.json +8 -10
- package/esm2022/ks89-angular-modal-gallery.mjs +0 -5
- package/esm2022/lib/components/accessibility-default.mjs +0 -41
- package/esm2022/lib/components/accessible.component.mjs +0 -130
- package/esm2022/lib/components/carousel/carousel-previews/carousel-previews.component.mjs +0 -456
- package/esm2022/lib/components/carousel/carousel.component.mjs +0 -738
- package/esm2022/lib/components/components.mjs +0 -50
- package/esm2022/lib/components/current-image/current-image.component.mjs +0 -607
- package/esm2022/lib/components/current-image/loading-spinner/loading-spinner.component.mjs +0 -80
- package/esm2022/lib/components/dots/dots.component.mjs +0 -124
- package/esm2022/lib/components/modal-gallery/attach-to-overlay.service.mjs +0 -42
- package/esm2022/lib/components/modal-gallery/modal-gallery-ref.mjs +0 -103
- package/esm2022/lib/components/modal-gallery/modal-gallery.component.mjs +0 -499
- package/esm2022/lib/components/modal-gallery/modal-gallery.service.mjs +0 -168
- package/esm2022/lib/components/modal-gallery/modal-gallery.tokens.mjs +0 -26
- package/esm2022/lib/components/plain-gallery/plain-gallery.component.mjs +0 -249
- package/esm2022/lib/components/previews/previews.component.mjs +0 -263
- package/esm2022/lib/components/upper-buttons/upper-buttons-default.mjs +0 -76
- package/esm2022/lib/components/upper-buttons/upper-buttons.component.mjs +0 -243
- package/esm2022/lib/directives/a-tag-bg-image.directive.mjs +0 -78
- package/esm2022/lib/directives/click-outside.directive.mjs +0 -91
- package/esm2022/lib/directives/description.directive.mjs +0 -98
- package/esm2022/lib/directives/direction.directive.mjs +0 -73
- package/esm2022/lib/directives/directives.mjs +0 -51
- package/esm2022/lib/directives/fallback-image.directive.mjs +0 -59
- package/esm2022/lib/directives/keyboard-navigation.directive.mjs +0 -64
- package/esm2022/lib/directives/margin.directive.mjs +0 -84
- package/esm2022/lib/directives/max-size.directive.mjs +0 -75
- package/esm2022/lib/directives/size.directive.mjs +0 -76
- package/esm2022/lib/directives/swipe.directive.mjs +0 -116
- package/esm2022/lib/directives/wrap.directive.mjs +0 -74
- package/esm2022/lib/modal-gallery.module.mjs +0 -88
- package/esm2022/lib/model/accessibility.interface.mjs +0 -25
- package/esm2022/lib/model/action.enum.mjs +0 -36
- package/esm2022/lib/model/buttons-config.interface.mjs +0 -62
- package/esm2022/lib/model/carousel-config.interface.mjs +0 -25
- package/esm2022/lib/model/carousel-image-config.interface.mjs +0 -25
- package/esm2022/lib/model/carousel-preview-config.interface.mjs +0 -25
- package/esm2022/lib/model/current-image-config.interface.mjs +0 -25
- package/esm2022/lib/model/description.interface.mjs +0 -33
- package/esm2022/lib/model/dots-config.interface.mjs +0 -25
- package/esm2022/lib/model/image-internal.class.mjs +0 -35
- package/esm2022/lib/model/image.class.mjs +0 -56
- package/esm2022/lib/model/interaction-event.interface.mjs +0 -2
- package/esm2022/lib/model/keyboard-config.interface.mjs +0 -25
- package/esm2022/lib/model/keyboard.enum.mjs +0 -35
- package/esm2022/lib/model/lib-config.interface.mjs +0 -25
- package/esm2022/lib/model/loading-config.interface.mjs +0 -37
- package/esm2022/lib/model/max-size.interface.mjs +0 -25
- package/esm2022/lib/model/modal-gallery-config.interface.mjs +0 -25
- package/esm2022/lib/model/plain-gallery-config.interface.mjs +0 -55
- package/esm2022/lib/model/play-config.interface.mjs +0 -25
- package/esm2022/lib/model/preview-config.interface.mjs +0 -25
- package/esm2022/lib/model/size.interface.mjs +0 -25
- package/esm2022/lib/model/slide-config.interface.mjs +0 -25
- package/esm2022/lib/services/config.service.mjs +0 -388
- package/esm2022/lib/services/id-validator.service.mjs +0 -71
- package/esm2022/lib/utils/image.util.mjs +0 -48
- package/esm2022/lib/utils/user-input.util.mjs +0 -104
- package/esm2022/public-api.mjs +0 -42
- package/lib/components/accessibility-default.d.ts +0 -5
- package/lib/components/accessible.component.d.ts +0 -50
- package/lib/components/carousel/carousel-previews/carousel-previews.component.d.ts +0 -195
- package/lib/components/carousel/carousel.component.d.ts +0 -276
- package/lib/components/components.d.ts +0 -15
- package/lib/components/current-image/current-image.component.d.ts +0 -282
- package/lib/components/current-image/loading-spinner/loading-spinner.component.d.ts +0 -55
- package/lib/components/dots/dots.component.d.ts +0 -81
- package/lib/components/modal-gallery/attach-to-overlay.service.d.ts +0 -20
- package/lib/components/modal-gallery/modal-gallery-ref.d.ts +0 -64
- package/lib/components/modal-gallery/modal-gallery.component.d.ts +0 -246
- package/lib/components/modal-gallery/modal-gallery.service.d.ts +0 -100
- package/lib/components/modal-gallery/modal-gallery.tokens.d.ts +0 -3
- package/lib/components/plain-gallery/plain-gallery.component.d.ts +0 -135
- package/lib/components/previews/previews.component.d.ts +0 -155
- package/lib/components/upper-buttons/upper-buttons-default.d.ts +0 -29
- package/lib/components/upper-buttons/upper-buttons.component.d.ts +0 -132
- package/lib/directives/a-tag-bg-image.directive.d.ts +0 -38
- package/lib/directives/click-outside.directive.d.ts +0 -24
- package/lib/directives/description.directive.d.ts +0 -33
- package/lib/directives/direction.directive.d.ts +0 -36
- package/lib/directives/directives.d.ts +0 -15
- package/lib/directives/fallback-image.directive.d.ts +0 -16
- package/lib/directives/keyboard-navigation.directive.d.ts +0 -24
- package/lib/directives/margin.directive.d.ts +0 -44
- package/lib/directives/max-size.directive.d.ts +0 -33
- package/lib/directives/size.directive.d.ts +0 -33
- package/lib/directives/swipe.directive.d.ts +0 -35
- package/lib/directives/wrap.directive.d.ts +0 -36
- package/lib/modal-gallery.module.d.ts +0 -32
- package/lib/model/accessibility.interface.d.ts +0 -40
- package/lib/model/action.enum.d.ts +0 -11
- package/lib/model/buttons-config.interface.d.ts +0 -57
- package/lib/model/carousel-config.interface.d.ts +0 -11
- package/lib/model/carousel-image-config.interface.d.ts +0 -8
- package/lib/model/carousel-preview-config.interface.d.ts +0 -22
- package/lib/model/current-image-config.interface.d.ts +0 -12
- package/lib/model/description.interface.d.ts +0 -39
- package/lib/model/dots-config.interface.d.ts +0 -6
- package/lib/model/image-internal.class.d.ts +0 -9
- package/lib/model/image.class.d.ts +0 -64
- package/lib/model/interaction-event.interface.d.ts +0 -6
- package/lib/model/keyboard-config.interface.d.ts +0 -8
- package/lib/model/keyboard.enum.d.ts +0 -13
- package/lib/model/lib-config.interface.d.ts +0 -39
- package/lib/model/loading-config.interface.d.ts +0 -19
- package/lib/model/max-size.interface.d.ts +0 -8
- package/lib/model/modal-gallery-config.interface.d.ts +0 -16
- package/lib/model/plain-gallery-config.interface.d.ts +0 -57
- package/lib/model/play-config.interface.d.ts +0 -8
- package/lib/model/preview-config.interface.d.ts +0 -12
- package/lib/model/size.interface.d.ts +0 -8
- package/lib/model/slide-config.interface.d.ts +0 -17
- package/lib/services/config.service.d.ts +0 -39
- package/lib/services/id-validator.service.d.ts +0 -25
- package/lib/utils/image.util.d.ts +0 -10
- package/lib/utils/user-input.util.d.ts +0 -80
- package/public-api.d.ts +0 -31
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { Image } from '../model/image.class';
|
|
2
|
-
/**
|
|
3
|
-
* Utility function to get the index of the input `image` from `arrayOfImages`
|
|
4
|
-
* @param image Image to get the index. The image 'id' must be a number >= 0
|
|
5
|
-
* @param arrayOfImages Image[] to search the image within it
|
|
6
|
-
* @returns number the index of the image. -1 if not found.
|
|
7
|
-
* @throws an Error if either image or arrayOfImages are not valid,
|
|
8
|
-
* or if the input image doesn't contain an 'id', or the 'id' is < 0
|
|
9
|
-
*/
|
|
10
|
-
export declare function getIndex(image: Image, arrayOfImages: Image[]): number;
|
|
@@ -1,80 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Key of the keyboard's key `enter`
|
|
3
|
-
*/
|
|
4
|
-
export declare const ENTER_KEY: string;
|
|
5
|
-
/**
|
|
6
|
-
* Code of the keyboard's key `enter`
|
|
7
|
-
*/
|
|
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;
|
|
17
|
-
/**
|
|
18
|
-
* Key of the keyboard's key 'right arrow'
|
|
19
|
-
*/
|
|
20
|
-
export declare const RIGHT_ARROW_KEY: string;
|
|
21
|
-
/**
|
|
22
|
-
* Code of the keyboard's key 'right arrow'
|
|
23
|
-
*/
|
|
24
|
-
export declare const RIGHT_ARROW_CODE: string;
|
|
25
|
-
/**
|
|
26
|
-
* Key of the keyboard's key 'left arrow'
|
|
27
|
-
*/
|
|
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;
|
|
33
|
-
/**
|
|
34
|
-
* Key of the keyboard's key 'left arrow'
|
|
35
|
-
*/
|
|
36
|
-
export declare const UP_ARROW_KEY: string;
|
|
37
|
-
/**
|
|
38
|
-
* Code of the keyboard's key 'left arrow'
|
|
39
|
-
*/
|
|
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;
|
|
45
|
-
/**
|
|
46
|
-
* Code of the keyboard's key 'left arrow'
|
|
47
|
-
*/
|
|
48
|
-
export declare const DOWN_ARROW_CODE: string;
|
|
49
|
-
/**
|
|
50
|
-
* Key of the keyboard's key `space`
|
|
51
|
-
*/
|
|
52
|
-
export declare const SPACE_KEY: string;
|
|
53
|
-
/**
|
|
54
|
-
* Code of the keyboard's key `space`
|
|
55
|
-
*/
|
|
56
|
-
export declare const SPACE_CODE: string;
|
|
57
|
-
/**
|
|
58
|
-
* Const to represent the right direction
|
|
59
|
-
*/
|
|
60
|
-
export declare const DIRECTION_RIGHT: string;
|
|
61
|
-
/**
|
|
62
|
-
* Const to represent the left direction
|
|
63
|
-
*/
|
|
64
|
-
export declare const DIRECTION_LEFT: string;
|
|
65
|
-
/**
|
|
66
|
-
* Keycode of the main mouse button
|
|
67
|
-
*/
|
|
68
|
-
export declare const MOUSE_MAIN_BUTTON_CLICK = 0;
|
|
69
|
-
/**
|
|
70
|
-
* Const NEXT
|
|
71
|
-
*/
|
|
72
|
-
export declare const NEXT = 1;
|
|
73
|
-
/**
|
|
74
|
-
* Const PREV
|
|
75
|
-
*/
|
|
76
|
-
export declare const PREV = -1;
|
|
77
|
-
/**
|
|
78
|
-
* Const NOTHING to represents a situation when it isn't both NEXT and PREV
|
|
79
|
-
*/
|
|
80
|
-
export declare const NOTHING = 0;
|
package/public-api.d.ts
DELETED
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Index file to export all interfaces, enums, classes and so on.
|
|
3
|
-
* This file represents the public apis.
|
|
4
|
-
*/
|
|
5
|
-
export { GalleryModule } from './lib/modal-gallery.module';
|
|
6
|
-
export { Action } from './lib/model/action.enum';
|
|
7
|
-
export { Image, PlainImage, ModalImage, ImageEvent, ImageModalEvent } from './lib/model/image.class';
|
|
8
|
-
export { Description, DescriptionStrategy } from './lib/model/description.interface';
|
|
9
|
-
export { KeyboardConfig } from './lib/model/keyboard-config.interface';
|
|
10
|
-
export { DotsConfig } from './lib/model/dots-config.interface';
|
|
11
|
-
export { PreviewConfig } from './lib/model/preview-config.interface';
|
|
12
|
-
export { AccessibilityConfig } from './lib/model/accessibility.interface';
|
|
13
|
-
export { BreakpointsConfig, CarouselPreviewConfig } from './lib/model/carousel-preview-config.interface';
|
|
14
|
-
export { CarouselConfig } from './lib/model/carousel-config.interface';
|
|
15
|
-
export { PlayConfig } from './lib/model/play-config.interface';
|
|
16
|
-
export { CarouselImageConfig } from './lib/model/carousel-image-config.interface';
|
|
17
|
-
export { Size } from './lib/model/size.interface';
|
|
18
|
-
export { ButtonsConfig, ButtonsStrategy, ButtonType, ButtonEvent } from './lib/model/buttons-config.interface';
|
|
19
|
-
export { ModalLibConfig, PlainLibConfig, CarouselLibConfig } from './lib/model/lib-config.interface';
|
|
20
|
-
export { ModalGalleryConfig } from './lib/model/modal-gallery-config.interface';
|
|
21
|
-
export { CurrentImageConfig } from './lib/model/current-image-config.interface';
|
|
22
|
-
export { LoadingConfig, LoadingType } from './lib/model/loading-config.interface';
|
|
23
|
-
export { InteractionEvent } from './lib/model/interaction-event.interface';
|
|
24
|
-
export { KS_DEFAULT_ACCESSIBILITY_CONFIG } from './lib/components/accessibility-default';
|
|
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, PlainGalleryStrategy, BreakConfig } from './lib/model/plain-gallery-config.interface';
|
|
27
|
-
export { ModalGalleryComponent } from './lib/components/modal-gallery/modal-gallery.component';
|
|
28
|
-
export { PlainGalleryComponent } from './lib/components/plain-gallery/plain-gallery.component';
|
|
29
|
-
export { CarouselComponent } from './lib/components/carousel/carousel.component';
|
|
30
|
-
export { ModalGalleryService } from './lib/components/modal-gallery/modal-gallery.service';
|
|
31
|
-
export { ModalGalleryRef } from './lib/components/modal-gallery/modal-gallery-ref';
|