@stenajs-webui/grid 20.8.0 → 20.9.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 +2 -1
- package/dist/features/standard-table/components/StandardTableCell.d.ts +1 -1
- package/dist/features/standard-table/components/StandardTableContent.d.ts +1 -1
- package/dist/features/standard-table/components/StandardTableHeadRow.d.ts +1 -1
- package/dist/features/standard-table/components/StandardTableRow.d.ts +1 -1
- package/dist/features/standard-table/components/StandardTableRowExpansion.d.ts +2 -2
- package/dist/features/standard-table/components/StandardTableRowList.d.ts +1 -1
- package/dist/features/standard-table/components/TrWithHoverBackground.d.ts +1 -1
- package/dist/features/standard-table/features/column-groups/ColumnInGroup.d.ts +2 -2
- package/dist/features/standard-table/features/expand-collapse/StandardTableRowExpandButton.d.ts +2 -2
- package/dist/features/standard-table/features/summary-row/components/StandardTableSummaryRow.d.ts +1 -1
- package/dist/features/standard-table/features/summary-row/components/SummaryCell.d.ts +1 -1
- package/dist/features/standard-table/features/summary-row/components/SummaryRowSwitcher.d.ts +2 -2
- package/dist/features/table-ui/components/cells/EditableTextCellWithCrudAndModified.d.ts +2 -2
- package/package.json +17 -17
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { ResultListBannerState } from "@stenajs-webui/elements";
|
|
2
|
+
import * as React from "react";
|
|
2
3
|
import { ReactNode } from "react";
|
|
3
4
|
import { StandardTableConfig } from "../config/StandardTableConfig";
|
|
4
5
|
import { TableContext } from "../context/StandardTableStateContext";
|
|
@@ -90,4 +91,4 @@ export interface StandardTableProps<TItem, TColumnKey extends string, TColumnGro
|
|
|
90
91
|
onSortOrderChange?: StandardTableOnSortOrderChange<TColumnKey>;
|
|
91
92
|
}
|
|
92
93
|
export type StandardTableVariant = "relaxed" | "standard" | "condensed" | "compact";
|
|
93
|
-
export declare const StandardTable: <TItem extends {}, TColumnKey extends string, TColumnGroupKey extends string>({ tableContext, config, columnOrder, columnGroupOrder, tableId, variant, onKeyDown, onSortOrderChange, appendTooltipTo, ...props }: StandardTableProps<TItem, TColumnKey, TColumnGroupKey>) => JSX.Element;
|
|
94
|
+
export declare const StandardTable: <TItem extends {}, TColumnKey extends string, TColumnGroupKey extends string>({ tableContext, config, columnOrder, columnGroupOrder, tableId, variant, onKeyDown, onSortOrderChange, appendTooltipTo, ...props }: StandardTableProps<TItem, TColumnKey, TColumnGroupKey>) => React.JSX.Element;
|
|
@@ -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 {}>({ columnId, item, colIndex, rowIndex, numRows, borderFromGroup, disableBorderLeft, }: StandardTableCellProps<TItem>) => JSX.Element)>;
|
|
11
|
+
export declare const StandardTableCell: React.MemoExoticComponent<(<TItem extends {}>({ columnId, item, colIndex, rowIndex, numRows, borderFromGroup, disableBorderLeft, }: StandardTableCellProps<TItem>) => React.JSX.Element)>;
|
|
@@ -3,5 +3,5 @@ import { StandardTableProps, StandardTableVariant } from "./StandardTable";
|
|
|
3
3
|
interface Props<TItem extends {}, 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 {}, TColumnKey extends string, TColumnGroupKey extends string>({ error, bannerError, loading, items, noItemsLabel, noItemsContentRight, noItemsContentBottom, noItemsHeader, colIndexOffset, rowIndexOffset, variant, errorLabel, }: Props<TItem, TColumnKey, TColumnGroupKey>) => JSX.Element)>;
|
|
6
|
+
export declare const StandardTableContent: React.MemoExoticComponent<(<TItem extends {}, 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 {};
|
|
@@ -5,5 +5,5 @@ interface StandardTableHeaderProps<TItem> {
|
|
|
5
5
|
height?: string;
|
|
6
6
|
appendTooltipTo?: TableHeadProps["appendTooltipTo"];
|
|
7
7
|
}
|
|
8
|
-
export declare const StandardTableHeadRow: React.MemoExoticComponent<(<TItem>({ items, appendTooltipTo, height, }: StandardTableHeaderProps<TItem>) => JSX.Element)>;
|
|
8
|
+
export declare const StandardTableHeadRow: React.MemoExoticComponent<(<TItem>({ items, appendTooltipTo, height, }: StandardTableHeaderProps<TItem>) => React.JSX.Element)>;
|
|
9
9
|
export {};
|
|
@@ -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 {}>({ item, idListForEnabledItems, rowIndex, numRows, colIndexOffset, alwaysVisible, shiftPressedRef, }: StandardTableRowProps<TItem>) => JSX.Element)>;
|
|
12
|
+
export declare const StandardTableRow: React.MemoExoticComponent<(<TItem extends {}>({ item, idListForEnabledItems, rowIndex, numRows, colIndexOffset, alwaysVisible, shiftPressedRef, }: StandardTableRowProps<TItem>) => React.JSX.Element)>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
|
|
1
|
+
import * as React from "react";
|
|
2
2
|
interface Props<TItem> {
|
|
3
3
|
item: TItem;
|
|
4
4
|
}
|
|
5
|
-
export declare const StandardTableRowExpansion: <TItem>({ item }: Props<TItem>) => JSX.Element;
|
|
5
|
+
export declare const StandardTableRowExpansion: <TItem>({ item }: Props<TItem>) => React.JSX.Element;
|
|
6
6
|
export {};
|
|
@@ -6,5 +6,5 @@ interface StandardTableContentProps<TItem extends {}> {
|
|
|
6
6
|
rowIndexOffset?: number;
|
|
7
7
|
variant: StandardTableVariant;
|
|
8
8
|
}
|
|
9
|
-
export declare const StandardTableRowList: React.MemoExoticComponent<(<TItem extends {}>({ items, colIndexOffset, rowIndexOffset, }: StandardTableContentProps<TItem>) => JSX.Element)>;
|
|
9
|
+
export declare const StandardTableRowList: React.MemoExoticComponent<(<TItem extends {}>({ items, colIndexOffset, rowIndexOffset, }: StandardTableContentProps<TItem>) => React.JSX.Element)>;
|
|
10
10
|
export {};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
export declare const TrWithHoverBackground: import("@emotion/styled").StyledComponent<{
|
|
3
3
|
theme?: import("@emotion/react").Theme | undefined;
|
|
4
|
-
as?: import("react").ElementType<any> | undefined;
|
|
4
|
+
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
5
5
|
} & {
|
|
6
6
|
borderLeft?: string | undefined;
|
|
7
7
|
height?: string | undefined;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import * as React from "react";
|
|
2
2
|
import { StandardTableColumnGroupConfig } from "../../config/StandardTableColumnGroupConfig";
|
|
3
3
|
interface ColumnGroupColumnItemProps<TColumnKey extends string> {
|
|
4
4
|
groupConfig: StandardTableColumnGroupConfig<TColumnKey>;
|
|
@@ -8,5 +8,5 @@ interface ColumnGroupColumnItemProps<TColumnKey extends string> {
|
|
|
8
8
|
borderFromGroup?: string;
|
|
9
9
|
colSpan: number;
|
|
10
10
|
}
|
|
11
|
-
export declare const ColumnInGroup: <TColumnKey extends string>({ columnId, groupConfig, borderFromGroup, colSpan, isFirstGroup, isLastGroup, }: ColumnGroupColumnItemProps<TColumnKey>) => JSX.Element;
|
|
11
|
+
export declare const ColumnInGroup: <TColumnKey extends string>({ columnId, groupConfig, borderFromGroup, colSpan, isFirstGroup, isLastGroup, }: ColumnGroupColumnItemProps<TColumnKey>) => React.JSX.Element;
|
|
12
12
|
export {};
|
package/dist/features/standard-table/features/expand-collapse/StandardTableRowExpandButton.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
|
|
1
|
+
import * as React from "react";
|
|
2
2
|
interface Props<TItem> {
|
|
3
3
|
item: TItem;
|
|
4
4
|
colIndex: number;
|
|
5
5
|
rowIndex: number;
|
|
6
6
|
numRows: number;
|
|
7
7
|
}
|
|
8
|
-
export declare const StandardTableRowExpandButton: <TItem>({ item, colIndex, numRows, rowIndex, }: Props<TItem>) => JSX.Element;
|
|
8
|
+
export declare const StandardTableRowExpandButton: <TItem>({ item, colIndex, numRows, rowIndex, }: Props<TItem>) => React.JSX.Element;
|
|
9
9
|
export {};
|
package/dist/features/standard-table/features/summary-row/components/StandardTableSummaryRow.d.ts
CHANGED
|
@@ -2,5 +2,5 @@ import * as React from "react";
|
|
|
2
2
|
interface StandardTableSummaryRowProps<TItem extends {}> {
|
|
3
3
|
items: Array<TItem>;
|
|
4
4
|
}
|
|
5
|
-
export declare const StandardTableSummaryRow: React.MemoExoticComponent<(<TItem extends {}>({ items, }: StandardTableSummaryRowProps<TItem>) => JSX.Element)>;
|
|
5
|
+
export declare const StandardTableSummaryRow: React.MemoExoticComponent<(<TItem extends {}>({ items, }: StandardTableSummaryRowProps<TItem>) => React.JSX.Element)>;
|
|
6
6
|
export {};
|
|
@@ -6,5 +6,5 @@ interface SummaryCellProps<TItem> {
|
|
|
6
6
|
disableBorderLeft: boolean;
|
|
7
7
|
colSpan: number;
|
|
8
8
|
}
|
|
9
|
-
export declare const SummaryCell: React.MemoExoticComponent<(<TItem>({ columnId, items, disableBorderLeft, borderFromGroup, colSpan, }: SummaryCellProps<TItem>) => JSX.Element)>;
|
|
9
|
+
export declare const SummaryCell: React.MemoExoticComponent<(<TItem>({ columnId, items, disableBorderLeft, borderFromGroup, colSpan, }: SummaryCellProps<TItem>) => React.JSX.Element)>;
|
|
10
10
|
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
2
|
interface SummaryRowSwitcherProps<TItem extends {}> {
|
|
3
3
|
items: Array<TItem>;
|
|
4
4
|
}
|
|
5
|
-
export declare const SummaryRowSwitcher: <TItem extends {}>({ items }: SummaryRowSwitcherProps<TItem>) => JSX.Element | null;
|
|
5
|
+
export declare const SummaryRowSwitcher: <TItem extends {}>({ items }: SummaryRowSwitcherProps<TItem>) => React.JSX.Element | null;
|
|
6
6
|
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { EntityCrudStatusRedux, ModifiedFieldRedux } from "@stenajs-webui/redux";
|
|
2
|
+
import * as React from "react";
|
|
3
3
|
import { UseGridCellOptions } from "../../../grid-cell/hooks/UseGridCell";
|
|
4
4
|
interface Props<TStoreState> {
|
|
5
5
|
value?: string;
|
|
@@ -15,5 +15,5 @@ interface Props<TStoreState> {
|
|
|
15
15
|
numCols: number;
|
|
16
16
|
warningOnEmpty?: string;
|
|
17
17
|
}
|
|
18
|
-
export declare const EditableTextCellWithCrudAndModified: <TStoreState>({ allowedInputType, value, entityId, isEditable, rowIndent, crudStatusRedux, modifiedFieldsRedux, colIndex, rowIndex, numCols, numRows, warningOnEmpty, }: Props<TStoreState>) => JSX.Element;
|
|
18
|
+
export declare const EditableTextCellWithCrudAndModified: <TStoreState>({ allowedInputType, value, entityId, isEditable, rowIndent, crudStatusRedux, modifiedFieldsRedux, colIndex, rowIndex, numCols, numRows, warningOnEmpty, }: Props<TStoreState>) => React.JSX.Element;
|
|
19
19
|
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stenajs-webui/grid",
|
|
3
|
-
"version": "20.
|
|
3
|
+
"version": "20.9.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "",
|
|
6
6
|
"author": "mattias800",
|
|
@@ -33,13 +33,13 @@
|
|
|
33
33
|
"deploy": "gh-pages -d example/build"
|
|
34
34
|
},
|
|
35
35
|
"dependencies": {
|
|
36
|
-
"@stenajs-webui/core": "20.
|
|
37
|
-
"@stenajs-webui/elements": "20.
|
|
38
|
-
"@stenajs-webui/forms": "20.
|
|
39
|
-
"@stenajs-webui/panels": "20.
|
|
40
|
-
"@stenajs-webui/redux": "20.
|
|
41
|
-
"@stenajs-webui/theme": "20.
|
|
42
|
-
"@stenajs-webui/tooltip": "20.
|
|
36
|
+
"@stenajs-webui/core": "20.9.0",
|
|
37
|
+
"@stenajs-webui/elements": "20.9.0",
|
|
38
|
+
"@stenajs-webui/forms": "20.9.0",
|
|
39
|
+
"@stenajs-webui/panels": "20.9.0",
|
|
40
|
+
"@stenajs-webui/redux": "20.9.0",
|
|
41
|
+
"@stenajs-webui/theme": "20.9.0",
|
|
42
|
+
"@stenajs-webui/tooltip": "20.9.0",
|
|
43
43
|
"classnames": "^2.3.1",
|
|
44
44
|
"lodash-es": "^4.17.21"
|
|
45
45
|
},
|
|
@@ -49,13 +49,13 @@
|
|
|
49
49
|
"@fortawesome/fontawesome-svg-core": ">=6.5.2",
|
|
50
50
|
"@fortawesome/free-solid-svg-icons": ">=6.5.2",
|
|
51
51
|
"@types/lodash-es": ">=4.17.12",
|
|
52
|
-
"@types/react": ">=18.
|
|
53
|
-
"@types/react-dom": ">=18.0
|
|
52
|
+
"@types/react": ">=18.3.3",
|
|
53
|
+
"@types/react-dom": ">=18.3.0",
|
|
54
54
|
"@types/react-redux": ">=7.1.8",
|
|
55
55
|
"csstype": ">=3.0.8",
|
|
56
56
|
"prop-types": ">=15.5.4",
|
|
57
|
-
"react": ">=18.
|
|
58
|
-
"react-dom": ">=18.
|
|
57
|
+
"react": ">=18.3.1",
|
|
58
|
+
"react-dom": ">=18.3.1",
|
|
59
59
|
"react-redux": ">=7.2.0",
|
|
60
60
|
"redux": ">=4.0.5"
|
|
61
61
|
},
|
|
@@ -66,18 +66,18 @@
|
|
|
66
66
|
"@fortawesome/free-solid-svg-icons": "6.5.2",
|
|
67
67
|
"@types/jest": "^23.1.5",
|
|
68
68
|
"@types/lodash-es": "^4.17.12",
|
|
69
|
-
"@types/react": "^18.
|
|
70
|
-
"@types/react-dom": "^18.0
|
|
69
|
+
"@types/react": "^18.3.3",
|
|
70
|
+
"@types/react-dom": "^18.3.0",
|
|
71
71
|
"@types/react-redux": "^7.1.8",
|
|
72
72
|
"csstype": "^3.0.8",
|
|
73
73
|
"prop-types": "^15.5.4",
|
|
74
|
-
"react": "^18.
|
|
75
|
-
"react-dom": "^18.
|
|
74
|
+
"react": "^18.3.1",
|
|
75
|
+
"react-dom": "^18.3.1",
|
|
76
76
|
"react-redux": "^7.2.0",
|
|
77
77
|
"redux": "^4.0.5"
|
|
78
78
|
},
|
|
79
79
|
"files": [
|
|
80
80
|
"dist"
|
|
81
81
|
],
|
|
82
|
-
"gitHead": "
|
|
82
|
+
"gitHead": "874eb3170b5fe66de022ff1eb576f5c46ac54858"
|
|
83
83
|
}
|