@adaptabletools/adaptable 24.0.0-canary.8 → 24.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/agGrid.d.ts +2 -3
- package/agGrid.js +2 -3
- package/aql.d.ts +29 -1
- package/aql.js +49 -1
- package/devtools.d.ts +55 -1
- package/index.css +0 -19
- package/index.d.ts +2 -3
- package/index.js +2 -3
- package/package.json +1 -1
- package/src/AdaptableOptions/ActionColumnOptions.d.ts +24 -0
- package/src/AdaptableOptions/AdaptableOptions.d.ts +97 -69
- package/src/AdaptableOptions/AdaptablePlugin.d.ts +113 -1
- package/src/AdaptableOptions/AlertOptions.d.ts +0 -2
- package/src/AdaptableOptions/ChartingOptions.d.ts +11 -5
- package/src/AdaptableOptions/ColumnMenuOptions.d.ts +30 -0
- package/src/AdaptableOptions/ColumnOptions.d.ts +0 -2
- package/src/AdaptableOptions/CommentOptions.d.ts +12 -4
- package/src/AdaptableOptions/ContextMenuOptions.d.ts +31 -1
- package/src/AdaptableOptions/DashboardOptions.d.ts +0 -3
- package/src/AdaptableOptions/DataChangeHistoryOptions.d.ts +3 -2
- package/src/AdaptableOptions/EditOptions.d.ts +18 -2
- package/src/AdaptableOptions/ExportOptions.d.ts +23 -0
- package/src/AdaptableOptions/ExpressionOptions.d.ts +0 -3
- package/src/AdaptableOptions/Fdc3Options.d.ts +77 -3
- package/src/AdaptableOptions/FilterOptions.d.ts +13 -8
- package/src/AdaptableOptions/LayoutOptions.d.ts +16 -3
- package/src/AdaptableOptions/NotificationsOptions.d.ts +0 -1
- package/src/AdaptableOptions/QuickSearchOptions.d.ts +0 -2
- package/src/AdaptableOptions/RowFormOptions.d.ts +9 -0
- package/src/AdaptableOptions/SettingsPanelOptions.d.ts +10 -1
- package/src/AdaptableOptions/ToolPanelOptions.d.ts +0 -1
- package/src/AdaptableOptions/UserInterfaceOptions.d.ts +6 -2
- package/src/AdaptableState/AdaptableState.d.ts +98 -4
- package/src/AdaptableState/AlertState.d.ts +20 -21
- package/src/AdaptableState/ApplicationState.d.ts +5 -3
- package/src/AdaptableState/BaseState.d.ts +9 -2
- package/src/AdaptableState/CalculatedColumnState.d.ts +10 -8
- package/src/AdaptableState/ChartingState.d.ts +10 -5
- package/src/AdaptableState/CommentState.d.ts +10 -4
- package/src/AdaptableState/Common/AdaptableAlert.d.ts +6 -2
- package/src/AdaptableState/Common/AdaptableButton.d.ts +3 -1
- package/src/AdaptableState/Common/AdaptableColumn.d.ts +38 -1
- package/src/AdaptableState/Common/AdaptableFilterState.d.ts +3 -1
- package/src/AdaptableState/Common/AdaptableFlashingCell.d.ts +3 -1
- package/src/AdaptableState/Common/AdaptableForm.d.ts +9 -0
- package/src/AdaptableState/Common/AdaptableFormat.d.ts +27 -1
- package/src/AdaptableState/Common/AdaptableIcon.d.ts +4 -2
- package/src/AdaptableState/Common/AdaptableObject.d.ts +9 -1
- package/src/AdaptableState/Common/AdaptableQuery.d.ts +9 -0
- package/src/AdaptableState/Common/AdaptableStyle.d.ts +6 -8
- package/src/AdaptableState/Common/AggregationColumns.d.ts +15 -6
- package/src/AdaptableState/Common/ButtonStyle.d.ts +3 -1
- package/src/AdaptableState/Common/CellDataChangedInfo.d.ts +6 -2
- package/src/AdaptableState/Common/CellHighlightInfo.d.ts +4 -2
- package/src/AdaptableState/Common/CellSummary.d.ts +33 -0
- package/src/AdaptableState/Common/ColumnFilter.d.ts +3 -1
- package/src/AdaptableState/Common/ColumnHighlightInfo.d.ts +4 -2
- package/src/AdaptableState/Common/ColumnScope.d.ts +32 -1
- package/src/AdaptableState/Common/ColumnSetupInfo.d.ts +17 -0
- package/src/AdaptableState/Common/ColumnSort.d.ts +3 -1
- package/src/AdaptableState/Common/CompactCalculatedColumnEditorInfo.d.ts +3 -0
- package/src/AdaptableState/Common/DataChangedScope.d.ts +3 -1
- package/src/AdaptableState/Common/DataUpdateConfig.d.ts +3 -1
- package/src/AdaptableState/Common/Entitlement.d.ts +4 -2
- package/src/AdaptableState/Common/Enums.d.ts +21 -0
- package/src/AdaptableState/Common/ExtendedLayout.d.ts +3 -1
- package/src/AdaptableState/Common/Fdc3Context.d.ts +9 -0
- package/src/AdaptableState/Common/Fdc3Intent.d.ts +6 -0
- package/src/AdaptableState/Common/GridFilter.d.ts +3 -1
- package/src/AdaptableState/Common/MenuItem.d.ts +9 -0
- package/src/AdaptableState/Common/RowHighlightInfo.d.ts +4 -2
- package/src/AdaptableState/Common/RowScope.d.ts +3 -1
- package/src/AdaptableState/Common/RowSummary.d.ts +14 -4
- package/src/AdaptableState/Common/RowsHighlightInfo.d.ts +5 -3
- package/src/AdaptableState/Common/Schedule.d.ts +10 -2
- package/src/AdaptableState/Common/SpecialColumnSettings.d.ts +3 -1
- package/src/AdaptableState/Common/SystemStatusMessageInfo.d.ts +4 -2
- package/src/AdaptableState/Common/TransposeConfig.d.ts +1 -1
- package/src/AdaptableState/Common/Types.d.ts +9 -0
- package/src/AdaptableState/CustomSortState.d.ts +8 -5
- package/src/AdaptableState/DashboardState.d.ts +14 -10
- package/src/AdaptableState/ExportState.d.ts +12 -4
- package/src/AdaptableState/FlashingCellState.d.ts +8 -5
- package/src/AdaptableState/FormatColumnState.d.ts +28 -8
- package/src/AdaptableState/FreeTextColumnState.d.ts +14 -8
- package/src/AdaptableState/IPushPullState.d.ts +39 -3
- package/src/AdaptableState/InitialState.d.ts +9 -9
- package/src/AdaptableState/InternalState.d.ts +183 -3
- package/src/AdaptableState/LayoutState.d.ts +64 -21
- package/src/AdaptableState/NamedQueryState.d.ts +16 -4
- package/src/AdaptableState/NoteState.d.ts +7 -3
- package/src/AdaptableState/OpenFinState.d.ts +12 -2
- package/src/AdaptableState/PlusMinusState.d.ts +8 -4
- package/src/AdaptableState/PopupState.d.ts +29 -1
- package/src/AdaptableState/QuickSearchState.d.ts +5 -3
- package/src/AdaptableState/Selection/GridCell.d.ts +5 -3
- package/src/AdaptableState/Selection/GridCellRange.d.ts +8 -7
- package/src/AdaptableState/Selection/SelectedCellInfo.d.ts +1 -1
- package/src/AdaptableState/ShortcutState.d.ts +7 -3
- package/src/AdaptableState/StatusBarState.d.ts +7 -6
- package/src/AdaptableState/StyledColumnState.d.ts +46 -14
- package/src/AdaptableState/TeamSharingState.d.ts +46 -2
- package/src/AdaptableState/ThemeState.d.ts +24 -2
- package/src/AdaptableState/ToolPanelState.d.ts +10 -5
- package/src/AdaptableState/UserInterfaceState.d.ts +2 -2
- package/src/AdaptableState/Uuid.d.ts +6 -0
- package/src/Api/ActionColumnApi.d.ts +3 -1
- package/src/Api/AdaptableApi.d.ts +54 -50
- package/src/Api/AlertApi.d.ts +20 -12
- package/src/Api/ApplicationApi.d.ts +6 -2
- package/src/Api/BulkUpdateApi.d.ts +2 -1
- package/src/Api/CalculatedColumnApi.d.ts +4 -1
- package/src/Api/CalendarApi.d.ts +10 -0
- package/src/Api/CellSummaryApi.d.ts +9 -3
- package/src/Api/ChartingApi.d.ts +22 -7
- package/src/Api/ColumnApi.d.ts +71 -4
- package/src/Api/ColumnFilterApi.d.ts +13 -3
- package/src/Api/ColumnMenuApi.d.ts +13 -2
- package/src/Api/ColumnScopeApi.d.ts +27 -1
- package/src/Api/CommentApi.d.ts +10 -7
- package/src/Api/ContextMenuApi.d.ts +11 -1
- package/src/Api/CustomSortApi.d.ts +6 -2
- package/src/Api/DashboardApi.d.ts +30 -9
- package/src/Api/DataChangeHistoryApi.d.ts +9 -3
- package/src/Api/DataImportApi.d.ts +1 -1
- package/src/Api/EntitlementApi.d.ts +6 -1
- package/src/Api/EventApi.d.ts +67 -19
- package/src/Api/Events/AdaptableReady.d.ts +6 -2
- package/src/Api/Events/AdaptableStateChanged.d.ts +9 -5
- package/src/Api/Events/AdaptableStateReloaded.d.ts +7 -3
- package/src/Api/Events/AlertFired.d.ts +8 -2
- package/src/Api/Events/BeforeAdaptableStateChange.d.ts +6 -2
- package/src/Api/Events/CalculatedColumnChanged.d.ts +7 -3
- package/src/Api/Events/CellChanged.d.ts +6 -2
- package/src/Api/Events/CellSelectionChanged.d.ts +6 -2
- package/src/Api/Events/ChartChanged.d.ts +16 -8
- package/src/Api/Events/CommentChanged.d.ts +8 -2
- package/src/Api/Events/CustomToolbarConfigured.d.ts +6 -2
- package/src/Api/Events/DashboardChanged.d.ts +27 -6
- package/src/Api/Events/DataImported.d.ts +8 -4
- package/src/Api/Events/DataSetSelected.d.ts +6 -2
- package/src/Api/Events/Fdc3MessageInfo.d.ts +14 -4
- package/src/Api/Events/FlashingCellDisplayed.d.ts +6 -2
- package/src/Api/Events/GridFilterApplied.d.ts +11 -3
- package/src/Api/Events/GridSorted.d.ts +6 -2
- package/src/Api/Events/LayoutChanged.d.ts +36 -5
- package/src/Api/Events/LiveDataChanged.d.ts +21 -5
- package/src/Api/Events/NoteChanged.d.ts +5 -1
- package/src/Api/Events/ReportScheduleRan.d.ts +7 -3
- package/src/Api/Events/RowChanged.d.ts +6 -2
- package/src/Api/Events/RowFormSubmitted.d.ts +28 -12
- package/src/Api/Events/RowSelectionChanged.d.ts +6 -2
- package/src/Api/Events/SystemStatusMessageDisplayed.d.ts +6 -2
- package/src/Api/Events/TeamSharingEntityChanged.d.ts +6 -2
- package/src/Api/Events/ThemeSelected.d.ts +6 -2
- package/src/Api/ExportApi.d.ts +59 -32
- package/src/Api/ExpressionApi.d.ts +24 -1
- package/src/Api/Fdc3Api.d.ts +16 -3
- package/src/Api/FlashingCellApi.d.ts +6 -1
- package/src/Api/FormatColumnApi.d.ts +18 -11
- package/src/Api/FreeTextColumnApi.d.ts +4 -2
- package/src/Api/GridApi.d.ts +92 -19
- package/src/Api/IPushPullApi.d.ts +19 -2
- package/src/Api/Internal/EventInternalApi.d.ts +2 -1
- package/src/Api/Internal/EventInternalApi.js +7 -0
- package/src/Api/InteropioPluginApi.d.ts +2 -1
- package/src/Api/LayoutApi.d.ts +29 -15
- package/src/Api/NamedQueryApi.d.ts +10 -6
- package/src/Api/NoteApi.d.ts +15 -11
- package/src/Api/OpenFinApi.d.ts +8 -2
- package/src/Api/OptionsApi.d.ts +43 -1
- package/src/Api/PluginsApi.d.ts +6 -1
- package/src/Api/PlusMinusApi.d.ts +2 -1
- package/src/Api/QuickSearchApi.d.ts +6 -1
- package/src/Api/RowFormApi.d.ts +8 -7
- package/src/Api/ShortcutApi.d.ts +3 -1
- package/src/Api/SmartEditApi.d.ts +4 -1
- package/src/Api/StateApi.d.ts +30 -2
- package/src/Api/StatusBarApi.d.ts +2 -0
- package/src/Api/StyledColumnApi.d.ts +23 -12
- package/src/Api/SystemStatusApi.d.ts +18 -6
- package/src/Api/TeamSharingApi.d.ts +8 -1
- package/src/Api/ThemeApi.d.ts +18 -9
- package/src/Api/ToolPanelApi.d.ts +12 -7
- package/src/Api/UserInterfaceApi.d.ts +10 -1
- package/src/Redux/Store/AdaptableStore.js +1 -1
- package/src/agGrid/Adaptable.d.ts +0 -12
- package/src/agGrid/Adaptable.js +0 -52
- package/src/agGrid/AdaptableFrameworkComponent.d.ts +12 -0
- package/src/agGrid/AdaptableLogger.d.ts +74 -1
- package/src/agGrid/editors/AdaptableDateEditor/index.d.ts +3 -0
- package/src/agGrid/editors/AdaptableNumberEditor/index.d.ts +3 -0
- package/src/agGrid/index.d.ts +1 -6
- package/src/agGrid/index.js +1 -3
- package/src/aql/ExpressionEvaluation.d.ts +27 -0
- package/src/aql/types.d.ts +22 -0
- package/src/env.js +2 -2
- package/src/migration/legacyAdaptableQuery.d.ts +29 -4
- package/src/setupDevTools.js +223 -0
- package/src/types.d.ts +0 -2
- package/tsconfig.esm.tsbuildinfo +1 -1
- package/src/AdaptableInterfaces/AdaptableNoCodeWizard.d.ts +0 -99
- package/src/AdaptableInterfaces/AdaptableNoCodeWizard.js +0 -1
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/AdaptableConfig.d.ts +0 -15
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/AdaptableConfig.js +0 -1
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/ColumnsList.d.ts +0 -19
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/ColumnsList.js +0 -337
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/Components/FormBox.d.ts +0 -5
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/Components/FormBox.js +0 -4
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/ConfigurationWizard.d.ts +0 -30
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/ConfigurationWizard.js +0 -162
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/ConfigurationWizardColumnsStep.d.ts +0 -18
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/ConfigurationWizardColumnsStep.js +0 -12
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/EntitlementsForm.d.ts +0 -8
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/EntitlementsForm.js +0 -131
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/GridOptionsForm.d.ts +0 -8
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/GridOptionsForm.js +0 -30
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/UIOptions/UIOptionsSidebarForm.d.ts +0 -6
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/UIOptions/UIOptionsSidebarForm.js +0 -80
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/UIOptions/UIOptionsStatusbarForm.d.ts +0 -6
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/UIOptions/UIOptionsStatusbarForm.js +0 -100
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/UIOptions/UiOptionsForm.d.ts +0 -11
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/UIOptions/UiOptionsForm.js +0 -8
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/index.d.ts +0 -2
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/index.js +0 -2
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/useSelection.d.ts +0 -21
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/useSelection.js +0 -63
- package/src/View/AdaptableWizardView/Utilities/Utils.d.ts +0 -1
- package/src/View/AdaptableWizardView/Utilities/Utils.js +0 -21
- package/src/View/AdaptableWizardView/Utilities/helper.d.ts +0 -19
- package/src/View/AdaptableWizardView/Utilities/helper.js +0 -81
- package/src/View/AdaptableWizardView/Wizard.d.ts +0 -57
- package/src/View/AdaptableWizardView/Wizard.js +0 -98
- package/src/View/AdaptableWizardView/index.d.ts +0 -4
- package/src/View/AdaptableWizardView/index.js +0 -4
package/src/Api/ExportApi.d.ts
CHANGED
|
@@ -3,35 +3,42 @@ import { ExportState, Report, ReportFormatType, ReportNameType, ReportSchedule,
|
|
|
3
3
|
import { CustomDestination, CustomExportParams, ExportConfig, ExportDestinationType, ExportFormContext, ExportResultData, SystemExportDestination } from '../AdaptableOptions/ExportOptions';
|
|
4
4
|
import { AdaptableColumn } from '../types';
|
|
5
5
|
/**
|
|
6
|
-
*
|
|
6
|
+
* Reports and scheduled exports: which report and format are selected, where a report can be sent, and running or scheduling an export.
|
|
7
7
|
*/
|
|
8
8
|
export interface ExportApi {
|
|
9
9
|
/**
|
|
10
|
-
*
|
|
10
|
+
* The Export section of Adaptable State.
|
|
11
|
+
* @returns Reports, the selected report and format, and scheduled reports
|
|
11
12
|
*/
|
|
12
13
|
getExportState(): ExportState;
|
|
13
14
|
/**
|
|
14
|
-
*
|
|
15
|
+
* System report names that Export Options allow.
|
|
16
|
+
* @returns `'All Data'`, `'Current Layout'` and `'Selected Data'`, limited to those enabled in Export Options
|
|
15
17
|
*/
|
|
16
18
|
getAvailableSystemReports(): SystemReportName[];
|
|
17
19
|
/**
|
|
18
|
-
*
|
|
20
|
+
* System report formats that Export Options allow.
|
|
21
|
+
* @returns `'Excel'`, `'VisualExcel'`, `'CSV'` and `'JSON'`, limited to those enabled in Export Options
|
|
19
22
|
*/
|
|
20
23
|
getAvailableSystemFormats(): SystemReportFormat[];
|
|
21
24
|
/**
|
|
22
|
-
*
|
|
25
|
+
* System destinations that Export Options allow.
|
|
26
|
+
* @returns `'Download'` and `'Clipboard'`, limited to those enabled in Export Options
|
|
23
27
|
*/
|
|
24
28
|
getAvailableSystemDestinations(): SystemExportDestination[];
|
|
25
29
|
/**
|
|
26
|
-
*
|
|
30
|
+
* Custom destinations supplied in Export Options.
|
|
31
|
+
* @returns The custom destinations. Empty when none are configured
|
|
27
32
|
*/
|
|
28
33
|
getAvailableCustomDestinations(): CustomDestination[];
|
|
29
34
|
/**
|
|
30
|
-
*
|
|
35
|
+
* Name of the report currently selected for export.
|
|
36
|
+
* @returns The report name, or `undefined` when no report is selected
|
|
31
37
|
*/
|
|
32
38
|
getCurrentReportName(): ReportNameType | undefined;
|
|
33
39
|
/**
|
|
34
|
-
*
|
|
40
|
+
* Format currently selected for export.
|
|
41
|
+
* @returns `'Excel'`, `'VisualExcel'`, `'CSV'`, `'JSON'`, or a custom format name. `undefined` when no format is selected
|
|
35
42
|
*/
|
|
36
43
|
getCurrentReportFormat(): ReportFormatType | undefined;
|
|
37
44
|
/**
|
|
@@ -57,11 +64,13 @@ export interface ExportApi {
|
|
|
57
64
|
*/
|
|
58
65
|
getAllReports(): Report[];
|
|
59
66
|
/**
|
|
60
|
-
*
|
|
67
|
+
* Reports created by the user. System reports are not included.
|
|
68
|
+
* @returns The custom reports
|
|
61
69
|
*/
|
|
62
70
|
getCustomReports(): Report[];
|
|
63
71
|
/**
|
|
64
|
-
*
|
|
72
|
+
* Every report format that can be selected, system and custom.
|
|
73
|
+
* @returns The format names
|
|
65
74
|
*/
|
|
66
75
|
getAllFormats(): ReportFormatType[];
|
|
67
76
|
/**
|
|
@@ -86,8 +95,8 @@ export interface ExportApi {
|
|
|
86
95
|
*/
|
|
87
96
|
clearReport(): void;
|
|
88
97
|
/**
|
|
89
|
-
* Selects the
|
|
90
|
-
* @param
|
|
98
|
+
* Selects the report format used by the next export.
|
|
99
|
+
* @param reportFormat Format to select, or `null` to clear the selection
|
|
91
100
|
*/
|
|
92
101
|
selectFormat(reportFormat: ReportFormatType | null): void;
|
|
93
102
|
/**
|
|
@@ -95,11 +104,13 @@ export interface ExportApi {
|
|
|
95
104
|
*/
|
|
96
105
|
clearFormat(): void;
|
|
97
106
|
/**
|
|
98
|
-
*
|
|
107
|
+
* Whether this instance can export to Excel.
|
|
108
|
+
* @returns `false` when Excel export is turned off. The Excel destination is then hidden
|
|
99
109
|
*/
|
|
100
110
|
canExportToExcel(): boolean;
|
|
101
111
|
/**
|
|
102
|
-
*
|
|
112
|
+
* Whether this instance can export to CSV.
|
|
113
|
+
* @returns `false` when CSV export is turned off. The CSV destination is then hidden
|
|
103
114
|
*/
|
|
104
115
|
canExportToCsv(): boolean;
|
|
105
116
|
/**
|
|
@@ -113,28 +124,33 @@ export interface ExportApi {
|
|
|
113
124
|
*/
|
|
114
125
|
updateReport(report: Report): Report;
|
|
115
126
|
/**
|
|
116
|
-
*
|
|
117
|
-
* @param
|
|
118
|
-
* @returns reports
|
|
127
|
+
* Replaces the given custom reports in Export State.
|
|
128
|
+
* @param reports Reports to update, matched by `Uuid`
|
|
129
|
+
* @returns The updated reports
|
|
119
130
|
*/
|
|
120
131
|
updateReports(reports: Report[]): Report[];
|
|
121
132
|
/**
|
|
122
|
-
*
|
|
123
|
-
* @param
|
|
133
|
+
* Whether the destination is one AdapTable provides (`Download` or `Clipboard`) rather than a custom destination.
|
|
134
|
+
* @param destinationName Destination to check
|
|
135
|
+
* @returns `true` for a system destination
|
|
124
136
|
*/
|
|
125
137
|
isExportDestinationSystem(destinationName: ExportDestinationType): boolean;
|
|
126
138
|
/**
|
|
127
139
|
* Retrieves the Export Destinations that are supported for the given Report Format
|
|
128
|
-
* @param reportFormat
|
|
140
|
+
* @param reportFormat Report format to check
|
|
141
|
+
* @returns Destinations that can receive this format
|
|
129
142
|
*/
|
|
130
143
|
getSupportedExportDestinations(reportFormat: ReportFormatType): ExportDestinationType[];
|
|
131
144
|
/**
|
|
132
|
-
*
|
|
133
|
-
* @param
|
|
145
|
+
* The form a custom destination shows before export.
|
|
146
|
+
* @param destinationName Destination whose form to read
|
|
147
|
+
* @returns The form, or `undefined` when the destination has no form
|
|
134
148
|
*/
|
|
135
149
|
getExportDestinationForm(destinationName: ExportDestinationType): AdaptableForm<ExportFormContext> | undefined;
|
|
136
150
|
/**
|
|
137
|
-
*
|
|
151
|
+
* Whether a column is included in an export.
|
|
152
|
+
* @param adaptablColumn Column to check
|
|
153
|
+
* @returns `false` when the column is excluded from reports
|
|
138
154
|
*/
|
|
139
155
|
isColumnExportable(adaptablColumn: AdaptableColumn): boolean;
|
|
140
156
|
/**
|
|
@@ -152,45 +168,56 @@ export interface ExportApi {
|
|
|
152
168
|
* @param config - optional configuration
|
|
153
169
|
* @param config.exportParams - function to modify the default export parameters; it will be called with the default export parameters and should return the modified export parameters
|
|
154
170
|
* @param config.showProgressIndicator - whether to show progress indicator
|
|
171
|
+
* @returns The exported rows in the requested format
|
|
155
172
|
*/
|
|
156
173
|
getReportData(reportName: ReportNameType, format: ReportFormatType, config?: {
|
|
157
174
|
exportParams?: (defaultExportParams: CustomExportParams) => CustomExportParams;
|
|
158
175
|
showProgressIndicator?: boolean;
|
|
159
176
|
}): Promise<ExportResultData>;
|
|
160
177
|
/**
|
|
161
|
-
*
|
|
178
|
+
* Every scheduled report, including suspended ones.
|
|
179
|
+
* @returns The schedules
|
|
162
180
|
*/
|
|
163
181
|
getScheduledReports(): ReportSchedule[];
|
|
164
182
|
/**
|
|
165
|
-
*
|
|
183
|
+
* Scheduled reports that are not suspended.
|
|
184
|
+
* @returns The active schedules
|
|
166
185
|
*/
|
|
167
186
|
getActiveScheduledReports(): ReportSchedule[];
|
|
168
187
|
/**
|
|
169
|
-
*
|
|
188
|
+
* A scheduled report looked up by its id.
|
|
189
|
+
* @param reportScheduleId `Uuid` of the schedule
|
|
190
|
+
* @returns The schedule, or `undefined` when no schedule has that id
|
|
170
191
|
*/
|
|
171
192
|
getScheduledReportById(reportScheduleId: ReportSchedule['Uuid']): ReportSchedule | undefined;
|
|
172
193
|
/**
|
|
173
|
-
* Adds a
|
|
194
|
+
* Adds a schedule that runs a report on a cron expression or at one time.
|
|
195
|
+
* @param reportSchedule Schedule to add
|
|
174
196
|
*/
|
|
175
197
|
addScheduledReport(reportSchedule: ReportSchedule): void;
|
|
176
198
|
/**
|
|
177
|
-
*
|
|
199
|
+
* Replaces a scheduled report already in state.
|
|
200
|
+
* @param reportSchedule Schedule to save, matched by `Uuid`
|
|
178
201
|
*/
|
|
179
202
|
editScheduledReport(reportSchedule: ReportSchedule): void;
|
|
180
203
|
/**
|
|
181
|
-
*
|
|
204
|
+
* Removes a scheduled report.
|
|
205
|
+
* @param reportSchedule Schedule to delete
|
|
182
206
|
*/
|
|
183
207
|
deleteScheduledReport(reportSchedule: ReportSchedule): void;
|
|
184
208
|
/**
|
|
185
|
-
*
|
|
209
|
+
* Stops a schedule from running until it is unsuspended.
|
|
210
|
+
* @param reportSchedule Schedule to suspend
|
|
186
211
|
*/
|
|
187
212
|
suspendScheduledReport(reportSchedule: ReportSchedule): void;
|
|
188
213
|
/**
|
|
189
|
-
*
|
|
214
|
+
* Makes a suspended schedule run again.
|
|
215
|
+
* @param reportSchedule Schedule to activate
|
|
190
216
|
*/
|
|
191
217
|
unSuspendScheduledReport(reportSchedule: ReportSchedule): void;
|
|
192
218
|
/**
|
|
193
|
-
* Runs a scheduled export and records the job
|
|
219
|
+
* Runs a scheduled export now and records that the job ran.
|
|
220
|
+
* @param reportSchedule Schedule to run
|
|
194
221
|
*/
|
|
195
222
|
applyScheduledReport(reportSchedule: ReportSchedule): void;
|
|
196
223
|
/**
|
|
@@ -14,11 +14,16 @@ export interface ExpressionApi {
|
|
|
14
14
|
* @param expression query to Check
|
|
15
15
|
* @param module module specific query
|
|
16
16
|
* @param validationErrorMessage optional validation error message; if provided, the error will be logged
|
|
17
|
+
* @returns `true` when the given Expression is valid as a boolean predicate (Alert / Format Column / Grid Filter / etc.). Root `QUERY("x")` is accepted only when the named query's declared ReturnType is boolean (or absent)
|
|
17
18
|
*/
|
|
18
19
|
isValidScalarExpression(expression: string, module: AdaptableModule, validationErrorMessage?: string): boolean;
|
|
19
20
|
/**
|
|
20
21
|
* Whether the given Expression is a valid value-producing scalar expression
|
|
21
22
|
* (any return type — used by Calculated Column and non-boolean Named Queries).
|
|
23
|
+
* @param expression Expression to check
|
|
24
|
+
* @param module Module the expression belongs to
|
|
25
|
+
* @param validationErrorMessage When set, the validation error is logged with this message
|
|
26
|
+
* @returns `true` when the given Expression is a valid value-producing scalar expression (any return type — used by Calculated Column and non-boolean Named Queries)
|
|
22
27
|
*/
|
|
23
28
|
isValidValueExpression(expression: string, module: AdaptableModule, validationErrorMessage?: string): boolean;
|
|
24
29
|
/**
|
|
@@ -26,21 +31,27 @@ export interface ExpressionApi {
|
|
|
26
31
|
* @param expression - AggregatedExpression to check
|
|
27
32
|
* @param module - module specific query
|
|
28
33
|
* @param validationErrorMessage - optional validation error message; if provided, the error will be logged
|
|
34
|
+
* @returns `true` when the given AggregatedExpression is valid
|
|
29
35
|
*/
|
|
30
36
|
isValidAggregatedExpression(expression: string, module: AdaptableModule, validationErrorMessage?: string): boolean;
|
|
31
37
|
/**
|
|
32
38
|
* Returns all Columns referenced in an Expression
|
|
33
39
|
* @param expression - expression to check
|
|
40
|
+
* @returns All Columns referenced in an Expression
|
|
34
41
|
*/
|
|
35
42
|
getColumnsFromExpression(expression: string): string[];
|
|
36
43
|
/**
|
|
37
|
-
*
|
|
44
|
+
* Whether a column can be used in an AdapTableQL expression.
|
|
45
|
+
* @param abColumn Column to check
|
|
46
|
+
* @returns `true` when a column can be used in an AdapTableQL expression
|
|
38
47
|
*/
|
|
39
48
|
isColumnQueryable(abColumn: AdaptableColumn): boolean;
|
|
40
49
|
/**
|
|
41
50
|
* AST for remote / SSRM evaluation. Emits a normalized contract-v2 tree
|
|
42
51
|
* when `expressionOptions.supportedAstContractVersions` includes `2`;
|
|
43
52
|
* otherwise the raw parse tree (v1).
|
|
53
|
+
* @param expression Expression to parse
|
|
54
|
+
* @returns AST for remote / SSRM evaluation. Emits a normalized contract-v2 tree when `expressionOptions.supportedAstContractVersions` includes `2`; otherwise the raw parse tree (v1)
|
|
44
55
|
*/
|
|
45
56
|
getASTForExpression(expression: string): any;
|
|
46
57
|
/**
|
|
@@ -49,11 +60,13 @@ export interface ExpressionApi {
|
|
|
49
60
|
* `CHANGE_COUNT{[col], WITHIN(5m)}` are scalar. Empty or unparseable text yields `scalar`.
|
|
50
61
|
* @param expression - the AdaptableQL Expression
|
|
51
62
|
* @param module - module whose custom functions are taken into account (default `'Expression'`)
|
|
63
|
+
* @returns Infers the kind of an Expression from its text: `aggregated` when it contains an aggregation (e.g. `SUM{[col]}`), `scalar` otherwise — observable reads such as `CHANGE_COUNT{[col], WITHIN(5m)}` are scalar. Empty or unparseable text yields `scalar`
|
|
52
64
|
*/
|
|
53
65
|
getExpressionKind(expression: string, module?: AdaptableModule): ExpressionKind;
|
|
54
66
|
/**
|
|
55
67
|
* Returns the Expression with Column Headers in place of Column IDs
|
|
56
68
|
* @param expression - the Expression string
|
|
69
|
+
* @returns The Expression with Column Headers in place of Column IDs
|
|
57
70
|
*/
|
|
58
71
|
getExpressionWithColumnFriendlyNames(expression: string | undefined | null): string | undefined;
|
|
59
72
|
/**
|
|
@@ -67,6 +80,7 @@ export interface ExpressionApi {
|
|
|
67
80
|
* Direct API evaluation ignores `expressionOptions.evaluateAdaptableQLExternally`
|
|
68
81
|
* (that option only skips evaluation inside AdapTable features).
|
|
69
82
|
* @param request Expression + exactly one row target (`rowNode` / `primaryKeyValue` / `data`)
|
|
83
|
+
* @returns Evaluates a Standard Expression against a row. Requires a row target (`rowNode`, `primaryKeyValue`, or `data`) on the request. Never throws — returns a result envelope with `success` / `errorMessage`. The Expression decides the return value: a condition such as `[price] > 100` yields `true` / `false`; `[price] * 1.19` yields a number. Direct API evaluation ignores `expressionOptions.evaluateAdaptableQLExternally` (that option only skips evaluation inside AdapTable features)
|
|
70
84
|
*/
|
|
71
85
|
evaluateStandardExpression(request: EvaluateStandardExpressionRequest): ExpressionEvaluationResult<unknown>;
|
|
72
86
|
/**
|
|
@@ -85,6 +99,7 @@ export interface ExpressionApi {
|
|
|
85
99
|
* Under the server-side row model only currently loaded rows are aggregated;
|
|
86
100
|
* inspect `rowCount` to detect partial data.
|
|
87
101
|
* @param request Expression + optional module / dataSet / rowScope / rowFilter
|
|
102
|
+
* @returns Evaluates an Aggregation Expression (e.g. `SUM{[price]}`, `MAX{[price], GROUP_BY([make])}`, `RANK{OVER([price])}`, `SUM{[price]} > 1000`) and returns a materialized snapshot: the global value, per-group values (for `GROUP_BY`) and a per-row projection (`getValueForRow`). When the Expression is a condition, `matches` is whether at least one aggregation group satisfies it. Default target is all loaded grid rows. Pass `dataSet` to aggregate a caller-supplied array, or `rowScope` / `rowFilter` to narrow the grid set. The snapshot does not update on data changes — re-evaluate when needed. Under the server-side row model only currently loaded rows are aggregated; inspect `rowCount` to detect partial data
|
|
88
103
|
*/
|
|
89
104
|
evaluateAggregatedExpression(request: EvaluateAggregatedExpressionRequest): ExpressionEvaluationResult<AggregatedExpressionEvaluationValue>;
|
|
90
105
|
/**
|
|
@@ -93,6 +108,7 @@ export interface ExpressionApi {
|
|
|
93
108
|
* per-row evaluation error fails the whole call. Matching `IRowNode`s are
|
|
94
109
|
* returned in source order.
|
|
95
110
|
* @param request Expression + optional rowScope / rowFilter / cellValueOverride / module
|
|
111
|
+
* @returns The grid rows matching a boolean Expression, scoped by `rowScope` and optionally pre-narrowed by `rowFilter`. Validation runs once; a per-row evaluation error fails the whole call. Matching `IRowNode`s are returned in source order
|
|
96
112
|
*/
|
|
97
113
|
filterRowNodes(request: FilterRowNodesRequest): ExpressionEvaluationResult<IRowNode[]>;
|
|
98
114
|
/**
|
|
@@ -100,6 +116,7 @@ export interface ExpressionApi {
|
|
|
100
116
|
* order and with the same object references. Validation runs once; a
|
|
101
117
|
* per-row evaluation error fails the whole call.
|
|
102
118
|
* @param request Expression + the array to filter
|
|
119
|
+
* @returns The subset of `dataSet` matching a boolean Expression, in original order and with the same object references. Validation runs once; a per-row evaluation error fails the whole call
|
|
103
120
|
*/
|
|
104
121
|
filterDataSet(request: FilterDataSetRequest): ExpressionEvaluationResult<Record<string, unknown>[]>;
|
|
105
122
|
/**
|
|
@@ -116,6 +133,9 @@ export interface ExpressionApi {
|
|
|
116
133
|
* `expressionKind` is the stored module kind. Required for dual-name
|
|
117
134
|
* paren calls (`SUM([x])` scalar vs aggregation). Omit only when the
|
|
118
135
|
* leftover is shape-proven (`GROUP_BY` / `CUMUL` / `TIMEFRAME` / …).
|
|
136
|
+
* @param expression Expression written in the older syntax
|
|
137
|
+
* @param options `expressionKind` is the stored module kind. Required for calls such as `SUM([x])` that can be either a scalar or an aggregation
|
|
138
|
+
* @returns Convert a leftover (pre-v24) AdaptableQL string to the v24 greenfield syntax. Unparseable input is returned unchanged with `error` set. v24 introduced brace aggregations (`SUM{[price]}`), named operands (`CUMULATIVE([d])`, `WITHIN(5m)`), and dropped wrappers such as `CUMUL(...)` and `TIMEFRAME(...)`. Persisted state is rewritten on load by VersionUpgrade24 when `autoMigrateState` is on. Use this for a single programmatic / external-config string that has not gone through that upgrade. The runtime does not accept leftover spellings. `expressionKind` is the stored module kind. Required for dual-name paren calls (`SUM([x])` scalar vs aggregation). Omit only when the leftover is shape-proven (`GROUP_BY` / `CUMUL` / `TIMEFRAME` / …)
|
|
119
139
|
*/
|
|
120
140
|
migratePreV24Expression(expression: string, options?: {
|
|
121
141
|
expressionKind?: 'boolean' | 'scalar' | 'aggregatedScalar' | 'aggregatedBoolean';
|
|
@@ -126,12 +146,15 @@ export interface ExpressionApi {
|
|
|
126
146
|
};
|
|
127
147
|
/**
|
|
128
148
|
* Whether Expressions are evaluated using Case Sensitivity
|
|
149
|
+
* @returns `true` when Expressions are evaluated using Case Sensitivity
|
|
129
150
|
*/
|
|
130
151
|
useCaseSensitivity(): boolean;
|
|
131
152
|
/**
|
|
132
153
|
* Whether date comparisons use the full timestamp (exact instant) rather than
|
|
133
154
|
* the calendar day for the given column — governs the `IN` operator on date
|
|
134
155
|
* columns and the date Column Filter's distinct-value tree granularity.
|
|
156
|
+
* @param column Column id or column to check
|
|
157
|
+
* @returns `true` when date comparisons use the full timestamp (exact instant) rather than the calendar day for the given column — governs the `IN` operator on date columns and the date Column Filter's distinct-value tree granularity
|
|
135
158
|
*/
|
|
136
159
|
shouldEvaluateDatesUsingTime(column: string | AdaptableColumn): boolean;
|
|
137
160
|
}
|
package/src/Api/Fdc3Api.d.ts
CHANGED
|
@@ -1,28 +1,32 @@
|
|
|
1
1
|
import { IRowNode } from 'ag-grid-enterprise';
|
|
2
2
|
import { AppIdentifier, Channel, Context, ContextType, DesktopAgent, Intent, IntentResolution } from '@finos/fdc3';
|
|
3
3
|
/**
|
|
4
|
-
*
|
|
4
|
+
* FDC3 intents and context raised from a grid row, and checks for standard FDC3 types.
|
|
5
5
|
*/
|
|
6
6
|
export interface Fdc3Api {
|
|
7
7
|
/**
|
|
8
8
|
* Returns the FDC3 Desktop Agent
|
|
9
|
+
* @returns The FDC3 Desktop Agent
|
|
9
10
|
*/
|
|
10
11
|
getDesktopAgent(): DesktopAgent;
|
|
11
12
|
/**
|
|
12
13
|
* Returns the human-friendly label for the given Context Type
|
|
13
14
|
* @param contextType - The FDC3 Context Type
|
|
15
|
+
* @returns The human-friendly label for the given Context Type
|
|
14
16
|
*/
|
|
15
17
|
getContextLabel(contextType: ContextType): string;
|
|
16
18
|
/**
|
|
17
19
|
* Builds FDC3 Context Data based on the given Context Type and Row Node
|
|
18
20
|
* @param contextType - The FDC3 Context Type
|
|
19
21
|
* @param rowNode - The Row Node
|
|
22
|
+
* @returns Builds FDC3 Context Data based on the given Context Type and Row Node
|
|
20
23
|
*/
|
|
21
24
|
buildContextDataFromRow(contextType: ContextType, rowNode: IRowNode): Context;
|
|
22
25
|
/**
|
|
23
26
|
* Builds FDC3 Context Data based on the given Context Type and the Row Node with the given Primary Key Value
|
|
24
27
|
* @param contextType - The FDC3 Context Type
|
|
25
28
|
* @param primaryKeyValue - The Primary Key Value
|
|
29
|
+
* @returns Builds FDC3 Context Data based on the given Context Type and the Row Node with the given Primary Key Value
|
|
26
30
|
*/
|
|
27
31
|
buildContextDataForPrimaryKey(contextType: ContextType, primaryKeyValue: string | number): Context | undefined;
|
|
28
32
|
/**
|
|
@@ -31,6 +35,7 @@ export interface Fdc3Api {
|
|
|
31
35
|
* @param intent - The FDC3 Intent
|
|
32
36
|
* @param contextType - The FDC3 Context Type
|
|
33
37
|
* @param appIdentifier - The App Identifier
|
|
38
|
+
* @returns Raises an Intent with the given Context from the given Row Node
|
|
34
39
|
*/
|
|
35
40
|
raiseIntentFromRow(rowNode: IRowNode, intent: Intent, contextType: ContextType, appIdentifier?: AppIdentifier): Promise<IntentResolution>;
|
|
36
41
|
/**
|
|
@@ -39,6 +44,7 @@ export interface Fdc3Api {
|
|
|
39
44
|
* @param intent - The FDC3 Intent
|
|
40
45
|
* @param contextType - The FDC3 Context Type
|
|
41
46
|
* @param appIdentifier - The App Identifier
|
|
47
|
+
* @returns Raises an Intent with the given Context from the given Row Node with the given Primary Key Value
|
|
42
48
|
*/
|
|
43
49
|
raiseIntentFromPrimaryKey(primaryKeyValue: string | number, intent: Intent, contextType: ContextType, appIdentifier?: AppIdentifier): Promise<IntentResolution> | undefined;
|
|
44
50
|
/**
|
|
@@ -46,6 +52,7 @@ export interface Fdc3Api {
|
|
|
46
52
|
* @param rowNode - The Row Node
|
|
47
53
|
* @param contextType - The FDC3 Context Type
|
|
48
54
|
* @param appIdentifier - The App Identifier
|
|
55
|
+
* @returns The intent resolution from the app that handled it
|
|
49
56
|
*/
|
|
50
57
|
raiseIntentForContextFromRow(rowNode: IRowNode, contextType: ContextType, appIdentifier?: AppIdentifier): Promise<IntentResolution>;
|
|
51
58
|
/**
|
|
@@ -53,6 +60,7 @@ export interface Fdc3Api {
|
|
|
53
60
|
* @param primaryKeyValue - The Primary Key Value
|
|
54
61
|
* @param contextType - The FDC3 Context Type
|
|
55
62
|
* @param appIdentifier - The App Identifier
|
|
63
|
+
* @returns The intent resolution, or `undefined` when the row cannot be found
|
|
56
64
|
*/
|
|
57
65
|
raiseIntentForContextFromPrimaryKey(primaryKeyValue: string | number, contextType: ContextType, appIdentifier?: AppIdentifier): Promise<IntentResolution> | undefined;
|
|
58
66
|
/**
|
|
@@ -67,14 +75,19 @@ export interface Fdc3Api {
|
|
|
67
75
|
* @param primaryKeyValue - The Primary Key Value
|
|
68
76
|
* @param contextType - The FDC3 Context Type
|
|
69
77
|
* @param channel - (optional) Channel to broadcast to; if not provided, the Context will be broadcast to whatever User Channel the app is joined to
|
|
78
|
+
* @returns Broadcasts the given Context from the given Row Node with the given Primary Key Value
|
|
70
79
|
*/
|
|
71
80
|
broadcastFromPrimaryKey(primaryKeyValue: string | number, contextType: ContextType, channel?: Channel): Promise<void> | undefined;
|
|
72
81
|
/**
|
|
73
|
-
*
|
|
82
|
+
* Whether this context type is one of the FDC3 standard types.
|
|
83
|
+
* @param contextType Context type to check, for example `fdc3.instrument`
|
|
84
|
+
* @returns `true` when this context type is one of the FDC3 standard types
|
|
74
85
|
*/
|
|
75
86
|
isStandardContextType(contextType: string): boolean;
|
|
76
87
|
/**
|
|
77
|
-
*
|
|
88
|
+
* Whether this intent is one of the FDC3 standard intents.
|
|
89
|
+
* @param intentType Intent to check, for example `ViewChart`
|
|
90
|
+
* @returns `true` when this intent is one of the FDC3 standard intents
|
|
78
91
|
*/
|
|
79
92
|
isStandardIntentType(intentType: string): boolean;
|
|
80
93
|
}
|
|
@@ -2,7 +2,7 @@ import { AdaptableFlashingCell } from '../AdaptableState/Common/AdaptableFlashin
|
|
|
2
2
|
import { FlashingCellDefinition, FlashingCellState } from '../AdaptableState/FlashingCellState';
|
|
3
3
|
import { AdaptableObjectLookupCriteria } from '../AdaptableState/Common/AdaptableObject';
|
|
4
4
|
/**
|
|
5
|
-
*
|
|
5
|
+
* Flashing Cell definitions, and flashing a cell when its value changes.
|
|
6
6
|
*/
|
|
7
7
|
export interface FlashingCellApi {
|
|
8
8
|
/**
|
|
@@ -12,6 +12,7 @@ export interface FlashingCellApi {
|
|
|
12
12
|
getFlashingCellState(): FlashingCellState;
|
|
13
13
|
/**
|
|
14
14
|
* Retrieves all Flashing Cell Definitions in Flashing Cell State
|
|
15
|
+
* @returns All Flashing Cell Definitions in Flashing Cell State
|
|
15
16
|
*/
|
|
16
17
|
getFlashingCellDefinitions(): FlashingCellDefinition[];
|
|
17
18
|
/**
|
|
@@ -39,6 +40,7 @@ export interface FlashingCellApi {
|
|
|
39
40
|
/**
|
|
40
41
|
* Returns `FlashTarget` of the given Flashing Cell Definition
|
|
41
42
|
* @param flashingCellDefinition Flashing Cell Definition to check
|
|
43
|
+
* @returns `FlashTarget` of the given Flashing Cell Definition
|
|
42
44
|
*/
|
|
43
45
|
getFlashingCellFlashTarget(flashingCellDefinition: FlashingCellDefinition): FlashingCellDefinition['FlashTarget'];
|
|
44
46
|
/**
|
|
@@ -61,6 +63,7 @@ export interface FlashingCellApi {
|
|
|
61
63
|
/**
|
|
62
64
|
* Adds a Flashing Cell Definition to State
|
|
63
65
|
* @param flashingCellDefinition Flashing Cell Definition to Add
|
|
66
|
+
* @returns The Flashing Cell Definition that was added
|
|
64
67
|
*/
|
|
65
68
|
addFlashingCellDefinition(flashingCellDefinition: FlashingCellDefinition): FlashingCellDefinition;
|
|
66
69
|
/**
|
|
@@ -105,11 +108,13 @@ export interface FlashingCellApi {
|
|
|
105
108
|
clearAllFlashingCells(): void;
|
|
106
109
|
/**
|
|
107
110
|
* Is there any cells/rows currently being flashed
|
|
111
|
+
* @returns `true` when there any cells/rows currently being flashed
|
|
108
112
|
*/
|
|
109
113
|
isAnyFlashingCellActive(): boolean;
|
|
110
114
|
/**
|
|
111
115
|
* Find all Flashing Cell Definitions which match the given criteria
|
|
112
116
|
* @param flashingCellLookupCriteria lookup criteria
|
|
117
|
+
* @returns The Flashing Cell Definitions that match
|
|
113
118
|
*/
|
|
114
119
|
findFlashingCellDefinitions(flashingCellLookupCriteria: AdaptableObjectLookupCriteria): FlashingCellDefinition[];
|
|
115
120
|
}
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import { FormatColumn, FormatColumnState } from '../AdaptableState/FormatColumnState';
|
|
2
2
|
import { AdaptableColumn, AdaptableFormat, AdaptableObjectLookupCriteria, FormatColumnConfig } from '../types';
|
|
3
3
|
/**
|
|
4
|
-
*
|
|
4
|
+
* Format Columns: the display format and style applied to a column, including which formats are active.
|
|
5
5
|
*/
|
|
6
6
|
export interface FormatColumnApi {
|
|
7
7
|
/**
|
|
8
8
|
* Retrieves Format Column section from Adaptable State
|
|
9
|
+
* @returns Format Column section from Adaptable State
|
|
9
10
|
*/
|
|
10
11
|
getFormatColumnState(): FormatColumnState;
|
|
11
12
|
/**
|
|
@@ -33,6 +34,8 @@ export interface FormatColumnApi {
|
|
|
33
34
|
/**
|
|
34
35
|
* Retrieves the first Format Column's Adaptable Format for a given Column
|
|
35
36
|
* @param column Column to check
|
|
37
|
+
* @param config Which formats to consider. Suspended and read-only formats are excluded unless this says to include them
|
|
38
|
+
* @returns The first Format Column's Adaptable Format for a given Column
|
|
36
39
|
*/
|
|
37
40
|
getDisplayFormatForColumn(column: AdaptableColumn, config?: FormatColumnConfig): AdaptableFormat | undefined;
|
|
38
41
|
/**
|
|
@@ -48,7 +51,7 @@ export interface FormatColumnApi {
|
|
|
48
51
|
addFormatColumn(formatColumn: FormatColumn): FormatColumn;
|
|
49
52
|
/**
|
|
50
53
|
* Adds Format Columns to Format Column State
|
|
51
|
-
* @param
|
|
54
|
+
* @param formatColumns Format Columns to add
|
|
52
55
|
* @returns format columns
|
|
53
56
|
*/
|
|
54
57
|
addFormatColumns(formatColumns: FormatColumn[]): FormatColumn[];
|
|
@@ -74,9 +77,9 @@ export interface FormatColumnApi {
|
|
|
74
77
|
*/
|
|
75
78
|
suspendFormatColumn(formatColumn: FormatColumn): FormatColumn;
|
|
76
79
|
/**
|
|
77
|
-
*
|
|
78
|
-
* @param formatColumn The Format Column to
|
|
79
|
-
* @returns
|
|
80
|
+
* Activates a suspended Format Column.
|
|
81
|
+
* @param formatColumn The Format Column to activate
|
|
82
|
+
* @returns The Format Column after it is activated
|
|
80
83
|
*/
|
|
81
84
|
unSuspendFormatColumn(formatColumn: FormatColumn): FormatColumn;
|
|
82
85
|
/**
|
|
@@ -94,33 +97,37 @@ export interface FormatColumnApi {
|
|
|
94
97
|
/**
|
|
95
98
|
* Gets all FormatColumns which are defined for the given column
|
|
96
99
|
* @param column The Column for which to retrieve the Format Column
|
|
100
|
+
* @param config Which formats to include. Suspended and read-only formats are excluded unless this says to include them
|
|
97
101
|
* @returns format column
|
|
98
102
|
*/
|
|
99
103
|
getFormatColumnsForColumn(column: AdaptableColumn, config?: FormatColumnConfig): FormatColumn[];
|
|
100
104
|
/**
|
|
101
105
|
* Gets all FormatColumns which are defined for the column with the given columnId
|
|
102
106
|
* @param columnId ColumnId for which to retrieve the Format Column
|
|
107
|
+
* @param config Which formats to include. Suspended and read-only formats are excluded unless this says to include them
|
|
103
108
|
* @returns format column
|
|
104
109
|
*/
|
|
105
110
|
getFormatColumnsForColumnId(columnId: string, config?: FormatColumnConfig): FormatColumn[];
|
|
106
111
|
/**
|
|
107
112
|
* Checks if a Format Column contains a Custom Display Formatter
|
|
108
113
|
* @param formatColumn Format Column
|
|
114
|
+
* @returns `true` when a Format Column contains a Custom Display Formatter
|
|
109
115
|
*/
|
|
110
116
|
hasCustomDisplayFormatter(formatColumn: FormatColumn): boolean;
|
|
111
117
|
/**
|
|
112
|
-
*
|
|
113
|
-
* @param formatColumn
|
|
118
|
+
* Moves a Format Column up so it is applied before the formats below it.
|
|
119
|
+
* @param formatColumn Format Column to move up
|
|
114
120
|
*/
|
|
115
121
|
incrementFormatColumnPrecedence(formatColumn: FormatColumn): void;
|
|
116
122
|
/**
|
|
117
|
-
*
|
|
118
|
-
* @param formatColumn
|
|
123
|
+
* Moves a Format Column down so the formats above it are applied first.
|
|
124
|
+
* @param formatColumn Format Column to move down
|
|
119
125
|
*/
|
|
120
126
|
decrementFormatColumnPrecedence(formatColumn: FormatColumn): void;
|
|
121
127
|
/**
|
|
122
|
-
*
|
|
123
|
-
* @param
|
|
128
|
+
* Format Columns that match the given criteria.
|
|
129
|
+
* @param formatColumnLookupCriteria Name, id, tag or other lookup values
|
|
130
|
+
* @returns Format Columns that match the given criteria
|
|
124
131
|
*/
|
|
125
132
|
findFormatColumns(formatColumnLookupCriteria: AdaptableObjectLookupCriteria): FormatColumn[];
|
|
126
133
|
}
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import { FreeTextColumn, FreeTextColumnState, FreeTextStoredValue } from '../AdaptableState/FreeTextColumnState';
|
|
2
2
|
import { IRowNode } from 'ag-grid-enterprise';
|
|
3
3
|
/**
|
|
4
|
-
*
|
|
4
|
+
* Free Text Columns. Values typed into these columns are stored in AdapTable State.
|
|
5
5
|
*/
|
|
6
6
|
export interface FreeTextColumnApi {
|
|
7
7
|
/**
|
|
8
8
|
* Retrieves FreeTextColumn section of Adaptable State
|
|
9
|
+
* @returns FreeTextColumn section of Adaptable State
|
|
9
10
|
*/
|
|
10
11
|
getFreeTextColumnState(): FreeTextColumnState;
|
|
11
12
|
/**
|
|
@@ -33,7 +34,7 @@ export interface FreeTextColumnApi {
|
|
|
33
34
|
addFreeTextColumn(freeTextColumn: FreeTextColumn): FreeTextColumn;
|
|
34
35
|
/**
|
|
35
36
|
* Edits existing FreeTextColumn in Adaptable State
|
|
36
|
-
* @param
|
|
37
|
+
* @param freeTextColumn Free Text Column to save. `ColumnId` is required
|
|
37
38
|
* @returns free text column
|
|
38
39
|
*/
|
|
39
40
|
editFreeTextColumn(freeTextColumn: FreeTextColumn): FreeTextColumn;
|
|
@@ -60,6 +61,7 @@ export interface FreeTextColumnApi {
|
|
|
60
61
|
* Retrieves a Free Text Column value for a given row node
|
|
61
62
|
* @param freeTextColumn column to lookup
|
|
62
63
|
* @param rowNode row to lookup
|
|
64
|
+
* @returns A Free Text Column value for a given row node
|
|
63
65
|
*/
|
|
64
66
|
getFreeTextColumnValueForRowNode(freeTextColumn: FreeTextColumn, rowNode: IRowNode): any;
|
|
65
67
|
/**
|