pigallery2-extension-kit 3.0.1 → 3.5.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.
Files changed (95) hide show
  1. package/README.md +3 -106
  2. package/REPOSITORY.md +2 -1
  3. package/lib/backend/Logger.d.ts +1 -1
  4. package/lib/backend/ProjectPath.js +1 -1
  5. package/lib/backend/exceptions/FileAlreadyExists.d.ts +4 -0
  6. package/lib/backend/middlewares/UploadMWs.d.ts +4 -0
  7. package/lib/backend/middlewares/VersionMWs.d.ts +4 -0
  8. package/lib/backend/middlewares/user/OIDCAuthService.d.ts +7 -0
  9. package/lib/backend/model/ObjectManagers.d.ts +6 -2
  10. package/lib/backend/model/UploadManager.d.ts +9 -0
  11. package/lib/backend/model/database/AlbumManager.d.ts +1 -1
  12. package/lib/backend/model/database/CoverManager.d.ts +1 -1
  13. package/lib/backend/model/database/IObjectManager.d.ts +2 -2
  14. package/lib/backend/model/database/IndexingManager.d.ts +1 -0
  15. package/lib/backend/model/database/PersonManager.d.ts +1 -1
  16. package/lib/backend/model/database/ProjectedCacheManager.d.ts +4 -0
  17. package/lib/backend/model/database/SearchManager.d.ts +1 -1
  18. package/lib/backend/model/extension/ExtensionRepository.d.ts +1 -0
  19. package/lib/backend/model/fileaccess/DiskManager.d.ts +2 -1
  20. package/lib/backend/model/jobs/JobManager.d.ts +1 -1
  21. package/lib/backend/model/jobs/jobs/AlbumCoverFillingJob.d.ts +1 -0
  22. package/lib/backend/model/jobs/jobs/AlbumCoverResetJob.d.ts +1 -0
  23. package/lib/backend/model/jobs/jobs/AlbumResetJob.d.ts +1 -0
  24. package/lib/backend/model/jobs/jobs/FileJob.d.ts +1 -0
  25. package/lib/backend/model/jobs/jobs/GPXCompressionJob.d.ts +1 -0
  26. package/lib/backend/model/jobs/jobs/GPXCompressionResetJob.d.ts +1 -0
  27. package/lib/backend/model/jobs/jobs/GalleryResetJob.d.ts +1 -0
  28. package/lib/backend/model/jobs/jobs/IndexingJob.d.ts +1 -0
  29. package/lib/backend/model/jobs/jobs/Job.d.ts +1 -0
  30. package/lib/backend/model/jobs/jobs/JobProgress.d.ts +2 -1
  31. package/lib/backend/model/jobs/jobs/PhotoConvertingJob.d.ts +1 -0
  32. package/lib/backend/model/jobs/jobs/TempFolderCleaningJob.d.ts +1 -0
  33. package/lib/backend/model/jobs/jobs/TopPickSendJob.d.ts +1 -0
  34. package/lib/backend/model/jobs/jobs/VideoConvertingJob.d.ts +1 -0
  35. package/lib/backend/routes/OIDCRouter.d.ts +7 -0
  36. package/lib/backend/routes/UploadRouter.d.ts +5 -0
  37. package/lib/common/CustomHeaders.d.ts +1 -0
  38. package/lib/common/DataStructureVersion.d.ts +1 -1
  39. package/lib/common/PG2ConfMap.d.ts +1 -0
  40. package/lib/common/QueryParams.d.ts +19 -1
  41. package/lib/common/SearchQueryParser.d.ts +11 -10
  42. package/lib/common/SearchQueryUtils.d.ts +13 -2
  43. package/lib/common/Utils.d.ts +7 -5
  44. package/lib/common/Utils.js +55 -19
  45. package/lib/common/config/private/Config.js +1 -0
  46. package/lib/common/config/private/PrivateConfig.d.ts +16 -1
  47. package/lib/common/config/private/PrivateConfig.js +161 -5
  48. package/lib/common/config/private/PrivateConfigClass.d.ts +2 -0
  49. package/lib/common/config/private/PrivateConfigClass.js +7 -0
  50. package/lib/common/config/public/ClientConfig.d.ts +34 -6
  51. package/lib/common/config/public/ClientConfig.js +239 -31
  52. package/lib/common/entities/AutoCompleteItem.d.ts +3 -3
  53. package/lib/common/entities/AutoCompleteItem.js +3 -3
  54. package/lib/common/entities/ContentWrapper.d.ts +38 -10
  55. package/lib/common/entities/ContentWrapper.js +171 -62
  56. package/lib/common/entities/Error.d.ts +2 -1
  57. package/lib/common/entities/Error.js +1 -0
  58. package/lib/common/entities/MediaDTO.d.ts +1 -0
  59. package/lib/common/entities/MediaDTO.js +6 -1
  60. package/lib/common/entities/SearchQueryDTO.d.ts +24 -41
  61. package/lib/common/entities/SearchQueryDTO.js +10 -19
  62. package/lib/common/entities/SortingMethods.d.ts +8 -0
  63. package/lib/common/entities/SortingMethods.js +10 -1
  64. package/lib/frontend/app/model/network/network.service.d.ts +4 -1
  65. package/lib/frontend/app/model/page.helper.d.ts +3 -2
  66. package/lib/frontend/app/model/query.service.d.ts +1 -1
  67. package/lib/frontend/app/model/version.service.d.ts +5 -1
  68. package/lib/frontend/app/ui/faces/faces.component.d.ts +1 -1
  69. package/lib/frontend/app/ui/faces/faces.service.d.ts +4 -0
  70. package/lib/frontend/app/ui/faces/navigator/navigator.faces.component.d.ts +15 -0
  71. package/lib/frontend/app/ui/frame/frame.component.d.ts +7 -2
  72. package/lib/frontend/app/ui/gallery/blog/blog.service.d.ts +1 -0
  73. package/lib/frontend/app/ui/gallery/cache.gallery.service.d.ts +5 -7
  74. package/lib/frontend/app/ui/gallery/contentLoader.service.d.ts +14 -11
  75. package/lib/frontend/app/ui/gallery/gallery.component.d.ts +12 -4
  76. package/lib/frontend/app/ui/gallery/gallery.service.d.ts +13 -0
  77. package/lib/frontend/app/ui/gallery/grid/grid.gallery.component.d.ts +4 -1
  78. package/lib/frontend/app/ui/gallery/lightbox/controls/controls.lightbox.gallery.component.d.ts +13 -20
  79. package/lib/frontend/app/ui/gallery/lightbox/lightbox.gallery.component.d.ts +1 -2
  80. package/lib/frontend/app/ui/gallery/lightbox/lightbox.service.d.ts +43 -4
  81. package/lib/frontend/app/ui/gallery/lightbox/media/media.lightbox.gallery.component.d.ts +5 -2
  82. package/lib/frontend/app/ui/gallery/map/lightbox/lightbox.map.gallery.component.d.ts +18 -12
  83. package/lib/frontend/app/ui/gallery/map/map.gallery.component.d.ts +5 -1
  84. package/lib/frontend/app/ui/gallery/navigator/navigator.service.d.ts +1 -0
  85. package/lib/frontend/app/ui/gallery/overlay.service.d.ts +2 -2
  86. package/lib/frontend/app/ui/gallery/photo-frame-builder/photo-frame-builder.gallery.component.d.ts +40 -0
  87. package/lib/frontend/app/ui/gallery/search/autocomplete.service.d.ts +1 -1
  88. package/lib/frontend/app/ui/gallery/search/query-enrty/query-entry.search.gallery.component.d.ts +2 -1
  89. package/lib/frontend/app/ui/gallery/search/search-query-parser.service.d.ts +0 -2
  90. package/lib/frontend/app/ui/gallery/thumbnailManager.service.d.ts +1 -1
  91. package/lib/frontend/app/ui/gallery/uploader/uploader.gallery.component.d.ts +15 -0
  92. package/lib/frontend/app/ui/gallery/uploader/uploader.service.d.ts +36 -0
  93. package/lib/frontend/app/ui/login/login.component.d.ts +3 -0
  94. package/lib/frontend/app/ui/settings/template/template.component.d.ts +1 -0
  95. package/package.json +1 -1
@@ -11,6 +11,8 @@ 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';
15
+ import { UploaderService } from '../gallery/uploader/uploader.service';
14
16
  export declare class FrameComponent {
15
17
  private authService;
16
18
  notificationService: NotificationService;
@@ -18,6 +20,8 @@ export declare class FrameComponent {
18
20
  private router;
19
21
  themeService: ThemeService;
20
22
  private deviceService;
23
+ galleryService: GalleryService;
24
+ uploadService: UploaderService;
21
25
  showSearch: boolean;
22
26
  showShare: boolean;
23
27
  readonly user: BehaviorSubject<UserDTO>;
@@ -32,17 +36,18 @@ export declare class FrameComponent {
32
36
  };
33
37
  readonly themesEnabled: boolean;
34
38
  readonly svgIcon: import("../../../../common/config/public/ClientConfig").SVGIconConfig;
35
- private lastScroll;
36
39
  shouldHideNavbar: boolean;
37
40
  navbarKeepTop: boolean;
38
41
  animateNavbar: boolean;
39
42
  fixNavbarOnTop: boolean;
43
+ dropdownMenu: ElementRef;
40
44
  navContainer: ElementRef;
41
45
  dropdown: BsDropdownDirective;
42
46
  languageSelector: LanguageComponent;
43
47
  ThemeModes: typeof ThemeModes;
44
48
  readonly enableScrollUpButton: boolean;
45
- constructor(authService: AuthenticationService, notificationService: NotificationService, queryService: QueryService, router: Router, themeService: ThemeService, deviceService: DeviceDetectorService);
49
+ private lastScroll;
50
+ constructor(authService: AuthenticationService, notificationService: NotificationService, queryService: QueryService, router: Router, themeService: ThemeService, deviceService: DeviceDetectorService, galleryService: GalleryService, uploadService: UploaderService);
46
51
  isAdmin(): boolean;
47
52
  isFacesAvailable(): boolean;
48
53
  isCustomLinksAvailable(): boolean;
@@ -10,6 +10,7 @@ export declare class BlogService {
10
10
  groupedMarkdowns: Observable<GroupedMarkdown[]>;
11
11
  private cache;
12
12
  constructor(networkService: NetworkService, galleryService: ContentService, mdFilesFilterPipe: MDFilesFilterPipe);
13
+ getMarkDowns(date: Date): Observable<GroupedMarkdown[]>;
13
14
  /**
14
15
  * Loads a Markdown file from the server and caches it
15
16
  * @param file
@@ -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): ContentWrapperWithError;
40
- setSearch(cw: ContentWrapperWithError): void;
41
- getDirectory(directoryName: string): ContentWrapperWithError;
42
- setDirectory(cw: ContentWrapper): void;
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,34 @@
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
- export declare class ContentLoaderService {
10
+ import { GalleryService } from './gallery.service';
11
+ import { SearchQueryDTO } from '../../../../common/entities/SearchQueryDTO';
12
+ export declare class ContentLoaderService implements OnDestroy {
11
13
  private networkService;
12
14
  private galleryCacheService;
13
15
  private shareService;
14
- private navigationService;
16
+ private galleryService;
15
17
  content: BehaviorSubject<ContentWrapperWithError>;
16
18
  originalContent: Observable<DirectoryContent>;
17
- lastRequest: {
18
- directory: string;
19
- };
20
- private searchId;
21
- private ongoingSearch;
22
- private currentContentRequest;
23
- constructor(networkService: NetworkService, galleryCacheService: GalleryCacheService, shareService: ShareService, navigationService: NavigationService);
19
+ private ongoingContentRequest;
20
+ private lastContentRequest;
21
+ private pollingTimerRestart;
22
+ private pollingSub;
23
+ constructor(networkService: NetworkService, galleryCacheService: GalleryCacheService, shareService: ShareService, galleryService: GalleryService);
24
+ ngOnDestroy(): void;
25
+ setupAutoUpdate(): void;
24
26
  setContent(content: ContentWrapperWithError): void;
25
27
  loadDirectory(directoryName: string, forceReload?: boolean): Promise<void>;
26
- search(query: string, forceReload?: boolean): Promise<void>;
28
+ search(query: SearchQueryDTO, forceReload?: boolean): Promise<void>;
27
29
  isSearchResult(): boolean;
28
30
  reloadCurrentContent(): Promise<void>;
31
+ private unSubPolling;
29
32
  }
30
33
  export interface DirectoryContent {
31
34
  directories: SubDirectoryDTO[];
@@ -12,9 +12,12 @@ import { GPXFilesFilterPipe } from '../../pipes/GPXFilesFilterPipe';
12
12
  import { MDFilesFilterPipe } from '../../pipes/MDFilesFilterPipe';
13
13
  import { ContentLoaderService } from './contentLoader.service';
14
14
  import { ContentWrapperWithError } from '../../../../common/entities/ContentWrapper';
15
+ import { UploaderService } from './uploader/uploader.service';
16
+ import { GalleryService } from './gallery.service';
15
17
  export declare class GalleryComponent implements OnInit, OnDestroy {
16
18
  contentLoader: ContentLoaderService;
17
- galleryService: ContentService;
19
+ contentService: ContentService;
20
+ galleryService: GalleryService;
18
21
  private authService;
19
22
  private router;
20
23
  private shareService;
@@ -25,6 +28,7 @@ export declare class GalleryComponent implements OnInit, OnDestroy {
25
28
  private piTitleService;
26
29
  private gpxFilesFilterPipe;
27
30
  private mdFilesFilterPipe;
31
+ uploaderService: UploaderService;
28
32
  grid: GalleryGridComponent;
29
33
  showSearchBar: boolean;
30
34
  showShare: boolean;
@@ -42,15 +46,19 @@ export declare class GalleryComponent implements OnInit, OnDestroy {
42
46
  };
43
47
  readonly mapEnabled: boolean;
44
48
  directoryContent: GroupedDirectoryContent;
49
+ isUploadOver: boolean;
45
50
  private $counter;
46
51
  private subscription;
47
- constructor(contentLoader: ContentLoaderService, galleryService: ContentService, authService: AuthenticationService, router: Router, shareService: ShareService, route: ActivatedRoute, navigation: NavigationService, filterService: FilterService, sortingService: GallerySortingService, piTitleService: PiTitleService, gpxFilesFilterPipe: GPXFilesFilterPipe, mdFilesFilterPipe: MDFilesFilterPipe);
52
+ constructor(contentLoader: ContentLoaderService, contentService: ContentService, galleryService: GalleryService, authService: AuthenticationService, router: Router, shareService: ShareService, route: ActivatedRoute, navigation: NavigationService, filterService: FilterService, sortingService: GallerySortingService, piTitleService: PiTitleService, gpxFilesFilterPipe: GPXFilesFilterPipe, mdFilesFilterPipe: MDFilesFilterPipe, uploaderService: UploaderService);
48
53
  get ContentWrapper(): ContentWrapperWithError;
54
+ get ShowMarkDown(): boolean;
55
+ get ShowMap(): boolean;
49
56
  updateTimer(t: number): void;
50
57
  ngOnDestroy(): void;
51
58
  ngOnInit(): Promise<boolean>;
59
+ onDragOver(event: DragEvent): void;
60
+ onDragLeave(event: DragEvent): void;
61
+ onDrop(event: DragEvent): void;
52
62
  private onRoute;
53
63
  private onContentChange;
54
- get ShowMarkDown(): boolean;
55
- get ShowMap(): boolean;
56
64
  }
@@ -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
+ }
@@ -9,6 +9,7 @@ import { QueryService } from '../../../model/query.service';
9
9
  import { MediaDTO } from '../../../../../common/entities/MediaDTO';
10
10
  import { GallerySortingService, MediaGroup } from '../navigator/sorting.service';
11
11
  import { GalleryNavigatorService } from '../navigator/navigator.service';
12
+ import { BlogService } from '../blog/blog.service';
12
13
  export declare class GalleryGridComponent implements OnInit, OnChanges, AfterViewInit, OnDestroy {
13
14
  private overlayService;
14
15
  private changeDetector;
@@ -17,12 +18,14 @@ export declare class GalleryGridComponent implements OnInit, OnChanges, AfterVie
17
18
  sortingService: GallerySortingService;
18
19
  navigatorService: GalleryNavigatorService;
19
20
  private route;
21
+ blogService: BlogService;
20
22
  gridContainer: ElementRef;
21
23
  gridPhotoQL: QueryList<GalleryPhotoComponent>;
22
24
  lightbox: GalleryLightboxComponent;
23
25
  mediaGroups: MediaGroup[];
24
26
  mediaToRender: GridMediaGroup[];
25
27
  containerWidth: number;
28
+ containerMinHeight: number;
26
29
  screenHeight: number;
27
30
  isAfterViewInit: boolean;
28
31
  subscriptions: {
@@ -48,7 +51,7 @@ export declare class GalleryGridComponent implements OnInit, OnChanges, AfterVie
48
51
  private MAX_ROW_COUNT;
49
52
  private onScrollFired;
50
53
  private helperTime;
51
- constructor(overlayService: OverlayService, changeDetector: ChangeDetectorRef, queryService: QueryService, router: Router, sortingService: GallerySortingService, navigatorService: GalleryNavigatorService, route: ActivatedRoute);
54
+ constructor(overlayService: OverlayService, changeDetector: ChangeDetectorRef, queryService: QueryService, router: Router, sortingService: GallerySortingService, navigatorService: GalleryNavigatorService, route: ActivatedRoute, blogService: BlogService);
52
55
  ngOnChanges(): void;
53
56
  ngOnInit(): void;
54
57
  ngOnDestroy(): void;
@@ -1,31 +1,27 @@
1
- import { ElementRef, EventEmitter, OnChanges, OnDestroy, OnInit } from '@angular/core';
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, OnInit, OnChanges {
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,9 +37,7 @@ 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
- controllersVisible: boolean;
47
41
  drag: {
48
42
  x: number;
49
43
  y: number;
@@ -54,15 +48,19 @@ export declare class ControlsLightboxComponent implements OnDestroy, OnInit, OnC
54
48
  height: number;
55
49
  };
56
50
  searchEnabled: boolean;
51
+ private ctx;
57
52
  private visibilityTimer;
58
53
  private timerSub;
59
54
  private prevDrag;
60
55
  private prevZoom;
61
- constructor(lightboxService: LightboxService, fullScreenService: FullScreenService, authService: AuthenticationService, cacheService: GalleryCacheService, fileSizePipe: FileSizePipe, datePipe: DatePipe);
56
+ constructor(lightboxService: LightboxService, fullScreenService: FullScreenService, authService: AuthenticationService, fileSizePipe: FileSizePipe, datePipe: DatePipe);
62
57
  get Zoom(): number;
63
58
  set Zoom(zoom: number);
59
+ get TopLeftTitle(): string;
60
+ get TopLeftSubtitle(): string;
61
+ get BottomLeftTitle(): string;
62
+ get BottomLeftSubtitle(): string;
64
63
  containerWidth(): void;
65
- ngOnInit(): void;
66
64
  ngOnDestroy(): void;
67
65
  ngOnChanges(): void;
68
66
  pan($event: {
@@ -84,11 +82,7 @@ export declare class ControlsLightboxComponent implements OnDestroy, OnInit, OnC
84
82
  zoomIn(): void;
85
83
  zoomOut(): void;
86
84
  onKeyPress(event: KeyboardEvent): void;
87
- private showNextMedia;
88
- private drawSliderProgress;
89
- private resetSlideshowTimer;
90
85
  runSlideShow(): void;
91
- slideshowSpeedChanged(): void;
92
86
  onMouseMove(): void;
93
87
  stopSlideShow(): void;
94
88
  playClicked(): void;
@@ -97,14 +91,13 @@ export declare class ControlsLightboxComponent implements OnDestroy, OnInit, OnC
97
91
  onResize(): void;
98
92
  closeLightbox(): void;
99
93
  getPersonSearchQuery(name: string): string;
94
+ nextMediaManuallyTriggered(): void;
95
+ getText(type: LightBoxTitleTexts[]): string;
96
+ private showNextMedia;
97
+ private drawSliderProgress;
98
+ private resetSlideshowTimer;
100
99
  private checkZoomAndDrag;
101
100
  private showControls;
102
101
  private hideControls;
103
102
  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
103
  }
@@ -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
- togglePlayback(value: boolean): void;
84
+ private onNavigateTo;
86
85
  private updateInfoPanelWidth;
87
86
  private runSlideShow;
88
87
  private stopSlideShow;
@@ -1,6 +1,45 @@
1
+ import { ActivatedRoute, Router } from '@angular/router';
2
+ import { LightBoxTitleTexts } from '../../../../../common/config/public/ClientConfig';
1
3
  export declare class LightboxService {
2
- captionAlwaysOn: boolean;
3
- facesAlwaysOn: boolean;
4
- loopVideos: boolean;
5
- loopSlideshow: boolean;
4
+ private route;
5
+ private router;
6
+ private subscription;
7
+ constructor(route: ActivatedRoute, router: Router);
8
+ private _slideshowSpeed;
9
+ get slideshowSpeed(): number;
10
+ set slideshowSpeed(value: number);
11
+ private _playback;
12
+ get playback(): boolean;
13
+ set playback(value: boolean);
14
+ private _facesAlwaysOn;
15
+ get facesAlwaysOn(): boolean;
16
+ set facesAlwaysOn(value: boolean);
17
+ private _loopVideos;
18
+ get loopVideos(): boolean;
19
+ set loopVideos(value: boolean);
20
+ private _loopSlideshow;
21
+ get loopSlideshow(): boolean;
22
+ set loopSlideshow(value: boolean);
23
+ private _captionAlwaysOn;
24
+ get captionAlwaysOn(): boolean;
25
+ set captionAlwaysOn(value: boolean);
26
+ private _controllersDimmed;
27
+ get controllersDimmed(): boolean;
28
+ set controllersDimmed(value: boolean);
29
+ private _topLeftTitle;
30
+ get topLeftTitle(): LightBoxTitleTexts[];
31
+ set topLeftTitle(value: LightBoxTitleTexts[]);
32
+ private _topLeftSubtitle;
33
+ get topLeftSubtitle(): LightBoxTitleTexts[];
34
+ set topLeftSubtitle(value: LightBoxTitleTexts[]);
35
+ private _bottomLeftTitle;
36
+ get bottomLeftTitle(): LightBoxTitleTexts[];
37
+ set bottomLeftTitle(value: LightBoxTitleTexts[]);
38
+ private _bottomLeftSubtitle;
39
+ get bottomLeftSubtitle(): LightBoxTitleTexts[];
40
+ set bottomLeftSubtitle(value: LightBoxTitleTexts[]);
41
+ ngOnDestroy(): void;
42
+ private updateQuery;
43
+ private serializeTitles;
44
+ private parseTitles;
6
45
  }
@@ -17,12 +17,12 @@ export declare class GalleryLightboxMediaComponent implements OnChanges {
17
17
  };
18
18
  videoSourceError: EventEmitter<any>;
19
19
  video: ElementRef<HTMLVideoElement>;
20
+ imageElement: ElementRef<HTMLImageElement>;
20
21
  prevGirdPhoto: GridMedia;
21
22
  imageSize: {
22
23
  width: string;
23
24
  height: string;
24
25
  };
25
- private nextImage;
26
26
  imageLoadFinished: {
27
27
  this: boolean;
28
28
  next: boolean;
@@ -33,6 +33,7 @@ export declare class GalleryLightboxMediaComponent implements OnChanges {
33
33
  isBestFit: boolean;
34
34
  };
35
35
  transcodeNeedVideos: string[];
36
+ private nextImage;
36
37
  private mediaLoaded;
37
38
  private videoProgress;
38
39
  constructor(elementRef: ElementRef, lightboxService: LightboxService, sanitizer: DomSanitizer);
@@ -44,6 +45,8 @@ export declare class GalleryLightboxMediaComponent implements OnChanges {
44
45
  get Muted(): boolean;
45
46
  get Paused(): boolean;
46
47
  private get ThumbnailUrl();
48
+ isRenderedMediaLoaded(): boolean;
49
+ isNextMediaLoaded(): boolean;
47
50
  ngOnChanges(): void;
48
51
  mute(): void;
49
52
  playPause(): void;
@@ -51,6 +54,7 @@ export declare class GalleryLightboxMediaComponent implements OnChanges {
51
54
  onImageLoad(): void;
52
55
  showThumbnail(): boolean;
53
56
  onSourceError(): void;
57
+ onVideoProgress(): void;
54
58
  /**
55
59
  * Loads next photo to faster show it on navigation.
56
60
  * Called after the current photo is loaded
@@ -63,6 +67,5 @@ export declare class GalleryLightboxMediaComponent implements OnChanges {
63
67
  */
64
68
  private isPreviewAdequateForLightbox;
65
69
  private loadPhoto;
66
- onVideoProgress(): void;
67
70
  private setImageSize;
68
71
  }
@@ -1,4 +1,4 @@
1
- import { ElementRef, OnChanges, OnDestroy } from '@angular/core';
1
+ import { ElementRef, OnChanges, OnDestroy, SimpleChanges } from '@angular/core';
2
2
  import { PhotoDTO } from '../../../../../../common/entities/PhotoDTO';
3
3
  import { Dimension } from '../../../../model/IRenderable';
4
4
  import { FullScreenService } from '../../fullscreen.service';
@@ -7,16 +7,21 @@ import { FileDTO } from '../../../../../../common/entities/FileDTO';
7
7
  import { MapService } from '../map.service';
8
8
  import { Control, Map, MapOptions, TileLayer } from 'leaflet';
9
9
  import { ThemeService } from '../../../../model/theme.service';
10
- import { Subscription } from 'rxjs';
11
10
  import { DurationPipe } from '../../../../pipes/DurationPipe';
11
+ import { ActivatedRoute, Router } from '@angular/router';
12
+ import { QueryService } from '../../../../model/query.service';
12
13
  export declare class GalleryMapLightboxComponent implements OnChanges, OnDestroy {
13
14
  fullScreenService: FullScreenService;
14
15
  private thumbnailService;
15
16
  mapService: MapService;
16
17
  private themeService;
18
+ private route;
19
+ private queryService;
20
+ private router;
17
21
  private durationPipe;
18
22
  photos: PhotoDTO[];
19
23
  gpxFiles: FileDTO[];
24
+ parentDimension: Dimension;
20
25
  lightboxDimension: Dimension;
21
26
  mapDimension: Dimension;
22
27
  visible: boolean;
@@ -26,27 +31,24 @@ export declare class GalleryMapLightboxComponent implements OnChanges, OnDestroy
26
31
  mapOptions: MapOptions;
27
32
  defLayer: TileLayer;
28
33
  darkLayer: TileLayer;
34
+ mapLayerControl: Control.Layers;
35
+ private subscription;
29
36
  private smallIconSize;
30
37
  private iconSize;
31
38
  private usedIconSize;
32
39
  private mapLayersControlOption;
33
40
  private pathLayersConfigOrdered;
34
- mapLayerControl: Control.Layers;
35
41
  private thumbnailsOnLoad;
36
- private startPosition;
37
42
  private leafletMap;
38
- darkModeSubscription: Subscription;
39
43
  private longPathSEPairs;
40
- constructor(fullScreenService: FullScreenService, thumbnailService: ThumbnailManagerService, mapService: MapService, themeService: ThemeService, durationPipe: DurationPipe);
41
- setUpPathLayers(): void;
42
- ngOnDestroy(): void;
43
- private selectBaseLayer;
44
+ constructor(fullScreenService: FullScreenService, thumbnailService: ThumbnailManagerService, mapService: MapService, themeService: ThemeService, route: ActivatedRoute, queryService: QueryService, router: Router, durationPipe: DurationPipe);
44
45
  private static getScreenWidth;
45
46
  private static getScreenHeight;
46
- ngOnChanges(): void;
47
+ setUpPathLayers(): void;
48
+ ngOnInit(): void;
49
+ ngOnDestroy(): void;
50
+ ngOnChanges(changes: SimpleChanges): void;
47
51
  onResize(): Promise<void>;
48
- show(position: Dimension): Promise<void>;
49
- hide(): void;
50
52
  showImages(): void;
51
53
  loadPreview(mp: MapPhoto): void;
52
54
  clearMap(): void;
@@ -55,6 +57,10 @@ export declare class GalleryMapLightboxComponent implements OnChanges, OnDestroy
55
57
  onKeyPress(event: KeyboardEvent): void;
56
58
  onMapReady(map: Map): void;
57
59
  onLeafletZoom(): void;
60
+ close(): void;
61
+ private show;
62
+ private hide;
63
+ private selectBaseLayer;
58
64
  private centerMap;
59
65
  private addArchForLongDistancePaths;
60
66
  private loadGPXFiles;
@@ -7,8 +7,12 @@ import { MapService } from './map.service';
7
7
  import { Map, MapOptions, Marker, TileLayer } from 'leaflet';
8
8
  import { ThemeService } from '../../../model/theme.service';
9
9
  import { Subscription } from 'rxjs';
10
+ import { QueryService } from '../../../model/query.service';
11
+ import { Router } from '@angular/router';
10
12
  export declare class GalleryMapComponent implements OnChanges, IRenderable {
11
13
  mapService: MapService;
14
+ private queryService;
15
+ private router;
12
16
  private themeService;
13
17
  photos: PhotoDTO[];
14
18
  gpxFiles: FileDTO[];
@@ -22,7 +26,7 @@ export declare class GalleryMapComponent implements OnChanges, IRenderable {
22
26
  options: MapOptions;
23
27
  markerLayer: Marker[];
24
28
  darkModeSubscription: Subscription;
25
- constructor(mapService: MapService, themeService: ThemeService);
29
+ constructor(mapService: MapService, queryService: QueryService, router: Router, themeService: ThemeService);
26
30
  ngOnDestroy(): void;
27
31
  initThemeModes(): void;
28
32
  onMapReady(map: Map): void;
@@ -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;
@@ -2,8 +2,8 @@ import { Event } from '../../../../common/event/Event';
2
2
  export declare class OverlayService {
3
3
  OnOverlayChange: Event<boolean>;
4
4
  private scrollWidth;
5
- showOverlay(): void;
6
- hideOverlay(): void;
5
+ showOverlay(requester: string): void;
6
+ hideOverlay(requester: string): void;
7
7
  getScrollbarWidth(): number;
8
8
  getPhantomScrollbarWidth(): number;
9
9
  }
@@ -0,0 +1,40 @@
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
+ showSettings: boolean;
17
+ autoPollInterval: number;
18
+ loopSlideshow: boolean;
19
+ captionAlwaysOn: boolean;
20
+ hideControls: boolean;
21
+ slideshowSpeed: number;
22
+ topLeftTitle: string[];
23
+ topLeftSubtitle: string[];
24
+ bottomLeftTitle: string[];
25
+ bottomLeftSubtitle: string[];
26
+ readonly LightBoxTitleTextsArr: string[];
27
+ contentSubscription: Subscription;
28
+ modalRef: BsModalRef;
29
+ private readonly subscription;
30
+ constructor(contentLoaderService: ContentLoaderService, notification: NotificationService, route: ActivatedRoute, router: Router, modalService: BsModalService);
31
+ private buildUrl;
32
+ onOptionsChange(): void;
33
+ trackByIndex(index: number): number;
34
+ toggleSettings(): void;
35
+ ngOnInit(): void;
36
+ ngOnDestroy(): void;
37
+ openModal(template: TemplateRef<unknown>): boolean;
38
+ onCopy(): void;
39
+ hideModal(): void;
40
+ }
@@ -15,8 +15,8 @@ export declare class AutoCompleteService {
15
15
  current: string;
16
16
  prev: string;
17
17
  }): BehaviorSubject<RenderableAutoCompleteItem[]>;
18
- private typedAutoComplete;
19
18
  getPrefixLessSearchText(text: string): string;
19
+ private typedAutoComplete;
20
20
  /**
21
21
  * Returns with the type or tells no autocompete recommendations from the server
22
22
  * @param text
@@ -16,6 +16,7 @@ export declare class GallerySearchQueryEntryComponent implements ControlValueAcc
16
16
  constructor();
17
17
  get IsTextQuery(): boolean;
18
18
  get IsListQuery(): boolean;
19
+ get IsRangeQuery(): boolean;
19
20
  get AsListQuery(): SearchListQuery;
20
21
  get AsRangeQuery(): RangeSearch;
21
22
  get AsOrientationQuery(): OrientationSearch;
@@ -23,10 +24,10 @@ export declare class GallerySearchQueryEntryComponent implements ControlValueAcc
23
24
  get AsDistanceQuery(): DistanceSearch;
24
25
  get AsSomeOfQuery(): SomeOfSearchQuery;
25
26
  get AsTextQuery(): TextSearch;
26
- validate(control: UntypedFormControl): ValidationErrors;
27
27
  get MatchingTypes(): string[];
28
28
  get SelectedMatchType(): string;
29
29
  set SelectedMatchType(value: string);
30
+ validate(control: UntypedFormControl): ValidationErrors;
30
31
  addQuery(): void;
31
32
  onChangeType(): void;
32
33
  onLocationInputChange(value: string): void;
@@ -1,7 +1,5 @@
1
- import { QueryKeywords } from '../../../../../common/SearchQueryParser';
2
1
  import { SearchQueryDTO } from '../../../../../common/entities/SearchQueryDTO';
3
2
  export declare class SearchQueryParserService {
4
- readonly keywords: QueryKeywords;
5
3
  private readonly parser;
6
4
  constructor();
7
5
  parse(str: string): SearchQueryDTO;
@@ -38,7 +38,7 @@ export declare class IconThumbnail extends ThumbnailBase {
38
38
  set Visible(visible: boolean);
39
39
  }
40
40
  export declare class Thumbnail extends ThumbnailBase {
41
- private media;
41
+ readonly media: Media;
42
42
  constructor(media: Media, thumbnailService: ThumbnailLoaderService, autoLoad?: boolean);
43
43
  set CurrentlyWaiting(value: boolean);
44
44
  set Visible(visible: boolean);
@@ -0,0 +1,15 @@
1
+ import { ChangeDetectorRef } from '@angular/core';
2
+ import { UploaderService } from './uploader.service';
3
+ export declare class UploaderComponent {
4
+ uploaderService: UploaderService;
5
+ private cdr;
6
+ readonly Date: DateConstructor;
7
+ isUploadOver: boolean;
8
+ showDetails: boolean;
9
+ private timer;
10
+ constructor(uploaderService: UploaderService, cdr: ChangeDetectorRef);
11
+ ngOnInit(): void;
12
+ ngOnDestroy(): void;
13
+ toggleDetails(): void;
14
+ getOverallProgress(): number;
15
+ }