ods-component-lib 1.17.166 → 1.17.170
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 -37
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +9 -37
- 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")));
|
|
@@ -1371,10 +1350,7 @@ function grid(props, dataGridRef) {
|
|
|
1371
1350
|
onEditCanceling: props.onEditCanceling,
|
|
1372
1351
|
onExporting: onExporting,
|
|
1373
1352
|
filterSyncEnabled: true,
|
|
1374
|
-
|
|
1375
|
-
useNative: props.scrolUseNative == undefined ? false : props.scrolUseNative
|
|
1376
|
-
},
|
|
1377
|
-
height: window.innerHeight - 164,
|
|
1353
|
+
height: props.height == undefined ? window.innerHeight - 164 : props.height,
|
|
1378
1354
|
repaintChangesOnly: true,
|
|
1379
1355
|
remoteOperations: false,
|
|
1380
1356
|
ref: dataGridRef
|
|
@@ -1383,11 +1359,11 @@ function grid(props, dataGridRef) {
|
|
|
1383
1359
|
}), React__default.createElement(dataGrid.Paging, {
|
|
1384
1360
|
defaultPageSize: props.pageSize
|
|
1385
1361
|
}), props.pagingEnable && React__default.createElement(dataGrid.Pager, {
|
|
1386
|
-
visible:
|
|
1362
|
+
visible: false,
|
|
1387
1363
|
displayMode: "full",
|
|
1388
|
-
showPageSizeSelector:
|
|
1389
|
-
showNavigationButtons:
|
|
1390
|
-
showInfo:
|
|
1364
|
+
showPageSizeSelector: false,
|
|
1365
|
+
showNavigationButtons: false,
|
|
1366
|
+
showInfo: false
|
|
1391
1367
|
}), props.searchEnable && React__default.createElement(dataGrid.SearchPanel, {
|
|
1392
1368
|
visible: true
|
|
1393
1369
|
}), props.filterEnable && React__default.createElement(dataGrid.FilterRow, {
|
|
@@ -1439,7 +1415,8 @@ function grid(props, dataGridRef) {
|
|
|
1439
1415
|
mode: props.scroll.mode,
|
|
1440
1416
|
showScrollbar: props.scroll.showScrollbar,
|
|
1441
1417
|
scrollByContent: props.scroll.scrollByContent,
|
|
1442
|
-
scrollByThumb: props.scroll.scrollByThumb
|
|
1418
|
+
scrollByThumb: props.scroll.scrollByThumb,
|
|
1419
|
+
useNative: props.scrolUseNative == undefined ? false : props.scrolUseNative
|
|
1443
1420
|
}), props.exportEnable === true && React__default.createElement(dataGrid.Export, {
|
|
1444
1421
|
enabled: true,
|
|
1445
1422
|
allowExportSelectedData: true,
|
|
@@ -1530,13 +1507,8 @@ function grid(props, dataGridRef) {
|
|
|
1530
1507
|
})), React__default.createElement(dataGrid.Summary, null, React__default.createElement(dataGrid.TotalItem, {
|
|
1531
1508
|
column: props.totalColumunName == undefined ? "Id" : props.totalColumunName,
|
|
1532
1509
|
summaryType: "count",
|
|
1533
|
-
displayFormat: props.TotaDatalLanguage + " : " + (props.TotalDataCount == undefined ? "{0}" : props.TotalDataCount)
|
|
1534
|
-
}))
|
|
1535
|
-
enabled: true,
|
|
1536
|
-
type: "custom",
|
|
1537
|
-
customLoad: customLoad,
|
|
1538
|
-
customSave: customSave
|
|
1539
|
-
}))));
|
|
1510
|
+
displayFormat: props.TotaDatalLanguage + " : " + (props.TotalDataCount == undefined ? "{0}" : props.TotalDataCount + " / " + props.TotalPagesize)
|
|
1511
|
+
})))));
|
|
1540
1512
|
}
|
|
1541
1513
|
|
|
1542
1514
|
var exportFormats$1 = ['xlsx'];
|