carriera-intern-components 0.0.1

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.
@@ -0,0 +1,10 @@
1
+ import { PipeTransform } from '@angular/core';
2
+ import { ValidationErrors } from '@angular/forms';
3
+ import { NumberFormatPipe } from './number-format.pipe';
4
+ import * as i0 from "@angular/core";
5
+ export declare class ErrorMessagePipe implements PipeTransform {
6
+ numberFormatPipe: NumberFormatPipe;
7
+ transform(errors: ValidationErrors | null | undefined): string[];
8
+ static ɵfac: i0.ɵɵFactoryDeclaration<ErrorMessagePipe, never>;
9
+ static ɵpipe: i0.ɵɵPipeDeclaration<ErrorMessagePipe, "errorMessage", true>;
10
+ }
@@ -0,0 +1,7 @@
1
+ import { PipeTransform } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ export declare class NumberFormatPipe implements PipeTransform {
4
+ transform(value: string): string;
5
+ static ɵfac: i0.ɵɵFactoryDeclaration<NumberFormatPipe, never>;
6
+ static ɵpipe: i0.ɵɵPipeDeclaration<NumberFormatPipe, "numberFormat", true>;
7
+ }
@@ -0,0 +1,22 @@
1
+ import * as i0 from "@angular/core";
2
+ export declare class DocumentService {
3
+ /**
4
+ * Generates a data URL thumbnail for a given file.
5
+ * Handles PDFs, videos, and images.
6
+ * @param file The file to generate a thumbnail for.
7
+ * @returns A promise that resolves to a data URL string for the thumbnail.
8
+ */
9
+ generateThumbnail(file: File): Promise<string>;
10
+ private generatePdfThumbnail;
11
+ private generateVideoThumbnail;
12
+ /**
13
+ * Reads a PDF file and returns the total number of pages.
14
+ *
15
+ * @param file The PDF Blob or File.
16
+ * @returns A promise that resolves to the page count (number).
17
+ * @throws If the file is not a valid PDF or an error occurs during processing.
18
+ */
19
+ getPdfPageCount(file: Blob): Promise<number>;
20
+ static ɵfac: i0.ɵɵFactoryDeclaration<DocumentService, never>;
21
+ static ɵprov: i0.ɵɵInjectableDeclaration<DocumentService>;
22
+ }