@adaptabletools/adaptable 15.4.2 → 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 +232 -226
- 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/AdaptableNoCodeWizard.d.ts +3 -0
- 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/FilterOptions.d.ts +3 -0
- package/src/AdaptableOptions/FinancePluginOptions.d.ts +24 -0
- package/src/AdaptableOptions/GroupingOptions.d.ts +50 -0
- package/src/AdaptableOptions/GroupingOptions.js +2 -0
- package/src/AdaptableOptions/LayoutOptions.d.ts +3 -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/ToolPanelOptions.d.ts +3 -0
- package/src/AdaptableOptions/UserInterfaceOptions.d.ts +36 -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 +10 -34
- 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 +20 -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 +6 -35
- 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 +11 -5
- package/src/PredefinedConfig/Common/AdaptableFormat.d.ts +3 -3
- package/src/PredefinedConfig/Common/AdaptableIcon.d.ts +4 -1
- package/src/PredefinedConfig/Common/AdaptablePredicate.d.ts +13 -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 +4 -1
- package/src/PredefinedConfig/LayoutState.d.ts +0 -6
- package/src/PredefinedConfig/StyledColumnState.d.ts +3 -0
- 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/FilterForm/QuickFilterValues.js +8 -1
- 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 +138 -38
- 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 +360 -143
- package/src/metamodel/adaptable.metamodel.js +1 -1
- package/src/parser/src/types.d.ts +3 -0
- 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
|
@@ -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
|
}
|
|
@@ -5,7 +5,6 @@ const tslib_1 = require("tslib");
|
|
|
5
5
|
const CalculatedColumnRedux = tslib_1.__importStar(require("../../Redux/ActionsReducers/CalculatedColumnRedux"));
|
|
6
6
|
const ApiBase_1 = require("./ApiBase");
|
|
7
7
|
const ModuleConstants = tslib_1.__importStar(require("../../Utilities/Constants/ModuleConstants"));
|
|
8
|
-
const logDeprecation_1 = require("../../Utilities/logDeprecation");
|
|
9
8
|
const CalculatedColumnInternalApi_1 = require("../Internal/CalculatedColumnInternalApi");
|
|
10
9
|
class CalculatedColumnApiImpl extends ApiBase_1.ApiBase {
|
|
11
10
|
constructor(adaptable) {
|
|
@@ -19,10 +18,6 @@ class CalculatedColumnApiImpl extends ApiBase_1.ApiBase {
|
|
|
19
18
|
var _a;
|
|
20
19
|
return (_a = this.getCalculatedColumnState().CalculatedColumns) !== null && _a !== void 0 ? _a : [];
|
|
21
20
|
}
|
|
22
|
-
getAllCalculatedColumn() {
|
|
23
|
-
(0, logDeprecation_1.logDeprecation)(this.adaptable.logger, 'CalculatedColumnApi', 'getAllCalculatedColumn', 'getCalculatedColumns');
|
|
24
|
-
return this.getCalculatedColumns();
|
|
25
|
-
}
|
|
26
21
|
getCalculatedColumnById(id) {
|
|
27
22
|
return this.getCalculatedColumns().find((column) => (column === null || column === void 0 ? void 0 : column.Uuid) === id);
|
|
28
23
|
}
|
|
@@ -38,13 +33,6 @@ class CalculatedColumnApiImpl extends ApiBase_1.ApiBase {
|
|
|
38
33
|
this.dispatchAction(CalculatedColumnRedux.CalculatedColumnEdit(calculatedColumn));
|
|
39
34
|
return this.getCalculatedColumnById(calculatedColumn.Uuid);
|
|
40
35
|
}
|
|
41
|
-
editCalculatedColumns(calculatedColumns) {
|
|
42
|
-
(0, logDeprecation_1.logDeprecationInternal)(this.adaptable.logger, 'CalculatedColumnApi', 'editCalculatedColumns');
|
|
43
|
-
calculatedColumns.forEach((cc) => {
|
|
44
|
-
this.editCalculatedColumn(cc);
|
|
45
|
-
});
|
|
46
|
-
return calculatedColumns === null || calculatedColumns === void 0 ? void 0 : calculatedColumns.map((column) => this.getCalculatedColumnById(column === null || column === void 0 ? void 0 : column.Uuid));
|
|
47
|
-
}
|
|
48
36
|
deleteCalculatedColumn(column) {
|
|
49
37
|
let calcColumn = this.getCalculatedColumns().find((cc) => cc.ColumnId == column);
|
|
50
38
|
this.dispatchAction(CalculatedColumnRedux.CalculatedColumnDelete(calcColumn));
|
|
@@ -86,25 +74,5 @@ class CalculatedColumnApiImpl extends ApiBase_1.ApiBase {
|
|
|
86
74
|
this.getGridApi().refreshCells(null, [columnId]);
|
|
87
75
|
}
|
|
88
76
|
}
|
|
89
|
-
showCalculatedColumnPopup() {
|
|
90
|
-
(0, logDeprecation_1.logDeprecation)(this.adaptable.logger, 'CalculatedColumnApi', 'showCalculatedColumnPopup', 'openCalculatedColumnSettingsPanel');
|
|
91
|
-
this.showModulePopup(ModuleConstants.CalculatedColumnModuleId);
|
|
92
|
-
}
|
|
93
|
-
getCalculatedColumnModuleReferences(calculatedColumn) {
|
|
94
|
-
(0, logDeprecation_1.logDeprecationInternal)(this.adaptable.logger, 'CalculatedColumnApi', 'getCalculatedColumnModuleReferences');
|
|
95
|
-
return this.internalApi.getCalculatedColumnModuleReferences(calculatedColumn);
|
|
96
|
-
}
|
|
97
|
-
getCalculatedColumnsReferencingColumnId(columnId) {
|
|
98
|
-
(0, logDeprecation_1.logDeprecationInternal)(this.adaptable.logger, 'CalculatedColumnApi', 'getCalculatedColumnsReferencingColumnId');
|
|
99
|
-
return this.internalApi.getCalculatedColumnsReferencingColumnId(columnId);
|
|
100
|
-
}
|
|
101
|
-
getReferencedColumnIdsForCalculatedColumn(calculatedColumn) {
|
|
102
|
-
(0, logDeprecation_1.logDeprecationInternal)(this.adaptable.logger, 'CalculatedColumnApi', 'getReferencedColumnIdsForCalculatedColumn');
|
|
103
|
-
return this.internalApi.getReferencedColumnIdsForCalculatedColumn(calculatedColumn);
|
|
104
|
-
}
|
|
105
|
-
getReferencedColumnIdsForCalculatedColumnId(calculatedColumnId) {
|
|
106
|
-
(0, logDeprecation_1.logDeprecationInternal)(this.adaptable.logger, 'CalculatedColumnApi', 'getReferencedColumnIdsForCalculatedColumnId');
|
|
107
|
-
return this.internalApi.getReferencedColumnIdsForCalculatedColumnId(calculatedColumnId);
|
|
108
|
-
}
|
|
109
77
|
}
|
|
110
78
|
exports.CalculatedColumnApiImpl = CalculatedColumnApiImpl;
|
|
@@ -22,29 +22,16 @@ class CalendarApiImpl extends ApiBase_1.ApiBase {
|
|
|
22
22
|
return counterDate;
|
|
23
23
|
}
|
|
24
24
|
isWorkingDay(dateToCheck) {
|
|
25
|
-
const holidays = this.
|
|
25
|
+
const holidays = this.getHolidays();
|
|
26
26
|
if (!holidays) {
|
|
27
27
|
return dateToCheck.getDay() != 0 && dateToCheck.getDay() != 6;
|
|
28
28
|
}
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
userName: this.getOptions().userName,
|
|
33
|
-
adaptableId: this.getOptions().adaptableId,
|
|
34
|
-
adaptableApi: this.getAdaptableApi(),
|
|
35
|
-
};
|
|
36
|
-
if (holidays.isHoliday(context)) {
|
|
29
|
+
for (let holiday of holidays) {
|
|
30
|
+
let holidayDate = new Date(holiday);
|
|
31
|
+
if (holidayDate.setHours(0, 0, 0, 0) == dateToCheck.setHours(0, 0, 0, 0)) {
|
|
37
32
|
return false;
|
|
38
33
|
}
|
|
39
34
|
}
|
|
40
|
-
if (Array.isArray(holidays.list)) {
|
|
41
|
-
for (let holiday of holidays.list) {
|
|
42
|
-
let holidayDate = new Date(holiday);
|
|
43
|
-
if (holidayDate.setHours(0, 0, 0, 0) == dateToCheck.setHours(0, 0, 0, 0)) {
|
|
44
|
-
return false;
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
35
|
return dateToCheck.getDay() != 0 && dateToCheck.getDay() != 6;
|
|
49
36
|
}
|
|
50
37
|
isHoliday(dateToCheck) {
|
|
@@ -55,5 +42,21 @@ class CalendarApiImpl extends ApiBase_1.ApiBase {
|
|
|
55
42
|
firstDateToCheck.getMonth() === secondDateToCheck.getMonth() &&
|
|
56
43
|
firstDateToCheck.getDate() === secondDateToCheck.getDate());
|
|
57
44
|
}
|
|
45
|
+
getHolidays() {
|
|
46
|
+
const holidays = this.getCalendarOptions().holidays;
|
|
47
|
+
if (holidays) {
|
|
48
|
+
if (typeof holidays === 'function') {
|
|
49
|
+
const baseContext = {
|
|
50
|
+
userName: this.getOptions().userName,
|
|
51
|
+
adaptableId: this.getOptions().adaptableId,
|
|
52
|
+
adaptableApi: this.getAdaptableApi(),
|
|
53
|
+
};
|
|
54
|
+
return holidays(baseContext);
|
|
55
|
+
}
|
|
56
|
+
else {
|
|
57
|
+
return holidays;
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
}
|
|
58
61
|
}
|
|
59
62
|
exports.CalendarApiImpl = CalendarApiImpl;
|
|
@@ -6,7 +6,6 @@ export declare class CellSummaryApiImpl extends ApiBase implements CellSummaryAp
|
|
|
6
6
|
openCellSummaryPopupSettingsPanel(): void;
|
|
7
7
|
getCurrentCellSummaryOperation(): CellSummaryOperation | string;
|
|
8
8
|
getCellSummaryOperationDefinitions(): CellSummaryOperation[];
|
|
9
|
-
showCellSummaryPopup(): void;
|
|
10
9
|
setCurrentCellSummaryOperation(operation: SummaryOperation | string): void;
|
|
11
10
|
getCellSummaryOperationValue(operation: SummaryOperation | string): any;
|
|
12
11
|
getCurrentCellSummaryOperationValue(): any;
|
|
@@ -7,7 +7,6 @@ const ModuleConstants = tslib_1.__importStar(require("../../Utilities/Constants/
|
|
|
7
7
|
const SystemRedux = tslib_1.__importStar(require("../../Redux/ActionsReducers/SystemRedux"));
|
|
8
8
|
const Enums_1 = require("../../PredefinedConfig/Common/Enums");
|
|
9
9
|
const weightedAverage_1 = require("../../agGrid/weightedAverage");
|
|
10
|
-
const logDeprecation_1 = require("../../Utilities/logDeprecation");
|
|
11
10
|
class CellSummaryApiImpl extends ApiBase_1.ApiBase {
|
|
12
11
|
openCellSummaryPopupSettingsPanel() {
|
|
13
12
|
this.showModulePopup(ModuleConstants.CellSummaryModuleId);
|
|
@@ -17,7 +16,7 @@ class CellSummaryApiImpl extends ApiBase_1.ApiBase {
|
|
|
17
16
|
}
|
|
18
17
|
getCellSummaryOperationDefinitions() {
|
|
19
18
|
var _a;
|
|
20
|
-
let cellSummaryOperations = (_a = this.
|
|
19
|
+
let cellSummaryOperations = (_a = this.getCellSummaryOptions().cellSummaryOperations) !== null && _a !== void 0 ? _a : [];
|
|
21
20
|
if (this.isWeightedAverageCellSummaryAvailable()) {
|
|
22
21
|
cellSummaryOperations = [
|
|
23
22
|
...cellSummaryOperations,
|
|
@@ -26,10 +25,6 @@ class CellSummaryApiImpl extends ApiBase_1.ApiBase {
|
|
|
26
25
|
}
|
|
27
26
|
return cellSummaryOperations;
|
|
28
27
|
}
|
|
29
|
-
showCellSummaryPopup() {
|
|
30
|
-
(0, logDeprecation_1.logDeprecation)(this.adaptable.logger, 'CellSummaryApi', 'showCellSummaryPopup', 'openCellSummaryPopupSettingsPanel');
|
|
31
|
-
this.openCellSummaryPopupSettingsPanel();
|
|
32
|
-
}
|
|
33
28
|
setCurrentCellSummaryOperation(operation) {
|
|
34
29
|
this.dispatchAction(SystemRedux.SystemCellSummaryChangeOperation(operation));
|
|
35
30
|
}
|
|
@@ -13,7 +13,6 @@ export declare class ChartingApiImpl extends ApiBase implements ChartingApi {
|
|
|
13
13
|
saveCurrentCharts(): void;
|
|
14
14
|
getPersistedCharts(): ChartModel[];
|
|
15
15
|
getChartDefinitions(): ChartDefinition[];
|
|
16
|
-
getAllChartDefinitions(): ChartDefinition[];
|
|
17
16
|
getChartDefinitionByUuid(uuid: string): ChartDefinition;
|
|
18
17
|
getChartDefinitionByName(name: string): ChartDefinition | undefined;
|
|
19
18
|
showPersistedCharts(): ChartRef[];
|
|
@@ -6,7 +6,6 @@ const ApiBase_1 = require("./ApiBase");
|
|
|
6
6
|
const ChartingRedux = tslib_1.__importStar(require("./../../Redux/ActionsReducers/ChartingRedux"));
|
|
7
7
|
const ChartingRedux_1 = require("./../../Redux/ActionsReducers/ChartingRedux");
|
|
8
8
|
const ObjectFactory_1 = tslib_1.__importDefault(require("../../Utilities/ObjectFactory"));
|
|
9
|
-
const logDeprecation_1 = require("../../Utilities/logDeprecation");
|
|
10
9
|
const StringExtensions_1 = tslib_1.__importDefault(require("../../Utilities/Extensions/StringExtensions"));
|
|
11
10
|
const ChartingInternalApi_1 = require("../Internal/ChartingInternalApi");
|
|
12
11
|
class ChartingApiImpl extends ApiBase_1.ApiBase {
|
|
@@ -38,10 +37,6 @@ class ChartingApiImpl extends ApiBase_1.ApiBase {
|
|
|
38
37
|
var _a;
|
|
39
38
|
return (_a = (0, ChartingRedux_1.ChartingGetChartModels)(this.getAdaptableState())) !== null && _a !== void 0 ? _a : [];
|
|
40
39
|
}
|
|
41
|
-
getAllChartDefinitions() {
|
|
42
|
-
(0, logDeprecation_1.logDeprecation)(this.adaptable.logger, 'ChartingApi', 'getAllChartDefinitions', 'getChartDefinitions');
|
|
43
|
-
return this.getChartDefinitions();
|
|
44
|
-
}
|
|
45
40
|
getChartDefinitionByUuid(uuid) {
|
|
46
41
|
return this.getChartDefinitions().find((c) => c.Uuid == uuid);
|
|
47
42
|
}
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
import { ApiBase } from './ApiBase';
|
|
2
2
|
import { AdaptableColumn, AdaptableColumnDataType } from '../../PredefinedConfig/Common/AdaptableColumn';
|
|
3
3
|
import { ColumnApi } from '../ColumnApi';
|
|
4
|
-
import { GridCell } from '../../PredefinedConfig/Selection/GridCell';
|
|
5
|
-
import { Column, IRowNode } from '@ag-grid-community/core';
|
|
6
4
|
import { IAdaptable } from '../../AdaptableInterfaces/IAdaptable';
|
|
7
5
|
import { ColumnInternalApi } from '../Internal/ColumnInternalApi';
|
|
8
6
|
export declare class ColumnApiImpl extends ApiBase implements ColumnApi {
|
|
@@ -20,42 +18,24 @@ export declare class ColumnApiImpl extends ApiBase implements ColumnApi {
|
|
|
20
18
|
autosizeAllColumns(): void;
|
|
21
19
|
hideColumn(columnId: string): void;
|
|
22
20
|
showColumn(columnId: string): void;
|
|
23
|
-
getAgGridColumnType(columnId: string): string | string[];
|
|
24
21
|
isAutoRowGroupColumn(columnId: string): boolean;
|
|
25
22
|
isAutoPivotColumn(columnId: string): boolean;
|
|
26
23
|
isCalculatedColumn(columnId: string): boolean;
|
|
27
24
|
isFreeTextColumn(columnId: string): boolean;
|
|
28
25
|
isActionColumn(columnId: string): boolean;
|
|
29
|
-
isStyledNumericColumn(column: AdaptableColumn): boolean;
|
|
30
26
|
getColumnWithColumnId(columnId: string, logWarning?: boolean): AdaptableColumn | undefined;
|
|
31
|
-
isNumericColumn(column: AdaptableColumn): boolean;
|
|
32
27
|
hasNumberDataType(columnId: string): boolean;
|
|
33
|
-
isBooleanColumn(column: AdaptableColumn): boolean;
|
|
34
28
|
hasBooleanDataType(columnId: string): boolean;
|
|
35
29
|
hasArrayDataType(columnId: string): boolean;
|
|
36
|
-
isDateColumn(column: AdaptableColumn): boolean;
|
|
37
30
|
hasDateDataType(columnId: string): boolean;
|
|
38
|
-
getColumnDataTypeFromColumnId(columnId: string): AdaptableColumnDataType | undefined;
|
|
39
31
|
getColumnDataTypeForColumnId(columnId: string): AdaptableColumnDataType | undefined;
|
|
40
|
-
getFriendlyNameFromColumn(columnId: string, column: AdaptableColumn): string;
|
|
41
|
-
getFriendlyNameFromColumnId(columnId: string): string | undefined;
|
|
42
32
|
getFriendlyNameForColumnId(columnId: string): string;
|
|
43
|
-
getFriendlyNamesFromColumnIds(columnIds: string[]): string[];
|
|
44
33
|
getFriendlyNamesForColumnIds(columnIds: string[]): string[];
|
|
45
|
-
getColumnIdFromFriendlyName(friendlyName: string): string;
|
|
46
34
|
getColumnIdForFriendlyName(friendlyName: string): string;
|
|
47
|
-
getColumnIdsFromFriendlyNames(friendlyNames: string[]): string[];
|
|
48
35
|
getColumnIdsForFriendlyNames(friendlyNames: string[]): string[];
|
|
49
|
-
getColumnsFromFriendlyNames(friendlyNames: string[]): AdaptableColumn[];
|
|
50
36
|
getColumnsWithFriendlyNames(friendlyNames: string[]): AdaptableColumn[];
|
|
51
|
-
getColumnsFromIds(columnIds: string[], logWarning?: boolean): AdaptableColumn[];
|
|
52
37
|
getColumnsWithColumnIds(columnIds: string[], logWarning?: boolean): AdaptableColumn[];
|
|
53
|
-
doesColumnExist(columnId: string): boolean;
|
|
54
38
|
isColumnInGrid(columnId: string): boolean;
|
|
55
|
-
getColumnFromId(columnId: string, logWarning?: boolean): AdaptableColumn | undefined;
|
|
56
|
-
getAgGridColumnFieldForAdaptableColumn(colId: string): string;
|
|
57
|
-
getAgGridColumnForAdaptableColumn(columnId: string): Column;
|
|
58
|
-
getColumnFromFriendlyName(columnName: string, logWarning?: boolean): AdaptableColumn;
|
|
59
39
|
getColumnWithFriendlyName(columnFriendlyName: string, logWarning?: boolean): AdaptableColumn;
|
|
60
40
|
getColumnsOfType(dataType: AdaptableColumnDataType): AdaptableColumn[];
|
|
61
41
|
getNumericColumns(): AdaptableColumn[];
|
|
@@ -74,23 +54,8 @@ export declare class ColumnApiImpl extends ApiBase implements ColumnApi {
|
|
|
74
54
|
getQueryableColumns(): AdaptableColumn[];
|
|
75
55
|
getExportableColumns(): AdaptableColumn[];
|
|
76
56
|
private logMissingColumnWarning;
|
|
77
|
-
getDistinctDisplayValuesForColumn(columnId: string): any[];
|
|
78
|
-
getDistinctFilterDisplayValuesForColumn(columnId: string, filter: string, showFilteredRowsOnly: boolean): Promise<{
|
|
79
|
-
values: any[];
|
|
80
|
-
suppressClientSideFilter: boolean;
|
|
81
|
-
}>;
|
|
82
|
-
getDistinctCustomSortDisplayValuesForColumn(columnId: string): Promise<any[]>;
|
|
83
|
-
getDistinctBulkUpdateDisplayValuesForColumn(columnId: string, selectedGridCells: GridCell[]): Promise<any[]>;
|
|
84
|
-
getDistinctVisibleDisplayValuesForColumn(columnId: string): any[];
|
|
85
|
-
getDistinctRawValuesForColumn(columnId: string, skipRowNode?: IRowNode): any[];
|
|
86
|
-
getUnsortedDistinctRawValuesForColumn(columnId: string, skipRowNode?: IRowNode): any[];
|
|
87
|
-
getDistinctVisibleRawValuesForColumn(columnId: string): any[];
|
|
88
57
|
getPrimaryKeyColumn(): AdaptableColumn<any>;
|
|
89
|
-
getAllColumnFriendlyNames(): string[];
|
|
90
|
-
usesAdaptableFilterForm(columnId: string): boolean;
|
|
91
|
-
usesAdaptableQuickFilter(columnId: string): boolean;
|
|
92
58
|
isActionRowButtonColumn(columnId: string): boolean;
|
|
93
59
|
getDefaultAggFunc(columnId: string): string;
|
|
94
|
-
getTypesForColumn(columnId: string): string | string[] | undefined;
|
|
95
60
|
isSpecialColumn(columnId: string): boolean;
|
|
96
61
|
}
|