cloud-ide-element 1.0.95 → 1.0.97
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 +283 -490
- package/fesm2022/cloud-ide-element.mjs.map +1 -1
- package/index.d.ts +265 -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" | "start" | "success" | "idle">;
|
|
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" | "start" | "success" | "idle";
|
|
715
715
|
isUploading: boolean;
|
|
716
716
|
uploadProgress: number;
|
|
717
717
|
files: {
|
|
@@ -737,331 +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_ismultiple?: boolean;
|
|
815
|
-
cyfm_file_base64: string;
|
|
816
|
-
cyfm_temp_unique_id: string;
|
|
817
|
-
constructor(init: ICoreCyfmSave);
|
|
818
|
-
}
|
|
819
|
-
declare class CoreFileManagerInsertUpdatePayload {
|
|
820
|
-
core_file_manager_new: ICoreCyfmSave[];
|
|
821
|
-
core_file_manager_update: ICoreCyfm[];
|
|
822
|
-
core_file_manager_delete: ICoreCyfm[];
|
|
823
|
-
constructor(init: CoreFileManagerInsertUpdatePayload);
|
|
824
|
-
Validate?(): Partial<IFileManagerErrorLogger>;
|
|
825
|
-
}
|
|
826
|
-
interface fileManagerResponseData extends ICoreCyfm {
|
|
827
|
-
cyfm_file_base64: string;
|
|
828
|
-
}
|
|
829
|
-
interface fileManagerControllerResponse extends controllerResponse {
|
|
830
|
-
data?: fileManagerResponseData[];
|
|
831
|
-
}
|
|
832
|
-
interface CoreFileManagerInsertUpdateResponse extends controllerResponse {
|
|
833
|
-
data?: {
|
|
834
|
-
core_file_manager: {
|
|
835
|
-
cyfm_id: string;
|
|
836
|
-
cyfm_temp_unique_id: string;
|
|
837
|
-
}[];
|
|
838
|
-
};
|
|
839
|
-
}
|
|
840
|
-
interface mongooseObjectIdCreateControllerResponse extends controllerResponse {
|
|
841
|
-
data?: {
|
|
842
|
-
objectId: string;
|
|
843
|
-
};
|
|
844
|
-
}
|
|
845
|
-
interface IFileUploadRequest {
|
|
846
|
-
file: File;
|
|
847
|
-
altText?: string;
|
|
848
|
-
tags?: string[];
|
|
849
|
-
permissions?: string[];
|
|
850
|
-
userId?: string;
|
|
851
|
-
groupId?: string;
|
|
852
|
-
[key: string]: string | number | string[] | File | undefined;
|
|
853
|
-
}
|
|
854
|
-
interface IFileUploadResponse {
|
|
855
|
-
success: boolean;
|
|
856
|
-
message: string;
|
|
857
|
-
data?: ICoreFileManager;
|
|
858
|
-
error?: string;
|
|
859
|
-
}
|
|
860
|
-
interface IFileListRequest {
|
|
861
|
-
pageIndex: number;
|
|
862
|
-
pageSize: number;
|
|
863
|
-
search?: string;
|
|
864
|
-
fileType?: string;
|
|
865
|
-
status?: string;
|
|
866
|
-
userId?: string;
|
|
867
|
-
tags?: string[];
|
|
868
|
-
sortBy?: string;
|
|
869
|
-
sortOrder?: 'asc' | 'desc';
|
|
870
|
-
}
|
|
871
|
-
interface IFileListResponse {
|
|
872
|
-
success: boolean;
|
|
873
|
-
message: string;
|
|
874
|
-
data: ICoreFileManager[];
|
|
875
|
-
total: number;
|
|
876
|
-
pageIndex: number;
|
|
877
|
-
pageSize: number;
|
|
878
|
-
}
|
|
879
|
-
interface IFileDeleteResponse {
|
|
880
|
-
success: boolean;
|
|
881
|
-
message: string;
|
|
882
|
-
data?: string;
|
|
883
|
-
}
|
|
884
|
-
interface IFileUpdateRequest {
|
|
885
|
-
_id: string;
|
|
886
|
-
cyfm_name?: string;
|
|
887
|
-
cyfm_alt_text?: string;
|
|
888
|
-
cyfm_tags?: string[];
|
|
889
|
-
cyfm_permissions?: string[];
|
|
890
|
-
cyfm_file_status_sygmt?: string;
|
|
891
|
-
cyfm_isactive?: boolean;
|
|
892
|
-
}
|
|
893
|
-
interface IFileUpdateResponse {
|
|
894
|
-
success: boolean;
|
|
895
|
-
message: string;
|
|
896
|
-
data?: ICoreFileManager;
|
|
897
|
-
}
|
|
898
|
-
interface IFileUploadProgress {
|
|
899
|
-
fileId: string;
|
|
900
|
-
fileName: string;
|
|
901
|
-
progress: number;
|
|
902
|
-
status: 'pending' | 'uploading' | 'completed' | 'error' | 'cancelled';
|
|
903
|
-
error?: string;
|
|
904
|
-
uploadedFile?: any;
|
|
905
|
-
}
|
|
906
|
-
interface IFileUploadQueueItem extends IFileUploadProgress {
|
|
907
|
-
file: File;
|
|
908
|
-
}
|
|
909
|
-
interface IFileFilterOptions {
|
|
910
|
-
fileTypes: string[];
|
|
911
|
-
statuses: string[];
|
|
912
|
-
dateRange?: {
|
|
913
|
-
start: Date;
|
|
914
|
-
end: Date;
|
|
915
|
-
};
|
|
916
|
-
sizeRange?: {
|
|
917
|
-
min: number;
|
|
918
|
-
max: number;
|
|
919
|
-
};
|
|
920
|
-
tags: string[];
|
|
921
|
-
}
|
|
922
|
-
interface IFileGroupingOptions {
|
|
923
|
-
groupBy: 'type' | 'status' | 'date' | 'size' | 'user' | 'none';
|
|
924
|
-
sortBy: 'name' | 'size' | 'date' | 'type';
|
|
925
|
-
sortOrder: 'asc' | 'desc';
|
|
926
|
-
}
|
|
927
|
-
|
|
928
|
-
declare class CideEleGlobalFileUploaderComponent {
|
|
929
|
-
private destroyRef;
|
|
930
|
-
private fileService;
|
|
931
|
-
userId: string;
|
|
932
|
-
multiple: boolean;
|
|
933
|
-
accept: string;
|
|
934
|
-
maxFileSize: number;
|
|
935
|
-
allowedTypes: string[];
|
|
936
|
-
uploadComplete: EventEmitter<IFileUploadProgress>;
|
|
937
|
-
uploadError: EventEmitter<{
|
|
938
|
-
fileId: string;
|
|
939
|
-
error: string;
|
|
940
|
-
}>;
|
|
941
|
-
uploadCancelled: EventEmitter<string>;
|
|
942
|
-
allUploadsComplete: EventEmitter<{
|
|
943
|
-
groupId: string;
|
|
944
|
-
uploadedFiles: any[];
|
|
945
|
-
}>;
|
|
946
|
-
isDragOver: _angular_core.WritableSignal<boolean>;
|
|
947
|
-
isUploading: _angular_core.WritableSignal<boolean>;
|
|
948
|
-
uploadQueue: _angular_core.WritableSignal<IFileUploadQueueItem[]>;
|
|
949
|
-
currentGroupId: _angular_core.WritableSignal<string | null>;
|
|
950
|
-
hasUploads: _angular_core.Signal<boolean>;
|
|
951
|
-
pendingUploads: _angular_core.Signal<IFileUploadQueueItem[]>;
|
|
952
|
-
activeUploads: _angular_core.Signal<IFileUploadQueueItem[]>;
|
|
953
|
-
completedUploads: _angular_core.Signal<IFileUploadQueueItem[]>;
|
|
954
|
-
failedUploads: _angular_core.Signal<IFileUploadQueueItem[]>;
|
|
955
|
-
constructor();
|
|
956
|
-
/**
|
|
957
|
-
* Handle drag over event
|
|
958
|
-
*/
|
|
959
|
-
onDragOver(event: DragEvent): void;
|
|
960
|
-
/**
|
|
961
|
-
* Handle drag leave event
|
|
962
|
-
*/
|
|
963
|
-
onDragLeave(event: DragEvent): void;
|
|
964
|
-
/**
|
|
965
|
-
* Handle drop event
|
|
966
|
-
*/
|
|
967
|
-
onDrop(event: DragEvent): void;
|
|
968
|
-
/**
|
|
969
|
-
* Handle file input change
|
|
970
|
-
*/
|
|
971
|
-
onFileInputChange(event: Event): void;
|
|
972
|
-
/**
|
|
973
|
-
* Add files to upload queue
|
|
974
|
-
*/
|
|
975
|
-
private addFilesToQueue;
|
|
976
|
-
/**
|
|
977
|
-
* Validate file
|
|
978
|
-
*/
|
|
979
|
-
private validateFile;
|
|
980
|
-
/**
|
|
981
|
-
* Process upload queue
|
|
982
|
-
*/
|
|
983
|
-
private processUploadQueue;
|
|
984
|
-
/**
|
|
985
|
-
* Upload multiple files with group ID
|
|
986
|
-
*/
|
|
987
|
-
private uploadMultipleFiles;
|
|
988
|
-
/**
|
|
989
|
-
* Upload files with group ID
|
|
990
|
-
*/
|
|
991
|
-
private uploadFilesWithGroupId;
|
|
992
|
-
/**
|
|
993
|
-
* Handle multiple upload completion
|
|
994
|
-
*/
|
|
995
|
-
private handleMultipleUploadComplete;
|
|
996
|
-
/**
|
|
997
|
-
* Upload next file in queue (single file mode)
|
|
998
|
-
*/
|
|
999
|
-
private uploadNextFile;
|
|
1000
|
-
/**
|
|
1001
|
-
* Update upload progress
|
|
1002
|
-
*/
|
|
1003
|
-
private updateUploadProgress;
|
|
1004
|
-
/**
|
|
1005
|
-
* Update upload status
|
|
1006
|
-
*/
|
|
1007
|
-
private updateUploadStatus;
|
|
1008
|
-
/**
|
|
1009
|
-
* Update upload status by cyfm_temp_unique_id
|
|
1010
|
-
*/
|
|
1011
|
-
private updateUploadStatusByTempId;
|
|
1012
|
-
/**
|
|
1013
|
-
* Handle upload error
|
|
1014
|
-
*/
|
|
1015
|
-
private handleUploadError;
|
|
1016
|
-
/**
|
|
1017
|
-
* Cancel upload
|
|
1018
|
-
*/
|
|
1019
|
-
cancelUpload(fileId: string): void;
|
|
1020
|
-
/**
|
|
1021
|
-
* Retry upload
|
|
1022
|
-
*/
|
|
1023
|
-
retryUpload(fileId: string): void;
|
|
1024
|
-
/**
|
|
1025
|
-
* Remove upload from queue
|
|
1026
|
-
*/
|
|
1027
|
-
removeUpload(fileId: string): void;
|
|
1028
|
-
/**
|
|
1029
|
-
* Clear completed uploads
|
|
1030
|
-
*/
|
|
1031
|
-
clearCompleted(): void;
|
|
1032
|
-
/**
|
|
1033
|
-
* Clear all uploads
|
|
1034
|
-
*/
|
|
1035
|
-
clearAll(): void;
|
|
1036
|
-
/**
|
|
1037
|
-
* Get status icon
|
|
1038
|
-
*/
|
|
1039
|
-
getStatusIcon(status: IFileUploadProgress['status']): string;
|
|
1040
|
-
/**
|
|
1041
|
-
* Get status class
|
|
1042
|
-
*/
|
|
1043
|
-
getStatusClass(status: IFileUploadProgress['status']): string;
|
|
1044
|
-
/**
|
|
1045
|
-
* Get file size display
|
|
1046
|
-
*/
|
|
1047
|
-
getFileSizeDisplay(file: File): string;
|
|
1048
|
-
/**
|
|
1049
|
-
* Generate unique file ID - this should match the service's generateFileId method
|
|
1050
|
-
* The service uses: ${file.name}_${file.size}_${Date.now()}
|
|
1051
|
-
*/
|
|
1052
|
-
private generateFileId;
|
|
1053
|
-
/**
|
|
1054
|
-
* Convert IFileUploadRequest to FileUploadOptions
|
|
1055
|
-
*/
|
|
1056
|
-
private convertToFileUploadOptions;
|
|
1057
|
-
/**
|
|
1058
|
-
* Trigger file input click
|
|
1059
|
-
*/
|
|
1060
|
-
triggerFileInput(): void;
|
|
1061
|
-
static ɵfac: _angular_core.ɵɵFactoryDeclaration<CideEleGlobalFileUploaderComponent, never>;
|
|
1062
|
-
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>;
|
|
1063
|
-
}
|
|
1064
|
-
|
|
1065
740
|
declare class CideEleFloatingFileUploaderComponent implements OnInit, OnDestroy {
|
|
1066
741
|
private destroyRef;
|
|
1067
742
|
private fileManagerService;
|
|
@@ -1078,6 +753,19 @@ declare class CideEleFloatingFileUploaderComponent implements OnInit, OnDestroy
|
|
|
1078
753
|
completedUploads: _angular_core.Signal<cloud_ide_element.UploadProgress[]>;
|
|
1079
754
|
failedUploads: _angular_core.Signal<cloud_ide_element.UploadProgress[]>;
|
|
1080
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>;
|
|
766
|
+
private windowResizeHandler?;
|
|
767
|
+
private cachedDimensions;
|
|
768
|
+
private lastDimensionUpdate;
|
|
1081
769
|
constructor();
|
|
1082
770
|
ngOnInit(): void;
|
|
1083
771
|
ngOnDestroy(): void;
|
|
@@ -1188,6 +876,58 @@ declare class CideEleFloatingFileUploaderComponent implements OnInit, OnDestroy
|
|
|
1188
876
|
* Check if there are any uploads for the current group
|
|
1189
877
|
*/
|
|
1190
878
|
hasUploadsForCurrentGroup(): boolean;
|
|
879
|
+
/**
|
|
880
|
+
* Handle drag over event for file drop
|
|
881
|
+
*/
|
|
882
|
+
onDragOver(event: DragEvent): void;
|
|
883
|
+
/**
|
|
884
|
+
* Handle drag leave event for file drop
|
|
885
|
+
*/
|
|
886
|
+
onDragLeave(event: DragEvent): void;
|
|
887
|
+
/**
|
|
888
|
+
* Handle drop event for file drop
|
|
889
|
+
*/
|
|
890
|
+
onDrop(event: DragEvent): void;
|
|
891
|
+
/**
|
|
892
|
+
* Trigger file input click
|
|
893
|
+
*/
|
|
894
|
+
triggerFileInput(): void;
|
|
895
|
+
/**
|
|
896
|
+
* Handle file input change
|
|
897
|
+
*/
|
|
898
|
+
onFileInputChange(event: Event): void;
|
|
899
|
+
/**
|
|
900
|
+
* Handle file selection from drag/drop or file input
|
|
901
|
+
*/
|
|
902
|
+
private handleFileSelection;
|
|
903
|
+
/**
|
|
904
|
+
* Generate a unique group ID
|
|
905
|
+
*/
|
|
906
|
+
private generateGroupId;
|
|
907
|
+
/**
|
|
908
|
+
* Update cached dimensions (throttled for performance)
|
|
909
|
+
*/
|
|
910
|
+
private updateCachedDimensions;
|
|
911
|
+
/**
|
|
912
|
+
* Start dragging the uploader
|
|
913
|
+
*/
|
|
914
|
+
startDrag(event: MouseEvent | TouchEvent): void;
|
|
915
|
+
/**
|
|
916
|
+
* Handle dragging movement
|
|
917
|
+
*/
|
|
918
|
+
private onDrag;
|
|
919
|
+
/**
|
|
920
|
+
* End dragging
|
|
921
|
+
*/
|
|
922
|
+
private endDrag;
|
|
923
|
+
/**
|
|
924
|
+
* Set up window resize listener to keep uploader within bounds
|
|
925
|
+
*/
|
|
926
|
+
private setupWindowResize;
|
|
927
|
+
/**
|
|
928
|
+
* Initialize default position
|
|
929
|
+
*/
|
|
930
|
+
private initializePosition;
|
|
1191
931
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<CideEleFloatingFileUploaderComponent, never>;
|
|
1192
932
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<CideEleFloatingFileUploaderComponent, "cide-ele-floating-file-uploader", never, {}, {}, never, never, true, never>;
|
|
1193
933
|
}
|
|
@@ -2070,6 +1810,194 @@ declare class NotificationService {
|
|
|
2070
1810
|
static ɵprov: _angular_core.ɵɵInjectableDeclaration<NotificationService>;
|
|
2071
1811
|
}
|
|
2072
1812
|
|
|
1813
|
+
/**
|
|
1814
|
+
* File Manager Interfaces
|
|
1815
|
+
* Based on core_file_manager table schema
|
|
1816
|
+
*/
|
|
1817
|
+
interface ICoreCyfm {
|
|
1818
|
+
_id?: string;
|
|
1819
|
+
cyfm_name?: string;
|
|
1820
|
+
cyfm_alt_text?: string;
|
|
1821
|
+
cyfm_path?: string;
|
|
1822
|
+
cyfm_size_in_byte?: number;
|
|
1823
|
+
cyfm_type?: string;
|
|
1824
|
+
cyfm_creation_dt?: string;
|
|
1825
|
+
cyfm_id_user?: string;
|
|
1826
|
+
cyfm_permissions?: string[];
|
|
1827
|
+
cyfm_tags?: string[];
|
|
1828
|
+
cyfm_version?: number;
|
|
1829
|
+
cyfm_file_status_sygmt?: string;
|
|
1830
|
+
cyfm_group_id?: string;
|
|
1831
|
+
cyfm_ismultiple?: boolean;
|
|
1832
|
+
cyfm_isactive?: boolean;
|
|
1833
|
+
}
|
|
1834
|
+
interface ICoreFileManager extends ICoreCyfm {
|
|
1835
|
+
_id: string;
|
|
1836
|
+
cyfm_name: string;
|
|
1837
|
+
cyfm_path: string;
|
|
1838
|
+
cyfm_size_in_byte: number;
|
|
1839
|
+
cyfm_type: string;
|
|
1840
|
+
cyfm_creation_dt: string;
|
|
1841
|
+
cyfm_id_user: string;
|
|
1842
|
+
cyfm_permissions: string[];
|
|
1843
|
+
cyfm_tags: string[];
|
|
1844
|
+
cyfm_version: number;
|
|
1845
|
+
cyfm_file_status_sygmt: string;
|
|
1846
|
+
cyfm_group_id?: string;
|
|
1847
|
+
cyfm_ismultiple?: boolean;
|
|
1848
|
+
cyfm_isactive: boolean;
|
|
1849
|
+
}
|
|
1850
|
+
interface controllerResponse {
|
|
1851
|
+
success?: boolean;
|
|
1852
|
+
error_code?: string;
|
|
1853
|
+
message?: string;
|
|
1854
|
+
data?: any;
|
|
1855
|
+
code?: string;
|
|
1856
|
+
action?: string;
|
|
1857
|
+
total?: number;
|
|
1858
|
+
pageIndex?: number;
|
|
1859
|
+
pageSize?: number;
|
|
1860
|
+
controls?: {
|
|
1861
|
+
[key: string]: string;
|
|
1862
|
+
};
|
|
1863
|
+
}
|
|
1864
|
+
type IFileManagerErrorLogger = {
|
|
1865
|
+
[key in keyof MFileManager]: string;
|
|
1866
|
+
};
|
|
1867
|
+
declare class MFileManager {
|
|
1868
|
+
cyfm_id: string;
|
|
1869
|
+
constructor(init: MFileManager);
|
|
1870
|
+
Validate?(): Partial<IFileManagerErrorLogger>;
|
|
1871
|
+
}
|
|
1872
|
+
declare class ICoreCyfmSave implements ICoreCyfm {
|
|
1873
|
+
_id?: string;
|
|
1874
|
+
cyfm_name?: string;
|
|
1875
|
+
cyfm_alt_text?: string;
|
|
1876
|
+
cyfm_path?: string;
|
|
1877
|
+
cyfm_size_in_byte?: number;
|
|
1878
|
+
cyfm_type?: string;
|
|
1879
|
+
cyfm_creation_dt?: string;
|
|
1880
|
+
cyfm_id_user?: string;
|
|
1881
|
+
cyfm_permissions?: string[];
|
|
1882
|
+
cyfm_tags?: string[];
|
|
1883
|
+
cyfm_version?: number;
|
|
1884
|
+
cyfm_file_status_sygmt?: string;
|
|
1885
|
+
cyfm_group_id?: string;
|
|
1886
|
+
cyfm_isactive?: boolean;
|
|
1887
|
+
cyfm_ismultiple?: boolean;
|
|
1888
|
+
cyfm_file_base64: string;
|
|
1889
|
+
cyfm_temp_unique_id: string;
|
|
1890
|
+
constructor(init: ICoreCyfmSave);
|
|
1891
|
+
}
|
|
1892
|
+
declare class CoreFileManagerInsertUpdatePayload {
|
|
1893
|
+
core_file_manager_new: ICoreCyfmSave[];
|
|
1894
|
+
core_file_manager_update: ICoreCyfm[];
|
|
1895
|
+
core_file_manager_delete: ICoreCyfm[];
|
|
1896
|
+
constructor(init: CoreFileManagerInsertUpdatePayload);
|
|
1897
|
+
Validate?(): Partial<IFileManagerErrorLogger>;
|
|
1898
|
+
}
|
|
1899
|
+
interface fileManagerResponseData extends ICoreCyfm {
|
|
1900
|
+
cyfm_file_base64: string;
|
|
1901
|
+
}
|
|
1902
|
+
interface fileManagerControllerResponse extends controllerResponse {
|
|
1903
|
+
data?: fileManagerResponseData[];
|
|
1904
|
+
}
|
|
1905
|
+
interface CoreFileManagerInsertUpdateResponse extends controllerResponse {
|
|
1906
|
+
data?: {
|
|
1907
|
+
core_file_manager: {
|
|
1908
|
+
cyfm_id: string;
|
|
1909
|
+
cyfm_temp_unique_id: string;
|
|
1910
|
+
}[];
|
|
1911
|
+
};
|
|
1912
|
+
}
|
|
1913
|
+
interface mongooseObjectIdCreateControllerResponse extends controllerResponse {
|
|
1914
|
+
data?: {
|
|
1915
|
+
objectId: string;
|
|
1916
|
+
};
|
|
1917
|
+
}
|
|
1918
|
+
interface IFileUploadRequest {
|
|
1919
|
+
file: File;
|
|
1920
|
+
altText?: string;
|
|
1921
|
+
tags?: string[];
|
|
1922
|
+
permissions?: string[];
|
|
1923
|
+
userId?: string;
|
|
1924
|
+
groupId?: string;
|
|
1925
|
+
[key: string]: string | number | string[] | File | undefined;
|
|
1926
|
+
}
|
|
1927
|
+
interface IFileUploadResponse {
|
|
1928
|
+
success: boolean;
|
|
1929
|
+
message: string;
|
|
1930
|
+
data?: ICoreFileManager;
|
|
1931
|
+
error?: string;
|
|
1932
|
+
}
|
|
1933
|
+
interface IFileListRequest {
|
|
1934
|
+
pageIndex: number;
|
|
1935
|
+
pageSize: number;
|
|
1936
|
+
search?: string;
|
|
1937
|
+
fileType?: string;
|
|
1938
|
+
status?: string;
|
|
1939
|
+
userId?: string;
|
|
1940
|
+
tags?: string[];
|
|
1941
|
+
sortBy?: string;
|
|
1942
|
+
sortOrder?: 'asc' | 'desc';
|
|
1943
|
+
}
|
|
1944
|
+
interface IFileListResponse {
|
|
1945
|
+
success: boolean;
|
|
1946
|
+
message: string;
|
|
1947
|
+
data: ICoreFileManager[];
|
|
1948
|
+
total: number;
|
|
1949
|
+
pageIndex: number;
|
|
1950
|
+
pageSize: number;
|
|
1951
|
+
}
|
|
1952
|
+
interface IFileDeleteResponse {
|
|
1953
|
+
success: boolean;
|
|
1954
|
+
message: string;
|
|
1955
|
+
data?: string;
|
|
1956
|
+
}
|
|
1957
|
+
interface IFileUpdateRequest {
|
|
1958
|
+
_id: string;
|
|
1959
|
+
cyfm_name?: string;
|
|
1960
|
+
cyfm_alt_text?: string;
|
|
1961
|
+
cyfm_tags?: string[];
|
|
1962
|
+
cyfm_permissions?: string[];
|
|
1963
|
+
cyfm_file_status_sygmt?: string;
|
|
1964
|
+
cyfm_isactive?: boolean;
|
|
1965
|
+
}
|
|
1966
|
+
interface IFileUpdateResponse {
|
|
1967
|
+
success: boolean;
|
|
1968
|
+
message: string;
|
|
1969
|
+
data?: ICoreFileManager;
|
|
1970
|
+
}
|
|
1971
|
+
interface IFileUploadProgress {
|
|
1972
|
+
fileId: string;
|
|
1973
|
+
fileName: string;
|
|
1974
|
+
progress: number;
|
|
1975
|
+
status: 'pending' | 'uploading' | 'completed' | 'error' | 'cancelled';
|
|
1976
|
+
error?: string;
|
|
1977
|
+
uploadedFile?: any;
|
|
1978
|
+
}
|
|
1979
|
+
interface IFileUploadQueueItem extends IFileUploadProgress {
|
|
1980
|
+
file: File;
|
|
1981
|
+
}
|
|
1982
|
+
interface IFileFilterOptions {
|
|
1983
|
+
fileTypes: string[];
|
|
1984
|
+
statuses: string[];
|
|
1985
|
+
dateRange?: {
|
|
1986
|
+
start: Date;
|
|
1987
|
+
end: Date;
|
|
1988
|
+
};
|
|
1989
|
+
sizeRange?: {
|
|
1990
|
+
min: number;
|
|
1991
|
+
max: number;
|
|
1992
|
+
};
|
|
1993
|
+
tags: string[];
|
|
1994
|
+
}
|
|
1995
|
+
interface IFileGroupingOptions {
|
|
1996
|
+
groupBy: 'type' | 'status' | 'date' | 'size' | 'user' | 'none';
|
|
1997
|
+
sortBy: 'name' | 'size' | 'date' | 'type';
|
|
1998
|
+
sortOrder: 'asc' | 'desc';
|
|
1999
|
+
}
|
|
2000
|
+
|
|
2073
2001
|
interface FileUploadOptions {
|
|
2074
2002
|
altText?: string;
|
|
2075
2003
|
userId?: string;
|
|
@@ -2195,6 +2123,15 @@ declare class CideEleFileManagerService {
|
|
|
2195
2123
|
* @returns Array of files for the group
|
|
2196
2124
|
*/
|
|
2197
2125
|
getFetchedFilesByGroupId(groupId: string): any[];
|
|
2126
|
+
/**
|
|
2127
|
+
* Signal to trigger floating uploader visibility
|
|
2128
|
+
*/
|
|
2129
|
+
private readonly _showFloatingUploader;
|
|
2130
|
+
readonly showFloatingUploader: _angular_core.Signal<boolean>;
|
|
2131
|
+
/**
|
|
2132
|
+
* Trigger floating uploader to show
|
|
2133
|
+
*/
|
|
2134
|
+
triggerFloatingUploaderShow(): void;
|
|
2198
2135
|
/**
|
|
2199
2136
|
* Get all files (active uploads + fetched files) for a group ID
|
|
2200
2137
|
* @param groupId The group ID to get files for
|
|
@@ -2459,5 +2396,5 @@ declare class CideEleJsonEditorComponent implements OnInit, ControlValueAccessor
|
|
|
2459
2396
|
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>;
|
|
2460
2397
|
}
|
|
2461
2398
|
|
|
2462
|
-
export { CideCoreFileManagerService, CideEleButtonComponent, CideEleConfirmationModalComponent, CideEleDataGridComponent, CideEleDropdownComponent, CideEleFileImageDirective, CideEleFileInputComponent, CideEleFileManagerService, CideEleFloatingFileUploaderComponent,
|
|
2399
|
+
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 };
|
|
2463
2400
|
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 };
|