ods-component-lib 1.17.78 → 1.17.82
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 +4 -3
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +4 -3
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1197,6 +1197,7 @@ var renderMenuItem = function renderMenuItem() {
|
|
|
1197
1197
|
formats: exportFormats
|
|
1198
1198
|
});
|
|
1199
1199
|
};
|
|
1200
|
+
var filterValue = [];
|
|
1200
1201
|
function OdsDataGrid(props) {
|
|
1201
1202
|
var dataGridRef = React.useRef(null);
|
|
1202
1203
|
return grid(props, dataGridRef);
|
|
@@ -1259,8 +1260,6 @@ function grid(props, dataGridRef) {
|
|
|
1259
1260
|
localStorage.setItem(props.exportFileName + "Storage", JSON.stringify(state));
|
|
1260
1261
|
};
|
|
1261
1262
|
React.useEffect(function () {
|
|
1262
|
-
dataGridRef._instance.clearFilter();
|
|
1263
|
-
dataGridRef._instance.clearSorting();
|
|
1264
1263
|
localization.locale(sessionStorage.getItem("locale"));
|
|
1265
1264
|
localization.loadMessages(JSON.parse(sessionStorage.getItem("localTranslation")));
|
|
1266
1265
|
}, []);
|
|
@@ -1287,9 +1286,11 @@ function grid(props, dataGridRef) {
|
|
|
1287
1286
|
columnAutoWidth: false,
|
|
1288
1287
|
focusedRowEnabled: false,
|
|
1289
1288
|
wordWrapEnabled: false,
|
|
1290
|
-
noDataText: "No Data",
|
|
1289
|
+
noDataText: props.noDataLanguage == undefined ? "No Data" : props.noDataLanguage,
|
|
1291
1290
|
onEditCanceling: props.onEditCanceling,
|
|
1292
1291
|
onExporting: onExporting,
|
|
1292
|
+
filterSyncEnabled: false,
|
|
1293
|
+
filterValue: filterValue,
|
|
1293
1294
|
height: window.innerHeight - 164,
|
|
1294
1295
|
repaintChangesOnly: true,
|
|
1295
1296
|
remoteOperations: props.remoteOperations !== undefined ? props.remoteOperations : false,
|