@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/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/agGrid/Adaptable.js +9 -9
- 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.
|
|
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",
|
package/publishTimestamp.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const _default:
|
|
1
|
+
declare const _default: 1676907692180;
|
|
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;
|
package/src/agGrid/Adaptable.js
CHANGED
|
@@ -4333,33 +4333,33 @@ class Adaptable {
|
|
|
4333
4333
|
el.classList.remove(`infinite-${theme.Name}`);
|
|
4334
4334
|
});
|
|
4335
4335
|
// VARIANT
|
|
4336
|
-
let
|
|
4336
|
+
let variantTheme = '';
|
|
4337
4337
|
if (!isSystemTheme && themeObject.Variant) {
|
|
4338
|
-
|
|
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 (
|
|
4345
|
-
el.classList.add(getClassName(
|
|
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 (
|
|
4352
|
-
el.classList.add(`infinite-${
|
|
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 ||
|
|
4359
|
-
if ((
|
|
4358
|
+
if (newTheme && (isSystemTheme || variantTheme)) {
|
|
4359
|
+
if ((variantTheme || themeName) === GeneralConstants_1.LIGHT_THEME) {
|
|
4360
4360
|
newTheme.AgGridClassName = newTheme.AgGridClassName || getAgGridLightThemeName();
|
|
4361
4361
|
}
|
|
4362
|
-
if ((
|
|
4362
|
+
if ((variantTheme || themeName) === GeneralConstants_1.DARK_THEME) {
|
|
4363
4363
|
newTheme.AgGridClassName = newTheme.AgGridClassName || getAgGridDarkThemeName();
|
|
4364
4364
|
}
|
|
4365
4365
|
}
|