cloud-ide-element 1.0.90 → 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 +119 -10
- package/fesm2022/cloud-ide-element.mjs.map +1 -1
- package/index.d.ts +41 -4
- 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';
|
|
@@ -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<"
|
|
603
|
+
readonly uploadStatus: _angular_core.WritableSignal<"uploading" | "error" | "idle" | "start" | "success">;
|
|
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[]>;
|
|
@@ -703,7 +703,7 @@ declare class CideEleFileInputComponent implements ControlValueAccessor, OnDestr
|
|
|
703
703
|
multiple: boolean;
|
|
704
704
|
showPreview: boolean;
|
|
705
705
|
autoUpload: boolean;
|
|
706
|
-
uploadStatus: "
|
|
706
|
+
uploadStatus: "uploading" | "error" | "idle" | "start" | "success";
|
|
707
707
|
isUploading: boolean;
|
|
708
708
|
uploadProgress: number;
|
|
709
709
|
files: {
|
|
@@ -1153,7 +1153,7 @@ declare class CideEleFloatingFileUploaderComponent implements OnInit, OnDestroy
|
|
|
1153
1153
|
*/
|
|
1154
1154
|
getFileNameFromId(fileId: string): string;
|
|
1155
1155
|
/**
|
|
1156
|
-
* Get all files from service state (pending + active uploads)
|
|
1156
|
+
* Get all files from service state (pending + active uploads + fetched files)
|
|
1157
1157
|
*/
|
|
1158
1158
|
getAllFiles(): {
|
|
1159
1159
|
fileId: string;
|
|
@@ -2094,6 +2094,7 @@ declare class CideEleFileManagerService {
|
|
|
2094
2094
|
private readonly _isUploading;
|
|
2095
2095
|
private readonly _uploadQueue;
|
|
2096
2096
|
private readonly _activeUploads;
|
|
2097
|
+
private readonly _fetchedFiles;
|
|
2097
2098
|
private readonly _error;
|
|
2098
2099
|
readonly baseUrl: _angular_core.Signal<string>;
|
|
2099
2100
|
readonly objectIdEndpoint: _angular_core.Signal<string>;
|
|
@@ -2101,13 +2102,16 @@ declare class CideEleFileManagerService {
|
|
|
2101
2102
|
readonly isUploading: _angular_core.Signal<boolean>;
|
|
2102
2103
|
readonly uploadQueue: _angular_core.Signal<string[]>;
|
|
2103
2104
|
readonly activeUploads: _angular_core.Signal<Map<string, UploadProgress>>;
|
|
2105
|
+
readonly fetchedFiles: _angular_core.Signal<Map<string, any[]>>;
|
|
2104
2106
|
readonly error: _angular_core.Signal<string | null>;
|
|
2105
2107
|
readonly hasActiveUploads: _angular_core.Signal<boolean>;
|
|
2106
2108
|
readonly queueLength: _angular_core.Signal<number>;
|
|
2109
|
+
readonly totalFetchedFiles: _angular_core.Signal<number>;
|
|
2107
2110
|
readonly serviceState: _angular_core.Signal<{
|
|
2108
2111
|
isUploading: boolean;
|
|
2109
2112
|
uploadQueue: string[];
|
|
2110
2113
|
activeUploads: Map<string, UploadProgress>;
|
|
2114
|
+
fetchedFiles: Map<string, any[]>;
|
|
2111
2115
|
error: string | null;
|
|
2112
2116
|
}>;
|
|
2113
2117
|
constructor();
|
|
@@ -2163,6 +2167,39 @@ declare class CideEleFileManagerService {
|
|
|
2163
2167
|
* @returns Observable with file details
|
|
2164
2168
|
*/
|
|
2165
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;
|
|
2166
2203
|
/**
|
|
2167
2204
|
* Angular 20: Service utility methods
|
|
2168
2205
|
*/
|