[PASO 2.12] Add files module (EXTENDED) — core@0.13.0#36
Merged
Conversation
Define foundational types for the Files module (EXTENDED #17): ExportFormat, UploadProgress, FileValidationConfig, ValidationResult, ExportColumn, ExportConfig, FilesConfig, and FILES_CONFIG InjectionToken.
…ion validation Validates files against configurable rules (maxSizeBytes, allowedMimeTypes, allowedExtensions). Supports wildcard MIME patterns (image/*), case-insensitive extensions, and falls back to FILES_CONFIG module defaults. 16 tests.
…tion Programmatically creates hidden input[type=file], triggers click, and resolves with selected files. Includes pickImage() shorthand for image/* filtering. SSR-safe via inject(DOCUMENT). Cleanup after use. 11 tests.
Upload files via POST with real-time progress events using HttpClient reportProgress. Includes upload() for single files, uploadMultiple() for concurrent uploads, and FILES_CONFIG endpoint fallback.
…pport Trigger file downloads programmatically using hidden anchor + click trick. Includes downloadBlob() with automatic blob URL revocation to prevent memory leaks. SSR-safe via inject(DOCUMENT).
…ment Preview files in new browser tabs via window.open with blob URLs. Tracks active URLs for bulk cleanup via revokeAll(). Respects FILES_CONFIG.enablePreview setting. SSR-safe via inject(DOCUMENT).
…8 BOM Pure JS CSV export function with no external dependencies. Supports comma/semicolon/tab separators, RFC 4180 field escaping, and UTF-8 BOM for Excel compatibility.
… layout Async PDF export using jspdf + jspdf-autotable as optional peer dependencies loaded via dynamic import for tree-shaking. Supports title, column widths, and automatic pagination.
…nto main entry point
…ctions and Function type
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
@fireflyframework/coreprovideFiles(config?)factory withmakeEnvironmentProvidersCommits (12)
Test plan
nx test core— 725 tests, 50 suites)nx build core)