ods-component-lib 1.18.138 → 1.18.140
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.
- package/dist/components/devextreme/OdsBasicDataGrid/OdsBasicDataGrid.Types.d.ts +2 -0
- package/dist/components/devextreme/OdsInlineEditDataGrid/OdsInlineEditDataGrid.d.ts +5 -3
- package/dist/components/devextreme/OdsInlineEditDataGrid/handlers/OnActionCellRenderHandler.d.ts +10 -0
- package/dist/components/devextreme/OdsInlineEditDataGrid/handlers/{ContentHandlers.d.ts → OnContentReadyHandler.d.ts} +2 -2
- package/dist/components/devextreme/OdsInlineEditDataGrid/handlers/{EditorPreparedHandlers.d.ts → OnEditorPreparedHandler.d.ts} +1 -1
- package/dist/components/devextreme/OdsInlineEditDataGrid/handlers/OnExportingHandler.d.ts +10 -0
- package/dist/components/devextreme/OdsInlineEditDataGrid/handlers/{OptionHandlers.d.ts → OnOptionChangedHandler.d.ts} +2 -2
- package/dist/components/devextreme/OdsInlineEditDataGrid/handlers/{SummaryHandlers.d.ts → OnSummaryHandler.d.ts} +2 -2
- package/dist/components/devextreme/OdsInlineEditDataGrid/partials/{PageTitle.d.ts → PageTitleAndToolbarPartial.d.ts} +2 -2
- package/dist/components/devextreme/OdsInlineEditDataGrid/types.d.ts +30 -36
- package/dist/components/devextreme/OdsServerSideDatagrid/OdsServerSideDatagrid.Types.d.ts +2 -0
- package/dist/index.js +241 -287
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +241 -287
- package/dist/index.modern.js.map +1 -1
- package/dist/utils/ExportDataGridtoExcel.d.ts +3 -1
- package/package.json +1 -1
- package/dist/components/devextreme/OdsInlineEditDataGrid/handlers/OnExportingHandlers.d.ts +0 -19
- package/dist/components/devextreme/OdsInlineEditDataGrid/partials/ActionCellRender.d.ts +0 -15
- package/dist/components/devextreme/OdsInlineEditDataGrid/partials/EditingPartial.d.ts +0 -9
|
@@ -19,6 +19,8 @@ interface IExportProps {
|
|
|
19
19
|
allowExportSelectedData?: boolean;
|
|
20
20
|
fileName?: string;
|
|
21
21
|
selectedText?: string;
|
|
22
|
+
activeText?: string;
|
|
23
|
+
passiveText?: string;
|
|
22
24
|
}
|
|
23
25
|
export interface IOdsDataGridProps extends IDataGridOptions, IMultiCellEditableDataGridProps {
|
|
24
26
|
dataGridPageName?: string;
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import {
|
|
2
|
+
import { IInlineEditDataGridProps } from "./types";
|
|
3
|
+
import * as InlineEditDataGridTypes from "./types";
|
|
3
4
|
/**
|
|
4
5
|
* OdsInlineEditDataGrid component.
|
|
5
6
|
* @param {IVirtualDataGridProps} props - The component props.
|
|
6
7
|
* @returns {React.FC} - The rendered component.
|
|
7
8
|
*/
|
|
8
|
-
declare const OdsInlineEditDataGrid: React.FC<
|
|
9
|
+
declare const OdsInlineEditDataGrid: React.FC<IInlineEditDataGridProps>;
|
|
9
10
|
export default OdsInlineEditDataGrid;
|
|
10
|
-
export
|
|
11
|
+
export { OdsInlineEditDataGrid };
|
|
12
|
+
export type { IInlineEditDataGridProps, InlineEditDataGridTypes };
|
package/dist/components/devextreme/OdsInlineEditDataGrid/handlers/OnActionCellRenderHandler.d.ts
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { IButtonGrouOptions, IEditingOptions } from "../types";
|
|
3
|
+
/**
|
|
4
|
+
* Custom hook that returns a callback function for rendering action buttons in a cell.
|
|
5
|
+
* @param visibleActionButtons - An array of options for visible action buttons.
|
|
6
|
+
* @param actionButtonGroup - An array of options for action buttons.
|
|
7
|
+
* @param edit - An object containing editing options.
|
|
8
|
+
* @returns The onActionCellRender callback function.
|
|
9
|
+
*/
|
|
10
|
+
export declare const useOnActionCellRenderHandler: (visibleActionButtons: IButtonGrouOptions[] | undefined, actionButtonGroup: IButtonGrouOptions[] | undefined, edit: IEditingOptions | undefined) => (cellData: any | undefined) => React.JSX.Element;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ContentReadyEvent } from "devextreme/ui/data_grid";
|
|
2
|
-
import {
|
|
2
|
+
import { IColumnOptions } from "../types";
|
|
3
3
|
/**
|
|
4
4
|
* Custom hook to handle content ready events for the data grid.
|
|
5
5
|
* @param {React.MutableRefObject<any>} lastPageIndexRef - Reference to the last page index.
|
|
@@ -11,4 +11,4 @@ import { IColumnConfig } from "../types";
|
|
|
11
11
|
* @param {Function} [callback] - Optional callback function.
|
|
12
12
|
* @returns {(e: ContentReadyEvent<any, any>) => void} handleContentReady - Handler for content ready event.
|
|
13
13
|
*/
|
|
14
|
-
export declare const
|
|
14
|
+
export declare const useOnContentReadyHandler: (lastPageIndexRef: React.MutableRefObject<any>, contentReady: boolean, columns: IColumnOptions[], setRowCount: Function, setContentReady: Function, setCurrentPage: Function, setCurrentPageSize: Function, setHeaderFilterData: Function, callback?: Function) => (e: ContentReadyEvent<any, any>) => void;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { IExportOptions } from "../types";
|
|
2
|
+
/**
|
|
3
|
+
* Handles the exporting of data from the grid component.
|
|
4
|
+
*
|
|
5
|
+
* @param {IExportOptions} exportProps - The export options for the data grid.
|
|
6
|
+
* @param {Function} callback - The callback function to be executed after exporting.
|
|
7
|
+
* @param {() => string} getSummary - The callback function to get the summary.
|
|
8
|
+
* @returns {Function} - The onExporting event handler function.
|
|
9
|
+
*/
|
|
10
|
+
export declare const useOnExportingHandler: (exportProps: IExportOptions, getSummary: () => string, callback: Function) => (e: any) => void;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Custom hook to handle option change events for the data grid.
|
|
3
|
-
* @param {
|
|
3
|
+
* @param {React.RefObject} dataGridRef - The ref object for the data grid.
|
|
4
4
|
* @param {Function} setFilterApplied - Function to set the filter applied state.
|
|
5
5
|
* @returns {Function} - Handler function for option changed event.
|
|
6
6
|
*/
|
|
7
|
-
export declare const
|
|
7
|
+
export declare const useOnOptionChangedHandler: (dataGridRef: any, setFilterApplied: any, callback: any) => (e: any) => void;
|
|
@@ -10,12 +10,12 @@ interface IUseSummaryHandlersProps {
|
|
|
10
10
|
isServerSide?: boolean;
|
|
11
11
|
}
|
|
12
12
|
/**
|
|
13
|
-
* Custom hook that provides summary
|
|
13
|
+
* Custom hook that provides summary handler for a data grid.
|
|
14
14
|
*
|
|
15
15
|
* @param {IUseSummaryHandlersProps} props - The props object containing necessary parameters.
|
|
16
16
|
* @returns {Object} - An object containing the renderTotal function.
|
|
17
17
|
*/
|
|
18
|
-
export declare const
|
|
18
|
+
export declare const useOnSummaryHandler: ({ customSummary, totalRecordCount, currentPageSize, currentPage, filterApplied, rowCount, filteredRowCount, }: IUseSummaryHandlersProps) => {
|
|
19
19
|
renderTotal: () => string | null;
|
|
20
20
|
};
|
|
21
21
|
export {};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import {
|
|
2
|
+
import { IToolbarButtonOptions } from "../types";
|
|
3
3
|
interface PageTitleAndToolbarProps {
|
|
4
4
|
pageTitle?: string;
|
|
5
|
-
toolbarButtonGroup?:
|
|
5
|
+
toolbarButtonGroup?: IToolbarButtonOptions[];
|
|
6
6
|
}
|
|
7
7
|
declare const MemoizedPageTitleAndToolbar: React.NamedExoticComponent<PageTitleAndToolbarProps>;
|
|
8
8
|
export default MemoizedPageTitleAndToolbar;
|
|
@@ -4,15 +4,11 @@
|
|
|
4
4
|
*/
|
|
5
5
|
/// <reference types="react" />
|
|
6
6
|
import { ButtonType } from "antd/es/button";
|
|
7
|
-
import { IButtonProps, IDataGridOptions, IEditingProps, ISummaryProps } from "devextreme-react/data-grid";
|
|
7
|
+
import { IButtonProps, IColumnProps, IDataGridOptions, IEditingProps, ISummaryProps, IPagerProps, IExportProps, IScrollingProps } from "devextreme-react/data-grid";
|
|
8
8
|
/**
|
|
9
9
|
* Represents the configuration for a column in the data grid.
|
|
10
10
|
*/
|
|
11
|
-
export interface
|
|
12
|
-
dataField: string;
|
|
13
|
-
caption: string;
|
|
14
|
-
allowSorting?: boolean;
|
|
15
|
-
allowSearch?: boolean;
|
|
11
|
+
export interface IColumnOptions extends Omit<IColumnProps, "cellRender" | "calculateFilterExpression" | "format"> {
|
|
16
12
|
cellRender?: (data: any) => JSX.Element | string;
|
|
17
13
|
calculateFilterExpression?: (value: any, operation: string, target: string) => any;
|
|
18
14
|
format?: string | object;
|
|
@@ -20,17 +16,12 @@ export interface IColumnConfig {
|
|
|
20
16
|
/**
|
|
21
17
|
* Represents the props for the pager component.
|
|
22
18
|
*/
|
|
23
|
-
interface IPagerProps {
|
|
24
|
-
visible?: boolean;
|
|
25
|
-
showPageSizeSelector?: boolean;
|
|
26
|
-
showInfo?: boolean;
|
|
27
|
-
displayMode?: "full" | "compact";
|
|
28
|
-
infoText?: string;
|
|
19
|
+
export interface IPagerOptions extends Partial<IPagerProps> {
|
|
29
20
|
}
|
|
30
21
|
/**
|
|
31
22
|
* Represents the props for the export functionality.
|
|
32
23
|
*/
|
|
33
|
-
interface IExportProps {
|
|
24
|
+
export interface IExportOptions extends Partial<IExportProps> {
|
|
34
25
|
enabled: boolean;
|
|
35
26
|
allowExportSelectedData?: boolean;
|
|
36
27
|
fileName?: string;
|
|
@@ -39,7 +30,7 @@ interface IExportProps {
|
|
|
39
30
|
/**
|
|
40
31
|
* Represents the configuration for a toolbar button.
|
|
41
32
|
*/
|
|
42
|
-
export interface
|
|
33
|
+
export interface IToolbarButtonOptions {
|
|
43
34
|
type: string;
|
|
44
35
|
label: string;
|
|
45
36
|
onClick: () => void;
|
|
@@ -56,7 +47,7 @@ export interface IEditingOptions extends Omit<IEditingProps, "mode"> {
|
|
|
56
47
|
/**
|
|
57
48
|
* Represents the configuration for a button group.
|
|
58
49
|
*/
|
|
59
|
-
export interface
|
|
50
|
+
export interface IButtonGrouOptions extends Omit<IButtonProps, "name"> {
|
|
60
51
|
name?: "cancel" | "delete" | "edit" | "save" | "undelete" | "unmap";
|
|
61
52
|
type?: ButtonType;
|
|
62
53
|
label?: string;
|
|
@@ -64,6 +55,8 @@ export interface IButtonGroup extends Omit<IButtonProps, "name"> {
|
|
|
64
55
|
actionPermission?: boolean;
|
|
65
56
|
icon: any;
|
|
66
57
|
}
|
|
58
|
+
export interface IScrollingOptions extends Partial<IScrollingProps> {
|
|
59
|
+
}
|
|
67
60
|
/**
|
|
68
61
|
* Represents the options for summary rows in the data grid.
|
|
69
62
|
*/
|
|
@@ -85,29 +78,30 @@ export interface ISummaryRowOptions {
|
|
|
85
78
|
summaryMaxLabel?: string;
|
|
86
79
|
summaryCountLabel?: string;
|
|
87
80
|
}
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
*/
|
|
91
|
-
export interface IVirtualDataGridProps extends IDataGridOptions {
|
|
92
|
-
columns: IColumnConfig[];
|
|
93
|
-
sortingProps?: any;
|
|
94
|
-
pagerProps?: IPagerProps;
|
|
95
|
-
exportProps?: IExportProps;
|
|
96
|
-
customSummary?: ISummaryRowOptions;
|
|
97
|
-
actionButtonGroup?: IButtonGroup[];
|
|
81
|
+
export interface IODSDataGridCustomOptions {
|
|
82
|
+
actionButtonGroup?: IButtonGrouOptions[];
|
|
98
83
|
actionColumnEnable?: boolean;
|
|
99
|
-
|
|
100
|
-
|
|
84
|
+
columnChooserPositionDisabled?: boolean;
|
|
85
|
+
columnResizingMode?: "nextColumn" | "widget";
|
|
86
|
+
gridColumns?: IColumnOptions[];
|
|
87
|
+
customSummary?: ISummaryRowOptions;
|
|
88
|
+
dataGridPageName?: string;
|
|
89
|
+
dataGridRef?: any;
|
|
90
|
+
editProps?: IEditingOptions;
|
|
91
|
+
exportProps?: IExportOptions;
|
|
101
92
|
isFilterPanel?: boolean;
|
|
102
93
|
isFilterRow?: boolean;
|
|
94
|
+
language?: string;
|
|
95
|
+
pagerProps?: IPagerOptions;
|
|
103
96
|
pageSize?: number;
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
totalRecordCount
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
97
|
+
pageTitle?: string;
|
|
98
|
+
scrollingProps?: IScrollingOptions;
|
|
99
|
+
sortingProps?: any;
|
|
100
|
+
toolbarButtonGroup?: IToolbarButtonOptions[];
|
|
101
|
+
totalRecordCount?: number;
|
|
102
|
+
}
|
|
103
|
+
/**
|
|
104
|
+
* Represents the props for a virtual data grid component.
|
|
105
|
+
*/
|
|
106
|
+
export interface IInlineEditDataGridProps extends IDataGridOptions, IODSDataGridCustomOptions {
|
|
112
107
|
}
|
|
113
|
-
export {};
|