@graphty/compact-mantine 0.8.17 → 0.8.18

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.cts CHANGED
@@ -1996,6 +1996,28 @@ export declare interface DataTableProps<TRow extends object> {
1996
1996
  * set of rows and costs a re-sort.
1997
1997
  */
1998
1998
  data: readonly TRow[];
1999
+ /**
2000
+ * How many rows there are in all, when `data` holds only a window of them.
2001
+ *
2002
+ * Set it to show a list too large to hand over whole -- the records of a
2003
+ * large graph, a server-side query. The table then scrolls the length of
2004
+ * `rowCount` rows, draws `data[0]` at position `rowOffset`, and calls
2005
+ * `onRangeChange` as rows come into view so the caller can hand over the
2006
+ * window that holds them. Sorting and searching become the caller's: the
2007
+ * table reports `onSortingChange` and `onFilterChange` and draws `data` in
2008
+ * the order given, and Control+A and Shift ranges select within `data`.
2009
+ *
2010
+ * Left out, `data` is every row and the table sorts and searches it itself.
2011
+ */
2012
+ rowCount?: number;
2013
+ /** Where `data[0]` sits among all `rowCount` rows. Defaults to `0`. */
2014
+ rowOffset?: number;
2015
+ /**
2016
+ * Called with the rows the table is drawing, as positions among all of
2017
+ * them: `start` inclusive, `end` exclusive. With `rowCount`, hand over a
2018
+ * window that covers them.
2019
+ */
2020
+ onRangeChange?: (start: number, end: number) => void;
1999
2021
  /**
2000
2022
  * The columns, in their natural order.
2001
2023
  *
package/dist/index.d.ts CHANGED
@@ -1996,6 +1996,28 @@ export declare interface DataTableProps<TRow extends object> {
1996
1996
  * set of rows and costs a re-sort.
1997
1997
  */
1998
1998
  data: readonly TRow[];
1999
+ /**
2000
+ * How many rows there are in all, when `data` holds only a window of them.
2001
+ *
2002
+ * Set it to show a list too large to hand over whole -- the records of a
2003
+ * large graph, a server-side query. The table then scrolls the length of
2004
+ * `rowCount` rows, draws `data[0]` at position `rowOffset`, and calls
2005
+ * `onRangeChange` as rows come into view so the caller can hand over the
2006
+ * window that holds them. Sorting and searching become the caller's: the
2007
+ * table reports `onSortingChange` and `onFilterChange` and draws `data` in
2008
+ * the order given, and Control+A and Shift ranges select within `data`.
2009
+ *
2010
+ * Left out, `data` is every row and the table sorts and searches it itself.
2011
+ */
2012
+ rowCount?: number;
2013
+ /** Where `data[0]` sits among all `rowCount` rows. Defaults to `0`. */
2014
+ rowOffset?: number;
2015
+ /**
2016
+ * Called with the rows the table is drawing, as positions among all of
2017
+ * them: `start` inclusive, `end` exclusive. With `rowCount`, hand over a
2018
+ * window that covers them.
2019
+ */
2020
+ onRangeChange?: (start: number, end: number) => void;
1999
2021
  /**
2000
2022
  * The columns, in their natural order.
2001
2023
  *