pigallery2-extension-kit 2.0.1-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.
- package/README.md +3 -0
- package/index.js +6 -0
- package/index.js.map +1 -0
- package/index.ts +2 -0
- package/lib/extension/index.d.ts +1 -0
- package/lib/src/backend/Logger.d.ts +20 -0
- package/lib/src/backend/ProjectPath.d.ts +16 -0
- package/lib/src/backend/exceptions/LocationLookupException.d.ts +4 -0
- package/lib/src/backend/index.d.ts +1 -0
- package/lib/src/backend/middlewares/AlbumMWs.d.ts +6 -0
- package/lib/src/backend/middlewares/GalleryMWs.d.ts +11 -0
- package/lib/src/backend/middlewares/MetaFileMWs.d.ts +4 -0
- package/lib/src/backend/middlewares/NotificationMWs.d.ts +4 -0
- package/lib/src/backend/middlewares/PersonMWs.d.ts +7 -0
- package/lib/src/backend/middlewares/RenderingMWs.d.ts +12 -0
- package/lib/src/backend/middlewares/ServerTimingMWs.d.ts +16 -0
- package/lib/src/backend/middlewares/SharingMWs.d.ts +10 -0
- package/lib/src/backend/middlewares/VersionMWs.d.ts +7 -0
- package/lib/src/backend/middlewares/admin/AdminMWs.d.ts +10 -0
- package/lib/src/backend/middlewares/admin/SettingsMWs.d.ts +10 -0
- package/lib/src/backend/middlewares/thumbnail/PhotoConverterMWs.d.ts +4 -0
- package/lib/src/backend/middlewares/thumbnail/ThumbnailGeneratorMWs.d.ts +13 -0
- package/lib/src/backend/middlewares/user/AuthenticationMWs.d.ts +14 -0
- package/lib/src/backend/middlewares/user/UserMWs.d.ts +7 -0
- package/lib/src/backend/middlewares/user/UserRequestConstrainsMWs.d.ts +6 -0
- package/lib/src/backend/model/EventLoopHandler.d.ts +6 -0
- package/lib/src/backend/model/FFmpegFactory.d.ts +4 -0
- package/lib/src/backend/model/Localizations.d.ts +3 -0
- package/lib/src/backend/model/NotifocationManager.d.ts +8 -0
- package/lib/src/backend/model/ObjectManagers.d.ts +61 -0
- package/lib/src/backend/model/PasswordHelper.d.ts +4 -0
- package/lib/src/backend/model/database/AlbumManager.d.ts +18 -0
- package/lib/src/backend/model/database/CoverManager.d.ts +31 -0
- package/lib/src/backend/model/database/GalleryManager.d.ts +30 -0
- package/lib/src/backend/model/database/IObjectManager.d.ts +6 -0
- package/lib/src/backend/model/database/IndexingManager.d.ts +32 -0
- package/lib/src/backend/model/database/LocationManager.d.ts +12 -0
- package/lib/src/backend/model/database/PersonManager.d.ts +31 -0
- package/lib/src/backend/model/database/SQLConnection.d.ts +22 -0
- package/lib/src/backend/model/database/SearchManager.d.ts +41 -0
- package/lib/src/backend/model/database/SharingManager.d.ts +11 -0
- package/lib/src/backend/model/database/UserManager.d.ts +10 -0
- package/lib/src/backend/model/database/VersionManager.d.ts +7 -0
- package/lib/src/backend/model/database/enitites/DirectoryEntity.d.ts +27 -0
- package/lib/src/backend/model/database/enitites/EntityUtils.d.ts +7 -0
- package/lib/src/backend/model/database/enitites/FileEntity.d.ts +7 -0
- package/lib/src/backend/model/database/enitites/MDFileEntity.d.ts +5 -0
- package/lib/src/backend/model/database/enitites/MediaEntity.d.ts +61 -0
- package/lib/src/backend/model/database/enitites/PersonEntry.d.ts +11 -0
- package/lib/src/backend/model/database/enitites/PersonJunctionTable.d.ts +10 -0
- package/lib/src/backend/model/database/enitites/PhotoEntity.d.ts +7 -0
- package/lib/src/backend/model/database/enitites/SharingEntity.d.ts +12 -0
- package/lib/src/backend/model/database/enitites/UserEntity.d.ts +8 -0
- package/lib/src/backend/model/database/enitites/VersionEntity.d.ts +4 -0
- package/lib/src/backend/model/database/enitites/VideoEntity.d.ts +10 -0
- package/lib/src/backend/model/database/enitites/album/AlbumBaseEntity.d.ts +12 -0
- package/lib/src/backend/model/database/enitites/album/SavedSearchEntity.d.ts +6 -0
- package/lib/src/backend/model/diagnostics/ConfigDiagnostics.d.ts +23 -0
- package/lib/src/backend/model/extension/ExpressRouterWrapper.d.ts +27 -0
- package/lib/src/backend/model/extension/ExtensionApp.d.ts +8 -0
- package/lib/src/backend/model/extension/ExtensionConfigWrapper.d.ts +17 -0
- package/lib/src/backend/model/extension/ExtensionDB.d.ts +10 -0
- package/lib/src/backend/model/extension/ExtensionDecorator.d.ts +6 -0
- package/lib/src/backend/model/extension/ExtensionEvent.d.ts +17 -0
- package/lib/src/backend/model/extension/ExtensionManager.d.ts +20 -0
- package/lib/src/backend/model/extension/ExtensionMessengerHandler.d.ts +13 -0
- package/lib/src/backend/model/extension/ExtensionObject.d.ts +21 -0
- package/lib/src/backend/model/extension/IExtension.d.ts +178 -0
- package/lib/src/backend/model/fileaccess/DiskManager.d.ts +28 -0
- package/lib/src/backend/model/fileaccess/MetadataLoader.d.ts +7 -0
- package/lib/src/backend/model/fileaccess/PhotoWorker.d.ts +38 -0
- package/lib/src/backend/model/fileaccess/TaskExecuter.d.ts +13 -0
- package/lib/src/backend/model/fileaccess/TaskQue.d.ts +18 -0
- package/lib/src/backend/model/fileaccess/VideoConverterWorker.d.ts +23 -0
- package/lib/src/backend/model/fileaccess/fileprocessing/GPXProcessing.d.ts +9 -0
- package/lib/src/backend/model/fileaccess/fileprocessing/PhotoProcessing.d.ts +23 -0
- package/lib/src/backend/model/fileaccess/fileprocessing/VideoProcessing.d.ts +9 -0
- package/lib/src/backend/model/jobs/JobManager.d.ts +37 -0
- package/lib/src/backend/model/jobs/JobProgressManager.d.ts +15 -0
- package/lib/src/backend/model/jobs/JobRepository.d.ts +10 -0
- package/lib/src/backend/model/jobs/jobs/AlbumCoverFillingJob.d.ts +18 -0
- package/lib/src/backend/model/jobs/jobs/AlbumCoverResetJob.d.ts +10 -0
- package/lib/src/backend/model/jobs/jobs/AlbumResetJob.d.ts +10 -0
- package/lib/src/backend/model/jobs/jobs/FileJob.d.ts +32 -0
- package/lib/src/backend/model/jobs/jobs/GPXCompressionJob.d.ts +10 -0
- package/lib/src/backend/model/jobs/jobs/GPXCompressionResetJob.d.ts +8 -0
- package/lib/src/backend/model/jobs/jobs/GalleryResetJob.d.ts +10 -0
- package/lib/src/backend/model/jobs/jobs/IJob.d.ts +14 -0
- package/lib/src/backend/model/jobs/jobs/IJobListener.d.ts +7 -0
- package/lib/src/backend/model/jobs/jobs/IndexingJob.d.ts +14 -0
- package/lib/src/backend/model/jobs/jobs/Job.d.ts +31 -0
- package/lib/src/backend/model/jobs/jobs/JobProgress.d.ts +26 -0
- package/lib/src/backend/model/jobs/jobs/PhotoConvertingJob.d.ts +8 -0
- package/lib/src/backend/model/jobs/jobs/TempFolderCleaningJob.d.ts +16 -0
- package/lib/src/backend/model/jobs/jobs/ThumbnailGenerationJob.d.ts +18 -0
- package/lib/src/backend/model/jobs/jobs/TopPickSendJob.d.ts +21 -0
- package/lib/src/backend/model/jobs/jobs/VideoConvertingJob.d.ts +8 -0
- package/lib/src/backend/model/messenger/EmailMessenger.d.ts +18 -0
- package/lib/src/backend/model/messenger/ExtensionMessenger.d.ts +11 -0
- package/lib/src/backend/model/messenger/Messenger.d.ts +14 -0
- package/lib/src/backend/model/messenger/MessengerRepository.d.ts +12 -0
- package/lib/src/backend/model/messenger/StdoutMessenger.d.ts +8 -0
- package/lib/src/backend/routes/AlbumRouter.d.ts +7 -0
- package/lib/src/backend/routes/ErrorRouter.d.ts +6 -0
- package/lib/src/backend/routes/GalleryRouter.d.ts +19 -0
- package/lib/src/backend/routes/LoggerRouter.d.ts +17 -0
- package/lib/src/backend/routes/NotificationRouter.d.ts +5 -0
- package/lib/src/backend/routes/PersonRouter.d.ts +7 -0
- package/lib/src/backend/routes/PublicRouter.d.ts +20 -0
- package/lib/src/backend/routes/Router.d.ts +4 -0
- package/lib/src/backend/routes/SharingRouter.d.ts +11 -0
- package/lib/src/backend/routes/UserRouter.d.ts +11 -0
- package/lib/src/backend/routes/admin/AdminRouter.d.ts +8 -0
- package/lib/src/backend/routes/admin/SettingsRouter.d.ts +5 -0
- package/lib/src/backend/server.d.ts +26 -0
- package/lib/src/common/BackendTexts.d.ts +35 -0
- package/lib/src/common/CookieNames.d.ts +6 -0
- package/lib/src/common/CustomHeaders.d.ts +3 -0
- package/lib/src/common/DataStructureVersion.d.ts +4 -0
- package/lib/src/common/PG2ConfMap.d.ts +20 -0
- package/lib/src/common/QueryParams.d.ts +23 -0
- package/lib/src/common/SearchQueryParser.d.ts +47 -0
- package/lib/src/common/SupportedFormats.d.ts +18 -0
- package/lib/src/common/Utils.d.ts +48 -0
- package/lib/src/common/config/private/Config.d.ts +6 -0
- package/lib/src/common/config/private/MessagingConfig.d.ts +15 -0
- package/lib/src/common/config/private/PrivateConfig.d.ts +203 -0
- package/lib/src/common/config/private/WebConfig.d.ts +5 -0
- package/lib/src/common/config/public/ClientConfig.d.ts +275 -0
- package/lib/src/common/config/public/Config.d.ts +8 -0
- package/lib/src/common/entities/AutoCompleteItem.d.ts +11 -0
- package/lib/src/common/entities/ConentWrapper.d.ts +18 -0
- package/lib/src/common/entities/DirectoryDTO.d.ts +55 -0
- package/lib/src/common/entities/DuplicatesDTO.d.ts +4 -0
- package/lib/src/common/entities/DynamicConfig.d.ts +19 -0
- package/lib/src/common/entities/Error.d.ts +34 -0
- package/lib/src/common/entities/FileDTO.d.ts +6 -0
- package/lib/src/common/entities/GridSizes.d.ts +7 -0
- package/lib/src/common/entities/LoginCredential.d.ts +6 -0
- package/lib/src/common/entities/MDFileDTO.d.ts +8 -0
- package/lib/src/common/entities/MediaDTO.d.ts +27 -0
- package/lib/src/common/entities/MediaPickDTO.d.ts +7 -0
- package/lib/src/common/entities/Message.d.ts +6 -0
- package/lib/src/common/entities/NotificationDTO.d.ts +15 -0
- package/lib/src/common/entities/PasswordChangeRequest.d.ts +6 -0
- package/lib/src/common/entities/PersonDTO.d.ts +7 -0
- package/lib/src/common/entities/PhotoDTO.d.ts +53 -0
- package/lib/src/common/entities/SearchQueryDTO.d.ts +130 -0
- package/lib/src/common/entities/SearchResultDTO.d.ts +11 -0
- package/lib/src/common/entities/SharingDTO.d.ts +17 -0
- package/lib/src/common/entities/SortingMethods.d.ts +56 -0
- package/lib/src/common/entities/UserDTO.d.ts +21 -0
- package/lib/src/common/entities/UserModificationRequest.d.ts +4 -0
- package/lib/src/common/entities/VideoDTO.d.ts +17 -0
- package/lib/src/common/entities/album/AlbumBaseDTO.d.ts +8 -0
- package/lib/src/common/entities/album/SavedSearchDTO.d.ts +11 -0
- package/lib/src/common/entities/job/JobDTO.d.ts +26 -0
- package/lib/src/common/entities/job/JobProgressDTO.d.ts +31 -0
- package/lib/src/common/entities/job/JobScheduleDTO.d.ts +38 -0
- package/lib/src/common/entities/settings/IndexingDTO.d.ts +3 -0
- package/lib/src/common/entities/settings/StatisticDTO.d.ts +7 -0
- package/lib/src/common/event/Event.d.ts +11 -0
- package/lib/src/common/event/Event2Args.d.ts +7 -0
- package/lib/src/common/event/EventLimit.d.ts +9 -0
- package/lib/src/frontend/app/app.component.d.ts +18 -0
- package/lib/src/frontend/app/app.module.d.ts +23 -0
- package/lib/src/frontend/app/app.routing.d.ts +4 -0
- package/lib/src/frontend/app/icon.component.d.ts +7 -0
- package/lib/src/frontend/app/model/IRenderable.d.ts +17 -0
- package/lib/src/frontend/app/model/backendtext.service.d.ts +7 -0
- package/lib/src/frontend/app/model/backendtext.service.spec.d.ts +1 -0
- package/lib/src/frontend/app/model/navigation.service.d.ts +12 -0
- package/lib/src/frontend/app/model/network/autehentication.service.spec.d.ts +1 -0
- package/lib/src/frontend/app/model/network/authentication.service.d.ts +22 -0
- package/lib/src/frontend/app/model/network/helper/auth.guard.d.ts +9 -0
- package/lib/src/frontend/app/model/network/helper/csrf.interceptor.d.ts +8 -0
- package/lib/src/frontend/app/model/network/helper/error.interceptor.d.ts +8 -0
- package/lib/src/frontend/app/model/network/network.service.d.ts +26 -0
- package/lib/src/frontend/app/model/network/network.service.spec.d.ts +1 -0
- package/lib/src/frontend/app/model/network/user.service.d.ts +13 -0
- package/lib/src/frontend/app/model/network/user.service.spec.d.ts +1 -0
- package/lib/src/frontend/app/model/notification.service.d.ts +28 -0
- package/lib/src/frontend/app/model/page.helper.d.ts +12 -0
- package/lib/src/frontend/app/model/pi-title.service.d.ts +15 -0
- package/lib/src/frontend/app/model/query.service.d.ts +16 -0
- package/lib/src/frontend/app/model/seededRandom.service.d.ts +7 -0
- package/lib/src/frontend/app/model/theme.service.d.ts +16 -0
- package/lib/src/frontend/app/model/version.service.d.ts +6 -0
- package/lib/src/frontend/app/pipes/DurationPipe.d.ts +4 -0
- package/lib/src/frontend/app/pipes/FileDTOToPathPipe.d.ts +5 -0
- package/lib/src/frontend/app/pipes/FileDTOToRelativePathPipe.d.ts +5 -0
- package/lib/src/frontend/app/pipes/FileSizePipe.d.ts +4 -0
- package/lib/src/frontend/app/pipes/GPXFilesFilterPipe.d.ts +5 -0
- package/lib/src/frontend/app/pipes/MDFilesFilterPipe.d.ts +6 -0
- package/lib/src/frontend/app/pipes/ParseIntPipe.d.ts +4 -0
- package/lib/src/frontend/app/pipes/PhotoFilterPipe.d.ts +6 -0
- package/lib/src/frontend/app/pipes/SafeHTMLPipe.d.ts +7 -0
- package/lib/src/frontend/app/pipes/StringifyEnum.d.ts +4 -0
- package/lib/src/frontend/app/pipes/StringifyGridSize.d.ts +5 -0
- package/lib/src/frontend/app/pipes/StringifyRolePipe.d.ts +4 -0
- package/lib/src/frontend/app/pipes/StringifySearchQuery.d.ts +8 -0
- package/lib/src/frontend/app/pipes/StringifySearchType.d.ts +5 -0
- package/lib/src/frontend/app/pipes/StringifySortingMethod.d.ts +4 -0
- package/lib/src/frontend/app/ui/EnumTranslations.d.ts +5 -0
- package/lib/src/frontend/app/ui/admin/admin.component.d.ts +36 -0
- package/lib/src/frontend/app/ui/albums/album/album.component.d.ts +26 -0
- package/lib/src/frontend/app/ui/albums/albums.component.d.ts +26 -0
- package/lib/src/frontend/app/ui/albums/albums.service.d.ts +12 -0
- package/lib/src/frontend/app/ui/albums/saved-search-popup/saved-search-popup.component.d.ts +15 -0
- package/lib/src/frontend/app/ui/duplicates/duplicates.component.d.ts +36 -0
- package/lib/src/frontend/app/ui/duplicates/duplicates.service.d.ts +9 -0
- package/lib/src/frontend/app/ui/duplicates/photo/photo.duplicates.component.d.ts +11 -0
- package/lib/src/frontend/app/ui/faces/Person.d.ts +8 -0
- package/lib/src/frontend/app/ui/faces/face/face.component.d.ts +22 -0
- package/lib/src/frontend/app/ui/faces/faces.component.d.ts +18 -0
- package/lib/src/frontend/app/ui/faces/faces.service.d.ts +10 -0
- package/lib/src/frontend/app/ui/frame/frame.component.d.ts +54 -0
- package/lib/src/frontend/app/ui/gallery/Media.d.ts +16 -0
- package/lib/src/frontend/app/ui/gallery/MediaIcon.d.ts +18 -0
- package/lib/src/frontend/app/ui/gallery/blog/blog.gallery.component.d.ts +14 -0
- package/lib/src/frontend/app/ui/gallery/blog/blog.service.d.ts +23 -0
- package/lib/src/frontend/app/ui/gallery/cache.gallery.service.d.ts +54 -0
- package/lib/src/frontend/app/ui/gallery/content.service.d.ts +11 -0
- package/lib/src/frontend/app/ui/gallery/contentLoader.service.d.ts +35 -0
- package/lib/src/frontend/app/ui/gallery/directories/directories.component.d.ts +14 -0
- package/lib/src/frontend/app/ui/gallery/directories/directory/directory.gallery.component.d.ts +20 -0
- package/lib/src/frontend/app/ui/gallery/filter/filter.gallery.component.d.ts +32 -0
- package/lib/src/frontend/app/ui/gallery/filter/filter.service.d.ts +51 -0
- package/lib/src/frontend/app/ui/gallery/fullscreen.service.d.ts +7 -0
- package/lib/src/frontend/app/ui/gallery/gallery.component.d.ts +55 -0
- package/lib/src/frontend/app/ui/gallery/grid/GridMedia.d.ts +13 -0
- package/lib/src/frontend/app/ui/gallery/grid/GridRowBuilder.d.ts +16 -0
- package/lib/src/frontend/app/ui/gallery/grid/grid.gallery.component.d.ts +85 -0
- package/lib/src/frontend/app/ui/gallery/grid/grid.gallery.component.spec.d.ts +1 -0
- package/lib/src/frontend/app/ui/gallery/grid/photo/loading/loading.photo.grid.gallery.component.d.ts +4 -0
- package/lib/src/frontend/app/ui/gallery/grid/photo/photo.grid.gallery.component.d.ts +37 -0
- package/lib/src/frontend/app/ui/gallery/lightbox/controls/controls.lightbox.gallery.component.d.ts +102 -0
- package/lib/src/frontend/app/ui/gallery/lightbox/infopanel/info-panel.lightbox.gallery.component.d.ts +48 -0
- package/lib/src/frontend/app/ui/gallery/lightbox/lightbox.gallery.component.d.ts +88 -0
- package/lib/src/frontend/app/ui/gallery/lightbox/lightbox.service.d.ts +5 -0
- package/lib/src/frontend/app/ui/gallery/lightbox/media/media.lightbox.gallery.component.d.ts +63 -0
- package/lib/src/frontend/app/ui/gallery/map/MarkerFactory.d.ts +12 -0
- package/lib/src/frontend/app/ui/gallery/map/lightbox/lightbox.map.gallery.component.d.ts +71 -0
- package/lib/src/frontend/app/ui/gallery/map/map.gallery.component.d.ts +32 -0
- package/lib/src/frontend/app/ui/gallery/map/map.service.d.ts +20 -0
- package/lib/src/frontend/app/ui/gallery/navigator/navigator.gallery.component.d.ts +79 -0
- package/lib/src/frontend/app/ui/gallery/navigator/navigator.service.d.ts +13 -0
- package/lib/src/frontend/app/ui/gallery/navigator/sorting.service.d.ts +38 -0
- package/lib/src/frontend/app/ui/gallery/overlay.service.d.ts +9 -0
- package/lib/src/frontend/app/ui/gallery/random-query-builder/random-query-builder.gallery.component.d.ts +30 -0
- package/lib/src/frontend/app/ui/gallery/search/AutoCompleteRenderItem.d.ts +11 -0
- package/lib/src/frontend/app/ui/gallery/search/autocomplete.service.d.ts +33 -0
- package/lib/src/frontend/app/ui/gallery/search/query-builder/query-bulder.gallery.component.d.ts +22 -0
- package/lib/src/frontend/app/ui/gallery/search/query-enrty/query-entry.search.gallery.component.d.ts +40 -0
- package/lib/src/frontend/app/ui/gallery/search/search-field/search-field.gallery.component.d.ts +31 -0
- package/lib/src/frontend/app/ui/gallery/search/search-field-base/search-field-base.gallery.component.d.ts +57 -0
- package/lib/src/frontend/app/ui/gallery/search/search-query-parser.service.d.ts +9 -0
- package/lib/src/frontend/app/ui/gallery/search/search.gallery.component.d.ts +39 -0
- package/lib/src/frontend/app/ui/gallery/share/share.gallery.component.d.ts +63 -0
- package/lib/src/frontend/app/ui/gallery/share.service.d.ts +30 -0
- package/lib/src/frontend/app/ui/gallery/thumbnailLoader.service.d.ts +41 -0
- package/lib/src/frontend/app/ui/gallery/thumbnailManager.service.d.ts +46 -0
- package/lib/src/frontend/app/ui/language/language.component.d.ts +10 -0
- package/lib/src/frontend/app/ui/login/login.component.d.ts +15 -0
- package/lib/src/frontend/app/ui/settings/gallery-statistic/gallery-statistic.component.d.ts +5 -0
- package/lib/src/frontend/app/ui/settings/scheduled-jobs.service.d.ts +40 -0
- package/lib/src/frontend/app/ui/settings/settings.service.d.ts +27 -0
- package/lib/src/frontend/app/ui/settings/sharings-list/sharings-list.component.d.ts +14 -0
- package/lib/src/frontend/app/ui/settings/template/CustomSettingsEntries.d.ts +34 -0
- package/lib/src/frontend/app/ui/settings/template/ISettingsComponent.d.ts +13 -0
- package/lib/src/frontend/app/ui/settings/template/settings-entry/settings-entry.component.d.ts +118 -0
- package/lib/src/frontend/app/ui/settings/template/settings-entry/sorting-method/sorting-method.settings-entry.component.d.ts +25 -0
- package/lib/src/frontend/app/ui/settings/template/template.component.d.ts +86 -0
- package/lib/src/frontend/app/ui/settings/users/users.component.d.ts +34 -0
- package/lib/src/frontend/app/ui/settings/users/users.service.d.ts +10 -0
- package/lib/src/frontend/app/ui/settings/workflow/button/job-button.settings.component.d.ts +25 -0
- package/lib/src/frontend/app/ui/settings/workflow/progress/job-progress.settings.component.d.ts +25 -0
- package/lib/src/frontend/app/ui/settings/workflow/workflow.component.d.ts +68 -0
- package/lib/src/frontend/app/ui/sharelogin/share-login.component.d.ts +16 -0
- package/lib/src/frontend/app/ui/utils/grid-size-icon/grid-size-icon.component.d.ts +5 -0
- package/lib/src/frontend/app/ui/utils/sorting-method-icon/sorting-method-icon.component.d.ts +13 -0
- package/lib/src/frontend/app/ui/utils/timestamp-datepicker/datepicker.component.d.ts +10 -0
- package/lib/src/frontend/app/ui/utils/timestamp-timepicker/timepicker.component.d.ts +11 -0
- package/lib/src/frontend/environments/environment.d.ts +3 -0
- package/lib/src/frontend/environments/environment.prod.d.ts +3 -0
- package/lib/src/frontend/main.d.ts +1 -0
- package/lib/src/frontend/polyfills.d.ts +60 -0
- package/lib/src/frontend/test.d.ts +1 -0
- package/lib/test.d.ts +1 -0
- package/lib/test2.d.ts +1 -0
- package/package.json +8 -0
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { IAutoCompleteItem } from '../../../../common/entities/AutoCompleteItem';
|
|
2
|
+
import { MediaDTO } from '../../../../common/entities/MediaDTO';
|
|
3
|
+
import { GroupingMethod, SortingMethod } from '../../../../common/entities/SortingMethods';
|
|
4
|
+
import { VersionService } from '../../model/version.service';
|
|
5
|
+
import { SearchQueryDTO, SearchQueryTypes } from '../../../../common/entities/SearchQueryDTO';
|
|
6
|
+
import { ContentWrapper } from '../../../../common/entities/ConentWrapper';
|
|
7
|
+
import { ContentWrapperWithError } from './contentLoader.service';
|
|
8
|
+
import { ThemeModes } from '../../../../common/config/public/ClientConfig';
|
|
9
|
+
import { GridSizes } from '../../../../common/entities/GridSizes';
|
|
10
|
+
export declare class GalleryCacheService {
|
|
11
|
+
private versionService;
|
|
12
|
+
private static readonly CONTENT_PREFIX;
|
|
13
|
+
private static readonly AUTO_COMPLETE_PREFIX;
|
|
14
|
+
private static readonly INSTANT_SEARCH_PREFIX;
|
|
15
|
+
private static readonly SEARCH_PREFIX;
|
|
16
|
+
private static readonly SORTING_PREFIX;
|
|
17
|
+
private static readonly GROUPING_PREFIX;
|
|
18
|
+
private static readonly GRID_SIZE_PREFIX;
|
|
19
|
+
private static readonly VERSION;
|
|
20
|
+
private static readonly SLIDESHOW_SPEED;
|
|
21
|
+
private static THEME_MODE;
|
|
22
|
+
constructor(versionService: VersionService);
|
|
23
|
+
private static wasAReload;
|
|
24
|
+
private static loadCacheItem;
|
|
25
|
+
private static deleteCache;
|
|
26
|
+
getGrouping(cw: ContentWrapper): GroupingMethod;
|
|
27
|
+
getSorting(cw: ContentWrapper): SortingMethod;
|
|
28
|
+
setGrouping(cw: ContentWrapper, sorting: GroupingMethod): void;
|
|
29
|
+
setSorting(cw: ContentWrapper, sorting: SortingMethod): void;
|
|
30
|
+
removeGrouping(cw: ContentWrapper): void;
|
|
31
|
+
removeSorting(cw: ContentWrapper): void;
|
|
32
|
+
private getSortOrGroup;
|
|
33
|
+
private removeSortOrGroup;
|
|
34
|
+
private setSortOrGroup;
|
|
35
|
+
removeGridSize(cw: ContentWrapperWithError): void;
|
|
36
|
+
getGridSize(cw: ContentWrapperWithError): GridSizes;
|
|
37
|
+
setGridSize(cw: ContentWrapperWithError, gs: GridSizes): void;
|
|
38
|
+
getAutoComplete(text: string, type: SearchQueryTypes): IAutoCompleteItem[];
|
|
39
|
+
setAutoComplete(text: string, type: SearchQueryTypes, items: Array<IAutoCompleteItem>): void;
|
|
40
|
+
getSearch(query: SearchQueryDTO): ContentWrapperWithError;
|
|
41
|
+
setSearch(cw: ContentWrapperWithError): void;
|
|
42
|
+
getDirectory(directoryName: string): ContentWrapperWithError;
|
|
43
|
+
setDirectory(cw: ContentWrapper): void;
|
|
44
|
+
/**
|
|
45
|
+
* Update media state at cache too (Eg.: thumbnail rendered)
|
|
46
|
+
* @param media: MediaBaseDTO
|
|
47
|
+
*/
|
|
48
|
+
mediaUpdated(media: MediaDTO): void;
|
|
49
|
+
private reset;
|
|
50
|
+
getSlideshowSpeed(): number;
|
|
51
|
+
setSlideshowSpeed(speed: number): void;
|
|
52
|
+
getThemeMode(): ThemeModes;
|
|
53
|
+
setThemeMode(mode: ThemeModes): void;
|
|
54
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Observable } from 'rxjs';
|
|
2
|
+
import { GallerySortingService, GroupedDirectoryContent } from './navigator/sorting.service';
|
|
3
|
+
import { FilterService } from './filter/filter.service';
|
|
4
|
+
import { ContentLoaderService } from './contentLoader.service';
|
|
5
|
+
export declare class ContentService {
|
|
6
|
+
private contentLoaderService;
|
|
7
|
+
private sortingService;
|
|
8
|
+
private filterService;
|
|
9
|
+
sortedFilteredContent: Observable<GroupedDirectoryContent>;
|
|
10
|
+
constructor(contentLoaderService: ContentLoaderService, sortingService: GallerySortingService, filterService: FilterService);
|
|
11
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { NetworkService } from '../../model/network/network.service';
|
|
2
|
+
import { ContentWrapper } from '../../../../common/entities/ConentWrapper';
|
|
3
|
+
import { SubDirectoryDTO } from '../../../../common/entities/DirectoryDTO';
|
|
4
|
+
import { GalleryCacheService } from './cache.gallery.service';
|
|
5
|
+
import { BehaviorSubject, Observable } from 'rxjs';
|
|
6
|
+
import { ShareService } from './share.service';
|
|
7
|
+
import { NavigationService } from '../../model/navigation.service';
|
|
8
|
+
import { MediaDTO } from '../../../../common/entities/MediaDTO';
|
|
9
|
+
import { FileDTO } from '../../../../common/entities/FileDTO';
|
|
10
|
+
export declare class ContentLoaderService {
|
|
11
|
+
private networkService;
|
|
12
|
+
private galleryCacheService;
|
|
13
|
+
private shareService;
|
|
14
|
+
private navigationService;
|
|
15
|
+
content: BehaviorSubject<ContentWrapperWithError>;
|
|
16
|
+
originalContent: Observable<DirectoryContent>;
|
|
17
|
+
lastRequest: {
|
|
18
|
+
directory: string;
|
|
19
|
+
};
|
|
20
|
+
private searchId;
|
|
21
|
+
private ongoingSearch;
|
|
22
|
+
constructor(networkService: NetworkService, galleryCacheService: GalleryCacheService, shareService: ShareService, navigationService: NavigationService);
|
|
23
|
+
setContent(content: ContentWrapperWithError): void;
|
|
24
|
+
loadDirectory(directoryName: string): Promise<void>;
|
|
25
|
+
search(query: string): Promise<void>;
|
|
26
|
+
isSearchResult(): boolean;
|
|
27
|
+
}
|
|
28
|
+
export declare class ContentWrapperWithError extends ContentWrapper {
|
|
29
|
+
error?: string;
|
|
30
|
+
}
|
|
31
|
+
export interface DirectoryContent {
|
|
32
|
+
directories: SubDirectoryDTO[];
|
|
33
|
+
media: MediaDTO[];
|
|
34
|
+
metaFile: FileDTO[];
|
|
35
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { ElementRef, OnChanges } from '@angular/core';
|
|
2
|
+
import { DeviceDetectorService } from 'ngx-device-detector';
|
|
3
|
+
import { SubDirectoryDTO } from '../../../../../common/entities/DirectoryDTO';
|
|
4
|
+
export declare class DirectoriesComponent implements OnChanges {
|
|
5
|
+
private container;
|
|
6
|
+
private deviceService;
|
|
7
|
+
directories: SubDirectoryDTO[];
|
|
8
|
+
size: number;
|
|
9
|
+
isDesktop: boolean;
|
|
10
|
+
constructor(container: ElementRef, deviceService: DeviceDetectorService);
|
|
11
|
+
ngOnChanges(): void;
|
|
12
|
+
onResize(): void;
|
|
13
|
+
private updateSize;
|
|
14
|
+
}
|
package/lib/src/frontend/app/ui/gallery/directories/directory/directory.gallery.component.d.ts
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { OnDestroy, OnInit } from '@angular/core';
|
|
2
|
+
import { DomSanitizer, SafeStyle } from '@angular/platform-browser';
|
|
3
|
+
import { SubDirectoryDTO } from '../../../../../../common/entities/DirectoryDTO';
|
|
4
|
+
import { Thumbnail, ThumbnailManagerService } from '../../thumbnailManager.service';
|
|
5
|
+
import { QueryService } from '../../../../model/query.service';
|
|
6
|
+
import { CoverPhotoDTO } from '../../../../../../common/entities/PhotoDTO';
|
|
7
|
+
export declare class GalleryDirectoryComponent implements OnInit, OnDestroy {
|
|
8
|
+
private thumbnailService;
|
|
9
|
+
private sanitizer;
|
|
10
|
+
queryService: QueryService;
|
|
11
|
+
directory: SubDirectoryDTO;
|
|
12
|
+
size: number;
|
|
13
|
+
thumbnail: Thumbnail;
|
|
14
|
+
constructor(thumbnailService: ThumbnailManagerService, sanitizer: DomSanitizer, queryService: QueryService);
|
|
15
|
+
get SamplePhoto(): CoverPhotoDTO;
|
|
16
|
+
getSanitizedThUrl(): SafeStyle;
|
|
17
|
+
getDirectoryPath(): string;
|
|
18
|
+
ngOnDestroy(): void;
|
|
19
|
+
ngOnInit(): void;
|
|
20
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { OnDestroy, OnInit } from '@angular/core';
|
|
2
|
+
import { FilterOption, FilterService, SelectedFilter } from './filter.service';
|
|
3
|
+
export declare class GalleryFilterComponent implements OnInit, OnDestroy {
|
|
4
|
+
filterService: FilterService;
|
|
5
|
+
readonly unknownText: string;
|
|
6
|
+
minDate: number;
|
|
7
|
+
maxDate: number;
|
|
8
|
+
NUMBER_MAX_VALUE: number;
|
|
9
|
+
NUMBER_MIN_VALUE: number;
|
|
10
|
+
showStatistic: boolean;
|
|
11
|
+
constructor(filterService: FilterService);
|
|
12
|
+
get MinDatePrc(): number;
|
|
13
|
+
get MaxDatePrc(): number;
|
|
14
|
+
get ActiveFilters(): {
|
|
15
|
+
filtersVisible: boolean;
|
|
16
|
+
areFiltersActive: boolean;
|
|
17
|
+
dateFilter: {
|
|
18
|
+
minDate: number;
|
|
19
|
+
maxDate: number;
|
|
20
|
+
minFilter: number;
|
|
21
|
+
maxFilter: number;
|
|
22
|
+
};
|
|
23
|
+
selectedFilters: SelectedFilter[];
|
|
24
|
+
};
|
|
25
|
+
ngOnDestroy(): void;
|
|
26
|
+
ngOnInit(): void;
|
|
27
|
+
isOnlySelected(filter: SelectedFilter, option: FilterOption): boolean;
|
|
28
|
+
toggleSelectOnly(filter: SelectedFilter, option: FilterOption, event: MouseEvent): void;
|
|
29
|
+
newMinDate($event: Event): void;
|
|
30
|
+
newMaxDate($event: Event): void;
|
|
31
|
+
reset(): void;
|
|
32
|
+
}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { BehaviorSubject, Observable } from 'rxjs';
|
|
2
|
+
import { PhotoDTO } from '../../../../../common/entities/PhotoDTO';
|
|
3
|
+
import { DirectoryContent } from '../contentLoader.service';
|
|
4
|
+
export declare enum FilterRenderType {
|
|
5
|
+
enum = 1,
|
|
6
|
+
range = 2
|
|
7
|
+
}
|
|
8
|
+
export interface Filter {
|
|
9
|
+
name: string;
|
|
10
|
+
mapFn: (m: PhotoDTO) => (string | number)[] | (string | number);
|
|
11
|
+
renderType: FilterRenderType;
|
|
12
|
+
isArrayValue?: boolean;
|
|
13
|
+
}
|
|
14
|
+
export interface FilterOption {
|
|
15
|
+
name: string;
|
|
16
|
+
count: number;
|
|
17
|
+
selected: boolean;
|
|
18
|
+
}
|
|
19
|
+
export interface SelectedFilter {
|
|
20
|
+
filter: Filter;
|
|
21
|
+
options: FilterOption[];
|
|
22
|
+
}
|
|
23
|
+
export declare class FilterService {
|
|
24
|
+
readonly AVAILABLE_FILTERS: Filter[];
|
|
25
|
+
readonly activeFilters: BehaviorSubject<{
|
|
26
|
+
filtersVisible: boolean;
|
|
27
|
+
areFiltersActive: boolean;
|
|
28
|
+
dateFilter: {
|
|
29
|
+
minDate: number;
|
|
30
|
+
maxDate: number;
|
|
31
|
+
minFilter: number;
|
|
32
|
+
maxFilter: number;
|
|
33
|
+
};
|
|
34
|
+
selectedFilters: {
|
|
35
|
+
filter: Filter;
|
|
36
|
+
options: any[];
|
|
37
|
+
}[];
|
|
38
|
+
}>;
|
|
39
|
+
statistic: {
|
|
40
|
+
date: Date;
|
|
41
|
+
endDate: Date;
|
|
42
|
+
dateStr: string;
|
|
43
|
+
count: number;
|
|
44
|
+
max: number;
|
|
45
|
+
}[];
|
|
46
|
+
private getStatistic;
|
|
47
|
+
applyFilters(directoryContent: Observable<DirectoryContent>): Observable<DirectoryContent>;
|
|
48
|
+
onFilterChange(): void;
|
|
49
|
+
setShowingFilters(value: boolean): void;
|
|
50
|
+
resetFilters(triggerChangeDetection?: boolean): void;
|
|
51
|
+
}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { OnDestroy, OnInit } from '@angular/core';
|
|
2
|
+
import { AuthenticationService } from '../../model/network/authentication.service';
|
|
3
|
+
import { ActivatedRoute, Router } from '@angular/router';
|
|
4
|
+
import { ContentService } from './content.service';
|
|
5
|
+
import { GalleryGridComponent } from './grid/grid.gallery.component';
|
|
6
|
+
import { ShareService } from './share.service';
|
|
7
|
+
import { NavigationService } from '../../model/navigation.service';
|
|
8
|
+
import { GallerySortingService, GroupedDirectoryContent } from './navigator/sorting.service';
|
|
9
|
+
import { FilterService } from './filter/filter.service';
|
|
10
|
+
import { PiTitleService } from '../../model/pi-title.service';
|
|
11
|
+
import { GPXFilesFilterPipe } from '../../pipes/GPXFilesFilterPipe';
|
|
12
|
+
import { MDFilesFilterPipe } from '../../pipes/MDFilesFilterPipe';
|
|
13
|
+
import { ContentLoaderService, ContentWrapperWithError } from './contentLoader.service';
|
|
14
|
+
export declare class GalleryComponent implements OnInit, OnDestroy {
|
|
15
|
+
contentLoader: ContentLoaderService;
|
|
16
|
+
galleryService: ContentService;
|
|
17
|
+
private authService;
|
|
18
|
+
private router;
|
|
19
|
+
private shareService;
|
|
20
|
+
private route;
|
|
21
|
+
private navigation;
|
|
22
|
+
private filterService;
|
|
23
|
+
private sortingService;
|
|
24
|
+
private piTitleService;
|
|
25
|
+
private gpxFilesFilterPipe;
|
|
26
|
+
private mdFilesFilterPipe;
|
|
27
|
+
grid: GalleryGridComponent;
|
|
28
|
+
showSearchBar: boolean;
|
|
29
|
+
showShare: boolean;
|
|
30
|
+
showRandomPhotoBuilder: boolean;
|
|
31
|
+
blogOpen: boolean;
|
|
32
|
+
config: import("typeconfig").IWebConfigClass<{
|
|
33
|
+
[key: string]: any;
|
|
34
|
+
}> & import("../../../../common/config/public/Config").ClientClass;
|
|
35
|
+
isPhotoWithLocation: boolean;
|
|
36
|
+
countDown: {
|
|
37
|
+
day: number;
|
|
38
|
+
hour: number;
|
|
39
|
+
minute: number;
|
|
40
|
+
second: number;
|
|
41
|
+
};
|
|
42
|
+
readonly mapEnabled: boolean;
|
|
43
|
+
directoryContent: GroupedDirectoryContent;
|
|
44
|
+
private $counter;
|
|
45
|
+
private subscription;
|
|
46
|
+
constructor(contentLoader: ContentLoaderService, galleryService: ContentService, authService: AuthenticationService, router: Router, shareService: ShareService, route: ActivatedRoute, navigation: NavigationService, filterService: FilterService, sortingService: GallerySortingService, piTitleService: PiTitleService, gpxFilesFilterPipe: GPXFilesFilterPipe, mdFilesFilterPipe: MDFilesFilterPipe);
|
|
47
|
+
get ContentWrapper(): ContentWrapperWithError;
|
|
48
|
+
updateTimer(t: number): void;
|
|
49
|
+
ngOnDestroy(): void;
|
|
50
|
+
ngOnInit(): Promise<boolean>;
|
|
51
|
+
private onRoute;
|
|
52
|
+
private onContentChange;
|
|
53
|
+
get ShowMarkDown(): boolean;
|
|
54
|
+
get ShowMap(): boolean;
|
|
55
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { Media } from '../Media';
|
|
2
|
+
import { MediaDTO } from '../../../../../common/entities/MediaDTO';
|
|
3
|
+
import { PhotoDTO } from '../../../../../common/entities/PhotoDTO';
|
|
4
|
+
import { VideoDTO } from '../../../../../common/entities/VideoDTO';
|
|
5
|
+
export declare class GridMedia extends Media {
|
|
6
|
+
rowId: number;
|
|
7
|
+
constructor(media: MediaDTO, renderWidth: number, renderHeight: number, rowId: number);
|
|
8
|
+
get Video(): VideoDTO;
|
|
9
|
+
get Photo(): PhotoDTO;
|
|
10
|
+
isPhoto(): boolean;
|
|
11
|
+
isVideo(): boolean;
|
|
12
|
+
isVideoTranscodingNeeded(): boolean;
|
|
13
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { MediaDTO } from '../../../../../common/entities/MediaDTO';
|
|
2
|
+
export declare class GridRowBuilder {
|
|
3
|
+
private photos;
|
|
4
|
+
private startIndex;
|
|
5
|
+
private photoMargin;
|
|
6
|
+
private containerWidth;
|
|
7
|
+
private photoRow;
|
|
8
|
+
private photoIndex;
|
|
9
|
+
constructor(photos: MediaDTO[], startIndex: number, photoMargin: number, containerWidth: number);
|
|
10
|
+
addPhotos(num: number): void;
|
|
11
|
+
removePhoto(): boolean;
|
|
12
|
+
getPhotoRow(): MediaDTO[];
|
|
13
|
+
adjustRowHeightBetween(minHeight: number, maxHeight: number): void;
|
|
14
|
+
calcRowHeight(): number;
|
|
15
|
+
private addPhoto;
|
|
16
|
+
}
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
import { AfterViewInit, ChangeDetectorRef, ElementRef, OnChanges, OnDestroy, OnInit, QueryList } from '@angular/core';
|
|
2
|
+
import { GalleryLightboxComponent } from '../lightbox/lightbox.gallery.component';
|
|
3
|
+
import { GridMedia } from './GridMedia';
|
|
4
|
+
import { GalleryPhotoComponent } from './photo/photo.grid.gallery.component';
|
|
5
|
+
import { OverlayService } from '../overlay.service';
|
|
6
|
+
import { Subscription } from 'rxjs';
|
|
7
|
+
import { ActivatedRoute, Router } from '@angular/router';
|
|
8
|
+
import { QueryService } from '../../../model/query.service';
|
|
9
|
+
import { MediaDTO } from '../../../../../common/entities/MediaDTO';
|
|
10
|
+
import { GallerySortingService, MediaGroup } from '../navigator/sorting.service';
|
|
11
|
+
import { GalleryNavigatorService } from '../navigator/navigator.service';
|
|
12
|
+
export declare class GalleryGridComponent implements OnInit, OnChanges, AfterViewInit, OnDestroy {
|
|
13
|
+
private overlayService;
|
|
14
|
+
private changeDetector;
|
|
15
|
+
queryService: QueryService;
|
|
16
|
+
private router;
|
|
17
|
+
sortingService: GallerySortingService;
|
|
18
|
+
navigatorService: GalleryNavigatorService;
|
|
19
|
+
private route;
|
|
20
|
+
gridContainer: ElementRef;
|
|
21
|
+
gridPhotoQL: QueryList<GalleryPhotoComponent>;
|
|
22
|
+
lightbox: GalleryLightboxComponent;
|
|
23
|
+
mediaGroups: MediaGroup[];
|
|
24
|
+
mediaToRender: GridMediaGroup[];
|
|
25
|
+
containerWidth: number;
|
|
26
|
+
screenHeight: number;
|
|
27
|
+
isAfterViewInit: boolean;
|
|
28
|
+
subscriptions: {
|
|
29
|
+
girdSize: Subscription;
|
|
30
|
+
route: Subscription;
|
|
31
|
+
};
|
|
32
|
+
delayedRenderUpToPhoto: string;
|
|
33
|
+
private scrollListenerPhotos;
|
|
34
|
+
private TARGET_COL_COUNT;
|
|
35
|
+
private MIN_ROW_COUNT;
|
|
36
|
+
private MAX_ROW_COUNT;
|
|
37
|
+
IMAGE_MARGIN: number;
|
|
38
|
+
private onScrollFired;
|
|
39
|
+
private helperTime;
|
|
40
|
+
renderDelayTimer: number;
|
|
41
|
+
readonly GroupByTypes: {
|
|
42
|
+
[x: number]: string;
|
|
43
|
+
NoGrouping: import("../../../../../common/entities/SortingMethods").GroupByBasicTypes.NoGrouping;
|
|
44
|
+
Name: import("../../../../../common/entities/SortingMethods").SortByDirectionalTypes.Name;
|
|
45
|
+
Date: import("../../../../../common/entities/SortingMethods").SortByDirectionalTypes.Date;
|
|
46
|
+
Rating: import("../../../../../common/entities/SortingMethods").SortByDirectionalTypes.Rating;
|
|
47
|
+
PersonCount: import("../../../../../common/entities/SortingMethods").SortByDirectionalTypes.PersonCount;
|
|
48
|
+
FileSize: import("../../../../../common/entities/SortingMethods").SortByDirectionalTypes.FileSize;
|
|
49
|
+
};
|
|
50
|
+
readonly blogOpen: boolean;
|
|
51
|
+
constructor(overlayService: OverlayService, changeDetector: ChangeDetectorRef, queryService: QueryService, router: Router, sortingService: GallerySortingService, navigatorService: GalleryNavigatorService, route: ActivatedRoute);
|
|
52
|
+
ngOnChanges(): void;
|
|
53
|
+
ngOnInit(): void;
|
|
54
|
+
ngOnDestroy(): void;
|
|
55
|
+
onResize(): void;
|
|
56
|
+
private renderMinimalPhotos;
|
|
57
|
+
photoClicked(media: MediaDTO): void;
|
|
58
|
+
ngAfterViewInit(): void;
|
|
59
|
+
mergeNewPhotos(): void;
|
|
60
|
+
renderARow(): number;
|
|
61
|
+
onScroll(): void;
|
|
62
|
+
private getMaxRowHeight;
|
|
63
|
+
/**
|
|
64
|
+
* Makes sure that the photo with the given mediaString is visible on the screen
|
|
65
|
+
*/
|
|
66
|
+
private renderUpToMedia;
|
|
67
|
+
private clearRenderedPhotos;
|
|
68
|
+
/**
|
|
69
|
+
* Returns true, if scroll is >= 70% to render more images.
|
|
70
|
+
* Or of onscroll rendering is off: return always to render all the images at once
|
|
71
|
+
* @param offset Add height to the client height (content is not yet added to the dom, but calculate with it)
|
|
72
|
+
* @returns boolean
|
|
73
|
+
*/
|
|
74
|
+
private shouldRenderMore;
|
|
75
|
+
private renderPhotos;
|
|
76
|
+
private isMoreToRender;
|
|
77
|
+
getNumberOfRenderedMedia(): number;
|
|
78
|
+
private updateContainerDimensions;
|
|
79
|
+
}
|
|
80
|
+
interface GridMediaGroup {
|
|
81
|
+
media: GridMedia[];
|
|
82
|
+
name: string;
|
|
83
|
+
date?: Date;
|
|
84
|
+
}
|
|
85
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { ElementRef, OnDestroy, OnInit } from '@angular/core';
|
|
2
|
+
import { Dimension, IRenderable } from '../../../../model/IRenderable';
|
|
3
|
+
import { GridMedia } from '../GridMedia';
|
|
4
|
+
import { Thumbnail, ThumbnailManagerService } from '../../thumbnailManager.service';
|
|
5
|
+
import { SearchQueryTypes } from '../../../../../../common/entities/SearchQueryDTO';
|
|
6
|
+
import { AuthenticationService } from '../../../../model/network/authentication.service';
|
|
7
|
+
export declare class GalleryPhotoComponent implements IRenderable, OnInit, OnDestroy {
|
|
8
|
+
private thumbnailService;
|
|
9
|
+
private authService;
|
|
10
|
+
gridMedia: GridMedia;
|
|
11
|
+
imageRef: ElementRef;
|
|
12
|
+
container: ElementRef;
|
|
13
|
+
thumbnail: Thumbnail;
|
|
14
|
+
keywords: {
|
|
15
|
+
value: string;
|
|
16
|
+
type: SearchQueryTypes;
|
|
17
|
+
}[];
|
|
18
|
+
infoBarVisible: boolean;
|
|
19
|
+
animationTimer: number;
|
|
20
|
+
readonly SearchQueryTypes: typeof SearchQueryTypes;
|
|
21
|
+
searchEnabled: boolean;
|
|
22
|
+
wasInView: boolean;
|
|
23
|
+
loaded: boolean;
|
|
24
|
+
constructor(thumbnailService: ThumbnailManagerService, authService: AuthenticationService);
|
|
25
|
+
get ScrollListener(): boolean;
|
|
26
|
+
get Title(): string;
|
|
27
|
+
ngOnInit(): void;
|
|
28
|
+
ngOnDestroy(): void;
|
|
29
|
+
isInView(): boolean;
|
|
30
|
+
onScroll(): void;
|
|
31
|
+
getPositionSearchQuery(): string;
|
|
32
|
+
getTextSearchQuery(name: string, type: SearchQueryTypes): string;
|
|
33
|
+
getPositionText(): string;
|
|
34
|
+
mouseOver(): void;
|
|
35
|
+
mouseOut(): void;
|
|
36
|
+
getDimension(): Dimension;
|
|
37
|
+
}
|
package/lib/src/frontend/app/ui/gallery/lightbox/controls/controls.lightbox.gallery.component.d.ts
ADDED
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
import { ElementRef, EventEmitter, OnChanges, OnDestroy, OnInit } from '@angular/core';
|
|
2
|
+
import { FullScreenService } from '../../fullscreen.service';
|
|
3
|
+
import { GalleryPhotoComponent } from '../../grid/photo/photo.grid.gallery.component';
|
|
4
|
+
import { GalleryLightboxMediaComponent } from '../media/media.lightbox.gallery.component';
|
|
5
|
+
import { SearchQueryTypes } from '../../../../../../common/entities/SearchQueryDTO';
|
|
6
|
+
import { AuthenticationService } from '../../../../model/network/authentication.service';
|
|
7
|
+
import { LightboxService } from '../lightbox.service';
|
|
8
|
+
import { GalleryCacheService } from '../../cache.gallery.service';
|
|
9
|
+
export declare enum PlayBackStates {
|
|
10
|
+
Paused = 1,
|
|
11
|
+
Play = 2
|
|
12
|
+
}
|
|
13
|
+
export declare class ControlsLightboxComponent implements OnDestroy, OnInit, OnChanges {
|
|
14
|
+
lightboxService: LightboxService;
|
|
15
|
+
fullScreenService: FullScreenService;
|
|
16
|
+
private authService;
|
|
17
|
+
private cacheService;
|
|
18
|
+
readonly MAX_ZOOM = 10;
|
|
19
|
+
canvas: ElementRef<HTMLCanvasElement>;
|
|
20
|
+
private ctx;
|
|
21
|
+
root: ElementRef;
|
|
22
|
+
closed: EventEmitter<any>;
|
|
23
|
+
toggleInfoPanel: EventEmitter<any>;
|
|
24
|
+
toggleFullScreen: EventEmitter<any>;
|
|
25
|
+
nextPhoto: EventEmitter<any>;
|
|
26
|
+
previousPhoto: EventEmitter<any>;
|
|
27
|
+
navigation: {
|
|
28
|
+
hasPrev: boolean;
|
|
29
|
+
hasNext: boolean;
|
|
30
|
+
};
|
|
31
|
+
activePhoto: GalleryPhotoComponent;
|
|
32
|
+
mediaElement: GalleryLightboxMediaComponent;
|
|
33
|
+
photoFrameDim: {
|
|
34
|
+
width: number;
|
|
35
|
+
height: number;
|
|
36
|
+
aspect: number;
|
|
37
|
+
};
|
|
38
|
+
readonly facesEnabled: boolean;
|
|
39
|
+
zoom: number;
|
|
40
|
+
playBackState: PlayBackStates;
|
|
41
|
+
PlayBackStates: typeof PlayBackStates;
|
|
42
|
+
playBackDurations: number[];
|
|
43
|
+
selectedSlideshowSpeed: number;
|
|
44
|
+
controllersDimmed: boolean;
|
|
45
|
+
controllersVisible: boolean;
|
|
46
|
+
drag: {
|
|
47
|
+
x: number;
|
|
48
|
+
y: number;
|
|
49
|
+
};
|
|
50
|
+
SearchQueryTypes: typeof SearchQueryTypes;
|
|
51
|
+
faceContainerDim: {
|
|
52
|
+
width: number;
|
|
53
|
+
height: number;
|
|
54
|
+
};
|
|
55
|
+
searchEnabled: boolean;
|
|
56
|
+
private visibilityTimer;
|
|
57
|
+
private timerSub;
|
|
58
|
+
private prevDrag;
|
|
59
|
+
private prevZoom;
|
|
60
|
+
constructor(lightboxService: LightboxService, fullScreenService: FullScreenService, authService: AuthenticationService, cacheService: GalleryCacheService);
|
|
61
|
+
get Zoom(): number;
|
|
62
|
+
set Zoom(zoom: number);
|
|
63
|
+
get Title(): string;
|
|
64
|
+
containerWidth(): void;
|
|
65
|
+
ngOnInit(): void;
|
|
66
|
+
ngOnDestroy(): void;
|
|
67
|
+
ngOnChanges(): void;
|
|
68
|
+
pan($event: {
|
|
69
|
+
deltaY: number;
|
|
70
|
+
deltaX: number;
|
|
71
|
+
isFinal: boolean;
|
|
72
|
+
}): void;
|
|
73
|
+
wheel($event: {
|
|
74
|
+
deltaY: number;
|
|
75
|
+
}): void;
|
|
76
|
+
pinch($event: {
|
|
77
|
+
scale: number;
|
|
78
|
+
}): void;
|
|
79
|
+
pinchend($event: {
|
|
80
|
+
scale: number;
|
|
81
|
+
}): void;
|
|
82
|
+
tap($event: Event): void;
|
|
83
|
+
zoomIn(): void;
|
|
84
|
+
zoomOut(): void;
|
|
85
|
+
onKeyPress(event: KeyboardEvent): void;
|
|
86
|
+
private showNextMedia;
|
|
87
|
+
private drawSliderProgress;
|
|
88
|
+
resetSlideshowTimer(): void;
|
|
89
|
+
play(): void;
|
|
90
|
+
slideshowSpeedChanged(): void;
|
|
91
|
+
onMouseMove(): void;
|
|
92
|
+
pause(): void;
|
|
93
|
+
resetZoom(): void;
|
|
94
|
+
onResize(): void;
|
|
95
|
+
closeLightbox(): void;
|
|
96
|
+
getPersonSearchQuery(name: string): string;
|
|
97
|
+
private checkZoomAndDrag;
|
|
98
|
+
private showControls;
|
|
99
|
+
private hideControls;
|
|
100
|
+
private updateFaceContainerDim;
|
|
101
|
+
nextMediaManuallyTriggered(): void;
|
|
102
|
+
}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { EventEmitter, OnChanges, OnInit } from '@angular/core';
|
|
2
|
+
import { CameraMetadata, PositionMetaData } from '../../../../../../common/entities/PhotoDTO';
|
|
3
|
+
import { MediaDTO } from '../../../../../../common/entities/MediaDTO';
|
|
4
|
+
import { VideoMetadata } from '../../../../../../common/entities/VideoDTO';
|
|
5
|
+
import { QueryService } from '../../../../model/query.service';
|
|
6
|
+
import { MapService } from '../../map/map.service';
|
|
7
|
+
import { SearchQueryTypes } from '../../../../../../common/entities/SearchQueryDTO';
|
|
8
|
+
import { AuthenticationService } from '../../../../model/network/authentication.service';
|
|
9
|
+
import { Marker, TileLayer } from 'leaflet';
|
|
10
|
+
import { ThemeService } from '../../../../model/theme.service';
|
|
11
|
+
import { ContentLoaderService } from '../../contentLoader.service';
|
|
12
|
+
export declare class InfoPanelLightboxComponent implements OnInit, OnChanges {
|
|
13
|
+
queryService: QueryService;
|
|
14
|
+
contentLoaderService: ContentLoaderService;
|
|
15
|
+
mapService: MapService;
|
|
16
|
+
private authService;
|
|
17
|
+
private themeService;
|
|
18
|
+
media: MediaDTO;
|
|
19
|
+
closed: EventEmitter<any>;
|
|
20
|
+
readonly mapEnabled: boolean;
|
|
21
|
+
readonly searchEnabled: boolean;
|
|
22
|
+
keywords: {
|
|
23
|
+
value: string;
|
|
24
|
+
type: SearchQueryTypes;
|
|
25
|
+
}[];
|
|
26
|
+
readonly SearchQueryTypes: typeof SearchQueryTypes;
|
|
27
|
+
baseLayer: TileLayer;
|
|
28
|
+
markerLayer: Marker[];
|
|
29
|
+
constructor(queryService: QueryService, contentLoaderService: ContentLoaderService, mapService: MapService, authService: AuthenticationService, themeService: ThemeService);
|
|
30
|
+
get FullPath(): string;
|
|
31
|
+
get DirectoryPath(): string;
|
|
32
|
+
get DirectoryPathStr(): string;
|
|
33
|
+
get VideoData(): VideoMetadata;
|
|
34
|
+
get Rating(): number;
|
|
35
|
+
get PositionData(): PositionMetaData;
|
|
36
|
+
get CameraData(): CameraMetadata;
|
|
37
|
+
ngOnChanges(): void;
|
|
38
|
+
ngOnInit(): void;
|
|
39
|
+
isPhoto(): boolean;
|
|
40
|
+
calcMpx(): string;
|
|
41
|
+
isThisYear(): boolean;
|
|
42
|
+
toFraction(f: number): string | number;
|
|
43
|
+
hasTextPositionData(): boolean;
|
|
44
|
+
hasGPS(): boolean;
|
|
45
|
+
getPositionText(): string;
|
|
46
|
+
close(): void;
|
|
47
|
+
getTextSearchQuery(name: string, type: SearchQueryTypes): string;
|
|
48
|
+
}
|