@sheetxl/grid-react 0.7.5 → 0.7.7
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/LICENSE.md +1 -1
- package/browser/cjs/index.cjs +4 -4
- package/browser/esm/index.mjs +1285 -1265
- package/node/esm/index.mjs +465 -444
- package/package.json +3 -3
- package/types/index.d.ts +6 -6
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sheetxl/grid-react",
|
|
3
3
|
"description": "Grid React - Advanced grid component for React",
|
|
4
|
-
"version": "0.7.
|
|
4
|
+
"version": "0.7.7",
|
|
5
5
|
"license": "SEE LICENSE IN <LICENSE>",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"exports": {
|
|
@@ -41,8 +41,8 @@
|
|
|
41
41
|
"table"
|
|
42
42
|
],
|
|
43
43
|
"dependencies": {
|
|
44
|
-
"@sheetxl/utils": "^0.7.
|
|
45
|
-
"@sheetxl/utils-react": "^0.7.
|
|
44
|
+
"@sheetxl/utils": "^0.7.7",
|
|
45
|
+
"@sheetxl/utils-react": "^0.7.7",
|
|
46
46
|
"clsx": "^2.1.1",
|
|
47
47
|
"react-merge-refs": "^3.0.2",
|
|
48
48
|
"react-use": "^17.6.0",
|
package/types/index.d.ts
CHANGED
|
@@ -5,7 +5,6 @@ import { CellCoords } from '@sheetxl/utils';
|
|
|
5
5
|
import { CellFinder } from '@sheetxl/utils-react';
|
|
6
6
|
import { CellLayout } from '@sheetxl/utils-react';
|
|
7
7
|
import { default as default_2 } from 'react';
|
|
8
|
-
import { Dimensions } from '@sheetxl/utils';
|
|
9
8
|
import { Direction } from '@sheetxl/utils';
|
|
10
9
|
import { HiddenHeadersAt } from '@sheetxl/utils-react';
|
|
11
10
|
import { HorizontalAlignment } from '@sheetxl/utils-react';
|
|
@@ -23,6 +22,7 @@ import { Rectangle } from '@sheetxl/utils';
|
|
|
23
22
|
import { ScrollableViewport } from '@sheetxl/utils-react';
|
|
24
23
|
import { ScrollPaneProps } from '@sheetxl/utils-react';
|
|
25
24
|
import { SelectionCoords } from '@sheetxl/utils';
|
|
25
|
+
import { Size } from '@sheetxl/utils';
|
|
26
26
|
import { TopLeft } from '@sheetxl/utils';
|
|
27
27
|
|
|
28
28
|
export declare interface AnimatedStrokeProps {
|
|
@@ -104,7 +104,7 @@ export declare interface CellEditorProps<CT, DT> extends default_2.HTMLAttribute
|
|
|
104
104
|
*/
|
|
105
105
|
containerBounds?: Bounds;
|
|
106
106
|
disabled?: boolean;
|
|
107
|
-
|
|
107
|
+
setNaturalSize?(size: Size): void;
|
|
108
108
|
/**
|
|
109
109
|
* Callback to enable navigation after submit
|
|
110
110
|
* @param direction
|
|
@@ -601,12 +601,12 @@ export declare interface GridView {
|
|
|
601
601
|
* Useful for scanning. Contains a list of row offsets that are visible.
|
|
602
602
|
* Guaranteed to be non-null but may be zero length if no rows are visible.
|
|
603
603
|
*/
|
|
604
|
-
getVisibleRows(): number[];
|
|
604
|
+
getVisibleRows(): readonly number[];
|
|
605
605
|
/**
|
|
606
606
|
* Useful for scanning. Contains a list of column offsets that are visible.
|
|
607
607
|
* Guaranteed to be non-null but may be zero length if no column are visible.
|
|
608
608
|
*/
|
|
609
|
-
getVisibleColumns(): number[];
|
|
609
|
+
getVisibleColumns(): readonly number[];
|
|
610
610
|
/**
|
|
611
611
|
* Returns the SizedOffsets for columns.
|
|
612
612
|
*/
|
|
@@ -680,11 +680,11 @@ export declare interface GridView {
|
|
|
680
680
|
/**
|
|
681
681
|
* Returns the total size of all rendered values in pixels.
|
|
682
682
|
*/
|
|
683
|
-
getTotalSize():
|
|
683
|
+
getTotalSize(): Size;
|
|
684
684
|
/**
|
|
685
685
|
* This is the size for all views (but not including the headers)
|
|
686
686
|
*/
|
|
687
|
-
getViewportSize():
|
|
687
|
+
getViewportSize(): Size;
|
|
688
688
|
/**
|
|
689
689
|
* Allows for access to all current views.
|
|
690
690
|
*/
|