@veeqo/ui 11.4.0 → 11.4.1
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,10 +1,10 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
const isLastColumn = (table, column) => {
|
|
4
|
-
if (table.getIsSomeColumnsPinned('right')) {
|
|
4
|
+
if (table.getIsSomeColumnsPinned('right') && table.getRightVisibleLeafColumns().length > 0) {
|
|
5
5
|
return column.getIsLastColumn('right');
|
|
6
6
|
}
|
|
7
|
-
return column.getIsLastColumn();
|
|
7
|
+
return column.getIsLastColumn('center');
|
|
8
8
|
};
|
|
9
9
|
|
|
10
10
|
exports.isLastColumn = isLastColumn;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"isLastColumn.cjs","sources":["../../../../src/components/DataGrid/utils/isLastColumn.ts"],"sourcesContent":["import { Column, Table } from '@tanstack/react-table';\n\nexport const isLastColumn = (table: Table<any>, column: Column<any, any>) => {\n if (table.getIsSomeColumnsPinned('right')) {\n return column.getIsLastColumn('right');\n }\n\n return column.getIsLastColumn();\n};\n"],"names":[],"mappings":";;MAEa,YAAY,GAAG,CAAC,KAAiB,EAAE,MAAwB,KAAI;AAC1E,IAAA,IAAI,KAAK,CAAC,sBAAsB,CAAC,OAAO,CAAC,EAAE;
|
|
1
|
+
{"version":3,"file":"isLastColumn.cjs","sources":["../../../../src/components/DataGrid/utils/isLastColumn.ts"],"sourcesContent":["import { Column, Table } from '@tanstack/react-table';\n\nexport const isLastColumn = (table: Table<any>, column: Column<any, any>) => {\n if (table.getIsSomeColumnsPinned('right') && table.getRightVisibleLeafColumns().length > 0) {\n return column.getIsLastColumn('right');\n }\n\n return column.getIsLastColumn('center');\n};\n"],"names":[],"mappings":";;MAEa,YAAY,GAAG,CAAC,KAAiB,EAAE,MAAwB,KAAI;AAC1E,IAAA,IAAI,KAAK,CAAC,sBAAsB,CAAC,OAAO,CAAC,IAAI,KAAK,CAAC,0BAA0B,EAAE,CAAC,MAAM,GAAG,CAAC,EAAE;AAC1F,QAAA,OAAO,MAAM,CAAC,eAAe,CAAC,OAAO,CAAC;AACvC;AAED,IAAA,OAAO,MAAM,CAAC,eAAe,CAAC,QAAQ,CAAC;AACzC;;;;"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
const isLastColumn = (table, column) => {
|
|
2
|
-
if (table.getIsSomeColumnsPinned('right')) {
|
|
2
|
+
if (table.getIsSomeColumnsPinned('right') && table.getRightVisibleLeafColumns().length > 0) {
|
|
3
3
|
return column.getIsLastColumn('right');
|
|
4
4
|
}
|
|
5
|
-
return column.getIsLastColumn();
|
|
5
|
+
return column.getIsLastColumn('center');
|
|
6
6
|
};
|
|
7
7
|
|
|
8
8
|
export { isLastColumn };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"isLastColumn.js","sources":["../../../../src/components/DataGrid/utils/isLastColumn.ts"],"sourcesContent":["import { Column, Table } from '@tanstack/react-table';\n\nexport const isLastColumn = (table: Table<any>, column: Column<any, any>) => {\n if (table.getIsSomeColumnsPinned('right')) {\n return column.getIsLastColumn('right');\n }\n\n return column.getIsLastColumn();\n};\n"],"names":[],"mappings":"MAEa,YAAY,GAAG,CAAC,KAAiB,EAAE,MAAwB,KAAI;AAC1E,IAAA,IAAI,KAAK,CAAC,sBAAsB,CAAC,OAAO,CAAC,EAAE;
|
|
1
|
+
{"version":3,"file":"isLastColumn.js","sources":["../../../../src/components/DataGrid/utils/isLastColumn.ts"],"sourcesContent":["import { Column, Table } from '@tanstack/react-table';\n\nexport const isLastColumn = (table: Table<any>, column: Column<any, any>) => {\n if (table.getIsSomeColumnsPinned('right') && table.getRightVisibleLeafColumns().length > 0) {\n return column.getIsLastColumn('right');\n }\n\n return column.getIsLastColumn('center');\n};\n"],"names":[],"mappings":"MAEa,YAAY,GAAG,CAAC,KAAiB,EAAE,MAAwB,KAAI;AAC1E,IAAA,IAAI,KAAK,CAAC,sBAAsB,CAAC,OAAO,CAAC,IAAI,KAAK,CAAC,0BAA0B,EAAE,CAAC,MAAM,GAAG,CAAC,EAAE;AAC1F,QAAA,OAAO,MAAM,CAAC,eAAe,CAAC,OAAO,CAAC;AACvC;AAED,IAAA,OAAO,MAAM,CAAC,eAAe,CAAC,QAAQ,CAAC;AACzC;;;;"}
|