@adaptabletools/adaptable 11.0.0-canary.2 → 11.0.0-canary.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/agGrid.d.ts +1 -1
- package/agGrid.js +3 -3
- package/base.css +138 -68
- package/bundle.cjs.js +131 -127
- package/index.css +140 -68
- package/package.json +33 -33
- package/publishTimestamp.d.ts +1 -1
- package/publishTimestamp.js +1 -1
- package/src/AdaptableInterfaces/AdaptableNoCodeWizard.d.ts +7 -5
- package/src/AdaptableOptions/AdaptableFrameworkComponent.d.ts +1 -3
- package/src/AdaptableOptions/AdaptableOptions.d.ts +11 -2
- package/src/AdaptableOptions/AlertOptions.d.ts +82 -0
- package/src/AdaptableOptions/AlertOptions.js +2 -0
- package/src/AdaptableOptions/ContainerOptions.d.ts +2 -2
- package/src/AdaptableOptions/EntitlementOptions.d.ts +1 -1
- package/src/AdaptableOptions/FilterOptions.d.ts +1 -1
- package/src/AdaptableOptions/NotificationsOptions.d.ts +1 -78
- package/src/AdaptableOptions/QueryLanguageOptions.d.ts +3 -7
- package/src/AdaptableOptions/StateOptions.d.ts +2 -1
- package/src/AdaptableOptions/TeamSharingOptions.d.ts +2 -2
- package/src/AdaptableOptions/ToolPanelOptions.d.ts +0 -3
- package/src/AdaptableOptions/UserInterfaceOptions.d.ts +3 -3
- package/src/Api/AdaptableApi.d.ts +6 -0
- package/src/Api/AlertApi.d.ts +2 -3
- package/src/Api/ColumnApi.d.ts +0 -4
- package/src/Api/EventApi.d.ts +8 -3
- package/src/Api/Events/GridDataChanged.d.ts +4 -2
- package/src/Api/Events/SystemStatusMessageDisplayed.d.ts +1 -1
- package/src/Api/FreeTextColumnApi.d.ts +0 -12
- package/src/Api/GridApi.d.ts +5 -4
- package/src/Api/IPushPullApi.d.ts +1 -1
- package/src/Api/Implementation/AdaptableApiImpl.d.ts +2 -1
- package/src/Api/Implementation/AdaptableApiImpl.js +2 -0
- package/src/Api/Implementation/AlertApiImpl.d.ts +1 -2
- package/src/Api/Implementation/AlertApiImpl.js +19 -10
- package/src/Api/Implementation/ApiBase.d.ts +2 -0
- package/src/Api/Implementation/ApiBase.js +3 -0
- package/src/Api/Implementation/ColumnApiImpl.d.ts +0 -1
- package/src/Api/Implementation/ColumnApiImpl.js +0 -5
- package/src/Api/Implementation/DashboardApiImpl.js +1 -1
- package/src/Api/Implementation/FlashingCellApiImpl.js +2 -4
- package/src/Api/Implementation/FreeTextColumnApiImpl.d.ts +0 -5
- package/src/Api/Implementation/FreeTextColumnApiImpl.js +0 -9
- package/src/Api/Implementation/GridApiImpl.d.ts +5 -4
- package/src/Api/Implementation/GridApiImpl.js +4 -0
- package/src/Api/Implementation/InternalApiImpl.js +2 -2
- package/src/Api/Implementation/LayoutApiImpl.d.ts +2 -0
- package/src/Api/Implementation/LayoutApiImpl.js +12 -1
- package/src/Api/Implementation/QueryApiImpl.js +4 -1
- package/src/Api/Implementation/QueryLanguageApiImpl.d.ts +1 -1
- package/src/Api/Implementation/QueryLanguageApiImpl.js +6 -7
- package/src/Api/Implementation/SettingsPanelApiImpl.d.ts +7 -0
- package/src/Api/Implementation/SettingsPanelApiImpl.js +15 -0
- package/src/Api/LayoutApi.d.ts +7 -0
- package/src/Api/OpenFinApi.d.ts +5 -0
- package/src/Api/PluginsApi.d.ts +29 -0
- package/src/Api/QueryLanguageApi.d.ts +10 -10
- package/src/Api/SettingsPanelApi.d.ts +17 -0
- package/src/Api/SettingsPanelApi.js +2 -0
- package/src/Api/UserInterfaceApi.d.ts +5 -2
- package/src/PredefinedConfig/AlertState.d.ts +4 -6
- package/src/PredefinedConfig/CalculatedColumnState.d.ts +0 -1
- package/src/PredefinedConfig/Common/AdaptableQuery.d.ts +7 -4
- package/src/PredefinedConfig/Common/AdaptableQuery.js +3 -3
- package/src/PredefinedConfig/Common/CellHighlightInfo.d.ts +1 -12
- package/src/PredefinedConfig/Common/DataChangedInfo.d.ts +1 -1
- package/src/PredefinedConfig/Common/Enums.d.ts +0 -1
- package/src/PredefinedConfig/Common/Enums.js +0 -2
- package/src/PredefinedConfig/Common/FDC3Context.d.ts +4 -12
- package/src/PredefinedConfig/Common/RowHighlightInfo.d.ts +15 -0
- package/src/PredefinedConfig/Common/RowHighlightInfo.js +2 -0
- package/src/PredefinedConfig/Common/Types.d.ts +1 -1
- package/src/PredefinedConfig/CustomSortState.d.ts +0 -1
- package/src/PredefinedConfig/FlashingCellState.d.ts +5 -2
- package/src/PredefinedConfig/FreeTextColumnState.d.ts +1 -1
- package/src/PredefinedConfig/LayoutState.d.ts +0 -2
- package/src/PredefinedConfig/PredefinedConfig.d.ts +5 -2
- package/src/PredefinedConfig/SystemState.d.ts +2 -1
- package/src/Redux/ActionsReducers/ApplicationRedux.js +9 -3
- package/src/Redux/ActionsReducers/FlashingCellRedux.js +4 -8
- package/src/Redux/ActionsReducers/GridRedux.js +3 -1
- package/src/Redux/ActionsReducers/PopupRedux.js +13 -3
- package/src/Redux/ActionsReducers/QuickSearchRedux.js +3 -1
- package/src/Redux/ActionsReducers/SystemRedux.d.ts +6 -5
- package/src/Redux/ActionsReducers/SystemRedux.js +16 -14
- package/src/Redux/ActionsReducers/ThemeRedux.js +3 -1
- package/src/Redux/Store/AdaptableReduxLocalStorageEngine.js +1 -1
- package/src/Redux/Store/AdaptableReduxMerger.js +5 -5
- package/src/Redux/Store/AdaptableStore.js +18 -6
- package/src/Strategy/AlertModule.js +14 -4
- package/src/Strategy/ConditionalStyleModule.js +4 -0
- package/src/Strategy/DataChangeHistoryModule.js +1 -1
- package/src/Strategy/FlashingCellModule.d.ts +1 -1
- package/src/Strategy/FlashingCellModule.js +34 -18
- package/src/Strategy/FreeTextColumnModule.d.ts +2 -2
- package/src/Strategy/FreeTextColumnModule.js +10 -0
- package/src/Strategy/LayoutModule.js +1 -6
- package/src/Strategy/TeamSharingModule.js +1 -1
- package/src/Strategy/ToolPanelModule.js +5 -3
- package/src/Strategy/Utilities/getFlashingTargetViewItems.d.ts +1 -1
- package/src/Strategy/Utilities/getFlashingTargetViewItems.js +3 -1
- package/src/Strategy/Utilities/getFormatColumnSettingsViewItems.js +1 -1
- package/src/Strategy/Utilities/getRuleViewItems.d.ts +0 -1
- package/src/Strategy/Utilities/getRuleViewItems.js +0 -1
- package/src/Utilities/Defaults/DefaultAdaptableOptions.js +8 -6
- package/src/Utilities/ExpressionFunctions/{aggregationExpressionFunctions.d.ts → aggregatedBooleanExpressionFunctions.d.ts} +1 -1
- package/src/Utilities/ExpressionFunctions/{aggregationExpressionFunctions.js → aggregatedBooleanExpressionFunctions.js} +4 -4
- package/src/Utilities/ExpressionFunctions/aggregatedScalarExpressionFunctions.d.ts +7 -0
- package/src/Utilities/ExpressionFunctions/aggregatedScalarExpressionFunctions.js +42 -0
- package/src/Utilities/ExpressionFunctions/dateUtils.d.ts +1 -0
- package/src/Utilities/ExpressionFunctions/dateUtils.js +13 -0
- package/src/Utilities/ExpressionFunctions/deepMap.d.ts +35 -0
- package/src/Utilities/ExpressionFunctions/deepMap.js +283 -0
- package/src/Utilities/ExpressionFunctions/expressionFunctionUtils.js +1 -1
- package/src/Utilities/ExpressionFunctions/groupingMap.d.ts +36 -0
- package/src/Utilities/ExpressionFunctions/groupingMap.js +104 -0
- package/src/Utilities/ExpressionFunctions/observableExpressionFunctions.js +2 -3
- package/src/Utilities/ExpressionFunctions/scalarExpressionFunctions.js +13 -4
- package/src/Utilities/Extensions/StringExtensions.js +1 -1
- package/src/Utilities/Helpers/AdaptableHelper.js +3 -2
- package/src/Utilities/Helpers/CalendarHelper.js +220 -55
- package/src/Utilities/Interface/MessagePopups.d.ts +6 -2
- package/src/Utilities/ObjectFactory.js +5 -2
- package/src/Utilities/Services/AlertService.js +3 -3
- package/src/Utilities/Services/DataService.js +6 -1
- package/src/Utilities/Services/Interface/IQueryLanguageService.d.ts +2 -2
- package/src/Utilities/Services/LicenseService.js +1 -1
- package/src/Utilities/Services/QueryLanguageService.d.ts +2 -2
- package/src/Utilities/Services/QueryLanguageService.js +21 -16
- package/src/Utilities/Services/ReportService.js +7 -3
- package/src/Utilities/Services/TeamSharingService.js +5 -3
- package/src/View/AdaptablePopover/index.js +6 -1
- package/src/View/AdaptableView.js +1 -1
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/ColumnsList.js +5 -1
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/ConfigurationForm.js +5 -2
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/index.js +4 -1
- package/src/View/AdaptableWizardView/helper.js +5 -3
- package/src/View/Alert/Wizard/AlertButtonsEditor.d.ts +1 -1
- package/src/View/Alert/Wizard/AlertButtonsEditor.js +5 -1
- package/src/View/Alert/Wizard/AlertRulesWizardSection.d.ts +1 -1
- package/src/View/Alert/Wizard/AlertWizard.js +2 -2
- package/src/View/Alert/Wizard/BaseAlertRulesWizardSection.d.ts +2 -3
- package/src/View/Alert/Wizard/BaseAlertRulesWizardSection.js +3 -5
- package/src/View/Alert/Wizard/BaseAlertScopeWizardSection.js +3 -2
- package/src/View/Alert/Wizard/isValidAlertRules.js +3 -3
- package/src/View/CalculatedColumn/Wizard/CalculatedColumnWizard.js +17 -6
- package/src/View/CellSummary/CellSummaryViewPanel.js +1 -2
- package/src/View/Components/AdaptableObjectList/AdaptableObjectList.js +5 -2
- package/src/View/Components/EntityRulesEditor/index.js +9 -9
- package/src/View/Components/FilterForm/FilterForm.js +0 -2
- package/src/View/Components/FilterForm/QuickFilterForm.js +8 -7
- package/src/View/Components/FilterForm/getDefaultColumnFilterPredicate.d.ts +1 -1
- package/src/View/Components/ModuleValueSelector/index.js +1 -1
- package/src/View/Components/Panels/PanelWithImage.d.ts +1 -1
- package/src/View/Components/Popups/AdaptablePopup/AdaptablePopup.d.ts +0 -3
- package/src/View/Components/Popups/AdaptablePopup/AdaptablePopup.js +45 -87
- package/src/View/Components/Popups/AdaptablePopup/AdaptablePopupDialog.d.ts +11 -0
- package/src/View/Components/Popups/AdaptablePopup/AdaptablePopupDialog.js +78 -0
- package/src/View/Components/Popups/AdaptablePopup/AdaptablePopupModuleView.d.ts +3 -1
- package/src/View/Components/Popups/AdaptablePopup/AdaptablePopupModuleView.js +19 -6
- package/src/View/Components/Popups/AdaptablePopup/Navigation.d.ts +1 -3
- package/src/View/Components/Popups/AdaptablePopup/Navigation.js +5 -13
- package/src/View/Components/Popups/AdaptablePopup/TopBar.js +5 -4
- package/src/View/Components/Popups/AdaptablePopup/useMenuItems.d.ts +2 -0
- package/src/View/Components/Popups/AdaptablePopup/useMenuItems.js +44 -0
- package/src/View/Components/Popups/AdaptablePopupConfirmation.js +3 -1
- package/src/View/Components/Popups/AdaptablePopupPrompt.d.ts +5 -12
- package/src/View/Components/Popups/AdaptablePopupPrompt.js +38 -37
- package/src/View/Components/Popups/AdaptablePopupTeamSharing.js +4 -1
- package/src/View/Components/ScopeComponent.js +4 -1
- package/src/View/Components/SharedProps/ModuleViewPopupProps.d.ts +1 -1
- package/src/View/Components/ToolPanel/AdaptableToolPanel.js +1 -1
- package/src/View/Components/ToolPanel/CustomToolPanelContent.js +6 -2
- package/src/View/Components/ToolPanel/ToolPanelPopup.js +7 -5
- package/src/View/Components/ToolPanel/ToolPanelWrapper.js +1 -1
- package/src/View/Components/ValueSelector/index.d.ts +2 -1
- package/src/View/Components/ValueSelector/index.js +5 -5
- package/src/View/ConditionalStyle/Wizard/ConditionalStyleRuleWizardSection.js +2 -2
- package/src/View/ConditionalStyle/Wizard/ConditionalStyleSettingsWizardSettings.d.ts +8 -0
- package/src/View/ConditionalStyle/Wizard/ConditionalStyleSettingsWizardSettings.js +27 -0
- package/src/View/ConditionalStyle/Wizard/ConditionalStyleWizard.js +17 -5
- package/src/View/CustomSort/Wizard/CustomSortValuesWizardSection.js +3 -1
- package/src/View/CustomSort/Wizard/CustomSortWizard.js +17 -5
- package/src/View/Dashboard/CustomToolbarWrapper.js +5 -1
- package/src/View/Dashboard/Dashboard.js +5 -5
- package/src/View/Dashboard/DashboardPopup.js +8 -6
- package/src/View/DataChangeHistory/DataChangeHistoryGrid.js +2 -1
- package/src/View/Export/Wizard/NewReportWizard.js +13 -3
- package/src/View/Export/Wizard/ReportColumnTypeWizard.js +3 -1
- package/src/View/Export/Wizard/ReportRowTypeWizard.js +3 -1
- package/src/View/Filter/FilterViewPanel.d.ts +1 -4
- package/src/View/Filter/FilterViewPanel.js +1 -3
- package/src/View/FlashingCell/Wizard/FlashingCellRulesWizardSection.js +17 -26
- package/src/View/FlashingCell/Wizard/FlashingCellScopeWizardSection.js +19 -2
- package/src/View/FlashingCell/Wizard/FlashingCellSettingsWizardSection.js +20 -5
- package/src/View/FlashingCell/Wizard/FlashingCellWizard.js +2 -2
- package/src/View/FormatColumn/Wizard/FormatColumnFormatWizardSection.js +2 -2
- package/src/View/FormatColumn/Wizard/FormatColumnWizard.js +11 -6
- package/src/View/FreeTextColumn/FreeTextColumnSummary.js +1 -2
- package/src/View/FreeTextColumn/Wizard/FreeTextColumnWizard.js +12 -5
- package/src/View/GridInfo/AdaptableOptionsComponent.js +4 -1
- package/src/View/Layout/Wizard/LayoutEditor/index.js +5 -1
- package/src/View/Layout/Wizard/LayoutEditorWizard.js +7 -1
- package/src/View/PlusMinus/Wizard/PlusMinusWizard.js +8 -2
- package/src/View/Query/ExpandedQueryPopup.js +9 -2
- package/src/View/Query/QueryViewPanel.js +15 -10
- package/src/View/Query/Wizard/NamedQueryWizard.js +6 -4
- package/src/View/QuickSearch/QuickSearchPopup.js +3 -3
- package/src/View/QuickSearch/useQuickSearchDebounced.js +1 -1
- package/src/View/Schedule/Wizard/ScheduleSettingsWizard/ScheduleSettingsSummary.js +12 -2
- package/src/View/Schedule/Wizard/ScheduleWizard.js +14 -14
- package/src/View/SpecialColumnSettingsWizardStep.js +1 -1
- package/src/View/UIHelper.js +4 -1
- package/src/View/Wizard/AdaptableWizard.js +13 -4
- package/src/View/Wizard/Interface/IAdaptableWizard.d.ts +2 -0
- package/src/View/Wizard/OnePageAdaptableWizard.js +6 -2
- package/src/agGrid/Adaptable.d.ts +2 -5
- package/src/agGrid/Adaptable.js +127 -75
- package/src/agGrid/agGridHelper.js +3 -8
- package/src/agGrid/agGridMenuHelper.js +5 -9
- package/src/agGrid/editors/AdaptableDateEditor/index.js +1 -1
- package/src/agGrid/editors/AdaptableNumberEditor/index.js +1 -1
- package/src/components/ApplicationIcon.d.ts +1 -0
- package/src/components/ApplicationIcon.js +2 -2
- package/src/components/Dashboard/Dashboard.js +4 -1
- package/src/components/Dashboard/DashboardManager.d.ts +5 -3
- package/src/components/Dashboard/DashboardManager.js +33 -27
- package/src/components/Dropdown/index.js +8 -1
- package/src/components/DropdownButton/renderItem.js +1 -1
- package/src/components/ExpressionEditor/EditorInputReactive.d.ts +1 -1
- package/src/components/ExpressionEditor/EditorInputReactive.js +4 -2
- package/src/components/ExpressionEditor/ExpressionFunctionDocumentation.js +4 -1
- package/src/components/ExpressionEditor/index.d.ts +1 -1
- package/src/components/ExpressionEditor/index.js +12 -5
- package/src/components/FormLayout/index.js +1 -1
- package/src/components/OverlayTrigger/Overlay.js +1 -1
- package/src/components/SizedContainer/index.js +7 -1
- package/src/components/WindowModal/WindowModal.js +4 -1
- package/src/metamodel/adaptable.metamodel.d.ts +75 -24
- package/src/metamodel/adaptable.metamodel.js +223 -115
- package/src/types.d.ts +6 -3
- package/themes/dark.css +4 -4
- package/version.d.ts +1 -1
- package/version.js +1 -1
|
@@ -16,7 +16,7 @@ class AlertApiImpl extends ApiBase_1.ApiBase {
|
|
|
16
16
|
}
|
|
17
17
|
getAdaptableFormByName(name) {
|
|
18
18
|
var _a;
|
|
19
|
-
const alertForms = this.
|
|
19
|
+
const alertForms = this.getAlertOptions().alertForms || [];
|
|
20
20
|
return (_a = alertForms.find((f) => f.name === name)) === null || _a === void 0 ? void 0 : _a.form;
|
|
21
21
|
}
|
|
22
22
|
getAlertDefinitions() {
|
|
@@ -57,7 +57,7 @@ class AlertApiImpl extends ApiBase_1.ApiBase {
|
|
|
57
57
|
}
|
|
58
58
|
actions.forEach((action) => {
|
|
59
59
|
var _a;
|
|
60
|
-
const buttonOnClick = (_a = this.
|
|
60
|
+
const buttonOnClick = (_a = this.getAlertOptions().actionHandlers) === null || _a === void 0 ? void 0 : _a.find((x) => x.name === action);
|
|
61
61
|
buttonOnClick === null || buttonOnClick === void 0 ? void 0 : buttonOnClick.handler(button, context);
|
|
62
62
|
this.adaptable.api.alertApi.executeAlertAction(action, {
|
|
63
63
|
alertDefinition: context.alert.alertDefinition,
|
|
@@ -79,10 +79,13 @@ class AlertApiImpl extends ApiBase_1.ApiBase {
|
|
|
79
79
|
switch (highhlightType) {
|
|
80
80
|
case 'Error':
|
|
81
81
|
backgroundColor = 'var(--ab-color-error)';
|
|
82
|
+
break;
|
|
82
83
|
case 'Info':
|
|
83
84
|
backgroundColor = 'var(--ab-color-info)';
|
|
85
|
+
break;
|
|
84
86
|
case 'Success':
|
|
85
87
|
backgroundColor = 'var(--ab-color-success)';
|
|
88
|
+
break;
|
|
86
89
|
case 'Warning':
|
|
87
90
|
backgroundColor = 'var(--ab-color-warn)';
|
|
88
91
|
}
|
|
@@ -92,7 +95,7 @@ class AlertApiImpl extends ApiBase_1.ApiBase {
|
|
|
92
95
|
highlightStyle: {
|
|
93
96
|
BackColor: backgroundColor,
|
|
94
97
|
},
|
|
95
|
-
timeout: this.
|
|
98
|
+
timeout: this.getAlertOptions().cellHighlightDuration,
|
|
96
99
|
});
|
|
97
100
|
return;
|
|
98
101
|
}
|
|
@@ -132,9 +135,12 @@ class AlertApiImpl extends ApiBase_1.ApiBase {
|
|
|
132
135
|
// 3 things we always do with an alert are:
|
|
133
136
|
// 1. Dispatch the Alert (so it appears in the toolbar)
|
|
134
137
|
this.addUidToAdaptableObject(alertToShow);
|
|
135
|
-
this.dispatchAction(SystemRedux.SystemAlertAdd(alertToShow, this.
|
|
138
|
+
this.dispatchAction(SystemRedux.SystemAlertAdd(alertToShow, this.getAlertOptions().maxAlertsInStore));
|
|
136
139
|
// 2. Publish the Alert Fired Event
|
|
137
|
-
const alertFiredInfo = {
|
|
140
|
+
const alertFiredInfo = {
|
|
141
|
+
adaptableApi: this.adaptable.api,
|
|
142
|
+
alert: alertToShow,
|
|
143
|
+
};
|
|
138
144
|
const results = await this.adaptable.api.eventApi.emit('AlertFired', alertFiredInfo);
|
|
139
145
|
const showPopup = results.reduce((endResult, aResult) => {
|
|
140
146
|
return endResult && aResult !== false;
|
|
@@ -175,7 +181,7 @@ class AlertApiImpl extends ApiBase_1.ApiBase {
|
|
|
175
181
|
this.adaptable.api.gridApi.refreshCells([alertNode], [dataChangedInfo.column.columnId]);
|
|
176
182
|
setTimeout(() => {
|
|
177
183
|
this.dispatchAction(SystemRedux.SystemAlertRemoveHighlight(alertToShow));
|
|
178
|
-
}, this.adaptable.adaptableOptions.
|
|
184
|
+
}, this.adaptable.adaptableOptions.alertOptions.cellHighlightDuration);
|
|
179
185
|
}
|
|
180
186
|
}
|
|
181
187
|
if (alertProperties.HighlightRow && dataChangedInfo) {
|
|
@@ -187,7 +193,7 @@ class AlertApiImpl extends ApiBase_1.ApiBase {
|
|
|
187
193
|
this.adaptable.api.gridApi.refreshRowNode(alertNode);
|
|
188
194
|
setTimeout(() => {
|
|
189
195
|
this.dispatchAction(SystemRedux.SystemAlertRemoveHighlight(alertToShow));
|
|
190
|
-
}, this.adaptable.adaptableOptions.
|
|
196
|
+
}, this.adaptable.adaptableOptions.alertOptions.cellHighlightDuration);
|
|
191
197
|
}
|
|
192
198
|
}
|
|
193
199
|
if (alertProperties.LogToConsole) {
|
|
@@ -196,7 +202,10 @@ class AlertApiImpl extends ApiBase_1.ApiBase {
|
|
|
196
202
|
}
|
|
197
203
|
}
|
|
198
204
|
publishAlertFiredEvent(alertToFire) {
|
|
199
|
-
const alertFiredInfo = {
|
|
205
|
+
const alertFiredInfo = {
|
|
206
|
+
adaptableApi: this.adaptable.api,
|
|
207
|
+
alert: alertToFire,
|
|
208
|
+
};
|
|
200
209
|
this.adaptable.api.eventApi.emit('AlertFired', alertFiredInfo);
|
|
201
210
|
}
|
|
202
211
|
displayMessageAlertPopup(alertToDisplayAsPopup) {
|
|
@@ -242,7 +251,7 @@ class AlertApiImpl extends ApiBase_1.ApiBase {
|
|
|
242
251
|
}
|
|
243
252
|
getAlertDescription(alertDefinition, dataChangedInfo) {
|
|
244
253
|
var _a;
|
|
245
|
-
const alertMessageFunction = (_a = this.adaptable.adaptableOptions.
|
|
254
|
+
const alertMessageFunction = (_a = this.adaptable.adaptableOptions.alertOptions) === null || _a === void 0 ? void 0 : _a.alertMessageText;
|
|
246
255
|
if (alertMessageFunction) {
|
|
247
256
|
const returnText = alertMessageFunction(alertDefinition, dataChangedInfo);
|
|
248
257
|
if (returnText) {
|
|
@@ -260,7 +269,7 @@ class AlertApiImpl extends ApiBase_1.ApiBase {
|
|
|
260
269
|
var _a, _b;
|
|
261
270
|
let ruleDescription = alert.Rule.Predicate
|
|
262
271
|
? this.adaptable.api.predicateApi.predicateToString(alert.Rule.Predicate)
|
|
263
|
-
: (_b = (_a = alert.Rule.BooleanExpression) !== null && _a !== void 0 ? _a : alert.Rule.ObservableExpression) !== null && _b !== void 0 ? _b : alert.Rule.
|
|
272
|
+
: (_b = (_a = alert.Rule.BooleanExpression) !== null && _a !== void 0 ? _a : alert.Rule.ObservableExpression) !== null && _b !== void 0 ? _b : alert.Rule.AggregatedBooleanExpression;
|
|
264
273
|
return ruleDescription;
|
|
265
274
|
}
|
|
266
275
|
}
|
|
@@ -12,6 +12,7 @@ import { NotificationsOptions } from '../../AdaptableOptions/NotificationsOption
|
|
|
12
12
|
import { ToolPanelOptions } from '../../AdaptableOptions/ToolPanelOptions';
|
|
13
13
|
import { ModuleParams } from '../../View/Components/SharedProps/ModuleViewPopupProps';
|
|
14
14
|
import { QueryLanguageOptions } from '../../AdaptableOptions/QueryLanguageOptions';
|
|
15
|
+
import { AlertOptions } from '../../AdaptableOptions/AlertOptions';
|
|
15
16
|
export declare abstract class ApiBase {
|
|
16
17
|
protected adaptable: IAdaptable;
|
|
17
18
|
/**
|
|
@@ -46,6 +47,7 @@ export declare abstract class ApiBase {
|
|
|
46
47
|
protected getOptions(): AdaptableOptions;
|
|
47
48
|
protected getContainerOptions(): ContainerOptions;
|
|
48
49
|
protected getNotificationsOptions(): NotificationsOptions;
|
|
50
|
+
protected getAlertOptions(): AlertOptions;
|
|
49
51
|
protected getDashboardOptions(): DashboardOptions;
|
|
50
52
|
protected getEditOptions(): EditOptions;
|
|
51
53
|
protected getExportOptions(): ExportOptions;
|
|
@@ -42,7 +42,6 @@ export declare class ColumnApiImpl extends ApiBase implements ColumnApi {
|
|
|
42
42
|
getColumnFromFriendlyName(columnName: string, logWarning?: boolean): AdaptableColumn;
|
|
43
43
|
getColumnsOfType(dataType: DataType): AdaptableColumn[];
|
|
44
44
|
getNumericColumns(): AdaptableColumn[];
|
|
45
|
-
getNumericArrayColumns(): AdaptableColumn[];
|
|
46
45
|
getStringColumns(): AdaptableColumn[];
|
|
47
46
|
getDateColumns(): AdaptableColumn[];
|
|
48
47
|
getBooleanColumns(): AdaptableColumn[];
|
|
@@ -224,8 +224,6 @@ class ColumnApiImpl extends ApiBase_1.ApiBase {
|
|
|
224
224
|
return this.getDateColumns();
|
|
225
225
|
case Enums_1.DataType.Number:
|
|
226
226
|
return this.getNumericColumns();
|
|
227
|
-
case Enums_1.DataType.NumberArray:
|
|
228
|
-
return this.getNumericArrayColumns();
|
|
229
227
|
case Enums_1.DataType.String:
|
|
230
228
|
return this.getStringColumns();
|
|
231
229
|
default:
|
|
@@ -235,9 +233,6 @@ class ColumnApiImpl extends ApiBase_1.ApiBase {
|
|
|
235
233
|
getNumericColumns() {
|
|
236
234
|
return this.getColumns().filter((c) => c.dataType == Enums_1.DataType.Number);
|
|
237
235
|
}
|
|
238
|
-
getNumericArrayColumns() {
|
|
239
|
-
return this.getColumns().filter((c) => c.dataType == Enums_1.DataType.NumberArray);
|
|
240
|
-
}
|
|
241
236
|
getStringColumns() {
|
|
242
237
|
return this.getColumns().filter((c) => c.dataType == Enums_1.DataType.String);
|
|
243
238
|
}
|
|
@@ -5,7 +5,7 @@ const tslib_1 = require("tslib");
|
|
|
5
5
|
const DashboardRedux = tslib_1.__importStar(require("../../Redux/ActionsReducers/DashboardRedux"));
|
|
6
6
|
const ApiBase_1 = require("./ApiBase");
|
|
7
7
|
const ModuleConstants = tslib_1.__importStar(require("../../Utilities/Constants/ModuleConstants"));
|
|
8
|
-
const isEqual_1 = tslib_1.__importDefault(require("lodash
|
|
8
|
+
const isEqual_1 = tslib_1.__importDefault(require("lodash/isEqual"));
|
|
9
9
|
const ArrayExtensions_1 = tslib_1.__importDefault(require("../../Utilities/Extensions/ArrayExtensions"));
|
|
10
10
|
const Helper_1 = tslib_1.__importDefault(require("../../Utilities/Helpers/Helper"));
|
|
11
11
|
const react_dom_1 = tslib_1.__importDefault(require("react-dom"));
|
|
@@ -45,10 +45,8 @@ class FlashingCellApiImpl extends ApiBase_1.ApiBase {
|
|
|
45
45
|
return this.getFlashingCellDefinitions().filter((fc) => !fc.IsSuspended);
|
|
46
46
|
}
|
|
47
47
|
getFlashingCellFlashTarget(flashingCellDefinition) {
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
: 'row';
|
|
51
|
-
return flashTarget;
|
|
48
|
+
var _a;
|
|
49
|
+
return (_a = flashingCellDefinition.FlashTarget) !== null && _a !== void 0 ? _a : 'cell';
|
|
52
50
|
}
|
|
53
51
|
showFlashingCell(flashingCellToShow) {
|
|
54
52
|
this.addUidToAdaptableObject(flashingCellToShow);
|
|
@@ -13,11 +13,6 @@ export declare class FreeTextColumnApiImpl extends ApiBase implements FreeTextCo
|
|
|
13
13
|
}): FreeTextColumn;
|
|
14
14
|
addEditFreeTextColumnStoredValue(freeTextColumn: FreeTextColumn, storedValue: FreeTextStoredValue): FreeTextColumn;
|
|
15
15
|
addStoredValuesToFreeTextColumn(columnId: string, storedValues: FreeTextStoredValue[], replaceAction: 'All' | 'Conflicting' | 'None'): void;
|
|
16
|
-
createFreeTextColumn({ columnName, columnId, defaultValue, }: {
|
|
17
|
-
columnId: string;
|
|
18
|
-
columnName?: string;
|
|
19
|
-
defaultValue: string;
|
|
20
|
-
}): FreeTextColumn;
|
|
21
16
|
deleteFreeTextColumn(columnId: string): void;
|
|
22
17
|
showFreeTextColumnPopup(): void;
|
|
23
18
|
getFreeTextColumnValueFromRowNode(freeTextColumn: FreeTextColumn, rowNode: RowNode): any;
|
|
@@ -4,7 +4,6 @@ exports.FreeTextColumnApiImpl = void 0;
|
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
const FreeTextColumnRedux = tslib_1.__importStar(require("../../Redux/ActionsReducers/FreeTextColumnRedux"));
|
|
6
6
|
const ApiBase_1 = require("./ApiBase");
|
|
7
|
-
const ObjectFactory_1 = require("../../Utilities/ObjectFactory");
|
|
8
7
|
const ModuleConstants = tslib_1.__importStar(require("../../Utilities/Constants/ModuleConstants"));
|
|
9
8
|
const ArrayExtensions_1 = tslib_1.__importDefault(require("../../Utilities/Extensions/ArrayExtensions"));
|
|
10
9
|
const LoggingHelper_1 = require("../../Utilities/Helpers/LoggingHelper");
|
|
@@ -67,14 +66,6 @@ class FreeTextColumnApiImpl extends ApiBase_1.ApiBase {
|
|
|
67
66
|
this.dispatchAction(FreeTextColumnRedux.FreeTextColumnEdit(freeTextColumn));
|
|
68
67
|
}
|
|
69
68
|
}
|
|
70
|
-
createFreeTextColumn({ columnName, columnId, defaultValue = null, }) {
|
|
71
|
-
let freeTextColumn = ObjectFactory_1.ObjectFactory.CreateEmptyFreeTextColumn(this.adaptable.api.internalApi.getAdaptableOptions().filterOptions
|
|
72
|
-
.enableFilterOnSpecialColumns);
|
|
73
|
-
freeTextColumn.ColumnId = columnId;
|
|
74
|
-
freeTextColumn.FriendlyName = columnName || columnId;
|
|
75
|
-
freeTextColumn.DefaultValue = defaultValue;
|
|
76
|
-
return this.addFreeTextColumn(freeTextColumn);
|
|
77
|
-
}
|
|
78
69
|
deleteFreeTextColumn(columnId) {
|
|
79
70
|
let freeTextColumn = this.getAllFreeTextColumn().find((ftc) => ftc.ColumnId == columnId);
|
|
80
71
|
if (this.checkItemExists(freeTextColumn, columnId, ModuleConstants.FreeTextColumnModuleId)) {
|
|
@@ -7,7 +7,8 @@ import { GridCell } from '../../PredefinedConfig/Selection/GridCell';
|
|
|
7
7
|
import { ColumnSort } from '../../PredefinedConfig/Common/ColumnSort';
|
|
8
8
|
import { DataUpdateConfig } from '../../PredefinedConfig/Common/DataUpdateConfig';
|
|
9
9
|
import { DataChangedInfo, AccessLevel, AdaptableModule } from '../../types';
|
|
10
|
-
import { CellHighlightInfo
|
|
10
|
+
import { CellHighlightInfo } from '../../PredefinedConfig/Common/CellHighlightInfo';
|
|
11
|
+
import { RowHighlightInfo } from '../../PredefinedConfig/Common/RowHighlightInfo';
|
|
11
12
|
import { GridOptions, RowNode } from '@ag-grid-community/all-modules';
|
|
12
13
|
import { GridCellRange } from '../../PredefinedConfig/Selection/GridCellRange';
|
|
13
14
|
export declare class GridApiImpl extends ApiBase implements GridApi {
|
|
@@ -16,10 +17,10 @@ export declare class GridApiImpl extends ApiBase implements GridApi {
|
|
|
16
17
|
getGridData(): any[];
|
|
17
18
|
getFilteredData(): any[];
|
|
18
19
|
loadGridData(dataSource: any): void;
|
|
19
|
-
updateGridData(dataRows: any[], dataUpdateConfig?: DataUpdateConfig): Promise<
|
|
20
|
-
addGridData(dataRows: any[], dataUpdateConfig?: DataUpdateConfig): Promise<
|
|
20
|
+
updateGridData(dataRows: any[], dataUpdateConfig?: DataUpdateConfig): Promise<RowNode[]>;
|
|
21
|
+
addGridData(dataRows: any[], dataUpdateConfig?: DataUpdateConfig): Promise<RowNode[]>;
|
|
21
22
|
undoCellEdit(dataChangedInfo: DataChangedInfo): boolean;
|
|
22
|
-
deleteGridData(dataRows: any[], dataUpdateConfig?: DataUpdateConfig): Promise<
|
|
23
|
+
deleteGridData(dataRows: any[], dataUpdateConfig?: DataUpdateConfig): Promise<RowNode[]>;
|
|
23
24
|
setCellValue(columnId: string, newValue: any, primaryKeyValue: any): void;
|
|
24
25
|
setCellsValue(gridCells: {
|
|
25
26
|
columnId: any;
|
|
@@ -25,10 +25,12 @@ class GridApiImpl extends ApiBase_1.ApiBase {
|
|
|
25
25
|
async updateGridData(dataRows, dataUpdateConfig) {
|
|
26
26
|
const rowNodes = await this.adaptable.updateRows(dataRows, dataUpdateConfig);
|
|
27
27
|
this.fireGridDataChangedEvent(dataRows, rowNodes, 'Edit');
|
|
28
|
+
return rowNodes;
|
|
28
29
|
}
|
|
29
30
|
async addGridData(dataRows, dataUpdateConfig) {
|
|
30
31
|
const rowNodes = await this.adaptable.addRows(dataRows, dataUpdateConfig);
|
|
31
32
|
this.fireGridDataChangedEvent(dataRows, rowNodes, 'Add');
|
|
33
|
+
return rowNodes;
|
|
32
34
|
}
|
|
33
35
|
undoCellEdit(dataChangedInfo) {
|
|
34
36
|
// for the reason of this hacky solution see the comments in DataService
|
|
@@ -40,7 +42,9 @@ class GridApiImpl extends ApiBase_1.ApiBase {
|
|
|
40
42
|
if (this.checkArrayExists(dataRows)) {
|
|
41
43
|
const rowNodes = await this.adaptable.deleteRows(dataRows, dataUpdateConfig);
|
|
42
44
|
this.fireGridDataChangedEvent(dataRows, rowNodes, 'Delete');
|
|
45
|
+
return rowNodes;
|
|
43
46
|
}
|
|
47
|
+
return [];
|
|
44
48
|
}
|
|
45
49
|
setCellValue(columnId, newValue, primaryKeyValue) {
|
|
46
50
|
const abColumn = this.adaptable.api.columnApi.getColumnFromId(columnId);
|
|
@@ -25,7 +25,7 @@ class InternalApiImpl extends ApiBase_1.ApiBase {
|
|
|
25
25
|
let adaptableAlertForm;
|
|
26
26
|
let isActionForm = false;
|
|
27
27
|
if (typeof alertForm === 'string') {
|
|
28
|
-
const alertForms = this.
|
|
28
|
+
const alertForms = this.getAlertOptions().alertForms || [];
|
|
29
29
|
adaptableAlertForm = (_a = alertForms.find((f) => f.name === alertForm)) === null || _a === void 0 ? void 0 : _a.form;
|
|
30
30
|
}
|
|
31
31
|
else {
|
|
@@ -68,7 +68,7 @@ class InternalApiImpl extends ApiBase_1.ApiBase {
|
|
|
68
68
|
const forPrimaryKey = (_a = AdaptableFlashingAlerts[primaryKey]) !== null && _a !== void 0 ? _a : {};
|
|
69
69
|
const toFlashingAlert = (uuid) => { var _a; return uuid ? (_a = AdaptableFlashingAlertsMap[uuid]) !== null && _a !== void 0 ? _a : null : null; };
|
|
70
70
|
if (!columnId) {
|
|
71
|
-
return toFlashingAlert(forPrimaryKey[SystemRedux_1.
|
|
71
|
+
return toFlashingAlert(forPrimaryKey[SystemRedux_1.FLASHING_CELL_ROW_KEY]);
|
|
72
72
|
}
|
|
73
73
|
return toFlashingAlert(forPrimaryKey[columnId]);
|
|
74
74
|
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { ApiBase } from './ApiBase';
|
|
2
2
|
import { LayoutApi } from '../LayoutApi';
|
|
3
3
|
import { LayoutState, Layout } from '../../PredefinedConfig/LayoutState';
|
|
4
|
+
import { AdaptableColumn } from '../../PredefinedConfig/Common/AdaptableColumn';
|
|
4
5
|
export declare class LayoutApiImpl extends ApiBase implements LayoutApi {
|
|
5
6
|
getLayoutState(): LayoutState;
|
|
6
7
|
shouldAutoSaveLayout: (layout?: Layout) => boolean;
|
|
@@ -27,6 +28,7 @@ export declare class LayoutApiImpl extends ApiBase implements LayoutApi {
|
|
|
27
28
|
getLayoutDescription(layout: Layout): string;
|
|
28
29
|
private getColumnSort;
|
|
29
30
|
createDefaultLayoutIfNeeded(): Layout | null;
|
|
31
|
+
showChangeColumnCaption(column: AdaptableColumn): void;
|
|
30
32
|
showLayoutPopup(): void;
|
|
31
33
|
isCurrentLayoutReadOnly(): boolean;
|
|
32
34
|
}
|
|
@@ -10,10 +10,12 @@ const ObjectFactory_1 = tslib_1.__importDefault(require("../../Utilities/ObjectF
|
|
|
10
10
|
const LoggingHelper_1 = require("../../Utilities/Helpers/LoggingHelper");
|
|
11
11
|
const Helper_1 = tslib_1.__importDefault(require("../../Utilities/Helpers/Helper"));
|
|
12
12
|
const Uuid_1 = require("../../PredefinedConfig/Uuid");
|
|
13
|
-
const isEqual_1 = tslib_1.__importDefault(require("lodash
|
|
13
|
+
const isEqual_1 = tslib_1.__importDefault(require("lodash/isEqual"));
|
|
14
14
|
const GeneralConstants_1 = require("../../Utilities/Constants/GeneralConstants");
|
|
15
15
|
const Enums_1 = require("../../PredefinedConfig/Common/Enums");
|
|
16
16
|
const ArrayExtensions_1 = require("../../Utilities/Extensions/ArrayExtensions");
|
|
17
|
+
const PopupRedux_1 = require("../../Redux/ActionsReducers/PopupRedux");
|
|
18
|
+
const LayoutRedux_1 = require("../../Redux/ActionsReducers/LayoutRedux");
|
|
17
19
|
class LayoutApiImpl extends ApiBase_1.ApiBase {
|
|
18
20
|
constructor() {
|
|
19
21
|
super(...arguments);
|
|
@@ -229,6 +231,15 @@ class LayoutApiImpl extends ApiBase_1.ApiBase {
|
|
|
229
231
|
}
|
|
230
232
|
}
|
|
231
233
|
}
|
|
234
|
+
showChangeColumnCaption(column) {
|
|
235
|
+
this.dispatchAction(PopupRedux_1.PopupShowPrompt({
|
|
236
|
+
Header: `Change caption for '${column.friendlyName}'`,
|
|
237
|
+
Msg: '',
|
|
238
|
+
DefaultValue: column.friendlyName,
|
|
239
|
+
ConfirmActionCreator: (inputText) => inputText !== column.friendlyName &&
|
|
240
|
+
LayoutRedux_1.LayoutSetColumnCaption(this.getCurrentLayoutName(), column.columnId, inputText),
|
|
241
|
+
}));
|
|
242
|
+
}
|
|
232
243
|
showLayoutPopup() {
|
|
233
244
|
this.showModulePopup(ModuleConstants.LayoutModuleId);
|
|
234
245
|
}
|
|
@@ -25,7 +25,10 @@ class QueryApiImpl extends ApiBase_1.ApiBase {
|
|
|
25
25
|
// check that there is no other existing named query with the same name
|
|
26
26
|
const duplicate = this.getAllNamedQuery().find((q) => q.Name === namedQuery.Name && q.Uuid !== namedQuery.Uuid);
|
|
27
27
|
if (duplicate) {
|
|
28
|
-
return {
|
|
28
|
+
return {
|
|
29
|
+
valid: false,
|
|
30
|
+
message: 'A Named Query already exists with that name',
|
|
31
|
+
};
|
|
29
32
|
}
|
|
30
33
|
return { valid: true, message: '' };
|
|
31
34
|
}
|
|
@@ -5,7 +5,7 @@ import { ExpressionFunctionMap } from '../../types';
|
|
|
5
5
|
export declare class QueryLanguageApiImpl extends ApiBase implements QueryLanguageApi {
|
|
6
6
|
isValidBooleanExpression(query: string, module: AdaptableModule, validationErrorMessage?: string): boolean;
|
|
7
7
|
isValidObservableExpression(expression: string, module: AdaptableModule, validationErrorMessage?: string): boolean;
|
|
8
|
-
|
|
8
|
+
isValidAggregatedBooleanExpression(expression: string, module: AdaptableModule, validationErrorMessage?: string): boolean;
|
|
9
9
|
getASTForExpression(query: string): any;
|
|
10
10
|
getColumnsFromExpression(expression: string): string[];
|
|
11
11
|
getQueryableColumnIds(): string[] | undefined;
|
|
@@ -8,7 +8,7 @@ const ArrayExtensions_1 = tslib_1.__importDefault(require("../../Utilities/Exten
|
|
|
8
8
|
const LoggingHelper_1 = require("../../Utilities/Helpers/LoggingHelper");
|
|
9
9
|
class QueryLanguageApiImpl extends ApiBase_1.ApiBase {
|
|
10
10
|
isValidBooleanExpression(query, module, validationErrorMessage) {
|
|
11
|
-
const { isValid, errorMessage
|
|
11
|
+
const { isValid, errorMessage } = this.adaptable.api.internalApi
|
|
12
12
|
.getQueryLanguageService()
|
|
13
13
|
.validateBoolean(query, module, { force: true });
|
|
14
14
|
if (!isValid && validationErrorMessage) {
|
|
@@ -17,7 +17,7 @@ class QueryLanguageApiImpl extends ApiBase_1.ApiBase {
|
|
|
17
17
|
return isValid;
|
|
18
18
|
}
|
|
19
19
|
isValidObservableExpression(expression, module, validationErrorMessage) {
|
|
20
|
-
const { isValid, errorMessage
|
|
20
|
+
const { isValid, errorMessage } = this.adaptable.api.internalApi
|
|
21
21
|
.getQueryLanguageService()
|
|
22
22
|
.validateObservable(expression, module);
|
|
23
23
|
if (!isValid && validationErrorMessage) {
|
|
@@ -25,10 +25,10 @@ class QueryLanguageApiImpl extends ApiBase_1.ApiBase {
|
|
|
25
25
|
}
|
|
26
26
|
return isValid;
|
|
27
27
|
}
|
|
28
|
-
|
|
29
|
-
const { isValid, errorMessage
|
|
28
|
+
isValidAggregatedBooleanExpression(expression, module, validationErrorMessage) {
|
|
29
|
+
const { isValid, errorMessage } = this.adaptable.api.internalApi
|
|
30
30
|
.getQueryLanguageService()
|
|
31
|
-
.
|
|
31
|
+
.validateAggregatedBoolean(expression, module);
|
|
32
32
|
if (!isValid && validationErrorMessage) {
|
|
33
33
|
LoggingHelper_1.LogAdaptableWarning(`${validationErrorMessage} :: ${errorMessage}`);
|
|
34
34
|
}
|
|
@@ -51,8 +51,7 @@ class QueryLanguageApiImpl extends ApiBase_1.ApiBase {
|
|
|
51
51
|
}
|
|
52
52
|
}
|
|
53
53
|
getQueryableColumnIds() {
|
|
54
|
-
let queryableColumns = this.getQueryLanguageOptions()
|
|
55
|
-
.queryableColumns;
|
|
54
|
+
let queryableColumns = this.getQueryLanguageOptions().queryableColumns;
|
|
56
55
|
if (!queryableColumns) {
|
|
57
56
|
return undefined;
|
|
58
57
|
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { SettingsPanelApi } from '../SettingsPanelApi';
|
|
2
|
+
import { ApiBase } from './ApiBase';
|
|
3
|
+
import { AdaptableModule } from '../../../types';
|
|
4
|
+
export declare class SettingsPanelApiImpl extends ApiBase implements SettingsPanelApi {
|
|
5
|
+
showSettingsPanel(moduleName?: AdaptableModule): void;
|
|
6
|
+
showCustomSettingsPanel(name: string): void;
|
|
7
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SettingsPanelApiImpl = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const ApiBase_1 = require("./ApiBase");
|
|
6
|
+
const PopupRedux = tslib_1.__importStar(require("../../Redux/ActionsReducers/PopupRedux"));
|
|
7
|
+
class SettingsPanelApiImpl extends ApiBase_1.ApiBase {
|
|
8
|
+
showSettingsPanel(moduleName) {
|
|
9
|
+
this.dispatchAction(PopupRedux.PopupShowScreen(moduleName));
|
|
10
|
+
}
|
|
11
|
+
showCustomSettingsPanel(name) {
|
|
12
|
+
this.dispatchAction(PopupRedux.PopupShowScreen('CustomSettingsPanelModule', name));
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
exports.SettingsPanelApiImpl = SettingsPanelApiImpl;
|
package/src/Api/LayoutApi.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { AdaptableColumn } from '../../types';
|
|
1
2
|
import { LayoutState, Layout } from '../PredefinedConfig/LayoutState';
|
|
2
3
|
/**
|
|
3
4
|
* Provides run-time access to the Layout Module and associated state
|
|
@@ -128,4 +129,10 @@ export interface LayoutApi {
|
|
|
128
129
|
*/
|
|
129
130
|
setColumnCaption(columnId: string, caption: string): void;
|
|
130
131
|
isCurrentLayoutReadOnly(): boolean;
|
|
132
|
+
/**
|
|
133
|
+
* Opens change column caption popup
|
|
134
|
+
*
|
|
135
|
+
* @param column AdaptableColumn
|
|
136
|
+
*/
|
|
137
|
+
showChangeColumnCaption(column: AdaptableColumn): void;
|
|
131
138
|
}
|
package/src/Api/OpenFinApi.d.ts
CHANGED
|
@@ -2,6 +2,7 @@ import { OpenFinState, OpenFinReport, OpenFinSchedule } from '../PredefinedConfi
|
|
|
2
2
|
import { AdaptableAlert } from '../PredefinedConfig/Common/AdaptableAlert';
|
|
3
3
|
import { OpenFinPluginOptions } from '../AdaptableOptions/OpenFinPluginOptions';
|
|
4
4
|
import { NotificationsOptions } from '../AdaptableOptions/NotificationsOptions';
|
|
5
|
+
import { AlertOptions } from '../AdaptableOptions/AlertOptions';
|
|
5
6
|
/**
|
|
6
7
|
* Provides run-time access to the OpenFin Plugin
|
|
7
8
|
*/
|
|
@@ -44,6 +45,10 @@ export interface OpenFinApi {
|
|
|
44
45
|
* Gets the Notification section from Adaptable Options
|
|
45
46
|
*/
|
|
46
47
|
getNotificationsOptions(): NotificationsOptions;
|
|
48
|
+
/**
|
|
49
|
+
* Gets the Alert section from Adaptable Options
|
|
50
|
+
*/
|
|
51
|
+
getAlertOptions(): AlertOptions;
|
|
47
52
|
/**
|
|
48
53
|
* Retrieves all Schedules that send data to Excel via OpenFin
|
|
49
54
|
*/
|
package/src/Api/PluginsApi.d.ts
CHANGED
|
@@ -7,12 +7,41 @@ import { FinanceApi } from './FinanceApi';
|
|
|
7
7
|
* API methods dealing with AdapTable plugins
|
|
8
8
|
*/
|
|
9
9
|
export interface PluginsApi {
|
|
10
|
+
/**
|
|
11
|
+
* Retrieves the Plugin State (internal only)
|
|
12
|
+
*/
|
|
10
13
|
getPluginsState(): PluginsState;
|
|
14
|
+
/**
|
|
15
|
+
* Gets the State for a given Plugin
|
|
16
|
+
* @param pluginId plugin state to retrieve
|
|
17
|
+
*/
|
|
11
18
|
getPluginState(pluginId: string): any;
|
|
19
|
+
/**
|
|
20
|
+
* Registers a Plugin (internal method)
|
|
21
|
+
* @param pluginId Plugin to register
|
|
22
|
+
* @param initialPluginState any state the Plugin requires
|
|
23
|
+
*/
|
|
12
24
|
registerPlugin(pluginId: string, initialPluginState: any): void;
|
|
25
|
+
/**
|
|
26
|
+
* Sets the initial state for a given plugin (internal method)
|
|
27
|
+
* @param pluginId Plugin to set state for
|
|
28
|
+
* @param pluginState State to set
|
|
29
|
+
*/
|
|
13
30
|
setPluginState(pluginId: string, pluginState: any): void;
|
|
31
|
+
/**
|
|
32
|
+
* Returns ipushpull API class in Adaptable API
|
|
33
|
+
*/
|
|
14
34
|
getipushpullPluginApi(): IPushPullApi;
|
|
35
|
+
/**
|
|
36
|
+
* Returns Glue42 API class in Adaptable API
|
|
37
|
+
*/
|
|
15
38
|
getGlue42PluginApi(): Glue42Api;
|
|
39
|
+
/**
|
|
40
|
+
* Returns OpenFin API class in Adaptable API
|
|
41
|
+
*/
|
|
16
42
|
getOpenFinPluginApi(): OpenFinApi;
|
|
43
|
+
/**
|
|
44
|
+
* Returns Finance API class in Adaptable API
|
|
45
|
+
*/
|
|
17
46
|
getFinancePluginApi(): FinanceApi;
|
|
18
47
|
}
|
|
@@ -13,21 +13,21 @@ export interface QueryLanguageApi {
|
|
|
13
13
|
isValidBooleanExpression(query: string, module: AdaptableModule, validationErrorMessage?: string): boolean;
|
|
14
14
|
/**
|
|
15
15
|
* Whether the given ObservableExpression is valid
|
|
16
|
-
* @param
|
|
17
|
-
* @param module module specific query
|
|
18
|
-
* @param validationErrorMessage optional validation error message; if provided, the error will be logged
|
|
16
|
+
* @param expression - ObservableExpression to check
|
|
17
|
+
* @param module - module specific query
|
|
18
|
+
* @param validationErrorMessage - optional validation error message; if provided, the error will be logged
|
|
19
19
|
*/
|
|
20
20
|
isValidObservableExpression(expression: string, module: AdaptableModule, validationErrorMessage?: string): boolean;
|
|
21
21
|
/**
|
|
22
|
-
* Whether the given
|
|
23
|
-
* @param
|
|
24
|
-
* @param module module specific query
|
|
25
|
-
* @param validationErrorMessage optional validation error message; if provided, the error will be logged
|
|
22
|
+
* Whether the given AggregatedBooleanExpression is valid
|
|
23
|
+
* @param expression - AggregatedBooleanExpression to check
|
|
24
|
+
* @param module - module specific query
|
|
25
|
+
* @param validationErrorMessage - optional validation error message; if provided, the error will be logged
|
|
26
26
|
*/
|
|
27
|
-
|
|
27
|
+
isValidAggregatedBooleanExpression(expression: string, module: AdaptableModule, validationErrorMessage?: string): boolean;
|
|
28
28
|
/**
|
|
29
|
-
* Returns all Columns referenced in a
|
|
30
|
-
* @param
|
|
29
|
+
* Returns all Columns referenced in a QueryExpression
|
|
30
|
+
* @param expression - expression to check
|
|
31
31
|
*/
|
|
32
32
|
getColumnsFromExpression(expression: string): string[];
|
|
33
33
|
/**
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { AdaptableModule } from '../../types';
|
|
2
|
+
/**
|
|
3
|
+
* Provides run-time access to the Settings Panel
|
|
4
|
+
**/
|
|
5
|
+
export interface SettingsPanelApi {
|
|
6
|
+
/**
|
|
7
|
+
* Opens settings panel to specified module,
|
|
8
|
+
* when not specified it opens the first available module
|
|
9
|
+
* @param moduleName module name
|
|
10
|
+
*/
|
|
11
|
+
showSettingsPanel(moduleName?: AdaptableModule): void;
|
|
12
|
+
/**
|
|
13
|
+
* Opens a the settings panel to the custom module
|
|
14
|
+
* @param name name of the custom settings panel
|
|
15
|
+
*/
|
|
16
|
+
showCustomSettingsPanel(name: string): void;
|
|
17
|
+
}
|
|
@@ -25,13 +25,16 @@ export interface UserInterfaceApi {
|
|
|
25
25
|
*/
|
|
26
26
|
getPermittedValuesForColumn(column: AdaptableColumn): any[];
|
|
27
27
|
/**
|
|
28
|
-
* Retrieves Permitted values for filtering by column values in Floating Filter and
|
|
28
|
+
* Retrieves Permitted values for filtering by column values in Floating Filter and Quick Filter Bar
|
|
29
29
|
*/
|
|
30
30
|
getFilterPermittedValuesForColumn(column: AdaptableColumn): FilterPermittedValues | undefined;
|
|
31
31
|
/**
|
|
32
|
-
* Retrieves Permitted values for Custom
|
|
32
|
+
* Retrieves Permitted values for Custom Sort Module
|
|
33
33
|
*/
|
|
34
34
|
getCustomSortPermittedValuesForColumn(column: AdaptableColumn): CustomSortPermittedValues | undefined;
|
|
35
|
+
/**
|
|
36
|
+
* Retrieves Permitted values for Bulk Update Module
|
|
37
|
+
*/
|
|
35
38
|
getBulkUpdatePermittedValuesForColumn(column: AdaptableColumn): BulkUpdatePermittedValues | undefined;
|
|
36
39
|
/**
|
|
37
40
|
* Retrieves `editLookUpItems` property from User Interface Options
|
|
@@ -8,19 +8,17 @@ import { AdaptableButton, ButtonContext } from './Common/AdaptableButton';
|
|
|
8
8
|
import { SuspendableObject } from './Common/SuspendableObject';
|
|
9
9
|
import { AdaptableStyle } from './Common/AdaptableStyle';
|
|
10
10
|
import { XOR } from '../Utilities/Extensions/TypeExtensions';
|
|
11
|
-
import {
|
|
11
|
+
import { AdaptableAggregatedBooleanQuery, AdaptableBooleanQuery, AdaptableObservableQuery } from './Common/AdaptableQuery';
|
|
12
12
|
import { ButtonStyle } from './Common/ButtonStyle';
|
|
13
|
-
import { AlertButtonContext } from '../
|
|
13
|
+
import { AlertButtonContext } from '../types';
|
|
14
14
|
/**
|
|
15
15
|
* Predefined Configuration for Alert Module
|
|
16
16
|
*/
|
|
17
17
|
export interface AlertState extends ConfigState {
|
|
18
18
|
/**
|
|
19
19
|
* Alert Definitions - will trigger Alerts when rule is met
|
|
20
|
-
* @defaultValue null
|
|
21
20
|
*/
|
|
22
21
|
AlertDefinitions?: AlertDefinition[];
|
|
23
|
-
FlashingAlertDefinitions?: any[];
|
|
24
22
|
}
|
|
25
23
|
/**
|
|
26
24
|
* The Alert Definition object used in the Alert function
|
|
@@ -62,7 +60,7 @@ export interface AlertDefinitionPredicate extends AdaptablePredicate {
|
|
|
62
60
|
*/
|
|
63
61
|
export declare type AlertRule = XOR<{
|
|
64
62
|
Predicate: AlertDefinitionPredicate;
|
|
65
|
-
}, XOR<AdaptableBooleanQuery, XOR<AdaptableObservableQuery,
|
|
63
|
+
}, XOR<AdaptableBooleanQuery, XOR<AdaptableObservableQuery, AdaptableAggregatedBooleanQuery>>>;
|
|
66
64
|
export declare type AdaptableAlertAction = 'highlight-cell' | 'jump-to-cell' | 'jump-to-row' | 'jump-to-column' | 'suspend' | 'undo';
|
|
67
65
|
/**
|
|
68
66
|
* Defines a button that appears in an Alert Form
|
|
@@ -116,7 +114,7 @@ export interface AlertProperties {
|
|
|
116
114
|
LogToConsole?: boolean;
|
|
117
115
|
/**
|
|
118
116
|
* Automatically prevent any cell edit which triggered the Alert (i.e. validation)
|
|
119
|
-
* @
|
|
117
|
+
* @defaultValue false
|
|
120
118
|
*/
|
|
121
119
|
PreventEdit?: boolean;
|
|
122
120
|
}
|