cats-data-grid 2.0.39 → 2.0.52
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 +243 -135
- package/fesm2022/cats-data-grid.mjs.map +1 -1
- package/index.d.ts +16 -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,8 @@ declare class CatsDataGridComponent implements OnChanges, OnInit {
|
|
|
34
34
|
private renderer;
|
|
35
35
|
private zone;
|
|
36
36
|
private cd;
|
|
37
|
+
pinMenu: ElementRef;
|
|
38
|
+
colActionMenu: ElementRef;
|
|
37
39
|
tableOptions: any;
|
|
38
40
|
totalRecords: number;
|
|
39
41
|
sortingRequired: boolean;
|
|
@@ -45,6 +47,9 @@ declare class CatsDataGridComponent implements OnChanges, OnInit {
|
|
|
45
47
|
selectedRowEmpty: boolean;
|
|
46
48
|
filterRequired: boolean;
|
|
47
49
|
threeDotsMenuRequired: boolean;
|
|
50
|
+
settingsRequired: boolean;
|
|
51
|
+
settingsClicked: boolean;
|
|
52
|
+
resetPage: boolean;
|
|
48
53
|
showDropdown: boolean;
|
|
49
54
|
height: number;
|
|
50
55
|
groupByRequired: boolean;
|
|
@@ -52,8 +57,10 @@ declare class CatsDataGridComponent implements OnChanges, OnInit {
|
|
|
52
57
|
onCheckboxSelection: EventEmitter<any>;
|
|
53
58
|
onScrollEmitter: EventEmitter<any>;
|
|
54
59
|
filter: EventEmitter<any>;
|
|
60
|
+
onHideSettings: EventEmitter<any>;
|
|
55
61
|
activeFilterIndex: number | null;
|
|
56
62
|
originalRowData: any[];
|
|
63
|
+
activeAll: boolean;
|
|
57
64
|
pageDetails: any;
|
|
58
65
|
recordsToShow: any;
|
|
59
66
|
sortingColumnIndex: number;
|
|
@@ -80,6 +87,7 @@ declare class CatsDataGridComponent implements OnChanges, OnInit {
|
|
|
80
87
|
columnDraggable: any[];
|
|
81
88
|
activeGroups: any[];
|
|
82
89
|
groupBy: string[];
|
|
90
|
+
groupByField: string;
|
|
83
91
|
dragGroupIndex: number | null;
|
|
84
92
|
dateConfig: DateConfig;
|
|
85
93
|
filterOptions: {
|
|
@@ -99,9 +107,13 @@ declare class CatsDataGridComponent implements OnChanges, OnInit {
|
|
|
99
107
|
appliedFiltersEvent: EventEmitter<ColumnFilter[]>;
|
|
100
108
|
activeGroupsEvent: EventEmitter<any[]>;
|
|
101
109
|
dynamicGroupingFiltering: boolean;
|
|
110
|
+
atLeastOneColumnChecked: boolean;
|
|
102
111
|
constructor(renderer: Renderer2, zone: NgZone, cd: ChangeDetectorRef);
|
|
103
112
|
ngOnInit(): void;
|
|
104
113
|
ngOnChanges(changes: SimpleChanges): void;
|
|
114
|
+
getColumnDetail(colDefs: any, groupByField: any): any;
|
|
115
|
+
activeAllSelection(event: Event): void;
|
|
116
|
+
changeActiveColSelection(event: Event, col: any): void;
|
|
105
117
|
/**
|
|
106
118
|
* @description Prepares and normalizes column definitions for filtering and menu behavior
|
|
107
119
|
* @author Anand Pandey
|
|
@@ -253,7 +265,7 @@ declare class CatsDataGridComponent implements OnChanges, OnInit {
|
|
|
253
265
|
* @returns {void}
|
|
254
266
|
*/
|
|
255
267
|
pinColumn(col: any, index: number, direction: string): void;
|
|
256
|
-
showPinActions(): void;
|
|
268
|
+
showPinActions(event: MouseEvent): void;
|
|
257
269
|
hidePinActions(): void;
|
|
258
270
|
/**
|
|
259
271
|
* @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 +454,9 @@ declare class CatsDataGridComponent implements OnChanges, OnInit {
|
|
|
442
454
|
disableColumnDrag(event: MouseEvent, index: number): void;
|
|
443
455
|
dateTimeSelected(date: any): void;
|
|
444
456
|
convertToNumber(value: number | string): number;
|
|
457
|
+
hideSettings(): void;
|
|
445
458
|
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>;
|
|
459
|
+
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
460
|
}
|
|
448
461
|
|
|
449
462
|
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
|
|