Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

headless grid refactoring #689

Merged
merged 12 commits into from
Apr 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 4 additions & 31 deletions build/api/react-datagrid.api.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ import { DataViewFilterArtifact } from '@contember/react-dataview';
import { DataViewFilterHandler } from '@contember/react-dataview';
import { DataViewInfo } from '@contember/react-dataview';
import { DataViewMethods } from '@contember/react-dataview';
import { DataViewSelectionValue } from '@contember/react-dataview';
import { DataViewSetFilter } from '@contember/react-dataview';
import { DataViewSortingDirection } from '@contember/react-dataview';
import { DataViewState } from '@contember/react-dataview';
Expand All @@ -26,6 +25,7 @@ import { ReactNode } from 'react';
import { RelationFilterArtifacts } from '@contember/react-dataview';
import { SelectOptions } from '@contember/react-choice-field';
import { Serializable } from '@contember/react-utils';
import { SetStateAction } from 'react';
import { SugarableRelativeSingleField } from '@contember/react-binding';
import { SugaredQualifiedEntityList } from '@contember/react-binding';
import { SugaredRelativeEntityList } from '@contember/react-binding';
Expand Down Expand Up @@ -235,27 +235,6 @@ export type DataGridColumns<P extends {}> = Map<DataGridColumnKey, DataGridColum
// @public (undocumented)
export type DataGridFilterArtifact = DataViewFilterArtifact;

// @public (undocumented)
export type DataGridHidingMethods = {
setIsColumnHidden: DataGridSetIsColumnHidden;
};

// @public (undocumented)
export type DataGridHidingState = Record<DataGridColumnKey, boolean>;

// @public (undocumented)
export type DataGridLayout = 'default' | 'tiles';

// @public (undocumented)
export type DataGridLayoutMethods = {
setView: SetDataGridLayout;
};

// @public (undocumented)
export type DataGridLayoutState = {
view: DataGridLayout;
};

// @public (undocumented)
export type DataGridMethods = DataViewMethods;

Expand All @@ -267,9 +246,6 @@ export type DataGridProps<P extends {}> = {
itemsPerPage?: number | null;
} & P;

// @public (undocumented)
export type DataGridSetIsColumnHidden = (columnKey: DataGridColumnKey, isHidden: boolean) => void;

// @public (undocumented)
export type DataGridState = DataViewState;

Expand Down Expand Up @@ -354,9 +330,6 @@ export type NumberFilterArtifacts = {
// @public (undocumented)
export type SelectCellFilterExtraProps = SelectOptions;

// @public (undocumented)
export type SetDataGridLayout = (layout: DataGridLayout) => void;

// @public (undocumented)
export type TextCellProps = TextCellRendererProps & DataGridColumnCommonProps & {
disableOrder?: boolean;
Expand All @@ -377,17 +350,17 @@ export const useDataGridColumns: <T extends {}>() => DataGridColumns<T>;

// @public (undocumented)
export const useDataGridHiddenColumns: () => {
[k: string]: DataViewSelectionValue;
[k: string]: boolean | undefined;
};

// @public (undocumented)
export const useDataGridLayout: () => string | number | boolean;
export const useDataGridLayout: () => string;

// @public (undocumented)
export const useDataGridSetColumnHidden: () => (column: string, hidden: boolean) => void;

// @public (undocumented)
export const useDataGridSetLayout: () => (layout: 'default' | 'tiles') => void;
export const useDataGridSetLayout: () => (layout: SetStateAction<string | undefined>) => void;

// (No @packageDocumentation comment for this package)

Expand Down
Loading
Loading