@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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adaptabletools/adaptable",
3
- "version": "15.0.0-canary.8",
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",
@@ -1,2 +1,2 @@
1
- declare const _default: 1676638781056;
1
+ declare const _default: 1676900629854;
2
2
  export default _default;
@@ -1,3 +1,3 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.default = 1676638781056;
3
+ exports.default = 1676900629854;
@@ -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);
@@ -213,6 +213,7 @@ exports.DefaultAdaptableOptions = {
213
213
  showClearFilterButton: false,
214
214
  showSuspendFilterButton: false,
215
215
  quickFilterWildcards: {},
216
+ quickFilterDebounce: 250,
216
217
  },
217
218
  searchOptions: {
218
219
  excludeColumnFromQuickSearch: undefined,
@@ -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), 250);
45
- this.debouncedEditFilter = (0, debounce_1.default)(() => this.props.onEditColumnFilter(this.state.filter), 250);
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;