@graphty/compact-mantine 0.8.16 → 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
@@ -821,6 +821,13 @@ export declare interface CompactMantineLabels {
821
821
  closePanel: string;
822
822
  /** Accessible name of a tabbed pop-out panel when its first tab has no label. */
823
823
  settings: string;
824
+ /**
825
+ * Accessible name of the eye button inside a password field that shows or
826
+ * hides what was typed. One name in both states: the button reports whether
827
+ * the text is showing through its pressed state, not by renaming itself.
828
+ * Never drawn; the button shows only the eye glyph.
829
+ */
830
+ passwordReveal: string;
824
831
  /**
825
832
  * Spells a whole number as an ordinal, given its plural category.
826
833
  *
@@ -889,7 +896,7 @@ export declare const compactTheme: MantineTheme;
889
896
  * For most use cases, use `compactTheme` instead which is a full merged theme.
890
897
  */
891
898
  export declare const compactThemeOverride: {
892
- focusRing?: "auto" | "always" | "never" | undefined;
899
+ focusRing?: "auto" | "never" | "always" | undefined;
893
900
  scale?: number | undefined;
894
901
  fontSmoothing?: boolean | undefined;
895
902
  white?: string | undefined;
@@ -1989,6 +1996,28 @@ export declare interface DataTableProps<TRow extends object> {
1989
1996
  * set of rows and costs a re-sort.
1990
1997
  */
1991
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;
1992
2021
  /**
1993
2022
  * The columns, in their natural order.
1994
2023
  *
package/dist/index.d.ts CHANGED
@@ -821,6 +821,13 @@ export declare interface CompactMantineLabels {
821
821
  closePanel: string;
822
822
  /** Accessible name of a tabbed pop-out panel when its first tab has no label. */
823
823
  settings: string;
824
+ /**
825
+ * Accessible name of the eye button inside a password field that shows or
826
+ * hides what was typed. One name in both states: the button reports whether
827
+ * the text is showing through its pressed state, not by renaming itself.
828
+ * Never drawn; the button shows only the eye glyph.
829
+ */
830
+ passwordReveal: string;
824
831
  /**
825
832
  * Spells a whole number as an ordinal, given its plural category.
826
833
  *
@@ -889,7 +896,7 @@ export declare const compactTheme: MantineTheme;
889
896
  * For most use cases, use `compactTheme` instead which is a full merged theme.
890
897
  */
891
898
  export declare const compactThemeOverride: {
892
- focusRing?: "auto" | "always" | "never" | undefined;
899
+ focusRing?: "auto" | "never" | "always" | undefined;
893
900
  scale?: number | undefined;
894
901
  fontSmoothing?: boolean | undefined;
895
902
  white?: string | undefined;
@@ -1989,6 +1996,28 @@ export declare interface DataTableProps<TRow extends object> {
1989
1996
  * set of rows and costs a re-sort.
1990
1997
  */
1991
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;
1992
2021
  /**
1993
2022
  * The columns, in their natural order.
1994
2023
  *