ods-component-lib 1.18.27 → 1.18.29
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/antd/button/OdsButton.d.ts +3 -2
- package/dist/components/devextreme/OdsRemoteDataGrid.d.ts +1 -0
- package/dist/index.js +6 -4
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +6 -4
- package/dist/index.modern.js.map +1 -1
- package/dist/stories/OdsButton/OdsButton.stories.d.ts +2 -2
- package/package.json +1 -1
|
@@ -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?:
|
|
20
|
+
onClick?: any;
|
|
21
21
|
htmlType?: string;
|
|
22
22
|
style?: CSSProperties | undefined;
|
|
23
|
+
size?: any;
|
|
23
24
|
}
|
|
24
|
-
declare
|
|
25
|
+
declare function OdsButton(props: any): 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
|
@@ -415,14 +415,11 @@ function OdsAutoComplete(props) {
|
|
|
415
415
|
var _templateObject$2;
|
|
416
416
|
var StyledButton = styled__default(antd.Button)(_templateObject$2 || (_templateObject$2 = _taggedTemplateLiteralLoose(["\n box-shadow: none;\n"])));
|
|
417
417
|
|
|
418
|
-
function
|
|
418
|
+
function OdsButton(props) {
|
|
419
419
|
return React__default.createElement(React__default.Fragment, null, React__default.createElement(styled.ThemeProvider, {
|
|
420
420
|
theme: lightTheme
|
|
421
421
|
}, React__default.createElement(StyledButton, Object.assign({}, props), props.children)));
|
|
422
422
|
}
|
|
423
|
-
var OdsButton = function OdsButton(props) {
|
|
424
|
-
return React__default.createElement(StyledOdsButton, Object.assign({}, props));
|
|
425
|
-
};
|
|
426
423
|
|
|
427
424
|
var onMenuClick = function onMenuClick(e) {
|
|
428
425
|
console.log('click', e);
|
|
@@ -17174,6 +17171,11 @@ var OdsRemoteDataGrid = function OdsRemoteDataGrid(props) {
|
|
|
17174
17171
|
fetchData();
|
|
17175
17172
|
}
|
|
17176
17173
|
}, [(_props$axiosRequest2 = props.axiosRequest) === null || _props$axiosRequest2 === void 0 ? void 0 : _props$axiosRequest2.requestData]);
|
|
17174
|
+
React.useEffect(function () {
|
|
17175
|
+
if (props.ref !== undefined) {
|
|
17176
|
+
gridRef = props.ref;
|
|
17177
|
+
}
|
|
17178
|
+
}, [props.ref]);
|
|
17177
17179
|
React.useEffect(function () {
|
|
17178
17180
|
if (columns !== undefined && columns.length > 0) {
|
|
17179
17181
|
var newColumns = columns.map(function (colItem) {
|