cloud-ide-element 1.0.71 → 1.0.73

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<"idle" | "start" | "uploading" | "success" | "error">;
598
+ readonly uploadStatus: _angular_core.WritableSignal<"uploading" | "error" | "start" | "success" | "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[]>;
@@ -629,11 +629,12 @@ declare class CideEleFileInputComponent implements ControlValueAccessor, OnDestr
629
629
  private uploadFile;
630
630
  /**
631
631
  * Upload multiple files with group ID support
632
- * Generates a group ID if not provided and uploads all files with the same group ID
632
+ * FLOW: 1) Generate group ID first, 2) Upload all files with same group ID, 3) Emit group ID on completion
633
633
  */
634
634
  private uploadMultipleFiles;
635
635
  /**
636
636
  * Start uploading multiple files with the provided group ID
637
+ * All files will be uploaded with the SAME group ID that was generated before this method
637
638
  */
638
639
  private startMulti;
639
640
  /**
@@ -675,7 +676,7 @@ declare class CideEleFileInputComponent implements ControlValueAccessor, OnDestr
675
676
  multiple: boolean;
676
677
  showPreview: boolean;
677
678
  autoUpload: boolean;
678
- uploadStatus: "idle" | "start" | "uploading" | "success" | "error";
679
+ uploadStatus: "uploading" | "error" | "start" | "success" | "idle";
679
680
  isUploading: boolean;
680
681
  uploadProgress: number;
681
682
  files: {
@@ -1768,12 +1769,14 @@ declare class CideEleFileManagerService {
1768
1769
  private readonly http;
1769
1770
  private readonly destroyRef;
1770
1771
  private readonly _baseUrl;
1772
+ private readonly _objectIdEndpoint;
1771
1773
  private readonly _userId;
1772
1774
  private readonly _isUploading;
1773
1775
  private readonly _uploadQueue;
1774
1776
  private readonly _activeUploads;
1775
1777
  private readonly _error;
1776
1778
  readonly baseUrl: _angular_core.Signal<string>;
1779
+ readonly objectIdEndpoint: _angular_core.Signal<string>;
1777
1780
  readonly userId: _angular_core.Signal<string>;
1778
1781
  readonly isUploading: _angular_core.Signal<boolean>;
1779
1782
  readonly uploadQueue: _angular_core.Signal<string[]>;
@@ -1809,9 +1812,16 @@ declare class CideEleFileManagerService {
1809
1812
  * @param userId The user ID to associate with uploaded files
1810
1813
  */
1811
1814
  setUserId(userId: string): void;
1815
+ /**
1816
+ * Set the object ID generation endpoint
1817
+ * Angular 20: Using signal-based state management
1818
+ * @param endpoint The endpoint for generating object IDs (e.g., '/utility/generateObjectId')
1819
+ */
1820
+ setObjectIdEndpoint(endpoint: string): void;
1812
1821
  /**
1813
1822
  * Generate Object ID for group uploads
1814
1823
  * Calls the backend API to generate a unique ObjectId for grouping multiple files
1824
+ * Uses the configurable object ID endpoint instead of hardcoded path
1815
1825
  * @returns Observable with the generated ObjectId
1816
1826
  */
1817
1827
  generateObjectId(): Observable<{
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cloud-ide-element",
3
- "version": "1.0.71",
3
+ "version": "1.0.73",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^20.1.0",
6
6
  "@angular/core": "^20.1.0"