@stenajs-webui/grid 20.11.2 → 20.11.4

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.
@@ -5,7 +5,7 @@ import { StandardTableConfig } from "../config/StandardTableConfig";
5
5
  import { TableContext } from "../context/StandardTableStateContext";
6
6
  import { StandardTableOnKeyDown, StandardTableOnSortOrderChange } from "../types/StandardTableEvents";
7
7
  import { TableHeadProps } from "../../table-ui/components/table/TableHeadItem";
8
- export interface StandardTableProps<TItem, TColumnKey extends string, TColumnGroupKey extends string> {
8
+ export interface StandardTableProps<TItem extends Record<string, unknown>, TColumnKey extends string, TColumnGroupKey extends string> {
9
9
  /**
10
10
  * Variant of table
11
11
  */
@@ -91,4 +91,4 @@ export interface StandardTableProps<TItem, TColumnKey extends string, TColumnGro
91
91
  onSortOrderChange?: StandardTableOnSortOrderChange<TColumnKey>;
92
92
  }
93
93
  export type StandardTableVariant = "relaxed" | "standard" | "condensed" | "compact";
94
- export declare const StandardTable: <TItem extends Record<string, never>, TColumnKey extends string, TColumnGroupKey extends string>({ tableContext, config, columnGroupOrder, tableId, variant, onKeyDown, onSortOrderChange, appendTooltipTo, ...props }: StandardTableProps<TItem, TColumnKey, TColumnGroupKey>) => React.JSX.Element;
94
+ export declare const StandardTable: <TItem extends Record<string, unknown>, TColumnKey extends string, TColumnGroupKey extends string>({ tableContext, config, columnGroupOrder, tableId, variant, onKeyDown, onSortOrderChange, appendTooltipTo, ...props }: StandardTableProps<TItem, TColumnKey, TColumnGroupKey>) => React.JSX.Element;
@@ -1,5 +1,5 @@
1
1
  import * as React from "react";
2
- export interface StandardTableCellProps<TItem extends Record<string, never>> {
2
+ export interface StandardTableCellProps<TItem extends Record<string, unknown>> {
3
3
  columnId: string;
4
4
  item: TItem;
5
5
  rowIndex: number;
@@ -8,4 +8,4 @@ export interface StandardTableCellProps<TItem extends Record<string, never>> {
8
8
  borderFromGroup?: boolean | string;
9
9
  disableBorderLeft?: boolean;
10
10
  }
11
- export declare const StandardTableCell: React.MemoExoticComponent<(<TItem extends Record<string, never>>({ columnId, item, colIndex, rowIndex, numRows, borderFromGroup, disableBorderLeft, }: StandardTableCellProps<TItem>) => React.JSX.Element)>;
11
+ export declare const StandardTableCell: React.MemoExoticComponent<(<TItem extends Record<string, unknown>>({ columnId, item, colIndex, rowIndex, numRows, borderFromGroup, disableBorderLeft, }: StandardTableCellProps<TItem>) => React.JSX.Element)>;
@@ -1,7 +1,7 @@
1
1
  import * as React from "react";
2
2
  import { StandardTableProps, StandardTableVariant } from "./StandardTable";
3
- interface Props<TItem extends object, TColumnKey extends string, TColumnGroupKey extends string> extends Omit<StandardTableProps<TItem, TColumnKey, TColumnGroupKey>, "tableContext" | "config"> {
3
+ interface Props<TItem extends Record<string, unknown>, TColumnKey extends string, TColumnGroupKey extends string> extends Omit<StandardTableProps<TItem, TColumnKey, TColumnGroupKey>, "tableContext" | "config"> {
4
4
  variant: StandardTableVariant;
5
5
  }
6
- export declare const StandardTableContent: React.MemoExoticComponent<(<TItem extends Record<string, never>, TColumnKey extends string, TColumnGroupKey extends string>({ error, bannerError, loading, items, noItemsLabel, noItemsContentRight, noItemsContentBottom, noItemsHeader, colIndexOffset, rowIndexOffset, variant, errorLabel, }: Props<TItem, TColumnKey, TColumnGroupKey>) => React.JSX.Element)>;
6
+ export declare const StandardTableContent: React.MemoExoticComponent<(<TItem extends Record<string, unknown>, TColumnKey extends string, TColumnGroupKey extends string>({ error, bannerError, loading, items, noItemsLabel, noItemsContentRight, noItemsContentBottom, noItemsHeader, colIndexOffset, rowIndexOffset, variant, errorLabel, }: Props<TItem, TColumnKey, TColumnGroupKey>) => React.JSX.Element)>;
7
7
  export {};
@@ -1,6 +1,6 @@
1
1
  import * as React from "react";
2
2
  import { RefObject } from "react";
3
- export interface StandardTableRowProps<TItem extends Record<string, never>> {
3
+ export interface StandardTableRowProps<TItem extends Record<string, unknown>> {
4
4
  item: TItem;
5
5
  idListForEnabledItems: Array<string>;
6
6
  rowIndex: number;
@@ -9,4 +9,4 @@ export interface StandardTableRowProps<TItem extends Record<string, never>> {
9
9
  alwaysVisible?: boolean;
10
10
  shiftPressedRef: RefObject<boolean>;
11
11
  }
12
- export declare const StandardTableRow: React.MemoExoticComponent<(<TItem extends Record<string, never>>({ item, idListForEnabledItems, rowIndex, numRows, colIndexOffset, alwaysVisible, shiftPressedRef, }: StandardTableRowProps<TItem>) => React.JSX.Element)>;
12
+ export declare const StandardTableRow: React.MemoExoticComponent<(<TItem extends Record<string, unknown>>({ item, idListForEnabledItems, rowIndex, numRows, colIndexOffset, alwaysVisible, shiftPressedRef, }: StandardTableRowProps<TItem>) => React.JSX.Element)>;
@@ -1,10 +1,10 @@
1
1
  import * as React from "react";
2
2
  import { StandardTableVariant } from "./StandardTable";
3
- interface StandardTableContentProps<TItem extends Record<string, never>> {
3
+ interface StandardTableContentProps<TItem extends Record<string, unknown>> {
4
4
  items?: Array<TItem>;
5
5
  colIndexOffset?: number;
6
6
  rowIndexOffset?: number;
7
7
  variant: StandardTableVariant;
8
8
  }
9
- export declare const StandardTableRowList: React.MemoExoticComponent<(<TItem extends Record<string, never>>({ items, colIndexOffset, rowIndexOffset, }: StandardTableContentProps<TItem>) => React.JSX.Element)>;
9
+ export declare const StandardTableRowList: React.MemoExoticComponent<(<TItem extends Record<string, unknown>>({ items, colIndexOffset, rowIndexOffset, }: StandardTableContentProps<TItem>) => React.JSX.Element)>;
10
10
  export {};