@adaptabletools/adaptable 15.0.0-canary.8 → 15.0.1

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.1",
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: 1676907692180;
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 = 1676907692180;
@@ -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;
@@ -4333,33 +4333,33 @@ class Adaptable {
4333
4333
  el.classList.remove(`infinite-${theme.Name}`);
4334
4334
  });
4335
4335
  // VARIANT
4336
- let vairantTheme = '';
4336
+ let variantTheme = '';
4337
4337
  if (!isSystemTheme && themeObject.Variant) {
4338
- vairantTheme = themeObject.Variant;
4338
+ variantTheme = themeObject.Variant;
4339
4339
  }
4340
4340
  // APPLY NEW THEME
4341
4341
  const newTheme = allThemesMap[themeName];
4342
4342
  const getClassName = (theme) => GeneralConstants.THEME_STYLE + theme;
4343
4343
  el.classList.add(getClassName(themeName));
4344
- if (vairantTheme) {
4345
- el.classList.add(getClassName(vairantTheme));
4344
+ if (variantTheme) {
4345
+ el.classList.add(getClassName(variantTheme));
4346
4346
  }
4347
4347
  if (isSystemTheme) {
4348
4348
  // add infinite table classname for theme
4349
4349
  el.classList.add(`infinite-${themeName}`);
4350
4350
  }
4351
- else if (vairantTheme) {
4352
- el.classList.add(`infinite-${vairantTheme}`);
4351
+ else if (variantTheme) {
4352
+ el.classList.add(`infinite-${variantTheme}`);
4353
4353
  }
4354
4354
  // AG THEME CLASS NAME
4355
4355
  const container = this.getAgGridContainerElement();
4356
4356
  const getAgGridLightThemeName = () => this.getAgGridLightThemeName();
4357
4357
  const getAgGridDarkThemeName = () => getAgGridLightThemeName() + '-dark';
4358
- if (newTheme && (isSystemTheme || vairantTheme)) {
4359
- if ((vairantTheme !== null && vairantTheme !== void 0 ? vairantTheme : themeName) === GeneralConstants_1.LIGHT_THEME) {
4358
+ if (newTheme && (isSystemTheme || variantTheme)) {
4359
+ if ((variantTheme || themeName) === GeneralConstants_1.LIGHT_THEME) {
4360
4360
  newTheme.AgGridClassName = newTheme.AgGridClassName || getAgGridLightThemeName();
4361
4361
  }
4362
- if ((vairantTheme !== null && vairantTheme !== void 0 ? vairantTheme : themeName) === GeneralConstants_1.DARK_THEME) {
4362
+ if ((variantTheme || themeName) === GeneralConstants_1.DARK_THEME) {
4363
4363
  newTheme.AgGridClassName = newTheme.AgGridClassName || getAgGridDarkThemeName();
4364
4364
  }
4365
4365
  }