@adaptabletools/adaptable 15.0.0-canary.0 → 15.0.0-canary.1
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 +202 -217
- package/package.json +2 -2
- package/publishTimestamp.d.ts +1 -1
- package/publishTimestamp.js +1 -1
- package/src/AdaptableInterfaces/IAdaptable.d.ts +42 -42
- package/src/AdaptableOptions/ActionOptions.d.ts +5 -5
- package/src/AdaptableOptions/UserInterfaceOptions.d.ts +2 -2
- package/src/Api/ChartingApi.d.ts +6 -1
- package/src/Api/ColumnApi.d.ts +3 -3
- package/src/Api/Events/ActionRowSubmitted.d.ts +4 -4
- package/src/Api/Events/GridDataChanged.d.ts +2 -2
- package/src/Api/FilterApi.d.ts +2 -2
- package/src/Api/FinanceApi.d.ts +9 -9
- package/src/Api/FormatColumnApi.d.ts +6 -6
- package/src/Api/FreeTextColumnApi.d.ts +3 -3
- package/src/Api/GridApi.d.ts +28 -28
- package/src/Api/Implementation/ChartingApiImpl.d.ts +2 -1
- package/src/Api/Implementation/ChartingApiImpl.js +4 -1
- package/src/Api/Implementation/ColumnApiImpl.d.ts +3 -3
- package/src/Api/Implementation/FilterApiImpl.d.ts +2 -2
- package/src/Api/Implementation/FormatColumnApiImpl.d.ts +6 -6
- package/src/Api/Implementation/FreeTextColumnApiImpl.d.ts +3 -3
- package/src/Api/Implementation/GridApiImpl.d.ts +29 -29
- package/src/Api/Internal/ActionInternalApi.d.ts +3 -3
- package/src/Api/Internal/AdaptableInternalApi.d.ts +3 -3
- package/src/Api/Internal/AlertInternalApi.d.ts +3 -3
- package/src/Api/Internal/FilterInternalApi.d.ts +2 -2
- package/src/Api/Internal/FormatColumnInternalApi.d.ts +7 -7
- package/src/Api/Internal/GridInternalApi.d.ts +4 -4
- package/src/Api/Internal/StyledColumnInternalApi.d.ts +3 -3
- package/src/PredefinedConfig/Common/AdaptableComparerFunction.d.ts +3 -4
- package/src/PredefinedConfig/Common/AdaptablePredicate.d.ts +2 -2
- package/src/PredefinedConfig/Common/CellDataChangedInfo.d.ts +2 -2
- package/src/PredefinedConfig/Common/Menu.d.ts +2 -2
- package/src/PredefinedConfig/Selection/GridCell.d.ts +2 -2
- package/src/PredefinedConfig/Selection/GridRow.d.ts +2 -2
- package/src/Redux/ActionsReducers/GridRedux.d.ts +3 -3
- package/src/Utilities/ExpressionFunctions/aggregatedScalarExpressionFunctions.d.ts +3 -3
- package/src/Utilities/Interface/Preview.d.ts +2 -2
- package/src/Utilities/ObjectFactory.d.ts +2 -2
- package/src/Utilities/Services/AggregatedScalarLiveValue.d.ts +2 -2
- package/src/Utilities/Services/CalculatedColumnExpressionService.d.ts +2 -2
- package/src/Utilities/Services/Interface/ICalculatedColumnExpressionService.d.ts +2 -2
- package/src/Utilities/Services/Interface/IQueryLanguageService.d.ts +3 -3
- package/src/Utilities/Services/Interface/IReportService.d.ts +3 -3
- package/src/Utilities/Services/QueryLanguageService.d.ts +2 -2
- package/src/Utilities/Services/ReportService.d.ts +4 -4
- package/src/View/DataChangeHistory/buildActionColumnButton.d.ts +2 -2
- package/src/agGrid/ActionColumnRenderer.js +1 -0
- package/src/agGrid/Adaptable.d.ts +41 -41
- package/src/agGrid/Adaptable.js +13 -11
- package/src/metamodel/adaptable.metamodel.js +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { InitialGroupOrderComparatorParams } from '@ag-grid-community/core/dist/cjs/es5/entities/iCallbackParams';
|
|
1
|
+
import { InitialGroupOrderComparatorParams, IRowNode } from '@ag-grid-community/core';
|
|
3
2
|
/**
|
|
4
3
|
* Standard comparer function used to evaluate custom sorts, returns -1, 0, 1 as required
|
|
5
4
|
*/
|
|
@@ -15,9 +14,9 @@ valueB: any,
|
|
|
15
14
|
/**
|
|
16
15
|
* First Row Node to compare
|
|
17
16
|
*/
|
|
18
|
-
nodeA?:
|
|
17
|
+
nodeA?: IRowNode,
|
|
19
18
|
/**
|
|
20
19
|
* Second Row Node to compare
|
|
21
20
|
*/
|
|
22
|
-
nodeB?:
|
|
21
|
+
nodeB?: IRowNode) => number;
|
|
23
22
|
export declare type AdaptableNodeComparerFunction = (params: InitialGroupOrderComparatorParams) => number;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { AdaptableScope } from './AdaptableScope';
|
|
2
2
|
import { AdaptableColumn, AdaptableColumnDataType } from './AdaptableColumn';
|
|
3
3
|
import { AdaptableApi, AdaptableIcon, ColumnFilter } from '../../types';
|
|
4
|
-
import {
|
|
4
|
+
import { IRowNode } from '@ag-grid-community/core';
|
|
5
5
|
/**
|
|
6
6
|
* Predicate object used by AdapTableQL - essentially a boolean function
|
|
7
7
|
*/
|
|
@@ -92,7 +92,7 @@ export interface PredicateDefHandlerParams {
|
|
|
92
92
|
/**
|
|
93
93
|
* AG Grid Row node which contains the cell
|
|
94
94
|
*/
|
|
95
|
-
node:
|
|
95
|
+
node: IRowNode;
|
|
96
96
|
/**
|
|
97
97
|
* Any inputs required to perform evaluation
|
|
98
98
|
*/
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { IRowNode } from '@ag-grid-community/core';
|
|
2
2
|
import { AdaptableColumn } from './AdaptableColumn';
|
|
3
3
|
/**
|
|
4
4
|
* Defines a Cell Edit - includes full details of old and new values, the column and the enclosing Row
|
|
@@ -27,7 +27,7 @@ export interface CellDataChangedInfo {
|
|
|
27
27
|
/**
|
|
28
28
|
* AG Grid RowNode that contains the cell
|
|
29
29
|
*/
|
|
30
|
-
rowNode?:
|
|
30
|
+
rowNode?: IRowNode;
|
|
31
31
|
/**
|
|
32
32
|
* Data in the Row
|
|
33
33
|
*/
|
|
@@ -4,7 +4,7 @@ import { AdaptableColumn } from './AdaptableColumn';
|
|
|
4
4
|
import { AdaptableModule } from './Types';
|
|
5
5
|
import { SelectedCellInfo } from '../Selection/SelectedCellInfo';
|
|
6
6
|
import { SelectedRowInfo } from '../Selection/SelectedRowInfo';
|
|
7
|
-
import { Column,
|
|
7
|
+
import { Column, IRowNode } from '@ag-grid-community/core';
|
|
8
8
|
import { AdaptableIcon, BaseContext } from '../../types';
|
|
9
9
|
/**
|
|
10
10
|
* Menu item used by Adaptable in both Column and Context Menus
|
|
@@ -116,7 +116,7 @@ export interface ContextMenuContext extends BaseContext {
|
|
|
116
116
|
/**
|
|
117
117
|
* Current AG Grid row node
|
|
118
118
|
*/
|
|
119
|
-
rowNode:
|
|
119
|
+
rowNode: IRowNode;
|
|
120
120
|
/**
|
|
121
121
|
* Whether current AG Grid row node is grouped
|
|
122
122
|
*/
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { IRowNode } from '@ag-grid-community/core';
|
|
2
2
|
import { AdaptableColumn } from '../Common/AdaptableColumn';
|
|
3
3
|
/**
|
|
4
4
|
* Defines a Cell in Adaptable - every cell is an intersection of a Column Id and a Primary Key Value
|
|
@@ -27,5 +27,5 @@ export interface GridCell {
|
|
|
27
27
|
/**
|
|
28
28
|
* AG Grid Row Node that holds the cell
|
|
29
29
|
*/
|
|
30
|
-
rowNode:
|
|
30
|
+
rowNode: IRowNode;
|
|
31
31
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { IRowNode } from '@ag-grid-community/core';
|
|
2
2
|
/**
|
|
3
3
|
* Detailed information about a Row in AdapTable
|
|
4
4
|
*/
|
|
@@ -18,7 +18,7 @@ export interface GridRow {
|
|
|
18
18
|
/**
|
|
19
19
|
* AG Grid Row Node object for the Row
|
|
20
20
|
*/
|
|
21
|
-
rowNode?:
|
|
21
|
+
rowNode?: IRowNode;
|
|
22
22
|
}
|
|
23
23
|
/**
|
|
24
24
|
* Provides meta data about a Row in Adaptable
|
|
@@ -7,7 +7,7 @@ import { AdaptableMenuItem } from '../../PredefinedConfig/Common/Menu';
|
|
|
7
7
|
import { CellDataChangedInfo } from '../../PredefinedConfig/Common/CellDataChangedInfo';
|
|
8
8
|
import { ColumnSort } from '../../PredefinedConfig/Common/ColumnSort';
|
|
9
9
|
import { Layout, CellSummmary, ColumnFilter } from '../../types';
|
|
10
|
-
import {
|
|
10
|
+
import { IRowNode } from '@ag-grid-community/core';
|
|
11
11
|
/**
|
|
12
12
|
* @ReduxAction Columns have been set in the Grid
|
|
13
13
|
*/
|
|
@@ -140,7 +140,7 @@ export interface GridSetCellSummaryAction extends Redux.Action {
|
|
|
140
140
|
cellSummary: CellSummmary;
|
|
141
141
|
}
|
|
142
142
|
export interface GridRefreshCellsAction extends Redux.Action {
|
|
143
|
-
rowNodes:
|
|
143
|
+
rowNodes: IRowNode[];
|
|
144
144
|
columnIds: string[];
|
|
145
145
|
}
|
|
146
146
|
export interface SetSettingPanelModuleMenuItemsAction extends Redux.Action {
|
|
@@ -199,7 +199,7 @@ export declare const GridSetSelectedCells: (SelectedCellInfo: SelectedCellInfo)
|
|
|
199
199
|
export declare const GridSetSelectedRows: (SelectedRowInfo: SelectedRowInfo) => GridSetSelectedRowsAction;
|
|
200
200
|
export declare const GridCreateCellSummary: () => GridCreateCellSummaryAction;
|
|
201
201
|
export declare const GridSetCellSummary: (CellSummary: CellSummmary) => GridSetCellSummaryAction;
|
|
202
|
-
export declare const GridRefreshCells: (rowNodes:
|
|
202
|
+
export declare const GridRefreshCells: (rowNodes: IRowNode[], columnIds: string[]) => GridRefreshCellsAction;
|
|
203
203
|
export declare const SetPivotModeOn: () => SetPivotModeOnAction;
|
|
204
204
|
export declare const SetPivotModeOff: () => SetPivotModeOffAction;
|
|
205
205
|
export declare const SetTreeModeOn: () => SetTreeModeOnAction;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ExpressionFunction } from '../../parser/src/types';
|
|
2
2
|
import { BaseParameter } from './expressionFunctionUtils';
|
|
3
|
-
import {
|
|
3
|
+
import { IRowNode } from '@ag-grid-community/core';
|
|
4
4
|
import { AggregateParams } from './scalarAggregationHelper';
|
|
5
5
|
/**
|
|
6
6
|
* List of all the AggregatedScalar Functions available in AdaptableQL
|
|
@@ -22,12 +22,12 @@ export interface WeightParameter extends BaseParameter<'operand', 'WEIGHT'> {
|
|
|
22
22
|
}
|
|
23
23
|
export interface AggregatedScalarExpressionEvaluation {
|
|
24
24
|
aggregationParams: AggregateParams<any, string | number>;
|
|
25
|
-
rowValueGetter?: (rowNode:
|
|
25
|
+
rowValueGetter?: (rowNode: IRowNode, aggregatedValue: any) => string | number | Date | boolean;
|
|
26
26
|
context?: {
|
|
27
27
|
weightParam?: WeightParameter;
|
|
28
28
|
};
|
|
29
29
|
sortByColumn?: string;
|
|
30
|
-
rowFilterFn?: (rowNode:
|
|
30
|
+
rowFilterFn?: (rowNode: IRowNode) => boolean;
|
|
31
31
|
}
|
|
32
32
|
export interface CumulatedAggregationValue {
|
|
33
33
|
currentValue: number;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { AlertDefinition } from '../../PredefinedConfig/AlertState';
|
|
2
|
-
import {
|
|
2
|
+
import { IRowNode } from '@ag-grid-community/core';
|
|
3
3
|
import { AdaptableColumn } from '../../../types';
|
|
4
4
|
export interface PreviewInfo {
|
|
5
5
|
column: AdaptableColumn;
|
|
@@ -14,5 +14,5 @@ export interface PreviewResult {
|
|
|
14
14
|
initialValue: number;
|
|
15
15
|
computedValue: number;
|
|
16
16
|
validationRules: AlertDefinition[];
|
|
17
|
-
rowNode:
|
|
17
|
+
rowNode: IRowNode;
|
|
18
18
|
}
|
|
@@ -24,7 +24,7 @@ import { SystemStatusMessageInfo } from '../PredefinedConfig/Common/SystemStatus
|
|
|
24
24
|
import { NotificationsOptions } from '../AdaptableOptions/NotificationsOptions';
|
|
25
25
|
import { CellSummmary } from '../PredefinedConfig/Common/CellSummary';
|
|
26
26
|
import { ChartDefinition, ColumnFilter, CustomDisplayFormatterContext, FlashingCellDefinition, GridDataChangedInfo, SystemFilterPredicateId } from '../types';
|
|
27
|
-
import {
|
|
27
|
+
import { IRowNode } from '@ag-grid-community/core';
|
|
28
28
|
import { AdaptableApi } from '../../types';
|
|
29
29
|
import { ToastOptions } from '../components/Toastify';
|
|
30
30
|
import { StyledColumn } from '../PredefinedConfig/StyledColumnState';
|
|
@@ -65,7 +65,7 @@ export declare function CreateEmptyCellSummmary(): CellSummmary;
|
|
|
65
65
|
export declare function CreateColumnFilter(ColumnId: string, PredicateId: SystemFilterPredicateId, Inputs: any[]): ColumnFilter;
|
|
66
66
|
export declare function CreateEmptyStyledColumn(): StyledColumn;
|
|
67
67
|
export declare function CreateEmptyChartDefinition(chartDefinition?: ChartDefinition): ChartDefinition;
|
|
68
|
-
export declare function CreateCustomDisplayFormatterContext(value: any, node:
|
|
68
|
+
export declare function CreateCustomDisplayFormatterContext(value: any, node: IRowNode, abColumn: AdaptableColumn, api: AdaptableApi): CustomDisplayFormatterContext;
|
|
69
69
|
export declare function CreateToastOptions(notificationsOptions: NotificationsOptions, { onClose, containerId }: {
|
|
70
70
|
onClose?: VoidFunction;
|
|
71
71
|
containerId: string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { AggregatedScalarExpressionEvaluation } from '../ExpressionFunctions/aggregatedScalarExpressionFunctions';
|
|
2
2
|
import { AdaptableApi } from '../../Api/AdaptableApi';
|
|
3
3
|
import { AdaptableModule as ModuleConstants } from '../../PredefinedConfig/Common/Types';
|
|
4
|
-
import {
|
|
4
|
+
import { IRowNode } from '@ag-grid-community/core';
|
|
5
5
|
import { XOR } from '../Extensions/TypeExtensions';
|
|
6
6
|
export declare class AggregatedScalarLiveValue {
|
|
7
7
|
private source;
|
|
@@ -17,7 +17,7 @@ export declare class AggregatedScalarLiveValue {
|
|
|
17
17
|
aggregatedScalarExpressionEvaluation: AggregatedScalarExpressionEvaluation;
|
|
18
18
|
}>, requestingModule: ModuleConstants, adaptableApi: AdaptableApi);
|
|
19
19
|
refresh(): void;
|
|
20
|
-
getAggregatedValueForRow(rowNode:
|
|
20
|
+
getAggregatedValueForRow(rowNode: IRowNode): any;
|
|
21
21
|
getAllAggregationValues(): number[];
|
|
22
22
|
private getAggregationValue;
|
|
23
23
|
private getGlobalAggregatedValue;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ICalculatedColumnExpressionService } from './Interface/ICalculatedColumnExpressionService';
|
|
2
|
-
import {
|
|
2
|
+
import { IRowNode } from '@ag-grid-community/core';
|
|
3
3
|
import { AdaptableCalculatedColumnQuery, CalculatedColumn, CalculatedColumnSettings } from '../../PredefinedConfig/CalculatedColumnState';
|
|
4
4
|
import { AdaptableApi } from '../../../types';
|
|
5
5
|
export declare class CalculatedColumnExpressionService implements ICalculatedColumnExpressionService {
|
|
@@ -9,7 +9,7 @@ export declare class CalculatedColumnExpressionService implements ICalculatedCol
|
|
|
9
9
|
destroy(): void;
|
|
10
10
|
getCalculatedColumnDataType(calculatedColumnQuery: AdaptableCalculatedColumnQuery): CalculatedColumnSettings['DataType'];
|
|
11
11
|
isCalculatedColumnQueryValid(calculatedColumnQuery: AdaptableCalculatedColumnQuery): boolean;
|
|
12
|
-
evaluateCalculatedColumnQuery(calculatedColumn: CalculatedColumn, rowNode:
|
|
12
|
+
evaluateCalculatedColumnQuery(calculatedColumn: CalculatedColumn, rowNode: IRowNode): any;
|
|
13
13
|
createAggregatedScalarLiveValue(calculatedColumn: CalculatedColumn): void;
|
|
14
14
|
destroyAggregatedScalarLiveValue(calculatedColumn: CalculatedColumn): void;
|
|
15
15
|
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { IAdaptableService } from './IAdaptableService';
|
|
2
|
-
import {
|
|
2
|
+
import { IRowNode } from '@ag-grid-community/core';
|
|
3
3
|
import { AdaptableCalculatedColumnQuery, CalculatedColumn, CalculatedColumnSettings } from '../../../PredefinedConfig/CalculatedColumnState';
|
|
4
4
|
export interface ICalculatedColumnExpressionService extends IAdaptableService {
|
|
5
5
|
isCalculatedColumnQueryValid(calculatedColumnQuery: AdaptableCalculatedColumnQuery): boolean;
|
|
6
|
-
evaluateCalculatedColumnQuery(calculatedColumn: CalculatedColumn, rowNode:
|
|
6
|
+
evaluateCalculatedColumnQuery(calculatedColumn: CalculatedColumn, rowNode: IRowNode): any;
|
|
7
7
|
getCalculatedColumnDataType(calculatedColumnQuery: AdaptableCalculatedColumnQuery): CalculatedColumnSettings['DataType'];
|
|
8
8
|
createAggregatedScalarLiveValue(calculatedColumn: CalculatedColumn): void;
|
|
9
9
|
destroyAggregatedScalarLiveValue(calculatedColumn: CalculatedColumn): void;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Observable } from 'rxjs';
|
|
2
2
|
import { IAdaptableService } from './IAdaptableService';
|
|
3
|
-
import {
|
|
3
|
+
import { IRowNode } from '@ag-grid-community/core';
|
|
4
4
|
import { CellDataChangedInfo } from '../../../PredefinedConfig/Common/CellDataChangedInfo';
|
|
5
5
|
import { AdaptableModule } from '../../../PredefinedConfig/Common/Types';
|
|
6
6
|
import { AggregatedScalarFunctionName, ScalarAggregationParameter } from '../../ExpressionFunctions/aggregatedScalarExpressionFunctions';
|
|
@@ -10,8 +10,8 @@ import { ScalarFunctionName } from '../../ExpressionFunctions/scalarExpressionFu
|
|
|
10
10
|
import { ObservableFunctionName } from '../../ExpressionFunctions/observableExpressionFunctions';
|
|
11
11
|
import { ExpressionFunctionMap } from '../../../parser/src/types';
|
|
12
12
|
export interface IQueryLanguageService extends IAdaptableService {
|
|
13
|
-
evaluateBooleanExpression(expression: string, module: AdaptableModule, rowNode:
|
|
14
|
-
evaluateScalarExpression(expression: string, module: AdaptableModule, rowNode:
|
|
13
|
+
evaluateBooleanExpression(expression: string, module: AdaptableModule, rowNode: IRowNode): boolean;
|
|
14
|
+
evaluateScalarExpression(expression: string, module: AdaptableModule, rowNode: IRowNode): any;
|
|
15
15
|
evaluateObservableExpression(expression: string, module: AdaptableModule): Observable<CellDataChangedInfo>;
|
|
16
16
|
evaluateAggregatedBooleanExpression(expression: string, module: AdaptableModule): BooleanAggregationParameter;
|
|
17
17
|
evaluateAggregatedScalarExpression(expression: string, module: AdaptableModule): ScalarAggregationParameter;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Report, ReportData, SystemReportName } from '../../../PredefinedConfig/ExportState';
|
|
2
2
|
import { AdaptableColumn } from '../../../PredefinedConfig/Common/AdaptableColumn';
|
|
3
3
|
import { IAdaptableService } from './IAdaptableService';
|
|
4
|
-
import { ExcelStyle,
|
|
4
|
+
import { ExcelStyle, IRowNode } from '@ag-grid-community/core';
|
|
5
5
|
import { SystemExportDestination } from '../../../types';
|
|
6
6
|
export interface IReportService extends IAdaptableService {
|
|
7
7
|
resetExcelStyleMemoization(): void;
|
|
@@ -22,7 +22,7 @@ export interface IReportService extends IAdaptableService {
|
|
|
22
22
|
getReportData(report: Report, includePrimaryKey?: boolean): ReportData;
|
|
23
23
|
getReportDataAsArray(report: Report, includePrimaryKey?: boolean): any[][];
|
|
24
24
|
convertReportDataToArray(reportData: ReportData): any[][];
|
|
25
|
-
getCellExportValueFromRowNode(rowNode:
|
|
26
|
-
getCellExportValueFromRawValue(rowNode:
|
|
25
|
+
getCellExportValueFromRowNode(rowNode: IRowNode, columnId: string): any;
|
|
26
|
+
getCellExportValueFromRawValue(rowNode: IRowNode, rawValue: any, columnId: string): any;
|
|
27
27
|
getReportFileName(reportName: string): string;
|
|
28
28
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { IQueryLanguageService, ModuleExpressionFunctionsMap } from './Interface/IQueryLanguageService';
|
|
2
2
|
import { Observable } from 'rxjs';
|
|
3
3
|
import { CellDataChangedInfo } from '../../PredefinedConfig/Common/CellDataChangedInfo';
|
|
4
|
-
import {
|
|
4
|
+
import { IRowNode } from '@ag-grid-community/core';
|
|
5
5
|
import { AdaptableModule } from '../../PredefinedConfig/Common/Types';
|
|
6
6
|
import { ScalarAggregationParameter } from '../ExpressionFunctions/aggregatedScalarExpressionFunctions';
|
|
7
7
|
import { AdaptableApi } from '../../../types';
|
|
@@ -15,7 +15,7 @@ export declare class QueryLanguageService implements IQueryLanguageService {
|
|
|
15
15
|
private cacheModuleSpecificExpressionFunctions;
|
|
16
16
|
constructor(adaptableApi: AdaptableApi);
|
|
17
17
|
evaluateBooleanExpression(expression: string, module: AdaptableModule, rowNode: any): any;
|
|
18
|
-
evaluateScalarExpression(expression: string, module: AdaptableModule, rowNode:
|
|
18
|
+
evaluateScalarExpression(expression: string, module: AdaptableModule, rowNode: IRowNode): any;
|
|
19
19
|
evaluateAggregatedScalarExpression(expression: string, module: AdaptableModule): ScalarAggregationParameter;
|
|
20
20
|
evaluateObservableExpression(reactiveExpression: string, module: AdaptableModule): Observable<CellDataChangedInfo>;
|
|
21
21
|
evaluateAggregatedBooleanExpression(aggregationExpression: string, module: AdaptableModule): BooleanAggregationParameter;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { AdaptableColumn } from '../../PredefinedConfig/Common/AdaptableColumn';
|
|
2
2
|
import { Report, ReportData, SystemReportName } from '../../PredefinedConfig/ExportState';
|
|
3
3
|
import { IReportService } from './Interface/IReportService';
|
|
4
|
-
import { ExcelStyle,
|
|
4
|
+
import { ExcelStyle, IRowNode } from '@ag-grid-community/core';
|
|
5
5
|
import { SystemExportDestination } from '../../AdaptableOptions/ExportOptions';
|
|
6
6
|
import { AdaptableApi } from '../../../types';
|
|
7
7
|
export declare class ReportService implements IReportService {
|
|
@@ -27,10 +27,10 @@ export declare class ReportService implements IReportService {
|
|
|
27
27
|
getReportData(report: Report, includePrimaryKey?: boolean): ReportData;
|
|
28
28
|
getReportDataAsArray(report: Report, includePrimaryKey?: boolean): any[][];
|
|
29
29
|
convertReportDataToArray(reportData: ReportData): any[][];
|
|
30
|
-
getRowObjectForColumnIds(rowNode:
|
|
30
|
+
getRowObjectForColumnIds(rowNode: IRowNode, columnIds: string[]): Record<string, any>;
|
|
31
31
|
PublishLiveLiveDataChangedEvent(reportDestination: 'ipushpull' | 'Glue42', liveDataTrigger: 'Connected' | 'Disconnected' | 'LiveDataStarted' | 'LiveDataStopped' | 'LiveDataUpdated', liveReport?: any): void;
|
|
32
|
-
getCellExportValueFromRowNode(rowNode:
|
|
33
|
-
getCellExportValueFromRawValue(rowNode:
|
|
32
|
+
getCellExportValueFromRowNode(rowNode: IRowNode, columnId: string): any;
|
|
33
|
+
getCellExportValueFromRawValue(rowNode: IRowNode, cellRawValue: any, columnId: string): any;
|
|
34
34
|
getReportFileName(reportName: string): string;
|
|
35
35
|
destroy(): void;
|
|
36
36
|
private getCustomExportDateFormat;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { IRowNode } from '@ag-grid-community/core';
|
|
2
2
|
import { ActionColumnContext, AdaptableButton, DataChangeHistoryOptions } from '../../types';
|
|
3
|
-
export declare const buildActionColumnButton: (options: DataChangeHistoryOptions, undoRowNode: (rowNode:
|
|
3
|
+
export declare const buildActionColumnButton: (options: DataChangeHistoryOptions, undoRowNode: (rowNode: IRowNode) => void) => AdaptableButton<ActionColumnContext>[];
|
|
@@ -61,6 +61,7 @@ const ReactActionColumnRenderer = (props) => {
|
|
|
61
61
|
if (!actionColumn || !actionButtons.length) {
|
|
62
62
|
return null;
|
|
63
63
|
}
|
|
64
|
+
// TODO: see why types do not match
|
|
64
65
|
if (adaptable.api.gridApi.isGroupRowNode(props.node) && !actionColumn.includeGroupedRows) {
|
|
65
66
|
return null;
|
|
66
67
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ChartRef, ColDef, ColGroupDef, Column, ColumnRowGroupChangedEvent, ExcelStyle, GridOptions, Module, ModuleNames,
|
|
1
|
+
import { ChartRef, ColDef, ColGroupDef, Column, ColumnRowGroupChangedEvent, ExcelStyle, GridOptions, Module, ModuleNames, IRowNode } from '@ag-grid-community/core';
|
|
2
2
|
import { AdaptableNoCodeWizardOptions, IAdaptableNoCodeWizard } from '../AdaptableInterfaces/AdaptableNoCodeWizard';
|
|
3
3
|
import { AdaptableVariant, IAdaptable } from '../AdaptableInterfaces/IAdaptable';
|
|
4
4
|
import { AdaptableOptions } from '../AdaptableOptions/AdaptableOptions';
|
|
@@ -149,9 +149,9 @@ export declare class Adaptable implements IAdaptable {
|
|
|
149
149
|
private filterOnEditDataChange;
|
|
150
150
|
private filterOnTickingDataChange;
|
|
151
151
|
applyGridFiltering(): void;
|
|
152
|
-
isGroupRowNode(rowNode:
|
|
153
|
-
isVisibleNode(rowNode:
|
|
154
|
-
isPinnedRowNode(rowNode:
|
|
152
|
+
isGroupRowNode(rowNode: IRowNode): boolean;
|
|
153
|
+
isVisibleNode(rowNode: IRowNode): boolean;
|
|
154
|
+
isPinnedRowNode(rowNode: IRowNode): boolean;
|
|
155
155
|
clearGridFiltering(): void;
|
|
156
156
|
clearColumnFiltering(columnIds: string[]): void;
|
|
157
157
|
hideFilterFormPopup: Function;
|
|
@@ -180,7 +180,7 @@ export declare class Adaptable implements IAdaptable {
|
|
|
180
180
|
private getEditableCellClass;
|
|
181
181
|
private getReadonlyCellClass;
|
|
182
182
|
private isQuickSearchActive;
|
|
183
|
-
getPrimaryKeyValueFromRowNode(rowNode:
|
|
183
|
+
getPrimaryKeyValueFromRowNode(rowNode: IRowNode): any;
|
|
184
184
|
private getSortedColumnStateForVisibleColumns;
|
|
185
185
|
setColumnOrder(VisibleColumnList: string[]): void;
|
|
186
186
|
private persistLayout;
|
|
@@ -189,59 +189,59 @@ export declare class Adaptable implements IAdaptable {
|
|
|
189
189
|
private updateLayoutFromGrid;
|
|
190
190
|
setSelectedCells(): SelectedCellInfo | undefined;
|
|
191
191
|
setSelectedRows(): SelectedRowInfo | undefined;
|
|
192
|
-
setDataValue(value: any, column: AdaptableColumn, primaryKeyValue: any, rowNode?:
|
|
192
|
+
setDataValue(value: any, column: AdaptableColumn, primaryKeyValue: any, rowNode?: IRowNode): void;
|
|
193
193
|
setCellValue(cellDataChangedInfo: CellDataChangedInfo): void;
|
|
194
194
|
cancelEdit(): void;
|
|
195
|
-
isCellEditable(rowNode:
|
|
196
|
-
getDistinctValuesForColumn(column: AdaptableColumn, visibleRowsOnly: boolean, skipRowNode?:
|
|
197
|
-
getDistinctFilterValuesForColumn(column: AdaptableColumn, visibleRowsOnly: boolean, filter: string, skipRowNode?:
|
|
195
|
+
isCellEditable(rowNode: IRowNode, column: Column): boolean;
|
|
196
|
+
getDistinctValuesForColumn(column: AdaptableColumn, visibleRowsOnly: boolean, skipRowNode?: IRowNode, permittedValues?: any[]): GridCell[];
|
|
197
|
+
getDistinctFilterValuesForColumn(column: AdaptableColumn, visibleRowsOnly: boolean, filter: string, skipRowNode?: IRowNode): Promise<{
|
|
198
198
|
suppressClientSideFilter?: boolean;
|
|
199
199
|
gridCells: GridCell[];
|
|
200
200
|
}>;
|
|
201
|
-
getDistinctCustomSortValuesForColumn(column: AdaptableColumn, visibleRowsOnly: boolean, skipRowNode?:
|
|
202
|
-
getDistinctBulkUpdateValuesForColumn(column: AdaptableColumn, visibleRowsOnly: boolean, selectedGridCells: GridCell[], skipRowNode?:
|
|
201
|
+
getDistinctCustomSortValuesForColumn(column: AdaptableColumn, visibleRowsOnly: boolean, skipRowNode?: IRowNode): Promise<GridCell[]>;
|
|
202
|
+
getDistinctBulkUpdateValuesForColumn(column: AdaptableColumn, visibleRowsOnly: boolean, selectedGridCells: GridCell[], skipRowNode?: IRowNode): Promise<GridCell[]>;
|
|
203
203
|
getColumnValueDisplayValuePairList(columnId: string, visibleRowsOnly: boolean, onlyIncludeIds?: {
|
|
204
204
|
[key: string]: boolean;
|
|
205
205
|
}): GridCell[];
|
|
206
206
|
private addDistinctColumnValue;
|
|
207
207
|
getDisplayValue(primaryKey: any, columnId: string): string | undefined;
|
|
208
|
-
getGridCellFromRowNode(rowNode:
|
|
209
|
-
getDisplayValueFromRowNode(rowNode:
|
|
210
|
-
getDisplayValueFromRawValue(rowNode:
|
|
208
|
+
getGridCellFromRowNode(rowNode: IRowNode, columnId: string): GridCell | undefined;
|
|
209
|
+
getDisplayValueFromRowNode(rowNode: IRowNode, columnId: string): string | undefined;
|
|
210
|
+
getDisplayValueFromRawValue(rowNode: IRowNode, columnId: string, rawValue: any): string | undefined;
|
|
211
211
|
private getFormattedValue;
|
|
212
212
|
getNormalisedValueFromRawValue(rawValue: any, column: AdaptableColumn): string | number | boolean | Date | unknown;
|
|
213
|
-
getRawValueFromRowNode(rowNode:
|
|
214
|
-
getDataRowFromRowNode(rowNode:
|
|
213
|
+
getRawValueFromRowNode(rowNode: IRowNode, columnId: string): any;
|
|
214
|
+
getDataRowFromRowNode(rowNode: IRowNode): any;
|
|
215
215
|
getRowNodeForPrimaryKey(primaryKeyValue: any): any;
|
|
216
|
-
getRowNodeByIndex(index: number):
|
|
216
|
+
getRowNodeByIndex(index: number): IRowNode;
|
|
217
217
|
getRowNodesForPrimaryKeys(primaryKeyValues: any[]): any[];
|
|
218
|
-
forAllRowNodesDo(func: (rowNode:
|
|
218
|
+
forAllRowNodesDo(func: (rowNode: IRowNode) => void, config?: {
|
|
219
219
|
includeGroupRows?: boolean;
|
|
220
|
-
filterFn?: (rowNode:
|
|
220
|
+
filterFn?: (rowNode: IRowNode) => boolean;
|
|
221
221
|
}): void;
|
|
222
|
-
forAllVisibleRowNodesDo(func: (rowNode:
|
|
223
|
-
getVisibleRowNodes():
|
|
222
|
+
forAllVisibleRowNodesDo(func: (rowNode: IRowNode, rowIndex: number) => void): void;
|
|
223
|
+
getVisibleRowNodes(): IRowNode[];
|
|
224
224
|
getAllRowNodes(config?: {
|
|
225
225
|
includeGroupRows?: boolean;
|
|
226
|
-
filterFn?: (rowNode:
|
|
227
|
-
}):
|
|
228
|
-
getRowsInViewport():
|
|
229
|
-
selectNodes(rowNodes:
|
|
230
|
-
deSelectNodes(rowNodes:
|
|
231
|
-
selectNode(rowNode:
|
|
232
|
-
deSelectNode(rowNode:
|
|
233
|
-
selectCells(columnIds: string[], startNode:
|
|
234
|
-
isRowNodeVisible(rowNode:
|
|
226
|
+
filterFn?: (rowNode: IRowNode) => boolean;
|
|
227
|
+
}): IRowNode[];
|
|
228
|
+
getRowsInViewport(): IRowNode[];
|
|
229
|
+
selectNodes(rowNodes: IRowNode[], clearSelection: boolean): void;
|
|
230
|
+
deSelectNodes(rowNodes: IRowNode[], clearSelection: boolean): void;
|
|
231
|
+
selectNode(rowNode: IRowNode, clearSelection: boolean): void;
|
|
232
|
+
deSelectNode(rowNode: IRowNode, clearSelection: boolean): void;
|
|
233
|
+
selectCells(columnIds: string[], startNode: IRowNode, endNode: IRowNode, clearSelection?: boolean): void;
|
|
234
|
+
isRowNodeVisible(rowNode: IRowNode): boolean;
|
|
235
235
|
redrawBody(): void;
|
|
236
236
|
redrawRenderedRows(): void;
|
|
237
237
|
redrawHeader(): void;
|
|
238
|
-
redrawRow(rowNode:
|
|
239
|
-
redrawRows(rowNodes:
|
|
240
|
-
refreshCells(rowNodes:
|
|
238
|
+
redrawRow(rowNode: IRowNode): void;
|
|
239
|
+
redrawRows(rowNodes: IRowNode[]): void;
|
|
240
|
+
refreshCells(rowNodes: IRowNode[], columns: (string | Column)[], forceUpdate: boolean, suppressFlash?: boolean): void;
|
|
241
241
|
refreshColumns(columns: (string | Column)[], forceUpdate: boolean, suppressFlash?: boolean): void;
|
|
242
|
-
jumpToRow(rowNode:
|
|
242
|
+
jumpToRow(rowNode: IRowNode): void;
|
|
243
243
|
jumpToColumn(columnId: string): void;
|
|
244
|
-
jumpToCell(columnId: string, rowNode:
|
|
244
|
+
jumpToCell(columnId: string, rowNode: IRowNode): void;
|
|
245
245
|
/**
|
|
246
246
|
* This creates a clone of the current column definitions. If config.removeEmpty is true, will also remove empty column groups
|
|
247
247
|
*
|
|
@@ -260,8 +260,8 @@ export declare class Adaptable implements IAdaptable {
|
|
|
260
260
|
getColDefs(): ColDef[];
|
|
261
261
|
getGroupedColDefs(): ColDef[];
|
|
262
262
|
getColumnDefsWithCorrectVisibility: () => ColDef[];
|
|
263
|
-
getFirstRowNode():
|
|
264
|
-
getFirstDisplayedRowNode():
|
|
263
|
+
getFirstRowNode(): IRowNode;
|
|
264
|
+
getFirstDisplayedRowNode(): IRowNode;
|
|
265
265
|
destroy(config?: {
|
|
266
266
|
unmount: boolean;
|
|
267
267
|
destroyApi?: boolean;
|
|
@@ -345,9 +345,9 @@ export declare class Adaptable implements IAdaptable {
|
|
|
345
345
|
getGridData(): any[];
|
|
346
346
|
getFilteredData(): any[];
|
|
347
347
|
loadDataSource(dataSource: any[]): void;
|
|
348
|
-
updateRows(dataRows: any[], dataUpdateConfig?: DataUpdateConfig): Promise<
|
|
349
|
-
addRows(dataRows: any[], dataUpdateConfig?: DataUpdateConfig): Promise<
|
|
350
|
-
deleteRows(dataRows: any[], dataUpdateConfig?: DataUpdateConfig): Promise<
|
|
348
|
+
updateRows(dataRows: any[], dataUpdateConfig?: DataUpdateConfig): Promise<IRowNode[]>;
|
|
349
|
+
addRows(dataRows: any[], dataUpdateConfig?: DataUpdateConfig): Promise<IRowNode[]>;
|
|
350
|
+
deleteRows(dataRows: any[], dataUpdateConfig?: DataUpdateConfig): Promise<IRowNode[]>;
|
|
351
351
|
getFirstGroupedColumn(): AdaptableColumn | undefined;
|
|
352
352
|
private checkColumnsDataTypeSet;
|
|
353
353
|
private updateColumnDataTypeIfRowDataIsEmpty;
|
|
@@ -362,7 +362,7 @@ export declare class Adaptable implements IAdaptable {
|
|
|
362
362
|
showQuickFilter(): void;
|
|
363
363
|
hideQuickFilter(): void;
|
|
364
364
|
getAgGridColumnType(columnId: string): string | string[];
|
|
365
|
-
getActiveColumnComparator(columnId: string, customSort?: CustomSort, customSortComparer?: ColumnValuesComparer): (valueA: any, valueB: any, nodeA?:
|
|
365
|
+
getActiveColumnComparator(columnId: string, customSort?: CustomSort, customSortComparer?: ColumnValuesComparer): (valueA: any, valueB: any, nodeA?: IRowNode, nodeB?: IRowNode, isInverted?: boolean) => number | undefined;
|
|
366
366
|
getAgGridLightThemeName(): string;
|
|
367
367
|
getAgGridCurrentThemeName(): string;
|
|
368
368
|
applyAdaptableTheme(theme: AdaptableTheme | string): void;
|
package/src/agGrid/Adaptable.js
CHANGED
|
@@ -3197,14 +3197,6 @@ class Adaptable {
|
|
|
3197
3197
|
}
|
|
3198
3198
|
setupColumnCellStyle({ col, colId, abColumn }) {
|
|
3199
3199
|
this.setColDefProperty(col, 'cellStyle', (userCellStyle) => {
|
|
3200
|
-
const defaultCellStyle = {
|
|
3201
|
-
backgroundColor: null,
|
|
3202
|
-
color: null,
|
|
3203
|
-
fontWeight: null,
|
|
3204
|
-
fontStyle: null,
|
|
3205
|
-
fontSize: null,
|
|
3206
|
-
borderColor: null,
|
|
3207
|
-
};
|
|
3208
3200
|
const activeFormatColumnsWithStyle = this.api.formatColumnApi.internalApi.getFormatColumnsWithStyleForColumn(abColumn);
|
|
3209
3201
|
let styledColumn = this.api.styledColumnApi.getStyledColumnForColumnId(colId);
|
|
3210
3202
|
if (styledColumn === null || styledColumn === void 0 ? void 0 : styledColumn.IsSuspended) {
|
|
@@ -3214,9 +3206,15 @@ class Adaptable {
|
|
|
3214
3206
|
const hasQuickSearchStyle = quickSearchStyle != undefined;
|
|
3215
3207
|
const cellStyle = (params) => {
|
|
3216
3208
|
const isQuickSearchActive = hasQuickSearchStyle && this.isQuickSearchActive(abColumn, params);
|
|
3217
|
-
const result = Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(
|
|
3209
|
+
const result = Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, this.getReadOnlyCellStyle(abColumn, params)), this.getEditableCellStyle(abColumn, params)), (typeof userCellStyle === 'function' ? userCellStyle(params) : userCellStyle)), (!styledColumn
|
|
3218
3210
|
? this.getFormatColumnCellStyle(abColumn, activeFormatColumnsWithStyle, params)
|
|
3219
3211
|
: {})), (styledColumn ? this.getStyledColumnStyle(styledColumn, abColumn, params) : {})), (isQuickSearchActive ? quickSearchStyle : {})), this.getAlertCellStyle(abColumn, params)), this.getFlashingCellStyle(abColumn, params)), this.getCellHighlightStyle(abColumn, params));
|
|
3212
|
+
// remove null values, ag-grid 29 fails, it asumes they are strings
|
|
3213
|
+
Object.keys(result).forEach((key) => {
|
|
3214
|
+
if (result[key] === null || result[key] === undefined) {
|
|
3215
|
+
delete result[key];
|
|
3216
|
+
}
|
|
3217
|
+
});
|
|
3220
3218
|
return result;
|
|
3221
3219
|
};
|
|
3222
3220
|
return cellStyle;
|
|
@@ -3259,7 +3257,6 @@ class Adaptable {
|
|
|
3259
3257
|
.flat()
|
|
3260
3258
|
.filter((x) => !!x);
|
|
3261
3259
|
const result = returnValue.length ? returnValue : undefined;
|
|
3262
|
-
// console.log(result);
|
|
3263
3260
|
return result;
|
|
3264
3261
|
};
|
|
3265
3262
|
return cellClass;
|
|
@@ -4663,6 +4660,7 @@ import "@adaptabletools/adaptable/themes/${themeName}.css"`);
|
|
|
4663
4660
|
// recreating the standard AG Grid styling for row groups: 'Parent -> Child'
|
|
4664
4661
|
// additionally the values are formatted
|
|
4665
4662
|
let rowGroupNode = params.node;
|
|
4663
|
+
const isFooterRow = rowGroupNode.footer;
|
|
4666
4664
|
const rowGroupSummary = [(_a = this.processRowGroupForExcelExport(rowGroupNode)) !== null && _a !== void 0 ? _a : ''];
|
|
4667
4665
|
while (rowGroupNode.parent) {
|
|
4668
4666
|
rowGroupNode = rowGroupNode.parent;
|
|
@@ -4671,7 +4669,11 @@ import "@adaptabletools/adaptable/themes/${themeName}.css"`);
|
|
|
4671
4669
|
rowGroupSummary.push(formattedParentNode);
|
|
4672
4670
|
}
|
|
4673
4671
|
}
|
|
4674
|
-
|
|
4672
|
+
let summary = rowGroupSummary.reverse().join(' -> ');
|
|
4673
|
+
if (isFooterRow) {
|
|
4674
|
+
summary = `Total: ${summary}`;
|
|
4675
|
+
}
|
|
4676
|
+
return summary;
|
|
4675
4677
|
},
|
|
4676
4678
|
});
|
|
4677
4679
|
// keep only the user defined props
|