Skip to content

[AnalyticalTable]: type properties missing in CellType and RowType #7887

@shinjjo

Description

@shinjjo

Describe the bug

  1. isAggregated is missing in CellType interface

export interface CellType {
column: ColumnType;
row: RowType;
value: string | undefined;
getCellProps: (props?: any) => any;
[key: string]: any;
}

  1. groupByVal is missing in RowType interface
export interface RowType {
  allCells: Record<string, any>[];
  canExpand: boolean;
  cells: Record<string, any>[];
  depth: number;
  getRowProps: (props?: any) => any;
  getToggleRowExpandedProps: (userProps?: any) => any;
  getToggleRowSelectedProps: (userProps?: any) => any;
  id: string;
  index: number;
  isExpanded: boolean;
  isSelected: boolean;
  isSomeSelected: boolean;
  original: Record<string, any>;
  originalSubRows: Record<string, any>[];
  subRows: Record<string, any>[];
  toggleRowExpanded: (isExpanded?: boolean) => void;
  toggleRowSelected: (isSelected?: boolean) => void;
  values: Record<string, any>;
  [key: string]: any;
}

we have [key:string]: any, but mandatory typing is causing a type error

Property 'isAggregated' is missing in type 'CellType' but required in type '{ isAggregated: boolean; row: { id: string; original: AssetTableType; groupByVal: string; subRows: unknown[]; values: Record<AssetsSectionColumnAccessor, unknown>; }; value: string;

Isolated Example

No response

Reproduction steps

...

Expected Behaviour

can use isAggregated and groupByVal without making them optional

Screenshots or Videos

No response

UI5 Web Components for React Version

2.15.1

UI5 Web Components Version

2.15.1

Browser

Edge

Operating System

No response

Additional Context

No response

Relevant log output

Organization

No response

Declaration

  • I’m not disclosing any internal or sensitive information.

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions