@stenajs-webui/grid 23.11.3 → 23.12.1
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/config/StandardTableColumnConfig.d.ts +0 -5
- package/dist/features/standard-table/config/StandardTableConfig.d.ts +0 -6
- package/dist/features/table-ui/components/table/SortOrderIcon.d.ts +0 -4
- package/dist/features/table-ui/components/table/TableHeadItem.d.ts +1 -2
- package/dist/index.d.ts +0 -1
- package/dist/index.es.js +831 -877
- 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 -11
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
2
|
import { ReactNode } from "react";
|
|
3
3
|
import { UseGridCellOptions, UseGridCellResult } from "../../grid-cell/hooks/UseGridCell";
|
|
4
|
-
import { SortOrderIconVariant } from "../../table-ui/components/table/SortOrderIcon";
|
|
5
4
|
import { StandardTableOnKeyDownArgs } from "./StandardTableConfig";
|
|
6
5
|
import { TextSize } from "@stenajs-webui/core";
|
|
7
6
|
export type StandardTableColumnConfig<TItem, TItemValue, TColumnKey extends string> = StandardTableColumnOptions<TItem, TItemValue, TColumnKey> & StandardTableColumnOptionsWithNoGroups & ItemValueResolver<TItem, TItemValue>;
|
|
@@ -106,10 +105,6 @@ export interface StandardTableColumnOptions<TItem, TItemValue, TColumnKey extend
|
|
|
106
105
|
* Not all options are available, since it is controlled by StandardTable.
|
|
107
106
|
*/
|
|
108
107
|
gridCellOptions?: Omit<UseGridCellOptions<string>, "colIndex" | "rowIndex" | "numRows" | "numCols" | "tableId" | "isEditable" | "onChange">;
|
|
109
|
-
/**
|
|
110
|
-
* The icon variant to use when displaying sort order.
|
|
111
|
-
*/
|
|
112
|
-
sortOrderIconVariant?: SortOrderIconVariant;
|
|
113
108
|
/**
|
|
114
109
|
* Render summary cell at the bottom of the table.
|
|
115
110
|
* If this is not provided for any columns, the summary row will not be rendered at all.
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { ReactNode } from "react";
|
|
2
2
|
import { UseGridCellOptions } from "../../grid-cell/hooks/UseGridCell";
|
|
3
|
-
import { SortOrderIconVariant } from "../../table-ui/components/table/SortOrderIcon";
|
|
4
3
|
import { DefaultStandardTableCellRenderer, StandardTableColumnConfig, StandardTableColumnConfigWithGroups } from "./StandardTableColumnConfig";
|
|
5
4
|
import { StandardTableColumnGroupConfig } from "./StandardTableColumnGroupConfig";
|
|
6
5
|
import { TextSize } from "@stenajs-webui/core";
|
|
@@ -154,11 +153,6 @@ export interface StandardTableConfigBase<TItem, TColumnKey extends string> {
|
|
|
154
153
|
* Offset header row from top (top css property)
|
|
155
154
|
*/
|
|
156
155
|
headerRowOffsetTop?: string;
|
|
157
|
-
/**
|
|
158
|
-
* The default icon variant to use when displaying sort order. Can be overridden per column.
|
|
159
|
-
* @default amount
|
|
160
|
-
*/
|
|
161
|
-
sortOrderIconVariant?: SortOrderIconVariant;
|
|
162
156
|
/**
|
|
163
157
|
* This can be used to override default text renderer for the whole table.
|
|
164
158
|
* Column cellRenderer will still override this. Since this is global for the table, and not local to a column,
|
|
@@ -1,11 +1,7 @@
|
|
|
1
|
-
import { IconDefinition } from "@fortawesome/fontawesome-svg-core";
|
|
2
1
|
import * as React from "react";
|
|
3
2
|
export type SortOrderDirection = "up" | "down";
|
|
4
|
-
export type SortOrderIconVariant = "numeric" | "alpha" | "amount";
|
|
5
3
|
interface Props {
|
|
6
4
|
direction: SortOrderDirection;
|
|
7
|
-
iconVariant?: SortOrderIconVariant;
|
|
8
5
|
}
|
|
9
6
|
export declare const SortOrderIcon: React.FC<Props>;
|
|
10
|
-
export declare const getIcon: (arrow: SortOrderDirection, iconType: SortOrderIconVariant) => IconDefinition;
|
|
11
7
|
export {};
|
|
@@ -2,7 +2,7 @@ import { BoxProps } from "@stenajs-webui/core";
|
|
|
2
2
|
import { TooltipProps } from "@stenajs-webui/tooltip";
|
|
3
3
|
import * as React from "react";
|
|
4
4
|
import { ReactNode } from "react";
|
|
5
|
-
import { SortOrderDirection
|
|
5
|
+
import { SortOrderDirection } from "./SortOrderIcon";
|
|
6
6
|
export interface TableHeadProps extends BoxProps {
|
|
7
7
|
label?: string;
|
|
8
8
|
infoIconTooltipAppendTo?: TooltipProps["appendTo"];
|
|
@@ -14,6 +14,5 @@ export interface TableHeadProps extends BoxProps {
|
|
|
14
14
|
onClick?: () => void;
|
|
15
15
|
selected?: boolean;
|
|
16
16
|
alignRight?: boolean;
|
|
17
|
-
sortOrderIconVariant?: SortOrderIconVariant;
|
|
18
17
|
}
|
|
19
18
|
export declare const TableHeadItem: React.FC<TableHeadProps>;
|
package/dist/index.d.ts
CHANGED
|
@@ -46,5 +46,4 @@ export * from "./features/grid-cell/hooks/UseGridCell";
|
|
|
46
46
|
export * from "./features/grid-cell/hooks/UseGridNavigation";
|
|
47
47
|
export * from "./features/grid-cell/hooks/UseGridNavigationOptionsFromContext";
|
|
48
48
|
export * from "./features/grid-cell/hooks/UseRevertableValue";
|
|
49
|
-
export type { SortOrderIconVariant } from "./features/table-ui/components/table/SortOrderIcon";
|
|
50
49
|
export type { SortOrderDirection } from "./features/table-ui/components/table/SortOrderIcon";
|