cloud-ide-element 1.0.68 → 1.0.70

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.
@@ -3154,7 +3154,6 @@ class CideEleFileInputComponent {
3154
3154
  placeholderIcon = '📷';
3155
3155
  autoUpload = false;
3156
3156
  uploadData = {};
3157
- multipleFileUpload = false; // New property for multiple file upload mode
3158
3157
  // Traditional @Output() decorators
3159
3158
  fileChange = new EventEmitter();
3160
3159
  uploadSuccess = new EventEmitter();
@@ -3177,7 +3176,6 @@ class CideEleFileInputComponent {
3177
3176
  placeholderIconSignal = signal(this.placeholderIcon, ...(ngDevMode ? [{ debugName: "placeholderIconSignal" }] : []));
3178
3177
  autoUploadSignal = signal(this.autoUpload, ...(ngDevMode ? [{ debugName: "autoUploadSignal" }] : []));
3179
3178
  uploadDataSignal = signal(this.uploadData, ...(ngDevMode ? [{ debugName: "uploadDataSignal" }] : []));
3180
- multipleFileUploadSignal = signal(this.multipleFileUpload, ...(ngDevMode ? [{ debugName: "multipleFileUploadSignal" }] : []));
3181
3179
  // Reactive state with signals
3182
3180
  id = signal(Math.random().toString(36).substring(2, 10), ...(ngDevMode ? [{ debugName: "id" }] : []));
3183
3181
  isUploading = signal(false, ...(ngDevMode ? [{ debugName: "isUploading" }] : []));
@@ -3251,7 +3249,6 @@ class CideEleFileInputComponent {
3251
3249
  this.placeholderIconSignal.set(this.placeholderIcon);
3252
3250
  this.autoUploadSignal.set(this.autoUpload);
3253
3251
  this.uploadDataSignal.set(this.uploadData);
3254
- this.multipleFileUploadSignal.set(this.multipleFileUpload);
3255
3252
  }
3256
3253
  ngOnChanges(changes) {
3257
3254
  // Angular 20: Update signals when @Input() values change
@@ -3287,8 +3284,6 @@ class CideEleFileInputComponent {
3287
3284
  this.autoUploadSignal.set(this.autoUpload);
3288
3285
  if (changes['uploadData'])
3289
3286
  this.uploadDataSignal.set(this.uploadData);
3290
- if (changes['multipleFileUpload'])
3291
- this.multipleFileUploadSignal.set(this.multipleFileUpload);
3292
3287
  }
3293
3288
  writeValue(value) {
3294
3289
  console.log('📝 [FileInput] writeValue called with:', value);
@@ -3346,7 +3341,7 @@ class CideEleFileInputComponent {
3346
3341
  this.onTouched();
3347
3342
  // Auto upload if enabled
3348
3343
  if (this.autoUploadSignal() && selectedFiles && selectedFiles.length > 0) {
3349
- if (this.multipleFileUploadSignal() && this.multipleSignal()) {
3344
+ if (this.multipleSignal() && selectedFiles.length > 1) {
3350
3345
  console.log('🚀 [FileInput] Auto upload enabled for multiple files:', selectedFiles.length);
3351
3346
  this.uploadMultipleFiles(Array.from(selectedFiles));
3352
3347
  }
@@ -3505,7 +3500,7 @@ class CideEleFileInputComponent {
3505
3500
  if (existingGroupId) {
3506
3501
  console.log('🆔 [FileInput] Using existing group ID:', existingGroupId);
3507
3502
  this.groupId.set(existingGroupId);
3508
- this.startMultipleFileUpload(files, existingGroupId);
3503
+ this.startMulti(files, existingGroupId);
3509
3504
  }
3510
3505
  else {
3511
3506
  console.log('🆔 [FileInput] No group ID provided, generating new one...');
@@ -3515,7 +3510,7 @@ class CideEleFileInputComponent {
3515
3510
  const newGroupId = response.objectId;
3516
3511
  console.log('🆔 [FileInput] Generated new group ID:', newGroupId);
3517
3512
  this.groupId.set(newGroupId);
3518
- this.startMultipleFileUpload(files, newGroupId);
3513
+ this.startMulti(files, newGroupId);
3519
3514
  },
3520
3515
  error: (error) => {
3521
3516
  console.error('❌ [FileInput] Failed to generate group ID:', error);
@@ -3535,7 +3530,7 @@ class CideEleFileInputComponent {
3535
3530
  /**
3536
3531
  * Start uploading multiple files with the provided group ID
3537
3532
  */
3538
- startMultipleFileUpload(files, groupId) {
3533
+ startMulti(files, groupId) {
3539
3534
  console.log('🚀 [FileInput] Starting upload for', files.length, 'files with group ID:', groupId);
3540
3535
  let completedUploads = 0;
3541
3536
  let failedUploads = 0;
@@ -3921,7 +3916,7 @@ class CideEleFileInputComponent {
3921
3916
  return null; // No validation errors
3922
3917
  }
3923
3918
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.7", ngImport: i0, type: CideEleFileInputComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
3924
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.1.7", type: CideEleFileInputComponent, isStandalone: true, selector: "cide-ele-file-input", inputs: { label: "label", accept: "accept", multiple: "multiple", disabled: "disabled", required: "required", helperText: "helperText", errorText: "errorText", showPreview: "showPreview", previewWidth: "previewWidth", previewHeight: "previewHeight", previewBoxMode: "previewBoxMode", showFileName: "showFileName", placeholderText: "placeholderText", placeholderIcon: "placeholderIcon", autoUpload: "autoUpload", uploadData: "uploadData", multipleFileUpload: "multipleFileUpload" }, outputs: { fileChange: "fileChange", uploadSuccess: "uploadSuccess", uploadError: "uploadError", uploadProgressChange: "uploadProgressChange" }, providers: [
3919
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.1.7", type: CideEleFileInputComponent, isStandalone: true, selector: "cide-ele-file-input", inputs: { label: "label", accept: "accept", multiple: "multiple", disabled: "disabled", required: "required", helperText: "helperText", errorText: "errorText", showPreview: "showPreview", previewWidth: "previewWidth", previewHeight: "previewHeight", previewBoxMode: "previewBoxMode", showFileName: "showFileName", placeholderText: "placeholderText", placeholderIcon: "placeholderIcon", autoUpload: "autoUpload", uploadData: "uploadData" }, outputs: { fileChange: "fileChange", uploadSuccess: "uploadSuccess", uploadError: "uploadError", uploadProgressChange: "uploadProgressChange" }, providers: [
3925
3920
  {
3926
3921
  provide: NG_VALUE_ACCESSOR,
3927
3922
  useExisting: CideEleFileInputComponent,
@@ -3980,8 +3975,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.7", ngImpor
3980
3975
  type: Input
3981
3976
  }], uploadData: [{
3982
3977
  type: Input
3983
- }], multipleFileUpload: [{
3984
- type: Input
3985
3978
  }], fileChange: [{
3986
3979
  type: Output
3987
3980
  }], uploadSuccess: [{