@adaptabletools/adaptable 15.0.0-canary.8 → 15.0.0
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/bundle.cjs.js +108 -108
- package/package.json +1 -1
- package/publishTimestamp.d.ts +1 -1
- package/publishTimestamp.js +1 -1
- package/src/AdaptableOptions/FilterOptions.d.ts +5 -0
- package/src/Api/Implementation/GridApiImpl.js +1 -1
- package/src/Utilities/Defaults/DefaultAdaptableOptions.js +1 -0
- package/src/View/Components/FilterForm/QuickFilterForm.js +4 -2
- package/src/metamodel/adaptable.metamodel.js +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@adaptabletools/adaptable",
|
|
3
|
-
"version": "15.0.0
|
|
3
|
+
"version": "15.0.0",
|
|
4
4
|
"description": "Powerful data-agnostic HTML5 AG Grid extension which provides advanced, cutting-edge functionality to meet all DataGrid requirements",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"web-components",
|
package/publishTimestamp.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const _default:
|
|
1
|
+
declare const _default: 1676900629854;
|
|
2
2
|
export default _default;
|
package/publishTimestamp.js
CHANGED
|
@@ -181,4 +181,9 @@ export interface FilterOptions<TData = any> {
|
|
|
181
181
|
* Shortcut Keys to activate a Quick Filter Predicate
|
|
182
182
|
*/
|
|
183
183
|
quickFilterWildcards?: Partial<Record<SystemAlertPredicateId, string[]>>;
|
|
184
|
+
/**
|
|
185
|
+
* Time to wait before applying the Filter after entering a value
|
|
186
|
+
* @defaultValue 250
|
|
187
|
+
*/
|
|
188
|
+
quickFilterDebounce?: number;
|
|
184
189
|
}
|
|
@@ -109,7 +109,7 @@ class GridApiImpl extends ApiBase_1.ApiBase {
|
|
|
109
109
|
}
|
|
110
110
|
getColumnSortForColumn(columnId) {
|
|
111
111
|
let columnSorts = this.getColumnSorts();
|
|
112
|
-
return columnSorts.find((cs) => cs.ColumnId == columnId);
|
|
112
|
+
return columnSorts === null || columnSorts === void 0 ? void 0 : columnSorts.find((cs) => cs.ColumnId == columnId);
|
|
113
113
|
}
|
|
114
114
|
setAdaptableSorting(columnSorts) {
|
|
115
115
|
this.adaptable.setColumnSort(columnSorts);
|
|
@@ -23,7 +23,9 @@ const date_fns_1 = require("date-fns");
|
|
|
23
23
|
const LayoutRedux_1 = require("../../../Redux/ActionsReducers/LayoutRedux");
|
|
24
24
|
const AdaptableIconComponent_1 = require("../../../components/AdaptableIconComponent");
|
|
25
25
|
class QuickFilterFormComponent extends React.Component {
|
|
26
|
+
//private debounceTime =
|
|
26
27
|
constructor(props) {
|
|
28
|
+
var _a, _b;
|
|
27
29
|
super(props);
|
|
28
30
|
this._isMounted = false;
|
|
29
31
|
this.handleFilterChange = (filter) => {
|
|
@@ -41,8 +43,8 @@ class QuickFilterFormComponent extends React.Component {
|
|
|
41
43
|
});
|
|
42
44
|
}
|
|
43
45
|
};
|
|
44
|
-
this.debouncedAddFilter = (0, debounce_1.default)(() => this.props.onAddColumnFilter(this.state.filter),
|
|
45
|
-
this.debouncedEditFilter = (0, debounce_1.default)(() => this.props.onEditColumnFilter(this.state.filter),
|
|
46
|
+
this.debouncedAddFilter = (0, debounce_1.default)(() => this.props.onAddColumnFilter(this.state.filter), (_a = this.props.api.optionsApi.getFilterOptions()) === null || _a === void 0 ? void 0 : _a.quickFilterDebounce);
|
|
47
|
+
this.debouncedEditFilter = (0, debounce_1.default)(() => this.props.onEditColumnFilter(this.state.filter), (_b = this.props.api.optionsApi.getFilterOptions()) === null || _b === void 0 ? void 0 : _b.quickFilterDebounce);
|
|
46
48
|
this.debouncedLoadPermittedValues = (0, debounce_1.default)(() => this.loadPermittedValues(), 500);
|
|
47
49
|
const filter = this.getFilterFromProps();
|
|
48
50
|
this._isMounted = true;
|