@noraent/nora-datagrid 1.1.0-beta.2 → 1.1.0-beta.20
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/buildPackage.json +4 -2
- package/dist/common/constants/utils.d.ts +9 -0
- package/dist/components/NoraDataGrid.d.ts +0 -1
- package/dist/components/TwoDimensionalVirtualizedList.d.ts +3 -4
- package/dist/components/cell/CellMode.d.ts +1 -1
- package/dist/hooks/dimensions/gridDimensionsApi.d.ts +4 -0
- package/dist/hooks/dimensions/index.d.ts +1 -0
- package/dist/hooks/dimensions/useGridDimensions.d.ts +3 -0
- package/dist/hooks/index.d.ts +1 -1
- package/dist/hooks/useMouseEvent.d.ts +21 -9
- package/dist/nora_datagrid.cjs.js +3 -3
- package/dist/nora_datagrid.es.js +1008 -637
- package/dist/provider/store.d.ts +2 -2
- package/dist/types/dataGridCoreProps.d.ts +4 -2
- package/dist/types/dataGridProps.d.ts +66 -4
- package/package.json +4 -2
package/dist/buildPackage.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@noraent/nora-datagrid",
|
|
3
|
-
"version": "1.1.0-beta.
|
|
3
|
+
"version": "1.1.0-beta.20",
|
|
4
4
|
"module": "./dist/nora_datagrid.es.js",
|
|
5
5
|
"main": "./dist/nora_datagrid.cjs.js",
|
|
6
6
|
"private": false,
|
|
@@ -47,10 +47,11 @@
|
|
|
47
47
|
"react-dom": "^18.0.0 || ^19.0.0"
|
|
48
48
|
},
|
|
49
49
|
"devDependencies": {
|
|
50
|
-
"@mui/material": "^7.3.4",
|
|
51
50
|
"@babel/cli": "^7.27.2",
|
|
52
51
|
"@babel/preset-react": "^7.27.1",
|
|
53
52
|
"@eslint/js": "^9.9.0",
|
|
53
|
+
"@mui/material": "^7.3.4",
|
|
54
|
+
"@mui/x-charts": "^8.27.0",
|
|
54
55
|
"@types/lodash": "^4.17.16",
|
|
55
56
|
"@types/node": "^22.15.14",
|
|
56
57
|
"@types/react": "^19.0.0",
|
|
@@ -60,6 +61,7 @@
|
|
|
60
61
|
"eslint": "^9.9.0",
|
|
61
62
|
"eslint-plugin-react-hooks": "^5.1.0-rc.0",
|
|
62
63
|
"eslint-plugin-react-refresh": "^0.4.9",
|
|
64
|
+
"flatqueue": "^3.0.0",
|
|
63
65
|
"globals": "^15.9.0",
|
|
64
66
|
"react": "^19.0.0",
|
|
65
67
|
"react-dom": "^19.0.0",
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
|
+
import { DataGridDataSource } from '../../types';
|
|
3
|
+
import { GridSortModel } from '../../types/dataGridCoreProps';
|
|
2
4
|
/**
|
|
3
5
|
* 첫 마운트시 실행 되지 않습니다.
|
|
4
6
|
* 업데이트시 실행하고 싶다면 사용해주세요.
|
|
@@ -38,3 +40,10 @@ export declare function adjustSaturation(hex: string, amount: number): string;
|
|
|
38
40
|
*/
|
|
39
41
|
export declare function alpha(hex: string, opacity: number): string;
|
|
40
42
|
export declare function deepMerge<T>(target: T, source: Partial<T>): T;
|
|
43
|
+
export declare function toNumberWidth(width: string | number | undefined): number;
|
|
44
|
+
export declare const sorting: (dataSource: DataGridDataSource, newSort: GridSortModel) => {
|
|
45
|
+
__ariaRowindex: number;
|
|
46
|
+
__dataRowindex: number;
|
|
47
|
+
__uuid: string;
|
|
48
|
+
height?: number;
|
|
49
|
+
}[];
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { default as React, ReactNode } from 'react';
|
|
2
2
|
import { Interpolation, Theme } from '@emotion/react';
|
|
3
|
-
export declare const editCellDomSet: Set<HTMLElement>;
|
|
4
3
|
export declare const NoraDataGrid: React.ForwardRefExoticComponent<NoraDataGridMainProps & React.RefAttributes<HTMLDivElement>> & {
|
|
5
4
|
Title: typeof NoraDataGridTitle;
|
|
6
5
|
Body: React.ForwardRefExoticComponent<NoraDataGridMainProps & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -1,17 +1,16 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
2
|
import { DataGridPrivateColumnModel, DataGridPrivateDataSourceModel } from '../types/dataGridCoreProps';
|
|
3
|
-
import {
|
|
3
|
+
import { DataGridPrivateApiModel, GirdApiCommon } from '../types/dataGridProps';
|
|
4
4
|
export declare const initialWindowHeight = 500;
|
|
5
|
-
export declare const VirtualItem: React.MemoExoticComponent<({ column, row,
|
|
5
|
+
export declare const VirtualItem: React.MemoExoticComponent<({ column, row, rowIndex, }: {
|
|
6
6
|
column: DataGridPrivateColumnModel;
|
|
7
7
|
row: DataGridPrivateDataSourceModel;
|
|
8
|
-
isFocus: boolean;
|
|
9
|
-
editStatus: EditStatus | undefined;
|
|
10
8
|
rowIndex: number;
|
|
11
9
|
}) => import("react/jsx-runtime").JSX.Element>;
|
|
12
10
|
export declare const TwoDimensionalVirtualizedList: React.MemoExoticComponent<({ imeRef }: {
|
|
13
11
|
imeRef: React.RefObject<HTMLTextAreaElement | null>;
|
|
14
12
|
}) => import("react/jsx-runtime").JSX.Element>;
|
|
13
|
+
export declare const computeCellClass: (gridRef: React.RefObject<GirdApiCommon<DataGridPrivateApiModel>>, fieldId: string, ariaRowindex: number) => string;
|
|
15
14
|
declare const _default: React.MemoExoticComponent<React.MemoExoticComponent<({ imeRef }: {
|
|
16
15
|
imeRef: React.RefObject<HTMLTextAreaElement | null>;
|
|
17
16
|
}) => import("react/jsx-runtime").JSX.Element>>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type { GridDimensions } from './gridDimensionsApi';
|
package/dist/hooks/index.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
export { useGridApiRef } from './useGridApiRef';
|
|
2
|
-
export { type GridHeaderPrams, type GridCellPrams } from '../types/dataGridCoreProps';
|
|
2
|
+
export { type GridHeaderPrams, type GridCellPrams, type GridCellPramsV2 } from '../types/dataGridCoreProps';
|
|
3
3
|
export { useMouseEvent } from './useMouseEvent';
|
|
@@ -1,11 +1,23 @@
|
|
|
1
|
-
import { EditStatus } from '../types/dataGridCoreEnum';
|
|
2
1
|
export declare const useMouseEvent: () => {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
2
|
+
handleKeydownEvent: (event: KeyboardEvent) => Promise<void>;
|
|
3
|
+
startFocusCell: (id: number, fieldId: string) => void;
|
|
4
|
+
editingCell: (rowId?: number, fieldId?: string, dblclick?: boolean) => void;
|
|
5
|
+
stopEditingCell: (event: MouseEvent | KeyboardEvent, prevFocus?: {
|
|
6
|
+
id: number;
|
|
7
|
+
field: string;
|
|
8
|
+
} | null) => void;
|
|
9
|
+
startEditingCell: (id: number, fieldId: string, dom?: HTMLElement, dblclick?: boolean) => void;
|
|
10
|
+
stopFocusCell: (prevFocus?: {
|
|
11
|
+
id: number;
|
|
12
|
+
field: string;
|
|
13
|
+
} | null) => void;
|
|
14
|
+
handleProcessRowUpdateEvent: (targetRowId?: number) => Promise<false | import('../types/dataGridCoreProps').DataGridPrivateDataSourceModel | undefined>;
|
|
15
|
+
getNextArrowEvent: (event: KeyboardEvent) => {
|
|
16
|
+
nextRowId?: number;
|
|
17
|
+
nextColField?: string;
|
|
18
|
+
} | null;
|
|
19
|
+
getArrowEvent: () => {
|
|
20
|
+
rowId?: number;
|
|
21
|
+
colField?: string;
|
|
22
|
+
} | null;
|
|
11
23
|
};
|