ods-component-lib 1.18.244 → 1.18.248

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,4 +1,5 @@
1
1
  import { ReactElement } from "react";
2
+ import { ISortedColumn } from "../../../utils/customTypes";
2
3
  import { IOdsDataGridProps, SummaryTypes } from "./OdsMergeCellDataGrid.Types";
3
4
  export declare const getRequestHeaders: (props: any) => Headers;
4
5
  export declare const concatFilteredLabel: (result: string, totalloaded: number, filteredRowCount: number, filterApplied: boolean, props: any) => string;
@@ -6,3 +7,5 @@ export declare const showSummaryItems: (props: IOdsDataGridProps) => boolean;
6
7
  export declare const getSummaryItems: (props: IOdsDataGridProps, columns: any[], grid: any, isMultiLevelColumn?: boolean) => ReactElement[];
7
8
  export declare const getSummaryItem: (col: any, visibleIndex: number, summaryType: SummaryTypes, isMultiLevelColumn: boolean, label?: string) => ReactElement;
8
9
  export declare const getMultiLevelColumns: (col: any) => any;
10
+ export declare const getSortedColumns: (dataGrid: any) => ISortedColumn[];
11
+ export declare const isSortChanged: (sortOne: ISortedColumn[], sortTwo: ISortedColumn[]) => boolean;
@@ -15,5 +15,5 @@ export declare class OdsMergeCellDataGridHelper {
15
15
  sortDataSource: () => any[];
16
16
  private compareData;
17
17
  private getDataType;
18
- mergeDataSource: (keyExpr: string | string[]) => ICellMergeInfo[];
18
+ mergeDataSource: () => ICellMergeInfo[];
19
19
  }
@@ -47,7 +47,7 @@ export interface IOdsDataGridProps extends IDataGridOptions {
47
47
  masterDetailFeatures?: IMasterDetailFeatures;
48
48
  DetailGridComponent?: React.FC<any>;
49
49
  mergeDataFields: string[];
50
- onSortingChanged?(sortedColumns: ISortedColumn[], headerCellProps?: any): void;
50
+ onSortingChanged?(sortedColumns: ISortedColumn[]): void;
51
51
  }
52
52
  export interface ISummaryRowOptions {
53
53
  summaryLoadedDataLabel?: string;
@@ -93,8 +93,6 @@ export interface ICellMergeInfo {
93
93
  FieldName: string;
94
94
  StartRowIndex: number;
95
95
  EndRowIndex: number;
96
- StartKey: number | string;
97
- Type: "Original" | "New" | "Dirty" | "OutOfScope" | "Placed";
98
96
  }
99
97
  export interface IRootCellIndexInfo {
100
98
  FieldName: string;
@@ -122,9 +122,17 @@ export interface IOdsTimelineTableToolbarSettings {
122
122
  };
123
123
  export?: {
124
124
  visible?: boolean;
125
- title?: string;
126
125
  fileName?: string;
127
- documentFormat?: ExportDocumentType;
126
+ selectedText?: string;
127
+ activeText?: string;
128
+ passiveText?: string;
129
+ pdf: {
130
+ title: string;
131
+ documentFormat?: ExportDocumentType;
132
+ };
133
+ excel: {
134
+ title: string;
135
+ };
128
136
  };
129
137
  columnChooser?: {
130
138
  visible?: boolean;
@@ -142,12 +150,6 @@ export interface IOdsTimelineTableDateFilter extends IItemProps {
142
150
  nextText?: string;
143
151
  onFilterRangeChange(e: IDateRangeChange): void;
144
152
  }
145
- export interface IOdsTimelineTableSearchBox extends IItemProps {
146
- value?: string;
147
- timeoutDuration?: number;
148
- placeholder?: string;
149
- onSearch?(searchValue?: string): void;
150
- }
151
153
  export interface ITranslationValue {
152
154
  originalValue: any;
153
155
  translatedValue: string;
@@ -0,0 +1,4 @@
1
+ export declare const useStyles: (props?: unknown) => import("antd-style").ReturnStyles<{
2
+ searchBoxIcon: import("antd-style").SerializedStyles;
3
+ searchBox: import("antd-style").SerializedStyles;
4
+ }>;
@@ -0,0 +1,6 @@
1
+ export interface IToolbarSearchBoxProps {
2
+ value?: string;
3
+ timeoutDuration?: number;
4
+ placeholder?: string;
5
+ onSearch?(searchValue?: string): void;
6
+ }
@@ -0,0 +1,3 @@
1
+ import React from "react";
2
+ import { IToolbarSearchBoxProps } from "./ToolbarSearchBox.Types";
3
+ export declare const ToolbarSearchBox: (props: IToolbarSearchBoxProps | Readonly<IToolbarSearchBoxProps>) => React.JSX.Element;