@wandelbots/wandelbots-js-react-components 2.32.0-pr.feature-robot-precondition-list.372.82f340f → 2.32.0-pr.feature-robot-precondition-list.372.8bd8d01
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/components/{SearchableDataGrid.d.ts → DataGrid.d.ts} +3 -8
- package/dist/components/DataGrid.d.ts.map +1 -0
- package/dist/index.cjs +36 -36
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2418 -2420
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/components/{SearchableDataGrid.tsx → DataGrid.tsx} +4 -11
- package/src/index.ts +1 -1
- package/dist/components/SearchableDataGrid.d.ts.map +0 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type DataGridProps, type GridColDef, type GridRowParams } from "@mui/x-data-grid";
|
|
2
|
-
export interface
|
|
2
|
+
export interface WandelbotsDataGridProps<T = Record<string, unknown>> {
|
|
3
3
|
/**
|
|
4
4
|
* Array of data items to display in the grid
|
|
5
5
|
*/
|
|
@@ -49,18 +49,13 @@ export interface SearchableDataGridProps<T = Record<string, unknown>> {
|
|
|
49
49
|
* Custom toolbar component to replace the default one
|
|
50
50
|
*/
|
|
51
51
|
CustomToolbar?: React.ComponentType;
|
|
52
|
-
/**
|
|
53
|
-
* Background color for the component
|
|
54
|
-
* @default "transparent"
|
|
55
|
-
*/
|
|
56
|
-
backgroundColor?: string;
|
|
57
52
|
/**
|
|
58
53
|
* Select the first item by default
|
|
59
54
|
* @default false
|
|
60
55
|
*/
|
|
61
56
|
selectFirstByDefault?: boolean;
|
|
62
57
|
}
|
|
63
|
-
export declare const
|
|
58
|
+
export declare const WandelbotsDataGrid: (<T>({ data, columns, getRowData, onRowClick, selectedItem, getItemId, title, showCount, searchPlaceholder, dataGridProps, CustomToolbar, selectFirstByDefault, }: WandelbotsDataGridProps<T>) => import("react/jsx-runtime").JSX.Element) & {
|
|
64
59
|
displayName: string;
|
|
65
60
|
};
|
|
66
|
-
//# sourceMappingURL=
|
|
61
|
+
//# sourceMappingURL=DataGrid.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DataGrid.d.ts","sourceRoot":"","sources":["../../src/components/DataGrid.tsx"],"names":[],"mappings":"AAIA,OAAO,EAEL,KAAK,aAAa,EAElB,KAAK,UAAU,EACf,KAAK,aAAa,EAOnB,MAAM,kBAAkB,CAAA;AAKzB,MAAM,WAAW,uBAAuB,CAAC,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;IAClE;;OAEG;IACH,IAAI,EAAE,CAAC,EAAE,CAAA;IAET;;OAEG;IACH,OAAO,EAAE,UAAU,EAAE,CAAA;IAErB;;;OAGG;IACH,UAAU,EAAE,CAAC,IAAI,EAAE,CAAC,KAAK,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG;QAAE,EAAE,EAAE,MAAM,GAAG,MAAM,CAAA;KAAE,CAAA;IAE1E;;OAEG;IACH,UAAU,CAAC,EAAE,CAAC,IAAI,EAAE,CAAC,EAAE,MAAM,EAAE,aAAa,KAAK,IAAI,CAAA;IAErD;;OAEG;IACH,YAAY,CAAC,EAAE,CAAC,GAAG,IAAI,CAAA;IAEvB;;OAEG;IACH,SAAS,CAAC,EAAE,CAAC,IAAI,EAAE,CAAC,KAAK,MAAM,GAAG,MAAM,CAAA;IAExC;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAA;IAEd;;;OAGG;IACH,SAAS,CAAC,EAAE,OAAO,CAAA;IAEnB;;;OAGG;IACH,iBAAiB,CAAC,EAAE,MAAM,CAAA;IAE1B;;OAEG;IACH,aAAa,CAAC,EAAE,OAAO,CAAC,aAAa,CAAC,CAAA;IAEtC;;OAEG;IACH,aAAa,CAAC,EAAE,KAAK,CAAC,aAAa,CAAA;IAEnC;;;OAGG;IACH,oBAAoB,CAAC,EAAE,OAAO,CAAA;CAC/B;AAED,eAAO,MAAM,kBAAkB,IAE1B,CAAC,gKAaC,uBAAuB,CAAC,CAAC,CAAC;;CA6VhC,CAAA"}
|