@adaptabletools/adaptable 13.0.0-canary.2 → 13.0.0-canary.3
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/agGrid.d.ts +23 -1
- package/agGrid.js +23 -1
- package/base.css +1 -0
- package/bundle.cjs.js +158 -158
- package/index.css +1 -0
- package/package.json +1 -1
- package/publishTimestamp.d.ts +1 -1
- package/publishTimestamp.js +1 -1
- package/src/AdaptableOptions/AdaptableQLOptions.d.ts +42 -14
- package/src/Api/ConditionalStyleApi.d.ts +20 -0
- package/src/Api/FormatColumnApi.d.ts +42 -3
- package/src/Api/Implementation/FormatColumnApiImpl.d.ts +17 -1
- package/src/Api/Implementation/FormatColumnApiImpl.js +94 -14
- package/src/Api/Implementation/QueryLanguageApiImpl.d.ts +0 -2
- package/src/Api/Implementation/QueryLanguageApiImpl.js +0 -3
- package/src/Api/QueryLanguageApi.d.ts +0 -5
- package/src/PredefinedConfig/Common/AdaptablePredicate.d.ts +1 -1
- package/src/PredefinedConfig/Common/AdaptablePredicate.js +37 -37
- package/src/PredefinedConfig/FormatColumnState.d.ts +19 -0
- package/src/PredefinedConfig/PredefinedConfig.d.ts +1 -0
- package/src/Redux/ActionsReducers/FormatColumnRedux.d.ts +14 -0
- package/src/Redux/ActionsReducers/FormatColumnRedux.js +43 -1
- package/src/Redux/Store/AdaptableStore.js +2 -0
- package/src/Strategy/FormatColumnModule.d.ts +2 -9
- package/src/Strategy/FormatColumnModule.js +5 -1
- package/src/Utilities/Defaults/DefaultAdaptableOptions.js +5 -5
- package/src/Utilities/ExpressionFunctions/aggregatedBooleanExpressionFunctions.d.ts +3 -2
- package/src/Utilities/ExpressionFunctions/aggregatedBooleanExpressionFunctions.js +4 -1
- package/src/Utilities/ExpressionFunctions/aggregatedScalarExpressionFunctions.d.ts +1 -0
- package/src/Utilities/ExpressionFunctions/aggregatedScalarExpressionFunctions.js +4 -1
- package/src/Utilities/ExpressionFunctions/booleanExpressionFunctions.d.ts +1 -0
- package/src/Utilities/ExpressionFunctions/booleanExpressionFunctions.js +4 -1
- package/src/Utilities/ExpressionFunctions/observableExpressionFunctions.d.ts +1 -0
- package/src/Utilities/ExpressionFunctions/observableExpressionFunctions.js +4 -1
- package/src/Utilities/ExpressionFunctions/scalarExpressionFunctions.d.ts +1 -0
- package/src/Utilities/ExpressionFunctions/scalarExpressionFunctions.js +4 -1
- package/src/Utilities/Extensions/TypeExtensions.d.ts +1 -0
- package/src/Utilities/Extensions/TypeExtensions.js +5 -0
- package/src/Utilities/Services/Interface/IQueryLanguageService.d.ts +14 -4
- package/src/Utilities/Services/LicenseService.js +1 -1
- package/src/Utilities/Services/QueryLanguageService.d.ts +5 -3
- package/src/Utilities/Services/QueryLanguageService.js +92 -39
- package/src/Utilities/license/LicenseDetails.d.ts +1 -1
- package/src/Utilities/license/decode.d.ts +1 -0
- package/src/Utilities/license/decode.js +1 -1
- package/src/View/FormatColumn/MoveFormatColumn.d.ts +7 -0
- package/src/View/FormatColumn/MoveFormatColumn.js +27 -0
- package/src/View/FormatColumn/Wizard/FormatColumnRuleWizardSection.d.ts +9 -0
- package/src/View/FormatColumn/Wizard/FormatColumnRuleWizardSection.js +66 -0
- package/src/View/FormatColumn/Wizard/FormatColumnScopeWizardSection.js +20 -2
- package/src/View/FormatColumn/Wizard/FormatColumnStyleWizardSection.js +2 -1
- package/src/View/FormatColumn/Wizard/FormatColumnWizard.js +14 -0
- package/src/View/FormatColumn/Wizard/constants.d.ts +1 -0
- package/src/View/FormatColumn/Wizard/constants.js +4 -0
- package/src/agGrid/Adaptable.d.ts +5 -0
- package/src/agGrid/Adaptable.js +103 -45
- package/src/components/ExpressionEditor/BaseEditorInput.d.ts +1 -1
- package/src/components/ExpressionEditor/EditorInput.js +1 -1
- package/src/components/ExpressionEditor/EditorInputWithWhereClause.js +1 -1
- package/src/metamodel/adaptable.metamodel.d.ts +47 -29
- package/src/metamodel/adaptable.metamodel.js +1 -1
- package/src/parser/src/types.d.ts +6 -3
- package/src/types.d.ts +2 -2
- package/version.d.ts +1 -1
- package/version.js +1 -1
|
@@ -154,7 +154,11 @@ export declare class Adaptable implements IAdaptable {
|
|
|
154
154
|
updateColumnsIntoStore(): void;
|
|
155
155
|
private createAdaptableColumn;
|
|
156
156
|
private safeSetColDefs;
|
|
157
|
+
private getFormatColumnSpecialColumnStyle;
|
|
158
|
+
private getFormatColumnColumnStyle;
|
|
157
159
|
private getFormatColumnCellStyle;
|
|
160
|
+
private getFormatColumnCellClass;
|
|
161
|
+
private getFormatColumnRowClass;
|
|
158
162
|
private getActiveAlertWithHighlightCell;
|
|
159
163
|
private getActiveAlertWithHighlightRow;
|
|
160
164
|
private getAlertCellStyle;
|
|
@@ -358,6 +362,7 @@ export declare class Adaptable implements IAdaptable {
|
|
|
358
362
|
private setupColumnHeaderAggregations;
|
|
359
363
|
private getConditionalStyleRowClass;
|
|
360
364
|
private getConditionalStyleRowStyle;
|
|
365
|
+
private getFormatColumnRowStyle;
|
|
361
366
|
private getGridOptionsApi;
|
|
362
367
|
canGenerateCharts(): boolean;
|
|
363
368
|
canHaveSparklines(): boolean;
|
package/src/agGrid/Adaptable.js
CHANGED
|
@@ -898,51 +898,68 @@ class Adaptable {
|
|
|
898
898
|
this.gridOptions.api.setColumnDefs(colDefs);
|
|
899
899
|
this.updateColumnsIntoStore(); // todo remove this from here!!!
|
|
900
900
|
}
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
|
|
901
|
+
getFormatColumnSpecialColumnStyle(formatColumn, abColumn, params) {
|
|
902
|
+
const columnStyle = formatColumn.ColumnStyle;
|
|
903
|
+
let style = {};
|
|
904
|
+
const gradientStyle = columnStyle === null || columnStyle === void 0 ? void 0 : columnStyle.GradientStyle;
|
|
905
|
+
if (gradientStyle) {
|
|
906
|
+
const min = this.api.formatColumnApi.getNumericStyleMinValue(columnStyle, abColumn, params.node, params.value);
|
|
907
|
+
const max = this.api.formatColumnApi.getNumericStyleMaxValue(columnStyle, abColumn, params.node, params.value);
|
|
908
|
+
const clampedValue = (0, clamp_1.default)(params.value, min, max);
|
|
909
|
+
let cellBackColor;
|
|
910
|
+
let reverseGradient = false;
|
|
911
|
+
if (gradientStyle.ColumnComparison) {
|
|
912
|
+
cellBackColor = gradientStyle.ColumnComparison.Color;
|
|
913
|
+
}
|
|
914
|
+
else {
|
|
915
|
+
const matchingRange = gradientStyle.CellRanges.find((r) => (r.Min == 'Col-Min' || r.Min <= clampedValue) &&
|
|
916
|
+
(r.Max == 'Col-Max' || r.Max >= clampedValue));
|
|
917
|
+
if (matchingRange) {
|
|
918
|
+
cellBackColor = matchingRange.Color;
|
|
919
|
+
reverseGradient = matchingRange.ReverseGradient;
|
|
920
|
+
}
|
|
921
|
+
}
|
|
922
|
+
const increase = Math.abs(max - min);
|
|
923
|
+
const percentage = ((params.value - min) / increase) * 100;
|
|
924
|
+
let alpha = Number((percentage / 100).toPrecision(2));
|
|
925
|
+
if (reverseGradient) {
|
|
926
|
+
alpha = 1 - alpha;
|
|
927
|
+
}
|
|
928
|
+
const preparedColor = (0, StyleHelper_1.getVariableColor)(cellBackColor);
|
|
929
|
+
style.backgroundColor = tinycolor(preparedColor).setAlpha(alpha).toRgbString();
|
|
904
930
|
}
|
|
905
|
-
if (
|
|
906
|
-
|
|
931
|
+
if (columnStyle.PercentBarStyle && columnStyle.PercentBarStyle.CellText) {
|
|
932
|
+
style.paddingTop = 0;
|
|
933
|
+
style.paddingBottom = 0;
|
|
907
934
|
}
|
|
935
|
+
return style;
|
|
936
|
+
}
|
|
937
|
+
getFormatColumnColumnStyle(formatColumns) {
|
|
938
|
+
// first has more precedence, then they need to be applied in reverse order
|
|
939
|
+
return formatColumns.reduceRight((style, formatColumn) => {
|
|
940
|
+
const formatColumnStyle = this.convertAdaptableStyleToCSS(formatColumn.Style);
|
|
941
|
+
return Object.assign(Object.assign({}, style), formatColumnStyle);
|
|
942
|
+
}, {});
|
|
943
|
+
}
|
|
944
|
+
getFormatColumnCellStyle(abColumn, formatColumn, formatColumnsWithStyle, params) {
|
|
908
945
|
let style = {};
|
|
909
946
|
// percent bar && do we show text
|
|
910
947
|
const columnStyle = formatColumn.ColumnStyle;
|
|
911
948
|
if (columnStyle) {
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
const max = this.api.formatColumnApi.getNumericStyleMaxValue(columnStyle, abColumn, params.node, params.value);
|
|
916
|
-
const clampedValue = (0, clamp_1.default)(params.value, min, max);
|
|
917
|
-
let cellBackColor;
|
|
918
|
-
let reverseGradient = false;
|
|
919
|
-
if (gradientStyle.ColumnComparison) {
|
|
920
|
-
cellBackColor = gradientStyle.ColumnComparison.Color;
|
|
921
|
-
}
|
|
922
|
-
else {
|
|
923
|
-
const matchingRange = gradientStyle.CellRanges.find((r) => (r.Min == 'Col-Min' || r.Min <= clampedValue) &&
|
|
924
|
-
(r.Max == 'Col-Max' || r.Max >= clampedValue));
|
|
925
|
-
if (matchingRange) {
|
|
926
|
-
cellBackColor = matchingRange.Color;
|
|
927
|
-
reverseGradient = matchingRange.ReverseGradient;
|
|
928
|
-
}
|
|
929
|
-
}
|
|
930
|
-
const increase = Math.abs(max - min);
|
|
931
|
-
const percentage = ((params.value - min) / increase) * 100;
|
|
932
|
-
let alpha = Number((percentage / 100).toPrecision(2));
|
|
933
|
-
if (reverseGradient) {
|
|
934
|
-
alpha = 1 - alpha;
|
|
935
|
-
}
|
|
936
|
-
const preparedColor = (0, StyleHelper_1.getVariableColor)(cellBackColor);
|
|
937
|
-
style.backgroundColor = tinycolor(preparedColor).setAlpha(alpha).toRgbString();
|
|
938
|
-
}
|
|
939
|
-
if (columnStyle.PercentBarStyle && columnStyle.PercentBarStyle.CellText) {
|
|
940
|
-
style.paddingTop = 0;
|
|
941
|
-
style.paddingBottom = 0;
|
|
949
|
+
if (columnStyle &&
|
|
950
|
+
!this.api.formatColumnApi.isFormatColumnActiveForColumn(formatColumn, abColumn, params)) {
|
|
951
|
+
return style;
|
|
942
952
|
}
|
|
953
|
+
style = Object.assign(Object.assign({}, style), this.getFormatColumnSpecialColumnStyle(formatColumn, abColumn, params));
|
|
943
954
|
}
|
|
944
955
|
else if (formatColumn.Style) {
|
|
945
|
-
|
|
956
|
+
const activeFormatColumnsWithStyle = formatColumnsWithStyle.filter((formatColumn) => {
|
|
957
|
+
return this.api.formatColumnApi.isFormatColumnActiveForColumn(formatColumn, abColumn, params);
|
|
958
|
+
});
|
|
959
|
+
if (!activeFormatColumnsWithStyle.length) {
|
|
960
|
+
return style;
|
|
961
|
+
}
|
|
962
|
+
style = Object.assign(Object.assign({}, style), this.getFormatColumnColumnStyle(activeFormatColumnsWithStyle));
|
|
946
963
|
}
|
|
947
964
|
if (formatColumn.CellAlignment) {
|
|
948
965
|
switch (formatColumn.CellAlignment) {
|
|
@@ -959,6 +976,30 @@ class Adaptable {
|
|
|
959
976
|
}
|
|
960
977
|
return style;
|
|
961
978
|
}
|
|
979
|
+
getFormatColumnCellClass(formatColumns, abColumn, params) {
|
|
980
|
+
const classNames = formatColumns
|
|
981
|
+
.map((formatColumn) => {
|
|
982
|
+
var _a, _b;
|
|
983
|
+
if (((_a = formatColumn.Style) === null || _a === void 0 ? void 0 : _a.ClassName) &&
|
|
984
|
+
this.api.formatColumnApi.isFormatColumnActiveForColumn(formatColumn, abColumn, params)) {
|
|
985
|
+
return (_b = formatColumn.Style) === null || _b === void 0 ? void 0 : _b.ClassName;
|
|
986
|
+
}
|
|
987
|
+
})
|
|
988
|
+
.filter((x) => !!x);
|
|
989
|
+
return classNames;
|
|
990
|
+
}
|
|
991
|
+
getFormatColumnRowClass(formatColumns, params) {
|
|
992
|
+
const classNames = formatColumns
|
|
993
|
+
.map((formatColumn) => {
|
|
994
|
+
var _a, _b;
|
|
995
|
+
if (((_a = formatColumn.Style) === null || _a === void 0 ? void 0 : _a.ClassName) &&
|
|
996
|
+
this.api.formatColumnApi.isFormatColumnActiveForRow(formatColumn, params)) {
|
|
997
|
+
return (_b = formatColumn.Style) === null || _b === void 0 ? void 0 : _b.ClassName;
|
|
998
|
+
}
|
|
999
|
+
})
|
|
1000
|
+
.filter((x) => !!x);
|
|
1001
|
+
return classNames;
|
|
1002
|
+
}
|
|
962
1003
|
getActiveAlertWithHighlightCell(col, params) {
|
|
963
1004
|
return this.api.internalApi.getAdaptableAlertWithHighlightCell(col.columnId, params.node);
|
|
964
1005
|
}
|
|
@@ -3150,15 +3191,17 @@ class Adaptable {
|
|
|
3150
3191
|
borderColor: null,
|
|
3151
3192
|
};
|
|
3152
3193
|
const formatColumn = this.api.formatColumnApi.getActiveFormatColumnForColumn(abColumn);
|
|
3194
|
+
const formatColumnsWithStyle = this.api.formatColumnApi.getColumnFormatColumnsWithStyle(abColumn);
|
|
3153
3195
|
const conditionalStyles = this.api.conditionalStyleApi.getConditionalStylesForColumn(abColumn);
|
|
3154
3196
|
const quickSearchStyle = this.getQuickSearchCellStyle();
|
|
3155
3197
|
const hasQuickSearchStyle = quickSearchStyle != undefined;
|
|
3156
3198
|
const cellStyle = (params) => {
|
|
3157
3199
|
const formatColumnCellStyle = formatColumn
|
|
3158
|
-
? this.getFormatColumnCellStyle(abColumn, formatColumn, params)
|
|
3200
|
+
? this.getFormatColumnCellStyle(abColumn, formatColumn, formatColumnsWithStyle, params)
|
|
3159
3201
|
: undefined;
|
|
3160
3202
|
const isQuickSearchActive = hasQuickSearchStyle && this.isQuickSearchActive(abColumn, params);
|
|
3161
|
-
const
|
|
3203
|
+
const conditionalStyleObj = this.getConditionalStyleCellStyle(conditionalStyles, abColumn, params);
|
|
3204
|
+
const result = Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, defaultCellStyle), this.getReadOnlyCellStyle(abColumn, params)), this.getEditableCellStyle(abColumn, params)), (typeof userCellStyle === 'function' ? userCellStyle(params) : userCellStyle)), formatColumnCellStyle), conditionalStyleObj), (isQuickSearchActive ? quickSearchStyle : undefined)), this.getAlertCellStyle(abColumn, params)), this.getFlashingCellStyle(abColumn, params)), this.getCellHighlightStyle(abColumn, params));
|
|
3162
3205
|
return result;
|
|
3163
3206
|
};
|
|
3164
3207
|
return cellStyle;
|
|
@@ -3166,9 +3209,7 @@ class Adaptable {
|
|
|
3166
3209
|
}
|
|
3167
3210
|
setupColumnCellClass({ col, colId, abColumn }) {
|
|
3168
3211
|
this.setColDefProperty(col, 'cellClass', (userCellClass) => {
|
|
3169
|
-
|
|
3170
|
-
const formatColumn = this.api.formatColumnApi.getFormatColumnWithStyleClassNameForColumn(abColumn);
|
|
3171
|
-
const formatColumnStyleClassName = formatColumn && !formatColumn.IsSuspended ? (_a = formatColumn.Style) === null || _a === void 0 ? void 0 : _a.ClassName : null;
|
|
3212
|
+
const formatColumns = this.api.formatColumnApi.getFormatColumnWithStyleClassNameForColumn(abColumn);
|
|
3172
3213
|
const conditionalStyles = this.api.conditionalStyleApi
|
|
3173
3214
|
.getConditionalStylesForColumn(abColumn)
|
|
3174
3215
|
.filter((cs) => StringExtensions_1.StringExtensions.IsNotNullOrEmpty(cs.Style.ClassName));
|
|
@@ -3185,7 +3226,9 @@ class Adaptable {
|
|
|
3185
3226
|
const returnValue = [
|
|
3186
3227
|
this.getExcelClassNameForCell(colId, primaryKeyValue),
|
|
3187
3228
|
typeof userCellClass === 'function' ? userCellClass(params) : userCellClass,
|
|
3188
|
-
|
|
3229
|
+
formatColumns.length
|
|
3230
|
+
? this.getFormatColumnCellClass(formatColumns, abColumn, params)
|
|
3231
|
+
: null,
|
|
3189
3232
|
hasConditionalStylesWithClassNames
|
|
3190
3233
|
? this.getConditionalStyleCellClass(conditionalStyles, abColumn, params)
|
|
3191
3234
|
: null,
|
|
@@ -3407,7 +3450,7 @@ class Adaptable {
|
|
|
3407
3450
|
});
|
|
3408
3451
|
}
|
|
3409
3452
|
setupColumnValueFormatter({ col, abColumn }) {
|
|
3410
|
-
this.setColDefProperty(col, 'valueFormatter', () => {
|
|
3453
|
+
this.setColDefProperty(col, 'valueFormatter', (params) => {
|
|
3411
3454
|
const formatColumn = this.api.formatColumnApi.getFormatColumnWithDisplayFormatForColumn(abColumn);
|
|
3412
3455
|
if (!formatColumn) {
|
|
3413
3456
|
return;
|
|
@@ -3442,7 +3485,12 @@ class Adaptable {
|
|
|
3442
3485
|
};
|
|
3443
3486
|
}
|
|
3444
3487
|
}
|
|
3445
|
-
|
|
3488
|
+
if (valueFormatter) {
|
|
3489
|
+
return (params) => {
|
|
3490
|
+
const rulePasses = this.api.formatColumnApi.isFormatColumnActiveForColumn(formatColumn, abColumn, params);
|
|
3491
|
+
return rulePasses ? valueFormatter(params) : params.value;
|
|
3492
|
+
};
|
|
3493
|
+
}
|
|
3446
3494
|
}
|
|
3447
3495
|
});
|
|
3448
3496
|
}
|
|
@@ -4327,10 +4375,11 @@ import "@adaptabletools/adaptable/themes/${themeName}.css"`);
|
|
|
4327
4375
|
setupRowStyling() {
|
|
4328
4376
|
// first get the conditional style state
|
|
4329
4377
|
const conditionalStyles = this.api.conditionalStyleApi.getRowConditionalStyles();
|
|
4378
|
+
const formatColumnsStyles = this.api.formatColumnApi.getRowFormatColumnsWithStyle();
|
|
4330
4379
|
// Set any Row Styles (i.e. items without a classname)
|
|
4331
4380
|
this.setGridOptionsProperty('getRowStyle', (userGetRowStyle) => {
|
|
4332
4381
|
return (params) => {
|
|
4333
|
-
const result = Object.assign(Object.assign(Object.assign(Object.assign({}, userGetRowStyle === null || userGetRowStyle === void 0 ? void 0 : userGetRowStyle(params)), this.getRowHighlightStyle(params)), this.getAlertRowStyle(params)), this.getConditionalStyleRowStyle(conditionalStyles, params));
|
|
4382
|
+
const result = Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, userGetRowStyle === null || userGetRowStyle === void 0 ? void 0 : userGetRowStyle(params)), this.getRowHighlightStyle(params)), this.getAlertRowStyle(params)), this.getConditionalStyleRowStyle(conditionalStyles, params)), this.getFormatColumnRowStyle(formatColumnsStyles, params));
|
|
4334
4383
|
return result;
|
|
4335
4384
|
};
|
|
4336
4385
|
});
|
|
@@ -4344,6 +4393,7 @@ import "@adaptabletools/adaptable/themes/${themeName}.css"`);
|
|
|
4344
4393
|
highlightClassName,
|
|
4345
4394
|
alertHighlightClassName,
|
|
4346
4395
|
this.getConditionalStyleRowClass(conditionalStyles.filter((cs) => StringExtensions_1.StringExtensions.IsNotNullOrEmpty(cs.Style.ClassName)), params),
|
|
4396
|
+
this.getFormatColumnRowClass(formatColumnsStyles, params),
|
|
4347
4397
|
]
|
|
4348
4398
|
// we flatten it because 'userGetRowClass' might return a string[]
|
|
4349
4399
|
.flat()
|
|
@@ -4386,6 +4436,14 @@ import "@adaptabletools/adaptable/themes/${themeName}.css"`);
|
|
|
4386
4436
|
}
|
|
4387
4437
|
}
|
|
4388
4438
|
}
|
|
4439
|
+
getFormatColumnRowStyle(formatColumns, params) {
|
|
4440
|
+
if (ArrayExtensions_1.ArrayExtensions.IsNotNullOrEmpty(formatColumns)) {
|
|
4441
|
+
const formatColumnWithRowStyle = formatColumns.find((formatColumn) => this.api.formatColumnApi.isFormatColumnActiveForRow(formatColumn, params));
|
|
4442
|
+
if (formatColumnWithRowStyle) {
|
|
4443
|
+
return this.convertAdaptableStyleToCSS(formatColumnWithRowStyle.Style);
|
|
4444
|
+
}
|
|
4445
|
+
}
|
|
4446
|
+
}
|
|
4389
4447
|
getGridOptionsApi() {
|
|
4390
4448
|
if (!this.gridOptions.api) {
|
|
4391
4449
|
(0, LoggingHelper_1.ConsoleLogError)('There is a problem with your instance of AG Grid - it has no gridApi object. Please contact Support.');
|
|
@@ -7,7 +7,7 @@ interface BaseEditorInputProps {
|
|
|
7
7
|
onChange: (value: string) => void;
|
|
8
8
|
disabled?: boolean;
|
|
9
9
|
onSelectedFunctionChange: (expressionFunction: ExpressionFunction | null) => void;
|
|
10
|
-
expressionFunctions: ExpressionFunctionMap
|
|
10
|
+
expressionFunctions: ExpressionFunctionMap<string>;
|
|
11
11
|
editorButtons: OperatorEditorButton[];
|
|
12
12
|
testData: any;
|
|
13
13
|
placeholder?: string;
|
|
@@ -13,7 +13,7 @@ const editorButtonsCumulativeAggregatedScalar_1 = require("./editorButtonsCumula
|
|
|
13
13
|
function EditorInput(props) {
|
|
14
14
|
const moduleExpressionFunctions = props.api.internalApi
|
|
15
15
|
.getQueryLanguageService()
|
|
16
|
-
.
|
|
16
|
+
.getModuleExpressionFunctionsMap(props.module);
|
|
17
17
|
const getFilteredAggregatedExpressionFunctions = (availableAggregatedExpressionFunctions, type) => {
|
|
18
18
|
const sourceExpressionFunctions = type === 'aggregatedScalar'
|
|
19
19
|
? aggregatedScalarExpressionFunctions_1.aggregatedExpressionFunctions
|
|
@@ -15,7 +15,7 @@ const editorButtonsAggregatedBoolean_1 = require("./editorButtonsAggregatedBoole
|
|
|
15
15
|
function EditorInputWithWhereClause(props) {
|
|
16
16
|
const moduleExpressionFunctions = props.api.internalApi
|
|
17
17
|
.getQueryLanguageService()
|
|
18
|
-
.
|
|
18
|
+
.getModuleExpressionFunctionsMap(props.module);
|
|
19
19
|
const reactiveExpressionFns = props.type === 'observable'
|
|
20
20
|
? moduleExpressionFunctions.observableFunctions
|
|
21
21
|
: moduleExpressionFunctions.aggregatedBooleanFunctions;
|
|
@@ -888,12 +888,12 @@ export declare const ADAPTABLE_METAMODEL: {
|
|
|
888
888
|
defaultValue: string;
|
|
889
889
|
})[];
|
|
890
890
|
};
|
|
891
|
-
|
|
891
|
+
AggregatedBooleanFunctionName: {
|
|
892
892
|
name: string;
|
|
893
893
|
kind: string;
|
|
894
894
|
description: string;
|
|
895
895
|
};
|
|
896
|
-
|
|
896
|
+
AggregatedScalarFunctionName: {
|
|
897
897
|
name: string;
|
|
898
898
|
kind: string;
|
|
899
899
|
description: string;
|
|
@@ -2418,6 +2418,11 @@ export declare const ADAPTABLE_METAMODEL: {
|
|
|
2418
2418
|
defaultValue: string;
|
|
2419
2419
|
}[];
|
|
2420
2420
|
};
|
|
2421
|
+
DefaultExpressionFunctionsContext: {
|
|
2422
|
+
name: string;
|
|
2423
|
+
kind: string;
|
|
2424
|
+
description: string;
|
|
2425
|
+
};
|
|
2421
2426
|
DeletedActionRowInfo: {
|
|
2422
2427
|
name: string;
|
|
2423
2428
|
kind: string;
|
|
@@ -2559,6 +2564,26 @@ export declare const ADAPTABLE_METAMODEL: {
|
|
|
2559
2564
|
defaultValue?: undefined;
|
|
2560
2565
|
})[];
|
|
2561
2566
|
};
|
|
2567
|
+
EvaluateExpressionExternallyContext: {
|
|
2568
|
+
name: string;
|
|
2569
|
+
kind: string;
|
|
2570
|
+
description: string;
|
|
2571
|
+
properties: ({
|
|
2572
|
+
name: string;
|
|
2573
|
+
kind: string;
|
|
2574
|
+
description: string;
|
|
2575
|
+
uiLabel: string;
|
|
2576
|
+
isOptional: boolean;
|
|
2577
|
+
reference?: undefined;
|
|
2578
|
+
} | {
|
|
2579
|
+
name: string;
|
|
2580
|
+
kind: string;
|
|
2581
|
+
description: string;
|
|
2582
|
+
uiLabel: string;
|
|
2583
|
+
reference: string;
|
|
2584
|
+
isOptional?: undefined;
|
|
2585
|
+
})[];
|
|
2586
|
+
};
|
|
2562
2587
|
EventApi: {
|
|
2563
2588
|
name: string;
|
|
2564
2589
|
kind: string;
|
|
@@ -2657,28 +2682,12 @@ export declare const ADAPTABLE_METAMODEL: {
|
|
|
2657
2682
|
description: string;
|
|
2658
2683
|
uiLabel: string;
|
|
2659
2684
|
isOptional?: undefined;
|
|
2660
|
-
reference?: undefined;
|
|
2661
|
-
} | {
|
|
2662
|
-
name: string;
|
|
2663
|
-
kind: string;
|
|
2664
|
-
description: string;
|
|
2665
|
-
uiLabel: string;
|
|
2666
|
-
isOptional: boolean;
|
|
2667
|
-
reference?: undefined;
|
|
2668
|
-
} | {
|
|
2669
|
-
name: string;
|
|
2670
|
-
kind: string;
|
|
2671
|
-
description: string;
|
|
2672
|
-
uiLabel: string;
|
|
2673
|
-
reference: string;
|
|
2674
|
-
isOptional?: undefined;
|
|
2675
2685
|
} | {
|
|
2676
2686
|
name: string;
|
|
2677
2687
|
kind: string;
|
|
2678
2688
|
description: string;
|
|
2679
2689
|
uiLabel: string;
|
|
2680
2690
|
isOptional: boolean;
|
|
2681
|
-
reference: string;
|
|
2682
2691
|
})[];
|
|
2683
2692
|
};
|
|
2684
2693
|
ExpressionFunction: {
|
|
@@ -2701,6 +2710,11 @@ export declare const ADAPTABLE_METAMODEL: {
|
|
|
2701
2710
|
isOptional?: undefined;
|
|
2702
2711
|
})[];
|
|
2703
2712
|
};
|
|
2713
|
+
ExpressionFunctionDefinitions: {
|
|
2714
|
+
name: string;
|
|
2715
|
+
kind: string;
|
|
2716
|
+
description: string;
|
|
2717
|
+
};
|
|
2704
2718
|
ExpressionFunctionDocBlock: {
|
|
2705
2719
|
name: string;
|
|
2706
2720
|
kind: string;
|
|
@@ -2711,6 +2725,11 @@ export declare const ADAPTABLE_METAMODEL: {
|
|
|
2711
2725
|
kind: string;
|
|
2712
2726
|
description: string;
|
|
2713
2727
|
};
|
|
2728
|
+
ExpressionFunctionMap: {
|
|
2729
|
+
name: string;
|
|
2730
|
+
kind: string;
|
|
2731
|
+
description: string;
|
|
2732
|
+
};
|
|
2714
2733
|
ExpressionOptions: {
|
|
2715
2734
|
name: string;
|
|
2716
2735
|
kind: string;
|
|
@@ -2723,16 +2742,6 @@ export declare const ADAPTABLE_METAMODEL: {
|
|
|
2723
2742
|
isOptional: boolean;
|
|
2724
2743
|
gridInfo?: undefined;
|
|
2725
2744
|
defaultValue?: undefined;
|
|
2726
|
-
reference?: undefined;
|
|
2727
|
-
} | {
|
|
2728
|
-
name: string;
|
|
2729
|
-
kind: string;
|
|
2730
|
-
description: string;
|
|
2731
|
-
uiLabel: string;
|
|
2732
|
-
isOptional: boolean;
|
|
2733
|
-
gridInfo: string;
|
|
2734
|
-
defaultValue: string;
|
|
2735
|
-
reference: string;
|
|
2736
2745
|
} | {
|
|
2737
2746
|
name: string;
|
|
2738
2747
|
kind: string;
|
|
@@ -2741,7 +2750,6 @@ export declare const ADAPTABLE_METAMODEL: {
|
|
|
2741
2750
|
isOptional: boolean;
|
|
2742
2751
|
gridInfo: string;
|
|
2743
2752
|
defaultValue: string;
|
|
2744
|
-
reference?: undefined;
|
|
2745
2753
|
})[];
|
|
2746
2754
|
};
|
|
2747
2755
|
FDC3Column: {
|
|
@@ -3758,6 +3766,16 @@ export declare const ADAPTABLE_METAMODEL: {
|
|
|
3758
3766
|
kind: string;
|
|
3759
3767
|
description: string;
|
|
3760
3768
|
};
|
|
3769
|
+
ModuleExpressionFunctionsContext: {
|
|
3770
|
+
name: string;
|
|
3771
|
+
kind: string;
|
|
3772
|
+
description: string;
|
|
3773
|
+
};
|
|
3774
|
+
ModuleExpressionFunctionsMap: {
|
|
3775
|
+
name: string;
|
|
3776
|
+
kind: string;
|
|
3777
|
+
description: string;
|
|
3778
|
+
};
|
|
3761
3779
|
NamedQuery: {
|
|
3762
3780
|
name: string;
|
|
3763
3781
|
kind: string;
|