valtech-components 2.0.907 → 2.0.910
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/esm2022/lib/components/molecules/content-reaction/content-reaction.component.mjs +3 -3
- package/esm2022/lib/components/organisms/attachment-uploader/attachment-uploader.component.mjs +19 -2
- package/esm2022/lib/components/organisms/attachment-uploader/types.mjs +1 -1
- package/esm2022/lib/components/organisms/avatar-upload/avatar-upload.component.mjs +59 -5
- package/esm2022/lib/components/organisms/avatar-upload/types.mjs +2 -1
- package/esm2022/lib/version.mjs +2 -2
- package/fesm2022/valtech-components.mjs +79 -7
- package/fesm2022/valtech-components.mjs.map +1 -1
- package/lib/components/organisms/attachment-uploader/attachment-uploader.component.d.ts +1 -0
- package/lib/components/organisms/attachment-uploader/types.d.ts +2 -0
- package/lib/components/organisms/avatar-upload/avatar-upload.component.d.ts +4 -0
- package/lib/components/organisms/avatar-upload/types.d.ts +3 -0
- package/lib/version.d.ts +1 -1
- package/package.json +4 -3
|
@@ -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;
|
|
@@ -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,14 @@ 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>;
|
|
64
68
|
/** Open file picker dialog */
|
|
65
69
|
openFilePicker(): void;
|
|
66
70
|
/** 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
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "valtech-components",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.910",
|
|
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",
|