cloud-ide-element 1.0.46 → 1.0.52
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 +757 -246
- package/fesm2022/cloud-ide-element.mjs.map +1 -1
- package/index.d.ts +78 -4
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -3,8 +3,9 @@ import { PipeTransform, OnChanges, OnInit, OnDestroy, EventEmitter, TemplateRef,
|
|
|
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 } from 'cloud-ide-lms-model';
|
|
5
5
|
import { Router, NavigationExtras } from '@angular/router';
|
|
6
|
-
import { BehaviorSubject } from 'rxjs';
|
|
6
|
+
import { BehaviorSubject, Observable } from 'rxjs';
|
|
7
7
|
import * as cloud_ide_element from 'cloud-ide-element';
|
|
8
|
+
import { HttpClient } from '@angular/common/http';
|
|
8
9
|
|
|
9
10
|
declare class CapitalizePipe implements PipeTransform {
|
|
10
11
|
transform(value: string, capitalizationMethod: 'allUpperCase' | 'titleCase' | 'sentenceCase'): string;
|
|
@@ -444,6 +445,9 @@ declare class CideSelectComponent implements ControlValueAccessor, Validator, On
|
|
|
444
445
|
searchTerm: string;
|
|
445
446
|
filteredOptions: (SelectOption | SelectOptionObject)[];
|
|
446
447
|
private searchDebounceTimeout;
|
|
448
|
+
private searchSubject;
|
|
449
|
+
private destroy$;
|
|
450
|
+
private isUpdatingOptions;
|
|
447
451
|
private portalService;
|
|
448
452
|
private dropdownPortalId;
|
|
449
453
|
dropdownTemplate: TemplateRef<any>;
|
|
@@ -474,6 +478,10 @@ declare class CideSelectComponent implements ControlValueAccessor, Validator, On
|
|
|
474
478
|
private createDropdownPortal;
|
|
475
479
|
private destroyDropdownPortal;
|
|
476
480
|
private updatePortalContext;
|
|
481
|
+
private updateOptionsInDOM;
|
|
482
|
+
private setupDebouncedSearch;
|
|
483
|
+
private performSearch;
|
|
484
|
+
private cleanupOrphanedPortals;
|
|
477
485
|
private onWindowResize;
|
|
478
486
|
private calculateDropdownPosition;
|
|
479
487
|
selectOption(option: SelectOption | SelectOptionObject): void;
|
|
@@ -484,6 +492,7 @@ declare class CideSelectComponent implements ControlValueAccessor, Validator, On
|
|
|
484
492
|
filterOptions(): void;
|
|
485
493
|
onSearchInput(event: Event): void;
|
|
486
494
|
onDropdownMouseDown(): void;
|
|
495
|
+
onSearchInputBlur(event: Event): void;
|
|
487
496
|
onDropdownMouseUp(): void;
|
|
488
497
|
isOptionSelected(option: SelectOption | SelectOptionObject): boolean;
|
|
489
498
|
getOptionValue(option: SelectOption | SelectOptionObject): string | number;
|
|
@@ -523,6 +532,8 @@ declare class CideEleTabComponent implements OnInit {
|
|
|
523
532
|
}
|
|
524
533
|
|
|
525
534
|
declare class CideEleFileInputComponent implements ControlValueAccessor, OnDestroy {
|
|
535
|
+
private fileManagerService;
|
|
536
|
+
private notificationService;
|
|
526
537
|
label: string;
|
|
527
538
|
accept: string;
|
|
528
539
|
multiple: boolean;
|
|
@@ -533,10 +544,19 @@ declare class CideEleFileInputComponent implements ControlValueAccessor, OnDestr
|
|
|
533
544
|
previewWidth: string;
|
|
534
545
|
previewHeight: string;
|
|
535
546
|
previewBoxMode: boolean;
|
|
547
|
+
showFileName: boolean;
|
|
536
548
|
placeholderText: string;
|
|
537
549
|
placeholderIcon: string;
|
|
550
|
+
autoUpload: boolean;
|
|
551
|
+
uploadData: any;
|
|
538
552
|
id: string;
|
|
553
|
+
isUploading: boolean;
|
|
554
|
+
uploadProgress: number;
|
|
555
|
+
private uploadNotificationId;
|
|
539
556
|
fileChange: EventEmitter<FileList | null>;
|
|
557
|
+
uploadSuccess: EventEmitter<string>;
|
|
558
|
+
uploadError: EventEmitter<string>;
|
|
559
|
+
uploadProgressChange: EventEmitter<number>;
|
|
540
560
|
files: FileList | null;
|
|
541
561
|
fileNames: string[];
|
|
542
562
|
previewUrls: string[];
|
|
@@ -548,6 +568,9 @@ declare class CideEleFileInputComponent implements ControlValueAccessor, OnDestr
|
|
|
548
568
|
setDisabledState(isDisabled: boolean): void;
|
|
549
569
|
onFileSelected(event: Event): void;
|
|
550
570
|
clearFiles(): void;
|
|
571
|
+
private uploadFile;
|
|
572
|
+
private progressInterval;
|
|
573
|
+
private simulateProgress;
|
|
551
574
|
private generatePreviews;
|
|
552
575
|
private clearPreviews;
|
|
553
576
|
private isImageFile;
|
|
@@ -558,7 +581,7 @@ declare class CideEleFileInputComponent implements ControlValueAccessor, OnDestr
|
|
|
558
581
|
isPreviewBoxMode(): boolean;
|
|
559
582
|
hasImages(): boolean;
|
|
560
583
|
static ɵfac: i0.ɵɵFactoryDeclaration<CideEleFileInputComponent, never>;
|
|
561
|
-
static ɵcmp: i0.ɵɵ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; }; "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; }; "placeholderText": { "alias": "placeholderText"; "required": false; }; "placeholderIcon": { "alias": "placeholderIcon"; "required": false; }; }, { "fileChange": "fileChange"; }, never, never, true, never>;
|
|
584
|
+
static ɵcmp: i0.ɵɵ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; }; "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>;
|
|
562
585
|
}
|
|
563
586
|
|
|
564
587
|
declare class CideTextareaComponent implements ControlValueAccessor, Validator, OnInit, OnChanges {
|
|
@@ -1115,6 +1138,7 @@ interface DropdownConfig {
|
|
|
1115
1138
|
forcePosition?: 'top' | 'bottom' | 'left' | 'right';
|
|
1116
1139
|
offsetX?: number;
|
|
1117
1140
|
offsetY?: number;
|
|
1141
|
+
minWidth?: number;
|
|
1118
1142
|
usePortal?: boolean;
|
|
1119
1143
|
}
|
|
1120
1144
|
interface DropdownPosition {
|
|
@@ -1158,6 +1182,7 @@ declare class CideEleDropdownComponent implements OnInit, OnDestroy {
|
|
|
1158
1182
|
getMenuStyles(): string;
|
|
1159
1183
|
calculatePosition(): DropdownPosition;
|
|
1160
1184
|
private getMenuWidth;
|
|
1185
|
+
protected getSafeConfig(): DropdownConfig;
|
|
1161
1186
|
private getEstimatedMenuHeight;
|
|
1162
1187
|
toggleDropdown(event: Event): void;
|
|
1163
1188
|
private openDropdown;
|
|
@@ -1270,6 +1295,8 @@ interface NotificationOptions {
|
|
|
1270
1295
|
undoText?: string;
|
|
1271
1296
|
icon?: string;
|
|
1272
1297
|
title?: string;
|
|
1298
|
+
progress?: number;
|
|
1299
|
+
showProgress?: boolean;
|
|
1273
1300
|
}
|
|
1274
1301
|
interface NotificationItem {
|
|
1275
1302
|
id: string;
|
|
@@ -1283,6 +1310,8 @@ interface NotificationItem {
|
|
|
1283
1310
|
title?: string;
|
|
1284
1311
|
timestamp: number;
|
|
1285
1312
|
isVisible: boolean;
|
|
1313
|
+
progress?: number;
|
|
1314
|
+
showProgress?: boolean;
|
|
1286
1315
|
}
|
|
1287
1316
|
declare class NotificationService {
|
|
1288
1317
|
private notifications;
|
|
@@ -1317,6 +1346,14 @@ declare class NotificationService {
|
|
|
1317
1346
|
* Show a notification for background tasks
|
|
1318
1347
|
*/
|
|
1319
1348
|
showBackgroundTask(taskName: string, isComplete?: boolean, options?: Partial<NotificationOptions>): string;
|
|
1349
|
+
/**
|
|
1350
|
+
* Show a progress notification
|
|
1351
|
+
*/
|
|
1352
|
+
showProgress(message: string, progress?: number, options?: Partial<NotificationOptions>): string;
|
|
1353
|
+
/**
|
|
1354
|
+
* Update progress for an existing notification
|
|
1355
|
+
*/
|
|
1356
|
+
updateProgress(id: string, progress: number, message?: string): void;
|
|
1320
1357
|
/**
|
|
1321
1358
|
* Core show method
|
|
1322
1359
|
*/
|
|
@@ -1342,6 +1379,43 @@ declare class NotificationService {
|
|
|
1342
1379
|
static ɵprov: i0.ɵɵInjectableDeclaration<NotificationService>;
|
|
1343
1380
|
}
|
|
1344
1381
|
|
|
1382
|
+
interface FileUploadPayload {
|
|
1383
|
+
cyfm_name: string;
|
|
1384
|
+
cyfm_alt_text: string;
|
|
1385
|
+
cyfm_path: string;
|
|
1386
|
+
cyfm_size_in_byte: number;
|
|
1387
|
+
cyfm_type: string;
|
|
1388
|
+
cyfm_creation_dt: string;
|
|
1389
|
+
cyfm_id_user: string;
|
|
1390
|
+
cyfm_permissions: string[];
|
|
1391
|
+
cyfm_tags: string[];
|
|
1392
|
+
cyfm_version: number;
|
|
1393
|
+
cyfm_file_status_sygmt: string;
|
|
1394
|
+
cyfm_isactive: boolean;
|
|
1395
|
+
fileData: string;
|
|
1396
|
+
[key: string]: any;
|
|
1397
|
+
}
|
|
1398
|
+
declare class CideEleFileManagerService {
|
|
1399
|
+
private http;
|
|
1400
|
+
private baseUrl;
|
|
1401
|
+
constructor(http: HttpClient);
|
|
1402
|
+
/**
|
|
1403
|
+
* Upload a file with base64 encoding
|
|
1404
|
+
* @param file The file to upload
|
|
1405
|
+
* @param additionalData Additional data to include in the payload
|
|
1406
|
+
* @returns Observable with the upload response
|
|
1407
|
+
*/
|
|
1408
|
+
uploadFile(file: File, additionalData?: any): Observable<any>;
|
|
1409
|
+
/**
|
|
1410
|
+
* Set the base URL for API calls
|
|
1411
|
+
* This should be called by the consuming application during initialization
|
|
1412
|
+
* @param url The base URL for the API
|
|
1413
|
+
*/
|
|
1414
|
+
setBaseUrl(url: string): void;
|
|
1415
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CideEleFileManagerService, never>;
|
|
1416
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<CideEleFileManagerService>;
|
|
1417
|
+
}
|
|
1418
|
+
|
|
1345
1419
|
declare class CideEleConfirmationModalComponent implements OnInit, OnDestroy {
|
|
1346
1420
|
private readonly confirmationService;
|
|
1347
1421
|
readonly hasActiveConfirmation: i0.Signal<boolean>;
|
|
@@ -1491,5 +1565,5 @@ declare class CideEleJsonEditorComponent implements OnInit, ControlValueAccessor
|
|
|
1491
1565
|
static ɵcmp: i0.ɵɵ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>;
|
|
1492
1566
|
}
|
|
1493
1567
|
|
|
1494
|
-
export { CideEleButtonComponent, CideEleConfirmationModalComponent, CideEleDataGridComponent, CideEleDropdownComponent, CideEleFileInputComponent, CideEleGlobalNotificationsComponent, CideEleJsonEditorComponent, CideEleResizerDirective, CideEleSkeletonLoaderComponent, CideEleTabComponent, CideEleToastNotificationComponent, CideElementsService, CideIconComponent, CideInputComponent, CideSelectComponent, CideSelectOptionComponent, CideSpinnerComponent, CideTextareaComponent, ConfirmationService, DEFAULT_GRID_CONFIG, DropdownManagerService, NotificationService, TooltipDirective };
|
|
1495
|
-
export type { ButtonElevation, ButtonShape, ButtonSize, ButtonType, ButtonVariant, CideEleResizerDirection, CideEleResizerDirectionTo, ColumnType, ColumnWidth, ConfirmationOptions, ConfirmationRequest, DropdownConfig, DropdownInstance, DropdownItem, DropdownPosition, ErrorValidationStatus, GridAction, GridColumn, GridConfiguration, GridCustomFormatter, GridCustomRenderer, GridDragDropConfig, GridEvent, GridEventHandler, GridExportConfig, GridFormatter, GridLoadingConfig, GridPaginationConfig, GridScrollConfig, GridSearchConfig, GridState, GridTreeConfig, JsonEditorConfig, JsonEditorError, NotificationItem, NotificationOptions, SelectOption, SelectOptionObject, StatusConfig, TabItem, TemplateContext, TemplateRenderer, TextAlign, TooltipPlacement, TooltipType, ValidationStatus };
|
|
1568
|
+
export { CideEleButtonComponent, CideEleConfirmationModalComponent, CideEleDataGridComponent, CideEleDropdownComponent, CideEleFileInputComponent, CideEleFileManagerService, CideEleGlobalNotificationsComponent, CideEleJsonEditorComponent, CideEleResizerDirective, CideEleSkeletonLoaderComponent, CideEleTabComponent, CideEleToastNotificationComponent, CideElementsService, CideIconComponent, CideInputComponent, CideSelectComponent, CideSelectOptionComponent, CideSpinnerComponent, CideTextareaComponent, ConfirmationService, DEFAULT_GRID_CONFIG, DropdownManagerService, NotificationService, TooltipDirective };
|
|
1569
|
+
export type { ButtonElevation, ButtonShape, ButtonSize, ButtonType, ButtonVariant, CideEleResizerDirection, CideEleResizerDirectionTo, ColumnType, ColumnWidth, ConfirmationOptions, ConfirmationRequest, DropdownConfig, DropdownInstance, DropdownItem, DropdownPosition, ErrorValidationStatus, FileUploadPayload, GridAction, GridColumn, GridConfiguration, GridCustomFormatter, GridCustomRenderer, GridDragDropConfig, GridEvent, GridEventHandler, GridExportConfig, GridFormatter, GridLoadingConfig, GridPaginationConfig, GridScrollConfig, GridSearchConfig, GridState, GridTreeConfig, JsonEditorConfig, JsonEditorError, NotificationItem, NotificationOptions, SelectOption, SelectOptionObject, StatusConfig, TabItem, TemplateContext, TemplateRenderer, TextAlign, TooltipPlacement, TooltipType, ValidationStatus };
|