cloud-ide-element 1.0.77 → 1.0.79

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/index.d.ts CHANGED
@@ -595,7 +595,7 @@ declare class CideEleFileInputComponent implements ControlValueAccessor, OnDestr
595
595
  readonly id: _angular_core.WritableSignal<string>;
596
596
  readonly isUploading: _angular_core.WritableSignal<boolean>;
597
597
  readonly uploadProgress: _angular_core.WritableSignal<number>;
598
- readonly uploadStatus: _angular_core.WritableSignal<"uploading" | "error" | "start" | "success" | "idle">;
598
+ readonly uploadStatus: _angular_core.WritableSignal<"error" | "start" | "success" | "uploading" | "idle">;
599
599
  readonly files: _angular_core.WritableSignal<FileList | null>;
600
600
  readonly fileNames: _angular_core.WritableSignal<string[]>;
601
601
  readonly previewUrls: _angular_core.WritableSignal<string[]>;
@@ -676,7 +676,7 @@ declare class CideEleFileInputComponent implements ControlValueAccessor, OnDestr
676
676
  multiple: boolean;
677
677
  showPreview: boolean;
678
678
  autoUpload: boolean;
679
- uploadStatus: "uploading" | "error" | "start" | "success" | "idle";
679
+ uploadStatus: "error" | "start" | "success" | "uploading" | "idle";
680
680
  isUploading: boolean;
681
681
  uploadProgress: number;
682
682
  files: {
@@ -1031,15 +1031,7 @@ declare class CideEleFloatingFileUploaderComponent implements OnInit, OnDestroy
1031
1031
  private fileManagerService;
1032
1032
  isVisible: _angular_core.WritableSignal<boolean>;
1033
1033
  isMinimized: _angular_core.WritableSignal<boolean>;
1034
- uploadQueue: _angular_core.WritableSignal<IFileUploadProgress[]>;
1035
- isUploading: _angular_core.WritableSignal<boolean>;
1036
- uploadProgress: _angular_core.WritableSignal<number>;
1037
1034
  currentUserId: _angular_core.WritableSignal<string>;
1038
- hasUploads: _angular_core.Signal<boolean>;
1039
- pendingUploads: _angular_core.Signal<IFileUploadProgress[]>;
1040
- activeUploads: _angular_core.Signal<IFileUploadProgress[]>;
1041
- completedUploads: _angular_core.Signal<IFileUploadProgress[]>;
1042
- failedUploads: _angular_core.Signal<IFileUploadProgress[]>;
1043
1035
  isAnimating: _angular_core.WritableSignal<boolean>;
1044
1036
  constructor();
1045
1037
  ngOnInit(): void;
@@ -1052,6 +1044,18 @@ declare class CideEleFloatingFileUploaderComponent implements OnInit, OnDestroy
1052
1044
  * Remove drag and drop listeners
1053
1045
  */
1054
1046
  private removeDragAndDropListeners;
1047
+ /**
1048
+ * Set up file input change listeners
1049
+ */
1050
+ private setupFileInputListeners;
1051
+ /**
1052
+ * Remove file input listeners
1053
+ */
1054
+ private removeFileInputListeners;
1055
+ /**
1056
+ * Handle file input change events
1057
+ */
1058
+ private handleFileInputChange;
1055
1059
  /**
1056
1060
  * Handle drag over event
1057
1061
  */
@@ -1069,9 +1073,9 @@ declare class CideEleFloatingFileUploaderComponent implements OnInit, OnDestroy
1069
1073
  */
1070
1074
  private handleFiles;
1071
1075
  /**
1072
- * Update visibility based on upload state
1076
+ * Update visibility - simplified for notification only
1073
1077
  */
1074
- private updateVisibility;
1078
+ updateVisibility(): void;
1075
1079
  /**
1076
1080
  * Show with animation
1077
1081
  */
@@ -1088,62 +1092,19 @@ declare class CideEleFloatingFileUploaderComponent implements OnInit, OnDestroy
1088
1092
  * Close the floating uploader
1089
1093
  */
1090
1094
  close(): void;
1091
- /**
1092
- * Clear all uploads
1093
- */
1094
- clearAllUploads(): void;
1095
- /**
1096
- * Clear completed uploads
1097
- */
1098
- clearCompletedUploads(): void;
1099
- /**
1100
- * Cancel upload
1101
- */
1102
- cancelUpload(fileId: string): void;
1103
- /**
1104
- * Retry upload
1105
- */
1106
- retryUpload(fileId: string): void;
1107
- /**
1108
- * Update upload progress
1109
- */
1110
- private updateUploadProgress;
1111
- /**
1112
- * Update upload status
1113
- */
1114
- private updateUploadStatus;
1115
- /**
1116
- * Get status icon
1117
- */
1118
- getStatusIcon(status: IFileUploadProgress['status']): string;
1119
- /**
1120
- * Get status class
1121
- */
1122
- getStatusClass(status: IFileUploadProgress['status']): string;
1123
- /**
1124
- * Get file size display
1125
- */
1126
- getFileSizeDisplay(size: number): string;
1127
- /**
1128
- * Get overall progress percentage
1129
- */
1130
- getOverallProgress(): number;
1131
1095
  /**
1132
1096
  * Get upload summary text
1133
1097
  */
1134
1098
  getUploadSummary(): string;
1135
- /**
1136
- * Generate unique file ID
1137
- */
1138
- private generateFileId;
1139
- /**
1140
- * Extract file name from file ID
1141
- */
1142
- private extractFileNameFromId;
1143
1099
  /**
1144
1100
  * Set current user ID
1145
1101
  */
1146
1102
  setCurrentUserId(userId: string): void;
1103
+ /**
1104
+ * Public method to handle files from external sources
1105
+ * This can be called by other components to trigger the floating uploader
1106
+ */
1107
+ handleExternalFiles(files: File[], userId?: string): void;
1147
1108
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<CideEleFloatingFileUploaderComponent, never>;
1148
1109
  static ɵcmp: _angular_core.ɵɵComponentDeclaration<CideEleFloatingFileUploaderComponent, "cide-ele-floating-file-uploader", never, {}, {}, never, never, true, never>;
1149
1110
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cloud-ide-element",
3
- "version": "1.0.77",
3
+ "version": "1.0.79",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^20.1.0",
6
6
  "@angular/core": "^20.1.0"