cloud-ide-element 1.0.90 → 1.0.92

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
@@ -1,7 +1,7 @@
1
1
  import * as _angular_core from '@angular/core';
2
2
  import { PipeTransform, OnChanges, OnInit, OnDestroy, EventEmitter, TemplateRef, SimpleChanges, Renderer2, ElementRef, AfterContentInit, QueryList, ViewContainerRef } from '@angular/core';
3
3
  import { ControlValueAccessor, Validator, AbstractControl, ValidationErrors } from '@angular/forms';
4
- import { elementStyleType, labelPlacementType, labelDirType, autocapitalizeType, autocompleteType, controlType, inputType, themeSize, spinnerType, iconType, selectSearchType, ICoreSype, GetElementDataRequest } from 'cloud-ide-lms-model';
4
+ import { elementStyleType, labelPlacementType, labelDirType, autocapitalizeType, autocompleteType, controlType, inputType, themeSize, spinnerType, iconType, selectSearchType, ICoreSype, GetElementDataRequest, fileManagerListByGroupIdControllerResponse } from 'cloud-ide-lms-model';
5
5
  import { Router, NavigationExtras } from '@angular/router';
6
6
  import { BehaviorSubject, Observable } from 'rxjs';
7
7
  import * as cloud_ide_element from 'cloud-ide-element';
@@ -600,7 +600,7 @@ declare class CideEleFileInputComponent implements ControlValueAccessor, OnDestr
600
600
  readonly id: _angular_core.WritableSignal<string>;
601
601
  readonly isUploading: _angular_core.WritableSignal<boolean>;
602
602
  readonly uploadProgress: _angular_core.WritableSignal<number>;
603
- readonly uploadStatus: _angular_core.WritableSignal<"error" | "start" | "success" | "uploading" | "idle">;
603
+ readonly uploadStatus: _angular_core.WritableSignal<"idle" | "start" | "uploading" | "success" | "error">;
604
604
  readonly files: _angular_core.WritableSignal<FileList | null>;
605
605
  readonly fileNames: _angular_core.WritableSignal<string[]>;
606
606
  readonly previewUrls: _angular_core.WritableSignal<string[]>;
@@ -651,6 +651,14 @@ declare class CideEleFileInputComponent implements ControlValueAccessor, OnDestr
651
651
  private clearPreviews;
652
652
  private isImageFile;
653
653
  private loadFileDetailsFromId;
654
+ /**
655
+ * Check if the component is in multiple file mode
656
+ */
657
+ private isMultipleFileMode;
658
+ /**
659
+ * Load files from group ID using the group API
660
+ */
661
+ private loadFilesFromGroupId;
654
662
  private isImageFileFromName;
655
663
  private isImageFileFromType;
656
664
  removePreview(index: number): void;
@@ -703,7 +711,7 @@ declare class CideEleFileInputComponent implements ControlValueAccessor, OnDestr
703
711
  multiple: boolean;
704
712
  showPreview: boolean;
705
713
  autoUpload: boolean;
706
- uploadStatus: "error" | "start" | "success" | "uploading" | "idle";
714
+ uploadStatus: "idle" | "start" | "uploading" | "success" | "error";
707
715
  isUploading: boolean;
708
716
  uploadProgress: number;
709
717
  files: {
@@ -1153,7 +1161,7 @@ declare class CideEleFloatingFileUploaderComponent implements OnInit, OnDestroy
1153
1161
  */
1154
1162
  getFileNameFromId(fileId: string): string;
1155
1163
  /**
1156
- * Get all files from service state (pending + active uploads)
1164
+ * Get all files from service state (pending + active uploads + fetched files)
1157
1165
  */
1158
1166
  getAllFiles(): {
1159
1167
  fileId: string;
@@ -2094,6 +2102,7 @@ declare class CideEleFileManagerService {
2094
2102
  private readonly _isUploading;
2095
2103
  private readonly _uploadQueue;
2096
2104
  private readonly _activeUploads;
2105
+ private readonly _fetchedFiles;
2097
2106
  private readonly _error;
2098
2107
  readonly baseUrl: _angular_core.Signal<string>;
2099
2108
  readonly objectIdEndpoint: _angular_core.Signal<string>;
@@ -2101,13 +2110,16 @@ declare class CideEleFileManagerService {
2101
2110
  readonly isUploading: _angular_core.Signal<boolean>;
2102
2111
  readonly uploadQueue: _angular_core.Signal<string[]>;
2103
2112
  readonly activeUploads: _angular_core.Signal<Map<string, UploadProgress>>;
2113
+ readonly fetchedFiles: _angular_core.Signal<Map<string, any[]>>;
2104
2114
  readonly error: _angular_core.Signal<string | null>;
2105
2115
  readonly hasActiveUploads: _angular_core.Signal<boolean>;
2106
2116
  readonly queueLength: _angular_core.Signal<number>;
2117
+ readonly totalFetchedFiles: _angular_core.Signal<number>;
2107
2118
  readonly serviceState: _angular_core.Signal<{
2108
2119
  isUploading: boolean;
2109
2120
  uploadQueue: string[];
2110
2121
  activeUploads: Map<string, UploadProgress>;
2122
+ fetchedFiles: Map<string, any[]>;
2111
2123
  error: string | null;
2112
2124
  }>;
2113
2125
  constructor();
@@ -2163,6 +2175,39 @@ declare class CideEleFileManagerService {
2163
2175
  * @returns Observable with file details
2164
2176
  */
2165
2177
  getFileDetails(payload: MFileManager): Observable<fileManagerControllerResponse>;
2178
+ /**
2179
+ * Get files by group ID and store them in service state
2180
+ * @param groupId The group ID to fetch files for
2181
+ * @returns Observable with files list
2182
+ */
2183
+ getFilesByGroupId(groupId: string): Observable<fileManagerListByGroupIdControllerResponse>;
2184
+ /**
2185
+ * Fetch and store files by group ID in service state
2186
+ * @param groupId The group ID to fetch files for
2187
+ * @returns Observable that completes when files are stored
2188
+ */
2189
+ fetchAndStoreFilesByGroupId(groupId: string): Observable<any[]>;
2190
+ /**
2191
+ * Get fetched files for a specific group ID
2192
+ * @param groupId The group ID to get files for
2193
+ * @returns Array of files for the group
2194
+ */
2195
+ getFetchedFilesByGroupId(groupId: string): any[];
2196
+ /**
2197
+ * Get all files (active uploads + fetched files) for a group ID
2198
+ * @param groupId The group ID to get files for
2199
+ * @returns Combined array of active and fetched files
2200
+ */
2201
+ getAllFilesForGroup(groupId: string): Array<{
2202
+ fileId: string;
2203
+ fileName: string;
2204
+ stage: string;
2205
+ percentage?: number;
2206
+ }>;
2207
+ /**
2208
+ * Get file name from file ID (extract from the ID format)
2209
+ */
2210
+ private getFileNameFromId;
2166
2211
  /**
2167
2212
  * Angular 20: Service utility methods
2168
2213
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cloud-ide-element",
3
- "version": "1.0.90",
3
+ "version": "1.0.92",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^20.1.0",
6
6
  "@angular/core": "^20.1.0"