cats-data-grid 2.0.63 → 2.0.65
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 +468 -32
- package/fesm2022/cats-data-grid.mjs.map +1 -1
- package/index.d.ts +90 -7
- package/package.json +1 -1
- package/styles/component/_form.scss +4 -0
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, DoCheck, AfterViewInit, OnDestroy } from '@angular/core';
|
|
2
|
+
import { OnChanges, OnInit, ElementRef, EventEmitter, Renderer2, NgZone, ChangeDetectorRef, SimpleChanges, DoCheck, AfterViewInit, OnDestroy, ApplicationRef, Injector } from '@angular/core';
|
|
3
3
|
|
|
4
4
|
declare class CatsDataGridService {
|
|
5
5
|
constructor();
|
|
@@ -498,6 +498,7 @@ declare class CommonRendererComponent {
|
|
|
498
498
|
* @returns {string | undefined}
|
|
499
499
|
*/
|
|
500
500
|
get type(): any;
|
|
501
|
+
get subType(): any;
|
|
501
502
|
/**
|
|
502
503
|
* @description Returns the renderer subtype defined in cellRendererParams.
|
|
503
504
|
* @author Anand Pandey
|
|
@@ -611,10 +612,7 @@ declare class CommonRendererComponent {
|
|
|
611
612
|
* @param {string} valueProp Property name assigned to the normalized output value
|
|
612
613
|
* @returns {Array<{ [key: string]: string; class: string }>} Array of normalized value objects
|
|
613
614
|
*/
|
|
614
|
-
transformValue(key: string, valueProp: any):
|
|
615
|
-
[valueProp]: any;
|
|
616
|
-
class: any;
|
|
617
|
-
}[];
|
|
615
|
+
transformValue(key: string, valueProp: any): any[];
|
|
618
616
|
parseColValue(row: any, col: any): any;
|
|
619
617
|
static ɵfac: i0.ɵɵFactoryDeclaration<CommonRendererComponent, never>;
|
|
620
618
|
static ɵcmp: i0.ɵɵComponentDeclaration<CommonRendererComponent, "lib-common-renderer", never, {}, {}, never, never, true, never>;
|
|
@@ -1053,5 +1051,90 @@ declare class CommonTreeTableComponent<T = any> implements OnChanges, DoCheck, A
|
|
|
1053
1051
|
static ɵcmp: i0.ɵɵComponentDeclaration<CommonTreeTableComponent<any>, "cats-tree-table", never, { "data": { "alias": "data"; "required": false; }; "columns": { "alias": "columns"; "required": false; }; "tableOptions": { "alias": "tableOptions"; "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"; "linkDoubleClick": "linkDoubleClick"; "onHideSettings": "onHideSettings"; "onPaginationChange": "onPaginationChange"; }, never, never, true, never>;
|
|
1054
1052
|
}
|
|
1055
1053
|
|
|
1056
|
-
|
|
1057
|
-
|
|
1054
|
+
type TooltipPosition = 'top' | 'bottom' | 'left' | 'right' | 'adaptive';
|
|
1055
|
+
declare class TooltipDirective implements OnInit, OnDestroy {
|
|
1056
|
+
private elementRef;
|
|
1057
|
+
private renderer;
|
|
1058
|
+
private appRef;
|
|
1059
|
+
private injector;
|
|
1060
|
+
private ngZone;
|
|
1061
|
+
content: string;
|
|
1062
|
+
tooltipPosition: TooltipPosition;
|
|
1063
|
+
tooltipDelay: number;
|
|
1064
|
+
tooltipBgColor: string;
|
|
1065
|
+
tooltipTextColor: string;
|
|
1066
|
+
tooltipPadding: string;
|
|
1067
|
+
tooltipFontSize: string;
|
|
1068
|
+
tooltipBorderRadius: string;
|
|
1069
|
+
tooltipMaxWidth: string;
|
|
1070
|
+
followCursor: boolean;
|
|
1071
|
+
tooltipParentContainer: HTMLElement | null;
|
|
1072
|
+
private tooltipElement;
|
|
1073
|
+
private showTimeout;
|
|
1074
|
+
private elementRect;
|
|
1075
|
+
private currentPosition;
|
|
1076
|
+
private componentRef;
|
|
1077
|
+
private cursorX;
|
|
1078
|
+
private cursorY;
|
|
1079
|
+
private isTooltipShown;
|
|
1080
|
+
constructor(elementRef: ElementRef<HTMLElement>, renderer: Renderer2, appRef: ApplicationRef, injector: Injector, ngZone: NgZone);
|
|
1081
|
+
ngOnInit(): void;
|
|
1082
|
+
onMouseEnter(event: MouseEvent): void;
|
|
1083
|
+
onMouseLeave(): void;
|
|
1084
|
+
onMouseMove(event: MouseEvent): void;
|
|
1085
|
+
private show;
|
|
1086
|
+
private calculateAdaptivePosition;
|
|
1087
|
+
private findParentContainer;
|
|
1088
|
+
private positionTooltip;
|
|
1089
|
+
private hide;
|
|
1090
|
+
ngOnDestroy(): void;
|
|
1091
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TooltipDirective, never>;
|
|
1092
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<TooltipDirective, "[appTooltip]", never, { "content": { "alias": "appTooltip"; "required": false; }; "tooltipPosition": { "alias": "tooltipPosition"; "required": false; }; "tooltipDelay": { "alias": "tooltipDelay"; "required": false; }; "tooltipBgColor": { "alias": "tooltipBgColor"; "required": false; }; "tooltipTextColor": { "alias": "tooltipTextColor"; "required": false; }; "tooltipPadding": { "alias": "tooltipPadding"; "required": false; }; "tooltipFontSize": { "alias": "tooltipFontSize"; "required": false; }; "tooltipBorderRadius": { "alias": "tooltipBorderRadius"; "required": false; }; "tooltipMaxWidth": { "alias": "tooltipMaxWidth"; "required": false; }; "followCursor": { "alias": "followCursor"; "required": false; }; "tooltipParentContainer": { "alias": "tooltipParentContainer"; "required": false; }; }, {}, never, never, true, never>;
|
|
1093
|
+
}
|
|
1094
|
+
|
|
1095
|
+
declare class TooltipComponent {
|
|
1096
|
+
content: string;
|
|
1097
|
+
position: TooltipPosition;
|
|
1098
|
+
bgColor: string;
|
|
1099
|
+
textColor: string;
|
|
1100
|
+
padding: string;
|
|
1101
|
+
fontSize: string;
|
|
1102
|
+
borderRadius: string;
|
|
1103
|
+
maxWidth: string;
|
|
1104
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TooltipComponent, never>;
|
|
1105
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TooltipComponent, "app-tooltip", never, { "content": { "alias": "content"; "required": false; }; "position": { "alias": "position"; "required": false; }; "bgColor": { "alias": "bgColor"; "required": false; }; "textColor": { "alias": "textColor"; "required": false; }; "padding": { "alias": "padding"; "required": false; }; "fontSize": { "alias": "fontSize"; "required": false; }; "borderRadius": { "alias": "borderRadius"; "required": false; }; "maxWidth": { "alias": "maxWidth"; "required": false; }; }, {}, never, never, true, never>;
|
|
1106
|
+
}
|
|
1107
|
+
|
|
1108
|
+
declare class AdaptivePositionDirective implements AfterViewInit, OnDestroy {
|
|
1109
|
+
private host;
|
|
1110
|
+
dropdown: HTMLElement;
|
|
1111
|
+
trigger: HTMLElement;
|
|
1112
|
+
parentContainer: HTMLElement;
|
|
1113
|
+
matchWidth: boolean;
|
|
1114
|
+
closeOnOutside: boolean;
|
|
1115
|
+
isAction: boolean;
|
|
1116
|
+
isColumnActionMenu: boolean;
|
|
1117
|
+
resizeObserver: ResizeObserver;
|
|
1118
|
+
isOpen: boolean;
|
|
1119
|
+
menuItems: HTMLElement[];
|
|
1120
|
+
focusedIndex: number;
|
|
1121
|
+
constructor(host: ElementRef);
|
|
1122
|
+
ngAfterViewInit(): void;
|
|
1123
|
+
open(): void;
|
|
1124
|
+
close(): void;
|
|
1125
|
+
positionDropdown(): void;
|
|
1126
|
+
handleKeys(e: KeyboardEvent): void;
|
|
1127
|
+
moveFocus(delta: number): void;
|
|
1128
|
+
focusItem(index: number): void;
|
|
1129
|
+
selectFocused(): void;
|
|
1130
|
+
prepareItems(): void;
|
|
1131
|
+
handleOutsideClick: (e: Event) => void;
|
|
1132
|
+
setupBaseStyles(): void;
|
|
1133
|
+
observeResize(): void;
|
|
1134
|
+
ngOnDestroy(): void;
|
|
1135
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AdaptivePositionDirective, never>;
|
|
1136
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<AdaptivePositionDirective, "[adaptivePosition]", never, { "dropdown": { "alias": "adaptive"; "required": false; }; "trigger": { "alias": "trigger"; "required": false; }; "parentContainer": { "alias": "parentContainer"; "required": false; }; "matchWidth": { "alias": "matchWidth"; "required": false; }; "closeOnOutside": { "alias": "closeOnOutside"; "required": false; }; "isAction": { "alias": "isAction"; "required": false; }; "isColumnActionMenu": { "alias": "isColumnActionMenu"; "required": false; }; }, {}, never, never, true, never>;
|
|
1137
|
+
}
|
|
1138
|
+
|
|
1139
|
+
export { AdaptivePositionDirective, CatsDataGridComponent, CatsDataGridService, ColDefs, CommonRendererComponent, CommonTreeTableComponent, TooltipComponent, TooltipDirective };
|
|
1140
|
+
export type { CatsTreeExpandEvent, CatsTreeLinkClickEvent, CatsTreeRowOptions, CatsTreeSelectionChangeEvent, CatsTreeTableColumn, ColumnFilter, FilterCondition, TooltipPosition, TreeFilterCondition };
|
package/package.json
CHANGED