pigallery2-extension-kit 3.0.0 → 3.1.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/REPOSITORY.md +1 -1
- package/lib/backend/Logger.d.ts +1 -1
- package/lib/backend/ProjectPath.js +1 -1
- package/lib/backend/middlewares/VersionMWs.d.ts +4 -0
- package/lib/backend/model/database/AlbumManager.d.ts +1 -1
- package/lib/backend/model/database/CoverManager.d.ts +1 -1
- package/lib/backend/model/database/IndexingManager.d.ts +1 -0
- package/lib/backend/model/database/ProjectedCacheManager.d.ts +8 -0
- package/lib/backend/model/database/UserManager.d.ts +1 -0
- package/lib/backend/model/diagnostics/ConfigDiagnostics.d.ts +1 -0
- package/lib/backend/model/extension/ExtensionRepository.d.ts +1 -0
- package/lib/backend/model/extension/IExtension.d.ts +21 -0
- package/lib/backend/model/jobs/JobManager.d.ts +1 -1
- package/lib/backend/model/jobs/jobs/AlbumCoverFillingJob.d.ts +1 -0
- package/lib/backend/model/jobs/jobs/AlbumCoverResetJob.d.ts +1 -0
- package/lib/backend/model/jobs/jobs/AlbumResetJob.d.ts +1 -0
- package/lib/backend/model/jobs/jobs/FileJob.d.ts +1 -0
- package/lib/backend/model/jobs/jobs/GPXCompressionJob.d.ts +1 -0
- package/lib/backend/model/jobs/jobs/GPXCompressionResetJob.d.ts +1 -0
- package/lib/backend/model/jobs/jobs/GalleryResetJob.d.ts +1 -0
- package/lib/backend/model/jobs/jobs/IndexingJob.d.ts +1 -0
- package/lib/backend/model/jobs/jobs/Job.d.ts +1 -0
- package/lib/backend/model/jobs/jobs/JobProgress.d.ts +2 -1
- package/lib/backend/model/jobs/jobs/PhotoConvertingJob.d.ts +1 -0
- package/lib/backend/model/jobs/jobs/TempFolderCleaningJob.d.ts +1 -0
- package/lib/backend/model/jobs/jobs/TopPickSendJob.d.ts +1 -0
- package/lib/backend/model/jobs/jobs/VideoConvertingJob.d.ts +1 -0
- package/lib/common/CustomHeaders.d.ts +1 -0
- package/lib/common/DataStructureVersion.d.ts +1 -1
- package/lib/common/QueryParams.d.ts +10 -1
- package/lib/common/config/private/Config.js +1 -0
- package/lib/common/config/private/PrivateConfig.js +8 -1
- package/lib/common/config/private/PrivateConfigClass.d.ts +2 -0
- package/lib/common/config/private/PrivateConfigClass.js +7 -0
- package/lib/common/config/public/ClientConfig.d.ts +13 -5
- package/lib/common/config/public/ClientConfig.js +107 -27
- package/lib/common/entities/ContentWrapper.d.ts +38 -10
- package/lib/common/entities/ContentWrapper.js +171 -62
- package/lib/common/entities/Error.d.ts +1 -0
- package/lib/common/entities/Error.js +1 -0
- package/lib/common/entities/MediaDTO.d.ts +1 -0
- package/lib/common/entities/MediaDTO.js +6 -1
- package/lib/frontend/app/model/query.service.d.ts +0 -1
- package/lib/frontend/app/model/version.service.d.ts +5 -1
- package/lib/frontend/app/ui/frame/frame.component.d.ts +3 -1
- package/lib/frontend/app/ui/gallery/cache.gallery.service.d.ts +5 -7
- package/lib/frontend/app/ui/gallery/contentLoader.service.d.ts +12 -10
- package/lib/frontend/app/ui/gallery/gallery.service.d.ts +13 -0
- package/lib/frontend/app/ui/gallery/grid/grid.gallery.component.d.ts +1 -0
- package/lib/frontend/app/ui/gallery/lightbox/controls/controls.lightbox.gallery.component.d.ts +13 -19
- package/lib/frontend/app/ui/gallery/lightbox/lightbox.gallery.component.d.ts +1 -2
- package/lib/frontend/app/ui/gallery/lightbox/lightbox.service.d.ts +25 -4
- package/lib/frontend/app/ui/gallery/navigator/navigator.service.d.ts +1 -0
- package/lib/frontend/app/ui/gallery/photo-frame-builder/photo-frame-builder.gallery.component.d.ts +31 -0
- package/lib/frontend/app/ui/settings/template/settings-entry/sorting-method/sorting-method.settings-entry.component.d.ts +5 -2
- package/package.json +1 -1
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.MediaDTOUtils = void 0;
|
|
4
4
|
const SupportedFormats_1 = require("../SupportedFormats");
|
|
5
|
+
const Utils_1 = require("../Utils");
|
|
5
6
|
exports.MediaDTOUtils = {
|
|
6
7
|
hasPositionData: (media) => {
|
|
7
8
|
return (!!media.metadata.positionData &&
|
|
@@ -43,11 +44,15 @@ exports.MediaDTOUtils = {
|
|
|
43
44
|
return false;
|
|
44
45
|
},
|
|
45
46
|
calcAspectRatio: (photo) => {
|
|
46
|
-
return (photo.metadata.size.width / photo.metadata.size.height) || 1; // NaN should be treated as square photo
|
|
47
|
+
return (photo.metadata.size.width / photo.metadata.size.height) || 1; // NaN should be treated as a square photo
|
|
47
48
|
},
|
|
48
49
|
equals: (a, b) => {
|
|
49
50
|
return a.directory.path === b.directory.path &&
|
|
50
51
|
a.directory.name === b.directory.name &&
|
|
51
52
|
a.name === b.name;
|
|
53
|
+
},
|
|
54
|
+
createdThisYear(media) {
|
|
55
|
+
return (new Date().getFullYear() ===
|
|
56
|
+
Utils_1.Utils.getUTCFullYear(media.metadata.creationDate, media.metadata.creationDateOffset));
|
|
52
57
|
}
|
|
53
58
|
};
|
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
import { BehaviorSubject } from 'rxjs';
|
|
2
|
+
import { Router } from '@angular/router';
|
|
2
3
|
export declare class VersionService {
|
|
4
|
+
private router;
|
|
3
5
|
version: BehaviorSubject<string>;
|
|
4
|
-
|
|
6
|
+
appVersion: BehaviorSubject<string>;
|
|
7
|
+
constructor(router: Router);
|
|
5
8
|
onNewVersion(version: string): void;
|
|
9
|
+
onNewAppVersion(version: string): void;
|
|
6
10
|
}
|
|
@@ -11,6 +11,7 @@ import { BsDropdownDirective } from 'ngx-bootstrap/dropdown';
|
|
|
11
11
|
import { LanguageComponent } from '../language/language.component';
|
|
12
12
|
import { ThemeService } from '../../model/theme.service';
|
|
13
13
|
import { DeviceDetectorService } from 'ngx-device-detector';
|
|
14
|
+
import { GalleryService } from '../gallery/gallery.service';
|
|
14
15
|
export declare class FrameComponent {
|
|
15
16
|
private authService;
|
|
16
17
|
notificationService: NotificationService;
|
|
@@ -18,6 +19,7 @@ export declare class FrameComponent {
|
|
|
18
19
|
private router;
|
|
19
20
|
themeService: ThemeService;
|
|
20
21
|
private deviceService;
|
|
22
|
+
galleryService: GalleryService;
|
|
21
23
|
showSearch: boolean;
|
|
22
24
|
showShare: boolean;
|
|
23
25
|
readonly user: BehaviorSubject<UserDTO>;
|
|
@@ -42,7 +44,7 @@ export declare class FrameComponent {
|
|
|
42
44
|
languageSelector: LanguageComponent;
|
|
43
45
|
ThemeModes: typeof ThemeModes;
|
|
44
46
|
readonly enableScrollUpButton: boolean;
|
|
45
|
-
constructor(authService: AuthenticationService, notificationService: NotificationService, queryService: QueryService, router: Router, themeService: ThemeService, deviceService: DeviceDetectorService);
|
|
47
|
+
constructor(authService: AuthenticationService, notificationService: NotificationService, queryService: QueryService, router: Router, themeService: ThemeService, deviceService: DeviceDetectorService, galleryService: GalleryService);
|
|
46
48
|
isAdmin(): boolean;
|
|
47
49
|
isFacesAvailable(): boolean;
|
|
48
50
|
isCustomLinksAvailable(): boolean;
|
|
@@ -3,7 +3,7 @@ import { MediaDTO } from '../../../../common/entities/MediaDTO';
|
|
|
3
3
|
import { GroupingMethod, SortingMethod } from '../../../../common/entities/SortingMethods';
|
|
4
4
|
import { VersionService } from '../../model/version.service';
|
|
5
5
|
import { SearchQueryDTO, SearchQueryTypes } from '../../../../common/entities/SearchQueryDTO';
|
|
6
|
-
import { ContentWrapper, ContentWrapperWithError } from '../../../../common/entities/ContentWrapper';
|
|
6
|
+
import { ContentWrapper, ContentWrapperWithError, PackedContentWrapperWithError } from '../../../../common/entities/ContentWrapper';
|
|
7
7
|
import { ThemeModes } from '../../../../common/config/public/ClientConfig';
|
|
8
8
|
import { GridSizes } from '../../../../common/entities/GridSizes';
|
|
9
9
|
export declare class GalleryCacheService {
|
|
@@ -36,18 +36,16 @@ export declare class GalleryCacheService {
|
|
|
36
36
|
setGridSize(cw: ContentWrapperWithError, gs: GridSizes): void;
|
|
37
37
|
getAutoComplete(text: string, type: SearchQueryTypes): IAutoCompleteItem[];
|
|
38
38
|
setAutoComplete(text: string, type: SearchQueryTypes, items: Array<IAutoCompleteItem>): void;
|
|
39
|
-
getSearch(query: SearchQueryDTO):
|
|
40
|
-
setSearch(cw:
|
|
41
|
-
getDirectory(directoryName: string):
|
|
42
|
-
setDirectory(cw:
|
|
39
|
+
getSearch(query: SearchQueryDTO): PackedContentWrapperWithError;
|
|
40
|
+
setSearch(cw: PackedContentWrapperWithError): void;
|
|
41
|
+
getDirectory(directoryName: string): PackedContentWrapperWithError;
|
|
42
|
+
setDirectory(cw: PackedContentWrapperWithError): void;
|
|
43
43
|
/**
|
|
44
44
|
* Update media state at cache too (Eg.: thumbnail rendered)
|
|
45
45
|
* @param media: MediaBaseDTO
|
|
46
46
|
*/
|
|
47
47
|
mediaUpdated(media: MediaDTO): void;
|
|
48
48
|
private reset;
|
|
49
|
-
getSlideshowSpeed(): number;
|
|
50
|
-
setSlideshowSpeed(speed: number): void;
|
|
51
49
|
getThemeMode(): ThemeModes;
|
|
52
50
|
setThemeMode(mode: ThemeModes): void;
|
|
53
51
|
}
|
|
@@ -1,31 +1,33 @@
|
|
|
1
|
+
import { OnDestroy } from '@angular/core';
|
|
1
2
|
import { NetworkService } from '../../model/network/network.service';
|
|
2
3
|
import { ContentWrapperWithError } from '../../../../common/entities/ContentWrapper';
|
|
3
4
|
import { SubDirectoryDTO } from '../../../../common/entities/DirectoryDTO';
|
|
4
5
|
import { GalleryCacheService } from './cache.gallery.service';
|
|
5
6
|
import { BehaviorSubject, Observable } from 'rxjs';
|
|
6
7
|
import { ShareService } from './share.service';
|
|
7
|
-
import { NavigationService } from '../../model/navigation.service';
|
|
8
8
|
import { MediaDTO } from '../../../../common/entities/MediaDTO';
|
|
9
9
|
import { FileDTO } from '../../../../common/entities/FileDTO';
|
|
10
|
-
|
|
10
|
+
import { GalleryService } from './gallery.service';
|
|
11
|
+
export declare class ContentLoaderService implements OnDestroy {
|
|
11
12
|
private networkService;
|
|
12
13
|
private galleryCacheService;
|
|
13
14
|
private shareService;
|
|
14
|
-
private
|
|
15
|
+
private galleryService;
|
|
15
16
|
content: BehaviorSubject<ContentWrapperWithError>;
|
|
16
17
|
originalContent: Observable<DirectoryContent>;
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
private
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
18
|
+
private ongoingContentRequest;
|
|
19
|
+
private lastContentRequest;
|
|
20
|
+
private pollingTimerRestart;
|
|
21
|
+
private pollingSub;
|
|
22
|
+
constructor(networkService: NetworkService, galleryCacheService: GalleryCacheService, shareService: ShareService, galleryService: GalleryService);
|
|
23
|
+
ngOnDestroy(): void;
|
|
24
|
+
setupAutoUpdate(): void;
|
|
24
25
|
setContent(content: ContentWrapperWithError): void;
|
|
25
26
|
loadDirectory(directoryName: string, forceReload?: boolean): Promise<void>;
|
|
26
27
|
search(query: string, forceReload?: boolean): Promise<void>;
|
|
27
28
|
isSearchResult(): boolean;
|
|
28
29
|
reloadCurrentContent(): Promise<void>;
|
|
30
|
+
private unSubPolling;
|
|
29
31
|
}
|
|
30
32
|
export interface DirectoryContent {
|
|
31
33
|
directories: SubDirectoryDTO[];
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { ActivatedRoute, Router } from '@angular/router';
|
|
2
|
+
import { BehaviorSubject } from 'rxjs';
|
|
3
|
+
export declare class GalleryService {
|
|
4
|
+
private route;
|
|
5
|
+
private router;
|
|
6
|
+
autoPollIntervalS: BehaviorSubject<number>;
|
|
7
|
+
private subscription;
|
|
8
|
+
constructor(route: ActivatedRoute, router: Router);
|
|
9
|
+
get autoPollInterval(): number;
|
|
10
|
+
set autoPollInterval(value: number);
|
|
11
|
+
ngOnDestroy(): void;
|
|
12
|
+
private updateQuery;
|
|
13
|
+
}
|
|
@@ -23,6 +23,7 @@ export declare class GalleryGridComponent implements OnInit, OnChanges, AfterVie
|
|
|
23
23
|
mediaGroups: MediaGroup[];
|
|
24
24
|
mediaToRender: GridMediaGroup[];
|
|
25
25
|
containerWidth: number;
|
|
26
|
+
containerMinHeight: number;
|
|
26
27
|
screenHeight: number;
|
|
27
28
|
isAfterViewInit: boolean;
|
|
28
29
|
subscriptions: {
|
package/lib/frontend/app/ui/gallery/lightbox/controls/controls.lightbox.gallery.component.d.ts
CHANGED
|
@@ -1,31 +1,27 @@
|
|
|
1
|
-
import { ElementRef, EventEmitter, OnChanges, OnDestroy
|
|
1
|
+
import { ElementRef, EventEmitter, OnChanges, OnDestroy } from '@angular/core';
|
|
2
2
|
import { FullScreenService } from '../../fullscreen.service';
|
|
3
3
|
import { GalleryPhotoComponent } from '../../grid/photo/photo.grid.gallery.component';
|
|
4
4
|
import { GalleryLightboxMediaComponent } from '../media/media.lightbox.gallery.component';
|
|
5
5
|
import { SearchQueryTypes } from '../../../../../../common/entities/SearchQueryDTO';
|
|
6
6
|
import { AuthenticationService } from '../../../../model/network/authentication.service';
|
|
7
7
|
import { LightboxService } from '../lightbox.service';
|
|
8
|
-
import { GalleryCacheService } from '../../cache.gallery.service';
|
|
9
8
|
import { FileSizePipe } from '../../../../pipes/FileSizePipe';
|
|
10
9
|
import { DatePipe } from '@angular/common';
|
|
11
10
|
import { LightBoxTitleTexts } from '../../../../../../common/config/public/ClientConfig';
|
|
12
|
-
export declare class ControlsLightboxComponent implements OnDestroy,
|
|
11
|
+
export declare class ControlsLightboxComponent implements OnDestroy, OnChanges {
|
|
13
12
|
lightboxService: LightboxService;
|
|
14
13
|
fullScreenService: FullScreenService;
|
|
15
14
|
private authService;
|
|
16
|
-
private cacheService;
|
|
17
15
|
private fileSizePipe;
|
|
18
16
|
private datePipe;
|
|
19
17
|
readonly MAX_ZOOM = 10;
|
|
20
18
|
canvas: ElementRef<HTMLCanvasElement>;
|
|
21
|
-
private ctx;
|
|
22
19
|
root: ElementRef;
|
|
23
20
|
closed: EventEmitter<any>;
|
|
24
21
|
toggleInfoPanel: EventEmitter<any>;
|
|
25
22
|
toggleFullScreen: EventEmitter<any>;
|
|
26
23
|
nextPhoto: EventEmitter<any>;
|
|
27
24
|
previousPhoto: EventEmitter<any>;
|
|
28
|
-
togglePlayback: EventEmitter<boolean>;
|
|
29
25
|
navigation: {
|
|
30
26
|
hasPrev: boolean;
|
|
31
27
|
hasNext: boolean;
|
|
@@ -41,7 +37,6 @@ export declare class ControlsLightboxComponent implements OnDestroy, OnInit, OnC
|
|
|
41
37
|
readonly facesEnabled: boolean;
|
|
42
38
|
zoom: number;
|
|
43
39
|
playBackDurations: number[];
|
|
44
|
-
selectedSlideshowSpeed: number;
|
|
45
40
|
controllersDimmed: boolean;
|
|
46
41
|
controllersVisible: boolean;
|
|
47
42
|
drag: {
|
|
@@ -54,15 +49,19 @@ export declare class ControlsLightboxComponent implements OnDestroy, OnInit, OnC
|
|
|
54
49
|
height: number;
|
|
55
50
|
};
|
|
56
51
|
searchEnabled: boolean;
|
|
52
|
+
private ctx;
|
|
57
53
|
private visibilityTimer;
|
|
58
54
|
private timerSub;
|
|
59
55
|
private prevDrag;
|
|
60
56
|
private prevZoom;
|
|
61
|
-
constructor(lightboxService: LightboxService, fullScreenService: FullScreenService, authService: AuthenticationService,
|
|
57
|
+
constructor(lightboxService: LightboxService, fullScreenService: FullScreenService, authService: AuthenticationService, fileSizePipe: FileSizePipe, datePipe: DatePipe);
|
|
62
58
|
get Zoom(): number;
|
|
63
59
|
set Zoom(zoom: number);
|
|
60
|
+
get TopLeftTitle(): string;
|
|
61
|
+
get TopLeftSubtitle(): string;
|
|
62
|
+
get BottomLeftTitle(): string;
|
|
63
|
+
get BottomLeftSubtitle(): string;
|
|
64
64
|
containerWidth(): void;
|
|
65
|
-
ngOnInit(): void;
|
|
66
65
|
ngOnDestroy(): void;
|
|
67
66
|
ngOnChanges(): void;
|
|
68
67
|
pan($event: {
|
|
@@ -84,11 +83,7 @@ export declare class ControlsLightboxComponent implements OnDestroy, OnInit, OnC
|
|
|
84
83
|
zoomIn(): void;
|
|
85
84
|
zoomOut(): void;
|
|
86
85
|
onKeyPress(event: KeyboardEvent): void;
|
|
87
|
-
private showNextMedia;
|
|
88
|
-
private drawSliderProgress;
|
|
89
|
-
private resetSlideshowTimer;
|
|
90
86
|
runSlideShow(): void;
|
|
91
|
-
slideshowSpeedChanged(): void;
|
|
92
87
|
onMouseMove(): void;
|
|
93
88
|
stopSlideShow(): void;
|
|
94
89
|
playClicked(): void;
|
|
@@ -97,14 +92,13 @@ export declare class ControlsLightboxComponent implements OnDestroy, OnInit, OnC
|
|
|
97
92
|
onResize(): void;
|
|
98
93
|
closeLightbox(): void;
|
|
99
94
|
getPersonSearchQuery(name: string): string;
|
|
95
|
+
nextMediaManuallyTriggered(): void;
|
|
96
|
+
getText(type: LightBoxTitleTexts[]): string;
|
|
97
|
+
private showNextMedia;
|
|
98
|
+
private drawSliderProgress;
|
|
99
|
+
private resetSlideshowTimer;
|
|
100
100
|
private checkZoomAndDrag;
|
|
101
101
|
private showControls;
|
|
102
102
|
private hideControls;
|
|
103
103
|
private updateFaceContainerDim;
|
|
104
|
-
nextMediaManuallyTriggered(): void;
|
|
105
|
-
getText(type: LightBoxTitleTexts): string;
|
|
106
|
-
get TopLeftTitle(): string;
|
|
107
|
-
get TopLeftSubtitle(): string;
|
|
108
|
-
get BottomLeftTitle(): string;
|
|
109
|
-
get BottomLeftSubtitle(): string;
|
|
110
104
|
}
|
|
@@ -66,7 +66,6 @@ export declare class GalleryLightboxComponent implements OnDestroy, OnInit {
|
|
|
66
66
|
toggleFullscreen(): void;
|
|
67
67
|
ngOnInit(): void;
|
|
68
68
|
ngOnDestroy(): void;
|
|
69
|
-
onNavigateTo(photoStringId: string): string;
|
|
70
69
|
setGridPhotoQL(value: QueryList<GalleryPhotoComponent>): void;
|
|
71
70
|
onResize(): void;
|
|
72
71
|
nextImage(): void;
|
|
@@ -82,7 +81,7 @@ export declare class GalleryLightboxComponent implements OnDestroy, OnInit {
|
|
|
82
81
|
isVisible(): boolean;
|
|
83
82
|
isOpen(): boolean;
|
|
84
83
|
onVideoSourceError(): void;
|
|
85
|
-
|
|
84
|
+
private onNavigateTo;
|
|
86
85
|
private updateInfoPanelWidth;
|
|
87
86
|
private runSlideShow;
|
|
88
87
|
private stopSlideShow;
|
|
@@ -1,6 +1,27 @@
|
|
|
1
|
+
import { ActivatedRoute, Router } from '@angular/router';
|
|
1
2
|
export declare class LightboxService {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
3
|
+
private route;
|
|
4
|
+
private router;
|
|
5
|
+
private subscription;
|
|
6
|
+
constructor(route: ActivatedRoute, router: Router);
|
|
7
|
+
private _slideshowSpeed;
|
|
8
|
+
get slideshowSpeed(): number;
|
|
9
|
+
set slideshowSpeed(value: number);
|
|
10
|
+
private _playback;
|
|
11
|
+
get playback(): boolean;
|
|
12
|
+
set playback(value: boolean);
|
|
13
|
+
private _facesAlwaysOn;
|
|
14
|
+
get facesAlwaysOn(): boolean;
|
|
15
|
+
set facesAlwaysOn(value: boolean);
|
|
16
|
+
private _loopVideos;
|
|
17
|
+
get loopVideos(): boolean;
|
|
18
|
+
set loopVideos(value: boolean);
|
|
19
|
+
private _loopSlideshow;
|
|
20
|
+
get loopSlideshow(): boolean;
|
|
21
|
+
set loopSlideshow(value: boolean);
|
|
22
|
+
private _captionAlwaysOn;
|
|
23
|
+
get captionAlwaysOn(): boolean;
|
|
24
|
+
set captionAlwaysOn(value: boolean);
|
|
25
|
+
ngOnDestroy(): void;
|
|
26
|
+
private updateQuery;
|
|
6
27
|
}
|
|
@@ -7,6 +7,7 @@ export declare class GalleryNavigatorService {
|
|
|
7
7
|
private galleryService;
|
|
8
8
|
girdSize: BehaviorSubject<GridSizes>;
|
|
9
9
|
constructor(galleryCacheService: GalleryCacheService, galleryService: ContentLoaderService);
|
|
10
|
+
nextGridSize(value: GridSizes): void;
|
|
10
11
|
setGridSize(gs: GridSizes): void;
|
|
11
12
|
isDefaultGridSize(): boolean;
|
|
12
13
|
getDefaultGridSize(): GridSizes;
|
package/lib/frontend/app/ui/gallery/photo-frame-builder/photo-frame-builder.gallery.component.d.ts
ADDED
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { OnDestroy, OnInit, TemplateRef } from '@angular/core';
|
|
2
|
+
import { NotificationService } from '../../../model/notification.service';
|
|
3
|
+
import { BsModalService } from 'ngx-bootstrap/modal';
|
|
4
|
+
import { BsModalRef } from 'ngx-bootstrap/modal/bs-modal-ref.service';
|
|
5
|
+
import { Subscription } from 'rxjs';
|
|
6
|
+
import { ActivatedRoute, Router } from '@angular/router';
|
|
7
|
+
import { ContentLoaderService } from '../contentLoader.service';
|
|
8
|
+
export declare class PhotoFrameBuilderGalleryComponent implements OnInit, OnDestroy {
|
|
9
|
+
contentLoaderService: ContentLoaderService;
|
|
10
|
+
private notification;
|
|
11
|
+
private route;
|
|
12
|
+
private router;
|
|
13
|
+
private modalService;
|
|
14
|
+
enabled: boolean;
|
|
15
|
+
url: string;
|
|
16
|
+
autoPollInterval: number;
|
|
17
|
+
loopSlideshow: boolean;
|
|
18
|
+
captionAlwaysOn: boolean;
|
|
19
|
+
slideshowSpeed: number;
|
|
20
|
+
contentSubscription: Subscription;
|
|
21
|
+
modalRef: BsModalRef;
|
|
22
|
+
private readonly subscription;
|
|
23
|
+
constructor(contentLoaderService: ContentLoaderService, notification: NotificationService, route: ActivatedRoute, router: Router, modalService: BsModalService);
|
|
24
|
+
private buildUrl;
|
|
25
|
+
onOptionsChange(): void;
|
|
26
|
+
ngOnInit(): void;
|
|
27
|
+
ngOnDestroy(): void;
|
|
28
|
+
openModal(template: TemplateRef<unknown>): boolean;
|
|
29
|
+
onCopy(): void;
|
|
30
|
+
hideModal(): void;
|
|
31
|
+
}
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import { OnInit } from '@angular/core';
|
|
2
2
|
import { ControlValueAccessor, ValidationErrors, Validator } from '@angular/forms';
|
|
3
3
|
import { SortingMethod } from '../../../../../../../common/entities/SortingMethods';
|
|
4
|
+
import { NotificationService } from '../../../../../model/notification.service';
|
|
4
5
|
export declare class SortingMethodSettingsEntryComponent implements ControlValueAccessor, Validator, OnInit {
|
|
6
|
+
private notificationService;
|
|
5
7
|
sortingByEnum: Record<string, number | string> & {
|
|
6
8
|
[k: number]: string;
|
|
7
9
|
};
|
|
@@ -10,6 +12,7 @@ export declare class SortingMethodSettingsEntryComponent implements ControlValue
|
|
|
10
12
|
key: number;
|
|
11
13
|
value: string;
|
|
12
14
|
}[];
|
|
15
|
+
constructor(notificationService: NotificationService);
|
|
13
16
|
ngOnInit(): void;
|
|
14
17
|
onTouched(): void;
|
|
15
18
|
writeValue(obj: SortingMethod): void;
|
|
@@ -17,9 +20,9 @@ export declare class SortingMethodSettingsEntryComponent implements ControlValue
|
|
|
17
20
|
registerOnTouched(fn: () => void): void;
|
|
18
21
|
onChange(): void;
|
|
19
22
|
validate(): ValidationErrors;
|
|
20
|
-
private propagateChange;
|
|
21
|
-
private propagateTouch;
|
|
22
23
|
isBidirectional(value: number): boolean;
|
|
23
24
|
setSortingBy(key: number): void;
|
|
24
25
|
setSortingAscending(ascending: boolean): void;
|
|
26
|
+
private propagateChange;
|
|
27
|
+
private propagateTouch;
|
|
25
28
|
}
|
package/package.json
CHANGED