@gridkitjs/dom 0.2.0 → 0.2.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 +21 -14
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
The browser behaviours a GridKit renderer needs, as framework-free
|
|
4
4
|
TypeScript: pointer gestures, keyboard focus movement, the observers behind
|
|
5
5
|
fit-to-width and infinite scroll, the row virtualizer's measuring, overlays
|
|
6
|
-
and the menus shown in them, and a live-region announcer. Built on
|
|
6
|
+
and the menus shown in them, toolbars, and a live-region announcer. Built on
|
|
7
7
|
[`@gridkitjs/core`](https://www.npmjs.com/package/@gridkitjs/core) and used by
|
|
8
8
|
[`@gridkitjs/react`](https://www.npmjs.com/package/@gridkitjs/react).
|
|
9
9
|
|
|
@@ -36,19 +36,26 @@ disconnect();
|
|
|
36
36
|
announcer.destroy();
|
|
37
37
|
```
|
|
38
38
|
|
|
39
|
-
| Behaviour | What it does
|
|
40
|
-
| -------------------------- |
|
|
41
|
-
| `createLiveAnnouncer` | A polite live region for announcements no visual cue can carry.
|
|
42
|
-
| `observeElementWidth` | Reports an element's width, now and on every change.
|
|
43
|
-
| `attachInfiniteScroll` | Calls `onLoadMore` as a sentinel row nears the bottom of the body.
|
|
44
|
-
| `startColumnResizeGesture` | Drags a column's edge into a new width.
|
|
45
|
-
| `startDragReorder` | Drags a header or chip to a new place, with the drop-target hit-tests.
|
|
46
|
-
| `createRowVirtualizer` | Windows rows of any height down to those near the scroll position.
|
|
47
|
-
| `createGridFocus` | Keeps the grid's single tab stop and moves the browser's focus with the keys.
|
|
48
|
-
| `bodyCellFrom` and others | Resolve a delegated body event to the cell, row or group header it addresses.
|
|
49
|
-
| `attachOverlay` | Positions a panel beside an anchor or point, and reports when to dismiss it.
|
|
50
|
-
| `
|
|
51
|
-
| `
|
|
39
|
+
| Behaviour | What it does |
|
|
40
|
+
| -------------------------- | ---------------------------------------------------------------------------------------------- |
|
|
41
|
+
| `createLiveAnnouncer` | A polite live region for announcements no visual cue can carry. |
|
|
42
|
+
| `observeElementWidth` | Reports an element's width, now and on every change. |
|
|
43
|
+
| `attachInfiniteScroll` | Calls `onLoadMore` as a sentinel row nears the bottom of the body. |
|
|
44
|
+
| `startColumnResizeGesture` | Drags a column's edge into a new width. |
|
|
45
|
+
| `startDragReorder` | Drags a header or chip to a new place, with the drop-target hit-tests. |
|
|
46
|
+
| `createRowVirtualizer` | Windows rows of any height down to those near the scroll position. |
|
|
47
|
+
| `createGridFocus` | Keeps the grid's single tab stop and moves the browser's focus with the keys. |
|
|
48
|
+
| `bodyCellFrom` and others | Resolve a delegated body event to the cell, row or group header it addresses. |
|
|
49
|
+
| `attachOverlay` | Positions a panel beside an anchor or point, and reports when to dismiss it. |
|
|
50
|
+
| `placeOverlay` | The placement on its own: pure arithmetic over boxes. |
|
|
51
|
+
| `attachMenu` | Moves a menu's focus by key, typeahead and pointer, and reports choices. |
|
|
52
|
+
| `attachContextMenuTrigger` | Reports a right-click, a touch long-press, Shift+F10 or the ContextMenu key, once per gesture. |
|
|
53
|
+
| `attachToolbar` | Makes a toolbar one tab stop that the arrow keys move within. |
|
|
54
|
+
| `observeToolbarOverflow` | Reports how many of a toolbar's entries fit, for the rest to go in "More". |
|
|
55
|
+
|
|
56
|
+
Overlays stack in the order they attach: Escape and outside clicks reach the
|
|
57
|
+
topmost first, and detaching one closes every overlay opened above it, so a
|
|
58
|
+
submenu never outlives its menu.
|
|
52
59
|
|
|
53
60
|
Full documentation: [github.com/blagojablazhevski/gridkit](https://github.com/blagojablazhevski/gridkit#readme)
|
|
54
61
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gridkitjs/dom",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.1",
|
|
4
4
|
"description": "Framework-free browser behaviours for GridKit renderers: gestures, focus, observers, virtualization, overlays and announcements.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Blagoja Blazhevski",
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
"README.md"
|
|
38
38
|
],
|
|
39
39
|
"dependencies": {
|
|
40
|
-
"@gridkitjs/core": "0.12.
|
|
40
|
+
"@gridkitjs/core": "0.12.1"
|
|
41
41
|
},
|
|
42
42
|
"devDependencies": {
|
|
43
43
|
"tsup": "^8.5.1",
|