cats-data-grid 2.0.58 → 2.0.61
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/cats-data-grid.mjs +1370 -9
- package/fesm2022/cats-data-grid.mjs.map +1 -1
- package/index.d.ts +430 -4
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { OnChanges, OnInit, ElementRef, EventEmitter, Renderer2, NgZone, ChangeDetectorRef, SimpleChanges } from '@angular/core';
|
|
2
|
+
import { OnChanges, OnInit, ElementRef, EventEmitter, Renderer2, NgZone, ChangeDetectorRef, SimpleChanges, DoCheck, AfterViewInit, OnDestroy } from '@angular/core';
|
|
3
3
|
|
|
4
4
|
declare class CatsDataGridService {
|
|
5
5
|
constructor();
|
|
@@ -116,6 +116,8 @@ declare class CatsDataGridComponent implements OnChanges, OnInit {
|
|
|
116
116
|
draggedRowData: any;
|
|
117
117
|
firstCol: any;
|
|
118
118
|
isRowSelected: boolean;
|
|
119
|
+
onRowClicked: EventEmitter<any>;
|
|
120
|
+
onCellClicked: EventEmitter<any>;
|
|
119
121
|
constructor(renderer: Renderer2, zone: NgZone, cd: ChangeDetectorRef);
|
|
120
122
|
ngOnInit(): void;
|
|
121
123
|
ngOnChanges(changes: SimpleChanges): void;
|
|
@@ -156,6 +158,7 @@ declare class CatsDataGridComponent implements OnChanges, OnInit {
|
|
|
156
158
|
* @returns void
|
|
157
159
|
*/
|
|
158
160
|
applyAllFilters(): void;
|
|
161
|
+
evaluateFieldValue(row: any, field: string): any;
|
|
159
162
|
resetFilter(col: any): void;
|
|
160
163
|
removeActiveFilter(col: any): void;
|
|
161
164
|
/**
|
|
@@ -470,8 +473,10 @@ declare class CatsDataGridComponent implements OnChanges, OnInit {
|
|
|
470
473
|
clearAllFilter(): void;
|
|
471
474
|
onBtFirstClick(): void;
|
|
472
475
|
onBtLastClick(): void;
|
|
476
|
+
onRowClick(row: any): void;
|
|
477
|
+
onCellClick(row: any, col: any): void;
|
|
473
478
|
static ɵfac: i0.ɵɵFactoryDeclaration<CatsDataGridComponent, never>;
|
|
474
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<CatsDataGridComponent, "cats-data-grid", never, { "tableOptions": { "alias": "tableOptions"; "required": false; }; "totalRecords": { "alias": "totalRecords"; "required": false; }; "sortingRequired": { "alias": "sortingRequired"; "required": false; }; "checkBoxSelection": { "alias": "checkBoxSelection"; "required": false; }; "checkboxSelectionType": { "alias": "checkboxSelectionType"; "required": false; }; "rowData": { "alias": "rowData"; "required": false; }; "colDefs": { "alias": "colDefs"; "required": false; }; "paginationRequired": { "alias": "paginationRequired"; "required": false; }; "selectedRowEmpty": { "alias": "selectedRowEmpty"; "required": false; }; "filterRequired": { "alias": "filterRequired"; "required": false; }; "threeDotsMenuRequired": { "alias": "threeDotsMenuRequired"; "required": false; }; "settingsRequired": { "alias": "settingsRequired"; "required": false; }; "settingsClicked": { "alias": "settingsClicked"; "required": false; }; "resetPage": { "alias": "resetPage"; "required": false; }; "rowId": { "alias": "rowId"; "required": false; }; "height": { "alias": "height"; "required": false; }; "groupByRequired": { "alias": "groupByRequired"; "required": false; }; "pageSizeList": { "alias": "pageSizeList"; "required": false; }; "groupByField": { "alias": "groupByField"; "required": false; }; "appliedFilters": { "alias": "appliedFilters"; "required": false; }; "rowGripFieldName": { "alias": "rowGripFieldName"; "required": false; }; "pageNumber": { "alias": "pageNumber"; "required": false; }; "pageSize": { "alias": "pageSize"; "required": false; }; "dynamicGroupingFiltering": { "alias": "dynamicGroupingFiltering"; "required": false; }; }, { "onPaginationChange": "onPaginationChange"; "onCheckboxSelection": "onCheckboxSelection"; "onScrollEmitter": "onScrollEmitter"; "filter": "filter"; "onHideSettings": "onHideSettings"; "appliedFiltersEvent": "appliedFiltersEvent"; "activeGroupsEvent": "activeGroupsEvent"; }, never, never, true, never>;
|
|
479
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CatsDataGridComponent, "cats-data-grid", never, { "tableOptions": { "alias": "tableOptions"; "required": false; }; "totalRecords": { "alias": "totalRecords"; "required": false; }; "sortingRequired": { "alias": "sortingRequired"; "required": false; }; "checkBoxSelection": { "alias": "checkBoxSelection"; "required": false; }; "checkboxSelectionType": { "alias": "checkboxSelectionType"; "required": false; }; "rowData": { "alias": "rowData"; "required": false; }; "colDefs": { "alias": "colDefs"; "required": false; }; "paginationRequired": { "alias": "paginationRequired"; "required": false; }; "selectedRowEmpty": { "alias": "selectedRowEmpty"; "required": false; }; "filterRequired": { "alias": "filterRequired"; "required": false; }; "threeDotsMenuRequired": { "alias": "threeDotsMenuRequired"; "required": false; }; "settingsRequired": { "alias": "settingsRequired"; "required": false; }; "settingsClicked": { "alias": "settingsClicked"; "required": false; }; "resetPage": { "alias": "resetPage"; "required": false; }; "rowId": { "alias": "rowId"; "required": false; }; "height": { "alias": "height"; "required": false; }; "groupByRequired": { "alias": "groupByRequired"; "required": false; }; "pageSizeList": { "alias": "pageSizeList"; "required": false; }; "groupByField": { "alias": "groupByField"; "required": false; }; "appliedFilters": { "alias": "appliedFilters"; "required": false; }; "rowGripFieldName": { "alias": "rowGripFieldName"; "required": false; }; "pageNumber": { "alias": "pageNumber"; "required": false; }; "pageSize": { "alias": "pageSize"; "required": false; }; "dynamicGroupingFiltering": { "alias": "dynamicGroupingFiltering"; "required": false; }; }, { "onPaginationChange": "onPaginationChange"; "onCheckboxSelection": "onCheckboxSelection"; "onScrollEmitter": "onScrollEmitter"; "filter": "filter"; "onHideSettings": "onHideSettings"; "appliedFiltersEvent": "appliedFiltersEvent"; "activeGroupsEvent": "activeGroupsEvent"; "onRowClicked": "onRowClicked"; "onCellClicked": "onCellClicked"; }, never, never, true, never>;
|
|
475
480
|
}
|
|
476
481
|
|
|
477
482
|
declare class CommonRendererComponent {
|
|
@@ -615,5 +620,426 @@ declare class CommonRendererComponent {
|
|
|
615
620
|
static ɵcmp: i0.ɵɵComponentDeclaration<CommonRendererComponent, "lib-common-renderer", never, {}, {}, never, never, true, never>;
|
|
616
621
|
}
|
|
617
622
|
|
|
618
|
-
|
|
619
|
-
|
|
623
|
+
interface CatsTreeTableColumn {
|
|
624
|
+
field: string;
|
|
625
|
+
header?: string;
|
|
626
|
+
width?: number;
|
|
627
|
+
minWidth?: number;
|
|
628
|
+
maxWidth?: number;
|
|
629
|
+
class?: string;
|
|
630
|
+
colId?: string;
|
|
631
|
+
sortable?: boolean;
|
|
632
|
+
filterable?: boolean;
|
|
633
|
+
filterType?: 'text' | 'number' | 'date' | 'set';
|
|
634
|
+
leftPinned?: boolean;
|
|
635
|
+
rightPinned?: boolean;
|
|
636
|
+
leftOffset?: number;
|
|
637
|
+
rightOffset?: number;
|
|
638
|
+
active?: boolean;
|
|
639
|
+
filters?: TreeFilterCondition[];
|
|
640
|
+
options?: any[];
|
|
641
|
+
filteredOptions?: any[];
|
|
642
|
+
selectedValues?: Set<any>;
|
|
643
|
+
cellRenderer?: any;
|
|
644
|
+
cellRendererParams?: any;
|
|
645
|
+
}
|
|
646
|
+
interface TreeFilterCondition {
|
|
647
|
+
filterOperation: string;
|
|
648
|
+
filterValue: any;
|
|
649
|
+
}
|
|
650
|
+
interface CatsTreeRowOptions {
|
|
651
|
+
showCheckbox?: boolean;
|
|
652
|
+
showToggle?: boolean;
|
|
653
|
+
showNodeIcon?: boolean;
|
|
654
|
+
showLink?: boolean;
|
|
655
|
+
disabled?: boolean;
|
|
656
|
+
}
|
|
657
|
+
interface CatsTreeExpandEvent<T = any> {
|
|
658
|
+
node: T;
|
|
659
|
+
level: number;
|
|
660
|
+
path: T[];
|
|
661
|
+
expanded: boolean;
|
|
662
|
+
}
|
|
663
|
+
interface CatsTreeSelectionChangeEvent<T = any> {
|
|
664
|
+
node: T;
|
|
665
|
+
level: number;
|
|
666
|
+
path: T[];
|
|
667
|
+
checked: boolean;
|
|
668
|
+
selectedNodes: T[];
|
|
669
|
+
}
|
|
670
|
+
interface CatsTreeLinkClickEvent<T = any> {
|
|
671
|
+
node: T;
|
|
672
|
+
level: number;
|
|
673
|
+
path: T[];
|
|
674
|
+
url: string | null;
|
|
675
|
+
}
|
|
676
|
+
type RowKind = 'node' | 'loading' | 'no-data';
|
|
677
|
+
interface RowView<T = any> {
|
|
678
|
+
kind: RowKind;
|
|
679
|
+
level: number;
|
|
680
|
+
path: T[];
|
|
681
|
+
node: T;
|
|
682
|
+
trackKey: string | number;
|
|
683
|
+
}
|
|
684
|
+
declare class CommonTreeTableComponent<T = any> implements OnChanges, DoCheck, AfterViewInit, OnDestroy {
|
|
685
|
+
private renderer;
|
|
686
|
+
private zone;
|
|
687
|
+
private cd;
|
|
688
|
+
tableAreaRef: ElementRef<HTMLElement>;
|
|
689
|
+
pinMenu?: ElementRef<HTMLElement>;
|
|
690
|
+
data: T[];
|
|
691
|
+
columns: CatsTreeTableColumn[];
|
|
692
|
+
idField: string;
|
|
693
|
+
labelField: string;
|
|
694
|
+
childrenField: string;
|
|
695
|
+
treeColumnField?: string;
|
|
696
|
+
indentPx: number;
|
|
697
|
+
showHeader: boolean;
|
|
698
|
+
expandIcon: string;
|
|
699
|
+
collapseIcon: string;
|
|
700
|
+
iconBasePath: string;
|
|
701
|
+
showCheckbox: boolean;
|
|
702
|
+
showNodeIcon: boolean;
|
|
703
|
+
noDataText: string;
|
|
704
|
+
loadingText: string;
|
|
705
|
+
emitExpandAlways: boolean;
|
|
706
|
+
sortingRequired: boolean;
|
|
707
|
+
filterRequired: boolean;
|
|
708
|
+
threeDotsMenuRequired: boolean;
|
|
709
|
+
settingsRequired: boolean;
|
|
710
|
+
settingsClicked: boolean;
|
|
711
|
+
checkBoxSelection: boolean;
|
|
712
|
+
checkboxSelectionType: 'multiple' | 'single';
|
|
713
|
+
paginationRequired: boolean;
|
|
714
|
+
pageSizeList: number[];
|
|
715
|
+
totalRecords: number;
|
|
716
|
+
resetPage: boolean;
|
|
717
|
+
isExpandable: (node: T, level: number, path: T[]) => boolean;
|
|
718
|
+
rowOptionsResolver: (node: T, level: number, path: T[]) => CatsTreeRowOptions;
|
|
719
|
+
nodeIconResolver: (node: T, level: number, path: T[], expanded: boolean) => string | null;
|
|
720
|
+
linkResolver: (node: T, level: number, path: T[]) => string | null;
|
|
721
|
+
nodeToggle: EventEmitter<CatsTreeExpandEvent<T>>;
|
|
722
|
+
selectionChange: EventEmitter<CatsTreeSelectionChangeEvent<T>>;
|
|
723
|
+
linkClick: EventEmitter<CatsTreeLinkClickEvent<T>>;
|
|
724
|
+
onHideSettings: EventEmitter<any>;
|
|
725
|
+
onPaginationChange: EventEmitter<any>;
|
|
726
|
+
protected rows: RowView<T>[];
|
|
727
|
+
pageDetails: any;
|
|
728
|
+
recordsToShow: any;
|
|
729
|
+
sortingColumnIndex: number | null;
|
|
730
|
+
sortingType: {
|
|
731
|
+
[key: number]: string;
|
|
732
|
+
};
|
|
733
|
+
filteredData: T[];
|
|
734
|
+
originalRowData: T[];
|
|
735
|
+
activeFilters: Map<string, any>;
|
|
736
|
+
appliedFilters: any[];
|
|
737
|
+
menuVisible: boolean[];
|
|
738
|
+
dragOverIndex: number | null;
|
|
739
|
+
draggedIndex: number | null;
|
|
740
|
+
activeFilterIndex: number | null;
|
|
741
|
+
resizingColumnIndex: number | null;
|
|
742
|
+
startX: number;
|
|
743
|
+
startWidth: number;
|
|
744
|
+
isResizing: boolean;
|
|
745
|
+
showMoveIcon: {
|
|
746
|
+
[key: number]: boolean;
|
|
747
|
+
};
|
|
748
|
+
showPin: boolean;
|
|
749
|
+
pinActionClicked: Record<string, string>;
|
|
750
|
+
columnDraggable: boolean[];
|
|
751
|
+
showPageSizeList: boolean;
|
|
752
|
+
activeAll: boolean;
|
|
753
|
+
atLeastOneColumnChecked: boolean;
|
|
754
|
+
selectedRow: T[];
|
|
755
|
+
originalColumns: CatsTreeTableColumn[];
|
|
756
|
+
private removeMouseMove;
|
|
757
|
+
private removeMouseUp;
|
|
758
|
+
private rafId;
|
|
759
|
+
private removeDragOver;
|
|
760
|
+
private removeDrop;
|
|
761
|
+
filterOptions: {
|
|
762
|
+
label: string;
|
|
763
|
+
value: string;
|
|
764
|
+
}[];
|
|
765
|
+
numberFilterOptions: {
|
|
766
|
+
label: string;
|
|
767
|
+
value: string;
|
|
768
|
+
}[];
|
|
769
|
+
private expandedKeys;
|
|
770
|
+
private selectedKeys;
|
|
771
|
+
private fallbackKey;
|
|
772
|
+
private fallbackSeq;
|
|
773
|
+
private resolvedTreeColumnField?;
|
|
774
|
+
constructor(renderer: Renderer2, zone: NgZone, cd: ChangeDetectorRef);
|
|
775
|
+
ngAfterViewInit(): void;
|
|
776
|
+
ngOnDestroy(): void;
|
|
777
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
778
|
+
ngDoCheck(): void;
|
|
779
|
+
protected get treeColumn(): CatsTreeTableColumn;
|
|
780
|
+
/**
|
|
781
|
+
* Initialize column properties for filtering, sorting, and customization
|
|
782
|
+
*/
|
|
783
|
+
private initializeColumns;
|
|
784
|
+
/**
|
|
785
|
+
* Extract unique values from data for set filter
|
|
786
|
+
*/
|
|
787
|
+
private extractUniqueValues;
|
|
788
|
+
/**
|
|
789
|
+
* Sort data based on column and sorting type
|
|
790
|
+
*/
|
|
791
|
+
protected onSortingRowData(sortingColumnIndex: number, col: CatsTreeTableColumn): void;
|
|
792
|
+
/**
|
|
793
|
+
* Sort from the three-dots menu with an explicit direction (matches `cats-data-grid` UX).
|
|
794
|
+
*/
|
|
795
|
+
protected onSort(col: CatsTreeTableColumn, type: string, sortingColumIndex: number): void;
|
|
796
|
+
/**
|
|
797
|
+
* Apply sorting to the row data
|
|
798
|
+
*/
|
|
799
|
+
private applySort;
|
|
800
|
+
/**
|
|
801
|
+
* Apply all active filters
|
|
802
|
+
*/
|
|
803
|
+
applyAllFilters(): void;
|
|
804
|
+
/**
|
|
805
|
+
* Evaluate text filter condition
|
|
806
|
+
*/
|
|
807
|
+
private evaluateTextFilterCondition;
|
|
808
|
+
/**
|
|
809
|
+
* Toggle column filter visibility
|
|
810
|
+
*/
|
|
811
|
+
protected toggleFilter(col: CatsTreeTableColumn, index: number, event: MouseEvent): void;
|
|
812
|
+
/**
|
|
813
|
+
* Reset filter for a column
|
|
814
|
+
*/
|
|
815
|
+
protected resetFilter(col: CatsTreeTableColumn): void;
|
|
816
|
+
/**
|
|
817
|
+
* Start column resize
|
|
818
|
+
*/
|
|
819
|
+
protected startResize(event: MouseEvent, index: number): void;
|
|
820
|
+
/**
|
|
821
|
+
* Handle mouse move during resize
|
|
822
|
+
*/
|
|
823
|
+
private onMouseMove;
|
|
824
|
+
/**
|
|
825
|
+
* Stop column resize
|
|
826
|
+
*/
|
|
827
|
+
private stopResize;
|
|
828
|
+
/**
|
|
829
|
+
* Handle column drag start
|
|
830
|
+
*/
|
|
831
|
+
protected onDragStart(event: DragEvent, index: number): void;
|
|
832
|
+
/**
|
|
833
|
+
* Handle column drag over
|
|
834
|
+
*/
|
|
835
|
+
protected onDragOver(event: DragEvent, index: number): void;
|
|
836
|
+
/**
|
|
837
|
+
* Handle column drop
|
|
838
|
+
*/
|
|
839
|
+
protected onDrop(event: DragEvent, index: number): void;
|
|
840
|
+
/**
|
|
841
|
+
* Handle drag end
|
|
842
|
+
*/
|
|
843
|
+
protected onDragEnd(): void;
|
|
844
|
+
/**
|
|
845
|
+
* Pin column to left or right
|
|
846
|
+
*/
|
|
847
|
+
protected pinColumn(col: CatsTreeTableColumn, index: number, direction: string): void;
|
|
848
|
+
protected showPinActions(event: MouseEvent): void;
|
|
849
|
+
protected hidePinActions(): void;
|
|
850
|
+
/**
|
|
851
|
+
* Update pinned column offsets
|
|
852
|
+
*/
|
|
853
|
+
protected updatePinnedOffsets(): void;
|
|
854
|
+
/**
|
|
855
|
+
* Filter set options based on search text
|
|
856
|
+
*/
|
|
857
|
+
protected filterSetOptions(col: CatsTreeTableColumn, event: any): void;
|
|
858
|
+
/**
|
|
859
|
+
* Toggle set filter option
|
|
860
|
+
*/
|
|
861
|
+
protected toggleSetOption(col: CatsTreeTableColumn, option: any, event: any): void;
|
|
862
|
+
/**
|
|
863
|
+
* Toggle select all in set filter
|
|
864
|
+
*/
|
|
865
|
+
protected toggleSelectAllSetFilter(col: CatsTreeTableColumn, event: any): void;
|
|
866
|
+
/**
|
|
867
|
+
* Get column style
|
|
868
|
+
*/
|
|
869
|
+
protected getStyle(col: CatsTreeTableColumn): any;
|
|
870
|
+
/**
|
|
871
|
+
* Toggle column visibility
|
|
872
|
+
*/
|
|
873
|
+
protected changeActiveColSelection(event: Event, col: CatsTreeTableColumn): void;
|
|
874
|
+
/**
|
|
875
|
+
* Compute minimum table width based on active column widths
|
|
876
|
+
*/
|
|
877
|
+
protected getTableMinWidth(): number;
|
|
878
|
+
/**
|
|
879
|
+
* Select/deselect all columns
|
|
880
|
+
*/
|
|
881
|
+
protected activeAllSelection(event: Event): void;
|
|
882
|
+
/**
|
|
883
|
+
* Hide settings
|
|
884
|
+
*/
|
|
885
|
+
protected hideSettings(): void;
|
|
886
|
+
/**
|
|
887
|
+
* Close all menus
|
|
888
|
+
*/
|
|
889
|
+
protected onClickOutside(): void;
|
|
890
|
+
/**
|
|
891
|
+
* Open column menu
|
|
892
|
+
*/
|
|
893
|
+
protected openMenu(event: MouseEvent, col: CatsTreeTableColumn, index: number): void;
|
|
894
|
+
/**
|
|
895
|
+
* Recursively select all children of a node
|
|
896
|
+
*/
|
|
897
|
+
private selectAllChildren;
|
|
898
|
+
/**
|
|
899
|
+
* Recursively deselect all children of a node
|
|
900
|
+
*/
|
|
901
|
+
private deselectAllChildren;
|
|
902
|
+
/**
|
|
903
|
+
* Recursively select all nodes in the tree
|
|
904
|
+
*/
|
|
905
|
+
private selectAllNodes;
|
|
906
|
+
/**
|
|
907
|
+
* Recursively deselect all nodes in the tree
|
|
908
|
+
*/
|
|
909
|
+
private deselectAllNodes;
|
|
910
|
+
/**
|
|
911
|
+
* Check if all children of a node are selected
|
|
912
|
+
*/
|
|
913
|
+
private areAllChildrenSelected;
|
|
914
|
+
/**
|
|
915
|
+
* Check if any children of a node are selected
|
|
916
|
+
*/
|
|
917
|
+
private areAnyChildrenSelected;
|
|
918
|
+
/**
|
|
919
|
+
* Update parent node selection based on children state
|
|
920
|
+
*/
|
|
921
|
+
private updateParentSelection;
|
|
922
|
+
/**
|
|
923
|
+
* On header checkbox change - select all nodes hierarchically
|
|
924
|
+
*/
|
|
925
|
+
protected onHeaderCheckboxChange(event: any): void;
|
|
926
|
+
/**
|
|
927
|
+
* On row checkbox change
|
|
928
|
+
*/
|
|
929
|
+
protected onRowCheckboxChange(event: any, node: T): void;
|
|
930
|
+
/**
|
|
931
|
+
* Check if all rows are selected
|
|
932
|
+
*/
|
|
933
|
+
protected checkAllSelected(): boolean;
|
|
934
|
+
/**
|
|
935
|
+
* Check if some rows are selected (indeterminate state)
|
|
936
|
+
*/
|
|
937
|
+
protected checkIndeterminate(): boolean;
|
|
938
|
+
/**
|
|
939
|
+
* Check if row is selected
|
|
940
|
+
*/
|
|
941
|
+
protected isRowSelected(node: T): boolean;
|
|
942
|
+
/**
|
|
943
|
+
* Check if a node has indeterminate selection state (some but not all children selected)
|
|
944
|
+
*/
|
|
945
|
+
protected isNodeIndeterminate(node: T): boolean;
|
|
946
|
+
/**
|
|
947
|
+
* Check header checkbox indeterminate state
|
|
948
|
+
*/
|
|
949
|
+
protected checkHeaderIndeterminate(): boolean;
|
|
950
|
+
/**
|
|
951
|
+
* Check if header checkbox should be checked
|
|
952
|
+
*/
|
|
953
|
+
protected checkHeaderChecked(): boolean;
|
|
954
|
+
protected toggle(node: T, level: number, path: T[]): void;
|
|
955
|
+
protected isExpanded(node: T): boolean;
|
|
956
|
+
protected onCheckboxChange(node: T, level: number, path: T[], checked: boolean): void;
|
|
957
|
+
protected isChecked(node: T): boolean;
|
|
958
|
+
protected onLinkClicked(e: MouseEvent, node: T, level: number, path: T[]): void;
|
|
959
|
+
protected resolveIconSrc(icon: string | null): string | null;
|
|
960
|
+
protected getValue(node: T, fieldPath: string): any;
|
|
961
|
+
protected isNodeRow(row: RowView<T>): boolean;
|
|
962
|
+
protected rowOptions(row: RowView<T>): CatsTreeRowOptions;
|
|
963
|
+
protected showToggleFor(row: RowView<T>): boolean;
|
|
964
|
+
protected showCheckboxFor(row: RowView<T>): boolean;
|
|
965
|
+
protected showNodeIconFor(row: RowView<T>): boolean;
|
|
966
|
+
protected showLinkFor(row: RowView<T>): boolean;
|
|
967
|
+
protected isDisabledRow(row: RowView<T>): boolean;
|
|
968
|
+
protected labelFor(row: RowView<T>): any;
|
|
969
|
+
protected toggleIconFor(row: RowView<T>): string;
|
|
970
|
+
protected nodeIconFor(row: RowView<T>): string | null;
|
|
971
|
+
protected linkUrlFor(row: RowView<T>): string | null;
|
|
972
|
+
/**
|
|
973
|
+
* Set page count based on total records and page size
|
|
974
|
+
*/
|
|
975
|
+
protected setPageCount(): void;
|
|
976
|
+
/**
|
|
977
|
+
* On page size changed
|
|
978
|
+
*/
|
|
979
|
+
protected onPageSizeChanged(event: any): void;
|
|
980
|
+
/**
|
|
981
|
+
* On first button click
|
|
982
|
+
*/
|
|
983
|
+
protected onBtFirstClick(): void;
|
|
984
|
+
/**
|
|
985
|
+
* On previous button click
|
|
986
|
+
*/
|
|
987
|
+
protected onBtPrevClick(): void;
|
|
988
|
+
/**
|
|
989
|
+
* On next button click
|
|
990
|
+
*/
|
|
991
|
+
protected onBtNextClick(): void;
|
|
992
|
+
/**
|
|
993
|
+
* On last button click
|
|
994
|
+
*/
|
|
995
|
+
protected onBtLastClick(): void;
|
|
996
|
+
/**
|
|
997
|
+
* Go to selected page
|
|
998
|
+
*/
|
|
999
|
+
protected goToSelectedPage(event: any): void;
|
|
1000
|
+
/**
|
|
1001
|
+
* @description method to reset table configuration
|
|
1002
|
+
* @author Tarun Kumar
|
|
1003
|
+
* @param none
|
|
1004
|
+
* @returns void
|
|
1005
|
+
*/
|
|
1006
|
+
resetPagination(): void;
|
|
1007
|
+
/**
|
|
1008
|
+
* Convert to number
|
|
1009
|
+
*/
|
|
1010
|
+
protected convertToNumber(val: any): number;
|
|
1011
|
+
private getChildren;
|
|
1012
|
+
private rebuildRows;
|
|
1013
|
+
private walk;
|
|
1014
|
+
private getNodeKey;
|
|
1015
|
+
private getSelectedNodes;
|
|
1016
|
+
/**
|
|
1017
|
+
* Autosize column to fit content
|
|
1018
|
+
*/
|
|
1019
|
+
protected autosizeColumn(col: CatsTreeTableColumn, index: number): void;
|
|
1020
|
+
/**
|
|
1021
|
+
* Autosize all columns
|
|
1022
|
+
*/
|
|
1023
|
+
protected autosizeAllColumns(): void;
|
|
1024
|
+
/**
|
|
1025
|
+
* Group by column
|
|
1026
|
+
*/
|
|
1027
|
+
protected groupByColumn(col: CatsTreeTableColumn, index: number): void;
|
|
1028
|
+
/**
|
|
1029
|
+
* Show column chooser
|
|
1030
|
+
*/
|
|
1031
|
+
protected showColumnChooser(colIdx: number): void;
|
|
1032
|
+
/**
|
|
1033
|
+
* Reset columns to original state
|
|
1034
|
+
*/
|
|
1035
|
+
protected resetColumns(): void;
|
|
1036
|
+
/**
|
|
1037
|
+
* Save column state
|
|
1038
|
+
*/
|
|
1039
|
+
private saveColumnState;
|
|
1040
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CommonTreeTableComponent<any>, never>;
|
|
1041
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CommonTreeTableComponent<any>, "cats-tree-table", never, { "data": { "alias": "data"; "required": false; }; "columns": { "alias": "columns"; "required": false; }; "idField": { "alias": "idField"; "required": false; }; "labelField": { "alias": "labelField"; "required": false; }; "childrenField": { "alias": "childrenField"; "required": false; }; "treeColumnField": { "alias": "treeColumnField"; "required": false; }; "indentPx": { "alias": "indentPx"; "required": false; }; "showHeader": { "alias": "showHeader"; "required": false; }; "expandIcon": { "alias": "expandIcon"; "required": false; }; "collapseIcon": { "alias": "collapseIcon"; "required": false; }; "iconBasePath": { "alias": "iconBasePath"; "required": false; }; "showCheckbox": { "alias": "showCheckbox"; "required": false; }; "showNodeIcon": { "alias": "showNodeIcon"; "required": false; }; "noDataText": { "alias": "noDataText"; "required": false; }; "loadingText": { "alias": "loadingText"; "required": false; }; "emitExpandAlways": { "alias": "emitExpandAlways"; "required": false; }; "sortingRequired": { "alias": "sortingRequired"; "required": false; }; "filterRequired": { "alias": "filterRequired"; "required": false; }; "threeDotsMenuRequired": { "alias": "threeDotsMenuRequired"; "required": false; }; "settingsRequired": { "alias": "settingsRequired"; "required": false; }; "settingsClicked": { "alias": "settingsClicked"; "required": false; }; "checkBoxSelection": { "alias": "checkBoxSelection"; "required": false; }; "checkboxSelectionType": { "alias": "checkboxSelectionType"; "required": false; }; "paginationRequired": { "alias": "paginationRequired"; "required": false; }; "pageSizeList": { "alias": "pageSizeList"; "required": false; }; "totalRecords": { "alias": "totalRecords"; "required": false; }; "resetPage": { "alias": "resetPage"; "required": false; }; "isExpandable": { "alias": "isExpandable"; "required": false; }; "rowOptionsResolver": { "alias": "rowOptionsResolver"; "required": false; }; "nodeIconResolver": { "alias": "nodeIconResolver"; "required": false; }; "linkResolver": { "alias": "linkResolver"; "required": false; }; }, { "nodeToggle": "nodeToggle"; "selectionChange": "selectionChange"; "linkClick": "linkClick"; "onHideSettings": "onHideSettings"; "onPaginationChange": "onPaginationChange"; }, never, never, true, never>;
|
|
1042
|
+
}
|
|
1043
|
+
|
|
1044
|
+
export { CatsDataGridComponent, CatsDataGridService, ColDefs, CommonRendererComponent, CommonTreeTableComponent };
|
|
1045
|
+
export type { CatsTreeExpandEvent, CatsTreeLinkClickEvent, CatsTreeRowOptions, CatsTreeSelectionChangeEvent, CatsTreeTableColumn, ColumnFilter, FilterCondition, TreeFilterCondition };
|