cloud-ide-element 1.0.70 → 1.0.71

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.
@@ -3187,6 +3187,7 @@ class CideEleFileInputComponent {
3187
3187
  uploadNotificationId = signal(null, ...(ngDevMode ? [{ debugName: "uploadNotificationId" }] : []));
3188
3188
  isDragOver = signal(false, ...(ngDevMode ? [{ debugName: "isDragOver" }] : []));
3189
3189
  groupId = signal(null, ...(ngDevMode ? [{ debugName: "groupId" }] : [])); // Group ID for multiple file uploads
3190
+ isMultipleUploadMode = signal(false, ...(ngDevMode ? [{ debugName: "isMultipleUploadMode" }] : [])); // Flag to track if we're in multiple upload mode
3190
3191
  // Computed signals for better relationships
3191
3192
  hasFiles = computed(() => this.files() !== null && this.files().length > 0, ...(ngDevMode ? [{ debugName: "hasFiles" }] : []));
3192
3193
  canUpload = computed(() => this.hasFiles() && !this.isUploading() && !this.disabledSignal(), ...(ngDevMode ? [{ debugName: "canUpload" }] : []));
@@ -3445,8 +3446,14 @@ class CideEleFileInputComponent {
3445
3446
  // Set the uploaded ID as the form control value
3446
3447
  this.onChange(uploadedId);
3447
3448
  console.log('📝 [FileInput] Form control value set to uploaded ID:', uploadedId);
3448
- this.uploadSuccess.emit(uploadedId);
3449
- console.log('📝 [FileInput] Upload success event emitted with file ID:', uploadedId);
3449
+ // Only emit individual uploadSuccess if not in multiple upload mode
3450
+ if (!this.isMultipleUploadMode()) {
3451
+ this.uploadSuccess.emit(uploadedId);
3452
+ console.log('📝 [FileInput] Upload success event emitted with file ID:', uploadedId);
3453
+ }
3454
+ else {
3455
+ console.log('📝 [FileInput] Individual upload success suppressed (multiple upload mode) - file ID:', uploadedId);
3456
+ }
3450
3457
  }
3451
3458
  else {
3452
3459
  console.error('❌ [FileInput] Upload successful but no ID returned:', response);
@@ -3485,6 +3492,8 @@ class CideEleFileInputComponent {
3485
3492
  */
3486
3493
  uploadMultipleFiles(files) {
3487
3494
  console.log('📤 [FileInput] uploadMultipleFiles called for:', files.length, 'files');
3495
+ // Set multiple upload mode flag
3496
+ this.isMultipleUploadMode.set(true);
3488
3497
  // Set upload status to 'start' before starting upload
3489
3498
  this.uploadStatus.set('start');
3490
3499
  this.isUploading.set(true);
@@ -3608,6 +3617,8 @@ class CideEleFileInputComponent {
3608
3617
  this.notificationService.error(`❌ All ${total} files failed to upload.`, { duration: 0 });
3609
3618
  this.uploadError.emit('All files failed to upload');
3610
3619
  }
3620
+ // Reset multiple upload mode flag
3621
+ this.isMultipleUploadMode.set(false);
3611
3622
  }
3612
3623
  generatePreviews() {
3613
3624
  // Clear existing previews