@smartbit4all/ng-client 4.2.123 → 4.2.124
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/smart-client/smart-component-api-client.mjs +1 -2
- package/esm2022/lib/smart-form/api/model/fileUploaderProperties.mjs +1 -1
- package/esm2022/lib/smart-form/smartfileuploader/smartfileuploader.component.mjs +12 -7
- package/esm2022/lib/smart-form/widgets/components/smart-file-editor/smart-file-editor.component.mjs +3 -3
- package/esm2022/lib/smart-form/widgets/smartformwidget/smartformwidget.component.mjs +1 -2
- package/esm2022/lib/view-context/api/model/uiActionUploadDescriptor.mjs +1 -1
- package/esm2022/lib/view-context/smart-ui-action/components/upload-widget/prime-file-uploader/prime-file-uploader.component.mjs +17 -3
- package/esm2022/lib/view-context/smart-ui-action/components/upload-widget/upload-widget.component.mjs +31 -11
- package/esm2022/lib/view-context/smart-ui-action/dialogs/ui-action-file-upload-dialog/ui-action-file-upload-dialog.component.mjs +3 -3
- package/fesm2022/smartbit4all-ng-client.mjs +59 -24
- package/fesm2022/smartbit4all-ng-client.mjs.map +1 -1
- package/lib/smart-form/api/model/fileUploaderProperties.d.ts +0 -1
- package/lib/smart-form/smartfileuploader/smartfileuploader.component.d.ts +1 -0
- package/lib/smart-form/widgets/smartformwidget/smartformwidget.component.d.ts +0 -1
- package/lib/view-context/api/model/uiActionUploadDescriptor.d.ts +1 -0
- package/lib/view-context/smart-ui-action/components/upload-widget/prime-file-uploader/prime-file-uploader.component.d.ts +3 -0
- package/lib/view-context/smart-ui-action/components/upload-widget/upload-widget.component.d.ts +2 -2
- package/package.json +1 -1
- package/smartbit4all-ng-client-4.2.124.tgz +0 -0
- package/smartbit4all-ng-client-4.2.123.tgz +0 -0
|
@@ -26,6 +26,7 @@ export declare class SmartfileuploaderComponent implements OnInit {
|
|
|
26
26
|
remove(index: number): void;
|
|
27
27
|
uploadFile(): void;
|
|
28
28
|
formatSize(bytes: number): string;
|
|
29
|
+
previewUrls: Map<File, string>;
|
|
29
30
|
filePreviewUrl(file: File): string | null;
|
|
30
31
|
downloadFile(file: File): void;
|
|
31
32
|
get uploadButton(): UiActionDescriptor;
|
|
@@ -23,7 +23,6 @@ export interface UploadCallbackProps {
|
|
|
23
23
|
files: File[];
|
|
24
24
|
uiAction: UiAction;
|
|
25
25
|
uploadDescriptor: UiActionUploadDescriptor;
|
|
26
|
-
isMultiple: Boolean;
|
|
27
26
|
}
|
|
28
27
|
export type UploadCallback = (props: UploadCallbackProps) => Promise<void>;
|
|
29
28
|
export declare class SmartformwidgetComponent implements OnInit, OnDestroy, AfterViewInit {
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { EventEmitter } from '@angular/core';
|
|
2
2
|
import { FileUpload } from 'primeng/fileupload';
|
|
3
|
+
import { UiActionDescriptor } from '../../../../../view-context/api/model/models';
|
|
3
4
|
import * as i0 from "@angular/core";
|
|
4
5
|
export declare class PrimeFileUploaderComponent {
|
|
5
6
|
fileUploadPrime: FileUpload;
|
|
@@ -17,12 +18,14 @@ export declare class PrimeFileUploaderComponent {
|
|
|
17
18
|
}>;
|
|
18
19
|
isMobile(): boolean;
|
|
19
20
|
clear(): void;
|
|
21
|
+
onFileSelect(event: any): void;
|
|
20
22
|
select(event: any): void;
|
|
21
23
|
uploadFiles(event: any): void;
|
|
22
24
|
downloadFile(file: File): void;
|
|
23
25
|
formatSize(bytes: number): string;
|
|
24
26
|
get files(): any[];
|
|
25
27
|
set files(files: any[]);
|
|
28
|
+
get uploadButton(): UiActionDescriptor;
|
|
26
29
|
static ɵfac: i0.ɵɵFactoryDeclaration<PrimeFileUploaderComponent, never>;
|
|
27
30
|
static ɵcmp: i0.ɵɵComponentDeclaration<PrimeFileUploaderComponent, "prime-file-uploader", never, { "isMultiple": { "alias": "isMultiple"; "required": false; }; "autoUpload": { "alias": "autoUpload"; "required": false; }; "maxSizeMb": { "alias": "maxSizeMb"; "required": false; }; "fileFormats": { "alias": "fileFormats"; "required": false; }; "title": { "alias": "title"; "required": false; }; "subTitle": { "alias": "subTitle"; "required": false; }; }, { "uploadFilesEvent": "uploadFilesEvent"; }, never, never, false, never>;
|
|
28
31
|
}
|
package/lib/view-context/smart-ui-action/components/upload-widget/upload-widget.component.d.ts
CHANGED
|
@@ -12,7 +12,6 @@ export declare class UploadWidgetComponent {
|
|
|
12
12
|
fileUploadMaterial: SmartfileuploaderComponent;
|
|
13
13
|
uploadDescriptor?: UiActionUploadDescriptor;
|
|
14
14
|
isMultiple: boolean;
|
|
15
|
-
autoUpload?: boolean;
|
|
16
15
|
uploadFilesEvent: EventEmitter<{
|
|
17
16
|
files: any[];
|
|
18
17
|
uploadDescriptor?: UiActionUploadDescriptor | undefined;
|
|
@@ -22,6 +21,7 @@ export declare class UploadWidgetComponent {
|
|
|
22
21
|
i18n?: SmartFileUploaderI18n;
|
|
23
22
|
maxSizeMb: number;
|
|
24
23
|
fileFormats?: string[];
|
|
24
|
+
autoUpload?: boolean;
|
|
25
25
|
constructor(cdr: ChangeDetectorRef, compLib?: ComponentLibrary | undefined);
|
|
26
26
|
ngOnInit(): void;
|
|
27
27
|
isMobile(): boolean;
|
|
@@ -35,5 +35,5 @@ export declare class UploadWidgetComponent {
|
|
|
35
35
|
choose(event: any, callback: any): void;
|
|
36
36
|
get defaultUploadDescriptor(): UiActionUploadDescriptor;
|
|
37
37
|
static ɵfac: i0.ɵɵFactoryDeclaration<UploadWidgetComponent, [null, { optional: true; }]>;
|
|
38
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<UploadWidgetComponent, "smart-upload-widget", never, { "uploadDescriptor": { "alias": "uploadDescriptor"; "required": false; }; "isMultiple": { "alias": "isMultiple"; "required": false; };
|
|
38
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<UploadWidgetComponent, "smart-upload-widget", never, { "uploadDescriptor": { "alias": "uploadDescriptor"; "required": false; }; "isMultiple": { "alias": "isMultiple"; "required": false; }; }, { "uploadFilesEvent": "uploadFilesEvent"; }, never, never, false, never>;
|
|
39
39
|
}
|
package/package.json
CHANGED
|
Binary file
|
|
Binary file
|