cats-data-grid 2.0.72 → 2.0.74
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 +312 -41
- package/fesm2022/cats-data-grid.mjs.map +1 -1
- package/index.d.ts +55 -3
- package/package.json +1 -1
- package/styles/component/_form.scss +108 -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,33 @@ 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
|
+
resetDefaultColConfig(): void;
|
|
161
|
+
/**
|
|
162
|
+
* Autosize column to fit content
|
|
163
|
+
*/
|
|
164
|
+
protected autosizeColumn(col: any): void;
|
|
165
|
+
/**
|
|
166
|
+
* Autosize all columns
|
|
167
|
+
*/
|
|
168
|
+
protected autosizeAllColumns(): void;
|
|
169
|
+
getColConfigCategory(colDefs: any[]): {
|
|
170
|
+
categorized: Record<string, any[]>;
|
|
171
|
+
noCategory: any[];
|
|
172
|
+
};
|
|
148
173
|
getColumnDetail(colDefs: any, groupByField: any): any;
|
|
149
174
|
activeAllSelection(event: Event): void;
|
|
175
|
+
showAllSelection(): void;
|
|
176
|
+
showAllDefaultSelection(): void;
|
|
177
|
+
showAllCategorySelection(category: string): void;
|
|
178
|
+
toggleSelectedCol(col: any): void;
|
|
179
|
+
updateGlobalState(): void;
|
|
150
180
|
changeActiveColSelection(event: Event, col: any): void;
|
|
151
181
|
getActiveCols(): void;
|
|
152
182
|
/**
|
|
@@ -506,7 +536,7 @@ declare class CatsDataGridComponent implements OnChanges, OnInit {
|
|
|
506
536
|
onCellEditSave(): void;
|
|
507
537
|
setFieldValue(row: any, field: string, value: any): void;
|
|
508
538
|
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"; "
|
|
539
|
+
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
540
|
}
|
|
511
541
|
|
|
512
542
|
declare class CommonRendererComponent {
|
|
@@ -759,6 +789,7 @@ declare class CommonTreeTableComponent<T = any> implements OnChanges, DoCheck, A
|
|
|
759
789
|
linkDoubleClick: EventEmitter<CatsTreeLinkClickEvent<T>>;
|
|
760
790
|
onHideSettings: EventEmitter<any>;
|
|
761
791
|
onPaginationChange: EventEmitter<any>;
|
|
792
|
+
onColConfigChange: EventEmitter<any>;
|
|
762
793
|
dateConfig: DateConfig;
|
|
763
794
|
protected rows: RowView<T>[];
|
|
764
795
|
private linkClickTimer;
|
|
@@ -792,6 +823,8 @@ declare class CommonTreeTableComponent<T = any> implements OnChanges, DoCheck, A
|
|
|
792
823
|
atLeastOneColumnChecked: boolean;
|
|
793
824
|
selectedRow: T[];
|
|
794
825
|
originalColumns: CatsTreeTableColumn[];
|
|
826
|
+
originalCategorizedCols: any;
|
|
827
|
+
originalNoCategoryCols: any[];
|
|
795
828
|
skeletonRowsLength: number;
|
|
796
829
|
skeletonColsLength: number;
|
|
797
830
|
skeletonRows: any;
|
|
@@ -816,13 +849,32 @@ declare class CommonTreeTableComponent<T = any> implements OnChanges, DoCheck, A
|
|
|
816
849
|
private fallbackSeq;
|
|
817
850
|
private resolvedTreeColumnField?;
|
|
818
851
|
activeColumns: CatsTreeTableColumn[];
|
|
852
|
+
categorizedCols: any;
|
|
853
|
+
noCategoryCols: any[];
|
|
854
|
+
objectKeys: {
|
|
855
|
+
(o: object): string[];
|
|
856
|
+
(o: {}): string[];
|
|
857
|
+
};
|
|
858
|
+
allActiveDefault: boolean;
|
|
859
|
+
allActiveColMap: Record<string, boolean>;
|
|
819
860
|
constructor(renderer: Renderer2, zone: NgZone, cd: ChangeDetectorRef);
|
|
820
861
|
ngAfterViewInit(): void;
|
|
821
862
|
ngOnDestroy(): void;
|
|
822
863
|
getUpdatedColDefs(colDefs: any[]): any[];
|
|
864
|
+
resetDefaultColConfig(): void;
|
|
823
865
|
normalizeSetFilterType(value: any, key: string): any[] | undefined;
|
|
824
866
|
ngOnChanges(changes: SimpleChanges): void;
|
|
825
867
|
ngDoCheck(): void;
|
|
868
|
+
getColConfigCategory(colDefs: any[]): {
|
|
869
|
+
categorized: Record<string, any[]>;
|
|
870
|
+
noCategory: any[];
|
|
871
|
+
};
|
|
872
|
+
onColConfigSearch(event: any): void;
|
|
873
|
+
showAllDefaultSelection(): void;
|
|
874
|
+
showAllCategorySelection(category: string): void;
|
|
875
|
+
toggleSelectedCol(col: any): void;
|
|
876
|
+
updateGlobalState(): void;
|
|
877
|
+
getActiveCols(): void;
|
|
826
878
|
protected get treeColumn(): CatsTreeTableColumn;
|
|
827
879
|
/**
|
|
828
880
|
* Initialize column properties for filtering, sorting, and customization
|
|
@@ -1107,7 +1159,7 @@ declare class CommonTreeTableComponent<T = any> implements OnChanges, DoCheck, A
|
|
|
1107
1159
|
*/
|
|
1108
1160
|
toggleSelectAll(col: any, event: any): void;
|
|
1109
1161
|
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>;
|
|
1162
|
+
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"; "onColConfigChange": "onColConfigChange"; }, never, never, true, never>;
|
|
1111
1163
|
}
|
|
1112
1164
|
|
|
1113
1165
|
type TooltipPosition = 'top' | 'bottom' | 'left' | 'right' | 'adaptive';
|
package/package.json
CHANGED
|
@@ -5,12 +5,12 @@
|
|
|
5
5
|
@include box(rem(14px), rem(14px));
|
|
6
6
|
}
|
|
7
7
|
#table_scroll::-webkit-scrollbar-track {
|
|
8
|
-
background-color: var(--
|
|
8
|
+
background-color: var(--border-core-default);
|
|
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
|
-
background-color: var(--
|
|
13
|
+
background-color: var(--text-heading-secondary);
|
|
14
14
|
@include border($width: rem(3px), $radius: rem(100px), $color: transparent);
|
|
15
15
|
background-clip: padding-box;
|
|
16
16
|
}
|
|
@@ -19,16 +19,16 @@
|
|
|
19
19
|
}
|
|
20
20
|
#table_scroll::-webkit-scrollbar-button {
|
|
21
21
|
@include box(rem(14px), rem(14px));
|
|
22
|
-
background-color: var(--
|
|
22
|
+
background-color: var(--surface-background-subtle);
|
|
23
23
|
border-radius: rem(2px);
|
|
24
24
|
cursor: pointer;
|
|
25
25
|
display: none;
|
|
26
26
|
background-repeat: no-repeat;
|
|
27
27
|
background-position: center;
|
|
28
|
-
background-size: rem(
|
|
28
|
+
background-size: rem(15px);
|
|
29
29
|
}
|
|
30
30
|
#table_scroll::-webkit-scrollbar-button:hover {
|
|
31
|
-
background-color: var(--
|
|
31
|
+
background-color: var(--text-body-muted);
|
|
32
32
|
}
|
|
33
33
|
#table_scroll::-webkit-scrollbar-button:single-button:vertical:decrement {
|
|
34
34
|
background-image: url("/images/chevron-up.svg");
|
|
@@ -57,47 +57,81 @@
|
|
|
57
57
|
to bottom,
|
|
58
58
|
rgb(240, 240, 240) 0%,
|
|
59
59
|
rgb(240, 240, 240) 70.5%,
|
|
60
|
-
var(--
|
|
61
|
-
var(--
|
|
62
|
-
var(--
|
|
63
|
-
var(--
|
|
60
|
+
var(--border-core-default) 70.5%,
|
|
61
|
+
var(--border-core-default) 72.5%,
|
|
62
|
+
var(--surface-background-subtle) 72.5%,
|
|
63
|
+
var(--surface-background-subtle) 100%
|
|
64
64
|
);
|
|
65
65
|
border-top-left-radius: 0;
|
|
66
66
|
border-top-right-radius: 0;
|
|
67
67
|
&:hover {
|
|
68
|
+
background:
|
|
69
|
+
url("/images/chevron-up.svg") bottom / rem(15px) no-repeat,
|
|
70
|
+
linear-gradient(
|
|
71
|
+
to bottom,
|
|
72
|
+
var(--surface-background-default) 0%,
|
|
73
|
+
var(----surface-background-default) 70.5%,
|
|
74
|
+
var(--border-core-default) 70.5%,
|
|
75
|
+
var(--border-core-default) 72.5%,
|
|
76
|
+
var(--text-body-muted) 72.5%,
|
|
77
|
+
var(--text-body-muted) 100%
|
|
78
|
+
);
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
//CSS for large height rows
|
|
82
|
+
.tableArea.large {
|
|
83
|
+
#table_scroll.global::-webkit-scrollbar-button:single-button:vertical:decrement {
|
|
84
|
+
height: rem(71px);
|
|
68
85
|
background:
|
|
69
86
|
url("/images/chevron-up.svg") bottom / rem(15px) no-repeat,
|
|
70
87
|
linear-gradient(
|
|
71
88
|
to bottom,
|
|
72
89
|
rgb(240, 240, 240) 0%,
|
|
73
|
-
rgb(240, 240, 240)
|
|
74
|
-
|
|
75
|
-
var(--
|
|
76
|
-
var(--
|
|
77
|
-
|
|
90
|
+
rgb(240, 240, 240) 78.8%,
|
|
91
|
+
|
|
92
|
+
var(--border-core-default) 78.8%,
|
|
93
|
+
var(--border-core-default) 81.7%,
|
|
94
|
+
|
|
95
|
+
var(--surface-background-subtle) 81.7%,
|
|
96
|
+
var(--surface-background-subtle) 100%
|
|
78
97
|
);
|
|
98
|
+
&:hover {
|
|
99
|
+
background:
|
|
100
|
+
url("/images/chevron-up.svg") bottom / rem(15px) no-repeat,
|
|
101
|
+
linear-gradient(
|
|
102
|
+
to bottom,
|
|
103
|
+
var(--surface-background-default) 0%,
|
|
104
|
+
var(--surface-background-default) 78.8%,
|
|
105
|
+
|
|
106
|
+
var(--border-core-default) 78.8%,
|
|
107
|
+
var(--border-core-default) 81.7%,
|
|
108
|
+
|
|
109
|
+
var(--text-body-muted) 81.7%,
|
|
110
|
+
var(--text-body-muted) 100%
|
|
111
|
+
);
|
|
112
|
+
}
|
|
79
113
|
}
|
|
80
114
|
}
|
|
81
115
|
|
|
82
116
|
// ---------------- CUSTOM RADIO INPUT START HERE--------
|
|
83
|
-
.
|
|
117
|
+
.cats-radio-option {
|
|
84
118
|
display: flex;
|
|
85
119
|
@include box(rem(16px), rem(16px));
|
|
86
|
-
[type="radio"]:not(:checked)[disabled] + label {
|
|
87
|
-
color: var(--
|
|
120
|
+
[type="radio"]:not(:checked)[disabled] + .label {
|
|
121
|
+
color: var(--text-body-muted);
|
|
88
122
|
cursor: default;
|
|
89
123
|
&::before {
|
|
90
|
-
background-color: var(--
|
|
124
|
+
background-color: var(--surface-background-subtle);
|
|
91
125
|
}
|
|
92
126
|
}
|
|
93
|
-
[type="radio"]:is(:checked)[disabled] + label {
|
|
94
|
-
color: var(--
|
|
127
|
+
[type="radio"]:is(:checked)[disabled] + .label {
|
|
128
|
+
color: var(--text-body-muted);
|
|
95
129
|
cursor: default;
|
|
96
130
|
&::before {
|
|
97
|
-
border-color: var(--
|
|
131
|
+
border-color: var(--border-core-muted);
|
|
98
132
|
}
|
|
99
133
|
&::after {
|
|
100
|
-
background-color: var(--
|
|
134
|
+
background-color: var(--surface-background-subtle);
|
|
101
135
|
}
|
|
102
136
|
}
|
|
103
137
|
%check-style {
|
|
@@ -105,64 +139,68 @@
|
|
|
105
139
|
position: absolute;
|
|
106
140
|
@include positioning(0, 0);
|
|
107
141
|
@include box(rem(16px), rem(16px));
|
|
108
|
-
background: var(--
|
|
142
|
+
background: var(--surface-background-canvas);
|
|
109
143
|
}
|
|
110
144
|
[type="radio"]:checked,
|
|
111
145
|
[type="radio"]:not(:checked) {
|
|
112
146
|
position: absolute;
|
|
113
147
|
left: -9999px;
|
|
114
148
|
}
|
|
115
|
-
[type="radio"]:checked + label,
|
|
116
|
-
[type="radio"]:not(:checked) + label {
|
|
149
|
+
[type="radio"]:checked + .label,
|
|
150
|
+
[type="radio"]:not(:checked) + .label {
|
|
117
151
|
position: relative;
|
|
118
152
|
padding-left: rem(24px);
|
|
119
153
|
cursor: pointer;
|
|
120
154
|
display: inline-block;
|
|
121
|
-
color: var(--
|
|
155
|
+
color: var(--text-heading-primary);
|
|
122
156
|
line-height: rem(16px);
|
|
123
157
|
}
|
|
124
|
-
[type="radio"]:checked + label:before {
|
|
158
|
+
[type="radio"]:checked + .label:before {
|
|
125
159
|
@extend %check-style;
|
|
126
|
-
@include border(
|
|
160
|
+
@include border(
|
|
161
|
+
$width: rem(1.5px),
|
|
162
|
+
$color: var(--border-interaction-focus),
|
|
163
|
+
$radius: 100%
|
|
164
|
+
);
|
|
127
165
|
}
|
|
128
|
-
[type="radio"]:not(:checked) + label:before {
|
|
166
|
+
[type="radio"]:not(:checked) + .label:before {
|
|
129
167
|
@extend %check-style;
|
|
130
168
|
@include border($width: rem(1.5px), $radius: 100%);
|
|
131
169
|
}
|
|
132
|
-
[type="radio"]:checked + label:after,
|
|
133
|
-
[type="radio"]:not(:checked) + label:after {
|
|
170
|
+
[type="radio"]:checked + .label:after,
|
|
171
|
+
[type="radio"]:not(:checked) + .label:after {
|
|
134
172
|
content: "";
|
|
135
173
|
@include box(rem(6px), rem(6px));
|
|
136
|
-
background: var(--
|
|
174
|
+
background: var(--surface-action-default);
|
|
137
175
|
position: absolute;
|
|
138
176
|
@include positioning(rem(5px), rem(5px));
|
|
139
177
|
border-radius: 100%;
|
|
140
178
|
transition: all 0.2s ease;
|
|
141
179
|
}
|
|
142
|
-
[type="radio"]:not(:checked) + label:after {
|
|
180
|
+
[type="radio"]:not(:checked) + .label:after {
|
|
143
181
|
opacity: 0;
|
|
144
182
|
transform: scale(0);
|
|
145
183
|
}
|
|
146
|
-
[type="radio"]:checked + label:after {
|
|
184
|
+
[type="radio"]:checked + .label:after {
|
|
147
185
|
opacity: 1;
|
|
148
186
|
transform: scale(1);
|
|
149
187
|
}
|
|
150
188
|
}
|
|
151
189
|
|
|
152
190
|
// ---------------- CUSTOM CHECKBOX INPUT START HERE--------
|
|
153
|
-
.checkbox_container {
|
|
191
|
+
.cats-checkbox_container {
|
|
154
192
|
@include flex(flex-start, center, rem(8px));
|
|
155
193
|
@include fontStyle(var(--fs-14), rem(20px), 400);
|
|
156
|
-
color: var(--
|
|
194
|
+
color: var(--text-heading-primary);
|
|
157
195
|
// --- Disabled (check & uncheck) ---
|
|
158
196
|
input[type="checkbox"].custom_check_box,
|
|
159
197
|
input[type="checkbox"].custom_check_box:checked {
|
|
160
198
|
&[disabled] {
|
|
161
199
|
cursor: default;
|
|
162
|
-
background-color: var(--
|
|
163
|
-
border-color: var(--
|
|
200
|
+
background-color: var(--text-body-muted);
|
|
201
|
+
border-color: var(--border-core-strong);
|
|
164
202
|
& + span {
|
|
165
|
-
color: var(--
|
|
203
|
+
color: var(--text-body-muted);
|
|
166
204
|
}
|
|
167
205
|
}
|
|
168
206
|
}
|
|
@@ -173,7 +211,7 @@
|
|
|
173
211
|
min-width: rem(16px);
|
|
174
212
|
@include border();
|
|
175
213
|
cursor: pointer;
|
|
176
|
-
background-color: var(--
|
|
214
|
+
background-color: var(--surface-background-canvas);
|
|
177
215
|
position: relative;
|
|
178
216
|
transition: all 0.2s ease;
|
|
179
217
|
|
|
@@ -190,8 +228,8 @@
|
|
|
190
228
|
}
|
|
191
229
|
// --- Checked State ---
|
|
192
230
|
&:checked {
|
|
193
|
-
border-color: var(--
|
|
194
|
-
background-color: var(--
|
|
231
|
+
border-color: var(--border-interaction-focus);
|
|
232
|
+
background-color: var(--surface-action-default);
|
|
195
233
|
&::after {
|
|
196
234
|
display: block;
|
|
197
235
|
background-image: url("/images/check-white.svg");
|
|
@@ -200,8 +238,8 @@
|
|
|
200
238
|
}
|
|
201
239
|
// --- Indeterminate (minus) state ---
|
|
202
240
|
&:indeterminate {
|
|
203
|
-
border-color: var(--
|
|
204
|
-
background-color: var(--
|
|
241
|
+
border-color: var(--border-interaction-focus);
|
|
242
|
+
background-color: var(--surface-background-canvas);
|
|
205
243
|
&::after {
|
|
206
244
|
display: block;
|
|
207
245
|
top: 0;
|
|
@@ -222,8 +260,8 @@
|
|
|
222
260
|
@include border();
|
|
223
261
|
padding: rem(10px) rem(12px);
|
|
224
262
|
@include fontStyle(var(--fs-14), rem(20px));
|
|
225
|
-
background-color: var(--
|
|
226
|
-
color: var(--
|
|
263
|
+
background-color: var(--surface-background-canvas);
|
|
264
|
+
color: var(--text-heading-primary);
|
|
227
265
|
cursor: pointer;
|
|
228
266
|
|
|
229
267
|
.left_details {
|
|
@@ -244,7 +282,7 @@
|
|
|
244
282
|
overflow: auto;
|
|
245
283
|
position: absolute;
|
|
246
284
|
z-index: 2;
|
|
247
|
-
background: var(--
|
|
285
|
+
background: var(--surface-background-canvas);
|
|
248
286
|
box-shadow: rem(0px) rem(12px) rem(16px) rem(-4px) var(--box-shadow);
|
|
249
287
|
top: rem(40px);
|
|
250
288
|
|
|
@@ -262,9 +300,9 @@
|
|
|
262
300
|
@include fontStyle(var(--fs-14), rem(20px));
|
|
263
301
|
padding: rem(10px) rem(12px);
|
|
264
302
|
cursor: pointer;
|
|
265
|
-
color: var(--
|
|
303
|
+
color: var(--text-heading-primary);
|
|
266
304
|
&:hover {
|
|
267
|
-
background-color: var(--
|
|
305
|
+
background-color: var(--surface-background-default);
|
|
268
306
|
}
|
|
269
307
|
&.disabled_option {
|
|
270
308
|
opacity: 0.3;
|
|
@@ -281,7 +319,7 @@
|
|
|
281
319
|
@include box(100%, rem(40px));
|
|
282
320
|
@include border();
|
|
283
321
|
padding: rem(10px) rem(12px);
|
|
284
|
-
background-color: var(--
|
|
322
|
+
background-color: var(--surface-background-canvas);
|
|
285
323
|
@include flex(flex-start, center, rem(4px));
|
|
286
324
|
|
|
287
325
|
img {
|
|
@@ -292,9 +330,9 @@
|
|
|
292
330
|
@include box(100%, 100%);
|
|
293
331
|
border: 0;
|
|
294
332
|
@include fontStyle(var(--fs-14), rem(20px), 400);
|
|
295
|
-
color: var(--
|
|
333
|
+
color: var(--text-heading-primary);
|
|
296
334
|
&::placeholder {
|
|
297
|
-
color: var(--
|
|
335
|
+
color: var(--text-heading-secondary);
|
|
298
336
|
}
|
|
299
337
|
}
|
|
300
338
|
}
|
|
@@ -312,7 +350,7 @@
|
|
|
312
350
|
.slider {
|
|
313
351
|
position: absolute;
|
|
314
352
|
cursor: pointer;
|
|
315
|
-
background-color: var(--
|
|
353
|
+
background-color: var(--surface-background-subtle);
|
|
316
354
|
border-radius: rem(16px);
|
|
317
355
|
inset: 0;
|
|
318
356
|
transition: 0.3s;
|
|
@@ -322,7 +360,7 @@
|
|
|
322
360
|
@include box(rem(12px), rem(12px));
|
|
323
361
|
left: rem(2px);
|
|
324
362
|
bottom: rem(2px);
|
|
325
|
-
background-color: var(--
|
|
363
|
+
background-color: var(--surface-background-canvas);
|
|
326
364
|
border-radius: 50%;
|
|
327
365
|
transition: 0.3s;
|
|
328
366
|
box-shadow: 0 rem(0.8px) rem(2.4px) 0 var(--box-shadow);
|
|
@@ -330,14 +368,14 @@
|
|
|
330
368
|
}
|
|
331
369
|
|
|
332
370
|
input:checked + .slider {
|
|
333
|
-
background-color: var(--
|
|
371
|
+
background-color: var(--surface-action-default);
|
|
334
372
|
&:before {
|
|
335
373
|
transform: translateX(rem(12px));
|
|
336
374
|
}
|
|
337
375
|
}
|
|
338
376
|
}
|
|
339
377
|
}
|
|
340
|
-
.tableArea.
|
|
378
|
+
.tableArea.large {
|
|
341
379
|
.table_wrapper {
|
|
342
380
|
table {
|
|
343
381
|
tbody {
|
|
@@ -363,13 +401,22 @@
|
|
|
363
401
|
}
|
|
364
402
|
}
|
|
365
403
|
|
|
366
|
-
.text-primary {
|
|
367
|
-
color: var(--
|
|
404
|
+
.cats-text-primary {
|
|
405
|
+
color: var(--text-link-default);
|
|
406
|
+
}
|
|
407
|
+
.cats-text-danger {
|
|
408
|
+
color: var(--semantics-error-default);
|
|
368
409
|
}
|
|
369
|
-
|
|
370
|
-
|
|
410
|
+
//---------------Text Trunctae CSS -----------
|
|
411
|
+
|
|
412
|
+
.ellipsis,
|
|
413
|
+
.textTruncate {
|
|
414
|
+
white-space: nowrap;
|
|
415
|
+
overflow: hidden;
|
|
416
|
+
text-overflow: ellipsis;
|
|
417
|
+
/* max-width: rem(200px); */
|
|
371
418
|
}
|
|
372
419
|
|
|
373
420
|
.tooltip-trigger {
|
|
374
421
|
cursor: default;
|
|
375
|
-
}
|
|
422
|
+
}
|