valtech-components 2.0.908 → 2.0.911

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.
@@ -15,6 +15,7 @@ export declare class AttachmentUploaderComponent {
15
15
  get readyUrls(): string[];
16
16
  constructor();
17
17
  onFilesSelected(event: Event): Promise<void>;
18
+ private compressImage;
18
19
  private uploadFile;
19
20
  remove(id: string): void;
20
21
  formatSize(bytes: number): string;
@@ -9,4 +9,6 @@ export interface AttachmentUploaderMetadata {
9
9
  maxFiles?: number;
10
10
  accept?: string;
11
11
  disabled?: boolean;
12
+ /** Compress images before upload (default: true). PDFs are never compressed. */
13
+ compressImages?: boolean;
12
14
  }
@@ -40,6 +40,7 @@ export declare class AvatarUploadComponent {
40
40
  uploadStart: EventEmitter<void>;
41
41
  protected loading: import("@angular/core").WritableSignal<boolean>;
42
42
  protected showCropModal: import("@angular/core").WritableSignal<boolean>;
43
+ protected showViewModal: import("@angular/core").WritableSignal<boolean>;
43
44
  protected selectedFile: import("@angular/core").WritableSignal<File>;
44
45
  protected previewUrl: import("@angular/core").WritableSignal<string>;
45
46
  protected imageLoadError: import("@angular/core").WritableSignal<boolean>;
@@ -56,11 +57,16 @@ export declare class AvatarUploadComponent {
56
57
  compressQuality: number;
57
58
  maxWidth: number;
58
59
  thumbnailSize: number;
60
+ showViewButton: boolean;
59
61
  }>;
60
62
  /** URL to display (preview takes priority over current) */
61
63
  protected displayUrl: import("@angular/core").Signal<string>;
62
64
  /** Aria label for edit button */
63
65
  protected editButtonLabel: import("@angular/core").Signal<string>;
66
+ /** Label for view photo button */
67
+ protected viewPhotoLabel: import("@angular/core").Signal<string>;
68
+ /** Label for close button inside photo viewer */
69
+ protected closePhotoLabel: import("@angular/core").Signal<string>;
64
70
  /** Open file picker dialog */
65
71
  openFilePicker(): void;
66
72
  /** Handle file selection */
@@ -24,6 +24,8 @@ export interface AvatarUploadMetadata {
24
24
  maxWidth?: number;
25
25
  /** Thumbnail size (default: 150) */
26
26
  thumbnailSize?: number;
27
+ /** Show "ver foto" button to open photo viewer modal (default: false) */
28
+ showViewButton?: boolean;
27
29
  }
28
30
  /**
29
31
  * Result emitted after successful upload
@@ -59,4 +61,5 @@ export declare const AVATAR_UPLOAD_DEFAULTS: {
59
61
  maxWidth: number;
60
62
  thumbnailSize: number;
61
63
  backgroundColor: string;
64
+ showViewButton: boolean;
62
65
  };
package/lib/version.d.ts CHANGED
@@ -2,4 +2,4 @@
2
2
  * Current version of valtech-components.
3
3
  * This is automatically updated during the publish process.
4
4
  */
5
- export declare const VERSION = "2.0.908";
5
+ export declare const VERSION = "2.0.911";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "valtech-components",
3
- "version": "2.0.908",
3
+ "version": "2.0.911",
4
4
  "private": false,
5
5
  "bin": {
6
6
  "valtech-firebase-config": "./src/lib/services/firebase/scripts/generate-sw-config.js"
@@ -17,11 +17,11 @@
17
17
  "@angular/service-worker": "^18.0.0",
18
18
  "@capacitor/app": ">=5.0.0",
19
19
  "@capacitor/clipboard": "^6.0.1",
20
+ "@capacitor/splash-screen": ">=6.0.0",
20
21
  "@ionic/angular": "^8.0.0",
21
22
  "firebase": "^10.0.0",
22
23
  "ionicons": "^7.2.1",
23
- "rxjs": "~7.8.0",
24
- "@capacitor/splash-screen": ">=6.0.0"
24
+ "rxjs": "~7.8.0"
25
25
  },
26
26
  "peerDependenciesMeta": {
27
27
  "@capacitor/app": {
@@ -36,6 +36,7 @@
36
36
  },
37
37
  "dependencies": {
38
38
  "@capacitor/browser": "^6.0.3",
39
+ "compressorjs": "^1.3.0",
39
40
  "ng-otp-input": "^1.9.3",
40
41
  "ngx-image-cropper": "^9.0.0",
41
42
  "prismjs": "^1.30.0",