ods-component-lib 1.17.165 → 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 +10 -36
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +10 -36
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1318,27 +1318,6 @@ function grid(props, dataGridRef) {
|
|
|
1318
1318
|
});
|
|
1319
1319
|
}
|
|
1320
1320
|
};
|
|
1321
|
-
var customLoad = function customLoad() {
|
|
1322
|
-
var state = JSON.parse(localStorage.getItem(props.exportFileName + "Storage"));
|
|
1323
|
-
if (localStorage.getItem(props.exportFileName + "Storage")) {
|
|
1324
|
-
state.selectedRowKeys = [];
|
|
1325
|
-
if (props.filterEnabledShow) state.filterPanel = {
|
|
1326
|
-
filterEnabled: false
|
|
1327
|
-
};else state.filterPanel = {
|
|
1328
|
-
filterEnabled: true
|
|
1329
|
-
};
|
|
1330
|
-
}
|
|
1331
|
-
return state;
|
|
1332
|
-
};
|
|
1333
|
-
var customSave = function customSave(state) {
|
|
1334
|
-
state.selectedRowKeys = [];
|
|
1335
|
-
if (props.filterEnabledShow) state.filterPanel = {
|
|
1336
|
-
filterEnabled: false
|
|
1337
|
-
};else state.filterPanel = {
|
|
1338
|
-
filterEnabled: true
|
|
1339
|
-
};
|
|
1340
|
-
localStorage.setItem(props.exportFileName + "Storage", JSON.stringify(state));
|
|
1341
|
-
};
|
|
1342
1321
|
React.useEffect(function () {
|
|
1343
1322
|
localization.locale(localStorage.getItem("locale"));
|
|
1344
1323
|
localization.loadMessages(JSON.parse(localStorage.getItem("localTranslation")));
|
|
@@ -1360,6 +1339,7 @@ function grid(props, dataGridRef) {
|
|
|
1360
1339
|
onRowInserted: props.onRowInserted,
|
|
1361
1340
|
onRowUpdated: props.onRowUpdated,
|
|
1362
1341
|
onRowRemoved: props.onRowRemoved,
|
|
1342
|
+
onEditorPreparing: props.onEditorPreparing,
|
|
1363
1343
|
onSaving: props.onSaving,
|
|
1364
1344
|
allowColumnReordering: true,
|
|
1365
1345
|
showRowLines: true,
|
|
@@ -1370,10 +1350,8 @@ function grid(props, dataGridRef) {
|
|
|
1370
1350
|
onEditCanceling: props.onEditCanceling,
|
|
1371
1351
|
onExporting: onExporting,
|
|
1372
1352
|
filterSyncEnabled: true,
|
|
1373
|
-
scrolling: {
|
|
1374
|
-
|
|
1375
|
-
},
|
|
1376
|
-
height: window.innerHeight - 164,
|
|
1353
|
+
scrolling: {},
|
|
1354
|
+
height: props.height == undefined ? window.innerHeight - 164 : props.height,
|
|
1377
1355
|
repaintChangesOnly: true,
|
|
1378
1356
|
remoteOperations: false,
|
|
1379
1357
|
ref: dataGridRef
|
|
@@ -1382,11 +1360,11 @@ function grid(props, dataGridRef) {
|
|
|
1382
1360
|
}), React__default.createElement(dataGrid.Paging, {
|
|
1383
1361
|
defaultPageSize: props.pageSize
|
|
1384
1362
|
}), props.pagingEnable && React__default.createElement(dataGrid.Pager, {
|
|
1385
|
-
visible:
|
|
1363
|
+
visible: false,
|
|
1386
1364
|
displayMode: "full",
|
|
1387
|
-
showPageSizeSelector:
|
|
1388
|
-
showNavigationButtons:
|
|
1389
|
-
showInfo:
|
|
1365
|
+
showPageSizeSelector: false,
|
|
1366
|
+
showNavigationButtons: false,
|
|
1367
|
+
showInfo: false
|
|
1390
1368
|
}), props.searchEnable && React__default.createElement(dataGrid.SearchPanel, {
|
|
1391
1369
|
visible: true
|
|
1392
1370
|
}), props.filterEnable && React__default.createElement(dataGrid.FilterRow, {
|
|
@@ -1438,7 +1416,8 @@ function grid(props, dataGridRef) {
|
|
|
1438
1416
|
mode: props.scroll.mode,
|
|
1439
1417
|
showScrollbar: props.scroll.showScrollbar,
|
|
1440
1418
|
scrollByContent: props.scroll.scrollByContent,
|
|
1441
|
-
scrollByThumb: props.scroll.scrollByThumb
|
|
1419
|
+
scrollByThumb: props.scroll.scrollByThumb,
|
|
1420
|
+
useNative: props.scrolUseNative == undefined ? false : props.scrolUseNative
|
|
1442
1421
|
}), props.exportEnable === true && React__default.createElement(dataGrid.Export, {
|
|
1443
1422
|
enabled: true,
|
|
1444
1423
|
allowExportSelectedData: true,
|
|
@@ -1530,12 +1509,7 @@ function grid(props, dataGridRef) {
|
|
|
1530
1509
|
column: props.totalColumunName == undefined ? "Id" : props.totalColumunName,
|
|
1531
1510
|
summaryType: "count",
|
|
1532
1511
|
displayFormat: props.TotaDatalLanguage + " : " + (props.TotalDataCount == undefined ? "{0}" : props.TotalDataCount)
|
|
1533
|
-
}))
|
|
1534
|
-
enabled: true,
|
|
1535
|
-
type: "custom",
|
|
1536
|
-
customLoad: customLoad,
|
|
1537
|
-
customSave: customSave
|
|
1538
|
-
}))));
|
|
1512
|
+
})))));
|
|
1539
1513
|
}
|
|
1540
1514
|
|
|
1541
1515
|
var exportFormats$1 = ['xlsx'];
|