@noraent/nora-datagrid 1.1.0-beta.25 → 1.1.0-beta.27

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.
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@noraent/nora-datagrid",
3
- "version": "1.1.0-beta.25",
3
+ "version": "1.1.0-beta.27",
4
4
  "module": "./dist/nora_datagrid.es.js",
5
5
  "main": "./dist/nora_datagrid.cjs.js",
6
6
  "private": false,
@@ -25,7 +25,7 @@
25
25
  "clean:build": "rimraf ./dist",
26
26
  "lint": "eslint .",
27
27
  "preview": "vite preview",
28
- "test": "jest",
28
+ "test": "vitest run",
29
29
  "tsc-build": "tsc -p tsconfig-esm.json && tsc -p tsconfig-cjs.json && npm run vite-build && npm run copy-scss",
30
30
  "vite-build": "tsc -b && vite build --mode production",
31
31
  "publish:npm": "rm -rf dist && mkdir dist && npm run vite-build && npm run copy-package",
@@ -52,6 +52,7 @@
52
52
  "@eslint/js": "^9.9.0",
53
53
  "@mui/material": "^7.3.4",
54
54
  "@mui/x-charts": "^8.27.0",
55
+ "@testing-library/react": "^16.3.3",
55
56
  "@types/lodash": "^4.17.16",
56
57
  "@types/node": "^22.15.14",
57
58
  "@types/react": "^19.0.0",
@@ -63,6 +64,7 @@
63
64
  "eslint-plugin-react-refresh": "^0.4.9",
64
65
  "flatqueue": "^3.0.0",
65
66
  "globals": "^15.9.0",
67
+ "jsdom": "^26.1.0",
66
68
  "react": "^19.0.0",
67
69
  "react-dom": "^19.0.0",
68
70
  "terser": "^5.39.0",
@@ -71,7 +73,8 @@
71
73
  "vite": "^6.2.0",
72
74
  "vite-plugin-dts": "^4.5.3",
73
75
  "vite-plugin-svgr": "^4.3.0",
74
- "vite-tsconfig-paths": "^5.1.4"
76
+ "vite-tsconfig-paths": "^5.1.4",
77
+ "vitest": "^3.2.4"
75
78
  },
76
79
  "peerDependenciesMeta": {
77
80
  "@emotion/react": {
@@ -1,7 +1,21 @@
1
- import { default as React } from 'react';
1
+ import { default as React, ReactNode } from 'react';
2
2
  import { DataGridPrivateColumnModel, DataGridPrivateDataSourceModel } from '../types/dataGridCoreProps';
3
3
  import { DataGridPrivateApiModel, GirdApiCommon } from '../types/dataGridProps';
4
4
  export declare const initialWindowHeight = 500;
5
+ interface VirtualListProps {
6
+ children: (props: {
7
+ visibleItems: Array<DataGridPrivateDataSourceModel>;
8
+ startColumnIndex: number;
9
+ cumulativeWidths: number[];
10
+ columnEndIndex: number;
11
+ windowSize: {
12
+ width: number;
13
+ height: number;
14
+ };
15
+ }) => ReactNode;
16
+ imeRef: React.RefObject<HTMLTextAreaElement | null>;
17
+ }
18
+ export declare const DynamicVirtualScroll: React.FC<VirtualListProps>;
5
19
  export declare const VirtualItem: React.MemoExoticComponent<({ column, row, rowIndex, }: {
6
20
  column: DataGridPrivateColumnModel;
7
21
  row: DataGridPrivateDataSourceModel;
@@ -0,0 +1,2 @@
1
+ export declare const clampScrollOffset: (value: number, max: number) => number;
2
+ export declare const mapScrollOffset: (value: number, sourceMax: number, targetMax: number) => number;