@flusys/ng-storage 1.0.0-beta → 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +209 -5
- package/fesm2022/flusys-ng-storage-file-manager-form.component-Bv8ER8J0.mjs +484 -0
- package/fesm2022/flusys-ng-storage-file-manager-form.component-Bv8ER8J0.mjs.map +1 -0
- package/fesm2022/flusys-ng-storage-file-manager-list.component-McM1zSlE.mjs +304 -0
- package/fesm2022/flusys-ng-storage-file-manager-list.component-McM1zSlE.mjs.map +1 -0
- package/fesm2022/flusys-ng-storage-folder-form.component-fRFiMFev.mjs +155 -0
- package/fesm2022/flusys-ng-storage-folder-form.component-fRFiMFev.mjs.map +1 -0
- package/fesm2022/flusys-ng-storage-folder-list.component-C4xHI8SO.mjs +194 -0
- package/fesm2022/flusys-ng-storage-folder-list.component-C4xHI8SO.mjs.map +1 -0
- package/fesm2022/{flusys-ng-storage-storage-config-form.component-Bc95TVD0.mjs → flusys-ng-storage-storage-config-form.component-DEMexjmg.mjs} +242 -292
- package/fesm2022/flusys-ng-storage-storage-config-form.component-DEMexjmg.mjs.map +1 -0
- package/fesm2022/flusys-ng-storage-storage-config-list.component-iJez-rII.mjs +187 -0
- package/fesm2022/flusys-ng-storage-storage-config-list.component-iJez-rII.mjs.map +1 -0
- package/fesm2022/flusys-ng-storage.mjs +363 -199
- package/fesm2022/flusys-ng-storage.mjs.map +1 -1
- package/package.json +9 -9
- package/types/flusys-ng-storage.d.ts +150 -127
- package/fesm2022/flusys-ng-storage-file-manager-form.component-DVZsFYrj.mjs +0 -715
- package/fesm2022/flusys-ng-storage-file-manager-form.component-DVZsFYrj.mjs.map +0 -1
- package/fesm2022/flusys-ng-storage-file-manager-list.component-CwnyNoYb.mjs +0 -475
- package/fesm2022/flusys-ng-storage-file-manager-list.component-CwnyNoYb.mjs.map +0 -1
- package/fesm2022/flusys-ng-storage-folder-form.component-DH-KCz21.mjs +0 -253
- package/fesm2022/flusys-ng-storage-folder-form.component-DH-KCz21.mjs.map +0 -1
- package/fesm2022/flusys-ng-storage-folder-list.component-iIys4NvL.mjs +0 -267
- package/fesm2022/flusys-ng-storage-folder-list.component-iIys4NvL.mjs.map +0 -1
- package/fesm2022/flusys-ng-storage-storage-config-form.component-Bc95TVD0.mjs.map +0 -1
- package/fesm2022/flusys-ng-storage-storage-config-list.component-Bfomqyr3.mjs +0 -328
- package/fesm2022/flusys-ng-storage-storage-config-list.component-Bfomqyr3.mjs.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"flusys-ng-storage.mjs","sources":["../../../projects/ng-storage/enums/file-location.enum.ts","../../../projects/ng-storage/services/file-manager-api.service.ts","../../../projects/ng-storage/services/folder-api.service.ts","../../../projects/ng-storage/services/storage-config-api.service.ts","../../../projects/ng-storage/services/upload.service.ts","../../../projects/ng-storage/routes/storage.routes.ts","../../../projects/ng-storage/pages/storage-container/storage-container.component.ts","../../../projects/ng-storage/public-api.ts","../../../projects/ng-storage/flusys-ng-storage.ts"],"sourcesContent":["/**\n * File Location Enum\n * Storage provider types (matches backend FileLocationEnum)\n */\nexport enum FileLocationEnum {\n LOCAL = 'local',\n AWS = 'aws',\n AZURE = 'azure',\n SFTP = 'sftp',\n}\n\n/**\n * Image Format Enum\n * Supported image output formats for compression\n */\nexport enum ImageFormat {\n ORIGINAL = 'original',\n JPEG = 'jpeg',\n PNG = 'png',\n WEBP = 'webp',\n}\n","import { inject, Injectable } from '@angular/core';\nimport { HttpClient } from '@angular/common/http';\nimport { Observable } from 'rxjs';\nimport { ApiResourceService, ISingleResponse, IListResponse } from '@flusys/ng-shared';\nimport {\n IFileManager,\n ICreateFileManagerDto,\n IUpdateFileManagerDto,\n IGetFilesRequestDto,\n IFilesResponseDto,\n} from '../interfaces/file-manager.interface';\n\n/**\n * File Manager API Service\n * Handles file metadata CRUD operations\n * Endpoint: POST /storage/file-manager/*\n *\n * Note: Company feature enabled - all queries automatically scoped to user's company\n */\n@Injectable({\n providedIn: 'root',\n})\nexport class FileManagerApiService extends ApiResourceService<\n IUpdateFileManagerDto,\n IFileManager\n> {\n constructor() {\n const http = inject(HttpClient);\n super('storage/file-manager', http);\n }\n\n /**\n * Get multiple files with valid URLs\n * POST /storage/file-manager/get-files\n * Regenerates presigned URLs if expired\n */\n getFiles(\n fileIds: string[]\n ): Observable<ISingleResponse<IFilesResponseDto[]>> {\n const requests: IGetFilesRequestDto[] = fileIds.map((id) => ({ id }));\n return this.http.post<ISingleResponse<IFilesResponseDto[]>>(\n `${this.baseUrl}/get-files`,\n requests\n );\n }\n\n /**\n * Get files by folder\n * POST /storage/file-manager/get-all\n * Filtered by folder ID and company (if enabled)\n */\n getFilesByFolder(\n folderId: number | null,\n page: number = 1,\n limit: number = 50\n ): Observable<IListResponse<IFileManager>> {\n return this.getAll('', {\n filter: folderId ? { folderId } : {},\n pagination: { currentPage: page - 1, pageSize: limit },\n select: [],\n sort: {},\n });\n }\n\n /**\n * Get private files (requires permission)\n * POST /storage/file-manager/get-all\n * Filtered by isPrivate and user permission 'storage.file.viewPrivate'\n */\n getPrivateFiles(\n page: number = 1,\n limit: number = 50\n ): Observable<IListResponse<IFileManager>> {\n return this.getAll('', {\n filter: { isPrivate: true },\n pagination: { currentPage: page - 1, pageSize: limit },\n select: [],\n sort: {},\n });\n }\n}\n","import { inject, Injectable } from '@angular/core';\nimport { HttpClient } from '@angular/common/http';\nimport { ApiResourceService } from '@flusys/ng-shared';\nimport { IFolder, IUpdateFolderDto } from '../interfaces/folder.interface';\n\n/**\n * Folder API Service\n * Handles folder CRUD operations\n * Endpoint: POST /storage/folder/*\n *\n * Note: Company feature enabled - all queries automatically scoped to user's company\n */\n@Injectable({\n providedIn: 'root',\n})\nexport class FolderApiService extends ApiResourceService<IUpdateFolderDto, IFolder> {\n constructor() {\n const http = inject(HttpClient);\n super('storage/folder', http);\n }\n}\n","import { inject, Injectable } from '@angular/core';\nimport { HttpClient } from '@angular/common/http';\nimport { ApiResourceService } from '@flusys/ng-shared';\nimport { IStorageConfig, IUpdateStorageConfigDto } from '../interfaces/storage-config.interface';\n\n/**\n * Storage Config API Service\n * Handles storage configuration CRUD operations\n * Endpoint: POST /storage/storage-config/*\n *\n * Note: Company feature enabled - all queries automatically scoped to user's company\n */\n@Injectable({\n providedIn: 'root',\n})\nexport class StorageConfigApiService extends ApiResourceService<\n IUpdateStorageConfigDto,\n IStorageConfig\n> {\n constructor() {\n const http = inject(HttpClient);\n super('storage/storage-config', http);\n }\n}\n","import { Injectable } from '@angular/core';\nimport { Observable } from 'rxjs';\nimport { BaseApiService } from '@flusys/ng-core';\nimport { ISingleResponse } from '@flusys/ng-shared';\nimport {\n IUploadOptionsDto,\n IUploadedFileInfo,\n} from '../interfaces/upload.interface';\n\n/**\n * Upload Service\n * Handles file upload/delete operations\n * Endpoint: POST /storage/upload/*\n *\n * Features:\n * - Company-scoped uploads (if company feature enabled)\n * - Image compression\n * - Multiple storage providers\n * - File validation (size, type)\n */\n@Injectable({\n providedIn: 'root',\n})\nexport class UploadService extends BaseApiService {\n constructor() {\n super('storage');\n }\n\n /**\n * Upload single file\n * POST /storage/upload/single-file?storageConfigId=x&folderPath=y\n *\n * @param file - File to upload\n * @param options - Upload options (storage config, compression, etc.)\n */\n uploadSingleFile(\n file: File,\n options?: IUploadOptionsDto\n ): Observable<ISingleResponse<IUploadedFileInfo>> {\n const formData = new FormData();\n formData.append('file', file);\n\n const queryParams = this.buildQueryParams(options);\n const url = queryParams\n ? `${this.getUrl('upload/single-file')}?${queryParams}`\n : this.getUrl('upload/single-file');\n\n return this.http.post<ISingleResponse<IUploadedFileInfo>>(url, formData);\n }\n\n /**\n * Upload multiple files (max 50)\n * POST /storage/upload/multiple-file?storageConfigId=x&folderPath=y\n *\n * @param files - Array of files to upload\n * @param options - Upload options\n */\n uploadMultipleFiles(\n files: File[],\n options?: IUploadOptionsDto\n ): Observable<ISingleResponse<IUploadedFileInfo[]>> {\n const formData = new FormData();\n files.forEach((file) => formData.append('files', file));\n\n const queryParams = this.buildQueryParams(options);\n const url = queryParams\n ? `${this.getUrl('upload/multiple-file')}?${queryParams}`\n : this.getUrl('upload/multiple-file');\n\n return this.http.post<ISingleResponse<IUploadedFileInfo[]>>(url, formData);\n }\n\n /**\n * Build query string from upload options\n */\n private buildQueryParams(options?: IUploadOptionsDto): string {\n if (!options) return '';\n const params = new URLSearchParams();\n if (options.storageConfigId) params.append('storageConfigId', options.storageConfigId);\n if (options.folderPath) params.append('folderPath', options.folderPath);\n if (options.maxWidth) params.append('maxWidth', options.maxWidth.toString());\n if (options.maxHeight) params.append('maxHeight', options.maxHeight.toString());\n if (options.quality) params.append('quality', options.quality.toString());\n if (options.format) params.append('format', options.format);\n if (options.compress !== undefined) params.append('compress', options.compress.toString());\n return params.toString();\n }\n\n /**\n * Delete single file\n * POST /storage/upload/delete-single-file\n *\n * @param key - File key/path to delete\n * @param storageConfigId - Optional storage config ID (uses default if not provided)\n */\n deleteSingleFile(key: string, storageConfigId?: string): Observable<ISingleResponse<void>> {\n return this.http.post<ISingleResponse<void>>(\n this.getUrl('upload/delete-single-file'),\n { key, ...(storageConfigId && { storageConfigId }) }\n );\n }\n\n /**\n * Delete multiple files\n * POST /storage/upload/delete-multiple-file\n *\n * @param keys - Array of file keys/paths to delete\n * @param storageConfigId - Optional storage config ID (uses default if not provided)\n */\n deleteMultipleFiles(keys: string[], storageConfigId?: string): Observable<ISingleResponse<void>> {\n return this.http.post<ISingleResponse<void>>(\n this.getUrl('upload/delete-multiple-file'),\n { keys, ...(storageConfigId && { storageConfigId }) }\n );\n }\n\n /**\n * Get file download URL\n * GET /storage/upload/file/:filePath\n *\n * @param key - File key/path\n * @returns URL for direct file access\n */\n getFileUrl(key: string): string {\n return this.getUrl(`upload/file/${key}`);\n }\n}\n","import { Routes } from '@angular/router';\n\n/**\n * Storage Module Routes\n * All storage management routes: configs, files, folders\n *\n * All routes are protected by permission guards to prevent direct URL access.\n */\nexport const STORAGE_ROUTES: Routes = [\n {\n path: '',\n loadComponent: () =>\n import('../pages/storage-container/storage-container.component').then(\n (m) => m.StorageContainerComponent,\n ),\n children: [\n // File Manager Routes\n {\n path: 'files',\n children: [\n {\n path: '',\n loadComponent: () =>\n import('../pages/file-manager/file-manager-list.component').then(\n (m) => m.FileManagerListComponent,\n ),\n },\n {\n path: 'new',\n loadComponent: () =>\n import('../pages/file-manager/file-manager-form.component').then(\n (m) => m.FileManagerFormComponent,\n ),\n },\n {\n path: ':id',\n loadComponent: () =>\n import('../pages/file-manager/file-manager-form.component').then(\n (m) => m.FileManagerFormComponent,\n ),\n },\n ],\n },\n\n // Folder Routes\n {\n path: 'folders',\n children: [\n {\n path: '',\n loadComponent: () =>\n import('../pages/folder/folder-list.component').then(\n (m) => m.FolderListComponent,\n ),\n },\n {\n path: 'new',\n loadComponent: () =>\n import('../pages/folder/folder-form.component').then(\n (m) => m.FolderFormComponent,\n ),\n },\n {\n path: ':id',\n loadComponent: () =>\n import('../pages/folder/folder-form.component').then(\n (m) => m.FolderFormComponent,\n ),\n },\n ],\n },\n\n // Storage Config Routes\n {\n path: 'configs',\n children: [\n {\n path: '',\n loadComponent: () =>\n import('../pages/storage-config/storage-config-list.component').then(\n (m) => m.StorageConfigListComponent,\n ),\n },\n {\n path: 'new',\n loadComponent: () =>\n import('../pages/storage-config/storage-config-form.component').then(\n (m) => m.StorageConfigFormComponent,\n ),\n },\n {\n path: ':id',\n loadComponent: () =>\n import('../pages/storage-config/storage-config-form.component').then(\n (m) => m.StorageConfigFormComponent,\n ),\n },\n ],\n },\n\n // Default redirect to files\n {\n path: '',\n redirectTo: 'files',\n pathMatch: 'full',\n },\n ],\n },\n];\n","import { Component } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { RouterLink, RouterLinkActive, RouterOutlet } from '@angular/router';\n\ninterface ITab {\n id: string;\n label: string;\n icon: string;\n route: string;\n}\n\n/**\n * Storage Container Component\n *\n * Main container for Storage module with tab navigation\n * Routes: Files | Folders | Configurations\n */\n@Component({\n selector: 'lib-storage-container',\n standalone: true,\n imports: [CommonModule, RouterOutlet, RouterLink, RouterLinkActive],\n template: `\n <div class=\"storage-page p-4\">\n <div class=\"storage-header mb-4\">\n <h1 class=\"text-2xl font-bold m-0\">Storage</h1>\n <p class=\"text-gray-500 mt-1\">Manage files, folders, and storage configurations</p>\n </div>\n\n <div class=\"storage-tabs flex gap-1 mb-4 border-b border-gray-200\">\n @for (tab of tabs; track tab.id) {\n <a\n [routerLink]=\"tab.route\"\n routerLinkActive=\"active\"\n class=\"tab-link flex items-center gap-2 px-4 py-2 rounded-t-lg cursor-pointer transition-colors\">\n <i [class]=\"tab.icon\"></i>\n <span>{{ tab.label }}</span>\n </a>\n }\n </div>\n\n <div class=\"storage-content\">\n <router-outlet />\n </div>\n </div>\n `,\n styles: [\n `\n .tab-link {\n color: var(--text-color-secondary, #6b7280);\n text-decoration: none;\n border-bottom: 2px solid transparent;\n margin-bottom: -1px;\n }\n .tab-link.active {\n color: var(--primary-color, #3b82f6);\n border-bottom-color: var(--primary-color, #3b82f6);\n background-color: var(--surface-ground, #f9fafb);\n }\n .tab-link:hover:not(.active) {\n background-color: var(--surface-hover, #f3f4f6);\n }\n `,\n ],\n})\nexport class StorageContainerComponent {\n /** All available tabs */\n readonly tabs: ITab[] = [\n {\n id: 'files',\n label: 'Files',\n icon: 'pi pi-file',\n route: 'files',\n },\n {\n id: 'folders',\n label: 'Folders',\n icon: 'pi pi-folder',\n route: 'folders',\n },\n {\n id: 'configs',\n label: 'Configurations',\n icon: 'pi pi-cog',\n route: 'configs',\n },\n ];\n}\n","// =============================================================================\n// @flusys/ng-storage - Storage Package\n// =============================================================================\n\n// Enums\nexport * from './enums/public-api';\n\n// Interfaces\nexport * from './interfaces/public-api';\n\n// Services\nexport { FileManagerApiService } from './services/file-manager-api.service';\nexport { FolderApiService } from './services/folder-api.service';\nexport { StorageConfigApiService } from './services/storage-config-api.service';\nexport { UploadService } from './services/upload.service';\n\n// Routes\nexport { STORAGE_ROUTES } from './routes/storage.routes';\n\n// Components\nexport { StorageContainerComponent } from './pages/storage-container/storage-container.component';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;;AAAA;;;AAGG;IACS;AAAZ,CAAA,UAAY,gBAAgB,EAAA;AAC1B,IAAA,gBAAA,CAAA,OAAA,CAAA,GAAA,OAAe;AACf,IAAA,gBAAA,CAAA,KAAA,CAAA,GAAA,KAAW;AACX,IAAA,gBAAA,CAAA,OAAA,CAAA,GAAA,OAAe;AACf,IAAA,gBAAA,CAAA,MAAA,CAAA,GAAA,MAAa;AACf,CAAC,EALW,gBAAgB,KAAhB,gBAAgB,GAAA,EAAA,CAAA,CAAA;AAO5B;;;AAGG;IACS;AAAZ,CAAA,UAAY,WAAW,EAAA;AACrB,IAAA,WAAA,CAAA,UAAA,CAAA,GAAA,UAAqB;AACrB,IAAA,WAAA,CAAA,MAAA,CAAA,GAAA,MAAa;AACb,IAAA,WAAA,CAAA,KAAA,CAAA,GAAA,KAAW;AACX,IAAA,WAAA,CAAA,MAAA,CAAA,GAAA,MAAa;AACf,CAAC,EALW,WAAW,KAAX,WAAW,GAAA,EAAA,CAAA,CAAA;;ACHvB;;;;;;AAMG;AAIG,MAAO,qBAAsB,SAAQ,kBAG1C,CAAA;AACC,IAAA,WAAA,GAAA;AACE,QAAA,MAAM,IAAI,GAAG,MAAM,CAAC,UAAU,CAAC;AAC/B,QAAA,KAAK,CAAC,sBAAsB,EAAE,IAAI,CAAC;IACrC;AAEA;;;;AAIG;AACH,IAAA,QAAQ,CACN,OAAiB,EAAA;AAEjB,QAAA,MAAM,QAAQ,GAA0B,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,MAAM,EAAE,EAAE,EAAE,CAAC,CAAC;AACrE,QAAA,OAAO,IAAI,CAAC,IAAI,CAAC,IAAI,CACnB,CAAA,EAAG,IAAI,CAAC,OAAO,CAAA,UAAA,CAAY,EAC3B,QAAQ,CACT;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AY,EAAA,EAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAAE,YAAY,EAAA,QAAA,EAAA,eAAA,EAAA,MAAA,EAAA,CAAA,MAAA,EAAA,kBAAA,CAAA,EAAA,OAAA,EAAA,CAAA,UAAA,EAAA,YAAA,EAAA,QAAA,EAAA,QAAA,CAAA,EAAA,QAAA,EAAA,CAAA,QAAA,CAAA,EAAA,EAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAAE,UAAU,oOAAE,gBAAgB,EAAA,QAAA,EAAA,oBAAA,EAAA,MAAA,EAAA,CAAA,yBAAA,EAAA,uBAAA,EAAA,kBAAA,CAAA,EAAA,OAAA,EAAA,CAAA,gBAAA,CAAA,EAAA,QAAA,EAAA,CAAA,kBAAA,CAAA,EAAA,CAAA,EAAA,CAAA;;2FA4CvD,yBAAyB,EAAA,UAAA,EAAA,CAAA;kBA/CrC,SAAS;AACE,YAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,uBAAuB,EAAA,UAAA,EACrB,IAAI,EAAA,OAAA,EACP,CAAC,YAAY,EAAE,YAAY,EAAE,UAAU,EAAE,gBAAgB,CAAC,EAAA,QAAA,EACzD;;;;;;;;;;;;;;;;;;;;;;;AAuBT,EAAA,CAAA,EAAA,MAAA,EAAA,CAAA,wWAAA,CAAA,EAAA;;;;;;;;AC5CH;AACA;AACA;AAEA;;ACJA;;AAEG;;;;"}
|
|
1
|
+
{"version":3,"file":"flusys-ng-storage.mjs","sources":["../../../projects/ng-storage/enums/file-location.enum.ts","../../../projects/ng-storage/utils/storage-utils.ts","../../../projects/ng-storage/utils/base-storage-page.ts","../../../projects/ng-storage/services/file-manager-api.service.ts","../../../projects/ng-storage/services/upload.service.ts","../../../projects/ng-storage/adapters/profile-upload-provider.adapter.ts","../../../projects/ng-storage/providers/storage-providers.ts","../../../projects/ng-storage/services/folder-api.service.ts","../../../projects/ng-storage/services/storage-config-api.service.ts","../../../projects/ng-storage/routes/storage.routes.ts","../../../projects/ng-storage/pages/storage-container/storage-container.component.ts","../../../projects/ng-storage/public-api.ts","../../../projects/ng-storage/flusys-ng-storage.ts"],"sourcesContent":["/**\n * File Location Enum\n * Storage provider types (matches backend FileLocationEnum)\n */\nexport enum FileLocationEnum {\n LOCAL = 'local',\n AWS = 'aws',\n AZURE = 'azure',\n SFTP = 'sftp',\n}\n\n/**\n * Image Format Enum\n * Supported image output formats for compression\n */\nexport enum ImageFormat {\n ORIGINAL = 'original',\n JPEG = 'jpeg',\n PNG = 'png',\n WEBP = 'webp',\n}\n","import { FileLocationEnum } from '../enums/file-location.enum';\n\n/**\n * Storage Provider Configuration\n * Maps provider enum to display properties\n */\ninterface IProviderConfig {\n label: string;\n icon: string;\n severity: 'success' | 'info' | 'warn' | 'danger' | 'secondary' | 'contrast';\n}\n\n/**\n * Provider configurations for all storage types\n */\nconst PROVIDER_CONFIGS: Record<FileLocationEnum, IProviderConfig> = {\n [FileLocationEnum.LOCAL]: {\n label: 'Local',\n icon: 'pi pi-folder',\n severity: 'secondary',\n },\n [FileLocationEnum.AWS]: {\n label: 'AWS S3',\n icon: 'pi pi-cloud',\n severity: 'warn',\n },\n [FileLocationEnum.AZURE]: {\n label: 'Azure Blob',\n icon: 'pi pi-cloud',\n severity: 'info',\n },\n [FileLocationEnum.SFTP]: {\n label: 'SFTP',\n icon: 'pi pi-server',\n severity: 'contrast',\n },\n};\n\n/**\n * Get provider label for display\n */\nexport function getProviderLabel(storage: FileLocationEnum | string): string {\n const enumValue = storage as FileLocationEnum;\n return PROVIDER_CONFIGS[enumValue]?.label ?? storage;\n}\n\n/**\n * Get provider icon class\n */\nexport function getProviderIcon(storage: FileLocationEnum | string): string {\n const enumValue = storage as FileLocationEnum;\n return PROVIDER_CONFIGS[enumValue]?.icon ?? 'pi pi-database';\n}\n\n/**\n * Get provider severity for p-tag\n */\nexport function getProviderSeverity(\n storage: FileLocationEnum | string,\n): 'success' | 'info' | 'warn' | 'danger' | 'secondary' | 'contrast' {\n const enumValue = storage as FileLocationEnum;\n return PROVIDER_CONFIGS[enumValue]?.severity ?? 'secondary';\n}\n\n/**\n * Get file icon based on content type\n */\nexport function getFileIcon(contentType: string): string {\n if (contentType.startsWith('image/')) return 'pi pi-image';\n if (contentType.startsWith('video/')) return 'pi pi-video';\n if (contentType.startsWith('audio/')) return 'pi pi-volume-up';\n if (contentType.includes('pdf')) return 'pi pi-file-pdf';\n if (contentType.includes('word') || contentType.includes('document'))\n return 'pi pi-file-word';\n if (contentType.includes('excel') || contentType.includes('spreadsheet'))\n return 'pi pi-file-excel';\n return 'pi pi-file';\n}\n\n/**\n * Format file size from bytes to human readable string\n */\nexport function formatFileSize(bytes: number): string {\n if (bytes <= 0) return '0 Bytes';\n const k = 1024;\n const sizes = ['Bytes', 'KB', 'MB', 'GB'];\n const i = Math.min(Math.floor(Math.log(bytes) / Math.log(k)), sizes.length - 1);\n return Math.round((bytes / Math.pow(k, i)) * 100) / 100 + ' ' + sizes[i];\n}\n\n/**\n * Storage provider options for dropdown selects\n */\nexport const STORAGE_PROVIDERS = [\n { label: 'AWS S3', value: FileLocationEnum.AWS },\n { label: 'Azure Blob Storage', value: FileLocationEnum.AZURE },\n { label: 'SFTP', value: FileLocationEnum.SFTP },\n { label: 'Local Storage', value: FileLocationEnum.LOCAL },\n] as const;\n","import { computed, Directive, inject, signal } from '@angular/core';\nimport { Router } from '@angular/router';\nimport { APP_CONFIG, DEFAULT_APP_NAME } from '@flusys/ng-core';\nimport { LAYOUT_AUTH_STATE } from '@flusys/ng-layout';\nimport { BaseListPage } from '@flusys/ng-shared';\nimport { MessageService } from 'primeng/api';\n\n@Directive()\nexport abstract class BaseStoragePage {\n protected readonly router = inject(Router);\n protected readonly messageService = inject(MessageService);\n protected readonly appConfig = inject(APP_CONFIG);\n protected readonly companyContext = inject(LAYOUT_AUTH_STATE);\n\n readonly isLoading = signal(false);\n readonly showCompanyInfo = computed(() => this.appConfig.enableCompanyFeature);\n readonly currentCompanyName = computed(() => this.companyContext.currentCompanyInfo()?.name ?? DEFAULT_APP_NAME);\n\n protected showSuccess(detail: string, summary = 'Success'): void {\n this.messageService.add({ severity: 'success', summary, detail });\n }\n\n protected showError(detail: string, summary = 'Error'): void {\n this.messageService.add({ severity: 'error', summary, detail });\n }\n\n protected navigateTo(path: string[]): void {\n this.router.navigate(path);\n }\n}\n\n@Directive()\nexport abstract class BaseStorageListPage<T> extends BaseListPage<T> {\n protected readonly companyContext = inject(LAYOUT_AUTH_STATE);\n\n override readonly pageSize = signal(50);\n readonly totalRecords = this.total;\n readonly currentCompanyName = computed(() => this.companyContext.currentCompanyInfo()?.name ?? DEFAULT_APP_NAME);\n\n getDeleteConfirmMessage(item: T): string {\n const name = (item as { name?: string }).name ?? 'this item';\n return `Are you sure you want to delete \"${name}\"?`;\n }\n}\n","import { inject, Injectable } from '@angular/core';\nimport { HttpClient } from '@angular/common/http';\nimport { Observable, firstValueFrom } from 'rxjs';\nimport { ApiResourceService, ISingleResponse } from '@flusys/ng-shared';\nimport { ICreateFileManagerDto, IFileManager, IFilesResponseDto, IGetFilesRequestDto, IUpdateFileManagerDto } from '../interfaces/file-manager.interface';\n\n@Injectable({ providedIn: 'root' })\nexport class FileManagerApiService extends ApiResourceService<IUpdateFileManagerDto, IFileManager> {\n constructor() {\n super('storage/file-manager', inject(HttpClient));\n }\n\n getFiles(fileIds: string[]): Observable<ISingleResponse<IFilesResponseDto[]>> {\n const requests: IGetFilesRequestDto[] = fileIds.map((id) => ({ id }));\n return this.http.post<ISingleResponse<IFilesResponseDto[]>>(`${this.baseUrl}/get-files`, requests);\n }\n\n createFile(dto: ICreateFileManagerDto): Observable<ISingleResponse<IFileManager>> {\n return this.http.post<ISingleResponse<IFileManager>>(`${this.baseUrl}/insert`, dto);\n }\n\n async createFileAsync(dto: ICreateFileManagerDto): Promise<ISingleResponse<IFileManager>> {\n return firstValueFrom(this.createFile(dto));\n }\n}\n","import { inject, Injectable } from '@angular/core';\nimport { Observable, switchMap } from 'rxjs';\nimport { BaseApiService, getDefaultStorageConfigId } from '@flusys/ng-core';\nimport { ISingleResponse } from '@flusys/ng-shared';\nimport { IUploadOptionsDto, IUploadedFileInfo } from '../interfaces/upload.interface';\nimport { FileManagerApiService } from './file-manager-api.service';\nimport { IFileManager } from '../interfaces/file-manager.interface';\n\n/**\n * Upload Service - File upload/delete operations\n * Endpoint: POST /storage/upload/*\n */\n@Injectable({ providedIn: 'root' })\nexport class UploadService extends BaseApiService {\n private readonly fileManagerApi = inject(FileManagerApiService);\n\n constructor() {\n super('storage');\n }\n\n /** Get default storage config ID from app config */\n getDefaultConfigId(): string | undefined {\n return getDefaultStorageConfigId(this.appConfig);\n }\n\n /** Upload single file - POST /storage/upload/single-file */\n uploadSingleFile(file: File, options?: IUploadOptionsDto): Observable<ISingleResponse<IUploadedFileInfo>> {\n const formData = new FormData();\n formData.append('file', file);\n return this.http.post<ISingleResponse<IUploadedFileInfo>>(this.buildUploadUrl('single-file', options), formData);\n }\n\n /** Upload multiple files (max 50) - POST /storage/upload/multiple-file */\n uploadMultipleFiles(files: File[], options?: IUploadOptionsDto): Observable<ISingleResponse<IUploadedFileInfo[]>> {\n const formData = new FormData();\n files.forEach((file) => formData.append('files', file));\n return this.http.post<ISingleResponse<IUploadedFileInfo[]>>(this.buildUploadUrl('multiple-file', options), formData);\n }\n\n /** Delete single file - POST /storage/upload/delete-single-file */\n deleteSingleFile(key: string, storageConfigId?: string): Observable<ISingleResponse<void>> {\n return this.http.post<ISingleResponse<void>>(\n this.getUrl('upload/delete-single-file'),\n this.buildDeleteBody({ key }, storageConfigId),\n );\n }\n\n /** Delete multiple files - POST /storage/upload/delete-multiple-file */\n deleteMultipleFiles(keys: string[], storageConfigId?: string): Observable<ISingleResponse<void>> {\n return this.http.post<ISingleResponse<void>>(\n this.getUrl('upload/delete-multiple-file'),\n this.buildDeleteBody({ keys }, storageConfigId),\n );\n }\n\n /** Get file download URL - GET /storage/upload/file/:filePath */\n getFileUrl(key: string): string {\n return this.getUrl(`upload/file/${key}`);\n }\n\n /** Upload file and register in file manager - returns file manager ID (UUID) */\n uploadAndRegister(\n file: File,\n options?: IUploadOptionsDto & { isPrivate?: boolean; folderId?: string },\n ): Observable<ISingleResponse<IFileManager>> {\n return this.uploadSingleFile(file, options).pipe(\n switchMap((response) => {\n if (!response.success || !response.data) {\n throw new Error(response.message || 'Upload failed');\n }\n return this.fileManagerApi.createFile({\n name: response.data.name,\n key: response.data.key,\n size: String(response.data.size),\n contentType: response.data.contentType,\n isPrivate: options?.isPrivate ?? false,\n folderId: options?.folderId,\n storageConfigId: this.resolveConfigId(options?.storageConfigId),\n });\n }),\n );\n }\n\n // ─── Private Helpers ───────────────────────────────────────────────────────\n\n private resolveConfigId(storageConfigId?: string): string | undefined {\n return storageConfigId ?? this.getDefaultConfigId();\n }\n\n private buildUploadUrl(endpoint: string, options?: IUploadOptionsDto): string {\n const params = this.buildQueryParams(options);\n const baseUrl = this.getUrl(`upload/${endpoint}`);\n return params ? `${baseUrl}?${params}` : baseUrl;\n }\n\n private buildQueryParams(options?: IUploadOptionsDto): string {\n const params = new URLSearchParams();\n const configId = this.resolveConfigId(options?.storageConfigId);\n\n if (configId) params.append('storageConfigId', configId);\n if (options?.folderPath) params.append('folderPath', options.folderPath);\n if (options?.maxWidth) params.append('maxWidth', options.maxWidth.toString());\n if (options?.maxHeight) params.append('maxHeight', options.maxHeight.toString());\n if (options?.quality) params.append('quality', options.quality.toString());\n if (options?.format) params.append('format', options.format);\n if (options?.compress !== undefined) params.append('compress', options.compress.toString());\n\n return params.toString();\n }\n\n private buildDeleteBody(data: { key?: string; keys?: string[] }, storageConfigId?: string): Record<string, unknown> {\n const configId = this.resolveConfigId(storageConfigId);\n return { ...data, ...(configId && { storageConfigId: configId }) };\n }\n}\n","import { inject, Injectable } from '@angular/core';\nimport { Observable } from 'rxjs';\nimport { map } from 'rxjs/operators';\nimport {\n IProfileUploadProvider,\n IProfileUploadOptions,\n IProfileUploadResult,\n ISingleResponse,\n} from '@flusys/ng-shared';\nimport { UploadService } from '../services/upload.service';\n\n/**\n * Profile Upload Provider Adapter\n *\n * Implements IProfileUploadProvider interface for ng-auth profile page.\n * Uses UploadService.uploadAndRegister() to upload files and register in file manager.\n *\n * @example\n * // In app.config.ts\n * providers: [\n * ...provideStorageProviders(),\n * ]\n */\n@Injectable()\nexport class ProfileUploadProviderAdapter implements IProfileUploadProvider {\n private readonly uploadService = inject(UploadService);\n\n /**\n * Upload profile picture and register in file manager\n * Returns file manager ID (UUID) for storing in user.profilePictureId\n */\n uploadProfilePicture(\n file: File,\n options?: IProfileUploadOptions\n ): Observable<ISingleResponse<IProfileUploadResult>> {\n return this.uploadService\n .uploadAndRegister(file, {\n folderPath: options?.folderPath ?? 'profile-pictures',\n compress: options?.compress ?? true,\n maxWidth: options?.maxWidth ?? 400,\n maxHeight: options?.maxHeight ?? 400,\n })\n .pipe(\n map((response) => ({\n success: response.success,\n message: response.message,\n data: response.data\n ? {\n id: response.data.id,\n name: response.data.name,\n key: response.data.key,\n size: parseFloat(response.data.size) * 1024, // Convert KB to bytes\n contentType: response.data.contentType,\n }\n : undefined,\n }))\n );\n }\n}\n","import { Provider } from '@angular/core';\nimport { PROFILE_UPLOAD_PROVIDER } from '@flusys/ng-shared';\nimport { ProfileUploadProviderAdapter } from '../adapters/profile-upload-provider.adapter';\n\n/**\n * Provide Storage Providers\n *\n * Registers storage-related provider implementations.\n * Call this in app.config.ts to enable storage features in other packages.\n *\n * @example\n * // In app.config.ts\n * export const appConfig: ApplicationConfig = {\n * providers: [\n * ...provideStorageProviders(),\n * ],\n * };\n *\n * @returns Array of providers for storage functionality\n */\nexport function provideStorageProviders(): Provider[] {\n return [\n {\n provide: PROFILE_UPLOAD_PROVIDER,\n useClass: ProfileUploadProviderAdapter,\n },\n ];\n}\n","import { inject, Injectable } from '@angular/core';\nimport { HttpClient } from '@angular/common/http';\nimport { ApiResourceService } from '@flusys/ng-shared';\nimport { ICreateFolderDto, IFolder, IUpdateFolderDto } from '../interfaces/folder.interface';\n\n/**\n * Folder API Service\n * Handles folder CRUD operations\n * Endpoint: POST /storage/folder/*\n *\n * Note: Company feature enabled - all queries automatically scoped to user's company\n */\n@Injectable({\n providedIn: 'root',\n})\nexport class FolderApiService extends ApiResourceService<ICreateFolderDto | IUpdateFolderDto, IFolder> {\n constructor() {\n const http = inject(HttpClient);\n super('storage/folder', http);\n }\n}\n","import { inject, Injectable } from '@angular/core';\nimport { HttpClient } from '@angular/common/http';\nimport { ApiResourceService } from '@flusys/ng-shared';\nimport { ICreateStorageConfigDto, IStorageConfig, IUpdateStorageConfigDto } from '../interfaces/storage-config.interface';\n\n/**\n * Storage Config API Service\n * Handles storage configuration CRUD operations\n * Endpoint: POST /storage/storage-config/*\n *\n * Note: Company feature enabled - all queries automatically scoped to user's company\n */\n@Injectable({\n providedIn: 'root',\n})\nexport class StorageConfigApiService extends ApiResourceService<\n ICreateStorageConfigDto | IUpdateStorageConfigDto,\n IStorageConfig\n> {\n constructor() {\n const http = inject(HttpClient);\n super('storage/storage-config', http);\n }\n}\n","import { Routes } from '@angular/router';\nimport {\n FILE_PERMISSIONS,\n FOLDER_PERMISSIONS,\n permissionGuard,\n STORAGE_CONFIG_PERMISSIONS,\n} from '@flusys/ng-shared';\n\n/**\n * Storage Module Routes\n * All routes protected by permission guards\n */\nexport const STORAGE_ROUTES: Routes = [\n {\n path: '',\n loadComponent: () =>\n import('../pages/storage-container/storage-container.component').then(\n (m) => m.StorageContainerComponent,\n ),\n children: [\n // File Manager Routes\n {\n path: 'files',\n canActivate: [permissionGuard(FILE_PERMISSIONS.READ)],\n children: [\n {\n path: '',\n loadComponent: () =>\n import('../pages/file-manager/file-manager-list.component').then(\n (m) => m.FileManagerListComponent,\n ),\n },\n {\n path: 'new',\n canActivate: [permissionGuard(FILE_PERMISSIONS.CREATE)],\n loadComponent: () =>\n import('../pages/file-manager/file-manager-form.component').then(\n (m) => m.FileManagerFormComponent,\n ),\n },\n {\n path: ':id',\n canActivate: [permissionGuard(FILE_PERMISSIONS.UPDATE)],\n loadComponent: () =>\n import('../pages/file-manager/file-manager-form.component').then(\n (m) => m.FileManagerFormComponent,\n ),\n },\n ],\n },\n\n // Folder Routes\n {\n path: 'folders',\n canActivate: [permissionGuard(FOLDER_PERMISSIONS.READ)],\n children: [\n {\n path: '',\n loadComponent: () =>\n import('../pages/folder/folder-list.component').then(\n (m) => m.FolderListComponent,\n ),\n },\n {\n path: 'new',\n canActivate: [permissionGuard(FOLDER_PERMISSIONS.CREATE)],\n loadComponent: () =>\n import('../pages/folder/folder-form.component').then(\n (m) => m.FolderFormComponent,\n ),\n },\n {\n path: ':id',\n canActivate: [permissionGuard(FOLDER_PERMISSIONS.UPDATE)],\n loadComponent: () =>\n import('../pages/folder/folder-form.component').then(\n (m) => m.FolderFormComponent,\n ),\n },\n ],\n },\n\n // Storage Config Routes\n {\n path: 'configs',\n canActivate: [permissionGuard(STORAGE_CONFIG_PERMISSIONS.READ)],\n children: [\n {\n path: '',\n loadComponent: () =>\n import('../pages/storage-config/storage-config-list.component').then(\n (m) => m.StorageConfigListComponent,\n ),\n },\n {\n path: 'new',\n canActivate: [permissionGuard(STORAGE_CONFIG_PERMISSIONS.CREATE)],\n loadComponent: () =>\n import('../pages/storage-config/storage-config-form.component').then(\n (m) => m.StorageConfigFormComponent,\n ),\n },\n {\n path: ':id',\n canActivate: [permissionGuard(STORAGE_CONFIG_PERMISSIONS.UPDATE)],\n loadComponent: () =>\n import('../pages/storage-config/storage-config-form.component').then(\n (m) => m.StorageConfigFormComponent,\n ),\n },\n ],\n },\n\n // Default redirect\n { path: '', redirectTo: 'files', pathMatch: 'full' },\n ],\n },\n];\n","import { ChangeDetectionStrategy, Component, computed, inject } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { RouterLink, RouterLinkActive, RouterOutlet } from '@angular/router';\nimport {\n FILE_PERMISSIONS,\n FOLDER_PERMISSIONS,\n PermissionValidatorService,\n STORAGE_CONFIG_PERMISSIONS,\n} from '@flusys/ng-shared';\n\ninterface ITab {\n id: string;\n label: string;\n icon: string;\n route: string;\n permission: string;\n}\n\n/**\n * Storage Container Component\n *\n * Main container for Storage module with tab navigation\n * Routes: Files | Folders | Configurations\n * Tabs are filtered based on user permissions\n */\n@Component({\n selector: 'lib-storage-container',\n changeDetection: ChangeDetectionStrategy.OnPush,\n imports: [CommonModule, RouterOutlet, RouterLink, RouterLinkActive],\n styles: `\n .scrollbar-hide {\n -ms-overflow-style: none;\n scrollbar-width: none;\n &::-webkit-scrollbar { display: none; }\n }\n `,\n template: `\n <div class=\"p-2 sm:p-4\">\n <div class=\"mb-4\">\n <h1 class=\"text-xl sm:text-2xl font-bold m-0\">Storage</h1>\n <p class=\"text-muted-color mt-1 text-sm sm:text-base\">{{ subtitle() }}</p>\n </div>\n\n <div class=\"scrollbar-hide flex gap-1 mb-4 border-b border-surface overflow-x-auto flex-nowrap\">\n @for (tab of visibleTabs(); track tab.id) {\n <a\n [routerLink]=\"tab.route\"\n routerLinkActive=\"tab-active\"\n class=\"flex items-center gap-2 px-4 py-2 rounded-t-lg cursor-pointer transition-colors text-muted-color no-underline border-b-2 border-transparent -mb-px hover:bg-surface-hover [&.tab-active]:text-primary [&.tab-active]:border-primary [&.tab-active]:bg-surface-ground whitespace-nowrap shrink-0\"\n >\n <i [class]=\"tab.icon\"></i>\n <span>{{ tab.label }}</span>\n </a>\n }\n </div>\n\n <router-outlet />\n </div>\n `,\n})\nexport class StorageContainerComponent {\n private readonly permissionValidator = inject(PermissionValidatorService);\n\n /** All available tabs with required permissions */\n private readonly allTabs: ITab[] = [\n {\n id: 'files',\n label: 'Files',\n icon: 'pi pi-file',\n route: 'files',\n permission: FILE_PERMISSIONS.READ,\n },\n {\n id: 'folders',\n label: 'Folders',\n icon: 'pi pi-folder',\n route: 'folders',\n permission: FOLDER_PERMISSIONS.READ,\n },\n {\n id: 'configs',\n label: 'Configurations',\n icon: 'pi pi-cog',\n route: 'configs',\n permission: STORAGE_CONFIG_PERMISSIONS.READ,\n },\n ];\n\n /** Visible tabs based on user permissions */\n readonly visibleTabs = computed(() =>\n this.allTabs.filter((tab) => this.permissionValidator.hasPermission(tab.permission)),\n );\n\n /** Dynamic subtitle based on visible tabs */\n readonly subtitle = computed(() => {\n const tabs = this.visibleTabs();\n if (tabs.length === 0) return 'No permissions available';\n return `Manage ${tabs.map((t) => t.label.toLowerCase()).join(', ')}`;\n });\n}\n","// =============================================================================\n// @flusys/ng-storage - Storage Package\n// =============================================================================\n\n// Enums\nexport * from './enums/public-api';\n\n// Interfaces\nexport * from './interfaces/public-api';\n\n// Utils\nexport * from './utils/public-api';\n\n// Adapters\nexport { ProfileUploadProviderAdapter } from './adapters/profile-upload-provider.adapter';\n\n// Providers\nexport { provideStorageProviders } from './providers/storage-providers';\n\n// Services\nexport { FileManagerApiService } from './services/file-manager-api.service';\nexport { FolderApiService } from './services/folder-api.service';\nexport { StorageConfigApiService } from './services/storage-config-api.service';\nexport { UploadService } from './services/upload.service';\n\n// Routes\nexport { STORAGE_ROUTES } from './routes/storage.routes';\n\n// Components\nexport { StorageContainerComponent } from './pages/storage-container/storage-container.component';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;;;;;;AAAA;;;AAGG;IACS;AAAZ,CAAA,UAAY,gBAAgB,EAAA;AAC1B,IAAA,gBAAA,CAAA,OAAA,CAAA,GAAA,OAAe;AACf,IAAA,gBAAA,CAAA,KAAA,CAAA,GAAA,KAAW;AACX,IAAA,gBAAA,CAAA,OAAA,CAAA,GAAA,OAAe;AACf,IAAA,gBAAA,CAAA,MAAA,CAAA,GAAA,MAAa;AACf,CAAC,EALW,gBAAgB,KAAhB,gBAAgB,GAAA,EAAA,CAAA,CAAA;AAO5B;;;AAGG;IACS;AAAZ,CAAA,UAAY,WAAW,EAAA;AACrB,IAAA,WAAA,CAAA,UAAA,CAAA,GAAA,UAAqB;AACrB,IAAA,WAAA,CAAA,MAAA,CAAA,GAAA,MAAa;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AAA,QAAA,EAAA,CAAA,QAAA,CAAA,EAAA,EAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAAE,UAAU,oOAAE,gBAAgB,EAAA,QAAA,EAAA,oBAAA,EAAA,MAAA,EAAA,CAAA,yBAAA,EAAA,uBAAA,EAAA,kBAAA,CAAA,EAAA,OAAA,EAAA,CAAA,gBAAA,CAAA,EAAA,QAAA,EAAA,CAAA,kBAAA,CAAA,EAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA;;2FAgCvD,yBAAyB,EAAA,UAAA,EAAA,CAAA;kBAnCrC,SAAS;AACE,YAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,uBAAuB,EAAA,eAAA,EAChB,uBAAuB,CAAC,MAAM,WACtC,CAAC,YAAY,EAAE,YAAY,EAAE,UAAU,EAAE,gBAAgB,CAAC,EAAA,QAAA,EAQzD;;;;;;;;;;;;;;;;;;;;;;AAsBT,EAAA,CAAA,EAAA,MAAA,EAAA,CAAA,iHAAA,CAAA,EAAA;;;;;;;;AC1DH;AACA;AACA;AAEA;;ACJA;;AAEG;;;;"}
|
package/package.json
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@flusys/ng-storage",
|
|
3
|
-
"version": "1.0.0
|
|
3
|
+
"version": "1.0.0",
|
|
4
4
|
"description": "File storage module for FLUSYS Angular applications",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"peerDependencies": {
|
|
7
|
-
"@angular/common": "
|
|
8
|
-
"@angular/core": "
|
|
9
|
-
"@flusys/ng-core": "
|
|
10
|
-
"@flusys/ng-layout": "
|
|
11
|
-
"@flusys/ng-shared": "
|
|
12
|
-
"@primeuix/themes": "
|
|
13
|
-
"primeicons": "
|
|
14
|
-
"primeng": "
|
|
7
|
+
"@angular/common": ">=21.0.0",
|
|
8
|
+
"@angular/core": ">=21.0.0",
|
|
9
|
+
"@flusys/ng-core": ">=1.0.0",
|
|
10
|
+
"@flusys/ng-layout": ">=1.0.0",
|
|
11
|
+
"@flusys/ng-shared": ">=1.0.0",
|
|
12
|
+
"@primeuix/themes": ">=1.0.0",
|
|
13
|
+
"primeicons": ">=7.0.0",
|
|
14
|
+
"primeng": ">=21.0.0"
|
|
15
15
|
},
|
|
16
16
|
"dependencies": {
|
|
17
17
|
"tslib": "^2.3.0"
|
|
@@ -1,8 +1,12 @@
|
|
|
1
|
-
import { IBaseEntity,
|
|
2
|
-
import { Observable } from 'rxjs';
|
|
1
|
+
import { IBaseEntity, BaseListPage, IProfileUploadProvider, IProfileUploadOptions, ISingleResponse, IProfileUploadResult, ApiResourceService } from '@flusys/ng-shared';
|
|
3
2
|
import * as i0 from '@angular/core';
|
|
3
|
+
import { Provider } from '@angular/core';
|
|
4
|
+
import * as _flusys_ng_layout from '@flusys/ng-layout';
|
|
5
|
+
import * as _flusys_ng_core from '@flusys/ng-core';
|
|
4
6
|
import { BaseApiService } from '@flusys/ng-core';
|
|
5
|
-
import { Routes } from '@angular/router';
|
|
7
|
+
import { Router, Routes } from '@angular/router';
|
|
8
|
+
import { MessageService } from 'primeng/api';
|
|
9
|
+
import { Observable } from 'rxjs';
|
|
6
10
|
|
|
7
11
|
/**
|
|
8
12
|
* File Location Enum
|
|
@@ -28,10 +32,7 @@ declare enum ImageFormat {
|
|
|
28
32
|
/**
|
|
29
33
|
* File Manager Interface (matches backend IFileManager)
|
|
30
34
|
*/
|
|
31
|
-
interface IFileManager {
|
|
32
|
-
id: string;
|
|
33
|
-
createdAt: Date;
|
|
34
|
-
updatedAt: Date;
|
|
35
|
+
interface IFileManager extends IBaseEntity {
|
|
35
36
|
name: string;
|
|
36
37
|
contentType: string;
|
|
37
38
|
size: string;
|
|
@@ -83,63 +84,36 @@ interface IFilesResponseDto {
|
|
|
83
84
|
url: string;
|
|
84
85
|
}
|
|
85
86
|
|
|
86
|
-
/**
|
|
87
|
-
* Folder Interface
|
|
88
|
-
* Matches backend IFolder and FolderResponseDto
|
|
89
|
-
*/
|
|
90
87
|
interface IFolder extends IBaseEntity {
|
|
91
88
|
name: string;
|
|
92
89
|
slug: string;
|
|
93
90
|
companyId?: string | null;
|
|
94
91
|
}
|
|
95
|
-
/**
|
|
96
|
-
* Create Folder DTO
|
|
97
|
-
* POST /storage/folder/insert
|
|
98
|
-
*/
|
|
99
92
|
interface ICreateFolderDto {
|
|
100
93
|
name: string;
|
|
101
94
|
}
|
|
102
|
-
|
|
103
|
-
* Update Folder DTO
|
|
104
|
-
* POST /storage/folder/update
|
|
105
|
-
*/
|
|
106
|
-
interface IUpdateFolderDto {
|
|
95
|
+
interface IUpdateFolderDto extends Partial<ICreateFolderDto> {
|
|
107
96
|
id: string;
|
|
108
|
-
name?: string;
|
|
109
97
|
}
|
|
110
98
|
|
|
111
|
-
/**
|
|
112
|
-
* Storage Config Interface
|
|
113
|
-
* Matches backend IStorageConfig and StorageConfigResponseDto
|
|
114
|
-
*/
|
|
115
99
|
interface IStorageConfig extends IBaseEntity {
|
|
116
100
|
name: string;
|
|
117
101
|
storage: FileLocationEnum;
|
|
118
|
-
config: Record<string,
|
|
102
|
+
config: Record<string, unknown>;
|
|
103
|
+
isActive: boolean;
|
|
104
|
+
isDefault: boolean;
|
|
119
105
|
companyId?: string | null;
|
|
120
106
|
}
|
|
121
|
-
/**
|
|
122
|
-
* Create Storage Config DTO
|
|
123
|
-
* POST /storage/storage-config/insert
|
|
124
|
-
*/
|
|
125
107
|
interface ICreateStorageConfigDto {
|
|
126
108
|
name: string;
|
|
127
109
|
storage: FileLocationEnum;
|
|
128
|
-
config: Record<string,
|
|
110
|
+
config: Record<string, unknown>;
|
|
111
|
+
isActive?: boolean;
|
|
112
|
+
isDefault?: boolean;
|
|
129
113
|
}
|
|
130
|
-
|
|
131
|
-
* Update Storage Config DTO
|
|
132
|
-
* POST /storage/storage-config/update
|
|
133
|
-
*/
|
|
134
|
-
interface IUpdateStorageConfigDto {
|
|
114
|
+
interface IUpdateStorageConfigDto extends Partial<ICreateStorageConfigDto> {
|
|
135
115
|
id: string;
|
|
136
|
-
name?: string;
|
|
137
|
-
storage?: FileLocationEnum;
|
|
138
|
-
config?: Record<string, any>;
|
|
139
116
|
}
|
|
140
|
-
/**
|
|
141
|
-
* AWS S3 Configuration
|
|
142
|
-
*/
|
|
143
117
|
interface IAwsS3Config {
|
|
144
118
|
region: string;
|
|
145
119
|
bucket: string;
|
|
@@ -147,17 +121,11 @@ interface IAwsS3Config {
|
|
|
147
121
|
secretAccessKey: string;
|
|
148
122
|
endpoint?: string;
|
|
149
123
|
}
|
|
150
|
-
/**
|
|
151
|
-
* Azure Blob Storage Configuration
|
|
152
|
-
*/
|
|
153
124
|
interface IAzureBlobConfig {
|
|
154
125
|
accountName: string;
|
|
155
126
|
accountKey: string;
|
|
156
127
|
containerName: string;
|
|
157
128
|
}
|
|
158
|
-
/**
|
|
159
|
-
* SFTP Configuration
|
|
160
|
-
*/
|
|
161
129
|
interface ISftpConfig {
|
|
162
130
|
host: string;
|
|
163
131
|
port: number;
|
|
@@ -166,9 +134,6 @@ interface ISftpConfig {
|
|
|
166
134
|
privateKey?: string;
|
|
167
135
|
basePath: string;
|
|
168
136
|
}
|
|
169
|
-
/**
|
|
170
|
-
* Local Storage Configuration
|
|
171
|
-
*/
|
|
172
137
|
interface ILocalStorageConfig {
|
|
173
138
|
basePath: string;
|
|
174
139
|
}
|
|
@@ -193,35 +158,117 @@ interface IUploadedFileInfo {
|
|
|
193
158
|
key: string;
|
|
194
159
|
size: number;
|
|
195
160
|
contentType: string;
|
|
161
|
+
location?: string;
|
|
162
|
+
storageConfigId?: string;
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
/**
|
|
166
|
+
* Get provider label for display
|
|
167
|
+
*/
|
|
168
|
+
declare function getProviderLabel(storage: FileLocationEnum | string): string;
|
|
169
|
+
/**
|
|
170
|
+
* Get provider icon class
|
|
171
|
+
*/
|
|
172
|
+
declare function getProviderIcon(storage: FileLocationEnum | string): string;
|
|
173
|
+
/**
|
|
174
|
+
* Get provider severity for p-tag
|
|
175
|
+
*/
|
|
176
|
+
declare function getProviderSeverity(storage: FileLocationEnum | string): 'success' | 'info' | 'warn' | 'danger' | 'secondary' | 'contrast';
|
|
177
|
+
/**
|
|
178
|
+
* Get file icon based on content type
|
|
179
|
+
*/
|
|
180
|
+
declare function getFileIcon(contentType: string): string;
|
|
181
|
+
/**
|
|
182
|
+
* Format file size from bytes to human readable string
|
|
183
|
+
*/
|
|
184
|
+
declare function formatFileSize(bytes: number): string;
|
|
185
|
+
/**
|
|
186
|
+
* Storage provider options for dropdown selects
|
|
187
|
+
*/
|
|
188
|
+
declare const STORAGE_PROVIDERS: readonly [{
|
|
189
|
+
readonly label: "AWS S3";
|
|
190
|
+
readonly value: FileLocationEnum.AWS;
|
|
191
|
+
}, {
|
|
192
|
+
readonly label: "Azure Blob Storage";
|
|
193
|
+
readonly value: FileLocationEnum.AZURE;
|
|
194
|
+
}, {
|
|
195
|
+
readonly label: "SFTP";
|
|
196
|
+
readonly value: FileLocationEnum.SFTP;
|
|
197
|
+
}, {
|
|
198
|
+
readonly label: "Local Storage";
|
|
199
|
+
readonly value: FileLocationEnum.LOCAL;
|
|
200
|
+
}];
|
|
201
|
+
|
|
202
|
+
declare abstract class BaseStoragePage {
|
|
203
|
+
protected readonly router: Router;
|
|
204
|
+
protected readonly messageService: MessageService;
|
|
205
|
+
protected readonly appConfig: _flusys_ng_core.IAppConfig;
|
|
206
|
+
protected readonly companyContext: _flusys_ng_layout.ILayoutAuthState;
|
|
207
|
+
readonly isLoading: i0.WritableSignal<boolean>;
|
|
208
|
+
readonly showCompanyInfo: i0.Signal<boolean>;
|
|
209
|
+
readonly currentCompanyName: i0.Signal<string>;
|
|
210
|
+
protected showSuccess(detail: string, summary?: string): void;
|
|
211
|
+
protected showError(detail: string, summary?: string): void;
|
|
212
|
+
protected navigateTo(path: string[]): void;
|
|
213
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<BaseStoragePage, never>;
|
|
214
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<BaseStoragePage, never, never, {}, {}, never, never, true, never>;
|
|
215
|
+
}
|
|
216
|
+
declare abstract class BaseStorageListPage<T> extends BaseListPage<T> {
|
|
217
|
+
protected readonly companyContext: _flusys_ng_layout.ILayoutAuthState;
|
|
218
|
+
readonly pageSize: i0.WritableSignal<number>;
|
|
219
|
+
readonly totalRecords: i0.WritableSignal<number>;
|
|
220
|
+
readonly currentCompanyName: i0.Signal<string>;
|
|
221
|
+
getDeleteConfirmMessage(item: T): string;
|
|
222
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<BaseStorageListPage<any>, never>;
|
|
223
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<BaseStorageListPage<any>, never, never, {}, {}, never, never, true, never>;
|
|
196
224
|
}
|
|
197
225
|
|
|
198
226
|
/**
|
|
199
|
-
*
|
|
200
|
-
* Handles file metadata CRUD operations
|
|
201
|
-
* Endpoint: POST /storage/file-manager/*
|
|
227
|
+
* Profile Upload Provider Adapter
|
|
202
228
|
*
|
|
203
|
-
*
|
|
229
|
+
* Implements IProfileUploadProvider interface for ng-auth profile page.
|
|
230
|
+
* Uses UploadService.uploadAndRegister() to upload files and register in file manager.
|
|
231
|
+
*
|
|
232
|
+
* @example
|
|
233
|
+
* // In app.config.ts
|
|
234
|
+
* providers: [
|
|
235
|
+
* ...provideStorageProviders(),
|
|
236
|
+
* ]
|
|
204
237
|
*/
|
|
205
|
-
declare class
|
|
206
|
-
|
|
238
|
+
declare class ProfileUploadProviderAdapter implements IProfileUploadProvider {
|
|
239
|
+
private readonly uploadService;
|
|
207
240
|
/**
|
|
208
|
-
*
|
|
209
|
-
*
|
|
210
|
-
* Regenerates presigned URLs if expired
|
|
241
|
+
* Upload profile picture and register in file manager
|
|
242
|
+
* Returns file manager ID (UUID) for storing in user.profilePictureId
|
|
211
243
|
*/
|
|
244
|
+
uploadProfilePicture(file: File, options?: IProfileUploadOptions): Observable<ISingleResponse<IProfileUploadResult>>;
|
|
245
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ProfileUploadProviderAdapter, never>;
|
|
246
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<ProfileUploadProviderAdapter>;
|
|
247
|
+
}
|
|
248
|
+
|
|
249
|
+
/**
|
|
250
|
+
* Provide Storage Providers
|
|
251
|
+
*
|
|
252
|
+
* Registers storage-related provider implementations.
|
|
253
|
+
* Call this in app.config.ts to enable storage features in other packages.
|
|
254
|
+
*
|
|
255
|
+
* @example
|
|
256
|
+
* // In app.config.ts
|
|
257
|
+
* export const appConfig: ApplicationConfig = {
|
|
258
|
+
* providers: [
|
|
259
|
+
* ...provideStorageProviders(),
|
|
260
|
+
* ],
|
|
261
|
+
* };
|
|
262
|
+
*
|
|
263
|
+
* @returns Array of providers for storage functionality
|
|
264
|
+
*/
|
|
265
|
+
declare function provideStorageProviders(): Provider[];
|
|
266
|
+
|
|
267
|
+
declare class FileManagerApiService extends ApiResourceService<IUpdateFileManagerDto, IFileManager> {
|
|
268
|
+
constructor();
|
|
212
269
|
getFiles(fileIds: string[]): Observable<ISingleResponse<IFilesResponseDto[]>>;
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
* POST /storage/file-manager/get-all
|
|
216
|
-
* Filtered by folder ID and company (if enabled)
|
|
217
|
-
*/
|
|
218
|
-
getFilesByFolder(folderId: number | null, page?: number, limit?: number): Observable<IListResponse<IFileManager>>;
|
|
219
|
-
/**
|
|
220
|
-
* Get private files (requires permission)
|
|
221
|
-
* POST /storage/file-manager/get-all
|
|
222
|
-
* Filtered by isPrivate and user permission 'storage.file.viewPrivate'
|
|
223
|
-
*/
|
|
224
|
-
getPrivateFiles(page?: number, limit?: number): Observable<IListResponse<IFileManager>>;
|
|
270
|
+
createFile(dto: ICreateFileManagerDto): Observable<ISingleResponse<IFileManager>>;
|
|
271
|
+
createFileAsync(dto: ICreateFileManagerDto): Promise<ISingleResponse<IFileManager>>;
|
|
225
272
|
static ɵfac: i0.ɵɵFactoryDeclaration<FileManagerApiService, never>;
|
|
226
273
|
static ɵprov: i0.ɵɵInjectableDeclaration<FileManagerApiService>;
|
|
227
274
|
}
|
|
@@ -233,7 +280,7 @@ declare class FileManagerApiService extends ApiResourceService<IUpdateFileManage
|
|
|
233
280
|
*
|
|
234
281
|
* Note: Company feature enabled - all queries automatically scoped to user's company
|
|
235
282
|
*/
|
|
236
|
-
declare class FolderApiService extends ApiResourceService<IUpdateFolderDto, IFolder> {
|
|
283
|
+
declare class FolderApiService extends ApiResourceService<ICreateFolderDto | IUpdateFolderDto, IFolder> {
|
|
237
284
|
constructor();
|
|
238
285
|
static ɵfac: i0.ɵɵFactoryDeclaration<FolderApiService, never>;
|
|
239
286
|
static ɵprov: i0.ɵɵInjectableDeclaration<FolderApiService>;
|
|
@@ -246,78 +293,47 @@ declare class FolderApiService extends ApiResourceService<IUpdateFolderDto, IFol
|
|
|
246
293
|
*
|
|
247
294
|
* Note: Company feature enabled - all queries automatically scoped to user's company
|
|
248
295
|
*/
|
|
249
|
-
declare class StorageConfigApiService extends ApiResourceService<IUpdateStorageConfigDto, IStorageConfig> {
|
|
296
|
+
declare class StorageConfigApiService extends ApiResourceService<ICreateStorageConfigDto | IUpdateStorageConfigDto, IStorageConfig> {
|
|
250
297
|
constructor();
|
|
251
298
|
static ɵfac: i0.ɵɵFactoryDeclaration<StorageConfigApiService, never>;
|
|
252
299
|
static ɵprov: i0.ɵɵInjectableDeclaration<StorageConfigApiService>;
|
|
253
300
|
}
|
|
254
301
|
|
|
255
302
|
/**
|
|
256
|
-
* Upload Service
|
|
257
|
-
* Handles file upload/delete operations
|
|
303
|
+
* Upload Service - File upload/delete operations
|
|
258
304
|
* Endpoint: POST /storage/upload/*
|
|
259
|
-
*
|
|
260
|
-
* Features:
|
|
261
|
-
* - Company-scoped uploads (if company feature enabled)
|
|
262
|
-
* - Image compression
|
|
263
|
-
* - Multiple storage providers
|
|
264
|
-
* - File validation (size, type)
|
|
265
305
|
*/
|
|
266
306
|
declare class UploadService extends BaseApiService {
|
|
307
|
+
private readonly fileManagerApi;
|
|
267
308
|
constructor();
|
|
268
|
-
/**
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
*
|
|
272
|
-
* @param file - File to upload
|
|
273
|
-
* @param options - Upload options (storage config, compression, etc.)
|
|
274
|
-
*/
|
|
309
|
+
/** Get default storage config ID from app config */
|
|
310
|
+
getDefaultConfigId(): string | undefined;
|
|
311
|
+
/** Upload single file - POST /storage/upload/single-file */
|
|
275
312
|
uploadSingleFile(file: File, options?: IUploadOptionsDto): Observable<ISingleResponse<IUploadedFileInfo>>;
|
|
276
|
-
/**
|
|
277
|
-
* Upload multiple files (max 50)
|
|
278
|
-
* POST /storage/upload/multiple-file?storageConfigId=x&folderPath=y
|
|
279
|
-
*
|
|
280
|
-
* @param files - Array of files to upload
|
|
281
|
-
* @param options - Upload options
|
|
282
|
-
*/
|
|
313
|
+
/** Upload multiple files (max 50) - POST /storage/upload/multiple-file */
|
|
283
314
|
uploadMultipleFiles(files: File[], options?: IUploadOptionsDto): Observable<ISingleResponse<IUploadedFileInfo[]>>;
|
|
284
|
-
/**
|
|
285
|
-
* Build query string from upload options
|
|
286
|
-
*/
|
|
287
|
-
private buildQueryParams;
|
|
288
|
-
/**
|
|
289
|
-
* Delete single file
|
|
290
|
-
* POST /storage/upload/delete-single-file
|
|
291
|
-
*
|
|
292
|
-
* @param key - File key/path to delete
|
|
293
|
-
* @param storageConfigId - Optional storage config ID (uses default if not provided)
|
|
294
|
-
*/
|
|
315
|
+
/** Delete single file - POST /storage/upload/delete-single-file */
|
|
295
316
|
deleteSingleFile(key: string, storageConfigId?: string): Observable<ISingleResponse<void>>;
|
|
296
|
-
/**
|
|
297
|
-
* Delete multiple files
|
|
298
|
-
* POST /storage/upload/delete-multiple-file
|
|
299
|
-
*
|
|
300
|
-
* @param keys - Array of file keys/paths to delete
|
|
301
|
-
* @param storageConfigId - Optional storage config ID (uses default if not provided)
|
|
302
|
-
*/
|
|
317
|
+
/** Delete multiple files - POST /storage/upload/delete-multiple-file */
|
|
303
318
|
deleteMultipleFiles(keys: string[], storageConfigId?: string): Observable<ISingleResponse<void>>;
|
|
304
|
-
/**
|
|
305
|
-
* Get file download URL
|
|
306
|
-
* GET /storage/upload/file/:filePath
|
|
307
|
-
*
|
|
308
|
-
* @param key - File key/path
|
|
309
|
-
* @returns URL for direct file access
|
|
310
|
-
*/
|
|
319
|
+
/** Get file download URL - GET /storage/upload/file/:filePath */
|
|
311
320
|
getFileUrl(key: string): string;
|
|
321
|
+
/** Upload file and register in file manager - returns file manager ID (UUID) */
|
|
322
|
+
uploadAndRegister(file: File, options?: IUploadOptionsDto & {
|
|
323
|
+
isPrivate?: boolean;
|
|
324
|
+
folderId?: string;
|
|
325
|
+
}): Observable<ISingleResponse<IFileManager>>;
|
|
326
|
+
private resolveConfigId;
|
|
327
|
+
private buildUploadUrl;
|
|
328
|
+
private buildQueryParams;
|
|
329
|
+
private buildDeleteBody;
|
|
312
330
|
static ɵfac: i0.ɵɵFactoryDeclaration<UploadService, never>;
|
|
313
331
|
static ɵprov: i0.ɵɵInjectableDeclaration<UploadService>;
|
|
314
332
|
}
|
|
315
333
|
|
|
316
334
|
/**
|
|
317
335
|
* Storage Module Routes
|
|
318
|
-
* All
|
|
319
|
-
*
|
|
320
|
-
* All routes are protected by permission guards to prevent direct URL access.
|
|
336
|
+
* All routes protected by permission guards
|
|
321
337
|
*/
|
|
322
338
|
declare const STORAGE_ROUTES: Routes;
|
|
323
339
|
|
|
@@ -326,19 +342,26 @@ interface ITab {
|
|
|
326
342
|
label: string;
|
|
327
343
|
icon: string;
|
|
328
344
|
route: string;
|
|
345
|
+
permission: string;
|
|
329
346
|
}
|
|
330
347
|
/**
|
|
331
348
|
* Storage Container Component
|
|
332
349
|
*
|
|
333
350
|
* Main container for Storage module with tab navigation
|
|
334
351
|
* Routes: Files | Folders | Configurations
|
|
352
|
+
* Tabs are filtered based on user permissions
|
|
335
353
|
*/
|
|
336
354
|
declare class StorageContainerComponent {
|
|
337
|
-
|
|
338
|
-
|
|
355
|
+
private readonly permissionValidator;
|
|
356
|
+
/** All available tabs with required permissions */
|
|
357
|
+
private readonly allTabs;
|
|
358
|
+
/** Visible tabs based on user permissions */
|
|
359
|
+
readonly visibleTabs: i0.Signal<ITab[]>;
|
|
360
|
+
/** Dynamic subtitle based on visible tabs */
|
|
361
|
+
readonly subtitle: i0.Signal<string>;
|
|
339
362
|
static ɵfac: i0.ɵɵFactoryDeclaration<StorageContainerComponent, never>;
|
|
340
363
|
static ɵcmp: i0.ɵɵComponentDeclaration<StorageContainerComponent, "lib-storage-container", never, {}, {}, never, never, true, never>;
|
|
341
364
|
}
|
|
342
365
|
|
|
343
|
-
export { FileLocationEnum, FileManagerApiService, FolderApiService, ImageFormat, STORAGE_ROUTES, StorageConfigApiService, StorageContainerComponent, UploadService };
|
|
366
|
+
export { BaseStorageListPage, BaseStoragePage, FileLocationEnum, FileManagerApiService, FolderApiService, ImageFormat, ProfileUploadProviderAdapter, STORAGE_PROVIDERS, STORAGE_ROUTES, StorageConfigApiService, StorageContainerComponent, UploadService, formatFileSize, getFileIcon, getProviderIcon, getProviderLabel, getProviderSeverity, provideStorageProviders };
|
|
344
367
|
export type { IAwsS3Config, IAzureBlobConfig, ICreateFileManagerDto, ICreateFolderDto, ICreateStorageConfigDto, IFileManager, IFilesResponseDto, IFolder, IGetFilesRequestDto, ILocalStorageConfig, ISftpConfig, IStorageConfig, IUpdateFileManagerDto, IUpdateFolderDto, IUpdateStorageConfigDto, IUploadOptionsDto, IUploadedFileInfo };
|