es-grid-template 1.8.39 → 1.8.41
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.
|
@@ -35,7 +35,7 @@ const TableHead = ({
|
|
|
35
35
|
// const colSpan = col.getLeafColumns().length || 1;
|
|
36
36
|
const colSpan = column.columns.length || 1;
|
|
37
37
|
const rowSpan = column.columns?.length > 0 ? 1 : headerDepth - depth;
|
|
38
|
-
const header = headerGroups.find(it => it.id === column.id || it.column.id === column.id && it.subHeaders.length
|
|
38
|
+
const header = headerGroups.find(it => it.id === column.id || it.column.id === column.id && it.subHeaders.length > 0);
|
|
39
39
|
// const groupHeader = headerGroups.find((it) => it.column.id === column.id && it.subHeaders.length >= 2)
|
|
40
40
|
|
|
41
41
|
if (header?.subHeaders && header.subHeaders.length >= 2) {
|
|
@@ -149,7 +149,8 @@ export function convertToTanStackColumns({
|
|
|
149
149
|
sortDescFirst: false,
|
|
150
150
|
minSize: minWidth,
|
|
151
151
|
// maxSize: maxWidth,
|
|
152
|
-
enableSorting: allowSortering !== false
|
|
152
|
+
enableSorting: allowSortering !== false,
|
|
153
|
+
// enableSorting: false,
|
|
153
154
|
// enableColumnFilter: allowFiltering !== false && !nonActionColumn.includes(field)
|
|
154
155
|
enableColumnFilter: allowFiltering !== false
|
|
155
156
|
};
|
|
@@ -45,7 +45,7 @@ const TableHead = ({
|
|
|
45
45
|
// const colSpan = col.getLeafColumns().length || 1;
|
|
46
46
|
const colSpan = column.columns.length || 1;
|
|
47
47
|
const rowSpan = column.columns?.length > 0 ? 1 : headerDepth - depth;
|
|
48
|
-
const header = headerGroups.find(it => it.id === column.id || it.column.id === column.id && it.subHeaders.length
|
|
48
|
+
const header = headerGroups.find(it => it.id === column.id || it.column.id === column.id && it.subHeaders.length > 0);
|
|
49
49
|
// const groupHeader = headerGroups.find((it) => it.column.id === column.id && it.subHeaders.length >= 2)
|
|
50
50
|
|
|
51
51
|
if (header?.subHeaders && header.subHeaders.length >= 2) {
|
|
@@ -160,7 +160,8 @@ function convertToTanStackColumns({
|
|
|
160
160
|
sortDescFirst: false,
|
|
161
161
|
minSize: minWidth,
|
|
162
162
|
// maxSize: maxWidth,
|
|
163
|
-
enableSorting: allowSortering !== false
|
|
163
|
+
enableSorting: allowSortering !== false,
|
|
164
|
+
// enableSorting: false,
|
|
164
165
|
// enableColumnFilter: allowFiltering !== false && !nonActionColumn.includes(field)
|
|
165
166
|
enableColumnFilter: allowFiltering !== false
|
|
166
167
|
};
|