cloud-ide-element 1.0.93 → 1.0.96
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/fesm2022/cloud-ide-element.mjs +218 -491
- package/fesm2022/cloud-ide-element.mjs.map +1 -1
- package/index.d.ts +256 -328
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -600,7 +600,7 @@ declare class CideEleFileInputComponent implements ControlValueAccessor, OnDestr
|
|
|
600
600
|
readonly id: _angular_core.WritableSignal<string>;
|
|
601
601
|
readonly isUploading: _angular_core.WritableSignal<boolean>;
|
|
602
602
|
readonly uploadProgress: _angular_core.WritableSignal<number>;
|
|
603
|
-
readonly uploadStatus: _angular_core.WritableSignal<"uploading" | "error" | "
|
|
603
|
+
readonly uploadStatus: _angular_core.WritableSignal<"uploading" | "error" | "idle" | "start" | "success">;
|
|
604
604
|
readonly files: _angular_core.WritableSignal<FileList | null>;
|
|
605
605
|
readonly fileNames: _angular_core.WritableSignal<string[]>;
|
|
606
606
|
readonly previewUrls: _angular_core.WritableSignal<string[]>;
|
|
@@ -711,7 +711,7 @@ declare class CideEleFileInputComponent implements ControlValueAccessor, OnDestr
|
|
|
711
711
|
multiple: boolean;
|
|
712
712
|
showPreview: boolean;
|
|
713
713
|
autoUpload: boolean;
|
|
714
|
-
uploadStatus: "uploading" | "error" | "
|
|
714
|
+
uploadStatus: "uploading" | "error" | "idle" | "start" | "success";
|
|
715
715
|
isUploading: boolean;
|
|
716
716
|
uploadProgress: number;
|
|
717
717
|
files: {
|
|
@@ -737,330 +737,6 @@ declare class CideEleFileInputComponent implements ControlValueAccessor, OnDestr
|
|
|
737
737
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<CideEleFileInputComponent, "cide-ele-file-input", never, { "label": { "alias": "label"; "required": false; }; "accept": { "alias": "accept"; "required": false; }; "multiple": { "alias": "multiple"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "required": { "alias": "required"; "required": false; }; "helperText": { "alias": "helperText"; "required": false; }; "errorText": { "alias": "errorText"; "required": false; }; "showPreview": { "alias": "showPreview"; "required": false; }; "previewWidth": { "alias": "previewWidth"; "required": false; }; "previewHeight": { "alias": "previewHeight"; "required": false; }; "previewBoxMode": { "alias": "previewBoxMode"; "required": false; }; "showFileName": { "alias": "showFileName"; "required": false; }; "placeholderText": { "alias": "placeholderText"; "required": false; }; "placeholderIcon": { "alias": "placeholderIcon"; "required": false; }; "autoUpload": { "alias": "autoUpload"; "required": false; }; "uploadData": { "alias": "uploadData"; "required": false; }; "showFloatingUploader": { "alias": "showFloatingUploader"; "required": false; }; "floatingUploaderGroupId": { "alias": "floatingUploaderGroupId"; "required": false; }; }, { "fileChange": "fileChange"; "uploadSuccess": "uploadSuccess"; "uploadError": "uploadError"; "uploadProgressChange": "uploadProgressChange"; }, never, never, true, never>;
|
|
738
738
|
}
|
|
739
739
|
|
|
740
|
-
/**
|
|
741
|
-
* File Manager Interfaces
|
|
742
|
-
* Based on core_file_manager table schema
|
|
743
|
-
*/
|
|
744
|
-
interface ICoreCyfm {
|
|
745
|
-
_id?: string;
|
|
746
|
-
cyfm_name?: string;
|
|
747
|
-
cyfm_alt_text?: string;
|
|
748
|
-
cyfm_path?: string;
|
|
749
|
-
cyfm_size_in_byte?: number;
|
|
750
|
-
cyfm_type?: string;
|
|
751
|
-
cyfm_creation_dt?: string;
|
|
752
|
-
cyfm_id_user?: string;
|
|
753
|
-
cyfm_permissions?: string[];
|
|
754
|
-
cyfm_tags?: string[];
|
|
755
|
-
cyfm_version?: number;
|
|
756
|
-
cyfm_file_status_sygmt?: string;
|
|
757
|
-
cyfm_group_id?: string;
|
|
758
|
-
cyfm_ismultiple?: boolean;
|
|
759
|
-
cyfm_isactive?: boolean;
|
|
760
|
-
}
|
|
761
|
-
interface ICoreFileManager extends ICoreCyfm {
|
|
762
|
-
_id: string;
|
|
763
|
-
cyfm_name: string;
|
|
764
|
-
cyfm_path: string;
|
|
765
|
-
cyfm_size_in_byte: number;
|
|
766
|
-
cyfm_type: string;
|
|
767
|
-
cyfm_creation_dt: string;
|
|
768
|
-
cyfm_id_user: string;
|
|
769
|
-
cyfm_permissions: string[];
|
|
770
|
-
cyfm_tags: string[];
|
|
771
|
-
cyfm_version: number;
|
|
772
|
-
cyfm_file_status_sygmt: string;
|
|
773
|
-
cyfm_group_id?: string;
|
|
774
|
-
cyfm_ismultiple?: boolean;
|
|
775
|
-
cyfm_isactive: boolean;
|
|
776
|
-
}
|
|
777
|
-
interface controllerResponse {
|
|
778
|
-
success?: boolean;
|
|
779
|
-
error_code?: string;
|
|
780
|
-
message?: string;
|
|
781
|
-
data?: any;
|
|
782
|
-
code?: string;
|
|
783
|
-
action?: string;
|
|
784
|
-
total?: number;
|
|
785
|
-
pageIndex?: number;
|
|
786
|
-
pageSize?: number;
|
|
787
|
-
controls?: {
|
|
788
|
-
[key: string]: string;
|
|
789
|
-
};
|
|
790
|
-
}
|
|
791
|
-
type IFileManagerErrorLogger = {
|
|
792
|
-
[key in keyof MFileManager]: string;
|
|
793
|
-
};
|
|
794
|
-
declare class MFileManager {
|
|
795
|
-
cyfm_id: string;
|
|
796
|
-
constructor(init: MFileManager);
|
|
797
|
-
Validate?(): Partial<IFileManagerErrorLogger>;
|
|
798
|
-
}
|
|
799
|
-
declare class ICoreCyfmSave implements ICoreCyfm {
|
|
800
|
-
_id?: string;
|
|
801
|
-
cyfm_name?: string;
|
|
802
|
-
cyfm_alt_text?: string;
|
|
803
|
-
cyfm_path?: string;
|
|
804
|
-
cyfm_size_in_byte?: number;
|
|
805
|
-
cyfm_type?: string;
|
|
806
|
-
cyfm_creation_dt?: string;
|
|
807
|
-
cyfm_id_user?: string;
|
|
808
|
-
cyfm_permissions?: string[];
|
|
809
|
-
cyfm_tags?: string[];
|
|
810
|
-
cyfm_version?: number;
|
|
811
|
-
cyfm_file_status_sygmt?: string;
|
|
812
|
-
cyfm_group_id?: string;
|
|
813
|
-
cyfm_isactive?: boolean;
|
|
814
|
-
cyfm_file_base64: string;
|
|
815
|
-
cyfm_temp_unique_id: string;
|
|
816
|
-
constructor(init: ICoreCyfmSave);
|
|
817
|
-
}
|
|
818
|
-
declare class CoreFileManagerInsertUpdatePayload {
|
|
819
|
-
core_file_manager_new: ICoreCyfmSave[];
|
|
820
|
-
core_file_manager_update: ICoreCyfm[];
|
|
821
|
-
core_file_manager_delete: ICoreCyfm[];
|
|
822
|
-
constructor(init: CoreFileManagerInsertUpdatePayload);
|
|
823
|
-
Validate?(): Partial<IFileManagerErrorLogger>;
|
|
824
|
-
}
|
|
825
|
-
interface fileManagerResponseData extends ICoreCyfm {
|
|
826
|
-
cyfm_file_base64: string;
|
|
827
|
-
}
|
|
828
|
-
interface fileManagerControllerResponse extends controllerResponse {
|
|
829
|
-
data?: fileManagerResponseData[];
|
|
830
|
-
}
|
|
831
|
-
interface CoreFileManagerInsertUpdateResponse extends controllerResponse {
|
|
832
|
-
data?: {
|
|
833
|
-
core_file_manager: {
|
|
834
|
-
cyfm_id: string;
|
|
835
|
-
cyfm_temp_unique_id: string;
|
|
836
|
-
}[];
|
|
837
|
-
};
|
|
838
|
-
}
|
|
839
|
-
interface mongooseObjectIdCreateControllerResponse extends controllerResponse {
|
|
840
|
-
data?: {
|
|
841
|
-
objectId: string;
|
|
842
|
-
};
|
|
843
|
-
}
|
|
844
|
-
interface IFileUploadRequest {
|
|
845
|
-
file: File;
|
|
846
|
-
altText?: string;
|
|
847
|
-
tags?: string[];
|
|
848
|
-
permissions?: string[];
|
|
849
|
-
userId?: string;
|
|
850
|
-
groupId?: string;
|
|
851
|
-
[key: string]: string | number | string[] | File | undefined;
|
|
852
|
-
}
|
|
853
|
-
interface IFileUploadResponse {
|
|
854
|
-
success: boolean;
|
|
855
|
-
message: string;
|
|
856
|
-
data?: ICoreFileManager;
|
|
857
|
-
error?: string;
|
|
858
|
-
}
|
|
859
|
-
interface IFileListRequest {
|
|
860
|
-
pageIndex: number;
|
|
861
|
-
pageSize: number;
|
|
862
|
-
search?: string;
|
|
863
|
-
fileType?: string;
|
|
864
|
-
status?: string;
|
|
865
|
-
userId?: string;
|
|
866
|
-
tags?: string[];
|
|
867
|
-
sortBy?: string;
|
|
868
|
-
sortOrder?: 'asc' | 'desc';
|
|
869
|
-
}
|
|
870
|
-
interface IFileListResponse {
|
|
871
|
-
success: boolean;
|
|
872
|
-
message: string;
|
|
873
|
-
data: ICoreFileManager[];
|
|
874
|
-
total: number;
|
|
875
|
-
pageIndex: number;
|
|
876
|
-
pageSize: number;
|
|
877
|
-
}
|
|
878
|
-
interface IFileDeleteResponse {
|
|
879
|
-
success: boolean;
|
|
880
|
-
message: string;
|
|
881
|
-
data?: string;
|
|
882
|
-
}
|
|
883
|
-
interface IFileUpdateRequest {
|
|
884
|
-
_id: string;
|
|
885
|
-
cyfm_name?: string;
|
|
886
|
-
cyfm_alt_text?: string;
|
|
887
|
-
cyfm_tags?: string[];
|
|
888
|
-
cyfm_permissions?: string[];
|
|
889
|
-
cyfm_file_status_sygmt?: string;
|
|
890
|
-
cyfm_isactive?: boolean;
|
|
891
|
-
}
|
|
892
|
-
interface IFileUpdateResponse {
|
|
893
|
-
success: boolean;
|
|
894
|
-
message: string;
|
|
895
|
-
data?: ICoreFileManager;
|
|
896
|
-
}
|
|
897
|
-
interface IFileUploadProgress {
|
|
898
|
-
fileId: string;
|
|
899
|
-
fileName: string;
|
|
900
|
-
progress: number;
|
|
901
|
-
status: 'pending' | 'uploading' | 'completed' | 'error' | 'cancelled';
|
|
902
|
-
error?: string;
|
|
903
|
-
uploadedFile?: any;
|
|
904
|
-
}
|
|
905
|
-
interface IFileUploadQueueItem extends IFileUploadProgress {
|
|
906
|
-
file: File;
|
|
907
|
-
}
|
|
908
|
-
interface IFileFilterOptions {
|
|
909
|
-
fileTypes: string[];
|
|
910
|
-
statuses: string[];
|
|
911
|
-
dateRange?: {
|
|
912
|
-
start: Date;
|
|
913
|
-
end: Date;
|
|
914
|
-
};
|
|
915
|
-
sizeRange?: {
|
|
916
|
-
min: number;
|
|
917
|
-
max: number;
|
|
918
|
-
};
|
|
919
|
-
tags: string[];
|
|
920
|
-
}
|
|
921
|
-
interface IFileGroupingOptions {
|
|
922
|
-
groupBy: 'type' | 'status' | 'date' | 'size' | 'user' | 'none';
|
|
923
|
-
sortBy: 'name' | 'size' | 'date' | 'type';
|
|
924
|
-
sortOrder: 'asc' | 'desc';
|
|
925
|
-
}
|
|
926
|
-
|
|
927
|
-
declare class CideEleGlobalFileUploaderComponent {
|
|
928
|
-
private destroyRef;
|
|
929
|
-
private fileService;
|
|
930
|
-
userId: string;
|
|
931
|
-
multiple: boolean;
|
|
932
|
-
accept: string;
|
|
933
|
-
maxFileSize: number;
|
|
934
|
-
allowedTypes: string[];
|
|
935
|
-
uploadComplete: EventEmitter<IFileUploadProgress>;
|
|
936
|
-
uploadError: EventEmitter<{
|
|
937
|
-
fileId: string;
|
|
938
|
-
error: string;
|
|
939
|
-
}>;
|
|
940
|
-
uploadCancelled: EventEmitter<string>;
|
|
941
|
-
allUploadsComplete: EventEmitter<{
|
|
942
|
-
groupId: string;
|
|
943
|
-
uploadedFiles: any[];
|
|
944
|
-
}>;
|
|
945
|
-
isDragOver: _angular_core.WritableSignal<boolean>;
|
|
946
|
-
isUploading: _angular_core.WritableSignal<boolean>;
|
|
947
|
-
uploadQueue: _angular_core.WritableSignal<IFileUploadQueueItem[]>;
|
|
948
|
-
currentGroupId: _angular_core.WritableSignal<string | null>;
|
|
949
|
-
hasUploads: _angular_core.Signal<boolean>;
|
|
950
|
-
pendingUploads: _angular_core.Signal<IFileUploadQueueItem[]>;
|
|
951
|
-
activeUploads: _angular_core.Signal<IFileUploadQueueItem[]>;
|
|
952
|
-
completedUploads: _angular_core.Signal<IFileUploadQueueItem[]>;
|
|
953
|
-
failedUploads: _angular_core.Signal<IFileUploadQueueItem[]>;
|
|
954
|
-
constructor();
|
|
955
|
-
/**
|
|
956
|
-
* Handle drag over event
|
|
957
|
-
*/
|
|
958
|
-
onDragOver(event: DragEvent): void;
|
|
959
|
-
/**
|
|
960
|
-
* Handle drag leave event
|
|
961
|
-
*/
|
|
962
|
-
onDragLeave(event: DragEvent): void;
|
|
963
|
-
/**
|
|
964
|
-
* Handle drop event
|
|
965
|
-
*/
|
|
966
|
-
onDrop(event: DragEvent): void;
|
|
967
|
-
/**
|
|
968
|
-
* Handle file input change
|
|
969
|
-
*/
|
|
970
|
-
onFileInputChange(event: Event): void;
|
|
971
|
-
/**
|
|
972
|
-
* Add files to upload queue
|
|
973
|
-
*/
|
|
974
|
-
private addFilesToQueue;
|
|
975
|
-
/**
|
|
976
|
-
* Validate file
|
|
977
|
-
*/
|
|
978
|
-
private validateFile;
|
|
979
|
-
/**
|
|
980
|
-
* Process upload queue
|
|
981
|
-
*/
|
|
982
|
-
private processUploadQueue;
|
|
983
|
-
/**
|
|
984
|
-
* Upload multiple files with group ID
|
|
985
|
-
*/
|
|
986
|
-
private uploadMultipleFiles;
|
|
987
|
-
/**
|
|
988
|
-
* Upload files with group ID
|
|
989
|
-
*/
|
|
990
|
-
private uploadFilesWithGroupId;
|
|
991
|
-
/**
|
|
992
|
-
* Handle multiple upload completion
|
|
993
|
-
*/
|
|
994
|
-
private handleMultipleUploadComplete;
|
|
995
|
-
/**
|
|
996
|
-
* Upload next file in queue (single file mode)
|
|
997
|
-
*/
|
|
998
|
-
private uploadNextFile;
|
|
999
|
-
/**
|
|
1000
|
-
* Update upload progress
|
|
1001
|
-
*/
|
|
1002
|
-
private updateUploadProgress;
|
|
1003
|
-
/**
|
|
1004
|
-
* Update upload status
|
|
1005
|
-
*/
|
|
1006
|
-
private updateUploadStatus;
|
|
1007
|
-
/**
|
|
1008
|
-
* Update upload status by cyfm_temp_unique_id
|
|
1009
|
-
*/
|
|
1010
|
-
private updateUploadStatusByTempId;
|
|
1011
|
-
/**
|
|
1012
|
-
* Handle upload error
|
|
1013
|
-
*/
|
|
1014
|
-
private handleUploadError;
|
|
1015
|
-
/**
|
|
1016
|
-
* Cancel upload
|
|
1017
|
-
*/
|
|
1018
|
-
cancelUpload(fileId: string): void;
|
|
1019
|
-
/**
|
|
1020
|
-
* Retry upload
|
|
1021
|
-
*/
|
|
1022
|
-
retryUpload(fileId: string): void;
|
|
1023
|
-
/**
|
|
1024
|
-
* Remove upload from queue
|
|
1025
|
-
*/
|
|
1026
|
-
removeUpload(fileId: string): void;
|
|
1027
|
-
/**
|
|
1028
|
-
* Clear completed uploads
|
|
1029
|
-
*/
|
|
1030
|
-
clearCompleted(): void;
|
|
1031
|
-
/**
|
|
1032
|
-
* Clear all uploads
|
|
1033
|
-
*/
|
|
1034
|
-
clearAll(): void;
|
|
1035
|
-
/**
|
|
1036
|
-
* Get status icon
|
|
1037
|
-
*/
|
|
1038
|
-
getStatusIcon(status: IFileUploadProgress['status']): string;
|
|
1039
|
-
/**
|
|
1040
|
-
* Get status class
|
|
1041
|
-
*/
|
|
1042
|
-
getStatusClass(status: IFileUploadProgress['status']): string;
|
|
1043
|
-
/**
|
|
1044
|
-
* Get file size display
|
|
1045
|
-
*/
|
|
1046
|
-
getFileSizeDisplay(file: File): string;
|
|
1047
|
-
/**
|
|
1048
|
-
* Generate unique file ID - this should match the service's generateFileId method
|
|
1049
|
-
* The service uses: ${file.name}_${file.size}_${Date.now()}
|
|
1050
|
-
*/
|
|
1051
|
-
private generateFileId;
|
|
1052
|
-
/**
|
|
1053
|
-
* Convert IFileUploadRequest to FileUploadOptions
|
|
1054
|
-
*/
|
|
1055
|
-
private convertToFileUploadOptions;
|
|
1056
|
-
/**
|
|
1057
|
-
* Trigger file input click
|
|
1058
|
-
*/
|
|
1059
|
-
triggerFileInput(): void;
|
|
1060
|
-
static ɵfac: _angular_core.ɵɵFactoryDeclaration<CideEleGlobalFileUploaderComponent, never>;
|
|
1061
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<CideEleGlobalFileUploaderComponent, "cide-ele-global-file-uploader", never, { "userId": { "alias": "userId"; "required": false; }; "multiple": { "alias": "multiple"; "required": false; }; "accept": { "alias": "accept"; "required": false; }; "maxFileSize": { "alias": "maxFileSize"; "required": false; }; "allowedTypes": { "alias": "allowedTypes"; "required": false; }; }, { "uploadComplete": "uploadComplete"; "uploadError": "uploadError"; "uploadCancelled": "uploadCancelled"; "allUploadsComplete": "allUploadsComplete"; }, never, never, true, never>;
|
|
1062
|
-
}
|
|
1063
|
-
|
|
1064
740
|
declare class CideEleFloatingFileUploaderComponent implements OnInit, OnDestroy {
|
|
1065
741
|
private destroyRef;
|
|
1066
742
|
private fileManagerService;
|
|
@@ -1077,6 +753,16 @@ declare class CideEleFloatingFileUploaderComponent implements OnInit, OnDestroy
|
|
|
1077
753
|
completedUploads: _angular_core.Signal<cloud_ide_element.UploadProgress[]>;
|
|
1078
754
|
failedUploads: _angular_core.Signal<cloud_ide_element.UploadProgress[]>;
|
|
1079
755
|
isAnimating: _angular_core.WritableSignal<boolean>;
|
|
756
|
+
isDragging: _angular_core.WritableSignal<boolean>;
|
|
757
|
+
position: _angular_core.WritableSignal<{
|
|
758
|
+
x: number;
|
|
759
|
+
y: number;
|
|
760
|
+
}>;
|
|
761
|
+
dragOffset: {
|
|
762
|
+
x: number;
|
|
763
|
+
y: number;
|
|
764
|
+
};
|
|
765
|
+
isDragOver: _angular_core.WritableSignal<boolean>;
|
|
1080
766
|
constructor();
|
|
1081
767
|
ngOnInit(): void;
|
|
1082
768
|
ngOnDestroy(): void;
|
|
@@ -1187,6 +873,50 @@ declare class CideEleFloatingFileUploaderComponent implements OnInit, OnDestroy
|
|
|
1187
873
|
* Check if there are any uploads for the current group
|
|
1188
874
|
*/
|
|
1189
875
|
hasUploadsForCurrentGroup(): boolean;
|
|
876
|
+
/**
|
|
877
|
+
* Handle drag over event for file drop
|
|
878
|
+
*/
|
|
879
|
+
onDragOver(event: DragEvent): void;
|
|
880
|
+
/**
|
|
881
|
+
* Handle drag leave event for file drop
|
|
882
|
+
*/
|
|
883
|
+
onDragLeave(event: DragEvent): void;
|
|
884
|
+
/**
|
|
885
|
+
* Handle drop event for file drop
|
|
886
|
+
*/
|
|
887
|
+
onDrop(event: DragEvent): void;
|
|
888
|
+
/**
|
|
889
|
+
* Trigger file input click
|
|
890
|
+
*/
|
|
891
|
+
triggerFileInput(): void;
|
|
892
|
+
/**
|
|
893
|
+
* Handle file input change
|
|
894
|
+
*/
|
|
895
|
+
onFileInputChange(event: Event): void;
|
|
896
|
+
/**
|
|
897
|
+
* Handle file selection from drag/drop or file input
|
|
898
|
+
*/
|
|
899
|
+
private handleFileSelection;
|
|
900
|
+
/**
|
|
901
|
+
* Generate a unique group ID
|
|
902
|
+
*/
|
|
903
|
+
private generateGroupId;
|
|
904
|
+
/**
|
|
905
|
+
* Start dragging the uploader
|
|
906
|
+
*/
|
|
907
|
+
startDrag(event: MouseEvent | TouchEvent): void;
|
|
908
|
+
/**
|
|
909
|
+
* Handle dragging movement
|
|
910
|
+
*/
|
|
911
|
+
private onDrag;
|
|
912
|
+
/**
|
|
913
|
+
* End dragging
|
|
914
|
+
*/
|
|
915
|
+
private endDrag;
|
|
916
|
+
/**
|
|
917
|
+
* Initialize default position
|
|
918
|
+
*/
|
|
919
|
+
private initializePosition;
|
|
1190
920
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<CideEleFloatingFileUploaderComponent, never>;
|
|
1191
921
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<CideEleFloatingFileUploaderComponent, "cide-ele-floating-file-uploader", never, {}, {}, never, never, true, never>;
|
|
1192
922
|
}
|
|
@@ -2069,6 +1799,194 @@ declare class NotificationService {
|
|
|
2069
1799
|
static ɵprov: _angular_core.ɵɵInjectableDeclaration<NotificationService>;
|
|
2070
1800
|
}
|
|
2071
1801
|
|
|
1802
|
+
/**
|
|
1803
|
+
* File Manager Interfaces
|
|
1804
|
+
* Based on core_file_manager table schema
|
|
1805
|
+
*/
|
|
1806
|
+
interface ICoreCyfm {
|
|
1807
|
+
_id?: string;
|
|
1808
|
+
cyfm_name?: string;
|
|
1809
|
+
cyfm_alt_text?: string;
|
|
1810
|
+
cyfm_path?: string;
|
|
1811
|
+
cyfm_size_in_byte?: number;
|
|
1812
|
+
cyfm_type?: string;
|
|
1813
|
+
cyfm_creation_dt?: string;
|
|
1814
|
+
cyfm_id_user?: string;
|
|
1815
|
+
cyfm_permissions?: string[];
|
|
1816
|
+
cyfm_tags?: string[];
|
|
1817
|
+
cyfm_version?: number;
|
|
1818
|
+
cyfm_file_status_sygmt?: string;
|
|
1819
|
+
cyfm_group_id?: string;
|
|
1820
|
+
cyfm_ismultiple?: boolean;
|
|
1821
|
+
cyfm_isactive?: boolean;
|
|
1822
|
+
}
|
|
1823
|
+
interface ICoreFileManager extends ICoreCyfm {
|
|
1824
|
+
_id: string;
|
|
1825
|
+
cyfm_name: string;
|
|
1826
|
+
cyfm_path: string;
|
|
1827
|
+
cyfm_size_in_byte: number;
|
|
1828
|
+
cyfm_type: string;
|
|
1829
|
+
cyfm_creation_dt: string;
|
|
1830
|
+
cyfm_id_user: string;
|
|
1831
|
+
cyfm_permissions: string[];
|
|
1832
|
+
cyfm_tags: string[];
|
|
1833
|
+
cyfm_version: number;
|
|
1834
|
+
cyfm_file_status_sygmt: string;
|
|
1835
|
+
cyfm_group_id?: string;
|
|
1836
|
+
cyfm_ismultiple?: boolean;
|
|
1837
|
+
cyfm_isactive: boolean;
|
|
1838
|
+
}
|
|
1839
|
+
interface controllerResponse {
|
|
1840
|
+
success?: boolean;
|
|
1841
|
+
error_code?: string;
|
|
1842
|
+
message?: string;
|
|
1843
|
+
data?: any;
|
|
1844
|
+
code?: string;
|
|
1845
|
+
action?: string;
|
|
1846
|
+
total?: number;
|
|
1847
|
+
pageIndex?: number;
|
|
1848
|
+
pageSize?: number;
|
|
1849
|
+
controls?: {
|
|
1850
|
+
[key: string]: string;
|
|
1851
|
+
};
|
|
1852
|
+
}
|
|
1853
|
+
type IFileManagerErrorLogger = {
|
|
1854
|
+
[key in keyof MFileManager]: string;
|
|
1855
|
+
};
|
|
1856
|
+
declare class MFileManager {
|
|
1857
|
+
cyfm_id: string;
|
|
1858
|
+
constructor(init: MFileManager);
|
|
1859
|
+
Validate?(): Partial<IFileManagerErrorLogger>;
|
|
1860
|
+
}
|
|
1861
|
+
declare class ICoreCyfmSave implements ICoreCyfm {
|
|
1862
|
+
_id?: string;
|
|
1863
|
+
cyfm_name?: string;
|
|
1864
|
+
cyfm_alt_text?: string;
|
|
1865
|
+
cyfm_path?: string;
|
|
1866
|
+
cyfm_size_in_byte?: number;
|
|
1867
|
+
cyfm_type?: string;
|
|
1868
|
+
cyfm_creation_dt?: string;
|
|
1869
|
+
cyfm_id_user?: string;
|
|
1870
|
+
cyfm_permissions?: string[];
|
|
1871
|
+
cyfm_tags?: string[];
|
|
1872
|
+
cyfm_version?: number;
|
|
1873
|
+
cyfm_file_status_sygmt?: string;
|
|
1874
|
+
cyfm_group_id?: string;
|
|
1875
|
+
cyfm_isactive?: boolean;
|
|
1876
|
+
cyfm_ismultiple?: boolean;
|
|
1877
|
+
cyfm_file_base64: string;
|
|
1878
|
+
cyfm_temp_unique_id: string;
|
|
1879
|
+
constructor(init: ICoreCyfmSave);
|
|
1880
|
+
}
|
|
1881
|
+
declare class CoreFileManagerInsertUpdatePayload {
|
|
1882
|
+
core_file_manager_new: ICoreCyfmSave[];
|
|
1883
|
+
core_file_manager_update: ICoreCyfm[];
|
|
1884
|
+
core_file_manager_delete: ICoreCyfm[];
|
|
1885
|
+
constructor(init: CoreFileManagerInsertUpdatePayload);
|
|
1886
|
+
Validate?(): Partial<IFileManagerErrorLogger>;
|
|
1887
|
+
}
|
|
1888
|
+
interface fileManagerResponseData extends ICoreCyfm {
|
|
1889
|
+
cyfm_file_base64: string;
|
|
1890
|
+
}
|
|
1891
|
+
interface fileManagerControllerResponse extends controllerResponse {
|
|
1892
|
+
data?: fileManagerResponseData[];
|
|
1893
|
+
}
|
|
1894
|
+
interface CoreFileManagerInsertUpdateResponse extends controllerResponse {
|
|
1895
|
+
data?: {
|
|
1896
|
+
core_file_manager: {
|
|
1897
|
+
cyfm_id: string;
|
|
1898
|
+
cyfm_temp_unique_id: string;
|
|
1899
|
+
}[];
|
|
1900
|
+
};
|
|
1901
|
+
}
|
|
1902
|
+
interface mongooseObjectIdCreateControllerResponse extends controllerResponse {
|
|
1903
|
+
data?: {
|
|
1904
|
+
objectId: string;
|
|
1905
|
+
};
|
|
1906
|
+
}
|
|
1907
|
+
interface IFileUploadRequest {
|
|
1908
|
+
file: File;
|
|
1909
|
+
altText?: string;
|
|
1910
|
+
tags?: string[];
|
|
1911
|
+
permissions?: string[];
|
|
1912
|
+
userId?: string;
|
|
1913
|
+
groupId?: string;
|
|
1914
|
+
[key: string]: string | number | string[] | File | undefined;
|
|
1915
|
+
}
|
|
1916
|
+
interface IFileUploadResponse {
|
|
1917
|
+
success: boolean;
|
|
1918
|
+
message: string;
|
|
1919
|
+
data?: ICoreFileManager;
|
|
1920
|
+
error?: string;
|
|
1921
|
+
}
|
|
1922
|
+
interface IFileListRequest {
|
|
1923
|
+
pageIndex: number;
|
|
1924
|
+
pageSize: number;
|
|
1925
|
+
search?: string;
|
|
1926
|
+
fileType?: string;
|
|
1927
|
+
status?: string;
|
|
1928
|
+
userId?: string;
|
|
1929
|
+
tags?: string[];
|
|
1930
|
+
sortBy?: string;
|
|
1931
|
+
sortOrder?: 'asc' | 'desc';
|
|
1932
|
+
}
|
|
1933
|
+
interface IFileListResponse {
|
|
1934
|
+
success: boolean;
|
|
1935
|
+
message: string;
|
|
1936
|
+
data: ICoreFileManager[];
|
|
1937
|
+
total: number;
|
|
1938
|
+
pageIndex: number;
|
|
1939
|
+
pageSize: number;
|
|
1940
|
+
}
|
|
1941
|
+
interface IFileDeleteResponse {
|
|
1942
|
+
success: boolean;
|
|
1943
|
+
message: string;
|
|
1944
|
+
data?: string;
|
|
1945
|
+
}
|
|
1946
|
+
interface IFileUpdateRequest {
|
|
1947
|
+
_id: string;
|
|
1948
|
+
cyfm_name?: string;
|
|
1949
|
+
cyfm_alt_text?: string;
|
|
1950
|
+
cyfm_tags?: string[];
|
|
1951
|
+
cyfm_permissions?: string[];
|
|
1952
|
+
cyfm_file_status_sygmt?: string;
|
|
1953
|
+
cyfm_isactive?: boolean;
|
|
1954
|
+
}
|
|
1955
|
+
interface IFileUpdateResponse {
|
|
1956
|
+
success: boolean;
|
|
1957
|
+
message: string;
|
|
1958
|
+
data?: ICoreFileManager;
|
|
1959
|
+
}
|
|
1960
|
+
interface IFileUploadProgress {
|
|
1961
|
+
fileId: string;
|
|
1962
|
+
fileName: string;
|
|
1963
|
+
progress: number;
|
|
1964
|
+
status: 'pending' | 'uploading' | 'completed' | 'error' | 'cancelled';
|
|
1965
|
+
error?: string;
|
|
1966
|
+
uploadedFile?: any;
|
|
1967
|
+
}
|
|
1968
|
+
interface IFileUploadQueueItem extends IFileUploadProgress {
|
|
1969
|
+
file: File;
|
|
1970
|
+
}
|
|
1971
|
+
interface IFileFilterOptions {
|
|
1972
|
+
fileTypes: string[];
|
|
1973
|
+
statuses: string[];
|
|
1974
|
+
dateRange?: {
|
|
1975
|
+
start: Date;
|
|
1976
|
+
end: Date;
|
|
1977
|
+
};
|
|
1978
|
+
sizeRange?: {
|
|
1979
|
+
min: number;
|
|
1980
|
+
max: number;
|
|
1981
|
+
};
|
|
1982
|
+
tags: string[];
|
|
1983
|
+
}
|
|
1984
|
+
interface IFileGroupingOptions {
|
|
1985
|
+
groupBy: 'type' | 'status' | 'date' | 'size' | 'user' | 'none';
|
|
1986
|
+
sortBy: 'name' | 'size' | 'date' | 'type';
|
|
1987
|
+
sortOrder: 'asc' | 'desc';
|
|
1988
|
+
}
|
|
1989
|
+
|
|
2072
1990
|
interface FileUploadOptions {
|
|
2073
1991
|
altText?: string;
|
|
2074
1992
|
userId?: string;
|
|
@@ -2076,9 +1994,10 @@ interface FileUploadOptions {
|
|
|
2076
1994
|
tags?: string[];
|
|
2077
1995
|
fileStatus?: string;
|
|
2078
1996
|
groupId?: string;
|
|
1997
|
+
isMultiple?: boolean;
|
|
2079
1998
|
retryAttempts?: number;
|
|
2080
1999
|
timeout?: number;
|
|
2081
|
-
[key: string]: string | number | string[] | undefined;
|
|
2000
|
+
[key: string]: string | number | string[] | undefined | boolean;
|
|
2082
2001
|
}
|
|
2083
2002
|
interface UploadProgress {
|
|
2084
2003
|
loaded: number;
|
|
@@ -2193,6 +2112,15 @@ declare class CideEleFileManagerService {
|
|
|
2193
2112
|
* @returns Array of files for the group
|
|
2194
2113
|
*/
|
|
2195
2114
|
getFetchedFilesByGroupId(groupId: string): any[];
|
|
2115
|
+
/**
|
|
2116
|
+
* Signal to trigger floating uploader visibility
|
|
2117
|
+
*/
|
|
2118
|
+
private readonly _showFloatingUploader;
|
|
2119
|
+
readonly showFloatingUploader: _angular_core.Signal<boolean>;
|
|
2120
|
+
/**
|
|
2121
|
+
* Trigger floating uploader to show
|
|
2122
|
+
*/
|
|
2123
|
+
triggerFloatingUploaderShow(): void;
|
|
2196
2124
|
/**
|
|
2197
2125
|
* Get all files (active uploads + fetched files) for a group ID
|
|
2198
2126
|
* @param groupId The group ID to get files for
|
|
@@ -2457,5 +2385,5 @@ declare class CideEleJsonEditorComponent implements OnInit, ControlValueAccessor
|
|
|
2457
2385
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<CideEleJsonEditorComponent, "cide-ele-json-editor", never, { "label": { "alias": "label"; "required": false; }; "helperText": { "alias": "helperText"; "required": false; }; "required": { "alias": "required"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "showCharacterCount": { "alias": "showCharacterCount"; "required": false; }; "config": { "alias": "config"; "required": false; }; }, { "valueChange": "valueChange"; "objectChange": "objectChange"; "errorsChange": "errorsChange"; "validChange": "validChange"; }, never, never, true, never>;
|
|
2458
2386
|
}
|
|
2459
2387
|
|
|
2460
|
-
export { CideCoreFileManagerService, CideEleButtonComponent, CideEleConfirmationModalComponent, CideEleDataGridComponent, CideEleDropdownComponent, CideEleFileImageDirective, CideEleFileInputComponent, CideEleFileManagerService, CideEleFloatingFileUploaderComponent,
|
|
2388
|
+
export { CideCoreFileManagerService, CideEleButtonComponent, CideEleConfirmationModalComponent, CideEleDataGridComponent, CideEleDropdownComponent, CideEleFileImageDirective, CideEleFileInputComponent, CideEleFileManagerService, CideEleFloatingFileUploaderComponent, CideEleGlobalNotificationsComponent, CideEleJsonEditorComponent, CideEleResizerDirective, CideEleSkeletonLoaderComponent, CideEleTabComponent, CideEleToastNotificationComponent, CideElementsService, CideFloatingUploadTriggerDirective, CideIconComponent, CideInputComponent, CideSelectComponent, CideSelectOptionComponent, CideSpinnerComponent, CideTextareaComponent, ConfirmationService, CoreFileManagerInsertUpdatePayload, DEFAULT_GRID_CONFIG, DropdownManagerService, ICoreCyfmSave, MFileManager, NotificationService, TooltipDirective };
|
|
2461
2389
|
export type { ButtonElevation, ButtonShape, ButtonSize, ButtonType, ButtonVariant, CideEleResizerDirection, CideEleResizerDirectionTo, ColumnType, ColumnWidth, ConfirmationOptions, ConfirmationRequest, CoreFileManagerInsertUpdateResponse, DropdownConfig, DropdownInstance, DropdownItem, DropdownPosition, ErrorValidationStatus, FileUploadData, FileUploadOptions, GridAction, GridColumn, GridConfiguration, GridCustomFormatter, GridCustomRenderer, GridDragDropConfig, GridEvent, GridEventHandler, GridExportConfig, GridFormatter, GridLoadingConfig, GridPaginationConfig, GridScrollConfig, GridSearchConfig, GridState, GridTreeConfig, ICoreCyfm, ICoreFileManager, IFileDeleteResponse, IFileFilterOptions, IFileGroupingOptions, IFileListRequest, IFileListResponse, IFileManagerErrorLogger, IFileUpdateRequest, IFileUpdateResponse, IFileUploadProgress, IFileUploadQueueItem, IFileUploadRequest, IFileUploadResponse, JsonEditorConfig, JsonEditorError, NotificationItem, NotificationOptions, SelectOption, SelectOptionObject, ServiceState, StatusConfig, TabItem, TemplateContext, TemplateRenderer, TextAlign, TooltipPlacement, TooltipType, UploadProgress, ValidationStatus, controllerResponse, fileManagerControllerResponse, fileManagerResponseData, mongooseObjectIdCreateControllerResponse };
|