@adaptabletools/adaptable 14.1.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 +200 -215
- 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/ChartingOptions.d.ts +6 -0
- package/src/AdaptableOptions/UserInterfaceOptions.d.ts +2 -2
- package/src/Api/ChartingApi.d.ts +12 -8
- package/src/Api/ColumnApi.d.ts +3 -3
- package/src/Api/DashboardApi.d.ts +4 -6
- package/src/Api/Events/ActionRowSubmitted.d.ts +4 -4
- package/src/Api/Events/ChartChanged.d.ts +30 -1
- package/src/Api/Events/DashboardChanged.d.ts +8 -0
- 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 -0
- package/src/Api/Implementation/ChartingApiImpl.js +6 -0
- package/src/Api/Implementation/ColumnApiImpl.d.ts +3 -3
- package/src/Api/Implementation/DashboardApiImpl.d.ts +0 -1
- package/src/Api/Implementation/DashboardApiImpl.js +3 -18
- 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/Implementation/StyledColumnApiImpl.d.ts +2 -0
- package/src/Api/Implementation/StyledColumnApiImpl.js +6 -0
- package/src/Api/Implementation/ThemeApiImpl.js +4 -1
- 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/DashboardInternalApi.d.ts +1 -0
- package/src/Api/Internal/DashboardInternalApi.js +28 -3
- package/src/Api/Internal/ExportInternalApi.d.ts +1 -0
- package/src/Api/Internal/ExportInternalApi.js +6 -0
- 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/LayoutInternalApi.d.ts +1 -0
- package/src/Api/Internal/LayoutInternalApi.js +7 -0
- package/src/Api/Internal/StyledColumnInternalApi.d.ts +3 -3
- package/src/Api/StyledColumnApi.d.ts +10 -0
- 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/AlertRedux.d.ts +14 -0
- package/src/Redux/ActionsReducers/AlertRedux.js +23 -1
- package/src/Redux/ActionsReducers/CustomSortRedux.d.ts +14 -0
- package/src/Redux/ActionsReducers/CustomSortRedux.js +23 -1
- package/src/Redux/ActionsReducers/FlashingCellRedux.d.ts +15 -1
- package/src/Redux/ActionsReducers/FlashingCellRedux.js +23 -1
- package/src/Redux/ActionsReducers/FormatColumnRedux.d.ts +14 -0
- package/src/Redux/ActionsReducers/FormatColumnRedux.js +26 -1
- package/src/Redux/ActionsReducers/GridRedux.d.ts +3 -3
- package/src/Redux/ActionsReducers/PlusMinusRedux.d.ts +14 -0
- package/src/Redux/ActionsReducers/PlusMinusRedux.js +23 -1
- package/src/Redux/ActionsReducers/ScheduleRedux.d.ts +70 -0
- package/src/Redux/ActionsReducers/ScheduleRedux.js +112 -2
- package/src/Redux/ActionsReducers/ShortcutRedux.d.ts +14 -0
- package/src/Redux/ActionsReducers/ShortcutRedux.js +23 -1
- package/src/Redux/ActionsReducers/StyledColumnRedux.d.ts +14 -0
- package/src/Redux/ActionsReducers/StyledColumnRedux.js +23 -1
- package/src/Redux/ActionsReducers/utils.d.ts +2 -0
- package/src/Redux/ActionsReducers/utils.js +20 -2
- package/src/Redux/Store/AdaptableStore.js +45 -4
- package/src/Strategy/AlertModule.js +2 -0
- package/src/Strategy/CustomSortModule.d.ts +2 -0
- package/src/Strategy/CustomSortModule.js +2 -0
- package/src/Strategy/FlashingCellModule.js +2 -0
- package/src/Strategy/FormatColumnModule.js +2 -0
- package/src/Strategy/PlusMinusModule.js +2 -0
- package/src/Strategy/ShortcutModule.js +2 -0
- package/src/Strategy/StyledColumnModule.js +2 -0
- package/src/Utilities/Defaults/DefaultAdaptableOptions.js +1 -0
- 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/AlertService.d.ts +2 -0
- package/src/Utilities/Services/AlertService.js +6 -0
- package/src/Utilities/Services/CalculatedColumnExpressionService.d.ts +2 -2
- package/src/Utilities/Services/Interface/IAlertService.d.ts +2 -0
- 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/Utilities/license/hashing.js +1 -1
- package/src/Utilities/logDeprecation.d.ts +1 -1
- package/src/View/Alert/Wizard/AlertMessageWizardSection.js +2 -2
- package/src/View/Charting/ShowChartButton.js +3 -2
- package/src/View/Charting/useChartingElements.js +6 -5
- package/src/View/Components/Popups/AdaptablePopup/AdaptablePopupModuleView.js +22 -1
- package/src/View/DataChangeHistory/buildActionColumnButton.d.ts +2 -2
- package/src/View/Export/ExportSelector.js +1 -0
- package/src/View/Export/ExportViewPanel.js +1 -0
- package/src/View/Export/ReportExportDropdown.js +1 -0
- package/src/View/Theme/ThemePopup.d.ts +0 -3
- package/src/View/Theme/ThemePopup.js +1 -9
- package/src/View/Theme/ThemeViewPanel.js +4 -3
- 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.d.ts +36 -0
- package/src/metamodel/adaptable.metamodel.js +1 -1
- package/src/types.d.ts +2 -2
- package/version.d.ts +1 -1
- package/version.js +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@adaptabletools/adaptable",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "15.0.0-canary.1",
|
|
4
4
|
"description": "Powerful data-agnostic HTML5 AG Grid extension which provides advanced, cutting-edge functionality to meet all DataGrid requirements",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"web-components",
|
|
@@ -56,6 +56,6 @@
|
|
|
56
56
|
"uuid": "^3.3.2"
|
|
57
57
|
},
|
|
58
58
|
"peerDependencies": {
|
|
59
|
-
"@ag-grid-community/core": ">=
|
|
59
|
+
"@ag-grid-community/core": ">=29.0.0"
|
|
60
60
|
}
|
|
61
61
|
}
|
package/publishTimestamp.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const _default:
|
|
1
|
+
declare const _default: 1675780258346;
|
|
2
2
|
export default _default;
|
package/publishTimestamp.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ChartModel, ChartRef, Column, GridOptions, ModuleNames,
|
|
1
|
+
import { ChartModel, ChartRef, Column, GridOptions, ModuleNames, IRowNode } from '@ag-grid-community/core';
|
|
2
2
|
import { AdaptableApi } from '../Api/AdaptableApi';
|
|
3
3
|
import { AdaptableColumn } from '../PredefinedConfig/Common/AdaptableColumn';
|
|
4
4
|
import { ColumnSort } from '../PredefinedConfig/Common/ColumnSort';
|
|
@@ -126,23 +126,23 @@ export interface IAdaptable {
|
|
|
126
126
|
redrawBody(): void;
|
|
127
127
|
redrawRenderedRows(): void;
|
|
128
128
|
redrawHeader(): void;
|
|
129
|
-
redrawRow(rowNode:
|
|
130
|
-
redrawRows(rowNodes:
|
|
131
|
-
refreshCells(rowNodes:
|
|
129
|
+
redrawRow(rowNode: IRowNode): void;
|
|
130
|
+
redrawRows(rowNodes: IRowNode[]): void;
|
|
131
|
+
refreshCells(rowNodes: IRowNode[], columns: (string | any)[], forceUpdate: boolean, suppressFlash?: boolean): void;
|
|
132
132
|
refreshColumns(columns: (string | Column)[], forceUpdate: boolean, suppressFlash?: boolean): void;
|
|
133
133
|
setSelectedCells(): SelectedCellInfo | undefined;
|
|
134
134
|
setSelectedRows(): SelectedRowInfo | undefined;
|
|
135
|
-
jumpToRow(rowNode:
|
|
135
|
+
jumpToRow(rowNode: IRowNode): void;
|
|
136
136
|
jumpToColumn(columnId: string): void;
|
|
137
|
-
jumpToCell(columnId: string, rowNode:
|
|
137
|
+
jumpToCell(columnId: string, rowNode: IRowNode): void;
|
|
138
138
|
getAgGridContainerElement(): HTMLElement | null;
|
|
139
139
|
setDataSource(dataSource: any): void;
|
|
140
140
|
getGridData(): any[];
|
|
141
141
|
getFilteredData(): any[];
|
|
142
142
|
loadDataSource(dataSource: any): void;
|
|
143
|
-
updateRows(dataRows: any[], dataUpdateConfig?: DataUpdateConfig): Promise<
|
|
144
|
-
addRows(dataRows: any[], dataUpdateConfig?: DataUpdateConfig): Promise<
|
|
145
|
-
deleteRows(dataRows: any[], dataUpdateConfig?: DataUpdateConfig): Promise<
|
|
143
|
+
updateRows(dataRows: any[], dataUpdateConfig?: DataUpdateConfig): Promise<IRowNode[]>;
|
|
144
|
+
addRows(dataRows: any[], dataUpdateConfig?: DataUpdateConfig): Promise<IRowNode[]>;
|
|
145
|
+
deleteRows(dataRows: any[], dataUpdateConfig?: DataUpdateConfig): Promise<IRowNode[]>;
|
|
146
146
|
selectColumn(columnId: string, config?: {
|
|
147
147
|
keepExistingSelection?: boolean;
|
|
148
148
|
}): void;
|
|
@@ -158,60 +158,60 @@ export interface IAdaptable {
|
|
|
158
158
|
autoSizeAllColumns(): void;
|
|
159
159
|
updateColumnsIntoStore(): void;
|
|
160
160
|
setColumnOrder(visibleColumnList: string[]): void;
|
|
161
|
-
getPrimaryKeyValueFromRowNode(rowNode:
|
|
161
|
+
getPrimaryKeyValueFromRowNode(rowNode: IRowNode): any;
|
|
162
162
|
getColumnValueDisplayValuePairList(columnId: string, visibleRowsOnly: boolean, onlyIncludeIds?: {
|
|
163
163
|
[key: string]: boolean;
|
|
164
164
|
}): any[];
|
|
165
|
-
getDistinctValuesForColumn(column: AdaptableColumn, visibleRowsOnly: boolean, skipRowNode?:
|
|
166
|
-
getDistinctFilterValuesForColumn(column: AdaptableColumn, visibleRowsOnly: boolean, filter: string, skipRowNode?:
|
|
165
|
+
getDistinctValuesForColumn(column: AdaptableColumn, visibleRowsOnly: boolean, skipRowNode?: IRowNode): GridCell[];
|
|
166
|
+
getDistinctFilterValuesForColumn(column: AdaptableColumn, visibleRowsOnly: boolean, filter: string, skipRowNode?: IRowNode): Promise<{
|
|
167
167
|
gridCells: GridCell[];
|
|
168
168
|
suppressClientSideFilter?: boolean;
|
|
169
169
|
}>;
|
|
170
|
-
getDistinctCustomSortValuesForColumn(column: AdaptableColumn, visibleRowsOnly: boolean, skipRowNode?:
|
|
171
|
-
getDistinctBulkUpdateValuesForColumn(column: AdaptableColumn, visibleRowsOnly: boolean, selectedGridCells: GridCell[], skipRowNode?:
|
|
170
|
+
getDistinctCustomSortValuesForColumn(column: AdaptableColumn, visibleRowsOnly: boolean, skipRowNode?: IRowNode): Promise<GridCell[]>;
|
|
171
|
+
getDistinctBulkUpdateValuesForColumn(column: AdaptableColumn, visibleRowsOnly: boolean, selectedGridCells: GridCell[], skipRowNode?: IRowNode): Promise<GridCell[]>;
|
|
172
172
|
getDisplayValue(id: any, columnId: string): string | undefined;
|
|
173
|
-
getGridCellFromRowNode(rowNode:
|
|
174
|
-
getRawValueFromRowNode(rowNode:
|
|
175
|
-
getDisplayValueFromRowNode(rowNode:
|
|
176
|
-
getDisplayValueFromRawValue(rowNode:
|
|
173
|
+
getGridCellFromRowNode(rowNode: IRowNode, columnId: string): GridCell | undefined;
|
|
174
|
+
getRawValueFromRowNode(rowNode: IRowNode, columnId: string): any;
|
|
175
|
+
getDisplayValueFromRowNode(rowNode: IRowNode, columnId: string): string | undefined;
|
|
176
|
+
getDisplayValueFromRawValue(rowNode: IRowNode, columnId: string, rawValue: any): string | undefined;
|
|
177
177
|
getNormalisedValueFromRawValue(rawValue: any, column: AdaptableColumn): string | number | boolean | Date | unknown;
|
|
178
|
-
getDataRowFromRowNode(rowNode:
|
|
179
|
-
getRowNodesForPrimaryKeys(primaryKeyValues: any[]):
|
|
180
|
-
getRowNodeForPrimaryKey(primaryKeyValue: any):
|
|
181
|
-
getRowNodeByIndex(index: number):
|
|
178
|
+
getDataRowFromRowNode(rowNode: IRowNode): any;
|
|
179
|
+
getRowNodesForPrimaryKeys(primaryKeyValues: any[]): IRowNode[];
|
|
180
|
+
getRowNodeForPrimaryKey(primaryKeyValue: any): IRowNode;
|
|
181
|
+
getRowNodeByIndex(index: number): IRowNode;
|
|
182
182
|
getAgGridStatusPanels(): GridOptions['statusBar']['statusPanels'];
|
|
183
183
|
forPlugins(callback: (plugin: AdaptablePlugin) => any): void;
|
|
184
184
|
lookupPlugins(propertyName: string, ...args: any): any;
|
|
185
185
|
getPluginProperty(pluginId: string, propertyName: string, ...args: any): any;
|
|
186
186
|
getPlugin(pluginId: string): AdaptablePlugin;
|
|
187
|
-
setDataValue(value: any, column: AdaptableColumn, primaryKeyValue: any, rowNode?:
|
|
187
|
+
setDataValue(value: any, column: AdaptableColumn, primaryKeyValue: any, rowNode?: IRowNode): void;
|
|
188
188
|
setCellValue(cellDataChangedInfo: CellDataChangedInfo): void;
|
|
189
189
|
cancelEdit(): any;
|
|
190
|
-
isCellEditable(rowNode:
|
|
191
|
-
getFirstRowNode():
|
|
192
|
-
getFirstDisplayedRowNode():
|
|
193
|
-
forAllRowNodesDo(func: (rowNode:
|
|
190
|
+
isCellEditable(rowNode: IRowNode, column: Column): boolean;
|
|
191
|
+
getFirstRowNode(): IRowNode;
|
|
192
|
+
getFirstDisplayedRowNode(): IRowNode;
|
|
193
|
+
forAllRowNodesDo(func: (rowNode: IRowNode) => void, config?: {
|
|
194
194
|
includeGroupRows?: boolean;
|
|
195
|
-
filterFn?: (rowNode:
|
|
195
|
+
filterFn?: (rowNode: IRowNode) => boolean;
|
|
196
196
|
}): void;
|
|
197
|
-
forAllVisibleRowNodesDo(func: (rowNode:
|
|
198
|
-
getVisibleRowNodes():
|
|
197
|
+
forAllVisibleRowNodesDo(func: (rowNode: IRowNode) => void): void;
|
|
198
|
+
getVisibleRowNodes(): IRowNode[];
|
|
199
199
|
getAllRowNodes(config?: {
|
|
200
200
|
includeGroupRows?: boolean;
|
|
201
|
-
filterFn?: (rowNode:
|
|
202
|
-
}):
|
|
203
|
-
getRowsInViewport():
|
|
204
|
-
isGroupRowNode(rowNode:
|
|
205
|
-
isVisibleNode(rowNode:
|
|
206
|
-
selectNodes(rowNodes:
|
|
207
|
-
deSelectNodes(rowNodes:
|
|
208
|
-
selectNode(rowNode:
|
|
209
|
-
deSelectNode(rowNode:
|
|
210
|
-
selectCells(columnIds: string[], startNode:
|
|
201
|
+
filterFn?: (rowNode: IRowNode) => boolean;
|
|
202
|
+
}): IRowNode[];
|
|
203
|
+
getRowsInViewport(): IRowNode[];
|
|
204
|
+
isGroupRowNode(rowNode: IRowNode): boolean;
|
|
205
|
+
isVisibleNode(rowNode: IRowNode): boolean;
|
|
206
|
+
selectNodes(rowNodes: IRowNode[], clearSelection: boolean): void;
|
|
207
|
+
deSelectNodes(rowNodes: IRowNode[], clearSelection: boolean): void;
|
|
208
|
+
selectNode(rowNode: IRowNode, clearSelection: boolean): void;
|
|
209
|
+
deSelectNode(rowNode: IRowNode, clearSelection: boolean): void;
|
|
210
|
+
selectCells(columnIds: string[], startNode: IRowNode, endNode: IRowNode, clearSelection?: boolean): void;
|
|
211
211
|
getFirstGroupedColumn(): AdaptableColumn | undefined;
|
|
212
|
-
isRowNodeVisible(rowNode:
|
|
212
|
+
isRowNodeVisible(rowNode: IRowNode): boolean;
|
|
213
213
|
getAgGridColumnType(columnId: string): string | string[];
|
|
214
|
-
getActiveColumnComparator(columnId: string, customSort?: CustomSort, customSortComparer?: ColumnValuesComparer): (valueA: any, valueB: any, nodeA?:
|
|
214
|
+
getActiveColumnComparator(columnId: string, customSort?: CustomSort, customSortComparer?: ColumnValuesComparer): (valueA: any, valueB: any, nodeA?: IRowNode, nodeB?: IRowNode, isInverted?: boolean) => number | undefined;
|
|
215
215
|
setColumnSort(columnSorts: ColumnSort[]): void;
|
|
216
216
|
clearColumnSort(): void;
|
|
217
217
|
hideFilterForm(): void;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { IRowNode } from '@ag-grid-community/core';
|
|
2
2
|
import { ActionRowSubmittedInfo, ActionRowType, AdaptableButton, AdaptableColumn, AdaptableObject, BaseContext, FormContext } from '../types';
|
|
3
3
|
/**
|
|
4
4
|
* Options related to Action Columns and Buttons in Adaptable.
|
|
@@ -66,7 +66,7 @@ export interface ActionColumnContext extends BaseContext {
|
|
|
66
66
|
/**
|
|
67
67
|
* Current AG Grid Row Node
|
|
68
68
|
*/
|
|
69
|
-
rowNode:
|
|
69
|
+
rowNode: IRowNode;
|
|
70
70
|
/**
|
|
71
71
|
* The current row's data
|
|
72
72
|
*/
|
|
@@ -172,7 +172,7 @@ export interface CreateActionRowFormContext extends FormContext {
|
|
|
172
172
|
/**
|
|
173
173
|
* The RowNode being cloned
|
|
174
174
|
*/
|
|
175
|
-
clonedRowNode?:
|
|
175
|
+
clonedRowNode?: IRowNode;
|
|
176
176
|
}
|
|
177
177
|
/**
|
|
178
178
|
* Context used in an Edit Row Form
|
|
@@ -185,14 +185,14 @@ export interface EditActionRowFormContext extends FormContext {
|
|
|
185
185
|
/**
|
|
186
186
|
* The RowNode being edited
|
|
187
187
|
*/
|
|
188
|
-
rowNode:
|
|
188
|
+
rowNode: IRowNode;
|
|
189
189
|
}
|
|
190
190
|
/**
|
|
191
191
|
* Context used for overriding Title and Description of Action Row Form
|
|
192
192
|
*/
|
|
193
193
|
export interface ActionRowParamContext extends BaseContext {
|
|
194
194
|
type: Extract<ActionRowType, 'rowEdited' | 'rowCreated'>;
|
|
195
|
-
rowNode?:
|
|
195
|
+
rowNode?: IRowNode;
|
|
196
196
|
}
|
|
197
197
|
/**
|
|
198
198
|
* Context used for overriding Field elements in Action Row Form
|
|
@@ -12,6 +12,12 @@ export interface ChartingOptions {
|
|
|
12
12
|
* Locations to display saved Charts
|
|
13
13
|
*/
|
|
14
14
|
chartContainers?: ChartContainer[];
|
|
15
|
+
/**
|
|
16
|
+
* Name of the ag-grid window container.
|
|
17
|
+
*
|
|
18
|
+
* @default 'Ag Grid Window'
|
|
19
|
+
*/
|
|
20
|
+
agGridContainerName?: string;
|
|
15
21
|
}
|
|
16
22
|
/**
|
|
17
23
|
* Describes Location to display an AG Grid Chart
|
|
@@ -5,7 +5,7 @@ import { AdaptableColumn } from '../PredefinedConfig/Common/AdaptableColumn';
|
|
|
5
5
|
import { AdaptableObjectTag } from '../PredefinedConfig/Common/AdaptableObject';
|
|
6
6
|
import { AdaptableStyle } from '../PredefinedConfig/Common/AdaptableStyle';
|
|
7
7
|
import { BaseContext, GridCell } from '../../types';
|
|
8
|
-
import {
|
|
8
|
+
import { IRowNode } from '@ag-grid-community/core';
|
|
9
9
|
/**
|
|
10
10
|
* Options for managing the User Interface of AdapTable
|
|
11
11
|
*/
|
|
@@ -228,5 +228,5 @@ export interface CustomDisplayFormatterContext extends BaseContext {
|
|
|
228
228
|
/**
|
|
229
229
|
* Node where Custom Display Format will apply
|
|
230
230
|
*/
|
|
231
|
-
rowNode:
|
|
231
|
+
rowNode: IRowNode;
|
|
232
232
|
}
|
package/src/Api/ChartingApi.d.ts
CHANGED
|
@@ -1,12 +1,6 @@
|
|
|
1
1
|
import { ChartModel, ChartRef } from '@ag-grid-community/core';
|
|
2
2
|
import { ChartContainer, ChartDefinition } from '../types';
|
|
3
|
-
|
|
4
|
-
charts: {
|
|
5
|
-
chartDefinition: ChartDefinition;
|
|
6
|
-
isOpen: boolean;
|
|
7
|
-
containerName: string | null;
|
|
8
|
-
}[];
|
|
9
|
-
}
|
|
3
|
+
import { ChartingOpenState } from './Events/ChartChanged';
|
|
10
4
|
/**
|
|
11
5
|
* Provides run-time access to Charting Module and related State
|
|
12
6
|
*/
|
|
@@ -63,8 +57,8 @@ export interface ChartingApi {
|
|
|
63
57
|
closeChartDefinition(chartDefinition: ChartDefinition): void;
|
|
64
58
|
/**
|
|
65
59
|
* Displays a Chart; if Chart is already open, 2nd Chart is not opened
|
|
66
|
-
*
|
|
67
60
|
* @param chartDefinition Chart Definition to show
|
|
61
|
+
* @param container Container in which to display the Chart
|
|
68
62
|
*/
|
|
69
63
|
showChartDefinitionOnce(chartDefinition: ChartDefinition, container?: HTMLElement): ChartRef;
|
|
70
64
|
/**
|
|
@@ -72,6 +66,16 @@ export interface ChartingApi {
|
|
|
72
66
|
* @param chartDefinition Chart Definition to edit
|
|
73
67
|
*/
|
|
74
68
|
editChartDefinition(chartDefinition: ChartDefinition): void;
|
|
69
|
+
/**
|
|
70
|
+
* Marks chart as readonly
|
|
71
|
+
* @param chartDefinition charting definition
|
|
72
|
+
*/
|
|
73
|
+
setChartReadOnly(chartDefinition: ChartDefinition): void;
|
|
74
|
+
/**
|
|
75
|
+
* Marks chart as editable (NOT readonly)
|
|
76
|
+
* @param chartDefinition charting definition
|
|
77
|
+
*/
|
|
78
|
+
setChartEditable(chartDefinition: ChartDefinition): void;
|
|
75
79
|
/**
|
|
76
80
|
* Add new Chart Definition
|
|
77
81
|
* @param chartDefinition Chart Definition to add
|
package/src/Api/ColumnApi.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Column,
|
|
1
|
+
import { Column, IRowNode } from '@ag-grid-community/core';
|
|
2
2
|
import { AdaptableColumn, AdaptableColumnDataType, GridCell } from '../../types';
|
|
3
3
|
/**
|
|
4
4
|
* Provides run-time access to Adaptable Column related features
|
|
@@ -334,11 +334,11 @@ export interface ColumnApi {
|
|
|
334
334
|
/**
|
|
335
335
|
* @deprecated internal method, will be removed in next major release
|
|
336
336
|
*/
|
|
337
|
-
getDistinctRawValuesForColumn(columnId: string, skipRowNode?:
|
|
337
|
+
getDistinctRawValuesForColumn(columnId: string, skipRowNode?: IRowNode): any[];
|
|
338
338
|
/**
|
|
339
339
|
* @deprecated internal method, will be removed in next major release
|
|
340
340
|
*/
|
|
341
|
-
getUnsortedDistinctRawValuesForColumn(columnId: string, skipRowNode?:
|
|
341
|
+
getUnsortedDistinctRawValuesForColumn(columnId: string, skipRowNode?: IRowNode): any[];
|
|
342
342
|
/**
|
|
343
343
|
* @deprecated internal method, will be removed in next major release
|
|
344
344
|
*/
|
|
@@ -114,12 +114,6 @@ export interface DashboardApi {
|
|
|
114
114
|
* @param tabName the tab to check
|
|
115
115
|
*/
|
|
116
116
|
getTabByName(tabName: string): DashboardTab;
|
|
117
|
-
/**
|
|
118
|
-
* Has a custom toolbar become visible or
|
|
119
|
-
* @param dashboardChangedInfo Info raised by Dashboard Changed Event
|
|
120
|
-
* @param customToolbarName Custom toolbar to check
|
|
121
|
-
*/
|
|
122
|
-
hasCustomToolbarChanged(dashboardChangedInfo: DashboardChangedInfo, customToolbarName: string): 'hidden' | 'visible' | 'none';
|
|
123
117
|
/**
|
|
124
118
|
* Is Dashboard Collapsed
|
|
125
119
|
*/
|
|
@@ -155,4 +149,8 @@ export interface DashboardApi {
|
|
|
155
149
|
* @deprecated internal method, will be removed in next major release
|
|
156
150
|
*/
|
|
157
151
|
fireDashboardChangedEvent(trigger: string, oldState: DashboardState, newState: DashboardState): void;
|
|
152
|
+
/**
|
|
153
|
+
* @deprecated use instead the information which is passed in the `DashboardChanged` event payload
|
|
154
|
+
*/
|
|
155
|
+
hasCustomToolbarChanged(dashboardChangedInfo: DashboardChangedInfo, customToolbarName: string): 'hidden' | 'visible' | 'none';
|
|
158
156
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { BaseEventInfo } from './BaseEventInfo';
|
|
2
2
|
import { AdaptableFormData } from '../../PredefinedConfig/Common/AdaptableForm';
|
|
3
|
-
import {
|
|
3
|
+
import { IRowNode } from '@ag-grid-community/core';
|
|
4
4
|
/**
|
|
5
5
|
* Info passed into ActionRowSubmitted Event - can be `CreatedActionRowInfo` or `EditedActionRowInfo` or `DeletedActionRowInfo`
|
|
6
6
|
*/
|
|
@@ -24,7 +24,7 @@ export interface CreatedActionRowInfo extends BaseEventInfo {
|
|
|
24
24
|
/**
|
|
25
25
|
* Node being cloned
|
|
26
26
|
*/
|
|
27
|
-
clonedRowNode?:
|
|
27
|
+
clonedRowNode?: IRowNode;
|
|
28
28
|
}
|
|
29
29
|
/**
|
|
30
30
|
* Info passed into ActionRowSubmitted Event for Edited Rows
|
|
@@ -41,7 +41,7 @@ export interface EditedActionRowInfo extends BaseEventInfo {
|
|
|
41
41
|
/**
|
|
42
42
|
* Node being edited
|
|
43
43
|
*/
|
|
44
|
-
rowNode:
|
|
44
|
+
rowNode: IRowNode;
|
|
45
45
|
}
|
|
46
46
|
/**
|
|
47
47
|
* Info passed into ActionRowSubmitted Event for Deleted Rows
|
|
@@ -54,5 +54,5 @@ export interface DeletedActionRowInfo extends BaseEventInfo {
|
|
|
54
54
|
/**
|
|
55
55
|
* Node being deleted
|
|
56
56
|
*/
|
|
57
|
-
rowNode:
|
|
57
|
+
rowNode: IRowNode;
|
|
58
58
|
}
|
|
@@ -1,8 +1,37 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ChartDefinition } from '../../types';
|
|
2
2
|
import { BaseEventInfo } from './BaseEventInfo';
|
|
3
3
|
/**
|
|
4
4
|
* Info used in Chart Changed Event
|
|
5
5
|
*/
|
|
6
6
|
export interface ChartChangedInfo extends BaseEventInfo {
|
|
7
|
+
/**
|
|
8
|
+
* Details of Open Charts
|
|
9
|
+
*/
|
|
7
10
|
chartingOpenState: ChartingOpenState;
|
|
8
11
|
}
|
|
12
|
+
/**
|
|
13
|
+
* Currently opened Charts
|
|
14
|
+
*/
|
|
15
|
+
export interface ChartingOpenState {
|
|
16
|
+
/**
|
|
17
|
+
* Displayed Charts
|
|
18
|
+
*/
|
|
19
|
+
charts: ChartDisplayedInfo[];
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* Defines a Displayed Chart
|
|
23
|
+
*/
|
|
24
|
+
export interface ChartDisplayedInfo {
|
|
25
|
+
/**
|
|
26
|
+
* Definition of the Chart
|
|
27
|
+
*/
|
|
28
|
+
chartDefinition: ChartDefinition;
|
|
29
|
+
/**
|
|
30
|
+
* Whether Chart is Open
|
|
31
|
+
*/
|
|
32
|
+
isOpen: boolean;
|
|
33
|
+
/**
|
|
34
|
+
* Container where Chart is displayed
|
|
35
|
+
*/
|
|
36
|
+
containerName: string | null;
|
|
37
|
+
}
|
|
@@ -16,4 +16,12 @@ export interface DashboardChangedInfo extends BaseEventInfo {
|
|
|
16
16
|
* Current Dashboard State
|
|
17
17
|
*/
|
|
18
18
|
newDashboardState: DashboardState;
|
|
19
|
+
/**
|
|
20
|
+
* Check if given Toolbar was just changed to visible state
|
|
21
|
+
*/
|
|
22
|
+
isToolbarStateChangedToVisible(toolbarName: string): boolean;
|
|
23
|
+
/**
|
|
24
|
+
* Check if given Toolbar was just changed to hidden state
|
|
25
|
+
*/
|
|
26
|
+
isToolbarStateChangedToHidden(toolbarName: string): boolean;
|
|
19
27
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { IRowNode } from '@ag-grid-community/core';
|
|
2
2
|
import { BaseEventInfo } from './BaseEventInfo';
|
|
3
3
|
/**
|
|
4
4
|
* EventInfo returned by GridDataChanged event
|
|
@@ -19,5 +19,5 @@ export interface GridDataChangedInfo extends BaseEventInfo {
|
|
|
19
19
|
/**
|
|
20
20
|
* Row Nodes that were affected by this change
|
|
21
21
|
*/
|
|
22
|
-
rowNodes:
|
|
22
|
+
rowNodes: IRowNode[];
|
|
23
23
|
}
|
package/src/Api/FilterApi.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { AdaptableColumn, ColumnFilter, GridCell } from '../types';
|
|
2
2
|
import * as Redux from 'redux';
|
|
3
3
|
import { AdaptablePredicateDef, ColumnFilterDef } from '../PredefinedConfig/Common/AdaptablePredicate';
|
|
4
|
-
import {
|
|
4
|
+
import { IRowNode } from '@ag-grid-community/core';
|
|
5
5
|
import { LayoutColumnFilterAction } from '../Redux/ActionsReducers/LayoutRedux';
|
|
6
6
|
/**
|
|
7
7
|
* Provides run-time access to Filter section of Adaptable State.
|
|
@@ -164,7 +164,7 @@ export interface FilterApi {
|
|
|
164
164
|
/**
|
|
165
165
|
* @deprecated internal method, will be removed in next major release
|
|
166
166
|
*/
|
|
167
|
-
evaluateColumnFilter(columnFilter: ColumnFilter, node:
|
|
167
|
+
evaluateColumnFilter(columnFilter: ColumnFilter, node: IRowNode): boolean;
|
|
168
168
|
/**
|
|
169
169
|
* @deprecated internal method, will be removed in next major release
|
|
170
170
|
*/
|
package/src/Api/FinanceApi.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { IRowNode } from '@ag-grid-community/core';
|
|
2
2
|
import { ContactColumn, ContactIntent, CountryColumn, CustomFDC3Column, CustomFDC3Intent, FDC3Intent, FinancePluginOptions, InstrumentColumn, InstrumentIntent, OrganizationColumn, PositionColumn, PositionIntent } from '../AdaptableOptions/FinancePluginOptions';
|
|
3
3
|
import { ContactContext, ContactListContext, ContextData, CountryContext, FDC3Context, InstrumentContext, InstrumentListContext, OrganizationContext, PortfolioContext, PositionContext } from '../types';
|
|
4
4
|
/**
|
|
@@ -15,56 +15,56 @@ export interface FinanceApi {
|
|
|
15
15
|
* @param rowNode Row Node to use for Context Data
|
|
16
16
|
* @param data custom Context Data
|
|
17
17
|
*/
|
|
18
|
-
createFDC3InstrumentContext(instrumentColumn: InstrumentColumn, rowNode:
|
|
18
|
+
createFDC3InstrumentContext(instrumentColumn: InstrumentColumn, rowNode: IRowNode, data?: ContextData): InstrumentContext;
|
|
19
19
|
/**
|
|
20
20
|
* Creates FDC3 Instrumentlist Context
|
|
21
21
|
* @param instrumentColumn Instrument Column to create Context For
|
|
22
22
|
* @param rowNode Row Nodes to use for Context Data
|
|
23
23
|
* @param data custom Context Data
|
|
24
24
|
*/
|
|
25
|
-
createFDC3InstrumentListContext(instrumentColumn: InstrumentColumn, rowNodes:
|
|
25
|
+
createFDC3InstrumentListContext(instrumentColumn: InstrumentColumn, rowNodes: IRowNode[], data?: ContextData): InstrumentListContext;
|
|
26
26
|
/**
|
|
27
27
|
* Creates FDC3 Position Context
|
|
28
28
|
* @param instrumentColumn Position Column to create Context For
|
|
29
29
|
* @param rowNode Row Node to use for Context Data
|
|
30
30
|
* @param data custom Context Data
|
|
31
31
|
*/
|
|
32
|
-
createFDC3PositionContext(positionColumn: PositionColumn, rowNode:
|
|
32
|
+
createFDC3PositionContext(positionColumn: PositionColumn, rowNode: IRowNode, data?: ContextData): PositionContext;
|
|
33
33
|
/**
|
|
34
34
|
* Creates FDC3 Portfolio Context
|
|
35
35
|
* @param instrumentColumn Position Column to create Context For
|
|
36
36
|
* @param rowNode Row Nodes to use for Context Data
|
|
37
37
|
* @param data custom Context Data
|
|
38
38
|
*/
|
|
39
|
-
createFDC3PortfolioContext(positionColumn: PositionColumn, rowNodes:
|
|
39
|
+
createFDC3PortfolioContext(positionColumn: PositionColumn, rowNodes: IRowNode[], data?: ContextData): PortfolioContext;
|
|
40
40
|
/**
|
|
41
41
|
* Creates FDC3 Contact Context
|
|
42
42
|
* @param instrumentColumn Contact Column to create Context For
|
|
43
43
|
* @param rowNode Row Node to use for Context Data
|
|
44
44
|
* @param data custom Context Data
|
|
45
45
|
*/
|
|
46
|
-
createFDC3ContactContext(contactColumn: ContactColumn, rowNode:
|
|
46
|
+
createFDC3ContactContext(contactColumn: ContactColumn, rowNode: IRowNode, data?: ContextData): ContactContext;
|
|
47
47
|
/**
|
|
48
48
|
* Creates FDC3 Contact List Context
|
|
49
49
|
* @param instrumentColumn Contact Column to create Context For
|
|
50
50
|
* @param rowNode Row Nodes to use for Context Data
|
|
51
51
|
* @param data custom Context Data
|
|
52
52
|
*/
|
|
53
|
-
createFDC3ContactListContext(contactColumn: ContactColumn, rowNodes:
|
|
53
|
+
createFDC3ContactListContext(contactColumn: ContactColumn, rowNodes: IRowNode[], data?: ContextData): ContactListContext;
|
|
54
54
|
/**
|
|
55
55
|
* Creates FDC3 Organization Context
|
|
56
56
|
* @param instrumentColumn Organization Column to create Context For
|
|
57
57
|
* @param rowNode Row Node to use for Context Data
|
|
58
58
|
* @param data custom Context Data
|
|
59
59
|
*/
|
|
60
|
-
createFDC3OrganizationContext(organizationColumn: OrganizationColumn, rowNode:
|
|
60
|
+
createFDC3OrganizationContext(organizationColumn: OrganizationColumn, rowNode: IRowNode, data?: ContextData): OrganizationContext;
|
|
61
61
|
/**
|
|
62
62
|
* Creates FDC3 Country Context
|
|
63
63
|
* @param instrumentColumn Country Column to create Context For
|
|
64
64
|
* @param rowNode Row Node to use for Context Data
|
|
65
65
|
* @param data custom Context Data
|
|
66
66
|
*/
|
|
67
|
-
createFDC3CountryContext(countryColumn: CountryColumn, rowNode:
|
|
67
|
+
createFDC3CountryContext(countryColumn: CountryColumn, rowNode: IRowNode, data?: ContextData): CountryContext;
|
|
68
68
|
/**
|
|
69
69
|
* Gets Instrument Column with given Id
|
|
70
70
|
* @param instrumentColumnId Column to Look
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { FormatColumn, FormatColumnState } from '../PredefinedConfig/FormatColumnState';
|
|
2
2
|
import { AdaptableColumn, AdaptableFormat, AdaptableObjectLookupCriteria, AdaptablePredicateDef, AdaptableScope } from '../types';
|
|
3
|
-
import {
|
|
3
|
+
import { IRowNode } from '@ag-grid-community/core';
|
|
4
4
|
/**
|
|
5
5
|
* Provides run-time access to the Format Column Module and associated state
|
|
6
6
|
*/
|
|
@@ -169,15 +169,15 @@ export interface FormatColumnApi {
|
|
|
169
169
|
/**
|
|
170
170
|
* @deprecated internal method, will be removed in next major release
|
|
171
171
|
*/
|
|
172
|
-
getNumberFormattedValue(value: any, node:
|
|
172
|
+
getNumberFormattedValue(value: any, node: IRowNode, abColumn: AdaptableColumn, options: AdaptableFormat['Options']): any;
|
|
173
173
|
/**
|
|
174
174
|
* @deprecated internal method, will be removed in next major release
|
|
175
175
|
*/
|
|
176
|
-
getStringFormattedValue(value: any, node:
|
|
176
|
+
getStringFormattedValue(value: any, node: IRowNode, abColumn: AdaptableColumn, options: AdaptableFormat['Options']): string;
|
|
177
177
|
/**
|
|
178
178
|
* @deprecated internal method, will be removed in next major release
|
|
179
179
|
*/
|
|
180
|
-
getDateFormattedValue(value: any, node:
|
|
180
|
+
getDateFormattedValue(value: any, node: IRowNode, abColumn: AdaptableColumn, options: AdaptableFormat['Options']): string;
|
|
181
181
|
/**
|
|
182
182
|
* @deprecated internal method, will be removed in next major release
|
|
183
183
|
*/
|
|
@@ -186,14 +186,14 @@ export interface FormatColumnApi {
|
|
|
186
186
|
* @deprecated internal method, will be removed in next major release
|
|
187
187
|
*/
|
|
188
188
|
isFormatColumnRelevantForColumn(formatColumn: FormatColumn, column: AdaptableColumn, params: {
|
|
189
|
-
node:
|
|
189
|
+
node: IRowNode;
|
|
190
190
|
value: any;
|
|
191
191
|
}): boolean;
|
|
192
192
|
/**
|
|
193
193
|
* @deprecated internal method, will be removed in next major release
|
|
194
194
|
*/
|
|
195
195
|
getFormatColumnsRelevantForColumn(formatColumns: FormatColumn[], column: AdaptableColumn, params: {
|
|
196
|
-
node:
|
|
196
|
+
node: IRowNode;
|
|
197
197
|
value: any;
|
|
198
198
|
}): FormatColumn[];
|
|
199
199
|
/**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { FreeTextColumn, FreeTextColumnState, FreeTextStoredValue } from '../PredefinedConfig/FreeTextColumnState';
|
|
2
2
|
import { CellDataChangedInfo } from '../PredefinedConfig/Common/CellDataChangedInfo';
|
|
3
|
-
import {
|
|
3
|
+
import { IRowNode } from '@ag-grid-community/core';
|
|
4
4
|
/**
|
|
5
5
|
* Provides run-time access to FreeTextColumn Module and associated state
|
|
6
6
|
*/
|
|
@@ -69,7 +69,7 @@ export interface FreeTextColumnApi {
|
|
|
69
69
|
* @param freeTextColumn column to lookup
|
|
70
70
|
* @param rowNode row to lookup
|
|
71
71
|
*/
|
|
72
|
-
getFreeTextColumnValueForRowNode(freeTextColumn: FreeTextColumn, rowNode:
|
|
72
|
+
getFreeTextColumnValueForRowNode(freeTextColumn: FreeTextColumn, rowNode: IRowNode): any;
|
|
73
73
|
/**
|
|
74
74
|
* Opens Settings Panel with Free Text Column section selected and visible
|
|
75
75
|
*/
|
|
@@ -92,7 +92,7 @@ export interface FreeTextColumnApi {
|
|
|
92
92
|
/**
|
|
93
93
|
* @deprecated use `getFreeTextColumnValueForRowNode()` instead
|
|
94
94
|
*/
|
|
95
|
-
getFreeTextColumnValueFromRowNode(freeTextColumn: FreeTextColumn, rowNode:
|
|
95
|
+
getFreeTextColumnValueFromRowNode(freeTextColumn: FreeTextColumn, rowNode: IRowNode): any;
|
|
96
96
|
/**
|
|
97
97
|
* @deprecated internal method, will be removed in next major release
|
|
98
98
|
*/
|