ods-component-lib 1.18.16 → 1.18.17
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/index.js +6 -1
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +6 -1
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.modern.js
CHANGED
|
@@ -17171,6 +17171,11 @@ var OdsRemoteDataGrid = function OdsRemoteDataGrid(props) {
|
|
|
17171
17171
|
setColumns(newColumns);
|
|
17172
17172
|
}
|
|
17173
17173
|
}, [props.columns]);
|
|
17174
|
+
useEffect(function () {
|
|
17175
|
+
if (Array.isArray(props.dataSource) && props.dataSource.length > 0) {
|
|
17176
|
+
setData(props.dataSource);
|
|
17177
|
+
}
|
|
17178
|
+
}, [props.dataSource]);
|
|
17174
17179
|
useEffect(function () {
|
|
17175
17180
|
locale(localStorage.getItem("locale"));
|
|
17176
17181
|
loadMessages(JSON.parse(localStorage.getItem("localTranslation")));
|
|
@@ -17432,7 +17437,7 @@ var OdsRemoteDataGrid = function OdsRemoteDataGrid(props) {
|
|
|
17432
17437
|
}, [data.length]);
|
|
17433
17438
|
return React.createElement(React.Fragment, null, React.createElement(DataGrid$1, {
|
|
17434
17439
|
keyExpr: props.keyExpr,
|
|
17435
|
-
dataSource:
|
|
17440
|
+
dataSource: data,
|
|
17436
17441
|
showBorders: true,
|
|
17437
17442
|
columnAutoWidth: false,
|
|
17438
17443
|
onEditorPreparing: onEditorPreparing,
|