cats-data-grid 2.0.35 → 2.0.37
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 +132 -75
- package/fesm2022/cats-data-grid.mjs.map +1 -1
- package/index.d.ts +19 -4
- package/package.json +1 -1
- package/styles/component/_form.scss +12 -52
- package/styles/sass-utils/_variable.scss +33 -44
- package/lib/cats-data-grid.component.d.ts +0 -148
- package/lib/directives/outside-click.directive.d.ts +0 -10
- package/lib/directives/renderer-parser.directive.d.ts +0 -15
- package/lib/pipes/add-class.pipe.d.ts +0 -7
- package/lib/services/cats-data-grid.service.d.ts +0 -6
- package/public-api.d.ts +0 -2
package/index.d.ts
CHANGED
|
@@ -21,6 +21,15 @@ declare class ColDefs {
|
|
|
21
21
|
filterable: boolean;
|
|
22
22
|
cellRenderer: any;
|
|
23
23
|
}
|
|
24
|
+
interface ColumnFilter {
|
|
25
|
+
fieldName: string;
|
|
26
|
+
filterLogic: string;
|
|
27
|
+
filters: FilterCondition[];
|
|
28
|
+
}
|
|
29
|
+
interface FilterCondition {
|
|
30
|
+
filterOperation: string;
|
|
31
|
+
filterValue: any;
|
|
32
|
+
}
|
|
24
33
|
declare class CatsDataGridComponent implements OnChanges, OnInit {
|
|
25
34
|
private renderer;
|
|
26
35
|
private zone;
|
|
@@ -86,6 +95,10 @@ declare class CatsDataGridComponent implements OnChanges, OnInit {
|
|
|
86
95
|
private removeMouseMove;
|
|
87
96
|
private removeMouseUp;
|
|
88
97
|
private rafId;
|
|
98
|
+
appliedFilters: ColumnFilter[];
|
|
99
|
+
appliedFiltersEvent: EventEmitter<ColumnFilter[]>;
|
|
100
|
+
activeGroupsEvent: EventEmitter<any[]>;
|
|
101
|
+
dynamicGroupingFiltering: boolean;
|
|
89
102
|
constructor(renderer: Renderer2, zone: NgZone, cd: ChangeDetectorRef);
|
|
90
103
|
ngOnInit(): void;
|
|
91
104
|
ngOnChanges(changes: SimpleChanges): void;
|
|
@@ -117,13 +130,14 @@ declare class CatsDataGridComponent implements OnChanges, OnInit {
|
|
|
117
130
|
*/
|
|
118
131
|
evaluateNumDateFilterCondition(type: string, fieldValue: number | string, value: number | string): boolean;
|
|
119
132
|
/**
|
|
120
|
-
* @description Method to filter data according to
|
|
133
|
+
* @description Method to filter data according to filterOperation and comparator selection
|
|
121
134
|
* @author Anand Pandey
|
|
122
135
|
* @param {}
|
|
123
136
|
* @returns void
|
|
124
137
|
*/
|
|
125
138
|
applyAllFilters(): void;
|
|
126
139
|
resetFilter(col: any): void;
|
|
140
|
+
removeActiveFilter(col: any): void;
|
|
127
141
|
/**
|
|
128
142
|
* @description Method to change the data format to utc
|
|
129
143
|
* @author Anand Pandey
|
|
@@ -262,7 +276,7 @@ declare class CatsDataGridComponent implements OnChanges, OnInit {
|
|
|
262
276
|
* @param none
|
|
263
277
|
* @returns void
|
|
264
278
|
*/
|
|
265
|
-
|
|
279
|
+
resetPagination(): void;
|
|
266
280
|
/**
|
|
267
281
|
* @description method to set total pages count
|
|
268
282
|
* @author Tarun Kumar
|
|
@@ -331,7 +345,6 @@ declare class CatsDataGridComponent implements OnChanges, OnInit {
|
|
|
331
345
|
*/
|
|
332
346
|
getStyle(col: any, type?: string): object;
|
|
333
347
|
onClickOutside(): void;
|
|
334
|
-
checkCondition(data: any): boolean;
|
|
335
348
|
infinityScroll(event: any): void;
|
|
336
349
|
checkAllSelected(): boolean;
|
|
337
350
|
checkInterminate(): boolean;
|
|
@@ -428,8 +441,9 @@ declare class CatsDataGridComponent implements OnChanges, OnInit {
|
|
|
428
441
|
enableColumnDrag(event: MouseEvent, index: number): void;
|
|
429
442
|
disableColumnDrag(event: MouseEvent, index: number): void;
|
|
430
443
|
dateTimeSelected(date: any): void;
|
|
444
|
+
convertToNumber(value: number | string): number;
|
|
431
445
|
static ɵfac: i0.ɵɵFactoryDeclaration<CatsDataGridComponent, never>;
|
|
432
|
-
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; }; "height": { "alias": "height"; "required": false; }; "groupByRequired": { "alias": "groupByRequired"; "required": false; }; "pageSizeList": { "alias": "pageSizeList"; "required": false; }; }, { "onPaginationChange": "onPaginationChange"; "onCheckboxSelection": "onCheckboxSelection"; "onScrollEmitter": "onScrollEmitter"; "filter": "filter"; }, never, never, true, never>;
|
|
446
|
+
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; }; "height": { "alias": "height"; "required": false; }; "groupByRequired": { "alias": "groupByRequired"; "required": false; }; "pageSizeList": { "alias": "pageSizeList"; "required": false; }; "dynamicGroupingFiltering": { "alias": "dynamicGroupingFiltering"; "required": false; }; }, { "onPaginationChange": "onPaginationChange"; "onCheckboxSelection": "onCheckboxSelection"; "onScrollEmitter": "onScrollEmitter"; "filter": "filter"; "appliedFiltersEvent": "appliedFiltersEvent"; "activeGroupsEvent": "activeGroupsEvent"; }, never, never, true, never>;
|
|
433
447
|
}
|
|
434
448
|
|
|
435
449
|
declare class CommonRendererComponent {
|
|
@@ -554,3 +568,4 @@ declare class CommonRendererComponent {
|
|
|
554
568
|
}
|
|
555
569
|
|
|
556
570
|
export { CatsDataGridComponent, CatsDataGridService, ColDefs, CommonRendererComponent };
|
|
571
|
+
export type { ColumnFilter, FilterCondition };
|
package/package.json
CHANGED
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
@use "../sass-utils" as *;
|
|
2
2
|
|
|
3
3
|
//========== CUSTOM SCROLL BAR ======================
|
|
4
|
-
#
|
|
4
|
+
#table_scroll::-webkit-scrollbar {
|
|
5
5
|
@include box(rem(14px), rem(14px));
|
|
6
6
|
}
|
|
7
|
-
#
|
|
7
|
+
#table_scroll::-webkit-scrollbar-track {
|
|
8
8
|
background-color: var(--neutral-200);
|
|
9
9
|
@include border($width: rem(3px), $radius: rem(100px), $color: transparent);
|
|
10
10
|
background-clip: padding-box;
|
|
11
11
|
}
|
|
12
|
-
#
|
|
12
|
+
#table_scroll::-webkit-scrollbar-thumb {
|
|
13
13
|
background-color: var(--neutral-500);
|
|
14
14
|
@include border($width: rem(3px), $radius: rem(100px), $color: transparent);
|
|
15
15
|
background-clip: padding-box;
|
|
16
16
|
}
|
|
17
|
-
#
|
|
17
|
+
#table_scroll::-webkit-scrollbar-corner {
|
|
18
18
|
background: transparent;
|
|
19
19
|
}
|
|
20
|
-
#
|
|
20
|
+
#table_scroll::-webkit-scrollbar-button {
|
|
21
21
|
@include box(rem(14px), rem(14px));
|
|
22
22
|
background-color: var(--neutral-100);
|
|
23
23
|
border-radius: rem(2px);
|
|
@@ -27,69 +27,27 @@
|
|
|
27
27
|
background-position: center;
|
|
28
28
|
background-size: rem(10px);
|
|
29
29
|
}
|
|
30
|
-
#
|
|
30
|
+
#table_scroll::-webkit-scrollbar-button:hover {
|
|
31
31
|
background-color: var(--neutral-300);
|
|
32
32
|
}
|
|
33
|
-
#
|
|
33
|
+
#table_scroll::-webkit-scrollbar-button:single-button:vertical:decrement {
|
|
34
34
|
background-image: url("/images/chevron-up.svg");
|
|
35
35
|
display: block;
|
|
36
36
|
// border-top-right-radius: 8px;
|
|
37
37
|
}
|
|
38
|
-
#
|
|
38
|
+
#table_scroll::-webkit-scrollbar-button:single-button:vertical:increment {
|
|
39
39
|
background-image: url("/images/chevron-down.svg");
|
|
40
40
|
display: block;
|
|
41
41
|
}
|
|
42
|
-
#
|
|
42
|
+
#table_scroll::-webkit-scrollbar-button:single-button:horizontal:decrement {
|
|
43
43
|
background-image: url("/images/chevron-left.svg");
|
|
44
44
|
display: block;
|
|
45
45
|
// border-bottom-left-radius: 8px;
|
|
46
46
|
}
|
|
47
|
-
#
|
|
47
|
+
#table_scroll::-webkit-scrollbar-button:single-button:horizontal:increment {
|
|
48
48
|
background-image: url("/images/chevron-right.svg");
|
|
49
49
|
display: block;
|
|
50
50
|
}
|
|
51
|
-
|
|
52
|
-
// .row_div {
|
|
53
|
-
// min-height: rem(54px);
|
|
54
|
-
// @include flex(flex-start, center);
|
|
55
|
-
|
|
56
|
-
// .col_div {
|
|
57
|
-
// width: 50%;
|
|
58
|
-
// @include flex(flex-start, center);
|
|
59
|
-
// }
|
|
60
|
-
|
|
61
|
-
// .label {
|
|
62
|
-
// width: rem(200px);
|
|
63
|
-
// min-width: rem(200px);
|
|
64
|
-
// padding: 0 rem(24px);
|
|
65
|
-
// color: var(--neutral-500);
|
|
66
|
-
// @include fontStyle(var(--fs-16), 140%, 500);
|
|
67
|
-
|
|
68
|
-
// @include flex("", center, rem(3px));
|
|
69
|
-
|
|
70
|
-
// sup {
|
|
71
|
-
// top: rem(-2px);
|
|
72
|
-
// }
|
|
73
|
-
// }
|
|
74
|
-
// .field {
|
|
75
|
-
// padding: rem(8px) rem(24px);
|
|
76
|
-
// flex-grow: 1;
|
|
77
|
-
// @include flex(flex-start, start, "", column);
|
|
78
|
-
// color: var(--neutral-600);
|
|
79
|
-
// @include fontStyle(var(--fs-16), 140%);
|
|
80
|
-
|
|
81
|
-
// li {
|
|
82
|
-
// list-style: disc;
|
|
83
|
-
// line-height: rem(32px);
|
|
84
|
-
// margin-left: rem(18px);
|
|
85
|
-
// }
|
|
86
|
-
// }
|
|
87
|
-
// }
|
|
88
|
-
|
|
89
|
-
sup {
|
|
90
|
-
color: var(--error-red);
|
|
91
|
-
}
|
|
92
|
-
|
|
93
51
|
// ---------------- CUSTOM RADIO INPUT START HERE--------
|
|
94
52
|
.radio_option {
|
|
95
53
|
display: flex;
|
|
@@ -206,6 +164,7 @@ sup {
|
|
|
206
164
|
&::after {
|
|
207
165
|
display: block;
|
|
208
166
|
background-image: url("/images/check-white.svg");
|
|
167
|
+
background-size: rem(8px) rem(6px);
|
|
209
168
|
}
|
|
210
169
|
}
|
|
211
170
|
// --- Indeterminate (minus) state ---
|
|
@@ -216,6 +175,7 @@ sup {
|
|
|
216
175
|
display: block;
|
|
217
176
|
top: 0;
|
|
218
177
|
background-image: url("/images/minus-blue.svg");
|
|
178
|
+
background-size: rem(7px) rem(1px);
|
|
219
179
|
}
|
|
220
180
|
}
|
|
221
181
|
}
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
:root {
|
|
2
2
|
--white: #ffffff;
|
|
3
|
-
--white-50: rgba(255, 255, 255, 0.582);
|
|
4
3
|
|
|
5
|
-
--
|
|
6
|
-
--
|
|
7
|
-
--black-
|
|
4
|
+
// --default: #000000;
|
|
5
|
+
// --black: #1f1f1f;
|
|
6
|
+
// --black-dust: #1a1a1a;
|
|
7
|
+
// --black-900: #202224;
|
|
8
|
+
|
|
8
9
|
--pagination-text: var(--neutral-500);
|
|
9
|
-
--black-dust: #1a1a1a;
|
|
10
10
|
|
|
11
11
|
// NEUTRAL-COLOR
|
|
12
|
-
--neutral-cross: #d9d9d9;
|
|
13
|
-
--neutral-40: #d5d7da;
|
|
12
|
+
// --neutral-cross: #d9d9d9;
|
|
13
|
+
// --neutral-40: #d5d7da;
|
|
14
14
|
--neutral-50: #f0f0f0;
|
|
15
15
|
--neutral-100: #e6e7e8;
|
|
16
16
|
--neutral-200: #dadbdc;
|
|
@@ -18,71 +18,60 @@
|
|
|
18
18
|
--neutral-400: #81858a;
|
|
19
19
|
--neutral-500: #434a51;
|
|
20
20
|
--neutral-600: #040d17;
|
|
21
|
-
--neutral-900: #010306;
|
|
21
|
+
// --neutral-900: #010306;
|
|
22
22
|
|
|
23
23
|
// BLUE COLOR
|
|
24
24
|
--blue-50: #f7fafe;
|
|
25
25
|
--blue-100: #eaf3fd;
|
|
26
|
-
--blue-200: #dfecfc;
|
|
26
|
+
// --blue-200: #dfecfc;
|
|
27
27
|
--blue-300: #c8dff9;
|
|
28
|
-
--blue-400: #92bff4;
|
|
28
|
+
// --blue-400: #92bff4;
|
|
29
29
|
--blue-600: #2680ea;
|
|
30
30
|
--blue-700: #1c60af;
|
|
31
|
-
--blue-800: #1849d6;
|
|
31
|
+
// --blue-800: #1849d6;
|
|
32
32
|
|
|
33
33
|
// GREY COLOR
|
|
34
34
|
--grey-50: #e9eaeb;
|
|
35
|
-
--grey-100: #e2e8f0;
|
|
36
|
-
--grey-150: #d6d6d6;
|
|
37
|
-
--grey-200: #64748b;
|
|
38
|
-
--grey-300: #414651;
|
|
39
|
-
--grey-400: #8080808c;
|
|
40
|
-
--grey-600: #535862;
|
|
41
|
-
--light-grey: #81858a;
|
|
42
|
-
--dark-grey: #4a4a4a;
|
|
35
|
+
// --grey-100: #e2e8f0;
|
|
36
|
+
// --grey-150: #d6d6d6;
|
|
37
|
+
// --grey-200: #64748b;
|
|
38
|
+
// --grey-300: #414651;
|
|
39
|
+
// --grey-400: #8080808c;
|
|
40
|
+
// --grey-600: #535862;
|
|
41
|
+
// --light-grey: #81858a;
|
|
42
|
+
// --dark-grey: #4a4a4a;
|
|
43
43
|
|
|
44
|
-
--green-50: #f7fbf7;
|
|
44
|
+
// --green-50: #f7fbf7;
|
|
45
45
|
--green-100: #ecf4ec;
|
|
46
46
|
--green-200: #e1eee2;
|
|
47
|
-
--green-400: #9bc69d;
|
|
47
|
+
// --green-400: #9bc69d;
|
|
48
48
|
--green-600: #388e3c;
|
|
49
49
|
--green-700: #2a6a2d;
|
|
50
50
|
|
|
51
51
|
--red: #ff0000;
|
|
52
|
-
--red-50: #fdf7f7;
|
|
52
|
+
// --red-50: #fdf7f7;
|
|
53
53
|
--red-100: #faeaea;
|
|
54
|
-
--red-200: #f7dfdf;
|
|
54
|
+
// --red-200: #f7dfdf;
|
|
55
55
|
--red-300: #f0c9c9;
|
|
56
56
|
--red-700: #941e1e;
|
|
57
57
|
|
|
58
|
-
--yellow-50: #fffdf5;
|
|
58
|
+
// --yellow-50: #fffdf5;
|
|
59
59
|
--yellow-100: #fff9e7;
|
|
60
|
-
--yellow-200: #fff6da;
|
|
60
|
+
// --yellow-200: #fff6da;
|
|
61
61
|
--yellow-300: #ffefc1;
|
|
62
62
|
// --yellow-400: #fff9e7;
|
|
63
|
-
--yellow-500: #bf7200;
|
|
64
|
-
--yellow-600: #ffc107;
|
|
63
|
+
// --yellow-500: #bf7200;
|
|
64
|
+
// --yellow-600: #ffc107;
|
|
65
65
|
--yellow-700: #bf9105;
|
|
66
|
-
--yellow-800: #806003;
|
|
67
|
-
--yellow-900: #bf9105;
|
|
66
|
+
// --yellow-800: #806003;
|
|
67
|
+
// --yellow-900: #bf9105;
|
|
68
68
|
|
|
69
69
|
// Orange
|
|
70
|
-
--orange-50: rgba(255, 251, 245, 1);
|
|
71
|
-
--orange-100: #fff5e6;
|
|
72
|
-
--orange-200: #fff0d9;
|
|
70
|
+
// --orange-50: rgba(255, 251, 245, 1);
|
|
71
|
+
// --orange-100: #fff5e6;
|
|
72
|
+
// --orange-200: #fff0d9;
|
|
73
73
|
--orange-600: #ff9800;
|
|
74
|
-
--orange-700: rgba(191, 114, 0, 1);
|
|
74
|
+
// --orange-700: rgba(191, 114, 0, 1);
|
|
75
75
|
|
|
76
76
|
--box-shadow: #0a0d1214;
|
|
77
|
-
--grid-box-shadow: #0000000a;
|
|
78
|
-
--model-shadow: rgba(0, 0, 0, 0.08);
|
|
79
|
-
--canvas-shadow: #00000014;
|
|
80
|
-
|
|
81
|
-
--loader-border: #6f7b93;
|
|
82
|
-
--modal-bg: rgba(4, 13, 23, 0.3);
|
|
83
|
-
--checkbox-border: #0d6efd;
|
|
84
|
-
|
|
85
|
-
// FILTER COLOR
|
|
86
|
-
--filter-600: rgba(0, 0, 0, 0.644);
|
|
87
|
-
--feather-bg: #fafafa;
|
|
88
77
|
}
|
|
@@ -1,148 +0,0 @@
|
|
|
1
|
-
import { ChangeDetectorRef, EventEmitter, OnChanges, SimpleChanges } from '@angular/core';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
export declare class CatsDataGridComponent implements OnChanges {
|
|
4
|
-
private cd;
|
|
5
|
-
tableOptions: any;
|
|
6
|
-
totalRecords: number;
|
|
7
|
-
sortingRequired: boolean;
|
|
8
|
-
checkBoxSelection: boolean;
|
|
9
|
-
checkboxSelectionType: string;
|
|
10
|
-
rowData: any[];
|
|
11
|
-
colDefs: any[];
|
|
12
|
-
paginationRequired: boolean;
|
|
13
|
-
selectedRowEmpty: boolean;
|
|
14
|
-
filterRequired: boolean;
|
|
15
|
-
onPaginationChange: EventEmitter<any>;
|
|
16
|
-
onCheckboxSelection: EventEmitter<any>;
|
|
17
|
-
onScrollEmitter: EventEmitter<any>;
|
|
18
|
-
pageDetails: any;
|
|
19
|
-
recordsToShow: any;
|
|
20
|
-
sortingColumnIndex: number;
|
|
21
|
-
sortingType: string;
|
|
22
|
-
selectedRow: any[];
|
|
23
|
-
pageSizeList: number[];
|
|
24
|
-
showPageSizeList: boolean;
|
|
25
|
-
dragOverIndex: null | number;
|
|
26
|
-
draggedIndex: null | number;
|
|
27
|
-
constructor(cd: ChangeDetectorRef);
|
|
28
|
-
ngOnInit(): void;
|
|
29
|
-
ngOnChanges(changes: SimpleChanges): void;
|
|
30
|
-
/**
|
|
31
|
-
* @description Method to parse column value from rowdata object
|
|
32
|
-
* according to given field value in column Defination
|
|
33
|
-
* @author Tarun Kumar
|
|
34
|
-
* @param row - current row object
|
|
35
|
-
* @param toParse - field value
|
|
36
|
-
* @returns string
|
|
37
|
-
*/
|
|
38
|
-
parseColValue(row: any, toParse: string): string;
|
|
39
|
-
/**
|
|
40
|
-
* @description method to reset table configuration
|
|
41
|
-
* @author Tarun Kumar
|
|
42
|
-
* @param none
|
|
43
|
-
* @returns void
|
|
44
|
-
*/
|
|
45
|
-
resetTableConfig(): void;
|
|
46
|
-
/**
|
|
47
|
-
* @description method to set total pages count
|
|
48
|
-
* @author Tarun Kumar
|
|
49
|
-
* @param none
|
|
50
|
-
* @returns void
|
|
51
|
-
*/
|
|
52
|
-
setPageCount(): void;
|
|
53
|
-
/**
|
|
54
|
-
* @description method to update table on page size change
|
|
55
|
-
* @author Tarun Kumar
|
|
56
|
-
* @param event
|
|
57
|
-
* @returns void
|
|
58
|
-
*/
|
|
59
|
-
onPageSizeChanged(event: any): void;
|
|
60
|
-
/**
|
|
61
|
-
* @description method to update table on previous button click
|
|
62
|
-
* @author Tarun Kumar
|
|
63
|
-
*/
|
|
64
|
-
onBtPrevClick(): void;
|
|
65
|
-
/**
|
|
66
|
-
* @description method to update table on next button click
|
|
67
|
-
* @author Tarun Kumar
|
|
68
|
-
*/
|
|
69
|
-
onBtNextClick(): void;
|
|
70
|
-
/**
|
|
71
|
-
* @description method to update table on selecting any page randomly
|
|
72
|
-
* @author Tarun Kumar
|
|
73
|
-
* @param event
|
|
74
|
-
*/
|
|
75
|
-
goToSelectedPage(event: any): void;
|
|
76
|
-
/**
|
|
77
|
-
* @description method to sort data according to type and column
|
|
78
|
-
* @author Tarun Kumar
|
|
79
|
-
* @param sortingColumIndex
|
|
80
|
-
* @param fieldName
|
|
81
|
-
* @param sortingType
|
|
82
|
-
*/
|
|
83
|
-
onSortingRowData(sortingColumIndex: number, fieldName: string): void;
|
|
84
|
-
/**
|
|
85
|
-
* @description method to sort table in ascending order according to given field
|
|
86
|
-
* @param fieldName
|
|
87
|
-
*/
|
|
88
|
-
ascendingOrder(fieldName: string): void;
|
|
89
|
-
/**
|
|
90
|
-
* @description method to sort table in descending order according to given field
|
|
91
|
-
* @param fieldName
|
|
92
|
-
*/
|
|
93
|
-
descendingOrder(fieldName: string): void;
|
|
94
|
-
/**
|
|
95
|
-
* @description method to check/uncheck all rows on header checkbox selection/deselection
|
|
96
|
-
* @author Tarun Kumar
|
|
97
|
-
* @param event
|
|
98
|
-
*/
|
|
99
|
-
onHeaderCheckboxChange(event: any): void;
|
|
100
|
-
/**
|
|
101
|
-
* @description method to check/uncheck row on row checkbox selection/deselection
|
|
102
|
-
* @author Tarun Kumar
|
|
103
|
-
* @param event
|
|
104
|
-
*/
|
|
105
|
-
onRowCheckboxSelection(event: any): void;
|
|
106
|
-
/**
|
|
107
|
-
* @description method to check/uncheck all rows on header checkbox selection/deselection
|
|
108
|
-
* @author Tarun Kumar
|
|
109
|
-
* @param col
|
|
110
|
-
* @returns {object}
|
|
111
|
-
*/
|
|
112
|
-
getStyle(col: any): object;
|
|
113
|
-
onClickOutside(): void;
|
|
114
|
-
checkCondition(data: any): boolean;
|
|
115
|
-
infinityScroll(event: any): void;
|
|
116
|
-
checkAllSelected(): boolean;
|
|
117
|
-
checkInterminate(): boolean;
|
|
118
|
-
/**
|
|
119
|
-
* @author Tarun Kumar
|
|
120
|
-
* @description function triggered when the drag starts
|
|
121
|
-
* @param {event object, index}
|
|
122
|
-
* @returns {void}
|
|
123
|
-
*/
|
|
124
|
-
onDragStart(event: DragEvent, index: number): void;
|
|
125
|
-
/**
|
|
126
|
-
* @author Tarun Kumar
|
|
127
|
-
* @description function to track the index of the element being dragged over and allow dropping
|
|
128
|
-
* @param {event object, index}
|
|
129
|
-
* @returns {void}
|
|
130
|
-
*/
|
|
131
|
-
onDragOver(event: DragEvent, index: number): void;
|
|
132
|
-
/**
|
|
133
|
-
* @author Tarun Kumar
|
|
134
|
-
* @description function to Reorder the items on drop
|
|
135
|
-
* @param {event object, index}
|
|
136
|
-
* @returns {void}
|
|
137
|
-
*/
|
|
138
|
-
onDrop(event: DragEvent, index: number): void;
|
|
139
|
-
/**
|
|
140
|
-
* @author Tarun Kumar
|
|
141
|
-
* @description function to reset dragOverIndex when the drag ends
|
|
142
|
-
* @param {none}
|
|
143
|
-
* @returns {void}
|
|
144
|
-
*/
|
|
145
|
-
onDragEnd(): void;
|
|
146
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<CatsDataGridComponent, never>;
|
|
147
|
-
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; }; "pageSizeList": { "alias": "pageSizeList"; "required": false; }; }, { "onPaginationChange": "onPaginationChange"; "onCheckboxSelection": "onCheckboxSelection"; "onScrollEmitter": "onScrollEmitter"; }, never, never, true, never>;
|
|
148
|
-
}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { ElementRef, EventEmitter } from "@angular/core";
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
export declare class OutsideClickDirective {
|
|
4
|
-
private el;
|
|
5
|
-
clickOutside: EventEmitter<any>;
|
|
6
|
-
constructor(el: ElementRef);
|
|
7
|
-
onClick(event: MouseEvent, targetElement: HTMLElement): void;
|
|
8
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<OutsideClickDirective, never>;
|
|
9
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<OutsideClickDirective, "[appOutsideClick]", never, {}, { "clickOutside": "clickOutside"; }, never, never, true, never>;
|
|
10
|
-
}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { ElementRef, OnInit, ViewContainerRef } from '@angular/core';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
export declare class RendererParserDirective implements OnInit {
|
|
4
|
-
private el;
|
|
5
|
-
private er;
|
|
6
|
-
rowParam: any;
|
|
7
|
-
col: any;
|
|
8
|
-
api: any;
|
|
9
|
-
currentValue: any;
|
|
10
|
-
ref: any;
|
|
11
|
-
constructor(el: ViewContainerRef, er: ElementRef);
|
|
12
|
-
ngOnInit(): void;
|
|
13
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<RendererParserDirective, never>;
|
|
14
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<RendererParserDirective, "[appRendererParser]", never, { "rowParam": { "alias": "rowParam"; "required": false; }; "col": { "alias": "col"; "required": false; }; "api": { "alias": "api"; "required": false; }; "currentValue": { "alias": "currentValue"; "required": false; }; }, {}, never, never, true, never>;
|
|
15
|
-
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { PipeTransform } from '@angular/core';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
export declare class AddClassPipe implements PipeTransform {
|
|
4
|
-
transform(value: any, tableOption: any): string;
|
|
5
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<AddClassPipe, never>;
|
|
6
|
-
static ɵpipe: i0.ɵɵPipeDeclaration<AddClassPipe, "addClass", true>;
|
|
7
|
-
}
|
package/public-api.d.ts
DELETED