ods-component-lib 1.18.238 → 1.18.239

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,8 +1,8 @@
1
1
  import { ReactElement } from "react";
2
- import { IOdsDataGridProps, SummaryTypes } from "./OdsMergeCellDataGrid.Types";
2
+ import { IOdsDataGridProps } from "./OdsMergeCellDataGrid.Types";
3
3
  export declare const getRequestHeaders: (props: any) => Headers;
4
4
  export declare const concatFilteredLabel: (result: string, totalloaded: number, filteredRowCount: number, filterApplied: boolean, props: any) => string;
5
5
  export declare const showSummaryItems: (props: IOdsDataGridProps) => boolean;
6
6
  export declare const getSummaryItems: (props: IOdsDataGridProps, columns: any[], grid: any, isMultiLevelColumn?: boolean) => ReactElement[];
7
- export declare const getSummaryItem: (col: any, visibleIndex: number, summaryType: SummaryTypes, isMultiLevelColumn: boolean, label?: string) => ReactElement;
7
+ export declare const getSummaryItem: (col: any, visibleIndex: number, summaryType: any, isMultiLevelColumn: boolean, label?: string) => ReactElement;
8
8
  export declare const getMultiLevelColumns: (col: any) => any;
@@ -1,8 +1,8 @@
1
1
  import React from "react";
2
2
  import { ButtonType } from "antd/es/button/buttonHelpers";
3
3
  import { IButtonProps, IDataGridOptions, IEditingProps, ISelectionProps, ISummaryProps } from "devextreme-react/data-grid";
4
+ import { ITooltipType } from "../../../utils/customTypes";
4
5
  import { IColumnOptions, IMasterDetailDatas, IMasterDetailFeatures } from "../OdsMasterDetailDataGrid/types";
5
- export declare type SummaryTypes = "avg" | "count" | "custom" | "max" | "min" | "sum";
6
6
  interface IExportProps {
7
7
  enabled: boolean;
8
8
  allowExportSelectedData?: boolean;
@@ -11,7 +11,6 @@ interface IExportProps {
11
11
  activeText?: string;
12
12
  passiveText?: string;
13
13
  }
14
- export declare type ITooltipType = "raw" | "styled";
15
14
  export interface IOdsDataGridProps extends IDataGridOptions {
16
15
  refGrid: React.MutableRefObject<any>;
17
16
  dataGridPageName?: string;
@@ -1,4 +1,6 @@
1
+ import { IOdsTimelineTableColumnProps } from "./OdsTimelineTable.Types";
1
2
  export declare const Constants: {
2
3
  timelineDefaultStartDate: Date;
3
4
  timelineDefaultEndDate: Date;
4
5
  };
6
+ export declare const actionColumnProps: IOdsTimelineTableColumnProps;
@@ -1,5 +1,5 @@
1
1
  import React from "react";
2
- import { IOdsTimelineTableColumnProps, ITranslationValue } from "./OdsTimelineTable.Types";
2
+ import { IButtonGroup, IOdsTimelineTableColumnProps, IOdsTimelineTableProps, ITranslationValue } from "./OdsTimelineTable.Types";
3
3
  export declare const checkboxCellComponent: (props: any) => React.JSX.Element;
4
4
  export declare const statusCellComponent: (props: any) => React.JSX.Element;
5
5
  export declare const mapCustomTask: (item: any) => any;
@@ -7,3 +7,4 @@ export declare const mapSelectedKeys: (datasource: any[], key?: string, selected
7
7
  export declare const getTranslatedValue: (value: any, translations?: ITranslationValue[]) => any;
8
8
  export declare const getStaticColumnWidth: (props: IOdsTimelineTableColumnProps) => React.ReactText;
9
9
  export declare const findMaxDataLength: (data: any[], dataField: string) => number;
10
+ export declare const actionCellRender: (cellData: any, props: IOdsTimelineTableProps, actionButtons: IButtonGroup[]) => React.JSX.Element;
@@ -1,6 +1,8 @@
1
1
  /// <reference types="react" />
2
2
  import { IColumnProps, IGanttOptions, IItemProps } from "devextreme-react/gantt";
3
- import { ExportDocumentType, SortingProcessType, SortingType } from "../../../utils/customTypes";
3
+ import { ExportDocumentType, ITooltipType, SortingProcessType, SortingType } from "../../../utils/customTypes";
4
+ import { IButtonProps } from "devextreme-react/data-grid";
5
+ import { ButtonType } from "antd/es/button/buttonHelpers";
4
6
  export declare type SortingMode = "single" | "multiple" | "none";
5
7
  export declare const enum EnumDateDirection {
6
8
  prevMonth = "previousMonth",
@@ -65,6 +67,10 @@ export interface IOdsTimelineTableProps extends React.PropsWithChildren<IGanttOp
65
67
  * Set translations for showing in cells
66
68
  */
67
69
  dataTranslations?: ITranslationValue[];
70
+ /**
71
+ * Set settings for action column
72
+ */
73
+ actionColumnSettings?: IOdsTimelineTableActionColumnProps;
68
74
  /**
69
75
  * This is a selection event that fired when selection is changed.
70
76
  */
@@ -78,6 +84,19 @@ export interface IOdsTimelineTableProps extends React.PropsWithChildren<IGanttOp
78
84
  */
79
85
  onSortingChanged?(sortedColumns: ISortedColumn[], headerCellProps?: any): void;
80
86
  }
87
+ export interface IOdsTimelineTableActionColumnProps {
88
+ actionColumnEnable?: boolean;
89
+ actionButtonGroupCaption?: string;
90
+ actionButtonGroup?: IButtonGroup[];
91
+ actionButtonsTooltipType?: ITooltipType;
92
+ }
93
+ export interface IButtonGroup extends Omit<IButtonProps, "icon"> {
94
+ icon?: JSX.Element;
95
+ type?: ButtonType;
96
+ label?: string;
97
+ actionPermission?: boolean;
98
+ onclick?: React.MouseEventHandler<HTMLElement>;
99
+ }
81
100
  export interface IOdsTimelineTableColumnProps extends IColumnProps {
82
101
  isMinimized?: boolean;
83
102
  isStatusColumn?: boolean;
package/dist/index.css CHANGED
@@ -245,6 +245,10 @@ tr._2CvVM._3Xrp3._19iuB._3udtX {
245
245
  ._2dILO {
246
246
  flex: 1;
247
247
  align-content: center;
248
+ }
249
+
250
+ ._SQfc5 {
251
+ text-align: center !important;
248
252
  }
249
253
  ._3n8UJ {
250
254
  background-color: lightgreen;