ods-component-lib 1.18.74 → 1.18.76
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/floatbutton/OdsFloatButton.d.ts +10 -0
- package/dist/components/antd/floatbutton/OdsFloatButton.styled.d.ts +1 -0
- package/dist/components/antd/modal/OdsModal.d.ts +3 -3
- package/dist/components/antd/modal/OdsModalOld.d.ts +7 -0
- package/dist/index.d.ts +4 -4
- package/dist/index.js +8 -18
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +8 -18
- package/dist/index.modern.js.map +1 -1
- package/dist/stories/OdsFloatButton/OdsFloatButton.stories.d.ts +27 -0
- package/dist/stories/OdsFloatButton/Samples/BasicFloatButton.sample.d.ts +1 -0
- package/dist/stories/OdsInputNumber/OdsInputNumber.stories.d.ts +9 -0
- package/dist/stories/OdsModal/OdsModal.stories.d.ts +19 -3
- package/dist/stories/OdsModal/Samples/BasicOdsModal.sample.d.ts +7 -0
- package/dist/stories/OdsModalOld/OdsModalOld.stories.d.ts +28 -0
- package/dist/stories/OdsModalOld/Samples/OdsModalOld.Sample.d.ts +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React, { CSSProperties, MouseEventHandler } from 'react';
|
|
2
|
+
import { BaseButtonProps } from 'antd/es/button/button';
|
|
3
|
+
import { ButtonHTMLType } from 'antd/es/button';
|
|
4
|
+
export interface IFloatButtonProps extends BaseButtonProps {
|
|
5
|
+
onClick?: MouseEventHandler<HTMLElement> | undefined;
|
|
6
|
+
htmlType?: ButtonHTMLType;
|
|
7
|
+
style?: CSSProperties | undefined;
|
|
8
|
+
}
|
|
9
|
+
declare function OdsFloatButton(props: any): React.JSX.Element;
|
|
10
|
+
export default OdsFloatButton;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const StyledFloatButton: import("styled-components").StyledComponent<import("antd/es/float-button/interface").CompoundedComponent, any, {}, never>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ModalProps } from "antd";
|
|
2
2
|
import React from "react";
|
|
3
|
-
export interface
|
|
4
|
-
content:
|
|
3
|
+
export interface ICustomModalProps extends ModalProps {
|
|
4
|
+
content: React.ReactNode;
|
|
5
5
|
}
|
|
6
|
-
declare function OdsModal(props:
|
|
6
|
+
declare function OdsModal(props: ICustomModalProps): React.JSX.Element;
|
|
7
7
|
export default OdsModal;
|
package/dist/index.d.ts
CHANGED
|
@@ -20,7 +20,7 @@ import OdsSearch from "./components/antd/input/OdsSearch";
|
|
|
20
20
|
import OdsTextArea from "./components/antd/input/OdsTextArea";
|
|
21
21
|
import OdsInputNumber from "./components/antd/inputNumber/OdsInputNumber";
|
|
22
22
|
import OdsList from "./components/antd/list/OdsList";
|
|
23
|
-
import
|
|
23
|
+
import OdsModalOld from "./components/antd/modal/OdsModalOld";
|
|
24
24
|
import OdsNotification from "./components/antd/notification/OdsNotification";
|
|
25
25
|
import OdsRadio from "./components/antd/radio/OdsRadio";
|
|
26
26
|
import OdsRadioGroup from "./components/antd/radio/OdsRadioGroup";
|
|
@@ -47,7 +47,7 @@ import DxTreeList from "./components/devextreme/treeview/DxTreeList";
|
|
|
47
47
|
import OdsRemoteDataGrid from "./components/devextreme/OdsRemoteDataGrid";
|
|
48
48
|
import OdsBadge from "./components/antd/badge/OdsBadge";
|
|
49
49
|
import OdsBadgeRibbon from "./components/antd/badge/OdsBadgeRibbon";
|
|
50
|
-
import
|
|
50
|
+
import OdsModal from "./components/antd/modal/OdsModal";
|
|
51
51
|
export { OdsButton };
|
|
52
52
|
export { OdsInput };
|
|
53
53
|
export { OdsDropdownButton };
|
|
@@ -59,7 +59,7 @@ export { OdsPassword };
|
|
|
59
59
|
export { OdsSearch };
|
|
60
60
|
export { OdsTextArea };
|
|
61
61
|
export { OdsCheckbox };
|
|
62
|
-
export {
|
|
62
|
+
export { OdsModalOld };
|
|
63
63
|
export { OdsDivider };
|
|
64
64
|
export { OdsRate };
|
|
65
65
|
export { OdsSwitch };
|
|
@@ -94,7 +94,7 @@ export { OdsBannerAlert };
|
|
|
94
94
|
export { OdsMultiSelect };
|
|
95
95
|
export { OdsBadge };
|
|
96
96
|
export { OdsBadgeRibbon };
|
|
97
|
-
export {
|
|
97
|
+
export { OdsModal };
|
|
98
98
|
export { OdsDataGrid };
|
|
99
99
|
export { OdsDisplayGrid };
|
|
100
100
|
export { OdsRemoteDataGrid };
|
package/dist/index.js
CHANGED
|
@@ -605,7 +605,7 @@ function OdsList(props) {
|
|
|
605
605
|
}, props.children)));
|
|
606
606
|
}
|
|
607
607
|
|
|
608
|
-
function
|
|
608
|
+
function OdsModalOld(props) {
|
|
609
609
|
return React__default.createElement(React__default.Fragment, null, React__default.createElement(antd.Modal, Object.assign({}, props, {
|
|
610
610
|
open: props.open,
|
|
611
611
|
onOk: props.onOk,
|
|
@@ -17260,17 +17260,10 @@ var OdsRemoteDataGrid = function OdsRemoteDataGrid(props) {
|
|
|
17260
17260
|
selectByClick: true,
|
|
17261
17261
|
recursive: true
|
|
17262
17262
|
})), React__default.createElement(DataGrid.Toolbar, null, React__default.createElement(DataGrid.Item, {
|
|
17263
|
+
text: props.pageTitle,
|
|
17263
17264
|
location: "before",
|
|
17264
17265
|
cssClass: 'toolbarTitleItem'
|
|
17265
|
-
},
|
|
17266
|
-
level: 5,
|
|
17267
|
-
style: {
|
|
17268
|
-
display: "flex",
|
|
17269
|
-
alignItems: "center",
|
|
17270
|
-
alignSelf: "stretch",
|
|
17271
|
-
margin: 0
|
|
17272
|
-
}
|
|
17273
|
-
}, props.pageTitle)), props.toolbarButtonGroup && Array.isArray(props.toolbarButtonGroup) && props.toolbarButtonGroup.map(function (buttonGroupItem, index) {
|
|
17266
|
+
}), props.toolbarButtonGroup && Array.isArray(props.toolbarButtonGroup) && props.toolbarButtonGroup.map(function (buttonGroupItem, index) {
|
|
17274
17267
|
return React__default.createElement(DataGrid.Item, {
|
|
17275
17268
|
key: "toolbar-button-" + index,
|
|
17276
17269
|
location: "before"
|
|
@@ -17318,25 +17311,21 @@ function OdsBadgeRibbon(props) {
|
|
|
17318
17311
|
}, React__default.createElement(StyledBadge.Ribbon, Object.assign({}, props), props.children)));
|
|
17319
17312
|
}
|
|
17320
17313
|
|
|
17321
|
-
|
|
17322
|
-
var OdsAdvanceModal = function OdsAdvanceModal(_ref) {
|
|
17323
|
-
var content = _ref.content,
|
|
17324
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$2);
|
|
17314
|
+
function OdsModal(props) {
|
|
17325
17315
|
return React__default.createElement(React__default.Fragment, null, React__default.createElement(antd.Modal, Object.assign({}, props, {
|
|
17326
17316
|
open: props.open,
|
|
17327
17317
|
onOk: props.onOk,
|
|
17328
17318
|
onCancel: props.onCancel
|
|
17329
|
-
}), content), React__default.createElement(styled.ThemeProvider, {
|
|
17319
|
+
}), props.content), React__default.createElement(styled.ThemeProvider, {
|
|
17330
17320
|
theme: lightTheme
|
|
17331
17321
|
}, React__default.createElement(antd.Modal, Object.assign({}, props, {
|
|
17332
17322
|
open: props.open,
|
|
17333
17323
|
onOk: props.onOk,
|
|
17334
17324
|
onCancel: props.onCancel
|
|
17335
|
-
}), content)));
|
|
17336
|
-
}
|
|
17325
|
+
}), props.content)));
|
|
17326
|
+
}
|
|
17337
17327
|
|
|
17338
17328
|
exports.DxTreeList = DxTreeList;
|
|
17339
|
-
exports.OdsAdvanceModal = OdsAdvanceModal;
|
|
17340
17329
|
exports.OdsAlert = OdsAlert;
|
|
17341
17330
|
exports.OdsAutoComplete = OdsAutoComplete;
|
|
17342
17331
|
exports.OdsBadge = OdsBadge;
|
|
@@ -17362,6 +17351,7 @@ exports.OdsInputNumber = OdsInputNumber;
|
|
|
17362
17351
|
exports.OdsLink = OdsLink;
|
|
17363
17352
|
exports.OdsList = OdsList;
|
|
17364
17353
|
exports.OdsModal = OdsModal;
|
|
17354
|
+
exports.OdsModalOld = OdsModalOld;
|
|
17365
17355
|
exports.OdsMultiSelect = OdsMultiSelect;
|
|
17366
17356
|
exports.OdsNotification = OdsNotification;
|
|
17367
17357
|
exports.OdsParagraph = OdsParagraph;
|