ods-component-lib 1.18.194 → 1.18.195
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/change/OdsChange.d.ts +1 -1
- package/dist/index.js +8 -1
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +8 -1
- package/dist/index.modern.js.map +1 -1
- package/dist/stories/OdsChange/OdsChange.stories.d.ts +10 -0
- package/dist/stories/OdsChange/Samples/AdvancedChange.Sample.d.ts +1 -0
- package/dist/stories/OdsChange/Samples/BasicChange.Sample.d.ts +1 -0
- package/package.json +1 -1
|
@@ -18,7 +18,7 @@ export interface selectedItem {
|
|
|
18
18
|
type: 'select' | 'switch' | 'input';
|
|
19
19
|
selectedItem: RecordType;
|
|
20
20
|
}
|
|
21
|
-
interface OdsChangeProps {
|
|
21
|
+
export interface OdsChangeProps {
|
|
22
22
|
element: element;
|
|
23
23
|
leftSectionTitle: string | '';
|
|
24
24
|
rightSectionTitle: string | '';
|
package/dist/index.js
CHANGED
|
@@ -34873,12 +34873,19 @@ var OdsServerSideDatagrid = function OdsServerSideDatagrid(props) {
|
|
|
34873
34873
|
}
|
|
34874
34874
|
return React__default.createElement(React__default.Fragment, null, buttonElements);
|
|
34875
34875
|
}
|
|
34876
|
+
var remoteOperations = React.useMemo(function () {
|
|
34877
|
+
var _props$remoteOperatio;
|
|
34878
|
+
if (props.isClientSideOperation) {
|
|
34879
|
+
return false;
|
|
34880
|
+
}
|
|
34881
|
+
return (_props$remoteOperatio = props.remoteOperations) != null ? _props$remoteOperatio : true;
|
|
34882
|
+
}, [props.isClientSideOperation, props.remoteOperations]);
|
|
34876
34883
|
return React__default.createElement("div", null, React__default.createElement(devextremeReact.DataGrid, Object.assign({
|
|
34877
34884
|
dataSource: props.dataSource,
|
|
34878
34885
|
showBorders: true,
|
|
34879
34886
|
repaintChangesOnly: true,
|
|
34880
34887
|
allowColumnReordering: true,
|
|
34881
|
-
remoteOperations:
|
|
34888
|
+
remoteOperations: remoteOperations,
|
|
34882
34889
|
columnAutoWidth: false,
|
|
34883
34890
|
wordWrapEnabled: props.wordWrapEnabled ? props.wordWrapEnabled : false,
|
|
34884
34891
|
columnFixing: {
|