cloud-ide-element 1.1.1 → 1.1.2
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 +608 -1
- package/fesm2022/cloud-ide-element.mjs.map +1 -1
- package/index.d.ts +213 -5
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as _angular_core from '@angular/core';
|
|
2
2
|
import { PipeTransform, OnChanges, OnInit, OnDestroy, EventEmitter, TemplateRef, SimpleChanges, Renderer2, ElementRef, AfterContentInit, QueryList, ViewContainerRef, Signal, AfterViewInit, Type, Injector, ComponentRef } from '@angular/core';
|
|
3
|
-
import { ControlValueAccessor, Validator, AbstractControl, ValidationErrors } from '@angular/forms';
|
|
3
|
+
import { ControlValueAccessor, Validator, AbstractControl, ValidationErrors, FormGroup } 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';
|
|
6
6
|
import { BehaviorSubject, Observable } from 'rxjs';
|
|
@@ -604,7 +604,7 @@ declare class CideEleFileInputComponent implements ControlValueAccessor, OnDestr
|
|
|
604
604
|
readonly id: _angular_core.WritableSignal<string>;
|
|
605
605
|
readonly isUploading: _angular_core.WritableSignal<boolean>;
|
|
606
606
|
readonly uploadProgress: _angular_core.WritableSignal<number>;
|
|
607
|
-
readonly uploadStatus: _angular_core.WritableSignal<"
|
|
607
|
+
readonly uploadStatus: _angular_core.WritableSignal<"error" | "start" | "success" | "uploading" | "idle">;
|
|
608
608
|
readonly files: _angular_core.WritableSignal<FileList | null>;
|
|
609
609
|
readonly fileNames: _angular_core.WritableSignal<string[]>;
|
|
610
610
|
readonly previewUrls: _angular_core.WritableSignal<string[]>;
|
|
@@ -731,7 +731,7 @@ declare class CideEleFileInputComponent implements ControlValueAccessor, OnDestr
|
|
|
731
731
|
multiple: boolean;
|
|
732
732
|
showPreview: boolean;
|
|
733
733
|
autoUpload: boolean;
|
|
734
|
-
uploadStatus: "
|
|
734
|
+
uploadStatus: "error" | "start" | "success" | "uploading" | "idle";
|
|
735
735
|
isUploading: boolean;
|
|
736
736
|
uploadProgress: number;
|
|
737
737
|
files: {
|
|
@@ -2881,5 +2881,213 @@ declare class FloatingContainerShortcutsService {
|
|
|
2881
2881
|
static ɵprov: _angular_core.ɵɵInjectableDeclaration<FloatingContainerShortcutsService>;
|
|
2882
2882
|
}
|
|
2883
2883
|
|
|
2884
|
-
|
|
2885
|
-
|
|
2884
|
+
declare class CideFormFieldErrorComponent implements OnInit, OnChanges {
|
|
2885
|
+
control: AbstractControl;
|
|
2886
|
+
formGroup: FormGroup;
|
|
2887
|
+
fieldName: string;
|
|
2888
|
+
customMessages: {
|
|
2889
|
+
[key: string]: string;
|
|
2890
|
+
};
|
|
2891
|
+
private fieldLabelsMap;
|
|
2892
|
+
private elementService;
|
|
2893
|
+
formErrors: _angular_core.WritableSignal<string[]>;
|
|
2894
|
+
ngOnInit(): void;
|
|
2895
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
2896
|
+
private setupFormChangeListener;
|
|
2897
|
+
private updateFormErrors;
|
|
2898
|
+
private loadFormErrors;
|
|
2899
|
+
isFormGroupMode(): boolean;
|
|
2900
|
+
getFormGroupErrors(): Promise<string[]>;
|
|
2901
|
+
private buildFieldLabelsMap;
|
|
2902
|
+
getFormGroupErrorMessage(): string;
|
|
2903
|
+
getControlErrorMessage(control: AbstractControl, fieldName: string): string;
|
|
2904
|
+
getErrorMessage(): string;
|
|
2905
|
+
private getFieldDisplayName;
|
|
2906
|
+
private convertToDisplayName;
|
|
2907
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<CideFormFieldErrorComponent, never>;
|
|
2908
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<CideFormFieldErrorComponent, "cide-form-field-error", never, { "control": { "alias": "control"; "required": false; }; "formGroup": { "alias": "formGroup"; "required": false; }; "fieldName": { "alias": "fieldName"; "required": false; }; "customMessages": { "alias": "customMessages"; "required": false; }; }, {}, never, never, true, never>;
|
|
2909
|
+
}
|
|
2910
|
+
|
|
2911
|
+
interface BreadcrumbItem$1 {
|
|
2912
|
+
id: string;
|
|
2913
|
+
label: string;
|
|
2914
|
+
icon?: string;
|
|
2915
|
+
url?: string;
|
|
2916
|
+
disabled?: boolean;
|
|
2917
|
+
type?: 'root' | 'category' | 'entity' | 'custom';
|
|
2918
|
+
metadata?: any;
|
|
2919
|
+
}
|
|
2920
|
+
interface BreadcrumbDropdownOption$1 {
|
|
2921
|
+
id: string;
|
|
2922
|
+
label: string;
|
|
2923
|
+
icon?: string;
|
|
2924
|
+
disabled?: boolean;
|
|
2925
|
+
action?: () => void;
|
|
2926
|
+
}
|
|
2927
|
+
interface BreadcrumbSeparator$1 {
|
|
2928
|
+
type: 'chevron' | 'slash' | 'arrow' | 'dot' | 'custom';
|
|
2929
|
+
icon?: string;
|
|
2930
|
+
text?: string;
|
|
2931
|
+
}
|
|
2932
|
+
type BreadcrumbStyle$1 = 'modern' | 'classic' | 'minimal' | 'hierarchical';
|
|
2933
|
+
interface BreadcrumbConfig$1 {
|
|
2934
|
+
style: BreadcrumbStyle$1;
|
|
2935
|
+
separator: BreadcrumbSeparator$1;
|
|
2936
|
+
showHomeIcon: boolean;
|
|
2937
|
+
homeIcon: string;
|
|
2938
|
+
maxItems: number;
|
|
2939
|
+
showDropdownOnOverflow: boolean;
|
|
2940
|
+
dropdownOptions: BreadcrumbDropdownOption$1[];
|
|
2941
|
+
clickableItems: boolean;
|
|
2942
|
+
showTooltips: boolean;
|
|
2943
|
+
responsive: boolean;
|
|
2944
|
+
compact: boolean;
|
|
2945
|
+
animated: boolean;
|
|
2946
|
+
}
|
|
2947
|
+
declare class CideEleBreadcrumbComponent implements OnInit, OnDestroy {
|
|
2948
|
+
items: BreadcrumbItem$1[];
|
|
2949
|
+
style: BreadcrumbStyle$1;
|
|
2950
|
+
separator: BreadcrumbSeparator$1;
|
|
2951
|
+
showHomeIcon: boolean;
|
|
2952
|
+
homeIcon: string;
|
|
2953
|
+
maxItems: number;
|
|
2954
|
+
showDropdownOnOverflow: boolean;
|
|
2955
|
+
dropdownOptions: BreadcrumbDropdownOption$1[];
|
|
2956
|
+
clickableItems: boolean;
|
|
2957
|
+
showTooltips: boolean;
|
|
2958
|
+
responsive: boolean;
|
|
2959
|
+
compact: boolean;
|
|
2960
|
+
animated: boolean;
|
|
2961
|
+
loading: boolean;
|
|
2962
|
+
disabled: boolean;
|
|
2963
|
+
itemClick: EventEmitter<BreadcrumbItem$1>;
|
|
2964
|
+
dropdownOptionClick: EventEmitter<BreadcrumbDropdownOption$1>;
|
|
2965
|
+
homeClick: EventEmitter<void>;
|
|
2966
|
+
private showDropdown;
|
|
2967
|
+
private isOverflowing;
|
|
2968
|
+
private visibleItems;
|
|
2969
|
+
private hiddenItems;
|
|
2970
|
+
showDropdownSignal: _angular_core.Signal<boolean>;
|
|
2971
|
+
isOverflowingSignal: _angular_core.Signal<boolean>;
|
|
2972
|
+
visibleItemsSignal: _angular_core.Signal<BreadcrumbItem$1[]>;
|
|
2973
|
+
hiddenItemsSignal: _angular_core.Signal<BreadcrumbItem$1[]>;
|
|
2974
|
+
config: _angular_core.Signal<BreadcrumbConfig$1>;
|
|
2975
|
+
ngOnInit(): void;
|
|
2976
|
+
ngOnDestroy(): void;
|
|
2977
|
+
onDocumentClick(event: Event): void;
|
|
2978
|
+
private processItems;
|
|
2979
|
+
private getConfigForStyle;
|
|
2980
|
+
onItemClick(item: BreadcrumbItem$1): void;
|
|
2981
|
+
onHomeClick(): void;
|
|
2982
|
+
onDropdownToggle(): void;
|
|
2983
|
+
onDropdownOptionClick(option: BreadcrumbDropdownOption$1): void;
|
|
2984
|
+
getItemClasses(item: BreadcrumbItem$1, isLast?: boolean): string;
|
|
2985
|
+
getContainerClasses(): string;
|
|
2986
|
+
getSeparatorIcon(): string;
|
|
2987
|
+
getTooltipText(item: BreadcrumbItem$1): string;
|
|
2988
|
+
toggleDropdown(): void;
|
|
2989
|
+
closeDropdown(): void;
|
|
2990
|
+
updateItems(newItems: BreadcrumbItem$1[]): void;
|
|
2991
|
+
addItem(item: BreadcrumbItem$1): void;
|
|
2992
|
+
removeItem(itemId: string): void;
|
|
2993
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<CideEleBreadcrumbComponent, never>;
|
|
2994
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<CideEleBreadcrumbComponent, "cide-ele-breadcrumb", never, { "items": { "alias": "items"; "required": false; }; "style": { "alias": "style"; "required": false; }; "separator": { "alias": "separator"; "required": false; }; "showHomeIcon": { "alias": "showHomeIcon"; "required": false; }; "homeIcon": { "alias": "homeIcon"; "required": false; }; "maxItems": { "alias": "maxItems"; "required": false; }; "showDropdownOnOverflow": { "alias": "showDropdownOnOverflow"; "required": false; }; "dropdownOptions": { "alias": "dropdownOptions"; "required": false; }; "clickableItems": { "alias": "clickableItems"; "required": false; }; "showTooltips": { "alias": "showTooltips"; "required": false; }; "responsive": { "alias": "responsive"; "required": false; }; "compact": { "alias": "compact"; "required": false; }; "animated": { "alias": "animated"; "required": false; }; "loading": { "alias": "loading"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; }, { "itemClick": "itemClick"; "dropdownOptionClick": "dropdownOptionClick"; "homeClick": "homeClick"; }, never, never, true, never>;
|
|
2995
|
+
}
|
|
2996
|
+
|
|
2997
|
+
interface BreadcrumbItem {
|
|
2998
|
+
/** Unique identifier for the breadcrumb item */
|
|
2999
|
+
id: string;
|
|
3000
|
+
/** Display label for the breadcrumb item */
|
|
3001
|
+
label: string;
|
|
3002
|
+
/** Optional icon name (Material Icons) */
|
|
3003
|
+
icon?: string;
|
|
3004
|
+
/** Optional URL for navigation */
|
|
3005
|
+
url?: string;
|
|
3006
|
+
/** Whether the item is disabled */
|
|
3007
|
+
disabled?: boolean;
|
|
3008
|
+
/** Type of the breadcrumb item */
|
|
3009
|
+
type?: 'root' | 'category' | 'entity' | 'custom';
|
|
3010
|
+
/** Additional metadata for the item */
|
|
3011
|
+
metadata?: any;
|
|
3012
|
+
}
|
|
3013
|
+
interface BreadcrumbDropdownOption {
|
|
3014
|
+
/** Unique identifier for the dropdown option */
|
|
3015
|
+
id: string;
|
|
3016
|
+
/** Display label for the option */
|
|
3017
|
+
label: string;
|
|
3018
|
+
/** Optional icon name (Material Icons) */
|
|
3019
|
+
icon?: string;
|
|
3020
|
+
/** Whether the option is disabled */
|
|
3021
|
+
disabled?: boolean;
|
|
3022
|
+
/** Optional action function to execute when clicked */
|
|
3023
|
+
action?: () => void;
|
|
3024
|
+
}
|
|
3025
|
+
interface BreadcrumbSeparator {
|
|
3026
|
+
/** Type of separator to use */
|
|
3027
|
+
type: 'chevron' | 'slash' | 'arrow' | 'dot' | 'custom';
|
|
3028
|
+
/** Custom icon name (when type is not 'custom') */
|
|
3029
|
+
icon?: string;
|
|
3030
|
+
/** Custom text (when type is 'custom') */
|
|
3031
|
+
text?: string;
|
|
3032
|
+
}
|
|
3033
|
+
type BreadcrumbStyle = 'modern' | 'classic' | 'minimal' | 'hierarchical';
|
|
3034
|
+
interface BreadcrumbConfig {
|
|
3035
|
+
/** Style variant */
|
|
3036
|
+
style: BreadcrumbStyle;
|
|
3037
|
+
/** Separator configuration */
|
|
3038
|
+
separator: BreadcrumbSeparator;
|
|
3039
|
+
/** Whether to show home icon */
|
|
3040
|
+
showHomeIcon: boolean;
|
|
3041
|
+
/** Home icon name */
|
|
3042
|
+
homeIcon: string;
|
|
3043
|
+
/** Maximum number of items to show before overflow */
|
|
3044
|
+
maxItems: number;
|
|
3045
|
+
/** Whether to show dropdown on overflow */
|
|
3046
|
+
showDropdownOnOverflow: boolean;
|
|
3047
|
+
/** Additional dropdown options */
|
|
3048
|
+
dropdownOptions: BreadcrumbDropdownOption[];
|
|
3049
|
+
/** Whether items are clickable */
|
|
3050
|
+
clickableItems: boolean;
|
|
3051
|
+
/** Whether to show tooltips */
|
|
3052
|
+
showTooltips: boolean;
|
|
3053
|
+
/** Whether to enable responsive behavior */
|
|
3054
|
+
responsive: boolean;
|
|
3055
|
+
/** Whether to use compact styling */
|
|
3056
|
+
compact: boolean;
|
|
3057
|
+
/** Whether to enable animations */
|
|
3058
|
+
animated: boolean;
|
|
3059
|
+
}
|
|
3060
|
+
interface BreadcrumbEvents {
|
|
3061
|
+
/** Emitted when a breadcrumb item is clicked */
|
|
3062
|
+
itemClick: BreadcrumbItem;
|
|
3063
|
+
/** Emitted when a dropdown option is clicked */
|
|
3064
|
+
dropdownOptionClick: BreadcrumbDropdownOption;
|
|
3065
|
+
/** Emitted when home icon is clicked */
|
|
3066
|
+
homeClick: void;
|
|
3067
|
+
}
|
|
3068
|
+
declare const BREADCRUMB_STYLES: Record<BreadcrumbStyle, BreadcrumbConfig>;
|
|
3069
|
+
declare class BreadcrumbUtils {
|
|
3070
|
+
/**
|
|
3071
|
+
* Create a breadcrumb item
|
|
3072
|
+
*/
|
|
3073
|
+
static createItem(id: string, label: string, options?: Partial<BreadcrumbItem>): BreadcrumbItem;
|
|
3074
|
+
/**
|
|
3075
|
+
* Create a dropdown option
|
|
3076
|
+
*/
|
|
3077
|
+
static createDropdownOption(id: string, label: string, options?: Partial<BreadcrumbDropdownOption>): BreadcrumbDropdownOption;
|
|
3078
|
+
/**
|
|
3079
|
+
* Create a separator
|
|
3080
|
+
*/
|
|
3081
|
+
static createSeparator(type: BreadcrumbSeparator['type'], options?: Partial<BreadcrumbSeparator>): BreadcrumbSeparator;
|
|
3082
|
+
/**
|
|
3083
|
+
* Get default configuration for a style
|
|
3084
|
+
*/
|
|
3085
|
+
static getDefaultConfig(style: BreadcrumbStyle): BreadcrumbConfig;
|
|
3086
|
+
/**
|
|
3087
|
+
* Merge configurations
|
|
3088
|
+
*/
|
|
3089
|
+
static mergeConfig(base: BreadcrumbConfig, override: Partial<BreadcrumbConfig>): BreadcrumbConfig;
|
|
3090
|
+
}
|
|
3091
|
+
|
|
3092
|
+
export { BREADCRUMB_STYLES, BreadcrumbUtils, CideCoreFileManagerService, CideEleBreadcrumbComponent, CideEleButtonComponent, CideEleConfirmationModalComponent, CideEleDataGridComponent, CideEleDropdownComponent, CideEleFileImageDirective, CideEleFileInputComponent, CideEleFileManagerService, CideEleFloatingContainerComponent, CideEleFloatingContainerDynamicDirective, CideEleFloatingContainerManagerComponent, CideEleFloatingContainerService, CideEleFloatingFeaturesService, CideEleFloatingFileUploaderComponent, CideEleFloatingFileUploaderService, CideEleGlobalNotificationsComponent, CideEleJsonEditorComponent, CideEleResizerDirective, CideEleSkeletonLoaderComponent, CideEleTabComponent, CideEleToastNotificationComponent, CideElementsService, CideFormFieldErrorComponent, CideIconComponent, CideInputComponent, CideSelectComponent, CideSelectOptionComponent, CideSpinnerComponent, CideTextareaComponent, ConfirmationService, CoreFileManagerInsertUpdatePayload, DEFAULT_GRID_CONFIG, DropdownManagerService, FloatingContainerShortcutsService, ICoreCyfmSave, KeyboardShortcutService, MFileManager, NotificationService, TooltipDirective };
|
|
3093
|
+
export type { BreadcrumbConfig, BreadcrumbDropdownOption, BreadcrumbEvents, BreadcrumbItem, BreadcrumbSeparator, BreadcrumbStyle, ButtonElevation, ButtonShape, ButtonSize, ButtonType, ButtonVariant, CideEleResizerDirection, CideEleResizerDirectionTo, ColumnType, ColumnWidth, ConfirmationOptions, ConfirmationRequest, CoreFileManagerInsertUpdateResponse, DropdownConfig, DropdownInstance, DropdownItem, DropdownPosition, ErrorValidationStatus, FileUploadData, FileUploadOptions, FileUploaderData, FloatingComponentConfig, FloatingContainerConfig, FloatingContainerInstance, FloatingFileUploaderData, 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, KeyboardShortcut, NotificationItem, NotificationOptions, SelectOption, SelectOptionObject, ServiceState, ShortcutOverride, StatusConfig, TabItem, TemplateContext, TemplateRenderer, TextAlign, TooltipPlacement, TooltipType, UploadProgress, ValidationStatus, controllerResponse, fileManagerControllerResponse, fileManagerResponseData, mongooseObjectIdCreateControllerResponse };
|