cats-data-grid 1.0.0 → 2.0.0

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.
@@ -1,66 +1,88 @@
1
1
  :root {
2
- --white: #fff;
3
- --white-creame: #ebf3ff;
4
- --border: #dae3f8;
5
- --scrollbar: var(--border);
6
- --textPrimary: #0b1c33;
7
- --textPrimary70: #0b1c33b3;
8
- --textSecondary: #556171;
9
- --textSecondary50: #55617180;
10
- --textSecondary70: #556171b3;
2
+ --white: #ffffff;
3
+ --white-50: rgba(255, 255, 255, 0.582);
11
4
 
12
- --pink-10: #f9fbfe;
5
+ --black: #1f1f1f;
6
+ --default: #000000;
7
+ --black-900: #202224;
8
+ --pagination-text: var(--neutral-500);
9
+ --black-dust: #1a1a1a;
13
10
 
14
- --ice-blue: #67adcf;
15
- --primaryBlue: #017db9;
16
- --primaryBlue70: #017db9be;
17
- --blue-10: #edf4fe;
18
- --blue-40: #e3f3fc;
19
- --blue-50: #f2f5fa;
20
- --blue-5050: #f2f5fa80;
21
- --blue-100: #c8e2ff;
22
- --blue-200: #a4cfff;
23
- --blue-300: #2680ea;
24
- --blue-500: #3788e5;
25
- --blue-700: #007aff;
26
- // --blue-70090: #007AFFE6;
11
+ // NEUTRAL-COLOR
12
+ --neutral-cross: #d9d9d9;
13
+ --neutral-40: #d5d7da;
14
+ --neutral-50: #f0f0f0;
15
+ --neutral-100: #e6e7e8;
16
+ --neutral-200: #dadbdc;
17
+ --neutral-300: #c0c2c5;
18
+ --neutral-400: #81858a;
19
+ --neutral-500: #434a51;
20
+ --neutral-600: #040d17;
21
+ --neutral-900: #010306;
27
22
 
28
- --yellow-50: #ffeedf;
29
- --yellow-100: #fed18f;
30
- --yellow-200: #ffbca6;
31
- --yellow-300: #f08a2b26;
32
- --yellow-400: #e58900;
23
+ // BLUE COLOR
24
+ --blue-50: #f7fafe;
25
+ --blue-100: #eaf3fd;
26
+ --blue-200: #dfecfc;
27
+ --blue-300: #c8dff9;
28
+ --blue-400: #92bff4;
29
+ --blue-600: #2680ea;
30
+ --blue-700: #1c60af;
31
+ --blue-800: #1849d6;
33
32
 
34
- --primaryOrange: #f05a2b;
35
- --primaryOrange50: #f05a2b80;
36
- --primaryOrange70: #f05a2bb3;
37
- --orange-10: #fcf5eb;
38
- --orange-200: #f7ac94;
39
- --orange-300: #fb9676;
40
- --theadBg: var(--blue-50);
33
+ // GREY COLOR
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;
41
43
 
42
- --pagination-bg: #f7fafe;
43
- --blue-200: var(--border);
44
- --neutral-200: #dadbdc;
45
- --neutral-600: #040d17;
46
- --toastShadow: #0000001f;
47
- --dropdown-shadow: #00000014;
44
+ --green-50: #f7fbf7;
45
+ --green-100: #ecf4ec;
46
+ --green-200: #e1eee2;
47
+ --green-400: #9bc69d;
48
+ --green-600: #388e3c;
49
+ --green-700: #2a6a2d;
48
50
 
49
- --green-50: #eaf8f1;
50
- --green-100: #bde8d3;
51
- --green-600: #27a468;
51
+ --red: #ff0000;
52
+ --red-50: #fdf7f7;
53
+ --red-100: #faeaea;
54
+ --red-200: #f7dfdf;
55
+ --red-300: #f0c9c9;
56
+ --red-700: #941e1e;
52
57
 
53
- --red-10: #fcebef;
54
- --red-20: #ca0000;
55
- --red-30: #F7C1CE;
56
- --error-red: #d03258;
57
- --tableBorder: var(--border);
58
+ --yellow-50: #fffdf5;
59
+ --yellow-100: #fff9e7;
60
+ --yellow-200: #fff6da;
61
+ --yellow-300: #ffefc1;
62
+ // --yellow-400: #fff9e7;
63
+ --yellow-500: #bf7200;
64
+ --yellow-600: #ffc107;
65
+ --yellow-700: #bf9105;
66
+ --yellow-800: #806003;
67
+ --yellow-900: #bf9105;
58
68
 
59
- --grey-50: #a5b0bf;
60
- --grey-100: #333333;
61
- --grey-200: #222A3D;
69
+ // Orange
70
+ --orange-50: rgba(255, 251, 245, 1);
71
+ --orange-100: #fff5e6;
72
+ --orange-200: #fff0d9;
73
+ --orange-600: #ff9800;
74
+ --orange-700: rgba(191, 114, 0, 1);
62
75
 
63
- --capture-border: #9badca;
64
- --captcha-bg: #f3f3f3;
65
- --neutral-400: #81858a;
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;
66
88
  }
@@ -1,241 +0,0 @@
1
- import { ChangeDetectorRef, EventEmitter, OnChanges, OnInit, SimpleChanges } from '@angular/core';
2
- import * as i0 from "@angular/core";
3
- export declare class CatsDataGridComponent implements OnChanges, OnInit {
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
- threeDotsMenuRequired: boolean;
16
- height: number;
17
- onPaginationChange: EventEmitter<any>;
18
- onCheckboxSelection: EventEmitter<any>;
19
- onScrollEmitter: EventEmitter<any>;
20
- filter: EventEmitter<any>;
21
- activeFilterIndex: number | null;
22
- originalRowData: any[];
23
- pageDetails: any;
24
- recordsToShow: any;
25
- sortingColumnIndex: number;
26
- sortingType: string;
27
- selectedRow: any[];
28
- pageSizeList: number[];
29
- showPageSizeList: boolean;
30
- dragOverIndex: null | number;
31
- draggedIndex: null | number;
32
- originalColDefs: any[];
33
- filteredRowData: any[];
34
- filteredData: any[];
35
- currentColumn: any;
36
- currentIndex: number;
37
- menuVisible: boolean[];
38
- menuPosition: any[];
39
- activeFilters: Set<any>;
40
- constructor(cd: ChangeDetectorRef);
41
- ngOnInit(): void;
42
- ngOnChanges(changes: SimpleChanges): void;
43
- /**
44
- * @description Prepares and normalizes column definitions for filtering and menu behavior
45
- * @author Anand Pandey
46
- * @param {any[]} colDefs - Raw column definitions received from the parent.
47
- * @returns {any[]} - Updated column definitions with filter/menu
48
- */
49
- getUpdatedColDefs(colDefs: any[]): any[];
50
- evaluateTextFilterCondition(type: string, fieldValue: string, value: string): boolean;
51
- evaluateNumDateFilterCondition(type: string, fieldValue: number, value: number): boolean;
52
- /**
53
- * @description Method to filter data according to dataType and comparator selection
54
- * @author Anand Pandey
55
- * @param {}
56
- * @returns void
57
- */
58
- applyAllFilters(): void;
59
- /**
60
- * @description Method to change the data format to utc
61
- * @author Anand Pandey
62
- * @param {date} - date value to be changed
63
- * @returns date in milliseconds
64
- */
65
- normalizeDate(dateStr: string): number;
66
- /**
67
- * @description
68
- * Filters the available set options inside a Set Filter (checkbox filter)
69
- * based on the user's search text. This updates only the list shown in
70
- * the dropdown
71
- * @author Anand Pandey
72
- * @param col - Column definition object containing filter config
73
- * @param event - Input event from the search textbox
74
- * @returns void
75
- */
76
- filterSetOptions(col: any, event: any): void;
77
- /**
78
- * @description
79
- * Toggles an individual checkbox option inside a Set Filter. *
80
- * @author Anand Pandey
81
- * @param col - Column definition object
82
- * @param opt - Selected option value
83
- * @param event - Checkbox change event
84
- * @returns void
85
- */
86
- toggleSetOption(col: any, opt: any, event: any): void;
87
- /**
88
- * @description * Selects or deselects all checkbox options in the Set Filter.
89
- * @author Anand Pandey
90
- * @param col - Column definition object
91
- * @param event - Checkbox change event
92
- * @returns void
93
- */
94
- toggleSelectAll(col: any, event: any): void;
95
- /**
96
- * @description
97
- * Checks whether all options inside a Set Filter are currently selected.
98
- * @author Anand Pandey
99
- * @param col - Column definition object
100
- * @returns boolean - TRUE if all options are selected, otherwise FALSE.
101
- */
102
- isAllSelected(col: any): boolean;
103
- /**
104
- * @description
105
- * Opens the three-dots column menu for the selected column.
106
- * Opens only the menu belonging to the clicked column index
107
- * @author Anand Pandey
108
- * @param {MouseEvent} event - The click event triggered on the three-dots icon.
109
- * @param {any} col - The column definition object for which menu is opened.
110
- * @param {number} index - Index of the column whose menu has been requested.
111
- * @returns {void}
112
- */
113
- openMenu(event: MouseEvent, col: any, index: number): void;
114
- /**
115
- * @description Sort from three dots menu pop up.
116
- * @author Anand Pandey
117
- * @param {fieldName} string - fieldname.
118
- * @param {string} type - Type defines the sorting type whether this is ascending, descending.
119
- * @returns {void}
120
- */
121
- onSort(fieldName: string, type: string): void;
122
- /**
123
- * @description Method to parse column value from rowdata object
124
- * according to given field value in column Defination
125
- * @author Tarun Kumar
126
- * @param row - current row object
127
- * @param toParse - field value
128
- * @returns string
129
- */
130
- parseColValue(row: any, toParse: string): string;
131
- /**
132
- * @description method to reset table configuration
133
- * @author Tarun Kumar
134
- * @param none
135
- * @returns void
136
- */
137
- resetTableConfig(): void;
138
- /**
139
- * @description method to set total pages count
140
- * @author Tarun Kumar
141
- * @param none
142
- * @returns void
143
- */
144
- setPageCount(): void;
145
- /**
146
- * @description method to update table on page size change
147
- * @author Tarun Kumar
148
- * @param event
149
- * @returns void
150
- */
151
- onPageSizeChanged(event: any): void;
152
- /**
153
- * @description method to update table on previous button click
154
- * @author Tarun Kumar
155
- */
156
- onBtPrevClick(): void;
157
- /**
158
- * @description method to update table on next button click
159
- * @author Tarun Kumar
160
- */
161
- onBtNextClick(): void;
162
- /**
163
- * @description method to update table on selecting any page randomly
164
- * @author Tarun Kumar
165
- * @param event
166
- */
167
- goToSelectedPage(event: any): void;
168
- /**
169
- * @description method to sort data according to type and column
170
- * @author Tarun Kumar
171
- * @param sortingColumIndex
172
- * @param fieldName
173
- * @param sortingType
174
- */
175
- onSortingRowData(sortingColumIndex: number, fieldName: string): void;
176
- /**
177
- * @description method to sort table in ascending order according to given field
178
- * @param fieldName
179
- */
180
- ascendingOrder(fieldName: string): void;
181
- /**
182
- * @description method to sort table in descending order according to given field
183
- * @param fieldName
184
- */
185
- descendingOrder(fieldName: string): void;
186
- /**
187
- * @description method to check/uncheck all rows on header checkbox selection/deselection
188
- * @author Tarun Kumar
189
- * @param event
190
- */
191
- onHeaderCheckboxChange(event: any): void;
192
- /**
193
- * @description method to check/uncheck row on row checkbox selection/deselection
194
- * @author Tarun Kumar
195
- * @param event
196
- */
197
- onRowCheckboxSelection(event: any): void;
198
- /**
199
- * @description method to check/uncheck all rows on header checkbox selection/deselection
200
- * @author Tarun Kumar
201
- * @param col
202
- * @returns {object}
203
- */
204
- getStyle(col: any): object;
205
- onClickOutside(): void;
206
- checkCondition(data: any): boolean;
207
- infinityScroll(event: any): void;
208
- checkAllSelected(): boolean;
209
- checkInterminate(): boolean;
210
- /**
211
- * @author Tarun Kumar
212
- * @description function triggered when the drag starts
213
- * @param {event object, index}
214
- * @returns {void}
215
- */
216
- onDragStart(event: DragEvent, index: number): void;
217
- /**
218
- * @author Tarun Kumar
219
- * @description function to track the index of the element being dragged over and allow dropping
220
- * @param {event object, index}
221
- * @returns {void}
222
- */
223
- onDragOver(event: DragEvent, index: number): void;
224
- /**
225
- * @author Tarun Kumar
226
- * @description function to Reorder the items on drop
227
- * @param {event object, index}
228
- * @returns {void}
229
- */
230
- onDrop(event: DragEvent, index: number): void;
231
- /**
232
- * @author Tarun Kumar
233
- * @description function to reset dragOverIndex when the drag ends
234
- * @param {none}
235
- * @returns {void}
236
- */
237
- onDragEnd(): void;
238
- toggleFilter(col: any, index: number, event: MouseEvent): void;
239
- static ɵfac: i0.ɵɵFactoryDeclaration<CatsDataGridComponent, never>;
240
- 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; }; "pageSizeList": { "alias": "pageSizeList"; "required": false; }; }, { "onPaginationChange": "onPaginationChange"; "onCheckboxSelection": "onCheckboxSelection"; "onScrollEmitter": "onScrollEmitter"; "filter": "filter"; }, never, never, true, never>;
241
- }
@@ -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 elementRef;
5
- clickOutside: EventEmitter<any>;
6
- constructor(elementRef: ElementRef);
7
- onClick(event: MouseEvent): 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
- }
@@ -1,6 +0,0 @@
1
- import * as i0 from "@angular/core";
2
- export declare class CatsDataGridService {
3
- constructor();
4
- static ɵfac: i0.ɵɵFactoryDeclaration<CatsDataGridService, never>;
5
- static ɵprov: i0.ɵɵInjectableDeclaration<CatsDataGridService>;
6
- }
package/public-api.d.ts DELETED
@@ -1,2 +0,0 @@
1
- export * from './lib/services/cats-data-grid.service';
2
- export * from './lib/cats-data-grid.component';