ods-component-lib 1.18.154 → 1.18.155
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.modern.js
CHANGED
|
@@ -35185,11 +35185,17 @@ var OdsServerSideDatagrid = function OdsServerSideDatagrid(props) {
|
|
|
35185
35185
|
props.columns.forEach(function (col) {
|
|
35186
35186
|
var _item$col$dataField;
|
|
35187
35187
|
var colValue = (_item$col$dataField = item[col.dataField]) === null || _item$col$dataField === void 0 ? void 0 : _item$col$dataField.toString();
|
|
35188
|
-
if (props.applyCellRenderToHeaderFilter
|
|
35188
|
+
if (props.applyCellRenderToHeaderFilter) {
|
|
35189
35189
|
try {
|
|
35190
|
-
|
|
35191
|
-
|
|
35192
|
-
|
|
35190
|
+
if (col.cellRender) {
|
|
35191
|
+
colValue = col.cellRender({
|
|
35192
|
+
value: colValue
|
|
35193
|
+
});
|
|
35194
|
+
} else if (col.calculateCellValue) {
|
|
35195
|
+
var _q;
|
|
35196
|
+
var q = (_q = {}, _q[col.dataField] = item[col.dataField], _q);
|
|
35197
|
+
colValue = col.calculateCellValue(q);
|
|
35198
|
+
}
|
|
35193
35199
|
} catch (error) {}
|
|
35194
35200
|
}
|
|
35195
35201
|
if (colValue && !uniqueValuesByColumn[col.dataField].has(colValue)) {
|