@stenajs-webui/grid 20.9.0 → 20.11.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/features/standard-table/components/StandardTable.d.ts +1 -1
- package/dist/features/standard-table/components/StandardTableCell.d.ts +2 -2
- package/dist/features/standard-table/components/StandardTableContent.d.ts +2 -2
- package/dist/features/standard-table/components/StandardTableRow.d.ts +2 -2
- package/dist/features/standard-table/components/StandardTableRowList.d.ts +2 -2
- package/dist/features/standard-table/features/sorting/MultitypeComparator.d.ts +1 -2
- package/dist/features/standard-table/features/sticky-columns/StickyColumnGroupValidator.d.ts +2 -2
- package/dist/features/standard-table/features/summary-row/components/StandardTableSummaryRow.d.ts +2 -2
- package/dist/features/standard-table/features/summary-row/components/SummaryRowSwitcher.d.ts +2 -2
- package/dist/index.es.js +1816 -1859
- package/dist/index.es.js.map +1 -1
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/package.json +9 -9
|
@@ -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
|
|
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;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
|
-
export interface StandardTableCellProps<TItem extends
|
|
2
|
+
export interface StandardTableCellProps<TItem extends Record<string, never>> {
|
|
3
3
|
columnId: string;
|
|
4
4
|
item: TItem;
|
|
5
5
|
rowIndex: number;
|
|
@@ -8,4 +8,4 @@ export interface StandardTableCellProps<TItem extends {}> {
|
|
|
8
8
|
borderFromGroup?: boolean | string;
|
|
9
9
|
disableBorderLeft?: boolean;
|
|
10
10
|
}
|
|
11
|
-
export declare const StandardTableCell: React.MemoExoticComponent<(<TItem extends
|
|
11
|
+
export declare const StandardTableCell: React.MemoExoticComponent<(<TItem extends Record<string, never>>({ 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
|
|
3
|
+
interface Props<TItem extends object, 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
|
|
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)>;
|
|
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
|
|
3
|
+
export interface StandardTableRowProps<TItem extends Record<string, never>> {
|
|
4
4
|
item: TItem;
|
|
5
5
|
idListForEnabledItems: Array<string>;
|
|
6
6
|
rowIndex: number;
|
|
@@ -9,4 +9,4 @@ export interface StandardTableRowProps<TItem extends {}> {
|
|
|
9
9
|
alwaysVisible?: boolean;
|
|
10
10
|
shiftPressedRef: RefObject<boolean>;
|
|
11
11
|
}
|
|
12
|
-
export declare const StandardTableRow: React.MemoExoticComponent<(<TItem extends
|
|
12
|
+
export declare const StandardTableRow: React.MemoExoticComponent<(<TItem extends Record<string, never>>({ 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
|
|
3
|
+
interface StandardTableContentProps<TItem extends Record<string, never>> {
|
|
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
|
|
9
|
+
export declare const StandardTableRowList: React.MemoExoticComponent<(<TItem extends Record<string, never>>({ items, colIndexOffset, rowIndexOffset, }: StandardTableContentProps<TItem>) => React.JSX.Element)>;
|
|
10
10
|
export {};
|
package/dist/features/standard-table/features/sticky-columns/StickyColumnGroupValidator.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { StandardTableConfig, StandardTableConfigWithGroups } from "../../config/StandardTableConfig";
|
|
2
|
-
export declare const ensureConfigHasValidSticky: <TItem extends
|
|
3
|
-
export declare const ensureNoColumnsAreSticky: <TItem extends
|
|
2
|
+
export declare const ensureConfigHasValidSticky: <TItem extends object, TColumnKey extends string>(config: StandardTableConfig<TItem, TColumnKey>) => void;
|
|
3
|
+
export declare const ensureNoColumnsAreSticky: <TItem extends object, TColumnKey extends string>(config: StandardTableConfig<TItem, TColumnKey>) => void;
|
|
4
4
|
export declare const ensureAllColumnsInGroupHasFixedWidth: <TItem, TColumnKey extends string>(config: StandardTableConfigWithGroups<TItem, TColumnKey>, columnGroupIndex: number) => void;
|
package/dist/features/standard-table/features/summary-row/components/StandardTableSummaryRow.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
|
-
interface StandardTableSummaryRowProps<TItem extends
|
|
2
|
+
interface StandardTableSummaryRowProps<TItem extends object> {
|
|
3
3
|
items: Array<TItem>;
|
|
4
4
|
}
|
|
5
|
-
export declare const StandardTableSummaryRow: React.MemoExoticComponent<(<TItem extends
|
|
5
|
+
export declare const StandardTableSummaryRow: React.MemoExoticComponent<(<TItem extends object>({ items, }: StandardTableSummaryRowProps<TItem>) => React.JSX.Element)>;
|
|
6
6
|
export {};
|
package/dist/features/standard-table/features/summary-row/components/SummaryRowSwitcher.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
|
-
interface SummaryRowSwitcherProps<TItem extends
|
|
2
|
+
interface SummaryRowSwitcherProps<TItem extends object> {
|
|
3
3
|
items: Array<TItem>;
|
|
4
4
|
}
|
|
5
|
-
export declare const SummaryRowSwitcher: <TItem extends
|
|
5
|
+
export declare const SummaryRowSwitcher: <TItem extends object>({ items }: SummaryRowSwitcherProps<TItem>) => React.JSX.Element | null;
|
|
6
6
|
export {};
|