@noraent/nora-datagrid 1.1.0-beta.21 → 1.1.0-beta.22

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/App.d.ts CHANGED
@@ -1,10 +1,2 @@
1
1
  declare function App(): import("react/jsx-runtime").JSX.Element;
2
- export declare const initialItemsData: () => {
3
- id: number;
4
- columns: {
5
- id: string;
6
- width: number;
7
- content: string;
8
- }[];
9
- }[];
10
2
  export default App;
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@noraent/nora-datagrid",
3
- "version": "1.1.0-beta.21",
3
+ "version": "1.1.0-beta.22",
4
4
  "module": "./dist/nora_datagrid.es.js",
5
5
  "main": "./dist/nora_datagrid.cjs.js",
6
6
  "private": false,
@@ -0,0 +1,15 @@
1
+ export declare function useGridEditing(): {
2
+ cellFocus: {
3
+ id: number;
4
+ field: string;
5
+ } | null;
6
+ currentEditingCell: {
7
+ [rowId: number]: {
8
+ rowId: number;
9
+ field: string;
10
+ };
11
+ };
12
+ startEdit: (rowId: number, fieldId: string) => void;
13
+ stopEdit: (rowId?: number, fieldId?: string) => void;
14
+ updateCellValue: (rowId: number, fieldId: string, value: any) => void;
15
+ };
@@ -0,0 +1,8 @@
1
+ export declare function useGridSelection(): {
2
+ selectionList: string[];
3
+ selectionMode: "multiple" | "single";
4
+ setSelectionList: (nextSelectionList: string[]) => void;
5
+ clearSelection: () => void;
6
+ toggleRow: (rowUUID: string) => string[];
7
+ emitSelectionChange: (nextRows: any[], prevRows: any[]) => void;
8
+ };
@@ -0,0 +1,7 @@
1
+ import { GridSortModel } from '../../types/dataGridCoreProps';
2
+ export declare function useGridSort(): {
3
+ sortModel: GridSortModel;
4
+ setSortModel: (nextSortModel: GridSortModel) => void;
5
+ toggleSort: (fieldId: string) => GridSortModel;
6
+ clearSort: () => void;
7
+ };
@@ -1,3 +1,6 @@
1
1
  export { useGridApiRef } from './useGridApiRef';
2
2
  export { type GridHeaderPrams, type GridCellPrams, type GridCellPramsV2 } from '../types/dataGridCoreProps';
3
3
  export { useMouseEvent } from './useMouseEvent';
4
+ export { useGridSelection } from './external/useGridSelection';
5
+ export { useGridSort } from './external/useGridSort';
6
+ export { useGridEditing } from './external/useGridEditing';