ods-component-lib 1.18.236 → 1.18.238

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.
@@ -1,5 +1,9 @@
1
1
  import React from "react";
2
+ import { IOdsTimelineTableColumnProps, ITranslationValue } from "./OdsTimelineTable.Types";
2
3
  export declare const checkboxCellComponent: (props: any) => React.JSX.Element;
3
4
  export declare const statusCellComponent: (props: any) => React.JSX.Element;
4
5
  export declare const mapCustomTask: (item: any) => any;
5
- export declare const mapSelectedKeys: (datasource: any[], key?: string, selectedKeys?: number[] | string[]) => any[];
6
+ export declare const mapSelectedKeys: (datasource: any[], key?: string, selectedKeys?: string[]) => any[];
7
+ export declare const getTranslatedValue: (value: any, translations?: ITranslationValue[]) => any;
8
+ export declare const getStaticColumnWidth: (props: IOdsTimelineTableColumnProps) => React.ReactText;
9
+ export declare const findMaxDataLength: (data: any[], dataField: string) => number;
@@ -61,6 +61,10 @@ export interface IOdsTimelineTableProps extends React.PropsWithChildren<IGanttOp
61
61
  * ClientSideSorting means Gantt's default sorting, but sorting have to be managed programmacitally if ServerSideSorting is chosen
62
62
  */
63
63
  sortingProcess?: SortingProcessType;
64
+ /**
65
+ * Set translations for showing in cells
66
+ */
67
+ dataTranslations?: ITranslationValue[];
64
68
  /**
65
69
  * This is a selection event that fired when selection is changed.
66
70
  */
@@ -124,3 +128,7 @@ export interface IOdsTimelineTableSearchBox extends IItemProps {
124
128
  placeholder?: string;
125
129
  onSearch?(searchValue?: string): void;
126
130
  }
131
+ export interface ITranslationValue {
132
+ originalValue: any;
133
+ translatedValue: string;
134
+ }