cloud-ide-element 1.0.113 → 1.0.115
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 +1185 -13
- package/fesm2022/cloud-ide-element.mjs.map +1 -1
- package/index.d.ts +265 -5
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as _angular_core from '@angular/core';
|
|
2
|
-
import { PipeTransform, OnChanges, OnInit, OnDestroy, EventEmitter, TemplateRef, SimpleChanges, Renderer2, ElementRef, AfterContentInit, QueryList, ViewContainerRef } from '@angular/core';
|
|
2
|
+
import { PipeTransform, OnChanges, OnInit, OnDestroy, EventEmitter, TemplateRef, SimpleChanges, Renderer2, ElementRef, AfterContentInit, QueryList, ViewContainerRef, AfterViewInit, Signal, Type, Injector, ComponentRef } from '@angular/core';
|
|
3
3
|
import { ControlValueAccessor, Validator, AbstractControl, ValidationErrors } from '@angular/forms';
|
|
4
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';
|
|
@@ -599,7 +599,7 @@ declare class CideEleFileInputComponent implements ControlValueAccessor, OnDestr
|
|
|
599
599
|
readonly id: _angular_core.WritableSignal<string>;
|
|
600
600
|
readonly isUploading: _angular_core.WritableSignal<boolean>;
|
|
601
601
|
readonly uploadProgress: _angular_core.WritableSignal<number>;
|
|
602
|
-
readonly uploadStatus: _angular_core.WritableSignal<"
|
|
602
|
+
readonly uploadStatus: _angular_core.WritableSignal<"error" | "start" | "success" | "uploading" | "idle">;
|
|
603
603
|
readonly files: _angular_core.WritableSignal<FileList | null>;
|
|
604
604
|
readonly fileNames: _angular_core.WritableSignal<string[]>;
|
|
605
605
|
readonly previewUrls: _angular_core.WritableSignal<string[]>;
|
|
@@ -726,7 +726,7 @@ declare class CideEleFileInputComponent implements ControlValueAccessor, OnDestr
|
|
|
726
726
|
multiple: boolean;
|
|
727
727
|
showPreview: boolean;
|
|
728
728
|
autoUpload: boolean;
|
|
729
|
-
uploadStatus: "
|
|
729
|
+
uploadStatus: "error" | "start" | "success" | "uploading" | "idle";
|
|
730
730
|
isUploading: boolean;
|
|
731
731
|
uploadProgress: number;
|
|
732
732
|
files: {
|
|
@@ -2405,5 +2405,265 @@ declare class CideEleJsonEditorComponent implements OnInit, ControlValueAccessor
|
|
|
2405
2405
|
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>;
|
|
2406
2406
|
}
|
|
2407
2407
|
|
|
2408
|
-
|
|
2409
|
-
|
|
2408
|
+
interface FloatingContainerConfig {
|
|
2409
|
+
id: string;
|
|
2410
|
+
title: string;
|
|
2411
|
+
icon?: string;
|
|
2412
|
+
headerColor?: string;
|
|
2413
|
+
width?: string;
|
|
2414
|
+
height?: string;
|
|
2415
|
+
minWidth?: string;
|
|
2416
|
+
minHeight?: string;
|
|
2417
|
+
maxWidth?: string;
|
|
2418
|
+
maxHeight?: string;
|
|
2419
|
+
resizable?: boolean;
|
|
2420
|
+
draggable?: boolean;
|
|
2421
|
+
closable?: boolean;
|
|
2422
|
+
minimizable?: boolean;
|
|
2423
|
+
maximizable?: boolean;
|
|
2424
|
+
isMinimized?: boolean;
|
|
2425
|
+
isMaximized?: boolean;
|
|
2426
|
+
componentId?: string;
|
|
2427
|
+
componentConfig?: {
|
|
2428
|
+
inputs?: {
|
|
2429
|
+
[key: string]: any;
|
|
2430
|
+
};
|
|
2431
|
+
outputs?: {
|
|
2432
|
+
[key: string]: (event: any) => void;
|
|
2433
|
+
};
|
|
2434
|
+
};
|
|
2435
|
+
}
|
|
2436
|
+
declare class CideEleFloatingContainerComponent implements AfterViewInit, OnDestroy {
|
|
2437
|
+
config: _angular_core.WritableSignal<FloatingContainerConfig>;
|
|
2438
|
+
isMinimized: Signal<boolean>;
|
|
2439
|
+
isMaximized: Signal<boolean>;
|
|
2440
|
+
isVisible: Signal<boolean>;
|
|
2441
|
+
closeEvent: EventEmitter<string>;
|
|
2442
|
+
minimizeEvent: EventEmitter<string>;
|
|
2443
|
+
maximizeEvent: EventEmitter<string>;
|
|
2444
|
+
containerRef: ElementRef<HTMLDivElement>;
|
|
2445
|
+
position: _angular_core.WritableSignal<{
|
|
2446
|
+
x: number;
|
|
2447
|
+
y: number;
|
|
2448
|
+
}>;
|
|
2449
|
+
isDragging: _angular_core.WritableSignal<boolean>;
|
|
2450
|
+
isResizing: _angular_core.WritableSignal<boolean>;
|
|
2451
|
+
computedConfig: Signal<FloatingContainerConfig>;
|
|
2452
|
+
private dragStart;
|
|
2453
|
+
private resizeStart;
|
|
2454
|
+
private originalPosition;
|
|
2455
|
+
private originalSize;
|
|
2456
|
+
private savedPosition;
|
|
2457
|
+
savedHeight: string;
|
|
2458
|
+
ngAfterViewInit(): void;
|
|
2459
|
+
constructor();
|
|
2460
|
+
ngOnDestroy(): void;
|
|
2461
|
+
centerContainer(): void;
|
|
2462
|
+
startDrag(event: MouseEvent): void;
|
|
2463
|
+
onDragMove(event: MouseEvent): void;
|
|
2464
|
+
onDragEnd(): void;
|
|
2465
|
+
startResize(event: MouseEvent): void;
|
|
2466
|
+
onResizeMove(event: MouseEvent): void;
|
|
2467
|
+
onResizeEnd(): void;
|
|
2468
|
+
onMouseDown(event: MouseEvent): void;
|
|
2469
|
+
onMouseMove(event: MouseEvent): void;
|
|
2470
|
+
onMouseUp(event: MouseEvent): void;
|
|
2471
|
+
onHeaderClick(event: MouseEvent): void;
|
|
2472
|
+
minimize(): void;
|
|
2473
|
+
toggleMaximize(): void;
|
|
2474
|
+
close(): void;
|
|
2475
|
+
getHeaderBackground(): string;
|
|
2476
|
+
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>;
|
|
2478
|
+
}
|
|
2479
|
+
|
|
2480
|
+
interface FloatingComponentConfig {
|
|
2481
|
+
componentId: string;
|
|
2482
|
+
componentType?: Type<any>;
|
|
2483
|
+
inputs?: {
|
|
2484
|
+
[key: string]: any;
|
|
2485
|
+
};
|
|
2486
|
+
outputs?: {
|
|
2487
|
+
[key: string]: (event: any) => void;
|
|
2488
|
+
};
|
|
2489
|
+
}
|
|
2490
|
+
interface FloatingContainerInstance {
|
|
2491
|
+
id: string;
|
|
2492
|
+
config: FloatingContainerConfig;
|
|
2493
|
+
isVisible: boolean;
|
|
2494
|
+
isMinimized: boolean;
|
|
2495
|
+
isMaximized: boolean;
|
|
2496
|
+
zIndex: number;
|
|
2497
|
+
instanceId: string;
|
|
2498
|
+
componentType: string;
|
|
2499
|
+
createdAt: Date;
|
|
2500
|
+
lastAccessed: Date;
|
|
2501
|
+
}
|
|
2502
|
+
declare class CideEleFloatingContainerService {
|
|
2503
|
+
private injector;
|
|
2504
|
+
private containers;
|
|
2505
|
+
private nextZIndex;
|
|
2506
|
+
private instanceCounter;
|
|
2507
|
+
private componentRegistry;
|
|
2508
|
+
private activeComponents;
|
|
2509
|
+
constructor(injector: Injector);
|
|
2510
|
+
visibleContainers: _angular_core.Signal<FloatingContainerInstance[]>;
|
|
2511
|
+
minimizedContainers: _angular_core.Signal<FloatingContainerInstance[]>;
|
|
2512
|
+
maximizedContainers: _angular_core.Signal<FloatingContainerInstance[]>;
|
|
2513
|
+
show(config: FloatingContainerConfig): string;
|
|
2514
|
+
hide(containerId: string): void;
|
|
2515
|
+
minimize(containerId: string): void;
|
|
2516
|
+
maximize(containerId: string): void;
|
|
2517
|
+
bringToFront(containerId: string): void;
|
|
2518
|
+
getContainer(containerId: string): FloatingContainerInstance | undefined;
|
|
2519
|
+
isVisible(containerId: string): boolean;
|
|
2520
|
+
isMinimized(containerId: string): boolean;
|
|
2521
|
+
isMaximized(containerId: string): boolean;
|
|
2522
|
+
hideAll(): void;
|
|
2523
|
+
minimizeAll(): void;
|
|
2524
|
+
private generateId;
|
|
2525
|
+
private generateInstanceId;
|
|
2526
|
+
getInstancesByComponentType(componentType: string): FloatingContainerInstance[];
|
|
2527
|
+
getActiveInstancesByComponentType(componentType: string): FloatingContainerInstance[];
|
|
2528
|
+
getInstanceCount(componentType: string): number;
|
|
2529
|
+
getActiveInstanceCount(componentType: string): number;
|
|
2530
|
+
closeAllInstancesOfType(componentType: string): void;
|
|
2531
|
+
minimizeAllInstancesOfType(componentType: string): void;
|
|
2532
|
+
bringAllInstancesToFront(componentType: string): void;
|
|
2533
|
+
getInstanceByInstanceId(instanceId: string): FloatingContainerInstance | undefined;
|
|
2534
|
+
updateLastAccessed(containerId: string): void;
|
|
2535
|
+
/**
|
|
2536
|
+
* Register a component for dynamic loading
|
|
2537
|
+
*/
|
|
2538
|
+
registerComponent(componentId: string, componentType: Type<any>): void;
|
|
2539
|
+
/**
|
|
2540
|
+
* Unregister a component
|
|
2541
|
+
*/
|
|
2542
|
+
unregisterComponent(componentId: string): void;
|
|
2543
|
+
/**
|
|
2544
|
+
* Get registered component type
|
|
2545
|
+
*/
|
|
2546
|
+
getComponentType(componentId: string): Type<any> | undefined;
|
|
2547
|
+
/**
|
|
2548
|
+
* Check if component is registered
|
|
2549
|
+
*/
|
|
2550
|
+
isComponentRegistered(componentId: string): boolean;
|
|
2551
|
+
/**
|
|
2552
|
+
* Get registered component IDs
|
|
2553
|
+
*/
|
|
2554
|
+
getRegisteredComponentIds(): string[];
|
|
2555
|
+
/**
|
|
2556
|
+
* Create and load component dynamically
|
|
2557
|
+
*/
|
|
2558
|
+
loadComponent(componentId: string, viewContainer: ViewContainerRef, config?: FloatingComponentConfig): ComponentRef<any> | null;
|
|
2559
|
+
/**
|
|
2560
|
+
* Destroy component
|
|
2561
|
+
*/
|
|
2562
|
+
destroyComponent(componentId: string): void;
|
|
2563
|
+
/**
|
|
2564
|
+
* Get active component count
|
|
2565
|
+
*/
|
|
2566
|
+
getActiveComponentCount(): number;
|
|
2567
|
+
/**
|
|
2568
|
+
* Clear all active components
|
|
2569
|
+
*/
|
|
2570
|
+
clearActiveComponents(): void;
|
|
2571
|
+
/**
|
|
2572
|
+
* Get config signal for a container
|
|
2573
|
+
*/
|
|
2574
|
+
getConfigSignal(config: FloatingContainerConfig): _angular_core.WritableSignal<FloatingContainerConfig>;
|
|
2575
|
+
/**
|
|
2576
|
+
* Get minimized signal for a container
|
|
2577
|
+
*/
|
|
2578
|
+
getMinimizedSignal(containerId: string): _angular_core.Signal<boolean>;
|
|
2579
|
+
/**
|
|
2580
|
+
* Get maximized signal for a container
|
|
2581
|
+
*/
|
|
2582
|
+
getMaximizedSignal(containerId: string): _angular_core.Signal<boolean>;
|
|
2583
|
+
/**
|
|
2584
|
+
* Get visible signal for a container
|
|
2585
|
+
*/
|
|
2586
|
+
getVisibleSignal(containerId: string): _angular_core.Signal<boolean>;
|
|
2587
|
+
/**
|
|
2588
|
+
* Get component config for dynamic loading
|
|
2589
|
+
*/
|
|
2590
|
+
getComponentConfig(config: FloatingContainerConfig): {
|
|
2591
|
+
componentId: string;
|
|
2592
|
+
inputs: {
|
|
2593
|
+
[key: string]: any;
|
|
2594
|
+
} | undefined;
|
|
2595
|
+
outputs: {
|
|
2596
|
+
[key: string]: (event: any) => void;
|
|
2597
|
+
} | undefined;
|
|
2598
|
+
} | undefined;
|
|
2599
|
+
/**
|
|
2600
|
+
* Handle container close event
|
|
2601
|
+
*/
|
|
2602
|
+
onClose(containerId: string): void;
|
|
2603
|
+
/**
|
|
2604
|
+
* Handle container minimize event
|
|
2605
|
+
*/
|
|
2606
|
+
onMinimize(containerId: string): void;
|
|
2607
|
+
/**
|
|
2608
|
+
* Handle container maximize event
|
|
2609
|
+
*/
|
|
2610
|
+
onMaximize(containerId: string): void;
|
|
2611
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<CideEleFloatingContainerService, never>;
|
|
2612
|
+
static ɵprov: _angular_core.ɵɵInjectableDeclaration<CideEleFloatingContainerService>;
|
|
2613
|
+
}
|
|
2614
|
+
|
|
2615
|
+
declare class CideEleFloatingContainerManagerComponent {
|
|
2616
|
+
containerService: CideEleFloatingContainerService;
|
|
2617
|
+
visibleContainers: _angular_core.Signal<cloud_ide_element.FloatingContainerInstance[]>;
|
|
2618
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<CideEleFloatingContainerManagerComponent, never>;
|
|
2619
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<CideEleFloatingContainerManagerComponent, "cide-ele-floating-container-manager", never, {}, {}, never, never, true, never>;
|
|
2620
|
+
}
|
|
2621
|
+
|
|
2622
|
+
declare class CideEleFloatingFeaturesService {
|
|
2623
|
+
private containerService;
|
|
2624
|
+
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
|
+
showFeature(featureId: string, config: FloatingContainerConfig): string;
|
|
2630
|
+
showComponent(containerId: string, componentId: string, title: string, componentType?: any, config?: Partial<FloatingContainerConfig>): string;
|
|
2631
|
+
showMultipleInstances(componentId: string, titlePrefix: string, count: number, config?: Partial<FloatingContainerConfig>): string[];
|
|
2632
|
+
getInstancesOfType(componentType: string): cloud_ide_element.FloatingContainerInstance[];
|
|
2633
|
+
getActiveInstancesOfType(componentType: string): cloud_ide_element.FloatingContainerInstance[];
|
|
2634
|
+
closeAllInstancesOfType(componentType: string): void;
|
|
2635
|
+
minimizeAllInstancesOfType(componentType: string): void;
|
|
2636
|
+
getInstanceCount(componentType: string): number;
|
|
2637
|
+
getActiveInstanceCount(componentType: string): number;
|
|
2638
|
+
registerComponent(componentId: string, componentType: any): void;
|
|
2639
|
+
unregisterComponent(componentId: string): void;
|
|
2640
|
+
hideFeature(featureId: string): void;
|
|
2641
|
+
bringToFront(featureId: string): void;
|
|
2642
|
+
minimize(featureId: string): void;
|
|
2643
|
+
maximize(featureId: string): void;
|
|
2644
|
+
isVisible(featureId: string): boolean;
|
|
2645
|
+
hideAll(): void;
|
|
2646
|
+
minimizeAll(): void;
|
|
2647
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<CideEleFloatingFeaturesService, never>;
|
|
2648
|
+
static ɵprov: _angular_core.ɵɵInjectableDeclaration<CideEleFloatingFeaturesService>;
|
|
2649
|
+
}
|
|
2650
|
+
|
|
2651
|
+
declare class CideEleFloatingContainerDynamicDirective implements OnInit, OnDestroy {
|
|
2652
|
+
private viewContainer;
|
|
2653
|
+
private containerService;
|
|
2654
|
+
componentId: string;
|
|
2655
|
+
componentConfig?: FloatingComponentConfig;
|
|
2656
|
+
isVisible: boolean;
|
|
2657
|
+
private componentRef;
|
|
2658
|
+
constructor(viewContainer: ViewContainerRef, containerService: CideEleFloatingContainerService);
|
|
2659
|
+
ngOnInit(): void;
|
|
2660
|
+
ngOnDestroy(): void;
|
|
2661
|
+
ngOnChanges(): void;
|
|
2662
|
+
private loadComponent;
|
|
2663
|
+
private destroyComponent;
|
|
2664
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<CideEleFloatingContainerDynamicDirective, never>;
|
|
2665
|
+
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
|
+
}
|
|
2667
|
+
|
|
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 };
|