ods-component-lib 1.17.171 → 1.17.173
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 +1 -0
- package/dist/index.js +34 -5
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +34 -5
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.css
CHANGED
package/dist/index.js
CHANGED
|
@@ -1291,10 +1291,11 @@ function grid(props, dataGridRef) {
|
|
|
1291
1291
|
excelCell = _ref.excelCell;
|
|
1292
1292
|
if (gridCell.rowType === 'data') {
|
|
1293
1293
|
if (gridCell.column.dataField === 'IsActive') {
|
|
1294
|
-
console.log("gridCell.value", gridCell.value);
|
|
1295
|
-
console.log(" excelCell.value", excelCell.value);
|
|
1296
1294
|
if (localStorage.getItem("locale") === "tr") excelCell.value = excelCell.value ? "Aktif" : "Pasif";else if (localStorage.getItem("locale") === "en") excelCell.value = excelCell.value ? "Active" : "Passive";else excelCell.value = excelCell.value;
|
|
1297
1295
|
}
|
|
1296
|
+
if (props.onExportingCustom) {
|
|
1297
|
+
props.onExportingCustom(gridCell, excelCell);
|
|
1298
|
+
}
|
|
1298
1299
|
}
|
|
1299
1300
|
}
|
|
1300
1301
|
}).then(function () {
|
|
@@ -1318,6 +1319,27 @@ function grid(props, dataGridRef) {
|
|
|
1318
1319
|
});
|
|
1319
1320
|
}
|
|
1320
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
|
+
};
|
|
1321
1343
|
React.useEffect(function () {
|
|
1322
1344
|
localization.locale(localStorage.getItem("locale"));
|
|
1323
1345
|
localization.loadMessages(JSON.parse(localStorage.getItem("localTranslation")));
|
|
@@ -1356,7 +1378,9 @@ function grid(props, dataGridRef) {
|
|
|
1356
1378
|
height: props.height == undefined ? window.innerHeight - 164 : props.height,
|
|
1357
1379
|
repaintChangesOnly: true,
|
|
1358
1380
|
remoteOperations: false,
|
|
1359
|
-
ref: dataGridRef
|
|
1381
|
+
ref: dataGridRef,
|
|
1382
|
+
selectedRowKeys: props.selectedRowKeys,
|
|
1383
|
+
onSelectionChanged: props.onSelectionChanged
|
|
1360
1384
|
}, React__default.createElement(dataGrid.LoadPanel, {
|
|
1361
1385
|
enabled: true
|
|
1362
1386
|
}), React__default.createElement(dataGrid.Paging, {
|
|
@@ -1378,7 +1402,7 @@ function grid(props, dataGridRef) {
|
|
|
1378
1402
|
}), React__default.createElement(dataGrid.ColumnChooser, {
|
|
1379
1403
|
enabled: true,
|
|
1380
1404
|
mode: "select"
|
|
1381
|
-
}, React__default.createElement(dataGrid.Position, {
|
|
1405
|
+
}, !props.ColumnChooserPositionDisabled && React__default.createElement(dataGrid.Position, {
|
|
1382
1406
|
my: "right top",
|
|
1383
1407
|
at: "right bottom",
|
|
1384
1408
|
of: ".dx-datagrid-column-chooser-button"
|
|
@@ -1510,7 +1534,12 @@ function grid(props, dataGridRef) {
|
|
|
1510
1534
|
column: props.totalColumunName == undefined ? "Id" : props.totalColumunName,
|
|
1511
1535
|
summaryType: "count",
|
|
1512
1536
|
displayFormat: props.TotaDatalLanguage + " : " + (props.TotalDataCount == undefined ? "{0}" : props.TotalDataCount + " / " + props.TotalPagesize)
|
|
1513
|
-
}))
|
|
1537
|
+
})), props.StateStoring && React__default.createElement(dataGrid.StateStoring, {
|
|
1538
|
+
enabled: true,
|
|
1539
|
+
type: "custom",
|
|
1540
|
+
customLoad: customLoad,
|
|
1541
|
+
customSave: customSave
|
|
1542
|
+
}))));
|
|
1514
1543
|
}
|
|
1515
1544
|
|
|
1516
1545
|
var exportFormats$1 = ['xlsx'];
|