ods-component-lib 1.18.27 → 1.18.28

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.
@@ -17,9 +17,10 @@ import React, { CSSProperties } from "react";
17
17
  * @returns antd styled button
18
18
  */
19
19
  export interface IButtonProps extends BaseButtonProps {
20
- onClick?: React.MouseEventHandler<HTMLElement>;
20
+ onClick?: any;
21
21
  htmlType?: string;
22
22
  style?: CSSProperties | undefined;
23
+ size?: any;
23
24
  }
24
25
  declare const OdsButton: (props: IButtonProps) => React.JSX.Element;
25
26
  export default OdsButton;
@@ -2,6 +2,7 @@ import React from 'react';
2
2
  import { IDataGridOptions, IButtonProps, ISelectionProps, IEditingProps, ISummaryProps } from 'devextreme-react/data-grid';
3
3
  import { ButtonType } from 'antd/es/button/buttonHelpers';
4
4
  export interface IOdsDataGridProps extends IDataGridOptions {
5
+ ref?: any;
5
6
  dataGridPageName: string;
6
7
  language: string;
7
8
  exportFileName: string;
package/dist/index.js CHANGED
@@ -17174,6 +17174,11 @@ var OdsRemoteDataGrid = function OdsRemoteDataGrid(props) {
17174
17174
  fetchData();
17175
17175
  }
17176
17176
  }, [(_props$axiosRequest2 = props.axiosRequest) === null || _props$axiosRequest2 === void 0 ? void 0 : _props$axiosRequest2.requestData]);
17177
+ React.useEffect(function () {
17178
+ if (props.ref !== undefined) {
17179
+ gridRef = props.ref;
17180
+ }
17181
+ }, [props.ref]);
17177
17182
  React.useEffect(function () {
17178
17183
  if (columns !== undefined && columns.length > 0) {
17179
17184
  var newColumns = columns.map(function (colItem) {