pigallery2-extension-kit 3.0.1 → 3.5.0-dev.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 (98) 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/ExpressRouterWrapper.d.ts +2 -2
  19. package/lib/backend/model/extension/ExtensionRepository.d.ts +1 -0
  20. package/lib/backend/model/extension/IExtension.d.ts +9 -2
  21. package/lib/backend/model/extension/UIExtension.d.ts +2 -2
  22. package/lib/backend/model/fileaccess/DiskManager.d.ts +2 -1
  23. package/lib/backend/model/jobs/JobManager.d.ts +1 -1
  24. package/lib/backend/model/jobs/jobs/AlbumCoverFillingJob.d.ts +1 -0
  25. package/lib/backend/model/jobs/jobs/AlbumCoverResetJob.d.ts +1 -0
  26. package/lib/backend/model/jobs/jobs/AlbumResetJob.d.ts +1 -0
  27. package/lib/backend/model/jobs/jobs/FileJob.d.ts +1 -0
  28. package/lib/backend/model/jobs/jobs/GPXCompressionJob.d.ts +1 -0
  29. package/lib/backend/model/jobs/jobs/GPXCompressionResetJob.d.ts +1 -0
  30. package/lib/backend/model/jobs/jobs/GalleryResetJob.d.ts +1 -0
  31. package/lib/backend/model/jobs/jobs/IndexingJob.d.ts +1 -0
  32. package/lib/backend/model/jobs/jobs/Job.d.ts +1 -0
  33. package/lib/backend/model/jobs/jobs/JobProgress.d.ts +2 -1
  34. package/lib/backend/model/jobs/jobs/PhotoConvertingJob.d.ts +1 -0
  35. package/lib/backend/model/jobs/jobs/TempFolderCleaningJob.d.ts +1 -0
  36. package/lib/backend/model/jobs/jobs/TopPickSendJob.d.ts +1 -0
  37. package/lib/backend/model/jobs/jobs/VideoConvertingJob.d.ts +1 -0
  38. package/lib/backend/routes/OIDCRouter.d.ts +7 -0
  39. package/lib/backend/routes/UploadRouter.d.ts +5 -0
  40. package/lib/common/CustomHeaders.d.ts +1 -0
  41. package/lib/common/DataStructureVersion.d.ts +1 -1
  42. package/lib/common/PG2ConfMap.d.ts +1 -0
  43. package/lib/common/QueryParams.d.ts +19 -1
  44. package/lib/common/SearchQueryParser.d.ts +11 -10
  45. package/lib/common/SearchQueryUtils.d.ts +13 -2
  46. package/lib/common/Utils.d.ts +7 -5
  47. package/lib/common/Utils.js +55 -19
  48. package/lib/common/config/private/Config.js +1 -0
  49. package/lib/common/config/private/PrivateConfig.d.ts +16 -1
  50. package/lib/common/config/private/PrivateConfig.js +161 -5
  51. package/lib/common/config/private/PrivateConfigClass.d.ts +2 -0
  52. package/lib/common/config/private/PrivateConfigClass.js +7 -0
  53. package/lib/common/config/public/ClientConfig.d.ts +34 -6
  54. package/lib/common/config/public/ClientConfig.js +239 -31
  55. package/lib/common/entities/AutoCompleteItem.d.ts +3 -3
  56. package/lib/common/entities/AutoCompleteItem.js +3 -3
  57. package/lib/common/entities/ContentWrapper.d.ts +38 -10
  58. package/lib/common/entities/ContentWrapper.js +171 -62
  59. package/lib/common/entities/Error.d.ts +2 -1
  60. package/lib/common/entities/Error.js +1 -0
  61. package/lib/common/entities/MediaDTO.d.ts +1 -0
  62. package/lib/common/entities/MediaDTO.js +6 -1
  63. package/lib/common/entities/SearchQueryDTO.d.ts +24 -41
  64. package/lib/common/entities/SearchQueryDTO.js +10 -19
  65. package/lib/common/entities/SortingMethods.d.ts +8 -0
  66. package/lib/common/entities/SortingMethods.js +10 -1
  67. package/lib/frontend/app/model/network/network.service.d.ts +4 -1
  68. package/lib/frontend/app/model/page.helper.d.ts +3 -2
  69. package/lib/frontend/app/model/query.service.d.ts +1 -1
  70. package/lib/frontend/app/model/version.service.d.ts +5 -1
  71. package/lib/frontend/app/ui/faces/faces.component.d.ts +1 -1
  72. package/lib/frontend/app/ui/faces/faces.service.d.ts +4 -0
  73. package/lib/frontend/app/ui/faces/navigator/navigator.faces.component.d.ts +15 -0
  74. package/lib/frontend/app/ui/frame/frame.component.d.ts +7 -2
  75. package/lib/frontend/app/ui/gallery/blog/blog.service.d.ts +1 -0
  76. package/lib/frontend/app/ui/gallery/cache.gallery.service.d.ts +5 -7
  77. package/lib/frontend/app/ui/gallery/contentLoader.service.d.ts +14 -11
  78. package/lib/frontend/app/ui/gallery/gallery.component.d.ts +12 -4
  79. package/lib/frontend/app/ui/gallery/gallery.service.d.ts +13 -0
  80. package/lib/frontend/app/ui/gallery/grid/grid.gallery.component.d.ts +4 -1
  81. package/lib/frontend/app/ui/gallery/lightbox/controls/controls.lightbox.gallery.component.d.ts +13 -20
  82. package/lib/frontend/app/ui/gallery/lightbox/lightbox.gallery.component.d.ts +1 -2
  83. package/lib/frontend/app/ui/gallery/lightbox/lightbox.service.d.ts +43 -4
  84. package/lib/frontend/app/ui/gallery/lightbox/media/media.lightbox.gallery.component.d.ts +5 -2
  85. package/lib/frontend/app/ui/gallery/map/lightbox/lightbox.map.gallery.component.d.ts +18 -12
  86. package/lib/frontend/app/ui/gallery/map/map.gallery.component.d.ts +5 -1
  87. package/lib/frontend/app/ui/gallery/navigator/navigator.service.d.ts +1 -0
  88. package/lib/frontend/app/ui/gallery/overlay.service.d.ts +2 -2
  89. package/lib/frontend/app/ui/gallery/photo-frame-builder/photo-frame-builder.gallery.component.d.ts +40 -0
  90. package/lib/frontend/app/ui/gallery/search/autocomplete.service.d.ts +1 -1
  91. package/lib/frontend/app/ui/gallery/search/query-enrty/query-entry.search.gallery.component.d.ts +2 -1
  92. package/lib/frontend/app/ui/gallery/search/search-query-parser.service.d.ts +0 -2
  93. package/lib/frontend/app/ui/gallery/thumbnailManager.service.d.ts +1 -1
  94. package/lib/frontend/app/ui/gallery/uploader/uploader.gallery.component.d.ts +15 -0
  95. package/lib/frontend/app/ui/gallery/uploader/uploader.service.d.ts +36 -0
  96. package/lib/frontend/app/ui/login/login.component.d.ts +3 -0
  97. package/lib/frontend/app/ui/settings/template/template.component.d.ts +1 -0
  98. package/package.json +1 -1
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ClientConfig = exports.ClientExtensionsConfig = exports.ClientUserConfig = exports.ClientServiceConfig = exports.ClientFacesConfig = exports.ClientMetaFileConfig = exports.ClientMediaConfig = exports.ClientGPXCompressingConfig = exports.ClientPhotoConfig = exports.ClientVideoConfig = exports.ClientGalleryConfig = exports.ThemesConfig = exports.ThemeConfig = exports.ClientLightboxConfig = exports.ClientLightboxTitleConfig = exports.NavBarConfig = exports.NavBarSortingAndGroupingConfig = exports.ClientGroupingConfig = exports.ClientSortingConfig = exports.NavigationLinkConfig = exports.NavigationLinkTypes = exports.ClientMapConfig = exports.MapPathGroupConfig = exports.MapPathGroupThemeConfig = exports.PathThemeConfig = exports.SVGIconConfig = exports.MapLayers = exports.ClientRandomPhotoConfig = exports.ClientSharingConfig = exports.ClientAlbumConfig = exports.ClientSearchConfig = exports.AutoCompleteConfig = exports.AutoCompleteItemsPerCategoryConfig = exports.LightBoxTitleTexts = exports.ScrollUpModes = exports.ThemeModes = exports.ConfigPriority = exports.MapProviders = void 0;
3
+ exports.ClientConfig = exports.ClientUploadConfig = exports.ClientExtensionsConfig = exports.ClientUserConfig = exports.ClientUserOIDCConfig = exports.ClientServiceConfig = exports.ClientFacesConfig = exports.ClientMetaFileConfig = exports.ClientMediaConfig = exports.ClientGPXCompressingConfig = exports.ClientPhotoConfig = exports.ClientVideoConfig = exports.ClientGalleryConfig = exports.ThemesConfig = exports.ThemeConfig = exports.ClientLightboxConfig = exports.AutoUpdateConfig = exports.ClientLightboxTitleConfig = exports.NavBarConfig = exports.NavBarSortingAndGroupingConfig = exports.ClientGroupingConfig = exports.ClientFaceSortingConfig = exports.ClientSortingConfig = exports.NavigationLinkConfig = exports.NavigationLinkTypes = exports.ClientMapConfig = exports.MapPathGroupConfig = exports.MapPathGroupThemeConfig = exports.PathThemeConfig = exports.SVGIconConfig = exports.MapLayers = exports.ClientRandomPhotoConfig = exports.ClientSharingConfig = exports.ClientAlbumConfig = exports.ClientSearchConfig = exports.AutoCompleteConfig = exports.AutoCompleteItemsPerCategoryConfig = exports.LightBoxTitleTexts = exports.ScrollUpModes = exports.ThemeModes = exports.ConfigPriority = exports.MapProviders = void 0;
4
4
  const tslib_1 = require("tslib");
5
5
  /* eslint-disable @typescript-eslint/no-inferrable-types */
6
6
  require("reflect-metadata");
@@ -58,6 +58,10 @@ var LightBoxTitleTexts;
58
58
  LightBoxTitleTexts[LightBoxTitleTexts["iso"] = 13] = "iso";
59
59
  LightBoxTitleTexts[LightBoxTitleTexts["fstop"] = 14] = "fstop";
60
60
  LightBoxTitleTexts[LightBoxTitleTexts["focal_length"] = 15] = "focal_length";
61
+ LightBoxTitleTexts[LightBoxTitleTexts["directory"] = 16] = "directory";
62
+ LightBoxTitleTexts[LightBoxTitleTexts["titleOrCaption"] = 17] = "titleOrCaption";
63
+ LightBoxTitleTexts[LightBoxTitleTexts["titleOrDirectory"] = 18] = "titleOrDirectory";
64
+ LightBoxTitleTexts[LightBoxTitleTexts["titleOrCaptionOrDirectory"] = 19] = "titleOrCaptionOrDirectory";
61
65
  })(LightBoxTitleTexts || (exports.LightBoxTitleTexts = LightBoxTitleTexts = {}));
62
66
  let AutoCompleteItemsPerCategoryConfig = class AutoCompleteItemsPerCategoryConfig {
63
67
  constructor() {
@@ -392,7 +396,7 @@ tslib_1.__decorate([
392
396
  (0, common_1.ConfigProperty)({
393
397
  tags: {
394
398
  priority: ConfigPriority.advanced,
395
- hint: 'http://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png'
399
+ hint: 'https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png'
396
400
  },
397
401
  description: $localize `Url of a map layer.`,
398
402
  }),
@@ -444,10 +448,10 @@ exports.SVGIconConfig = SVGIconConfig = tslib_1.__decorate([
444
448
  tslib_1.__metadata("design:paramtypes", [String, String])
445
449
  ], SVGIconConfig);
446
450
  let PathThemeConfig = class PathThemeConfig {
447
- constructor(color = '', dashArray = '', svgIcon = new SVGIconConfig()) {
451
+ constructor(color = '', dashArray = '', svgIcon = new SVGIconConfig('', '')) {
448
452
  this.color = '';
449
453
  this.dashArray = '';
450
- this.svgIcon = new SVGIconConfig();
454
+ this.svgIcon = new SVGIconConfig('', '');
451
455
  this.color = color;
452
456
  this.dashArray = dashArray;
453
457
  this.svgIcon = svgIcon;
@@ -665,7 +669,7 @@ tslib_1.__decorate([
665
669
  name: $localize `Bend long path trigger`,
666
670
  priority: ConfigPriority.underTheHood
667
671
  },
668
- description: $localize `Map will bend the path if two points are this far apart on latititude axes. This intended to bend flight if only the end and the start points are given.`,
672
+ description: $localize `Map will bend the path if two points are this far apart on latitude axes. This intended to bend flight if only the end and the start points are given.`,
669
673
  }),
670
674
  tslib_1.__metadata("design:type", Number)
671
675
  ], ClientMapConfig.prototype, "bendLongPathsTrigger", void 0);
@@ -767,6 +771,36 @@ exports.ClientSortingConfig = ClientSortingConfig = tslib_1.__decorate([
767
771
  (0, common_1.SubConfigClass)({ tags: { client: true }, softReadonly: true }),
768
772
  tslib_1.__metadata("design:paramtypes", [Number, Boolean])
769
773
  ], ClientSortingConfig);
774
+ let ClientFaceSortingConfig = class ClientFaceSortingConfig {
775
+ constructor(method = SortingMethods_1.FaceSortByTypes.PersonCount, ascending = true) {
776
+ this.method = SortingMethods_1.FaceSortByTypes.PersonCount;
777
+ this.ascending = true;
778
+ this.method = method;
779
+ this.ascending = ascending;
780
+ }
781
+ };
782
+ exports.ClientFaceSortingConfig = ClientFaceSortingConfig;
783
+ tslib_1.__decorate([
784
+ (0, common_1.ConfigProperty)({
785
+ type: SortingMethods_1.FaceSortByTypes,
786
+ tags: {
787
+ name: $localize `Method`,
788
+ },
789
+ }),
790
+ tslib_1.__metadata("design:type", Number)
791
+ ], ClientFaceSortingConfig.prototype, "method", void 0);
792
+ tslib_1.__decorate([
793
+ (0, common_1.ConfigProperty)({
794
+ tags: {
795
+ name: $localize `Ascending`,
796
+ },
797
+ }),
798
+ tslib_1.__metadata("design:type", Boolean)
799
+ ], ClientFaceSortingConfig.prototype, "ascending", void 0);
800
+ exports.ClientFaceSortingConfig = ClientFaceSortingConfig = tslib_1.__decorate([
801
+ (0, common_1.SubConfigClass)({ tags: { client: true }, softReadonly: true }),
802
+ tslib_1.__metadata("design:paramtypes", [Number, Boolean])
803
+ ], ClientFaceSortingConfig);
770
804
  let ClientGroupingConfig = class ClientGroupingConfig {
771
805
  constructor(method = SortingMethods_1.GroupByTypes.Date, ascending = true) {
772
806
  this.method = SortingMethods_1.GroupByTypes.Date;
@@ -978,59 +1012,92 @@ exports.NavBarConfig = NavBarConfig = tslib_1.__decorate([
978
1012
  ], NavBarConfig);
979
1013
  let ClientLightboxTitleConfig = class ClientLightboxTitleConfig {
980
1014
  constructor() {
981
- this.topLeftTitle = LightBoxTitleTexts.title;
982
- this.topLeftSubtitle = LightBoxTitleTexts.caption;
983
- this.bottomLeftTitle = LightBoxTitleTexts.location;
984
- this.bottomLeftSubtitle = LightBoxTitleTexts.persons;
1015
+ this.topLeftTitle = [LightBoxTitleTexts.title];
1016
+ this.topLeftSubtitle = [LightBoxTitleTexts.caption];
1017
+ this.bottomLeftTitle = [LightBoxTitleTexts.date, LightBoxTitleTexts.location];
1018
+ this.bottomLeftSubtitle = [LightBoxTitleTexts.persons];
985
1019
  }
986
1020
  };
987
1021
  exports.ClientLightboxTitleConfig = ClientLightboxTitleConfig;
988
1022
  tslib_1.__decorate([
989
1023
  (0, common_1.ConfigProperty)({
990
- type: LightBoxTitleTexts,
1024
+ arrayType: LightBoxTitleTexts,
991
1025
  tags: {
992
- name: $localize `Top left title`,
1026
+ name: $localize `Top left titles`,
993
1027
  priority: ConfigPriority.advanced
994
1028
  },
995
1029
  }),
996
- tslib_1.__metadata("design:type", Number)
1030
+ tslib_1.__metadata("design:type", Array)
997
1031
  ], ClientLightboxTitleConfig.prototype, "topLeftTitle", void 0);
998
1032
  tslib_1.__decorate([
999
1033
  (0, common_1.ConfigProperty)({
1000
- type: LightBoxTitleTexts,
1034
+ arrayType: LightBoxTitleTexts,
1001
1035
  tags: {
1002
- name: $localize `Top left subtitle`,
1036
+ name: $localize `Top left subtitles`,
1003
1037
  priority: ConfigPriority.advanced
1004
1038
  },
1005
1039
  }),
1006
- tslib_1.__metadata("design:type", Number)
1040
+ tslib_1.__metadata("design:type", Array)
1007
1041
  ], ClientLightboxTitleConfig.prototype, "topLeftSubtitle", void 0);
1008
1042
  tslib_1.__decorate([
1009
1043
  (0, common_1.ConfigProperty)({
1010
- type: LightBoxTitleTexts,
1044
+ arrayType: LightBoxTitleTexts,
1011
1045
  tags: {
1012
- name: $localize `Bottom left title`,
1046
+ name: $localize `Bottom left titles`,
1013
1047
  priority: ConfigPriority.advanced
1014
1048
  },
1015
1049
  }),
1016
- tslib_1.__metadata("design:type", Number)
1050
+ tslib_1.__metadata("design:type", Array)
1017
1051
  ], ClientLightboxTitleConfig.prototype, "bottomLeftTitle", void 0);
1018
1052
  tslib_1.__decorate([
1019
1053
  (0, common_1.ConfigProperty)({
1020
- type: LightBoxTitleTexts,
1054
+ arrayType: LightBoxTitleTexts,
1021
1055
  tags: {
1022
- name: $localize `Bottom right subtitle`,
1056
+ name: $localize `Bottom left subtitles`,
1023
1057
  priority: ConfigPriority.advanced
1024
1058
  },
1025
1059
  }),
1026
- tslib_1.__metadata("design:type", Number)
1060
+ tslib_1.__metadata("design:type", Array)
1027
1061
  ], ClientLightboxTitleConfig.prototype, "bottomLeftSubtitle", void 0);
1028
1062
  exports.ClientLightboxTitleConfig = ClientLightboxTitleConfig = tslib_1.__decorate([
1029
1063
  (0, common_1.SubConfigClass)({ tags: { client: true }, softReadonly: true })
1030
1064
  ], ClientLightboxTitleConfig);
1065
+ let AutoUpdateConfig = class AutoUpdateConfig {
1066
+ constructor() {
1067
+ this.enable = false;
1068
+ this.interval = 60;
1069
+ }
1070
+ };
1071
+ exports.AutoUpdateConfig = AutoUpdateConfig;
1072
+ tslib_1.__decorate([
1073
+ (0, common_1.ConfigProperty)({
1074
+ tags: {
1075
+ name: $localize `Enable auto update`,
1076
+ priority: ConfigPriority.advanced,
1077
+ experimental: true,
1078
+ },
1079
+ description: $localize `Enable auto polling for new photos and videos in the gallery.`
1080
+ }),
1081
+ tslib_1.__metadata("design:type", Boolean)
1082
+ ], AutoUpdateConfig.prototype, "enable", void 0);
1083
+ tslib_1.__decorate([
1084
+ (0, common_1.ConfigProperty)({
1085
+ tags: {
1086
+ name: $localize `Interval`,
1087
+ priority: ConfigPriority.advanced,
1088
+ githubIssue: 1062,
1089
+ unit: 's'
1090
+ },
1091
+ description: $localize `Frequency of the auto polling in seconds.`
1092
+ }),
1093
+ tslib_1.__metadata("design:type", Number)
1094
+ ], AutoUpdateConfig.prototype, "interval", void 0);
1095
+ exports.AutoUpdateConfig = AutoUpdateConfig = tslib_1.__decorate([
1096
+ (0, common_1.SubConfigClass)({ tags: { client: true }, softReadonly: true })
1097
+ ], AutoUpdateConfig);
1031
1098
  let ClientLightboxConfig = class ClientLightboxConfig {
1032
1099
  constructor() {
1033
- this.defaultSlideshowSpeed = 5;
1100
+ this.slideshowSpeed = 5;
1034
1101
  this.captionAlwaysOn = false;
1035
1102
  this.facesAlwaysOn = false;
1036
1103
  this.loopVideos = false;
@@ -1052,7 +1119,7 @@ tslib_1.__decorate([
1052
1119
  description: $localize `Default time interval for displaying a photo in the slide show.`
1053
1120
  }),
1054
1121
  tslib_1.__metadata("design:type", Number)
1055
- ], ClientLightboxConfig.prototype, "defaultSlideshowSpeed", void 0);
1122
+ ], ClientLightboxConfig.prototype, "slideshowSpeed", void 0);
1056
1123
  tslib_1.__decorate([
1057
1124
  (0, common_1.ConfigProperty)({
1058
1125
  tags: {
@@ -1099,7 +1166,7 @@ tslib_1.__decorate([
1099
1166
  name: $localize `Load full resolution image on zoom.`,
1100
1167
  priority: ConfigPriority.advanced
1101
1168
  },
1102
- description: $localize `Enables loading the full resolution image on zoom in the ligthbox (preview).`,
1169
+ description: $localize `Enables loading the full resolution image on zoom in the lightbox (preview).`,
1103
1170
  }),
1104
1171
  tslib_1.__metadata("design:type", Boolean)
1105
1172
  ], ClientLightboxConfig.prototype, "loadFullImageOnZoom", void 0);
@@ -1213,11 +1280,11 @@ tslib_1.__decorate([
1213
1280
  (0, common_1.ConfigProperty)({
1214
1281
  arrayType: ThemeConfig,
1215
1282
  tags: {
1216
- name: $localize `Selected theme css`, //this is a 'hack' to the UI settings. UI will only show the selected setting's css
1283
+ name: $localize `Selected theme CSS`, //this is a 'hack' to the UI settings. UI will only show the selected setting's CSS
1217
1284
  uiDisabled: (sb) => !sb.enabled,
1218
1285
  relevant: (c) => c.selectedTheme !== 'default',
1219
1286
  },
1220
- description: $localize `Adds these css settings as it is to the end of the body tag of the page.`
1287
+ description: $localize `Adds these CSS settings as it is to the end of the body tag of the page.`
1221
1288
  }),
1222
1289
  tslib_1.__metadata("design:type", Array)
1223
1290
  ], ThemesConfig.prototype, "availableThemes", void 0);
@@ -1237,6 +1304,7 @@ let ClientGalleryConfig = class ClientGalleryConfig {
1237
1304
  this.Themes = new ThemesConfig();
1238
1305
  this.InlineBlogStartsOpen = false;
1239
1306
  this.TopBlogStartsOpen = false;
1307
+ this.AutoUpdate = new AutoUpdateConfig();
1240
1308
  }
1241
1309
  };
1242
1310
  exports.ClientGalleryConfig = ClientGalleryConfig;
@@ -1279,7 +1347,7 @@ tslib_1.__decorate([
1279
1347
  description: $localize `If enabled, timestamp offsets are ignored, meaning that the local times of pictures are used for searching, sorting and grouping. If disabled, global time is used and pictures with no timestamp are assumed to be in UTC (offset +00:00).`
1280
1348
  })
1281
1349
  //DEVELOPER NOTE: The Database model stores the timestamp (creationDate) as milliseconds since 1970-01-01 UTC (global time). And stores and offset (creationDateOffset) as minutes.
1282
- //Ignoring timestamp for the user is the opposite for the database. If the user wants to ignore the offset, we have to add the offset to the creationDate to give the user the right experience.
1350
+ //Ignoring the timestamp for the user is the opposite for the database. If the user wants to ignore the offset, we have to add the offset to the creationDate to give the user the right experience.
1283
1351
  ,
1284
1352
  tslib_1.__metadata("design:type", Boolean)
1285
1353
  ], ClientGalleryConfig.prototype, "ignoreTimestampOffset", void 0);
@@ -1357,6 +1425,16 @@ tslib_1.__decorate([
1357
1425
  }),
1358
1426
  tslib_1.__metadata("design:type", Boolean)
1359
1427
  ], ClientGalleryConfig.prototype, "TopBlogStartsOpen", void 0);
1428
+ tslib_1.__decorate([
1429
+ (0, common_1.ConfigProperty)({
1430
+ tags: {
1431
+ name: $localize `Auto update`,
1432
+ priority: ConfigPriority.advanced,
1433
+ },
1434
+ description: $localize `makes the gallery poll the backend for new photos in the given directory or search`
1435
+ }),
1436
+ tslib_1.__metadata("design:type", AutoUpdateConfig)
1437
+ ], ClientGalleryConfig.prototype, "AutoUpdate", void 0);
1360
1438
  exports.ClientGalleryConfig = ClientGalleryConfig = tslib_1.__decorate([
1361
1439
  (0, common_1.SubConfigClass)({ tags: { client: true }, softReadonly: true })
1362
1440
  ], ClientGalleryConfig);
@@ -1364,8 +1442,8 @@ let ClientVideoConfig = class ClientVideoConfig {
1364
1442
  constructor() {
1365
1443
  this.enabled = true;
1366
1444
  this.supportedFormatsWithTranscoding = ['avi', 'mkv', 'mov', 'wmv', 'flv', 'mts', 'm2ts', 'mpg', '3gp', 'm4v', 'mpeg', 'vob', 'divx', 'xvid', 'ts'];
1367
- // Browser supported video formats
1368
- // Read more: https://www.w3schools.com/html/html5_video.asp
1445
+ // Browser-supported video formats
1446
+ // Read more: https://www.w3schools.com/html/html5_video.asp
1369
1447
  this.supportedFormats = ['mp4', 'webm', 'ogv', 'ogg'];
1370
1448
  }
1371
1449
  };
@@ -1415,6 +1493,7 @@ let ClientPhotoConfig = class ClientPhotoConfig {
1415
1493
  this.personThumbnailSize = 200;
1416
1494
  this.thumbnailSizes = [320, 540, 1080, 2160];
1417
1495
  this.concurrentThumbnailGenerations = 1;
1496
+ this.concurrentThumbnailGenerationsLimit = 0;
1418
1497
  this.supportedFormats = ['gif', 'jpeg', 'jpg', 'jpe', 'png', 'webp', 'svg', 'avif', 'heic', 'dng', 'arw', 'tiff'];
1419
1498
  }
1420
1499
  /**
@@ -1472,10 +1551,21 @@ tslib_1.__decorate([
1472
1551
  tslib_1.__decorate([
1473
1552
  (0, common_1.ConfigProperty)({
1474
1553
  volatile: true,
1475
- description: 'Updated to match he number of CPUs. This manny thumbnail will be concurrently generated.',
1554
+ description: 'Updated to match the number of CPUs. This manny thumbnail will be concurrently generated.',
1476
1555
  }),
1477
1556
  tslib_1.__metadata("design:type", Number)
1478
1557
  ], ClientPhotoConfig.prototype, "concurrentThumbnailGenerations", void 0);
1558
+ tslib_1.__decorate([
1559
+ (0, common_1.ConfigProperty)({
1560
+ tags: {
1561
+ name: $localize `Concurrent photo generation limit`,
1562
+ priority: ConfigPriority.underTheHood,
1563
+ uiResetNeeded: { server: true }
1564
+ },
1565
+ description: 'By default the app uses the number of cpus -1 concurrent threads to generate thumbnails. Set this number higher than 0 to limit the number of concurrent threads.',
1566
+ }),
1567
+ tslib_1.__metadata("design:type", Number)
1568
+ ], ClientPhotoConfig.prototype, "concurrentThumbnailGenerationsLimit", void 0);
1479
1569
  tslib_1.__decorate([
1480
1570
  (0, common_1.ConfigProperty)({
1481
1571
  arrayType: 'string',
@@ -1612,6 +1702,7 @@ exports.ClientMetaFileConfig = ClientMetaFileConfig = tslib_1.__decorate([
1612
1702
  let ClientFacesConfig = class ClientFacesConfig {
1613
1703
  constructor() {
1614
1704
  this.enabled = true;
1705
+ this.sorting = new ClientFaceSortingConfig();
1615
1706
  this.keywordsToPersons = true;
1616
1707
  this.writeAccessMinRole = UserDTO_1.UserRoles.Admin;
1617
1708
  this.readAccessMinRole = UserDTO_1.UserRoles.User;
@@ -1628,6 +1719,16 @@ tslib_1.__decorate([
1628
1719
  }),
1629
1720
  tslib_1.__metadata("design:type", Boolean)
1630
1721
  ], ClientFacesConfig.prototype, "enabled", void 0);
1722
+ tslib_1.__decorate([
1723
+ (0, common_1.ConfigProperty)({
1724
+ tags: {
1725
+ name: $localize `Default sorting`,
1726
+ priority: ConfigPriority.advanced,
1727
+ },
1728
+ description: $localize `Default sorting on the faces page`
1729
+ }),
1730
+ tslib_1.__metadata("design:type", ClientFaceSortingConfig)
1731
+ ], ClientFacesConfig.prototype, "sorting", void 0);
1631
1732
  tslib_1.__decorate([
1632
1733
  (0, common_1.ConfigProperty)({
1633
1734
  tags: {
@@ -1670,6 +1771,7 @@ let ClientServiceConfig = class ClientServiceConfig {
1670
1771
  this.apiPath = '/pgapi';
1671
1772
  this.customHTMLHead = '';
1672
1773
  this.svgIcon = new SVGIconConfig(`0 0 512 512`, '<path d="m185.92 0.042372c-3.1045 0.19567-6.2676 1.0899-9.1546 3.163-16.085-8.0588-25.565 1.6894-23.504 14.76-5.3047 4.0078-10.768 7.8463-6.3153 20.688-4.8283 4.5113-5.2702 11.17-1.2227 20.894-4.5731 7.1343-3.0927 13.944 1.4676 20.445-5.0506 10.26 3.7514 20.507 6.2389 23.943-0.99909 6.6761-0.49742 13.458 11.016 21.392-1.2207 10.005 5.7492 14.415 12.419 19.045 12.567 8.1824 17.213 7.2406 27.088 10.328l-0.13366-1.1862c-15.833 3e-3 -31.017 6.2997-42.211 17.506l-24.715 24.736c-11.194 11.206-26.378 17.503-42.211 17.506h-34.984c-32.972 3.6e-4 -59.702 26.751-59.701 59.749v179.24c3.6312e-4 32.997 26.729 59.746 59.701 59.747h358.21c32.972-3.6e-4 59.7-26.75 59.701-59.747v-179.24c-0.0162-23.02-13.245-43.983-34.008-53.889 3.0728-1.7781 5.0617-4.3071 6.7327-7.0379 4.1124-1.032 17.438-3.2179 20.159-14.327 7.7661-2.0112 13.273-6.2767 14.255-14.719 9.3465-4.8456 13.285-10.23 12.484-16.792 11.694-7.0704 9.9759-13.526 8.4511-19.912 9.9742-8.687 8.874-22.288-8.6236-26.461-3.1292-12.25-18.501-15.32-20.733-16.133-1.3931-4.0275-3.7026-7.9496-14.353-10.399-4.4451-8.3291-12.211-9.9464-20.904-9.9225-6.4476-10.379-14.548-6.8393-22.216-7.2124-9.6958-7.4917-13.951-3.6525-20.032-3.5572-11.02-6.8739-16.687-2.7782-24.497 0.86675l-6.6602-2.5355c-21.868 3.9146-38.57 22.031-45.765 31.84 0.78895-12.143-0.36806-36.764-14.606-53.831l-6.7327-2.3414c-3.6422-7.8167-5.3526-14.6-18.209-16.423-4.7287-3.9225-5.388-9.6636-17.627-10.162-3.9701-2.9861-7.0841-7.4205-11.972-9.091-2.5588-0.82206-5.6927-0.97346-9.6817 0.32356-6.6078-5.7069-13.63-9.3648-22.385-5.8437-9.7319-4.9749-14.082-3.5883-17.674-1.2668-1.3952-0.50821-7.2885-3.6439-14.018-4.1239-1.0094-0.071996-2.0376-0.084841-3.0724-0.019609zm1.017 13.578c10.104 0.93027 18.591 7.2129 24.705 11.86 3.989-1.297 1.8817-5.4748-0.67601-9.9264 7.4731 3.9321 13.922 8.2611 19.542 13.058 4.4921-1.7738-6e-3 -6.9333-1.6283-10.934 11.32 6.6532 15.299 11.732 19.277 16.811 4.96-2.1534 2.5609-6.4373 1.1326-10.368 7.9224 6.6257 11.087 12.731 14.482 18.808 2.4625-1.6331 5.6853-2.3301 4.5577-8.9008 5.1605 6.0597 8.5191 12.233 10.344 18.398 4.8979-1.076 4.6167-5.1376 5.7471-8.2459 4.8158 7.9142 7.0028 15.201 10.195 22.743 1.3502-0.38818 3.143-2.596 5.5002-6.3575 10.495 21.313 19.172 68.475-19.542 71.864-19.845-33.079-47.35-62.019-80.099-88.028 39.018 41.712 59.701 71.578 68.828 93.932-5.6123 8.2892-13.186 12.888-21.423 15.182h-31.496c-9.0855-1.8937-17.047-4.8048-21.968-6.9301 3.5034-0.26396 6.761-1.0578 8.553-3.265-2.8932-4.1339-16.942-6.6095-24.423-15.054 3.8384 0.62815 5.771 0.45179 8.3395-1.4727-7.7461-5.9015-16.277-11.759-20.149-18.339 3.0088 1.096 5.5764 2.7998 10.448 1.4943-6.3427-7.0404-13.489-13.382-17.696-22.065 4.1118 1.3877 8.4445 3.0751 10.271 1.9806-5.5926-6.9871-9.844-14.035-12.948-21.216 5.3821 2.7304 8.0206 3.0315 9.7326 2.5551-3.457-7.4192-8.6517-14.592-9.4172-22.461 3.6436 2.9772 7.3478 4.8776 10.904 3.8631-0.36036-4.7513-7.3377-10.044-8.4022-21.322 4.3234 2.0148 8.7693 4.2946 10.093 3.6768 0.9645-8.9987-0.93024-14.97-2.5963-20.967 9.547 3.3675 23.877 8.6978 23.48 7.6733zm202.89 68.954c-1.1657 3.2054-4.0535 6.0044-0.89552 10.015 5.3574-3.5486 11.898-6.1175 19.744-7.4399-5.0841 4.3081-3.1624 6.8795-2.228 9.7499 6.5043-2.4708 12.815-5.0123 23.175-5.0887-3.6187 2.0919-8.2066 3.8292-5.7902 8.6694 6.3098-1.3316 12.62-2.6636 25.565-0.47848-3.8128 2.0212-10.67 3.0443-8.2709 7.3281 7.289-0.095 15.142 0.67658 23.357 2.5689-4.9157 1.7295-9.1161 3.6077-6.8934 7.1673 7.6683 0.37321 18.204 1.0216 26.541 6.8085l-7.9768 3.8043c-0.96209 0.52956 13.473 5.5674 22.914 9.2263-5.2605 3.5839-10.415 6.8757-15.456 14.39 0.61731 1.3249 5.4871 2.4391 10.093 3.6768-8.059 7.9545-16.768 7.4235-20.131 10.928 2.0376 3.1622 6.0354 3.9567 10.836 4.0553-5.7375 5.5002-14.227 7.6885-21.64 11.148 1.0057 1.4663 3.2192 2.9338 9.0958 4.3043-6.9901 3.5039-14.773 6.1675-23.545 7.9223 0.73194 1.9166 5.0978 3.5087 9.1389 5.0907-8.7991 3.945-18.346 4.207-27.726 5.5201 2.9287 4.0367 5.9538 4.4791 8.9626 5.575-7.1926 2.5501-17.455 1.4514-27.215 1.0864 0.46776 2.1663 1.3155 3.4454 2.7961 4.6612h-13.75c-5.1274-1.4192-9.4503-2.9189-11.788-2.2747-0.0214 0.78201 0.12538 1.5366 0.37044 2.2747h-6.1841c-2.2143-0.16717-4.4175-0.45785-6.5995-0.87068-17.23-8.2945-37.615-23.515-35.198-47.897 21.35-11.254 56.342-20.728 113.06-27.679-41.792-1.1427-81.452 3.3317-117.9 15.905-27.674-27.57 9.2662-58.115 30.995-67.691-0.70716 4.3624-0.65582 7.2407 0.12836 8.4067 7.2901-3.7246 13.646-7.8991 22.418-10.864zm-186.04 100.82h69.97c7.9167 2e-3 15.508 3.1505 21.105 8.7538l24.717 24.736c16.798 16.816 39.584 26.262 63.343 26.259h34.984c16.486 1.9e-4 29.85 13.375 29.85 29.873v179.24c-1.9e-4 16.499-13.365 29.873-29.85 29.873h-358.21c-16.486-1.8e-4 -29.85-13.375-29.85-29.873v-179.24c1.88e-4 -16.499 13.365-29.873 29.85-29.873h34.984c23.739-0.0128 46.501-9.4579 63.285-26.259l24.775-24.736c5.582-5.5884 13.149-8.736 21.045-8.7538zm35.016 59.749c-57.625 0.10848-104.28 46.889-104.28 104.56 0 57.669 46.656 104.45 104.28 104.56 57.625-0.10848 104.28-46.889 104.28-104.56 0-57.669-46.656-104.45-104.28-104.56zm-164.18 29.873c-8.2429 9e-5 -14.925 6.6874-14.925 14.937 0.03875 8.2218 6.7096 14.866 14.925 14.866s14.886-6.6446 14.925-14.866c-9.1e-5 -8.2493-6.6823-14.937-14.925-14.937zm164.18 0c41.206 0.0135 74.603 33.447 74.603 74.684 0 41.238-33.397 74.671-74.603 74.684-41.206-0.0135-74.603-33.447-74.603-74.684 0-41.238 33.397-74.671 74.603-74.684z"/>');
1774
+ this.reloadClientOnServerUpdate = true;
1673
1775
  }
1674
1776
  };
1675
1777
  exports.ClientServiceConfig = ClientServiceConfig;
@@ -1694,7 +1796,7 @@ tslib_1.__decorate([
1694
1796
  ], ClientServiceConfig.prototype, "publicUrl", void 0);
1695
1797
  tslib_1.__decorate([
1696
1798
  (0, common_1.ConfigProperty)({
1697
- description: $localize `If you access the gallery under a sub url (like: http://mydomain.com/myGallery), set it here. If it is not working you might miss the '/' from the beginning of the url.`,
1799
+ description: $localize `If you access the gallery under a sub url (like: https://mydomain.com/myGallery), set it here. If it is not working you might miss the '/' from the beginning of the url.`,
1698
1800
  tags: {
1699
1801
  name: $localize `Url Base`,
1700
1802
  hint: '/myGallery',
@@ -1749,13 +1851,58 @@ tslib_1.__decorate([
1749
1851
  ,
1750
1852
  tslib_1.__metadata("design:type", SVGIconConfig)
1751
1853
  ], ClientServiceConfig.prototype, "svgIcon", void 0);
1854
+ tslib_1.__decorate([
1855
+ (0, common_1.ConfigProperty)({
1856
+ tags: {
1857
+ name: $localize `Reload client on server update`,
1858
+ priority: ConfigPriority.underTheHood,
1859
+ githubIssue: 1078
1860
+ },
1861
+ description: $localize `If set the UI will auto reload when client related config changed or the app was restarted (except when the UI shows the settings page).`,
1862
+ }),
1863
+ tslib_1.__metadata("design:type", Boolean)
1864
+ ], ClientServiceConfig.prototype, "reloadClientOnServerUpdate", void 0);
1752
1865
  exports.ClientServiceConfig = ClientServiceConfig = tslib_1.__decorate([
1753
1866
  (0, common_1.SubConfigClass)({ tags: { client: true }, softReadonly: true })
1754
1867
  ], ClientServiceConfig);
1868
+ let ClientUserOIDCConfig = class ClientUserOIDCConfig {
1869
+ constructor() {
1870
+ this.enabled = false;
1871
+ this.displayName = '';
1872
+ }
1873
+ };
1874
+ exports.ClientUserOIDCConfig = ClientUserOIDCConfig;
1875
+ tslib_1.__decorate([
1876
+ (0, common_1.ConfigProperty)({
1877
+ tags: {
1878
+ name: $localize `Enabled`,
1879
+ priority: ConfigPriority.advanced,
1880
+ uiResetNeeded: { server: true },
1881
+ }
1882
+ }),
1883
+ tslib_1.__metadata("design:type", Boolean)
1884
+ ], ClientUserOIDCConfig.prototype, "enabled", void 0);
1885
+ tslib_1.__decorate([
1886
+ (0, common_1.ConfigProperty)({
1887
+ tags: {
1888
+ name: $localize `Display name`,
1889
+ priority: ConfigPriority.advanced,
1890
+ uiOptional: true,
1891
+ relevant: (c) => c.enabled,
1892
+ hint: 'Authentik'
1893
+ },
1894
+ description: $localize `Shown on the login button (client-visible).`
1895
+ }),
1896
+ tslib_1.__metadata("design:type", String)
1897
+ ], ClientUserOIDCConfig.prototype, "displayName", void 0);
1898
+ exports.ClientUserOIDCConfig = ClientUserOIDCConfig = tslib_1.__decorate([
1899
+ (0, common_1.SubConfigClass)({ tags: { client: true }, softReadonly: true })
1900
+ ], ClientUserOIDCConfig);
1755
1901
  let ClientUserConfig = class ClientUserConfig {
1756
1902
  constructor() {
1757
1903
  this.authenticationRequired = true;
1758
1904
  this.unAuthenticatedUserRole = UserDTO_1.UserRoles.Admin;
1905
+ this.oidc = new ClientUserOIDCConfig();
1759
1906
  }
1760
1907
  };
1761
1908
  exports.ClientUserConfig = ClientUserConfig;
@@ -1786,6 +1933,19 @@ tslib_1.__decorate([
1786
1933
  }),
1787
1934
  tslib_1.__metadata("design:type", Number)
1788
1935
  ], ClientUserConfig.prototype, "unAuthenticatedUserRole", void 0);
1936
+ tslib_1.__decorate([
1937
+ (0, common_1.ConfigProperty)({
1938
+ tags: {
1939
+ name: $localize `OpenID Connect`,
1940
+ priority: ConfigPriority.advanced,
1941
+ uiResetNeeded: { server: true },
1942
+ uiIcon: 'ionFingerPrint',
1943
+ githubIssue: 1096
1944
+ },
1945
+ description: $localize `Setup SSO with external authentication apps like Authentik or Authelia`,
1946
+ }),
1947
+ tslib_1.__metadata("design:type", ClientUserOIDCConfig)
1948
+ ], ClientUserConfig.prototype, "oidc", void 0);
1789
1949
  exports.ClientUserConfig = ClientUserConfig = tslib_1.__decorate([
1790
1950
  (0, common_1.SubConfigClass)({ tags: { client: true }, softReadonly: true })
1791
1951
  ], ClientUserConfig);
@@ -1807,6 +1967,44 @@ tslib_1.__decorate([
1807
1967
  exports.ClientExtensionsConfig = ClientExtensionsConfig = tslib_1.__decorate([
1808
1968
  (0, common_1.SubConfigClass)({ tags: { client: true }, softReadonly: true })
1809
1969
  ], ClientExtensionsConfig);
1970
+ let ClientUploadConfig = class ClientUploadConfig {
1971
+ constructor() {
1972
+ this.enabled = false;
1973
+ this.minimumRole = UserDTO_1.UserRoles.Admin;
1974
+ this.enforcedDirectoryConfig = false;
1975
+ }
1976
+ };
1977
+ exports.ClientUploadConfig = ClientUploadConfig;
1978
+ tslib_1.__decorate([
1979
+ (0, common_1.ConfigProperty)({
1980
+ tags: {
1981
+ name: $localize `Enabled`,
1982
+ }
1983
+ }),
1984
+ tslib_1.__metadata("design:type", Boolean)
1985
+ ], ClientUploadConfig.prototype, "enabled", void 0);
1986
+ tslib_1.__decorate([
1987
+ (0, common_1.ConfigProperty)({
1988
+ type: UserDTO_1.UserRoles,
1989
+ tags: {
1990
+ name: $localize `Minimum user role`,
1991
+ },
1992
+ description: $localize `Minimum user role to enable file upload.`
1993
+ }),
1994
+ tslib_1.__metadata("design:type", Number)
1995
+ ], ClientUploadConfig.prototype, "minimumRole", void 0);
1996
+ tslib_1.__decorate([
1997
+ (0, common_1.ConfigProperty)({
1998
+ tags: {
1999
+ name: $localize `Require uploader.pg2conf`,
2000
+ },
2001
+ description: $localize `Only enable upload in folder where an ".uploader.pg2conf" is present in the folder.`
2002
+ }),
2003
+ tslib_1.__metadata("design:type", Boolean)
2004
+ ], ClientUploadConfig.prototype, "enforcedDirectoryConfig", void 0);
2005
+ exports.ClientUploadConfig = ClientUploadConfig = tslib_1.__decorate([
2006
+ (0, common_1.SubConfigClass)({ tags: { client: true }, softReadonly: true })
2007
+ ], ClientUploadConfig);
1810
2008
  let ClientConfig = class ClientConfig {
1811
2009
  constructor() {
1812
2010
  this.Server = new ClientServiceConfig();
@@ -1821,6 +2019,7 @@ let ClientConfig = class ClientConfig {
1821
2019
  this.Faces = new ClientFacesConfig();
1822
2020
  this.RandomPhoto = new ClientRandomPhotoConfig();
1823
2021
  this.Extensions = new ClientExtensionsConfig();
2022
+ this.Upload = new ClientUploadConfig();
1824
2023
  }
1825
2024
  };
1826
2025
  exports.ClientConfig = ClientConfig;
@@ -1913,6 +2112,15 @@ tslib_1.__decorate([
1913
2112
  }),
1914
2113
  tslib_1.__metadata("design:type", ClientExtensionsConfig)
1915
2114
  ], ClientConfig.prototype, "Extensions", void 0);
2115
+ tslib_1.__decorate([
2116
+ (0, common_1.ConfigProperty)({
2117
+ tags: {
2118
+ name: $localize `Upload`,
2119
+ uiIcon: 'ionCloudUploadOutline'
2120
+ },
2121
+ }),
2122
+ tslib_1.__metadata("design:type", ClientUploadConfig)
2123
+ ], ClientConfig.prototype, "Upload", void 0);
1916
2124
  exports.ClientConfig = ClientConfig = tslib_1.__decorate([
1917
2125
  (0, common_1.SubConfigClass)({ tags: { client: true }, softReadonly: true })
1918
2126
  ], ClientConfig);
@@ -1,11 +1,11 @@
1
1
  import { SearchQueryTypes } from './SearchQueryDTO';
2
2
  export interface IAutoCompleteItem {
3
- text: string;
3
+ value: string;
4
4
  type?: SearchQueryTypes;
5
5
  }
6
6
  export declare class AutoCompleteItem implements IAutoCompleteItem {
7
- text: string;
7
+ value: string;
8
8
  type: SearchQueryTypes;
9
- constructor(text: string, type?: SearchQueryTypes);
9
+ constructor(value: string, type?: SearchQueryTypes);
10
10
  equals(other: AutoCompleteItem): boolean;
11
11
  }
@@ -2,12 +2,12 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.AutoCompleteItem = void 0;
4
4
  class AutoCompleteItem {
5
- constructor(text, type = null) {
6
- this.text = text;
5
+ constructor(value, type = null) {
6
+ this.value = value;
7
7
  this.type = type;
8
8
  }
9
9
  equals(other) {
10
- return this.text === other.text && this.type === other.type;
10
+ return this.value === other.value && this.type === other.type;
11
11
  }
12
12
  }
13
13
  exports.AutoCompleteItem = AutoCompleteItem;
@@ -1,21 +1,49 @@
1
- import { ParentDirectoryDTO } from './DirectoryDTO';
1
+ import { DirectoryBaseDTO, DirectoryPathDTO, ParentDirectoryDTO } from './DirectoryDTO';
2
2
  import { SearchResultDTO } from './SearchResultDTO';
3
- export declare class ContentWrapper {
4
- private map?;
5
- private reverseMap?;
3
+ import { FileDTO } from './FileDTO';
4
+ export interface ContentWrapper {
6
5
  directory: ParentDirectoryDTO;
7
6
  searchResult: SearchResultDTO;
8
7
  notModified?: boolean;
9
- constructor(directory?: ParentDirectoryDTO, searchResult?: SearchResultDTO, notModified?: boolean);
8
+ }
9
+ export interface PackedContentWrapper {
10
+ directory: ParentDirectoryDTO;
11
+ searchResult: SearchResultDTO;
12
+ notModified?: boolean;
13
+ map: {
14
+ faces: string[];
15
+ keywords: string[];
16
+ lens: string[];
17
+ camera: string[];
18
+ directories: DirectoryPathDTO[];
19
+ };
20
+ reverseMap?: {
21
+ faces: Map<string, number>;
22
+ keywords: Map<string, number>;
23
+ lens: Map<string, number>;
24
+ camera: Map<string, number>;
25
+ directories: Map<string, number>;
26
+ };
27
+ }
28
+ export interface ContentWrapperWithError extends ContentWrapper {
29
+ error?: string;
30
+ }
31
+ export interface PackedContentWrapperWithError extends PackedContentWrapper {
32
+ error?: string;
33
+ }
34
+ export declare class ContentWrapperUtils {
35
+ static equals(cw1: ContentWrapper, cw2: ContentWrapper): boolean;
36
+ static equalsMedia(d1: FileDTO, d2: FileDTO): boolean;
37
+ static equalsPartialDirectory(d1: DirectoryBaseDTO, d2: DirectoryBaseDTO): boolean;
38
+ static equalsDirectories(d1: DirectoryBaseDTO[], d2: DirectoryBaseDTO[]): boolean;
39
+ static equalsFiles(m1: FileDTO[], m2: FileDTO[]): boolean;
40
+ static pack(cwIn: ContentWrapper): PackedContentWrapper;
41
+ static unpack(cwIn: PackedContentWrapper): ContentWrapper;
42
+ static build(directory?: ParentDirectoryDTO, searchResult?: SearchResultDTO, notModified?: boolean): ContentWrapper;
10
43
  private static mapify;
11
44
  private static packMedia;
12
45
  private static packDirectory;
13
46
  private static deMapify;
14
47
  private static unPackMedia;
15
48
  private static unPackDirectory;
16
- static pack(cw: ContentWrapper): ContentWrapper;
17
- static unpack(cw: ContentWrapper): ContentWrapper;
18
- }
19
- export declare class ContentWrapperWithError extends ContentWrapper {
20
- error?: string;
21
49
  }