cloud-ide-element 1.0.92 → 1.0.95
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.
|
@@ -9,8 +9,8 @@ import * as i2$1 from '@angular/router';
|
|
|
9
9
|
import * as i1$1 from '@angular/common/http';
|
|
10
10
|
import { HttpClient, HttpEventType, HttpRequest } from '@angular/common/http';
|
|
11
11
|
import { takeUntilDestroyed } from '@angular/core/rxjs-interop';
|
|
12
|
+
import { generateStringFromObject, coreRoutesUrl, cidePath, hostManagerRoutesUrl } from 'cloud-ide-lms-model';
|
|
12
13
|
import { tap, catchError as catchError$1 } from 'rxjs/operators';
|
|
13
|
-
import { coreRoutesUrl, generateStringFromObject, cidePath, hostManagerRoutesUrl } from 'cloud-ide-lms-model';
|
|
14
14
|
|
|
15
15
|
class CapitalizePipe {
|
|
16
16
|
transform(value, capitalizationMethod) {
|
|
@@ -2600,6 +2600,7 @@ class ICoreCyfmSave {
|
|
|
2600
2600
|
cyfm_file_status_sygmt;
|
|
2601
2601
|
cyfm_group_id; // Group ID for multiple file uploads
|
|
2602
2602
|
cyfm_isactive;
|
|
2603
|
+
cyfm_ismultiple;
|
|
2603
2604
|
cyfm_file_base64 = "";
|
|
2604
2605
|
cyfm_temp_unique_id = "";
|
|
2605
2606
|
constructor(init) {
|
|
@@ -2719,6 +2720,7 @@ class CideEleFileManagerService {
|
|
|
2719
2720
|
cyfm_file_status_sygmt: uploadOptions?.fileStatus || 'file_manager_file_status_active',
|
|
2720
2721
|
cyfm_group_id: uploadOptions?.groupId, // Group ID for multiple file uploads
|
|
2721
2722
|
cyfm_isactive: true,
|
|
2723
|
+
cyfm_ismultiple: uploadOptions?.isMultiple || false,
|
|
2722
2724
|
cyfm_file_base64: base64Data,
|
|
2723
2725
|
cyfm_temp_unique_id: fileId
|
|
2724
2726
|
};
|
|
@@ -2910,7 +2912,10 @@ class CideEleFileManagerService {
|
|
|
2910
2912
|
const payload = {
|
|
2911
2913
|
cyfm_group_id: groupId
|
|
2912
2914
|
};
|
|
2913
|
-
|
|
2915
|
+
// Convert payload to string using generateStringFromObject
|
|
2916
|
+
const queryString = generateStringFromObject(payload);
|
|
2917
|
+
console.log('📝 [FileManagerService] Query string generated:', queryString);
|
|
2918
|
+
return this.http.get(`${this._baseUrl()}/group/${queryString}`).pipe(retry(2), catchError(this.handleError.bind(this)), takeUntilDestroyed(this.destroyRef));
|
|
2914
2919
|
}
|
|
2915
2920
|
/**
|
|
2916
2921
|
* Fetch and store files by group ID in service state
|
|
@@ -4094,7 +4099,8 @@ class CideEleFileInputComponent {
|
|
|
4094
4099
|
// IMPORTANT: All files use the SAME group ID that was generated before starting uploads
|
|
4095
4100
|
const uploadDataWithGroupId = {
|
|
4096
4101
|
...this.uploadDataSignal(),
|
|
4097
|
-
groupId: groupId
|
|
4102
|
+
groupId: groupId,
|
|
4103
|
+
isMultiple: true
|
|
4098
4104
|
};
|
|
4099
4105
|
files.forEach((file, index) => {
|
|
4100
4106
|
console.log(`📤 [FileInput] Uploading file ${index + 1}/${totalFiles}: "${file.name}" with group ID: ${groupId}`);
|