ods-component-lib 1.18.29 → 1.18.31
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/OdsDatagridProps.d.ts +2 -0
- package/dist/components/devextreme/OdsRemoteDataGrid.d.ts +1 -0
- package/dist/index.d.ts +0 -4
- package/dist/index.js +11 -116
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +13 -116
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
- /package/dist/components/antd/datepicker/{OdsDateRangepicker.d.ts → OdsDateRangePicker.d.ts} +0 -0
|
@@ -21,6 +21,7 @@ export interface IOdsDataGridProps extends IDataGridOptions {
|
|
|
21
21
|
isServerSide: boolean;
|
|
22
22
|
axiosRequest?: IAxiosProps;
|
|
23
23
|
customSummary?: ISummaryRowOptions;
|
|
24
|
+
handleEditorPreparing?: any;
|
|
24
25
|
}
|
|
25
26
|
interface ISummaryRowOptions {
|
|
26
27
|
summaryLoadedDataLabel?: string;
|
package/dist/index.d.ts
CHANGED
|
@@ -12,7 +12,6 @@ import OdsDatepicker from "./components/antd/datepicker/OdsDatepicker";
|
|
|
12
12
|
import OdsDivider from "./components/antd/divider/OdsDivider";
|
|
13
13
|
import OdsCollapse from "./components/antd/dropdown/OdsDropdown";
|
|
14
14
|
import OdsDropdown from "./components/antd/dropdown/OdsDropdown";
|
|
15
|
-
import OdsBasicForm from "./components/antd/form/OdsBasicForm";
|
|
16
15
|
import OdsImage from "./components/antd/image/OdsImage";
|
|
17
16
|
import OdsInput from "./components/antd/input/OdsInput.";
|
|
18
17
|
import OdsPassword from "./components/antd/input/OdsPassword";
|
|
@@ -21,7 +20,6 @@ import OdsSearch from "./components/antd/input/OdsSearch";
|
|
|
21
20
|
import OdsTextArea from "./components/antd/input/OdsTextArea";
|
|
22
21
|
import OdsInputNumber from "./components/antd/inputNumber/OdsInputNumber";
|
|
23
22
|
import OdsList from "./components/antd/list/OdsList";
|
|
24
|
-
import OdsMessage from "./components/antd/message/OdsMessage";
|
|
25
23
|
import OdsModal from "./components/antd/modal/OdsModal";
|
|
26
24
|
import OdsNotification from "./components/antd/notification/OdsNotification";
|
|
27
25
|
import OdsRadio from "./components/antd/radio/OdsRadio";
|
|
@@ -58,7 +56,6 @@ export { OdsDatepicker };
|
|
|
58
56
|
export { OdsSelect };
|
|
59
57
|
export { OdsRadio };
|
|
60
58
|
export { OdsAutoComplete };
|
|
61
|
-
export { OdsBasicForm };
|
|
62
59
|
export { OdsPassword };
|
|
63
60
|
export { OdsSearch };
|
|
64
61
|
export { OdsTextArea };
|
|
@@ -76,7 +73,6 @@ export { OdsCollapse };
|
|
|
76
73
|
export { OdsDateRangePicker };
|
|
77
74
|
export { OdsImage };
|
|
78
75
|
export { OdsList };
|
|
79
|
-
export { OdsMessage };
|
|
80
76
|
export { OdsRadioGroup };
|
|
81
77
|
export { OdsCheckboxGroup };
|
|
82
78
|
export { OdsSpin };
|
package/dist/index.js
CHANGED
|
@@ -10,7 +10,6 @@ var Card = _interopDefault(require('antd/es/card/Card'));
|
|
|
10
10
|
var icons = require('@ant-design/icons');
|
|
11
11
|
require('react-phone-input-2/lib/style.css');
|
|
12
12
|
var PhoneInput = _interopDefault(require('react-phone-input-2'));
|
|
13
|
-
var message = _interopDefault(require('antd/es/message'));
|
|
14
13
|
var Parser = _interopDefault(require('html-react-parser'));
|
|
15
14
|
var localization = require('devextreme/localization');
|
|
16
15
|
var DataGrid = require('devextreme-react/data-grid');
|
|
@@ -532,55 +531,6 @@ function OdsCollapse(props) {
|
|
|
532
531
|
}, props.children)));
|
|
533
532
|
}
|
|
534
533
|
|
|
535
|
-
var _templateObject$9;
|
|
536
|
-
var StyledInput = styled__default(antd.Input)(_templateObject$9 || (_templateObject$9 = _taggedTemplateLiteralLoose(["\n //\n"])));
|
|
537
|
-
|
|
538
|
-
function OdsInput(props) {
|
|
539
|
-
return React__default.createElement(React__default.Fragment, null, React__default.createElement(styled.ThemeProvider, {
|
|
540
|
-
theme: lightTheme
|
|
541
|
-
}, React__default.createElement(StyledInput, Object.assign({}, props), props === null || props === void 0 ? void 0 : props.children)));
|
|
542
|
-
}
|
|
543
|
-
|
|
544
|
-
var layout = {
|
|
545
|
-
labelCol: {
|
|
546
|
-
span: 8
|
|
547
|
-
},
|
|
548
|
-
wrapperCol: {
|
|
549
|
-
span: 16
|
|
550
|
-
}
|
|
551
|
-
};
|
|
552
|
-
function renderElement(type) {
|
|
553
|
-
switch (type) {
|
|
554
|
-
case 'text':
|
|
555
|
-
return React__default.createElement(OdsInput, null);
|
|
556
|
-
default:
|
|
557
|
-
return React__default.createElement(OdsInput, null);
|
|
558
|
-
}
|
|
559
|
-
}
|
|
560
|
-
function OdsBasicForm(props) {
|
|
561
|
-
var onFinish = function onFinish(values) {
|
|
562
|
-
console.log('Received values:', values);
|
|
563
|
-
};
|
|
564
|
-
var onFinishFailed = function onFinishFailed(errorInfo) {
|
|
565
|
-
console.log('Failed:', errorInfo);
|
|
566
|
-
};
|
|
567
|
-
return React__default.createElement(antd.Form, Object.assign({
|
|
568
|
-
onFinish: onFinish,
|
|
569
|
-
onFinishFailed: onFinishFailed
|
|
570
|
-
}, layout), props.formItems.map(function (formItem) {
|
|
571
|
-
return React__default.createElement(antd.Form.Item, {
|
|
572
|
-
label: formItem.label,
|
|
573
|
-
name: formItem.name,
|
|
574
|
-
rules: formItem.rules
|
|
575
|
-
}, renderElement(formItem.formItemType));
|
|
576
|
-
}), props.formButtons.map(function (formButton) {
|
|
577
|
-
React__default.createElement(antd.Form.Item, null, React__default.createElement(OdsButton, {
|
|
578
|
-
type: formButton.type,
|
|
579
|
-
htmlType: formButton.htmlType
|
|
580
|
-
}, formButton.children));
|
|
581
|
-
}));
|
|
582
|
-
}
|
|
583
|
-
|
|
584
534
|
function OdsImagePreviewGroup() {
|
|
585
535
|
var _useState = React.useState(false),
|
|
586
536
|
visible = _useState[0],
|
|
@@ -619,6 +569,15 @@ function OdsImage(props) {
|
|
|
619
569
|
return React__default.createElement(React__default.Fragment, null, isMultiple ? React__default.createElement(antd.Image, Object.assign({}, props)) : React__default.createElement(OdsImagePreviewGroup, Object.assign({}, props)));
|
|
620
570
|
}
|
|
621
571
|
|
|
572
|
+
var _templateObject$9;
|
|
573
|
+
var StyledInput = styled__default(antd.Input)(_templateObject$9 || (_templateObject$9 = _taggedTemplateLiteralLoose(["\n //\n"])));
|
|
574
|
+
|
|
575
|
+
function OdsInput(props) {
|
|
576
|
+
return React__default.createElement(React__default.Fragment, null, React__default.createElement(styled.ThemeProvider, {
|
|
577
|
+
theme: lightTheme
|
|
578
|
+
}, React__default.createElement(StyledInput, Object.assign({}, props), props === null || props === void 0 ? void 0 : props.children)));
|
|
579
|
+
}
|
|
580
|
+
|
|
622
581
|
function OdsPassword(props) {
|
|
623
582
|
return React__default.createElement(React__default.Fragment, null, React__default.createElement(styled.ThemeProvider, {
|
|
624
583
|
theme: lightTheme
|
|
@@ -684,68 +643,6 @@ function OdsList(props) {
|
|
|
684
643
|
}, props.children)));
|
|
685
644
|
}
|
|
686
645
|
|
|
687
|
-
function OdsMessage(type, content, duration) {
|
|
688
|
-
if (duration === void 0) {
|
|
689
|
-
duration = 10;
|
|
690
|
-
}
|
|
691
|
-
var _message$useMessage = message.useMessage(),
|
|
692
|
-
messageApi = _message$useMessage[0];
|
|
693
|
-
var success = function success() {
|
|
694
|
-
messageApi.open({
|
|
695
|
-
type: 'success',
|
|
696
|
-
content: content,
|
|
697
|
-
duration: duration
|
|
698
|
-
});
|
|
699
|
-
};
|
|
700
|
-
var error = function error() {
|
|
701
|
-
messageApi.open({
|
|
702
|
-
type: 'error',
|
|
703
|
-
content: content,
|
|
704
|
-
duration: duration
|
|
705
|
-
});
|
|
706
|
-
};
|
|
707
|
-
var warning = function warning() {
|
|
708
|
-
messageApi.open({
|
|
709
|
-
type: 'warning',
|
|
710
|
-
content: content,
|
|
711
|
-
duration: duration
|
|
712
|
-
});
|
|
713
|
-
};
|
|
714
|
-
var info = function info() {
|
|
715
|
-
messageApi.open({
|
|
716
|
-
type: 'info',
|
|
717
|
-
content: content,
|
|
718
|
-
duration: duration
|
|
719
|
-
});
|
|
720
|
-
};
|
|
721
|
-
var loading = function loading() {
|
|
722
|
-
messageApi.open({
|
|
723
|
-
type: 'loading',
|
|
724
|
-
content: content,
|
|
725
|
-
duration: duration
|
|
726
|
-
});
|
|
727
|
-
};
|
|
728
|
-
var contentt;
|
|
729
|
-
switch (type) {
|
|
730
|
-
case "info":
|
|
731
|
-
contentt = React__default.createElement("div", null, info);
|
|
732
|
-
break;
|
|
733
|
-
case "error":
|
|
734
|
-
contentt = React__default.createElement("div", null, error);
|
|
735
|
-
break;
|
|
736
|
-
case "warning":
|
|
737
|
-
contentt = React__default.createElement("div", null, warning);
|
|
738
|
-
break;
|
|
739
|
-
case "loading":
|
|
740
|
-
contentt = React__default.createElement("div", null, loading);
|
|
741
|
-
break;
|
|
742
|
-
case "success":
|
|
743
|
-
contentt = React__default.createElement("div", null, success);
|
|
744
|
-
break;
|
|
745
|
-
}
|
|
746
|
-
return React__default.createElement(React__default.Fragment, null, contentt);
|
|
747
|
-
}
|
|
748
|
-
|
|
749
646
|
function OdsModal(props) {
|
|
750
647
|
return React__default.createElement(React__default.Fragment, null, React__default.createElement(antd.Modal, Object.assign({}, props, {
|
|
751
648
|
open: props.open,
|
|
@@ -17292,8 +17189,8 @@ var OdsRemoteDataGrid = function OdsRemoteDataGrid(props) {
|
|
|
17292
17189
|
e.editorOptions.onFocusIn = disableScrolling;
|
|
17293
17190
|
e.editorOptions.onFocusOut = enableScrolling;
|
|
17294
17191
|
}
|
|
17295
|
-
if (props.
|
|
17296
|
-
props.
|
|
17192
|
+
if (props.handleEditorPreparing) {
|
|
17193
|
+
props.handleEditorPreparing(e);
|
|
17297
17194
|
}
|
|
17298
17195
|
}
|
|
17299
17196
|
if (e.editorOptions && e.rowType === 'data' && e.parentType === 'dataRow') {
|
|
@@ -17668,7 +17565,6 @@ exports.DxTreeView = DxTreeView;
|
|
|
17668
17565
|
exports.OdsAlert = OdsAlert;
|
|
17669
17566
|
exports.OdsAutoComplete = OdsAutoComplete;
|
|
17670
17567
|
exports.OdsBannerAlert = OdsBannerAlert;
|
|
17671
|
-
exports.OdsBasicForm = OdsBasicForm;
|
|
17672
17568
|
exports.OdsBasicTable = OdsBasicTable;
|
|
17673
17569
|
exports.OdsButton = OdsButton;
|
|
17674
17570
|
exports.OdsCalendar = OdsCalendar;
|
|
@@ -17691,7 +17587,6 @@ exports.OdsInputNumber = OdsInputNumber;
|
|
|
17691
17587
|
exports.OdsLink = OdsLink;
|
|
17692
17588
|
exports.OdsList = OdsList;
|
|
17693
17589
|
exports.OdsLogin = OdsLogin;
|
|
17694
|
-
exports.OdsMessage = OdsMessage;
|
|
17695
17590
|
exports.OdsModal = OdsModal;
|
|
17696
17591
|
exports.OdsNotification = OdsNotification;
|
|
17697
17592
|
exports.OdsParagraph = OdsParagraph;
|