@guiexpert/table 1.1.108 → 1.1.110
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 +7 -0
- package/index.cjs +28 -28
- package/index.d.ts +5 -0
- package/index.js +2558 -2145
- package/lib/table/column-drag/column-auto-width-context.if.d.ts +29 -0
- package/lib/table/column-drag/column-auto-width-options.d.ts +24 -0
- package/lib/table/column-drag/column-auto-width-options.if.d.ts +35 -0
- package/lib/table/column-drag/column-order.d.ts +38 -0
- package/lib/table/column-drag/column-width-measurer.d.ts +26 -0
- package/lib/table/data/common/event/ge-column-move-event.d.ts +56 -0
- package/lib/table/data/common/event/ge-column-resize-event.d.ts +72 -0
- package/lib/table/data/common/row-number-column-def.d.ts +4 -0
- package/lib/table/data/options/table-options.d.ts +3 -0
- package/lib/table/data/options/table-options.if.d.ts +21 -2
- package/lib/table/data/tablemodel/column/column-def.d.ts +8 -0
- package/lib/table/data/tablemodel/column/column-def.if.d.ts +22 -0
- package/lib/table/event-adapter.d.ts +10 -0
- package/lib/table/event-listener.if.d.ts +30 -0
- package/lib/table/render-scope.d.ts +9 -1
- package/lib/table/table-api.d.ts +50 -1
- package/lib/table/table-scope.d.ts +70 -2
- package/llms.txt +31 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -79,6 +79,10 @@ This is the UI-agnostic table component for your next web app. 😊
|
|
|
79
79
|
- Customizable Look & Feel (via CSS variables)
|
|
80
80
|
- Row sorting
|
|
81
81
|
- Column Reordering (Drag and Drop)
|
|
82
|
+
- Column drag events and locks: `onColumnResizeEnd` / `onColumnMoveEnd` once per drag (after the change – save the
|
|
83
|
+
layout there), `ColumnDef.resizable: false` / `movable: false` per column, a column stays in its fixed area, a double
|
|
84
|
+
click on the resize handle fits the width (`columnAutoWidth`, `tableApi.autoResizeColumn()`, flat with millions of
|
|
85
|
+
rows) – since 1.1.110
|
|
82
86
|
- State persistence: column layout (width, order, visibility), sorting, scroll position, tree, checked and selected
|
|
83
87
|
rows, header groups – in `localStorage` (`autoRestoreOptions`) or on your server (`tableApi.getState()` /
|
|
84
88
|
`applyState()`, `initialState`, `onStateChanged`); stored by property and row id, never by index – since 1.1.92
|
|
@@ -102,6 +106,9 @@ This is the UI-agnostic table component for your next web app. 😊
|
|
|
102
106
|
- **Own keys** (Delete, Enter): `keydown` on the host + `tableApi.getActiveCell()` – there is no keyboard event.
|
|
103
107
|
- **Selected rows:** `selectionModel.getMergedRowIndices(n)` → `tableApi.getBodyModel().getRowByIndex(i)` (pass your own
|
|
104
108
|
`SelectionModel` – the default type is `"none"`).
|
|
109
|
+
- **Save the column layout when the user drags a column:** `onColumnResizeEnd` / `onColumnMoveEnd` (wrappers
|
|
110
|
+
`columnResizeEnd`, `columnMoveEnd`) – once per drag, after the change, only for the user (since 1.1.110). Lock one
|
|
111
|
+
column: `ColumnDef.resizable: false`, `movable: false`.
|
|
105
112
|
- **AI assistants:** `llms.txt` in this package – recipes and pitfalls, every snippet compiled against the API.
|
|
106
113
|
- **Nothing visible?** The host div needs a fixed height and the stylesheet `@guiexpert/table/css/main.css`.
|
|
107
114
|
|