cloud-ide-element 1.0.81 → 1.0.83
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 +1644 -1438
- package/fesm2022/cloud-ide-element.mjs.map +1 -1
- package/index.d.ts +59 -4
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -556,6 +556,7 @@ declare class CideEleFileInputComponent implements ControlValueAccessor, OnDestr
|
|
|
556
556
|
private readonly notificationService;
|
|
557
557
|
private readonly elementService;
|
|
558
558
|
private readonly destroyRef;
|
|
559
|
+
private readonly floatingUploader;
|
|
559
560
|
label: string;
|
|
560
561
|
accept: string;
|
|
561
562
|
multiple: boolean;
|
|
@@ -572,6 +573,8 @@ declare class CideEleFileInputComponent implements ControlValueAccessor, OnDestr
|
|
|
572
573
|
placeholderIcon: string;
|
|
573
574
|
autoUpload: boolean;
|
|
574
575
|
uploadData: FileUploadData;
|
|
576
|
+
showFloatingUploader: boolean;
|
|
577
|
+
floatingUploaderGroupId?: string;
|
|
575
578
|
fileChange: EventEmitter<FileList | null>;
|
|
576
579
|
uploadSuccess: EventEmitter<string>;
|
|
577
580
|
uploadError: EventEmitter<string>;
|
|
@@ -592,6 +595,8 @@ declare class CideEleFileInputComponent implements ControlValueAccessor, OnDestr
|
|
|
592
595
|
readonly placeholderIconSignal: _angular_core.WritableSignal<string>;
|
|
593
596
|
readonly autoUploadSignal: _angular_core.WritableSignal<boolean>;
|
|
594
597
|
readonly uploadDataSignal: _angular_core.WritableSignal<FileUploadData>;
|
|
598
|
+
readonly showFloatingUploaderSignal: _angular_core.WritableSignal<boolean>;
|
|
599
|
+
readonly floatingUploaderGroupIdSignal: _angular_core.WritableSignal<string | undefined>;
|
|
595
600
|
readonly id: _angular_core.WritableSignal<string>;
|
|
596
601
|
readonly isUploading: _angular_core.WritableSignal<boolean>;
|
|
597
602
|
readonly uploadProgress: _angular_core.WritableSignal<number>;
|
|
@@ -650,6 +655,11 @@ declare class CideEleFileInputComponent implements ControlValueAccessor, OnDestr
|
|
|
650
655
|
removePreview(index: number): void;
|
|
651
656
|
ngOnDestroy(): void;
|
|
652
657
|
triggerFileSelect(): void;
|
|
658
|
+
/**
|
|
659
|
+
* Show floating uploader manually
|
|
660
|
+
* This can be called to show the floating uploader even when no files are selected
|
|
661
|
+
*/
|
|
662
|
+
showUploader(): void;
|
|
653
663
|
onDragOver(event: DragEvent): void;
|
|
654
664
|
onDragLeave(event: DragEvent): void;
|
|
655
665
|
onDragEnter(event: DragEvent): void;
|
|
@@ -699,7 +709,7 @@ declare class CideEleFileInputComponent implements ControlValueAccessor, OnDestr
|
|
|
699
709
|
getControlData(): Promise<void>;
|
|
700
710
|
validate(control: AbstractControl): ValidationErrors | null;
|
|
701
711
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<CideEleFileInputComponent, never>;
|
|
702
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<CideEleFileInputComponent, "cide-ele-file-input", never, { "label": { "alias": "label"; "required": false; }; "accept": { "alias": "accept"; "required": false; }; "multiple": { "alias": "multiple"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "required": { "alias": "required"; "required": false; }; "helperText": { "alias": "helperText"; "required": false; }; "errorText": { "alias": "errorText"; "required": false; }; "showPreview": { "alias": "showPreview"; "required": false; }; "previewWidth": { "alias": "previewWidth"; "required": false; }; "previewHeight": { "alias": "previewHeight"; "required": false; }; "previewBoxMode": { "alias": "previewBoxMode"; "required": false; }; "showFileName": { "alias": "showFileName"; "required": false; }; "placeholderText": { "alias": "placeholderText"; "required": false; }; "placeholderIcon": { "alias": "placeholderIcon"; "required": false; }; "autoUpload": { "alias": "autoUpload"; "required": false; }; "uploadData": { "alias": "uploadData"; "required": false; }; }, { "fileChange": "fileChange"; "uploadSuccess": "uploadSuccess"; "uploadError": "uploadError"; "uploadProgressChange": "uploadProgressChange"; }, never, never, true, never>;
|
|
712
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<CideEleFileInputComponent, "cide-ele-file-input", never, { "label": { "alias": "label"; "required": false; }; "accept": { "alias": "accept"; "required": false; }; "multiple": { "alias": "multiple"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "required": { "alias": "required"; "required": false; }; "helperText": { "alias": "helperText"; "required": false; }; "errorText": { "alias": "errorText"; "required": false; }; "showPreview": { "alias": "showPreview"; "required": false; }; "previewWidth": { "alias": "previewWidth"; "required": false; }; "previewHeight": { "alias": "previewHeight"; "required": false; }; "previewBoxMode": { "alias": "previewBoxMode"; "required": false; }; "showFileName": { "alias": "showFileName"; "required": false; }; "placeholderText": { "alias": "placeholderText"; "required": false; }; "placeholderIcon": { "alias": "placeholderIcon"; "required": false; }; "autoUpload": { "alias": "autoUpload"; "required": false; }; "uploadData": { "alias": "uploadData"; "required": false; }; "showFloatingUploader": { "alias": "showFloatingUploader"; "required": false; }; "floatingUploaderGroupId": { "alias": "floatingUploaderGroupId"; "required": false; }; }, { "fileChange": "fileChange"; "uploadSuccess": "uploadSuccess"; "uploadError": "uploadError"; "uploadProgressChange": "uploadProgressChange"; }, never, never, true, never>;
|
|
703
713
|
}
|
|
704
714
|
|
|
705
715
|
/**
|
|
@@ -1032,11 +1042,21 @@ declare class CideEleFloatingFileUploaderComponent implements OnInit, OnDestroy
|
|
|
1032
1042
|
isVisible: _angular_core.WritableSignal<boolean>;
|
|
1033
1043
|
isMinimized: _angular_core.WritableSignal<boolean>;
|
|
1034
1044
|
currentUserId: _angular_core.WritableSignal<string>;
|
|
1045
|
+
currentGroupId: _angular_core.WritableSignal<string | null>;
|
|
1046
|
+
completedFiles: _angular_core.WritableSignal<Map<string, {
|
|
1047
|
+
fileName: string;
|
|
1048
|
+
completedAt: Date;
|
|
1049
|
+
groupId?: string;
|
|
1050
|
+
}>>;
|
|
1035
1051
|
uploadQueue: _angular_core.Signal<string[]>;
|
|
1036
1052
|
activeUploads: _angular_core.Signal<Map<string, cloud_ide_element.UploadProgress>>;
|
|
1037
1053
|
hasUploads: _angular_core.Signal<boolean>;
|
|
1038
1054
|
pendingUploads: _angular_core.Signal<boolean>;
|
|
1039
|
-
completedUploads: _angular_core.Signal<
|
|
1055
|
+
completedUploads: _angular_core.Signal<({
|
|
1056
|
+
fileName: string;
|
|
1057
|
+
completedAt: Date;
|
|
1058
|
+
groupId?: string;
|
|
1059
|
+
} | cloud_ide_element.UploadProgress)[]>;
|
|
1040
1060
|
failedUploads: _angular_core.Signal<cloud_ide_element.UploadProgress[]>;
|
|
1041
1061
|
isAnimating: _angular_core.WritableSignal<boolean>;
|
|
1042
1062
|
constructor();
|
|
@@ -1122,6 +1142,14 @@ declare class CideEleFloatingFileUploaderComponent implements OnInit, OnDestroy
|
|
|
1122
1142
|
* Get file name from file ID (extract from the ID format)
|
|
1123
1143
|
*/
|
|
1124
1144
|
getFileNameFromId(fileId: string): string;
|
|
1145
|
+
/**
|
|
1146
|
+
* Add completed file to local state
|
|
1147
|
+
*/
|
|
1148
|
+
private addCompletedFile;
|
|
1149
|
+
/**
|
|
1150
|
+
* Clear all completed files
|
|
1151
|
+
*/
|
|
1152
|
+
clearCompletedFiles(): void;
|
|
1125
1153
|
/**
|
|
1126
1154
|
* Set current user ID
|
|
1127
1155
|
*/
|
|
@@ -1130,11 +1158,38 @@ declare class CideEleFloatingFileUploaderComponent implements OnInit, OnDestroy
|
|
|
1130
1158
|
* Public method to handle files from external sources
|
|
1131
1159
|
* This can be called by other components to trigger the floating uploader
|
|
1132
1160
|
*/
|
|
1133
|
-
handleExternalFiles(files: File[], userId?: string): void;
|
|
1161
|
+
handleExternalFiles(files: File[], userId?: string, groupId?: string): void;
|
|
1162
|
+
/**
|
|
1163
|
+
* Manually show the floating uploader
|
|
1164
|
+
* This can be called from file input components or other triggers
|
|
1165
|
+
*/
|
|
1166
|
+
showUploader(groupId?: string): void;
|
|
1167
|
+
/**
|
|
1168
|
+
* Check if there are any uploads for the current group
|
|
1169
|
+
*/
|
|
1170
|
+
hasUploadsForCurrentGroup(): boolean;
|
|
1134
1171
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<CideEleFloatingFileUploaderComponent, never>;
|
|
1135
1172
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<CideEleFloatingFileUploaderComponent, "cide-ele-floating-file-uploader", never, {}, {}, never, never, true, never>;
|
|
1136
1173
|
}
|
|
1137
1174
|
|
|
1175
|
+
declare class CideFloatingUploadTriggerDirective implements OnInit, OnDestroy {
|
|
1176
|
+
private elementRef;
|
|
1177
|
+
private floatingUploader;
|
|
1178
|
+
groupId?: string;
|
|
1179
|
+
userId?: string;
|
|
1180
|
+
showIcon: boolean;
|
|
1181
|
+
filesSelected: EventEmitter<File[]>;
|
|
1182
|
+
private triggerIcon?;
|
|
1183
|
+
ngOnInit(): void;
|
|
1184
|
+
ngOnDestroy(): void;
|
|
1185
|
+
private setupTrigger;
|
|
1186
|
+
private removeTrigger;
|
|
1187
|
+
private onFileChange;
|
|
1188
|
+
private addTriggerIcon;
|
|
1189
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<CideFloatingUploadTriggerDirective, never>;
|
|
1190
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<CideFloatingUploadTriggerDirective, "[cideFloatingUploadTrigger]", never, { "groupId": { "alias": "groupId"; "required": false; }; "userId": { "alias": "userId"; "required": false; }; "showIcon": { "alias": "showIcon"; "required": false; }; }, { "filesSelected": "filesSelected"; }, never, never, true, never>;
|
|
1191
|
+
}
|
|
1192
|
+
|
|
1138
1193
|
declare class CideTextareaComponent implements ControlValueAccessor, Validator, OnInit, OnChanges {
|
|
1139
1194
|
label: string;
|
|
1140
1195
|
labelHide: boolean;
|
|
@@ -2340,5 +2395,5 @@ declare class CideEleJsonEditorComponent implements OnInit, ControlValueAccessor
|
|
|
2340
2395
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<CideEleJsonEditorComponent, "cide-ele-json-editor", never, { "label": { "alias": "label"; "required": false; }; "helperText": { "alias": "helperText"; "required": false; }; "required": { "alias": "required"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "showCharacterCount": { "alias": "showCharacterCount"; "required": false; }; "config": { "alias": "config"; "required": false; }; }, { "valueChange": "valueChange"; "objectChange": "objectChange"; "errorsChange": "errorsChange"; "validChange": "validChange"; }, never, never, true, never>;
|
|
2341
2396
|
}
|
|
2342
2397
|
|
|
2343
|
-
export { CideCoreFileManagerService, CideEleButtonComponent, CideEleConfirmationModalComponent, CideEleDataGridComponent, CideEleDropdownComponent, CideEleFileImageDirective, CideEleFileInputComponent, CideEleFileManagerService, CideEleFloatingFileUploaderComponent, CideEleGlobalFileUploaderComponent, CideEleGlobalNotificationsComponent, CideEleJsonEditorComponent, CideEleResizerDirective, CideEleSkeletonLoaderComponent, CideEleTabComponent, CideEleToastNotificationComponent, CideElementsService, CideIconComponent, CideInputComponent, CideSelectComponent, CideSelectOptionComponent, CideSpinnerComponent, CideTextareaComponent, ConfirmationService, CoreFileManagerInsertUpdatePayload, DEFAULT_GRID_CONFIG, DropdownManagerService, ICoreCyfmSave, MFileManager, NotificationService, TooltipDirective };
|
|
2398
|
+
export { CideCoreFileManagerService, CideEleButtonComponent, CideEleConfirmationModalComponent, CideEleDataGridComponent, CideEleDropdownComponent, CideEleFileImageDirective, CideEleFileInputComponent, CideEleFileManagerService, CideEleFloatingFileUploaderComponent, CideEleGlobalFileUploaderComponent, CideEleGlobalNotificationsComponent, CideEleJsonEditorComponent, CideEleResizerDirective, CideEleSkeletonLoaderComponent, CideEleTabComponent, CideEleToastNotificationComponent, CideElementsService, CideFloatingUploadTriggerDirective, CideIconComponent, CideInputComponent, CideSelectComponent, CideSelectOptionComponent, CideSpinnerComponent, CideTextareaComponent, ConfirmationService, CoreFileManagerInsertUpdatePayload, DEFAULT_GRID_CONFIG, DropdownManagerService, ICoreCyfmSave, MFileManager, NotificationService, TooltipDirective };
|
|
2344
2399
|
export type { ButtonElevation, ButtonShape, ButtonSize, ButtonType, ButtonVariant, CideEleResizerDirection, CideEleResizerDirectionTo, ColumnType, ColumnWidth, ConfirmationOptions, ConfirmationRequest, CoreFileManagerInsertUpdateResponse, DropdownConfig, DropdownInstance, DropdownItem, DropdownPosition, ErrorValidationStatus, FileUploadData, FileUploadOptions, GridAction, GridColumn, GridConfiguration, GridCustomFormatter, GridCustomRenderer, GridDragDropConfig, GridEvent, GridEventHandler, GridExportConfig, GridFormatter, GridLoadingConfig, GridPaginationConfig, GridScrollConfig, GridSearchConfig, GridState, GridTreeConfig, ICoreCyfm, ICoreFileManager, IFileDeleteResponse, IFileFilterOptions, IFileGroupingOptions, IFileListRequest, IFileListResponse, IFileManagerErrorLogger, IFileUpdateRequest, IFileUpdateResponse, IFileUploadProgress, IFileUploadQueueItem, IFileUploadRequest, IFileUploadResponse, JsonEditorConfig, JsonEditorError, NotificationItem, NotificationOptions, SelectOption, SelectOptionObject, ServiceState, StatusConfig, TabItem, TemplateContext, TemplateRenderer, TextAlign, TooltipPlacement, TooltipType, UploadProgress, ValidationStatus, controllerResponse, fileManagerControllerResponse, fileManagerResponseData, mongooseObjectIdCreateControllerResponse };
|