pigallery2-extension-kit 3.5.2 → 3.7.0-edge

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 (284) hide show
  1. package/README.md +11 -5
  2. package/index.d.ts +1 -0
  3. package/index.js +2 -3
  4. package/lib/backend/Logger.d.ts +7 -7
  5. package/lib/backend/ProjectPath.d.ts +12 -0
  6. package/lib/backend/exceptions/DirectoryNotFound.d.ts +2 -0
  7. package/lib/backend/exceptions/FolderNotWritable.d.ts +2 -0
  8. package/lib/backend/index.d.ts +1 -1
  9. package/lib/backend/middlewares/GalleryMWs.d.ts +4 -0
  10. package/lib/backend/middlewares/PersonMWs.d.ts +1 -1
  11. package/lib/backend/middlewares/RenderingMWs.d.ts +24 -0
  12. package/lib/backend/middlewares/RequestParams.d.ts +13 -0
  13. package/lib/backend/middlewares/RequestSession.d.ts +9 -0
  14. package/lib/backend/middlewares/ServerTimingMWs.d.ts +6 -6
  15. package/lib/backend/middlewares/SharingMWs.d.ts +2 -1
  16. package/lib/backend/middlewares/VersionMWs.d.ts +1 -1
  17. package/lib/backend/middlewares/thumbnail/ThumbnailGeneratorMWs.d.ts +1 -1
  18. package/lib/backend/middlewares/user/AuthenticationMWs.d.ts +37 -0
  19. package/lib/backend/middlewares/user/OIDCAuthService.d.ts +36 -5
  20. package/lib/backend/middlewares/user/OIDCMWs.d.ts +10 -0
  21. package/lib/backend/middlewares/user/UserMWs.d.ts +1 -0
  22. package/lib/backend/middlewares/user/UserRequestConstrainsMWs.d.ts +0 -1
  23. package/lib/backend/model/DirectoryAccess.d.ts +78 -0
  24. package/lib/backend/model/EventLoopHandler.d.ts +1 -1
  25. package/lib/backend/model/FFmpeg.d.ts +47 -0
  26. package/lib/backend/model/FFmpegFactory.d.ts +11 -2
  27. package/lib/backend/model/ObjectManagers.d.ts +1 -1
  28. package/lib/backend/model/PasswordHelper.d.ts +1 -1
  29. package/lib/backend/model/SessionContext.d.ts +16 -6
  30. package/lib/backend/model/UploadManager.d.ts +6 -3
  31. package/lib/backend/model/database/CoverManager.d.ts +8 -2
  32. package/lib/backend/model/database/GalleryManager.d.ts +15 -9
  33. package/lib/backend/model/database/IndexingManager.d.ts +7 -7
  34. package/lib/backend/model/database/LocationManager.d.ts +2 -3
  35. package/lib/backend/model/database/PersonManager.d.ts +5 -3
  36. package/lib/backend/model/database/ProjectedCacheManager.d.ts +9 -8
  37. package/lib/backend/model/database/ProjectionAwareManager.d.ts +4 -4
  38. package/lib/backend/model/database/SQLConnection.d.ts +4 -2
  39. package/lib/backend/model/database/SearchManager.d.ts +23 -8
  40. package/lib/backend/model/database/SessionManager.d.ts +41 -4
  41. package/lib/backend/model/database/SharingManager.d.ts +11 -6
  42. package/lib/backend/model/database/UserManager.d.ts +8 -1
  43. package/lib/backend/model/database/enitites/DirectoryEntity.d.ts +1 -1
  44. package/lib/backend/model/database/enitites/EntityUtils.d.ts +22 -1
  45. package/lib/backend/model/database/enitites/MediaEntity.d.ts +5 -2
  46. package/lib/backend/model/database/enitites/ProjectedDirectoryCacheEntity.d.ts +2 -2
  47. package/lib/backend/model/database/enitites/SharingEntity.d.ts +11 -5
  48. package/lib/backend/model/database/enitites/UserEntity.d.ts +8 -5
  49. package/lib/backend/model/database/enitites/VideoEntity.d.ts +2 -2
  50. package/lib/backend/model/database/enitites/album/ProjectedAlbumCacheEntity.d.ts +2 -2
  51. package/lib/backend/model/database/enitites/person/ProjectedPersonCacheEntity.d.ts +1 -1
  52. package/lib/backend/model/diagnostics/ConfigDiagnostics.d.ts +31 -12
  53. package/lib/backend/model/extension/ExpressRouterWrapper.d.ts +10 -4
  54. package/lib/backend/model/extension/ExtensionApp.d.ts +2 -3
  55. package/lib/backend/model/extension/ExtensionDB.d.ts +2 -2
  56. package/lib/backend/model/extension/ExtensionEvent.d.ts +12 -1
  57. package/lib/backend/model/extension/ExtensionManager.d.ts +22 -4
  58. package/lib/backend/model/extension/ExtensionObject.d.ts +6 -3
  59. package/lib/backend/model/extension/IExtension.d.ts +35 -18
  60. package/lib/backend/model/fileaccess/DiskManager.d.ts +3 -1
  61. package/lib/backend/model/fileaccess/MetadataLoader.d.ts +17 -0
  62. package/lib/backend/model/fileaccess/TaskQue.d.ts +4 -4
  63. package/lib/backend/model/fileaccess/VideoConverterWorker.d.ts +6 -2
  64. package/lib/backend/model/fileaccess/fileprocessing/PhotoProcessing.d.ts +3 -2
  65. package/lib/backend/model/jobs/JobManager.d.ts +2 -4
  66. package/lib/backend/model/jobs/JobProgressManager.d.ts +5 -3
  67. package/lib/backend/model/jobs/JobRepository.d.ts +1 -3
  68. package/lib/backend/model/jobs/jobs/AlbumCoverFillingJob.d.ts +1 -1
  69. package/lib/backend/model/jobs/jobs/IJobListener.d.ts +2 -2
  70. package/lib/backend/model/jobs/jobs/Job.d.ts +4 -1
  71. package/lib/backend/model/messenger/EmailMessenger.d.ts +1 -1
  72. package/lib/backend/model/messenger/Messenger.d.ts +1 -2
  73. package/lib/backend/model/messenger/MessengerRepository.d.ts +1 -3
  74. package/lib/backend/routes/ErrorRouter.d.ts +1 -0
  75. package/lib/backend/routes/GalleryRouter.d.ts +8 -0
  76. package/lib/backend/routes/PublicRouter.d.ts +3 -6
  77. package/lib/backend/routes/SharingRouter.d.ts +1 -1
  78. package/lib/backend/routes/UserRouter.d.ts +1 -0
  79. package/lib/backend/server.d.ts +3 -3
  80. package/lib/common/DataStructureVersion.d.ts +1 -1
  81. package/lib/common/SearchQueryParser.d.ts +2 -2
  82. package/lib/common/SearchQueryUtils.d.ts +71 -4
  83. package/lib/common/SupportedFormats.d.ts +11 -1
  84. package/lib/common/SupportedFormats.js +13 -19
  85. package/lib/common/TextFold.d.ts +6 -0
  86. package/lib/common/UploadUtils.d.ts +4 -0
  87. package/lib/common/Utils.d.ts +23 -24
  88. package/lib/common/Utils.js +37 -97
  89. package/lib/common/config/Enums.d.ts +91 -0
  90. package/lib/common/config/Enums.js +109 -0
  91. package/lib/common/config/private/Config.d.ts +1 -1
  92. package/lib/common/config/private/PrivateConfig.d.ts +18 -39
  93. package/lib/common/config/private/WebConfig.d.ts +1 -2
  94. package/lib/common/config/private/subconfigs/ServerExtensionsConfig.d.ts +2 -3
  95. package/lib/common/config/public/ClientConfig.d.ts +51 -68
  96. package/lib/common/config/public/ClientConfig.js +774 -557
  97. package/lib/common/entities/AutoCompleteItem.d.ts +3 -3
  98. package/lib/common/entities/ContentWrapper.d.ts +21 -8
  99. package/lib/common/entities/ContentWrapper.js +286 -318
  100. package/lib/common/entities/DirectoryDTO.d.ts +7 -6
  101. package/lib/common/entities/DirectoryDTO.js +10 -5
  102. package/lib/common/entities/Error.d.ts +12 -7
  103. package/lib/common/entities/Error.js +15 -3
  104. package/lib/common/entities/MediaDTO.d.ts +13 -0
  105. package/lib/common/entities/MediaDTO.js +10 -7
  106. package/lib/common/entities/Message.d.ts +3 -3
  107. package/lib/common/entities/NotificationDTO.d.ts +2 -2
  108. package/lib/common/entities/SearchQueryDTO.d.ts +9 -1
  109. package/lib/common/entities/SearchQueryDTO.js +1 -0
  110. package/lib/common/entities/SharingDTO.d.ts +39 -5
  111. package/lib/common/entities/SortingMethods.d.ts +26 -2
  112. package/lib/common/entities/SortingMethods.js +14 -1
  113. package/lib/common/entities/UserDTO.d.ts +5 -2
  114. package/lib/common/entities/UserSettingsDTO.d.ts +3 -1
  115. package/lib/common/entities/VideoDTO.d.ts +2 -5
  116. package/lib/common/entities/album/AlbumBaseDTO.d.ts +2 -2
  117. package/lib/common/entities/extension/ExtensionListItem.d.ts +1 -1
  118. package/lib/common/entities/extension/IClientUIConfig.d.ts +19 -12
  119. package/lib/common/entities/job/JobDTO.d.ts +1 -1
  120. package/lib/common/entities/job/JobProgressDTO.d.ts +1 -1
  121. package/lib/common/entities/job/JobScheduleDTO.d.ts +5 -5
  122. package/lib/common/entities/job/JobScheduleDTO.js +9 -5
  123. package/lib/common/event/EventLimit.d.ts +1 -1
  124. package/package.json +21 -8
  125. package/REPOSITORY.md +0 -13
  126. package/events.drawio +0 -1
  127. package/events.png +0 -0
  128. package/index.js.map +0 -1
  129. package/index.ts +0 -2
  130. package/lib/backend/ProjectPath.js +0 -36
  131. package/lib/backend/model/NotifocationManager.js +0 -44
  132. package/lib/backend/model/PasswordHelper.js +0 -20
  133. package/lib/backend/model/database/enitites/PersonEntry.d.ts +0 -11
  134. package/lib/backend/model/database/enitites/PersonJunctionTable.d.ts +0 -10
  135. package/lib/backend/model/extension/ExtensionConfigTemplateLoader.js +0 -139
  136. package/lib/backend/model/extension/ExtensionConfigWrapper.js +0 -59
  137. package/lib/common/config/private/Config.js +0 -20
  138. package/lib/common/config/private/PrivateConfig.js +0 -1568
  139. package/lib/common/config/private/PrivateConfigClass.js +0 -96
  140. package/lib/common/config/private/WebConfig.js +0 -19
  141. package/lib/common/config/private/subconfigs/MessagingConfig.js +0 -134
  142. package/lib/common/config/private/subconfigs/ServerExtensionsConfig.js +0 -111
  143. package/lib/common/config/public/Config.js +0 -24
  144. package/lib/common/entities/ConentWrapper.d.ts +0 -18
  145. package/lib/common/entities/ConentWrapper.js +0 -490
  146. package/lib/frontend/app/app.component.d.ts +0 -18
  147. package/lib/frontend/app/app.module.d.ts +0 -23
  148. package/lib/frontend/app/app.routing.d.ts +0 -4
  149. package/lib/frontend/app/icon.component.d.ts +0 -7
  150. package/lib/frontend/app/model/IRenderable.d.ts +0 -17
  151. package/lib/frontend/app/model/backendtext.service.d.ts +0 -7
  152. package/lib/frontend/app/model/backendtext.service.spec.d.ts +0 -1
  153. package/lib/frontend/app/model/extension.service.d.ts +0 -5
  154. package/lib/frontend/app/model/navigation.service.d.ts +0 -12
  155. package/lib/frontend/app/model/network/autehentication.service.spec.d.ts +0 -1
  156. package/lib/frontend/app/model/network/authentication.service.d.ts +0 -22
  157. package/lib/frontend/app/model/network/helper/auth.guard.d.ts +0 -9
  158. package/lib/frontend/app/model/network/helper/csrf.interceptor.d.ts +0 -8
  159. package/lib/frontend/app/model/network/helper/error.interceptor.d.ts +0 -8
  160. package/lib/frontend/app/model/network/network.service.d.ts +0 -29
  161. package/lib/frontend/app/model/network/network.service.spec.d.ts +0 -1
  162. package/lib/frontend/app/model/network/user.service.d.ts +0 -13
  163. package/lib/frontend/app/model/network/user.service.spec.d.ts +0 -1
  164. package/lib/frontend/app/model/notification.service.d.ts +0 -28
  165. package/lib/frontend/app/model/page.helper.d.ts +0 -15
  166. package/lib/frontend/app/model/pi-title.service.d.ts +0 -15
  167. package/lib/frontend/app/model/query.service.d.ts +0 -19
  168. package/lib/frontend/app/model/seededRandom.service.d.ts +0 -7
  169. package/lib/frontend/app/model/theme.service.d.ts +0 -16
  170. package/lib/frontend/app/model/version.service.d.ts +0 -10
  171. package/lib/frontend/app/pipes/DurationPipe.d.ts +0 -4
  172. package/lib/frontend/app/pipes/FileDTOToPathPipe.d.ts +0 -5
  173. package/lib/frontend/app/pipes/FileDTOToRelativePathPipe.d.ts +0 -5
  174. package/lib/frontend/app/pipes/FileSizePipe.d.ts +0 -4
  175. package/lib/frontend/app/pipes/GPXFilesFilterPipe.d.ts +0 -5
  176. package/lib/frontend/app/pipes/MDFilesFilterPipe.d.ts +0 -6
  177. package/lib/frontend/app/pipes/ParseIntPipe.d.ts +0 -4
  178. package/lib/frontend/app/pipes/PhotoFilterPipe.d.ts +0 -6
  179. package/lib/frontend/app/pipes/SafeHTMLPipe.d.ts +0 -7
  180. package/lib/frontend/app/pipes/StringifyEnum.d.ts +0 -4
  181. package/lib/frontend/app/pipes/StringifyGridSize.d.ts +0 -5
  182. package/lib/frontend/app/pipes/StringifyRolePipe.d.ts +0 -4
  183. package/lib/frontend/app/pipes/StringifySearchQuery.d.ts +0 -8
  184. package/lib/frontend/app/pipes/StringifySearchType.d.ts +0 -5
  185. package/lib/frontend/app/pipes/StringifySortingMethod.d.ts +0 -4
  186. package/lib/frontend/app/ui/EnumTranslations.d.ts +0 -5
  187. package/lib/frontend/app/ui/admin/admin.component.d.ts +0 -36
  188. package/lib/frontend/app/ui/albums/album/album.component.d.ts +0 -26
  189. package/lib/frontend/app/ui/albums/albums.component.d.ts +0 -31
  190. package/lib/frontend/app/ui/albums/albums.service.d.ts +0 -12
  191. package/lib/frontend/app/ui/albums/saved-search-popup/saved-search-popup.component.d.ts +0 -15
  192. package/lib/frontend/app/ui/duplicates/duplicates.component.d.ts +0 -36
  193. package/lib/frontend/app/ui/duplicates/duplicates.service.d.ts +0 -9
  194. package/lib/frontend/app/ui/duplicates/photo/photo.duplicates.component.d.ts +0 -11
  195. package/lib/frontend/app/ui/faces/Person.d.ts +0 -9
  196. package/lib/frontend/app/ui/faces/face/face.component.d.ts +0 -22
  197. package/lib/frontend/app/ui/faces/faces.component.d.ts +0 -18
  198. package/lib/frontend/app/ui/faces/faces.service.d.ts +0 -14
  199. package/lib/frontend/app/ui/faces/navigator/navigator.faces.component.d.ts +0 -15
  200. package/lib/frontend/app/ui/frame/frame.component.d.ts +0 -60
  201. package/lib/frontend/app/ui/gallery/Media.d.ts +0 -15
  202. package/lib/frontend/app/ui/gallery/MediaIcon.d.ts +0 -29
  203. package/lib/frontend/app/ui/gallery/blog/blog.gallery.component.d.ts +0 -16
  204. package/lib/frontend/app/ui/gallery/blog/blog.service.d.ts +0 -85
  205. package/lib/frontend/app/ui/gallery/blog/blog.service.spec.d.ts +0 -1
  206. package/lib/frontend/app/ui/gallery/cache.gallery.service.d.ts +0 -51
  207. package/lib/frontend/app/ui/gallery/content.service.d.ts +0 -11
  208. package/lib/frontend/app/ui/gallery/contentLoader.service.d.ts +0 -37
  209. package/lib/frontend/app/ui/gallery/directories/directories.component.d.ts +0 -14
  210. package/lib/frontend/app/ui/gallery/directories/directory/directory.gallery.component.d.ts +0 -20
  211. package/lib/frontend/app/ui/gallery/filter/filter.gallery.component.d.ts +0 -32
  212. package/lib/frontend/app/ui/gallery/filter/filter.service.d.ts +0 -51
  213. package/lib/frontend/app/ui/gallery/filter/filter.service.spec.d.ts +0 -1
  214. package/lib/frontend/app/ui/gallery/fullscreen.service.d.ts +0 -7
  215. package/lib/frontend/app/ui/gallery/gallery.component.d.ts +0 -64
  216. package/lib/frontend/app/ui/gallery/gallery.component.spec.d.ts +0 -1
  217. package/lib/frontend/app/ui/gallery/gallery.service.d.ts +0 -13
  218. package/lib/frontend/app/ui/gallery/grid/GridMedia.d.ts +0 -13
  219. package/lib/frontend/app/ui/gallery/grid/GridRowBuilder.d.ts +0 -16
  220. package/lib/frontend/app/ui/gallery/grid/grid.gallery.component.d.ts +0 -88
  221. package/lib/frontend/app/ui/gallery/grid/grid.gallery.component.spec.d.ts +0 -1
  222. package/lib/frontend/app/ui/gallery/grid/photo/loading/loading.photo.grid.gallery.component.d.ts +0 -4
  223. package/lib/frontend/app/ui/gallery/grid/photo/media-button-modal/media-button-modal.component.d.ts +0 -20
  224. package/lib/frontend/app/ui/gallery/grid/photo/media-button-modal/media-button-modal.service.d.ts +0 -27
  225. package/lib/frontend/app/ui/gallery/grid/photo/photo.grid.gallery.component.d.ts +0 -53
  226. package/lib/frontend/app/ui/gallery/lightbox/controls/controls.lightbox.gallery.component.d.ts +0 -103
  227. package/lib/frontend/app/ui/gallery/lightbox/infopanel/info-panel.lightbox.gallery.component.d.ts +0 -51
  228. package/lib/frontend/app/ui/gallery/lightbox/lightbox.gallery.component.d.ts +0 -95
  229. package/lib/frontend/app/ui/gallery/lightbox/lightbox.gallery.component.spec.d.ts +0 -1
  230. package/lib/frontend/app/ui/gallery/lightbox/lightbox.service.d.ts +0 -45
  231. package/lib/frontend/app/ui/gallery/lightbox/media/media.lightbox.gallery.component.d.ts +0 -71
  232. package/lib/frontend/app/ui/gallery/map/MarkerFactory.d.ts +0 -12
  233. package/lib/frontend/app/ui/gallery/map/lightbox/lightbox.map.gallery.component.d.ts +0 -80
  234. package/lib/frontend/app/ui/gallery/map/map.gallery.component.d.ts +0 -36
  235. package/lib/frontend/app/ui/gallery/map/map.service.d.ts +0 -30
  236. package/lib/frontend/app/ui/gallery/navigator/navigator.gallery.component.d.ts +0 -81
  237. package/lib/frontend/app/ui/gallery/navigator/navigator.service.d.ts +0 -14
  238. package/lib/frontend/app/ui/gallery/navigator/sorting.service.d.ts +0 -38
  239. package/lib/frontend/app/ui/gallery/overlay.service.d.ts +0 -9
  240. package/lib/frontend/app/ui/gallery/photo-frame-builder/photo-frame-builder.gallery.component.d.ts +0 -40
  241. package/lib/frontend/app/ui/gallery/random-query-builder/random-query-builder.gallery.component.d.ts +0 -30
  242. package/lib/frontend/app/ui/gallery/search/AutoCompleteRenderItem.d.ts +0 -11
  243. package/lib/frontend/app/ui/gallery/search/autocomplete.service.d.ts +0 -33
  244. package/lib/frontend/app/ui/gallery/search/query-builder/query-bulder.gallery.component.d.ts +0 -22
  245. package/lib/frontend/app/ui/gallery/search/query-enrty/query-entry.search.gallery.component.d.ts +0 -43
  246. package/lib/frontend/app/ui/gallery/search/search-field/search-field.gallery.component.d.ts +0 -31
  247. package/lib/frontend/app/ui/gallery/search/search-field-base/search-field-base.gallery.component.d.ts +0 -57
  248. package/lib/frontend/app/ui/gallery/search/search-query-parser.service.d.ts +0 -7
  249. package/lib/frontend/app/ui/gallery/search/search.gallery.component.d.ts +0 -39
  250. package/lib/frontend/app/ui/gallery/share/share.gallery.component.d.ts +0 -67
  251. package/lib/frontend/app/ui/gallery/share.service.d.ts +0 -35
  252. package/lib/frontend/app/ui/gallery/thumbnailLoader.service.d.ts +0 -41
  253. package/lib/frontend/app/ui/gallery/thumbnailManager.service.d.ts +0 -46
  254. package/lib/frontend/app/ui/gallery/uploader/uploader.gallery.component.d.ts +0 -15
  255. package/lib/frontend/app/ui/gallery/uploader/uploader.service.d.ts +0 -36
  256. package/lib/frontend/app/ui/gallery/wakelock.service.d.ts +0 -19
  257. package/lib/frontend/app/ui/language/language.component.d.ts +0 -10
  258. package/lib/frontend/app/ui/login/login.component.d.ts +0 -18
  259. package/lib/frontend/app/ui/settings/extension-installer/extension-installer.component.d.ts +0 -18
  260. package/lib/frontend/app/ui/settings/extension-installer/extension-installer.service.d.ts +0 -10
  261. package/lib/frontend/app/ui/settings/gallery-statistic/gallery-statistic.component.d.ts +0 -5
  262. package/lib/frontend/app/ui/settings/scheduled-jobs.service.d.ts +0 -41
  263. package/lib/frontend/app/ui/settings/settings.service.d.ts +0 -27
  264. package/lib/frontend/app/ui/settings/sharings-list/sharings-list.component.d.ts +0 -14
  265. package/lib/frontend/app/ui/settings/template/CustomSettingsEntries.d.ts +0 -57
  266. package/lib/frontend/app/ui/settings/template/ISettingsComponent.d.ts +0 -13
  267. package/lib/frontend/app/ui/settings/template/settings-entry/settings-entry.component.d.ts +0 -118
  268. package/lib/frontend/app/ui/settings/template/settings-entry/sorting-method/sorting-method.settings-entry.component.d.ts +0 -28
  269. package/lib/frontend/app/ui/settings/template/template.component.d.ts +0 -97
  270. package/lib/frontend/app/ui/settings/users/users.component.d.ts +0 -47
  271. package/lib/frontend/app/ui/settings/users/users.service.d.ts +0 -12
  272. package/lib/frontend/app/ui/settings/workflow/button/job-button.settings.component.d.ts +0 -32
  273. package/lib/frontend/app/ui/settings/workflow/progress/job-progress.settings.component.d.ts +0 -25
  274. package/lib/frontend/app/ui/settings/workflow/workflow.component.d.ts +0 -68
  275. package/lib/frontend/app/ui/sharelogin/share-login.component.d.ts +0 -16
  276. package/lib/frontend/app/ui/utils/grid-size-icon/grid-size-icon.component.d.ts +0 -5
  277. package/lib/frontend/app/ui/utils/sorting-method-icon/sorting-method-icon.component.d.ts +0 -13
  278. package/lib/frontend/app/ui/utils/timestamp-datepicker/datepicker.component.d.ts +0 -10
  279. package/lib/frontend/app/ui/utils/timestamp-timepicker/timepicker.component.d.ts +0 -11
  280. package/lib/frontend/environments/environment.d.ts +0 -3
  281. package/lib/frontend/environments/environment.prod.d.ts +0 -3
  282. package/lib/frontend/main.d.ts +0 -21
  283. package/lib/frontend/polyfills.d.ts +0 -60
  284. package/lib/frontend/test.d.ts +0 -1
@@ -1,68 +1,28 @@
1
1
  "use strict";
2
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
7
+ };
8
+ var __metadata = (this && this.__metadata) || function (k, v) {
9
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
+ };
2
11
  Object.defineProperty(exports, "__esModule", { value: true });
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
- const tslib_1 = require("tslib");
12
+ exports.ClientConfig = exports.ClientUploadConfig = exports.ClientExtensionsConfig = exports.ClientUserConfig = exports.ClientUserOIDCConfig = exports.ClientServiceConfig = exports.ClientFacesConfig = exports.ClientMetaFileConfig = exports.ClientMediaConfig = exports.ClientLivePhotoConfig = exports.ClientGPXCompressingConfig = exports.ClientPhotoConfig = exports.ClientVideoConfig = exports.ClientGalleryConfig = exports.ThemesConfig = exports.ThemeConfig = exports.ClientLightboxConfig = exports.AutoUpdateConfig = exports.ClientLightboxTitleConfig = exports.NavBarConfig = exports.NavBarSortingAndGroupingConfig = exports.ClientDirectoryGroupingConfig = exports.ClientDirectorySortingConfig = exports.ClientGroupingConfig = exports.ClientFaceSortingConfig = exports.ClientSortingConfig = exports.NavigationLinkConfig = exports.ClientMapConfig = exports.MapPathGroupConfig = exports.MapPathGroupThemeConfig = exports.PathThemeConfig = exports.SVGIconConfig = exports.MapLayers = exports.ClientRandomPhotoConfig = exports.ClientSharingConfig = exports.ClientAlbumConfig = exports.ClientSearchConfig = exports.AutoCompleteConfig = exports.AutoCompleteItemsPerCategoryConfig = void 0;
5
13
  /* eslint-disable @typescript-eslint/no-inferrable-types */
6
- require("reflect-metadata");
14
+ const Enums_1 = require("../Enums");
7
15
  const SortingMethods_1 = require("../../entities/SortingMethods");
8
16
  const UserDTO_1 = require("../../entities/UserDTO");
9
17
  const common_1 = require("typeconfig/common");
10
18
  const JobDTO_1 = require("../../entities/job/JobDTO");
11
19
  const GridSizes_1 = require("../../entities/GridSizes");
20
+ const Utils_1 = require("../../Utils");
12
21
  if (typeof $localize === 'undefined') {
13
22
  // eslint-disable-next-line @typescript-eslint/ban-ts-comment
14
23
  // @ts-ignore
15
24
  global.$localize = (s) => s[0];
16
25
  }
17
- var MapProviders;
18
- (function (MapProviders) {
19
- MapProviders[MapProviders["OpenStreetMap"] = 1] = "OpenStreetMap";
20
- MapProviders[MapProviders["Mapbox"] = 2] = "Mapbox";
21
- MapProviders[MapProviders["Custom"] = 3] = "Custom";
22
- })(MapProviders || (exports.MapProviders = MapProviders = {}));
23
- var ConfigPriority;
24
- (function (ConfigPriority) {
25
- ConfigPriority[ConfigPriority["basic"] = 1] = "basic";
26
- ConfigPriority[ConfigPriority["advanced"] = 2] = "advanced";
27
- ConfigPriority[ConfigPriority["underTheHood"] = 3] = "underTheHood";
28
- })(ConfigPriority || (exports.ConfigPriority = ConfigPriority = {}));
29
- var ThemeModes;
30
- (function (ThemeModes) {
31
- ThemeModes[ThemeModes["light"] = 1] = "light";
32
- ThemeModes[ThemeModes["dark"] = 2] = "dark";
33
- ThemeModes[ThemeModes["auto"] = 3] = "auto";
34
- })(ThemeModes || (exports.ThemeModes = ThemeModes = {}));
35
- var ScrollUpModes;
36
- (function (ScrollUpModes) {
37
- ScrollUpModes[ScrollUpModes["never"] = 1] = "never";
38
- ScrollUpModes[ScrollUpModes["mobileOnly"] = 2] = "mobileOnly";
39
- ScrollUpModes[ScrollUpModes["always"] = 3] = "always";
40
- })(ScrollUpModes || (exports.ScrollUpModes = ScrollUpModes = {}));
41
- /**
42
- * Used for lightbox titles
43
- */
44
- var LightBoxTitleTexts;
45
- (function (LightBoxTitleTexts) {
46
- LightBoxTitleTexts[LightBoxTitleTexts["NONE"] = 1] = "NONE";
47
- LightBoxTitleTexts[LightBoxTitleTexts["file"] = 2] = "file";
48
- LightBoxTitleTexts[LightBoxTitleTexts["resolution"] = 3] = "resolution";
49
- LightBoxTitleTexts[LightBoxTitleTexts["size"] = 4] = "size";
50
- LightBoxTitleTexts[LightBoxTitleTexts["caption"] = 5] = "caption";
51
- LightBoxTitleTexts[LightBoxTitleTexts["title"] = 6] = "title";
52
- LightBoxTitleTexts[LightBoxTitleTexts["keywords"] = 7] = "keywords";
53
- LightBoxTitleTexts[LightBoxTitleTexts["persons"] = 8] = "persons";
54
- LightBoxTitleTexts[LightBoxTitleTexts["location"] = 9] = "location";
55
- LightBoxTitleTexts[LightBoxTitleTexts["date"] = 10] = "date";
56
- LightBoxTitleTexts[LightBoxTitleTexts["camera"] = 11] = "camera";
57
- LightBoxTitleTexts[LightBoxTitleTexts["lens"] = 12] = "lens";
58
- LightBoxTitleTexts[LightBoxTitleTexts["iso"] = 13] = "iso";
59
- LightBoxTitleTexts[LightBoxTitleTexts["fstop"] = 14] = "fstop";
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";
65
- })(LightBoxTitleTexts || (exports.LightBoxTitleTexts = LightBoxTitleTexts = {}));
66
26
  let AutoCompleteItemsPerCategoryConfig = class AutoCompleteItemsPerCategoryConfig {
67
27
  constructor() {
68
28
  this.maxItems = 20;
@@ -75,84 +35,84 @@ let AutoCompleteItemsPerCategoryConfig = class AutoCompleteItemsPerCategoryConfi
75
35
  }
76
36
  };
77
37
  exports.AutoCompleteItemsPerCategoryConfig = AutoCompleteItemsPerCategoryConfig;
78
- tslib_1.__decorate([
38
+ __decorate([
79
39
  (0, common_1.ConfigProperty)({
80
40
  type: 'unsignedInt',
81
41
  tags: {
82
42
  name: $localize `Maximum items`,
83
- priority: ConfigPriority.underTheHood
43
+ priority: Enums_1.ConfigPriority.underTheHood
84
44
  },
85
45
  description: $localize `Maximum number autocomplete items shown at once. If there is not enough items to reach this value, it takes up to double of the individual items.`
86
46
  }),
87
- tslib_1.__metadata("design:type", Number)
47
+ __metadata("design:type", Number)
88
48
  ], AutoCompleteItemsPerCategoryConfig.prototype, "maxItems", void 0);
89
- tslib_1.__decorate([
49
+ __decorate([
90
50
  (0, common_1.ConfigProperty)({
91
51
  type: 'unsignedInt',
92
52
  tags: {
93
53
  name: $localize `Max photo items`,
94
- priority: ConfigPriority.underTheHood
54
+ priority: Enums_1.ConfigPriority.underTheHood
95
55
  },
96
56
  description: $localize `Maximum number autocomplete items shown per photo category.`
97
57
  }),
98
- tslib_1.__metadata("design:type", Number)
58
+ __metadata("design:type", Number)
99
59
  ], AutoCompleteItemsPerCategoryConfig.prototype, "fileName", void 0);
100
- tslib_1.__decorate([
60
+ __decorate([
101
61
  (0, common_1.ConfigProperty)({
102
62
  type: 'unsignedInt',
103
63
  tags: {
104
64
  name: $localize `Max directory items`,
105
- priority: ConfigPriority.underTheHood
65
+ priority: Enums_1.ConfigPriority.underTheHood
106
66
  },
107
67
  description: $localize `Maximum number autocomplete items shown per directory category.`
108
68
  }),
109
- tslib_1.__metadata("design:type", Number)
69
+ __metadata("design:type", Number)
110
70
  ], AutoCompleteItemsPerCategoryConfig.prototype, "directory", void 0);
111
- tslib_1.__decorate([
71
+ __decorate([
112
72
  (0, common_1.ConfigProperty)({
113
73
  type: 'unsignedInt',
114
74
  tags: {
115
75
  name: $localize `Max caption items`,
116
- priority: ConfigPriority.underTheHood
76
+ priority: Enums_1.ConfigPriority.underTheHood
117
77
  },
118
78
  description: $localize `Maximum number autocomplete items shown per caption category.`
119
79
  }),
120
- tslib_1.__metadata("design:type", Number)
80
+ __metadata("design:type", Number)
121
81
  ], AutoCompleteItemsPerCategoryConfig.prototype, "caption", void 0);
122
- tslib_1.__decorate([
82
+ __decorate([
123
83
  (0, common_1.ConfigProperty)({
124
84
  type: 'unsignedInt',
125
85
  tags: {
126
86
  name: $localize `Max position items`,
127
- priority: ConfigPriority.underTheHood
87
+ priority: Enums_1.ConfigPriority.underTheHood
128
88
  },
129
89
  description: $localize `Maximum number autocomplete items shown per position category.`
130
90
  }),
131
- tslib_1.__metadata("design:type", Number)
91
+ __metadata("design:type", Number)
132
92
  ], AutoCompleteItemsPerCategoryConfig.prototype, "position", void 0);
133
- tslib_1.__decorate([
93
+ __decorate([
134
94
  (0, common_1.ConfigProperty)({
135
95
  type: 'unsignedInt',
136
96
  tags: {
137
97
  name: $localize `Max faces items`,
138
- priority: ConfigPriority.underTheHood
98
+ priority: Enums_1.ConfigPriority.underTheHood
139
99
  },
140
100
  description: $localize `Maximum number autocomplete items shown per faces category.`
141
101
  }),
142
- tslib_1.__metadata("design:type", Number)
102
+ __metadata("design:type", Number)
143
103
  ], AutoCompleteItemsPerCategoryConfig.prototype, "person", void 0);
144
- tslib_1.__decorate([
104
+ __decorate([
145
105
  (0, common_1.ConfigProperty)({
146
106
  type: 'unsignedInt',
147
107
  tags: {
148
108
  name: $localize `Max keyword items`,
149
- priority: ConfigPriority.underTheHood
109
+ priority: Enums_1.ConfigPriority.underTheHood
150
110
  },
151
111
  description: $localize `Maximum number autocomplete items shown per keyword category.`
152
112
  }),
153
- tslib_1.__metadata("design:type", Number)
113
+ __metadata("design:type", Number)
154
114
  ], AutoCompleteItemsPerCategoryConfig.prototype, "keyword", void 0);
155
- exports.AutoCompleteItemsPerCategoryConfig = AutoCompleteItemsPerCategoryConfig = tslib_1.__decorate([
115
+ exports.AutoCompleteItemsPerCategoryConfig = AutoCompleteItemsPerCategoryConfig = __decorate([
156
116
  (0, common_1.SubConfigClass)({ tags: { client: true }, softReadonly: true })
157
117
  ], AutoCompleteItemsPerCategoryConfig);
158
118
  let AutoCompleteConfig = class AutoCompleteConfig {
@@ -163,39 +123,41 @@ let AutoCompleteConfig = class AutoCompleteConfig {
163
123
  }
164
124
  };
165
125
  exports.AutoCompleteConfig = AutoCompleteConfig;
166
- tslib_1.__decorate([
126
+ __decorate([
167
127
  (0, common_1.ConfigProperty)({
128
+ type: 'boolean',
168
129
  tags: {
169
130
  name: $localize `Enable Autocomplete`,
170
- priority: ConfigPriority.advanced
131
+ priority: Enums_1.ConfigPriority.advanced
171
132
  },
172
133
  description: $localize `Show hints while typing search query.`
173
134
  }),
174
- tslib_1.__metadata("design:type", Boolean)
135
+ __metadata("design:type", Boolean)
175
136
  ], AutoCompleteConfig.prototype, "enabled", void 0);
176
- tslib_1.__decorate([
137
+ __decorate([
177
138
  (0, common_1.ConfigProperty)({
139
+ type: AutoCompleteItemsPerCategoryConfig,
178
140
  tags: {
179
141
  name: $localize `Max items per category`,
180
- priority: ConfigPriority.underTheHood
142
+ priority: Enums_1.ConfigPriority.underTheHood
181
143
  },
182
144
  description: $localize `Maximum number autocomplete items shown per category.`
183
145
  }),
184
- tslib_1.__metadata("design:type", AutoCompleteItemsPerCategoryConfig)
146
+ __metadata("design:type", AutoCompleteItemsPerCategoryConfig)
185
147
  ], AutoCompleteConfig.prototype, "ItemsPerCategory", void 0);
186
- tslib_1.__decorate([
148
+ __decorate([
187
149
  (0, common_1.ConfigProperty)({
188
150
  type: 'unsignedInt',
189
151
  tags: {
190
152
  name: $localize `Cache timeout`,
191
- priority: ConfigPriority.underTheHood,
153
+ priority: Enums_1.ConfigPriority.underTheHood,
192
154
  unit: 'ms'
193
155
  },
194
156
  description: $localize `Autocomplete cache timeout. `
195
157
  }),
196
- tslib_1.__metadata("design:type", Number)
158
+ __metadata("design:type", Number)
197
159
  ], AutoCompleteConfig.prototype, "cacheTimeout", void 0);
198
- exports.AutoCompleteConfig = AutoCompleteConfig = tslib_1.__decorate([
160
+ exports.AutoCompleteConfig = AutoCompleteConfig = __decorate([
199
161
  (0, common_1.SubConfigClass)({ tags: { client: true }, softReadonly: true })
200
162
  ], AutoCompleteConfig);
201
163
  let ClientSearchConfig = class ClientSearchConfig {
@@ -210,79 +172,83 @@ let ClientSearchConfig = class ClientSearchConfig {
210
172
  }
211
173
  };
212
174
  exports.ClientSearchConfig = ClientSearchConfig;
213
- tslib_1.__decorate([
175
+ __decorate([
214
176
  (0, common_1.ConfigProperty)({
177
+ type: 'boolean',
215
178
  tags: {
216
179
  name: $localize `Enable`,
217
- priority: ConfigPriority.advanced
180
+ priority: Enums_1.ConfigPriority.advanced
218
181
  },
219
182
  description: $localize `Enables searching.`
220
183
  }),
221
- tslib_1.__metadata("design:type", Boolean)
184
+ __metadata("design:type", Boolean)
222
185
  ], ClientSearchConfig.prototype, "enabled", void 0);
223
- tslib_1.__decorate([
186
+ __decorate([
224
187
  (0, common_1.ConfigProperty)({
225
188
  type: 'unsignedInt',
226
189
  tags: {
227
190
  name: $localize `Cache timeout`,
228
- priority: ConfigPriority.underTheHood,
191
+ priority: Enums_1.ConfigPriority.underTheHood,
229
192
  unit: 'ms'
230
193
  },
231
194
  description: $localize `Search cache timeout.`
232
195
  }),
233
- tslib_1.__metadata("design:type", Number)
196
+ __metadata("design:type", Number)
234
197
  ], ClientSearchConfig.prototype, "searchCacheTimeout", void 0);
235
- tslib_1.__decorate([
198
+ __decorate([
236
199
  (0, common_1.ConfigProperty)({
200
+ type: AutoCompleteConfig,
237
201
  tags: {
238
202
  name: $localize `Autocomplete`,
239
- priority: ConfigPriority.advanced
203
+ priority: Enums_1.ConfigPriority.advanced
240
204
  },
241
205
  }),
242
- tslib_1.__metadata("design:type", AutoCompleteConfig)
206
+ __metadata("design:type", AutoCompleteConfig)
243
207
  ], ClientSearchConfig.prototype, "AutoComplete", void 0);
244
- tslib_1.__decorate([
208
+ __decorate([
245
209
  (0, common_1.ConfigProperty)({
246
210
  type: 'unsignedInt',
247
211
  tags: {
248
212
  name: $localize `Maximum media result`,
249
- priority: ConfigPriority.advanced
213
+ priority: Enums_1.ConfigPriority.advanced
250
214
  },
251
215
  description: $localize `Maximum number of photos and videos that are listed in one search result.`
252
216
  }),
253
- tslib_1.__metadata("design:type", Number)
217
+ __metadata("design:type", Number)
254
218
  ], ClientSearchConfig.prototype, "maxMediaResult", void 0);
255
- tslib_1.__decorate([
219
+ __decorate([
256
220
  (0, common_1.ConfigProperty)({
257
221
  type: 'unsignedInt', tags: {
258
222
  name: $localize `Maximum directory result`,
259
- priority: ConfigPriority.advanced
223
+ priority: Enums_1.ConfigPriority.advanced
260
224
  },
261
225
  description: $localize `Maximum number of directories that are listed in one search result.`
262
226
  }),
263
- tslib_1.__metadata("design:type", Number)
227
+ __metadata("design:type", Number)
264
228
  ], ClientSearchConfig.prototype, "maxDirectoryResult", void 0);
265
- tslib_1.__decorate([
229
+ __decorate([
266
230
  (0, common_1.ConfigProperty)({
231
+ type: 'boolean',
267
232
  tags: {
268
233
  name: $localize `List directories`,
269
- priority: ConfigPriority.advanced
234
+ priority: Enums_1.ConfigPriority.advanced
270
235
  },
271
236
  description: $localize `Search returns also with directories, not just media.`
272
237
  }),
273
- tslib_1.__metadata("design:type", Boolean)
238
+ __metadata("design:type", Boolean)
274
239
  ], ClientSearchConfig.prototype, "listDirectories", void 0);
275
- tslib_1.__decorate([
240
+ __decorate([
276
241
  (0, common_1.ConfigProperty)({
242
+ type: 'boolean',
277
243
  tags: {
278
244
  name: $localize `List metafiles`,
279
- priority: ConfigPriority.advanced
245
+ priority: Enums_1.ConfigPriority.advanced
280
246
  },
281
247
  description: $localize `Search also returns with metafiles from directories that contain a media file of the matched search result.`,
282
248
  }),
283
- tslib_1.__metadata("design:type", Boolean)
249
+ __metadata("design:type", Boolean)
284
250
  ], ClientSearchConfig.prototype, "listMetafiles", void 0);
285
- exports.ClientSearchConfig = ClientSearchConfig = tslib_1.__decorate([
251
+ exports.ClientSearchConfig = ClientSearchConfig = __decorate([
286
252
  (0, common_1.SubConfigClass)({ tags: { client: true }, softReadonly: true })
287
253
  ], ClientSearchConfig);
288
254
  let ClientAlbumConfig = class ClientAlbumConfig {
@@ -292,26 +258,27 @@ let ClientAlbumConfig = class ClientAlbumConfig {
292
258
  }
293
259
  };
294
260
  exports.ClientAlbumConfig = ClientAlbumConfig;
295
- tslib_1.__decorate([
261
+ __decorate([
296
262
  (0, common_1.ConfigProperty)({
263
+ type: 'boolean',
297
264
  tags: {
298
265
  name: $localize `Enable`,
299
- priority: ConfigPriority.advanced
266
+ priority: Enums_1.ConfigPriority.advanced
300
267
  }
301
268
  }),
302
- tslib_1.__metadata("design:type", Boolean)
269
+ __metadata("design:type", Boolean)
303
270
  ], ClientAlbumConfig.prototype, "enabled", void 0);
304
- tslib_1.__decorate([
271
+ __decorate([
305
272
  (0, common_1.ConfigProperty)({
306
273
  type: UserDTO_1.UserRoles, tags: {
307
274
  name: $localize `Albums listing right`,
308
- priority: ConfigPriority.underTheHood
275
+ priority: Enums_1.ConfigPriority.underTheHood
309
276
  },
310
277
  description: $localize `Required minimum right to show the albums tab.`
311
278
  }),
312
- tslib_1.__metadata("design:type", Number)
279
+ __metadata("design:type", Number)
313
280
  ], ClientAlbumConfig.prototype, "readAccessMinRole", void 0);
314
- exports.ClientAlbumConfig = ClientAlbumConfig = tslib_1.__decorate([
281
+ exports.ClientAlbumConfig = ClientAlbumConfig = __decorate([
315
282
  (0, common_1.SubConfigClass)({ tags: { client: true }, softReadonly: true })
316
283
  ], ClientAlbumConfig);
317
284
  let ClientSharingConfig = class ClientSharingConfig {
@@ -322,38 +289,40 @@ let ClientSharingConfig = class ClientSharingConfig {
322
289
  }
323
290
  };
324
291
  exports.ClientSharingConfig = ClientSharingConfig;
325
- tslib_1.__decorate([
292
+ __decorate([
326
293
  (0, common_1.ConfigProperty)({
294
+ type: 'boolean',
327
295
  tags: {
328
296
  name: $localize `Enable`,
329
- priority: ConfigPriority.advanced
297
+ priority: Enums_1.ConfigPriority.advanced
330
298
  },
331
299
  description: $localize `Enables sharing.`,
332
300
  }),
333
- tslib_1.__metadata("design:type", Boolean)
301
+ __metadata("design:type", Boolean)
334
302
  ], ClientSharingConfig.prototype, "enabled", void 0);
335
- tslib_1.__decorate([
303
+ __decorate([
336
304
  (0, common_1.ConfigProperty)({
305
+ type: 'boolean',
337
306
  tags: {
338
307
  name: $localize `Require password`,
339
- priority: ConfigPriority.advanced
308
+ priority: Enums_1.ConfigPriority.advanced
340
309
  },
341
310
  description: $localize `Requires password protected sharing links.`,
342
311
  }),
343
- tslib_1.__metadata("design:type", Boolean)
312
+ __metadata("design:type", Boolean)
344
313
  ], ClientSharingConfig.prototype, "passwordRequired", void 0);
345
- tslib_1.__decorate([
314
+ __decorate([
346
315
  (0, common_1.ConfigProperty)({
347
316
  type: 'unsignedInt', min: 8, max: 64,
348
317
  tags: {
349
318
  name: $localize `Sharing key length`,
350
- priority: ConfigPriority.underTheHood
319
+ priority: Enums_1.ConfigPriority.underTheHood
351
320
  },
352
321
  description: $localize `The longer the keys are, the harder they are to guess. Changing this number won't invalidate existing sharing.`,
353
322
  }),
354
- tslib_1.__metadata("design:type", Number)
323
+ __metadata("design:type", Number)
355
324
  ], ClientSharingConfig.prototype, "sharingKeyLength", void 0);
356
- exports.ClientSharingConfig = ClientSharingConfig = tslib_1.__decorate([
325
+ exports.ClientSharingConfig = ClientSharingConfig = __decorate([
357
326
  (0, common_1.SubConfigClass)({ tags: { client: true }, softReadonly: true })
358
327
  ], ClientSharingConfig);
359
328
  let ClientRandomPhotoConfig = class ClientRandomPhotoConfig {
@@ -362,17 +331,18 @@ let ClientRandomPhotoConfig = class ClientRandomPhotoConfig {
362
331
  }
363
332
  };
364
333
  exports.ClientRandomPhotoConfig = ClientRandomPhotoConfig;
365
- tslib_1.__decorate([
334
+ __decorate([
366
335
  (0, common_1.ConfigProperty)({
336
+ type: 'boolean',
367
337
  tags: {
368
338
  name: $localize `Enable`,
369
- priority: ConfigPriority.advanced
339
+ priority: Enums_1.ConfigPriority.advanced
370
340
  },
371
341
  description: $localize `Enables random link generation.`,
372
342
  }),
373
- tslib_1.__metadata("design:type", Boolean)
343
+ __metadata("design:type", Boolean)
374
344
  ], ClientRandomPhotoConfig.prototype, "enabled", void 0);
375
- exports.ClientRandomPhotoConfig = ClientRandomPhotoConfig = tslib_1.__decorate([
345
+ exports.ClientRandomPhotoConfig = ClientRandomPhotoConfig = __decorate([
376
346
  (0, common_1.SubConfigClass)({ tags: { client: true }, softReadonly: true })
377
347
  ], ClientRandomPhotoConfig);
378
348
  let MapLayers = class MapLayers {
@@ -383,35 +353,38 @@ let MapLayers = class MapLayers {
383
353
  }
384
354
  };
385
355
  exports.MapLayers = MapLayers;
386
- tslib_1.__decorate([
356
+ __decorate([
387
357
  (0, common_1.ConfigProperty)({
358
+ type: 'string',
388
359
  tags: {
389
- priority: ConfigPriority.advanced
360
+ priority: Enums_1.ConfigPriority.advanced
390
361
  },
391
362
  description: $localize `Name of a map layer.`,
392
363
  }),
393
- tslib_1.__metadata("design:type", String)
364
+ __metadata("design:type", String)
394
365
  ], MapLayers.prototype, "name", void 0);
395
- tslib_1.__decorate([
366
+ __decorate([
396
367
  (0, common_1.ConfigProperty)({
368
+ type: 'string',
397
369
  tags: {
398
- priority: ConfigPriority.advanced,
370
+ priority: Enums_1.ConfigPriority.advanced,
399
371
  hint: 'https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png'
400
372
  },
401
373
  description: $localize `Url of a map layer.`,
402
374
  }),
403
- tslib_1.__metadata("design:type", String)
375
+ __metadata("design:type", String)
404
376
  ], MapLayers.prototype, "url", void 0);
405
- tslib_1.__decorate([
377
+ __decorate([
406
378
  (0, common_1.ConfigProperty)({
379
+ type: 'boolean',
407
380
  tags: {
408
- priority: ConfigPriority.advanced,
381
+ priority: Enums_1.ConfigPriority.advanced,
409
382
  },
410
383
  description: $localize `Sets if the layer is dark (used as default in the dark mode).`,
411
384
  }),
412
- tslib_1.__metadata("design:type", Boolean)
385
+ __metadata("design:type", Boolean)
413
386
  ], MapLayers.prototype, "darkLayer", void 0);
414
- exports.MapLayers = MapLayers = tslib_1.__decorate([
387
+ exports.MapLayers = MapLayers = __decorate([
415
388
  (0, common_1.SubConfigClass)({ tags: { client: true }, softReadonly: true })
416
389
  ], MapLayers);
417
390
  let SVGIconConfig = class SVGIconConfig {
@@ -423,29 +396,31 @@ let SVGIconConfig = class SVGIconConfig {
423
396
  }
424
397
  };
425
398
  exports.SVGIconConfig = SVGIconConfig;
426
- tslib_1.__decorate([
399
+ __decorate([
427
400
  (0, common_1.ConfigProperty)({
401
+ type: 'string',
428
402
  tags: {
429
403
  name: $localize `SVG icon viewBox`,
430
- priority: ConfigPriority.advanced
404
+ priority: Enums_1.ConfigPriority.advanced
431
405
  },
432
406
  description: $localize `SVG path viewBox. See: https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/viewBox`,
433
407
  }),
434
- tslib_1.__metadata("design:type", String)
408
+ __metadata("design:type", String)
435
409
  ], SVGIconConfig.prototype, "viewBox", void 0);
436
- tslib_1.__decorate([
410
+ __decorate([
437
411
  (0, common_1.ConfigProperty)({
412
+ type: 'string',
438
413
  tags: {
439
414
  name: $localize `SVG Items`,
440
- priority: ConfigPriority.advanced
415
+ priority: Enums_1.ConfigPriority.advanced
441
416
  },
442
417
  description: $localize `Content elements (paths, circles, rects) of the SVG icon. Icons used on the map: fontawesome.com/icons.`,
443
418
  }),
444
- tslib_1.__metadata("design:type", String)
419
+ __metadata("design:type", String)
445
420
  ], SVGIconConfig.prototype, "items", void 0);
446
- exports.SVGIconConfig = SVGIconConfig = tslib_1.__decorate([
421
+ exports.SVGIconConfig = SVGIconConfig = __decorate([
447
422
  (0, common_1.SubConfigClass)({ tags: { client: true }, softReadonly: true }),
448
- tslib_1.__metadata("design:paramtypes", [String, String])
423
+ __metadata("design:paramtypes", [String, String])
449
424
  ], SVGIconConfig);
450
425
  let PathThemeConfig = class PathThemeConfig {
451
426
  constructor(color = '', dashArray = '', svgIcon = new SVGIconConfig('', '')) {
@@ -458,42 +433,44 @@ let PathThemeConfig = class PathThemeConfig {
458
433
  }
459
434
  };
460
435
  exports.PathThemeConfig = PathThemeConfig;
461
- tslib_1.__decorate([
436
+ __decorate([
462
437
  (0, common_1.ConfigProperty)({
438
+ type: 'string',
463
439
  tags: {
464
440
  name: $localize `Color`,
465
- priority: ConfigPriority.advanced
441
+ priority: Enums_1.ConfigPriority.advanced
466
442
  },
467
443
  description: $localize `Color of the path. Use any valid css colors.`,
468
444
  }),
469
- tslib_1.__metadata("design:type", String)
445
+ __metadata("design:type", String)
470
446
  ], PathThemeConfig.prototype, "color", void 0);
471
- tslib_1.__decorate([
447
+ __decorate([
472
448
  (0, common_1.ConfigProperty)({
449
+ type: 'string',
473
450
  tags: {
474
451
  name: $localize `Dash pattern`,
475
- priority: ConfigPriority.advanced,
452
+ priority: Enums_1.ConfigPriority.advanced,
476
453
  uiOptions: ['', '4', '4 1', '4 8', '4 1 2', '0 4 0', '4 1 2 3'],
477
454
  },
478
455
  description: $localize `Dash pattern of the path. Represents the spacing and length of the dash. Read more about dash array at: https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/stroke-dasharray.`,
479
456
  }),
480
- tslib_1.__metadata("design:type", String)
457
+ __metadata("design:type", String)
481
458
  ], PathThemeConfig.prototype, "dashArray", void 0);
482
- tslib_1.__decorate([
459
+ __decorate([
483
460
  (0, common_1.ConfigProperty)({
484
461
  type: SVGIconConfig,
485
462
  tags: {
486
463
  name: $localize `Svg Icon`,
487
464
  uiType: 'SVGIconConfig',
488
- priority: ConfigPriority.advanced
465
+ priority: Enums_1.ConfigPriority.advanced
489
466
  },
490
467
  description: $localize `Set the icon of the map marker pin.`,
491
468
  }),
492
- tslib_1.__metadata("design:type", SVGIconConfig)
469
+ __metadata("design:type", SVGIconConfig)
493
470
  ], PathThemeConfig.prototype, "svgIcon", void 0);
494
- exports.PathThemeConfig = PathThemeConfig = tslib_1.__decorate([
471
+ exports.PathThemeConfig = PathThemeConfig = __decorate([
495
472
  (0, common_1.SubConfigClass)({ tags: { client: true }, softReadonly: true }),
496
- tslib_1.__metadata("design:paramtypes", [String, String, SVGIconConfig])
473
+ __metadata("design:paramtypes", [String, String, SVGIconConfig])
497
474
  ], PathThemeConfig);
498
475
  let MapPathGroupThemeConfig = class MapPathGroupThemeConfig {
499
476
  constructor(matchers = [], theme = new PathThemeConfig()) {
@@ -504,31 +481,32 @@ let MapPathGroupThemeConfig = class MapPathGroupThemeConfig {
504
481
  }
505
482
  };
506
483
  exports.MapPathGroupThemeConfig = MapPathGroupThemeConfig;
507
- tslib_1.__decorate([
484
+ __decorate([
508
485
  (0, common_1.ConfigProperty)({
486
+ type: 'array',
509
487
  arrayType: 'string',
510
488
  tags: {
511
489
  name: $localize `Matchers`,
512
- priority: ConfigPriority.advanced
490
+ priority: Enums_1.ConfigPriority.advanced
513
491
  },
514
492
  description: $localize `List of regex string to match the name of the path. Case insensitive. Empty list matches everything.`,
515
493
  }),
516
- tslib_1.__metadata("design:type", Array)
494
+ __metadata("design:type", Array)
517
495
  ], MapPathGroupThemeConfig.prototype, "matchers", void 0);
518
- tslib_1.__decorate([
496
+ __decorate([
519
497
  (0, common_1.ConfigProperty)({
520
498
  type: PathThemeConfig,
521
499
  tags: {
522
500
  name: $localize `Path and icon theme`,
523
- priority: ConfigPriority.advanced
501
+ priority: Enums_1.ConfigPriority.advanced
524
502
  },
525
503
  description: $localize `List of regex string to match the name of the path.`,
526
504
  }),
527
- tslib_1.__metadata("design:type", PathThemeConfig)
505
+ __metadata("design:type", PathThemeConfig)
528
506
  ], MapPathGroupThemeConfig.prototype, "theme", void 0);
529
- exports.MapPathGroupThemeConfig = MapPathGroupThemeConfig = tslib_1.__decorate([
507
+ exports.MapPathGroupThemeConfig = MapPathGroupThemeConfig = __decorate([
530
508
  (0, common_1.SubConfigClass)({ tags: { client: true }, softReadonly: true }),
531
- tslib_1.__metadata("design:paramtypes", [Array, PathThemeConfig])
509
+ __metadata("design:paramtypes", [Array, PathThemeConfig])
532
510
  ], MapPathGroupThemeConfig);
533
511
  let MapPathGroupConfig = class MapPathGroupConfig {
534
512
  constructor(name = '', matchers = []) {
@@ -539,36 +517,38 @@ let MapPathGroupConfig = class MapPathGroupConfig {
539
517
  }
540
518
  };
541
519
  exports.MapPathGroupConfig = MapPathGroupConfig;
542
- tslib_1.__decorate([
520
+ __decorate([
543
521
  (0, common_1.ConfigProperty)({
522
+ type: 'string',
544
523
  tags: {
545
524
  name: $localize `Name`,
546
- priority: ConfigPriority.advanced
525
+ priority: Enums_1.ConfigPriority.advanced
547
526
  },
548
527
  description: $localize `Name of the marker and path group on the map.`,
549
528
  }),
550
- tslib_1.__metadata("design:type", String)
529
+ __metadata("design:type", String)
551
530
  ], MapPathGroupConfig.prototype, "name", void 0);
552
- tslib_1.__decorate([
531
+ __decorate([
553
532
  (0, common_1.ConfigProperty)({
533
+ type: 'array',
554
534
  arrayType: MapPathGroupThemeConfig,
555
535
  tags: {
556
536
  name: $localize `Path themes`,
557
- priority: ConfigPriority.advanced
537
+ priority: Enums_1.ConfigPriority.advanced
558
538
  },
559
539
  description: $localize `Matchers for a given map and path theme.`,
560
540
  }),
561
- tslib_1.__metadata("design:type", Array)
541
+ __metadata("design:type", Array)
562
542
  ], MapPathGroupConfig.prototype, "matchers", void 0);
563
- exports.MapPathGroupConfig = MapPathGroupConfig = tslib_1.__decorate([
543
+ exports.MapPathGroupConfig = MapPathGroupConfig = __decorate([
564
544
  (0, common_1.SubConfigClass)({ tags: { client: true }, softReadonly: true }),
565
- tslib_1.__metadata("design:paramtypes", [String, Array])
545
+ __metadata("design:paramtypes", [String, Array])
566
546
  ], MapPathGroupConfig);
567
547
  let ClientMapConfig = class ClientMapConfig {
568
548
  constructor() {
569
549
  this.enabled = true;
570
550
  this.useImageMarkers = true;
571
- this.mapProvider = MapProviders.OpenStreetMap;
551
+ this.mapProvider = Enums_1.MapProviders.OpenStreetMap;
572
552
  this.mapboxAccessToken = '';
573
553
  this.customLayers = [new MapLayers()];
574
554
  this.maxPreviewMarkers = 50;
@@ -582,111 +562,108 @@ let ClientMapConfig = class ClientMapConfig {
582
562
  }
583
563
  };
584
564
  exports.ClientMapConfig = ClientMapConfig;
585
- tslib_1.__decorate([
565
+ __decorate([
586
566
  (0, common_1.ConfigProperty)({
567
+ type: 'boolean',
587
568
  onNewValue: (value, config) => {
588
- if (value === false) {
569
+ if (value === false && config) {
589
570
  config.MetaFile.gpx = false;
590
571
  }
591
572
  },
592
573
  tags: {
593
- priority: ConfigPriority.advanced,
574
+ priority: Enums_1.ConfigPriority.advanced,
594
575
  name: $localize `Enable`
595
576
  }
596
577
  }),
597
- tslib_1.__metadata("design:type", Boolean)
578
+ __metadata("design:type", Boolean)
598
579
  ], ClientMapConfig.prototype, "enabled", void 0);
599
- tslib_1.__decorate([
580
+ __decorate([
600
581
  (0, common_1.ConfigProperty)({
582
+ type: 'boolean',
601
583
  tags: {
602
584
  name: $localize `Image Markers`,
603
- priority: ConfigPriority.underTheHood
585
+ priority: Enums_1.ConfigPriority.underTheHood
604
586
  },
605
587
  description: $localize `Map will use thumbnail images as markers instead of the default pin.`,
606
588
  }),
607
- tslib_1.__metadata("design:type", Boolean)
589
+ __metadata("design:type", Boolean)
608
590
  ], ClientMapConfig.prototype, "useImageMarkers", void 0);
609
- tslib_1.__decorate([
591
+ __decorate([
610
592
  (0, common_1.ConfigProperty)({
611
- type: MapProviders,
593
+ type: Enums_1.MapProviders,
612
594
  tags: {
613
595
  name: $localize `Map Provider`,
614
- priority: ConfigPriority.advanced
596
+ priority: Enums_1.ConfigPriority.advanced
615
597
  }
616
598
  }),
617
- tslib_1.__metadata("design:type", Number)
599
+ __metadata("design:type", Number)
618
600
  ], ClientMapConfig.prototype, "mapProvider", void 0);
619
- tslib_1.__decorate([
601
+ __decorate([
620
602
  (0, common_1.ConfigProperty)({
603
+ type: 'string',
621
604
  tags: {
622
605
  name: $localize `Mapbox access token`,
623
- relevant: (c) => c.mapProvider === MapProviders.Mapbox,
624
- priority: ConfigPriority.advanced
606
+ relevant: (c) => c.mapProvider === Enums_1.MapProviders.Mapbox,
607
+ priority: Enums_1.ConfigPriority.advanced
625
608
  },
626
609
  description: $localize `MapBox needs an access token to work, create one at https://www.mapbox.com.`,
627
610
  }),
628
- tslib_1.__metadata("design:type", String)
611
+ __metadata("design:type", String)
629
612
  ], ClientMapConfig.prototype, "mapboxAccessToken", void 0);
630
- tslib_1.__decorate([
613
+ __decorate([
631
614
  (0, common_1.ConfigProperty)({
615
+ type: 'array',
632
616
  arrayType: MapLayers,
633
617
  description: $localize `The map module will use these urls to fetch the map tiles.`,
634
618
  tags: {
635
- relevant: (c) => c.mapProvider === MapProviders.Custom,
619
+ relevant: (c) => c.mapProvider === Enums_1.MapProviders.Custom,
636
620
  name: $localize `Custom Layers`,
637
- priority: ConfigPriority.advanced
621
+ priority: Enums_1.ConfigPriority.advanced
638
622
  }
639
623
  }),
640
- tslib_1.__metadata("design:type", Array)
624
+ __metadata("design:type", Array)
641
625
  ], ClientMapConfig.prototype, "customLayers", void 0);
642
- tslib_1.__decorate([
626
+ __decorate([
643
627
  (0, common_1.ConfigProperty)({
644
628
  type: 'unsignedInt',
645
629
  tags: {
646
630
  name: $localize `Max Preview Markers`,
647
- priority: ConfigPriority.underTheHood
631
+ priority: Enums_1.ConfigPriority.underTheHood
648
632
  },
649
633
  description: $localize `Maximum number of markers to be shown on the map preview on the gallery page.`,
650
634
  }),
651
- tslib_1.__metadata("design:type", Number)
635
+ __metadata("design:type", Number)
652
636
  ], ClientMapConfig.prototype, "maxPreviewMarkers", void 0);
653
- tslib_1.__decorate([
637
+ __decorate([
654
638
  (0, common_1.ConfigProperty)({
639
+ type: 'array',
655
640
  arrayType: MapPathGroupConfig,
656
641
  tags: {
657
642
  name: $localize `Path theme groups`,
658
643
  githubIssue: 647,
659
- priority: ConfigPriority.underTheHood
644
+ priority: Enums_1.ConfigPriority.underTheHood
660
645
  },
661
646
  description: $localize `Markers are grouped and themed by these settings`,
662
647
  }),
663
- tslib_1.__metadata("design:type", Array)
648
+ __metadata("design:type", Array)
664
649
  ], ClientMapConfig.prototype, "MapPathGroupConfig", void 0);
665
- tslib_1.__decorate([
650
+ __decorate([
666
651
  (0, common_1.ConfigProperty)({
667
652
  type: 'positiveFloat',
668
653
  tags: {
669
654
  name: $localize `Bend long path trigger`,
670
- priority: ConfigPriority.underTheHood
655
+ priority: Enums_1.ConfigPriority.underTheHood
671
656
  },
672
657
  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.`,
673
658
  }),
674
- tslib_1.__metadata("design:type", Number)
659
+ __metadata("design:type", Number)
675
660
  ], ClientMapConfig.prototype, "bendLongPathsTrigger", void 0);
676
- exports.ClientMapConfig = ClientMapConfig = tslib_1.__decorate([
661
+ exports.ClientMapConfig = ClientMapConfig = __decorate([
677
662
  (0, common_1.SubConfigClass)({ tags: { client: true }, softReadonly: true })
678
663
  ], ClientMapConfig);
679
- var NavigationLinkTypes;
680
- (function (NavigationLinkTypes) {
681
- NavigationLinkTypes[NavigationLinkTypes["gallery"] = 1] = "gallery";
682
- NavigationLinkTypes[NavigationLinkTypes["faces"] = 2] = "faces";
683
- NavigationLinkTypes[NavigationLinkTypes["albums"] = 3] = "albums";
684
- NavigationLinkTypes[NavigationLinkTypes["search"] = 4] = "search";
685
- NavigationLinkTypes[NavigationLinkTypes["url"] = 5] = "url";
686
- })(NavigationLinkTypes || (exports.NavigationLinkTypes = NavigationLinkTypes = {}));
687
664
  let NavigationLinkConfig = class NavigationLinkConfig {
688
- constructor(type = NavigationLinkTypes.gallery, name, SearchQuery, url) {
689
- this.type = NavigationLinkTypes.gallery;
665
+ constructor(type = Enums_1.NavigationLinkTypes.gallery, name, SearchQuery, url) {
666
+ this.type = Enums_1.NavigationLinkTypes.gallery;
690
667
  this.type = type;
691
668
  this.name = name;
692
669
  this.SearchQuery = SearchQuery;
@@ -694,52 +671,52 @@ let NavigationLinkConfig = class NavigationLinkConfig {
694
671
  }
695
672
  };
696
673
  exports.NavigationLinkConfig = NavigationLinkConfig;
697
- tslib_1.__decorate([
674
+ __decorate([
698
675
  (0, common_1.ConfigProperty)({
699
- type: NavigationLinkTypes,
676
+ type: Enums_1.NavigationLinkTypes,
700
677
  tags: {
701
678
  name: $localize `Type`,
702
- priority: ConfigPriority.advanced
679
+ priority: Enums_1.ConfigPriority.advanced
703
680
  }
704
681
  }),
705
- tslib_1.__metadata("design:type", Number)
682
+ __metadata("design:type", Number)
706
683
  ], NavigationLinkConfig.prototype, "type", void 0);
707
- tslib_1.__decorate([
684
+ __decorate([
708
685
  (0, common_1.ConfigProperty)({
709
686
  type: 'string',
710
687
  tags: {
711
688
  name: $localize `Name`,
712
- priority: ConfigPriority.advanced
689
+ priority: Enums_1.ConfigPriority.advanced
713
690
  }
714
691
  }),
715
- tslib_1.__metadata("design:type", String)
692
+ __metadata("design:type", String)
716
693
  ], NavigationLinkConfig.prototype, "name", void 0);
717
- tslib_1.__decorate([
694
+ __decorate([
718
695
  (0, common_1.ConfigProperty)({
719
696
  type: 'object',
720
697
  tags: {
721
698
  name: $localize `SearchQuery`,
722
- priority: ConfigPriority.advanced,
699
+ priority: Enums_1.ConfigPriority.advanced,
723
700
  uiType: 'SearchQuery',
724
- relevant: (c) => c.type === NavigationLinkTypes.search
701
+ relevant: (c) => c.type === Enums_1.NavigationLinkTypes.search
725
702
  }
726
703
  }),
727
- tslib_1.__metadata("design:type", Object)
704
+ __metadata("design:type", Object)
728
705
  ], NavigationLinkConfig.prototype, "SearchQuery", void 0);
729
- tslib_1.__decorate([
706
+ __decorate([
730
707
  (0, common_1.ConfigProperty)({
731
708
  type: 'string',
732
709
  tags: {
733
710
  name: $localize `Url`,
734
- priority: ConfigPriority.advanced,
735
- relevant: (c) => c.type === NavigationLinkTypes.url
711
+ priority: Enums_1.ConfigPriority.advanced,
712
+ relevant: (c) => c.type === Enums_1.NavigationLinkTypes.url
736
713
  }
737
714
  }),
738
- tslib_1.__metadata("design:type", String)
715
+ __metadata("design:type", String)
739
716
  ], NavigationLinkConfig.prototype, "url", void 0);
740
- exports.NavigationLinkConfig = NavigationLinkConfig = tslib_1.__decorate([
717
+ exports.NavigationLinkConfig = NavigationLinkConfig = __decorate([
741
718
  (0, common_1.SubConfigClass)({ tags: { client: true }, softReadonly: true }),
742
- tslib_1.__metadata("design:paramtypes", [Number, String, Object, String])
719
+ __metadata("design:paramtypes", [Number, String, Object, String])
743
720
  ], NavigationLinkConfig);
744
721
  let ClientSortingConfig = class ClientSortingConfig {
745
722
  constructor(method = SortingMethods_1.SortByTypes.Date, ascending = true) {
@@ -750,26 +727,27 @@ let ClientSortingConfig = class ClientSortingConfig {
750
727
  }
751
728
  };
752
729
  exports.ClientSortingConfig = ClientSortingConfig;
753
- tslib_1.__decorate([
730
+ __decorate([
754
731
  (0, common_1.ConfigProperty)({
755
732
  type: SortingMethods_1.SortByTypes,
756
733
  tags: {
757
734
  name: $localize `Method`,
758
735
  },
759
736
  }),
760
- tslib_1.__metadata("design:type", Number)
737
+ __metadata("design:type", Object)
761
738
  ], ClientSortingConfig.prototype, "method", void 0);
762
- tslib_1.__decorate([
739
+ __decorate([
763
740
  (0, common_1.ConfigProperty)({
741
+ type: 'boolean',
764
742
  tags: {
765
743
  name: $localize `Ascending`,
766
744
  },
767
745
  }),
768
- tslib_1.__metadata("design:type", Boolean)
746
+ __metadata("design:type", Boolean)
769
747
  ], ClientSortingConfig.prototype, "ascending", void 0);
770
- exports.ClientSortingConfig = ClientSortingConfig = tslib_1.__decorate([
748
+ exports.ClientSortingConfig = ClientSortingConfig = __decorate([
771
749
  (0, common_1.SubConfigClass)({ tags: { client: true }, softReadonly: true }),
772
- tslib_1.__metadata("design:paramtypes", [Number, Boolean])
750
+ __metadata("design:paramtypes", [Object, Boolean])
773
751
  ], ClientSortingConfig);
774
752
  let ClientFaceSortingConfig = class ClientFaceSortingConfig {
775
753
  constructor(method = SortingMethods_1.FaceSortByTypes.PersonCount, ascending = true) {
@@ -780,26 +758,27 @@ let ClientFaceSortingConfig = class ClientFaceSortingConfig {
780
758
  }
781
759
  };
782
760
  exports.ClientFaceSortingConfig = ClientFaceSortingConfig;
783
- tslib_1.__decorate([
761
+ __decorate([
784
762
  (0, common_1.ConfigProperty)({
785
763
  type: SortingMethods_1.FaceSortByTypes,
786
764
  tags: {
787
765
  name: $localize `Method`,
788
766
  },
789
767
  }),
790
- tslib_1.__metadata("design:type", Number)
768
+ __metadata("design:type", Number)
791
769
  ], ClientFaceSortingConfig.prototype, "method", void 0);
792
- tslib_1.__decorate([
770
+ __decorate([
793
771
  (0, common_1.ConfigProperty)({
772
+ type: 'boolean',
794
773
  tags: {
795
774
  name: $localize `Ascending`,
796
775
  },
797
776
  }),
798
- tslib_1.__metadata("design:type", Boolean)
777
+ __metadata("design:type", Boolean)
799
778
  ], ClientFaceSortingConfig.prototype, "ascending", void 0);
800
- exports.ClientFaceSortingConfig = ClientFaceSortingConfig = tslib_1.__decorate([
779
+ exports.ClientFaceSortingConfig = ClientFaceSortingConfig = __decorate([
801
780
  (0, common_1.SubConfigClass)({ tags: { client: true }, softReadonly: true }),
802
- tslib_1.__metadata("design:paramtypes", [Number, Boolean])
781
+ __metadata("design:paramtypes", [Number, Boolean])
803
782
  ], ClientFaceSortingConfig);
804
783
  let ClientGroupingConfig = class ClientGroupingConfig {
805
784
  constructor(method = SortingMethods_1.GroupByTypes.Date, ascending = true) {
@@ -810,83 +789,148 @@ let ClientGroupingConfig = class ClientGroupingConfig {
810
789
  }
811
790
  };
812
791
  exports.ClientGroupingConfig = ClientGroupingConfig;
813
- tslib_1.__decorate([
792
+ __decorate([
814
793
  (0, common_1.ConfigProperty)({
815
794
  type: SortingMethods_1.GroupByTypes,
816
795
  tags: {
817
796
  name: $localize `Method`,
818
797
  },
819
798
  }),
820
- tslib_1.__metadata("design:type", Number)
799
+ __metadata("design:type", Number)
821
800
  ], ClientGroupingConfig.prototype, "method", void 0);
822
- tslib_1.__decorate([
801
+ __decorate([
823
802
  (0, common_1.ConfigProperty)({
803
+ type: 'boolean',
824
804
  tags: {
825
805
  name: $localize `Ascending`,
826
806
  },
827
807
  }),
828
- tslib_1.__metadata("design:type", Boolean)
808
+ __metadata("design:type", Boolean)
829
809
  ], ClientGroupingConfig.prototype, "ascending", void 0);
830
- exports.ClientGroupingConfig = ClientGroupingConfig = tslib_1.__decorate([
810
+ exports.ClientGroupingConfig = ClientGroupingConfig = __decorate([
831
811
  (0, common_1.SubConfigClass)({ tags: { client: true }, softReadonly: true }),
832
- tslib_1.__metadata("design:paramtypes", [Number, Boolean])
812
+ __metadata("design:paramtypes", [Number, Boolean])
833
813
  ], ClientGroupingConfig);
814
+ // the sorting of a directory: all its media are in the same directory, so no sorting by directory
815
+ let ClientDirectorySortingConfig = class ClientDirectorySortingConfig {
816
+ constructor(method = SortingMethods_1.SortByTypes.Date, ascending = true) {
817
+ this.method = SortingMethods_1.SortByTypes.Date;
818
+ this.ascending = true;
819
+ this.method = method;
820
+ this.ascending = ascending;
821
+ }
822
+ };
823
+ exports.ClientDirectorySortingConfig = ClientDirectorySortingConfig;
824
+ __decorate([
825
+ (0, common_1.ConfigProperty)({
826
+ type: SortingMethods_1.DirectorySortByTypes,
827
+ tags: {
828
+ name: $localize `Method`,
829
+ },
830
+ }),
831
+ __metadata("design:type", Object)
832
+ ], ClientDirectorySortingConfig.prototype, "method", void 0);
833
+ __decorate([
834
+ (0, common_1.ConfigProperty)({
835
+ type: 'boolean',
836
+ tags: {
837
+ name: $localize `Ascending`,
838
+ },
839
+ }),
840
+ __metadata("design:type", Boolean)
841
+ ], ClientDirectorySortingConfig.prototype, "ascending", void 0);
842
+ exports.ClientDirectorySortingConfig = ClientDirectorySortingConfig = __decorate([
843
+ (0, common_1.SubConfigClass)({ tags: { client: true }, softReadonly: true }),
844
+ __metadata("design:paramtypes", [Object, Boolean])
845
+ ], ClientDirectorySortingConfig);
846
+ // the grouping of a directory: all its media are in the same directory, so no grouping by directory
847
+ let ClientDirectoryGroupingConfig = class ClientDirectoryGroupingConfig {
848
+ constructor(method = SortingMethods_1.GroupByTypes.Date, ascending = true) {
849
+ this.method = SortingMethods_1.GroupByTypes.Date;
850
+ this.ascending = true;
851
+ this.method = method;
852
+ this.ascending = ascending;
853
+ }
854
+ };
855
+ exports.ClientDirectoryGroupingConfig = ClientDirectoryGroupingConfig;
856
+ __decorate([
857
+ (0, common_1.ConfigProperty)({
858
+ type: SortingMethods_1.DirectoryGroupByTypes,
859
+ tags: {
860
+ name: $localize `Method`,
861
+ },
862
+ }),
863
+ __metadata("design:type", Number)
864
+ ], ClientDirectoryGroupingConfig.prototype, "method", void 0);
865
+ __decorate([
866
+ (0, common_1.ConfigProperty)({
867
+ type: 'boolean',
868
+ tags: {
869
+ name: $localize `Ascending`,
870
+ },
871
+ }),
872
+ __metadata("design:type", Boolean)
873
+ ], ClientDirectoryGroupingConfig.prototype, "ascending", void 0);
874
+ exports.ClientDirectoryGroupingConfig = ClientDirectoryGroupingConfig = __decorate([
875
+ (0, common_1.SubConfigClass)({ tags: { client: true }, softReadonly: true }),
876
+ __metadata("design:paramtypes", [Number, Boolean])
877
+ ], ClientDirectoryGroupingConfig);
834
878
  let NavBarSortingAndGroupingConfig = class NavBarSortingAndGroupingConfig {
835
879
  constructor() {
836
- this.defaultPhotoSortingMethod = new ClientSortingConfig(SortingMethods_1.SortByTypes.Date, true);
880
+ this.defaultPhotoSortingMethod = new ClientDirectorySortingConfig(SortingMethods_1.SortByTypes.Date, true);
837
881
  this.defaultSearchSortingMethod = new ClientSortingConfig(SortingMethods_1.SortByTypes.Date, false);
838
- this.defaultPhotoGroupingMethod = new ClientGroupingConfig(SortingMethods_1.GroupByTypes.Date, true);
882
+ this.defaultPhotoGroupingMethod = new ClientDirectoryGroupingConfig(SortingMethods_1.GroupByTypes.Date, true);
839
883
  this.defaultSearchGroupingMethod = new ClientGroupingConfig(SortingMethods_1.GroupByTypes.Date, false);
840
884
  }
841
885
  };
842
886
  exports.NavBarSortingAndGroupingConfig = NavBarSortingAndGroupingConfig;
843
- tslib_1.__decorate([
887
+ __decorate([
844
888
  (0, common_1.ConfigProperty)({
845
- type: ClientSortingConfig,
889
+ type: ClientDirectorySortingConfig,
846
890
  tags: {
847
891
  name: $localize `Default sorting`,
848
- priority: ConfigPriority.advanced,
892
+ priority: Enums_1.ConfigPriority.advanced,
849
893
  },
850
894
  description: $localize `Default sorting method for photo and video in a directory results.`
851
895
  }),
852
- tslib_1.__metadata("design:type", ClientSortingConfig)
896
+ __metadata("design:type", ClientDirectorySortingConfig)
853
897
  ], NavBarSortingAndGroupingConfig.prototype, "defaultPhotoSortingMethod", void 0);
854
- tslib_1.__decorate([
898
+ __decorate([
855
899
  (0, common_1.ConfigProperty)({
856
900
  type: ClientSortingConfig,
857
901
  tags: {
858
902
  name: $localize `Default search sorting`,
859
- priority: ConfigPriority.advanced,
903
+ priority: Enums_1.ConfigPriority.advanced,
860
904
  },
861
905
  description: $localize `Default sorting method for photo and video in a search results.`
862
906
  }),
863
- tslib_1.__metadata("design:type", ClientSortingConfig)
907
+ __metadata("design:type", ClientSortingConfig)
864
908
  ], NavBarSortingAndGroupingConfig.prototype, "defaultSearchSortingMethod", void 0);
865
- tslib_1.__decorate([
909
+ __decorate([
866
910
  (0, common_1.ConfigProperty)({
867
- type: ClientGroupingConfig,
911
+ type: ClientDirectoryGroupingConfig,
868
912
  tags: {
869
913
  name: $localize `Default grouping`,
870
914
  githubIssue: 706,
871
- priority: ConfigPriority.advanced,
915
+ priority: Enums_1.ConfigPriority.advanced,
872
916
  },
873
917
  description: $localize `Default grouping method for photo and video in a directory results.`
874
918
  }),
875
- tslib_1.__metadata("design:type", ClientGroupingConfig)
919
+ __metadata("design:type", ClientDirectoryGroupingConfig)
876
920
  ], NavBarSortingAndGroupingConfig.prototype, "defaultPhotoGroupingMethod", void 0);
877
- tslib_1.__decorate([
921
+ __decorate([
878
922
  (0, common_1.ConfigProperty)({
879
923
  type: ClientGroupingConfig,
880
924
  tags: {
881
925
  name: $localize `Default search grouping`,
882
926
  githubIssue: 706,
883
- priority: ConfigPriority.advanced,
927
+ priority: Enums_1.ConfigPriority.advanced,
884
928
  },
885
929
  description: $localize `Default grouping method for photo and video in a search results.`
886
930
  }),
887
- tslib_1.__metadata("design:type", ClientGroupingConfig)
931
+ __metadata("design:type", ClientGroupingConfig)
888
932
  ], NavBarSortingAndGroupingConfig.prototype, "defaultSearchGroupingMethod", void 0);
889
- exports.NavBarSortingAndGroupingConfig = NavBarSortingAndGroupingConfig = tslib_1.__decorate([
933
+ exports.NavBarSortingAndGroupingConfig = NavBarSortingAndGroupingConfig = __decorate([
890
934
  (0, common_1.SubConfigClass)({ tags: { client: true }, softReadonly: true })
891
935
  ], NavBarSortingAndGroupingConfig);
892
936
  let NavBarConfig = class NavBarConfig {
@@ -896,170 +940,190 @@ let NavBarConfig = class NavBarConfig {
896
940
  this.defaultGidSize = GridSizes_1.GridSizes.medium;
897
941
  this.showItemCount = true;
898
942
  this.links = [
899
- new NavigationLinkConfig(NavigationLinkTypes.gallery),
900
- new NavigationLinkConfig(NavigationLinkTypes.albums),
901
- new NavigationLinkConfig(NavigationLinkTypes.faces),
943
+ new NavigationLinkConfig(Enums_1.NavigationLinkTypes.gallery),
944
+ new NavigationLinkConfig(Enums_1.NavigationLinkTypes.albums),
945
+ new NavigationLinkConfig(Enums_1.NavigationLinkTypes.faces),
902
946
  ];
903
947
  this.NavbarShowDelay = 0.30;
904
948
  this.NavbarHideDelay = 0.15;
905
- this.showScrollUpButton = ScrollUpModes.mobileOnly;
949
+ this.showScrollUpButton = Enums_1.ScrollUpModes.mobileOnly;
950
+ this.showScrollLabel = Enums_1.ScrollLabelModes.always;
906
951
  this.SortingGrouping = new NavBarSortingAndGroupingConfig();
907
952
  }
908
953
  };
909
954
  exports.NavBarConfig = NavBarConfig;
910
- tslib_1.__decorate([
955
+ __decorate([
911
956
  (0, common_1.ConfigProperty)({
957
+ type: 'boolean',
912
958
  tags: {
913
959
  name: $localize `Download Zip`,
914
- priority: ConfigPriority.advanced,
960
+ priority: Enums_1.ConfigPriority.advanced,
915
961
  githubIssue: 52
916
962
  },
917
963
  description: $localize `Enable zipped download of the listed directory or search results.`
918
964
  }),
919
- tslib_1.__metadata("design:type", Boolean)
965
+ __metadata("design:type", Boolean)
920
966
  ], NavBarConfig.prototype, "enableDownloadZip", void 0);
921
- tslib_1.__decorate([
967
+ __decorate([
922
968
  (0, common_1.ConfigProperty)({
969
+ type: 'boolean',
923
970
  tags: {
924
971
  name: $localize `Directory flattening`,
925
- priority: ConfigPriority.advanced,
972
+ priority: Enums_1.ConfigPriority.advanced,
926
973
  experimental: true,
927
974
  githubIssue: 174
928
975
  },
929
976
  description: $localize `Adds a button to flatten the file structure, by listing the content of all subdirectories. (Won't work if the gallery has multiple folders with the same path.)`
930
977
  }),
931
- tslib_1.__metadata("design:type", Boolean)
978
+ __metadata("design:type", Boolean)
932
979
  ], NavBarConfig.prototype, "enableDirectoryFlattening", void 0);
933
- tslib_1.__decorate([
980
+ __decorate([
934
981
  (0, common_1.ConfigProperty)({
935
982
  type: GridSizes_1.GridSizes,
936
983
  tags: {
937
984
  name: $localize `Default grid size`,
938
985
  githubIssue: 716,
939
- priority: ConfigPriority.advanced,
986
+ priority: Enums_1.ConfigPriority.advanced,
940
987
  },
941
988
  description: $localize `Default grid size that is used to render photos and videos.`
942
989
  }),
943
- tslib_1.__metadata("design:type", Number)
990
+ __metadata("design:type", Number)
944
991
  ], NavBarConfig.prototype, "defaultGidSize", void 0);
945
- tslib_1.__decorate([
992
+ __decorate([
946
993
  (0, common_1.ConfigProperty)({
994
+ type: 'boolean',
947
995
  tags: {
948
996
  name: $localize `Show item count`,
949
- priority: ConfigPriority.underTheHood
997
+ priority: Enums_1.ConfigPriority.underTheHood
950
998
  },
951
999
  description: $localize `Shows the number photos and videos on the navigation bar.`,
952
1000
  }),
953
- tslib_1.__metadata("design:type", Boolean)
1001
+ __metadata("design:type", Boolean)
954
1002
  ], NavBarConfig.prototype, "showItemCount", void 0);
955
- tslib_1.__decorate([
1003
+ __decorate([
956
1004
  (0, common_1.ConfigProperty)({
1005
+ type: 'array',
957
1006
  arrayType: NavigationLinkConfig,
958
1007
  tags: {
959
1008
  name: $localize `Links`,
960
- priority: ConfigPriority.advanced,
1009
+ priority: Enums_1.ConfigPriority.advanced,
961
1010
  githubIssue: 174
962
1011
  },
963
1012
  description: $localize `Visible links in the top menu.`
964
1013
  }),
965
- tslib_1.__metadata("design:type", Array)
1014
+ __metadata("design:type", Array)
966
1015
  ], NavBarConfig.prototype, "links", void 0);
967
- tslib_1.__decorate([
1016
+ __decorate([
968
1017
  (0, common_1.ConfigProperty)({
969
1018
  tags: {
970
1019
  name: $localize `Navbar show delay`,
971
- priority: ConfigPriority.underTheHood
1020
+ priority: Enums_1.ConfigPriority.underTheHood
972
1021
  },
973
1022
  type: 'positiveFloat',
974
1023
  description: $localize `Ratio of the page height, you need to scroll to show the navigation bar.`,
975
1024
  }),
976
- tslib_1.__metadata("design:type", Number)
1025
+ __metadata("design:type", Number)
977
1026
  ], NavBarConfig.prototype, "NavbarShowDelay", void 0);
978
- tslib_1.__decorate([
1027
+ __decorate([
979
1028
  (0, common_1.ConfigProperty)({
980
1029
  tags: {
981
1030
  name: $localize `Navbar hide delay`,
982
- priority: ConfigPriority.underTheHood
1031
+ priority: Enums_1.ConfigPriority.underTheHood
983
1032
  },
984
1033
  type: 'positiveFloat',
985
1034
  description: $localize `Ratio of the page height, you need to scroll to hide the navigation bar.`,
986
1035
  }),
987
- tslib_1.__metadata("design:type", Number)
1036
+ __metadata("design:type", Number)
988
1037
  ], NavBarConfig.prototype, "NavbarHideDelay", void 0);
989
- tslib_1.__decorate([
1038
+ __decorate([
990
1039
  (0, common_1.ConfigProperty)({
991
1040
  tags: {
992
1041
  name: $localize `Show scroll up button`,
993
- priority: ConfigPriority.underTheHood
1042
+ priority: Enums_1.ConfigPriority.underTheHood
994
1043
  },
995
- type: ScrollUpModes,
1044
+ type: Enums_1.ScrollUpModes,
996
1045
  description: $localize `Set when the floating scroll-up button should be visible.`,
997
1046
  }),
998
- tslib_1.__metadata("design:type", Number)
1047
+ __metadata("design:type", Number)
999
1048
  ], NavBarConfig.prototype, "showScrollUpButton", void 0);
1000
- tslib_1.__decorate([
1049
+ __decorate([
1050
+ (0, common_1.ConfigProperty)({
1051
+ tags: {
1052
+ name: $localize `Show scroll label`,
1053
+ priority: Enums_1.ConfigPriority.underTheHood
1054
+ },
1055
+ type: Enums_1.ScrollLabelModes,
1056
+ description: $localize `Set when the label (e.g.: month and year) of the first visible photo should be shown next to the scrollbar while scrolling. Date: only if the photos are ordered by date. Always: for every order except random.`,
1057
+ }),
1058
+ __metadata("design:type", Number)
1059
+ ], NavBarConfig.prototype, "showScrollLabel", void 0);
1060
+ __decorate([
1001
1061
  (0, common_1.ConfigProperty)({
1002
1062
  type: NavBarSortingAndGroupingConfig,
1003
1063
  tags: {
1004
1064
  name: $localize `Sorting and grouping`,
1005
- priority: ConfigPriority.advanced,
1065
+ priority: Enums_1.ConfigPriority.advanced,
1006
1066
  },
1007
1067
  }),
1008
- tslib_1.__metadata("design:type", NavBarSortingAndGroupingConfig)
1068
+ __metadata("design:type", NavBarSortingAndGroupingConfig)
1009
1069
  ], NavBarConfig.prototype, "SortingGrouping", void 0);
1010
- exports.NavBarConfig = NavBarConfig = tslib_1.__decorate([
1070
+ exports.NavBarConfig = NavBarConfig = __decorate([
1011
1071
  (0, common_1.SubConfigClass)({ tags: { client: true }, softReadonly: true })
1012
1072
  ], NavBarConfig);
1013
1073
  let ClientLightboxTitleConfig = class ClientLightboxTitleConfig {
1014
1074
  constructor() {
1015
- this.topLeftTitle = [LightBoxTitleTexts.title];
1016
- this.topLeftSubtitle = [LightBoxTitleTexts.caption];
1017
- this.bottomLeftTitle = [LightBoxTitleTexts.date, LightBoxTitleTexts.location];
1018
- this.bottomLeftSubtitle = [LightBoxTitleTexts.persons];
1075
+ this.topLeftTitle = [Enums_1.LightBoxTitleTexts.title];
1076
+ this.topLeftSubtitle = [Enums_1.LightBoxTitleTexts.caption];
1077
+ this.bottomLeftTitle = [Enums_1.LightBoxTitleTexts.date, Enums_1.LightBoxTitleTexts.location];
1078
+ this.bottomLeftSubtitle = [Enums_1.LightBoxTitleTexts.persons];
1019
1079
  }
1020
1080
  };
1021
1081
  exports.ClientLightboxTitleConfig = ClientLightboxTitleConfig;
1022
- tslib_1.__decorate([
1082
+ __decorate([
1023
1083
  (0, common_1.ConfigProperty)({
1024
- arrayType: LightBoxTitleTexts,
1084
+ type: 'array',
1085
+ arrayType: Enums_1.LightBoxTitleTexts,
1025
1086
  tags: {
1026
1087
  name: $localize `Top left titles`,
1027
- priority: ConfigPriority.advanced
1088
+ priority: Enums_1.ConfigPriority.advanced
1028
1089
  },
1029
1090
  }),
1030
- tslib_1.__metadata("design:type", Array)
1091
+ __metadata("design:type", Array)
1031
1092
  ], ClientLightboxTitleConfig.prototype, "topLeftTitle", void 0);
1032
- tslib_1.__decorate([
1093
+ __decorate([
1033
1094
  (0, common_1.ConfigProperty)({
1034
- arrayType: LightBoxTitleTexts,
1095
+ type: 'array',
1096
+ arrayType: Enums_1.LightBoxTitleTexts,
1035
1097
  tags: {
1036
1098
  name: $localize `Top left subtitles`,
1037
- priority: ConfigPriority.advanced
1099
+ priority: Enums_1.ConfigPriority.advanced
1038
1100
  },
1039
1101
  }),
1040
- tslib_1.__metadata("design:type", Array)
1102
+ __metadata("design:type", Array)
1041
1103
  ], ClientLightboxTitleConfig.prototype, "topLeftSubtitle", void 0);
1042
- tslib_1.__decorate([
1104
+ __decorate([
1043
1105
  (0, common_1.ConfigProperty)({
1044
- arrayType: LightBoxTitleTexts,
1106
+ type: 'array',
1107
+ arrayType: Enums_1.LightBoxTitleTexts,
1045
1108
  tags: {
1046
1109
  name: $localize `Bottom left titles`,
1047
- priority: ConfigPriority.advanced
1110
+ priority: Enums_1.ConfigPriority.advanced
1048
1111
  },
1049
1112
  }),
1050
- tslib_1.__metadata("design:type", Array)
1113
+ __metadata("design:type", Array)
1051
1114
  ], ClientLightboxTitleConfig.prototype, "bottomLeftTitle", void 0);
1052
- tslib_1.__decorate([
1115
+ __decorate([
1053
1116
  (0, common_1.ConfigProperty)({
1054
- arrayType: LightBoxTitleTexts,
1117
+ type: 'array',
1118
+ arrayType: Enums_1.LightBoxTitleTexts,
1055
1119
  tags: {
1056
1120
  name: $localize `Bottom left subtitles`,
1057
- priority: ConfigPriority.advanced
1121
+ priority: Enums_1.ConfigPriority.advanced
1058
1122
  },
1059
1123
  }),
1060
- tslib_1.__metadata("design:type", Array)
1124
+ __metadata("design:type", Array)
1061
1125
  ], ClientLightboxTitleConfig.prototype, "bottomLeftSubtitle", void 0);
1062
- exports.ClientLightboxTitleConfig = ClientLightboxTitleConfig = tslib_1.__decorate([
1126
+ exports.ClientLightboxTitleConfig = ClientLightboxTitleConfig = __decorate([
1063
1127
  (0, common_1.SubConfigClass)({ tags: { client: true }, softReadonly: true })
1064
1128
  ], ClientLightboxTitleConfig);
1065
1129
  let AutoUpdateConfig = class AutoUpdateConfig {
@@ -1069,30 +1133,32 @@ let AutoUpdateConfig = class AutoUpdateConfig {
1069
1133
  }
1070
1134
  };
1071
1135
  exports.AutoUpdateConfig = AutoUpdateConfig;
1072
- tslib_1.__decorate([
1136
+ __decorate([
1073
1137
  (0, common_1.ConfigProperty)({
1138
+ type: 'boolean',
1074
1139
  tags: {
1075
1140
  name: $localize `Enable auto update`,
1076
- priority: ConfigPriority.advanced,
1141
+ priority: Enums_1.ConfigPriority.advanced,
1077
1142
  experimental: true,
1078
1143
  },
1079
1144
  description: $localize `Enable auto polling for new photos and videos in the gallery.`
1080
1145
  }),
1081
- tslib_1.__metadata("design:type", Boolean)
1146
+ __metadata("design:type", Boolean)
1082
1147
  ], AutoUpdateConfig.prototype, "enable", void 0);
1083
- tslib_1.__decorate([
1148
+ __decorate([
1084
1149
  (0, common_1.ConfigProperty)({
1150
+ type: 'float',
1085
1151
  tags: {
1086
1152
  name: $localize `Interval`,
1087
- priority: ConfigPriority.advanced,
1153
+ priority: Enums_1.ConfigPriority.advanced,
1088
1154
  githubIssue: 1062,
1089
1155
  unit: 's'
1090
1156
  },
1091
1157
  description: $localize `Frequency of the auto polling in seconds.`
1092
1158
  }),
1093
- tslib_1.__metadata("design:type", Number)
1159
+ __metadata("design:type", Number)
1094
1160
  ], AutoUpdateConfig.prototype, "interval", void 0);
1095
- exports.AutoUpdateConfig = AutoUpdateConfig = tslib_1.__decorate([
1161
+ exports.AutoUpdateConfig = AutoUpdateConfig = __decorate([
1096
1162
  (0, common_1.SubConfigClass)({ tags: { client: true }, softReadonly: true })
1097
1163
  ], AutoUpdateConfig);
1098
1164
  let ClientLightboxConfig = class ClientLightboxConfig {
@@ -1108,90 +1174,98 @@ let ClientLightboxConfig = class ClientLightboxConfig {
1108
1174
  }
1109
1175
  };
1110
1176
  exports.ClientLightboxConfig = ClientLightboxConfig;
1111
- tslib_1.__decorate([
1177
+ __decorate([
1112
1178
  (0, common_1.ConfigProperty)({
1179
+ type: 'float',
1113
1180
  tags: {
1114
1181
  name: $localize `Default slideshow speed`,
1115
- priority: ConfigPriority.underTheHood,
1182
+ priority: Enums_1.ConfigPriority.underTheHood,
1116
1183
  githubIssue: 570,
1117
1184
  unit: 's'
1118
1185
  },
1119
1186
  description: $localize `Default time interval for displaying a photo in the slide show.`
1120
1187
  }),
1121
- tslib_1.__metadata("design:type", Number)
1188
+ __metadata("design:type", Number)
1122
1189
  ], ClientLightboxConfig.prototype, "slideshowSpeed", void 0);
1123
- tslib_1.__decorate([
1190
+ __decorate([
1124
1191
  (0, common_1.ConfigProperty)({
1192
+ type: 'boolean',
1125
1193
  tags: {
1126
1194
  name: $localize `Always show captions`,
1127
- priority: ConfigPriority.underTheHood,
1195
+ priority: Enums_1.ConfigPriority.underTheHood,
1128
1196
  },
1129
1197
  description: $localize `If enabled, lightbox will always show caption by default, not only on hover.`
1130
1198
  }),
1131
- tslib_1.__metadata("design:type", Boolean)
1199
+ __metadata("design:type", Boolean)
1132
1200
  ], ClientLightboxConfig.prototype, "captionAlwaysOn", void 0);
1133
- tslib_1.__decorate([
1201
+ __decorate([
1134
1202
  (0, common_1.ConfigProperty)({
1203
+ type: 'boolean',
1135
1204
  tags: {
1136
1205
  name: $localize `Always show faces`,
1137
- priority: ConfigPriority.underTheHood,
1206
+ priority: Enums_1.ConfigPriority.underTheHood,
1138
1207
  },
1139
1208
  description: $localize `If enabled, lightbox will always show faces by default, not only on hover.`
1140
1209
  }),
1141
- tslib_1.__metadata("design:type", Boolean)
1210
+ __metadata("design:type", Boolean)
1142
1211
  ], ClientLightboxConfig.prototype, "facesAlwaysOn", void 0);
1143
- tslib_1.__decorate([
1212
+ __decorate([
1144
1213
  (0, common_1.ConfigProperty)({
1214
+ type: 'boolean',
1145
1215
  tags: {
1146
1216
  name: $localize `Loop Videos`,
1147
- priority: ConfigPriority.underTheHood,
1217
+ priority: Enums_1.ConfigPriority.underTheHood,
1148
1218
  },
1149
1219
  description: $localize `If enabled, lightbox will loop videos by default.`
1150
1220
  }),
1151
- tslib_1.__metadata("design:type", Boolean)
1221
+ __metadata("design:type", Boolean)
1152
1222
  ], ClientLightboxConfig.prototype, "loopVideos", void 0);
1153
- tslib_1.__decorate([
1223
+ __decorate([
1154
1224
  (0, common_1.ConfigProperty)({
1225
+ type: 'boolean',
1155
1226
  tags: {
1156
1227
  name: $localize `Loop Slideshow`,
1157
- priority: ConfigPriority.underTheHood,
1228
+ priority: Enums_1.ConfigPriority.underTheHood,
1158
1229
  },
1159
1230
  description: $localize `If enabled, lightbox will start from the first photo when it reached the last one.`
1160
1231
  }),
1161
- tslib_1.__metadata("design:type", Boolean)
1232
+ __metadata("design:type", Boolean)
1162
1233
  ], ClientLightboxConfig.prototype, "loopSlideshow", void 0);
1163
- tslib_1.__decorate([
1234
+ __decorate([
1164
1235
  (0, common_1.ConfigProperty)({
1236
+ type: 'boolean',
1165
1237
  tags: {
1166
1238
  name: $localize `Load full resolution image on zoom.`,
1167
- priority: ConfigPriority.advanced
1239
+ priority: Enums_1.ConfigPriority.advanced
1168
1240
  },
1169
1241
  description: $localize `Enables loading the full resolution image on zoom in the lightbox (preview).`,
1170
1242
  }),
1171
- tslib_1.__metadata("design:type", Boolean)
1243
+ __metadata("design:type", Boolean)
1172
1244
  ], ClientLightboxConfig.prototype, "loadFullImageOnZoom", void 0);
1173
- tslib_1.__decorate([
1245
+ __decorate([
1174
1246
  (0, common_1.ConfigProperty)({
1247
+ type: 'boolean',
1175
1248
  tags: {
1176
1249
  name: $localize `Load full image if previews are too small`,
1177
- priority: ConfigPriority.advanced
1250
+ priority: Enums_1.ConfigPriority.advanced
1178
1251
  },
1179
1252
  description: $localize `When enabled, the lightbox will load the full resolution image if all available preview thumbnails are too small for the current view.`,
1180
1253
  }),
1181
- tslib_1.__metadata("design:type", Boolean)
1254
+ __metadata("design:type", Boolean)
1182
1255
  ], ClientLightboxConfig.prototype, "loadFullImageIfPreviewTooSmall", void 0);
1183
- tslib_1.__decorate([
1256
+ __decorate([
1184
1257
  (0, common_1.ConfigProperty)({
1258
+ type: ClientLightboxTitleConfig,
1185
1259
  tags: {
1186
1260
  name: $localize `Titles`,
1187
- priority: ConfigPriority.advanced,
1261
+ priority: Enums_1.ConfigPriority.advanced,
1188
1262
  githubIssue: 801,
1189
1263
  },
1190
1264
  description: $localize `Set these to customize the text (caption, location, etc.) in the lightbox that are always visible over the photo (not in the info panel).`
1191
1265
  }),
1192
- tslib_1.__metadata("design:type", ClientLightboxTitleConfig)
1266
+ __metadata("design:type", ClientLightboxTitleConfig)
1193
1267
  ], ClientLightboxConfig.prototype, "Titles", void 0);
1194
- exports.ClientLightboxConfig = ClientLightboxConfig = tslib_1.__decorate([
1268
+ exports.ClientLightboxConfig = ClientLightboxConfig = __decorate([
1195
1269
  (0, common_1.SubConfigClass)({ tags: { client: true }, softReadonly: true })
1196
1270
  ], ClientLightboxConfig);
1197
1271
  let ThemeConfig = class ThemeConfig {
@@ -1201,32 +1275,34 @@ let ThemeConfig = class ThemeConfig {
1201
1275
  }
1202
1276
  };
1203
1277
  exports.ThemeConfig = ThemeConfig;
1204
- tslib_1.__decorate([
1278
+ __decorate([
1205
1279
  (0, common_1.ConfigProperty)({
1280
+ type: 'string',
1206
1281
  tags: {
1207
1282
  name: $localize `Name`,
1208
1283
  },
1209
1284
  description: $localize `Name of the theme`
1210
1285
  }),
1211
- tslib_1.__metadata("design:type", String)
1286
+ __metadata("design:type", Object)
1212
1287
  ], ThemeConfig.prototype, "name", void 0);
1213
- tslib_1.__decorate([
1288
+ __decorate([
1214
1289
  (0, common_1.ConfigProperty)({
1290
+ type: 'string',
1215
1291
  tags: {
1216
1292
  name: $localize `Theme`,
1217
1293
  },
1218
1294
  description: $localize `Adds these css settings as it is to the end of the body tag of the page.`
1219
1295
  }),
1220
- tslib_1.__metadata("design:type", String)
1296
+ __metadata("design:type", Object)
1221
1297
  ], ThemeConfig.prototype, "theme", void 0);
1222
- exports.ThemeConfig = ThemeConfig = tslib_1.__decorate([
1298
+ exports.ThemeConfig = ThemeConfig = __decorate([
1223
1299
  (0, common_1.SubConfigClass)({ tags: { client: true }, softReadonly: true }),
1224
- tslib_1.__metadata("design:paramtypes", [String, String])
1300
+ __metadata("design:paramtypes", [String, String])
1225
1301
  ], ThemeConfig);
1226
1302
  let ThemesConfig = class ThemesConfig {
1227
1303
  constructor() {
1228
1304
  this.enabled = true;
1229
- this.defaultMode = ThemeModes.auto;
1305
+ this.defaultMode = Enums_1.ThemeModes.auto;
1230
1306
  this.selectedTheme = 'classic';
1231
1307
  this.availableThemes = [
1232
1308
  new ThemeConfig('classic', ':root nav.navbar {\n' +
@@ -1243,28 +1319,29 @@ let ThemesConfig = class ThemesConfig {
1243
1319
  }
1244
1320
  };
1245
1321
  exports.ThemesConfig = ThemesConfig;
1246
- tslib_1.__decorate([
1322
+ __decorate([
1247
1323
  (0, common_1.ConfigProperty)({
1324
+ type: 'boolean',
1248
1325
  tags: {
1249
1326
  name: $localize `Enable`,
1250
1327
  githubIssue: 642
1251
1328
  },
1252
1329
  description: $localize `Enable themes and color modes.`
1253
1330
  }),
1254
- tslib_1.__metadata("design:type", Boolean)
1331
+ __metadata("design:type", Boolean)
1255
1332
  ], ThemesConfig.prototype, "enabled", void 0);
1256
- tslib_1.__decorate([
1333
+ __decorate([
1257
1334
  (0, common_1.ConfigProperty)({
1258
- type: ThemeModes,
1335
+ type: Enums_1.ThemeModes,
1259
1336
  tags: {
1260
1337
  name: $localize `Default theme mode`,
1261
1338
  uiDisabled: (sb) => !sb.enabled,
1262
1339
  },
1263
1340
  description: $localize `Sets the default theme mode that is used for the application.`
1264
1341
  }),
1265
- tslib_1.__metadata("design:type", Number)
1342
+ __metadata("design:type", Number)
1266
1343
  ], ThemesConfig.prototype, "defaultMode", void 0);
1267
- tslib_1.__decorate([
1344
+ __decorate([
1268
1345
  (0, common_1.ConfigProperty)({
1269
1346
  type: 'string',
1270
1347
  tags: {
@@ -1274,10 +1351,11 @@ tslib_1.__decorate([
1274
1351
  },
1275
1352
  description: $localize `Selected theme to use on the site.`
1276
1353
  }),
1277
- tslib_1.__metadata("design:type", String)
1354
+ __metadata("design:type", String)
1278
1355
  ], ThemesConfig.prototype, "selectedTheme", void 0);
1279
- tslib_1.__decorate([
1356
+ __decorate([
1280
1357
  (0, common_1.ConfigProperty)({
1358
+ type: 'array',
1281
1359
  arrayType: ThemeConfig,
1282
1360
  tags: {
1283
1361
  name: $localize `Selected theme CSS`, //this is a 'hack' to the UI settings. UI will only show the selected setting's CSS
@@ -1286,9 +1364,9 @@ tslib_1.__decorate([
1286
1364
  },
1287
1365
  description: $localize `Adds these CSS settings as it is to the end of the body tag of the page.`
1288
1366
  }),
1289
- tslib_1.__metadata("design:type", Array)
1367
+ __metadata("design:type", Array)
1290
1368
  ], ThemesConfig.prototype, "availableThemes", void 0);
1291
- exports.ThemesConfig = ThemesConfig = tslib_1.__decorate([
1369
+ exports.ThemesConfig = ThemesConfig = __decorate([
1292
1370
  (0, common_1.SubConfigClass)({ tags: { client: true }, softReadonly: true })
1293
1371
  ], ThemesConfig);
1294
1372
  let ClientGalleryConfig = class ClientGalleryConfig {
@@ -1308,134 +1386,146 @@ let ClientGalleryConfig = class ClientGalleryConfig {
1308
1386
  }
1309
1387
  };
1310
1388
  exports.ClientGalleryConfig = ClientGalleryConfig;
1311
- tslib_1.__decorate([
1389
+ __decorate([
1312
1390
  (0, common_1.ConfigProperty)({
1391
+ type: 'boolean',
1313
1392
  tags: {
1314
1393
  name: $localize `Cache`,
1315
- priority: ConfigPriority.underTheHood,
1394
+ priority: Enums_1.ConfigPriority.underTheHood,
1316
1395
  },
1317
1396
  description: $localize `Caches directory contents and search results for better performance.`
1318
1397
  }),
1319
- tslib_1.__metadata("design:type", Boolean)
1398
+ __metadata("design:type", Boolean)
1320
1399
  ], ClientGalleryConfig.prototype, "enableCache", void 0);
1321
- tslib_1.__decorate([
1400
+ __decorate([
1322
1401
  (0, common_1.ConfigProperty)({
1402
+ type: 'boolean',
1323
1403
  tags: {
1324
1404
  name: $localize `Scroll based thumbnail generation`,
1325
- priority: ConfigPriority.advanced,
1405
+ priority: Enums_1.ConfigPriority.advanced,
1326
1406
  },
1327
1407
  description: $localize `Those thumbnails get higher priority that are visible on the screen.`
1328
1408
  }),
1329
- tslib_1.__metadata("design:type", Boolean)
1409
+ __metadata("design:type", Boolean)
1330
1410
  ], ClientGalleryConfig.prototype, "enableOnScrollRendering", void 0);
1331
- tslib_1.__decorate([
1411
+ __decorate([
1332
1412
  (0, common_1.ConfigProperty)({
1413
+ type: 'boolean',
1333
1414
  tags: {
1334
1415
  name: $localize `Sort directories by date`,
1335
- priority: ConfigPriority.advanced,
1416
+ priority: Enums_1.ConfigPriority.advanced,
1336
1417
  },
1337
1418
  description: $localize `If enabled, directories will be sorted by date, like photos, otherwise by name. Directory date is the last modification time of that directory not the creation date of the oldest photo.`
1338
1419
  }),
1339
- tslib_1.__metadata("design:type", Boolean)
1420
+ __metadata("design:type", Boolean)
1340
1421
  ], ClientGalleryConfig.prototype, "enableDirectorySortingByDate", void 0);
1341
- tslib_1.__decorate([
1422
+ __decorate([
1342
1423
  (0, common_1.ConfigProperty)({
1424
+ type: 'boolean',
1343
1425
  tags: {
1344
1426
  name: $localize `Ignore timestamp offsets (use local time)`,
1345
- priority: ConfigPriority.advanced,
1427
+ priority: Enums_1.ConfigPriority.advanced,
1346
1428
  },
1347
1429
  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).`
1348
1430
  })
1349
1431
  //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.
1350
1432
  //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.
1351
1433
  ,
1352
- tslib_1.__metadata("design:type", Boolean)
1434
+ __metadata("design:type", Boolean)
1353
1435
  ], ClientGalleryConfig.prototype, "ignoreTimestampOffset", void 0);
1354
- tslib_1.__decorate([
1436
+ __decorate([
1355
1437
  (0, common_1.ConfigProperty)({
1438
+ type: 'boolean',
1356
1439
  tags: {
1357
1440
  name: $localize `On scroll thumbnail prioritising`,
1358
- priority: ConfigPriority.underTheHood,
1441
+ priority: Enums_1.ConfigPriority.underTheHood,
1359
1442
  },
1360
1443
  description: $localize `Those thumbnails will be rendered first that are in view.`
1361
1444
  }),
1362
- tslib_1.__metadata("design:type", Boolean)
1445
+ __metadata("design:type", Boolean)
1363
1446
  ], ClientGalleryConfig.prototype, "enableOnScrollThumbnailPrioritising", void 0);
1364
- tslib_1.__decorate([
1447
+ __decorate([
1365
1448
  (0, common_1.ConfigProperty)({
1449
+ type: NavBarConfig,
1366
1450
  tags: {
1367
1451
  name: $localize `Navigation bar`,
1368
1452
  uiIcon: 'ionMenuOutline',
1369
- priority: ConfigPriority.advanced,
1453
+ priority: Enums_1.ConfigPriority.advanced,
1370
1454
  }
1371
1455
  }),
1372
- tslib_1.__metadata("design:type", NavBarConfig)
1456
+ __metadata("design:type", NavBarConfig)
1373
1457
  ], ClientGalleryConfig.prototype, "NavBar", void 0);
1374
- tslib_1.__decorate([
1458
+ __decorate([
1375
1459
  (0, common_1.ConfigProperty)({
1460
+ type: 'boolean',
1376
1461
  tags: {
1377
1462
  name: $localize `Caption first naming`,
1378
- priority: ConfigPriority.advanced,
1463
+ priority: Enums_1.ConfigPriority.advanced,
1379
1464
  },
1380
1465
  description: $localize `Show the caption (IPTC 120) tags from the EXIF data instead of the filenames.`
1381
1466
  }),
1382
- tslib_1.__metadata("design:type", Boolean)
1467
+ __metadata("design:type", Boolean)
1383
1468
  ], ClientGalleryConfig.prototype, "captionFirstNaming", void 0);
1384
- tslib_1.__decorate([
1469
+ __decorate([
1385
1470
  (0, common_1.ConfigProperty)({
1471
+ type: ClientLightboxConfig,
1386
1472
  tags: {
1387
1473
  name: $localize `Lightbox`,
1388
1474
  uiIcon: 'ionImageOutline',
1389
- priority: ConfigPriority.advanced,
1475
+ priority: Enums_1.ConfigPriority.advanced,
1390
1476
  },
1391
1477
  description: $localize `Photo and video preview window.`
1392
1478
  }),
1393
- tslib_1.__metadata("design:type", ClientLightboxConfig)
1479
+ __metadata("design:type", ClientLightboxConfig)
1394
1480
  ], ClientGalleryConfig.prototype, "Lightbox", void 0);
1395
- tslib_1.__decorate([
1481
+ __decorate([
1396
1482
  (0, common_1.ConfigProperty)({
1483
+ type: ThemesConfig,
1397
1484
  tags: {
1398
1485
  name: $localize `Themes`,
1399
1486
  uiIcon: 'ionBrushOutline',
1400
- priority: ConfigPriority.advanced,
1487
+ priority: Enums_1.ConfigPriority.advanced,
1401
1488
  },
1402
1489
  description: $localize `Pigallery2 uses Bootstrap 5.3 (https://getbootstrap.com/docs/5.3) for design (css, layout). In dark mode it sets 'data-bs-theme="dark"' to the <html> to take advantage bootstrap's color modes. For theming, read more at: https://getbootstrap.com/docs/5.3/customize/color-modes/`
1403
1490
  }),
1404
- tslib_1.__metadata("design:type", ThemesConfig)
1491
+ __metadata("design:type", ThemesConfig)
1405
1492
  ], ClientGalleryConfig.prototype, "Themes", void 0);
1406
- tslib_1.__decorate([
1493
+ __decorate([
1407
1494
  (0, common_1.ConfigProperty)({
1495
+ type: 'boolean',
1408
1496
  tags: {
1409
1497
  name: $localize `Inline blog starts open`,
1410
- priority: ConfigPriority.advanced,
1498
+ priority: Enums_1.ConfigPriority.advanced,
1411
1499
  githubIssue: 711
1412
1500
  },
1413
1501
  description: $localize `Makes inline blog (*.md files content) auto-open.`
1414
1502
  }),
1415
- tslib_1.__metadata("design:type", Boolean)
1503
+ __metadata("design:type", Boolean)
1416
1504
  ], ClientGalleryConfig.prototype, "InlineBlogStartsOpen", void 0);
1417
- tslib_1.__decorate([
1505
+ __decorate([
1418
1506
  (0, common_1.ConfigProperty)({
1507
+ type: 'boolean',
1419
1508
  tags: {
1420
1509
  name: $localize `Top blog starts open`,
1421
- priority: ConfigPriority.advanced,
1510
+ priority: Enums_1.ConfigPriority.advanced,
1422
1511
  githubIssue: 711
1423
1512
  },
1424
1513
  description: $localize `Makes top blog (*.md files content) auto-open.`
1425
1514
  }),
1426
- tslib_1.__metadata("design:type", Boolean)
1515
+ __metadata("design:type", Boolean)
1427
1516
  ], ClientGalleryConfig.prototype, "TopBlogStartsOpen", void 0);
1428
- tslib_1.__decorate([
1517
+ __decorate([
1429
1518
  (0, common_1.ConfigProperty)({
1519
+ type: AutoUpdateConfig,
1430
1520
  tags: {
1431
1521
  name: $localize `Auto update`,
1432
- priority: ConfigPriority.advanced,
1522
+ priority: Enums_1.ConfigPriority.advanced,
1433
1523
  },
1434
1524
  description: $localize `makes the gallery poll the backend for new photos in the given directory or search`
1435
1525
  }),
1436
- tslib_1.__metadata("design:type", AutoUpdateConfig)
1526
+ __metadata("design:type", AutoUpdateConfig)
1437
1527
  ], ClientGalleryConfig.prototype, "AutoUpdate", void 0);
1438
- exports.ClientGalleryConfig = ClientGalleryConfig = tslib_1.__decorate([
1528
+ exports.ClientGalleryConfig = ClientGalleryConfig = __decorate([
1439
1529
  (0, common_1.SubConfigClass)({ tags: { client: true }, softReadonly: true })
1440
1530
  ], ClientGalleryConfig);
1441
1531
  let ClientVideoConfig = class ClientVideoConfig {
@@ -1448,43 +1538,46 @@ let ClientVideoConfig = class ClientVideoConfig {
1448
1538
  }
1449
1539
  };
1450
1540
  exports.ClientVideoConfig = ClientVideoConfig;
1451
- tslib_1.__decorate([
1541
+ __decorate([
1452
1542
  (0, common_1.ConfigProperty)({
1543
+ type: 'boolean',
1453
1544
  tags: {
1454
1545
  name: $localize `Enable`,
1455
- priority: ConfigPriority.advanced,
1546
+ priority: Enums_1.ConfigPriority.advanced,
1456
1547
  uiResetNeeded: { db: true }
1457
1548
  }
1458
1549
  }),
1459
- tslib_1.__metadata("design:type", Boolean)
1550
+ __metadata("design:type", Boolean)
1460
1551
  ], ClientVideoConfig.prototype, "enabled", void 0);
1461
- tslib_1.__decorate([
1552
+ __decorate([
1462
1553
  (0, common_1.ConfigProperty)({
1554
+ type: 'array',
1463
1555
  arrayType: 'string',
1464
1556
  tags: {
1465
1557
  name: $localize `Supported formats with transcoding`,
1466
- priority: ConfigPriority.underTheHood,
1558
+ priority: Enums_1.ConfigPriority.underTheHood,
1467
1559
  uiDisabled: (sb) => !sb.enabled,
1468
1560
  uiResetNeeded: { db: true }
1469
1561
  },
1470
1562
  description: $localize `Video formats that are supported after transcoding (with the built-in ffmpeg support).`
1471
1563
  }),
1472
- tslib_1.__metadata("design:type", Array)
1564
+ __metadata("design:type", Array)
1473
1565
  ], ClientVideoConfig.prototype, "supportedFormatsWithTranscoding", void 0);
1474
- tslib_1.__decorate([
1566
+ __decorate([
1475
1567
  (0, common_1.ConfigProperty)({
1568
+ type: 'array',
1476
1569
  arrayType: 'string',
1477
1570
  tags: {
1478
1571
  name: $localize `Supported formats without transcoding`,
1479
- priority: ConfigPriority.underTheHood,
1572
+ priority: Enums_1.ConfigPriority.underTheHood,
1480
1573
  uiDisabled: (sb) => !sb.enabled,
1481
1574
  uiResetNeeded: { db: true }
1482
1575
  },
1483
1576
  description: $localize `Video formats that are supported also without transcoding. Browser supported formats: https://www.w3schools.com/html/html5_video.asp`
1484
1577
  }),
1485
- tslib_1.__metadata("design:type", Array)
1578
+ __metadata("design:type", Array)
1486
1579
  ], ClientVideoConfig.prototype, "supportedFormats", void 0);
1487
- exports.ClientVideoConfig = ClientVideoConfig = tslib_1.__decorate([
1580
+ exports.ClientVideoConfig = ClientVideoConfig = __decorate([
1488
1581
  (0, common_1.SubConfigClass)({ tags: { client: true }, softReadonly: true })
1489
1582
  ], ClientVideoConfig);
1490
1583
  let ClientPhotoConfig = class ClientPhotoConfig {
@@ -1514,71 +1607,75 @@ let ClientPhotoConfig = class ClientPhotoConfig {
1514
1607
  }
1515
1608
  };
1516
1609
  exports.ClientPhotoConfig = ClientPhotoConfig;
1517
- tslib_1.__decorate([
1610
+ __decorate([
1518
1611
  (0, common_1.ConfigProperty)({
1519
1612
  type: 'unsignedInt', max: 100,
1520
1613
  tags: {
1521
1614
  name: $localize `Map Icon size`,
1522
1615
  unit: 'px',
1523
- priority: ConfigPriority.underTheHood
1616
+ priority: Enums_1.ConfigPriority.underTheHood
1524
1617
  },
1525
1618
  description: $localize `Icon size (used on maps).`,
1526
1619
  }),
1527
- tslib_1.__metadata("design:type", Number)
1620
+ __metadata("design:type", Number)
1528
1621
  ], ClientPhotoConfig.prototype, "iconSize", void 0);
1529
- tslib_1.__decorate([
1622
+ __decorate([
1530
1623
  (0, common_1.ConfigProperty)({
1531
1624
  type: 'unsignedInt', tags: {
1532
1625
  name: $localize `Person thumbnail size`,
1533
1626
  unit: 'px',
1534
- priority: ConfigPriority.underTheHood
1627
+ priority: Enums_1.ConfigPriority.underTheHood
1535
1628
  },
1536
1629
  description: $localize `Person (face) thumbnail size.`,
1537
1630
  }),
1538
- tslib_1.__metadata("design:type", Number)
1631
+ __metadata("design:type", Number)
1539
1632
  ], ClientPhotoConfig.prototype, "personThumbnailSize", void 0);
1540
- tslib_1.__decorate([
1633
+ __decorate([
1541
1634
  (0, common_1.ConfigProperty)({
1635
+ type: 'array',
1542
1636
  arrayType: 'unsignedInt', tags: {
1543
1637
  name: $localize `Thumbnail and photo preview sizes`,
1544
- priority: ConfigPriority.advanced,
1638
+ priority: Enums_1.ConfigPriority.advanced,
1545
1639
  githubIssue: 806
1546
1640
  },
1547
1641
  description: $localize `Size of the thumbnails and photo previews. The best matching size will be used (smaller for photo and video thumbnail, bigger for photo preview). More sizes give better quality, but use more storage and CPU to render. If size is 240, that shorter side of the thumbnail will be 240 pixels.`,
1548
1642
  }),
1549
- tslib_1.__metadata("design:type", Array)
1643
+ __metadata("design:type", Array)
1550
1644
  ], ClientPhotoConfig.prototype, "thumbnailSizes", void 0);
1551
- tslib_1.__decorate([
1645
+ __decorate([
1552
1646
  (0, common_1.ConfigProperty)({
1647
+ type: 'float',
1553
1648
  volatile: true,
1554
1649
  description: 'Updated to match the number of CPUs. This manny thumbnail will be concurrently generated.',
1555
1650
  }),
1556
- tslib_1.__metadata("design:type", Number)
1651
+ __metadata("design:type", Number)
1557
1652
  ], ClientPhotoConfig.prototype, "concurrentThumbnailGenerations", void 0);
1558
- tslib_1.__decorate([
1653
+ __decorate([
1559
1654
  (0, common_1.ConfigProperty)({
1655
+ type: 'float',
1560
1656
  tags: {
1561
1657
  name: $localize `Concurrent photo generation limit`,
1562
- priority: ConfigPriority.underTheHood,
1658
+ priority: Enums_1.ConfigPriority.underTheHood,
1563
1659
  uiResetNeeded: { server: true }
1564
1660
  },
1565
1661
  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
1662
  }),
1567
- tslib_1.__metadata("design:type", Number)
1663
+ __metadata("design:type", Number)
1568
1664
  ], ClientPhotoConfig.prototype, "concurrentThumbnailGenerationsLimit", void 0);
1569
- tslib_1.__decorate([
1665
+ __decorate([
1570
1666
  (0, common_1.ConfigProperty)({
1667
+ type: 'array',
1571
1668
  arrayType: 'string',
1572
1669
  tags: {
1573
1670
  name: $localize `Supported photo formats`,
1574
- priority: ConfigPriority.underTheHood,
1671
+ priority: Enums_1.ConfigPriority.underTheHood,
1575
1672
  uiResetNeeded: { db: true }
1576
1673
  },
1577
1674
  description: $localize `Photo formats that are supported. Browser needs to support these formats natively. Also sharp (libvips) package should be able to convert these formats.`,
1578
1675
  }),
1579
- tslib_1.__metadata("design:type", Array)
1676
+ __metadata("design:type", Array)
1580
1677
  ], ClientPhotoConfig.prototype, "supportedFormats", void 0);
1581
- exports.ClientPhotoConfig = ClientPhotoConfig = tslib_1.__decorate([
1678
+ exports.ClientPhotoConfig = ClientPhotoConfig = __decorate([
1582
1679
  (0, common_1.SubConfigClass)({ tags: { client: true }, softReadonly: true })
1583
1680
  ], ClientPhotoConfig);
1584
1681
  let ClientGPXCompressingConfig = class ClientGPXCompressingConfig {
@@ -1587,47 +1684,82 @@ let ClientGPXCompressingConfig = class ClientGPXCompressingConfig {
1587
1684
  }
1588
1685
  };
1589
1686
  exports.ClientGPXCompressingConfig = ClientGPXCompressingConfig;
1590
- tslib_1.__decorate([
1687
+ __decorate([
1591
1688
  (0, common_1.ConfigProperty)({
1689
+ type: 'boolean',
1592
1690
  tags: {
1593
1691
  name: $localize `Enable GPX compressing`,
1594
- priority: ConfigPriority.advanced,
1692
+ priority: Enums_1.ConfigPriority.advanced,
1595
1693
  githubIssue: 504,
1596
1694
  uiDisabled: (sc, c) => !c.Map.enabled
1597
1695
  },
1598
1696
  description: $localize `Enables lossy (based on delta time and distance. Too frequent points are removed) GPX compression.`
1599
1697
  }),
1600
- tslib_1.__metadata("design:type", Boolean)
1698
+ __metadata("design:type", Boolean)
1601
1699
  ], ClientGPXCompressingConfig.prototype, "enabled", void 0);
1602
- exports.ClientGPXCompressingConfig = ClientGPXCompressingConfig = tslib_1.__decorate([
1700
+ exports.ClientGPXCompressingConfig = ClientGPXCompressingConfig = __decorate([
1603
1701
  (0, common_1.SubConfigClass)({ tags: { client: true }, softReadonly: true })
1604
1702
  ], ClientGPXCompressingConfig);
1703
+ let ClientLivePhotoConfig = class ClientLivePhotoConfig {
1704
+ constructor() {
1705
+ this.enabled = true;
1706
+ }
1707
+ };
1708
+ exports.ClientLivePhotoConfig = ClientLivePhotoConfig;
1709
+ __decorate([
1710
+ (0, common_1.ConfigProperty)({
1711
+ type: 'boolean',
1712
+ tags: {
1713
+ name: $localize `Enable`,
1714
+ priority: Enums_1.ConfigPriority.advanced,
1715
+ githubIssue: 609
1716
+ },
1717
+ description: $localize `Pairs Apple Live Photo still images with their companion video clips using Content Identifier metadata.`
1718
+ }),
1719
+ __metadata("design:type", Boolean)
1720
+ ], ClientLivePhotoConfig.prototype, "enabled", void 0);
1721
+ exports.ClientLivePhotoConfig = ClientLivePhotoConfig = __decorate([
1722
+ (0, common_1.SubConfigClass)({ tags: { client: true }, softReadonly: true })
1723
+ ], ClientLivePhotoConfig);
1605
1724
  let ClientMediaConfig = class ClientMediaConfig {
1606
1725
  constructor() {
1607
1726
  this.Video = new ClientVideoConfig();
1608
1727
  this.Photo = new ClientPhotoConfig();
1728
+ this.LivePhoto = new ClientLivePhotoConfig();
1609
1729
  }
1610
1730
  };
1611
1731
  exports.ClientMediaConfig = ClientMediaConfig;
1612
- tslib_1.__decorate([
1732
+ __decorate([
1613
1733
  (0, common_1.ConfigProperty)({
1734
+ type: ClientVideoConfig,
1614
1735
  tags: {
1615
1736
  name: $localize `Video`,
1616
- priority: ConfigPriority.advanced
1737
+ priority: Enums_1.ConfigPriority.advanced
1617
1738
  }
1618
1739
  }),
1619
- tslib_1.__metadata("design:type", ClientVideoConfig)
1740
+ __metadata("design:type", ClientVideoConfig)
1620
1741
  ], ClientMediaConfig.prototype, "Video", void 0);
1621
- tslib_1.__decorate([
1742
+ __decorate([
1622
1743
  (0, common_1.ConfigProperty)({
1744
+ type: ClientPhotoConfig,
1623
1745
  tags: {
1624
1746
  name: $localize `Photo`,
1625
- priority: ConfigPriority.advanced
1747
+ priority: Enums_1.ConfigPriority.advanced
1626
1748
  }
1627
1749
  }),
1628
- tslib_1.__metadata("design:type", ClientPhotoConfig)
1750
+ __metadata("design:type", ClientPhotoConfig)
1629
1751
  ], ClientMediaConfig.prototype, "Photo", void 0);
1630
- exports.ClientMediaConfig = ClientMediaConfig = tslib_1.__decorate([
1752
+ __decorate([
1753
+ (0, common_1.ConfigProperty)({
1754
+ type: ClientLivePhotoConfig,
1755
+ tags: {
1756
+ name: $localize `Live Photo`,
1757
+ priority: Enums_1.ConfigPriority.advanced
1758
+ }
1759
+ }),
1760
+ __metadata("design:type", ClientLivePhotoConfig)
1761
+ ], ClientMediaConfig.prototype, "LivePhoto", void 0);
1762
+ exports.ClientMediaConfig = ClientMediaConfig = __decorate([
1631
1763
  (0, common_1.SubConfigClass)({ tags: { client: true }, softReadonly: true })
1632
1764
  ], ClientMediaConfig);
1633
1765
  let ClientMetaFileConfig = class ClientMetaFileConfig {
@@ -1640,63 +1772,68 @@ let ClientMetaFileConfig = class ClientMetaFileConfig {
1640
1772
  }
1641
1773
  };
1642
1774
  exports.ClientMetaFileConfig = ClientMetaFileConfig;
1643
- tslib_1.__decorate([
1775
+ __decorate([
1644
1776
  (0, common_1.ConfigProperty)({
1777
+ type: 'boolean',
1645
1778
  tags: {
1646
1779
  name: $localize `*.gpx files`,
1647
- priority: ConfigPriority.advanced,
1780
+ priority: Enums_1.ConfigPriority.advanced,
1648
1781
  uiResetNeeded: { db: true },
1649
1782
  uiDisabled: (sb, c) => !c.Map.enabled
1650
1783
  },
1651
1784
  description: $localize `Reads *.gpx files and renders them on the map.`
1652
1785
  }),
1653
- tslib_1.__metadata("design:type", Boolean)
1786
+ __metadata("design:type", Boolean)
1654
1787
  ], ClientMetaFileConfig.prototype, "gpx", void 0);
1655
- tslib_1.__decorate([
1788
+ __decorate([
1656
1789
  (0, common_1.ConfigProperty)({
1790
+ type: ClientGPXCompressingConfig,
1657
1791
  tags: {
1658
1792
  name: $localize `GPX compression`,
1659
- priority: ConfigPriority.advanced,
1793
+ priority: Enums_1.ConfigPriority.advanced,
1660
1794
  uiDisabled: (sb, c) => !c.Map.enabled || !sb.gpx
1661
1795
  }
1662
1796
  }),
1663
- tslib_1.__metadata("design:type", ClientGPXCompressingConfig)
1797
+ __metadata("design:type", ClientGPXCompressingConfig)
1664
1798
  ], ClientMetaFileConfig.prototype, "GPXCompressing", void 0);
1665
- tslib_1.__decorate([
1799
+ __decorate([
1666
1800
  (0, common_1.ConfigProperty)({
1801
+ type: 'boolean',
1667
1802
  tags: {
1668
1803
  name: $localize `Markdown files`,
1669
1804
  uiResetNeeded: { db: true },
1670
- priority: ConfigPriority.advanced
1805
+ priority: Enums_1.ConfigPriority.advanced
1671
1806
  },
1672
1807
  description: $localize `Reads *.md files in a directory and shows the next to the map.`
1673
1808
  }),
1674
- tslib_1.__metadata("design:type", Boolean)
1809
+ __metadata("design:type", Boolean)
1675
1810
  ], ClientMetaFileConfig.prototype, "markdown", void 0);
1676
- tslib_1.__decorate([
1811
+ __decorate([
1677
1812
  (0, common_1.ConfigProperty)({
1813
+ type: 'boolean',
1678
1814
  tags: {
1679
1815
  name: $localize `*.pg2conf files`,
1680
1816
  uiResetNeeded: { db: true },
1681
- priority: ConfigPriority.advanced
1817
+ priority: Enums_1.ConfigPriority.advanced
1682
1818
  },
1683
1819
  description: $localize `Reads *.pg2conf files (You can use it for custom sorting and saved search (albums)).`
1684
1820
  }),
1685
- tslib_1.__metadata("design:type", Boolean)
1821
+ __metadata("design:type", Boolean)
1686
1822
  ], ClientMetaFileConfig.prototype, "pg2conf", void 0);
1687
- tslib_1.__decorate([
1823
+ __decorate([
1688
1824
  (0, common_1.ConfigProperty)({
1825
+ type: 'array',
1689
1826
  arrayType: 'string',
1690
1827
  tags: {
1691
1828
  name: $localize `Supported formats`,
1692
1829
  uiResetNeeded: { db: true },
1693
- priority: ConfigPriority.underTheHood
1830
+ priority: Enums_1.ConfigPriority.underTheHood
1694
1831
  },
1695
1832
  description: $localize `The app will read and process these files.`
1696
1833
  }),
1697
- tslib_1.__metadata("design:type", Array)
1834
+ __metadata("design:type", Array)
1698
1835
  ], ClientMetaFileConfig.prototype, "supportedFormats", void 0);
1699
- exports.ClientMetaFileConfig = ClientMetaFileConfig = tslib_1.__decorate([
1836
+ exports.ClientMetaFileConfig = ClientMetaFileConfig = __decorate([
1700
1837
  (0, common_1.SubConfigClass)({ tags: { client: true }, softReadonly: true })
1701
1838
  ], ClientMetaFileConfig);
1702
1839
  let ClientFacesConfig = class ClientFacesConfig {
@@ -1709,58 +1846,61 @@ let ClientFacesConfig = class ClientFacesConfig {
1709
1846
  }
1710
1847
  };
1711
1848
  exports.ClientFacesConfig = ClientFacesConfig;
1712
- tslib_1.__decorate([
1849
+ __decorate([
1713
1850
  (0, common_1.ConfigProperty)({
1851
+ type: 'boolean',
1714
1852
  tags: {
1715
1853
  name: $localize `Enabled`,
1716
- priority: ConfigPriority.advanced,
1854
+ priority: Enums_1.ConfigPriority.advanced,
1717
1855
  uiResetNeeded: { db: true }
1718
1856
  }
1719
1857
  }),
1720
- tslib_1.__metadata("design:type", Boolean)
1858
+ __metadata("design:type", Boolean)
1721
1859
  ], ClientFacesConfig.prototype, "enabled", void 0);
1722
- tslib_1.__decorate([
1860
+ __decorate([
1723
1861
  (0, common_1.ConfigProperty)({
1862
+ type: ClientFaceSortingConfig,
1724
1863
  tags: {
1725
1864
  name: $localize `Default sorting`,
1726
- priority: ConfigPriority.advanced,
1865
+ priority: Enums_1.ConfigPriority.advanced,
1727
1866
  },
1728
1867
  description: $localize `Default sorting on the faces page`
1729
1868
  }),
1730
- tslib_1.__metadata("design:type", ClientFaceSortingConfig)
1869
+ __metadata("design:type", ClientFaceSortingConfig)
1731
1870
  ], ClientFacesConfig.prototype, "sorting", void 0);
1732
- tslib_1.__decorate([
1871
+ __decorate([
1733
1872
  (0, common_1.ConfigProperty)({
1873
+ type: 'boolean',
1734
1874
  tags: {
1735
1875
  name: $localize `Override keywords`,
1736
- priority: ConfigPriority.underTheHood,
1876
+ priority: Enums_1.ConfigPriority.underTheHood,
1737
1877
  uiResetNeeded: { db: true }
1738
1878
  },
1739
1879
  description: $localize `If a photo has the same face (person) name and keyword, the app removes the duplicate, keeping the face only.`
1740
1880
  }),
1741
- tslib_1.__metadata("design:type", Boolean)
1881
+ __metadata("design:type", Boolean)
1742
1882
  ], ClientFacesConfig.prototype, "keywordsToPersons", void 0);
1743
- tslib_1.__decorate([
1883
+ __decorate([
1744
1884
  (0, common_1.ConfigProperty)({
1745
1885
  type: UserDTO_1.UserRoles, tags: {
1746
1886
  name: $localize `Face starring right`,
1747
- priority: ConfigPriority.underTheHood
1887
+ priority: Enums_1.ConfigPriority.underTheHood
1748
1888
  },
1749
1889
  description: $localize `Required minimum right to star (favourite) a face.`
1750
1890
  }),
1751
- tslib_1.__metadata("design:type", Number)
1891
+ __metadata("design:type", Number)
1752
1892
  ], ClientFacesConfig.prototype, "writeAccessMinRole", void 0);
1753
- tslib_1.__decorate([
1893
+ __decorate([
1754
1894
  (0, common_1.ConfigProperty)({
1755
1895
  type: UserDTO_1.UserRoles, tags: {
1756
1896
  name: $localize `Face listing right`,
1757
- priority: ConfigPriority.underTheHood
1897
+ priority: Enums_1.ConfigPriority.underTheHood
1758
1898
  },
1759
1899
  description: $localize `Required minimum right to show the faces tab.`
1760
1900
  }),
1761
- tslib_1.__metadata("design:type", Number)
1901
+ __metadata("design:type", Number)
1762
1902
  ], ClientFacesConfig.prototype, "readAccessMinRole", void 0);
1763
- exports.ClientFacesConfig = ClientFacesConfig = tslib_1.__decorate([
1903
+ exports.ClientFacesConfig = ClientFacesConfig = __decorate([
1764
1904
  (0, common_1.SubConfigClass)({ tags: { client: true }, softReadonly: true })
1765
1905
  ], ClientFacesConfig);
1766
1906
  let ClientServiceConfig = class ClientServiceConfig {
@@ -1773,18 +1913,49 @@ let ClientServiceConfig = class ClientServiceConfig {
1773
1913
  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
1914
  this.reloadClientOnServerUpdate = true;
1775
1915
  }
1916
+ /**
1917
+ * Normalized urlBase: '' or a path with a leading and no trailing '/' (e.g.: '/myGallery').
1918
+ */
1919
+ getUrlBase() {
1920
+ const base = (this.urlBase || '').trim().replace(/^\/+|\/+$/g, '');
1921
+ return base ? '/' + base : '';
1922
+ }
1923
+ /**
1924
+ * Host relative url of the app, respecting urlBase.
1925
+ * E.g.: getAppUrl() -> '/myGallery/', getAppUrl('/share/', key) -> '/myGallery/share/key'
1926
+ */
1927
+ getAppUrl(...parts) {
1928
+ // concatUrls returns '.' for empty input
1929
+ const path = Utils_1.Utils.concatUrls(...parts).replace(/^(\.?\/)+/, '');
1930
+ return this.getUrlBase() + '/' + (path === '.' ? '' : path);
1931
+ }
1932
+ /**
1933
+ * Host relative url of the api, respecting urlBase. E.g.: '/myGallery/pgapi/gallery/content'
1934
+ */
1935
+ getApiUrl(...parts) {
1936
+ return this.getAppUrl(this.apiPath, ...parts);
1937
+ }
1938
+ /**
1939
+ * Url of the app that can be shared with others: publicUrl + urlBase + parts.
1940
+ * If publicUrl is not set (e.g.: on the server side) it is host relative.
1941
+ */
1942
+ getPublicUrl(...parts) {
1943
+ return (this.publicUrl || '').trim().replace(/\/+$/, '') + this.getAppUrl(...parts);
1944
+ }
1776
1945
  };
1777
1946
  exports.ClientServiceConfig = ClientServiceConfig;
1778
- tslib_1.__decorate([
1947
+ __decorate([
1779
1948
  (0, common_1.ConfigProperty)({
1949
+ type: 'string',
1780
1950
  tags: {
1781
1951
  name: $localize `Page title`
1782
1952
  }
1783
1953
  }),
1784
- tslib_1.__metadata("design:type", String)
1954
+ __metadata("design:type", String)
1785
1955
  ], ClientServiceConfig.prototype, "applicationTitle", void 0);
1786
- tslib_1.__decorate([
1956
+ __decorate([
1787
1957
  (0, common_1.ConfigProperty)({
1958
+ type: 'string',
1788
1959
  description: $localize `If you access the page from local network it's good to know the public url for creating sharing link.`,
1789
1960
  tags: {
1790
1961
  name: $localize `Page public url`,
@@ -1792,77 +1963,81 @@ tslib_1.__decorate([
1792
1963
  uiOptional: true
1793
1964
  }
1794
1965
  }),
1795
- tslib_1.__metadata("design:type", String)
1966
+ __metadata("design:type", String)
1796
1967
  ], ClientServiceConfig.prototype, "publicUrl", void 0);
1797
- tslib_1.__decorate([
1968
+ __decorate([
1798
1969
  (0, common_1.ConfigProperty)({
1970
+ type: 'string',
1799
1971
  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.`,
1800
1972
  tags: {
1801
1973
  name: $localize `Url Base`,
1802
1974
  hint: '/myGallery',
1803
1975
  uiResetNeeded: { server: true },
1804
- priority: ConfigPriority.advanced,
1976
+ priority: Enums_1.ConfigPriority.advanced,
1805
1977
  uiOptional: true,
1806
1978
  githubIssue: 854
1807
1979
  }
1808
1980
  }),
1809
- tslib_1.__metadata("design:type", String)
1981
+ __metadata("design:type", String)
1810
1982
  ], ClientServiceConfig.prototype, "urlBase", void 0);
1811
- tslib_1.__decorate([
1983
+ __decorate([
1812
1984
  (0, common_1.ConfigProperty)({
1985
+ type: 'string',
1813
1986
  description: 'PiGallery api path.',
1814
1987
  tags: {
1815
1988
  name: $localize `Api path`,
1816
1989
  uiResetNeeded: { server: true },
1817
- priority: ConfigPriority.underTheHood
1990
+ priority: Enums_1.ConfigPriority.underTheHood
1818
1991
  }
1819
1992
  }),
1820
- tslib_1.__metadata("design:type", String)
1993
+ __metadata("design:type", String)
1821
1994
  ], ClientServiceConfig.prototype, "apiPath", void 0);
1822
- tslib_1.__decorate([
1823
- (0, common_1.ConfigProperty)({ arrayType: 'string', volatile: true }),
1824
- tslib_1.__metadata("design:type", Array)
1995
+ __decorate([
1996
+ (0, common_1.ConfigProperty)({ type: 'array', arrayType: 'string', volatile: true }),
1997
+ __metadata("design:type", Object)
1825
1998
  ], ClientServiceConfig.prototype, "languages", void 0);
1826
- tslib_1.__decorate([
1999
+ __decorate([
1827
2000
  (0, common_1.ConfigProperty)({
2001
+ type: 'string',
1828
2002
  description: $localize `Injects the content of this between the <head></head> HTML tags of the app. (You can use it to add analytics or custom code to the app).`,
1829
2003
  tags: {
1830
2004
  name: $localize `Custom HTML Head`,
1831
- priority: ConfigPriority.advanced,
2005
+ priority: Enums_1.ConfigPriority.advanced,
1832
2006
  uiResetNeeded: { server: true },
1833
2007
  githubIssue: 404,
1834
2008
  uiOptional: true
1835
2009
  }
1836
2010
  }),
1837
- tslib_1.__metadata("design:type", String)
2011
+ __metadata("design:type", String)
1838
2012
  ], ClientServiceConfig.prototype, "customHTMLHead", void 0);
1839
- tslib_1.__decorate([
2013
+ __decorate([
1840
2014
  (0, common_1.ConfigProperty)({
1841
2015
  type: SVGIconConfig,
1842
2016
  tags: {
1843
2017
  name: $localize `Svg Icon`,
1844
2018
  uiType: 'SVGIconConfig',
1845
- priority: ConfigPriority.advanced,
2019
+ priority: Enums_1.ConfigPriority.advanced,
1846
2020
  githubIssue: 1028,
1847
2021
  },
1848
2022
  description: $localize `Sets the icon of the app. Rendered icons are cached in the tmp folder.`,
1849
2023
  })
1850
2024
  // source: https://icons.getbootstrap.com/
1851
2025
  ,
1852
- tslib_1.__metadata("design:type", SVGIconConfig)
2026
+ __metadata("design:type", SVGIconConfig)
1853
2027
  ], ClientServiceConfig.prototype, "svgIcon", void 0);
1854
- tslib_1.__decorate([
2028
+ __decorate([
1855
2029
  (0, common_1.ConfigProperty)({
2030
+ type: 'boolean',
1856
2031
  tags: {
1857
2032
  name: $localize `Reload client on server update`,
1858
- priority: ConfigPriority.underTheHood,
2033
+ priority: Enums_1.ConfigPriority.underTheHood,
1859
2034
  githubIssue: 1078
1860
2035
  },
1861
2036
  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
2037
  }),
1863
- tslib_1.__metadata("design:type", Boolean)
2038
+ __metadata("design:type", Boolean)
1864
2039
  ], ClientServiceConfig.prototype, "reloadClientOnServerUpdate", void 0);
1865
- exports.ClientServiceConfig = ClientServiceConfig = tslib_1.__decorate([
2040
+ exports.ClientServiceConfig = ClientServiceConfig = __decorate([
1866
2041
  (0, common_1.SubConfigClass)({ tags: { client: true }, softReadonly: true })
1867
2042
  ], ClientServiceConfig);
1868
2043
  let ClientUserOIDCConfig = class ClientUserOIDCConfig {
@@ -1872,30 +2047,32 @@ let ClientUserOIDCConfig = class ClientUserOIDCConfig {
1872
2047
  }
1873
2048
  };
1874
2049
  exports.ClientUserOIDCConfig = ClientUserOIDCConfig;
1875
- tslib_1.__decorate([
2050
+ __decorate([
1876
2051
  (0, common_1.ConfigProperty)({
2052
+ type: 'boolean',
1877
2053
  tags: {
1878
2054
  name: $localize `Enabled`,
1879
- priority: ConfigPriority.advanced,
2055
+ priority: Enums_1.ConfigPriority.advanced,
1880
2056
  uiResetNeeded: { server: true },
1881
2057
  }
1882
2058
  }),
1883
- tslib_1.__metadata("design:type", Boolean)
2059
+ __metadata("design:type", Boolean)
1884
2060
  ], ClientUserOIDCConfig.prototype, "enabled", void 0);
1885
- tslib_1.__decorate([
2061
+ __decorate([
1886
2062
  (0, common_1.ConfigProperty)({
2063
+ type: 'string',
1887
2064
  tags: {
1888
2065
  name: $localize `Display name`,
1889
- priority: ConfigPriority.advanced,
2066
+ priority: Enums_1.ConfigPriority.advanced,
1890
2067
  uiOptional: true,
1891
2068
  relevant: (c) => c.enabled,
1892
2069
  hint: 'Authentik'
1893
2070
  },
1894
2071
  description: $localize `Shown on the login button (client-visible).`
1895
2072
  }),
1896
- tslib_1.__metadata("design:type", String)
2073
+ __metadata("design:type", String)
1897
2074
  ], ClientUserOIDCConfig.prototype, "displayName", void 0);
1898
- exports.ClientUserOIDCConfig = ClientUserOIDCConfig = tslib_1.__decorate([
2075
+ exports.ClientUserOIDCConfig = ClientUserOIDCConfig = __decorate([
1899
2076
  (0, common_1.SubConfigClass)({ tags: { client: true }, softReadonly: true })
1900
2077
  ], ClientUserOIDCConfig);
1901
2078
  let ClientUserConfig = class ClientUserConfig {
@@ -1906,8 +2083,9 @@ let ClientUserConfig = class ClientUserConfig {
1906
2083
  }
1907
2084
  };
1908
2085
  exports.ClientUserConfig = ClientUserConfig;
1909
- tslib_1.__decorate([
2086
+ __decorate([
1910
2087
  (0, common_1.ConfigProperty)({
2088
+ type: 'boolean',
1911
2089
  onNewValue: (value, config) => {
1912
2090
  if (config && value === false) {
1913
2091
  config.Sharing.enabled = false;
@@ -1919,34 +2097,35 @@ tslib_1.__decorate([
1919
2097
  },
1920
2098
  description: $localize `Enables user management with login to password protect the gallery.`,
1921
2099
  }),
1922
- tslib_1.__metadata("design:type", Boolean)
2100
+ __metadata("design:type", Boolean)
1923
2101
  ], ClientUserConfig.prototype, "authenticationRequired", void 0);
1924
- tslib_1.__decorate([
2102
+ __decorate([
1925
2103
  (0, common_1.ConfigProperty)({
1926
2104
  type: UserDTO_1.UserRoles, tags: {
1927
2105
  name: $localize `Default user right`,
1928
- priority: ConfigPriority.advanced,
2106
+ priority: Enums_1.ConfigPriority.advanced,
1929
2107
  uiResetNeeded: { server: true },
1930
2108
  relevant: (c) => c.authenticationRequired === false
1931
2109
  },
1932
2110
  description: $localize `Default user right when password protection is disabled.`,
1933
2111
  }),
1934
- tslib_1.__metadata("design:type", Number)
2112
+ __metadata("design:type", Number)
1935
2113
  ], ClientUserConfig.prototype, "unAuthenticatedUserRole", void 0);
1936
- tslib_1.__decorate([
2114
+ __decorate([
1937
2115
  (0, common_1.ConfigProperty)({
2116
+ type: ClientUserOIDCConfig,
1938
2117
  tags: {
1939
2118
  name: $localize `OpenID Connect`,
1940
- priority: ConfigPriority.advanced,
2119
+ priority: Enums_1.ConfigPriority.advanced,
1941
2120
  uiResetNeeded: { server: true },
1942
2121
  uiIcon: 'ionFingerPrint',
1943
2122
  githubIssue: 1096
1944
2123
  },
1945
2124
  description: $localize `Setup SSO with external authentication apps like Authentik or Authelia`,
1946
2125
  }),
1947
- tslib_1.__metadata("design:type", ClientUserOIDCConfig)
2126
+ __metadata("design:type", ClientUserOIDCConfig)
1948
2127
  ], ClientUserConfig.prototype, "oidc", void 0);
1949
- exports.ClientUserConfig = ClientUserConfig = tslib_1.__decorate([
2128
+ exports.ClientUserConfig = ClientUserConfig = __decorate([
1950
2129
  (0, common_1.SubConfigClass)({ tags: { client: true }, softReadonly: true })
1951
2130
  ], ClientUserConfig);
1952
2131
  let ClientExtensionsConfig = class ClientExtensionsConfig {
@@ -1955,16 +2134,17 @@ let ClientExtensionsConfig = class ClientExtensionsConfig {
1955
2134
  }
1956
2135
  };
1957
2136
  exports.ClientExtensionsConfig = ClientExtensionsConfig;
1958
- tslib_1.__decorate([
2137
+ __decorate([
1959
2138
  (0, common_1.ConfigProperty)({
2139
+ type: 'boolean',
1960
2140
  tags: {
1961
2141
  name: $localize `Enabled`,
1962
- priority: ConfigPriority.advanced,
2142
+ priority: Enums_1.ConfigPriority.advanced,
1963
2143
  }
1964
2144
  }),
1965
- tslib_1.__metadata("design:type", Boolean)
2145
+ __metadata("design:type", Boolean)
1966
2146
  ], ClientExtensionsConfig.prototype, "enabled", void 0);
1967
- exports.ClientExtensionsConfig = ClientExtensionsConfig = tslib_1.__decorate([
2147
+ exports.ClientExtensionsConfig = ClientExtensionsConfig = __decorate([
1968
2148
  (0, common_1.SubConfigClass)({ tags: { client: true }, softReadonly: true })
1969
2149
  ], ClientExtensionsConfig);
1970
2150
  let ClientUploadConfig = class ClientUploadConfig {
@@ -1972,18 +2152,21 @@ let ClientUploadConfig = class ClientUploadConfig {
1972
2152
  this.enabled = false;
1973
2153
  this.minimumRole = UserDTO_1.UserRoles.Admin;
1974
2154
  this.enforcedDirectoryConfig = false;
2155
+ this.maxFileSizeMB = 500;
2156
+ this.blockedExtensions = ['pg2conf', 'svg'];
1975
2157
  }
1976
2158
  };
1977
2159
  exports.ClientUploadConfig = ClientUploadConfig;
1978
- tslib_1.__decorate([
2160
+ __decorate([
1979
2161
  (0, common_1.ConfigProperty)({
2162
+ type: 'boolean',
1980
2163
  tags: {
1981
2164
  name: $localize `Enabled`,
1982
2165
  }
1983
2166
  }),
1984
- tslib_1.__metadata("design:type", Boolean)
2167
+ __metadata("design:type", Boolean)
1985
2168
  ], ClientUploadConfig.prototype, "enabled", void 0);
1986
- tslib_1.__decorate([
2169
+ __decorate([
1987
2170
  (0, common_1.ConfigProperty)({
1988
2171
  type: UserDTO_1.UserRoles,
1989
2172
  tags: {
@@ -1991,18 +2174,44 @@ tslib_1.__decorate([
1991
2174
  },
1992
2175
  description: $localize `Minimum user role to enable file upload.`
1993
2176
  }),
1994
- tslib_1.__metadata("design:type", Number)
2177
+ __metadata("design:type", Number)
1995
2178
  ], ClientUploadConfig.prototype, "minimumRole", void 0);
1996
- tslib_1.__decorate([
2179
+ __decorate([
1997
2180
  (0, common_1.ConfigProperty)({
2181
+ type: 'boolean',
1998
2182
  tags: {
1999
2183
  name: $localize `Require uploader.pg2conf`,
2000
2184
  },
2001
2185
  description: $localize `Only enable upload in folder where an ".uploader.pg2conf" is present in the folder.`
2002
2186
  }),
2003
- tslib_1.__metadata("design:type", Boolean)
2187
+ __metadata("design:type", Boolean)
2004
2188
  ], ClientUploadConfig.prototype, "enforcedDirectoryConfig", void 0);
2005
- exports.ClientUploadConfig = ClientUploadConfig = tslib_1.__decorate([
2189
+ __decorate([
2190
+ (0, common_1.ConfigProperty)({
2191
+ type: 'unsignedInt', min: 1,
2192
+ tags: {
2193
+ name: $localize `Maximum file size`,
2194
+ priority: Enums_1.ConfigPriority.advanced,
2195
+ githubIssue: 1314,
2196
+ unit: 'MB'
2197
+ },
2198
+ description: $localize `Larger files are not uploaded. A reverse proxy in front of the gallery has its own limit (e.g. client_max_body_size of nginx): set it at least this high.`
2199
+ }),
2200
+ __metadata("design:type", Number)
2201
+ ], ClientUploadConfig.prototype, "maxFileSizeMB", void 0);
2202
+ __decorate([
2203
+ (0, common_1.ConfigProperty)({
2204
+ type: 'array',
2205
+ arrayType: 'string',
2206
+ tags: {
2207
+ name: $localize `Blocked extensions`,
2208
+ priority: Enums_1.ConfigPriority.underTheHood,
2209
+ },
2210
+ description: $localize `Files with these extensions cannot be uploaded, even if they are supported. *.pg2conf files control sorting, saved searches and upload permission of a folder, *.svg files can contain scripts.`
2211
+ }),
2212
+ __metadata("design:type", Array)
2213
+ ], ClientUploadConfig.prototype, "blockedExtensions", void 0);
2214
+ exports.ClientUploadConfig = ClientUploadConfig = __decorate([
2006
2215
  (0, common_1.SubConfigClass)({ tags: { client: true }, softReadonly: true })
2007
2216
  ], ClientUploadConfig);
2008
2217
  let ClientConfig = class ClientConfig {
@@ -2023,33 +2232,35 @@ let ClientConfig = class ClientConfig {
2023
2232
  }
2024
2233
  };
2025
2234
  exports.ClientConfig = ClientConfig;
2026
- tslib_1.__decorate([
2027
- (0, common_1.ConfigProperty)(),
2028
- tslib_1.__metadata("design:type", ClientServiceConfig)
2235
+ __decorate([
2236
+ (0, common_1.ConfigProperty)({ type: ClientServiceConfig }),
2237
+ __metadata("design:type", ClientServiceConfig)
2029
2238
  ], ClientConfig.prototype, "Server", void 0);
2030
- tslib_1.__decorate([
2031
- (0, common_1.ConfigProperty)(),
2032
- tslib_1.__metadata("design:type", ClientUserConfig)
2239
+ __decorate([
2240
+ (0, common_1.ConfigProperty)({ type: ClientUserConfig }),
2241
+ __metadata("design:type", ClientUserConfig)
2033
2242
  ], ClientConfig.prototype, "Users", void 0);
2034
- tslib_1.__decorate([
2243
+ __decorate([
2035
2244
  (0, common_1.ConfigProperty)({
2245
+ type: ClientGalleryConfig,
2036
2246
  tags: {
2037
2247
  name: $localize `Gallery`,
2038
2248
  uiIcon: 'ionBrowsersOutline'
2039
2249
  },
2040
2250
  }),
2041
- tslib_1.__metadata("design:type", ClientGalleryConfig)
2251
+ __metadata("design:type", ClientGalleryConfig)
2042
2252
  ], ClientConfig.prototype, "Gallery", void 0);
2043
- tslib_1.__decorate([
2044
- (0, common_1.ConfigProperty)(),
2045
- tslib_1.__metadata("design:type", ClientMediaConfig)
2253
+ __decorate([
2254
+ (0, common_1.ConfigProperty)({ type: ClientMediaConfig }),
2255
+ __metadata("design:type", ClientMediaConfig)
2046
2256
  ], ClientConfig.prototype, "Media", void 0);
2047
- tslib_1.__decorate([
2048
- (0, common_1.ConfigProperty)(),
2049
- tslib_1.__metadata("design:type", ClientMetaFileConfig)
2257
+ __decorate([
2258
+ (0, common_1.ConfigProperty)({ type: ClientMetaFileConfig }),
2259
+ __metadata("design:type", ClientMetaFileConfig)
2050
2260
  ], ClientConfig.prototype, "MetaFile", void 0);
2051
- tslib_1.__decorate([
2261
+ __decorate([
2052
2262
  (0, common_1.ConfigProperty)({
2263
+ type: ClientAlbumConfig,
2053
2264
  tags: {
2054
2265
  name: $localize `Album`,
2055
2266
  uiIcon: 'ionAlbumsOutline',
@@ -2059,41 +2270,45 @@ tslib_1.__decorate([
2059
2270
  }]
2060
2271
  },
2061
2272
  }),
2062
- tslib_1.__metadata("design:type", ClientAlbumConfig)
2273
+ __metadata("design:type", ClientAlbumConfig)
2063
2274
  ], ClientConfig.prototype, "Album", void 0);
2064
- tslib_1.__decorate([
2275
+ __decorate([
2065
2276
  (0, common_1.ConfigProperty)({
2277
+ type: ClientSearchConfig,
2066
2278
  tags: {
2067
2279
  name: $localize `Search`,
2068
2280
  uiIcon: 'ionSearchOutline'
2069
2281
  },
2070
2282
  }),
2071
- tslib_1.__metadata("design:type", ClientSearchConfig)
2283
+ __metadata("design:type", ClientSearchConfig)
2072
2284
  ], ClientConfig.prototype, "Search", void 0);
2073
- tslib_1.__decorate([
2074
- (0, common_1.ConfigProperty)(),
2075
- tslib_1.__metadata("design:type", ClientSharingConfig)
2285
+ __decorate([
2286
+ (0, common_1.ConfigProperty)({ type: ClientSharingConfig }),
2287
+ __metadata("design:type", ClientSharingConfig)
2076
2288
  ], ClientConfig.prototype, "Sharing", void 0);
2077
- tslib_1.__decorate([
2289
+ __decorate([
2078
2290
  (0, common_1.ConfigProperty)({
2291
+ type: ClientMapConfig,
2079
2292
  tags: {
2080
2293
  name: $localize `Map`,
2081
2294
  uiIcon: 'ionLocationOutline'
2082
2295
  },
2083
2296
  }),
2084
- tslib_1.__metadata("design:type", ClientMapConfig)
2297
+ __metadata("design:type", ClientMapConfig)
2085
2298
  ], ClientConfig.prototype, "Map", void 0);
2086
- tslib_1.__decorate([
2299
+ __decorate([
2087
2300
  (0, common_1.ConfigProperty)({
2301
+ type: ClientFacesConfig,
2088
2302
  tags: {
2089
2303
  name: $localize `Faces`,
2090
2304
  uiIcon: 'ionPeopleOutline'
2091
2305
  },
2092
2306
  }),
2093
- tslib_1.__metadata("design:type", ClientFacesConfig)
2307
+ __metadata("design:type", ClientFacesConfig)
2094
2308
  ], ClientConfig.prototype, "Faces", void 0);
2095
- tslib_1.__decorate([
2309
+ __decorate([
2096
2310
  (0, common_1.ConfigProperty)({
2311
+ type: ClientRandomPhotoConfig,
2097
2312
  tags: {
2098
2313
  name: $localize `Random photo`,
2099
2314
  uiIcon: 'ionShuffleOutline',
@@ -2101,26 +2316,28 @@ tslib_1.__decorate([
2101
2316
  },
2102
2317
  description: $localize `This feature enables you to generate 'random photo' urls. That URL returns a photo random selected from your gallery. You can use the url with 3rd party application like random changing desktop background. Note: With the current implementation, random link also requires login.`
2103
2318
  }),
2104
- tslib_1.__metadata("design:type", ClientRandomPhotoConfig)
2319
+ __metadata("design:type", ClientRandomPhotoConfig)
2105
2320
  ], ClientConfig.prototype, "RandomPhoto", void 0);
2106
- tslib_1.__decorate([
2321
+ __decorate([
2107
2322
  (0, common_1.ConfigProperty)({
2323
+ type: ClientExtensionsConfig,
2108
2324
  tags: {
2109
2325
  name: $localize `Extensions`,
2110
2326
  uiIcon: 'ionExtensionPuzzleOutline'
2111
2327
  },
2112
2328
  }),
2113
- tslib_1.__metadata("design:type", ClientExtensionsConfig)
2329
+ __metadata("design:type", ClientExtensionsConfig)
2114
2330
  ], ClientConfig.prototype, "Extensions", void 0);
2115
- tslib_1.__decorate([
2331
+ __decorate([
2116
2332
  (0, common_1.ConfigProperty)({
2333
+ type: ClientUploadConfig,
2117
2334
  tags: {
2118
2335
  name: $localize `Upload`,
2119
2336
  uiIcon: 'ionCloudUploadOutline'
2120
2337
  },
2121
2338
  }),
2122
- tslib_1.__metadata("design:type", ClientUploadConfig)
2339
+ __metadata("design:type", ClientUploadConfig)
2123
2340
  ], ClientConfig.prototype, "Upload", void 0);
2124
- exports.ClientConfig = ClientConfig = tslib_1.__decorate([
2341
+ exports.ClientConfig = ClientConfig = __decorate([
2125
2342
  (0, common_1.SubConfigClass)({ tags: { client: true }, softReadonly: true })
2126
2343
  ], ClientConfig);