# Bases sub-types

> Composite types referenced by Base snapshots, tables, fields, records, and views.

> Language fallback: requested `ru-RU`; content is `en-US`.

- Human documentation: [https://docs.univer.ai/ru-RU/reference/types/bases-types](https://docs.univer.ai/ru-RU/reference/types/bases-types)

- Agent Markdown: [https://docs.univer.ai/ru-RU/reference/types/bases-types.md](https://docs.univer.ai/ru-RU/reference/types/bases-types.md)

- Requested language: `ru-RU`

- Content language: `en-US`

- Documentation version: `1.6.2`

- Source: [types/bases-types.mdx](https://github.com/dream-num/documentation/blob/dev/content/reference/types/bases-types.mdx)

---

Composite types referenced by Base snapshots, tables, fields, records, and views. Supporting [`IBaseSnapshot`](https://docs.univer.ai/ru-RU/reference/types/base-snapshot.md). Types are ordered from direct top-level fields to deeper nested structures and enums.

## Overview [#overview]

| Type | Kind | Used by |
| --- | --- | --- |
| [`BaseId`](#baseid) | `type` | [`IBaseSnapshot`](https://docs.univer.ai/ru-RU/reference/types/base-snapshot.md) |
| [`ITableSnapshot`](#itablesnapshot) | `interface` | [`IBaseSnapshot`](https://docs.univer.ai/ru-RU/reference/types/base-snapshot.md) |
| [`TableId`](#tableid) | `type` | [`IBaseSnapshot`](https://docs.univer.ai/ru-RU/reference/types/base-snapshot.md), [`ITableSnapshot`](#itablesnapshot), [`IViewSnapshot`](#iviewsnapshot) |
| [`BaseCellMatrix`](#basecellmatrix) | `type` | [`ITableSnapshot`](#itablesnapshot) |
| [`FieldId`](#fieldid) | `type` | [`ITableSnapshot`](#itablesnapshot), [`IFieldSnapshot`](#ifieldsnapshot), [`IRecordSnapshot`](#irecordsnapshot), [`IViewSnapshot`](#iviewsnapshot) |
| [`IBaseResources`](#ibaseresources) | `interface` | [`ITableSnapshot`](#itablesnapshot) |
| [`IFieldSnapshot`](#ifieldsnapshot) | `interface` | [`ITableSnapshot`](#itablesnapshot) |
| [`IRecordSnapshot`](#irecordsnapshot) | `interface` | [`ITableSnapshot`](#itablesnapshot) |
| [`IViewSnapshot`](#iviewsnapshot) | `interface` | [`ITableSnapshot`](#itablesnapshot) |
| [`RecordId`](#recordid) | `type` | [`ITableSnapshot`](#itablesnapshot), [`IRecordSnapshot`](#irecordsnapshot) |
| [`ViewId`](#viewid) | `type` | [`ITableSnapshot`](#itablesnapshot), [`IViewSnapshot`](#iviewsnapshot) |
| [`BaseCellValue`](#basecellvalue) | `type` | [`IFieldSnapshot`](#ifieldsnapshot), [`IRecordSnapshot`](#irecordsnapshot) |
| [`BaseFieldType`](#basefieldtype) | `enum` | [`IFieldSnapshot`](#ifieldsnapshot) |
| [`BaseViewType`](#baseviewtype) | `enum` | [`IViewSnapshot`](#iviewsnapshot) |
| [`FieldConfig`](#fieldconfig) | `type` | [`IFieldSnapshot`](#ifieldsnapshot) |
| [`IBaseCellData`](#ibasecelldata) | `interface` | [`BaseCellMatrix`](#basecellmatrix) |
| [`IFilterConfig`](#ifilterconfig) | `interface` | [`IViewSnapshot`](#iviewsnapshot) |
| [`IGroupConfig`](#igroupconfig) | `interface` | [`IViewSnapshot`](#iviewsnapshot) |
| [`ISortConfig`](#isortconfig) | `interface` | [`IViewSnapshot`](#iviewsnapshot) |
| [`IViewFieldSetting`](#iviewfieldsetting) | `interface` | [`IViewSnapshot`](#iviewsnapshot) |
| [`ViewSpecificConfig`](#viewspecificconfig) | `type` | [`IViewSnapshot`](#iviewsnapshot) |
| [`BaseCellPrimitiveValue`](#basecellprimitivevalue) | `type` | [`IBaseCellData`](#ibasecelldata) |
| [`BaseCellValueType`](#basecellvaluetype) | `type` | [`IBaseCellData`](#ibasecelldata) |
| [`BaseFilterConjunction`](#basefilterconjunction) | `enum` | [`IFilterConfig`](#ifilterconfig) |
| [`BasePrimitiveCellValue`](#baseprimitivecellvalue) | `type` | [`BaseCellValue`](#basecellvalue) |
| [`BaseSortDirection`](#basesortdirection) | `enum` | [`ISortConfig`](#isortconfig), [`IGroupConfig`](#igroupconfig) |
| [`IBaseViewCommonConfig`](#ibaseviewcommonconfig) | `interface` | [`ViewSpecificConfig`](#viewspecificconfig), [`IGridViewConfig`](#igridviewconfig), [`IKanbanViewConfig`](#ikanbanviewconfig), [`ICalendarViewConfig`](#icalendarviewconfig) |
| [`ICalendarViewConfig`](#icalendarviewconfig) | `interface` | [`ViewSpecificConfig`](#viewspecificconfig) |
| [`IFilterCondition`](#ifiltercondition) | `interface` | [`IFilterConfig`](#ifilterconfig) |
| [`IGalleryViewConfig`](#igalleryviewconfig) | `interface` | [`ViewSpecificConfig`](#viewspecificconfig) |
| [`IGanttViewConfig`](#iganttviewconfig) | `interface` | [`ViewSpecificConfig`](#viewspecificconfig) |
| [`IGridViewConfig`](#igridviewconfig) | `interface` | [`ViewSpecificConfig`](#viewspecificconfig) |
| [`IKanbanViewConfig`](#ikanbanviewconfig) | `interface` | [`ViewSpecificConfig`](#viewspecificconfig) |
| [`BaseFilterOperator`](#basefilteroperator) | `enum` | [`IFilterCondition`](#ifiltercondition) |
| [`IBaseConditionalColoringConfig`](#ibaseconditionalcoloringconfig) | `interface` | [`IBaseViewCommonConfig`](#ibaseviewcommonconfig) |
| [`IBaseViewColorCondition`](#ibaseviewcolorcondition) | `interface` | [`IGanttViewConfig`](#iganttviewconfig), [`IBaseConditionalColorRule`](#ibaseconditionalcolorrule) |
| [`ICardLayoutConfig`](#icardlayoutconfig) | `interface` | [`IKanbanViewConfig`](#ikanbanviewconfig), [`IGalleryViewConfig`](#igalleryviewconfig) |
| [`IKanbanColumnSetting`](#ikanbancolumnsetting) | `interface` | [`IKanbanViewConfig`](#ikanbanviewconfig) |
| [`IKanbanFieldCardSetting`](#ikanbanfieldcardsetting) | `interface` | [`IKanbanViewConfig`](#ikanbanviewconfig), [`IGalleryViewConfig`](#igalleryviewconfig) |
| [`KanbanCardLayoutMode`](#kanbancardlayoutmode) | `type` | [`IKanbanViewConfig`](#ikanbanviewconfig), [`IGalleryViewConfig`](#igalleryviewconfig) |
| [`BaseConditionalColorOperator`](#baseconditionalcoloroperator) | `type` | [`IBaseViewColorCondition`](#ibaseviewcolorcondition) |
| [`BaseConditionalColorTarget`](#baseconditionalcolortarget) | `type` | [`IBaseViewColorCondition`](#ibaseviewcolorcondition), [`IBaseConditionalColorRule`](#ibaseconditionalcolorrule) |
| [`BaseConditionalDateMode`](#baseconditionaldatemode) | `type` | [`IBaseViewColorCondition`](#ibaseviewcolorcondition) |
| [`IBaseConditionalColorRule`](#ibaseconditionalcolorrule) | `interface` | [`IBaseConditionalColoringConfig`](#ibaseconditionalcoloringconfig) |

## `BaseId` [#baseid]

`import type { BaseId } from '@univerjs/core'` · Used by [`IBaseSnapshot`](https://docs.univer.ai/ru-RU/reference/types/base-snapshot.md)

```ts
type BaseId = string
```

## `ITableSnapshot` [#itablesnapshot]

`import type { ITableSnapshot } from '@univerjs/core'` · Used by [`IBaseSnapshot`](https://docs.univer.ai/ru-RU/reference/types/base-snapshot.md)

```ts
interface ITableSnapshot {
  id: TableId

  name: string

  formulaName?: string
  fields: Record<FieldId, IFieldSnapshot>
  fieldOrder: FieldId[]
  records: Record<RecordId, IRecordSnapshot>
  recordOrder?: RecordId[]
  rowIndex?: Record<RecordId, number>
  rowId?: Record<number, RecordId>
  colIndex?: Record<FieldId, number>
  colId?: Record<number, FieldId>
  cellData?: BaseCellMatrix
  resources?: IBaseResources
  views: Record<ViewId, IViewSnapshot>
  viewOrder: ViewId[]
  primaryFieldId: FieldId
}
```

**Related types:** [`TableId`](#tableid) · [`FieldId`](#fieldid) · [`IFieldSnapshot`](#ifieldsnapshot) · [`RecordId`](#recordid) · [`IRecordSnapshot`](#irecordsnapshot) · [`BaseCellMatrix`](#basecellmatrix) · [`IBaseResources`](#ibaseresources) · [`ViewId`](#viewid) · [`IViewSnapshot`](#iviewsnapshot)

## `TableId` [#tableid]

`import type { TableId } from '@univerjs/core'` · Used by [`IBaseSnapshot`](https://docs.univer.ai/ru-RU/reference/types/base-snapshot.md) · [`ITableSnapshot`](#itablesnapshot) · [`IViewSnapshot`](#iviewsnapshot)

```ts
type TableId = string
```

## `BaseCellMatrix` [#basecellmatrix]

`import type { BaseCellMatrix } from '@univerjs/core'` · Used by [`ITableSnapshot`](#itablesnapshot)

```ts
type BaseCellMatrix = Record<number, Record<number, IBaseCellData>>
```

## `FieldId` [#fieldid]

`import type { FieldId } from '@univerjs/core'` · Used by [`ITableSnapshot`](#itablesnapshot) · [`IFieldSnapshot`](#ifieldsnapshot) · [`IRecordSnapshot`](#irecordsnapshot) · [`IViewSnapshot`](#iviewsnapshot) · [`ISortConfig`](#isortconfig) · [`IGroupConfig`](#igroupconfig) · [`IKanbanViewConfig`](#ikanbanviewconfig) · [`ICalendarViewConfig`](#icalendarviewconfig) · [`IGanttViewConfig`](#iganttviewconfig) · [`IGalleryViewConfig`](#igalleryviewconfig) · [`IFilterCondition`](#ifiltercondition) · [`ICardLayoutConfig`](#icardlayoutconfig) · [`IBaseViewColorCondition`](#ibaseviewcolorcondition)

```ts
type FieldId = string
```

## `IBaseResources` [#ibaseresources]

`import type { IBaseResources } from '@univerjs/core'` · Used by [`ITableSnapshot`](#itablesnapshot)

```ts
interface IBaseResources {
  multiValueSets?: Record<string, string[]>
  memberSets?: Record<string, string[]>
  attachmentSets?: Record<string, string[]>
  attachments?: Record<string, Record<string, unknown>>
}
```

## `IFieldSnapshot` [#ifieldsnapshot]

`import type { IFieldSnapshot } from '@univerjs/core'` · Used by [`ITableSnapshot`](#itablesnapshot)

```ts
interface IFieldSnapshot {
  id: FieldId
  name: string
  description?: string
  type: BaseFieldType
  config: FieldConfig
  defaultValue?: CellValue
  system?: boolean
  readonly?: boolean
}
```

**Related types:** [`FieldId`](#fieldid) · [`BaseFieldType`](#basefieldtype) · [`FieldConfig`](#fieldconfig) · [`CellValue`](#basecellvalue)

## `IRecordSnapshot` [#irecordsnapshot]

`import type { IRecordSnapshot } from '@univerjs/core'` · Used by [`ITableSnapshot`](#itablesnapshot)

```ts
interface IRecordSnapshot {
  id: RecordId
  values: Record<FieldId, CellValue>
  orderKey: string
  createdAt: number
  updatedAt: number
  createdBy?: string
  updatedBy?: string
}
```

**Related types:** [`RecordId`](#recordid) · [`FieldId`](#fieldid) · [`CellValue`](#basecellvalue)

## `IViewSnapshot` [#iviewsnapshot]

`import type { IViewSnapshot } from '@univerjs/core'` · Used by [`ITableSnapshot`](#itablesnapshot)

```ts
interface IViewSnapshot<TConfig extends ViewSpecificConfig = ViewSpecificConfig> {
  id: ViewId
  tableId: TableId
  name: string
  type: BaseViewType
  fieldOrder?: FieldId[]
  fieldSettings?: Record<FieldId, IViewFieldSetting>
  filter?: IFilterConfig | null
  sort?: ISortConfig[]
  group?: IGroupConfig[]
  config: TConfig
}
```

**Related types:** [`ViewId`](#viewid) · [`TableId`](#tableid) · [`BaseViewType`](#baseviewtype) · [`FieldId`](#fieldid) · [`IViewFieldSetting`](#iviewfieldsetting) · [`IFilterConfig`](#ifilterconfig) · [`ISortConfig`](#isortconfig) · [`IGroupConfig`](#igroupconfig)

## `RecordId` [#recordid]

`import type { RecordId } from '@univerjs/core'` · Used by [`ITableSnapshot`](#itablesnapshot) · [`IRecordSnapshot`](#irecordsnapshot)

```ts
type RecordId = string
```

## `ViewId` [#viewid]

`import type { ViewId } from '@univerjs/core'` · Used by [`ITableSnapshot`](#itablesnapshot) · [`IViewSnapshot`](#iviewsnapshot)

```ts
type ViewId = string
```

## `BaseCellValue` [#basecellvalue]

`import type { BaseCellValue } from '@univerjs/core'` · Used by [`IFieldSnapshot`](#ifieldsnapshot) · [`IRecordSnapshot`](#irecordsnapshot)

```ts
type BaseCellValue =
  | PrimitiveCellValue
  | PrimitiveCellValue[]
  | Record<string, unknown>
  | Record<string, unknown>[]
  | null
```

**Related types:** [`PrimitiveCellValue`](#baseprimitivecellvalue)

## `BaseFieldType` [#basefieldtype]

`import { BaseFieldType } from '@univerjs/core'` · Used by [`IFieldSnapshot`](#ifieldsnapshot)

```ts
enum BaseFieldType {
  Text = 'text',
  SingleSelect = 'singleSelect',
  MultiSelect = 'multiSelect',
  Person = 'person',
  Group = 'group',
  Date = 'date',
  Attachment = 'attachment',
  Number = 'number',
  Checkbox = 'checkbox',
  Link = 'link',
  Formula = 'formula',
  Numbering = 'numbering',
  Phone = 'phone',
  Email = 'email',
  Progress = 'progress',
  Currency = 'currency',
  Rating = 'rating',
  RecordLink = 'recordLink',
  RecordId = 'recordId',
  CreatedBy = 'createdBy',
  UpdatedBy = 'updatedBy',
  CreatedAt = 'createdAt',
  UpdatedAt = 'updatedAt',
}
```

## `BaseViewType` [#baseviewtype]

`import { BaseViewType } from '@univerjs/core'` · Used by [`IViewSnapshot`](#iviewsnapshot)

```ts
enum BaseViewType {
  Grid = 'grid',
  Kanban = 'kanban',
  Calendar = 'calendar',
  Gantt = 'gantt',
  Gallery = 'gallery',
  Pivot = 'pivot',
}
```

## `FieldConfig` [#fieldconfig]

`import type { FieldConfig } from '@univerjs/core'` · Used by [`IFieldSnapshot`](#ifieldsnapshot)

```ts
type FieldConfig = Record<string, unknown>
```

## `IBaseCellData` [#ibasecelldata]

`import type { IBaseCellData } from '@univerjs/core'` · Used by [`BaseCellMatrix`](#basecellmatrix)

```ts
interface IBaseCellData {
  v?: BaseCellPrimitiveValue
  t?: BaseCellValueType | null
  p?: IDocumentData | null
  f?: string | null
  si?: string | null
}
```

**Related types:** [`BaseCellPrimitiveValue`](#basecellprimitivevalue) · [`BaseCellValueType`](#basecellvaluetype) · [`IDocumentData`](https://docs.univer.ai/ru-RU/reference/types/document-data.md)

## `IFilterConfig` [#ifilterconfig]

`import type { IFilterConfig } from '@univerjs/core'` · Used by [`IViewSnapshot`](#iviewsnapshot)

```ts
interface IFilterConfig {
  conjunction: BaseFilterConjunction
  conditions: IFilterCondition[]
}
```

**Related types:** [`BaseFilterConjunction`](#basefilterconjunction) · [`IFilterCondition`](#ifiltercondition)

## `IGroupConfig` [#igroupconfig]

`import type { IGroupConfig } from '@univerjs/core'` · Used by [`IViewSnapshot`](#iviewsnapshot)

```ts
interface IGroupConfig {
  fieldId: FieldId
  direction?: BaseSortDirection
  hideEmptyGroup?: boolean
}
```

**Related types:** [`FieldId`](#fieldid) · [`BaseSortDirection`](#basesortdirection)

## `ISortConfig` [#isortconfig]

`import type { ISortConfig } from '@univerjs/core'` · Used by [`IViewSnapshot`](#iviewsnapshot)

```ts
interface ISortConfig {
  fieldId: FieldId
  direction: BaseSortDirection
}
```

**Related types:** [`FieldId`](#fieldid) · [`BaseSortDirection`](#basesortdirection)

## `IViewFieldSetting` [#iviewfieldsetting]

`import type { IViewFieldSetting } from '@univerjs/core'` · Used by [`IViewSnapshot`](#iviewsnapshot)

```ts
interface IViewFieldSetting {
  hidden?: boolean
  width?: number
  showInCard?: boolean
}
```

## `ViewSpecificConfig` [#viewspecificconfig]

`import type { ViewSpecificConfig } from '@univerjs/core'` · Used by [`IViewSnapshot`](#iviewsnapshot)

```ts
type ViewSpecificConfig =
  | IGridViewConfig
  | IKanbanViewConfig
  | ICalendarViewConfig
  | IGanttViewConfig
  | IGalleryViewConfig
  | (IBaseViewCommonConfig & Record<string, unknown>)
```

**Related types:** [`IGridViewConfig`](#igridviewconfig) · [`IKanbanViewConfig`](#ikanbanviewconfig) · [`ICalendarViewConfig`](#icalendarviewconfig) · [`IGanttViewConfig`](#iganttviewconfig) · [`IGalleryViewConfig`](#igalleryviewconfig) · [`IBaseViewCommonConfig`](#ibaseviewcommonconfig)

## `BaseCellPrimitiveValue` [#basecellprimitivevalue]

`import type { BaseCellPrimitiveValue } from '@univerjs/core'` · Used by [`IBaseCellData`](#ibasecelldata)

```ts
type BaseCellPrimitiveValue = string | number | boolean | null
```

## `BaseCellValueType` [#basecellvaluetype]

`import type { BaseCellValueType } from '@univerjs/core'` · Used by [`IBaseCellData`](#ibasecelldata)

```ts
type BaseCellValueType = CellValueType
```

**Related types:** [`CellValueType`](https://docs.univer.ai/ru-RU/reference/enums/cell-value-type.md)

## `BaseFilterConjunction` [#basefilterconjunction]

`import { BaseFilterConjunction } from '@univerjs/core'` · Used by [`IFilterConfig`](#ifilterconfig)

```ts
enum BaseFilterConjunction {
  AND = 'and',
  OR = 'or',
}
```

## `BasePrimitiveCellValue` [#baseprimitivecellvalue]

`import type { BasePrimitiveCellValue } from '@univerjs/core'` · Used by [`BaseCellValue`](#basecellvalue)

```ts
type BasePrimitiveCellValue = string | number | boolean
```

## `BaseSortDirection` [#basesortdirection]

`import { BaseSortDirection } from '@univerjs/core'` · Used by [`ISortConfig`](#isortconfig) · [`IGroupConfig`](#igroupconfig)

```ts
enum BaseSortDirection {
  ASC = 'asc',
  DESC = 'desc',
}
```

## `IBaseViewCommonConfig` [#ibaseviewcommonconfig]

`import type { IBaseViewCommonConfig } from '@univerjs/core'` · Used by [`ViewSpecificConfig`](#viewspecificconfig) · [`IGridViewConfig`](#igridviewconfig) · [`IKanbanViewConfig`](#ikanbanviewconfig) · [`ICalendarViewConfig`](#icalendarviewconfig) · [`IGanttViewConfig`](#iganttviewconfig) · [`IGalleryViewConfig`](#igalleryviewconfig)

Configuration shared by every Base view type.

```ts
interface IBaseViewCommonConfig {
  conditionalColoring?: IBaseConditionalColoringConfig | null
}
```

**Related types:** [`IBaseConditionalColoringConfig`](#ibaseconditionalcoloringconfig)

## `ICalendarViewConfig` [#icalendarviewconfig]

`import type { ICalendarViewConfig } from '@univerjs/core'` · Used by [`ViewSpecificConfig`](#viewspecificconfig)

```ts
interface ICalendarViewConfig extends IBaseViewCommonConfig {
  startDateFieldId: FieldId
  endDateFieldId?: FieldId
  titleFieldId?: FieldId
  colorFieldId?: FieldId
  mode: 'month' | 'week' | 'day'
  timeslotSize?: 'short' | 'medium' | 'long'
  timeZone?: 'local' | string
  displayColor?: { type: 'custom'; color: string } | { type: 'selectField'; fieldId: FieldId }
  fieldSettings?: Record<FieldId, { hidden?: boolean; order?: number }>
}
```

**Related types:** [`IBaseViewCommonConfig`](#ibaseviewcommonconfig) · [`FieldId`](#fieldid)

## `IFilterCondition` [#ifiltercondition]

`import type { IFilterCondition } from '@univerjs/core'` · Used by [`IFilterConfig`](#ifilterconfig)

```ts
interface IFilterCondition {
  fieldId: FieldId
  operator: BaseFilterOperator
  operand?: unknown
}
```

**Related types:** [`FieldId`](#fieldid) · [`BaseFilterOperator`](#basefilteroperator)

## `IGalleryViewConfig` [#igalleryviewconfig]

`import type { IGalleryViewConfig } from '@univerjs/core'` · Used by [`ViewSpecificConfig`](#viewspecificconfig)

```ts
interface IGalleryViewConfig extends IBaseViewCommonConfig {
  card: ICardLayoutConfig
  coverFieldId?: FieldId | null
  cardLayout?: KanbanCardLayoutMode
  showFieldNames?: boolean
  fieldSettings?: Record<FieldId, IKanbanFieldCardSetting>
  cardSize?: 'small' | 'medium' | 'large'
}
```

**Related types:** [`IBaseViewCommonConfig`](#ibaseviewcommonconfig) · [`ICardLayoutConfig`](#icardlayoutconfig) · [`FieldId`](#fieldid) · [`KanbanCardLayoutMode`](#kanbancardlayoutmode) · [`IKanbanFieldCardSetting`](#ikanbanfieldcardsetting)

## `IGanttViewConfig` [#iganttviewconfig]

`import type { IGanttViewConfig } from '@univerjs/core'` · Used by [`ViewSpecificConfig`](#viewspecificconfig)

```ts
interface IGanttViewConfig extends IBaseViewCommonConfig {
  startDateFieldId: FieldId
  endDateFieldId: FieldId
  titleFieldId?: FieldId
  progressFieldId?: FieldId
  dependencyFieldId?: FieldId
  scale: 'week' | 'month' | 'quarter' | 'year'
  leftPaneWidth?: number
  leftPaneCollapsed?: boolean
  showTodayLine?: boolean
  showWeekend?: boolean
  displayColor?:
    | { type: 'custom'; color: string }
    | { type: 'selectField'; fieldId: FieldId }
    | { type: 'conditional'; rules: IBaseViewColorCondition[] }
  fieldSettings?: Record<FieldId, { hidden?: boolean; order?: number }>
  workingDaysOnly?: boolean
  workingDays?: {
    weekdays: Array<1 | 2 | 3 | 4 | 5 | 6 | 7>
    exceptions: Array<{
      id: string
      date: number
      name: string
      type: 'off' | 'working'
    }>
  }
}
```

**Related types:** [`IBaseViewCommonConfig`](#ibaseviewcommonconfig) · [`FieldId`](#fieldid) · [`IBaseViewColorCondition`](#ibaseviewcolorcondition)

## `IGridViewConfig` [#igridviewconfig]

`import type { IGridViewConfig } from '@univerjs/core'` · Used by [`ViewSpecificConfig`](#viewspecificconfig)

```ts
interface IGridViewConfig extends IBaseViewCommonConfig {
  frozenFieldCount?: number
  showRecordIndex?: boolean
  rowHeight?: 'short' | 'medium' | 'tall' | 'extraTall'
}
```

**Related types:** [`IBaseViewCommonConfig`](#ibaseviewcommonconfig)

## `IKanbanViewConfig` [#ikanbanviewconfig]

`import type { IKanbanViewConfig } from '@univerjs/core'` · Used by [`ViewSpecificConfig`](#viewspecificconfig)

```ts
interface IKanbanViewConfig extends IBaseViewCommonConfig {
  groupFieldId: FieldId
  coverFieldId?: FieldId | null
  cardLayout?: KanbanCardLayoutMode
  showFieldNames?: boolean
  fieldSettings?: Record<FieldId, IKanbanFieldCardSetting>
  columnSettings?: Record<string, IKanbanColumnSetting>
  card?: ICardLayoutConfig
}
```

**Related types:** [`IBaseViewCommonConfig`](#ibaseviewcommonconfig) · [`FieldId`](#fieldid) · [`KanbanCardLayoutMode`](#kanbancardlayoutmode) · [`IKanbanFieldCardSetting`](#ikanbanfieldcardsetting) · [`IKanbanColumnSetting`](#ikanbancolumnsetting) · [`ICardLayoutConfig`](#icardlayoutconfig)

## `BaseFilterOperator` [#basefilteroperator]

`import { BaseFilterOperator } from '@univerjs/core'` · Used by [`IFilterCondition`](#ifiltercondition)

```ts
enum BaseFilterOperator {
  IS = 'is',
  IS_NOT = 'isNot',
  CONTAINS = 'contains',
  NOT_CONTAINS = 'notContains',
  IS_EMPTY = 'isEmpty',
  IS_NOT_EMPTY = 'isNotEmpty',
  GREATER_THAN = 'greaterThan',
  GREATER_THAN_OR_EQUAL = 'greaterThanOrEqual',
  LESS_THAN = 'lessThan',
  LESS_THAN_OR_EQUAL = 'lessThanOrEqual',
  BEFORE = 'before',
  AFTER = 'after',
}
```

## `IBaseConditionalColoringConfig` [#ibaseconditionalcoloringconfig]

`import type { IBaseConditionalColoringConfig } from '@univerjs/core'` · Used by [`IBaseViewCommonConfig`](#ibaseviewcommonconfig)

Persisted conditional coloring configuration for one Base view.

```ts
interface IBaseConditionalColoringConfig {
  rules: IBaseConditionalColorRule[]
}
```

**Related types:** [`IBaseConditionalColorRule`](#ibaseconditionalcolorrule)

## `IBaseViewColorCondition` [#ibaseviewcolorcondition]

`import type { IBaseViewColorCondition } from '@univerjs/core'` · Used by [`IGanttViewConfig`](#iganttviewconfig) · [`IBaseConditionalColorRule`](#ibaseconditionalcolorrule)

A color condition stored by a Base view.

Rules are evaluated in array order. Earlier matching rules are painted last
and therefore have higher visual priority than later matching rules.

```ts
interface IBaseViewColorCondition {
  id: string

  color: string

  target?: BaseConditionalColorTarget

  fieldId: FieldId

  operator: BaseConditionalColorOperator

  operand?: unknown

  dateMode?: BaseConditionalDateMode
}
```

**Related types:** [`BaseConditionalColorTarget`](#baseconditionalcolortarget) · [`FieldId`](#fieldid) · [`BaseConditionalColorOperator`](#baseconditionalcoloroperator) · [`BaseConditionalDateMode`](#baseconditionaldatemode)

## `ICardLayoutConfig` [#icardlayoutconfig]

`import type { ICardLayoutConfig } from '@univerjs/core'` · Used by [`IKanbanViewConfig`](#ikanbanviewconfig) · [`IGalleryViewConfig`](#igalleryviewconfig)

```ts
interface ICardLayoutConfig {
  titleFieldId?: FieldId
  coverFieldId?: FieldId | null
  fieldIds: FieldId[]
}
```

**Related types:** [`FieldId`](#fieldid)

## `IKanbanColumnSetting` [#ikanbancolumnsetting]

`import type { IKanbanColumnSetting } from '@univerjs/core'` · Used by [`IKanbanViewConfig`](#ikanbanviewconfig)

```ts
interface IKanbanColumnSetting {
  title?: string
  color?: string
  collapsed?: boolean
}
```

## `IKanbanFieldCardSetting` [#ikanbanfieldcardsetting]

`import type { IKanbanFieldCardSetting } from '@univerjs/core'` · Used by [`IKanbanViewConfig`](#ikanbanviewconfig) · [`IGalleryViewConfig`](#igalleryviewconfig)

```ts
interface IKanbanFieldCardSetting {
  hidden?: boolean
  order?: number
}
```

## `KanbanCardLayoutMode` [#kanbancardlayoutmode]

`import type { KanbanCardLayoutMode } from '@univerjs/core'` · Used by [`IKanbanViewConfig`](#ikanbanviewconfig) · [`IGalleryViewConfig`](#igalleryviewconfig)

```ts
type KanbanCardLayoutMode = 'normal' | 'compose'
```

## `BaseConditionalColorOperator` [#baseconditionalcoloroperator]

`import type { BaseConditionalColorOperator } from '@univerjs/core'` · Used by [`IBaseViewColorCondition`](#ibaseviewcolorcondition)

```ts
type BaseConditionalColorOperator =
  (typeof BaseConditionalColorOperator)[keyof typeof BaseConditionalColorOperator]
```

## `BaseConditionalColorTarget` [#baseconditionalcolortarget]

`import type { BaseConditionalColorTarget } from '@univerjs/core'` · Used by [`IBaseViewColorCondition`](#ibaseviewcolorcondition) · [`IBaseConditionalColorRule`](#ibaseconditionalcolorrule)

```ts
type BaseConditionalColorTarget =
  (typeof BaseConditionalColorTarget)[keyof typeof BaseConditionalColorTarget]
```

## `BaseConditionalDateMode` [#baseconditionaldatemode]

`import type { BaseConditionalDateMode } from '@univerjs/core'` · Used by [`IBaseViewColorCondition`](#ibaseviewcolorcondition)

```ts
type BaseConditionalDateMode =
  (typeof BaseConditionalDateMode)[keyof typeof BaseConditionalDateMode]
```

## `IBaseConditionalColorRule` [#ibaseconditionalcolorrule]

`import type { IBaseConditionalColorRule } from '@univerjs/core'` · Used by [`IBaseConditionalColoringConfig`](#ibaseconditionalcoloringconfig)

A complete Base conditional coloring rule used by Grid and other Base views.

```ts
interface IBaseConditionalColorRule extends IBaseViewColorCondition {
  target: BaseConditionalColorTarget
}
```

**Related types:** [`IBaseViewColorCondition`](#ibaseviewcolorcondition) · [`BaseConditionalColorTarget`](#baseconditionalcolortarget)
