@rufous/ui 0.2.81 → 0.2.83
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/main.cjs +628 -735
- package/dist/main.d.cts +7 -1
- package/dist/main.d.ts +7 -1
- package/dist/main.js +633 -740
- package/package.json +1 -1
package/dist/main.d.cts
CHANGED
|
@@ -818,11 +818,17 @@ interface DataGridProps<T> {
|
|
|
818
818
|
title?: string;
|
|
819
819
|
className?: string;
|
|
820
820
|
sx?: SxProp;
|
|
821
|
+
onRowDoubleClick?: (row: T) => void;
|
|
822
|
+
onCellDoubleClick?: (params: {
|
|
823
|
+
row: T;
|
|
824
|
+
field: string;
|
|
825
|
+
value: any;
|
|
826
|
+
}) => void;
|
|
821
827
|
}
|
|
822
828
|
|
|
823
829
|
declare function DataGrid<T extends {
|
|
824
830
|
id: string | number;
|
|
825
|
-
}>({ columns: initialColumnsProp, data, actions, pageSize: initialPageSize, pageSizeOptions, title, className, sx, }: DataGridProps<T>): React__default.JSX.Element;
|
|
831
|
+
}>({ columns: initialColumnsProp, data, actions, pageSize: initialPageSize, pageSizeOptions, title, className, sx, onRowDoubleClick, onCellDoubleClick, }: DataGridProps<T>): React__default.JSX.Element;
|
|
826
832
|
|
|
827
833
|
type SelectOption = {
|
|
828
834
|
value: string | number;
|
package/dist/main.d.ts
CHANGED
|
@@ -818,11 +818,17 @@ interface DataGridProps<T> {
|
|
|
818
818
|
title?: string;
|
|
819
819
|
className?: string;
|
|
820
820
|
sx?: SxProp;
|
|
821
|
+
onRowDoubleClick?: (row: T) => void;
|
|
822
|
+
onCellDoubleClick?: (params: {
|
|
823
|
+
row: T;
|
|
824
|
+
field: string;
|
|
825
|
+
value: any;
|
|
826
|
+
}) => void;
|
|
821
827
|
}
|
|
822
828
|
|
|
823
829
|
declare function DataGrid<T extends {
|
|
824
830
|
id: string | number;
|
|
825
|
-
}>({ columns: initialColumnsProp, data, actions, pageSize: initialPageSize, pageSizeOptions, title, className, sx, }: DataGridProps<T>): React__default.JSX.Element;
|
|
831
|
+
}>({ columns: initialColumnsProp, data, actions, pageSize: initialPageSize, pageSizeOptions, title, className, sx, onRowDoubleClick, onCellDoubleClick, }: DataGridProps<T>): React__default.JSX.Element;
|
|
826
832
|
|
|
827
833
|
type SelectOption = {
|
|
828
834
|
value: string | number;
|