@leapdevuk/component-toolbox 0.0.135 → 0.1.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.
- package/dist/CHANGELOG.md +19 -0
- package/dist/components/accordionsummary/AccordionSummary.d.ts +1 -3
- package/dist/components/accordiontable/AccordionTable.d.ts +2 -3
- package/dist/components/datagrid/DataGrid.d.ts +22 -19
- package/dist/components/datagridtree/DataGridTree.d.ts +3 -5
- package/dist/components/grid/Grid.d.ts +2 -2
- package/dist/components/listitem/ListItem.d.ts +1 -1
- package/dist/index.cjs.js +50 -57
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +6447 -6544
- package/dist/index.es.js.map +1 -1
- package/package.json +29 -29
package/dist/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,24 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
### Features
|
|
4
|
+
|
|
5
|
+
## 0.1.1 (2025-12-17)
|
|
6
|
+
|
|
7
|
+
- DataGrid add params 'groupingColDef' grouping column definitions by the tree data.
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
## 0.1.00 (2025-12-09)
|
|
12
|
+
|
|
13
|
+
- Updated node packages to latest
|
|
14
|
+
- Updated MUI dependencies to latest 7.3.6
|
|
15
|
+
- Updated React to latest 19.2.1
|
|
16
|
+
- Updated Vite to latest 6.4.1
|
|
17
|
+
- Updated LEAP-host SDK to latest 3.5.3
|
|
18
|
+
- DataGrid add params 'treeData' to enable a hierarchical data structures that organize data into parent-child relationships.
|
|
19
|
+
|
|
20
|
+
### Features
|
|
21
|
+
|
|
3
22
|
## 0.0.135 (2025-11-27)
|
|
4
23
|
|
|
5
24
|
### Features
|
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
declare const LCTAccordionSummary: import('@emotion/styled').StyledComponent<import('@mui/material').AccordionSummaryOwnProps & Omit<import('@mui/material').ButtonBaseOwnProps, "classes"> & import('@mui/material/OverridableComponent').CommonProps & Omit<
|
|
2
|
-
ref?: ((instance: HTMLDivElement | null) => void | import('react').DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import('react').DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import('react').RefObject<HTMLDivElement> | null | undefined;
|
|
3
|
-
}, "className" | "style" | "classes" | "children" | "sx" | "disabled" | "tabIndex" | "action" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef" | "expandIcon"> & {
|
|
1
|
+
declare const LCTAccordionSummary: import('@emotion/styled').StyledComponent<import('@mui/material').AccordionSummaryOwnProps & Omit<import('@mui/material').ButtonBaseOwnProps, "classes"> & import('@mui/material/OverridableComponent').CommonProps & Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "className" | "style" | "classes" | "children" | "sx" | "disabled" | "slots" | "slotProps" | "tabIndex" | "action" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef" | "expandIcon"> & {
|
|
4
2
|
component?: React.ElementType;
|
|
5
3
|
} & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme>, {}, {}>;
|
|
6
4
|
export default LCTAccordionSummary;
|
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
import { GridRowParams, GridSlotsComponentsProps } from '@mui/x-data-grid-pro';
|
|
2
|
-
import { GridInitialStatePro } from '@mui/x-data-grid-pro/models/gridStatePro';
|
|
1
|
+
import { GridInitialState, GridRowParams, GridSlotsComponentsProps } from '@mui/x-data-grid-pro';
|
|
3
2
|
interface IAccordionTableProps {
|
|
4
3
|
maxHeight: any;
|
|
5
4
|
rows: any[];
|
|
6
5
|
columns: any;
|
|
7
|
-
initialState?:
|
|
6
|
+
initialState?: GridInitialState | undefined;
|
|
8
7
|
onRowDoubleClick?: (params: GridRowParams<any>) => void;
|
|
9
8
|
id: (row: any) => any;
|
|
10
9
|
rowHeight?: number;
|
|
@@ -1,29 +1,32 @@
|
|
|
1
|
-
import { GridCallbackDetails, GridColDef, GridColumnVisibilityModel,
|
|
2
|
-
import { GridInitialStatePro } from '@mui/x-data-grid-pro/models/gridStatePro';
|
|
1
|
+
import { GridCallbackDetails, GridColDef, GridColumnVisibilityModel, GridGroupingColDefOverride, GridGroupingColDefOverrideParams, GridInitialState, GridProSlotsComponent, GridRowParams, GridRowSelectionModel, GridSlotProps, GridSlotsComponentsProps, GridValidRowModel } from '@mui/x-data-grid-pro';
|
|
3
2
|
interface IDataGridProps {
|
|
4
|
-
maxHeight: any;
|
|
5
|
-
height?: any;
|
|
6
|
-
rows: any[];
|
|
7
|
-
columns: GridColDef[];
|
|
8
|
-
initialState?: GridInitialStatePro | undefined;
|
|
9
|
-
onRowDoubleClick?: (params: GridRowParams<any>) => void;
|
|
10
|
-
onRowClick?: (params: GridRowParams<any>) => void;
|
|
11
|
-
componentsProps?: GridSlotsComponentsProps | undefined;
|
|
12
|
-
id: (row: any) => any;
|
|
13
3
|
borderTop?: boolean;
|
|
14
|
-
|
|
4
|
+
checkboxSelection?: boolean;
|
|
15
5
|
columnHeaderHeight?: number;
|
|
16
|
-
|
|
17
|
-
slots?: Partial<GridProSlotsComponent>;
|
|
6
|
+
columns: GridColDef[];
|
|
18
7
|
columnVisibilityModel?: GridColumnVisibilityModel;
|
|
19
|
-
|
|
8
|
+
componentsProps?: GridSlotsComponentsProps | undefined;
|
|
9
|
+
defaultGroupingExpansionDepth?: number;
|
|
20
10
|
disableMultipleRowSelection?: boolean;
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
noRowsOverlay?: React.JSXElementConstructor<GridSlotProps["noRowsOverlay"]>;
|
|
11
|
+
getTreeDataPath?: ((row: GridValidRowModel) => readonly string[]) | undefined;
|
|
12
|
+
groupingColDef?: GridGroupingColDefOverride<GridValidRowModel> | ((params: GridGroupingColDefOverrideParams) => GridGroupingColDefOverride<GridValidRowModel> | null | undefined) | undefined;
|
|
13
|
+
height?: any;
|
|
25
14
|
hideFooter?: boolean;
|
|
15
|
+
id: (row: any) => any;
|
|
16
|
+
initialState?: GridInitialState | undefined;
|
|
26
17
|
isRowSelectable?: ((params: GridRowParams<GridValidRowModel>) => boolean) | undefined;
|
|
18
|
+
keepNonExistentRowsSelected?: boolean;
|
|
19
|
+
maxHeight: any;
|
|
20
|
+
noDataText?: string;
|
|
21
|
+
noRowsOverlay?: React.JSXElementConstructor<GridSlotProps["noRowsOverlay"]>;
|
|
22
|
+
onRowClick?: (params: GridRowParams<any>) => void;
|
|
23
|
+
onRowDoubleClick?: (params: GridRowParams<any>) => void;
|
|
24
|
+
onRowSelectionModelChange?: (rowSelectionModel: GridRowSelectionModel, details: GridCallbackDetails) => void;
|
|
25
|
+
rowHeight?: number;
|
|
26
|
+
rows: any[];
|
|
27
|
+
rowSelectionModel?: GridRowSelectionModel;
|
|
28
|
+
slots?: Partial<GridProSlotsComponent>;
|
|
29
|
+
treeData?: boolean;
|
|
27
30
|
}
|
|
28
31
|
declare const LCTDataGrid: import('@emotion/styled').StyledComponent<IDataGridProps & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme>, {}, {}>;
|
|
29
32
|
export default LCTDataGrid;
|
|
@@ -1,13 +1,11 @@
|
|
|
1
|
-
import { GridCallbackDetails, GridColDef, GridColumnVisibilityModel, GridProSlotsComponent, GridRowParams, GridRowSelectionModel, GridSlotProps, GridSlotsComponentsProps } from '@mui/x-data-grid-pro';
|
|
2
|
-
import { GridInitialStatePro } from '@mui/x-data-grid-pro/models/gridStatePro';
|
|
3
|
-
import { GridProSlotProps } from '@mui/x-data-grid-pro/models/gridProSlotProps';
|
|
1
|
+
import { GridCallbackDetails, GridColDef, GridColumnVisibilityModel, GridInitialState, GridProSlotsComponent, GridRowParams, GridRowSelectionModel, GridSlotProps, GridSlotsComponentsProps } from '@mui/x-data-grid-pro';
|
|
4
2
|
import { Api } from '@leapdev/leap-host';
|
|
5
3
|
interface IDataGridProps {
|
|
6
4
|
maxHeight: any;
|
|
7
5
|
height?: any;
|
|
8
6
|
rows: any[];
|
|
9
7
|
columns: GridColDef[];
|
|
10
|
-
initialState?:
|
|
8
|
+
initialState?: GridInitialState | undefined;
|
|
11
9
|
onRowDoubleClick?: (params: GridRowParams<any>) => void;
|
|
12
10
|
onRowClick?: (params: GridRowParams<any>) => void;
|
|
13
11
|
componentsProps?: GridSlotsComponentsProps | undefined;
|
|
@@ -17,7 +15,7 @@ interface IDataGridProps {
|
|
|
17
15
|
columnHeaderHeight?: number;
|
|
18
16
|
rowHeight?: number;
|
|
19
17
|
slots?: Partial<GridProSlotsComponent>;
|
|
20
|
-
slotProps?:
|
|
18
|
+
slotProps?: GridSlotProps;
|
|
21
19
|
columnVisibilityModel?: GridColumnVisibilityModel;
|
|
22
20
|
rowSelectionModel?: GridRowSelectionModel;
|
|
23
21
|
setRowSelectionModel?: React.SetStateAction<GridRowSelectionModel>;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
declare const LCTGrid: (props:
|
|
1
|
+
import { GridProps } from '@mui/material/Grid';
|
|
2
|
+
declare const LCTGrid: (props: GridProps) => import("react/jsx-runtime").JSX.Element;
|
|
3
3
|
export default LCTGrid;
|