cloud-ide-element 1.0.98 → 1.0.100
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 +173 -91
- package/fesm2022/cloud-ide-element.mjs.map +1 -1
- package/index.d.ts +18 -7
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -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<"uploading" | "error" | "
|
|
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[]>;
|
|
@@ -685,6 +685,14 @@ declare class CideEleFileInputComponent implements ControlValueAccessor, OnDestr
|
|
|
685
685
|
* Show floating uploader (alias for showUploader for template)
|
|
686
686
|
*/
|
|
687
687
|
showFloatingUploaderDialog(): void;
|
|
688
|
+
/**
|
|
689
|
+
* Get dynamic classes for drag and drop zone
|
|
690
|
+
*/
|
|
691
|
+
getDragDropZoneClasses(): string;
|
|
692
|
+
/**
|
|
693
|
+
* Get dynamic classes for icon
|
|
694
|
+
*/
|
|
695
|
+
getIconClasses(): string;
|
|
688
696
|
onDragOver(event: DragEvent): void;
|
|
689
697
|
onDragLeave(event: DragEvent): void;
|
|
690
698
|
onDragEnter(event: DragEvent): void;
|
|
@@ -711,7 +719,7 @@ declare class CideEleFileInputComponent implements ControlValueAccessor, OnDestr
|
|
|
711
719
|
multiple: boolean;
|
|
712
720
|
showPreview: boolean;
|
|
713
721
|
autoUpload: boolean;
|
|
714
|
-
uploadStatus: "uploading" | "error" | "
|
|
722
|
+
uploadStatus: "uploading" | "error" | "idle" | "start" | "success";
|
|
715
723
|
isUploading: boolean;
|
|
716
724
|
uploadProgress: number;
|
|
717
725
|
files: {
|
|
@@ -752,6 +760,12 @@ declare class CideEleFloatingFileUploaderComponent implements OnInit, OnDestroy
|
|
|
752
760
|
activeUploadsLocal: _angular_core.Signal<cloud_ide_element.UploadProgress[]>;
|
|
753
761
|
completedUploads: _angular_core.Signal<cloud_ide_element.UploadProgress[]>;
|
|
754
762
|
failedUploads: _angular_core.Signal<cloud_ide_element.UploadProgress[]>;
|
|
763
|
+
allFilesForGroup: _angular_core.Signal<{
|
|
764
|
+
fileId: string;
|
|
765
|
+
fileName: string;
|
|
766
|
+
stage: string;
|
|
767
|
+
percentage?: number;
|
|
768
|
+
}[]>;
|
|
755
769
|
hasFilesToShow: _angular_core.Signal<boolean>;
|
|
756
770
|
isAnimating: _angular_core.WritableSignal<boolean>;
|
|
757
771
|
isDragging: _angular_core.WritableSignal<boolean>;
|
|
@@ -852,6 +866,7 @@ declare class CideEleFloatingFileUploaderComponent implements OnInit, OnDestroy
|
|
|
852
866
|
getFileNameFromId(fileId: string): string;
|
|
853
867
|
/**
|
|
854
868
|
* Get all files from service state (pending + active uploads + fetched files)
|
|
869
|
+
* This method now uses the computed property for consistency
|
|
855
870
|
*/
|
|
856
871
|
getAllFiles(): {
|
|
857
872
|
fileId: string;
|
|
@@ -870,7 +885,7 @@ declare class CideEleFloatingFileUploaderComponent implements OnInit, OnDestroy
|
|
|
870
885
|
handleExternalFiles(files: File[], userId?: string, groupId?: string): void;
|
|
871
886
|
/**
|
|
872
887
|
* Manually show the floating uploader
|
|
873
|
-
* This
|
|
888
|
+
* This should always be called with a group ID from the file input component
|
|
874
889
|
*/
|
|
875
890
|
showUploader(groupId?: string): void;
|
|
876
891
|
/**
|
|
@@ -901,10 +916,6 @@ declare class CideEleFloatingFileUploaderComponent implements OnInit, OnDestroy
|
|
|
901
916
|
* Handle file selection from drag/drop or file input
|
|
902
917
|
*/
|
|
903
918
|
private handleFileSelection;
|
|
904
|
-
/**
|
|
905
|
-
* Generate a unique group ID
|
|
906
|
-
*/
|
|
907
|
-
private generateGroupId;
|
|
908
919
|
/**
|
|
909
920
|
* Update cached dimensions (throttled for performance)
|
|
910
921
|
*/
|