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.modern.js
CHANGED
|
@@ -1193,6 +1193,7 @@ var renderMenuItem = function renderMenuItem() {
|
|
|
1193
1193
|
formats: exportFormats
|
|
1194
1194
|
});
|
|
1195
1195
|
};
|
|
1196
|
+
var filterValue = [];
|
|
1196
1197
|
function OdsDataGrid(props) {
|
|
1197
1198
|
var dataGridRef = useRef(null);
|
|
1198
1199
|
return grid(props, dataGridRef);
|
|
@@ -1255,8 +1256,6 @@ function grid(props, dataGridRef) {
|
|
|
1255
1256
|
localStorage.setItem(props.exportFileName + "Storage", JSON.stringify(state));
|
|
1256
1257
|
};
|
|
1257
1258
|
useEffect(function () {
|
|
1258
|
-
dataGridRef._instance.clearFilter();
|
|
1259
|
-
dataGridRef._instance.clearSorting();
|
|
1260
1259
|
locale(sessionStorage.getItem("locale"));
|
|
1261
1260
|
loadMessages(JSON.parse(sessionStorage.getItem("localTranslation")));
|
|
1262
1261
|
}, []);
|
|
@@ -1283,9 +1282,11 @@ function grid(props, dataGridRef) {
|
|
|
1283
1282
|
columnAutoWidth: false,
|
|
1284
1283
|
focusedRowEnabled: false,
|
|
1285
1284
|
wordWrapEnabled: false,
|
|
1286
|
-
noDataText: "No Data",
|
|
1285
|
+
noDataText: props.noDataLanguage == undefined ? "No Data" : props.noDataLanguage,
|
|
1287
1286
|
onEditCanceling: props.onEditCanceling,
|
|
1288
1287
|
onExporting: onExporting,
|
|
1288
|
+
filterSyncEnabled: false,
|
|
1289
|
+
filterValue: filterValue,
|
|
1289
1290
|
height: window.innerHeight - 164,
|
|
1290
1291
|
repaintChangesOnly: true,
|
|
1291
1292
|
remoteOperations: props.remoteOperations !== undefined ? props.remoteOperations : false,
|