ods-component-lib 1.18.132 → 1.18.133
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 +14 -21
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +14 -21
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -35083,34 +35083,27 @@ var OdsServerSideDatagrid = function OdsServerSideDatagrid(props) {
|
|
|
35083
35083
|
}, [props.columns, filterApplied]);
|
|
35084
35084
|
var handleOptionChanged = React.useCallback(function (e) {
|
|
35085
35085
|
var dataGrid = props.dataGridRef.current.instance;
|
|
35086
|
-
var updateFilterStatus = function updateFilterStatus(
|
|
35087
|
-
var
|
|
35086
|
+
var updateFilterStatus = function updateFilterStatus() {
|
|
35087
|
+
var filters = dataGrid.getCombinedFilter(true);
|
|
35088
|
+
var active = filters && filters.length > 0;
|
|
35088
35089
|
setFilterApplied(active);
|
|
35089
35090
|
return active;
|
|
35090
35091
|
};
|
|
35091
35092
|
if (e.fullName.includes("sortOrder")) {
|
|
35092
35093
|
dataGrid.getScrollable().scrollTo(0);
|
|
35093
35094
|
}
|
|
35094
|
-
|
|
35095
|
-
|
|
35096
|
-
|
|
35097
|
-
|
|
35098
|
-
|
|
35099
|
-
|
|
35100
|
-
|
|
35101
|
-
|
|
35102
|
-
|
|
35103
|
-
filterActive = updateFilterStatus(e.value);
|
|
35104
|
-
}
|
|
35105
|
-
if (filterActive) {
|
|
35106
|
-
setTimeout(function () {
|
|
35107
|
-
dataGrid.refresh().done(function () {
|
|
35108
|
-
totalFilteredCount.current = dataGrid.totalCount();
|
|
35109
|
-
setUpdateTrigger(function (prev) {
|
|
35110
|
-
return !prev;
|
|
35095
|
+
if (e.fullName.includes("filterValue") || e.fullName.includes("filter")) {
|
|
35096
|
+
var active = updateFilterStatus();
|
|
35097
|
+
if (active) {
|
|
35098
|
+
setTimeout(function () {
|
|
35099
|
+
dataGrid.refresh().done(function () {
|
|
35100
|
+
totalFilteredCount.current = dataGrid.totalCount();
|
|
35101
|
+
setUpdateTrigger(function (prev) {
|
|
35102
|
+
return !prev;
|
|
35103
|
+
});
|
|
35111
35104
|
});
|
|
35112
|
-
});
|
|
35113
|
-
}
|
|
35105
|
+
}, 0);
|
|
35106
|
+
}
|
|
35114
35107
|
}
|
|
35115
35108
|
}, [props.dataGridRef]);
|
|
35116
35109
|
React.useEffect(function () {}, [updateTrigger]);
|