@adaptabletools/adaptable 13.0.7 → 13.0.9
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 +186 -186
- package/package.json +1 -1
- package/publishTimestamp.d.ts +1 -1
- package/publishTimestamp.js +1 -1
- package/src/AdaptableOptions/AdaptableQLOptions.d.ts +9 -205
- package/src/AdaptableOptions/ExpressionOptions.d.ts +204 -0
- package/src/AdaptableOptions/ExpressionOptions.js +2 -0
- package/src/AdaptableOptions/FilterOptions.d.ts +4 -13
- package/src/AdaptableOptions/PredicateOptions.d.ts +32 -0
- package/src/AdaptableOptions/PredicateOptions.js +2 -0
- package/src/Api/AdaptableApi.d.ts +5 -0
- package/src/Api/AlertApi.d.ts +0 -4
- package/src/Api/EntitlementApi.d.ts +31 -0
- package/src/Api/EntitlementApi.js +2 -0
- package/src/Api/FilterApi.d.ts +1 -5
- package/src/Api/FinanceApi.d.ts +17 -9
- package/src/Api/FlashingCellApi.d.ts +4 -4
- package/src/Api/FormatColumnApi.d.ts +0 -4
- package/src/Api/GridApi.d.ts +1 -1
- package/src/Api/Implementation/AdaptableApiImpl.d.ts +2 -0
- package/src/Api/Implementation/AlertApiImpl.d.ts +0 -1
- package/src/Api/Implementation/AlertApiImpl.js +3 -4
- package/src/Api/Implementation/ApiBase.d.ts +2 -1
- package/src/Api/Implementation/EntitlementApiImpl.d.ts +11 -0
- package/src/Api/Implementation/EntitlementApiImpl.js +25 -0
- package/src/Api/Implementation/FilterApiImpl.d.ts +1 -3
- package/src/Api/Implementation/FilterApiImpl.js +4 -20
- package/src/Api/Implementation/FlashingCellApiImpl.d.ts +1 -1
- package/src/Api/Implementation/FlashingCellApiImpl.js +7 -4
- package/src/Api/Implementation/FormatColumnApiImpl.d.ts +1 -2
- package/src/Api/Implementation/FormatColumnApiImpl.js +5 -5
- package/src/Api/Implementation/GridApiImpl.d.ts +1 -1
- package/src/Api/Implementation/PredicateApiImpl.d.ts +10 -2
- package/src/Api/Implementation/PredicateApiImpl.js +83 -0
- package/src/Api/InternalApi.d.ts +2 -2
- package/src/Api/PredicateApi.d.ts +18 -2
- package/src/PredefinedConfig/AlertState.d.ts +8 -1
- package/src/PredefinedConfig/Common/AdaptablePredicate.d.ts +5 -2
- package/src/PredefinedConfig/Common/AdaptablePredicate.js +4 -1
- package/src/PredefinedConfig/Common/ColumnFilter.d.ts +2 -2
- package/src/PredefinedConfig/Common/FDC3Context.d.ts +1 -0
- package/src/PredefinedConfig/FlashingCellState.d.ts +8 -1
- package/src/PredefinedConfig/FormatColumnState.d.ts +8 -1
- package/src/Utilities/Defaults/DefaultAdaptableOptions.js +7 -1
- package/src/Utilities/Defaults/DefaultSettingsPanel.js +1 -1
- package/src/Utilities/Helpers/AdaptableHelper.js +1 -0
- package/src/View/ColorPicker.d.ts +1 -1
- package/src/View/Components/AdaptableDateInput/index.d.ts +1 -1
- package/src/View/Components/FilterForm/QuickFilterForm.js +1 -1
- package/src/agGrid/Adaptable.d.ts +1 -0
- package/src/agGrid/Adaptable.js +16 -8
- package/src/components/Datepicker/index.d.ts +1 -1
- package/src/components/Input/index.d.ts +1 -1
- package/src/components/List/ListGroupItem/index.d.ts +1 -1
- package/src/components/SizedContainer/index.d.ts +1 -1
- package/src/metamodel/adaptable.metamodel.d.ts +50 -8
- package/src/metamodel/adaptable.metamodel.js +1 -1
- package/src/types.d.ts +10 -7
- 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": "13.0.
|
|
3
|
+
"version": "13.0.9",
|
|
4
4
|
"description": "Powerful data-agnostic HTML5 datagrid add-on that sits on top of an underlying grid component and provides all the rich functionality that advanced users expect from their DataGrids and Data Tables",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"web-components",
|
package/publishTimestamp.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const _default:
|
|
1
|
+
declare const _default: 1667915288467;
|
|
2
2
|
export default _default;
|
package/publishTimestamp.js
CHANGED
|
@@ -1,13 +1,9 @@
|
|
|
1
|
-
import { ExpressionFunction } from '../parser/src/types';
|
|
2
1
|
import { AdaptablePredicateDef } from '../PredefinedConfig/Common/AdaptablePredicate';
|
|
3
|
-
import {
|
|
2
|
+
import { AdaptableQLModule, AdaptableQLModules } from '../PredefinedConfig/Common/Types';
|
|
4
3
|
import { BaseContext } from '../PredefinedConfig/Common/BaseContext';
|
|
5
|
-
import { AdaptableColumn
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import { ObservableFunctionName } from '../Utilities/ExpressionFunctions/observableExpressionFunctions';
|
|
9
|
-
import { AggregatedBooleanFunctionName } from '../Utilities/ExpressionFunctions/aggregatedBooleanExpressionFunctions';
|
|
10
|
-
import { AggregatedScalarFunctionName } from '../Utilities/ExpressionFunctions/aggregatedScalarExpressionFunctions';
|
|
4
|
+
import { AdaptableColumn } from '../PredefinedConfig/Common/AdaptableColumn';
|
|
5
|
+
import { ExpressionOptions } from './ExpressionOptions';
|
|
6
|
+
import { PredicateOptions } from './PredicateOptions';
|
|
11
7
|
/**
|
|
12
8
|
* Options for managing AdaptableQL - the Adaptable Query Language which evaluates Predicates and Expressions
|
|
13
9
|
*/
|
|
@@ -37,6 +33,11 @@ export interface AdaptableQLOptions {
|
|
|
37
33
|
*
|
|
38
34
|
*/
|
|
39
35
|
expressionOptions?: ExpressionOptions;
|
|
36
|
+
/**
|
|
37
|
+
* Options for managing Predicates in AdaptableQL
|
|
38
|
+
*
|
|
39
|
+
*/
|
|
40
|
+
predicateOptions?: PredicateOptions;
|
|
40
41
|
/**
|
|
41
42
|
* Definitions for Custom provided Predicates
|
|
42
43
|
*/
|
|
@@ -48,194 +49,6 @@ export interface AdaptableQLOptions {
|
|
|
48
49
|
*/
|
|
49
50
|
displayColumnFriendlyNamesForExpressions?: boolean;
|
|
50
51
|
}
|
|
51
|
-
/**
|
|
52
|
-
* Options for managing Expressions using AdaptableQL
|
|
53
|
-
*/
|
|
54
|
-
export interface ExpressionOptions {
|
|
55
|
-
/**
|
|
56
|
-
* System (built-in) Boolean Expression Functions available in AdaptableQL
|
|
57
|
-
*
|
|
58
|
-
* @defaultValue null (sets all)
|
|
59
|
-
* @gridInfoItem
|
|
60
|
-
*/
|
|
61
|
-
systemBooleanFunctions?: BooleanFunctionName[] | ((context: GlobalExpressionFunctionsContext<BooleanFunctionName>) => BooleanFunctionName[]);
|
|
62
|
-
/**
|
|
63
|
-
* Custom (user defined) Boolean Expression Functions available in AdaptableQL
|
|
64
|
-
*
|
|
65
|
-
* @defaultValue null (none)
|
|
66
|
-
* @gridInfoItem
|
|
67
|
-
*/
|
|
68
|
-
customBooleanFunctions?: Record<string, ExpressionFunction> | ((context: GlobalExpressionFunctionsContext<BooleanFunctionName>) => Record<string, ExpressionFunction>);
|
|
69
|
-
/**
|
|
70
|
-
* System (built-in) Scalar Expression Functions available in AdaptableQL
|
|
71
|
-
*
|
|
72
|
-
* @defaultValue null (sets all)
|
|
73
|
-
* @gridInfoItem
|
|
74
|
-
*/
|
|
75
|
-
systemScalarFunctions?: ScalarFunctionName[] | ((context: GlobalExpressionFunctionsContext<ScalarFunctionName>) => ScalarFunctionName[]);
|
|
76
|
-
/**
|
|
77
|
-
* Custom (user defined) Scalar Expression Functions available in AdaptableQL
|
|
78
|
-
*
|
|
79
|
-
* @defaultValue null (none)
|
|
80
|
-
* @gridInfoItem
|
|
81
|
-
*/
|
|
82
|
-
customScalarFunctions?: Record<string, ExpressionFunction> | ((context: GlobalExpressionFunctionsContext<ScalarFunctionName>) => Record<string, ExpressionFunction>);
|
|
83
|
-
/**
|
|
84
|
-
* System (built-in) Observable Expression Functions available in AdaptableQL
|
|
85
|
-
*
|
|
86
|
-
* @defaultValue null (sets all)
|
|
87
|
-
* @gridInfoItem
|
|
88
|
-
*/
|
|
89
|
-
systemObservableFunctions?: ObservableFunctionName[] | ((context: GlobalExpressionFunctionsContext<ObservableFunctionName>) => ObservableFunctionName[]);
|
|
90
|
-
/**
|
|
91
|
-
* System (built-in) AggregatedBoolean Expression Functions available in AdaptableQL
|
|
92
|
-
*
|
|
93
|
-
* @defaultValue null (sets all)
|
|
94
|
-
* @gridInfoItem
|
|
95
|
-
*/
|
|
96
|
-
systemAggregatedBooleanFunctions?: AggregatedBooleanFunctionName[] | ((context: GlobalExpressionFunctionsContext<AggregatedBooleanFunctionName>) => AggregatedBooleanFunctionName[]);
|
|
97
|
-
/**
|
|
98
|
-
* System (built-in) AggregatedScalar Expression Functions available in AdaptableQL
|
|
99
|
-
*
|
|
100
|
-
* @defaultValue undefined (sets all)
|
|
101
|
-
* @gridInfoItem
|
|
102
|
-
*/
|
|
103
|
-
systemAggregatedScalarFunctions?: AggregatedScalarFunctionName[] | ((context: GlobalExpressionFunctionsContext<AggregatedScalarFunctionName>) => AggregatedScalarFunctionName[]);
|
|
104
|
-
/**
|
|
105
|
-
* Module specific ExpressionFunctions; if not defined, it falls back to the generally defined system and custom values
|
|
106
|
-
*
|
|
107
|
-
* @defaultValue undefined (defaults to available system & custom values)
|
|
108
|
-
* @gridInfoItem
|
|
109
|
-
*/
|
|
110
|
-
moduleExpressionFunctions?: ModuleExpressionFunctionsMap | ((context: ModuleExpressionFunctionsContext) => ModuleExpressionFunctions | undefined);
|
|
111
|
-
/**
|
|
112
|
-
* Specifies if a given column can be included in Queries
|
|
113
|
-
*/
|
|
114
|
-
isColumnQueryable?: (queryableColumnContext: QueryableColumnContext) => boolean;
|
|
115
|
-
/**
|
|
116
|
-
* Validate Expressions before they can be run or saved
|
|
117
|
-
*
|
|
118
|
-
* @defaultValue true
|
|
119
|
-
* @gridInfoItem
|
|
120
|
-
*/
|
|
121
|
-
performExpressionValidation?: boolean;
|
|
122
|
-
/**
|
|
123
|
-
* Maximum time (in milliseconds) to hold a Data Change event in a trailing timeframe (see observableExpressionFunctions); value is capped at 86400000 (~24 hours) for performance reasons
|
|
124
|
-
*
|
|
125
|
-
* @defaultValue 28800000 (~8 hours)
|
|
126
|
-
* @gridInfoItem
|
|
127
|
-
*/
|
|
128
|
-
maxTimeframeSize?: number;
|
|
129
|
-
/**
|
|
130
|
-
* Custom query variables allow values to be attached to variables so that a single value can easily be expressed multiple times within a query, or quickly changed to affect the results of a query. Variables are evaluated synchronously with each expression evaluation.
|
|
131
|
-
*/
|
|
132
|
-
customQueryVariables?: Record<string, string | number | boolean | Date | ((context: CustomQueryVariableContext) => string | number | boolean | Date)>;
|
|
133
|
-
}
|
|
134
|
-
/**
|
|
135
|
-
* Module specific Expression Functions
|
|
136
|
-
*/
|
|
137
|
-
export declare type ModuleExpressionFunctionsMap = Partial<Record<AdaptableModule, ModuleExpressionFunctions>>;
|
|
138
|
-
/**
|
|
139
|
-
* Type specific Expression Functions
|
|
140
|
-
*/
|
|
141
|
-
export interface ModuleExpressionFunctions {
|
|
142
|
-
/**
|
|
143
|
-
* System (built-in) Boolean Expression Functions available in AdaptableQL
|
|
144
|
-
*
|
|
145
|
-
* @defaultValue null (sets all)
|
|
146
|
-
* @gridInfoItem
|
|
147
|
-
*/
|
|
148
|
-
systemBooleanFunctions?: BooleanFunctionName[] | ((context: GlobalExpressionFunctionsContext<BooleanFunctionName>) => BooleanFunctionName[]);
|
|
149
|
-
/**
|
|
150
|
-
* Custom (user defined) Boolean Expression Functions available in AdaptableQL
|
|
151
|
-
*
|
|
152
|
-
* @defaultValue null (none)
|
|
153
|
-
* @gridInfoItem
|
|
154
|
-
*/
|
|
155
|
-
customBooleanFunctions?: Record<string, ExpressionFunction> | ((context: GlobalExpressionFunctionsContext<BooleanFunctionName>) => Record<string, ExpressionFunction>);
|
|
156
|
-
/**
|
|
157
|
-
* System (built-in) Scalar Expression Functions available in AdaptableQL
|
|
158
|
-
*
|
|
159
|
-
* @defaultValue null (sets all)
|
|
160
|
-
* @gridInfoItem
|
|
161
|
-
*/
|
|
162
|
-
systemScalarFunctions?: ScalarFunctionName[] | ((context: GlobalExpressionFunctionsContext<ScalarFunctionName>) => ScalarFunctionName[]);
|
|
163
|
-
/**
|
|
164
|
-
* Custom (user defined) Scalar Expression Functions available in AdaptableQL
|
|
165
|
-
*
|
|
166
|
-
* @defaultValue null (none)
|
|
167
|
-
* @gridInfoItem
|
|
168
|
-
*/
|
|
169
|
-
customScalarFunctions?: Record<string, ExpressionFunction> | ((context: GlobalExpressionFunctionsContext<ScalarFunctionName>) => Record<string, ExpressionFunction>);
|
|
170
|
-
/**
|
|
171
|
-
* System (built-in) Observable Expression Functions available in AdaptableQL
|
|
172
|
-
*
|
|
173
|
-
* @defaultValue null (sets all)
|
|
174
|
-
* @gridInfoItem
|
|
175
|
-
*/
|
|
176
|
-
systemObservableFunctions?: ObservableFunctionName[] | ((context: GlobalExpressionFunctionsContext<ObservableFunctionName>) => ObservableFunctionName[]);
|
|
177
|
-
/**
|
|
178
|
-
* System (built-in) AggregatedBoolean Expression Functions available in AdaptableQL
|
|
179
|
-
*
|
|
180
|
-
* @defaultValue null (sets all)
|
|
181
|
-
* @gridInfoItem
|
|
182
|
-
*/
|
|
183
|
-
systemAggregatedBooleanFunctions?: AggregatedBooleanFunctionName[] | ((context: GlobalExpressionFunctionsContext<AggregatedBooleanFunctionName>) => AggregatedBooleanFunctionName[]);
|
|
184
|
-
/**
|
|
185
|
-
* System (built-in) AggregatedScalar Expression Functions available in AdaptableQL
|
|
186
|
-
*
|
|
187
|
-
* @defaultValue null (sets all)
|
|
188
|
-
* @gridInfoItem
|
|
189
|
-
*/
|
|
190
|
-
systemAggregatedScalarFunctions?: AggregatedScalarFunctionName[] | ((context: GlobalExpressionFunctionsContext<AggregatedScalarFunctionName>) => AggregatedScalarFunctionName[]);
|
|
191
|
-
}
|
|
192
|
-
/**
|
|
193
|
-
* Context provided to global expression functions properties property callback
|
|
194
|
-
*/
|
|
195
|
-
export interface GlobalExpressionFunctionsContext<T> extends BaseContext {
|
|
196
|
-
/**
|
|
197
|
-
* The names of all expression functions available in this context
|
|
198
|
-
*/
|
|
199
|
-
availableExpressionFunctionNames: T[];
|
|
200
|
-
}
|
|
201
|
-
/**
|
|
202
|
-
* Context provided to ExpressionOptions.moduleExpressionFunctions property callback
|
|
203
|
-
*/
|
|
204
|
-
export interface ModuleExpressionFunctionsContext extends BaseContext {
|
|
205
|
-
/**
|
|
206
|
-
* The Adaptable Module requesting the expression functions
|
|
207
|
-
*/
|
|
208
|
-
module: AdaptableModule;
|
|
209
|
-
/**
|
|
210
|
-
* The global boolean expression functions
|
|
211
|
-
*/
|
|
212
|
-
availableBooleanFunctionNames: BooleanFunctionName[];
|
|
213
|
-
/**
|
|
214
|
-
* The global scalar expression functions
|
|
215
|
-
*/
|
|
216
|
-
availableScalarFunctionNames: ScalarFunctionName[];
|
|
217
|
-
/**
|
|
218
|
-
* The global observable expression functions
|
|
219
|
-
*/
|
|
220
|
-
availableObservableFunctionNames: ObservableFunctionName[];
|
|
221
|
-
/**
|
|
222
|
-
* The global aggregated boolean expression functions
|
|
223
|
-
*/
|
|
224
|
-
availableAggregatedBooleanFunctionNames: AggregatedBooleanFunctionName[];
|
|
225
|
-
/**
|
|
226
|
-
* The global aggregated scalar expression functions
|
|
227
|
-
*/
|
|
228
|
-
availableAggregatedScalarFunctionNames: AggregatedScalarFunctionName[];
|
|
229
|
-
}
|
|
230
|
-
/**
|
|
231
|
-
* Context passed when evaluating `ExpressionOptions.customQueryVariables`
|
|
232
|
-
*/
|
|
233
|
-
export interface CustomQueryVariableContext extends BaseContext {
|
|
234
|
-
/**
|
|
235
|
-
* Optional variable arguments
|
|
236
|
-
*/
|
|
237
|
-
args?: any[];
|
|
238
|
-
}
|
|
239
52
|
/**
|
|
240
53
|
* Context passed when evaluating `AdaptableQLOptions.evaluateExpressionExternally()`
|
|
241
54
|
*/
|
|
@@ -253,12 +66,3 @@ export interface EvaluateExpressionExternallyContext extends BaseContext {
|
|
|
253
66
|
*/
|
|
254
67
|
referencedColumns?: AdaptableColumn[];
|
|
255
68
|
}
|
|
256
|
-
/**
|
|
257
|
-
* Context passed when evaluating Queryable Columns
|
|
258
|
-
*/
|
|
259
|
-
export interface QueryableColumnContext extends BaseContext {
|
|
260
|
-
/**
|
|
261
|
-
* Basic Column Info - just ColumnId, DataType and FriendlyName
|
|
262
|
-
*/
|
|
263
|
-
adaptableColumn: AdaptableColumnBase;
|
|
264
|
-
}
|
|
@@ -0,0 +1,204 @@
|
|
|
1
|
+
import { ExpressionFunction } from '../parser/src/types';
|
|
2
|
+
import { BooleanFunctionName } from '../Utilities/ExpressionFunctions/booleanExpressionFunctions';
|
|
3
|
+
import { ScalarFunctionName } from '../Utilities/ExpressionFunctions/scalarExpressionFunctions';
|
|
4
|
+
import { ObservableFunctionName } from '../Utilities/ExpressionFunctions/observableExpressionFunctions';
|
|
5
|
+
import { AggregatedBooleanFunctionName } from '../Utilities/ExpressionFunctions/aggregatedBooleanExpressionFunctions';
|
|
6
|
+
import { AggregatedScalarFunctionName } from '../Utilities/ExpressionFunctions/aggregatedScalarExpressionFunctions';
|
|
7
|
+
import { AdaptableModule, BaseContext, AdaptableColumnBase } from '../types';
|
|
8
|
+
/**
|
|
9
|
+
* Options for managing Expressions using AdaptableQL
|
|
10
|
+
*/
|
|
11
|
+
export interface ExpressionOptions {
|
|
12
|
+
/**
|
|
13
|
+
* System (built-in) Boolean Expression Functions available in AdaptableQL
|
|
14
|
+
*
|
|
15
|
+
* @defaultValue null (sets all)
|
|
16
|
+
* @gridInfoItem
|
|
17
|
+
*/
|
|
18
|
+
systemBooleanFunctions?: BooleanFunctionName[] | ((context: GlobalExpressionFunctionsContext<BooleanFunctionName>) => BooleanFunctionName[]);
|
|
19
|
+
/**
|
|
20
|
+
* Custom (user defined) Boolean Expression Functions available in AdaptableQL
|
|
21
|
+
*
|
|
22
|
+
* @defaultValue null (none)
|
|
23
|
+
* @gridInfoItem
|
|
24
|
+
*/
|
|
25
|
+
customBooleanFunctions?: Record<string, ExpressionFunction> | ((context: GlobalExpressionFunctionsContext<BooleanFunctionName>) => Record<string, ExpressionFunction>);
|
|
26
|
+
/**
|
|
27
|
+
* System (built-in) Scalar Expression Functions available in AdaptableQL
|
|
28
|
+
*
|
|
29
|
+
* @defaultValue null (sets all)
|
|
30
|
+
* @gridInfoItem
|
|
31
|
+
*/
|
|
32
|
+
systemScalarFunctions?: ScalarFunctionName[] | ((context: GlobalExpressionFunctionsContext<ScalarFunctionName>) => ScalarFunctionName[]);
|
|
33
|
+
/**
|
|
34
|
+
* Custom (user defined) Scalar Expression Functions available in AdaptableQL
|
|
35
|
+
*
|
|
36
|
+
* @defaultValue null (none)
|
|
37
|
+
* @gridInfoItem
|
|
38
|
+
*/
|
|
39
|
+
customScalarFunctions?: Record<string, ExpressionFunction> | ((context: GlobalExpressionFunctionsContext<ScalarFunctionName>) => Record<string, ExpressionFunction>);
|
|
40
|
+
/**
|
|
41
|
+
* System (built-in) Observable Expression Functions available in AdaptableQL
|
|
42
|
+
*
|
|
43
|
+
* @defaultValue null (sets all)
|
|
44
|
+
* @gridInfoItem
|
|
45
|
+
*/
|
|
46
|
+
systemObservableFunctions?: ObservableFunctionName[] | ((context: GlobalExpressionFunctionsContext<ObservableFunctionName>) => ObservableFunctionName[]);
|
|
47
|
+
/**
|
|
48
|
+
* System (built-in) AggregatedBoolean Expression Functions available in AdaptableQL
|
|
49
|
+
*
|
|
50
|
+
* @defaultValue null (sets all)
|
|
51
|
+
* @gridInfoItem
|
|
52
|
+
*/
|
|
53
|
+
systemAggregatedBooleanFunctions?: AggregatedBooleanFunctionName[] | ((context: GlobalExpressionFunctionsContext<AggregatedBooleanFunctionName>) => AggregatedBooleanFunctionName[]);
|
|
54
|
+
/**
|
|
55
|
+
* System (built-in) AggregatedScalar Expression Functions available in AdaptableQL
|
|
56
|
+
*
|
|
57
|
+
* @defaultValue undefined (sets all)
|
|
58
|
+
* @gridInfoItem
|
|
59
|
+
*/
|
|
60
|
+
systemAggregatedScalarFunctions?: AggregatedScalarFunctionName[] | ((context: GlobalExpressionFunctionsContext<AggregatedScalarFunctionName>) => AggregatedScalarFunctionName[]);
|
|
61
|
+
/**
|
|
62
|
+
* Module specific ExpressionFunctions; if not defined, it falls back to the generally defined system and custom values
|
|
63
|
+
*
|
|
64
|
+
* @defaultValue undefined (defaults to available system & custom values)
|
|
65
|
+
* @gridInfoItem
|
|
66
|
+
*/
|
|
67
|
+
moduleExpressionFunctions?: ModuleExpressionFunctionsMap | ((context: ModuleExpressionFunctionsContext) => ModuleExpressionFunctions | undefined);
|
|
68
|
+
/**
|
|
69
|
+
* Specifies if a given column can be included in Queries
|
|
70
|
+
*/
|
|
71
|
+
isColumnQueryable?: (queryableColumnContext: QueryableColumnContext) => boolean;
|
|
72
|
+
/**
|
|
73
|
+
* Validate Expressions before they can be run or saved
|
|
74
|
+
*
|
|
75
|
+
* @defaultValue true
|
|
76
|
+
* @gridInfoItem
|
|
77
|
+
*/
|
|
78
|
+
performExpressionValidation?: boolean;
|
|
79
|
+
/**
|
|
80
|
+
* Maximum time (in milliseconds) to hold a Data Change event in a trailing timeframe (see observableExpressionFunctions); value is capped at 86400000 (~24 hours) for performance reasons
|
|
81
|
+
*
|
|
82
|
+
* @defaultValue 28800000 (~8 hours)
|
|
83
|
+
* @gridInfoItem
|
|
84
|
+
*/
|
|
85
|
+
maxTimeframeSize?: number;
|
|
86
|
+
/**
|
|
87
|
+
* Custom query variables allow values to be attached to variables so that a single value can easily be expressed multiple times within a query, or quickly changed to affect the results of a query. Variables are evaluated synchronously with each expression evaluation.
|
|
88
|
+
*/
|
|
89
|
+
customQueryVariables?: Record<string, string | number | boolean | Date | ((context: CustomQueryVariableContext) => string | number | boolean | Date)>;
|
|
90
|
+
}
|
|
91
|
+
/**
|
|
92
|
+
* Module specific Expression Functions
|
|
93
|
+
*/
|
|
94
|
+
export declare type ModuleExpressionFunctionsMap = Partial<Record<AdaptableModule, ModuleExpressionFunctions>>;
|
|
95
|
+
/**
|
|
96
|
+
* Type specific Expression Functions
|
|
97
|
+
*/
|
|
98
|
+
export interface ModuleExpressionFunctions {
|
|
99
|
+
/**
|
|
100
|
+
* System (built-in) Boolean Expression Functions available in AdaptableQL
|
|
101
|
+
*
|
|
102
|
+
* @defaultValue null (sets all)
|
|
103
|
+
* @gridInfoItem
|
|
104
|
+
*/
|
|
105
|
+
systemBooleanFunctions?: BooleanFunctionName[] | ((context: GlobalExpressionFunctionsContext<BooleanFunctionName>) => BooleanFunctionName[]);
|
|
106
|
+
/**
|
|
107
|
+
* Custom (user defined) Boolean Expression Functions available in AdaptableQL
|
|
108
|
+
*
|
|
109
|
+
* @defaultValue null (none)
|
|
110
|
+
* @gridInfoItem
|
|
111
|
+
*/
|
|
112
|
+
customBooleanFunctions?: Record<string, ExpressionFunction> | ((context: GlobalExpressionFunctionsContext<BooleanFunctionName>) => Record<string, ExpressionFunction>);
|
|
113
|
+
/**
|
|
114
|
+
* System (built-in) Scalar Expression Functions available in AdaptableQL
|
|
115
|
+
*
|
|
116
|
+
* @defaultValue null (sets all)
|
|
117
|
+
* @gridInfoItem
|
|
118
|
+
*/
|
|
119
|
+
systemScalarFunctions?: ScalarFunctionName[] | ((context: GlobalExpressionFunctionsContext<ScalarFunctionName>) => ScalarFunctionName[]);
|
|
120
|
+
/**
|
|
121
|
+
* Custom (user defined) Scalar Expression Functions available in AdaptableQL
|
|
122
|
+
*
|
|
123
|
+
* @defaultValue null (none)
|
|
124
|
+
* @gridInfoItem
|
|
125
|
+
*/
|
|
126
|
+
customScalarFunctions?: Record<string, ExpressionFunction> | ((context: GlobalExpressionFunctionsContext<ScalarFunctionName>) => Record<string, ExpressionFunction>);
|
|
127
|
+
/**
|
|
128
|
+
* System (built-in) Observable Expression Functions available in AdaptableQL
|
|
129
|
+
*
|
|
130
|
+
* @defaultValue null (sets all)
|
|
131
|
+
* @gridInfoItem
|
|
132
|
+
*/
|
|
133
|
+
systemObservableFunctions?: ObservableFunctionName[] | ((context: GlobalExpressionFunctionsContext<ObservableFunctionName>) => ObservableFunctionName[]);
|
|
134
|
+
/**
|
|
135
|
+
* System (built-in) AggregatedBoolean Expression Functions available in AdaptableQL
|
|
136
|
+
*
|
|
137
|
+
* @defaultValue null (sets all)
|
|
138
|
+
* @gridInfoItem
|
|
139
|
+
*/
|
|
140
|
+
systemAggregatedBooleanFunctions?: AggregatedBooleanFunctionName[] | ((context: GlobalExpressionFunctionsContext<AggregatedBooleanFunctionName>) => AggregatedBooleanFunctionName[]);
|
|
141
|
+
/**
|
|
142
|
+
* System (built-in) AggregatedScalar Expression Functions available in AdaptableQL
|
|
143
|
+
*
|
|
144
|
+
* @defaultValue null (sets all)
|
|
145
|
+
* @gridInfoItem
|
|
146
|
+
*/
|
|
147
|
+
systemAggregatedScalarFunctions?: AggregatedScalarFunctionName[] | ((context: GlobalExpressionFunctionsContext<AggregatedScalarFunctionName>) => AggregatedScalarFunctionName[]);
|
|
148
|
+
}
|
|
149
|
+
/**
|
|
150
|
+
* Context provided to global expression functions properties property callback
|
|
151
|
+
*/
|
|
152
|
+
export interface GlobalExpressionFunctionsContext<T> extends BaseContext {
|
|
153
|
+
/**
|
|
154
|
+
* The names of all expression functions available in this context
|
|
155
|
+
*/
|
|
156
|
+
availableExpressionFunctionNames: T[];
|
|
157
|
+
}
|
|
158
|
+
/**
|
|
159
|
+
* Context provided to ExpressionOptions.moduleExpressionFunctions property callback
|
|
160
|
+
*/
|
|
161
|
+
export interface ModuleExpressionFunctionsContext extends BaseContext {
|
|
162
|
+
/**
|
|
163
|
+
* The Adaptable Module requesting the expression functions
|
|
164
|
+
*/
|
|
165
|
+
module: AdaptableModule;
|
|
166
|
+
/**
|
|
167
|
+
* The global boolean expression functions
|
|
168
|
+
*/
|
|
169
|
+
availableBooleanFunctionNames: BooleanFunctionName[];
|
|
170
|
+
/**
|
|
171
|
+
* The global scalar expression functions
|
|
172
|
+
*/
|
|
173
|
+
availableScalarFunctionNames: ScalarFunctionName[];
|
|
174
|
+
/**
|
|
175
|
+
* The global observable expression functions
|
|
176
|
+
*/
|
|
177
|
+
availableObservableFunctionNames: ObservableFunctionName[];
|
|
178
|
+
/**
|
|
179
|
+
* The global aggregated boolean expression functions
|
|
180
|
+
*/
|
|
181
|
+
availableAggregatedBooleanFunctionNames: AggregatedBooleanFunctionName[];
|
|
182
|
+
/**
|
|
183
|
+
* The global aggregated scalar expression functions
|
|
184
|
+
*/
|
|
185
|
+
availableAggregatedScalarFunctionNames: AggregatedScalarFunctionName[];
|
|
186
|
+
}
|
|
187
|
+
/**
|
|
188
|
+
* Context passed when evaluating `ExpressionOptions.customQueryVariables`
|
|
189
|
+
*/
|
|
190
|
+
export interface CustomQueryVariableContext extends BaseContext {
|
|
191
|
+
/**
|
|
192
|
+
* Optional variable arguments
|
|
193
|
+
*/
|
|
194
|
+
args?: any[];
|
|
195
|
+
}
|
|
196
|
+
/**
|
|
197
|
+
* Context passed when evaluating Queryable Columns
|
|
198
|
+
*/
|
|
199
|
+
export interface QueryableColumnContext extends BaseContext {
|
|
200
|
+
/**
|
|
201
|
+
* Basic Column Info - just ColumnId, DataType and FriendlyName
|
|
202
|
+
*/
|
|
203
|
+
adaptableColumn: AdaptableColumnBase;
|
|
204
|
+
}
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { AdaptableColumn } from '../PredefinedConfig/Common/AdaptableColumn';
|
|
2
2
|
import { FilterActionOnDataChange } from '../PredefinedConfig/Common/FilterActionOnDataChange';
|
|
3
|
-
import {
|
|
3
|
+
import { SystemFilterPredicateId, SystemFilterPredicateIds } from '../../types';
|
|
4
4
|
import { StrictExtract } from '../Utilities/Extensions/TypeExtensions';
|
|
5
|
-
import { BaseContext } from '../types';
|
|
6
5
|
/**
|
|
7
6
|
* Options for managing Filtering in AdapTable
|
|
8
7
|
*/
|
|
@@ -149,9 +148,10 @@ export interface FilterOptions {
|
|
|
149
148
|
*/
|
|
150
149
|
enableFilterOnSpecialColumns?: boolean;
|
|
151
150
|
/**
|
|
152
|
-
* Set which System Filter Predicates are available
|
|
151
|
+
* Set which System Filter Predicates are available
|
|
152
|
+
* @deprecated use systemFilterPredicates in PredicateOptions
|
|
153
153
|
*/
|
|
154
|
-
systemFilters?: SystemFilterPredicateIds
|
|
154
|
+
systemFilters?: SystemFilterPredicateIds;
|
|
155
155
|
/**
|
|
156
156
|
* Whether to display Quick Filter Bar between Column Header and the Grid (provided its been setup)
|
|
157
157
|
* @defaultValue true
|
|
@@ -177,12 +177,3 @@ export interface FilterOptions {
|
|
|
177
177
|
*/
|
|
178
178
|
showSuspendFilterButton?: boolean;
|
|
179
179
|
}
|
|
180
|
-
/**
|
|
181
|
-
* Context used for providing System Filters
|
|
182
|
-
*/
|
|
183
|
-
export interface SystemFiltersPredicateContext extends BaseContext {
|
|
184
|
-
/**
|
|
185
|
-
* AdapTable-provided System Filter Predicate Definitions
|
|
186
|
-
*/
|
|
187
|
-
systemFiltersPredicateDefs: AdaptablePredicateDef[];
|
|
188
|
-
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { AdaptablePredicateDef, BaseContext, SystemAlertPredicateIds, SystemFilterPredicateIds, SystemFormatColumnPredicateIds, SystemFlashingCellPredicateIds, PredicateModuleScope } from '../types';
|
|
2
|
+
/**
|
|
3
|
+
* Options for managing Adaptable Predicates using AdaptableQL
|
|
4
|
+
*/
|
|
5
|
+
export interface PredicateOptions {
|
|
6
|
+
/**
|
|
7
|
+
* Set which System Filter Predicates are available - by List or Function
|
|
8
|
+
*/
|
|
9
|
+
systemFilterPredicates?: SystemFilterPredicateIds | ((context: SystemPredicatesContext) => SystemFilterPredicateIds);
|
|
10
|
+
/**
|
|
11
|
+
* Set which System Alert Predicates are available - by List or Function
|
|
12
|
+
*/
|
|
13
|
+
systemAlertPredicates?: SystemAlertPredicateIds | ((context: SystemPredicatesContext) => SystemAlertPredicateIds);
|
|
14
|
+
/**
|
|
15
|
+
* Set which System Format Column Predicates are available - by List or Function
|
|
16
|
+
*/
|
|
17
|
+
systemFormatColumnPredicates?: SystemFormatColumnPredicateIds | ((context: SystemPredicatesContext) => SystemFormatColumnPredicateIds);
|
|
18
|
+
/**
|
|
19
|
+
* Set which System Flashing Cell Predicates are available - by List or Function
|
|
20
|
+
*/
|
|
21
|
+
systemFlashingCellPredicates?: SystemFlashingCellPredicateIds | ((context: SystemPredicatesContext) => SystemFlashingCellPredicateIds);
|
|
22
|
+
}
|
|
23
|
+
export interface SystemPredicatesContext extends BaseContext {
|
|
24
|
+
/**
|
|
25
|
+
* AdapTable-provided System Predicate Definitions
|
|
26
|
+
*/
|
|
27
|
+
systemPredicateDefs: AdaptablePredicateDef[];
|
|
28
|
+
/**
|
|
29
|
+
* Module for which Predicates are being retrieved
|
|
30
|
+
*/
|
|
31
|
+
moduleScope: PredicateModuleScope;
|
|
32
|
+
}
|
|
@@ -11,6 +11,7 @@ import { ToolPanelApi } from './ToolPanelApi';
|
|
|
11
11
|
import { DataSetApi } from './DataSetApi';
|
|
12
12
|
import { EventApi } from './EventApi';
|
|
13
13
|
import { ExportApi } from './ExportApi';
|
|
14
|
+
import { EntitlementApi } from './EntitlementApi';
|
|
14
15
|
import { FormatColumnApi } from './FormatColumnApi';
|
|
15
16
|
import { FreeTextColumnApi } from './FreeTextColumnApi';
|
|
16
17
|
import { LayoutApi } from './LayoutApi';
|
|
@@ -98,6 +99,10 @@ export interface AdaptableApi {
|
|
|
98
99
|
* Provides access to Data Sets
|
|
99
100
|
*/
|
|
100
101
|
dataSetApi: DataSetApi;
|
|
102
|
+
/**
|
|
103
|
+
* Functions for managing Entitlements and Permissions
|
|
104
|
+
*/
|
|
105
|
+
entitlementApi: EntitlementApi;
|
|
101
106
|
/**
|
|
102
107
|
* Used for listenning / subscribing to the various Events published by AdapTable
|
|
103
108
|
*/
|
package/src/Api/AlertApi.d.ts
CHANGED
|
@@ -135,10 +135,6 @@ export interface AlertApi {
|
|
|
135
135
|
* Opens Settings Panel with Alert section selected and visible
|
|
136
136
|
*/
|
|
137
137
|
showAlertPopup(): void;
|
|
138
|
-
/**
|
|
139
|
-
* Retrieves all Predicate Defs with Module Scope of Alert
|
|
140
|
-
*/
|
|
141
|
-
getAlertPredicateDefs(): AdaptablePredicateDef[];
|
|
142
138
|
/**
|
|
143
139
|
* Retrieves all Predicate Defs that match given Scope
|
|
144
140
|
* @param scope the Scope to check
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { AdaptableModule, AccessLevel, AdaptableObject } from '../types';
|
|
2
|
+
/**
|
|
3
|
+
* Provides functions for Entitlements and Permissions
|
|
4
|
+
**/
|
|
5
|
+
export interface EntitlementApi {
|
|
6
|
+
/**
|
|
7
|
+
* Returns Access Level of an Entitlement
|
|
8
|
+
* @param adaptableModule Module to Check
|
|
9
|
+
*/
|
|
10
|
+
getEntitlementAccessLevelForModule(adaptableModule: AdaptableModule): AccessLevel;
|
|
11
|
+
/**
|
|
12
|
+
* Is the Adaptable Object ReadOnly
|
|
13
|
+
* @param object Object to Check
|
|
14
|
+
*/
|
|
15
|
+
isObjectReadonly(object: AdaptableObject): boolean;
|
|
16
|
+
/**
|
|
17
|
+
* Is Module Hidden
|
|
18
|
+
* @param adaptableModule Module to Check
|
|
19
|
+
*/
|
|
20
|
+
isModuleHiddenEntitlement(adaptableModule: AdaptableModule): boolean;
|
|
21
|
+
/**
|
|
22
|
+
* Is Module Full
|
|
23
|
+
* @param adaptableModule Module to Check
|
|
24
|
+
*/
|
|
25
|
+
isModuleFullEntitlement(adaptableModule: AdaptableModule): boolean;
|
|
26
|
+
/**
|
|
27
|
+
* Is Module ReadOnly
|
|
28
|
+
* @param adaptableModule Module to Check
|
|
29
|
+
*/
|
|
30
|
+
isModuleReadOnlyEntitlement(adaptableModule: AdaptableModule): boolean;
|
|
31
|
+
}
|
package/src/Api/FilterApi.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AdaptableColumn, ColumnFilter, GridCell
|
|
1
|
+
import { AdaptableColumn, ColumnFilter, GridCell } from '../types';
|
|
2
2
|
import * as Redux from 'redux';
|
|
3
3
|
import { ColumnFilterDef, AdaptablePredicateDef } from '../PredefinedConfig/Common/AdaptablePredicate';
|
|
4
4
|
import { RowNode } from '@ag-grid-community/core';
|
|
@@ -23,10 +23,6 @@ export interface FilterApi {
|
|
|
23
23
|
* @param columnId Id of Column to lookup
|
|
24
24
|
*/
|
|
25
25
|
getFilterPredicateDefsForColumnId(columnId: string): AdaptablePredicateDef[] | undefined;
|
|
26
|
-
/**
|
|
27
|
-
* Retrieves Ids for all System Filters
|
|
28
|
-
*/
|
|
29
|
-
getAllSystemFilterIds(): SystemFilterPredicateIds;
|
|
30
26
|
/**
|
|
31
27
|
* Makes Quick Filter Bar appear
|
|
32
28
|
*/
|