@leapdevuk/component-toolbox 0.1.2 → 0.1.4
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/dist/CHANGELOG.md +8 -0
- package/dist/components/datagrid/DataGrid.d.ts +3 -1
- package/dist/index.cjs.js +24 -24
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +9 -7
- package/dist/index.es.js.map +1 -1
- package/package.json +1 -1
package/dist/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,14 @@
|
|
|
2
2
|
|
|
3
3
|
### Features
|
|
4
4
|
|
|
5
|
+
## 0.1.4 (2026-02-17)
|
|
6
|
+
|
|
7
|
+
- DataGrid add params 'getRowClassName' and 'showBorders' to either show or hide borders.
|
|
8
|
+
|
|
9
|
+
## 0.1.3 (2026-01-20)
|
|
10
|
+
|
|
11
|
+
- DataGrid fixed issue with column menu not appearing on hover.
|
|
12
|
+
|
|
5
13
|
## 0.1.2 (2026-01-15)
|
|
6
14
|
|
|
7
15
|
- DataGrid add params 'loading' If true, a loading overlay is displayed.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { GridCallbackDetails, GridColDef, GridColumnVisibilityModel, GridGroupingColDefOverride, GridGroupingColDefOverrideParams, GridInitialState, GridProSlotsComponent, GridRowParams, GridRowSelectionModel, GridSlotProps, GridSlotsComponentsProps, GridValidRowModel } from '@mui/x-data-grid-pro';
|
|
1
|
+
import { GridCallbackDetails, GridColDef, GridColumnVisibilityModel, GridGroupingColDefOverride, GridGroupingColDefOverrideParams, GridInitialState, GridProSlotsComponent, GridRowClassNameParams, GridRowParams, GridRowSelectionModel, GridSlotProps, GridSlotsComponentsProps, GridValidRowModel } from '@mui/x-data-grid-pro';
|
|
2
2
|
interface IDataGridProps {
|
|
3
3
|
borderTop?: boolean;
|
|
4
4
|
checkboxSelection?: boolean;
|
|
@@ -8,6 +8,7 @@ interface IDataGridProps {
|
|
|
8
8
|
componentsProps?: GridSlotsComponentsProps | undefined;
|
|
9
9
|
defaultGroupingExpansionDepth?: number;
|
|
10
10
|
disableMultipleRowSelection?: boolean;
|
|
11
|
+
getRowClassName?: ((params: GridRowClassNameParams<GridValidRowModel>) => string) | undefined;
|
|
11
12
|
getTreeDataPath?: ((row: GridValidRowModel) => readonly string[]) | undefined;
|
|
12
13
|
groupingColDef?: GridGroupingColDefOverride<GridValidRowModel> | ((params: GridGroupingColDefOverrideParams) => GridGroupingColDefOverride<GridValidRowModel> | null | undefined) | undefined;
|
|
13
14
|
height?: any;
|
|
@@ -26,6 +27,7 @@ interface IDataGridProps {
|
|
|
26
27
|
rowHeight?: number;
|
|
27
28
|
rows: any[];
|
|
28
29
|
rowSelectionModel?: GridRowSelectionModel;
|
|
30
|
+
showBorders?: boolean;
|
|
29
31
|
slots?: Partial<GridProSlotsComponent>;
|
|
30
32
|
treeData?: boolean;
|
|
31
33
|
}
|