cats-data-grid 2.0.73 → 2.0.75
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/assets/images/add-more-right-blue.svg +3 -0
- package/assets/images/autosize-all.svg +3 -0
- package/assets/images/autosize-this.svg +3 -0
- package/assets/images/eye-custom-header.svg +4 -0
- package/assets/images/eye-off-custom-header.svg +3 -0
- package/fesm2022/cats-data-grid.mjs +463 -45
- package/fesm2022/cats-data-grid.mjs.map +1 -1
- package/index.d.ts +69 -3
- package/package.json +1 -1
- package/styles/component/_form.scss +112 -61
- package/styles/sass-utils/_mixin.scss +1 -1
- package/styles/sass-utils/_variable.scss +120 -69
package/index.d.ts
CHANGED
|
@@ -63,7 +63,7 @@ declare class CatsDataGridComponent implements OnChanges, OnInit {
|
|
|
63
63
|
filter: EventEmitter<any>;
|
|
64
64
|
onHideSettings: EventEmitter<any>;
|
|
65
65
|
onCellEdit: EventEmitter<any>;
|
|
66
|
-
|
|
66
|
+
onColConfigChange: EventEmitter<any>;
|
|
67
67
|
activeFilterIndex: number | null;
|
|
68
68
|
originalRowData: any[];
|
|
69
69
|
activeAll: boolean;
|
|
@@ -95,6 +95,14 @@ declare class CatsDataGridComponent implements OnChanges, OnInit {
|
|
|
95
95
|
groupBy: string[];
|
|
96
96
|
groupByField: string;
|
|
97
97
|
dragGroupIndex: number | null;
|
|
98
|
+
categorizedCols: any;
|
|
99
|
+
noCategoryCols: any[];
|
|
100
|
+
objectKeys: {
|
|
101
|
+
(o: object): string[];
|
|
102
|
+
(o: {}): string[];
|
|
103
|
+
};
|
|
104
|
+
allActiveDefault: boolean;
|
|
105
|
+
allActiveColMap: Record<string, boolean>;
|
|
98
106
|
dateConfig: DateConfig;
|
|
99
107
|
filterOptions: {
|
|
100
108
|
label: string;
|
|
@@ -142,11 +150,35 @@ declare class CatsDataGridComponent implements OnChanges, OnInit {
|
|
|
142
150
|
skeletonColsLength: number;
|
|
143
151
|
skeletonRows: any;
|
|
144
152
|
skeletonCols: any;
|
|
153
|
+
allActiveCol: boolean;
|
|
154
|
+
originalCategorizedCols: any;
|
|
155
|
+
originalNoCategoryCols: any[];
|
|
145
156
|
constructor(renderer: Renderer2, zone: NgZone, cd: ChangeDetectorRef);
|
|
146
157
|
ngOnInit(): void;
|
|
147
158
|
ngOnChanges(changes: SimpleChanges): void;
|
|
159
|
+
onColConfigSearch(event: any): void;
|
|
160
|
+
cloneColDefs(colDefs: any[]): any[];
|
|
161
|
+
resetDefaultColConfig(): void;
|
|
162
|
+
/**
|
|
163
|
+
* Autosize column to fit content
|
|
164
|
+
*/
|
|
165
|
+
protected autosizeColumn(col: any): void;
|
|
166
|
+
/**
|
|
167
|
+
* Autosize all columns
|
|
168
|
+
*/
|
|
169
|
+
protected autosizeAllColumns(): void;
|
|
170
|
+
getColConfigCategory(colDefs: any[]): {
|
|
171
|
+
categorized: Record<string, any[]>;
|
|
172
|
+
noCategory: any[];
|
|
173
|
+
};
|
|
148
174
|
getColumnDetail(colDefs: any, groupByField: any): any;
|
|
149
175
|
activeAllSelection(event: Event): void;
|
|
176
|
+
showAllSelection(): void;
|
|
177
|
+
showAllDefaultSelection(): void;
|
|
178
|
+
rebuildView(): void;
|
|
179
|
+
showAllCategorySelection(category: string): void;
|
|
180
|
+
toggleSelectedCol(col: any): void;
|
|
181
|
+
updateGlobalState(): void;
|
|
150
182
|
changeActiveColSelection(event: Event, col: any): void;
|
|
151
183
|
getActiveCols(): void;
|
|
152
184
|
/**
|
|
@@ -506,7 +538,7 @@ declare class CatsDataGridComponent implements OnChanges, OnInit {
|
|
|
506
538
|
onCellEditSave(): void;
|
|
507
539
|
setFieldValue(row: any, field: string, value: any): void;
|
|
508
540
|
static ɵfac: i0.ɵɵFactoryDeclaration<CatsDataGridComponent, never>;
|
|
509
|
-
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": true; }; "colDefs": { "alias": "colDefs"; "required": true; }; "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; }; "rowId": { "alias": "rowId"; "required": false; }; "bigRows": { "alias": "bigRows"; "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; }; "rowGripFieldName": { "alias": "rowGripFieldName"; "required": false; }; "pageNumber": { "alias": "pageNumber"; "required": false; }; "pageSize": { "alias": "pageSize"; "required": false; }; "dynamicGroupingFiltering": { "alias": "dynamicGroupingFiltering"; "required": false; }; "isRowsEditable": { "alias": "isRowsEditable"; "required": false; }; "showSkeleton": { "alias": "showSkeleton"; "required": false; }; "skeletonRowsLength": { "alias": "skeletonRowsLength"; "required": false; }; "skeletonColsLength": { "alias": "skeletonColsLength"; "required": false; }; }, { "onPaginationChange": "onPaginationChange"; "onCheckboxSelection": "onCheckboxSelection"; "onScrollEmitter": "onScrollEmitter"; "filter": "filter"; "onHideSettings": "onHideSettings"; "onCellEdit": "onCellEdit"; "
|
|
541
|
+
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": true; }; "colDefs": { "alias": "colDefs"; "required": true; }; "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; }; "rowId": { "alias": "rowId"; "required": false; }; "bigRows": { "alias": "bigRows"; "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; }; "rowGripFieldName": { "alias": "rowGripFieldName"; "required": false; }; "pageNumber": { "alias": "pageNumber"; "required": false; }; "pageSize": { "alias": "pageSize"; "required": false; }; "dynamicGroupingFiltering": { "alias": "dynamicGroupingFiltering"; "required": false; }; "isRowsEditable": { "alias": "isRowsEditable"; "required": false; }; "showSkeleton": { "alias": "showSkeleton"; "required": false; }; "skeletonRowsLength": { "alias": "skeletonRowsLength"; "required": false; }; "skeletonColsLength": { "alias": "skeletonColsLength"; "required": false; }; }, { "onPaginationChange": "onPaginationChange"; "onCheckboxSelection": "onCheckboxSelection"; "onScrollEmitter": "onScrollEmitter"; "filter": "filter"; "onHideSettings": "onHideSettings"; "onCellEdit": "onCellEdit"; "onColConfigChange": "onColConfigChange"; "appliedFiltersEvent": "appliedFiltersEvent"; "activeGroupsEvent": "activeGroupsEvent"; "onRowClicked": "onRowClicked"; "onCellClicked": "onCellClicked"; }, never, never, true, never>;
|
|
510
542
|
}
|
|
511
543
|
|
|
512
544
|
declare class CommonRendererComponent {
|
|
@@ -736,6 +768,7 @@ declare class CommonTreeTableComponent<T = any> implements OnChanges, DoCheck, A
|
|
|
736
768
|
showNodeIcon: boolean;
|
|
737
769
|
noDataText: string;
|
|
738
770
|
loadingText: string;
|
|
771
|
+
expandAllNodes: boolean;
|
|
739
772
|
emitExpandAlways: boolean;
|
|
740
773
|
sortingRequired: boolean;
|
|
741
774
|
filterRequired: boolean;
|
|
@@ -759,6 +792,7 @@ declare class CommonTreeTableComponent<T = any> implements OnChanges, DoCheck, A
|
|
|
759
792
|
linkDoubleClick: EventEmitter<CatsTreeLinkClickEvent<T>>;
|
|
760
793
|
onHideSettings: EventEmitter<any>;
|
|
761
794
|
onPaginationChange: EventEmitter<any>;
|
|
795
|
+
onColConfigChange: EventEmitter<any>;
|
|
762
796
|
dateConfig: DateConfig;
|
|
763
797
|
protected rows: RowView<T>[];
|
|
764
798
|
private linkClickTimer;
|
|
@@ -792,6 +826,8 @@ declare class CommonTreeTableComponent<T = any> implements OnChanges, DoCheck, A
|
|
|
792
826
|
atLeastOneColumnChecked: boolean;
|
|
793
827
|
selectedRow: T[];
|
|
794
828
|
originalColumns: CatsTreeTableColumn[];
|
|
829
|
+
originalCategorizedCols: any;
|
|
830
|
+
originalNoCategoryCols: any[];
|
|
795
831
|
skeletonRowsLength: number;
|
|
796
832
|
skeletonColsLength: number;
|
|
797
833
|
skeletonRows: any;
|
|
@@ -816,13 +852,34 @@ declare class CommonTreeTableComponent<T = any> implements OnChanges, DoCheck, A
|
|
|
816
852
|
private fallbackSeq;
|
|
817
853
|
private resolvedTreeColumnField?;
|
|
818
854
|
activeColumns: CatsTreeTableColumn[];
|
|
855
|
+
categorizedCols: any;
|
|
856
|
+
noCategoryCols: any[];
|
|
857
|
+
objectKeys: {
|
|
858
|
+
(o: object): string[];
|
|
859
|
+
(o: {}): string[];
|
|
860
|
+
};
|
|
861
|
+
allActiveDefault: boolean;
|
|
862
|
+
allActiveColMap: Record<string, boolean>;
|
|
819
863
|
constructor(renderer: Renderer2, zone: NgZone, cd: ChangeDetectorRef);
|
|
820
864
|
ngAfterViewInit(): void;
|
|
821
865
|
ngOnDestroy(): void;
|
|
822
866
|
getUpdatedColDefs(colDefs: any[]): any[];
|
|
867
|
+
cloneColDefs(colDefs: any[]): any[];
|
|
868
|
+
resetDefaultColConfig(): void;
|
|
823
869
|
normalizeSetFilterType(value: any, key: string): any[] | undefined;
|
|
824
870
|
ngOnChanges(changes: SimpleChanges): void;
|
|
825
871
|
ngDoCheck(): void;
|
|
872
|
+
getColConfigCategory(colDefs: any[]): {
|
|
873
|
+
categorized: Record<string, any[]>;
|
|
874
|
+
noCategory: any[];
|
|
875
|
+
};
|
|
876
|
+
onColConfigSearch(event: any): void;
|
|
877
|
+
showAllDefaultSelection(): void;
|
|
878
|
+
rebuildView(): void;
|
|
879
|
+
showAllCategorySelection(category: string): void;
|
|
880
|
+
toggleSelectedCol(col: any): void;
|
|
881
|
+
updateGlobalState(): void;
|
|
882
|
+
getActiveCols(): void;
|
|
826
883
|
protected get treeColumn(): CatsTreeTableColumn;
|
|
827
884
|
/**
|
|
828
885
|
* Initialize column properties for filtering, sorting, and customization
|
|
@@ -996,6 +1053,9 @@ declare class CommonTreeTableComponent<T = any> implements OnChanges, DoCheck, A
|
|
|
996
1053
|
*/
|
|
997
1054
|
private collapseAllChildren;
|
|
998
1055
|
protected isExpanded(node: T): boolean;
|
|
1056
|
+
protected showExpandAllControl(col: CatsTreeTableColumn): boolean;
|
|
1057
|
+
protected toggleAllNodes(): void;
|
|
1058
|
+
protected allNodesExpanded(): boolean;
|
|
999
1059
|
protected onCheckboxChange(node: T, level: number, path: T[], checked: boolean): void;
|
|
1000
1060
|
protected isChecked(node: T): boolean;
|
|
1001
1061
|
protected onLinkClicked(e: MouseEvent, node: T, level: number, path: T[], col: CatsTreeTableColumn): void;
|
|
@@ -1053,6 +1113,12 @@ declare class CommonTreeTableComponent<T = any> implements OnChanges, DoCheck, A
|
|
|
1053
1113
|
*/
|
|
1054
1114
|
protected convertToNumber(val: any): number;
|
|
1055
1115
|
private getChildren;
|
|
1116
|
+
private applyExpandAllInputState;
|
|
1117
|
+
private setAllNodesExpandedState;
|
|
1118
|
+
private collectExpandableNodeKeys;
|
|
1119
|
+
private areAllExpandableNodesExpanded;
|
|
1120
|
+
private hasExpandableNodes;
|
|
1121
|
+
private syncOriginalExpandedKeys;
|
|
1056
1122
|
private rebuildRows;
|
|
1057
1123
|
private walk;
|
|
1058
1124
|
private getNodeKey;
|
|
@@ -1107,7 +1173,7 @@ declare class CommonTreeTableComponent<T = any> implements OnChanges, DoCheck, A
|
|
|
1107
1173
|
*/
|
|
1108
1174
|
toggleSelectAll(col: any, event: any): void;
|
|
1109
1175
|
static ɵfac: i0.ɵɵFactoryDeclaration<CommonTreeTableComponent<any>, never>;
|
|
1110
|
-
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; }; "showSkeleton": { "alias": "showSkeleton"; "required": false; }; "skeletonRowsLength": { "alias": "skeletonRowsLength"; "required": false; }; "skeletonColsLength": { "alias": "skeletonColsLength"; "required": false; }; }, { "nodeToggle": "nodeToggle"; "selectionChange": "selectionChange"; "linkClick": "linkClick"; "linkDoubleClick": "linkDoubleClick"; "onHideSettings": "onHideSettings"; "onPaginationChange": "onPaginationChange"; }, never, never, true, never>;
|
|
1176
|
+
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; }; "expandAllNodes": { "alias": "expandAllNodes"; "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; }; "showSkeleton": { "alias": "showSkeleton"; "required": false; }; "skeletonRowsLength": { "alias": "skeletonRowsLength"; "required": false; }; "skeletonColsLength": { "alias": "skeletonColsLength"; "required": false; }; }, { "nodeToggle": "nodeToggle"; "selectionChange": "selectionChange"; "linkClick": "linkClick"; "linkDoubleClick": "linkDoubleClick"; "onHideSettings": "onHideSettings"; "onPaginationChange": "onPaginationChange"; "onColConfigChange": "onColConfigChange"; }, never, never, true, never>;
|
|
1111
1177
|
}
|
|
1112
1178
|
|
|
1113
1179
|
type TooltipPosition = 'top' | 'bottom' | 'left' | 'right' | 'adaptive';
|
package/package.json
CHANGED
|
@@ -1,16 +1,20 @@
|
|
|
1
1
|
@use "../sass-utils" as *;
|
|
2
2
|
|
|
3
3
|
//========== CUSTOM SCROLL BAR ======================
|
|
4
|
+
|
|
5
|
+
#table_scroll.filter-tag-wrapper::-webkit-scrollbar {
|
|
6
|
+
@include box(rem(10px), rem(10px));
|
|
7
|
+
}
|
|
4
8
|
#table_scroll::-webkit-scrollbar {
|
|
5
9
|
@include box(rem(14px), rem(14px));
|
|
6
10
|
}
|
|
7
11
|
#table_scroll::-webkit-scrollbar-track {
|
|
8
|
-
background-color: var(--
|
|
12
|
+
background-color: var(--border-core-default);
|
|
9
13
|
@include border($width: rem(3px), $radius: rem(100px), $color: transparent);
|
|
10
14
|
background-clip: padding-box;
|
|
11
15
|
}
|
|
12
16
|
#table_scroll::-webkit-scrollbar-thumb {
|
|
13
|
-
background-color: var(--
|
|
17
|
+
background-color: var(--text-body-secondary);
|
|
14
18
|
@include border($width: rem(3px), $radius: rem(100px), $color: transparent);
|
|
15
19
|
background-clip: padding-box;
|
|
16
20
|
}
|
|
@@ -19,16 +23,16 @@
|
|
|
19
23
|
}
|
|
20
24
|
#table_scroll::-webkit-scrollbar-button {
|
|
21
25
|
@include box(rem(14px), rem(14px));
|
|
22
|
-
background-color: var(--
|
|
26
|
+
background-color: var(--surface-background-subtle);
|
|
23
27
|
border-radius: rem(2px);
|
|
24
28
|
cursor: pointer;
|
|
25
29
|
display: none;
|
|
26
30
|
background-repeat: no-repeat;
|
|
27
31
|
background-position: center;
|
|
28
|
-
background-size: rem(
|
|
32
|
+
background-size: rem(15px);
|
|
29
33
|
}
|
|
30
34
|
#table_scroll::-webkit-scrollbar-button:hover {
|
|
31
|
-
background-color: var(--
|
|
35
|
+
background-color: var(--text-body-muted);
|
|
32
36
|
}
|
|
33
37
|
#table_scroll::-webkit-scrollbar-button:single-button:vertical:decrement {
|
|
34
38
|
background-image: url("/images/chevron-up.svg");
|
|
@@ -57,47 +61,81 @@
|
|
|
57
61
|
to bottom,
|
|
58
62
|
rgb(240, 240, 240) 0%,
|
|
59
63
|
rgb(240, 240, 240) 70.5%,
|
|
60
|
-
var(--
|
|
61
|
-
var(--
|
|
62
|
-
var(--
|
|
63
|
-
var(--
|
|
64
|
+
var(--border-core-default) 70.5%,
|
|
65
|
+
var(--border-core-default) 72.5%,
|
|
66
|
+
var(--surface-background-subtle) 72.5%,
|
|
67
|
+
var(--surface-background-subtle) 100%
|
|
64
68
|
);
|
|
65
69
|
border-top-left-radius: 0;
|
|
66
70
|
border-top-right-radius: 0;
|
|
67
71
|
&:hover {
|
|
72
|
+
background:
|
|
73
|
+
url("/images/chevron-up.svg") bottom / rem(15px) no-repeat,
|
|
74
|
+
linear-gradient(
|
|
75
|
+
to bottom,
|
|
76
|
+
var(--surface-background-default) 0%,
|
|
77
|
+
var(----surface-background-default) 70.5%,
|
|
78
|
+
var(--border-core-default) 70.5%,
|
|
79
|
+
var(--border-core-default) 72.5%,
|
|
80
|
+
var(--text-body-muted) 72.5%,
|
|
81
|
+
var(--text-body-muted) 100%
|
|
82
|
+
);
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
//CSS for large height rows
|
|
86
|
+
.cats-tableArea.large {
|
|
87
|
+
#table_scroll.global::-webkit-scrollbar-button:single-button:vertical:decrement {
|
|
88
|
+
height: rem(71px);
|
|
68
89
|
background:
|
|
69
90
|
url("/images/chevron-up.svg") bottom / rem(15px) no-repeat,
|
|
70
91
|
linear-gradient(
|
|
71
92
|
to bottom,
|
|
72
93
|
rgb(240, 240, 240) 0%,
|
|
73
|
-
rgb(240, 240, 240)
|
|
74
|
-
|
|
75
|
-
var(--
|
|
76
|
-
var(--
|
|
77
|
-
|
|
94
|
+
rgb(240, 240, 240) 78.8%,
|
|
95
|
+
|
|
96
|
+
var(--border-core-default) 78.8%,
|
|
97
|
+
var(--border-core-default) 81.7%,
|
|
98
|
+
|
|
99
|
+
var(--surface-background-subtle) 81.7%,
|
|
100
|
+
var(--surface-background-subtle) 100%
|
|
78
101
|
);
|
|
102
|
+
&:hover {
|
|
103
|
+
background:
|
|
104
|
+
url("/images/chevron-up.svg") bottom / rem(15px) no-repeat,
|
|
105
|
+
linear-gradient(
|
|
106
|
+
to bottom,
|
|
107
|
+
var(--surface-background-default) 0%,
|
|
108
|
+
var(--surface-background-default) 78.8%,
|
|
109
|
+
|
|
110
|
+
var(--border-core-default) 78.8%,
|
|
111
|
+
var(--border-core-default) 81.7%,
|
|
112
|
+
|
|
113
|
+
var(--text-body-muted) 81.7%,
|
|
114
|
+
var(--text-body-muted) 100%
|
|
115
|
+
);
|
|
116
|
+
}
|
|
79
117
|
}
|
|
80
118
|
}
|
|
81
119
|
|
|
82
120
|
// ---------------- CUSTOM RADIO INPUT START HERE--------
|
|
83
|
-
.
|
|
121
|
+
.cats-radio-option {
|
|
84
122
|
display: flex;
|
|
85
123
|
@include box(rem(16px), rem(16px));
|
|
86
|
-
[type="radio"]:not(:checked)[disabled] + label {
|
|
87
|
-
color: var(--
|
|
124
|
+
[type="radio"]:not(:checked)[disabled] + .label {
|
|
125
|
+
color: var(--text-body-muted);
|
|
88
126
|
cursor: default;
|
|
89
127
|
&::before {
|
|
90
|
-
background-color: var(--
|
|
128
|
+
background-color: var(--surface-background-subtle);
|
|
91
129
|
}
|
|
92
130
|
}
|
|
93
|
-
[type="radio"]:is(:checked)[disabled] + label {
|
|
94
|
-
color: var(--
|
|
131
|
+
[type="radio"]:is(:checked)[disabled] + .label {
|
|
132
|
+
color: var(--text-body-muted);
|
|
95
133
|
cursor: default;
|
|
96
134
|
&::before {
|
|
97
|
-
border-color: var(--
|
|
135
|
+
border-color: var(--border-core-muted);
|
|
98
136
|
}
|
|
99
137
|
&::after {
|
|
100
|
-
background-color: var(--
|
|
138
|
+
background-color: var(--surface-background-subtle);
|
|
101
139
|
}
|
|
102
140
|
}
|
|
103
141
|
%check-style {
|
|
@@ -105,64 +143,68 @@
|
|
|
105
143
|
position: absolute;
|
|
106
144
|
@include positioning(0, 0);
|
|
107
145
|
@include box(rem(16px), rem(16px));
|
|
108
|
-
background: var(--
|
|
146
|
+
background: var(--surface-background-canvas);
|
|
109
147
|
}
|
|
110
148
|
[type="radio"]:checked,
|
|
111
149
|
[type="radio"]:not(:checked) {
|
|
112
150
|
position: absolute;
|
|
113
151
|
left: -9999px;
|
|
114
152
|
}
|
|
115
|
-
[type="radio"]:checked + label,
|
|
116
|
-
[type="radio"]:not(:checked) + label {
|
|
153
|
+
[type="radio"]:checked + .label,
|
|
154
|
+
[type="radio"]:not(:checked) + .label {
|
|
117
155
|
position: relative;
|
|
118
156
|
padding-left: rem(24px);
|
|
119
157
|
cursor: pointer;
|
|
120
158
|
display: inline-block;
|
|
121
|
-
color: var(--
|
|
159
|
+
color: var(--text-heading-primary);
|
|
122
160
|
line-height: rem(16px);
|
|
123
161
|
}
|
|
124
|
-
[type="radio"]:checked + label:before {
|
|
162
|
+
[type="radio"]:checked + .label:before {
|
|
125
163
|
@extend %check-style;
|
|
126
|
-
@include border(
|
|
164
|
+
@include border(
|
|
165
|
+
$width: rem(1.5px),
|
|
166
|
+
$color: var(--border-interaction-focus),
|
|
167
|
+
$radius: 100%
|
|
168
|
+
);
|
|
127
169
|
}
|
|
128
|
-
[type="radio"]:not(:checked) + label:before {
|
|
170
|
+
[type="radio"]:not(:checked) + .label:before {
|
|
129
171
|
@extend %check-style;
|
|
130
172
|
@include border($width: rem(1.5px), $radius: 100%);
|
|
131
173
|
}
|
|
132
|
-
[type="radio"]:checked + label:after,
|
|
133
|
-
[type="radio"]:not(:checked) + label:after {
|
|
174
|
+
[type="radio"]:checked + .label:after,
|
|
175
|
+
[type="radio"]:not(:checked) + .label:after {
|
|
134
176
|
content: "";
|
|
135
177
|
@include box(rem(6px), rem(6px));
|
|
136
|
-
background: var(--
|
|
178
|
+
background: var(--surface-action-default);
|
|
137
179
|
position: absolute;
|
|
138
180
|
@include positioning(rem(5px), rem(5px));
|
|
139
181
|
border-radius: 100%;
|
|
140
182
|
transition: all 0.2s ease;
|
|
141
183
|
}
|
|
142
|
-
[type="radio"]:not(:checked) + label:after {
|
|
184
|
+
[type="radio"]:not(:checked) + .label:after {
|
|
143
185
|
opacity: 0;
|
|
144
186
|
transform: scale(0);
|
|
145
187
|
}
|
|
146
|
-
[type="radio"]:checked + label:after {
|
|
188
|
+
[type="radio"]:checked + .label:after {
|
|
147
189
|
opacity: 1;
|
|
148
190
|
transform: scale(1);
|
|
149
191
|
}
|
|
150
192
|
}
|
|
151
193
|
|
|
152
194
|
// ---------------- CUSTOM CHECKBOX INPUT START HERE--------
|
|
153
|
-
.checkbox_container {
|
|
195
|
+
.cats-checkbox_container {
|
|
154
196
|
@include flex(flex-start, center, rem(8px));
|
|
155
197
|
@include fontStyle(var(--fs-14), rem(20px), 400);
|
|
156
|
-
color: var(--
|
|
198
|
+
color: var(--text-heading-primary);
|
|
157
199
|
// --- Disabled (check & uncheck) ---
|
|
158
200
|
input[type="checkbox"].custom_check_box,
|
|
159
201
|
input[type="checkbox"].custom_check_box:checked {
|
|
160
202
|
&[disabled] {
|
|
161
203
|
cursor: default;
|
|
162
|
-
background-color: var(--
|
|
163
|
-
border-color: var(--
|
|
204
|
+
background-color: var(--text-body-muted);
|
|
205
|
+
border-color: var(--border-core-strong);
|
|
164
206
|
& + span {
|
|
165
|
-
color: var(--
|
|
207
|
+
color: var(--text-body-muted);
|
|
166
208
|
}
|
|
167
209
|
}
|
|
168
210
|
}
|
|
@@ -173,7 +215,7 @@
|
|
|
173
215
|
min-width: rem(16px);
|
|
174
216
|
@include border();
|
|
175
217
|
cursor: pointer;
|
|
176
|
-
background-color: var(--
|
|
218
|
+
background-color: var(--surface-background-canvas);
|
|
177
219
|
position: relative;
|
|
178
220
|
transition: all 0.2s ease;
|
|
179
221
|
|
|
@@ -190,8 +232,8 @@
|
|
|
190
232
|
}
|
|
191
233
|
// --- Checked State ---
|
|
192
234
|
&:checked {
|
|
193
|
-
border-color: var(--
|
|
194
|
-
background-color: var(--
|
|
235
|
+
border-color: var(--border-interaction-focus);
|
|
236
|
+
background-color: var(--surface-action-default);
|
|
195
237
|
&::after {
|
|
196
238
|
display: block;
|
|
197
239
|
background-image: url("/images/check-white.svg");
|
|
@@ -200,8 +242,8 @@
|
|
|
200
242
|
}
|
|
201
243
|
// --- Indeterminate (minus) state ---
|
|
202
244
|
&:indeterminate {
|
|
203
|
-
border-color: var(--
|
|
204
|
-
background-color: var(--
|
|
245
|
+
border-color: var(--border-interaction-focus);
|
|
246
|
+
background-color: var(--surface-background-canvas);
|
|
205
247
|
&::after {
|
|
206
248
|
display: block;
|
|
207
249
|
top: 0;
|
|
@@ -222,8 +264,8 @@
|
|
|
222
264
|
@include border();
|
|
223
265
|
padding: rem(10px) rem(12px);
|
|
224
266
|
@include fontStyle(var(--fs-14), rem(20px));
|
|
225
|
-
background-color: var(--
|
|
226
|
-
color: var(--
|
|
267
|
+
background-color: var(--surface-background-canvas);
|
|
268
|
+
color: var(--text-heading-primary);
|
|
227
269
|
cursor: pointer;
|
|
228
270
|
|
|
229
271
|
.left_details {
|
|
@@ -244,7 +286,7 @@
|
|
|
244
286
|
overflow: auto;
|
|
245
287
|
position: absolute;
|
|
246
288
|
z-index: 2;
|
|
247
|
-
background: var(--
|
|
289
|
+
background: var(--surface-background-canvas);
|
|
248
290
|
box-shadow: rem(0px) rem(12px) rem(16px) rem(-4px) var(--box-shadow);
|
|
249
291
|
top: rem(40px);
|
|
250
292
|
|
|
@@ -262,9 +304,9 @@
|
|
|
262
304
|
@include fontStyle(var(--fs-14), rem(20px));
|
|
263
305
|
padding: rem(10px) rem(12px);
|
|
264
306
|
cursor: pointer;
|
|
265
|
-
color: var(--
|
|
307
|
+
color: var(--text-heading-primary);
|
|
266
308
|
&:hover {
|
|
267
|
-
background-color: var(--
|
|
309
|
+
background-color: var(--surface-background-default);
|
|
268
310
|
}
|
|
269
311
|
&.disabled_option {
|
|
270
312
|
opacity: 0.3;
|
|
@@ -281,7 +323,7 @@
|
|
|
281
323
|
@include box(100%, rem(40px));
|
|
282
324
|
@include border();
|
|
283
325
|
padding: rem(10px) rem(12px);
|
|
284
|
-
background-color: var(--
|
|
326
|
+
background-color: var(--surface-background-canvas);
|
|
285
327
|
@include flex(flex-start, center, rem(4px));
|
|
286
328
|
|
|
287
329
|
img {
|
|
@@ -292,9 +334,9 @@
|
|
|
292
334
|
@include box(100%, 100%);
|
|
293
335
|
border: 0;
|
|
294
336
|
@include fontStyle(var(--fs-14), rem(20px), 400);
|
|
295
|
-
color: var(--
|
|
337
|
+
color: var(--text-heading-primary);
|
|
296
338
|
&::placeholder {
|
|
297
|
-
color: var(--
|
|
339
|
+
color: var(--text-heading-secondary);
|
|
298
340
|
}
|
|
299
341
|
}
|
|
300
342
|
}
|
|
@@ -312,7 +354,7 @@
|
|
|
312
354
|
.slider {
|
|
313
355
|
position: absolute;
|
|
314
356
|
cursor: pointer;
|
|
315
|
-
background-color: var(--
|
|
357
|
+
background-color: var(--surface-background-subtle);
|
|
316
358
|
border-radius: rem(16px);
|
|
317
359
|
inset: 0;
|
|
318
360
|
transition: 0.3s;
|
|
@@ -322,7 +364,7 @@
|
|
|
322
364
|
@include box(rem(12px), rem(12px));
|
|
323
365
|
left: rem(2px);
|
|
324
366
|
bottom: rem(2px);
|
|
325
|
-
background-color: var(--
|
|
367
|
+
background-color: var(--surface-background-canvas);
|
|
326
368
|
border-radius: 50%;
|
|
327
369
|
transition: 0.3s;
|
|
328
370
|
box-shadow: 0 rem(0.8px) rem(2.4px) 0 var(--box-shadow);
|
|
@@ -330,14 +372,14 @@
|
|
|
330
372
|
}
|
|
331
373
|
|
|
332
374
|
input:checked + .slider {
|
|
333
|
-
background-color: var(--
|
|
375
|
+
background-color: var(--surface-action-default);
|
|
334
376
|
&:before {
|
|
335
377
|
transform: translateX(rem(12px));
|
|
336
378
|
}
|
|
337
379
|
}
|
|
338
380
|
}
|
|
339
381
|
}
|
|
340
|
-
.tableArea.
|
|
382
|
+
.cats-tableArea.large {
|
|
341
383
|
.table_wrapper {
|
|
342
384
|
table {
|
|
343
385
|
tbody {
|
|
@@ -363,13 +405,22 @@
|
|
|
363
405
|
}
|
|
364
406
|
}
|
|
365
407
|
|
|
366
|
-
.text-primary {
|
|
367
|
-
color: var(--
|
|
408
|
+
.cats-text-primary {
|
|
409
|
+
color: var(--text-link-default);
|
|
410
|
+
}
|
|
411
|
+
.cats-text-danger {
|
|
412
|
+
color: var(--semantics-error-default);
|
|
368
413
|
}
|
|
369
|
-
|
|
370
|
-
|
|
414
|
+
//---------------Text Trunctae CSS -----------
|
|
415
|
+
|
|
416
|
+
.ellipsis,
|
|
417
|
+
.textTruncate {
|
|
418
|
+
white-space: nowrap;
|
|
419
|
+
overflow: hidden;
|
|
420
|
+
text-overflow: ellipsis;
|
|
421
|
+
/* max-width: rem(200px); */
|
|
371
422
|
}
|
|
372
423
|
|
|
373
424
|
.tooltip-trigger {
|
|
374
425
|
cursor: default;
|
|
375
|
-
}
|
|
426
|
+
}
|