@adaptabletools/adaptable 15.4.3 → 16.0.0-canary.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/base.css +1 -1
- package/base.css.map +1 -1
- package/bundle.cjs.js +234 -228
- package/index.css +1 -1
- package/index.css.map +1 -1
- package/package.json +2 -2
- package/publishTimestamp.d.ts +1 -1
- package/publishTimestamp.js +1 -1
- package/src/AdaptableInterfaces/IAdaptable.d.ts +3 -2
- package/src/AdaptableOptions/ActionColumnOptions.d.ts +82 -0
- package/src/AdaptableOptions/{ActionOptions.d.ts → ActionRowOptions.d.ts} +15 -90
- package/src/AdaptableOptions/AdaptableOptions.d.ts +32 -7
- package/src/AdaptableOptions/AdaptableQLOptions.d.ts +1 -12
- package/src/AdaptableOptions/AlertOptions.d.ts +9 -0
- package/src/AdaptableOptions/CalendarOptions.d.ts +11 -0
- package/src/AdaptableOptions/CellSummaryOptions.d.ts +10 -0
- package/src/AdaptableOptions/ColumnOptions.d.ts +0 -4
- package/src/AdaptableOptions/CustomSortOptions.d.ts +24 -0
- package/src/AdaptableOptions/DataChangeHistoryOptions.d.ts +5 -1
- package/src/AdaptableOptions/DataSetOptions.d.ts +41 -0
- package/src/AdaptableOptions/DataSetOptions.js +2 -0
- package/src/AdaptableOptions/EditOptions.d.ts +4 -4
- package/src/AdaptableOptions/EntitlementOptions.d.ts +0 -16
- package/src/AdaptableOptions/ExportOptions.d.ts +2 -4
- package/src/AdaptableOptions/ExpressionOptions.d.ts +7 -0
- package/src/AdaptableOptions/FinancePluginOptions.d.ts +1 -1
- package/src/AdaptableOptions/GroupingOptions.d.ts +50 -0
- package/src/AdaptableOptions/GroupingOptions.js +2 -0
- package/src/AdaptableOptions/MasterDetailPluginOptions.d.ts +9 -0
- package/src/AdaptableOptions/PredicateOptions.d.ts +4 -0
- package/src/AdaptableOptions/TeamSharingOptions.d.ts +0 -8
- package/src/AdaptableOptions/UserInterfaceOptions.d.ts +30 -1
- package/src/Api/ActionColumnApi.d.ts +10 -0
- package/src/Api/ActionColumnApi.js +2 -0
- package/src/Api/{ActionApi.d.ts → ActionRowApi.d.ts} +4 -15
- package/src/Api/ActionRowApi.js +2 -0
- package/src/Api/AdaptableApi.d.ts +11 -6
- package/src/Api/AlertApi.d.ts +2 -111
- package/src/Api/BulkUpdateApi.d.ts +0 -7
- package/src/Api/CalculatedColumnApi.d.ts +0 -31
- package/src/Api/CalendarApi.d.ts +1 -1
- package/src/Api/CellSummaryApi.d.ts +0 -7
- package/src/Api/ChartingApi.d.ts +0 -7
- package/src/Api/ColumnApi.d.ts +1 -131
- package/src/Api/ConfigApi.d.ts +1 -7
- package/src/Api/CustomSortApi.d.ts +0 -25
- package/src/Api/DashboardApi.d.ts +0 -16
- package/src/Api/DataChangeHistoryApi.d.ts +0 -7
- package/src/Api/DataSetApi.d.ts +1 -16
- package/src/Api/EventApi.d.ts +1 -9
- package/src/Api/Events/AdaptableStateChanged.d.ts +0 -8
- package/src/Api/Events/AdaptableStateReloaded.d.ts +0 -4
- package/src/Api/Events/BaseEventInfo.d.ts +9 -1
- package/src/Api/Events/LiveDataChanged.d.ts +3 -7
- package/src/Api/ExportApi.d.ts +7 -31
- package/src/Api/{QueryLanguageApi.d.ts → ExpressionApi.d.ts} +2 -2
- package/src/Api/ExpressionApi.js +2 -0
- package/src/Api/FilterApi.d.ts +1 -59
- package/src/Api/FlashingCellApi.d.ts +0 -15
- package/src/Api/FormatColumnApi.d.ts +1 -91
- package/src/Api/FreeTextColumnApi.d.ts +0 -39
- package/src/Api/GridApi.d.ts +0 -31
- package/src/Api/Implementation/ActionColumnApiImpl.d.ts +7 -0
- package/src/Api/Implementation/ActionColumnApiImpl.js +14 -0
- package/src/Api/Implementation/ActionRowApiImpl.d.ts +12 -0
- package/src/Api/Implementation/{ActionApiImpl.js → ActionRowApiImpl.js} +8 -15
- package/src/Api/Implementation/AdaptableApiImpl.d.ts +6 -4
- package/src/Api/Implementation/AdaptableApiImpl.js +7 -5
- package/src/Api/Implementation/AlertApiImpl.d.ts +1 -43
- package/src/Api/Implementation/AlertApiImpl.js +4 -94
- package/src/Api/Implementation/ApiBase.d.ts +15 -5
- package/src/Api/Implementation/ApiBase.js +26 -8
- package/src/Api/Implementation/CalculatedColumnApiImpl.d.ts +0 -7
- package/src/Api/Implementation/CalculatedColumnApiImpl.js +0 -32
- package/src/Api/Implementation/CalendarApiImpl.d.ts +1 -0
- package/src/Api/Implementation/CalendarApiImpl.js +20 -17
- package/src/Api/Implementation/CellSummaryApiImpl.d.ts +0 -1
- package/src/Api/Implementation/CellSummaryApiImpl.js +1 -6
- package/src/Api/Implementation/ChartingApiImpl.d.ts +0 -1
- package/src/Api/Implementation/ChartingApiImpl.js +0 -5
- package/src/Api/Implementation/ColumnApiImpl.d.ts +0 -35
- package/src/Api/Implementation/ColumnApiImpl.js +1 -138
- package/src/Api/Implementation/ConfigApiImpl.js +2 -1
- package/src/Api/Implementation/CustomSortApiImpl.d.ts +1 -5
- package/src/Api/Implementation/CustomSortApiImpl.js +0 -16
- package/src/Api/Implementation/DashboardApiImpl.d.ts +0 -4
- package/src/Api/Implementation/DashboardApiImpl.js +2 -24
- package/src/Api/Implementation/DataChangeHistoryApiImpl.d.ts +0 -1
- package/src/Api/Implementation/DataChangeHistoryApiImpl.js +0 -5
- package/src/Api/Implementation/DataSetApiImpl.d.ts +1 -4
- package/src/Api/Implementation/DataSetApiImpl.js +1 -14
- package/src/Api/Implementation/ExportApiImpl.d.ts +4 -10
- package/src/Api/Implementation/ExportApiImpl.js +15 -34
- package/src/Api/Implementation/{QueryLanguageApiImpl.d.ts → ExpressionApiImpl.d.ts} +4 -4
- package/src/Api/Implementation/{QueryLanguageApiImpl.js → ExpressionApiImpl.js} +7 -5
- package/src/Api/Implementation/FilterApiImpl.d.ts +1 -17
- package/src/Api/Implementation/FilterApiImpl.js +0 -53
- package/src/Api/Implementation/FlashingCellApiImpl.d.ts +0 -3
- package/src/Api/Implementation/FlashingCellApiImpl.js +2 -13
- package/src/Api/Implementation/FormatColumnApiImpl.d.ts +2 -34
- package/src/Api/Implementation/FormatColumnApiImpl.js +0 -73
- package/src/Api/Implementation/FreeTextColumnApiImpl.d.ts +0 -8
- package/src/Api/Implementation/FreeTextColumnApiImpl.js +0 -29
- package/src/Api/Implementation/GridApiImpl.d.ts +0 -7
- package/src/Api/Implementation/GridApiImpl.js +3 -32
- package/src/Api/Implementation/LayoutApiImpl.d.ts +1 -6
- package/src/Api/Implementation/LayoutApiImpl.js +2 -27
- package/src/Api/Implementation/OptionsApiImpl.d.ts +10 -5
- package/src/Api/Implementation/OptionsApiImpl.js +19 -7
- package/src/Api/Implementation/PlusMinusApiImpl.d.ts +0 -1
- package/src/Api/Implementation/PlusMinusApiImpl.js +0 -5
- package/src/Api/Implementation/PredicateApiImpl.d.ts +1 -8
- package/src/Api/Implementation/PredicateApiImpl.js +2 -30
- package/src/Api/Implementation/QueryApiImpl.d.ts +0 -5
- package/src/Api/Implementation/QueryApiImpl.js +0 -21
- package/src/Api/Implementation/QuickSearchApiImpl.d.ts +0 -1
- package/src/Api/Implementation/QuickSearchApiImpl.js +0 -5
- package/src/Api/Implementation/ScheduleApiImpl.d.ts +1 -18
- package/src/Api/Implementation/ScheduleApiImpl.js +0 -69
- package/src/Api/Implementation/ScopeApiImpl.js +1 -1
- package/src/Api/Implementation/SettingsPanelApiImpl.d.ts +0 -2
- package/src/Api/Implementation/SettingsPanelApiImpl.js +0 -9
- package/src/Api/Implementation/ShortcutApiImpl.d.ts +1 -6
- package/src/Api/Implementation/ShortcutApiImpl.js +0 -21
- package/src/Api/Implementation/SmartEditApiImpl.d.ts +0 -1
- package/src/Api/Implementation/SmartEditApiImpl.js +0 -5
- package/src/Api/Implementation/StyledColumnApiImpl.d.ts +1 -5
- package/src/Api/Implementation/StyledColumnApiImpl.js +2 -17
- package/src/Api/Implementation/SystemStatusApiImpl.d.ts +0 -2
- package/src/Api/Implementation/SystemStatusApiImpl.js +0 -9
- package/src/Api/Implementation/TeamSharingApiImpl.d.ts +0 -5
- package/src/Api/Implementation/TeamSharingApiImpl.js +0 -21
- package/src/Api/Implementation/ThemeApiImpl.d.ts +0 -4
- package/src/Api/Implementation/ThemeApiImpl.js +2 -17
- package/src/Api/Implementation/ToolPanelApiImpl.js +2 -2
- package/src/Api/Implementation/UserInterfaceApiImpl.d.ts +4 -2
- package/src/Api/Implementation/UserInterfaceApiImpl.js +17 -10
- package/src/Api/Internal/{ActionInternalApi.d.ts → ActionRowInternalApi.d.ts} +2 -2
- package/src/Api/Internal/{ActionInternalApi.js → ActionRowInternalApi.js} +12 -5
- package/src/Api/Internal/AdaptableInternalApi.d.ts +1 -10
- package/src/Api/Internal/AdaptableInternalApi.js +9 -20
- package/src/Api/Internal/AlertInternalApi.js +9 -6
- package/src/Api/Internal/CalculatedColumnInternalApi.js +2 -2
- package/src/Api/Internal/CustomSortInternalApi.d.ts +1 -1
- package/src/Api/Internal/CustomSortInternalApi.js +1 -1
- package/src/Api/Internal/DashboardInternalApi.js +2 -0
- package/src/Api/Internal/DataSetInternalApi.d.ts +1 -1
- package/src/Api/Internal/DataSetInternalApi.js +2 -1
- package/src/Api/Internal/ExportInternalApi.js +1 -1
- package/src/Api/Internal/{QueryLanguageInternalApi.d.ts → ExpressionnternalApi.d.ts} +1 -1
- package/src/Api/Internal/{QueryLanguageInternalApi.js → ExpressionnternalApi.js} +9 -5
- package/src/Api/Internal/FilterInternalApi.js +4 -1
- package/src/Api/Internal/FormatColumnInternalApi.js +1 -1
- package/src/Api/Internal/GridInternalApi.js +8 -0
- package/src/Api/Internal/LayoutInternalApi.js +6 -1
- package/src/Api/Internal/PredicateInternalApi.js +10 -0
- package/src/Api/Internal/QueryInternalApi.js +3 -1
- package/src/Api/Internal/SystemStatusInternalApi.js +4 -1
- package/src/Api/Internal/TeamSharingInternalApi.js +2 -0
- package/src/Api/LayoutApi.d.ts +3 -27
- package/src/Api/OptionsApi.d.ts +28 -10
- package/src/Api/PlusMinusApi.d.ts +0 -7
- package/src/Api/PredicateApi.d.ts +1 -32
- package/src/Api/QueryApi.d.ts +0 -23
- package/src/Api/QuickSearchApi.d.ts +0 -4
- package/src/Api/ScheduleApi.d.ts +0 -81
- package/src/Api/SettingsPanelApi.d.ts +0 -11
- package/src/Api/ShortcutApi.d.ts +0 -25
- package/src/Api/SmartEditApi.d.ts +0 -7
- package/src/Api/StyledColumnApi.d.ts +0 -21
- package/src/Api/SystemStatusApi.d.ts +0 -11
- package/src/Api/TeamSharingApi.d.ts +0 -23
- package/src/Api/ThemeApi.d.ts +0 -19
- package/src/Api/UserInterfaceApi.d.ts +4 -9
- package/src/PredefinedConfig/AlertState.d.ts +4 -1
- package/src/PredefinedConfig/Common/AdaptableFormat.d.ts +3 -3
- package/src/PredefinedConfig/Common/AdaptableIcon.d.ts +4 -1
- package/src/PredefinedConfig/Common/AggregationColumns.d.ts +3 -0
- package/src/PredefinedConfig/Common/BaseContext.d.ts +8 -0
- package/src/PredefinedConfig/Common/DataChangedScope.d.ts +9 -0
- package/src/PredefinedConfig/Common/Entitlement.d.ts +1 -1
- package/src/PredefinedConfig/LayoutState.d.ts +0 -6
- package/src/PredefinedConfig/SystemState.d.ts +1 -1
- package/src/PredefinedConfig/TeamSharingState.d.ts +1 -1
- package/src/PredefinedConfig/ThemeState.d.ts +3 -0
- package/src/Strategy/AdaptableModuleBase.js +3 -3
- package/src/Strategy/AlertModule.js +3 -3
- package/src/Strategy/CalculatedColumnModule.js +2 -2
- package/src/Strategy/CellSummaryModule.js +2 -0
- package/src/Strategy/DataSetModule.d.ts +1 -1
- package/src/Strategy/DataSetModule.js +1 -1
- package/src/Strategy/ExportModule.js +4 -0
- package/src/Strategy/FlashingCellModule.js +4 -4
- package/src/Strategy/FormatColumnModule.js +3 -3
- package/src/Strategy/QueryModule.js +1 -1
- package/src/Strategy/SmartEditModule.js +2 -0
- package/src/Utilities/Defaults/DefaultAdaptableOptions.js +24 -22
- package/src/Utilities/ExpressionFunctions/expressionFunctionUtils.js +4 -0
- package/src/Utilities/Helpers/AdaptableHelper.js +12 -6
- package/src/Utilities/Helpers/FormatHelper.js +7 -0
- package/src/Utilities/ObjectFactory.d.ts +2 -2
- package/src/Utilities/ObjectFactory.js +6 -4
- package/src/Utilities/Services/AlertService.js +1 -1
- package/src/Utilities/Services/CalculatedColumnExpressionService.js +2 -2
- package/src/Utilities/Services/ChartingService.js +2 -0
- package/src/Utilities/Services/EntitlementService.js +2 -2
- package/src/Utilities/Services/ModuleService.js +10 -10
- package/src/Utilities/Services/QueryLanguageService.js +16 -0
- package/src/Utilities/Services/ReportService.js +8 -6
- package/src/Utilities/Services/RowEditService.js +4 -2
- package/src/Utilities/Services/ValidationService.js +2 -0
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/UIOptions/UIOptionsActionColumnsForm.js +3 -3
- package/src/View/CalculatedColumn/Wizard/CalculatedColumnExpressionWizardSection.js +1 -1
- package/src/View/CellSummary/CellSummaryStatusPanel.js +1 -1
- package/src/View/Components/AdaptableIconSelector/index.d.ts +6 -0
- package/src/View/Components/AdaptableIconSelector/index.js +18 -0
- package/src/View/Components/AdaptableObjectList/AdaptableObjectList.js +2 -2
- package/src/View/Components/AdaptableViewIcon/index.d.ts +10 -0
- package/src/View/Components/AdaptableViewIcon/index.js +18 -0
- package/src/View/Components/EntityRulesEditor/Utilities.js +3 -3
- package/src/View/Components/ExternalRenderer.js +14 -2
- package/src/View/Components/FilterForm/QuickFilterForm.js +4 -0
- package/src/View/Components/Popups/AdaptablePopupAlert.js +2 -0
- package/src/View/Components/RangesComponent.d.ts +4 -4
- package/src/View/Components/RangesComponent.js +13 -22
- package/src/View/Components/ToolPanel/AdaptableToolPanel.js +2 -0
- package/src/View/Components/ToolPanel/CustomToolPanelContent.js +11 -1
- package/src/View/CustomSort/Wizard/CustomSortColumnWizardSection.js +1 -1
- package/src/View/Dashboard/CustomDashboardButton.js +2 -0
- package/src/View/Dashboard/CustomToolbarWrapper.js +13 -1
- package/src/View/DataChangeHistory/DataChangeHistoryGrid.js +5 -5
- package/src/View/DataChangeHistory/buildActionColumnButton.d.ts +2 -2
- package/src/View/DataChangeHistory/buildActionColumnButton.js +3 -2
- package/src/View/Export/ExportViewPanel.js +4 -4
- package/src/View/FormatColumn/Wizard/FormatColumnFormatWizardSection.js +3 -1
- package/src/View/GridInfo/GridInfoPopup.d.ts +0 -1
- package/src/View/GridInfo/GridInfoPopup.js +1 -2
- package/src/View/GridInfo/GridOptionsComponent.js +1 -1
- package/src/View/Layout/LayoutViewPanel.js +1 -1
- package/src/View/Layout/PivotDetailsPopoup.js +2 -0
- package/src/View/Layout/SaveLayoutButton.js +1 -1
- package/src/View/Layout/Wizard/LayoutWizard.js +1 -1
- package/src/View/Query/Wizard/NamedQueryExpressionWizardSection.js +1 -1
- package/src/View/Shortcut/Wizard/ShortcutSettingsWizard.js +1 -1
- package/src/View/StyledColumn/Wizard/StyledColumnBadgeSection.js +2 -2
- package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/Components/StyledColumnBadgePreview.js +8 -1
- package/src/agGrid/ActionColumnRenderer.d.ts +1 -1
- package/src/agGrid/ActionColumnRenderer.js +5 -1
- package/src/agGrid/Adaptable.d.ts +14 -3
- package/src/agGrid/Adaptable.js +129 -30
- package/src/agGrid/BadgeRenderer.js +10 -2
- package/src/agGrid/CheckboxRenderer.d.ts +1 -2
- package/src/agGrid/agGridHelper.js +4 -5
- package/src/agGrid/agGridMenuHelper.js +4 -0
- package/src/agGrid/attachAddaptableColumnTypes.d.ts +11 -11
- package/src/agGrid/editors/AdaptableDateEditor/index.js +2 -0
- package/src/agGrid/editors/AdaptableNumberEditor/index.js +2 -2
- package/src/components/AdaptableFormComponent/AdaptableFormComponent.js +6 -3
- package/src/components/AdaptableIconComponent/index.js +6 -3
- package/src/components/ExpressionEditor/BaseEditorInput.js +2 -0
- package/src/components/ExpressionEditor/index.js +1 -1
- package/src/components/IconSelector/IconSelector.d.ts +2 -0
- package/src/components/IconSelector/IconSelector.js +21 -5
- package/src/components/Input/NumberInput.d.ts +10 -0
- package/src/components/Input/NumberInput.js +46 -0
- package/src/metamodel/adaptable.metamodel.d.ts +230 -145
- package/src/metamodel/adaptable.metamodel.js +1 -1
- package/src/types.d.ts +13 -8
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/src/AdaptableOptions/GeneralOptions.d.ts +0 -159
- package/src/Api/Events/SearchChanged.d.ts +0 -12
- package/src/Api/Implementation/ActionApiImpl.d.ts +0 -14
- /package/src/AdaptableOptions/{ActionOptions.js → ActionColumnOptions.js} +0 -0
- /package/src/AdaptableOptions/{GeneralOptions.js → ActionRowOptions.js} +0 -0
- /package/src/{Api/ActionApi.js → AdaptableOptions/CalendarOptions.js} +0 -0
- /package/src/{Api/Events/SearchChanged.js → AdaptableOptions/CellSummaryOptions.js} +0 -0
- /package/src/{Api/QueryLanguageApi.js → AdaptableOptions/CustomSortOptions.js} +0 -0
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { FreeTextColumn, FreeTextColumnState, FreeTextStoredValue } from '../PredefinedConfig/FreeTextColumnState';
|
|
2
|
-
import { CellDataChangedInfo } from '../PredefinedConfig/Common/CellDataChangedInfo';
|
|
3
2
|
import { IRowNode } from '@ag-grid-community/core';
|
|
4
3
|
/**
|
|
5
4
|
* Provides run-time access to FreeTextColumn Module and associated state
|
|
@@ -57,13 +56,6 @@ export interface FreeTextColumnApi {
|
|
|
57
56
|
* @param replaceAction Function Behaviour: 'All' replaces ALL existing Stored Values; 'Conflicting' adds all stored values and replaces those which clash; 'None' only adds where no existing
|
|
58
57
|
*/
|
|
59
58
|
setStoredValues(columnId: string, storedValues: FreeTextStoredValue[], replaceAction: 'All' | 'Conflicting' | 'None'): void;
|
|
60
|
-
/**
|
|
61
|
-
* Adds Stored Values to Existing FreeTextColumn
|
|
62
|
-
* @param columnId Free Text Column to which to add Stored Values
|
|
63
|
-
* @param storedValues Stored Values to Add
|
|
64
|
-
* @param replaceAction Function Behaviour: 'All' replaces ALL existing Stored Values; 'Conflicting' adds all stored values and replaces those which clash; 'None' only adds where no existing
|
|
65
|
-
*/
|
|
66
|
-
addStoredValuesToFreeTextColumn(columnId: string, storedValues: FreeTextStoredValue[], replaceAction: 'All' | 'Conflicting' | 'None'): void;
|
|
67
59
|
/**
|
|
68
60
|
* Retrieves a Free Text Column value for a given row node
|
|
69
61
|
* @param freeTextColumn column to lookup
|
|
@@ -74,35 +66,4 @@ export interface FreeTextColumnApi {
|
|
|
74
66
|
* Opens Settings Panel with Free Text Column section selected and visible
|
|
75
67
|
*/
|
|
76
68
|
openFreeTextColumnSettingsPanel(): void;
|
|
77
|
-
/**
|
|
78
|
-
* TO BE REMOVED
|
|
79
|
-
*/
|
|
80
|
-
/**
|
|
81
|
-
* @deprecated use `getFreeTextColumns()` instead
|
|
82
|
-
*/
|
|
83
|
-
getAllFreeTextColumn(): FreeTextColumn[];
|
|
84
|
-
/**
|
|
85
|
-
* @deprecated use `setStoredValue()` instead
|
|
86
|
-
*/
|
|
87
|
-
addEditFreeTextColumnStoredValue(freeTextColumn: FreeTextColumn, storedValue: FreeTextStoredValue): FreeTextColumn;
|
|
88
|
-
/**
|
|
89
|
-
* @deprecated use `setStoredValues()` instead
|
|
90
|
-
*/
|
|
91
|
-
addStoredValuesToFreeTextColumn(columnId: string, storedValues: FreeTextStoredValue[], replaceAction: 'All' | 'Conflicting' | 'None'): void;
|
|
92
|
-
/**
|
|
93
|
-
* @deprecated use `getFreeTextColumnValueForRowNode()` instead
|
|
94
|
-
*/
|
|
95
|
-
getFreeTextColumnValueFromRowNode(freeTextColumn: FreeTextColumn, rowNode: IRowNode): any;
|
|
96
|
-
/**
|
|
97
|
-
* @deprecated internal method, will be removed in next major release
|
|
98
|
-
*/
|
|
99
|
-
checkFreeTextColumnForDataChange(cellDataChangedInfo: CellDataChangedInfo): void;
|
|
100
|
-
/**
|
|
101
|
-
* @deprecated internal method, will be removed in next major release
|
|
102
|
-
*/
|
|
103
|
-
getFreeTextColumnModuleReferences(freeTextColumn: FreeTextColumn): string[];
|
|
104
|
-
/**
|
|
105
|
-
* @deprecated use `openFreeTextColumnSettingsPanel()` instead
|
|
106
|
-
*/
|
|
107
|
-
showFreeTextColumnPopup(): void;
|
|
108
69
|
}
|
package/src/Api/GridApi.d.ts
CHANGED
|
@@ -38,10 +38,6 @@ export interface GridApi {
|
|
|
38
38
|
* @param data any data from any datasource that is suitable for AG Grid
|
|
39
39
|
*/
|
|
40
40
|
setInitialGridData(data: any): void;
|
|
41
|
-
/**
|
|
42
|
-
* @deprecated
|
|
43
|
-
*/
|
|
44
|
-
loadGridData(data: any): void;
|
|
45
41
|
/**
|
|
46
42
|
* Updates Adaptable (and AG Grid) with rows that have changed
|
|
47
43
|
* @param dataRows rows which have been updated - send whole row and Adaptable will take care of the rest
|
|
@@ -519,31 +515,4 @@ export interface GridApi {
|
|
|
519
515
|
* Returns the current AG Grid Row Model Type
|
|
520
516
|
*/
|
|
521
517
|
getRowModelType(): RowModelType;
|
|
522
|
-
/**
|
|
523
|
-
* TO BE REMOVED
|
|
524
|
-
*/
|
|
525
|
-
/**
|
|
526
|
-
* @deprecated use `collapseAllRowGroups()` instead
|
|
527
|
-
*/
|
|
528
|
-
closeAllRowGroups(): void;
|
|
529
|
-
/**
|
|
530
|
-
* @deprecated internal method, will be removed in next major release
|
|
531
|
-
*/
|
|
532
|
-
fireGridSortedEvent(): void;
|
|
533
|
-
/**
|
|
534
|
-
* @deprecated internal method, will be removed in next major release
|
|
535
|
-
*/
|
|
536
|
-
fireCellChangedEvent(cellChangedInfo: CellDataChangedInfo): void;
|
|
537
|
-
/**
|
|
538
|
-
* @deprecated internal method, will be removed in next major release
|
|
539
|
-
*/
|
|
540
|
-
fireGridDataChangedEvent(dataRows: any[], rowNodes: IRowNode[], rowTrigger: 'Add' | 'Edit' | 'Delete'): void;
|
|
541
|
-
/**
|
|
542
|
-
* @deprecated use `openGridInfoSettingsPanel()` instead
|
|
543
|
-
*/
|
|
544
|
-
showGridInfoPopup(): void;
|
|
545
|
-
/**
|
|
546
|
-
* @deprecated use `isEveryCellEditable()` instead
|
|
547
|
-
*/
|
|
548
|
-
areCellsEditable(gridCells: GridCell[]): boolean;
|
|
549
518
|
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { ActionColumn, ActionColumnApi } from '../../../types';
|
|
2
|
+
import { ApiBase } from './ApiBase';
|
|
3
|
+
import { IAdaptable } from '../../AdaptableInterfaces/IAdaptable';
|
|
4
|
+
export declare class ActionColumnApiImpl extends ApiBase implements ActionColumnApi {
|
|
5
|
+
constructor(adaptable: IAdaptable);
|
|
6
|
+
getActionColumns(): ActionColumn[];
|
|
7
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ActionColumnApiImpl = void 0;
|
|
4
|
+
const ApiBase_1 = require("./ApiBase");
|
|
5
|
+
class ActionColumnApiImpl extends ApiBase_1.ApiBase {
|
|
6
|
+
constructor(adaptable) {
|
|
7
|
+
super(adaptable);
|
|
8
|
+
}
|
|
9
|
+
getActionColumns() {
|
|
10
|
+
var _a;
|
|
11
|
+
return (_a = this.getActionColumnOptions().actionColumns) !== null && _a !== void 0 ? _a : [];
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
exports.ActionColumnApiImpl = ActionColumnApiImpl;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { ActionRowApi, ActionRowButtonType } from '../../../types';
|
|
2
|
+
import { ApiBase } from './ApiBase';
|
|
3
|
+
import { IAdaptable } from '../../AdaptableInterfaces/IAdaptable';
|
|
4
|
+
import { ActionRowInternalApi } from '../Internal/ActionRowInternalApi';
|
|
5
|
+
export declare class ActionRowApiImpl extends ApiBase implements ActionRowApi {
|
|
6
|
+
internalApi: ActionRowInternalApi;
|
|
7
|
+
constructor(adaptable: IAdaptable);
|
|
8
|
+
getActionRowButtons(): ActionRowButtonType[];
|
|
9
|
+
displayEditActionRow(primaryKey: any): void;
|
|
10
|
+
displayCreateActionRow(): void;
|
|
11
|
+
displayCloneActionRow(primaryKey?: any): void;
|
|
12
|
+
}
|
|
@@ -1,24 +1,21 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.ActionRowApiImpl = void 0;
|
|
4
4
|
const PopupRedux_1 = require("../../Redux/ActionsReducers/PopupRedux");
|
|
5
5
|
const ApiBase_1 = require("./ApiBase");
|
|
6
|
-
const
|
|
7
|
-
|
|
8
|
-
class ActionApiImpl extends ApiBase_1.ApiBase {
|
|
6
|
+
const ActionRowInternalApi_1 = require("../Internal/ActionRowInternalApi");
|
|
7
|
+
class ActionRowApiImpl extends ApiBase_1.ApiBase {
|
|
9
8
|
constructor(adaptable) {
|
|
10
9
|
super(adaptable);
|
|
11
|
-
this.internalApi = new
|
|
12
|
-
}
|
|
13
|
-
getActionColumns() {
|
|
14
|
-
var _a;
|
|
15
|
-
return (_a = this.getActionOptions().actionColumns) !== null && _a !== void 0 ? _a : [];
|
|
10
|
+
this.internalApi = new ActionRowInternalApi_1.ActionRowInternalApi(adaptable);
|
|
16
11
|
}
|
|
17
12
|
getActionRowButtons() {
|
|
18
|
-
const actionRowButtons = this.
|
|
13
|
+
const actionRowButtons = this.getActionRowOptions().actionRowButtons;
|
|
19
14
|
return typeof actionRowButtons === 'function'
|
|
20
15
|
? actionRowButtons({
|
|
21
16
|
adaptableApi: this.getAdaptableApi(),
|
|
17
|
+
userName: this.getOptions().userName,
|
|
18
|
+
adaptableId: this.getOptions().adaptableId,
|
|
22
19
|
})
|
|
23
20
|
: actionRowButtons !== null && actionRowButtons !== void 0 ? actionRowButtons : [];
|
|
24
21
|
}
|
|
@@ -59,9 +56,5 @@ class ActionApiImpl extends ApiBase_1.ApiBase {
|
|
|
59
56
|
},
|
|
60
57
|
}));
|
|
61
58
|
}
|
|
62
|
-
getAllActionColumn() {
|
|
63
|
-
(0, logDeprecation_1.logDeprecation)(this.adaptable.logger, 'ActionApi', 'getAllActionColumn', 'getActionColumns');
|
|
64
|
-
return this.getActionColumns();
|
|
65
|
-
}
|
|
66
59
|
}
|
|
67
|
-
exports.
|
|
60
|
+
exports.ActionRowApiImpl = ActionRowApiImpl;
|
|
@@ -29,7 +29,7 @@ import { ThemeApi } from '../ThemeApi';
|
|
|
29
29
|
import { GridApi } from '../GridApi';
|
|
30
30
|
import { ScheduleApi } from '../ScheduleApi';
|
|
31
31
|
import { QueryApi } from '../QueryApi';
|
|
32
|
-
import {
|
|
32
|
+
import { ExpressionApi } from '../ExpressionApi';
|
|
33
33
|
import { TeamSharingApi } from '../TeamSharingApi';
|
|
34
34
|
import { ColumnApi } from '../ColumnApi';
|
|
35
35
|
import { ApplicationApi } from '../ApplicationApi';
|
|
@@ -39,13 +39,15 @@ import { DataChangeHistoryApi } from '../DataChangeHistoryApi';
|
|
|
39
39
|
import { FlashingCellApi } from '../FlashingCellApi';
|
|
40
40
|
import { ChartingApi } from '../ChartingApi';
|
|
41
41
|
import { StatusBarApi } from '../StatusBarApi';
|
|
42
|
-
import { ActionApi } from '../../../types';
|
|
43
42
|
import { StyledColumnApi } from '../StyledColumnApi';
|
|
43
|
+
import { ActionColumnApi } from '../ActionColumnApi';
|
|
44
|
+
import { ActionRowApi } from '../ActionRowApi';
|
|
44
45
|
export declare class AdaptableApiImpl implements AdaptableApi {
|
|
45
46
|
protected adaptable: IAdaptable;
|
|
46
47
|
internalApi: AdaptableInternalApi;
|
|
47
48
|
optionsApi: OptionsApi;
|
|
48
|
-
|
|
49
|
+
actionColumnApi: ActionColumnApi;
|
|
50
|
+
actionRowApi: ActionRowApi;
|
|
49
51
|
applicationApi: ApplicationApi;
|
|
50
52
|
alertApi: AlertApi;
|
|
51
53
|
flashingCellApi: FlashingCellApi;
|
|
@@ -77,7 +79,7 @@ export declare class AdaptableApiImpl implements AdaptableApi {
|
|
|
77
79
|
themeApi: ThemeApi;
|
|
78
80
|
userInterfaceApi: UserInterfaceApi;
|
|
79
81
|
queryApi: QueryApi;
|
|
80
|
-
|
|
82
|
+
expressionApi: ExpressionApi;
|
|
81
83
|
settingsPanelApi: SettingsPanelApi;
|
|
82
84
|
styledColumnApi: StyledColumnApi;
|
|
83
85
|
toolPanelApi: ToolPanelApi;
|
|
@@ -35,11 +35,12 @@ const ColumnApiImpl_1 = require("./ColumnApiImpl");
|
|
|
35
35
|
const ApplicationApiImpl_1 = require("./ApplicationApiImpl");
|
|
36
36
|
const ScopeApiImpl_1 = require("./ScopeApiImpl");
|
|
37
37
|
const DataChangeHistoryApiImpl_1 = require("./DataChangeHistoryApiImpl");
|
|
38
|
-
const
|
|
38
|
+
const ExpressionApiImpl_1 = require("./ExpressionApiImpl");
|
|
39
39
|
const FlashingCellApiImpl_1 = require("./FlashingCellApiImpl");
|
|
40
40
|
const ChartingApiImpl_1 = require("./ChartingApiImpl");
|
|
41
41
|
const SettingsPanelApiImpl_1 = require("./SettingsPanelApiImpl");
|
|
42
|
-
const
|
|
42
|
+
const ActionColumnApiImpl_1 = require("./ActionColumnApiImpl");
|
|
43
|
+
const ActionRowApiImpl_1 = require("./ActionRowApiImpl");
|
|
43
44
|
const StyledColumnApiImpl_1 = require("./StyledColumnApiImpl");
|
|
44
45
|
const CalendarApiImpl_1 = require("./CalendarApiImpl");
|
|
45
46
|
const EntitlementApiImpl_1 = require("./EntitlementApiImpl");
|
|
@@ -50,7 +51,8 @@ class AdaptableApiImpl {
|
|
|
50
51
|
this.destroyed = false;
|
|
51
52
|
this.adaptable = adaptable;
|
|
52
53
|
this.optionsApi = new OptionsApiImpl_1.OptionsApiImpl(adaptable);
|
|
53
|
-
this.
|
|
54
|
+
this.actionColumnApi = new ActionColumnApiImpl_1.ActionColumnApiImpl(adaptable);
|
|
55
|
+
this.actionRowApi = new ActionRowApiImpl_1.ActionRowApiImpl(adaptable);
|
|
54
56
|
this.applicationApi = new ApplicationApiImpl_1.ApplicationApiImpl(adaptable);
|
|
55
57
|
this.alertApi = new AlertApiImpl_1.AlertApiImpl(adaptable);
|
|
56
58
|
this.flashingCellApi = new FlashingCellApiImpl_1.FlashingCellApiImpl(adaptable);
|
|
@@ -83,7 +85,7 @@ class AdaptableApiImpl {
|
|
|
83
85
|
this.themeApi = new ThemeApiImpl_1.ThemeApiImpl(adaptable);
|
|
84
86
|
this.userInterfaceApi = new UserInterfaceApiImpl_1.UserInterfaceApiImpl(adaptable);
|
|
85
87
|
this.queryApi = new QueryApiImpl_1.QueryApiImpl(adaptable);
|
|
86
|
-
this.
|
|
88
|
+
this.expressionApi = new ExpressionApiImpl_1.ExpressionApiImpl(adaptable);
|
|
87
89
|
this.styledColumnApi = new StyledColumnApiImpl_1.StyledColumnApiImpl(adaptable);
|
|
88
90
|
this.toolPanelApi = new ToolPanelApiImpl_1.ToolPanelApiImpl(adaptable);
|
|
89
91
|
this.teamSharingApi = new TeamSharingApiImpl_1.TeamSharingApiImpl(adaptable);
|
|
@@ -129,7 +131,7 @@ class AdaptableApiImpl {
|
|
|
129
131
|
this.plusMinusApi = null;
|
|
130
132
|
this.predicateApi = null;
|
|
131
133
|
this.queryApi = null;
|
|
132
|
-
this.
|
|
134
|
+
this.expressionApi = null;
|
|
133
135
|
this.quickSearchApi = null;
|
|
134
136
|
this.scheduleApi = null;
|
|
135
137
|
this.scopeApi = null;
|
|
@@ -1,14 +1,8 @@
|
|
|
1
1
|
import { ApiBase, LayoutAssociatedObjectLoadConfig } from './ApiBase';
|
|
2
2
|
import { AlertApi } from '../AlertApi';
|
|
3
|
-
import {
|
|
4
|
-
import { CellDataChangedInfo } from '../../PredefinedConfig/Common/CellDataChangedInfo';
|
|
5
|
-
import { AdaptableScope } from '../../PredefinedConfig/Common/AdaptableScope';
|
|
6
|
-
import { AdaptablePredicateDef } from '../../PredefinedConfig/Common/AdaptablePredicate';
|
|
3
|
+
import { AlertDefinition, AlertProperties, AlertState } from '../../PredefinedConfig/AlertState';
|
|
7
4
|
import { AdaptableAlert } from '../../PredefinedConfig/Common/AdaptableAlert';
|
|
8
|
-
import { AdaptableFormData } from '../../PredefinedConfig/Common/AdaptableForm';
|
|
9
|
-
import { AlertFormContext } from '../../AdaptableOptions/AlertOptions';
|
|
10
5
|
import { AdaptableMessageType } from '../../PredefinedConfig/Common/AdaptableMessageType';
|
|
11
|
-
import { GridDataChangedInfo } from '../Events/GridDataChanged';
|
|
12
6
|
import { AdaptableObjectLookupCriteria } from '../../PredefinedConfig/Common/AdaptableObject';
|
|
13
7
|
import { IAdaptable } from '../../AdaptableInterfaces/IAdaptable';
|
|
14
8
|
import { AlertInternalApi } from '../Internal/AlertInternalApi';
|
|
@@ -26,9 +20,7 @@ export declare class AlertApiImpl extends ApiBase implements AlertApi {
|
|
|
26
20
|
deleteAlertDefinition(alertDefinition: AlertDefinition): void;
|
|
27
21
|
getAlertDefinitionById(id: AlertDefinition['Uuid']): AlertDefinition;
|
|
28
22
|
addAlertDefinition(alertDefinition: AlertDefinition): AlertDefinition;
|
|
29
|
-
displayAlert(alertToShow: AdaptableAlert): Promise<void>;
|
|
30
23
|
showAdaptableAlert(alertToShow: AdaptableAlert): Promise<void>;
|
|
31
|
-
displayMessageAlertPopup(alertToDisplayAsPopup: AdaptableAlert): void;
|
|
32
24
|
showAdaptableAlertAsToast(alert: AdaptableAlert): void;
|
|
33
25
|
showAlert(alertHeader: string, alertMessage: string, messageType: AdaptableMessageType, alertProperties?: AlertProperties): Promise<void>;
|
|
34
26
|
showAlertInfo(alertHeader: string, alertMessage: string, alertProperties?: AlertProperties): Promise<void>;
|
|
@@ -36,7 +28,6 @@ export declare class AlertApiImpl extends ApiBase implements AlertApi {
|
|
|
36
28
|
showAlertWarning(alertHeader: string, alertMessage: string, alertProperties?: AlertProperties): Promise<void>;
|
|
37
29
|
showAlertError(alertHeader: string, alertMessage: string, alertProperties?: AlertProperties): Promise<void>;
|
|
38
30
|
openAlertSettingsPanel(): void;
|
|
39
|
-
showAlertPopup(): void;
|
|
40
31
|
editAlertDefinition(alertDefinition: AlertDefinition): AlertDefinition;
|
|
41
32
|
suspendAlertDefinition(alertDefinition: AlertDefinition): AlertDefinition;
|
|
42
33
|
unSuspendAlertDefinition(alertDefinition: AlertDefinition): AlertDefinition;
|
|
@@ -44,37 +35,4 @@ export declare class AlertApiImpl extends ApiBase implements AlertApi {
|
|
|
44
35
|
findAlertDefinitions(criteria: AdaptableObjectLookupCriteria): AlertDefinition[];
|
|
45
36
|
private getRelevantColumnIdsForAlertDefinition;
|
|
46
37
|
private createCellDataChangeInfoStubs;
|
|
47
|
-
/**
|
|
48
|
-
* DEPRECATED INTERNAL METHODS
|
|
49
|
-
*/
|
|
50
|
-
executeAlertAction(actionName: AdaptableAlertAction | string, details: {
|
|
51
|
-
alertDefinition: AlertDefinition;
|
|
52
|
-
cellDataChangedInfo?: CellDataChangedInfo;
|
|
53
|
-
gridDataChangedInfo?: GridDataChangedInfo;
|
|
54
|
-
formData?: AdaptableFormData;
|
|
55
|
-
}): void;
|
|
56
|
-
executeAlertButton(button: AlertButton<AlertFormContext>, context: AlertFormContext): void;
|
|
57
|
-
getActiveNonReactiveAlertDefinitions(): AlertDefinition[];
|
|
58
|
-
getActiveReactiveAlertDefinitions(): AlertDefinition[];
|
|
59
|
-
getAlertDefinitionsWithAllowEdit(): AlertDefinition[];
|
|
60
|
-
getAlertDefinitionsWithPreventEdit(): AlertDefinition[];
|
|
61
|
-
getAlertDescription(alertDefinition: AlertDefinition, cellDataChangedInfo?: CellDataChangedInfo): string;
|
|
62
|
-
getAlertMessageHeader(alertDefinition: AlertDefinition, cellDataChangedInfo?: CellDataChangedInfo): string;
|
|
63
|
-
getAlertPredicateDefsForScope(scope: AdaptableScope): AdaptablePredicateDef[];
|
|
64
|
-
getAlertRuleDescription(alertDefinition: AlertDefinition): string;
|
|
65
|
-
getAlertTypeForAdaptableAlert(alert: AdaptableAlert): 'cellChanged' | 'rowChanged' | 'generic';
|
|
66
|
-
getCustomAlertDescription(alertDefinition: AlertDefinition, dataChangedInfo?: {
|
|
67
|
-
cellDataChangedInfo?: CellDataChangedInfo;
|
|
68
|
-
gridDataChangedInfo?: GridDataChangedInfo;
|
|
69
|
-
}): string;
|
|
70
|
-
getCustomAlertMessageHeader(alertDefinition: AlertDefinition, dataChangedInfo?: {
|
|
71
|
-
cellDataChangedInfo?: CellDataChangedInfo;
|
|
72
|
-
gridDataChangedInfo?: GridDataChangedInfo;
|
|
73
|
-
}): string;
|
|
74
|
-
getNonReactiveAlertDefinitions(): AlertDefinition[];
|
|
75
|
-
getReactiveAlertDefinitions(): AlertDefinition[];
|
|
76
|
-
isCellChangedAdaptableAlert(alert: AdaptableAlert): boolean;
|
|
77
|
-
isGenericAdaptableAlert(alert: AdaptableAlert): boolean;
|
|
78
|
-
isRowChangedAdaptableAlert(alert: AdaptableAlert): boolean;
|
|
79
|
-
publishAlertFiredEvent(alertToFire: AdaptableAlert): void;
|
|
80
38
|
}
|
|
@@ -11,7 +11,6 @@ const ObjectFactory_1 = tslib_1.__importDefault(require("../../Utilities/ObjectF
|
|
|
11
11
|
const AdaptableAlert_1 = require("../../PredefinedConfig/Common/AdaptableAlert");
|
|
12
12
|
const StringExtensions_1 = tslib_1.__importDefault(require("../../Utilities/Extensions/StringExtensions"));
|
|
13
13
|
const AlertInternalApi_1 = require("../Internal/AlertInternalApi");
|
|
14
|
-
const logDeprecation_1 = require("../../Utilities/logDeprecation");
|
|
15
14
|
class AlertApiImpl extends ApiBase_1.ApiBase {
|
|
16
15
|
constructor(adaptable) {
|
|
17
16
|
super(adaptable);
|
|
@@ -41,10 +40,6 @@ class AlertApiImpl extends ApiBase_1.ApiBase {
|
|
|
41
40
|
this.dispatchAction(AlertRedux.AlertDefinitionAdd(alertDefinition));
|
|
42
41
|
return this.getAlertDefinitionById(alertDefinition.Uuid);
|
|
43
42
|
}
|
|
44
|
-
async displayAlert(alertToShow) {
|
|
45
|
-
(0, logDeprecation_1.logDeprecation)(this.adaptable.logger, 'AlertApi', 'displayAlert', 'showAdaptableAlert');
|
|
46
|
-
await this.showAdaptableAlert(alertToShow);
|
|
47
|
-
}
|
|
48
43
|
async showAdaptableAlert(alertToShow) {
|
|
49
44
|
var _a, _b;
|
|
50
45
|
// 3 things we always do with an alert are:
|
|
@@ -55,6 +50,8 @@ class AlertApiImpl extends ApiBase_1.ApiBase {
|
|
|
55
50
|
const alertFiredInfo = {
|
|
56
51
|
adaptableApi: this.adaptable.api,
|
|
57
52
|
alert: alertToShow,
|
|
53
|
+
userName: this.adaptable.api.optionsApi.getUserName(),
|
|
54
|
+
adaptableId: this.adaptable.api.optionsApi.getAdaptableId(),
|
|
58
55
|
};
|
|
59
56
|
const results = await this.adaptable.api.eventApi.emit('AlertFired', alertFiredInfo);
|
|
60
57
|
const showPopup = results.reduce((endResult, aResult) => {
|
|
@@ -137,10 +134,6 @@ class AlertApiImpl extends ApiBase_1.ApiBase {
|
|
|
137
134
|
}
|
|
138
135
|
}
|
|
139
136
|
}
|
|
140
|
-
displayMessageAlertPopup(alertToDisplayAsPopup) {
|
|
141
|
-
(0, logDeprecation_1.logDeprecation)(this.adaptable.logger, 'AlertApi', 'displayMessageAlertPopup', 'showAdaptableAlertAsToast');
|
|
142
|
-
this.showAdaptableAlertAsToast(alertToDisplayAsPopup);
|
|
143
|
-
}
|
|
144
137
|
showAdaptableAlertAsToast(alert) {
|
|
145
138
|
this.dispatchAction(PopupRedux.PopupShowAlert(alert));
|
|
146
139
|
}
|
|
@@ -164,10 +157,6 @@ class AlertApiImpl extends ApiBase_1.ApiBase {
|
|
|
164
157
|
openAlertSettingsPanel() {
|
|
165
158
|
this.showModulePopup(ModuleConstants.AlertModuleId);
|
|
166
159
|
}
|
|
167
|
-
showAlertPopup() {
|
|
168
|
-
(0, logDeprecation_1.logDeprecation)(this.adaptable.logger, 'AlertApi', 'showAlertPopup', 'openAlertSettingsPanel');
|
|
169
|
-
this.openAlertSettingsPanel();
|
|
170
|
-
}
|
|
171
160
|
editAlertDefinition(alertDefinition) {
|
|
172
161
|
this.dispatchAction(AlertRedux.AlertDefinitionEdit(alertDefinition));
|
|
173
162
|
return this.getAlertDefinitionById(alertDefinition.Uuid);
|
|
@@ -183,7 +172,7 @@ class AlertApiImpl extends ApiBase_1.ApiBase {
|
|
|
183
172
|
evaluateAlertDefinitions(alertDefinitions) {
|
|
184
173
|
const filterScopeAllDefinitions = (alertDefinition) => {
|
|
185
174
|
if (this.getAdaptableApi().scopeApi.scopeIsAll(alertDefinition.Scope) &&
|
|
186
|
-
!this.getAdaptableApi().
|
|
175
|
+
!this.getAdaptableApi().expressionApi.getAdaptableQueryExpression(alertDefinition.Rule)) {
|
|
187
176
|
// we don't support scope ALL without an expression
|
|
188
177
|
// the predicates for scope ALL do NOT make any sense for a programmatic evaluation
|
|
189
178
|
return false;
|
|
@@ -216,7 +205,7 @@ class AlertApiImpl extends ApiBase_1.ApiBase {
|
|
|
216
205
|
getRelevantColumnIdsForAlertDefinition(alertDefinition) {
|
|
217
206
|
// if there is an Expression defined, extract only the columns from there (in that case the Scope would be 'All' anyway)
|
|
218
207
|
// columns referenced in rule expression
|
|
219
|
-
const ruleExpression = this.getAdaptableApi().
|
|
208
|
+
const ruleExpression = this.getAdaptableApi().expressionApi.getAdaptableQueryExpression(alertDefinition.Rule);
|
|
220
209
|
if (this.getAdaptableApi().scopeApi.scopeIsAll(alertDefinition.Scope) &&
|
|
221
210
|
StringExtensions_1.default.IsNotNullOrEmpty(ruleExpression)) {
|
|
222
211
|
// return only first referenced column (otherwise we would generate multiple alerts for the same row)
|
|
@@ -254,84 +243,5 @@ class AlertApiImpl extends ApiBase_1.ApiBase {
|
|
|
254
243
|
});
|
|
255
244
|
return cellDataChangeInfos;
|
|
256
245
|
}
|
|
257
|
-
/**
|
|
258
|
-
* DEPRECATED INTERNAL METHODS
|
|
259
|
-
*/
|
|
260
|
-
executeAlertAction(actionName, details) {
|
|
261
|
-
(0, logDeprecation_1.logDeprecationInternal)(this.adaptable.logger, 'AlertApi', 'executeAlertAction');
|
|
262
|
-
this.internalApi.executeAlertAction(actionName, details);
|
|
263
|
-
}
|
|
264
|
-
executeAlertButton(button, context) {
|
|
265
|
-
(0, logDeprecation_1.logDeprecationInternal)(this.adaptable.logger, 'AlertApi', 'executeAlertButton');
|
|
266
|
-
this.internalApi.executeAlertButton(button, context);
|
|
267
|
-
}
|
|
268
|
-
getActiveNonReactiveAlertDefinitions() {
|
|
269
|
-
(0, logDeprecation_1.logDeprecationInternal)(this.adaptable.logger, 'AlertApi', 'getActiveNonReactiveAlertDefinitions');
|
|
270
|
-
return this.internalApi.getActiveNonReactiveAlertDefinitions();
|
|
271
|
-
}
|
|
272
|
-
getActiveReactiveAlertDefinitions() {
|
|
273
|
-
(0, logDeprecation_1.logDeprecationInternal)(this.adaptable.logger, 'AlertApi', 'getActiveReactiveAlertDefinitions');
|
|
274
|
-
return this.internalApi.getActiveReactiveAlertDefinitions();
|
|
275
|
-
}
|
|
276
|
-
getAlertDefinitionsWithAllowEdit() {
|
|
277
|
-
(0, logDeprecation_1.logDeprecationInternal)(this.adaptable.logger, 'AlertApi', 'getAlertDefinitionsWithAllowEdit');
|
|
278
|
-
return this.internalApi.getAlertDefinitionsWithAllowEdit();
|
|
279
|
-
}
|
|
280
|
-
getAlertDefinitionsWithPreventEdit() {
|
|
281
|
-
(0, logDeprecation_1.logDeprecationInternal)(this.adaptable.logger, 'AlertApi', 'getAlertDefinitionsWithPreventEdit');
|
|
282
|
-
return this.internalApi.getAlertDefinitionsWithPreventEdit();
|
|
283
|
-
}
|
|
284
|
-
getAlertDescription(alertDefinition, cellDataChangedInfo) {
|
|
285
|
-
(0, logDeprecation_1.logDeprecationInternal)(this.adaptable.logger, 'AlertApi', 'getAlertDescription');
|
|
286
|
-
return this.internalApi.getAlertDescription(alertDefinition, cellDataChangedInfo);
|
|
287
|
-
}
|
|
288
|
-
getAlertMessageHeader(alertDefinition, cellDataChangedInfo) {
|
|
289
|
-
(0, logDeprecation_1.logDeprecationInternal)(this.adaptable.logger, 'AlertApi', 'getAlertMessageHeader');
|
|
290
|
-
return this.internalApi.getAlertMessageHeader(alertDefinition, cellDataChangedInfo);
|
|
291
|
-
}
|
|
292
|
-
getAlertPredicateDefsForScope(scope) {
|
|
293
|
-
(0, logDeprecation_1.logDeprecationInternal)(this.adaptable.logger, 'AlertApi', 'getAlertPredicateDefsForScope');
|
|
294
|
-
return this.internalApi.getAlertPredicateDefsForScope(scope);
|
|
295
|
-
}
|
|
296
|
-
getAlertRuleDescription(alertDefinition) {
|
|
297
|
-
(0, logDeprecation_1.logDeprecationInternal)(this.adaptable.logger, 'AlertApi', 'getAlertRuleDescription');
|
|
298
|
-
return this.internalApi.getAlertRuleDescription(alertDefinition);
|
|
299
|
-
}
|
|
300
|
-
getAlertTypeForAdaptableAlert(alert) {
|
|
301
|
-
(0, logDeprecation_1.logDeprecationInternal)(this.adaptable.logger, 'AlertApi', 'getAlertTypeForAdaptableAlert');
|
|
302
|
-
return this.internalApi.getAlertTypeForAdaptableAlert(alert);
|
|
303
|
-
}
|
|
304
|
-
getCustomAlertDescription(alertDefinition, dataChangedInfo) {
|
|
305
|
-
(0, logDeprecation_1.logDeprecationInternal)(this.adaptable.logger, 'AlertApi', 'getCustomAlertDescription');
|
|
306
|
-
return this.internalApi.getCustomAlertDescription(alertDefinition, dataChangedInfo);
|
|
307
|
-
}
|
|
308
|
-
getCustomAlertMessageHeader(alertDefinition, dataChangedInfo) {
|
|
309
|
-
(0, logDeprecation_1.logDeprecationInternal)(this.adaptable.logger, 'AlertApi', 'getCustomAlertMessageHeader');
|
|
310
|
-
return this.internalApi.getCustomAlertMessageHeader(alertDefinition, dataChangedInfo);
|
|
311
|
-
}
|
|
312
|
-
getNonReactiveAlertDefinitions() {
|
|
313
|
-
(0, logDeprecation_1.logDeprecationInternal)(this.adaptable.logger, 'AlertApi', 'getNonReactiveAlertDefinitions');
|
|
314
|
-
return this.internalApi.getNonReactiveAlertDefinitions();
|
|
315
|
-
}
|
|
316
|
-
getReactiveAlertDefinitions() {
|
|
317
|
-
(0, logDeprecation_1.logDeprecationInternal)(this.adaptable.logger, 'AlertApi', 'getReactiveAlertDefinitions');
|
|
318
|
-
return this.internalApi.getReactiveAlertDefinitions();
|
|
319
|
-
}
|
|
320
|
-
isCellChangedAdaptableAlert(alert) {
|
|
321
|
-
(0, logDeprecation_1.logDeprecationInternal)(this.adaptable.logger, 'AlertApi', 'isCellChangedAdaptableAlert');
|
|
322
|
-
return this.internalApi.isCellChangedAdaptableAlert(alert);
|
|
323
|
-
}
|
|
324
|
-
isGenericAdaptableAlert(alert) {
|
|
325
|
-
(0, logDeprecation_1.logDeprecationInternal)(this.adaptable.logger, 'AlertApi', 'isGenericAdaptableAlert');
|
|
326
|
-
return this.internalApi.isGenericAdaptableAlert(alert);
|
|
327
|
-
}
|
|
328
|
-
isRowChangedAdaptableAlert(alert) {
|
|
329
|
-
(0, logDeprecation_1.logDeprecationInternal)(this.adaptable.logger, 'AlertApi', 'isRowChangedAdaptableAlert');
|
|
330
|
-
return this.internalApi.isRowChangedAdaptableAlert(alert);
|
|
331
|
-
}
|
|
332
|
-
publishAlertFiredEvent(alertToFire) {
|
|
333
|
-
(0, logDeprecation_1.logDeprecationInternal)(this.adaptable.logger, 'AlertApi', 'publishAlertFiredEvent');
|
|
334
|
-
return this.internalApi.publishAlertFiredEvent(alertToFire);
|
|
335
|
-
}
|
|
336
246
|
}
|
|
337
247
|
exports.AlertApiImpl = AlertApiImpl;
|
|
@@ -7,7 +7,7 @@ import { ModuleInfo } from '../../Strategy/Interface/IModule';
|
|
|
7
7
|
import { AdaptableOptions } from '../../AdaptableOptions/AdaptableOptions';
|
|
8
8
|
import { AdaptableApi } from '../AdaptableApi';
|
|
9
9
|
import { ExportOptions } from '../../AdaptableOptions/ExportOptions';
|
|
10
|
-
import {
|
|
10
|
+
import { ActionColumnApi, ActionColumnOptions, ActionRowApi, ActionRowOptions, AlertApi, ApplicationApi, BulkUpdateApi, CalculatedColumnApi, CalendarApi, CellSummaryApi, CellSummaryOptions, ChartingApi, ChartingOptions, ColumnApi, ConfigApi, ContainerOptions, CustomSortApi, DashboardApi, DashboardOptions, DataChangeHistoryApi, DataChangeHistoryOptions, DataSetApi, DataSetOptions, EditOptions, EntitlementApi, EntitlementOptions, EventApi, ExportApi, FilterApi, FilterOptions, FlashingCellApi, FlashingCellOptions, FormatColumnApi, FreeTextColumnApi, GridApi, LayoutApi, LayoutAssociatedObject, LayoutOptions, MenuOptions, PluginsApi, PlusMinusApi, PredicateApi, QueryApi, QuickSearchApi, ScheduleApi, ScopeApi, SearchOptions, SettingsPanelApi, SettingsPanelOptions, ShortcutApi, SmartEditApi, StateOptions, StatusBarApi, StyledColumnApi, SystemStatusApi, TeamSharingApi, TeamSharingOptions, ThemeApi, ToolPanelApi, UserInterfaceApi, UserInterfaceOptions } from '../../types';
|
|
11
11
|
import { NotificationsOptions } from '../../AdaptableOptions/NotificationsOptions';
|
|
12
12
|
import { ToolPanelOptions } from '../../AdaptableOptions/ToolPanelOptions';
|
|
13
13
|
import { ModuleParams } from '../../View/Components/SharedProps/ModuleViewPopupProps';
|
|
@@ -15,6 +15,10 @@ import { AdaptableQLOptions } from '../../AdaptableOptions/AdaptableQLOptions';
|
|
|
15
15
|
import { ExpressionOptions } from '../../AdaptableOptions/ExpressionOptions';
|
|
16
16
|
import { AlertOptions } from '../../AdaptableOptions/AlertOptions';
|
|
17
17
|
import { ColumnOptions } from '../../AdaptableOptions/ColumnOptions';
|
|
18
|
+
import { GroupingOptions } from '../../AdaptableOptions/GroupingOptions';
|
|
19
|
+
import { CustomSortOptions } from '../../AdaptableOptions/CustomSortOptions';
|
|
20
|
+
import { ExpressionApi } from '../ExpressionApi';
|
|
21
|
+
import { CalendarOptions } from '../../AdaptableOptions/CalendarOptions';
|
|
18
22
|
export declare abstract class ApiBase {
|
|
19
23
|
protected adaptable: IAdaptable;
|
|
20
24
|
/**
|
|
@@ -55,15 +59,20 @@ export declare abstract class ApiBase {
|
|
|
55
59
|
protected getModuleInfoByModuleId(module: AdaptableModule): ModuleInfo;
|
|
56
60
|
protected showModulePopup(module: AdaptableModule, moduleParams?: ModuleParams): void;
|
|
57
61
|
protected getOptions(): AdaptableOptions;
|
|
58
|
-
protected
|
|
62
|
+
protected getActionColumnOptions(): ActionColumnOptions;
|
|
63
|
+
protected getActionRowOptions(): ActionRowOptions;
|
|
59
64
|
protected getColumnOptions(): ColumnOptions;
|
|
65
|
+
protected getCustomSortOptions(): CustomSortOptions;
|
|
66
|
+
protected getDataSetOptions(): DataSetOptions;
|
|
67
|
+
protected getCalendarOptions(): CalendarOptions;
|
|
68
|
+
protected getCellSummaryOptions(): CellSummaryOptions;
|
|
60
69
|
protected getContainerOptions(): ContainerOptions;
|
|
61
70
|
protected getNotificationsOptions(): NotificationsOptions;
|
|
62
71
|
protected getAlertOptions(): AlertOptions;
|
|
63
72
|
protected getDashboardOptions(): DashboardOptions;
|
|
64
73
|
protected getEditOptions(): EditOptions;
|
|
65
74
|
protected getExportOptions(): ExportOptions;
|
|
66
|
-
protected
|
|
75
|
+
protected getGroupingOptions(): GroupingOptions;
|
|
67
76
|
protected getLayoutOptions(): LayoutOptions;
|
|
68
77
|
protected getMenuOptions(): MenuOptions;
|
|
69
78
|
protected getFilterOptions(): FilterOptions;
|
|
@@ -80,7 +89,8 @@ export declare abstract class ApiBase {
|
|
|
80
89
|
protected getFlashingCellOptions(): FlashingCellOptions;
|
|
81
90
|
protected getSettingsPanelOptions(): SettingsPanelOptions;
|
|
82
91
|
protected getAdaptableApi(): AdaptableApi;
|
|
83
|
-
protected
|
|
92
|
+
protected getActionColumnApi(): ActionColumnApi;
|
|
93
|
+
protected getActionRowApi(): ActionRowApi;
|
|
84
94
|
protected getApplicationApi(): ApplicationApi;
|
|
85
95
|
protected getAlertApi(): AlertApi;
|
|
86
96
|
protected getFlashingCellApi(): FlashingCellApi;
|
|
@@ -111,7 +121,7 @@ export declare abstract class ApiBase {
|
|
|
111
121
|
protected getThemeApi(): ThemeApi;
|
|
112
122
|
protected getUserInterfaceApi(): UserInterfaceApi;
|
|
113
123
|
protected getQueryApi(): QueryApi;
|
|
114
|
-
protected
|
|
124
|
+
protected getExpressionApi(): ExpressionApi;
|
|
115
125
|
protected getPluginsApi(): PluginsApi;
|
|
116
126
|
protected getSettingsPanelApi(): SettingsPanelApi;
|
|
117
127
|
protected getStyledColumnApi(): StyledColumnApi;
|
|
@@ -93,12 +93,27 @@ class ApiBase {
|
|
|
93
93
|
getOptions() {
|
|
94
94
|
return this.adaptable.adaptableOptions;
|
|
95
95
|
}
|
|
96
|
-
|
|
97
|
-
return this.getOptions().
|
|
96
|
+
getActionColumnOptions() {
|
|
97
|
+
return this.getOptions().actionColumnOptions;
|
|
98
|
+
}
|
|
99
|
+
getActionRowOptions() {
|
|
100
|
+
return this.getOptions().actionRowOptions;
|
|
98
101
|
}
|
|
99
102
|
getColumnOptions() {
|
|
100
103
|
return this.getOptions().columnOptions;
|
|
101
104
|
}
|
|
105
|
+
getCustomSortOptions() {
|
|
106
|
+
return this.getOptions().customSortOptions;
|
|
107
|
+
}
|
|
108
|
+
getDataSetOptions() {
|
|
109
|
+
return this.getOptions().dataSetOptions;
|
|
110
|
+
}
|
|
111
|
+
getCalendarOptions() {
|
|
112
|
+
return this.getOptions().calendarOptions;
|
|
113
|
+
}
|
|
114
|
+
getCellSummaryOptions() {
|
|
115
|
+
return this.getOptions().cellSummaryOptions;
|
|
116
|
+
}
|
|
102
117
|
getContainerOptions() {
|
|
103
118
|
return this.getOptions().containerOptions;
|
|
104
119
|
}
|
|
@@ -117,8 +132,8 @@ class ApiBase {
|
|
|
117
132
|
getExportOptions() {
|
|
118
133
|
return this.getOptions().exportOptions;
|
|
119
134
|
}
|
|
120
|
-
|
|
121
|
-
return this.getOptions().
|
|
135
|
+
getGroupingOptions() {
|
|
136
|
+
return this.getOptions().groupingOptions;
|
|
122
137
|
}
|
|
123
138
|
getLayoutOptions() {
|
|
124
139
|
return this.getOptions().layoutOptions;
|
|
@@ -168,8 +183,11 @@ class ApiBase {
|
|
|
168
183
|
getAdaptableApi() {
|
|
169
184
|
return this.adaptable.api;
|
|
170
185
|
}
|
|
171
|
-
|
|
172
|
-
return this.getAdaptableApi().
|
|
186
|
+
getActionColumnApi() {
|
|
187
|
+
return this.getAdaptableApi().actionColumnApi;
|
|
188
|
+
}
|
|
189
|
+
getActionRowApi() {
|
|
190
|
+
return this.getAdaptableApi().actionRowApi;
|
|
173
191
|
}
|
|
174
192
|
getApplicationApi() {
|
|
175
193
|
return this.getAdaptableApi().applicationApi;
|
|
@@ -261,8 +279,8 @@ class ApiBase {
|
|
|
261
279
|
getQueryApi() {
|
|
262
280
|
return this.getAdaptableApi().queryApi;
|
|
263
281
|
}
|
|
264
|
-
|
|
265
|
-
return this.getAdaptableApi().
|
|
282
|
+
getExpressionApi() {
|
|
283
|
+
return this.getAdaptableApi().expressionApi;
|
|
266
284
|
}
|
|
267
285
|
getPluginsApi() {
|
|
268
286
|
return this.getAdaptableApi().pluginsApi;
|
|
@@ -8,19 +8,12 @@ export declare class CalculatedColumnApiImpl extends ApiBase implements Calculat
|
|
|
8
8
|
constructor(adaptable: IAdaptable);
|
|
9
9
|
getCalculatedColumnState(): CalculatedColumnState;
|
|
10
10
|
getCalculatedColumns(): CalculatedColumn[];
|
|
11
|
-
getAllCalculatedColumn(): CalculatedColumn[];
|
|
12
11
|
getCalculatedColumnById(id: CalculatedColumn['Uuid']): CalculatedColumn;
|
|
13
12
|
addCalculatedColumn(calculatedColumn: CalculatedColumn): CalculatedColumn;
|
|
14
13
|
getCalculatedColumnForColumnId(columnId: string): CalculatedColumn | undefined;
|
|
15
14
|
editCalculatedColumn(calculatedColumn: CalculatedColumn): CalculatedColumn;
|
|
16
|
-
editCalculatedColumns(calculatedColumns: CalculatedColumn[]): CalculatedColumn[];
|
|
17
15
|
deleteCalculatedColumn(column: string): void;
|
|
18
16
|
openCalculatedColumnSettingsPanel(): void;
|
|
19
17
|
refreshAggregatedCalculatedColumns(): void;
|
|
20
18
|
refreshAggregatedCalculatedColumn(columnId: string): void;
|
|
21
|
-
showCalculatedColumnPopup(): void;
|
|
22
|
-
getCalculatedColumnModuleReferences(calculatedColumn: CalculatedColumn): string[];
|
|
23
|
-
getCalculatedColumnsReferencingColumnId(columnId: string): CalculatedColumn[];
|
|
24
|
-
getReferencedColumnIdsForCalculatedColumn(calculatedColumn: CalculatedColumn): string[];
|
|
25
|
-
getReferencedColumnIdsForCalculatedColumnId(calculatedColumnId: string): string[];
|
|
26
19
|
}
|