cloud-ide-element 1.1.24 → 1.1.26
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 +564 -39
- package/fesm2022/cloud-ide-element.mjs.map +1 -1
- package/index.d.ts +45 -2
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -1234,6 +1234,7 @@ declare class CideEleButtonComponent implements OnInit, OnChanges, OnDestroy {
|
|
|
1234
1234
|
private destroy$;
|
|
1235
1235
|
private clickCount;
|
|
1236
1236
|
private clickDebouncer$;
|
|
1237
|
+
isStandaloneElement: boolean;
|
|
1237
1238
|
constructor(elementService: CideElementsService, router: Router, renderer: Renderer2, elementRef: ElementRef);
|
|
1238
1239
|
/**
|
|
1239
1240
|
* @description Label of button like Submit, Update, Add, etc.
|
|
@@ -1294,7 +1295,7 @@ declare class CideEleButtonComponent implements OnInit, OnChanges, OnDestroy {
|
|
|
1294
1295
|
ngOnDestroy(): void;
|
|
1295
1296
|
getControlData(): Promise<void>;
|
|
1296
1297
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<CideEleButtonComponent, never>;
|
|
1297
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<CideEleButtonComponent, "button[cideEleButton], a[cideEleButton]", never, { "label": { "alias": "label"; "required": false; }; "variant": { "alias": "variant"; "required": false; }; "size": { "alias": "size"; "required": false; }; "type": { "alias": "type"; "required": false; }; "shape": { "alias": "shape"; "required": false; }; "elevation": { "alias": "elevation"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "id": { "alias": "id"; "required": false; }; "loading": { "alias": "loading"; "required": false; }; "fullWidth": { "alias": "fullWidth"; "required": false; }; "leftIcon": { "alias": "leftIcon"; "required": false; }; "rightIcon": { "alias": "rightIcon"; "required": false; }; "customClass": { "alias": "customClass"; "required": false; }; "tooltip": { "alias": "tooltip"; "required": false; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; }; "testId": { "alias": "testId"; "required": false; }; "routerLink": { "alias": "routerLink"; "required": false; }; "routerExtras": { "alias": "routerExtras"; "required": false; }; "preventDoubleClick": { "alias": "preventDoubleClick"; "required": false; }; "animated": { "alias": "animated"; "required": false; }; }, { "btnClick": "btnClick"; "doubleClick": "doubleClick"; }, never, ["*"], true, never>;
|
|
1298
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<CideEleButtonComponent, "button[cideEleButton], a[cideEleButton], cide-ele-button", never, { "label": { "alias": "label"; "required": false; }; "variant": { "alias": "variant"; "required": false; }; "size": { "alias": "size"; "required": false; }; "type": { "alias": "type"; "required": false; }; "shape": { "alias": "shape"; "required": false; }; "elevation": { "alias": "elevation"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "id": { "alias": "id"; "required": false; }; "loading": { "alias": "loading"; "required": false; }; "fullWidth": { "alias": "fullWidth"; "required": false; }; "leftIcon": { "alias": "leftIcon"; "required": false; }; "rightIcon": { "alias": "rightIcon"; "required": false; }; "customClass": { "alias": "customClass"; "required": false; }; "tooltip": { "alias": "tooltip"; "required": false; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; }; "testId": { "alias": "testId"; "required": false; }; "routerLink": { "alias": "routerLink"; "required": false; }; "routerExtras": { "alias": "routerExtras"; "required": false; }; "preventDoubleClick": { "alias": "preventDoubleClick"; "required": false; }; "animated": { "alias": "animated"; "required": false; }; }, { "btnClick": "btnClick"; "doubleClick": "doubleClick"; }, never, ["*", "*"], true, never>;
|
|
1298
1299
|
}
|
|
1299
1300
|
|
|
1300
1301
|
declare class CideIconComponent {
|
|
@@ -2239,6 +2240,7 @@ interface GridColumn {
|
|
|
2239
2240
|
align?: TextAlign;
|
|
2240
2241
|
renderer?: string;
|
|
2241
2242
|
valueGetter?: string;
|
|
2243
|
+
dataValueGetter?: string;
|
|
2242
2244
|
formatter?: GridFormatter;
|
|
2243
2245
|
actions?: GridAction[];
|
|
2244
2246
|
statusConfig?: StatusConfig;
|
|
@@ -2460,6 +2462,9 @@ declare class CideEleDataGridComponent<T = Record<string, unknown>> implements O
|
|
|
2460
2462
|
hiddenColumns: _angular_core.WritableSignal<string[]>;
|
|
2461
2463
|
showFilterPanel: _angular_core.WritableSignal<string | null>;
|
|
2462
2464
|
filterSearchTerm: _angular_core.WritableSignal<string>;
|
|
2465
|
+
showManageColumnsModal: _angular_core.WritableSignal<boolean>;
|
|
2466
|
+
groupedColumns: _angular_core.WritableSignal<string[]>;
|
|
2467
|
+
expandedGroups: _angular_core.WritableSignal<Set<string>>;
|
|
2463
2468
|
showExportMenu: _angular_core.WritableSignal<boolean>;
|
|
2464
2469
|
showFilterDropdown: _angular_core.WritableSignal<boolean>;
|
|
2465
2470
|
private exportService;
|
|
@@ -2469,6 +2474,7 @@ declare class CideEleDataGridComponent<T = Record<string, unknown>> implements O
|
|
|
2469
2474
|
visibleColumns: _angular_core.Signal<GridColumn[]>;
|
|
2470
2475
|
ngOnInit(): void;
|
|
2471
2476
|
ngOnDestroy(): void;
|
|
2477
|
+
private handleKeyDown;
|
|
2472
2478
|
private handleGlobalClick;
|
|
2473
2479
|
ngOnChanges(changes: SimpleChanges): void;
|
|
2474
2480
|
/**
|
|
@@ -2499,6 +2505,10 @@ declare class CideEleDataGridComponent<T = Record<string, unknown>> implements O
|
|
|
2499
2505
|
*/
|
|
2500
2506
|
private refreshOrderTracking;
|
|
2501
2507
|
private applyFilters;
|
|
2508
|
+
/**
|
|
2509
|
+
* Apply sorting to filtered data
|
|
2510
|
+
*/
|
|
2511
|
+
private applySortsToData;
|
|
2502
2512
|
/**
|
|
2503
2513
|
* Preserve tree expansion state from current data
|
|
2504
2514
|
*/
|
|
@@ -2650,11 +2660,17 @@ declare class CideEleDataGridComponent<T = Record<string, unknown>> implements O
|
|
|
2650
2660
|
onColumnFilter(column: GridColumn, value: unknown, operator?: ColumnFilter['operator']): void;
|
|
2651
2661
|
onColumnAutosize(column: GridColumn): void;
|
|
2652
2662
|
onColumnGroupBy(column: GridColumn): void;
|
|
2663
|
+
toggleGroupExpansion(groupKey: string): void;
|
|
2664
|
+
isGroupExpanded(groupKey: string): boolean;
|
|
2665
|
+
private expandAllGroupsForColumn;
|
|
2653
2666
|
onColumnHide(column: GridColumn): void;
|
|
2654
2667
|
onColumnShow(columnKey: string): void;
|
|
2655
2668
|
onColumnReset(): void;
|
|
2656
2669
|
onColumnAggregation(column: GridColumn, aggregationType: 'sum' | 'avg' | 'count' | 'min' | 'max'): void;
|
|
2657
2670
|
onManageColumns(): void;
|
|
2671
|
+
closeManageColumnsModal(): void;
|
|
2672
|
+
toggleColumnVisibility(columnKey: string): void;
|
|
2673
|
+
isColumnHidden(columnKey: string): boolean;
|
|
2658
2674
|
getColumnFilterValue(columnKey: string): unknown;
|
|
2659
2675
|
getColumnSortDirection(columnKey: string): 'asc' | 'desc' | null;
|
|
2660
2676
|
isColumnFiltered(columnKey: string): boolean;
|
|
@@ -2668,11 +2684,21 @@ declare class CideEleDataGridComponent<T = Record<string, unknown>> implements O
|
|
|
2668
2684
|
count: number;
|
|
2669
2685
|
checked: boolean;
|
|
2670
2686
|
}>;
|
|
2687
|
+
/**
|
|
2688
|
+
* Extract value from row for template columns when column.key doesn't exist
|
|
2689
|
+
* Tries common field patterns based on column key
|
|
2690
|
+
*/
|
|
2691
|
+
private extractValueFromRowForTemplateColumn;
|
|
2692
|
+
/**
|
|
2693
|
+
* Get a stable key for filter value comparison
|
|
2694
|
+
* Handles objects by using _id or JSON stringification
|
|
2695
|
+
*/
|
|
2696
|
+
getFilterValueKey(value: unknown): string;
|
|
2671
2697
|
formatFilterValue(value: unknown, column: GridColumn): string;
|
|
2672
2698
|
toggleFilterValue(column: GridColumn, value: unknown, checked: boolean): void;
|
|
2673
2699
|
selectAllFilterValues(column: GridColumn): void;
|
|
2674
2700
|
deselectAllFilterValues(column: GridColumn): void;
|
|
2675
|
-
applyFiltersToData(): void;
|
|
2701
|
+
applyFiltersToData(data?: T[]): void;
|
|
2676
2702
|
private emitEvent;
|
|
2677
2703
|
/**
|
|
2678
2704
|
* Get nested value from an object
|
|
@@ -2719,6 +2745,8 @@ declare class CideEleDataGridComponent<T = Record<string, unknown>> implements O
|
|
|
2719
2745
|
getTemplateContext(value: unknown, row: T, column: GridColumn): TemplateContext<T>;
|
|
2720
2746
|
getColumnWidthClass(width?: ColumnWidth): string;
|
|
2721
2747
|
getColumnMaxWidthClass(width?: ColumnWidth): string;
|
|
2748
|
+
getColumnWidthStyle(width?: ColumnWidth): string | null;
|
|
2749
|
+
getColumnMaxWidthStyle(width?: ColumnWidth): string | null;
|
|
2722
2750
|
getStatusClass(value: unknown, statusConfig?: StatusConfig): string;
|
|
2723
2751
|
getStatusText(value: unknown, statusConfig?: StatusConfig): string;
|
|
2724
2752
|
getItemRangeText(): string;
|
|
@@ -2729,6 +2757,17 @@ declare class CideEleDataGridComponent<T = Record<string, unknown>> implements O
|
|
|
2729
2757
|
trackByFn(index: number, item: T): unknown;
|
|
2730
2758
|
getSkeletonArray(): number[];
|
|
2731
2759
|
get displayedData(): T[];
|
|
2760
|
+
/**
|
|
2761
|
+
* Group data by specified columns
|
|
2762
|
+
*/
|
|
2763
|
+
private getGroupedData;
|
|
2764
|
+
getGroupValue(columnKey: string): unknown;
|
|
2765
|
+
isGroupHeader(row: T): boolean;
|
|
2766
|
+
getGroupRowCount(row: T): number;
|
|
2767
|
+
getGroupColumnKey(row: T): string;
|
|
2768
|
+
getGroupKey(item: T): string;
|
|
2769
|
+
getGroupColumn(item: T): GridColumn | null;
|
|
2770
|
+
getGroupValueDisplay(item: T): string;
|
|
2732
2771
|
get columns(): GridColumn[];
|
|
2733
2772
|
get paginationConfig(): cloud_ide_element.GridPaginationConfig;
|
|
2734
2773
|
get searchConfig(): cloud_ide_element.GridSearchConfig;
|
|
@@ -2770,6 +2809,10 @@ declare class CideEleDataGridComponent<T = Record<string, unknown>> implements O
|
|
|
2770
2809
|
* Handle export format selection
|
|
2771
2810
|
*/
|
|
2772
2811
|
exportData(format: 'csv' | 'excel' | 'pdf'): void;
|
|
2812
|
+
/**
|
|
2813
|
+
* Format value for export - extracts display text from objects
|
|
2814
|
+
*/
|
|
2815
|
+
private formatExportValue;
|
|
2773
2816
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<CideEleDataGridComponent<any>, never>;
|
|
2774
2817
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<CideEleDataGridComponent<any>, "cide-ele-data-grid", never, { "config": { "alias": "config"; "required": false; }; "templateRenderers": { "alias": "templateRenderers"; "required": false; }; "customFormatters": { "alias": "customFormatters"; "required": false; }; "actionHandlers": { "alias": "actionHandlers"; "required": false; }; "serverSidePagination": { "alias": "serverSidePagination"; "required": false; }; "totalServerItems": { "alias": "totalServerItems"; "required": false; }; "currentServerPage": { "alias": "currentServerPage"; "required": false; }; "currentServerPageSize": { "alias": "currentServerPageSize"; "required": false; }; "dragDropEnabled": { "alias": "dragDropEnabled"; "required": false; }; }, { "gridEvent": "gridEvent"; }, never, never, true, never>;
|
|
2775
2818
|
}
|