@adaptabletools/adaptable 12.0.4 → 12.0.5
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 +10 -10
- package/package.json +1 -1
- package/publishTimestamp.d.ts +1 -1
- package/publishTimestamp.js +1 -1
- package/src/AdaptableOptions/ExportOptions.d.ts +3 -3
- package/src/Utilities/ExpressionFunctions/aggregatedBooleanExpressionFunctions.js +4 -4
- package/src/Utilities/ExpressionFunctions/aggregatedScalarExpressionFunctions.js +7 -7
- package/src/Utilities/ExpressionFunctions/booleanExpressionFunctions.js +3 -3
- package/src/Utilities/ExpressionFunctions/expressionFunctionUtils.js +5 -5
- package/src/Utilities/ExpressionFunctions/observableExpressionFunctions.js +11 -11
- package/src/Utilities/ExpressionFunctions/scalarExpressionFunctions.js +2 -2
- package/src/Utilities/Services/QueryLanguageService.js +4 -4
- package/src/components/ExpressionEditor/BaseEditorInput.js +1 -1
- package/src/metamodel/adaptable.metamodel.d.ts +5 -5
- package/src/metamodel/adaptable.metamodel.js +1 -1
- package/src/parser/src/types.d.ts +2 -6
- 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": "12.0.
|
|
3
|
+
"version": "12.0.5",
|
|
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: 1657198207277;
|
|
2
2
|
export default _default;
|
package/publishTimestamp.js
CHANGED
|
@@ -72,15 +72,15 @@ export interface CustomReport {
|
|
|
72
72
|
*/
|
|
73
73
|
export interface CustomDestination {
|
|
74
74
|
/**
|
|
75
|
-
* Name of Custom Destination
|
|
75
|
+
* Name of Custom Destination (mandatory)
|
|
76
76
|
*/
|
|
77
77
|
name: string;
|
|
78
78
|
/**
|
|
79
|
-
* Optional Adaptable Form
|
|
79
|
+
* Optional Adaptable Form; if provided, it must include Buttons that will execute the Export
|
|
80
80
|
*/
|
|
81
81
|
form?: AdaptableForm<ExportFormContext>;
|
|
82
82
|
/**
|
|
83
|
-
* Function invoked when
|
|
83
|
+
* Optional Function invoked when Export is applied (used if no form is supplied)
|
|
84
84
|
*/
|
|
85
85
|
onExport?: (reportContext: ReportContext) => void;
|
|
86
86
|
}
|
|
@@ -28,7 +28,7 @@ exports.aggregatedBooleanExpressionFunctions = {
|
|
|
28
28
|
SUM: {
|
|
29
29
|
handler(args, context) {
|
|
30
30
|
const columnParameter = expressionFunctionUtils_1.extractColumnParameter('SUM', args);
|
|
31
|
-
expressionFunctionUtils_1.validateColumnType(columnParameter.value, ['Number'], 'SUM', context.
|
|
31
|
+
expressionFunctionUtils_1.validateColumnType(columnParameter.value, ['Number'], 'SUM', context.adaptableApi);
|
|
32
32
|
const sumAggregationFn = (dataSource$) => getSumAggregation$(dataSource$, getColumnValueSum(columnParameter.value, context));
|
|
33
33
|
const result = {
|
|
34
34
|
type: 'aggregation',
|
|
@@ -195,15 +195,15 @@ const getSumAggregation$ = (source$, initialSum) => {
|
|
|
195
195
|
};
|
|
196
196
|
const getColumnValueSum = (column, context) => {
|
|
197
197
|
let sum = 0;
|
|
198
|
-
context.
|
|
198
|
+
context.adaptableApi.internalApi.forAllRowNodesDo((rowNode) => {
|
|
199
199
|
// if there is a WHERE clause defined, check if the current rowNode satisfies the condition
|
|
200
200
|
if (context.filterFn && !context.filterFn(rowNode)) {
|
|
201
201
|
return;
|
|
202
202
|
}
|
|
203
|
-
if (context.
|
|
203
|
+
if (context.adaptableApi.gridApi.isGroupRowNode(rowNode)) {
|
|
204
204
|
return;
|
|
205
205
|
}
|
|
206
|
-
const cellValue = context.
|
|
206
|
+
const cellValue = context.adaptableApi.gridApi.getRawValueFromRowNode(rowNode, column);
|
|
207
207
|
if (cellValue != undefined) {
|
|
208
208
|
sum = sum + expressionFunctionUtils_1.getNumericValue(rowNode.data[column]);
|
|
209
209
|
}
|
|
@@ -8,7 +8,7 @@ exports.aggregatedScalarExpressionFunctions = {
|
|
|
8
8
|
handler(args, context) {
|
|
9
9
|
const sumColumnParameter = expressionFunctionUtils_1.extractColumnParameter('SUM', args);
|
|
10
10
|
const sumColumnName = sumColumnParameter.value;
|
|
11
|
-
expressionFunctionUtils_1.validateColumnType(sumColumnName, ['Number'], 'SUM', context.
|
|
11
|
+
expressionFunctionUtils_1.validateColumnType(sumColumnName, ['Number'], 'SUM', context.adaptableApi);
|
|
12
12
|
const groupByParameter = expressionFunctionUtils_1.extractParameter('SUM', 'operand', ['GROUP_BY'], args, true);
|
|
13
13
|
const aggregationExpressionEvaluation = {
|
|
14
14
|
aggregationParams: {
|
|
@@ -50,7 +50,7 @@ exports.aggregatedScalarExpressionFunctions = {
|
|
|
50
50
|
var _a;
|
|
51
51
|
const percentageColumnParameter = expressionFunctionUtils_1.extractColumnParameter('PERCENTAGE', args);
|
|
52
52
|
const percentageColumnName = percentageColumnParameter.value;
|
|
53
|
-
expressionFunctionUtils_1.validateColumnType(percentageColumnName, ['Number'], 'PERCENTAGE', context.
|
|
53
|
+
expressionFunctionUtils_1.validateColumnType(percentageColumnName, ['Number'], 'PERCENTAGE', context.adaptableApi);
|
|
54
54
|
const sumOperand = expressionFunctionUtils_1.extractParameter('PERCENTAGE', 'aggregation', ['SUM'], args, true);
|
|
55
55
|
const groupByOperand = expressionFunctionUtils_1.extractParameter('PERCENTAGE', 'operand', ['GROUP_BY'], args, true);
|
|
56
56
|
if (sumOperand && groupByOperand) {
|
|
@@ -79,7 +79,7 @@ exports.aggregatedScalarExpressionFunctions = {
|
|
|
79
79
|
},
|
|
80
80
|
},
|
|
81
81
|
rowValueGetter: (rowNode, aggregationValue) => {
|
|
82
|
-
return ((context.
|
|
82
|
+
return ((context.adaptableApi.gridApi.getRawValueFromRowNode(rowNode, percentageColumnName) /
|
|
83
83
|
aggregationValue) *
|
|
84
84
|
100);
|
|
85
85
|
},
|
|
@@ -118,7 +118,7 @@ exports.aggregatedScalarExpressionFunctions = {
|
|
|
118
118
|
handler(args, context) {
|
|
119
119
|
const avgColumnParameter = expressionFunctionUtils_1.extractColumnParameter('AVG', args);
|
|
120
120
|
const avgColumnName = avgColumnParameter.value;
|
|
121
|
-
expressionFunctionUtils_1.validateColumnType(avgColumnName, ['Number'], 'AVG', context.
|
|
121
|
+
expressionFunctionUtils_1.validateColumnType(avgColumnName, ['Number'], 'AVG', context.adaptableApi);
|
|
122
122
|
const groupByParameter = expressionFunctionUtils_1.extractParameter('AVG', 'operand', ['GROUP_BY'], args, true);
|
|
123
123
|
const aggregationExpressionEvaluation = {
|
|
124
124
|
aggregationParams: {
|
|
@@ -162,7 +162,7 @@ exports.aggregatedScalarExpressionFunctions = {
|
|
|
162
162
|
handler(args, context) {
|
|
163
163
|
const minColumnParameter = expressionFunctionUtils_1.extractColumnParameter('MIN', args);
|
|
164
164
|
const minColumnName = minColumnParameter.value;
|
|
165
|
-
expressionFunctionUtils_1.validateColumnType(minColumnName, ['Number'], 'MIN', context.
|
|
165
|
+
expressionFunctionUtils_1.validateColumnType(minColumnName, ['Number'], 'MIN', context.adaptableApi);
|
|
166
166
|
const groupByParameter = expressionFunctionUtils_1.extractParameter('MIN', 'operand', ['GROUP_BY'], args, true);
|
|
167
167
|
const aggregationExpressionEvaluation = {
|
|
168
168
|
aggregationParams: {
|
|
@@ -203,7 +203,7 @@ exports.aggregatedScalarExpressionFunctions = {
|
|
|
203
203
|
handler(args, context) {
|
|
204
204
|
const maxColumnParameter = expressionFunctionUtils_1.extractColumnParameter('MAX', args);
|
|
205
205
|
const maxColumnName = maxColumnParameter.value;
|
|
206
|
-
expressionFunctionUtils_1.validateColumnType(maxColumnName, ['Number'], 'MAX', context.
|
|
206
|
+
expressionFunctionUtils_1.validateColumnType(maxColumnName, ['Number'], 'MAX', context.adaptableApi);
|
|
207
207
|
const groupByParameter = expressionFunctionUtils_1.extractParameter('MAX', 'operand', ['GROUP_BY'], args, true);
|
|
208
208
|
const aggregationExpressionEvaluation = {
|
|
209
209
|
aggregationParams: {
|
|
@@ -284,7 +284,7 @@ exports.aggregatedScalarExpressionFunctions = {
|
|
|
284
284
|
OVER: {
|
|
285
285
|
handler(args, context) {
|
|
286
286
|
const columnParameter = expressionFunctionUtils_1.extractColumnParameter('OVER', args);
|
|
287
|
-
expressionFunctionUtils_1.validateColumnType(columnParameter.value, ['Number', 'Date'], 'OVER', context.
|
|
287
|
+
expressionFunctionUtils_1.validateColumnType(columnParameter.value, ['Number', 'Date'], 'OVER', context.adaptableApi);
|
|
288
288
|
const result = {
|
|
289
289
|
type: 'operand',
|
|
290
290
|
name: 'OVER',
|
|
@@ -225,9 +225,9 @@ exports.booleanExpressionFunctions = {
|
|
|
225
225
|
handler(args, context) {
|
|
226
226
|
var _a;
|
|
227
227
|
const searchTerm = expressionFunctionUtils_1.getStringValue(context, String(args[0]));
|
|
228
|
-
return (_a = context.
|
|
228
|
+
return (_a = context.adaptableApi) === null || _a === void 0 ? void 0 : _a.columnApi.getColumns().some((column) => {
|
|
229
229
|
var _a;
|
|
230
|
-
const value = (_a = context.
|
|
230
|
+
const value = (_a = context.adaptableApi) === null || _a === void 0 ? void 0 : _a.gridApi.getDisplayValueFromRowNode(context.node, column.columnId);
|
|
231
231
|
const columnValue = expressionFunctionUtils_1.getStringValue(context, String(value));
|
|
232
232
|
return columnValue.indexOf(searchTerm) !== -1;
|
|
233
233
|
});
|
|
@@ -266,7 +266,7 @@ exports.booleanExpressionFunctions = {
|
|
|
266
266
|
if (StringExtensions_1.default.IsNullOrEmpty(namedQueryName)) {
|
|
267
267
|
return false;
|
|
268
268
|
}
|
|
269
|
-
const namedQuery = (_a = context.
|
|
269
|
+
const namedQuery = (_a = context.adaptableApi) === null || _a === void 0 ? void 0 : _a.queryApi.getNamedQueryByName(namedQueryName);
|
|
270
270
|
if (!namedQuery) {
|
|
271
271
|
throw new ExpressionEvaluationError_1.ExpressionEvaluationError('QUERY', `Named Query with name ${namedQueryName} not found!`);
|
|
272
272
|
}
|
|
@@ -19,12 +19,12 @@ const getStringValue = (context, stringArgument) => {
|
|
|
19
19
|
return exports.isTextSearchCaseInsensitive(context) ? stringArgument.toLowerCase() : stringArgument;
|
|
20
20
|
};
|
|
21
21
|
exports.getStringValue = getStringValue;
|
|
22
|
-
const isTextSearchCaseInsensitive = (context) => !context.
|
|
22
|
+
const isTextSearchCaseInsensitive = (context) => !context.adaptableApi.internalApi.isTextComparisonCaseSensitive();
|
|
23
23
|
exports.isTextSearchCaseInsensitive = isTextSearchCaseInsensitive;
|
|
24
24
|
// returns an observable which filters the source$ emissions and emits only if the CellDataChangedInfo relates to the given column
|
|
25
25
|
// optionally, if a filter function (where clause) is provided, it is also evaluated
|
|
26
26
|
const getDataChangeLog$ = (context, columnNameFilter) => {
|
|
27
|
-
let dataChangeLog$ = context.
|
|
27
|
+
let dataChangeLog$ = context.adaptableApi.internalApi.getDataService().dataChangeLog$;
|
|
28
28
|
// filter only the given column changes
|
|
29
29
|
dataChangeLog$ = dataChangeLog$.pipe(operators_1.filter((dataChangeLog) => dataChangeLog.column.columnId === columnNameFilter));
|
|
30
30
|
// filter based on the WHERE clause
|
|
@@ -41,14 +41,14 @@ const handleWhereFunction = (args, context) => {
|
|
|
41
41
|
// whereClauseResult
|
|
42
42
|
return evaluator_1.evaluateNode(whereClauseExpressionNode, {
|
|
43
43
|
node: rowNode,
|
|
44
|
-
|
|
44
|
+
adaptableApi: context.adaptableApi,
|
|
45
45
|
functions: context.whereClauseFunctions,
|
|
46
46
|
});
|
|
47
47
|
};
|
|
48
48
|
// observableExpressionResult
|
|
49
49
|
return evaluator_1.evaluateNode(reactiveExpressionNode, {
|
|
50
50
|
node: context.node,
|
|
51
|
-
|
|
51
|
+
adaptableApi: context.adaptableApi,
|
|
52
52
|
functions: context.functions,
|
|
53
53
|
filterFn,
|
|
54
54
|
});
|
|
@@ -76,7 +76,7 @@ const handleColumnFunction = (args, context) => {
|
|
|
76
76
|
if (StringExtensions_1.default.IsNullOrEmpty(args[0])) {
|
|
77
77
|
throw new ExpressionEvaluationError_1.ExpressionEvaluationError('COL', `no column name is provided`);
|
|
78
78
|
}
|
|
79
|
-
validateColumnId(args[0], context.
|
|
79
|
+
validateColumnId(args[0], context.adaptableApi);
|
|
80
80
|
const result = {
|
|
81
81
|
type: 'config',
|
|
82
82
|
name: 'COL',
|
|
@@ -32,12 +32,12 @@ exports.observableExpressionFunctions = {
|
|
|
32
32
|
return getDataChangeCount$(dataChangeLog$, timeframeChange$, operandParameter.value);
|
|
33
33
|
}
|
|
34
34
|
case 'MIN': {
|
|
35
|
-
expressionFunctionUtils_1.validateColumnType(operandParameter.column, ['Number'], 'MIN', context.
|
|
35
|
+
expressionFunctionUtils_1.validateColumnType(operandParameter.column, ['Number'], 'MIN', context.adaptableApi);
|
|
36
36
|
const timeframeChange$ = getTrailingRowValueChange$(dataChangeLog$, timeframeParameter.value);
|
|
37
37
|
return getDataChangeMin$(dataChangeLog$, timeframeChange$);
|
|
38
38
|
}
|
|
39
39
|
case 'MAX': {
|
|
40
|
-
expressionFunctionUtils_1.validateColumnType(operandParameter.column, ['Number'], 'MAX', context.
|
|
40
|
+
expressionFunctionUtils_1.validateColumnType(operandParameter.column, ['Number'], 'MAX', context.adaptableApi);
|
|
41
41
|
const timeframeChange$ = getTrailingRowValueChange$(dataChangeLog$, timeframeParameter.value);
|
|
42
42
|
return getDataChangeMax$(dataChangeLog$, timeframeChange$);
|
|
43
43
|
}
|
|
@@ -71,12 +71,12 @@ exports.observableExpressionFunctions = {
|
|
|
71
71
|
return getDataChangeCount$(dataChangeLog$, timeframeChange$, operandParameter.value);
|
|
72
72
|
}
|
|
73
73
|
case 'MIN': {
|
|
74
|
-
expressionFunctionUtils_1.validateColumnType(operandParameter.column, ['Number'], 'MIN', context.
|
|
74
|
+
expressionFunctionUtils_1.validateColumnType(operandParameter.column, ['Number'], 'MIN', context.adaptableApi);
|
|
75
75
|
const timeframeChange$ = getTrailingGridValueChange$(dataChangeLog$, timeframeParameter.value);
|
|
76
76
|
return getDataChangeMin$(dataChangeLog$, timeframeChange$);
|
|
77
77
|
}
|
|
78
78
|
case 'MAX': {
|
|
79
|
-
expressionFunctionUtils_1.validateColumnType(operandParameter.column, ['Number'], 'MAX', context.
|
|
79
|
+
expressionFunctionUtils_1.validateColumnType(operandParameter.column, ['Number'], 'MAX', context.adaptableApi);
|
|
80
80
|
const timeframeChange$ = getTrailingGridValueChange$(dataChangeLog$, timeframeParameter.value);
|
|
81
81
|
return getDataChangeMax$(dataChangeLog$, timeframeChange$);
|
|
82
82
|
}
|
|
@@ -229,11 +229,11 @@ const getDataChangedInfoStub = (context) => {
|
|
|
229
229
|
var _a;
|
|
230
230
|
let rowNodeStub;
|
|
231
231
|
if (!context.filterFn) {
|
|
232
|
-
rowNodeStub = context.
|
|
232
|
+
rowNodeStub = context.adaptableApi.gridApi.getFirstRowNode();
|
|
233
233
|
}
|
|
234
234
|
else {
|
|
235
235
|
// if there is a WHERE clause defined, find the first rowNode which satisfies the condition
|
|
236
|
-
context.
|
|
236
|
+
context.adaptableApi.internalApi.forAllRowNodesDo((rowNode) => {
|
|
237
237
|
if (!rowNodeStub) {
|
|
238
238
|
if (context.filterFn(rowNode)) {
|
|
239
239
|
rowNodeStub = rowNode;
|
|
@@ -243,10 +243,10 @@ const getDataChangedInfoStub = (context) => {
|
|
|
243
243
|
}
|
|
244
244
|
const rowNode = rowNodeStub;
|
|
245
245
|
if (rowNode) {
|
|
246
|
-
const primaryKeyValue = context.
|
|
247
|
-
const columnId = (_a = context.
|
|
248
|
-
const oldValue = context.
|
|
249
|
-
const column = context.
|
|
246
|
+
const primaryKeyValue = context.adaptableApi.gridApi.getPrimaryKeyValueForRowNode(rowNode);
|
|
247
|
+
const columnId = (_a = context.adaptableApi.columnApi.getQueryableColumns()[0]) === null || _a === void 0 ? void 0 : _a.columnId;
|
|
248
|
+
const oldValue = context.adaptableApi.gridApi.getCellRawValue(primaryKeyValue, columnId);
|
|
249
|
+
const column = context.adaptableApi.columnApi.getColumnFromId(columnId);
|
|
250
250
|
const newValue = oldValue;
|
|
251
251
|
return {
|
|
252
252
|
changedAt: Date.now(),
|
|
@@ -417,7 +417,7 @@ const getSlidingTimeframe$ = (source$, timeframeDuration, onTimeframeEnter, onTi
|
|
|
417
417
|
}));
|
|
418
418
|
};
|
|
419
419
|
const getMaxTimeframeSize = (expressionValue, context) => {
|
|
420
|
-
let maxTimeframeSize = context.
|
|
420
|
+
let maxTimeframeSize = context.adaptableApi.internalApi.getAdaptableOptions().adaptableQLOptions.expressionOptions
|
|
421
421
|
.maxTimeframeSize;
|
|
422
422
|
if (maxTimeframeSize > SYSTEM_MAX_TIMEFRAME_SIZE) {
|
|
423
423
|
maxTimeframeSize = SYSTEM_MAX_TIMEFRAME_SIZE;
|
|
@@ -95,14 +95,14 @@ exports.scalarExpressionFunctions = {
|
|
|
95
95
|
handler(args, context) {
|
|
96
96
|
var _a, _b;
|
|
97
97
|
const columnId = args[0];
|
|
98
|
-
const column = (_a = context.
|
|
98
|
+
const column = (_a = context.adaptableApi) === null || _a === void 0 ? void 0 : _a.columnApi.getColumnFromId(columnId);
|
|
99
99
|
if (!column) {
|
|
100
100
|
throw new ExpressionEvaluationError_1.ExpressionEvaluationError('COL', `Column name "${columnId}" is not found`);
|
|
101
101
|
}
|
|
102
102
|
if (!column.queryable) {
|
|
103
103
|
throw new ExpressionEvaluationError_1.ExpressionEvaluationError('COL', `Column name "${columnId}" is not queryable`);
|
|
104
104
|
}
|
|
105
|
-
return (_b = context.
|
|
105
|
+
return (_b = context.adaptableApi) === null || _b === void 0 ? void 0 : _b.gridApi.getRawValueFromRowNode(context.node, columnId);
|
|
106
106
|
},
|
|
107
107
|
description: 'Returns the value of a column',
|
|
108
108
|
signatures: ['[colName]', 'COL(name: string)'],
|
|
@@ -19,7 +19,7 @@ class QueryLanguageService {
|
|
|
19
19
|
const booleanAndScalarFunctions = this.getBooleanAndScalarFunctions(moduleExpressionFunctions);
|
|
20
20
|
return parser.evaluate(expression, {
|
|
21
21
|
node: rowNode,
|
|
22
|
-
|
|
22
|
+
adaptableApi: this.adaptableApi,
|
|
23
23
|
functions: booleanAndScalarFunctions,
|
|
24
24
|
});
|
|
25
25
|
}
|
|
@@ -31,7 +31,7 @@ class QueryLanguageService {
|
|
|
31
31
|
const aggregatedScalarFunctions = this.getModuleExpressionFunctions(module).aggregatedScalarFunctions;
|
|
32
32
|
return parser.evaluate(expression, {
|
|
33
33
|
node: null,
|
|
34
|
-
|
|
34
|
+
adaptableApi: this.adaptableApi,
|
|
35
35
|
functions: aggregatedScalarFunctions,
|
|
36
36
|
});
|
|
37
37
|
}
|
|
@@ -40,7 +40,7 @@ class QueryLanguageService {
|
|
|
40
40
|
const booleanAndScalarFunctions = this.getBooleanAndScalarFunctions(moduleExpressionFunctions);
|
|
41
41
|
const reactiveExpression$ = parser.evaluate(reactiveExpression, {
|
|
42
42
|
node: reactiveExpression,
|
|
43
|
-
|
|
43
|
+
adaptableApi: this.adaptableApi,
|
|
44
44
|
functions: moduleExpressionFunctions.observableFunctions,
|
|
45
45
|
whereClauseFunctions: booleanAndScalarFunctions,
|
|
46
46
|
});
|
|
@@ -51,7 +51,7 @@ class QueryLanguageService {
|
|
|
51
51
|
const booleanAndScalarFunctions = this.getBooleanAndScalarFunctions(moduleExpressionFunctions);
|
|
52
52
|
const aggregationExpression$ = parser.evaluate(aggregationExpression, {
|
|
53
53
|
node: aggregationExpression,
|
|
54
|
-
|
|
54
|
+
adaptableApi: this.adaptableApi,
|
|
55
55
|
functions: moduleExpressionFunctions.aggregatedBooleanFunctions,
|
|
56
56
|
whereClauseFunctions: booleanAndScalarFunctions,
|
|
57
57
|
});
|
|
@@ -51,7 +51,7 @@ function BaseEditorInput(props) {
|
|
|
51
51
|
result = expr.evaluate({
|
|
52
52
|
// we need a fully-fledged rowNode as Adaptable accesses internal methods of it
|
|
53
53
|
node: testRowNode,
|
|
54
|
-
|
|
54
|
+
adaptableApi: props.api,
|
|
55
55
|
functions: expressionFunctions,
|
|
56
56
|
});
|
|
57
57
|
}
|
|
@@ -2544,22 +2544,22 @@ export declare const ADAPTABLE_METAMODEL: {
|
|
|
2544
2544
|
kind: string;
|
|
2545
2545
|
description: string;
|
|
2546
2546
|
uiLabel: string;
|
|
2547
|
-
|
|
2548
|
-
|
|
2547
|
+
isOptional: boolean;
|
|
2548
|
+
reference?: undefined;
|
|
2549
2549
|
} | {
|
|
2550
2550
|
name: string;
|
|
2551
2551
|
kind: string;
|
|
2552
2552
|
description: string;
|
|
2553
2553
|
uiLabel: string;
|
|
2554
|
-
|
|
2555
|
-
|
|
2554
|
+
reference: string;
|
|
2555
|
+
isOptional?: undefined;
|
|
2556
2556
|
} | {
|
|
2557
2557
|
name: string;
|
|
2558
2558
|
kind: string;
|
|
2559
2559
|
description: string;
|
|
2560
2560
|
uiLabel: string;
|
|
2561
|
-
reference?: undefined;
|
|
2562
2561
|
isOptional?: undefined;
|
|
2562
|
+
reference?: undefined;
|
|
2563
2563
|
} | {
|
|
2564
2564
|
name: string;
|
|
2565
2565
|
kind: string;
|