pigallery2-extension-kit 3.1.0 → 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 (60) hide show
  1. package/README.md +3 -106
  2. package/REPOSITORY.md +1 -0
  3. package/lib/backend/exceptions/FileAlreadyExists.d.ts +4 -0
  4. package/lib/backend/middlewares/UploadMWs.d.ts +4 -0
  5. package/lib/backend/middlewares/user/OIDCAuthService.d.ts +7 -0
  6. package/lib/backend/model/ObjectManagers.d.ts +6 -2
  7. package/lib/backend/model/UploadManager.d.ts +9 -0
  8. package/lib/backend/model/database/IObjectManager.d.ts +2 -2
  9. package/lib/backend/model/database/PersonManager.d.ts +1 -1
  10. package/lib/backend/model/database/ProjectedCacheManager.d.ts +1 -0
  11. package/lib/backend/model/database/SearchManager.d.ts +1 -1
  12. package/lib/backend/model/fileaccess/DiskManager.d.ts +2 -1
  13. package/lib/backend/routes/OIDCRouter.d.ts +7 -0
  14. package/lib/backend/routes/UploadRouter.d.ts +5 -0
  15. package/lib/common/DataStructureVersion.d.ts +1 -1
  16. package/lib/common/PG2ConfMap.d.ts +1 -0
  17. package/lib/common/QueryParams.d.ts +10 -1
  18. package/lib/common/SearchQueryParser.d.ts +11 -10
  19. package/lib/common/SearchQueryUtils.d.ts +13 -2
  20. package/lib/common/Utils.d.ts +7 -5
  21. package/lib/common/Utils.js +55 -19
  22. package/lib/common/config/private/PrivateConfig.d.ts +16 -1
  23. package/lib/common/config/private/PrivateConfig.js +161 -5
  24. package/lib/common/config/public/ClientConfig.d.ts +22 -1
  25. package/lib/common/config/public/ClientConfig.js +145 -5
  26. package/lib/common/entities/AutoCompleteItem.d.ts +3 -3
  27. package/lib/common/entities/AutoCompleteItem.js +3 -3
  28. package/lib/common/entities/Error.d.ts +2 -1
  29. package/lib/common/entities/Error.js +1 -0
  30. package/lib/common/entities/SearchQueryDTO.d.ts +24 -41
  31. package/lib/common/entities/SearchQueryDTO.js +10 -19
  32. package/lib/common/entities/SortingMethods.d.ts +8 -0
  33. package/lib/common/entities/SortingMethods.js +10 -1
  34. package/lib/frontend/app/model/network/network.service.d.ts +4 -1
  35. package/lib/frontend/app/model/page.helper.d.ts +3 -2
  36. package/lib/frontend/app/model/query.service.d.ts +1 -0
  37. package/lib/frontend/app/ui/faces/faces.component.d.ts +1 -1
  38. package/lib/frontend/app/ui/faces/faces.service.d.ts +4 -0
  39. package/lib/frontend/app/ui/faces/navigator/navigator.faces.component.d.ts +15 -0
  40. package/lib/frontend/app/ui/frame/frame.component.d.ts +5 -2
  41. package/lib/frontend/app/ui/gallery/blog/blog.service.d.ts +1 -0
  42. package/lib/frontend/app/ui/gallery/contentLoader.service.d.ts +2 -1
  43. package/lib/frontend/app/ui/gallery/gallery.component.d.ts +12 -4
  44. package/lib/frontend/app/ui/gallery/grid/grid.gallery.component.d.ts +3 -1
  45. package/lib/frontend/app/ui/gallery/lightbox/controls/controls.lightbox.gallery.component.d.ts +0 -1
  46. package/lib/frontend/app/ui/gallery/lightbox/lightbox.service.d.ts +18 -0
  47. package/lib/frontend/app/ui/gallery/lightbox/media/media.lightbox.gallery.component.d.ts +5 -2
  48. package/lib/frontend/app/ui/gallery/map/lightbox/lightbox.map.gallery.component.d.ts +18 -12
  49. package/lib/frontend/app/ui/gallery/map/map.gallery.component.d.ts +5 -1
  50. package/lib/frontend/app/ui/gallery/overlay.service.d.ts +2 -2
  51. package/lib/frontend/app/ui/gallery/photo-frame-builder/photo-frame-builder.gallery.component.d.ts +9 -0
  52. package/lib/frontend/app/ui/gallery/search/autocomplete.service.d.ts +1 -1
  53. package/lib/frontend/app/ui/gallery/search/query-enrty/query-entry.search.gallery.component.d.ts +2 -1
  54. package/lib/frontend/app/ui/gallery/search/search-query-parser.service.d.ts +0 -2
  55. package/lib/frontend/app/ui/gallery/thumbnailManager.service.d.ts +1 -1
  56. package/lib/frontend/app/ui/gallery/uploader/uploader.gallery.component.d.ts +15 -0
  57. package/lib/frontend/app/ui/gallery/uploader/uploader.service.d.ts +36 -0
  58. package/lib/frontend/app/ui/login/login.component.d.ts +3 -0
  59. package/lib/frontend/app/ui/settings/template/template.component.d.ts +1 -0
  60. package/package.json +1 -1
@@ -4,14 +4,10 @@ export declare enum SearchQueryTypes {
4
4
  OR = 2,
5
5
  SOME_OF = 3,
6
6
  UNKNOWN_RELATION = 99999,
7
- from_date = 10,
8
- to_date = 11,
9
- min_rating = 12,
10
- max_rating = 13,
11
- min_resolution = 14,
12
- max_resolution = 15,
13
- min_person_count = 16,
14
- max_person_count = 17,
7
+ date = 10,
8
+ rating = 12,
9
+ resolution = 14,
10
+ person_count = 16,
15
11
  distance = 50,
16
12
  orientation = 51,
17
13
  date_pattern = 60,
@@ -25,8 +21,6 @@ export declare enum SearchQueryTypes {
25
21
  }
26
22
  export declare const ListSearchQueryTypes: SearchQueryTypes[];
27
23
  export declare const TextSearchQueryTypes: SearchQueryTypes[];
28
- export declare const MinRangeSearchQueryTypes: SearchQueryTypes[];
29
- export declare const MaxRangeSearchQueryTypes: SearchQueryTypes[];
30
24
  export declare const RangeSearchQueryTypes: SearchQueryTypes[];
31
25
  export declare const MetadataSearchQueryTypes: SearchQueryTypes[];
32
26
  export declare enum TextSearchQueryMatchTypes {
@@ -58,50 +52,39 @@ export interface SomeOfSearchQuery extends SearchQueryDTO, SearchListQuery {
58
52
  export interface TextSearch extends NegatableSearchQuery {
59
53
  type: SearchQueryTypes.any_text | SearchQueryTypes.person | SearchQueryTypes.keyword | SearchQueryTypes.position | SearchQueryTypes.caption | SearchQueryTypes.file_name | SearchQueryTypes.directory;
60
54
  matchType?: TextSearchQueryMatchTypes;
61
- text: string;
55
+ value: string;
62
56
  }
63
57
  export interface DistanceSearch extends NegatableSearchQuery {
64
58
  type: SearchQueryTypes.distance;
65
59
  from: {
66
- text?: string;
60
+ value?: string;
67
61
  GPSData?: GPSMetadata;
68
62
  };
69
63
  distance: number;
70
64
  }
71
65
  export interface RangeSearch extends NegatableSearchQuery {
72
- value: number;
73
- }
74
- export interface FromDateSearch extends RangeSearch {
75
- type: SearchQueryTypes.from_date;
76
- value: number;
77
- }
78
- export interface ToDateSearch extends RangeSearch {
79
- type: SearchQueryTypes.to_date;
80
- value: number;
81
- }
82
- export interface MinRatingSearch extends RangeSearch {
83
- type: SearchQueryTypes.min_rating;
84
- value: number;
85
- }
86
- export interface MaxRatingSearch extends RangeSearch {
87
- type: SearchQueryTypes.max_rating;
88
- value: number;
66
+ min?: number;
67
+ max?: number;
89
68
  }
90
- export interface MinPersonCountSearch extends RangeSearch {
91
- type: SearchQueryTypes.min_person_count;
92
- value: number;
69
+ export interface DateSearch extends RangeSearch {
70
+ type: SearchQueryTypes.date;
71
+ min?: number;
72
+ max?: number;
93
73
  }
94
- export interface MaxPersonCountSearch extends RangeSearch {
95
- type: SearchQueryTypes.max_person_count;
96
- value: number;
74
+ export interface RatingSearch extends RangeSearch {
75
+ type: SearchQueryTypes.rating;
76
+ min?: number;
77
+ max?: number;
97
78
  }
98
- export interface MinResolutionSearch extends RangeSearch {
99
- type: SearchQueryTypes.min_resolution;
100
- value: number;
79
+ export interface PersonCountSearch extends RangeSearch {
80
+ type: SearchQueryTypes.person_count;
81
+ min?: number;
82
+ max?: number;
101
83
  }
102
- export interface MaxResolutionSearch extends RangeSearch {
103
- type: SearchQueryTypes.max_resolution;
104
- value: number;
84
+ export interface ResolutionSearch extends RangeSearch {
85
+ type: SearchQueryTypes.resolution;
86
+ min?: number;
87
+ max?: number;
105
88
  }
106
89
  export interface OrientationSearch {
107
90
  type: SearchQueryTypes.orientation;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.DatePatternFrequency = exports.TextSearchQueryMatchTypes = exports.MetadataSearchQueryTypes = exports.RangeSearchQueryTypes = exports.MaxRangeSearchQueryTypes = exports.MinRangeSearchQueryTypes = exports.TextSearchQueryTypes = exports.ListSearchQueryTypes = exports.SearchQueryTypes = void 0;
3
+ exports.DatePatternFrequency = exports.TextSearchQueryMatchTypes = exports.MetadataSearchQueryTypes = exports.RangeSearchQueryTypes = exports.TextSearchQueryTypes = exports.ListSearchQueryTypes = exports.SearchQueryTypes = void 0;
4
4
  var SearchQueryTypes;
5
5
  (function (SearchQueryTypes) {
6
6
  SearchQueryTypes[SearchQueryTypes["AND"] = 1] = "AND";
@@ -9,14 +9,10 @@ var SearchQueryTypes;
9
9
  SearchQueryTypes[SearchQueryTypes["UNKNOWN_RELATION"] = 99999] = "UNKNOWN_RELATION";
10
10
  // non-text metadata
11
11
  // |- range types
12
- SearchQueryTypes[SearchQueryTypes["from_date"] = 10] = "from_date";
13
- SearchQueryTypes[SearchQueryTypes["to_date"] = 11] = "to_date";
14
- SearchQueryTypes[SearchQueryTypes["min_rating"] = 12] = "min_rating";
15
- SearchQueryTypes[SearchQueryTypes["max_rating"] = 13] = "max_rating";
16
- SearchQueryTypes[SearchQueryTypes["min_resolution"] = 14] = "min_resolution";
17
- SearchQueryTypes[SearchQueryTypes["max_resolution"] = 15] = "max_resolution";
18
- SearchQueryTypes[SearchQueryTypes["min_person_count"] = 16] = "min_person_count";
19
- SearchQueryTypes[SearchQueryTypes["max_person_count"] = 17] = "max_person_count";
12
+ SearchQueryTypes[SearchQueryTypes["date"] = 10] = "date";
13
+ SearchQueryTypes[SearchQueryTypes["rating"] = 12] = "rating";
14
+ SearchQueryTypes[SearchQueryTypes["resolution"] = 14] = "resolution";
15
+ SearchQueryTypes[SearchQueryTypes["person_count"] = 16] = "person_count";
20
16
  SearchQueryTypes[SearchQueryTypes["distance"] = 50] = "distance";
21
17
  SearchQueryTypes[SearchQueryTypes["orientation"] = 51] = "orientation";
22
18
  SearchQueryTypes[SearchQueryTypes["date_pattern"] = 60] = "date_pattern";
@@ -43,17 +39,12 @@ exports.TextSearchQueryTypes = [
43
39
  SearchQueryTypes.person,
44
40
  SearchQueryTypes.position,
45
41
  ];
46
- exports.MinRangeSearchQueryTypes = [
47
- SearchQueryTypes.from_date,
48
- SearchQueryTypes.min_rating,
49
- SearchQueryTypes.min_resolution,
42
+ exports.RangeSearchQueryTypes = [
43
+ SearchQueryTypes.date,
44
+ SearchQueryTypes.rating,
45
+ SearchQueryTypes.resolution,
46
+ SearchQueryTypes.person_count,
50
47
  ];
51
- exports.MaxRangeSearchQueryTypes = [
52
- SearchQueryTypes.to_date,
53
- SearchQueryTypes.max_rating,
54
- SearchQueryTypes.max_resolution,
55
- ];
56
- exports.RangeSearchQueryTypes = exports.MinRangeSearchQueryTypes.concat(exports.MaxRangeSearchQueryTypes);
57
48
  exports.MetadataSearchQueryTypes = [
58
49
  SearchQueryTypes.distance,
59
50
  SearchQueryTypes.orientation,
@@ -1,6 +1,14 @@
1
1
  /**
2
2
  * Warning: Enum Values in this file should be unique within the file!
3
3
  * */
4
+ /**
5
+ * FaceSortByTypes is a subset of SortByDirectionalTypes, their values should match.
6
+ * They are not merged programatically due to the ordering issue.
7
+ */
8
+ export declare enum FaceSortByTypes {
9
+ Name = 10,
10
+ PersonCount = 40
11
+ }
4
12
  export declare enum SortByDirectionalTypes {
5
13
  Name = 10,
6
14
  Date = 20,
@@ -3,7 +3,16 @@
3
3
  * Warning: Enum Values in this file should be unique within the file!
4
4
  * */
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.GroupSortByTypes = exports.GroupByTypes = exports.SortByTypes = exports.GroupByBasicTypes = exports.SortByBasicTypes = exports.SortByDirectionalTypes = void 0;
6
+ exports.GroupSortByTypes = exports.GroupByTypes = exports.SortByTypes = exports.GroupByBasicTypes = exports.SortByBasicTypes = exports.SortByDirectionalTypes = exports.FaceSortByTypes = void 0;
7
+ /**
8
+ * FaceSortByTypes is a subset of SortByDirectionalTypes, their values should match.
9
+ * They are not merged programatically due to the ordering issue.
10
+ */
11
+ var FaceSortByTypes;
12
+ (function (FaceSortByTypes) {
13
+ FaceSortByTypes[FaceSortByTypes["Name"] = 10] = "Name";
14
+ FaceSortByTypes[FaceSortByTypes["PersonCount"] = 40] = "PersonCount";
15
+ })(FaceSortByTypes || (exports.FaceSortByTypes = FaceSortByTypes = {}));
7
16
  var SortByDirectionalTypes;
8
17
  (function (SortByDirectionalTypes) {
9
18
  SortByDirectionalTypes[SortByDirectionalTypes["Name"] = 10] = "Name";
@@ -1,7 +1,9 @@
1
- import { HttpClient } from '@angular/common/http';
1
+ import { HttpClient, HttpEvent } from '@angular/common/http';
2
+ import { Message } from '../../../../common/entities/Message';
2
3
  import { LoadingBarService } from '@ngx-loading-bar/core';
3
4
  import { ErrorDTO } from '../../../../common/entities/Error';
4
5
  import { VersionService } from '../version.service';
6
+ import { Observable } from 'rxjs';
5
7
  export declare class NetworkService {
6
8
  private http;
7
9
  private loadingBarService;
@@ -15,6 +17,7 @@ export declare class NetworkService {
15
17
  getXML(url: string): Promise<Document>;
16
18
  getText(url: string): Promise<string>;
17
19
  postJson<T>(url: string, data?: {}): Promise<T>;
20
+ postFormData<T>(url: string, data: FormData): Observable<HttpEvent<Message<T>>>;
18
21
  putJson<T>(url: string, data?: {}): Promise<T>;
19
22
  getJson<T>(url: string, query?: {
20
23
  [key: string]: any;
@@ -2,13 +2,14 @@ export declare class PageHelper {
2
2
  private static readonly body;
3
3
  private static readonly supportPageOffset;
4
4
  private static readonly isCSS1Compat;
5
+ private static scrollLocks;
5
6
  static get ScrollY(): number;
6
7
  static set ScrollY(value: number);
7
8
  static get OverflowY(): string;
8
9
  static set OverflowY(value: string);
9
10
  static get MaxScrollY(): number;
10
11
  static get ScrollX(): number;
11
- static showScrollY(): void;
12
+ static showScrollY(requester: string): void;
12
13
  static isScrollYVisible(): boolean;
13
- static hideScrollY(): void;
14
+ static hideScrollY(requester: string): void;
14
15
  }
@@ -9,6 +9,7 @@ export declare class QueryService {
9
9
  getMediaStringId(media: MediaDTO): string;
10
10
  getParams(lightbox?: {
11
11
  media?: MediaDTO;
12
+ map?: boolean;
12
13
  }): {
13
14
  [key: string]: string;
14
15
  };
@@ -1,8 +1,8 @@
1
1
  import { ElementRef, OnInit } from '@angular/core';
2
2
  import { FacesService } from './faces.service';
3
3
  import { QueryService } from '../../model/query.service';
4
- import { PersonDTO } from '../../../../common/entities/PersonDTO';
5
4
  import { Observable } from 'rxjs';
5
+ import { PersonDTO } from '../../../../common/entities/PersonDTO';
6
6
  import { PiTitleService } from '../../model/pi-title.service';
7
7
  export declare class FacesComponent implements OnInit {
8
8
  facesService: FacesService;
@@ -1,10 +1,14 @@
1
1
  import { NetworkService } from '../../model/network/network.service';
2
2
  import { BehaviorSubject } from 'rxjs';
3
3
  import { PersonDTO } from '../../../../common/entities/PersonDTO';
4
+ import { SortingMethod } from '../../../../common/entities/SortingMethods';
4
5
  export declare class FacesService {
5
6
  private networkService;
6
7
  persons: BehaviorSubject<PersonDTO[]>;
8
+ sorting: BehaviorSubject<SortingMethod>;
7
9
  constructor(networkService: NetworkService);
10
+ isDefaultSorting(): boolean;
8
11
  setFavourite(person: PersonDTO, isFavourite: boolean): Promise<void>;
9
12
  getPersons(): Promise<void>;
13
+ setSorting(sorting: SortingMethod): void;
10
14
  }
@@ -0,0 +1,15 @@
1
+ import { FacesService } from '../faces.service';
2
+ export declare class FacesNavigatorComponent {
3
+ facesService: FacesService;
4
+ readonly sortingByTypes: {
5
+ key: number;
6
+ value: string;
7
+ }[];
8
+ readonly config: import("typeconfig").IWebConfigClass<{
9
+ [key: string]: any;
10
+ }> & import("../../../../../common/config/public/Config").ClientClass;
11
+ constructor(facesService: FacesService);
12
+ isDefaultSorting(): boolean;
13
+ setSortingBy(sorting: number): void;
14
+ setSortingAscending(asc: boolean): void;
15
+ }
@@ -12,6 +12,7 @@ import { LanguageComponent } from '../language/language.component';
12
12
  import { ThemeService } from '../../model/theme.service';
13
13
  import { DeviceDetectorService } from 'ngx-device-detector';
14
14
  import { GalleryService } from '../gallery/gallery.service';
15
+ import { UploaderService } from '../gallery/uploader/uploader.service';
15
16
  export declare class FrameComponent {
16
17
  private authService;
17
18
  notificationService: NotificationService;
@@ -20,6 +21,7 @@ export declare class FrameComponent {
20
21
  themeService: ThemeService;
21
22
  private deviceService;
22
23
  galleryService: GalleryService;
24
+ uploadService: UploaderService;
23
25
  showSearch: boolean;
24
26
  showShare: boolean;
25
27
  readonly user: BehaviorSubject<UserDTO>;
@@ -34,17 +36,18 @@ export declare class FrameComponent {
34
36
  };
35
37
  readonly themesEnabled: boolean;
36
38
  readonly svgIcon: import("../../../../common/config/public/ClientConfig").SVGIconConfig;
37
- private lastScroll;
38
39
  shouldHideNavbar: boolean;
39
40
  navbarKeepTop: boolean;
40
41
  animateNavbar: boolean;
41
42
  fixNavbarOnTop: boolean;
43
+ dropdownMenu: ElementRef;
42
44
  navContainer: ElementRef;
43
45
  dropdown: BsDropdownDirective;
44
46
  languageSelector: LanguageComponent;
45
47
  ThemeModes: typeof ThemeModes;
46
48
  readonly enableScrollUpButton: boolean;
47
- constructor(authService: AuthenticationService, notificationService: NotificationService, queryService: QueryService, router: Router, themeService: ThemeService, deviceService: DeviceDetectorService, galleryService: GalleryService);
49
+ private lastScroll;
50
+ constructor(authService: AuthenticationService, notificationService: NotificationService, queryService: QueryService, router: Router, themeService: ThemeService, deviceService: DeviceDetectorService, galleryService: GalleryService, uploadService: UploaderService);
48
51
  isAdmin(): boolean;
49
52
  isFacesAvailable(): boolean;
50
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
@@ -8,6 +8,7 @@ import { ShareService } from './share.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
+ import { SearchQueryDTO } from '../../../../common/entities/SearchQueryDTO';
11
12
  export declare class ContentLoaderService implements OnDestroy {
12
13
  private networkService;
13
14
  private galleryCacheService;
@@ -24,7 +25,7 @@ export declare class ContentLoaderService implements OnDestroy {
24
25
  setupAutoUpdate(): void;
25
26
  setContent(content: ContentWrapperWithError): void;
26
27
  loadDirectory(directoryName: string, forceReload?: boolean): Promise<void>;
27
- search(query: string, forceReload?: boolean): Promise<void>;
28
+ search(query: SearchQueryDTO, forceReload?: boolean): Promise<void>;
28
29
  isSearchResult(): boolean;
29
30
  reloadCurrentContent(): Promise<void>;
30
31
  private unSubPolling;
@@ -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
  }
@@ -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,6 +18,7 @@ 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;
@@ -49,7 +51,7 @@ export declare class GalleryGridComponent implements OnInit, OnChanges, AfterVie
49
51
  private MAX_ROW_COUNT;
50
52
  private onScrollFired;
51
53
  private helperTime;
52
- 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);
53
55
  ngOnChanges(): void;
54
56
  ngOnInit(): void;
55
57
  ngOnDestroy(): void;
@@ -38,7 +38,6 @@ export declare class ControlsLightboxComponent implements OnDestroy, OnChanges {
38
38
  zoom: number;
39
39
  playBackDurations: number[];
40
40
  controllersDimmed: boolean;
41
- controllersVisible: boolean;
42
41
  drag: {
43
42
  x: number;
44
43
  y: number;
@@ -1,4 +1,5 @@
1
1
  import { ActivatedRoute, Router } from '@angular/router';
2
+ import { LightBoxTitleTexts } from '../../../../../common/config/public/ClientConfig';
2
3
  export declare class LightboxService {
3
4
  private route;
4
5
  private router;
@@ -22,6 +23,23 @@ export declare class LightboxService {
22
23
  private _captionAlwaysOn;
23
24
  get captionAlwaysOn(): boolean;
24
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[]);
25
41
  ngOnDestroy(): void;
26
42
  private updateQuery;
43
+ private serializeTitles;
44
+ private parseTitles;
27
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;
@@ -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
  }
@@ -13,16 +13,25 @@ export declare class PhotoFrameBuilderGalleryComponent implements OnInit, OnDest
13
13
  private modalService;
14
14
  enabled: boolean;
15
15
  url: string;
16
+ showSettings: boolean;
16
17
  autoPollInterval: number;
17
18
  loopSlideshow: boolean;
18
19
  captionAlwaysOn: boolean;
20
+ hideControls: boolean;
19
21
  slideshowSpeed: number;
22
+ topLeftTitle: string[];
23
+ topLeftSubtitle: string[];
24
+ bottomLeftTitle: string[];
25
+ bottomLeftSubtitle: string[];
26
+ readonly LightBoxTitleTextsArr: string[];
20
27
  contentSubscription: Subscription;
21
28
  modalRef: BsModalRef;
22
29
  private readonly subscription;
23
30
  constructor(contentLoaderService: ContentLoaderService, notification: NotificationService, route: ActivatedRoute, router: Router, modalService: BsModalService);
24
31
  private buildUrl;
25
32
  onOptionsChange(): void;
33
+ trackByIndex(index: number): number;
34
+ toggleSettings(): void;
26
35
  ngOnInit(): void;
27
36
  ngOnDestroy(): void;
28
37
  openModal(template: TemplateRef<unknown>): boolean;
@@ -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