@gridkitjs/react 0.11.0 → 0.11.1
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/README.md +11 -1
- package/dist/index.d.ts +3 -3
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
# @gridkitjs/react
|
|
2
2
|
|
|
3
3
|
React data-grid components built on
|
|
4
|
-
[`@gridkitjs/core`](https://www.npmjs.com/package/@gridkitjs/core)
|
|
4
|
+
[`@gridkitjs/core`](https://www.npmjs.com/package/@gridkitjs/core) for the
|
|
5
|
+
grid's logic and [`@gridkitjs/dom`](https://www.npmjs.com/package/@gridkitjs/dom)
|
|
6
|
+
for its browser behaviours. Both are installed with it.
|
|
5
7
|
|
|
6
8
|
> **Early development.** The API is still moving and may break between minor
|
|
7
9
|
> versions.
|
|
@@ -58,6 +60,14 @@ The grid is an ARIA grid: one tab stop, with the arrow keys moving cell to cell
|
|
|
58
60
|
within it, `Ctrl+Arrow` reordering a column and `Alt+Arrow` resizing one. Name
|
|
59
61
|
it with `label`, or a screen reader announces only "grid".
|
|
60
62
|
|
|
63
|
+
`contextMenu` gives headers, cells and group rows a menu of their own — sort,
|
|
64
|
+
group, autofit, hide and choose columns, select and clear, expand and collapse
|
|
65
|
+
— and `toolbar` puts a toolbar above the grid, with a search box, "Clear
|
|
66
|
+
filters" and "Choose columns" by default. Both list built-in commands by id,
|
|
67
|
+
and `commands` adds your own beside them; the column chooser shows and hides
|
|
68
|
+
columns from either. `messages` translates every string the grid shows or
|
|
69
|
+
announces, and `locale` formats dates and numbers.
|
|
70
|
+
|
|
61
71
|
Requires React 19.
|
|
62
72
|
|
|
63
73
|
Full documentation: [github.com/blagojablazhevski/gridkit](https://github.com/blagojablazhevski/gridkit#readme)
|
package/dist/index.d.ts
CHANGED
|
@@ -126,7 +126,7 @@ interface DataGridApi<Row> {
|
|
|
126
126
|
* callbacks once for the whole call, and none when nothing changed.
|
|
127
127
|
*/
|
|
128
128
|
selectRows(rowIds: readonly string[], intent?: "replace" | "toggle"): void;
|
|
129
|
-
/** Expands every group at once
|
|
129
|
+
/** Expands every group at once, as the `group.expandAll` command does. */
|
|
130
130
|
expandAllGroups(): void;
|
|
131
131
|
/** Collapses every group currently shown at once — see `collapseAllGroups` in `@gridkitjs/core` for what "currently shown" means for a group already nested under a collapsed one. */
|
|
132
132
|
collapseAllGroups(): void;
|
|
@@ -443,8 +443,8 @@ interface FilterStateApi<Row> {
|
|
|
443
443
|
}
|
|
444
444
|
/**
|
|
445
445
|
* Reactive filter state read off a mounted `DataGrid`'s `ref`, for a filter
|
|
446
|
-
* bar or search box living outside the grid's own DOM
|
|
447
|
-
*
|
|
446
|
+
* bar or search box living outside the grid's own DOM, which sees every change
|
|
447
|
+
* however it was made — the toolbar's search box included. `setFilter`
|
|
448
448
|
* replaces the whole filter and sends the grid back to its first page.
|
|
449
449
|
*
|
|
450
450
|
* Before the grid mounts, `filter` reads as an empty array and `setFilter`
|