cats-data-grid 2.0.39 → 2.0.51
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 +205 -134
- package/fesm2022/cats-data-grid.mjs.map +1 -1
- package/index.d.ts +13 -3
- package/package.json +1 -1
- package/styles/component/_form.scss +33 -2
package/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { OnChanges, OnInit, EventEmitter, Renderer2, NgZone, ChangeDetectorRef, SimpleChanges } from '@angular/core';
|
|
2
|
+
import { OnChanges, OnInit, ElementRef, EventEmitter, Renderer2, NgZone, ChangeDetectorRef, SimpleChanges } from '@angular/core';
|
|
3
3
|
|
|
4
4
|
declare class CatsDataGridService {
|
|
5
5
|
constructor();
|
|
@@ -34,6 +34,7 @@ declare class CatsDataGridComponent implements OnChanges, OnInit {
|
|
|
34
34
|
private renderer;
|
|
35
35
|
private zone;
|
|
36
36
|
private cd;
|
|
37
|
+
pinMenu: ElementRef;
|
|
37
38
|
tableOptions: any;
|
|
38
39
|
totalRecords: number;
|
|
39
40
|
sortingRequired: boolean;
|
|
@@ -45,6 +46,9 @@ declare class CatsDataGridComponent implements OnChanges, OnInit {
|
|
|
45
46
|
selectedRowEmpty: boolean;
|
|
46
47
|
filterRequired: boolean;
|
|
47
48
|
threeDotsMenuRequired: boolean;
|
|
49
|
+
settingsRequired: boolean;
|
|
50
|
+
settingsClicked: boolean;
|
|
51
|
+
resetPage: boolean;
|
|
48
52
|
showDropdown: boolean;
|
|
49
53
|
height: number;
|
|
50
54
|
groupByRequired: boolean;
|
|
@@ -52,8 +56,10 @@ declare class CatsDataGridComponent implements OnChanges, OnInit {
|
|
|
52
56
|
onCheckboxSelection: EventEmitter<any>;
|
|
53
57
|
onScrollEmitter: EventEmitter<any>;
|
|
54
58
|
filter: EventEmitter<any>;
|
|
59
|
+
onHideSettings: EventEmitter<any>;
|
|
55
60
|
activeFilterIndex: number | null;
|
|
56
61
|
originalRowData: any[];
|
|
62
|
+
activeAll: boolean;
|
|
57
63
|
pageDetails: any;
|
|
58
64
|
recordsToShow: any;
|
|
59
65
|
sortingColumnIndex: number;
|
|
@@ -80,6 +86,7 @@ declare class CatsDataGridComponent implements OnChanges, OnInit {
|
|
|
80
86
|
columnDraggable: any[];
|
|
81
87
|
activeGroups: any[];
|
|
82
88
|
groupBy: string[];
|
|
89
|
+
groupByField: string;
|
|
83
90
|
dragGroupIndex: number | null;
|
|
84
91
|
dateConfig: DateConfig;
|
|
85
92
|
filterOptions: {
|
|
@@ -102,6 +109,8 @@ declare class CatsDataGridComponent implements OnChanges, OnInit {
|
|
|
102
109
|
constructor(renderer: Renderer2, zone: NgZone, cd: ChangeDetectorRef);
|
|
103
110
|
ngOnInit(): void;
|
|
104
111
|
ngOnChanges(changes: SimpleChanges): void;
|
|
112
|
+
getColumnDetail(colDefs: any, groupByField: any): any;
|
|
113
|
+
activeAllSelection(event: Event): void;
|
|
105
114
|
/**
|
|
106
115
|
* @description Prepares and normalizes column definitions for filtering and menu behavior
|
|
107
116
|
* @author Anand Pandey
|
|
@@ -253,7 +262,7 @@ declare class CatsDataGridComponent implements OnChanges, OnInit {
|
|
|
253
262
|
* @returns {void}
|
|
254
263
|
*/
|
|
255
264
|
pinColumn(col: any, index: number, direction: string): void;
|
|
256
|
-
showPinActions(): void;
|
|
265
|
+
showPinActions(event: MouseEvent): void;
|
|
257
266
|
hidePinActions(): void;
|
|
258
267
|
/**
|
|
259
268
|
* @description Updates the horizontal left and right offsets of pinned columns by assigning cumulative widths to each pinned column and resetting non-pinned columns.
|
|
@@ -442,8 +451,9 @@ declare class CatsDataGridComponent implements OnChanges, OnInit {
|
|
|
442
451
|
disableColumnDrag(event: MouseEvent, index: number): void;
|
|
443
452
|
dateTimeSelected(date: any): void;
|
|
444
453
|
convertToNumber(value: number | string): number;
|
|
454
|
+
hideSettings(): void;
|
|
445
455
|
static ɵfac: i0.ɵɵFactoryDeclaration<CatsDataGridComponent, 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; }; "appliedFilters": { "alias": "appliedFilters"; "required": false; }; "dynamicGroupingFiltering": { "alias": "dynamicGroupingFiltering"; "required": false; }; }, { "onPaginationChange": "onPaginationChange"; "onCheckboxSelection": "onCheckboxSelection"; "onScrollEmitter": "onScrollEmitter"; "filter": "filter"; "appliedFiltersEvent": "appliedFiltersEvent"; "activeGroupsEvent": "activeGroupsEvent"; }, never, never, true, never>;
|
|
456
|
+
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; }; "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; }; "dynamicGroupingFiltering": { "alias": "dynamicGroupingFiltering"; "required": false; }; }, { "onPaginationChange": "onPaginationChange"; "onCheckboxSelection": "onCheckboxSelection"; "onScrollEmitter": "onScrollEmitter"; "filter": "filter"; "onHideSettings": "onHideSettings"; "appliedFiltersEvent": "appliedFiltersEvent"; "activeGroupsEvent": "activeGroupsEvent"; }, never, never, true, never>;
|
|
447
457
|
}
|
|
448
458
|
|
|
449
459
|
declare class CommonRendererComponent {
|
package/package.json
CHANGED
|
@@ -48,6 +48,37 @@
|
|
|
48
48
|
background-image: url("/images/chevron-right.svg");
|
|
49
49
|
display: block;
|
|
50
50
|
}
|
|
51
|
+
#table_scroll.global::-webkit-scrollbar-button:single-button:vertical:decrement {
|
|
52
|
+
display: block;
|
|
53
|
+
height: rem(55px);
|
|
54
|
+
background:
|
|
55
|
+
url("/images/chevron-up.svg") bottom / rem(15px) no-repeat,
|
|
56
|
+
linear-gradient(
|
|
57
|
+
to bottom,
|
|
58
|
+
rgb(240, 240, 240) 0%,
|
|
59
|
+
rgb(240, 240, 240) 70.5%,
|
|
60
|
+
var(--neutral-200) 70.5%,
|
|
61
|
+
var(--neutral-200) 72.5%,
|
|
62
|
+
var(--neutral-100) 72.5%,
|
|
63
|
+
var(--neutral-100) 100%
|
|
64
|
+
);
|
|
65
|
+
border-top-left-radius: 0;
|
|
66
|
+
border-top-right-radius: 0;
|
|
67
|
+
&:hover {
|
|
68
|
+
background:
|
|
69
|
+
url("/images/chevron-up.svg") bottom / rem(15px) no-repeat,
|
|
70
|
+
linear-gradient(
|
|
71
|
+
to bottom,
|
|
72
|
+
rgb(240, 240, 240) 0%,
|
|
73
|
+
rgb(240, 240, 240) 70.5%,
|
|
74
|
+
var(--neutral-200) 70.5%,
|
|
75
|
+
var(--neutral-200) 72.5%,
|
|
76
|
+
var(--neutral-300) 72.5%,
|
|
77
|
+
var(--neutral-300) 100%
|
|
78
|
+
);
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
|
|
51
82
|
// ---------------- CUSTOM RADIO INPUT START HERE--------
|
|
52
83
|
.radio_option {
|
|
53
84
|
display: flex;
|
|
@@ -209,6 +240,8 @@
|
|
|
209
240
|
.dropdown_list {
|
|
210
241
|
@include border();
|
|
211
242
|
width: 100%;
|
|
243
|
+
max-height: rem(172px);
|
|
244
|
+
overflow: auto;
|
|
212
245
|
position: absolute;
|
|
213
246
|
z-index: 2;
|
|
214
247
|
background: var(--white);
|
|
@@ -216,8 +249,6 @@
|
|
|
216
249
|
top: rem(40px);
|
|
217
250
|
|
|
218
251
|
ul {
|
|
219
|
-
max-height: rem(284px);
|
|
220
|
-
overflow: auto;
|
|
221
252
|
list-style-type: none;
|
|
222
253
|
padding: rem(4px) 0;
|
|
223
254
|
|