@iyulab/flex-table 0.50.1 → 0.50.3
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/CHANGELOG.md +15 -0
- package/README.md +5 -4
- package/package.json +1 -1
- package/skills/iyulab-flex-table/references/styling.md +1 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,20 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [0.50.3] - 2026-10-06
|
|
4
|
+
|
|
5
|
+
### Documentation
|
|
6
|
+
|
|
7
|
+
- README Quick Start looks the table up by its tag (`document.querySelector('flex-table')`), so the element is
|
|
8
|
+
typed in TypeScript and its `columns` / `data` are checked — `getElementById` gives a plain `HTMLElement`.
|
|
9
|
+
|
|
10
|
+
## [0.50.2] - 2026-10-06
|
|
11
|
+
|
|
12
|
+
### Documentation
|
|
13
|
+
|
|
14
|
+
- Shift+F10 and the context-menu key on the active cell open the cell menu at that cell (and fire
|
|
15
|
+
`context-menu`) — documented and covered by a test. It works since 0.50.1, whose roving focus puts the
|
|
16
|
+
focus on the cell the browser opens the menu for.
|
|
17
|
+
|
|
3
18
|
## [0.50.1] - 2026-10-06
|
|
4
19
|
|
|
5
20
|
### Fixed
|
package/README.md
CHANGED
|
@@ -20,12 +20,12 @@ npm install @iyulab/flex-table
|
|
|
20
20
|
|
|
21
21
|
```html
|
|
22
22
|
<!-- The table is its own scroll container, so give it a height — see Sizing below. -->
|
|
23
|
-
<flex-table
|
|
23
|
+
<flex-table style="height: 400px" row-height="32" show-row-numbers></flex-table>
|
|
24
24
|
|
|
25
25
|
<script type="module">
|
|
26
26
|
import '@iyulab/flex-table';
|
|
27
27
|
|
|
28
|
-
const table = document.
|
|
28
|
+
const table = document.querySelector('flex-table'); // the tag gives the element its type
|
|
29
29
|
|
|
30
30
|
table.columns = [
|
|
31
31
|
{ key: 'name', label: 'Name', type: 'text', width: 200 },
|
|
@@ -65,7 +65,7 @@ npm install @iyulab/flex-table
|
|
|
65
65
|
- **Row Numbers** — Optional `show-row-numbers` attribute with sticky positioning
|
|
66
66
|
- **Footer Row** — Summary/aggregate row via `footer-data` property
|
|
67
67
|
- **Data Mode** — Client-side or server-side sorting/filtering (`dataMode`)
|
|
68
|
-
- **Context Menu** — `context-menu` event for custom right-click menus
|
|
68
|
+
- **Context Menu** — `context-menu` event for custom right-click menus; Shift+F10 or the context-menu key opens it on the active cell
|
|
69
69
|
- **React Wrapper** — `@iyulab/flex-table/react` subpath for idiomatic React usage
|
|
70
70
|
- **ARIA** — `role="grid"` with roving focus (the focus sits on the active cell or header cell, so screen readers announce each move), `aria-sort`, `aria-selected`, `aria-readonly`, `aria-invalid`, `aria-rowcount`, `aria-colcount`, `aria-rowindex`, `aria-colindex`
|
|
71
71
|
|
|
@@ -351,7 +351,7 @@ type-checks without a cast. The React wrapper's `on*` props carry the same types
|
|
|
351
351
|
| Event | Detail | Description |
|
|
352
352
|
|-------|--------|-------------|
|
|
353
353
|
| `undo-state-change` | `{ canUndo, canRedo }` | Undo/redo availability changed |
|
|
354
|
-
| `context-menu` | `{ x, y, row, col, key, value, rowData }` | Right-click on cell. Cancelable — `preventDefault()` suppresses the built-in menu |
|
|
354
|
+
| `context-menu` | `{ x, y, row, col, key, value, rowData }` | Right-click on a cell, or Shift+F10 / the context-menu key on the active cell. Cancelable — `preventDefault()` suppresses the built-in menu |
|
|
355
355
|
|
|
356
356
|
## CSS Custom Properties
|
|
357
357
|
|
|
@@ -458,6 +458,7 @@ package dependency; CSS custom properties are resolved at render time, not impor
|
|
|
458
458
|
| ArrowLeft / ArrowRight / Home / End (header row) | Move along the header; ArrowDown returns to the first row |
|
|
459
459
|
| Enter / Space (header row) | Sort the column (ascending → descending → none); with Shift, add it to the sort |
|
|
460
460
|
| Alt+ArrowDown or the context-menu key (header row) | Open the column menu |
|
|
461
|
+
| Shift+F10 or the context-menu key (a body cell) | Open the cell menu (`show-context-menu`) at the active cell / fire `context-menu` |
|
|
461
462
|
| Enter / Space on a column menu button | Open the column menu |
|
|
462
463
|
| ArrowUp / ArrowDown / Home / End (column menu) | Move between menu items |
|
|
463
464
|
| Escape (column menu) | Close the menu and return focus to where it was opened from |
|
package/package.json
CHANGED
|
@@ -72,6 +72,7 @@ flex-table {
|
|
|
72
72
|
| ArrowUp on the first row | Move onto the header row (arrows / Home / End along it, ArrowDown back) |
|
|
73
73
|
| Enter / Space on a header cell | Sort (Shift adds to the sort) |
|
|
74
74
|
| Alt+ArrowDown or context-menu key on a header cell | Open the column menu |
|
|
75
|
+
| Shift+F10 or context-menu key on a body cell | Open the cell menu at the active cell (fires `context-menu`) |
|
|
75
76
|
| Home / End, Ctrl+Home / Ctrl+End | Row start/end, table start/end |
|
|
76
77
|
| Shift+Arrow, Shift+Click | Extend range selection |
|
|
77
78
|
| Shift+Space | Select / deselect the active cell's row (`selectable`; row checkboxes are not Tab stops) |
|