@adaptabletools/adaptable 12.2.1 → 12.2.2
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 +3 -3
- package/package.json +1 -1
- package/publishTimestamp.d.ts +1 -1
- package/publishTimestamp.js +1 -1
- package/src/AdaptableOptions/AdaptableQLOptions.d.ts +11 -2
- package/src/Utilities/Services/QueryLanguageService.js +1 -1
- package/src/metamodel/adaptable.metamodel.d.ts +12 -0
- package/src/metamodel/adaptable.metamodel.js +1 -1
- package/src/types.d.ts +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": "12.2.
|
|
3
|
+
"version": "12.2.2",
|
|
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: 1661928464536;
|
|
2
2
|
export default _default;
|
package/publishTimestamp.js
CHANGED
|
@@ -114,7 +114,7 @@ export interface ExpressionOptions {
|
|
|
114
114
|
/**
|
|
115
115
|
* 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.
|
|
116
116
|
*/
|
|
117
|
-
|
|
117
|
+
customQueryVariables?: Record<string, string | number | boolean | Date | ((context: CustomQueryVariableContext) => string | number | boolean | Date)>;
|
|
118
118
|
}
|
|
119
119
|
/**
|
|
120
120
|
* Module specific Expression Functions
|
|
@@ -127,7 +127,7 @@ export interface ModuleExpressionFunctions {
|
|
|
127
127
|
aggregatedScalarFunctions?: ExpressionFunctionMap;
|
|
128
128
|
}
|
|
129
129
|
/**
|
|
130
|
-
* Context passed when evaluating `ExpressionOptions.
|
|
130
|
+
* Context passed when evaluating `ExpressionOptions.customQueryVariables`
|
|
131
131
|
*/
|
|
132
132
|
export interface CustomQueryVariableContext extends BaseContext {
|
|
133
133
|
/**
|
|
@@ -139,7 +139,16 @@ export interface CustomQueryVariableContext extends BaseContext {
|
|
|
139
139
|
* Context passed when evaluating `AdaptableQLOptions.evaluateExpressionExternally()`
|
|
140
140
|
*/
|
|
141
141
|
export interface EvaluateExpressionExternallyContext extends BaseContext {
|
|
142
|
+
/**
|
|
143
|
+
* Module where the Expression is being evaluated
|
|
144
|
+
*/
|
|
142
145
|
module: AdaptableQLModule;
|
|
146
|
+
/**
|
|
147
|
+
* Expression to evlauate
|
|
148
|
+
*/
|
|
143
149
|
expression?: string;
|
|
150
|
+
/**
|
|
151
|
+
* Columns contained in the Expression
|
|
152
|
+
*/
|
|
144
153
|
referencedColumns?: AdaptableColumn[];
|
|
145
154
|
}
|
|
@@ -312,7 +312,7 @@ class QueryLanguageService {
|
|
|
312
312
|
adaptableApi: this.adaptableApi,
|
|
313
313
|
args,
|
|
314
314
|
};
|
|
315
|
-
const customQueryVariableDefinition = (_c = (_b = (_a = this.adaptableApi.internalApi.getAdaptableOptions().adaptableQLOptions) === null || _a === void 0 ? void 0 : _a.expressionOptions) === null || _b === void 0 ? void 0 : _b.
|
|
315
|
+
const customQueryVariableDefinition = (_c = (_b = (_a = this.adaptableApi.internalApi.getAdaptableOptions().adaptableQLOptions) === null || _a === void 0 ? void 0 : _a.expressionOptions) === null || _b === void 0 ? void 0 : _b.customQueryVariables) === null || _c === void 0 ? void 0 : _c[functionName];
|
|
316
316
|
return typeof customQueryVariableDefinition === 'function'
|
|
317
317
|
? customQueryVariableDefinition(context)
|
|
318
318
|
: customQueryVariableDefinition;
|
|
@@ -1967,6 +1967,18 @@ export declare const ADAPTABLE_METAMODEL: {
|
|
|
1967
1967
|
kind: string;
|
|
1968
1968
|
description: string;
|
|
1969
1969
|
};
|
|
1970
|
+
CustomQueryVariableContext: {
|
|
1971
|
+
name: string;
|
|
1972
|
+
kind: string;
|
|
1973
|
+
description: string;
|
|
1974
|
+
properties: {
|
|
1975
|
+
name: string;
|
|
1976
|
+
kind: string;
|
|
1977
|
+
description: string;
|
|
1978
|
+
uiLabel: string;
|
|
1979
|
+
isOptional: boolean;
|
|
1980
|
+
}[];
|
|
1981
|
+
};
|
|
1970
1982
|
CustomRenderContext: {
|
|
1971
1983
|
name: string;
|
|
1972
1984
|
kind: string;
|