@jielga/tmdatagrid 2.0.1 → 2.1.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.
package/dist/index.d.ts CHANGED
@@ -2549,6 +2549,16 @@ type UseTMDataGridOptions<TData extends RowData> = Omit<TableOptions<TMDataGridF
2549
2549
  * state. An approximate value is enough.
2550
2550
  */
2551
2551
  renderDetailsEstHeight?: number;
2552
+ /**
2553
+ * Which edge the details lane sits on. Defaults to `"left"`.
2554
+ *
2555
+ * `"left"` pins the chevron after the row number, checkbox and tree lanes,
2556
+ * before every column of yours. `"right"` pins it after every column of
2557
+ * yours, inside the edit lane, so the chevron closes the row the way an
2558
+ * accordion's does. On either edge it stays a structural lane: the user
2559
+ * cannot move, hide or unpin it.
2560
+ */
2561
+ detailsColumnPosition?: "left" | "right";
2552
2562
  /**
2553
2563
  * Rows the virtualizer keeps mounted above and below the viewport. Defaults
2554
2564
  * to 6.
@@ -2570,7 +2580,7 @@ type UseTMDataGridOptions<TData extends RowData> = Omit<TableOptions<TMDataGridF
2570
2580
  * flag on, so `<TMDataGrid.Footer />` renders its pager without further
2571
2581
  * options.
2572
2582
  */
2573
- declare function useTMDataGrid<TData extends RowData>({ persist, labels: labelsOverride, enableColumnOrdering, enablePagination, resetPageOnQueryChange, enableRowNumbers, selectionMode, showSelectedBackground, defaultHighlightedRowId, onHighlightedRowChange, cellSelection, onFocusedCellChange, filters: filterOptions, exportOptions: exportOptionsOverride, editing, renderDetails, renderDetailsEstHeight, overscan, ...options }: UseTMDataGridOptions<TData>): TMDataGridApi<TData>;
2583
+ declare function useTMDataGrid<TData extends RowData>({ persist, labels: labelsOverride, enableColumnOrdering, enablePagination, resetPageOnQueryChange, enableRowNumbers, selectionMode, showSelectedBackground, defaultHighlightedRowId, onHighlightedRowChange, cellSelection, onFocusedCellChange, filters: filterOptions, exportOptions: exportOptionsOverride, editing, renderDetails, renderDetailsEstHeight, detailsColumnPosition, overscan, ...options }: UseTMDataGridOptions<TData>): TMDataGridApi<TData>;
2574
2584
  /**
2575
2585
  * Sends the user to a column's filter control, seeding an empty filter when
2576
2586
  * the column has none yet - what "Filter" in the column menu and a click on a