@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,104 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
The MIT License (MIT)
|
|
3
|
-
|
|
4
|
-
Copyright (c) 2017-2024 Stefano Cappa (Ks89)
|
|
5
|
-
|
|
6
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
7
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
8
|
-
in the Software without restriction, including without limitation the rights
|
|
9
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
10
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
11
|
-
furnished to do so, subject to the following conditions:
|
|
12
|
-
|
|
13
|
-
The above copyright notice and this permission notice shall be included in all
|
|
14
|
-
copies or substantial portions of the Software.
|
|
15
|
-
|
|
16
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
17
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
18
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NON INFRINGEMENT. IN NO EVENT SHALL THE
|
|
19
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
20
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
21
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
22
|
-
SOFTWARE.
|
|
23
|
-
*/
|
|
24
|
-
/**
|
|
25
|
-
* Key of the keyboard's key `enter`
|
|
26
|
-
*/
|
|
27
|
-
export const ENTER_KEY = 'Enter';
|
|
28
|
-
/**
|
|
29
|
-
* Code of the keyboard's key `enter`
|
|
30
|
-
*/
|
|
31
|
-
export const ENTER_CODE = 'Enter';
|
|
32
|
-
/**
|
|
33
|
-
* Key of the keyboard's key `esc`
|
|
34
|
-
*/
|
|
35
|
-
export const ESC_KEY = 'Escape';
|
|
36
|
-
/**
|
|
37
|
-
* Code of the keyboard's key `esc`
|
|
38
|
-
*/
|
|
39
|
-
export const ESC_CODE = 'Escape';
|
|
40
|
-
/**
|
|
41
|
-
* Key of the keyboard's key 'right arrow'
|
|
42
|
-
*/
|
|
43
|
-
export const RIGHT_ARROW_KEY = 'ArrowRight';
|
|
44
|
-
/**
|
|
45
|
-
* Code of the keyboard's key 'right arrow'
|
|
46
|
-
*/
|
|
47
|
-
export const RIGHT_ARROW_CODE = 'ArrowRight';
|
|
48
|
-
/**
|
|
49
|
-
* Key of the keyboard's key 'left arrow'
|
|
50
|
-
*/
|
|
51
|
-
export const LEFT_ARROW_KEY = 'ArrowLeft';
|
|
52
|
-
/**
|
|
53
|
-
* Code of the keyboard's key 'left arrow'
|
|
54
|
-
*/
|
|
55
|
-
export const LEFT_ARROW_CODE = 'ArrowLeft';
|
|
56
|
-
/**
|
|
57
|
-
* Key of the keyboard's key 'left arrow'
|
|
58
|
-
*/
|
|
59
|
-
export const UP_ARROW_KEY = 'ArrowUp';
|
|
60
|
-
/**
|
|
61
|
-
* Code of the keyboard's key 'left arrow'
|
|
62
|
-
*/
|
|
63
|
-
export const UP_ARROW_CODE = 'ArrowUp';
|
|
64
|
-
/**
|
|
65
|
-
* Key of the keyboard's key 'left arrow'
|
|
66
|
-
*/
|
|
67
|
-
export const DOWN_ARROW_KEY = 'ArrowDown';
|
|
68
|
-
/**
|
|
69
|
-
* Code of the keyboard's key 'left arrow'
|
|
70
|
-
*/
|
|
71
|
-
export const DOWN_ARROW_CODE = 'ArrowDown';
|
|
72
|
-
/**
|
|
73
|
-
* Key of the keyboard's key `space`
|
|
74
|
-
*/
|
|
75
|
-
export const SPACE_KEY = '';
|
|
76
|
-
/**
|
|
77
|
-
* Code of the keyboard's key `space`
|
|
78
|
-
*/
|
|
79
|
-
export const SPACE_CODE = 'Space';
|
|
80
|
-
/**
|
|
81
|
-
* Const to represent the right direction
|
|
82
|
-
*/
|
|
83
|
-
export const DIRECTION_RIGHT = 'right';
|
|
84
|
-
/**
|
|
85
|
-
* Const to represent the left direction
|
|
86
|
-
*/
|
|
87
|
-
export const DIRECTION_LEFT = 'left';
|
|
88
|
-
/**
|
|
89
|
-
* Keycode of the main mouse button
|
|
90
|
-
*/
|
|
91
|
-
export const MOUSE_MAIN_BUTTON_CLICK = 0;
|
|
92
|
-
/**
|
|
93
|
-
* Const NEXT
|
|
94
|
-
*/
|
|
95
|
-
export const NEXT = 1;
|
|
96
|
-
/**
|
|
97
|
-
* Const PREV
|
|
98
|
-
*/
|
|
99
|
-
export const PREV = -1;
|
|
100
|
-
/**
|
|
101
|
-
* Const NOTHING to represents a situation when it isn't both NEXT and PREV
|
|
102
|
-
*/
|
|
103
|
-
export const NOTHING = 0;
|
|
104
|
-
//# sourceMappingUR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biAqL1xuZXhwb3J0IGNvbnN0IERJUkVDVElPTl9MRUZUOiBzdHJpbmcgPSAnbGVmdCc7XG5cblxuLyoqXG4gKiBLZXljb2RlIG9mIHRoZSBtYWluIG1vdXNlIGJ1dHRvblxuICovXG5leHBvcnQgY29uc3QgTU9VU0VfTUFJTl9CVVRUT05fQ0xJQ0sgPSAwO1xuXG4vKipcbiAqIENvbnN0IE5FWFRcbiAqL1xuZXhwb3J0IGNvbnN0IE5FWFQgPSAxO1xuLyoqXG4gKiBDb25zdCBQUkVWXG4gKi9cbmV4cG9ydCBjb25zdCBQUkVWID0gLTE7XG4vKipcbiAqIENvbnN0IE5PVEhJTkcgdG8gcmVwcmVzZW50cyBhIHNpdHVhdGlvbiB3aGVuIGl0IGlzbid0IGJvdGggTkVYVCBhbmQgUFJFVlxuICovXG5leHBvcnQgY29uc3QgTk9USElORyA9IDA7XG4iXX0=
|
package/esm2022/public-api.mjs
DELETED
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
The MIT License (MIT)
|
|
3
|
-
|
|
4
|
-
Copyright (c) 2017-2024 Stefano Cappa (Ks89)
|
|
5
|
-
|
|
6
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
7
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
8
|
-
in the Software without restriction, including without limitation the rights
|
|
9
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
10
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
11
|
-
furnished to do so, subject to the following conditions:
|
|
12
|
-
|
|
13
|
-
The above copyright notice and this permission notice shall be included in all
|
|
14
|
-
copies or substantial portions of the Software.
|
|
15
|
-
|
|
16
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
17
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
18
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NON INFRINGEMENT. IN NO EVENT SHALL THE
|
|
19
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
20
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
21
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
22
|
-
SOFTWARE.
|
|
23
|
-
*/
|
|
24
|
-
/**
|
|
25
|
-
* Index file to export all interfaces, enums, classes and so on.
|
|
26
|
-
* This file represents the public apis.
|
|
27
|
-
*/
|
|
28
|
-
export { GalleryModule } from './lib/modal-gallery.module';
|
|
29
|
-
export { Action } from './lib/model/action.enum';
|
|
30
|
-
export { Image, ImageEvent, ImageModalEvent } from './lib/model/image.class';
|
|
31
|
-
export { DescriptionStrategy } from './lib/model/description.interface';
|
|
32
|
-
export { ButtonsStrategy, ButtonType } from './lib/model/buttons-config.interface';
|
|
33
|
-
export { LoadingType } from './lib/model/loading-config.interface';
|
|
34
|
-
export { KS_DEFAULT_ACCESSIBILITY_CONFIG } from './lib/components/accessibility-default';
|
|
35
|
-
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';
|
|
36
|
-
export { LineLayout, GridLayout, PlainGalleryStrategy } from './lib/model/plain-gallery-config.interface';
|
|
37
|
-
export { ModalGalleryComponent } from './lib/components/modal-gallery/modal-gallery.component';
|
|
38
|
-
export { PlainGalleryComponent } from './lib/components/plain-gallery/plain-gallery.component';
|
|
39
|
-
export { CarouselComponent } from './lib/components/carousel/carousel.component';
|
|
40
|
-
export { ModalGalleryService } from './lib/components/modal-gallery/modal-gallery.service';
|
|
41
|
-
export { ModalGalleryRef } from './lib/components/modal-gallery/modal-g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**
|
|
3
|
-
* Provides some useful methods to add accessibility features to subclasses.
|
|
4
|
-
* In particular, it exposes a method to handle navigation event with both Keyboard and Mouse
|
|
5
|
-
* and another with also the direction (right or left).
|
|
6
|
-
*/
|
|
7
|
-
export declare class AccessibleComponent {
|
|
8
|
-
constructor();
|
|
9
|
-
/**
|
|
10
|
-
* Method to handle navigation events with both Keyboard and Mouse.
|
|
11
|
-
* @param string direction of the navigation that can be either 'next' or 'prev'
|
|
12
|
-
* @param KeyboardEvent | MouseEvent event payload
|
|
13
|
-
* @returns number -1 for PREV, 1 for NEXT and 0 for NOTHING
|
|
14
|
-
*/
|
|
15
|
-
handleNavigationEvent(direction: string, event: KeyboardEvent | MouseEvent): number;
|
|
16
|
-
/**
|
|
17
|
-
* Method to handle events over an image, for instance a keypress with the Keyboard or a Mouse click.
|
|
18
|
-
* @param event KeyboardEvent | MouseEvent payload
|
|
19
|
-
* @returns number 1 for NEXT and 0 for NOTHING
|
|
20
|
-
*/
|
|
21
|
-
handleImageEvent(event: KeyboardEvent | MouseEvent): number;
|
|
22
|
-
/**
|
|
23
|
-
* Private method to handle keyboard events over an image.
|
|
24
|
-
* @param event KeyboardEvent payload
|
|
25
|
-
* @returns number 1 for NEXT and 0 for NOTHING
|
|
26
|
-
*/
|
|
27
|
-
private handleImageKeyboardEvent;
|
|
28
|
-
/**
|
|
29
|
-
* Private method to handle mouse events over an image.
|
|
30
|
-
* @param MouseEvent event payload
|
|
31
|
-
* @returns number 1 for NEXT and 0 for NOTHING
|
|
32
|
-
*/
|
|
33
|
-
private handleImageMouseEvent;
|
|
34
|
-
/**
|
|
35
|
-
* Method to handle events over an image, for instance a keypress with the Keyboard or a Mouse click.
|
|
36
|
-
* @param string direction of the navigation that can be either 'next' or 'prev'
|
|
37
|
-
* @param KeyboardEvent event payload
|
|
38
|
-
* @returns number -1 for PREV, 1 for NEXT and 0 for NOTHING
|
|
39
|
-
*/
|
|
40
|
-
private handleKeyboardNavigationEvent;
|
|
41
|
-
/**
|
|
42
|
-
* Method to handle events over an image, for instance a keypress with the Keyboard or a Mouse click.
|
|
43
|
-
* @param string direction of the navigation that can be either 'next' or 'prev'
|
|
44
|
-
* @param MouseEvent event payload
|
|
45
|
-
* @returns number -1 for PREV, 1 for NEXT and 0 for NOTHING
|
|
46
|
-
*/
|
|
47
|
-
private handleMouseNavigationEvent;
|
|
48
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<AccessibleComponent, never>;
|
|
49
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<AccessibleComponent, "ks-accessible", never, {}, {}, never, never, false, never>;
|
|
50
|
-
}
|
|
@@ -1,195 +0,0 @@
|
|
|
1
|
-
import { ChangeDetectorRef, EventEmitter, OnChanges, OnDestroy, OnInit, SimpleChanges } from '@angular/core';
|
|
2
|
-
import { DomSanitizer, SafeResourceUrl, SafeStyle } from '@angular/platform-browser';
|
|
3
|
-
import { BreakpointObserver } from '@angular/cdk/layout';
|
|
4
|
-
import { AccessibleComponent } from '../../accessible.component';
|
|
5
|
-
import { AccessibilityConfig } from '../../../model/accessibility.interface';
|
|
6
|
-
import { Image, ImageEvent } from '../../../model/image.class';
|
|
7
|
-
import { InternalLibImage } from '../../../model/image-internal.class';
|
|
8
|
-
import { CarouselPreviewConfig } from '../../../model/carousel-preview-config.interface';
|
|
9
|
-
import { CarouselConfig } from '../../../model/carousel-config.interface';
|
|
10
|
-
import { Action } from '../../../model/action.enum';
|
|
11
|
-
import { ConfigService } from '../../../services/config.service';
|
|
12
|
-
import * as i0 from "@angular/core";
|
|
13
|
-
/**
|
|
14
|
-
* Component with image previews for carousel
|
|
15
|
-
*/
|
|
16
|
-
export declare class CarouselPreviewsComponent extends AccessibleComponent implements OnInit, OnChanges, OnDestroy {
|
|
17
|
-
private ref;
|
|
18
|
-
private breakpointObserver;
|
|
19
|
-
private sanitizer;
|
|
20
|
-
private configService;
|
|
21
|
-
/**
|
|
22
|
-
* Variable to change the max-width of the host component
|
|
23
|
-
*/
|
|
24
|
-
hostMaxWidth: string;
|
|
25
|
-
/**
|
|
26
|
-
* Variable to set aria-label of the host component
|
|
27
|
-
*/
|
|
28
|
-
ariaLabel: string;
|
|
29
|
-
/**
|
|
30
|
-
* TODO write doc
|
|
31
|
-
*/
|
|
32
|
-
id: number;
|
|
33
|
-
/**
|
|
34
|
-
* Object of type `InternalLibImage` that represent the visible image.
|
|
35
|
-
*/
|
|
36
|
-
currentImage: InternalLibImage;
|
|
37
|
-
/**
|
|
38
|
-
* Array of `InternalLibImage` that represent the model of this library with all images,
|
|
39
|
-
* thumbs and so on.
|
|
40
|
-
*/
|
|
41
|
-
images: InternalLibImage[];
|
|
42
|
-
/**
|
|
43
|
-
* Output to emit the clicked preview. The payload contains the `InternalLibImage` associated to the clicked preview.
|
|
44
|
-
*/
|
|
45
|
-
clickPreview: EventEmitter<ImageEvent>;
|
|
46
|
-
/**
|
|
47
|
-
* Object of type `CarouselConfig` to init CarouselComponent's features.
|
|
48
|
-
* For instance, it contains parameters to change the style, how it navigates and so on.
|
|
49
|
-
*/
|
|
50
|
-
carouselConfig: CarouselConfig | undefined;
|
|
51
|
-
/**
|
|
52
|
-
* Object of type `CarouselPreviewConfig` to init PreviewsComponent's features.
|
|
53
|
-
* For instance, it contains a param to show/hide this component, sizes.
|
|
54
|
-
*/
|
|
55
|
-
previewConfig: CarouselPreviewConfig | undefined;
|
|
56
|
-
/**
|
|
57
|
-
* Object of type `AccessibilityConfig` to init custom accessibility features.
|
|
58
|
-
* For instance, it contains titles, alt texts, aria-labels and so on.
|
|
59
|
-
*/
|
|
60
|
-
accessibilityConfig: AccessibilityConfig | undefined;
|
|
61
|
-
/**
|
|
62
|
-
* Enum of type `Action` that represents a mouse click on a button.
|
|
63
|
-
* Declared here to be used inside the template.
|
|
64
|
-
*/
|
|
65
|
-
clickAction: Action;
|
|
66
|
-
/**
|
|
67
|
-
* Enum of type `Action` that represents a keyboard action.
|
|
68
|
-
* Declared here to be used inside the template.
|
|
69
|
-
*/
|
|
70
|
-
keyboardAction: Action;
|
|
71
|
-
/**
|
|
72
|
-
* Array of `InternalLibImage` exposed to the template. This field is initialized
|
|
73
|
-
* applying transformations, default values and so on to the input of the same type.
|
|
74
|
-
*/
|
|
75
|
-
previews: InternalLibImage[];
|
|
76
|
-
/**
|
|
77
|
-
* Variable with the preview's maxHeight
|
|
78
|
-
*/
|
|
79
|
-
previewMaxHeight: string;
|
|
80
|
-
/**
|
|
81
|
-
* Start index (inclusive) of the input images used to display previews.
|
|
82
|
-
*/
|
|
83
|
-
start: number;
|
|
84
|
-
/**
|
|
85
|
-
* End index (non inclusive) of the input images used to display previews.
|
|
86
|
-
*/
|
|
87
|
-
end: number;
|
|
88
|
-
private readonly breakpointSubscription;
|
|
89
|
-
constructor(ref: ChangeDetectorRef, breakpointObserver: BreakpointObserver, sanitizer: DomSanitizer, configService: ConfigService);
|
|
90
|
-
/**
|
|
91
|
-
* Method to update the height of previews, passing the desired height as input.
|
|
92
|
-
* @param configBreakpointHeight is a number that represent the desired height to set.
|
|
93
|
-
*/
|
|
94
|
-
private updateHeight;
|
|
95
|
-
/**
|
|
96
|
-
* Method ´ngOnInit´ to build `configPreview` applying a default value and also to
|
|
97
|
-
* init the `previews` array.
|
|
98
|
-
* This is an angular lifecycle hook, so its called automatically by Angular itself.
|
|
99
|
-
* In particular, it's called only one time!!!
|
|
100
|
-
*/
|
|
101
|
-
ngOnInit(): void;
|
|
102
|
-
/**
|
|
103
|
-
* Method to check if an image is active (i.e. a preview image).
|
|
104
|
-
* @param InternalLibImage preview is an image to check if it's active or not
|
|
105
|
-
* @returns boolean true if is active, false otherwise
|
|
106
|
-
*/
|
|
107
|
-
isActive(preview: InternalLibImage): boolean;
|
|
108
|
-
/**
|
|
109
|
-
* Method ´ngOnChanges´ to update `previews` array.
|
|
110
|
-
* Also, both `start` and `end` local variables will be updated accordingly.
|
|
111
|
-
* This is an angular lifecycle hook, so its called automatically by Angular itself.
|
|
112
|
-
* In particular, it's called when any data-bound property of a directive changes!!!
|
|
113
|
-
*/
|
|
114
|
-
ngOnChanges(changes: SimpleChanges): void;
|
|
115
|
-
/**
|
|
116
|
-
* Method called by events from both keyboard and mouse on a preview.
|
|
117
|
-
* This will trigger the `clickpreview` output with the input preview as its payload.
|
|
118
|
-
* @param InternalLibImage preview that triggered this method
|
|
119
|
-
* @param KeyboardEvent | MouseEvent event payload
|
|
120
|
-
* @param Action that triggered this event (Action.NORMAL by default)
|
|
121
|
-
*/
|
|
122
|
-
onImageEvent(preview: InternalLibImage, event: KeyboardEvent | MouseEvent, action?: Action): void;
|
|
123
|
-
/**
|
|
124
|
-
* Method called by events from both keyboard and mouse on a navigation arrow.
|
|
125
|
-
* @param string direction of the navigation that can be either 'next' or 'prev'
|
|
126
|
-
* @param KeyboardEvent | MouseEvent event payload
|
|
127
|
-
*/
|
|
128
|
-
onNavigationEvent(direction: string, event: KeyboardEvent | MouseEvent): void;
|
|
129
|
-
/**
|
|
130
|
-
* Method to get aria-label text for a preview image.
|
|
131
|
-
* @param Image is the preview
|
|
132
|
-
*/
|
|
133
|
-
getAriaLabel(preview: Image): string;
|
|
134
|
-
/**
|
|
135
|
-
* Method to get title text for a preview image.
|
|
136
|
-
* @param Image is the preview
|
|
137
|
-
*/
|
|
138
|
-
getTitle(preview: Image): string;
|
|
139
|
-
/**
|
|
140
|
-
* Method to get alt text for a preview image.
|
|
141
|
-
* @param Image is the preview
|
|
142
|
-
*/
|
|
143
|
-
getAlt(preview: Image): string;
|
|
144
|
-
/**
|
|
145
|
-
* Method used in the template to track ids in ngFor.
|
|
146
|
-
* @param number index of the array
|
|
147
|
-
* @param Image item of the array
|
|
148
|
-
* @returns number the id of the item
|
|
149
|
-
*/
|
|
150
|
-
trackById(index: number, item: Image): number;
|
|
151
|
-
/**
|
|
152
|
-
* Method used in template to sanitize an url when you need legacyIE11Mode.
|
|
153
|
-
* In this way you can set an url as background of a div.
|
|
154
|
-
* @param unsafeStyle is a string or a SafeResourceUrl that represents the url to sanitize.
|
|
155
|
-
* @param unsafeStyleFallback is a string or a SafeResourceUrl that represents the fallback url to sanitize.
|
|
156
|
-
* @returns a SafeStyle object that can be used in template without problems.
|
|
157
|
-
*/
|
|
158
|
-
sanitizeUrlBgStyle(unsafeStyle: string | SafeResourceUrl, unsafeStyleFallback: string | SafeResourceUrl): SafeStyle;
|
|
159
|
-
/**
|
|
160
|
-
* Method to cleanup resources. In fact, it cleans breakpointSubscription.
|
|
161
|
-
* This is an angular lifecycle hook that is called when this component is destroyed.
|
|
162
|
-
*/
|
|
163
|
-
ngOnDestroy(): void;
|
|
164
|
-
/**
|
|
165
|
-
* Private method to init previews based on the currentImage and the full array of images.
|
|
166
|
-
* The current image in mandatory to show always the current preview (as highlighted).
|
|
167
|
-
* @param InternalLibImage currentImage to decide how to show previews, because I always want to see the current image as highlighted
|
|
168
|
-
* @param InternalLibImage[] images is the array of all images.
|
|
169
|
-
*/
|
|
170
|
-
private initPreviews;
|
|
171
|
-
/**
|
|
172
|
-
* Private method to init both `start` and `end` to the beginning.
|
|
173
|
-
*/
|
|
174
|
-
private setBeginningIndexesPreviews;
|
|
175
|
-
/**
|
|
176
|
-
* Private method to init both `start` and `end` to the end.
|
|
177
|
-
*/
|
|
178
|
-
private setEndIndexesPreviews;
|
|
179
|
-
/**
|
|
180
|
-
* Private method to update the visible previews navigating to the right (next).
|
|
181
|
-
*/
|
|
182
|
-
private next;
|
|
183
|
-
/**
|
|
184
|
-
* Private method to update the visible previews navigating to the left (previous).
|
|
185
|
-
*/
|
|
186
|
-
private previous;
|
|
187
|
-
/**
|
|
188
|
-
* Private method to block/permit sliding between previews.
|
|
189
|
-
* @param number boundaryIndex is the first or the last index of `images` input array
|
|
190
|
-
* @returns boolean if true block sliding, otherwise not
|
|
191
|
-
*/
|
|
192
|
-
private isPreventSliding;
|
|
193
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<CarouselPreviewsComponent, 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
|
-
}
|