@toolbox-web/grid 2.4.1 → 2.5.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 (38) hide show
  1. package/all.js +1 -1
  2. package/all.js.map +1 -1
  3. package/index.js +1 -1
  4. package/index.js.map +1 -1
  5. package/lib/core/types.d.ts +26 -0
  6. package/lib/plugins/clipboard/index.js.map +1 -1
  7. package/lib/plugins/column-virtualization/index.js.map +1 -1
  8. package/lib/plugins/context-menu/index.js.map +1 -1
  9. package/lib/plugins/editing/index.js +1 -1
  10. package/lib/plugins/editing/index.js.map +1 -1
  11. package/lib/plugins/editing/internal/helpers.d.ts +17 -0
  12. package/lib/plugins/export/index.js.map +1 -1
  13. package/lib/plugins/filtering/index.js.map +1 -1
  14. package/lib/plugins/grouping-columns/index.js.map +1 -1
  15. package/lib/plugins/grouping-rows/index.js.map +1 -1
  16. package/lib/plugins/master-detail/index.js.map +1 -1
  17. package/lib/plugins/multi-sort/index.js.map +1 -1
  18. package/lib/plugins/pinned-columns/index.js.map +1 -1
  19. package/lib/plugins/pinned-rows/index.js.map +1 -1
  20. package/lib/plugins/pivot/index.js.map +1 -1
  21. package/lib/plugins/print/index.js.map +1 -1
  22. package/lib/plugins/reorder-columns/index.js.map +1 -1
  23. package/lib/plugins/reorder-rows/index.js.map +1 -1
  24. package/lib/plugins/responsive/index.js.map +1 -1
  25. package/lib/plugins/row-drag-drop/index.js.map +1 -1
  26. package/lib/plugins/selection/index.js.map +1 -1
  27. package/lib/plugins/server-side/index.js.map +1 -1
  28. package/lib/plugins/tooltip/index.js.map +1 -1
  29. package/lib/plugins/tree/index.js.map +1 -1
  30. package/lib/plugins/undo-redo/index.js.map +1 -1
  31. package/lib/plugins/visibility/index.js.map +1 -1
  32. package/package.json +1 -1
  33. package/umd/grid.all.umd.js +1 -1
  34. package/umd/grid.all.umd.js.map +1 -1
  35. package/umd/grid.umd.js +1 -1
  36. package/umd/grid.umd.js.map +1 -1
  37. package/umd/plugins/editing.umd.js +1 -1
  38. package/umd/plugins/editing.umd.js.map +1 -1
@@ -1262,6 +1262,32 @@ export interface ColumnEditorContext<TRow = any, TValue = any> {
1262
1262
  * ```
1263
1263
  */
1264
1264
  onValueChange?: (callback: (newValue: TValue) => void) => void;
1265
+ /**
1266
+ * The grid element that owns this editor.
1267
+ *
1268
+ * Use to access public grid API from custom editors — e.g.
1269
+ * `grid.registerExternalFocusContainer(panel)` so the grid treats focus
1270
+ * inside a portal-rendered overlay (Autocomplete, date picker, color
1271
+ * picker) as "still inside the editor" and does not exit row edit on
1272
+ * click. Mirrors {@link CellRenderContext.grid} for renderers.
1273
+ *
1274
+ * Always populated when the editor is mounted via the grid's editing
1275
+ * pipeline. Optional in the type for backwards compatibility with
1276
+ * factory functions written against the original signature.
1277
+ *
1278
+ * @example
1279
+ * ```typescript
1280
+ * const editor: ColumnEditorSpec = (ctx: ColumnEditorContext) => {
1281
+ * const panel = document.createElement('div');
1282
+ * document.body.appendChild(panel);
1283
+ * ctx.grid?.registerExternalFocusContainer(panel);
1284
+ * // ...
1285
+ * };
1286
+ * ```
1287
+ *
1288
+ * @see {@link CellRenderContext.grid}
1289
+ */
1290
+ grid?: DataGridElement;
1265
1291
  }
1266
1292
  /**
1267
1293
  * Context passed to custom view renderers (pure display – no commit helpers).