@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.
Files changed (54) hide show
  1. package/bundle.cjs.js +202 -217
  2. package/package.json +2 -2
  3. package/publishTimestamp.d.ts +1 -1
  4. package/publishTimestamp.js +1 -1
  5. package/src/AdaptableInterfaces/IAdaptable.d.ts +42 -42
  6. package/src/AdaptableOptions/ActionOptions.d.ts +5 -5
  7. package/src/AdaptableOptions/UserInterfaceOptions.d.ts +2 -2
  8. package/src/Api/ChartingApi.d.ts +6 -1
  9. package/src/Api/ColumnApi.d.ts +3 -3
  10. package/src/Api/Events/ActionRowSubmitted.d.ts +4 -4
  11. package/src/Api/Events/GridDataChanged.d.ts +2 -2
  12. package/src/Api/FilterApi.d.ts +2 -2
  13. package/src/Api/FinanceApi.d.ts +9 -9
  14. package/src/Api/FormatColumnApi.d.ts +6 -6
  15. package/src/Api/FreeTextColumnApi.d.ts +3 -3
  16. package/src/Api/GridApi.d.ts +28 -28
  17. package/src/Api/Implementation/ChartingApiImpl.d.ts +2 -1
  18. package/src/Api/Implementation/ChartingApiImpl.js +4 -1
  19. package/src/Api/Implementation/ColumnApiImpl.d.ts +3 -3
  20. package/src/Api/Implementation/FilterApiImpl.d.ts +2 -2
  21. package/src/Api/Implementation/FormatColumnApiImpl.d.ts +6 -6
  22. package/src/Api/Implementation/FreeTextColumnApiImpl.d.ts +3 -3
  23. package/src/Api/Implementation/GridApiImpl.d.ts +29 -29
  24. package/src/Api/Internal/ActionInternalApi.d.ts +3 -3
  25. package/src/Api/Internal/AdaptableInternalApi.d.ts +3 -3
  26. package/src/Api/Internal/AlertInternalApi.d.ts +3 -3
  27. package/src/Api/Internal/FilterInternalApi.d.ts +2 -2
  28. package/src/Api/Internal/FormatColumnInternalApi.d.ts +7 -7
  29. package/src/Api/Internal/GridInternalApi.d.ts +4 -4
  30. package/src/Api/Internal/StyledColumnInternalApi.d.ts +3 -3
  31. package/src/PredefinedConfig/Common/AdaptableComparerFunction.d.ts +3 -4
  32. package/src/PredefinedConfig/Common/AdaptablePredicate.d.ts +2 -2
  33. package/src/PredefinedConfig/Common/CellDataChangedInfo.d.ts +2 -2
  34. package/src/PredefinedConfig/Common/Menu.d.ts +2 -2
  35. package/src/PredefinedConfig/Selection/GridCell.d.ts +2 -2
  36. package/src/PredefinedConfig/Selection/GridRow.d.ts +2 -2
  37. package/src/Redux/ActionsReducers/GridRedux.d.ts +3 -3
  38. package/src/Utilities/ExpressionFunctions/aggregatedScalarExpressionFunctions.d.ts +3 -3
  39. package/src/Utilities/Interface/Preview.d.ts +2 -2
  40. package/src/Utilities/ObjectFactory.d.ts +2 -2
  41. package/src/Utilities/Services/AggregatedScalarLiveValue.d.ts +2 -2
  42. package/src/Utilities/Services/CalculatedColumnExpressionService.d.ts +2 -2
  43. package/src/Utilities/Services/Interface/ICalculatedColumnExpressionService.d.ts +2 -2
  44. package/src/Utilities/Services/Interface/IQueryLanguageService.d.ts +3 -3
  45. package/src/Utilities/Services/Interface/IReportService.d.ts +3 -3
  46. package/src/Utilities/Services/QueryLanguageService.d.ts +2 -2
  47. package/src/Utilities/Services/ReportService.d.ts +4 -4
  48. package/src/View/DataChangeHistory/buildActionColumnButton.d.ts +2 -2
  49. package/src/agGrid/ActionColumnRenderer.js +1 -0
  50. package/src/agGrid/Adaptable.d.ts +41 -41
  51. package/src/agGrid/Adaptable.js +13 -11
  52. package/src/metamodel/adaptable.metamodel.js +1 -1
  53. package/version.d.ts +1 -1
  54. package/version.js +1 -1
@@ -9,7 +9,7 @@ import { CellHighlightInfo } from '../PredefinedConfig/Common/CellHighlightInfo'
9
9
  import { RowHighlightInfo } from '../PredefinedConfig/Common/RowHighlightInfo';
10
10
  import { AdaptableModule } from '../PredefinedConfig/Common/Types';
11
11
  import { AccessLevel } from '../PredefinedConfig/Common/Entitlement';
12
- import { GridOptions, RowNode } from '@ag-grid-community/core';
12
+ import { GridOptions, IRowNode } from '@ag-grid-community/core';
13
13
  import { GridCellRange } from '../PredefinedConfig/Selection/GridCellRange';
14
14
  import { RowsHighlightInfo } from '../PredefinedConfig/Common/RowsHighlightInfo';
15
15
  /**
@@ -43,19 +43,19 @@ export interface GridApi {
43
43
  * @param dataRows rows which have been updated - send whole row and Adaptable will take care of the rest
44
44
  * @param config batch option and callback function to run post update
45
45
  */
46
- updateGridData(dataRows: any[], config?: DataUpdateConfig): Promise<RowNode[]>;
46
+ updateGridData(dataRows: any[], config?: DataUpdateConfig): Promise<IRowNode[]>;
47
47
  /**
48
48
  * Adds rows to Adaptable (and AG Grid)
49
49
  * @param dataRows rows to add; ensure all 'mandatory' fields are included and Primary Key is unique
50
50
  * @param config batch option and callback function to run post addition
51
51
  */
52
- addGridData(dataRows: any[], config?: DataUpdateConfig): Promise<RowNode[]>;
52
+ addGridData(dataRows: any[], config?: DataUpdateConfig): Promise<IRowNode[]>;
53
53
  /**
54
54
  * Deletes rows from Adaptable (and AG Grid)
55
55
  * @param dataRows rows which should be deleted
56
56
  * @param config batch option and callback function to run post deletion
57
57
  */
58
- deleteGridData(dataRows: any[], config?: DataUpdateConfig): Promise<RowNode[]>;
58
+ deleteGridData(dataRows: any[], config?: DataUpdateConfig): Promise<IRowNode[]>;
59
59
  /**
60
60
  * Updates cell in Adaptable (first performs Cell & Server Validation)
61
61
  * @param columnId column to update
@@ -130,19 +130,19 @@ export interface GridApi {
130
130
  * @param rowNode Node to Select
131
131
  * @param clearSelection Whether to clear current selection in grid
132
132
  */
133
- selectNode(rowNode: RowNode, clearSelection: boolean): void;
133
+ selectNode(rowNode: IRowNode, clearSelection: boolean): void;
134
134
  /**
135
135
  * Selects the AG Grid Row Nodes in AdapTable
136
136
  * @param rowNodes Nodes to Select
137
137
  * @param clearSelection Whether to clear current selection in grid
138
138
  */
139
- selectNodes(rowNodes: RowNode[], clearSelection: boolean): void;
139
+ selectNodes(rowNodes: IRowNode[], clearSelection: boolean): void;
140
140
  /**
141
141
  * Deselects the AG Grid Row Node in AdapTable
142
142
  * @param rowNode Node to DeSelect
143
143
  * @param clearSelection Whether to clear current selection in grid
144
144
  */
145
- deSelectNode(rowNode: RowNode, clearSelection: boolean): void;
145
+ deSelectNode(rowNode: IRowNode, clearSelection: boolean): void;
146
146
  /**
147
147
  * Selects a Column in AG Grid
148
148
  * @param columnId Id of Column to Select
@@ -158,7 +158,7 @@ export interface GridApi {
158
158
  * @param rowNodes Nodes to DeSelect
159
159
  * @param clearSelection Whether to clear current selection in grid
160
160
  */
161
- deSelectNodes(rowNodes: RowNode[], clearSelection: boolean): void;
161
+ deSelectNodes(rowNodes: IRowNode[], clearSelection: boolean): void;
162
162
  /**
163
163
  * Selects Row with given Primary Key Value
164
164
  * @param primaryKeyValue Primary Key Value of Row to select
@@ -200,54 +200,54 @@ export interface GridApi {
200
200
  /**
201
201
  * Retrieves the first Row Node in AdapTable
202
202
  */
203
- getFirstRowNode(): RowNode;
203
+ getFirstRowNode(): IRowNode;
204
204
  /**
205
205
  * Retrieves the first Displayed Row Node in AdapTable
206
206
  */
207
- getFirstDisplayedRowNode(): RowNode;
207
+ getFirstDisplayedRowNode(): IRowNode;
208
208
  /**
209
209
  * Retrieves all filtered Row Nodes currently in the Grid (i.e. after applying the current filter)
210
210
  */
211
- getVisibleRowNodes(): RowNode[];
211
+ getVisibleRowNodes(): IRowNode[];
212
212
  /**
213
213
  * Retrieves all Row Nodes currently in the Grid (by default excluding the group rows)
214
214
  * @param config - configuration
215
215
  */
216
216
  getAllRowNodes(config?: {
217
217
  includeGroupRows?: boolean;
218
- filterFn?: (rowNode: RowNode) => boolean;
219
- }): RowNode[];
218
+ filterFn?: (rowNode: IRowNode) => boolean;
219
+ }): IRowNode[];
220
220
  /**
221
221
  * Retrieves Row Nodes that contain given Primary Keys
222
222
  * @param primaryKeyValues Primary Kev Values to look up
223
223
  */
224
- getRowNodesForPrimaryKeys(primaryKeyValues: any[]): RowNode[];
224
+ getRowNodesForPrimaryKeys(primaryKeyValues: any[]): IRowNode[];
225
225
  /**
226
226
  * Retrieves Row Node that contains given Primary Key
227
227
  * @param primaryKeyValue Primary Key Value to look up
228
228
  */
229
- getRowNodeForPrimaryKey(primaryKeyValue: any): RowNode;
229
+ getRowNodeForPrimaryKey(primaryKeyValue: any): IRowNode;
230
230
  /**
231
231
  * Retrieves the displayed RowNode at the given index
232
232
  * @param rowIndex row index
233
233
  */
234
- getRowNodeForIndex(rowIndex: number): RowNode | undefined;
234
+ getRowNodeForIndex(rowIndex: number): IRowNode | undefined;
235
235
  /**
236
236
  * Returns the Primary Kev Value for a given Row Node
237
237
  * @param rowNode rowNode to look up
238
238
  */
239
- getPrimaryKeyValueForRowNode(rowNode: RowNode): any;
239
+ getPrimaryKeyValueForRowNode(rowNode: IRowNode): any;
240
240
  /**
241
241
  * Returns the Primary Kev Values for a given Row Node collection
242
242
  * @param rowNode rowNodes to look up
243
243
  */
244
- getPrimaryKeyValuesForRowNodes(rowNodes: RowNode[]): any[];
244
+ getPrimaryKeyValuesForRowNodes(rowNodes: IRowNode[]): any[];
245
245
  /**
246
246
  * Retrieves Cell in given Row and Column
247
247
  * @param rowNode Row to use
248
248
  * @param columnId ColumnId to lookup
249
249
  */
250
- getGridCellFromRowNode(rowNode: RowNode, columnId: string): GridCell | undefined;
250
+ getGridCellFromRowNode(rowNode: IRowNode, columnId: string): GridCell | undefined;
251
251
  /**
252
252
  * Retrieves Display Value for a given cell
253
253
  * @param primaryKeyValue (unique) value in Primary Key Column
@@ -271,26 +271,26 @@ export interface GridApi {
271
271
  * @param rowNode Row to use
272
272
  * @param columnId ColumnId to lookup
273
273
  */
274
- getRawValueFromRowNode(rowNode: RowNode, columnId: string): any | undefined;
274
+ getRawValueFromRowNode(rowNode: IRowNode, columnId: string): any | undefined;
275
275
  /**
276
276
  * Retrieves Formatted Value for a given Raw Value in given Column
277
277
  * @param columnId ColumnId to lookup
278
278
  * @param rawValue Raw Value
279
279
  * @param rowNode Node containig the Column
280
280
  */
281
- getDisplayValueFromRawValue(rowNode: RowNode, columnId: string, rawValue: any): string | undefined;
281
+ getDisplayValueFromRawValue(rowNode: IRowNode, columnId: string, rawValue: any): string | undefined;
282
282
  /**
283
283
  * Retrieves Display Value for Cell in given Row and Column
284
284
  * @param rowNode Row to use
285
285
  * @param columnId ColumnId to lookup
286
286
  */
287
- getDisplayValueFromRowNode(rowNode: RowNode, columnId: string): any | undefined;
287
+ getDisplayValueFromRowNode(rowNode: IRowNode, columnId: string): any | undefined;
288
288
  /**
289
289
  * Retrieves Normalised Value for Cell in given Row and Column
290
290
  * @param rowNode Row to use
291
291
  * @param columnId ColumnId to lookup
292
292
  */
293
- getNormalisedValueFromRowNode(rowNode: RowNode, columnId: string): any | undefined;
293
+ getNormalisedValueFromRowNode(rowNode: IRowNode, columnId: string): any | undefined;
294
294
  /**
295
295
  * Sets the grid to Row Group
296
296
  * @param columnIds ColumnIds to row group
@@ -337,7 +337,7 @@ export interface GridApi {
337
337
  * Whether given Row Node is a Row Group
338
338
  * @param rowNode Node to check
339
339
  */
340
- isGroupRowNode(rowNode: RowNode): boolean;
340
+ isGroupRowNode(rowNode: IRowNode): boolean;
341
341
  /**
342
342
  * Whether Quick Filter is available in the Grid
343
343
  */
@@ -406,7 +406,7 @@ export interface GridApi {
406
406
  * @param rowNodes agGrid RowNodes which contain cells to refresh
407
407
  * @param columnIds ColumnIds which contain cells to refresh
408
408
  */
409
- refreshCells(rowNodes: RowNode[], columnIds: string[]): void;
409
+ refreshCells(rowNodes: IRowNode[], columnIds: string[]): void;
410
410
  /**
411
411
  * Forces a re-render of the row with the given primary key value
412
412
  * @param primaryKey row primary key
@@ -416,12 +416,12 @@ export interface GridApi {
416
416
  * Forces a re-render of the given row
417
417
  * @param rowNode ag-grid row
418
418
  */
419
- refreshRowNode(rowNode: RowNode): void;
419
+ refreshRowNode(rowNode: IRowNode): void;
420
420
  /**
421
421
  * Forces a re-render of the given rows
422
422
  * @param rowNodes ag-grid rows
423
423
  */
424
- refreshRowNodes(rowNodes: RowNode[]): void;
424
+ refreshRowNodes(rowNodes: IRowNode[]): void;
425
425
  /**
426
426
  * Returns number of rows in Data Source
427
427
  */
@@ -499,7 +499,7 @@ export interface GridApi {
499
499
  /**
500
500
  * @deprecated internal method, will be removed in next major release
501
501
  */
502
- fireGridDataChangedEvent(dataRows: any[], rowNodes: RowNode[], rowTrigger: 'Add' | 'Edit' | 'Delete'): void;
502
+ fireGridDataChangedEvent(dataRows: any[], rowNodes: IRowNode[], rowTrigger: 'Add' | 'Edit' | 'Delete'): void;
503
503
  /**
504
504
  * @deprecated use `openGridInfoSettingsPanel()` instead
505
505
  */
@@ -30,5 +30,6 @@ export declare class ChartingApiImpl extends ApiBase implements ChartingApi {
30
30
  }[];
31
31
  };
32
32
  getOpenChartContainer(chartDefinition: ChartDefinition): ChartContainer | null;
33
- setMakeReadOnly(chartDefinition: ChartDefinition): void;
33
+ setChartReadOnly(chartDefinition: ChartDefinition): void;
34
+ setChartEditable(chartDefinition: ChartDefinition): void;
34
35
  }
@@ -110,8 +110,11 @@ class ChartingApiImpl extends ApiBase_1.ApiBase {
110
110
  return containerElement.contains(chartRef.chartElement);
111
111
  })) !== null && _c !== void 0 ? _c : null);
112
112
  }
113
- setMakeReadOnly(chartDefinition) {
113
+ setChartReadOnly(chartDefinition) {
114
114
  this.dispatchAction(ChartingRedux.ChartingEditChart(Object.assign(Object.assign({}, chartDefinition), { IsReadOnly: true })));
115
115
  }
116
+ setChartEditable(chartDefinition) {
117
+ this.dispatchAction(ChartingRedux.ChartingEditChart(Object.assign(Object.assign({}, chartDefinition), { IsReadOnly: false })));
118
+ }
116
119
  }
117
120
  exports.ChartingApiImpl = ChartingApiImpl;
@@ -2,7 +2,7 @@ import { ApiBase } from './ApiBase';
2
2
  import { AdaptableColumn, AdaptableColumnDataType } from '../../PredefinedConfig/Common/AdaptableColumn';
3
3
  import { ColumnApi } from '../ColumnApi';
4
4
  import { GridCell } from '../../PredefinedConfig/Selection/GridCell';
5
- import { Column, RowNode } from '@ag-grid-community/core';
5
+ import { Column, IRowNode } from '@ag-grid-community/core';
6
6
  import { IAdaptable } from '../../AdaptableInterfaces/IAdaptable';
7
7
  import { ColumnInternalApi } from '../Internal/ColumnInternalApi';
8
8
  export declare class ColumnApiImpl extends ApiBase implements ColumnApi {
@@ -82,8 +82,8 @@ export declare class ColumnApiImpl extends ApiBase implements ColumnApi {
82
82
  getDistinctCustomSortDisplayValuesForColumn(columnId: string): Promise<any[]>;
83
83
  getDistinctBulkUpdateDisplayValuesForColumn(columnId: string, selectedGridCells: GridCell[]): Promise<any[]>;
84
84
  getDistinctVisibleDisplayValuesForColumn(columnId: string): any[];
85
- getDistinctRawValuesForColumn(columnId: string, skipRowNode?: RowNode): any[];
86
- getUnsortedDistinctRawValuesForColumn(columnId: string, skipRowNode?: RowNode): any[];
85
+ getDistinctRawValuesForColumn(columnId: string, skipRowNode?: IRowNode): any[];
86
+ getUnsortedDistinctRawValuesForColumn(columnId: string, skipRowNode?: IRowNode): any[];
87
87
  getDistinctVisibleRawValuesForColumn(columnId: string): any[];
88
88
  getPrimaryKeyColumn(): AdaptableColumn;
89
89
  getAllColumnFriendlyNames(): string[];
@@ -5,7 +5,7 @@ import { FilterApi } from '../FilterApi';
5
5
  import { AdaptablePredicateDef, ColumnFilterDef } from '../../PredefinedConfig/Common/AdaptablePredicate';
6
6
  import { AdaptableColumn } from '../../PredefinedConfig/Common/AdaptableColumn';
7
7
  import { ColumnFilter, GridCell } from '../../types';
8
- import { RowNode } from '@ag-grid-community/core';
8
+ import { IRowNode } from '@ag-grid-community/core';
9
9
  import { IAdaptable } from '../../AdaptableInterfaces/IAdaptable';
10
10
  import { FilterInternalApi } from '../Internal/FilterInternalApi';
11
11
  export declare class FilterApiImpl extends ApiBase implements FilterApi {
@@ -37,7 +37,7 @@ export declare class FilterApiImpl extends ApiBase implements FilterApi {
37
37
  createEqualityColumnFilterForCell(gridCell: GridCell): ColumnFilter | null;
38
38
  columnFilterToString(columnFilter: ColumnFilter): string;
39
39
  columnFiltersToString(columnFilters: ColumnFilter[]): string;
40
- evaluateColumnFilter(columnFilter: ColumnFilter, node: RowNode): boolean;
40
+ evaluateColumnFilter(columnFilter: ColumnFilter, node: IRowNode): boolean;
41
41
  private getColumnFilterById;
42
42
  /**
43
43
  * Checks if a filter is applied. It is applied when:
@@ -3,7 +3,7 @@ import { ApiBase, LayoutAssociatedObjectLoadConfig } from './ApiBase';
3
3
  import { FormatColumnApi } from '../FormatColumnApi';
4
4
  import { FormatColumn, FormatColumnState } from '../../PredefinedConfig/FormatColumnState';
5
5
  import { AdaptableColumn } from '../../PredefinedConfig/Common/AdaptableColumn';
6
- import { RowNode } from '@ag-grid-community/core';
6
+ import { IRowNode } from '@ag-grid-community/core';
7
7
  import { StringFormatterOptions } from '../../types';
8
8
  import { AdaptableObjectLookupCriteria, AdaptablePredicateDef, AdaptableScope, DateFormatterOptions, NumberFormatterOptions } from '../../../types';
9
9
  import { FormatColumnInternalApi } from '../Internal/FormatColumnInternalApi';
@@ -57,17 +57,17 @@ export declare class FormatColumnApiImpl extends ApiBase implements FormatColumn
57
57
  getFormatColumnsWithAllScope(formatColumns: FormatColumn[]): FormatColumn[] | undefined;
58
58
  getFormatColumnsWithDataTypeScope(formatColumns: FormatColumn[]): FormatColumn[] | undefined;
59
59
  getFormatColumnsWithColumnScope(formatColumns: FormatColumn[]): FormatColumn[] | undefined;
60
- getNumberFormattedValue(value: any, node: RowNode, abColumn: AdaptableColumn, options: NumberFormatterOptions): string;
61
- getStringFormattedValue(value: any, node: RowNode, abColumn: AdaptableColumn, options: StringFormatterOptions): string;
62
- getDateFormattedValue(value: any, node: RowNode, abColumn: AdaptableColumn, options: DateFormatterOptions): string;
60
+ getNumberFormattedValue(value: any, node: IRowNode, abColumn: AdaptableColumn, options: NumberFormatterOptions): string;
61
+ getStringFormattedValue(value: any, node: IRowNode, abColumn: AdaptableColumn, options: StringFormatterOptions): string;
62
+ getDateFormattedValue(value: any, node: IRowNode, abColumn: AdaptableColumn, options: DateFormatterOptions): string;
63
63
  hasCustomDisplayFormatter(formatColumn: FormatColumn): boolean;
64
64
  getFormatColumnDefsForScope(scope: AdaptableScope): AdaptablePredicateDef[];
65
65
  getFormatColumnsRelevantForColumn(formatColumns: FormatColumn[], column: AdaptableColumn, params: {
66
- node: RowNode;
66
+ node: IRowNode;
67
67
  value: any;
68
68
  }): FormatColumn[];
69
69
  isFormatColumnRelevantForColumn(formatColumn: FormatColumn, column: AdaptableColumn, params: {
70
- node: RowNode;
70
+ node: IRowNode;
71
71
  value: any;
72
72
  }): boolean;
73
73
  getFormatColumnsWithExpression(): FormatColumn[] | undefined;
@@ -2,7 +2,7 @@ import { ApiBase } from './ApiBase';
2
2
  import { FreeTextColumnApi } from '../FreeTextColumnApi';
3
3
  import { FreeTextColumn, FreeTextColumnState, FreeTextStoredValue } from '../../PredefinedConfig/FreeTextColumnState';
4
4
  import { CellDataChangedInfo } from '../../PredefinedConfig/Common/CellDataChangedInfo';
5
- import { RowNode } from '@ag-grid-community/core';
5
+ import { IRowNode } from '@ag-grid-community/core';
6
6
  import { IAdaptable } from '../../AdaptableInterfaces/IAdaptable';
7
7
  import { FreeTextColumnInternalApi } from '../Internal/FreeTextColumnInternalApi';
8
8
  export declare class FreeTextColumnApiImpl extends ApiBase implements FreeTextColumnApi {
@@ -22,8 +22,8 @@ export declare class FreeTextColumnApiImpl extends ApiBase implements FreeTextCo
22
22
  deleteFreeTextColumn(columnId: string): void;
23
23
  showFreeTextColumnPopup(): void;
24
24
  openFreeTextColumnSettingsPanel(): void;
25
- getFreeTextColumnValueFromRowNode(freeTextColumn: FreeTextColumn, rowNode: RowNode): any;
26
- getFreeTextColumnValueForRowNode(freeTextColumn: FreeTextColumn, rowNode: RowNode): any;
25
+ getFreeTextColumnValueFromRowNode(freeTextColumn: FreeTextColumn, rowNode: IRowNode): any;
26
+ getFreeTextColumnValueForRowNode(freeTextColumn: FreeTextColumn, rowNode: IRowNode): any;
27
27
  checkFreeTextColumnForDataChange(cellDataChangedInfo: CellDataChangedInfo): void;
28
28
  getFreeTextColumnModuleReferences(freeTextColumn: FreeTextColumn): string[];
29
29
  }
@@ -8,7 +8,7 @@ import { ColumnSort } from '../../PredefinedConfig/Common/ColumnSort';
8
8
  import { DataUpdateConfig } from '../../PredefinedConfig/Common/DataUpdateConfig';
9
9
  import { CellHighlightInfo } from '../../PredefinedConfig/Common/CellHighlightInfo';
10
10
  import { RowHighlightInfo } from '../../PredefinedConfig/Common/RowHighlightInfo';
11
- import { GridOptions, RowNode } from '@ag-grid-community/core';
11
+ import { GridOptions, IRowNode } from '@ag-grid-community/core';
12
12
  import { GridCellRange } from '../../PredefinedConfig/Selection/GridCellRange';
13
13
  import { CellDataChangedInfo } from '../../PredefinedConfig/Common/CellDataChangedInfo';
14
14
  import { AdaptableModule } from '../../PredefinedConfig/Common/Types';
@@ -24,10 +24,10 @@ export declare class GridApiImpl extends ApiBase implements GridApi {
24
24
  getGridData(): any[];
25
25
  getFilteredData(): any[];
26
26
  loadGridData(dataSource: any): void;
27
- updateGridData(dataRows: any[], dataUpdateConfig?: DataUpdateConfig): Promise<RowNode[]>;
28
- addGridData(dataRows: any[], dataUpdateConfig?: DataUpdateConfig): Promise<RowNode<any>[]>;
27
+ updateGridData(dataRows: any[], dataUpdateConfig?: DataUpdateConfig): Promise<IRowNode[]>;
28
+ addGridData(dataRows: any[], dataUpdateConfig?: DataUpdateConfig): Promise<IRowNode<any>[]>;
29
29
  undoCellEdit(cellDataChangedInfo: CellDataChangedInfo): boolean;
30
- deleteGridData(dataRows: any[], dataUpdateConfig?: DataUpdateConfig): Promise<RowNode[]>;
30
+ deleteGridData(dataRows: any[], dataUpdateConfig?: DataUpdateConfig): Promise<IRowNode[]>;
31
31
  setCellValue(columnId: string, newValue: any, primaryKeyValue: any): void;
32
32
  setCellsValue(gridCells: {
33
33
  columnId: any;
@@ -56,34 +56,34 @@ export declare class GridApiImpl extends ApiBase implements GridApi {
56
56
  private clearColumnSorts;
57
57
  selectRow(primaryKeyValue: any, clearSelection: boolean): void;
58
58
  selectRows(primaryKeyValues: any[], clearSelection: boolean): void;
59
- selectNode(rowNode: RowNode, clearSelection: boolean): void;
60
- selectNodes(rowNodes: RowNode[], clearSelection: boolean): void;
59
+ selectNode(rowNode: IRowNode, clearSelection: boolean): void;
60
+ selectNodes(rowNodes: IRowNode[], clearSelection: boolean): void;
61
61
  deSelectRow(primaryKeyValue: any, clearSelection: boolean): void;
62
62
  deSelectRows(primaryKeyValues: any[], clearSelection: boolean): void;
63
- deSelectNode(rowNode: RowNode, clearSelection: boolean): void;
64
- deSelectNodes(rowNodes: RowNode[], clearSelection: boolean): void;
63
+ deSelectNode(rowNode: IRowNode, clearSelection: boolean): void;
64
+ deSelectNodes(rowNodes: IRowNode[], clearSelection: boolean): void;
65
65
  private getSelectionStartEndNodes;
66
66
  selectCellRange(gridCellRange: GridCellRange, clearSelection?: boolean): void;
67
67
  selectCellRangeByQuery(query: string, gridCellRange?: GridCellRange, clearSelection?: boolean): void;
68
68
  selectColumn(columnId: string): void;
69
69
  selectColumns(columnIds: string[]): void;
70
- getFirstRowNode(): RowNode;
71
- getFirstDisplayedRowNode(): RowNode;
72
- getVisibleRowNodes(): RowNode[];
70
+ getFirstRowNode(): IRowNode;
71
+ getFirstDisplayedRowNode(): IRowNode;
72
+ getVisibleRowNodes(): IRowNode[];
73
73
  getAllRowNodes(config: {
74
74
  includeGroupRows?: boolean;
75
- filterFn?: (rowNode: RowNode) => boolean;
76
- }): RowNode[];
77
- getGridCellFromRowNode(rowNode: RowNode, columnId: string): GridCell | undefined;
78
- getRawValueFromRowNode(rowNode: RowNode, columnId: string): any | undefined;
79
- getDisplayValueFromRowNode(rowNode: RowNode, columnId: string): any | undefined;
80
- getDisplayValueFromRawValue(rowNode: RowNode, columnId: string, rawValue: any): string | undefined;
81
- getNormalisedValueFromRowNode(rowNode: RowNode, columnId: string): any | undefined;
82
- getRowNodesForPrimaryKeys(primaryKeyValues: any[]): RowNode[];
83
- getRowNodeForPrimaryKey(primaryKeyValue: any): RowNode;
84
- getPrimaryKeyValueForRowNode(rowNode: RowNode): any;
85
- getRowNodeForIndex(index: number): RowNode<any>;
86
- getPrimaryKeyValuesForRowNodes(rowNodes: RowNode[]): any[];
75
+ filterFn?: (rowNode: IRowNode) => boolean;
76
+ }): IRowNode[];
77
+ getGridCellFromRowNode(rowNode: IRowNode, columnId: string): GridCell | undefined;
78
+ getRawValueFromRowNode(rowNode: IRowNode, columnId: string): any | undefined;
79
+ getDisplayValueFromRowNode(rowNode: IRowNode, columnId: string): any | undefined;
80
+ getDisplayValueFromRawValue(rowNode: IRowNode, columnId: string, rawValue: any): string | undefined;
81
+ getNormalisedValueFromRowNode(rowNode: IRowNode, columnId: string): any | undefined;
82
+ getRowNodesForPrimaryKeys(primaryKeyValues: any[]): IRowNode[];
83
+ getRowNodeForPrimaryKey(primaryKeyValue: any): IRowNode;
84
+ getPrimaryKeyValueForRowNode(rowNode: IRowNode): any;
85
+ getRowNodeForIndex(index: number): IRowNode<any>;
86
+ getPrimaryKeyValuesForRowNodes(rowNodes: IRowNode[]): any[];
87
87
  setRowGroupColumns(columnIds: string[]): void;
88
88
  clearRowGroupColumns(): void;
89
89
  expandAllRowGroups(): void;
@@ -95,12 +95,12 @@ export declare class GridApiImpl extends ApiBase implements GridApi {
95
95
  isGridGroupable(): boolean;
96
96
  isGridSelectable(): boolean;
97
97
  isGridRowGrouped(): boolean;
98
- isGroupRowNode(rowNode: RowNode): boolean;
98
+ isGroupRowNode(rowNode: IRowNode): boolean;
99
99
  isQuickFilterAvailable(): boolean;
100
100
  redrawGrid(): void;
101
101
  fireGridSortedEvent(): void;
102
102
  fireCellChangedEvent(cellDataChangedInfo: CellDataChangedInfo): void;
103
- fireGridDataChangedEvent(dataRows: any[], rowNodes: RowNode[], rowTrigger: 'Add' | 'Edit' | 'Delete'): void;
103
+ fireGridDataChangedEvent(dataRows: any[], rowNodes: IRowNode[], rowTrigger: 'Add' | 'Edit' | 'Delete'): void;
104
104
  jumpToRow(primaryKeyValue: any): void;
105
105
  jumpToColumn(columnId: string): void;
106
106
  jumpToCell(primaryKeyValue: any, columnId: string): void;
@@ -112,16 +112,16 @@ export declare class GridApiImpl extends ApiBase implements GridApi {
112
112
  unHighlightRow(primaryKeyValue: RowHighlightInfo['primaryKeyValue']): void;
113
113
  unHighlightRows(primaryKeyValues: RowsHighlightInfo['primaryKeyValues']): void;
114
114
  unHighlightAllRows(): void;
115
- refreshCells(rowNodes: RowNode[], columnIds: string[]): void;
115
+ refreshCells(rowNodes: IRowNode[], columnIds: string[]): void;
116
116
  refreshRowByPrimaryKey(primaryKey: any): void;
117
- refreshRowNode(rowNode: RowNode): void;
118
- refreshRowNodes(rowNodes: RowNode[]): void;
117
+ refreshRowNode(rowNode: IRowNode): void;
118
+ refreshRowNodes(rowNodes: IRowNode[]): void;
119
119
  isCellEditable(gridCell: GridCell): boolean;
120
120
  areCellsEditable(gridCells: GridCell[]): boolean;
121
121
  isEveryCellEditable(gridCells: GridCell[]): boolean;
122
122
  getRowCount(): number;
123
123
  getVisibleRowCount(): number;
124
- getRowsInViewport(): RowNode[];
124
+ getRowsInViewport(): IRowNode[];
125
125
  getColumnCount(): number;
126
126
  getVisibleColumnCount(): number;
127
127
  getEntitlementAccessLevelForModule(adaptableModule: AdaptableModule): AccessLevel;
@@ -1,10 +1,10 @@
1
- import { RowNode } from '@ag-grid-community/core';
1
+ import { IRowNode } from '@ag-grid-community/core';
2
2
  import { AdaptableForm } from '../../PredefinedConfig/Common/AdaptableForm';
3
3
  import { CreateActionRowFormContext, EditActionRowFormContext } from '../../AdaptableOptions/ActionOptions';
4
4
  import { ApiBase } from '../Implementation/ApiBase';
5
5
  export declare class ActionInternalApi extends ApiBase {
6
- buildRowEditForm(rowNode: RowNode): AdaptableForm<EditActionRowFormContext>;
7
- buildRowCreateForm(clonedRowNode?: RowNode): AdaptableForm<CreateActionRowFormContext>;
6
+ buildRowEditForm(rowNode: IRowNode): AdaptableForm<EditActionRowFormContext>;
7
+ buildRowCreateForm(clonedRowNode?: IRowNode): AdaptableForm<CreateActionRowFormContext>;
8
8
  private get actionRowFormOptions();
9
9
  private get adaptableInstance();
10
10
  private buildActionRow;
@@ -17,7 +17,7 @@ import { IDataService } from '../../Utilities/Services/Interface/IDataService';
17
17
  import { IEntitlementService } from '../../Utilities/Services/Interface/IEntitlementService';
18
18
  import { IQueryLanguageService } from '../../Utilities/Services/Interface/IQueryLanguageService';
19
19
  import { IAlertService } from '../../Utilities/Services/Interface/IAlertService';
20
- import { RowNode } from '@ag-grid-community/core';
20
+ import { IRowNode } from '@ag-grid-community/core';
21
21
  import { ITeamSharingService } from '../../Utilities/Services/Interface/ITeamSharingService';
22
22
  import { ButtonStyle } from '../../PredefinedConfig/Common/ButtonStyle';
23
23
  import { AdaptableButton } from '../../PredefinedConfig/Common/AdaptableButton';
@@ -77,8 +77,8 @@ export declare class AdaptableInternalApi extends ApiBase {
77
77
  getRowEditService(): IRowEditService;
78
78
  getModules(): IModuleCollection;
79
79
  getModuleFriendlyName(adaptableModule: AdaptableModule): string;
80
- forAllRowNodesDo(func: (rowNode: RowNode) => void): void;
81
- forAllVisibleRowNodesDo(func: (rowNode: RowNode) => void): void;
80
+ forAllRowNodesDo(func: (rowNode: IRowNode) => void): void;
81
+ forAllVisibleRowNodesDo(func: (rowNode: IRowNode) => void): void;
82
82
  getLabelForButton(button: AdaptableButton<BaseContext>, context: BaseContext): string | undefined;
83
83
  getTooltipForButton(button: AdaptableButton<BaseContext>, context: BaseContext): string | undefined;
84
84
  getStyleForButton(button: AdaptableButton<BaseContext>, context: BaseContext): ButtonStyle | undefined;
@@ -10,7 +10,7 @@ import { AdaptablePredicateDef } from '../../PredefinedConfig/Common/AdaptablePr
10
10
  import { AdaptableMessageType } from '../../PredefinedConfig/Common/AdaptableMessageType';
11
11
  import { AdaptableButton } from '../../PredefinedConfig/Common/AdaptableButton';
12
12
  import { ButtonStyle } from '../../PredefinedConfig/Common/ButtonStyle';
13
- import { RowNode } from '@ag-grid-community/core';
13
+ import { IRowNode } from '@ag-grid-community/core';
14
14
  export declare class AlertInternalApi extends ApiBase {
15
15
  /**
16
16
  * Retrieves the Adaptable Form with the given name
@@ -136,8 +136,8 @@ export declare class AlertInternalApi extends ApiBase {
136
136
  getAdaptableAlerts(): AdaptableAlert[];
137
137
  getAdaptableCellChangedAlerts(): AdaptableCellChangedAlert[];
138
138
  getAdaptableRowChangedAlerts(): AdaptableRowChangedAlert[];
139
- getAdaptableAlertWithHighlightCell(columnId: string, rowNode: RowNode): AdaptableAlert | undefined;
140
- getAdaptableAlertWithHighlightRow(rowNode: RowNode): AdaptableAlert | undefined;
139
+ getAdaptableAlertWithHighlightCell(columnId: string, rowNode: IRowNode): AdaptableAlert | undefined;
140
+ getAdaptableAlertWithHighlightRow(rowNode: IRowNode): AdaptableAlert | undefined;
141
141
  isAlertDefinitionForAddedRowChangeEvent(alertDefinition: AlertDefinition): boolean;
142
142
  isAlertDefinitionForRemovedRowChangeEvent(alertDefinition: AlertDefinition): boolean;
143
143
  getAlertDefinitionsForCellDataChange(dataChangedEvent: CellDataChangedInfo): AlertDefinition[];
@@ -3,7 +3,7 @@ import { AdaptableColumn } from '../../PredefinedConfig/Common/AdaptableColumn';
3
3
  import { AdaptablePredicateDef } from '../../PredefinedConfig/Common/AdaptablePredicate';
4
4
  import { GridCell } from '../../PredefinedConfig/Selection/GridCell';
5
5
  import { ColumnFilter } from '../../PredefinedConfig/Common/ColumnFilter';
6
- import { RowNode } from '@ag-grid-community/core';
6
+ import { IRowNode } from '@ag-grid-community/core';
7
7
  import { LayoutColumnFilterAction } from '../../Redux/ActionsReducers/LayoutRedux';
8
8
  import * as Redux from 'redux';
9
9
  export declare class FilterInternalApi extends ApiBase {
@@ -38,7 +38,7 @@ export declare class FilterInternalApi extends ApiBase {
38
38
  * @param columnFilter Column Filter to use
39
39
  * @param node Row Node to evaluate
40
40
  */
41
- evaluateColumnFilter(columnFilter: ColumnFilter, node: RowNode): boolean;
41
+ evaluateColumnFilter(columnFilter: ColumnFilter, node: IRowNode): boolean;
42
42
  /**
43
43
  * Checks if the filter action should trigger grid filtering.
44
44
  *
@@ -1,6 +1,6 @@
1
1
  import { AdaptableColumn, AdaptableFormat, AdaptablePredicateDef, AdaptableScope, FormatColumn, StringFormatterOptions } from '../../types';
2
2
  import { ApiBase } from '../Implementation/ApiBase';
3
- import { RowNode } from '@ag-grid-community/core';
3
+ import { IRowNode } from '@ag-grid-community/core';
4
4
  export declare class FormatColumnInternalApi extends ApiBase {
5
5
  /**
6
6
  * Retrieves all Format Columns in Adaptable State with the `Style` property set
@@ -56,21 +56,21 @@ export declare class FormatColumnInternalApi extends ApiBase {
56
56
  * @param customDisplayFormatterContext context that includes value to format
57
57
  * @param options formatter options
58
58
  */
59
- getNumberFormattedValue(value: any, node: RowNode, abColumn: AdaptableColumn, options: AdaptableFormat['Options']): any;
59
+ getNumberFormattedValue(value: any, node: IRowNode, abColumn: AdaptableColumn, options: AdaptableFormat['Options']): any;
60
60
  /**
61
61
  * Format value according to format options.
62
62
  *
63
63
  * @param value context that includes value to format
64
64
  * @param options formatter options
65
65
  */
66
- getStringFormattedValue(value: any, node: RowNode, abColumn: AdaptableColumn, options: StringFormatterOptions): string;
66
+ getStringFormattedValue(value: any, node: IRowNode, abColumn: AdaptableColumn, options: StringFormatterOptions): string;
67
67
  /**
68
68
  * Format value according to format options.
69
69
  *
70
70
  * @param customDisplayFormatterContext context that includes value to format
71
71
  * @param options formatter options
72
72
  */
73
- getDateFormattedValue(value: any, node: RowNode, abColumn: AdaptableColumn, options: AdaptableFormat['Options']): string;
73
+ getDateFormattedValue(value: any, node: IRowNode, abColumn: AdaptableColumn, options: AdaptableFormat['Options']): string;
74
74
  private applyCustomFormatters;
75
75
  /**
76
76
  * Returns all Predicates appropriate for the given Scope
@@ -85,7 +85,7 @@ export declare class FormatColumnInternalApi extends ApiBase {
85
85
  * @param params
86
86
  */
87
87
  isFormatColumnRelevantForColumn(formatColumn: FormatColumn, column: AdaptableColumn, params: {
88
- node: RowNode;
88
+ node: IRowNode;
89
89
  value: any;
90
90
  }): boolean;
91
91
  private evaluatePredicate;
@@ -98,7 +98,7 @@ export declare class FormatColumnInternalApi extends ApiBase {
98
98
  * @param params
99
99
  */
100
100
  getFormatColumnsRelevantForColumn(formatColumns: FormatColumn[], column: AdaptableColumn, params: {
101
- node: RowNode;
101
+ node: IRowNode;
102
102
  value: any;
103
103
  }): FormatColumn[];
104
104
  /**
@@ -109,7 +109,7 @@ export declare class FormatColumnInternalApi extends ApiBase {
109
109
  * @param params
110
110
  */
111
111
  getMostRelevantFormatColumnForColumn(formatColumns: FormatColumn[], column: AdaptableColumn, params: {
112
- node: RowNode;
112
+ node: IRowNode;
113
113
  value: any;
114
114
  }): FormatColumn | undefined;
115
115
  /**
@@ -1,6 +1,6 @@
1
1
  import { ApiBase } from '../Implementation/ApiBase';
2
2
  import { CellDataChangedInfo } from '../../PredefinedConfig/Common/CellDataChangedInfo';
3
- import { RowNode } from '@ag-grid-community/core';
3
+ import { IRowNode } from '@ag-grid-community/core';
4
4
  import { GridCell } from '../../PredefinedConfig/Selection/GridCell';
5
5
  import { AdaptableColumn } from '../../PredefinedConfig/Common/AdaptableColumn';
6
6
  import { SelectedCellInfo } from '../../PredefinedConfig/Selection/SelectedCellInfo';
@@ -19,7 +19,7 @@ export declare class GridInternalApi extends ApiBase {
19
19
  /**
20
20
  * Fires Grid Data Changed Event - when a row has changed in AG Grid
21
21
  */
22
- fireGridDataChangedEvent(dataRows: any[], rowNodes: RowNode[], rowTrigger: 'Add' | 'Edit' | 'Delete'): void;
22
+ fireGridDataChangedEvent(dataRows: any[], rowNodes: IRowNode[], rowTrigger: 'Add' | 'Edit' | 'Delete'): void;
23
23
  /**
24
24
  * Gets all distinct display values in the Column with the given ColumnId
25
25
  * @param columnId Column to check
@@ -58,13 +58,13 @@ export declare class GridInternalApi extends ApiBase {
58
58
  * @param columnId Column to check
59
59
  * @param skipRowNode optional RowNode which should be skipped when collecting the distinct rawValues
60
60
  */
61
- getDistinctRawValuesForColumn(columnId: string, skipRowNode?: RowNode): any[];
61
+ getDistinctRawValuesForColumn(columnId: string, skipRowNode?: IRowNode): any[];
62
62
  /**
63
63
  * Gets all distinct raw values in Column. Values are un-sorted.
64
64
  * @param columnId Column to check
65
65
  * @param skipRowNode optional RowNode which should be skipped when collecting the distinct rawValues
66
66
  */
67
- getUnsortedDistinctRawValuesForColumn(columnId: string, skipRowNode?: RowNode): any[];
67
+ getUnsortedDistinctRawValuesForColumn(columnId: string, skipRowNode?: IRowNode): any[];
68
68
  /**
69
69
  * Gets all distinct visible raw values in the Column
70
70
  * @param columnId Column to check
@@ -1,7 +1,7 @@
1
1
  import { ApiBase } from '../Implementation/ApiBase';
2
2
  import { AdaptableColumn } from '../../PredefinedConfig/Common/AdaptableColumn';
3
3
  import { CellColorRange, ColumnComparison, NumericStyledColumn, StyledColumn } from '../../PredefinedConfig/StyledColumnState';
4
- import { RowNode } from '@ag-grid-community/core/dist/cjs/es5/entities/rowNode';
4
+ import { IRowNode } from '@ag-grid-community/core';
5
5
  export declare class StyledColumnInternalApi extends ApiBase {
6
6
  getMinValueForNumericColumn(column: AdaptableColumn): number | undefined;
7
7
  getMaxValueForNumericColumn(column: AdaptableColumn): number | undefined;
@@ -11,7 +11,7 @@ export declare class StyledColumnInternalApi extends ApiBase {
11
11
  * @param rowNode current Row Node
12
12
  * @param cellValue current Cell Value
13
13
  */
14
- getNumericStyleMinValue(styledColumn: Omit<StyledColumn, 'ColumnId'>, column: AdaptableColumn, rowNode: RowNode, cellValue: any): number;
14
+ getNumericStyleMinValue(styledColumn: Omit<StyledColumn, 'ColumnId'>, column: AdaptableColumn, rowNode: IRowNode, cellValue: any): number;
15
15
  /**
16
16
  * Returns last range that matches the cell value.
17
17
  *
@@ -27,7 +27,7 @@ export declare class StyledColumnInternalApi extends ApiBase {
27
27
  * @param rowNode current Row Node
28
28
  * @param cellValue current Cell Value
29
29
  */
30
- getNumericStyleMaxValue(styledColumn: Omit<StyledColumn, 'ColumnId'>, column: AdaptableColumn, rowNode: RowNode, cellValue: any): number;
30
+ getNumericStyleMaxValue(styledColumn: Omit<StyledColumn, 'ColumnId'>, column: AdaptableColumn, rowNode: IRowNode, cellValue: any): number;
31
31
  /**
32
32
  * Returns the smallest number in a Range
33
33
  * @param range Range to check