@ks89/angular-modal-gallery 15.0.1 → 16.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 +53 -0
- package/CONTRIBUTING.md +3 -3
- package/README.md +94 -101
- package/fesm2022/ks89-angular-modal-gallery.mjs +392 -306
- package/fesm2022/ks89-angular-modal-gallery.mjs.map +1 -1
- package/package.json +36 -29
- package/types/ks89-angular-modal-gallery.d.ts +76 -94
package/package.json
CHANGED
|
@@ -1,50 +1,56 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ks89/angular-modal-gallery",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "16.0.0",
|
|
4
4
|
"description": "Image gallery for Angular",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Stefano Cappa",
|
|
7
7
|
"engines": {
|
|
8
|
-
"node": ">=
|
|
9
|
-
"npm": ">=
|
|
8
|
+
"node": ">=24.15.0",
|
|
9
|
+
"npm": ">=11.0.0"
|
|
10
10
|
},
|
|
11
|
-
"homepage": "https://ks89.github.io/angular-modal-gallery-
|
|
11
|
+
"homepage": "https://ks89.github.io/angular-modal-gallery-2026-v16.github.io/",
|
|
12
12
|
"dependencies": {
|
|
13
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": ">=22.0.0",
|
|
17
|
+
"@angular/common": ">=22.0.0",
|
|
18
|
+
"@angular/core": ">=22.0.0",
|
|
19
|
+
"@angular/cdk": ">=22.0.0",
|
|
20
20
|
"rxjs": ">=7.8.0"
|
|
21
21
|
},
|
|
22
22
|
"sideEffects": false,
|
|
23
23
|
"keywords": [
|
|
24
|
-
"angular
|
|
25
|
-
"ngx-gallery",
|
|
26
|
-
"angular2-gallery",
|
|
27
|
-
"angular2-modal-gallery",
|
|
28
|
-
"angular2-modal",
|
|
24
|
+
"angular",
|
|
29
25
|
"angular-gallery",
|
|
30
|
-
"
|
|
26
|
+
"angular-image-gallery",
|
|
27
|
+
"angular-photo-gallery",
|
|
28
|
+
"angular-modal-gallery",
|
|
29
|
+
"angular-carousel",
|
|
30
|
+
"angular-image-carousel",
|
|
31
|
+
"angular-lightbox",
|
|
31
32
|
"angular-modal",
|
|
32
|
-
"ngx-modal-gallery",
|
|
33
|
-
"popup",
|
|
34
|
-
"plain",
|
|
35
|
-
"plain-gallery",
|
|
36
33
|
"gallery",
|
|
34
|
+
"image-gallery",
|
|
35
|
+
"photo-gallery",
|
|
36
|
+
"modal-gallery",
|
|
37
|
+
"lightbox",
|
|
38
|
+
"image-lightbox",
|
|
39
|
+
"photo-lightbox",
|
|
37
40
|
"carousel",
|
|
38
|
-
"
|
|
39
|
-
"
|
|
40
|
-
"
|
|
41
|
-
"
|
|
42
|
-
"
|
|
43
|
-
"
|
|
44
|
-
"
|
|
45
|
-
"
|
|
46
|
-
"
|
|
47
|
-
"
|
|
41
|
+
"image-carousel",
|
|
42
|
+
"photo-carousel",
|
|
43
|
+
"thumbnail-gallery",
|
|
44
|
+
"responsive-gallery",
|
|
45
|
+
"touch-gallery",
|
|
46
|
+
"swipe-gallery",
|
|
47
|
+
"mobile-gallery",
|
|
48
|
+
"fullscreen-gallery",
|
|
49
|
+
"accessible-gallery",
|
|
50
|
+
"a11y",
|
|
51
|
+
"ssr",
|
|
52
|
+
"standalone-components",
|
|
53
|
+
"ngx-gallery"
|
|
48
54
|
],
|
|
49
55
|
"repository": {
|
|
50
56
|
"type": "git",
|
|
@@ -63,5 +69,6 @@
|
|
|
63
69
|
"types": "./types/ks89-angular-modal-gallery.d.ts",
|
|
64
70
|
"default": "./fesm2022/ks89-angular-modal-gallery.mjs"
|
|
65
71
|
}
|
|
66
|
-
}
|
|
72
|
+
},
|
|
73
|
+
"type": "module"
|
|
67
74
|
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import * as _angular_core from '@angular/core';
|
|
2
|
-
import { OnInit, OnChanges, SimpleChanges, AfterContentInit, OnDestroy, NgZone, ChangeDetectorRef, OutputEmitterRef, TemplateRef
|
|
2
|
+
import { OnInit, OnChanges, SimpleChanges, AfterContentInit, OnDestroy, NgZone, ChangeDetectorRef, OutputEmitterRef, TemplateRef } from '@angular/core';
|
|
3
3
|
import * as i1 from '@angular/common';
|
|
4
4
|
import * as i2 from '@angular/cdk/overlay';
|
|
5
5
|
import { OverlayRef } from '@angular/cdk/overlay';
|
|
6
|
-
import { SafeResourceUrl,
|
|
6
|
+
import { SafeResourceUrl, SafeHtml } from '@angular/platform-browser';
|
|
7
7
|
import * as rxjs from 'rxjs';
|
|
8
8
|
|
|
9
9
|
/**
|
|
@@ -562,15 +562,15 @@ declare class PlainGalleryComponent extends AccessibleComponent implements OnIni
|
|
|
562
562
|
justifyStyle: string | undefined;
|
|
563
563
|
private configService;
|
|
564
564
|
/**
|
|
565
|
-
* Method
|
|
565
|
+
* Method `ngOnInit` to init both `configPlainGallery` calling `initPlainGalleryConfig()`
|
|
566
566
|
* and `imageGrid invoking `initImageGrid()`.
|
|
567
|
-
* This is an angular lifecycle hook, so
|
|
567
|
+
* This is an angular lifecycle hook, so it's called automatically by Angular itself.
|
|
568
568
|
* In particular, it's called only one time!!!
|
|
569
569
|
*/
|
|
570
570
|
ngOnInit(): void;
|
|
571
571
|
/**
|
|
572
|
-
* Method
|
|
573
|
-
* This is an angular lifecycle hook, so
|
|
572
|
+
* Method `ngOnChanges` to update both `imageGrid` and `plainGalleryConfig`.
|
|
573
|
+
* This is an angular lifecycle hook, so it's called automatically by Angular itself.
|
|
574
574
|
* In particular, it's called when any data-bound property of a directive changes!!!
|
|
575
575
|
*/
|
|
576
576
|
ngOnChanges(changes: SimpleChanges): void;
|
|
@@ -706,12 +706,12 @@ declare class CarouselComponent extends AccessibleComponent implements OnInit, A
|
|
|
706
706
|
*/
|
|
707
707
|
currentImage: InternalLibImage | undefined;
|
|
708
708
|
/**
|
|
709
|
-
* Boolean that
|
|
709
|
+
* Boolean that is true when you are viewing the first image (currently visible).
|
|
710
710
|
* False by default
|
|
711
711
|
*/
|
|
712
712
|
isFirstImage: boolean;
|
|
713
713
|
/**
|
|
714
|
-
* Boolean that
|
|
714
|
+
* Boolean that is true when you are viewing the last image (currently visible).
|
|
715
715
|
* False by default
|
|
716
716
|
*/
|
|
717
717
|
isLastImage: boolean;
|
|
@@ -724,6 +724,8 @@ declare class CarouselComponent extends AccessibleComponent implements OnInit, A
|
|
|
724
724
|
*/
|
|
725
725
|
private stop$;
|
|
726
726
|
private readonly platformId;
|
|
727
|
+
private readonly destroyRef;
|
|
728
|
+
private readonly sanitizer;
|
|
727
729
|
/**
|
|
728
730
|
* Listener to stop the gallery when the mouse pointer is over the current image.
|
|
729
731
|
*/
|
|
@@ -769,7 +771,7 @@ declare class CarouselComponent extends AccessibleComponent implements OnInit, A
|
|
|
769
771
|
* @returns String description of the image (or the current image if not provided)
|
|
770
772
|
* @throws an Error if description isn't available
|
|
771
773
|
*/
|
|
772
|
-
getDescriptionToDisplay(image?: Image | undefined):
|
|
774
|
+
getDescriptionToDisplay(image?: Image | undefined): SafeHtml;
|
|
773
775
|
/**
|
|
774
776
|
* Method used by SwipeDirective to support touch gestures (you can also invert the swipe direction with configCurrentImage.invertSwipe).
|
|
775
777
|
* @param action String that represent the direction of the swipe action. 'swiperight' by default.
|
|
@@ -832,7 +834,7 @@ declare class CarouselComponent extends AccessibleComponent implements OnInit, A
|
|
|
832
834
|
private changeCurrentImage;
|
|
833
835
|
/**
|
|
834
836
|
* Private method to get the next index.
|
|
835
|
-
* This is necessary because at the end, when you call next again, you
|
|
837
|
+
* This is necessary because at the end, when you call next again, you will return to the first image.
|
|
836
838
|
* That happens because all modal images are shown like in a circle.
|
|
837
839
|
*/
|
|
838
840
|
private getNextImage;
|
|
@@ -951,13 +953,12 @@ declare class CarouselPreviewsComponent extends AccessibleComponent implements O
|
|
|
951
953
|
*/
|
|
952
954
|
start: number;
|
|
953
955
|
/**
|
|
954
|
-
* End index (
|
|
956
|
+
* End index (exclusive) of the input images used to display previews.
|
|
955
957
|
*/
|
|
956
958
|
end: number;
|
|
957
959
|
private readonly breakpointSubscription;
|
|
958
960
|
private ref;
|
|
959
961
|
private breakpointObserver;
|
|
960
|
-
private sanitizer;
|
|
961
962
|
private configService;
|
|
962
963
|
constructor();
|
|
963
964
|
/**
|
|
@@ -966,9 +967,9 @@ declare class CarouselPreviewsComponent extends AccessibleComponent implements O
|
|
|
966
967
|
*/
|
|
967
968
|
private updateHeight;
|
|
968
969
|
/**
|
|
969
|
-
* Method
|
|
970
|
+
* Method `ngOnInit` to build `configPreview` applying a default value and also to
|
|
970
971
|
* init the `previews` array.
|
|
971
|
-
* This is an angular lifecycle hook, so
|
|
972
|
+
* This is an angular lifecycle hook, so it's called automatically by Angular itself.
|
|
972
973
|
* In particular, it's called only one time!!!
|
|
973
974
|
*/
|
|
974
975
|
ngOnInit(): void;
|
|
@@ -979,9 +980,9 @@ declare class CarouselPreviewsComponent extends AccessibleComponent implements O
|
|
|
979
980
|
*/
|
|
980
981
|
isActive(preview: Image): boolean;
|
|
981
982
|
/**
|
|
982
|
-
* Method
|
|
983
|
+
* Method `ngOnChanges` to update `previews` array.
|
|
983
984
|
* Also, both `start` and `end` local variables will be updated accordingly.
|
|
984
|
-
* This is an angular lifecycle hook, so
|
|
985
|
+
* This is an angular lifecycle hook, so it's called automatically by Angular itself.
|
|
985
986
|
* In particular, it's called when any data-bound property of a directive changes!!!
|
|
986
987
|
*/
|
|
987
988
|
ngOnChanges(changes: SimpleChanges): void;
|
|
@@ -1014,14 +1015,6 @@ declare class CarouselPreviewsComponent extends AccessibleComponent implements O
|
|
|
1014
1015
|
* @param preview Image is the preview
|
|
1015
1016
|
*/
|
|
1016
1017
|
getAlt(preview: Image): string;
|
|
1017
|
-
/**
|
|
1018
|
-
* Method used in template to sanitize an url when you need legacyIE11Mode.
|
|
1019
|
-
* In this way you can set an url as background of a div.
|
|
1020
|
-
* @param unsafeStyle is a string or a SafeResourceUrl that represents the url to sanitize.
|
|
1021
|
-
* @param unsafeStyleFallback is a string or a SafeResourceUrl that represents the fallback url to sanitize.
|
|
1022
|
-
* @returns a SafeStyle object that can be used in template without problems.
|
|
1023
|
-
*/
|
|
1024
|
-
sanitizeUrlBgStyle(unsafeStyle: string | SafeResourceUrl, unsafeStyleFallback: string | SafeResourceUrl): SafeStyle;
|
|
1025
1018
|
/**
|
|
1026
1019
|
* Method to cleanup resources. In fact, it cleans breakpointSubscription.
|
|
1027
1020
|
* This is an angular lifecycle hook that is called when this component is destroyed.
|
|
@@ -1029,7 +1022,7 @@ declare class CarouselPreviewsComponent extends AccessibleComponent implements O
|
|
|
1029
1022
|
ngOnDestroy(): void;
|
|
1030
1023
|
/**
|
|
1031
1024
|
* Private method to init previews based on the currentImage and the full array of images.
|
|
1032
|
-
* The current image
|
|
1025
|
+
* The current image is mandatory to always show the current preview highlighted.
|
|
1033
1026
|
* @param currentImage Image to decide how to show previews, because I always want to see the current image as highlighted
|
|
1034
1027
|
* @param images Image[] is the array of all images.
|
|
1035
1028
|
*/
|
|
@@ -1135,9 +1128,9 @@ declare class UpperButtonsComponent extends AccessibleComponent implements OnIni
|
|
|
1135
1128
|
*/
|
|
1136
1129
|
private fullButtonsDefault;
|
|
1137
1130
|
/**
|
|
1138
|
-
* Method
|
|
1131
|
+
* Method `ngOnInit` to build `configButtons` applying a default value and also to
|
|
1139
1132
|
* init the `buttons` array.
|
|
1140
|
-
* This is an angular lifecycle hook, so
|
|
1133
|
+
* This is an angular lifecycle hook, so it's called automatically by Angular itself.
|
|
1141
1134
|
* In particular, it's called only one time!!!
|
|
1142
1135
|
*/
|
|
1143
1136
|
ngOnInit(): void;
|
|
@@ -1158,8 +1151,8 @@ declare class UpperButtonsComponent extends AccessibleComponent implements OnIni
|
|
|
1158
1151
|
*/
|
|
1159
1152
|
trackById(index: number, item: InternalButtonConfig): number | undefined;
|
|
1160
1153
|
/**
|
|
1161
|
-
* Private method to emit an event using the specified output
|
|
1162
|
-
* @param emitter
|
|
1154
|
+
* Private method to emit an event using the specified output emitter.
|
|
1155
|
+
* @param emitter OutputEmitterRef<ButtonEvent> is the output to emit the `ButtonEvent`
|
|
1163
1156
|
* @param event KeyboardEvent | MouseEvent is the source that triggered this method
|
|
1164
1157
|
* @param dataToEmit ButtonEvent payload to emit
|
|
1165
1158
|
*/
|
|
@@ -1303,9 +1296,9 @@ declare class PreviewsComponent extends AccessibleComponent implements OnInit, O
|
|
|
1303
1296
|
defaultPreviewSize: Size;
|
|
1304
1297
|
private configService;
|
|
1305
1298
|
/**
|
|
1306
|
-
* Method
|
|
1299
|
+
* Method `ngOnInit` to build `configPreview` applying a default value and also to
|
|
1307
1300
|
* init the `previews` array.
|
|
1308
|
-
* This is an angular lifecycle hook, so
|
|
1301
|
+
* This is an angular lifecycle hook, so it's called automatically by Angular itself.
|
|
1309
1302
|
* In particular, it's called only one time!!!
|
|
1310
1303
|
*/
|
|
1311
1304
|
ngOnInit(): void;
|
|
@@ -1316,7 +1309,7 @@ declare class PreviewsComponent extends AccessibleComponent implements OnInit, O
|
|
|
1316
1309
|
*/
|
|
1317
1310
|
isActive(preview: Image): boolean;
|
|
1318
1311
|
/**
|
|
1319
|
-
* Method
|
|
1312
|
+
* Method `ngOnChanges` to update `previews` array.
|
|
1320
1313
|
* Also, both `start` and `end` local variables will be updated accordingly.
|
|
1321
1314
|
* This is an angular lifecycle hook, so it's called automatically by Angular itself.
|
|
1322
1315
|
* In particular, it's called when any data-bound property of a directive changes!!!
|
|
@@ -1399,7 +1392,7 @@ declare class CurrentImageComponent extends AccessibleComponent implements OnIni
|
|
|
1399
1392
|
*/
|
|
1400
1393
|
images: _angular_core.InputSignal<InternalLibImage[]>;
|
|
1401
1394
|
/**
|
|
1402
|
-
* Boolean that
|
|
1395
|
+
* Boolean that is true if the modal gallery is visible.
|
|
1403
1396
|
* If yes, also this component should be visible.
|
|
1404
1397
|
*/
|
|
1405
1398
|
isOpen: _angular_core.InputSignal<boolean>;
|
|
@@ -1457,23 +1450,25 @@ declare class CurrentImageComponent extends AccessibleComponent implements OnIni
|
|
|
1457
1450
|
*/
|
|
1458
1451
|
keyboardAction: Action;
|
|
1459
1452
|
/**
|
|
1460
|
-
* Boolean that
|
|
1453
|
+
* Boolean that is true when you are viewing the first image (currently visible).
|
|
1461
1454
|
* False by default
|
|
1462
1455
|
*/
|
|
1463
1456
|
isFirstImage: boolean;
|
|
1464
1457
|
/**
|
|
1465
|
-
* Boolean that
|
|
1458
|
+
* Boolean that is true when you are viewing the last image (currently visible).
|
|
1466
1459
|
* False by default
|
|
1467
1460
|
*/
|
|
1468
1461
|
isLastImage: boolean;
|
|
1469
1462
|
/**
|
|
1470
|
-
* Boolean that
|
|
1463
|
+
* Boolean that is true if an image of the modal gallery is still loading.
|
|
1471
1464
|
* True by default
|
|
1472
1465
|
*/
|
|
1473
1466
|
loading: boolean;
|
|
1474
1467
|
private readonly platformId;
|
|
1468
|
+
private readonly destroyRef;
|
|
1475
1469
|
private ngZone;
|
|
1476
1470
|
private configService;
|
|
1471
|
+
private readonly sanitizer;
|
|
1477
1472
|
ref: ChangeDetectorRef;
|
|
1478
1473
|
/**
|
|
1479
1474
|
* Listener to stop the gallery when the mouse pointer is over the current image.
|
|
@@ -1484,20 +1479,20 @@ declare class CurrentImageComponent extends AccessibleComponent implements OnIni
|
|
|
1484
1479
|
*/
|
|
1485
1480
|
onMouseLeave(): void;
|
|
1486
1481
|
/**
|
|
1487
|
-
* Method
|
|
1488
|
-
* This is an angular lifecycle hook, so
|
|
1482
|
+
* Method `ngOnInit` to init configuration.
|
|
1483
|
+
* This is an angular lifecycle hook, so it's called automatically by Angular itself.
|
|
1489
1484
|
* In particular, it's called only one time!!!
|
|
1490
1485
|
*/
|
|
1491
1486
|
ngOnInit(): void;
|
|
1492
1487
|
/**
|
|
1493
|
-
* Method
|
|
1488
|
+
* Method `ngOnChanges` to update `loading` status and emit events.
|
|
1494
1489
|
* If the gallery is open, then it will also manage boundary arrows and sliding.
|
|
1495
|
-
* This is an angular lifecycle hook, so
|
|
1490
|
+
* This is an angular lifecycle hook, so it's called automatically by Angular itself.
|
|
1496
1491
|
* In particular, it's called when any data-bound property of a directive changes!!!
|
|
1497
1492
|
*/
|
|
1498
1493
|
ngOnChanges(changes: SimpleChanges): void;
|
|
1499
1494
|
/**
|
|
1500
|
-
* This is an angular lifecycle hook, so
|
|
1495
|
+
* This is an angular lifecycle hook, so it's called automatically by Angular itself.
|
|
1501
1496
|
*/
|
|
1502
1497
|
ngAfterContentInit(): void;
|
|
1503
1498
|
/**
|
|
@@ -1514,7 +1509,7 @@ declare class CurrentImageComponent extends AccessibleComponent implements OnIni
|
|
|
1514
1509
|
* @returns String description of the image (or the current image if not provided)
|
|
1515
1510
|
* @throws an Error if description isn't available
|
|
1516
1511
|
*/
|
|
1517
|
-
getDescriptionToDisplay(image?: Image):
|
|
1512
|
+
getDescriptionToDisplay(image?: Image): SafeHtml;
|
|
1518
1513
|
/**
|
|
1519
1514
|
* Method to get `alt attribute`.
|
|
1520
1515
|
* `alt` specifies an alternate text for an image, if the image cannot be displayed.
|
|
@@ -1569,7 +1564,7 @@ declare class CurrentImageComponent extends AccessibleComponent implements OnIni
|
|
|
1569
1564
|
*/
|
|
1570
1565
|
nextImage(action?: Action): void;
|
|
1571
1566
|
/**
|
|
1572
|
-
* Method to emit an event as loadImage output to
|
|
1567
|
+
* Method to emit an event as loadImage output to indicate that the requested image is loaded.
|
|
1573
1568
|
* This method is invoked by the javascript's 'load' event on an img tag.
|
|
1574
1569
|
* @param event event that triggered the load
|
|
1575
1570
|
*/
|
|
@@ -1607,7 +1602,7 @@ declare class CurrentImageComponent extends AccessibleComponent implements OnIni
|
|
|
1607
1602
|
/**
|
|
1608
1603
|
* Private method to check if next/prev actions should be blocked.
|
|
1609
1604
|
* It checks if slideConfig.infinite === false and if the image index is equals to the input parameter.
|
|
1610
|
-
* If yes, it returns true to
|
|
1605
|
+
* If yes, it returns true to indicate that sliding should be blocked, otherwise false.
|
|
1611
1606
|
* @param boundaryIndex number that could be either the beginning index (0) or the last index
|
|
1612
1607
|
* of images (this.images.length - 1).
|
|
1613
1608
|
* @returns boolean true if slideConfig.infinite === false and the current index is
|
|
@@ -1764,6 +1759,7 @@ declare class ModalGalleryComponent implements OnInit, OnDestroy {
|
|
|
1764
1759
|
private readonly updateImagesSubscription;
|
|
1765
1760
|
private readonly dialogContent;
|
|
1766
1761
|
private readonly platformId;
|
|
1762
|
+
private readonly document;
|
|
1767
1763
|
/**
|
|
1768
1764
|
* HostListener to catch the browser back button and destroy the gallery.
|
|
1769
1765
|
* This prevents unexpected behavior about scrolling.
|
|
@@ -1782,8 +1778,8 @@ declare class ModalGalleryComponent implements OnInit, OnDestroy {
|
|
|
1782
1778
|
private configService;
|
|
1783
1779
|
constructor();
|
|
1784
1780
|
/**
|
|
1785
|
-
* Method
|
|
1786
|
-
* This is an angular lifecycle hook, so
|
|
1781
|
+
* Method `ngOnInit` to init images calling `initImages()`.
|
|
1782
|
+
* This is an angular lifecycle hook, so it's called automatically by Angular itself.
|
|
1787
1783
|
* In particular, it's called only one time!!!
|
|
1788
1784
|
*/
|
|
1789
1785
|
ngOnInit(): void;
|
|
@@ -1959,14 +1955,14 @@ declare class SizeDirective implements OnInit, OnChanges {
|
|
|
1959
1955
|
private renderer;
|
|
1960
1956
|
private el;
|
|
1961
1957
|
/**
|
|
1962
|
-
* Method
|
|
1963
|
-
* This is an Angular lifecycle hook, so
|
|
1958
|
+
* Method `ngOnInit` to apply the style of this directive.
|
|
1959
|
+
* This is an Angular lifecycle hook, so it's called automatically by Angular itself.
|
|
1964
1960
|
* In particular, it's called only one time!!!
|
|
1965
1961
|
*/
|
|
1966
1962
|
ngOnInit(): void;
|
|
1967
1963
|
/**
|
|
1968
|
-
* Method
|
|
1969
|
-
* This is an Angular lifecycle hook, so
|
|
1964
|
+
* Method `ngOnChanges` to apply the style of this directive.
|
|
1965
|
+
* This is an Angular lifecycle hook, so it's called automatically by Angular itself.
|
|
1970
1966
|
* In particular, it's called when any data-bound property of a directive changes!!!
|
|
1971
1967
|
*/
|
|
1972
1968
|
ngOnChanges(): void;
|
|
@@ -2016,14 +2012,14 @@ declare class WrapDirective implements OnInit, OnChanges {
|
|
|
2016
2012
|
private renderer;
|
|
2017
2013
|
private el;
|
|
2018
2014
|
/**
|
|
2019
|
-
* Method
|
|
2020
|
-
* This is an angular lifecycle hook, so
|
|
2015
|
+
* Method `ngOnInit` to apply the style of this directive.
|
|
2016
|
+
* This is an angular lifecycle hook, so it's called automatically by Angular itself.
|
|
2021
2017
|
* In particular, it's called only one time!!!
|
|
2022
2018
|
*/
|
|
2023
2019
|
ngOnInit(): void;
|
|
2024
2020
|
/**
|
|
2025
|
-
* Method
|
|
2026
|
-
* This is an angular lifecycle hook, so
|
|
2021
|
+
* Method `ngOnChanges` to apply the style of this directive.
|
|
2022
|
+
* This is an angular lifecycle hook, so it's called automatically by Angular itself.
|
|
2027
2023
|
* In particular, it's called when any data-bound property of a directive changes!!!
|
|
2028
2024
|
*/
|
|
2029
2025
|
ngOnChanges(): void;
|
|
@@ -2050,14 +2046,14 @@ declare class DirectionDirective implements OnInit, OnChanges {
|
|
|
2050
2046
|
private renderer;
|
|
2051
2047
|
private el;
|
|
2052
2048
|
/**
|
|
2053
|
-
* Method
|
|
2054
|
-
* This is an angular lifecycle hook, so
|
|
2049
|
+
* Method `ngOnInit` to apply the style of this directive.
|
|
2050
|
+
* This is an angular lifecycle hook, so it's called automatically by Angular itself.
|
|
2055
2051
|
* In particular, it's called only one time!!!
|
|
2056
2052
|
*/
|
|
2057
2053
|
ngOnInit(): void;
|
|
2058
2054
|
/**
|
|
2059
|
-
* Method
|
|
2060
|
-
* This is an angular lifecycle hook, so
|
|
2055
|
+
* Method `ngOnChanges` to apply the style of this directive.
|
|
2056
|
+
* This is an angular lifecycle hook, so it's called automatically by Angular itself.
|
|
2061
2057
|
* In particular, it's called when any data-bound property of a directive changes!!!
|
|
2062
2058
|
*/
|
|
2063
2059
|
ngOnChanges(): void;
|
|
@@ -2085,14 +2081,14 @@ declare class ATagBgImageDirective implements OnInit, OnChanges {
|
|
|
2085
2081
|
private renderer;
|
|
2086
2082
|
private el;
|
|
2087
2083
|
/**
|
|
2088
|
-
* Method
|
|
2089
|
-
* This is an angular lifecycle hook, so
|
|
2084
|
+
* Method `ngOnInit` to apply the style of this directive.
|
|
2085
|
+
* This is an angular lifecycle hook, so it's called automatically by Angular itself.
|
|
2090
2086
|
* In particular, it's called only one time!!!
|
|
2091
2087
|
*/
|
|
2092
2088
|
ngOnInit(): void;
|
|
2093
2089
|
/**
|
|
2094
|
-
* Method
|
|
2095
|
-
* This is an angular lifecycle hook, so
|
|
2090
|
+
* Method `ngOnChanges` to apply the style of this directive.
|
|
2091
|
+
* This is an angular lifecycle hook, so it's called automatically by Angular itself.
|
|
2096
2092
|
* In particular, it's called when any data-bound property of a directive changes!!!
|
|
2097
2093
|
*/
|
|
2098
2094
|
ngOnChanges(): void;
|
|
@@ -2115,14 +2111,14 @@ declare class DescriptionDirective implements OnInit, OnChanges {
|
|
|
2115
2111
|
private renderer;
|
|
2116
2112
|
private el;
|
|
2117
2113
|
/**
|
|
2118
|
-
* Method
|
|
2119
|
-
* This is an angular lifecycle hook, so
|
|
2114
|
+
* Method `ngOnInit` to apply the style of this directive.
|
|
2115
|
+
* This is an angular lifecycle hook, so it's called automatically by Angular itself.
|
|
2120
2116
|
* In particular, it's called only one time!!!
|
|
2121
2117
|
*/
|
|
2122
2118
|
ngOnInit(): void;
|
|
2123
2119
|
/**
|
|
2124
|
-
* Method
|
|
2125
|
-
* This is an angular lifecycle hook, so
|
|
2120
|
+
* Method `ngOnChanges` to apply the style of this directive.
|
|
2121
|
+
* This is an angular lifecycle hook, so it's called automatically by Angular itself.
|
|
2126
2122
|
* In particular, it's called when any data-bound property of a directive changes!!!
|
|
2127
2123
|
*/
|
|
2128
2124
|
ngOnChanges(): void;
|
|
@@ -2130,6 +2126,8 @@ declare class DescriptionDirective implements OnInit, OnChanges {
|
|
|
2130
2126
|
* Private method to change description's style.
|
|
2131
2127
|
*/
|
|
2132
2128
|
private applyStyle;
|
|
2129
|
+
private sanitizeCssValue;
|
|
2130
|
+
private sanitizePosition;
|
|
2133
2131
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<DescriptionDirective, never>;
|
|
2134
2132
|
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<DescriptionDirective, "[ksDescription]", never, { "description": { "alias": "description"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
2135
2133
|
}
|
|
@@ -2157,14 +2155,14 @@ declare class MarginDirective implements OnInit, OnChanges {
|
|
|
2157
2155
|
private renderer;
|
|
2158
2156
|
private el;
|
|
2159
2157
|
/**
|
|
2160
|
-
* Method
|
|
2161
|
-
* This is an angular lifecycle hook, so
|
|
2158
|
+
* Method `ngOnInit` to apply the style of this directive.
|
|
2159
|
+
* This is an angular lifecycle hook, so it's called automatically by Angular itself.
|
|
2162
2160
|
* In particular, it's called only one time!!!
|
|
2163
2161
|
*/
|
|
2164
2162
|
ngOnInit(): void;
|
|
2165
2163
|
/**
|
|
2166
|
-
* Method
|
|
2167
|
-
* This is an angular lifecycle hook, so
|
|
2164
|
+
* Method `ngOnChanges` to apply the style of this directive.
|
|
2165
|
+
* This is an angular lifecycle hook, so it's called automatically by Angular itself.
|
|
2168
2166
|
* In particular, it's called when any data-bound property of a directive changes!!!
|
|
2169
2167
|
*/
|
|
2170
2168
|
ngOnChanges(): void;
|
|
@@ -2196,14 +2194,14 @@ declare class MaxSizeDirective implements OnInit, OnChanges {
|
|
|
2196
2194
|
private renderer;
|
|
2197
2195
|
private el;
|
|
2198
2196
|
/**
|
|
2199
|
-
* Method
|
|
2200
|
-
* This is an angular lifecycle hook, so
|
|
2197
|
+
* Method `ngOnInit` to apply the style of this directive.
|
|
2198
|
+
* This is an angular lifecycle hook, so it's called automatically by Angular itself.
|
|
2201
2199
|
* In particular, it's called only one time!!!
|
|
2202
2200
|
*/
|
|
2203
2201
|
ngOnInit(): void;
|
|
2204
2202
|
/**
|
|
2205
|
-
* Method
|
|
2206
|
-
* This is an angular lifecycle hook, so
|
|
2203
|
+
* Method `ngOnChanges` to apply the style of this directive.
|
|
2204
|
+
* This is an angular lifecycle hook, so it's called automatically by Angular itself.
|
|
2207
2205
|
* In particular, it's called when any data-bound property of a directive changes!!!
|
|
2208
2206
|
*/
|
|
2209
2207
|
ngOnChanges(): void;
|
|
@@ -2341,6 +2339,7 @@ declare class ModalGalleryRef {
|
|
|
2341
2339
|
private buttonAfterHook;
|
|
2342
2340
|
buttonAfterHook$: rxjs.Observable<ButtonEvent>;
|
|
2343
2341
|
private overlayRef;
|
|
2342
|
+
private closed;
|
|
2344
2343
|
constructor(overlayRef: OverlayRef);
|
|
2345
2344
|
/**
|
|
2346
2345
|
* Close modal dialog, disposing the Overlay.
|
|
@@ -2381,33 +2380,16 @@ declare class ModalGalleryRef {
|
|
|
2381
2380
|
* @param event ImageModalEvent event payload
|
|
2382
2381
|
*/
|
|
2383
2382
|
emitButtonAfterHook(event: ButtonEvent): void;
|
|
2383
|
+
private completeSubjects;
|
|
2384
2384
|
}
|
|
2385
2385
|
|
|
2386
|
-
/**
|
|
2387
|
-
* Payload to be emitted via {@link triggerAttachToOverlay} to enable {@link AttachToOverlayService}
|
|
2388
|
-
* to attach the {@link ModalGalleryComponent} to the overlay
|
|
2389
|
-
*/
|
|
2390
|
-
interface AttachToOverlayPayload {
|
|
2391
|
-
/**
|
|
2392
|
-
* Overlay object created using Angular CDK APIs
|
|
2393
|
-
*/
|
|
2394
|
-
overlayRef: OverlayRef;
|
|
2395
|
-
/**
|
|
2396
|
-
* Dialog data to be injected into the {@link ModalGalleryComponent}
|
|
2397
|
-
* contains: id, array of images, current image and optionally the configuration object
|
|
2398
|
-
*/
|
|
2399
|
-
config: ModalGalleryConfig;
|
|
2400
|
-
/**
|
|
2401
|
-
* Object to control the dialog instance
|
|
2402
|
-
*/
|
|
2403
|
-
dialogRef: ModalGalleryRef;
|
|
2404
|
-
}
|
|
2405
2386
|
declare class ModalGalleryService {
|
|
2406
2387
|
private updateImages;
|
|
2407
2388
|
updateImages$: rxjs.Observable<Image[]>;
|
|
2408
2389
|
private dialogRef;
|
|
2409
|
-
triggerAttachToOverlay: EventEmitter<AttachToOverlayPayload>;
|
|
2410
2390
|
private overlay;
|
|
2391
|
+
private injector;
|
|
2392
|
+
private modalGalleryComponent;
|
|
2411
2393
|
private configService;
|
|
2412
2394
|
/**
|
|
2413
2395
|
* Method to open modal gallery passing the configuration
|