@guiexpert/table 1.1.114 → 1.1.116
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 +10 -0
- package/index.cjs +39 -39
- package/index.d.ts +4 -0
- package/index.js +3129 -2691
- package/lib/table/data/common/event/ge-cell-activate-event.d.ts +65 -0
- package/lib/table/data/options/table-options.d.ts +3 -0
- package/lib/table/data/options/table-options.if.d.ts +16 -0
- package/lib/table/data/tablemodel/areamodel/area-model.if.d.ts +14 -0
- package/lib/table/data/tablemodel/areamodel/cover-grid-body-model.d.ts +37 -3
- package/lib/table/data/tablemodel/areamodel/tile-layout.if.d.ts +55 -0
- package/lib/table/event-adapter.d.ts +3 -0
- package/lib/table/event-listener.if.d.ts +21 -0
- package/lib/table/factory/cover-grid-factory.d.ts +28 -7
- package/lib/table/focus/focus-frame.type.d.ts +16 -0
- package/lib/table/focus/focus-model.d.ts +4 -0
- package/lib/table/focus/focus.type.d.ts +4 -0
- package/lib/table/mouse-handler.d.ts +10 -0
- package/lib/table/render-scope.d.ts +6 -0
- package/lib/table/service/convenience-dom.service.d.ts +1 -1
- package/lib/table/state/table-state.if.d.ts +4 -0
- package/lib/table/state/table-state.service.d.ts +10 -0
- package/lib/table/table-scope.d.ts +91 -0
- package/lib/table/tile-navigation/tile-navigation.d.ts +81 -0
- package/llms.txt +65 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -89,6 +89,10 @@ This is the UI-agnostic table component for your next web app. 😊
|
|
|
89
89
|
visibility picker with `ColumnDef.hideable: false` locks); composes with `externalFilterFunction` and `appendRows()`,
|
|
90
90
|
persists in `TableStateIf` (`autoRestoreFilterState`), and supports server-side filtering (`columnFilter: { managed:
|
|
91
91
|
false }`) – since 1.1.114
|
|
92
|
+
- "Open" a row or a tile with Enter **and** double click: one event `onCellActivated` (wrappers `cellActivated`) in
|
|
93
|
+
every table. Cover grid with the keyboard: the arrow keys move from item to item (wrap at the end of a row, empty
|
|
94
|
+
tiles skipped), Home/End, Page Up/Down, the focus follows the item after sorting, filtering and resizing. Focus
|
|
95
|
+
frame: `focusFrame: "always" | "keyboard" | "never"` – since 1.1.115
|
|
92
96
|
- State persistence: column layout (width, order, visibility), sorting, scroll position, tree, checked and selected
|
|
93
97
|
rows, header groups – in `localStorage` (`autoRestoreOptions`) or on your server (`tableApi.getState()` /
|
|
94
98
|
`applyState()`, `initialState`, `onStateChanged`); stored by property and row id, never by index – since 1.1.92
|
|
@@ -118,6 +122,12 @@ This is the UI-agnostic table component for your next web app. 😊
|
|
|
118
122
|
- **Built-in column filters, value checklist or column chooser:** `filterRow: true`, `columnFilterMenu: true`,
|
|
119
123
|
`tableApi.showColumnChooser(button)` (since 1.1.114); `onFilterChanged` (wrapper `filterChanged`), server-side mode
|
|
120
124
|
via `columnFilter: { managed: false }`.
|
|
125
|
+
- **Open a row or a cover with Enter or a double click:** `listener.onCellActivated = evt => open(evt.row ?? evt.value)`
|
|
126
|
+
(wrappers `cellActivated`, since 1.1.115) – one handler for keyboard and mouse.
|
|
127
|
+
- **Hide the focus frame:** `tableOptions.focusFrame: "never"`, or `"keyboard"` to show it only while the table is used
|
|
128
|
+
with the keyboard (since 1.1.115) – not with CSS.
|
|
129
|
+
- **Cover grid warns "the body model has no row objects"?** Fixed in 1.1.116 – the scroll state stores the first
|
|
130
|
+
visible item, no warning. Do not set `getRowId: (_row, rowIndex) => rowIndex` for a cover grid.
|
|
121
131
|
- **AI assistants:** `llms.txt` in this package – recipes and pitfalls, every snippet compiled against the API.
|
|
122
132
|
- **Nothing visible?** The host div needs a fixed height and the stylesheet `@guiexpert/table/css/main.css`.
|
|
123
133
|
|