@adaptabletools/adaptable 10.0.4-canary.1 → 10.0.4-canary.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE.md +1 -1
- package/README.md +1 -1
- package/base.css +16 -6
- package/bundle.cjs.js +350 -0
- package/index.css +20 -6
- package/package.json +1 -5
- package/publishTimestamp.d.ts +1 -1
- package/publishTimestamp.js +1 -1
- package/src/AdaptableInterfaces/AdaptableNoCodeWizard.d.ts +1 -1
- package/src/AdaptableInterfaces/IAdaptable.d.ts +14 -12
- package/src/AdaptableOptions/AdaptableOptions.d.ts +3 -3
- package/src/AdaptableOptions/ContainerOptions.d.ts +4 -5
- package/src/AdaptableOptions/DataChangeHistoryOptions.d.ts +1 -1
- package/src/AdaptableOptions/DateInputOptions.d.ts +5 -1
- package/src/AdaptableOptions/EditOptions.d.ts +2 -3
- package/src/AdaptableOptions/FilterOptions.d.ts +8 -8
- package/src/AdaptableOptions/GeneralOptions.d.ts +3 -2
- package/src/AdaptableOptions/MenuOptions.d.ts +11 -11
- package/src/AdaptableOptions/NotificationsOptions.d.ts +8 -0
- package/src/AdaptableOptions/ToolPanelOptions.d.ts +2 -2
- package/src/AdaptableOptions/UserInterfaceOptions.d.ts +3 -3
- package/src/Api/AdaptableApi.d.ts +12 -12
- package/src/Api/ColumnApi.d.ts +10 -5
- package/src/Api/EventApi.d.ts +1 -1
- package/src/Api/Events/AdaptableReady.d.ts +3 -2
- package/src/Api/GridApi.d.ts +10 -10
- package/src/Api/Implementation/ColumnApiImpl.d.ts +4 -3
- package/src/Api/Implementation/ColumnApiImpl.js +11 -9
- package/src/Api/Implementation/ConfigApiImpl.js +0 -24
- package/src/Api/Implementation/GridApiImpl.d.ts +2 -2
- package/src/Api/Implementation/GridApiImpl.js +3 -4
- package/src/Api/Implementation/InternalApiImpl.d.ts +1 -1
- package/src/Api/Implementation/InternalApiImpl.js +2 -2
- package/src/Api/Implementation/LayoutApiImpl.d.ts +2 -0
- package/src/Api/Implementation/LayoutApiImpl.js +15 -0
- package/src/Api/Implementation/PluginsApiImpl.d.ts +2 -2
- package/src/Api/Implementation/PluginsApiImpl.js +1 -1
- package/src/Api/Implementation/ScheduleApiImpl.js +6 -6
- package/src/Api/Implementation/ToolPanelApiImpl.js +1 -1
- package/src/Api/Implementation/UserInterfaceApiImpl.d.ts +3 -3
- package/src/Api/Implementation/UserInterfaceApiImpl.js +4 -4
- package/src/Api/InternalApi.d.ts +1 -1
- package/src/Api/LayoutApi.d.ts +7 -0
- package/src/Api/PluginsApi.d.ts +1 -7
- package/src/Api/TeamSharingApi.d.ts +1 -1
- package/src/Api/ThemeApi.d.ts +2 -2
- package/src/Api/UserInterfaceApi.d.ts +3 -3
- package/src/PredefinedConfig/AdaptableState.d.ts +2 -10
- package/src/PredefinedConfig/AlertState.d.ts +1 -1
- package/src/PredefinedConfig/ApplicationState.d.ts +1 -1
- package/src/PredefinedConfig/CalculatedColumnState.d.ts +1 -1
- package/src/PredefinedConfig/Common/AdaptableColumn.d.ts +3 -3
- package/src/PredefinedConfig/Common/AdaptablePredicate.d.ts +4 -4
- package/src/PredefinedConfig/Common/AdaptableStyle.d.ts +7 -7
- package/src/PredefinedConfig/Common/DataChangedInfo.d.ts +1 -1
- package/src/PredefinedConfig/Common/Menu.d.ts +40 -17
- package/src/PredefinedConfig/Common/SpecialColumnSettings.d.ts +1 -1
- package/src/PredefinedConfig/Common/Types.d.ts +5 -5
- package/src/PredefinedConfig/Common/Types.js +9 -7
- package/src/PredefinedConfig/ConditionalStyleState.d.ts +1 -1
- package/src/PredefinedConfig/CustomSortState.d.ts +1 -1
- package/src/PredefinedConfig/DataSourceState.d.ts +1 -1
- package/src/PredefinedConfig/ExportState.d.ts +3 -3
- package/src/PredefinedConfig/FilterState.d.ts +2 -2
- package/src/PredefinedConfig/FormatColumnState.d.ts +1 -1
- package/src/PredefinedConfig/FreeTextColumnState.d.ts +1 -1
- package/src/PredefinedConfig/LayoutState.d.ts +1 -1
- package/src/PredefinedConfig/PredefinedConfig.d.ts +0 -40
- package/src/PredefinedConfig/QuickSearchState.d.ts +3 -3
- package/src/PredefinedConfig/ScheduleState.d.ts +1 -1
- package/src/PredefinedConfig/ThemeState.d.ts +5 -1
- package/src/Redux/ActionsReducers/DashboardRedux.js +2 -1
- package/src/Redux/ActionsReducers/GridRedux.d.ts +3 -2
- package/src/Redux/ActionsReducers/GridRedux.js +2 -2
- package/src/Redux/ActionsReducers/LayoutRedux.d.ts +12 -2
- package/src/Redux/ActionsReducers/LayoutRedux.js +24 -1
- package/src/Redux/DeadRedux.d.ts +4 -8
- package/src/Redux/Store/AdaptableReduxLocalStorageEngine.js +6 -1
- package/src/Redux/Store/AdaptableStore.d.ts +3 -3
- package/src/Redux/Store/AdaptableStore.js +18 -13
- package/src/Strategy/AdaptableModuleBase.d.ts +2 -2
- package/src/Strategy/AlertModule.d.ts +2 -2
- package/src/Strategy/AlertModule.js +1 -94
- package/src/Strategy/BulkUpdateModule.d.ts +2 -2
- package/src/Strategy/BulkUpdateModule.js +4 -4
- package/src/Strategy/CellSummaryModule.d.ts +2 -2
- package/src/Strategy/DashboardModule.d.ts +2 -2
- package/src/Strategy/DataChangeHistoryModule.js +2 -2
- package/src/Strategy/ExportModule.d.ts +2 -2
- package/src/Strategy/FilterModule.d.ts +2 -2
- package/src/Strategy/FormatColumnModule.js +1 -1
- package/src/Strategy/GridInfoModule.d.ts +2 -2
- package/src/Strategy/Interface/IModule.d.ts +2 -2
- package/src/Strategy/LayoutModule.d.ts +2 -2
- package/src/Strategy/LayoutModule.js +21 -8
- package/src/Strategy/SmartEditModule.d.ts +2 -2
- package/src/Strategy/SmartEditModule.js +3 -4
- package/src/Strategy/SystemStatusModule.d.ts +2 -2
- package/src/Utilities/Constants/GeneralConstants.d.ts +1 -0
- package/src/Utilities/Constants/GeneralConstants.js +2 -1
- package/src/Utilities/Constants/ModuleConstants.d.ts +6 -6
- package/src/Utilities/Constants/ModuleConstants.js +7 -7
- package/src/Utilities/Defaults/DefaultAdaptableOptions.js +8 -7
- package/src/Utilities/Helpers/PreviewHelper.js +2 -2
- package/src/Utilities/Interface/Preview.d.ts +2 -1
- package/src/Utilities/Services/LicenseService.js +16 -2
- package/src/Utilities/Services/ValidationService.js +1 -1
- package/src/View/AdaptableViewFactory.d.ts +2 -1
- package/src/View/AdaptableViewFactory.js +2 -0
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/ConfigurationForm.js +7 -7
- package/src/View/CellSummary/CellSummaryViewPanel.js +2 -2
- package/src/View/Components/FilterForm/FilterForm.js +5 -7
- package/src/View/Components/FilterForm/ListBoxFilterForm.d.ts +1 -1
- package/src/View/Components/FilterForm/ListBoxFilterForm.js +7 -7
- package/src/View/Components/FilterForm/QuickFilterForm.js +3 -5
- package/src/View/Components/Panels/FilterFormPanel.d.ts +1 -1
- package/src/View/Components/Panels/PanelWithImage.d.ts +423 -1
- package/src/View/Components/Popups/AdaptablePopupAlert.js +22 -9
- package/src/View/Components/ToolPanel/AdaptableToolPanel.js +3 -4
- package/src/View/Components/ToolPanel/ToolPanelPopup.js +2 -3
- package/src/View/CustomSort/CustomSortEntityRow.d.ts +3 -1
- package/src/View/CustomSort/CustomSortEntityRow.js +3 -3
- package/src/View/CustomSort/CustomSortPopup.js +1 -1
- package/src/View/CustomSort/Wizard/CustomSortColumnWizardSection.js +1 -1
- package/src/View/Dashboard/Dashboard.js +3 -3
- package/src/View/DataChangeHistory/DataChangeHistoryGrid.d.ts +1 -1
- package/src/View/DataChangeHistory/DataChangeHistoryGrid.js +6 -5
- package/src/View/DataChangeHistory/DataChangeHistoryPopup.js +6 -6
- package/src/View/Export/ExportViewPanel.js +6 -6
- package/src/View/GridInfo/GridOptionsComponent.js +1 -1
- package/src/View/Layout/LayoutViewPanel.js +2 -2
- package/src/View/Query/QueryViewPanel.js +1 -1
- package/src/View/QuickSearch/useQuickSearchDebounced.js +2 -3
- package/src/View/Schedule/SchedulePopup.js +3 -3
- package/src/View/Schedule/Wizard/ScheduleSettingsWizard/ScheduleSettingsWizard.js +1 -1
- package/src/View/SmartEdit/SmartEditPopup.js +1 -1
- package/src/View/StateManagement/StateManagementPopup.d.ts +2 -12
- package/src/View/StateManagement/StateManagementPopup.js +21 -114
- package/src/View/StateManagement/StateManagementViewPanel.d.ts +5 -0
- package/src/View/StateManagement/StateManagementViewPanel.js +22 -0
- package/src/View/StateManagement/components/ClearButton.d.ts +6 -0
- package/src/View/StateManagement/components/ClearButton.js +9 -0
- package/src/View/StateManagement/components/ExportDropdown.d.ts +8 -0
- package/src/View/StateManagement/components/ExportDropdown.js +43 -0
- package/src/View/StateManagement/components/LoadButton.d.ts +7 -0
- package/src/View/StateManagement/components/LoadButton.js +38 -0
- package/src/View/StateManagement/handleExportState.d.ts +1 -0
- package/src/View/StateManagement/handleExportState.js +22 -0
- package/src/View/Theme/ThemeViewPanel.js +1 -1
- package/src/agGrid/Adaptable.d.ts +9 -8
- package/src/agGrid/Adaptable.js +99 -78
- package/src/agGrid/agGridHelper.d.ts +4 -4
- package/src/agGrid/agGridHelper.js +15 -16
- package/src/agGrid/agGridMenuHelper.d.ts +15 -13
- package/src/agGrid/agGridMenuHelper.js +53 -45
- package/src/agGrid/editors/AdaptableDateEditor/InternalAdaptableDateEditor.d.ts +1 -1
- package/src/agGrid/editors/AdaptableDateEditor/InternalAdaptableDateEditor.js +11 -6
- package/src/agGrid/editors/AdaptableDateEditor/index.d.ts +3 -2
- package/src/agGrid/editors/AdaptableDateEditor/index.js +16 -6
- package/src/agGrid/editors/AdaptableNumberEditor/index.d.ts +1 -0
- package/src/agGrid/editors/AdaptableNumberEditor/index.js +7 -2
- package/src/components/Datepicker/DatepickerContext.d.ts +2 -2
- package/src/components/Datepicker/index.js +9 -5
- package/src/components/Modal/index.d.ts +1 -1
- package/src/components/OverlayTrigger/index.js +3 -3
- package/src/components/OverlayTrigger/useAgGridClassName.d.ts +2 -0
- package/src/components/OverlayTrigger/{useVendorClassName.js → useAgGridClassName.js} +3 -3
- package/src/components/ProgressIndicator/ProgressIndicator.js +1 -1
- package/src/components/icons/index.js +2 -0
- package/src/components/icons/upload.d.ts +3 -0
- package/src/components/icons/upload.js +8 -0
- package/src/metamodel/adaptable.metamodel.d.ts +52 -37
- package/src/metamodel/adaptable.metamodel.js +261 -265
- package/src/types.d.ts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/src/PredefinedConfig/DeprecatedState.d.ts +0 -82
- package/src/PredefinedConfig/DeprecatedState.js +0 -5
- package/src/components/OverlayTrigger/useVendorClassName.d.ts +0 -2
package/src/Api/GridApi.d.ts
CHANGED
|
@@ -8,7 +8,7 @@ import { DataChangedInfo } from '../PredefinedConfig/Common/DataChangedInfo';
|
|
|
8
8
|
import { CellHighlightInfo } from '../PredefinedConfig/Common/CellHighlightInfo';
|
|
9
9
|
import { AdaptableModule } from '../PredefinedConfig/Common/Types';
|
|
10
10
|
import { AccessLevel } from '../PredefinedConfig/Common/Entitlement';
|
|
11
|
-
import { RowNode } from '@ag-grid-community/all-modules';
|
|
11
|
+
import { GridOptions, RowNode } from '@ag-grid-community/all-modules';
|
|
12
12
|
import { GridCellRange } from '../PredefinedConfig/Selection/GridCellRange';
|
|
13
13
|
/**
|
|
14
14
|
* Provides access to important properites of AdapTable e.g. sorting, selected cells etc.
|
|
@@ -20,7 +20,7 @@ export interface GridApi {
|
|
|
20
20
|
getGridState(): GridState;
|
|
21
21
|
/**
|
|
22
22
|
* Repopulates grid with given data
|
|
23
|
-
* @param data any data from any datasource that is suitable for
|
|
23
|
+
* @param data any data from any datasource that is suitable for AG Grid
|
|
24
24
|
*/
|
|
25
25
|
setGridData(data: any): void;
|
|
26
26
|
/**
|
|
@@ -33,23 +33,23 @@ export interface GridApi {
|
|
|
33
33
|
getFilteredData(): any[];
|
|
34
34
|
/**
|
|
35
35
|
* Loads grid with given data
|
|
36
|
-
* @param data any data from any datasource that is suitable for
|
|
36
|
+
* @param data any data from any datasource that is suitable for AG Grid
|
|
37
37
|
*/
|
|
38
38
|
loadGridData(data: any): void;
|
|
39
39
|
/**
|
|
40
|
-
* Updates Adaptable (and
|
|
40
|
+
* Updates Adaptable (and AG Grid) with rows that have changed
|
|
41
41
|
* @param dataRows rows which have been updated - send whole row and Adaptable will take care of the rest
|
|
42
42
|
* @param config batch option and callback function to run post update
|
|
43
43
|
*/
|
|
44
44
|
updateGridData(dataRows: any[], config?: DataUpdateConfig): void;
|
|
45
45
|
/**
|
|
46
|
-
* Adds rows to Adaptable (and
|
|
46
|
+
* Adds rows to Adaptable (and AG Grid)
|
|
47
47
|
* @param dataRows rows to add; ensure all 'mandatory' fields are included and Primary Key is unique
|
|
48
48
|
* @param config batch option and callback function to run post addition
|
|
49
49
|
*/
|
|
50
50
|
addGridData(dataRows: any[], config?: DataUpdateConfig): void;
|
|
51
51
|
/**
|
|
52
|
-
* Deletes rows from Adaptable (and
|
|
52
|
+
* Deletes rows from Adaptable (and AG Grid)
|
|
53
53
|
* @param dataRows rows which should be deleted
|
|
54
54
|
* @param config batch option and callback function to run post deletion
|
|
55
55
|
*/
|
|
@@ -86,9 +86,9 @@ export interface GridApi {
|
|
|
86
86
|
*/
|
|
87
87
|
getSelectedRowInfo(): SelectedRowInfo;
|
|
88
88
|
/**
|
|
89
|
-
* Returns
|
|
89
|
+
* Returns Ag Grid instance (passed into Adaptable Options at start-up)
|
|
90
90
|
*/
|
|
91
|
-
|
|
91
|
+
getAgGridInstance(): GridOptions;
|
|
92
92
|
/**
|
|
93
93
|
* Returns Column Sort information in Adaptable
|
|
94
94
|
*/
|
|
@@ -308,11 +308,11 @@ export interface GridApi {
|
|
|
308
308
|
*/
|
|
309
309
|
fireSearchChangedEvent(searchChangedTrigger: 'DataSource' | 'CurrentQuery' | 'Filter' | 'DataChange' | 'Sort', searchAtDate?: Date): void;
|
|
310
310
|
/**
|
|
311
|
-
* Fires
|
|
311
|
+
* Fires Cell Changed Changed Event - when any data in AG Grid's dataset has changed
|
|
312
312
|
*/
|
|
313
313
|
fireCellChangedEvent(cellChangedInfo: DataChangedInfo): void;
|
|
314
314
|
/**
|
|
315
|
-
* Fires Grid Data Changed Event - when
|
|
315
|
+
* Fires Grid Data Changed Event - when a row has changed in AG Grid
|
|
316
316
|
*/
|
|
317
317
|
fireGridDataChangedEvent(dataRows: any[], rowTigger: 'Add' | 'Edit' | 'Delete'): void;
|
|
318
318
|
/**
|
|
@@ -3,7 +3,7 @@ import { AdaptableColumn } from '../../PredefinedConfig/Common/AdaptableColumn';
|
|
|
3
3
|
import { DataType } from '../../PredefinedConfig/Common/Enums';
|
|
4
4
|
import { ColumnApi } from '../ColumnApi';
|
|
5
5
|
import { GridCell } from '../../PredefinedConfig/Selection/GridCell';
|
|
6
|
-
import { RowNode } from '@ag-grid-community/all-modules';
|
|
6
|
+
import { Column, RowNode } from '@ag-grid-community/all-modules';
|
|
7
7
|
export declare class ColumnApiImpl extends ApiBase implements ColumnApi {
|
|
8
8
|
getColumns(): AdaptableColumn[];
|
|
9
9
|
getVisibleColumns(): AdaptableColumn[];
|
|
@@ -15,7 +15,7 @@ export declare class ColumnApiImpl extends ApiBase implements ColumnApi {
|
|
|
15
15
|
selectColumns(columnIds: string[]): void;
|
|
16
16
|
hideColumn(columnId: string): void;
|
|
17
17
|
showColumn(columnId: string): void;
|
|
18
|
-
|
|
18
|
+
getAgGridColumnType(columnId: string): string | string[];
|
|
19
19
|
isRowGroupColumn(columnId: string): boolean;
|
|
20
20
|
isCalculatedColumn(columnId: string): boolean;
|
|
21
21
|
isFreeTextColumn(columnId: string): boolean;
|
|
@@ -35,7 +35,8 @@ export declare class ColumnApiImpl extends ApiBase implements ColumnApi {
|
|
|
35
35
|
doesColumnExist(columnId: string): boolean;
|
|
36
36
|
getColumnFromId(columnId: string, logWarning?: boolean): AdaptableColumn | undefined;
|
|
37
37
|
getColumnIdsFromId(columnId: string, logWarning?: boolean): string[] | undefined;
|
|
38
|
-
|
|
38
|
+
getAgGridColumnFieldForAdaptableColumn(colId: string): string;
|
|
39
|
+
getAgGridColumnForAdaptableColumn(columnId: string): Column;
|
|
39
40
|
getColumnFromFriendlyName(columnName: string, logWarning?: boolean): AdaptableColumn;
|
|
40
41
|
getColumnsOfType(dataType: DataType): AdaptableColumn[];
|
|
41
42
|
getNumericColumns(): AdaptableColumn[];
|
|
@@ -44,8 +44,8 @@ class ColumnApiImpl extends ApiBase_1.ApiBase {
|
|
|
44
44
|
showColumn(columnId) {
|
|
45
45
|
this.adaptable.showColumn(columnId);
|
|
46
46
|
}
|
|
47
|
-
|
|
48
|
-
return this.adaptable.
|
|
47
|
+
getAgGridColumnType(columnId) {
|
|
48
|
+
return this.adaptable.getAgGridColumnType(columnId);
|
|
49
49
|
}
|
|
50
50
|
isRowGroupColumn(columnId) {
|
|
51
51
|
// put this here as there might be other indicators we are not aware of
|
|
@@ -187,8 +187,12 @@ class ColumnApiImpl extends ApiBase_1.ApiBase {
|
|
|
187
187
|
}
|
|
188
188
|
return undefined;
|
|
189
189
|
}
|
|
190
|
-
|
|
191
|
-
|
|
190
|
+
getAgGridColumnFieldForAdaptableColumn(colId) {
|
|
191
|
+
const agGridColumn = this.getAgGridColumnForAdaptableColumn(colId);
|
|
192
|
+
return agGridColumn.getColDef().field || '';
|
|
193
|
+
}
|
|
194
|
+
getAgGridColumnForAdaptableColumn(columnId) {
|
|
195
|
+
return this.adaptable.getAgGridColumnForAdaptableColumn(this.getColumnFromId(columnId));
|
|
192
196
|
}
|
|
193
197
|
getColumnFromFriendlyName(columnName, logWarning = true) {
|
|
194
198
|
// just return null if no columns rather than logging a warning - otherwise get lots at startup
|
|
@@ -283,7 +287,7 @@ class ColumnApiImpl extends ApiBase_1.ApiBase {
|
|
|
283
287
|
suppressClientSideFilter: false,
|
|
284
288
|
};
|
|
285
289
|
}
|
|
286
|
-
const { gridCells, suppressClientSideFilter
|
|
290
|
+
const { gridCells, suppressClientSideFilter } = await this.adaptable.getDistinctFilterValuesForColumn(abColumn, false, filter);
|
|
287
291
|
return {
|
|
288
292
|
values: this.sortDistinctValues(gridCells, abColumn).map((cv) => {
|
|
289
293
|
return cv.displayValue;
|
|
@@ -370,8 +374,7 @@ class ColumnApiImpl extends ApiBase_1.ApiBase {
|
|
|
370
374
|
});
|
|
371
375
|
}
|
|
372
376
|
usesAdaptableFilterForm(columnId) {
|
|
373
|
-
const useAdaptableFilterForm = this.getFilterOptions()
|
|
374
|
-
.useAdaptableFilterForm;
|
|
377
|
+
const useAdaptableFilterForm = this.getFilterOptions().useAdaptableFilterForm;
|
|
375
378
|
if (useAdaptableFilterForm == null || useAdaptableFilterForm == false) {
|
|
376
379
|
return false;
|
|
377
380
|
}
|
|
@@ -381,8 +384,7 @@ class ColumnApiImpl extends ApiBase_1.ApiBase {
|
|
|
381
384
|
return true;
|
|
382
385
|
}
|
|
383
386
|
usesAdaptableQuickFilter(columnId) {
|
|
384
|
-
const useAdaptableQuickFilter = this.getFilterOptions()
|
|
385
|
-
.useAdaptableQuickFilter;
|
|
387
|
+
const useAdaptableQuickFilter = this.getFilterOptions().useAdaptableQuickFilter;
|
|
386
388
|
if (useAdaptableQuickFilter == null || useAdaptableQuickFilter == false) {
|
|
387
389
|
return false;
|
|
388
390
|
}
|
|
@@ -179,18 +179,10 @@ class ConfigApiImpl extends ApiBase_1.ApiBase {
|
|
|
179
179
|
return returnJson
|
|
180
180
|
? JSON.stringify(this.getAdaptableState().Application)
|
|
181
181
|
: this.getAdaptableState().Application;
|
|
182
|
-
case 'BulkUpdate':
|
|
183
|
-
return returnJson
|
|
184
|
-
? JSON.stringify(this.getAdaptableState().BulkUpdate)
|
|
185
|
-
: this.getAdaptableState().BulkUpdate;
|
|
186
182
|
case 'CalculatedColumn':
|
|
187
183
|
return returnJson
|
|
188
184
|
? JSON.stringify(this.getAdaptableState().CalculatedColumn)
|
|
189
185
|
: this.getAdaptableState().CalculatedColumn;
|
|
190
|
-
case 'CellSummary':
|
|
191
|
-
return returnJson
|
|
192
|
-
? JSON.stringify(this.getAdaptableState().SelectedCells)
|
|
193
|
-
: this.getAdaptableState().CellSummary;
|
|
194
186
|
case 'Chart':
|
|
195
187
|
return returnJson
|
|
196
188
|
? JSON.stringify(this.getAdaptableState().Chart)
|
|
@@ -211,10 +203,6 @@ class ConfigApiImpl extends ApiBase_1.ApiBase {
|
|
|
211
203
|
return returnJson
|
|
212
204
|
? JSON.stringify(this.getAdaptableState().DataSource)
|
|
213
205
|
: this.getAdaptableState().DataSource;
|
|
214
|
-
case 'Entitlement':
|
|
215
|
-
return returnJson
|
|
216
|
-
? JSON.stringify(this.getAdaptableState().Entitlements)
|
|
217
|
-
: this.getAdaptableState().Entitlements;
|
|
218
206
|
case 'Export':
|
|
219
207
|
return returnJson
|
|
220
208
|
? JSON.stringify(this.getAdaptableState().Export)
|
|
@@ -255,18 +243,10 @@ class ConfigApiImpl extends ApiBase_1.ApiBase {
|
|
|
255
243
|
return returnJson
|
|
256
244
|
? JSON.stringify(this.getAdaptableState().Shortcut)
|
|
257
245
|
: this.getAdaptableState().Shortcut;
|
|
258
|
-
case 'SmartEdit':
|
|
259
|
-
return returnJson
|
|
260
|
-
? JSON.stringify(this.getAdaptableState().SmartEdit)
|
|
261
|
-
: this.getAdaptableState().SmartEdit;
|
|
262
246
|
case 'SparklineColumn':
|
|
263
247
|
return returnJson
|
|
264
248
|
? JSON.stringify(this.getAdaptableState().SparklineColumn)
|
|
265
249
|
: this.getAdaptableState().SparklineColumn;
|
|
266
|
-
case 'SystemStatus':
|
|
267
|
-
return returnJson
|
|
268
|
-
? JSON.stringify(this.getAdaptableState().SystemStatus)
|
|
269
|
-
: this.getAdaptableState().SystemStatus;
|
|
270
250
|
case 'Theme':
|
|
271
251
|
return returnJson
|
|
272
252
|
? JSON.stringify(this.getAdaptableState().Theme)
|
|
@@ -275,10 +255,6 @@ class ConfigApiImpl extends ApiBase_1.ApiBase {
|
|
|
275
255
|
return returnJson
|
|
276
256
|
? JSON.stringify(this.getAdaptableState().ToolPanel)
|
|
277
257
|
: this.getAdaptableState().ToolPanel;
|
|
278
|
-
case 'UserInterface':
|
|
279
|
-
return returnJson
|
|
280
|
-
? JSON.stringify(this.getAdaptableState().UserInterface)
|
|
281
|
-
: this.getAdaptableState().UserInterface;
|
|
282
258
|
}
|
|
283
259
|
}
|
|
284
260
|
incrementUerStateRevision(stateKey) {
|
|
@@ -8,7 +8,7 @@ import { ColumnSort } from '../../PredefinedConfig/Common/ColumnSort';
|
|
|
8
8
|
import { DataUpdateConfig } from '../../PredefinedConfig/Common/DataUpdateConfig';
|
|
9
9
|
import { DataChangedInfo, AccessLevel, AdaptableModule } from '../../types';
|
|
10
10
|
import { CellHighlightInfo } from '../../PredefinedConfig/Common/CellHighlightInfo';
|
|
11
|
-
import { RowNode } from '@ag-grid-community/all-modules';
|
|
11
|
+
import { GridOptions, RowNode } from '@ag-grid-community/all-modules';
|
|
12
12
|
import { GridCellRange } from '../../PredefinedConfig/Selection/GridCellRange';
|
|
13
13
|
export declare class GridApiImpl extends ApiBase implements GridApi {
|
|
14
14
|
getGridState(): GridState;
|
|
@@ -34,7 +34,7 @@ export declare class GridApiImpl extends ApiBase implements GridApi {
|
|
|
34
34
|
hideFilterForm(): void;
|
|
35
35
|
applyGridFiltering(): void;
|
|
36
36
|
clearGridFiltering(): void;
|
|
37
|
-
|
|
37
|
+
getAgGridInstance(): GridOptions;
|
|
38
38
|
getColumnSorts(): ColumnSort[];
|
|
39
39
|
getColumnSortForColumn(columnId: string): ColumnSort | undefined;
|
|
40
40
|
setAdaptableSorting(columnSorts: ColumnSort[]): void;
|
|
@@ -87,7 +87,7 @@ class GridApiImpl extends ApiBase_1.ApiBase {
|
|
|
87
87
|
// slightly round the houses but we have to call FilterAPI as it does it properly
|
|
88
88
|
this.adaptable.api.filterApi.clearAllColumnFilter();
|
|
89
89
|
}
|
|
90
|
-
|
|
90
|
+
getAgGridInstance() {
|
|
91
91
|
return this.adaptable.adaptableOptions.vendorGrid;
|
|
92
92
|
}
|
|
93
93
|
getColumnSorts() {
|
|
@@ -299,8 +299,7 @@ class GridApiImpl extends ApiBase_1.ApiBase {
|
|
|
299
299
|
}
|
|
300
300
|
let cellEditableFn = this.adaptable.adaptableOptions.editOptions.isCellEditable;
|
|
301
301
|
if (cellEditableFn) {
|
|
302
|
-
let
|
|
303
|
-
let functionReturnValue = cellEditableFn(gridCell, rowNode);
|
|
302
|
+
let functionReturnValue = cellEditableFn(gridCell);
|
|
304
303
|
if (!functionReturnValue) {
|
|
305
304
|
returnValue = false;
|
|
306
305
|
}
|
|
@@ -334,7 +333,7 @@ class GridApiImpl extends ApiBase_1.ApiBase {
|
|
|
334
333
|
this.adaptable.destroy();
|
|
335
334
|
}
|
|
336
335
|
getGridContainerElement() {
|
|
337
|
-
return this.adaptable.
|
|
336
|
+
return this.adaptable.getAgGridContainerElement();
|
|
338
337
|
}
|
|
339
338
|
}
|
|
340
339
|
exports.GridApiImpl = GridApiImpl;
|
|
@@ -80,7 +80,7 @@ export declare class InternalApiImpl extends ApiBase implements InternalApi {
|
|
|
80
80
|
setDefaultDashboardTab(): void;
|
|
81
81
|
getPrimaryKey(): any;
|
|
82
82
|
getAdaptableInstance(): IAdaptable;
|
|
83
|
-
|
|
83
|
+
getAgGridInstance(): any;
|
|
84
84
|
getPredefinedConfig(): any;
|
|
85
85
|
getState(): AdaptableState;
|
|
86
86
|
getAdaptableOptions(): AdaptableOptions;
|
|
@@ -205,7 +205,7 @@ class InternalApiImpl extends ApiBase_1.ApiBase {
|
|
|
205
205
|
getAdaptableInstance() {
|
|
206
206
|
return this.adaptable;
|
|
207
207
|
}
|
|
208
|
-
|
|
208
|
+
getAgGridInstance() {
|
|
209
209
|
return this.adaptable.adaptableOptions.vendorGrid;
|
|
210
210
|
}
|
|
211
211
|
getPredefinedConfig() {
|
|
@@ -272,7 +272,7 @@ class InternalApiImpl extends ApiBase_1.ApiBase {
|
|
|
272
272
|
}
|
|
273
273
|
getCustomSortComparer(column) {
|
|
274
274
|
var _a;
|
|
275
|
-
return (_a = this.getGeneralOptions().customSortComparers) === null || _a === void 0 ? void 0 : _a.find((csc) =>
|
|
275
|
+
return (_a = this.getGeneralOptions().customSortComparers) === null || _a === void 0 ? void 0 : _a.find((csc) => this.adaptable.api.scopeApi.isColumnInScope(column, csc.scope));
|
|
276
276
|
}
|
|
277
277
|
getLabelForButton(button, context) {
|
|
278
278
|
if (!button.label) {
|
|
@@ -21,10 +21,12 @@ export declare class LayoutApiImpl extends ApiBase implements LayoutApi {
|
|
|
21
21
|
createLayout(layoutToCreate: Layout): Layout | undefined;
|
|
22
22
|
cloneAndSetLayout(layoutToClone: Layout, layoutName: string): Layout;
|
|
23
23
|
cloneLayout(layoutToClone: Layout, layoutName: string): Layout;
|
|
24
|
+
setColumnCaption(columnId: string, caption: string): void;
|
|
24
25
|
saveLayout(layoutToSave: Layout): void;
|
|
25
26
|
areLayoutsEqual(layout1: Layout, layout2: Layout): boolean;
|
|
26
27
|
getLayoutDescription(layout: Layout): string;
|
|
27
28
|
private getColumnSort;
|
|
28
29
|
createDefaultLayoutIfNeeded(): Layout | null;
|
|
29
30
|
showLayoutPopup(): void;
|
|
31
|
+
isCurrentLayoutReadOnly(): boolean;
|
|
30
32
|
}
|
|
@@ -139,6 +139,14 @@ class LayoutApiImpl extends ApiBase_1.ApiBase {
|
|
|
139
139
|
this.dispatchAction(LayoutRedux.LayoutAdd(newLayout));
|
|
140
140
|
return this.getLayoutById(newLayout.Uuid);
|
|
141
141
|
}
|
|
142
|
+
setColumnCaption(columnId, caption) {
|
|
143
|
+
if (StringExtensions_1.default.IsNotNullOrEmpty(columnId) && StringExtensions_1.default.IsNotNullOrEmpty(caption)) {
|
|
144
|
+
const currentLayoutName = this.getCurrentLayoutName();
|
|
145
|
+
if (StringExtensions_1.default.IsNotNullOrEmpty(currentLayoutName)) {
|
|
146
|
+
this.dispatchAction(LayoutRedux.LayoutSetColumnCaption(currentLayoutName, columnId, caption));
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
}
|
|
142
150
|
saveLayout(layoutToSave) {
|
|
143
151
|
if (!this.doesLayoutExist(layoutToSave)) {
|
|
144
152
|
this.addUidToAdaptableObject(layoutToSave);
|
|
@@ -212,5 +220,12 @@ class LayoutApiImpl extends ApiBase_1.ApiBase {
|
|
|
212
220
|
showLayoutPopup() {
|
|
213
221
|
this.showModulePopup(ModuleConstants.LayoutModuleId);
|
|
214
222
|
}
|
|
223
|
+
isCurrentLayoutReadOnly() {
|
|
224
|
+
const currentLayout = this.getCurrentLayout();
|
|
225
|
+
if (currentLayout) {
|
|
226
|
+
return currentLayout.IsReadOnly;
|
|
227
|
+
}
|
|
228
|
+
return true;
|
|
229
|
+
}
|
|
215
230
|
}
|
|
216
231
|
exports.LayoutApiImpl = LayoutApiImpl;
|
|
@@ -11,8 +11,8 @@ export declare class PluginsApiImpl extends ApiBase implements PluginsApi {
|
|
|
11
11
|
getPluginState(pluginId: string): any;
|
|
12
12
|
registerPlugin(pluginId: string, initialPluginState: any): void;
|
|
13
13
|
setPluginState(pluginId: string, newPluginState: any): void;
|
|
14
|
-
getPluginApi
|
|
15
|
-
|
|
14
|
+
private getPluginApi;
|
|
15
|
+
getipushpullPluginApi(): IPushPullApi;
|
|
16
16
|
getGlue42PluginApi(): Glue42Api;
|
|
17
17
|
getOpenFinPluginApi(): OpenFinApi;
|
|
18
18
|
getChartsPluginApi(): ChartApi;
|
|
@@ -76,7 +76,7 @@ class ScheduleApiImpl extends ApiBase_1.ApiBase {
|
|
|
76
76
|
return this.getScheduleById(schedule.Uuid);
|
|
77
77
|
}
|
|
78
78
|
getAllIPushPullSchedule() {
|
|
79
|
-
const ippApi = this.adaptable.api.pluginsApi.
|
|
79
|
+
const ippApi = this.adaptable.api.pluginsApi.getipushpullPluginApi();
|
|
80
80
|
return ippApi ? ippApi.getIPushPullSchedules() : [];
|
|
81
81
|
}
|
|
82
82
|
getAllActiveIPushPullSchedule() {
|
|
@@ -105,7 +105,7 @@ class ScheduleApiImpl extends ApiBase_1.ApiBase {
|
|
|
105
105
|
return this.getScheduleById(schedule.Uuid);
|
|
106
106
|
}
|
|
107
107
|
getAllGlue42Schedule() {
|
|
108
|
-
const glue42Api = this.adaptable.api.pluginsApi.
|
|
108
|
+
const glue42Api = this.adaptable.api.pluginsApi.getGlue42PluginApi();
|
|
109
109
|
return glue42Api ? glue42Api.getGlue42Schedules() : [];
|
|
110
110
|
}
|
|
111
111
|
getAllActiveGlue42Schedule() {
|
|
@@ -134,7 +134,7 @@ class ScheduleApiImpl extends ApiBase_1.ApiBase {
|
|
|
134
134
|
return this.getScheduleById(schedule.Uuid);
|
|
135
135
|
}
|
|
136
136
|
getAllOpenFinSchedule() {
|
|
137
|
-
const openFinApi = this.adaptable.api.pluginsApi.
|
|
137
|
+
const openFinApi = this.adaptable.api.pluginsApi.getOpenFinPluginApi();
|
|
138
138
|
return openFinApi ? openFinApi.getOpenFinSchedules() : [];
|
|
139
139
|
}
|
|
140
140
|
getAllActiveOpenFinSchedule() {
|
|
@@ -185,7 +185,7 @@ class ScheduleApiImpl extends ApiBase_1.ApiBase {
|
|
|
185
185
|
this.adaptable.api.exportApi.sendReport(reportSchedule.ReportName, reportSchedule.ExportDestination);
|
|
186
186
|
}
|
|
187
187
|
else if (scheduleType == 'ipushpull') {
|
|
188
|
-
const ippApi = this.adaptable.api.pluginsApi.
|
|
188
|
+
const ippApi = this.adaptable.api.pluginsApi.getipushpullPluginApi();
|
|
189
189
|
const iPushPullSchedule = schedule;
|
|
190
190
|
if (iPushPullSchedule.Transmission == 'Snapshot') {
|
|
191
191
|
ippApi.sendSnapshot(iPushPullSchedule.IPushPullReport);
|
|
@@ -195,12 +195,12 @@ class ScheduleApiImpl extends ApiBase_1.ApiBase {
|
|
|
195
195
|
}
|
|
196
196
|
}
|
|
197
197
|
else if (scheduleType == 'Glue42') {
|
|
198
|
-
const glue42Api = this.adaptable.api.pluginsApi.
|
|
198
|
+
const glue42Api = this.adaptable.api.pluginsApi.getGlue42PluginApi();
|
|
199
199
|
const glue42Schedule = schedule;
|
|
200
200
|
glue42Api.sendSnapshotToDo(glue42Schedule.Glue42Report);
|
|
201
201
|
}
|
|
202
202
|
else if (scheduleType == 'OpenFin') {
|
|
203
|
-
const openFinApi = this.adaptable.api.pluginsApi.
|
|
203
|
+
const openFinApi = this.adaptable.api.pluginsApi.getOpenFinPluginApi();
|
|
204
204
|
const openFinSchedule = schedule;
|
|
205
205
|
openFinApi.startLiveData(openFinSchedule.OpenFinReport);
|
|
206
206
|
}
|
|
@@ -15,7 +15,7 @@ class ToolPanelApiImpl extends ApiBase_1.ApiBase {
|
|
|
15
15
|
openAdapTableToolPanel() {
|
|
16
16
|
let gridOptions = this.getOptions().vendorGrid;
|
|
17
17
|
if (gridOptions) {
|
|
18
|
-
gridOptions.api.openToolPanel('
|
|
18
|
+
gridOptions.api.openToolPanel('adaptable');
|
|
19
19
|
}
|
|
20
20
|
}
|
|
21
21
|
closeAdapTableToolPanel() {
|
|
@@ -2,7 +2,7 @@ import { ApiBase } from './ApiBase';
|
|
|
2
2
|
import { UserInterfaceApi } from '../UserInterfaceApi';
|
|
3
3
|
import { AdaptableColumn } from '../../PredefinedConfig/Common/AdaptableColumn';
|
|
4
4
|
import { AdaptableStyle } from '../../PredefinedConfig/Common/AdaptableStyle';
|
|
5
|
-
import { UserMenuItem } from '../../PredefinedConfig/Common/Menu';
|
|
5
|
+
import { ColumnMenuContext, ContextMenuContext, UserMenuItem } from '../../PredefinedConfig/Common/Menu';
|
|
6
6
|
import { ActionColumn, BulkUpdatePermittedValues, CustomSortPermittedValues, EditLookUpPermittedValues, FilterPermittedValues, PermittedValues } from '../../AdaptableOptions/UserInterfaceOptions';
|
|
7
7
|
import { GridCell } from '../../types';
|
|
8
8
|
export declare class UserInterfaceApiImpl extends ApiBase implements UserInterfaceApi {
|
|
@@ -20,8 +20,8 @@ export declare class UserInterfaceApiImpl extends ApiBase implements UserInterfa
|
|
|
20
20
|
getAllEditLookUpItems(): EditLookUpPermittedValues[];
|
|
21
21
|
getEditLookUpItemForColumn(column: AdaptableColumn): EditLookUpPermittedValues | undefined;
|
|
22
22
|
getEditLookUpValuesForEditLookUpItem(editLookUpItem: EditLookUpPermittedValues, gridCell: GridCell): any[] | undefined;
|
|
23
|
-
addColumnMenuItem(
|
|
24
|
-
addContextMenuItem(
|
|
23
|
+
addColumnMenuItem(userMenuItem: UserMenuItem<ColumnMenuContext>): void;
|
|
24
|
+
addContextMenuItem(userMenuItem: UserMenuItem<ContextMenuContext>): void;
|
|
25
25
|
getEditableCellStyle(): AdaptableStyle | undefined;
|
|
26
26
|
getReadOnlyCellStyle(): AdaptableStyle | undefined;
|
|
27
27
|
getAllActionColumn(): ActionColumn[];
|
|
@@ -152,13 +152,13 @@ class UserInterfaceApiImpl extends ApiBase_1.ApiBase {
|
|
|
152
152
|
// this will use the columnapi method that first looks for permitted values and then distinct values
|
|
153
153
|
return this.adaptable.api.columnApi.getDistinctDisplayValuesForColumn(gridCell.column.columnId);
|
|
154
154
|
}
|
|
155
|
-
addColumnMenuItem(
|
|
155
|
+
addColumnMenuItem(userMenuItem) {
|
|
156
156
|
var _a;
|
|
157
|
-
(_a = this.getMenuOptions().columnMenuItems) === null || _a === void 0 ? void 0 : _a.push(
|
|
157
|
+
(_a = this.getMenuOptions().columnMenuItems) === null || _a === void 0 ? void 0 : _a.push(userMenuItem);
|
|
158
158
|
}
|
|
159
|
-
addContextMenuItem(
|
|
159
|
+
addContextMenuItem(userMenuItem) {
|
|
160
160
|
var _a;
|
|
161
|
-
(_a = this.getMenuOptions().contextMenuItems) === null || _a === void 0 ? void 0 : _a.push(
|
|
161
|
+
(_a = this.getMenuOptions().contextMenuItems) === null || _a === void 0 ? void 0 : _a.push(userMenuItem);
|
|
162
162
|
}
|
|
163
163
|
getEditableCellStyle() {
|
|
164
164
|
return this.getUserInterfaceOptions().editableCellStyle;
|
package/src/Api/InternalApi.d.ts
CHANGED
|
@@ -84,7 +84,7 @@ export interface InternalApi {
|
|
|
84
84
|
updateCurrentDraftLayout(layout: Layout): void;
|
|
85
85
|
getPrimaryKey(): any;
|
|
86
86
|
getAdaptableInstance(): IAdaptable;
|
|
87
|
-
|
|
87
|
+
getAgGridInstance(): any;
|
|
88
88
|
getPredefinedConfig(): any;
|
|
89
89
|
getState(): AdaptableState;
|
|
90
90
|
getAdaptableOptions(): AdaptableOptions;
|
package/src/Api/LayoutApi.d.ts
CHANGED
|
@@ -121,4 +121,11 @@ export interface LayoutApi {
|
|
|
121
121
|
* Opens Layout popup screen
|
|
122
122
|
*/
|
|
123
123
|
showLayoutPopup(): void;
|
|
124
|
+
/**
|
|
125
|
+
* Sets a new Caption / Header for a Column (this Layout only)
|
|
126
|
+
* @param columnId Column to Update
|
|
127
|
+
* @param caption New Caption to display
|
|
128
|
+
*/
|
|
129
|
+
setColumnCaption(columnId: string, caption: string): void;
|
|
130
|
+
isCurrentLayoutReadOnly(): boolean;
|
|
124
131
|
}
|
package/src/Api/PluginsApi.d.ts
CHANGED
|
@@ -12,13 +12,7 @@ export interface PluginsApi {
|
|
|
12
12
|
getPluginState(pluginId: string): any;
|
|
13
13
|
registerPlugin(pluginId: string, initialPluginState: any): void;
|
|
14
14
|
setPluginState(pluginId: string, pluginState: any): void;
|
|
15
|
-
|
|
16
|
-
getPluginApi(pluginId: 'ipushpull'): IPushPullApi;
|
|
17
|
-
getPluginApi(pluginId: 'glue42'): Glue42Api;
|
|
18
|
-
getPluginApi(pluginId: 'finance'): FinanceApi;
|
|
19
|
-
getPluginApi(pluginId: 'openfin'): OpenFinApi;
|
|
20
|
-
getPluginApi(pluginId: 'charts'): ChartApi;
|
|
21
|
-
getIpushpullPluginApi(): IPushPullApi;
|
|
15
|
+
getipushpullPluginApi(): IPushPullApi;
|
|
22
16
|
getGlue42PluginApi(): Glue42Api;
|
|
23
17
|
getOpenFinPluginApi(): OpenFinApi;
|
|
24
18
|
getChartsPluginApi(): ChartApi;
|
|
@@ -28,7 +28,7 @@ export interface TeamSharingApi {
|
|
|
28
28
|
*/
|
|
29
29
|
checkForUpdates(): void;
|
|
30
30
|
/**
|
|
31
|
-
* Fires the Team
|
|
31
|
+
* Fires the Team Sharing Entity Changed Event
|
|
32
32
|
* @param sharedEntity Entity that has been changed
|
|
33
33
|
*/
|
|
34
34
|
fireTeamSharingEntityChangedEvent(sharedEntity: SharedEntity): void;
|
package/src/Api/ThemeApi.d.ts
CHANGED
|
@@ -17,11 +17,11 @@ export interface ThemeApi {
|
|
|
17
17
|
*/
|
|
18
18
|
loadTheme(theme: string): void;
|
|
19
19
|
/**
|
|
20
|
-
* Sets AdapTable Light Theme - updates
|
|
20
|
+
* Sets AdapTable Light Theme - updates the AG Grid theme to match
|
|
21
21
|
*/
|
|
22
22
|
loadLightTheme(): void;
|
|
23
23
|
/**
|
|
24
|
-
* Sets AdapTable Dark Theme - updates
|
|
24
|
+
* Sets AdapTable Dark Theme - updates the AG Grid theme to match
|
|
25
25
|
*/
|
|
26
26
|
loadDarkTheme(): void;
|
|
27
27
|
/**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { AdaptableColumn } from '../PredefinedConfig/Common/AdaptableColumn';
|
|
2
2
|
import { AdaptableStyle } from '../PredefinedConfig/Common/AdaptableStyle';
|
|
3
|
-
import { UserMenuItem } from '../PredefinedConfig/Common/Menu';
|
|
3
|
+
import { ColumnMenuContext, ContextMenuContext, UserMenuItem } from '../PredefinedConfig/Common/Menu';
|
|
4
4
|
import { ActionColumn, BulkUpdatePermittedValues, CustomSortPermittedValues, EditLookUpPermittedValues, FilterPermittedValues, PermittedValues } from '../AdaptableOptions/UserInterfaceOptions';
|
|
5
5
|
import { GridCell } from '../PredefinedConfig/Selection/GridCell';
|
|
6
6
|
/**
|
|
@@ -52,12 +52,12 @@ export interface UserInterfaceApi {
|
|
|
52
52
|
* Adds menu item to Column Menu
|
|
53
53
|
* @param userMenuItem Menu Item to add
|
|
54
54
|
*/
|
|
55
|
-
addColumnMenuItem(userMenuItem: UserMenuItem): void;
|
|
55
|
+
addColumnMenuItem(userMenuItem: UserMenuItem<ColumnMenuContext>): void;
|
|
56
56
|
/**
|
|
57
57
|
* Adds menu item to Context Menu
|
|
58
58
|
* @param userMenuItem Menu Item to add
|
|
59
59
|
*/
|
|
60
|
-
addContextMenuItem(userMenuItem: UserMenuItem): void;
|
|
60
|
+
addContextMenuItem(userMenuItem: UserMenuItem<ContextMenuContext>): void;
|
|
61
61
|
/**
|
|
62
62
|
* Returns Style set for Editable cells
|
|
63
63
|
*/
|
|
@@ -12,7 +12,6 @@ import { ExportState } from './ExportState';
|
|
|
12
12
|
import { FormatColumnState } from './FormatColumnState';
|
|
13
13
|
import { FreeTextColumnState } from './FreeTextColumnState';
|
|
14
14
|
import { LayoutState } from './LayoutState';
|
|
15
|
-
import { PercentBarState } from './DeprecatedState';
|
|
16
15
|
import { ScheduleState } from './ScheduleState';
|
|
17
16
|
import { PlusMinusState } from './PlusMinusState';
|
|
18
17
|
import { QuickSearchState } from './QuickSearchState';
|
|
@@ -24,10 +23,7 @@ import { FilterState } from './FilterState';
|
|
|
24
23
|
import { SparklineColumnState } from './SparklineColumnState';
|
|
25
24
|
import { ApplicationState } from './ApplicationState';
|
|
26
25
|
import { ToolPanelState } from './ToolPanelState';
|
|
27
|
-
import { GradientColumnState } from './DeprecatedState';
|
|
28
26
|
import { QueryState } from './QueryState';
|
|
29
|
-
import { FlashingCellState } from './DeprecatedState';
|
|
30
|
-
import { UpdatedRowState } from './DeprecatedState';
|
|
31
27
|
/**
|
|
32
28
|
* The main state object that Adaptable persists
|
|
33
29
|
*/
|
|
@@ -52,17 +48,13 @@ export interface AdaptableState {
|
|
|
52
48
|
Filter: FilterState;
|
|
53
49
|
FormatColumn: FormatColumnState;
|
|
54
50
|
FreeTextColumn: FreeTextColumnState;
|
|
55
|
-
GradientColumn: GradientColumnState;
|
|
56
51
|
Layout: LayoutState;
|
|
57
|
-
PercentBar: PercentBarState;
|
|
58
|
-
Schedule: ScheduleState;
|
|
59
52
|
PlusMinus: PlusMinusState;
|
|
53
|
+
Query: QueryState;
|
|
60
54
|
QuickSearch: QuickSearchState;
|
|
55
|
+
Schedule: ScheduleState;
|
|
61
56
|
Shortcut: ShortcutState;
|
|
62
57
|
TeamSharing: TeamSharingState;
|
|
63
58
|
Theme: ThemeState;
|
|
64
59
|
ToolPanel: ToolPanelState;
|
|
65
|
-
Query: QueryState;
|
|
66
|
-
FlashingCell: FlashingCellState;
|
|
67
|
-
UpdatedRow: UpdatedRowState;
|
|
68
60
|
}
|
|
@@ -12,7 +12,7 @@ import { AdaptableAggregationQuery, AdaptableBooleanQuery, AdaptableObservableQu
|
|
|
12
12
|
import { ButtonStyle } from './Common/ButtonStyle';
|
|
13
13
|
import { AlertButtonContext } from '../AdaptableOptions/NotificationsOptions';
|
|
14
14
|
/**
|
|
15
|
-
* Predefined Configuration for Alert
|
|
15
|
+
* Predefined Configuration for Alert Module
|
|
16
16
|
*/
|
|
17
17
|
export interface AlertState extends ConfigState {
|
|
18
18
|
/**
|
|
@@ -3,7 +3,7 @@ import { AdaptableObject } from './Common/AdaptableObject';
|
|
|
3
3
|
import { AdaptableScalarQuery } from './Common/AdaptableQuery';
|
|
4
4
|
import { SpecialColumnSettings } from './Common/SpecialColumnSettings';
|
|
5
5
|
/**
|
|
6
|
-
* Predefined Configuration for Calculated Column
|
|
6
|
+
* Predefined Configuration for Calculated Column Module
|
|
7
7
|
**/
|
|
8
8
|
export interface CalculatedColumnState extends ConfigState {
|
|
9
9
|
/**
|
|
@@ -4,11 +4,11 @@ import { AdaptableObject } from './AdaptableObject';
|
|
|
4
4
|
*/
|
|
5
5
|
export interface AdaptableColumnBase extends AdaptableObject {
|
|
6
6
|
/**
|
|
7
|
-
* Name of Column in
|
|
7
|
+
* Name of Column in AG Grid (e.g. field or colId)
|
|
8
8
|
*/
|
|
9
9
|
columnId: string;
|
|
10
10
|
/**
|
|
11
|
-
* How Column is referred to in Adaptable UI;
|
|
11
|
+
* How Column is referred to in Adaptable UI; `Caption` property in AG Grid
|
|
12
12
|
*/
|
|
13
13
|
friendlyName: string;
|
|
14
14
|
/**
|
|
@@ -30,7 +30,7 @@ export interface AdaptableColumnGroup {
|
|
|
30
30
|
groupCount: number;
|
|
31
31
|
}
|
|
32
32
|
/**
|
|
33
|
-
* Defines an Adaptable Column - created at run-time based on
|
|
33
|
+
* Defines an Adaptable Column - created at run-time based on AG Grid column definition
|
|
34
34
|
*/
|
|
35
35
|
export interface AdaptableColumn extends AdaptableColumnBase {
|
|
36
36
|
/**
|