cloud-ide-element 1.0.115 → 1.0.117
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 +6383 -6157
- package/fesm2022/cloud-ide-element.mjs.map +1 -1
- package/index.d.ts +101 -12
- 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 floatingFileUploaderService;
|
|
559
560
|
label: string;
|
|
560
561
|
accept: string;
|
|
561
562
|
multiple: boolean;
|
|
@@ -599,7 +600,7 @@ declare class CideEleFileInputComponent implements ControlValueAccessor, OnDestr
|
|
|
599
600
|
readonly id: _angular_core.WritableSignal<string>;
|
|
600
601
|
readonly isUploading: _angular_core.WritableSignal<boolean>;
|
|
601
602
|
readonly uploadProgress: _angular_core.WritableSignal<number>;
|
|
602
|
-
readonly uploadStatus: _angular_core.WritableSignal<"
|
|
603
|
+
readonly uploadStatus: _angular_core.WritableSignal<"uploading" | "error" | "idle" | "start" | "success">;
|
|
603
604
|
readonly files: _angular_core.WritableSignal<FileList | null>;
|
|
604
605
|
readonly fileNames: _angular_core.WritableSignal<string[]>;
|
|
605
606
|
readonly previewUrls: _angular_core.WritableSignal<string[]>;
|
|
@@ -687,7 +688,7 @@ declare class CideEleFileInputComponent implements ControlValueAccessor, OnDestr
|
|
|
687
688
|
/**
|
|
688
689
|
* Show floating uploader (alias for showUploader for template)
|
|
689
690
|
*/
|
|
690
|
-
showFloatingUploaderDialog(): void
|
|
691
|
+
showFloatingUploaderDialog(): Promise<void>;
|
|
691
692
|
/**
|
|
692
693
|
* Get dynamic classes for drag and drop zone
|
|
693
694
|
*/
|
|
@@ -726,7 +727,7 @@ declare class CideEleFileInputComponent implements ControlValueAccessor, OnDestr
|
|
|
726
727
|
multiple: boolean;
|
|
727
728
|
showPreview: boolean;
|
|
728
729
|
autoUpload: boolean;
|
|
729
|
-
uploadStatus: "
|
|
730
|
+
uploadStatus: "uploading" | "error" | "idle" | "start" | "success";
|
|
730
731
|
isUploading: boolean;
|
|
731
732
|
uploadProgress: number;
|
|
732
733
|
files: {
|
|
@@ -755,6 +756,7 @@ declare class CideEleFileInputComponent implements ControlValueAccessor, OnDestr
|
|
|
755
756
|
declare class CideEleFloatingFileUploaderComponent implements OnInit, OnDestroy {
|
|
756
757
|
private destroyRef;
|
|
757
758
|
private fileManagerService;
|
|
759
|
+
data: any;
|
|
758
760
|
isVisible: _angular_core.WritableSignal<boolean>;
|
|
759
761
|
isMinimized: _angular_core.WritableSignal<boolean>;
|
|
760
762
|
currentUserId: _angular_core.WritableSignal<string>;
|
|
@@ -790,6 +792,8 @@ declare class CideEleFloatingFileUploaderComponent implements OnInit, OnDestroy
|
|
|
790
792
|
private lastDimensionUpdate;
|
|
791
793
|
constructor();
|
|
792
794
|
ngOnInit(): void;
|
|
795
|
+
private initializeWithData;
|
|
796
|
+
private loadExistingFiles;
|
|
793
797
|
ngOnDestroy(): void;
|
|
794
798
|
/**
|
|
795
799
|
* Set up drag and drop functionality
|
|
@@ -938,7 +942,40 @@ declare class CideEleFloatingFileUploaderComponent implements OnInit, OnDestroy
|
|
|
938
942
|
*/
|
|
939
943
|
private initializePosition;
|
|
940
944
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<CideEleFloatingFileUploaderComponent, never>;
|
|
941
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<CideEleFloatingFileUploaderComponent, "cide-ele-floating-file-uploader", never, {}, {}, never, never, true, never>;
|
|
945
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<CideEleFloatingFileUploaderComponent, "cide-ele-floating-file-uploader", never, { "data": { "alias": "data"; "required": false; }; }, {}, never, never, true, never>;
|
|
946
|
+
}
|
|
947
|
+
|
|
948
|
+
interface FileUploaderData {
|
|
949
|
+
groupId?: string;
|
|
950
|
+
userId?: string;
|
|
951
|
+
allowedTypes?: string[];
|
|
952
|
+
maxFileSize?: number;
|
|
953
|
+
uploadPath?: string;
|
|
954
|
+
multiple?: boolean;
|
|
955
|
+
autoUpload?: boolean;
|
|
956
|
+
}
|
|
957
|
+
declare class CideEleFloatingFileUploaderService {
|
|
958
|
+
private containerService;
|
|
959
|
+
constructor();
|
|
960
|
+
private initializeFileUploader;
|
|
961
|
+
/**
|
|
962
|
+
* Show file uploader in floating container
|
|
963
|
+
*/
|
|
964
|
+
show(data?: FileUploaderData): Promise<string>;
|
|
965
|
+
/**
|
|
966
|
+
* Hide file uploader
|
|
967
|
+
*/
|
|
968
|
+
hide(): void;
|
|
969
|
+
/**
|
|
970
|
+
* Show file uploader with specific group ID
|
|
971
|
+
*/
|
|
972
|
+
showWithGroupId(groupId: string, additionalData?: Partial<FileUploaderData>): Promise<string>;
|
|
973
|
+
/**
|
|
974
|
+
* Show file uploader for user with specific settings
|
|
975
|
+
*/
|
|
976
|
+
showForUser(userId: string, settings?: Partial<FileUploaderData>): Promise<string>;
|
|
977
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<CideEleFloatingFileUploaderService, never>;
|
|
978
|
+
static ɵprov: _angular_core.ɵɵInjectableDeclaration<CideEleFloatingFileUploaderService>;
|
|
942
979
|
}
|
|
943
980
|
|
|
944
981
|
declare class CideTextareaComponent implements ControlValueAccessor, Validator, OnInit, OnChanges {
|
|
@@ -2441,6 +2478,7 @@ declare class CideEleFloatingContainerComponent implements AfterViewInit, OnDest
|
|
|
2441
2478
|
closeEvent: EventEmitter<string>;
|
|
2442
2479
|
minimizeEvent: EventEmitter<string>;
|
|
2443
2480
|
maximizeEvent: EventEmitter<string>;
|
|
2481
|
+
clickEvent: EventEmitter<string>;
|
|
2444
2482
|
containerRef: ElementRef<HTMLDivElement>;
|
|
2445
2483
|
position: _angular_core.WritableSignal<{
|
|
2446
2484
|
x: number;
|
|
@@ -2470,11 +2508,12 @@ declare class CideEleFloatingContainerComponent implements AfterViewInit, OnDest
|
|
|
2470
2508
|
onMouseUp(event: MouseEvent): void;
|
|
2471
2509
|
onHeaderClick(event: MouseEvent): void;
|
|
2472
2510
|
minimize(): void;
|
|
2511
|
+
bringToFront(): void;
|
|
2473
2512
|
toggleMaximize(): void;
|
|
2474
2513
|
close(): void;
|
|
2475
2514
|
getHeaderBackground(): string;
|
|
2476
2515
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<CideEleFloatingContainerComponent, never>;
|
|
2477
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<CideEleFloatingContainerComponent, "cide-ele-floating-container", never, { "config": { "alias": "config"; "required": false; }; "isMinimized": { "alias": "isMinimized"; "required": false; }; "isMaximized": { "alias": "isMaximized"; "required": false; }; "isVisible": { "alias": "isVisible"; "required": false; }; }, { "closeEvent": "closeEvent"; "minimizeEvent": "minimizeEvent"; "maximizeEvent": "maximizeEvent"; }, never, ["*"], true, never>;
|
|
2516
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<CideEleFloatingContainerComponent, "cide-ele-floating-container", never, { "config": { "alias": "config"; "required": false; }; "isMinimized": { "alias": "isMinimized"; "required": false; }; "isMaximized": { "alias": "isMaximized"; "required": false; }; "isVisible": { "alias": "isVisible"; "required": false; }; }, { "closeEvent": "closeEvent"; "minimizeEvent": "minimizeEvent"; "maximizeEvent": "maximizeEvent"; "clickEvent": "clickEvent"; }, never, ["*"], true, never>;
|
|
2478
2517
|
}
|
|
2479
2518
|
|
|
2480
2519
|
interface FloatingComponentConfig {
|
|
@@ -2512,9 +2551,28 @@ declare class CideEleFloatingContainerService {
|
|
|
2512
2551
|
maximizedContainers: _angular_core.Signal<FloatingContainerInstance[]>;
|
|
2513
2552
|
show(config: FloatingContainerConfig): string;
|
|
2514
2553
|
hide(containerId: string): void;
|
|
2554
|
+
/**
|
|
2555
|
+
* Get the maximum z-index among all visible containers
|
|
2556
|
+
*/
|
|
2557
|
+
private getMaxZIndex;
|
|
2558
|
+
/**
|
|
2559
|
+
* Bring a container to the front (highest z-index)
|
|
2560
|
+
*/
|
|
2561
|
+
bringToFront(containerId: string): void;
|
|
2562
|
+
/**
|
|
2563
|
+
* Set up keyboard shortcuts for container navigation
|
|
2564
|
+
*/
|
|
2565
|
+
private setupKeyboardShortcuts;
|
|
2566
|
+
/**
|
|
2567
|
+
* Cycle to the next container (Alt+Tab behavior)
|
|
2568
|
+
*/
|
|
2569
|
+
private cycleToNextContainer;
|
|
2570
|
+
/**
|
|
2571
|
+
* Cycle to the previous container (Alt+Shift+Tab behavior)
|
|
2572
|
+
*/
|
|
2573
|
+
private cycleToPreviousContainer;
|
|
2515
2574
|
minimize(containerId: string): void;
|
|
2516
2575
|
maximize(containerId: string): void;
|
|
2517
|
-
bringToFront(containerId: string): void;
|
|
2518
2576
|
getContainer(containerId: string): FloatingContainerInstance | undefined;
|
|
2519
2577
|
isVisible(containerId: string): boolean;
|
|
2520
2578
|
isMinimized(containerId: string): boolean;
|
|
@@ -2622,12 +2680,43 @@ declare class CideEleFloatingContainerManagerComponent {
|
|
|
2622
2680
|
declare class CideEleFloatingFeaturesService {
|
|
2623
2681
|
private containerService;
|
|
2624
2682
|
constructor();
|
|
2625
|
-
private initializeFileUploader;
|
|
2626
|
-
showFileUploader(componentType?: any, inputData?: any): Promise<string>;
|
|
2627
|
-
hideFileUploader(): void;
|
|
2628
|
-
showFileUploaderInstance(containerId: string, componentType?: any, config?: Partial<FloatingContainerConfig>): string;
|
|
2629
2683
|
showFeature(featureId: string, config: FloatingContainerConfig): string;
|
|
2630
2684
|
showComponent(containerId: string, componentId: string, title: string, componentType?: any, config?: Partial<FloatingContainerConfig>): string;
|
|
2685
|
+
/**
|
|
2686
|
+
* Generic method for showing any component with input data
|
|
2687
|
+
*
|
|
2688
|
+
* @example
|
|
2689
|
+
* // Pass data to a component
|
|
2690
|
+
* this.floatingFeaturesService.showComponentWithData(
|
|
2691
|
+
* 'my-component-container',
|
|
2692
|
+
* 'my-component',
|
|
2693
|
+
* 'My Component Title',
|
|
2694
|
+
* {
|
|
2695
|
+
* data: {
|
|
2696
|
+
* userId: '123',
|
|
2697
|
+
* userName: 'John Doe',
|
|
2698
|
+
* settings: { theme: 'dark' }
|
|
2699
|
+
* },
|
|
2700
|
+
* outputs: {
|
|
2701
|
+
* onSave: (data) => console.log('Save event:', data),
|
|
2702
|
+
* onCancel: () => console.log('Cancel clicked')
|
|
2703
|
+
* }
|
|
2704
|
+
* },
|
|
2705
|
+
* {
|
|
2706
|
+
* width: '600px',
|
|
2707
|
+
* height: '400px',
|
|
2708
|
+
* icon: 'settings'
|
|
2709
|
+
* }
|
|
2710
|
+
* );
|
|
2711
|
+
*/
|
|
2712
|
+
showComponentWithData(containerId: string, componentId: string, title: string, componentData: {
|
|
2713
|
+
data: {
|
|
2714
|
+
[key: string]: any;
|
|
2715
|
+
};
|
|
2716
|
+
outputs?: {
|
|
2717
|
+
[key: string]: (event: any) => void;
|
|
2718
|
+
};
|
|
2719
|
+
}, containerConfig?: Partial<FloatingContainerConfig>): string;
|
|
2631
2720
|
showMultipleInstances(componentId: string, titlePrefix: string, count: number, config?: Partial<FloatingContainerConfig>): string[];
|
|
2632
2721
|
getInstancesOfType(componentType: string): cloud_ide_element.FloatingContainerInstance[];
|
|
2633
2722
|
getActiveInstancesOfType(componentType: string): cloud_ide_element.FloatingContainerInstance[];
|
|
@@ -2665,5 +2754,5 @@ declare class CideEleFloatingContainerDynamicDirective implements OnInit, OnDest
|
|
|
2665
2754
|
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<CideEleFloatingContainerDynamicDirective, "[cideEleFloatingDynamic]", never, { "componentId": { "alias": "componentId"; "required": false; }; "componentConfig": { "alias": "componentConfig"; "required": false; }; "isVisible": { "alias": "isVisible"; "required": false; }; }, {}, never, never, true, never>;
|
|
2666
2755
|
}
|
|
2667
2756
|
|
|
2668
|
-
export { CideCoreFileManagerService, CideEleButtonComponent, CideEleConfirmationModalComponent, CideEleDataGridComponent, CideEleDropdownComponent, CideEleFileImageDirective, CideEleFileInputComponent, CideEleFileManagerService, CideEleFloatingContainerComponent, CideEleFloatingContainerDynamicDirective, CideEleFloatingContainerManagerComponent, CideEleFloatingContainerService, CideEleFloatingFeaturesService, CideEleFloatingFileUploaderComponent, CideEleGlobalNotificationsComponent, CideEleJsonEditorComponent, CideEleResizerDirective, CideEleSkeletonLoaderComponent, CideEleTabComponent, CideEleToastNotificationComponent, CideElementsService, CideIconComponent, CideInputComponent, CideSelectComponent, CideSelectOptionComponent, CideSpinnerComponent, CideTextareaComponent, ConfirmationService, CoreFileManagerInsertUpdatePayload, DEFAULT_GRID_CONFIG, DropdownManagerService, ICoreCyfmSave, MFileManager, NotificationService, TooltipDirective };
|
|
2669
|
-
export type { ButtonElevation, ButtonShape, ButtonSize, ButtonType, ButtonVariant, CideEleResizerDirection, CideEleResizerDirectionTo, ColumnType, ColumnWidth, ConfirmationOptions, ConfirmationRequest, CoreFileManagerInsertUpdateResponse, DropdownConfig, DropdownInstance, DropdownItem, DropdownPosition, ErrorValidationStatus, FileUploadData, FileUploadOptions, FloatingComponentConfig, FloatingContainerConfig, FloatingContainerInstance, 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 };
|
|
2757
|
+
export { CideCoreFileManagerService, CideEleButtonComponent, CideEleConfirmationModalComponent, CideEleDataGridComponent, CideEleDropdownComponent, CideEleFileImageDirective, CideEleFileInputComponent, CideEleFileManagerService, CideEleFloatingContainerComponent, CideEleFloatingContainerDynamicDirective, CideEleFloatingContainerManagerComponent, CideEleFloatingContainerService, CideEleFloatingFeaturesService, CideEleFloatingFileUploaderComponent, CideEleFloatingFileUploaderService, CideEleGlobalNotificationsComponent, CideEleJsonEditorComponent, CideEleResizerDirective, CideEleSkeletonLoaderComponent, CideEleTabComponent, CideEleToastNotificationComponent, CideElementsService, CideIconComponent, CideInputComponent, CideSelectComponent, CideSelectOptionComponent, CideSpinnerComponent, CideTextareaComponent, ConfirmationService, CoreFileManagerInsertUpdatePayload, DEFAULT_GRID_CONFIG, DropdownManagerService, ICoreCyfmSave, MFileManager, NotificationService, TooltipDirective };
|
|
2758
|
+
export type { ButtonElevation, ButtonShape, ButtonSize, ButtonType, ButtonVariant, CideEleResizerDirection, CideEleResizerDirectionTo, ColumnType, ColumnWidth, ConfirmationOptions, ConfirmationRequest, CoreFileManagerInsertUpdateResponse, DropdownConfig, DropdownInstance, DropdownItem, DropdownPosition, ErrorValidationStatus, FileUploadData, FileUploadOptions, FileUploaderData, FloatingComponentConfig, FloatingContainerConfig, FloatingContainerInstance, 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 };
|