sit-onyx 1.0.0-beta.236 → 1.0.0-beta.237
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.
|
@@ -81,6 +81,10 @@ export type DataGridRendererCell<TEntry extends DataGridEntry, TMetadata extends
|
|
|
81
81
|
*/
|
|
82
82
|
export type DataGridRendererCellComponent<TEntry extends DataGridEntry, TMetadata extends DataGridRendererCellMetadata = DataGridRendererCellMetadata> = FunctionalComponent<WithHTMLAttributes<DataGridRendererCellComponentProps<TEntry, TMetadata>, TdHTMLAttributes>>;
|
|
83
83
|
export type DataGridRendererCellComponentProps<TEntry extends DataGridEntry, TMetadata extends DataGridRendererCellMetadata> = {
|
|
84
|
+
/**
|
|
85
|
+
* The key of the column for which the cell is rendered.
|
|
86
|
+
*/
|
|
87
|
+
key: keyof TEntry;
|
|
84
88
|
/**
|
|
85
89
|
* Complete row data.
|
|
86
90
|
*/
|
|
@@ -6,6 +6,7 @@ export * from "./sorting/types";
|
|
|
6
6
|
export * from "./stickyColumns/types";
|
|
7
7
|
export { useFiltering } from "./filtering/filtering";
|
|
8
8
|
export { useHideColumns } from "./hideColumns/hideColumns";
|
|
9
|
+
export * from "./renderer";
|
|
9
10
|
export { useResizing } from "./resizing/resizing";
|
|
10
11
|
export { useSelection } from "./selection/selection";
|
|
11
12
|
export { useSorting } from "./sorting/sorting";
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { SkeletonInjected } from "src/composables/useSkeletonState";
|
|
2
2
|
import type { IfExtends, IfNotEmpty, MaybePick, RecordValues, UnionByKey } from "../../types";
|
|
3
|
+
import type { OnyxTableProps } from "../OnyxTable/types";
|
|
3
4
|
import type { ColumnConfig, ColumnConfigTypeOption, ColumnGroupConfig, DataGridFeature, TypeRenderer, TypeRenderMap } from "./features";
|
|
4
5
|
import type { BASE_FEATURE } from "./features/base/base";
|
|
5
6
|
export type DataGridMetadata = Record<string, unknown>;
|
|
@@ -41,10 +42,10 @@ export type OnyxDataGridProps<TEntry extends DataGridEntry, TColumnGroup extends
|
|
|
41
42
|
*/
|
|
42
43
|
data: TEntry[];
|
|
43
44
|
/**
|
|
44
|
-
* Whether to show skeleton rows. Can be set to `true` to use a pre-defined skeleton row count or you can pass a number
|
|
45
|
+
* Whether to show skeleton rows. Can be set to `true` to use a pre-defined skeleton row count or you can pass a number to define a specific count.
|
|
45
46
|
*/
|
|
46
47
|
skeleton?: SkeletonInjected;
|
|
47
|
-
}
|
|
48
|
+
} & Omit<OnyxTableProps, "columnGroups" | "scrollContainerAttrs">;
|
|
48
49
|
/**
|
|
49
50
|
* "Raw" user data for a data grid entry/row, e.g. fetched from a backend service.
|
|
50
51
|
*/
|