@adaptabletools/adaptable 13.0.6 → 13.0.8

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.
Files changed (40) hide show
  1. package/bundle.cjs.js +188 -188
  2. package/package.json +1 -1
  3. package/publishTimestamp.d.ts +1 -1
  4. package/publishTimestamp.js +1 -1
  5. package/src/AdaptableOptions/AdaptableQLOptions.d.ts +9 -205
  6. package/src/AdaptableOptions/ExpressionOptions.d.ts +204 -0
  7. package/src/AdaptableOptions/ExpressionOptions.js +2 -0
  8. package/src/AdaptableOptions/FilterOptions.d.ts +2 -1
  9. package/src/AdaptableOptions/PredicateOptions.d.ts +32 -0
  10. package/src/AdaptableOptions/PredicateOptions.js +2 -0
  11. package/src/Api/AlertApi.d.ts +20 -4
  12. package/src/Api/FilterApi.d.ts +1 -5
  13. package/src/Api/FlashingCellApi.d.ts +0 -4
  14. package/src/Api/FormatColumnApi.d.ts +0 -4
  15. package/src/Api/Implementation/AlertApiImpl.d.ts +4 -1
  16. package/src/Api/Implementation/AlertApiImpl.js +15 -4
  17. package/src/Api/Implementation/ApiBase.d.ts +2 -1
  18. package/src/Api/Implementation/ColumnApiImpl.js +0 -1
  19. package/src/Api/Implementation/FilterApiImpl.d.ts +1 -3
  20. package/src/Api/Implementation/FilterApiImpl.js +4 -12
  21. package/src/Api/Implementation/FlashingCellApiImpl.d.ts +0 -1
  22. package/src/Api/Implementation/FlashingCellApiImpl.js +3 -4
  23. package/src/Api/Implementation/FormatColumnApiImpl.d.ts +0 -1
  24. package/src/Api/Implementation/FormatColumnApiImpl.js +3 -4
  25. package/src/Api/Implementation/PredicateApiImpl.d.ts +10 -2
  26. package/src/Api/Implementation/PredicateApiImpl.js +83 -0
  27. package/src/Api/PredicateApi.d.ts +18 -2
  28. package/src/PredefinedConfig/AlertState.d.ts +8 -1
  29. package/src/PredefinedConfig/Common/AdaptablePredicate.d.ts +5 -2
  30. package/src/PredefinedConfig/Common/AdaptablePredicate.js +4 -1
  31. package/src/PredefinedConfig/Common/ColumnFilter.d.ts +2 -2
  32. package/src/PredefinedConfig/FlashingCellState.d.ts +8 -1
  33. package/src/PredefinedConfig/FormatColumnState.d.ts +8 -1
  34. package/src/Utilities/Defaults/DefaultAdaptableOptions.js +7 -1
  35. package/src/Utilities/Helpers/AdaptableHelper.js +1 -0
  36. package/src/metamodel/adaptable.metamodel.d.ts +30 -0
  37. package/src/metamodel/adaptable.metamodel.js +1 -1
  38. package/src/types.d.ts +7 -5
  39. package/version.d.ts +1 -1
  40. package/version.js +1 -1
@@ -4,14 +4,12 @@ import { ApiBase } from './ApiBase';
4
4
  import { FilterApi } from '../FilterApi';
5
5
  import { AdaptablePredicateDef, ColumnFilterDef } from '../../PredefinedConfig/Common/AdaptablePredicate';
6
6
  import { AdaptableColumn } from '../../PredefinedConfig/Common/AdaptableColumn';
7
- import { ColumnFilter, GridCell, SystemFilterPredicateIds } from '../../types';
7
+ import { ColumnFilter, GridCell } from '../../types';
8
8
  import { RowNode } from '@ag-grid-community/core';
9
9
  export declare class FilterApiImpl extends ApiBase implements FilterApi {
10
- getAllSystemFilterIds(): SystemFilterPredicateIds;
11
10
  findPredicateDefByShortcut(shortcut: string, column: AdaptableColumn): AdaptablePredicateDef;
12
11
  getFilterPredicateDefsForColumn(column: AdaptableColumn): AdaptablePredicateDef[];
13
12
  getFilterPredicateDefsForColumnId(columnId: string): AdaptablePredicateDef[] | undefined;
14
- private getAllFilterPredicates;
15
13
  showQuickFilterBar(): void;
16
14
  hideQuickFilterBar(): void;
17
15
  isQuickFilterAvailable(): boolean;
@@ -9,26 +9,18 @@ const StringExtensions_1 = tslib_1.__importDefault(require("../../Utilities/Exte
9
9
  const LoggingHelper_1 = require("../../Utilities/Helpers/LoggingHelper");
10
10
  const ArrayExtensions_1 = tslib_1.__importDefault(require("../../Utilities/Extensions/ArrayExtensions"));
11
11
  class FilterApiImpl extends ApiBase_1.ApiBase {
12
- getAllSystemFilterIds() {
13
- return this.getFilterOptions().systemFilters;
14
- }
15
12
  findPredicateDefByShortcut(shortcut, column) {
16
13
  return this.getFilterPredicateDefsForColumn(column).find((i) => { var _a; return (_a = i.shortcuts) === null || _a === void 0 ? void 0 : _a.includes(shortcut); });
17
14
  }
18
15
  getFilterPredicateDefsForColumn(column) {
19
- return this.getAllFilterPredicates().filter((predicate) => this.adaptable.api.scopeApi.isColumnInScope(column, predicate.columnScope));
16
+ return this.getAdaptableApi()
17
+ .predicateApi.getFilterPredicateDefs()
18
+ .filter((predicate) => this.adaptable.api.scopeApi.isColumnInScope(column, predicate.columnScope));
20
19
  }
21
20
  getFilterPredicateDefsForColumnId(columnId) {
22
- const column = this.adaptable.api.columnApi.getColumnFromId(columnId);
21
+ const column = this.getAdaptableApi().columnApi.getColumnFromId(columnId);
23
22
  return column ? this.getFilterPredicateDefsForColumn(column) : undefined;
24
23
  }
25
- getAllFilterPredicates() {
26
- var _a;
27
- return [
28
- ...(_a = this.getAllSystemFilterIds()) === null || _a === void 0 ? void 0 : _a.map((predicateId) => this.adaptable.api.predicateApi.getPredicateDefById(predicateId)),
29
- ...this.adaptable.api.predicateApi.getCustomPredicateDefs(),
30
- ].filter((predicateDef) => predicateDef.moduleScope.includes('filter'));
31
- }
32
24
  showQuickFilterBar() {
33
25
  this.dispatchAction(SystemRedux.SystemQuickFilterBarShow());
34
26
  }
@@ -19,7 +19,6 @@ export declare class FlashingCellApiImpl extends ApiBase implements FlashingCell
19
19
  unSuspendFlashingCellDefinition(flashingCellDefinition: FlashingCellDefinition): FlashingCellDefinition;
20
20
  addFlashingCellDefinitions(flashingCellDefinitions: FlashingCellDefinition[]): FlashingCellDefinition[];
21
21
  editFlashingCellDefinitions(flashingCellDefinitions: FlashingCellDefinition[]): FlashingCellDefinition[];
22
- getFlashingCellPredicateDefs(): AdaptablePredicateDef[];
23
22
  getFlashingCellPredicateDefsForScope(scope: AdaptableScope): AdaptablePredicateDef[];
24
23
  clearGridFlashing(): void;
25
24
  }
@@ -103,11 +103,10 @@ class FlashingCellApiImpl extends ApiBase_1.ApiBase {
103
103
  });
104
104
  return flashingCellDefinitions === null || flashingCellDefinitions === void 0 ? void 0 : flashingCellDefinitions.map((flashingCell) => this.getFlashingCellDefinitionById(flashingCell === null || flashingCell === void 0 ? void 0 : flashingCell.Uuid));
105
105
  }
106
- getFlashingCellPredicateDefs() {
107
- return this.adaptable.api.predicateApi.getPredicateDefsByModuleScope('flashingcell');
108
- }
109
106
  getFlashingCellPredicateDefsForScope(scope) {
110
- return this.getFlashingCellPredicateDefs().filter((predicateDef) => this.adaptable.api.scopeApi.isScopeInScope(scope, predicateDef.columnScope));
107
+ return this.getAdaptableApi()
108
+ .predicateApi.getFlashingCellPredicateDefs()
109
+ .filter((predicateDef) => this.adaptable.api.scopeApi.isScopeInScope(scope, predicateDef.columnScope));
111
110
  }
112
111
  clearGridFlashing() {
113
112
  const currentFlashingCells = this.getAdaptableState().System.AdaptableFlashingCells;
@@ -54,7 +54,6 @@ export declare class FormatColumnApiImpl extends ApiBase implements FormatColumn
54
54
  getStringFormattedValue(value: any, node: RowNode, abColumn: AdaptableColumn, options: AdaptableFormat['Options']): string;
55
55
  getDateFormattedValue(value: any, node: RowNode, abColumn: AdaptableColumn, options: AdaptableFormat['Options']): string;
56
56
  hasCustomDisplayFormatter(formatColumn: FormatColumn): boolean;
57
- getFormatColumnPredicateDefs(): AdaptablePredicateDef[];
58
57
  getFormatColumnDefsForScope(scope: AdaptableScope): AdaptablePredicateDef[];
59
58
  getFormatColumnsRelevantForColumn(formatColumns: FormatColumn[], column: AdaptableColumn, params: {
60
59
  node: RowNode;
@@ -202,11 +202,10 @@ class FormatColumnApiImpl extends ApiBase_1.ApiBase {
202
202
  }
203
203
  return true;
204
204
  }
205
- getFormatColumnPredicateDefs() {
206
- return this.adaptable.api.predicateApi.getPredicateDefsByModuleScope('formatColumn');
207
- }
208
205
  getFormatColumnDefsForScope(scope) {
209
- return this.getFormatColumnPredicateDefs().filter((predicateDef) => this.adaptable.api.scopeApi.isScopeInScope(scope, predicateDef.columnScope));
206
+ return this.getAdaptableApi()
207
+ .predicateApi.getFormatColumnPredicateDefs()
208
+ .filter((predicateDef) => this.adaptable.api.scopeApi.isScopeInScope(scope, predicateDef.columnScope));
210
209
  }
211
210
  getFormatColumnsRelevantForColumn(formatColumns, column, params) {
212
211
  return formatColumns.filter((formatColumn) => this.isFormatColumnRelevantForColumn(formatColumn, column, params));
@@ -1,12 +1,12 @@
1
1
  import { ApiBase } from './ApiBase';
2
2
  import { PredicateApi } from '../PredicateApi';
3
- import { AdaptablePredicateDef, AdaptablePredicate, PredicateDefHandlerParams, ModuleScope } from '../../PredefinedConfig/Common/AdaptablePredicate';
3
+ import { AdaptablePredicateDef, AdaptablePredicate, PredicateDefHandlerParams, PredicateModuleScope } from '../../PredefinedConfig/Common/AdaptablePredicate';
4
4
  import { AdaptableColumnDataType, SystemFilterPredicateId } from '../../types';
5
5
  export declare class PredicateApiImpl extends ApiBase implements PredicateApi {
6
6
  getPredicateDefs(): AdaptablePredicateDef[];
7
7
  getSystemPredicateDefs(): AdaptablePredicateDef[];
8
8
  getCustomPredicateDefs(): AdaptablePredicateDef[];
9
- getPredicateDefsByModuleScope(moduleScope: ModuleScope): AdaptablePredicateDef[];
9
+ getPredicateDefsByModuleScope(moduleScope: PredicateModuleScope): AdaptablePredicateDef[];
10
10
  getPredicateDefById(predicateId: string): AdaptablePredicateDef;
11
11
  getSystemPredicateDefById(predicateId: string): AdaptablePredicateDef;
12
12
  getCustomPredicateDefById(predicateId: string): AdaptablePredicateDef;
@@ -15,4 +15,12 @@ export declare class PredicateApiImpl extends ApiBase implements PredicateApi {
15
15
  handlePredicate(predicate: AdaptablePredicate | undefined, params: Omit<PredicateDefHandlerParams, 'api' | 'inputs'>, defaultReturn: boolean): boolean;
16
16
  getEqualityPredicateForDataType(dataType: AdaptableColumnDataType): SystemFilterPredicateId;
17
17
  hasPredicateValues(predicate: AdaptablePredicate): boolean;
18
+ private getSystemFilterPredicateIds;
19
+ getFilterPredicateDefs(): AdaptablePredicateDef[];
20
+ private getSystemAlertPredicateIds;
21
+ getAlertPredicateDefs(): AdaptablePredicateDef[];
22
+ private getSystemFormatColumnPredicateIds;
23
+ getFormatColumnPredicateDefs(): AdaptablePredicateDef[];
24
+ private getSystemFlashingCellPredicateIds;
25
+ getFlashingCellPredicateDefs(): AdaptablePredicateDef[];
18
26
  }
@@ -103,5 +103,88 @@ class PredicateApiImpl extends ApiBase_1.ApiBase {
103
103
  hasPredicateValues(predicate) {
104
104
  return (predicate === null || predicate === void 0 ? void 0 : predicate.PredicateId) === 'Values' || (predicate === null || predicate === void 0 ? void 0 : predicate.PredicateId) === 'ExcludeValues';
105
105
  }
106
+ getSystemFilterPredicateIds() {
107
+ // for now we still need to get the old ones in case they have been provided
108
+ // however they have been deprectated and they are not populated by AdapTable
109
+ const oldSystemFilterPredicates = this.getFilterOptions().systemFilters;
110
+ if (oldSystemFilterPredicates) {
111
+ return oldSystemFilterPredicates;
112
+ }
113
+ // if old list not provided use the new property in Predicate Options
114
+ const systemFilterPredicates = this.getAdaptableQLOptions().predicateOptions.systemFilterPredicates;
115
+ if (typeof systemFilterPredicates === 'function') {
116
+ const systemPredicateContext = {
117
+ adaptableApi: this.adaptable.api,
118
+ systemPredicateDefs: this.getSystemPredicateDefs().filter((p) => p.moduleScope.includes('filter')),
119
+ moduleScope: 'filter',
120
+ };
121
+ return systemFilterPredicates(systemPredicateContext);
122
+ }
123
+ return systemFilterPredicates;
124
+ }
125
+ getFilterPredicateDefs() {
126
+ var _a;
127
+ return [
128
+ ...(_a = this.getSystemFilterPredicateIds()) === null || _a === void 0 ? void 0 : _a.map((predicateId) => this.getPredicateDefById(predicateId)),
129
+ ...this.getCustomPredicateDefs(),
130
+ ].filter((predicateDef) => predicateDef.moduleScope.includes('filter'));
131
+ }
132
+ getSystemAlertPredicateIds() {
133
+ const systemAlertPredicates = this.getAdaptableQLOptions().predicateOptions.systemAlertPredicates;
134
+ if (typeof systemAlertPredicates === 'function') {
135
+ const systemPredicateContext = {
136
+ adaptableApi: this.adaptable.api,
137
+ systemPredicateDefs: this.getSystemPredicateDefs().filter((p) => p.moduleScope.includes('alert')),
138
+ moduleScope: 'alert',
139
+ };
140
+ return systemAlertPredicates(systemPredicateContext);
141
+ }
142
+ return systemAlertPredicates;
143
+ }
144
+ getAlertPredicateDefs() {
145
+ var _a;
146
+ return [
147
+ ...(_a = this.getSystemAlertPredicateIds()) === null || _a === void 0 ? void 0 : _a.map((predicateId) => this.getPredicateDefById(predicateId)),
148
+ ...this.getCustomPredicateDefs(),
149
+ ].filter((predicateDef) => predicateDef.moduleScope.includes('alert'));
150
+ }
151
+ getSystemFormatColumnPredicateIds() {
152
+ const systemFormatColumnPredicates = this.getAdaptableQLOptions().predicateOptions.systemFormatColumnPredicates;
153
+ if (typeof systemFormatColumnPredicates === 'function') {
154
+ const systemPredicateContext = {
155
+ adaptableApi: this.adaptable.api,
156
+ systemPredicateDefs: this.getSystemPredicateDefs().filter((p) => p.moduleScope.includes('formatColumn')),
157
+ moduleScope: 'formatColumn',
158
+ };
159
+ return systemFormatColumnPredicates(systemPredicateContext);
160
+ }
161
+ return systemFormatColumnPredicates;
162
+ }
163
+ getFormatColumnPredicateDefs() {
164
+ var _a;
165
+ return [
166
+ ...(_a = this.getSystemFormatColumnPredicateIds()) === null || _a === void 0 ? void 0 : _a.map((predicateId) => this.getPredicateDefById(predicateId)),
167
+ ...this.getCustomPredicateDefs(),
168
+ ].filter((predicateDef) => predicateDef.moduleScope.includes('formatColumn'));
169
+ }
170
+ getSystemFlashingCellPredicateIds() {
171
+ const systemFlashingCellPredicates = this.getAdaptableQLOptions().predicateOptions.systemFlashingCellPredicates;
172
+ if (typeof systemFlashingCellPredicates === 'function') {
173
+ const systemPredicateContext = {
174
+ adaptableApi: this.adaptable.api,
175
+ systemPredicateDefs: this.getSystemPredicateDefs().filter((p) => p.moduleScope.includes('flashingcell')),
176
+ moduleScope: 'flashingcell',
177
+ };
178
+ return systemFlashingCellPredicates(systemPredicateContext);
179
+ }
180
+ return systemFlashingCellPredicates;
181
+ }
182
+ getFlashingCellPredicateDefs() {
183
+ var _a;
184
+ return [
185
+ ...(_a = this.getSystemFlashingCellPredicateIds()) === null || _a === void 0 ? void 0 : _a.map((predicateId) => this.getPredicateDefById(predicateId)),
186
+ ...this.getCustomPredicateDefs(),
187
+ ].filter((predicateDef) => predicateDef.moduleScope.includes('flashingcell'));
188
+ }
106
189
  }
107
190
  exports.PredicateApiImpl = PredicateApiImpl;
@@ -1,5 +1,5 @@
1
1
  import { AdaptableColumnDataType, SystemFilterPredicateId } from '../../types';
2
- import { AdaptablePredicateDef, AdaptablePredicate, PredicateDefHandlerParams, ModuleScope } from '../PredefinedConfig/Common/AdaptablePredicate';
2
+ import { AdaptablePredicateDef, AdaptablePredicate, PredicateDefHandlerParams, PredicateModuleScope } from '../PredefinedConfig/Common/AdaptablePredicate';
3
3
  /**
4
4
  * Functions which manage the Predicate object in AdapTable
5
5
  */
@@ -20,7 +20,7 @@ export interface PredicateApi {
20
20
  * Retrieves all Predicate Definitions for given Module Scope
21
21
  * @param moduleScope Module Scope to use
22
22
  */
23
- getPredicateDefsByModuleScope(moduleScope: ModuleScope): AdaptablePredicateDef[];
23
+ getPredicateDefsByModuleScope(moduleScope: PredicateModuleScope): AdaptablePredicateDef[];
24
24
  /**
25
25
  * Gets the Predicate Definition for a given Id
26
26
  * @param predicateId Id of Predicate Definition
@@ -64,4 +64,20 @@ export interface PredicateApi {
64
64
  * @param predicate
65
65
  */
66
66
  hasPredicateValues(predicate: AdaptablePredicate): boolean;
67
+ /**
68
+ * Get all Filter Predicate Definitions - System and Custom
69
+ */
70
+ getFilterPredicateDefs(): AdaptablePredicateDef[];
71
+ /**
72
+ * Get all Alert Predicate Definitions - System and Custom
73
+ */
74
+ getAlertPredicateDefs(): AdaptablePredicateDef[];
75
+ /**
76
+ * Get all Format Column Predicate Definitions - System and Custom
77
+ */
78
+ getFormatColumnPredicateDefs(): AdaptablePredicateDef[];
79
+ /**
80
+ * Get all Flashing Cell Predicate Definitions - System and Custom
81
+ */
82
+ getFlashingCellPredicateDefs(): AdaptablePredicateDef[];
67
83
  }
@@ -126,4 +126,11 @@ export interface AlertProperties {
126
126
  */
127
127
  PreventEdit?: boolean;
128
128
  }
129
- export declare type SystemAlertPredicateId = 'Blanks' | 'NonBlanks' | 'Equals' | 'NotEquals' | 'GreaterThan' | 'LessThan' | 'Positive' | 'Negative' | 'Zero' | 'Between' | 'NotBetween' | 'Is' | 'IsNot' | 'Contains' | 'NotContains' | 'StartsWith' | 'EndsWith' | 'Regex' | 'Today' | 'Yesterday' | 'Tomorrow' | 'ThisWeek' | 'ThisMonth' | 'ThisQuarter' | 'ThisYear' | 'InPast' | 'InFuture' | 'Before' | 'After' | 'On' | 'NotOn' | 'NextWorkDay' | 'LastWorkDay' | 'True' | 'False' | 'PercentChange' | 'PrimaryKeyDuplicate' | 'ExistingValuesOnly' | 'NoDuplicateValues' | 'IsNumeric' | 'IsNotNumeric' | 'AddedRow' | 'RemovedRow' | 'Any';
129
+ /**
130
+ * Array containing all System Alert Predicates
131
+ */
132
+ export declare type SystemAlertPredicateIds = SystemAlertPredicateId[];
133
+ /**
134
+ * List of System Predicates available for Alerts
135
+ */
136
+ export declare type SystemAlertPredicateId = 'Blanks' | 'NonBlanks' | 'Equals' | 'NotEquals' | 'GreaterThan' | 'LessThan' | 'Positive' | 'Negative' | 'Zero' | 'Between' | 'NotBetween' | 'Is' | 'IsNot' | 'Contains' | 'NotContains' | 'StartsWith' | 'EndsWith' | 'Regex' | 'Today' | 'Yesterday' | 'Tomorrow' | 'ThisWeek' | 'ThisMonth' | 'ThisQuarter' | 'ThisYear' | 'InPast' | 'InFuture' | 'Before' | 'After' | 'On' | 'NotOn' | 'NextWorkDay' | 'LastWorkDay' | 'WorkDay' | 'Holiday' | 'True' | 'False' | 'PercentChange' | 'PrimaryKeyDuplicate' | 'ExistingValuesOnly' | 'NoDuplicateValues' | 'IsNumeric' | 'IsNotNumeric' | 'AddedRow' | 'RemovedRow' | 'Any';
@@ -34,7 +34,7 @@ export interface AdaptablePredicateDef {
34
34
  /**
35
35
  * Modules where the Predicate can run
36
36
  */
37
- moduleScope: ModuleScope[];
37
+ moduleScope: PredicateModuleScope[];
38
38
  /**
39
39
  * Inputs the Predicate can take
40
40
  */
@@ -103,12 +103,15 @@ export interface PredicateDefHandlerParams {
103
103
  export interface PredicateDefToStringParams {
104
104
  inputs: any[];
105
105
  }
106
- export declare type ModuleScope = 'filter' | 'alert' | 'flashingcell' | 'formatColumn';
106
+ export declare type PredicateModuleScope = 'filter' | 'alert' | 'flashingcell' | 'formatColumn';
107
107
  /**
108
108
  * Array of Predicate Defs which are shipped by AdapTable
109
109
  */
110
110
  export declare const SystemPredicateDefs: AdaptablePredicateDef[];
111
111
  export declare const SystemFilterPredicateIds: string[];
112
+ export declare const SystemAlertPredicateIds: string[];
113
+ export declare const SystemFormatColumnPredicateIds: string[];
114
+ export declare const SystemFlashingCellPredicateIds: string[];
112
115
  export interface ColumnFilterDef {
113
116
  dataType: AdaptableColumnDataType;
114
117
  predicate: AdaptablePredicateDef;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.SystemFilterPredicateIds = exports.SystemPredicateDefs = void 0;
3
+ exports.SystemFlashingCellPredicateIds = exports.SystemFormatColumnPredicateIds = exports.SystemAlertPredicateIds = exports.SystemFilterPredicateIds = exports.SystemPredicateDefs = void 0;
4
4
  const tslib_1 = require("tslib");
5
5
  const Helper_1 = tslib_1.__importDefault(require("../../Utilities/Helpers/Helper"));
6
6
  const isToday_1 = tslib_1.__importDefault(require("date-fns/isToday"));
@@ -603,3 +603,6 @@ exports.SystemPredicateDefs = [
603
603
  },
604
604
  ];
605
605
  exports.SystemFilterPredicateIds = exports.SystemPredicateDefs.filter((p) => p.moduleScope.includes('filter')).map((p) => p.id);
606
+ exports.SystemAlertPredicateIds = exports.SystemPredicateDefs.filter((p) => p.moduleScope.includes('alert')).map((p) => p.id);
607
+ exports.SystemFormatColumnPredicateIds = exports.SystemPredicateDefs.filter((p) => p.moduleScope.includes('formatColumn')).map((p) => p.id);
608
+ exports.SystemFlashingCellPredicateIds = exports.SystemPredicateDefs.filter((p) => p.moduleScope.includes('flashingcell')).map((p) => p.id);
@@ -24,6 +24,6 @@ export interface ColumnFilterPredicate extends AdaptablePredicate {
24
24
  */
25
25
  export declare type SystemFilterPredicateIds = SystemFilterPredicateId[];
26
26
  /**
27
- * List of all the Filter Predicates shipped by AdapTable
27
+ * List of System Predicates available for Filters
28
28
  */
29
- export declare type SystemFilterPredicateId = 'Values' | 'ExcludeValues' | 'Blanks' | 'NonBlanks' | 'Equals' | 'NotEquals' | 'GreaterThan' | 'LessThan' | 'Positive' | 'Negative' | 'Zero' | 'Between' | 'NotBetween' | 'Is' | 'IsNot' | 'Contains' | 'NotContains' | 'StartsWith' | 'EndsWith' | 'Regex' | 'Today' | 'Yesterday' | 'Tomorrow' | 'ThisWeek' | 'ThisMonth' | 'ThisQuarter' | 'ThisYear' | 'InPast' | 'InFuture' | 'Before' | 'After' | 'InRange' | 'On' | 'NotOn' | 'NextWorkDay' | 'LastWorkDay' | 'True' | 'False' | 'BooleanToggle';
29
+ export declare type SystemFilterPredicateId = 'Values' | 'ExcludeValues' | 'Blanks' | 'NonBlanks' | 'Equals' | 'NotEquals' | 'GreaterThan' | 'LessThan' | 'Positive' | 'Negative' | 'Zero' | 'Between' | 'NotBetween' | 'Is' | 'IsNot' | 'Contains' | 'NotContains' | 'StartsWith' | 'EndsWith' | 'Regex' | 'Today' | 'Yesterday' | 'Tomorrow' | 'ThisWeek' | 'ThisMonth' | 'ThisQuarter' | 'ThisYear' | 'InPast' | 'InFuture' | 'Before' | 'After' | 'InRange' | 'On' | 'NotOn' | 'NextWorkDay' | 'LastWorkDay' | 'WorkDay' | 'Holiday' | 'True' | 'False' | 'BooleanToggle';
@@ -65,4 +65,11 @@ export interface FlashingCellDefinition extends SuspendableObject {
65
65
  */
66
66
  FlashDuration?: number | 'always';
67
67
  }
68
- export declare type SystemFlashingCellPredicateId = 'Blanks' | 'NonBlanks' | 'Equals' | 'NotEquals' | 'GreaterThan' | 'LessThan' | 'Positive' | 'Negative' | 'Zero' | 'Between' | 'NotBetween' | 'Is' | 'IsNot' | 'Contains' | 'NotContains' | 'StartsWith' | 'EndsWith' | 'Regex' | 'Today' | 'Yesterday' | 'Tomorrow' | 'ThisWeek' | 'ThisMonth' | 'ThisQuarter' | 'ThisYear' | 'InPast' | 'InFuture' | 'Before' | 'After' | 'On' | 'NotOn' | 'NextWorkDay' | 'LastWorkDay' | 'True' | 'False' | 'PercentChange' | 'IsNumeric' | 'IsNotNumeric' | 'Any';
68
+ /**
69
+ * Array containing all System Flashing Cell Predicates
70
+ */
71
+ export declare type SystemFlashingCellPredicateIds = SystemFlashingCellPredicateId[];
72
+ /**
73
+ * List of System Predicates available for Flashing Cells
74
+ */
75
+ export declare type SystemFlashingCellPredicateId = 'Blanks' | 'NonBlanks' | 'Equals' | 'NotEquals' | 'GreaterThan' | 'LessThan' | 'Positive' | 'Negative' | 'Zero' | 'Between' | 'NotBetween' | 'Is' | 'IsNot' | 'Contains' | 'NotContains' | 'StartsWith' | 'EndsWith' | 'Regex' | 'Today' | 'Yesterday' | 'Tomorrow' | 'ThisWeek' | 'ThisMonth' | 'ThisQuarter' | 'ThisYear' | 'InPast' | 'InFuture' | 'Before' | 'After' | 'On' | 'NotOn' | 'NextWorkDay' | 'LastWorkDay' | 'WorkDay' | 'Holiday' | 'True' | 'False' | 'PercentChange' | 'IsNumeric' | 'IsNotNumeric' | 'Any';
@@ -59,7 +59,14 @@ export declare type FormatColumnRule = XOR<{
59
59
  export interface FormatColumnPredicate extends AdaptablePredicate {
60
60
  PredicateId: TypeHint<string, SystemFormatColumnPredicateId>;
61
61
  }
62
- export declare type SystemFormatColumnPredicateId = 'Blanks' | 'NonBlanks' | 'Equals' | 'NotEquals' | 'GreaterThan' | 'LessThan' | 'Positive' | 'Negative' | 'Zero' | 'Between' | 'NotBetween' | 'Is' | 'IsNot' | 'Contains' | 'NotContains' | 'StartsWith' | 'EndsWith' | 'Regex' | 'Today' | 'Yesterday' | 'Tomorrow' | 'ThisWeek' | 'ThisMonth' | 'ThisQuarter' | 'ThisYear' | 'InPast' | 'InFuture' | 'Before' | 'After' | 'On' | 'NotOn' | 'NextWorkDay' | 'LastWorkDay' | 'True' | 'False';
62
+ /**
63
+ * Array containing all System Format Column Predicates
64
+ */
65
+ export declare type SystemFormatColumnPredicateIds = SystemFormatColumnPredicateId[];
66
+ /**
67
+ * List of System Predicates available for Format Columns
68
+ */
69
+ export declare type SystemFormatColumnPredicateId = 'Blanks' | 'NonBlanks' | 'Equals' | 'NotEquals' | 'GreaterThan' | 'LessThan' | 'Positive' | 'Negative' | 'Zero' | 'Between' | 'NotBetween' | 'Is' | 'IsNot' | 'Contains' | 'NotContains' | 'StartsWith' | 'EndsWith' | 'Regex' | 'Today' | 'Yesterday' | 'Tomorrow' | 'ThisWeek' | 'ThisMonth' | 'ThisQuarter' | 'ThisYear' | 'InPast' | 'InFuture' | 'Before' | 'After' | 'On' | 'NotOn' | 'NextWorkDay' | 'LastWorkDay' | 'WorkDay' | 'Holiday' | 'True' | 'False';
63
70
  /**
64
71
  * Special Style used when Formatting Columns: Gradient, PercentBar or CheckBox
65
72
  *
@@ -68,6 +68,12 @@ exports.DefaultAdaptableOptions = {
68
68
  performExpressionValidation: true,
69
69
  maxTimeframeSize: 28800000, // 8 hours
70
70
  },
71
+ predicateOptions: {
72
+ systemFilterPredicates: AdaptablePredicate_1.SystemFilterPredicateIds,
73
+ systemAlertPredicates: AdaptablePredicate_1.SystemAlertPredicateIds,
74
+ systemFormatColumnPredicates: AdaptablePredicate_1.SystemFormatColumnPredicateIds,
75
+ systemFlashingCellPredicates: AdaptablePredicate_1.SystemFlashingCellPredicateIds,
76
+ },
71
77
  },
72
78
  containerOptions: {
73
79
  adaptableContainer: 'adaptable',
@@ -199,7 +205,7 @@ exports.DefaultAdaptableOptions = {
199
205
  defaultFilterFormTab: 'Values',
200
206
  enableFilterOnSpecialColumns: true,
201
207
  maxFilterValuesToDisplay: 2000,
202
- systemFilters: AdaptablePredicate_1.SystemFilterPredicateIds,
208
+ systemFilters: undefined,
203
209
  showQuickFilter: true,
204
210
  showDistinctFilteredValuesOnly: false,
205
211
  showClearFilterButton: false,
@@ -15,6 +15,7 @@ function assignAdaptableOptions(adaptableOptions) {
15
15
  returnedAdaptableOptions.adaptableQLOptions = Object.assign({}, DefaultAdaptableOptions_1.DefaultAdaptableOptions.adaptableQLOptions, adaptableOptions.adaptableQLOptions);
16
16
  returnedAdaptableOptions.columnOptions = Object.assign({}, DefaultAdaptableOptions_1.DefaultAdaptableOptions.columnOptions, adaptableOptions.columnOptions);
17
17
  returnedAdaptableOptions.adaptableQLOptions.expressionOptions = Object.assign({}, DefaultAdaptableOptions_1.DefaultAdaptableOptions.adaptableQLOptions.expressionOptions, returnedAdaptableOptions.adaptableQLOptions.expressionOptions);
18
+ returnedAdaptableOptions.adaptableQLOptions.predicateOptions = Object.assign({}, DefaultAdaptableOptions_1.DefaultAdaptableOptions.adaptableQLOptions.predicateOptions, returnedAdaptableOptions.adaptableQLOptions.predicateOptions);
18
19
  returnedAdaptableOptions.layoutOptions = Object.assign({}, DefaultAdaptableOptions_1.DefaultAdaptableOptions.layoutOptions, adaptableOptions.layoutOptions);
19
20
  returnedAdaptableOptions.notificationsOptions = Object.assign({}, DefaultAdaptableOptions_1.DefaultAdaptableOptions.notificationsOptions, adaptableOptions.notificationsOptions);
20
21
  returnedAdaptableOptions.alertOptions = Object.assign({}, DefaultAdaptableOptions_1.DefaultAdaptableOptions.alertOptions, adaptableOptions.alertOptions);
@@ -4947,6 +4947,16 @@ export declare const ADAPTABLE_METAMODEL: {
4947
4947
  isOptional: boolean;
4948
4948
  }[];
4949
4949
  };
4950
+ SystemAlertPredicateId: {
4951
+ name: string;
4952
+ kind: string;
4953
+ description: string;
4954
+ };
4955
+ SystemAlertPredicateIds: {
4956
+ name: string;
4957
+ kind: string;
4958
+ description: string;
4959
+ };
4950
4960
  SystemExportDestination: {
4951
4961
  name: string;
4952
4962
  kind: string;
@@ -4967,6 +4977,26 @@ export declare const ADAPTABLE_METAMODEL: {
4967
4977
  kind: string;
4968
4978
  description: string;
4969
4979
  };
4980
+ SystemFlashingCellPredicateId: {
4981
+ name: string;
4982
+ kind: string;
4983
+ description: string;
4984
+ };
4985
+ SystemFlashingCellPredicateIds: {
4986
+ name: string;
4987
+ kind: string;
4988
+ description: string;
4989
+ };
4990
+ SystemFormatColumnPredicateId: {
4991
+ name: string;
4992
+ kind: string;
4993
+ description: string;
4994
+ };
4995
+ SystemFormatColumnPredicateIds: {
4996
+ name: string;
4997
+ kind: string;
4998
+ description: string;
4999
+ };
4970
5000
  SystemReportName: {
4971
5001
  name: string;
4972
5002
  kind: string;