@toolbox-web/grid 1.22.1 → 1.23.0

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.
Files changed (66) hide show
  1. package/README.md +20 -10
  2. package/all.js +2 -2
  3. package/all.js.map +1 -1
  4. package/index.js +1 -1
  5. package/index.js.map +1 -1
  6. package/lib/core/grid.d.ts +88 -1
  7. package/lib/core/grid.d.ts.map +1 -1
  8. package/lib/core/types.d.ts +61 -0
  9. package/lib/core/types.d.ts.map +1 -1
  10. package/lib/plugins/clipboard/index.js.map +1 -1
  11. package/lib/plugins/column-virtualization/index.js.map +1 -1
  12. package/lib/plugins/context-menu/index.js.map +1 -1
  13. package/lib/plugins/editing/EditingPlugin.d.ts +132 -1
  14. package/lib/plugins/editing/EditingPlugin.d.ts.map +1 -1
  15. package/lib/plugins/editing/editors.d.ts.map +1 -1
  16. package/lib/plugins/editing/index.d.ts +1 -0
  17. package/lib/plugins/editing/index.d.ts.map +1 -1
  18. package/lib/plugins/editing/index.js +1 -1
  19. package/lib/plugins/editing/index.js.map +1 -1
  20. package/lib/plugins/editing/internal/dirty-tracking.d.ts +90 -0
  21. package/lib/plugins/editing/internal/dirty-tracking.d.ts.map +1 -0
  22. package/lib/plugins/editing/types.d.ts +82 -0
  23. package/lib/plugins/editing/types.d.ts.map +1 -1
  24. package/lib/plugins/export/index.js.map +1 -1
  25. package/lib/plugins/filtering/FilteringPlugin.d.ts +17 -4
  26. package/lib/plugins/filtering/FilteringPlugin.d.ts.map +1 -1
  27. package/lib/plugins/filtering/index.js +1 -1
  28. package/lib/plugins/filtering/index.js.map +1 -1
  29. package/lib/plugins/grouping-columns/index.js.map +1 -1
  30. package/lib/plugins/grouping-rows/index.js.map +1 -1
  31. package/lib/plugins/master-detail/index.js.map +1 -1
  32. package/lib/plugins/multi-sort/index.js.map +1 -1
  33. package/lib/plugins/pinned-columns/index.js.map +1 -1
  34. package/lib/plugins/pinned-rows/index.js.map +1 -1
  35. package/lib/plugins/pivot/index.js.map +1 -1
  36. package/lib/plugins/print/index.js.map +1 -1
  37. package/lib/plugins/reorder/index.js.map +1 -1
  38. package/lib/plugins/responsive/index.js.map +1 -1
  39. package/lib/plugins/row-reorder/index.js.map +1 -1
  40. package/lib/plugins/selection/index.js.map +1 -1
  41. package/lib/plugins/server-side/index.js.map +1 -1
  42. package/lib/plugins/tree/index.js.map +1 -1
  43. package/lib/plugins/undo-redo/UndoRedoPlugin.d.ts +52 -7
  44. package/lib/plugins/undo-redo/UndoRedoPlugin.d.ts.map +1 -1
  45. package/lib/plugins/undo-redo/history.d.ts +11 -4
  46. package/lib/plugins/undo-redo/history.d.ts.map +1 -1
  47. package/lib/plugins/undo-redo/index.d.ts +1 -1
  48. package/lib/plugins/undo-redo/index.d.ts.map +1 -1
  49. package/lib/plugins/undo-redo/index.js +1 -1
  50. package/lib/plugins/undo-redo/index.js.map +1 -1
  51. package/lib/plugins/undo-redo/types.d.ts +20 -3
  52. package/lib/plugins/undo-redo/types.d.ts.map +1 -1
  53. package/lib/plugins/visibility/index.js.map +1 -1
  54. package/package.json +1 -1
  55. package/public.d.ts +1 -1
  56. package/public.d.ts.map +1 -1
  57. package/umd/grid.all.umd.js +1 -1
  58. package/umd/grid.all.umd.js.map +1 -1
  59. package/umd/grid.umd.js +1 -1
  60. package/umd/grid.umd.js.map +1 -1
  61. package/umd/plugins/editing.umd.js +1 -1
  62. package/umd/plugins/editing.umd.js.map +1 -1
  63. package/umd/plugins/filtering.umd.js +1 -1
  64. package/umd/plugins/filtering.umd.js.map +1 -1
  65. package/umd/plugins/undo-redo.umd.js +1 -1
  66. package/umd/plugins/undo-redo.umd.js.map +1 -1
package/README.md CHANGED
@@ -168,16 +168,17 @@ The grid supports configuration via HTML attributes with JSON-serialized values:
168
168
 
169
169
  ### Properties
170
170
 
171
- | Property | Type | Description |
172
- | ------------- | ----------------------------------- | -------------------------------------------------- |
173
- | `rows` | `T[]` | Data array |
174
- | `columns` | `ColumnConfig[]` | Column definitions (→ `gridConfig.columns`) |
175
- | `gridConfig` | `GridConfig` | Full configuration object (single source of truth) |
176
- | `fitMode` | `'stretch' \| 'fixed'` | Column sizing behavior (→ `gridConfig.fitMode`) |
177
- | `loading` | `boolean \| LoadingContext` | Grid-level loading state |
178
- | `columnState` | `GridColumnState[]` | Get/set column widths, order, visibility, sort |
179
- | `changedRows` | `T[]` (readonly) | Rows with pending edits (requires EditingPlugin) |
180
- | `sortState` | `Map<string, SortState>` (readonly) | Current sort state per column |
171
+ | Property | Type | Description |
172
+ | ------------- | -------------------------------------------------- | -------------------------------------------------- |
173
+ | `rows` | `T[]` | Data array |
174
+ | `columns` | `ColumnConfig[]` | Column definitions (→ `gridConfig.columns`) |
175
+ | `gridConfig` | `GridConfig` | Full configuration object (single source of truth) |
176
+ | `fitMode` | `'stretch' \| 'fixed'` | Column sizing behavior (→ `gridConfig.fitMode`) |
177
+ | `loading` | `boolean \| LoadingContext` | Grid-level loading state |
178
+ | `columnState` | `GridColumnState[]` | Get/set column widths, order, visibility, sort |
179
+ | `changedRows` | `T[]` (readonly) | Rows with pending edits (requires EditingPlugin) |
180
+ | `sortState` | `Map<string, SortState>` (readonly) | Current sort state per column |
181
+ | `focusedCell` | `{ rowIndex, colIndex, field } \| null` (readonly) | Currently focused cell position |
181
182
 
182
183
  ### Methods
183
184
 
@@ -202,6 +203,14 @@ The grid supports configuration via HTML attributes with JSON-serialized values:
202
203
  | `cancelActiveRowEdit()` | `void` | Cancel current row edit |
203
204
  | `resetChangedRows(silent?)` | `void` | Clear change tracking |
204
205
 
206
+ #### Focus & Navigation Methods
207
+
208
+ | Method | Returns | Description |
209
+ | ---------------------------------- | ------- | ----------------------------------- |
210
+ | `focusCell(rowIndex, column)` | `void` | Focus a cell by index or field name |
211
+ | `scrollToRow(rowIndex, options?)` | `void` | Scroll row into view |
212
+ | `scrollToRowById(rowId, options?)` | `void` | Scroll to row by ID |
213
+
205
214
  #### Column Methods
206
215
 
207
216
  | Method | Returns | Description |
@@ -300,6 +309,7 @@ The grid supports configuration via HTML attributes with JSON-serialized values:
300
309
  | `edit-open` | `EditOpenDetail` | Row entered edit mode |
301
310
  | `edit-close` | `EditCloseDetail` | Row left edit mode |
302
311
  | `changed-rows-reset` | `ChangedRowsResetDetail` | Change tracking cleared |
312
+ | `dirty-change` | `DirtyChangeDetail` | Row dirty state changed |
303
313
 
304
314
  #### Deprecated Events
305
315