Skip to content

Commit

Permalink
Merge pull request #689 from contember/refactor/grid-headless
Browse files Browse the repository at this point in the history
headless grid refactoring
  • Loading branch information
matej21 authored Apr 17, 2024
2 parents 275245a + 911462b commit 7e4f3cd
Show file tree
Hide file tree
Showing 120 changed files with 2,230 additions and 1,378 deletions.
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

0 comments on commit 7e4f3cd

Please sign in to comment.