ods-component-lib 1.17.172 → 1.17.174

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.css CHANGED
@@ -48,6 +48,7 @@ tr:first-child {
48
48
 
49
49
  ._1GEDH ._2NiLf ._2CvVM > td {
50
50
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
51
+ /* border-right: 1px solid rgba(0, 108, 198, 1); */
51
52
  }
52
53
 
53
54
  ._36VXO ._3udtX > td {
package/dist/index.js CHANGED
@@ -1319,6 +1319,27 @@ function grid(props, dataGridRef) {
1319
1319
  });
1320
1320
  }
1321
1321
  };
1322
+ var customLoad = function customLoad() {
1323
+ var state = JSON.parse(localStorage.getItem(props.exportFileName + "Storage"));
1324
+ if (localStorage.getItem(props.exportFileName + "Storage")) {
1325
+ state.selectedRowKeys = [];
1326
+ if (props.filterEnabledShow) state.filterPanel = {
1327
+ filterEnabled: false
1328
+ };else state.filterPanel = {
1329
+ filterEnabled: true
1330
+ };
1331
+ }
1332
+ return state;
1333
+ };
1334
+ var customSave = function customSave(state) {
1335
+ state.selectedRowKeys = [];
1336
+ if (props.filterEnabledShow) state.filterPanel = {
1337
+ filterEnabled: false
1338
+ };else state.filterPanel = {
1339
+ filterEnabled: true
1340
+ };
1341
+ localStorage.setItem(props.exportFileName + "Storage", JSON.stringify(state));
1342
+ };
1322
1343
  React.useEffect(function () {
1323
1344
  localization.locale(localStorage.getItem("locale"));
1324
1345
  localization.loadMessages(JSON.parse(localStorage.getItem("localTranslation")));
@@ -1357,7 +1378,9 @@ function grid(props, dataGridRef) {
1357
1378
  height: props.height == undefined ? window.innerHeight - 164 : props.height,
1358
1379
  repaintChangesOnly: true,
1359
1380
  remoteOperations: false,
1360
- ref: dataGridRef
1381
+ ref: dataGridRef,
1382
+ selectedRowKeys: props.selectedRowKeys,
1383
+ onSelectionChanged: props.onSelectionChanged
1361
1384
  }, React__default.createElement(dataGrid.LoadPanel, {
1362
1385
  enabled: true
1363
1386
  }), React__default.createElement(dataGrid.Paging, {
@@ -1379,7 +1402,7 @@ function grid(props, dataGridRef) {
1379
1402
  }), React__default.createElement(dataGrid.ColumnChooser, {
1380
1403
  enabled: true,
1381
1404
  mode: "select"
1382
- }, React__default.createElement(dataGrid.Position, {
1405
+ }, !props.ColumnChooserPositionDisabled && React__default.createElement(dataGrid.Position, {
1383
1406
  my: "right top",
1384
1407
  at: "right bottom",
1385
1408
  of: ".dx-datagrid-column-chooser-button"
@@ -1511,7 +1534,12 @@ function grid(props, dataGridRef) {
1511
1534
  column: props.totalColumunName == undefined ? "Id" : props.totalColumunName,
1512
1535
  summaryType: "count",
1513
1536
  displayFormat: props.TotaDatalLanguage + " : " + (props.TotalDataCount == undefined ? "{0}" : props.TotalDataCount + " / " + props.TotalPagesize)
1514
- })))));
1537
+ })), React__default.createElement(dataGrid.StateStoring, {
1538
+ enabled: true,
1539
+ type: "custom",
1540
+ customLoad: customLoad,
1541
+ customSave: customSave
1542
+ }))));
1515
1543
  }
1516
1544
 
1517
1545
  var exportFormats$1 = ['xlsx'];