pigallery2-extension-kit 3.1.0 → 3.5.0-dev.1

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 (65) 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/extension/ExpressRouterWrapper.d.ts +2 -2
  13. package/lib/backend/model/extension/IExtension.d.ts +9 -2
  14. package/lib/backend/model/extension/UIExtension.d.ts +2 -2
  15. package/lib/backend/model/fileaccess/DiskManager.d.ts +2 -1
  16. package/lib/backend/routes/OIDCRouter.d.ts +7 -0
  17. package/lib/backend/routes/UploadRouter.d.ts +5 -0
  18. package/lib/common/DataStructureVersion.d.ts +1 -1
  19. package/lib/common/PG2ConfMap.d.ts +1 -0
  20. package/lib/common/QueryParams.d.ts +10 -1
  21. package/lib/common/SearchQueryParser.d.ts +11 -10
  22. package/lib/common/SearchQueryUtils.d.ts +13 -2
  23. package/lib/common/Utils.d.ts +7 -5
  24. package/lib/common/Utils.js +55 -19
  25. package/lib/common/config/private/PrivateConfig.d.ts +16 -1
  26. package/lib/common/config/private/PrivateConfig.js +161 -5
  27. package/lib/common/config/public/ClientConfig.d.ts +22 -1
  28. package/lib/common/config/public/ClientConfig.js +145 -5
  29. package/lib/common/entities/AutoCompleteItem.d.ts +3 -3
  30. package/lib/common/entities/AutoCompleteItem.js +3 -3
  31. package/lib/common/entities/Error.d.ts +2 -1
  32. package/lib/common/entities/Error.js +1 -0
  33. package/lib/common/entities/SearchQueryDTO.d.ts +24 -41
  34. package/lib/common/entities/SearchQueryDTO.js +10 -19
  35. package/lib/common/entities/SortingMethods.d.ts +8 -0
  36. package/lib/common/entities/SortingMethods.js +10 -1
  37. package/lib/frontend/app/model/network/network.service.d.ts +4 -1
  38. package/lib/frontend/app/model/page.helper.d.ts +3 -2
  39. package/lib/frontend/app/model/query.service.d.ts +1 -0
  40. package/lib/frontend/app/ui/faces/faces.component.d.ts +1 -1
  41. package/lib/frontend/app/ui/faces/faces.service.d.ts +4 -0
  42. package/lib/frontend/app/ui/faces/navigator/navigator.faces.component.d.ts +15 -0
  43. package/lib/frontend/app/ui/frame/frame.component.d.ts +5 -2
  44. package/lib/frontend/app/ui/gallery/blog/blog.service.d.ts +1 -0
  45. package/lib/frontend/app/ui/gallery/contentLoader.service.d.ts +2 -1
  46. package/lib/frontend/app/ui/gallery/gallery.component.d.ts +12 -4
  47. package/lib/frontend/app/ui/gallery/grid/grid.gallery.component.d.ts +3 -1
  48. package/lib/frontend/app/ui/gallery/grid/photo/media-button-modal/media-button-modal.component.d.ts +2 -1
  49. package/lib/frontend/app/ui/gallery/grid/photo/media-button-modal/media-button-modal.service.d.ts +4 -1
  50. package/lib/frontend/app/ui/gallery/lightbox/controls/controls.lightbox.gallery.component.d.ts +0 -1
  51. package/lib/frontend/app/ui/gallery/lightbox/lightbox.service.d.ts +18 -0
  52. package/lib/frontend/app/ui/gallery/lightbox/media/media.lightbox.gallery.component.d.ts +5 -2
  53. package/lib/frontend/app/ui/gallery/map/lightbox/lightbox.map.gallery.component.d.ts +18 -12
  54. package/lib/frontend/app/ui/gallery/map/map.gallery.component.d.ts +5 -1
  55. package/lib/frontend/app/ui/gallery/overlay.service.d.ts +2 -2
  56. package/lib/frontend/app/ui/gallery/photo-frame-builder/photo-frame-builder.gallery.component.d.ts +9 -0
  57. package/lib/frontend/app/ui/gallery/search/autocomplete.service.d.ts +1 -1
  58. package/lib/frontend/app/ui/gallery/search/query-enrty/query-entry.search.gallery.component.d.ts +2 -1
  59. package/lib/frontend/app/ui/gallery/search/search-query-parser.service.d.ts +0 -2
  60. package/lib/frontend/app/ui/gallery/thumbnailManager.service.d.ts +1 -1
  61. package/lib/frontend/app/ui/gallery/uploader/uploader.gallery.component.d.ts +15 -0
  62. package/lib/frontend/app/ui/gallery/uploader/uploader.service.d.ts +36 -0
  63. package/lib/frontend/app/ui/login/login.component.d.ts +3 -0
  64. package/lib/frontend/app/ui/settings/template/template.component.d.ts +1 -0
  65. package/package.json +1 -1
@@ -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
+ }
@@ -0,0 +1,36 @@
1
+ import { NetworkService } from '../../../model/network/network.service';
2
+ import { ContentLoaderService } from '../contentLoader.service';
3
+ import { AuthenticationService } from '../../../model/network/authentication.service';
4
+ import { NotificationService } from '../../../model/notification.service';
5
+ export interface UploadProgress {
6
+ name: string;
7
+ progress: number;
8
+ error?: string;
9
+ done: boolean;
10
+ status?: 'queued' | 'uploading' | 'done' | 'error';
11
+ lastUpdate: number;
12
+ count?: number;
13
+ }
14
+ export declare class UploaderService {
15
+ private networkService;
16
+ private notificationService;
17
+ private authService;
18
+ private contentLoaderService;
19
+ uploadProgress: UploadProgress[];
20
+ private uploadQueue;
21
+ private activeUploads;
22
+ private MAX_CONCURRENT_UPLOADS;
23
+ private readonly DEFAULT_MAX_CONCURRENT_UPLOADS;
24
+ private readonly MAX_ALLOWED_CONCURRENT_UPLOADS;
25
+ private speedTimer;
26
+ private lastProgressSum;
27
+ private lastUpdateTimestamp;
28
+ constructor(networkService: NetworkService, notificationService: NotificationService, authService: AuthenticationService, contentLoaderService: ContentLoaderService);
29
+ canUpload(): boolean;
30
+ uploadFiles(filesIn: FileList | File[]): Promise<void>;
31
+ private startSpeedTracking;
32
+ private stopSpeedTracking;
33
+ private processQueue;
34
+ private _uploadFile;
35
+ private _cleanupProgress;
36
+ }
@@ -9,7 +9,10 @@ export declare class LoginComponent implements OnInit {
9
9
  loginError: boolean;
10
10
  title: string;
11
11
  inProgress: boolean;
12
+ oidcEnabled: boolean;
13
+ oidcDisplayName: string;
12
14
  constructor(authService: AuthenticationService, navigation: NavigationService);
13
15
  ngOnInit(): void;
14
16
  onLogin(): Promise<void>;
17
+ onLoginWithOIDC(): void;
15
18
  }
@@ -69,6 +69,7 @@ export declare class TemplateComponent implements OnInit, OnChanges, OnDestroy,
69
69
  get Name(): string;
70
70
  get Changed(): boolean;
71
71
  get HasAvailableSettings(): boolean;
72
+ getSaveTitle(isFormValid: boolean): string;
72
73
  ngOnChanges(): void;
73
74
  ngOnInit(): void;
74
75
  ngOnDestroy(): void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pigallery2-extension-kit",
3
- "version": "3.1.0",
3
+ "version": "3.5.0-dev.1",
4
4
  "description": "Interfaces for developing extensions for pigallery2",
5
5
  "author": "Patrik J. Braun",
6
6
  "homepage": "https://github.com/bpatrik/pigallery2",