cloud-ide-element 1.0.89 → 1.0.91
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/fesm2022/cloud-ide-element.mjs +124 -12
- package/fesm2022/cloud-ide-element.mjs.map +1 -1
- package/index.d.ts +40 -2
- package/package.json +1 -1
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';
|
|
@@ -608,6 +608,7 @@ declare class CideEleFileInputComponent implements ControlValueAccessor, OnDestr
|
|
|
608
608
|
readonly isDragOver: _angular_core.WritableSignal<boolean>;
|
|
609
609
|
readonly groupId: _angular_core.WritableSignal<string | null>;
|
|
610
610
|
readonly isMultipleUploadMode: _angular_core.WritableSignal<boolean>;
|
|
611
|
+
readonly hasEverUploaded: _angular_core.WritableSignal<boolean>;
|
|
611
612
|
readonly hasFiles: _angular_core.Signal<boolean>;
|
|
612
613
|
readonly canUpload: _angular_core.Signal<boolean>;
|
|
613
614
|
readonly isInErrorState: _angular_core.Signal<boolean>;
|
|
@@ -1152,7 +1153,7 @@ declare class CideEleFloatingFileUploaderComponent implements OnInit, OnDestroy
|
|
|
1152
1153
|
*/
|
|
1153
1154
|
getFileNameFromId(fileId: string): string;
|
|
1154
1155
|
/**
|
|
1155
|
-
* Get all files from service state (pending + active uploads)
|
|
1156
|
+
* Get all files from service state (pending + active uploads + fetched files)
|
|
1156
1157
|
*/
|
|
1157
1158
|
getAllFiles(): {
|
|
1158
1159
|
fileId: string;
|
|
@@ -2093,6 +2094,7 @@ declare class CideEleFileManagerService {
|
|
|
2093
2094
|
private readonly _isUploading;
|
|
2094
2095
|
private readonly _uploadQueue;
|
|
2095
2096
|
private readonly _activeUploads;
|
|
2097
|
+
private readonly _fetchedFiles;
|
|
2096
2098
|
private readonly _error;
|
|
2097
2099
|
readonly baseUrl: _angular_core.Signal<string>;
|
|
2098
2100
|
readonly objectIdEndpoint: _angular_core.Signal<string>;
|
|
@@ -2100,13 +2102,16 @@ declare class CideEleFileManagerService {
|
|
|
2100
2102
|
readonly isUploading: _angular_core.Signal<boolean>;
|
|
2101
2103
|
readonly uploadQueue: _angular_core.Signal<string[]>;
|
|
2102
2104
|
readonly activeUploads: _angular_core.Signal<Map<string, UploadProgress>>;
|
|
2105
|
+
readonly fetchedFiles: _angular_core.Signal<Map<string, any[]>>;
|
|
2103
2106
|
readonly error: _angular_core.Signal<string | null>;
|
|
2104
2107
|
readonly hasActiveUploads: _angular_core.Signal<boolean>;
|
|
2105
2108
|
readonly queueLength: _angular_core.Signal<number>;
|
|
2109
|
+
readonly totalFetchedFiles: _angular_core.Signal<number>;
|
|
2106
2110
|
readonly serviceState: _angular_core.Signal<{
|
|
2107
2111
|
isUploading: boolean;
|
|
2108
2112
|
uploadQueue: string[];
|
|
2109
2113
|
activeUploads: Map<string, UploadProgress>;
|
|
2114
|
+
fetchedFiles: Map<string, any[]>;
|
|
2110
2115
|
error: string | null;
|
|
2111
2116
|
}>;
|
|
2112
2117
|
constructor();
|
|
@@ -2162,6 +2167,39 @@ declare class CideEleFileManagerService {
|
|
|
2162
2167
|
* @returns Observable with file details
|
|
2163
2168
|
*/
|
|
2164
2169
|
getFileDetails(payload: MFileManager): Observable<fileManagerControllerResponse>;
|
|
2170
|
+
/**
|
|
2171
|
+
* Get files by group ID and store them in service state
|
|
2172
|
+
* @param groupId The group ID to fetch files for
|
|
2173
|
+
* @returns Observable with files list
|
|
2174
|
+
*/
|
|
2175
|
+
getFilesByGroupId(groupId: string): Observable<fileManagerListByGroupIdControllerResponse>;
|
|
2176
|
+
/**
|
|
2177
|
+
* Fetch and store files by group ID in service state
|
|
2178
|
+
* @param groupId The group ID to fetch files for
|
|
2179
|
+
* @returns Observable that completes when files are stored
|
|
2180
|
+
*/
|
|
2181
|
+
fetchAndStoreFilesByGroupId(groupId: string): Observable<any[]>;
|
|
2182
|
+
/**
|
|
2183
|
+
* Get fetched files for a specific group ID
|
|
2184
|
+
* @param groupId The group ID to get files for
|
|
2185
|
+
* @returns Array of files for the group
|
|
2186
|
+
*/
|
|
2187
|
+
getFetchedFilesByGroupId(groupId: string): any[];
|
|
2188
|
+
/**
|
|
2189
|
+
* Get all files (active uploads + fetched files) for a group ID
|
|
2190
|
+
* @param groupId The group ID to get files for
|
|
2191
|
+
* @returns Combined array of active and fetched files
|
|
2192
|
+
*/
|
|
2193
|
+
getAllFilesForGroup(groupId: string): Array<{
|
|
2194
|
+
fileId: string;
|
|
2195
|
+
fileName: string;
|
|
2196
|
+
stage: string;
|
|
2197
|
+
percentage?: number;
|
|
2198
|
+
}>;
|
|
2199
|
+
/**
|
|
2200
|
+
* Get file name from file ID (extract from the ID format)
|
|
2201
|
+
*/
|
|
2202
|
+
private getFileNameFromId;
|
|
2165
2203
|
/**
|
|
2166
2204
|
* Angular 20: Service utility methods
|
|
2167
2205
|
*/
|