ods-component-lib 1.17.166 → 1.17.169
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 +9 -36
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +9 -36
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.modern.js
CHANGED
|
@@ -1314,27 +1314,6 @@ function grid(props, dataGridRef) {
|
|
|
1314
1314
|
});
|
|
1315
1315
|
}
|
|
1316
1316
|
};
|
|
1317
|
-
var customLoad = function customLoad() {
|
|
1318
|
-
var state = JSON.parse(localStorage.getItem(props.exportFileName + "Storage"));
|
|
1319
|
-
if (localStorage.getItem(props.exportFileName + "Storage")) {
|
|
1320
|
-
state.selectedRowKeys = [];
|
|
1321
|
-
if (props.filterEnabledShow) state.filterPanel = {
|
|
1322
|
-
filterEnabled: false
|
|
1323
|
-
};else state.filterPanel = {
|
|
1324
|
-
filterEnabled: true
|
|
1325
|
-
};
|
|
1326
|
-
}
|
|
1327
|
-
return state;
|
|
1328
|
-
};
|
|
1329
|
-
var customSave = function customSave(state) {
|
|
1330
|
-
state.selectedRowKeys = [];
|
|
1331
|
-
if (props.filterEnabledShow) state.filterPanel = {
|
|
1332
|
-
filterEnabled: false
|
|
1333
|
-
};else state.filterPanel = {
|
|
1334
|
-
filterEnabled: true
|
|
1335
|
-
};
|
|
1336
|
-
localStorage.setItem(props.exportFileName + "Storage", JSON.stringify(state));
|
|
1337
|
-
};
|
|
1338
1317
|
useEffect(function () {
|
|
1339
1318
|
locale(localStorage.getItem("locale"));
|
|
1340
1319
|
loadMessages(JSON.parse(localStorage.getItem("localTranslation")));
|
|
@@ -1367,10 +1346,8 @@ function grid(props, dataGridRef) {
|
|
|
1367
1346
|
onEditCanceling: props.onEditCanceling,
|
|
1368
1347
|
onExporting: onExporting,
|
|
1369
1348
|
filterSyncEnabled: true,
|
|
1370
|
-
scrolling: {
|
|
1371
|
-
|
|
1372
|
-
},
|
|
1373
|
-
height: window.innerHeight - 164,
|
|
1349
|
+
scrolling: {},
|
|
1350
|
+
height: props.height == undefined ? window.innerHeight - 164 : props.height,
|
|
1374
1351
|
repaintChangesOnly: true,
|
|
1375
1352
|
remoteOperations: false,
|
|
1376
1353
|
ref: dataGridRef
|
|
@@ -1379,11 +1356,11 @@ function grid(props, dataGridRef) {
|
|
|
1379
1356
|
}), React.createElement(Paging, {
|
|
1380
1357
|
defaultPageSize: props.pageSize
|
|
1381
1358
|
}), props.pagingEnable && React.createElement(Pager, {
|
|
1382
|
-
visible:
|
|
1359
|
+
visible: false,
|
|
1383
1360
|
displayMode: "full",
|
|
1384
|
-
showPageSizeSelector:
|
|
1385
|
-
showNavigationButtons:
|
|
1386
|
-
showInfo:
|
|
1361
|
+
showPageSizeSelector: false,
|
|
1362
|
+
showNavigationButtons: false,
|
|
1363
|
+
showInfo: false
|
|
1387
1364
|
}), props.searchEnable && React.createElement(SearchPanel, {
|
|
1388
1365
|
visible: true
|
|
1389
1366
|
}), props.filterEnable && React.createElement(FilterRow, {
|
|
@@ -1435,7 +1412,8 @@ function grid(props, dataGridRef) {
|
|
|
1435
1412
|
mode: props.scroll.mode,
|
|
1436
1413
|
showScrollbar: props.scroll.showScrollbar,
|
|
1437
1414
|
scrollByContent: props.scroll.scrollByContent,
|
|
1438
|
-
scrollByThumb: props.scroll.scrollByThumb
|
|
1415
|
+
scrollByThumb: props.scroll.scrollByThumb,
|
|
1416
|
+
useNative: props.scrolUseNative == undefined ? false : props.scrolUseNative
|
|
1439
1417
|
}), props.exportEnable === true && React.createElement(Export, {
|
|
1440
1418
|
enabled: true,
|
|
1441
1419
|
allowExportSelectedData: true,
|
|
@@ -1527,12 +1505,7 @@ function grid(props, dataGridRef) {
|
|
|
1527
1505
|
column: props.totalColumunName == undefined ? "Id" : props.totalColumunName,
|
|
1528
1506
|
summaryType: "count",
|
|
1529
1507
|
displayFormat: props.TotaDatalLanguage + " : " + (props.TotalDataCount == undefined ? "{0}" : props.TotalDataCount)
|
|
1530
|
-
}))
|
|
1531
|
-
enabled: true,
|
|
1532
|
-
type: "custom",
|
|
1533
|
-
customLoad: customLoad,
|
|
1534
|
-
customSave: customSave
|
|
1535
|
-
}))));
|
|
1508
|
+
})))));
|
|
1536
1509
|
}
|
|
1537
1510
|
|
|
1538
1511
|
var exportFormats$1 = ['xlsx'];
|