@adaptabletools/adaptable 11.1.14 → 11.2.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 +2 -0
- package/bundle.cjs.js +98 -98
- package/index.css +3 -0
- package/package.json +2 -2
- package/publishTimestamp.d.ts +1 -1
- package/publishTimestamp.js +1 -1
- package/src/AdaptableOptions/AlertOptions.d.ts +8 -2
- package/src/AdaptableOptions/DashboardOptions.d.ts +4 -3
- package/src/AdaptableOptions/ExportOptions.d.ts +2 -2
- package/src/AdaptableOptions/FilterOptions.d.ts +5 -4
- package/src/AdaptableOptions/LayoutOptions.d.ts +56 -10
- package/src/AdaptableOptions/ToolPanelOptions.d.ts +4 -3
- package/src/AdaptableOptions/UserInterfaceOptions.d.ts +18 -16
- package/src/Api/AdaptableApi.d.ts +10 -0
- package/src/Api/AlertApi.d.ts +3 -1
- package/src/Api/ConditionalStyleApi.d.ts +3 -1
- package/src/Api/ConfigApi.d.ts +3 -3
- package/src/Api/CustomSortApi.d.ts +3 -1
- package/src/Api/EventApi.d.ts +1 -0
- package/src/Api/Events/LayoutChanged.d.ts +1 -1
- package/src/Api/ExportApi.d.ts +16 -0
- package/src/Api/FinanceApi.d.ts +104 -3
- package/src/Api/FlashingCellApi.d.ts +3 -1
- package/src/Api/FormatColumnApi.d.ts +3 -1
- package/src/Api/Implementation/AdaptableApiImpl.d.ts +6 -0
- package/src/Api/Implementation/AdaptableApiImpl.js +53 -0
- package/src/Api/Implementation/AlertApiImpl.d.ts +3 -1
- package/src/Api/Implementation/AlertApiImpl.js +7 -6
- package/src/Api/Implementation/ApiBase.d.ts +1 -1
- package/src/Api/Implementation/ApiBase.js +5 -2
- package/src/Api/Implementation/ConditionalStyleApiImpl.d.ts +3 -1
- package/src/Api/Implementation/ConditionalStyleApiImpl.js +5 -4
- package/src/Api/Implementation/ConfigApiImpl.js +5 -1
- package/src/Api/Implementation/CustomSortApiImpl.d.ts +3 -1
- package/src/Api/Implementation/CustomSortApiImpl.js +6 -5
- package/src/Api/Implementation/EventApiImpl.d.ts +1 -0
- package/src/Api/Implementation/EventApiImpl.js +3 -0
- package/src/Api/Implementation/ExportApiImpl.d.ts +3 -0
- package/src/Api/Implementation/ExportApiImpl.js +10 -0
- package/src/Api/Implementation/FlashingCellApiImpl.d.ts +3 -1
- package/src/Api/Implementation/FlashingCellApiImpl.js +8 -6
- package/src/Api/Implementation/FormatColumnApiImpl.d.ts +3 -1
- package/src/Api/Implementation/FormatColumnApiImpl.js +7 -6
- package/src/Api/Implementation/InternalApiImpl.d.ts +14 -5
- package/src/Api/Implementation/InternalApiImpl.js +75 -3
- package/src/Api/Implementation/PlusMinusApiImpl.d.ts +3 -1
- package/src/Api/Implementation/PlusMinusApiImpl.js +6 -8
- package/src/Api/Implementation/ScheduleApiImpl.d.ts +17 -6
- package/src/Api/Implementation/ScheduleApiImpl.js +25 -12
- package/src/Api/Implementation/ShortcutApiImpl.d.ts +3 -1
- package/src/Api/Implementation/ShortcutApiImpl.js +5 -4
- package/src/Api/Implementation/ToolPanelApiImpl.d.ts +1 -2
- package/src/Api/Implementation/ToolPanelApiImpl.js +2 -2
- package/src/Api/Implementation/UserInterfaceApiImpl.js +2 -2
- package/src/Api/InternalApi.d.ts +14 -7
- package/src/Api/LayoutApi.d.ts +4 -6
- package/src/Api/PlusMinusApi.d.ts +3 -1
- package/src/Api/ScheduleApi.d.ts +20 -6
- package/src/Api/ShortcutApi.d.ts +3 -1
- package/src/Api/ToolPanelApi.d.ts +1 -2
- package/src/PredefinedConfig/AlertState.d.ts +3 -3
- package/src/PredefinedConfig/Common/AdaptableButton.d.ts +2 -5
- package/src/PredefinedConfig/Common/AdaptableComparerFunction.d.ts +2 -1
- package/src/PredefinedConfig/Common/AdaptableForm.d.ts +4 -3
- package/src/PredefinedConfig/Common/AdaptableObject.d.ts +18 -1
- package/src/PredefinedConfig/Common/AdaptablePredicate.js +9 -0
- package/src/PredefinedConfig/Common/BaseContext.d.ts +10 -0
- package/src/PredefinedConfig/Common/BaseContext.js +2 -0
- package/src/PredefinedConfig/Common/CellSummary.d.ts +3 -3
- package/src/PredefinedConfig/Common/FDC3Context.d.ts +9 -9
- package/src/PredefinedConfig/Common/Menu.d.ts +4 -13
- package/src/PredefinedConfig/Common/SpecialColumnSettings.d.ts +4 -0
- package/src/PredefinedConfig/DataSourceState.d.ts +2 -2
- package/src/PredefinedConfig/FilterState.d.ts +1 -1
- package/src/PredefinedConfig/SystemState.d.ts +1 -0
- package/src/PredefinedConfig/Uuid.js +1 -0
- package/src/Redux/ActionsReducers/PopupRedux.d.ts +5 -5
- package/src/Redux/ActionsReducers/SystemRedux.d.ts +5 -0
- package/src/Redux/ActionsReducers/SystemRedux.js +11 -1
- package/src/Redux/Store/AdaptableStore.d.ts +1 -0
- package/src/Redux/Store/AdaptableStore.js +6 -1
- package/src/Redux/Store/Interface/IAdaptableStore.d.ts +1 -0
- package/src/Strategy/AdaptableModuleBase.d.ts +5 -0
- package/src/Strategy/AdaptableModuleBase.js +9 -0
- package/src/Strategy/AlertModule.d.ts +4 -1
- package/src/Strategy/AlertModule.js +12 -4
- package/src/Strategy/CalculatedColumnModule.d.ts +3 -17
- package/src/Strategy/CalculatedColumnModule.js +2 -0
- package/src/Strategy/ConditionalStyleModule.d.ts +4 -1
- package/src/Strategy/ConditionalStyleModule.js +12 -4
- package/src/Strategy/CustomSortModule.d.ts +4 -1
- package/src/Strategy/CustomSortModule.js +10 -3
- package/src/Strategy/DataSourceModule.js +2 -0
- package/src/Strategy/ExportModule.d.ts +5 -3
- package/src/Strategy/ExportModule.js +10 -0
- package/src/Strategy/FlashingCellModule.d.ts +4 -1
- package/src/Strategy/FlashingCellModule.js +10 -5
- package/src/Strategy/FormatColumnModule.d.ts +4 -1
- package/src/Strategy/FormatColumnModule.js +10 -3
- package/src/Strategy/FreeTextColumnModule.js +2 -0
- package/src/Strategy/Interface/IModule.d.ts +6 -3
- package/src/Strategy/Interface/IScheduleModule.d.ts +1 -1
- package/src/Strategy/LayoutModule.d.ts +2 -1
- package/src/Strategy/LayoutModule.js +35 -2
- package/src/Strategy/PlusMinusModule.d.ts +4 -1
- package/src/Strategy/PlusMinusModule.js +15 -7
- package/src/Strategy/QueryModule.d.ts +2 -8
- package/src/Strategy/QueryModule.js +2 -0
- package/src/Strategy/ScheduleModule.d.ts +8 -4
- package/src/Strategy/ScheduleModule.js +16 -9
- package/src/Strategy/ShortcutModule.d.ts +4 -1
- package/src/Strategy/ShortcutModule.js +14 -4
- package/src/Strategy/StatusBarModule.d.ts +2 -1
- package/src/Strategy/StatusBarModule.js +2 -3
- package/src/Strategy/Utilities/getAlertBehaviourViewItems.d.ts +2 -2
- package/src/Strategy/Utilities/getAlertBehaviourViewItems.js +2 -2
- package/src/Strategy/Utilities/getObjectTagsViewItems.d.ts +4 -0
- package/src/Strategy/Utilities/getObjectTagsViewItems.js +13 -0
- package/src/Utilities/Defaults/DefaultAdaptableOptions.js +2 -1
- package/src/Utilities/Emitter.d.ts +1 -0
- package/src/Utilities/Emitter.js +9 -0
- package/src/Utilities/Extensions/TypeExtensions.d.ts +2 -0
- package/src/Utilities/Interface/MessagePopups.d.ts +3 -3
- package/src/Utilities/ObjectFactory.d.ts +2 -2
- package/src/Utilities/Services/AlertService.js +1 -1
- package/src/Utilities/Services/DataService.js +1 -1
- package/src/Utilities/Services/Interface/IModuleService.d.ts +1 -1
- package/src/Utilities/Services/ModuleService.d.ts +1 -1
- package/src/Utilities/Services/ModuleService.js +1 -0
- package/src/View/Alert/AlertStatusSubPanel.js +2 -1
- package/src/View/Alert/Wizard/AlertWizard.js +9 -0
- package/src/View/CalculatedColumn/Wizard/CalculatedColumnSettingsWizardSection.js +9 -4
- package/src/View/CalculatedColumn/Wizard/CalculatedColumnWizard.js +9 -0
- package/src/View/ColorPicker.d.ts +1 -1
- package/src/View/Components/AdaptableDateInput/index.d.ts +1 -1
- package/src/View/Components/AdaptableInput/index.d.ts +1 -1
- package/src/View/Components/AdaptableObjectList/AdaptableObjectList.js +1 -0
- package/src/View/Components/Buttons/ButtonDelete.d.ts +1 -1
- package/src/View/Components/FilterForm/FilterForm.js +1 -1
- package/src/View/Components/FilterForm/QuickFilterForm.js +11 -7
- package/src/View/Components/FilterForm/getDefaultColumnFilterPredicate.d.ts +1 -1
- package/src/View/Components/Forms/AdaptableFormControlTextClear.d.ts +1 -1
- package/src/View/Components/Panels/PanelWithImage.d.ts +3 -3
- package/src/View/Components/Popups/AdaptablePopup/AdaptablePopupModuleView.js +22 -0
- package/src/View/Components/Popups/AdaptableToaster.js +3 -1
- package/src/View/Components/Popups/FormPopups/FormPopups.d.ts +3 -3
- package/src/View/Components/TagValueSelector/index.d.ts +13 -0
- package/src/View/Components/TagValueSelector/index.js +22 -0
- package/src/View/Components/ToolPanel/AdaptableToolPanel.js +2 -2
- package/src/View/ConditionalStyle/Wizard/ConditionalStyleWizard.js +9 -0
- package/src/View/CustomSort/Wizard/CustomSortWizard.js +9 -0
- package/src/View/DataSource/Wizard/DataSourceSettingsWizard.js +1 -1
- package/src/View/DataSource/Wizard/DataSourceWizard.js +10 -0
- package/src/View/Export/ExportSelector.d.ts +4 -0
- package/src/View/Export/ExportSelector.js +75 -0
- package/src/View/Export/ExportViewPanel.js +6 -7
- package/src/View/Export/ReportExportDropdown.d.ts +2 -5
- package/src/View/Export/Wizard/NewReportWizard.js +9 -0
- package/src/View/Export/constants.d.ts +2 -0
- package/src/View/Export/constants.js +5 -0
- package/src/View/FlashingCell/Wizard/FlashingCellWizard.js +9 -0
- package/src/View/FormatColumn/Wizard/FormatColumnWizard.js +9 -0
- package/src/View/FreeTextColumn/Wizard/FreeTextColumnWizard.js +9 -0
- package/src/View/GridInfo/GridOptionsComponent.d.ts +0 -1
- package/src/View/GridInfo/GridOptionsComponent.js +0 -1
- package/src/View/Layout/LayoutCloneButton.d.ts +6 -0
- package/src/View/Layout/LayoutCloneButton.js +15 -0
- package/src/View/Layout/LayoutRadioSelector.d.ts +2 -1
- package/src/View/Layout/LayoutRadioSelector.js +1 -1
- package/src/View/Layout/LayoutStatusBarSubPanelPopover.js +6 -1
- package/src/View/Layout/Wizard/LayoutEditorWizard.d.ts +1 -0
- package/src/View/PlusMinus/Wizard/PlusMinusWizard.js +9 -0
- package/src/View/Query/Wizard/NamedQueryWizard.js +9 -0
- package/src/View/Schedule/Wizard/ScheduleWizard.js +10 -0
- package/src/View/Shortcut/Wizard/ShortcutWizard.js +10 -0
- package/src/View/SpecialColumnSettingsWizardStep.js +1 -1
- package/src/View/StatusBar/StatusBarPopup.js +1 -1
- package/src/View/Wizard/ObjectTagsWizardSection.d.ts +8 -0
- package/src/View/Wizard/ObjectTagsWizardSection.js +22 -0
- package/src/View/Wizard/OnePageAdaptableWizard.d.ts +1 -0
- package/src/View/Wizard/OnePageAdaptableWizard.js +12 -5
- package/src/agGrid/Adaptable.d.ts +14 -1
- package/src/agGrid/Adaptable.js +103 -68
- package/src/agGrid/agGridHelper.js +2 -1
- package/src/agGrid/createAgStatusPanelComponent.js +1 -0
- package/src/components/AdaptableFormComponent/AdaptableFormComponent.d.ts +8 -7
- package/src/components/Datepicker/index.d.ts +1 -1
- package/src/components/ExpressionEditor/index.js +5 -2
- package/src/components/Input/index.d.ts +1 -1
- package/src/components/List/ListGroupItem/index.d.ts +1 -1
- package/src/components/PopupWithFooter.d.ts +1 -1
- package/src/components/Textarea/index.d.ts +1 -1
- package/src/components/WindowModal/useStacking.js +2 -2
- package/src/metamodel/adaptable.metamodel.d.ts +44 -2
- package/src/metamodel/adaptable.metamodel.js +229 -21
- package/src/types.d.ts +6 -5
- package/version.d.ts +1 -1
- package/version.js +1 -1
|
@@ -2,10 +2,10 @@ import * as Redux from 'redux';
|
|
|
2
2
|
import { GridCell } from '../Selection/GridCell';
|
|
3
3
|
import { AdaptableColumn } from './AdaptableColumn';
|
|
4
4
|
import { AdaptableModule } from './Types';
|
|
5
|
-
import { AdaptableApi } from '../../Api/AdaptableApi';
|
|
6
5
|
import { SelectedCellInfo } from '../Selection/SelectedCellInfo';
|
|
7
6
|
import { SelectedRowInfo } from '../Selection/SelectedRowInfo';
|
|
8
7
|
import { Column, RowNode } from '@ag-grid-community/all-modules';
|
|
8
|
+
import { BaseContext } from '../../types';
|
|
9
9
|
/**
|
|
10
10
|
* Menu item used by Adaptable in both Column and Context Menus
|
|
11
11
|
*/
|
|
@@ -42,7 +42,7 @@ export interface AdaptableMenuItem {
|
|
|
42
42
|
/**
|
|
43
43
|
* Menu Item which is added to Column Header or Context Menu, and can contain sub items
|
|
44
44
|
*/
|
|
45
|
-
export interface UserMenuItem<CONTEXT_TYPE extends
|
|
45
|
+
export interface UserMenuItem<CONTEXT_TYPE extends BaseContext> {
|
|
46
46
|
/**
|
|
47
47
|
* Text that will appear in the Menu Item
|
|
48
48
|
*/
|
|
@@ -68,19 +68,10 @@ export interface UserMenuItem<CONTEXT_TYPE extends BaseMenuContext> {
|
|
|
68
68
|
*/
|
|
69
69
|
subMenuItems?: UserMenuItem<CONTEXT_TYPE>[];
|
|
70
70
|
}
|
|
71
|
-
/**
|
|
72
|
-
* Base Context object used for both Column and Context Menu Context
|
|
73
|
-
*/
|
|
74
|
-
export interface BaseMenuContext {
|
|
75
|
-
/**
|
|
76
|
-
* The Adaptable Api - included as a convenience
|
|
77
|
-
*/
|
|
78
|
-
adaptableApi: AdaptableApi;
|
|
79
|
-
}
|
|
80
71
|
/**
|
|
81
72
|
* Provides full details about the Column in which the Column Menu will appear
|
|
82
73
|
*/
|
|
83
|
-
export interface ColumnMenuContext extends
|
|
74
|
+
export interface ColumnMenuContext extends BaseContext {
|
|
84
75
|
/**
|
|
85
76
|
* Current Adaptable Column
|
|
86
77
|
*/
|
|
@@ -97,7 +88,7 @@ export interface ColumnMenuContext extends BaseMenuContext {
|
|
|
97
88
|
/**
|
|
98
89
|
* Provides full details about current cell (and selected cells) where the Context Menu will appear
|
|
99
90
|
*/
|
|
100
|
-
export interface ContextMenuContext extends
|
|
91
|
+
export interface ContextMenuContext extends BaseContext {
|
|
101
92
|
/**
|
|
102
93
|
* Cell that has been clicked; contains cell value
|
|
103
94
|
*/
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ConfigState } from './ConfigState';
|
|
2
2
|
import { AdaptableObject } from './Common/AdaptableObject';
|
|
3
3
|
import { AdaptableForm } from './Common/AdaptableForm';
|
|
4
|
-
import {
|
|
4
|
+
import { BaseContext } from '../types';
|
|
5
5
|
/**
|
|
6
6
|
* Predefined Configuration for Data Source Module
|
|
7
7
|
*/
|
|
@@ -30,5 +30,5 @@ export interface DataSource extends AdaptableObject {
|
|
|
30
30
|
/**
|
|
31
31
|
* Params for DataSource pops up a form
|
|
32
32
|
*/
|
|
33
|
-
Form?: AdaptableForm<
|
|
33
|
+
Form?: AdaptableForm<BaseContext>;
|
|
34
34
|
}
|
|
@@ -48,4 +48,4 @@ export interface ColumnFilterPredicate extends AdaptablePredicate {
|
|
|
48
48
|
PredicateId: TypeHint<string, SystemFilterPredicateId>;
|
|
49
49
|
}
|
|
50
50
|
export declare type SystemFilterPredicateIds = SystemFilterPredicateId[];
|
|
51
|
-
export declare type SystemFilterPredicateId = 'Values' | 'Blanks' | 'NonBlanks' | 'Equals' | 'NotEquals' | 'GreaterThan' | 'LessThan' | 'Positive' | 'Negative' | 'Zero' | 'Between' | 'NotBetween' | 'Is' | 'IsNot' | 'Contains' | 'NotContains' | 'StartsWith' | 'EndsWith' | 'Regex' | 'Today' | 'Yesterday' | 'Tomorrow' | 'ThisWeek' | 'ThisMonth' | 'ThisQuarter' | 'ThisYear' | 'InPast' | 'InFuture' | 'Before' | 'After' | 'InRange' | 'On' | 'NotOn' | 'NextWorkDay' | 'LastWorkDay' | 'True' | 'False' | 'BooleanToggle';
|
|
51
|
+
export declare type SystemFilterPredicateId = 'Values' | 'ExcludeValues' | 'Blanks' | 'NonBlanks' | 'Equals' | 'NotEquals' | 'GreaterThan' | 'LessThan' | 'Positive' | 'Negative' | 'Zero' | 'Between' | 'NotBetween' | 'Is' | 'IsNot' | 'Contains' | 'NotContains' | 'StartsWith' | 'EndsWith' | 'Regex' | 'Today' | 'Yesterday' | 'Tomorrow' | 'ThisWeek' | 'ThisMonth' | 'ThisQuarter' | 'ThisYear' | 'InPast' | 'InFuture' | 'Before' | 'After' | 'InRange' | 'On' | 'NotOn' | 'NextWorkDay' | 'LastWorkDay' | 'True' | 'False' | 'BooleanToggle';
|
|
@@ -4,7 +4,7 @@ import { InputAction, UIPrompt, UIConfirmation } from '../../Utilities/Interface
|
|
|
4
4
|
import { ModuleParams } from '../../View/Components/SharedProps/ModuleViewPopupProps';
|
|
5
5
|
import { AdaptableModule } from '../../PredefinedConfig/Common/Types';
|
|
6
6
|
import { AdaptableAlert } from '../../PredefinedConfig/Common/AdaptableAlert';
|
|
7
|
-
import { AdaptableForm,
|
|
7
|
+
import { AdaptableForm, BaseContext } from '../../types';
|
|
8
8
|
export declare const POPUP_SHOW_SCREEN = "POPUP_SHOW_SCREEN";
|
|
9
9
|
export declare const POPUP_HIDE_SCREEN = "POPUP_HIDE_SCREEN";
|
|
10
10
|
export declare const POPUP_SHOW_LOADING = "POPUP_SHOW_LOADING";
|
|
@@ -43,9 +43,9 @@ export interface PopupHideWindowAction extends Redux.Action {
|
|
|
43
43
|
}
|
|
44
44
|
export interface PopupShowFormAction extends Redux.Action {
|
|
45
45
|
Id: string;
|
|
46
|
-
Form: AdaptableForm<
|
|
46
|
+
Form: AdaptableForm<BaseContext>;
|
|
47
47
|
FormProps: any;
|
|
48
|
-
prepareContext?: (context:
|
|
48
|
+
prepareContext?: (context: BaseContext) => Promise<BaseContext> | BaseContext;
|
|
49
49
|
}
|
|
50
50
|
export interface PopupHideFormAction extends Redux.Action {
|
|
51
51
|
Id: string;
|
|
@@ -89,9 +89,9 @@ export declare const PopupShowWindow: (config: {
|
|
|
89
89
|
export declare const PopupHideWindow: (id: string) => PopupHideWindowAction;
|
|
90
90
|
export declare const PopupShowForm: (config: {
|
|
91
91
|
Id: string;
|
|
92
|
-
Form: AdaptableForm<
|
|
92
|
+
Form: AdaptableForm<BaseContext>;
|
|
93
93
|
FormProps?: any;
|
|
94
|
-
prepareContext?: (context:
|
|
94
|
+
prepareContext?: (context: BaseContext) => Promise<BaseContext> | BaseContext;
|
|
95
95
|
}) => PopupShowFormAction;
|
|
96
96
|
export declare const PopupHideForm: (id: string) => PopupHideFormAction;
|
|
97
97
|
export declare const PopupShowAlert: (alert: AdaptableAlert) => PopupShowAlertAction;
|
|
@@ -59,6 +59,7 @@ export declare const SYSTEM_DATA_CHANGE_HISTORY_DISABLE = "SYSTEM_DATA_CHANGE_HI
|
|
|
59
59
|
export declare const SYSTEM_DATA_CHANGE_HISTORY_SUSPEND = "SYSTEM_DATA_CHANGE_HISTORY_SUSPEND";
|
|
60
60
|
export declare const SYSTEM_DATA_CHANGE_HISTORY_RESUME = "SYSTEM_DATA_CHANGE_HISTORY_RESUME";
|
|
61
61
|
export declare const SYSTEM_SETTINGS_PANEL_SET = "SYSTEM_SETTINGS_PANEL_SET";
|
|
62
|
+
export declare const SYSTEM_LAYOUT_SHOW_NOT_ASSOCIATED_OBJECTS = "SYSTEM_LAYOUT_SHOW_NOT_ASSOCIATED_OBJECTS";
|
|
62
63
|
export interface SystemHighlightCellAddAction extends Redux.Action {
|
|
63
64
|
cellHighlightInfo: CellHighlightInfo;
|
|
64
65
|
}
|
|
@@ -205,6 +206,9 @@ export interface SystemSettingsPanelSetAction extends Redux.Action {
|
|
|
205
206
|
name: string;
|
|
206
207
|
settings: SystemState['SettingsPanel']['0'];
|
|
207
208
|
}
|
|
209
|
+
export interface SystemLayoutShowNotAssociatedObjectsAction extends Redux.Action {
|
|
210
|
+
showNotAssociatedObjects: boolean;
|
|
211
|
+
}
|
|
208
212
|
export declare const SystemHighlightCellAdd: (cellHighlightInfo: CellHighlightInfo) => SystemHighlightCellAddAction;
|
|
209
213
|
export declare const SystemHighlightCellDelete: (primaryKeyValue: CellHighlightInfo['primaryKeyValue'], columnId: CellHighlightInfo['columnId']) => SystemHighlightCellDeleteAction;
|
|
210
214
|
export declare const SystemHighlightCellDeleteAll: () => SystemHighlightCellDeleteAllAction;
|
|
@@ -248,4 +252,5 @@ export declare const SystemDataChangeHistoryDisable: () => SystemDataChangeHisto
|
|
|
248
252
|
export declare const SystemDataChangeHistorySuspend: () => SystemDataChangeHistorySuspendAction;
|
|
249
253
|
export declare const SystemDataChangeHistoryResume: () => SystemDataChangeHistoryResumeAction;
|
|
250
254
|
export declare const SystemSettingsPanelSet: (name: string, settings: SystemState['SettingsPanel']['0']) => SystemSettingsPanelSetAction;
|
|
255
|
+
export declare const SystemLayoutShowNotAssociatedObjects: (showNotAssociatedObjects: boolean) => SystemLayoutShowNotAssociatedObjectsAction;
|
|
251
256
|
export declare const SystemReducer: Redux.Reducer<SystemState>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.SystemReducer = exports.SystemSettingsPanelSet = exports.SystemDataChangeHistoryResume = exports.SystemDataChangeHistorySuspend = exports.SystemDataChangeHistoryDisable = exports.SystemDataChangeHistoryEnable = exports.SystemDataChangeHistoryUndo = exports.SystemDataChangeHistoryAdd = exports.SystemLicenseDisablePersistence = exports.SystemLicenseShowWatermark = exports.SystemProgressIndicatorHide = exports.SystemProgressIndicatorShow = exports.SystemCellSummaryChangeOperation = exports.SystemCachedQueryAdd = exports.SetLastAppliedShortcut = exports.SetNewColumnListOrder = exports.BulkUpdateChangeValue = exports.BulkUpdateSetPreview = exports.BulkUpdateSetValidSelection = exports.BulkUpdateCheckCellSelection = exports.SmartEditSetPreview = exports.SmartEditSetValidSelection = exports.SmartEditCheckCellSelection = exports.SmartEditChangeOperation = exports.SmartEditChangeValue = exports.SystemStatusMessageInfoDeleteAll = exports.SystemStatusMessageInfoDelete = exports.SystemStatusMessageInfoAdd = exports.SystemFlashingCellDeleteAll = exports.SystemFlashingCellDelete = exports.SystemFlashingCellAdd = exports.SystemAlertRemoveRowHighlight = exports.SystemAlertRemoveCellHighlight = exports.SystemAlertDeleteAll = exports.SystemAlertDelete = exports.SystemAlertAdd = exports.SystemHighlightRowDeleteAll = exports.SystemHighlightRowsDelete = exports.SystemHighlightRowDelete = exports.SystemHighlightRowsAdd = exports.SystemHighlightRowAdd = exports.SystemHighlightCellDeleteAll = exports.SystemHighlightCellDelete = exports.SystemHighlightCellAdd = exports.SYSTEM_SETTINGS_PANEL_SET = exports.SYSTEM_DATA_CHANGE_HISTORY_RESUME = exports.SYSTEM_DATA_CHANGE_HISTORY_SUSPEND = exports.SYSTEM_DATA_CHANGE_HISTORY_DISABLE = exports.SYSTEM_DATA_CHANGE_HISTORY_ENABLE = exports.SYSTEM_DATA_CHANGE_HISTORY_UNDO = exports.SYSTEM_DATA_CHANGE_HISTORY_ADD = exports.SYSTEM_LICENSE_DISABLE_PERSISTENCE = exports.SYSTEM_LICENSE_SHOW_WATERMARK = exports.SYSTEM_PROGRESS_INDICATOR_HIDE = exports.SYSTEM_PROGRESS_INDICATOR_SHOW = exports.SYSTEM_CELL_SUMMARY_CHANGE_OPERATION = exports.SYSTEM_CACHED_QUERY_ADD = exports.SYSTEM_SET_LAST_APPLIED_SHORTCUT = exports.SYSTEM_SET_NEW_COLUMN_LIST_ORDER = exports.SYSTEM_HIGHLIGHT_ROW_DELETE_ALL = exports.SYSTEM_HIGHLIGHT_ROWS_DELETE = exports.SYSTEM_HIGHLIGHT_ROW_DELETE = exports.SYSTEM_HIGHLIGHT_ROWS_ADD = exports.SYSTEM_HIGHLIGHT_ROW_ADD = exports.SYSTEM_HIGHLIGHT_CELL_DELETE_ALL = exports.SYSTEM_HIGHLIGHT_CELL_DELETE = exports.SYSTEM_HIGHLIGHT_CELL_ADD = exports.SYSTEM_BULK_UPDATE_CHANGE_VALUE = exports.SYSTEM_BULK_UPDATE_SET_PREVIEW = exports.SYSTEM_BULK_UPDATE_SET_VALID_SELECTION = exports.SYSTEM_BULK_UPDATE_CHECK_CELL_SELECTION = exports.SYSTEM_SMART_EDIT_CHANGE_OPERATION = exports.SYSTEM_SMART_EDIT_CHANGE_VALUE = exports.SYSTEM_SMARTEDIT_SET_PREVIEW = exports.SYSTEM_SMARTEDIT_SET_VALID_SELECTION = exports.SYSTEM_SMARTEDIT_FETCH_PREVIEW = exports.SYSTEM_SMARTEDIT_CHECK_CELL_SELECTION = exports.SYSTEM_STATUS_MESSAGE_INFO_DELETE_ALL = exports.SYSTEM_STATUS_MESSAGE_INFO_DELETE = exports.SYSTEM_STATUS_MESSAGE_INFO_ADD = exports.SYSTEM_FLASHING_CELL_DELETE_ALL = exports.SYSTEM_FLASHING_CELL_DELETE = exports.SYSTEM_FLASHING_CELL_ADD = exports.SYSTEM_ALERT_REMOVE_ROW_HIGHLIGHT = exports.SYSTEM_ALERT_REMOVE_CELL_HIGHLIGHT = exports.SYSTEM_ALERT_DELETE_ALL = exports.SYSTEM_ALERT_DELETE = exports.SYSTEM_ALERT_ADD = exports.FLASHING_CELL_ROW_KEY = void 0;
|
|
3
|
+
exports.SystemReducer = exports.SystemLayoutShowNotAssociatedObjects = exports.SystemSettingsPanelSet = exports.SystemDataChangeHistoryResume = exports.SystemDataChangeHistorySuspend = exports.SystemDataChangeHistoryDisable = exports.SystemDataChangeHistoryEnable = exports.SystemDataChangeHistoryUndo = exports.SystemDataChangeHistoryAdd = exports.SystemLicenseDisablePersistence = exports.SystemLicenseShowWatermark = exports.SystemProgressIndicatorHide = exports.SystemProgressIndicatorShow = exports.SystemCellSummaryChangeOperation = exports.SystemCachedQueryAdd = exports.SetLastAppliedShortcut = exports.SetNewColumnListOrder = exports.BulkUpdateChangeValue = exports.BulkUpdateSetPreview = exports.BulkUpdateSetValidSelection = exports.BulkUpdateCheckCellSelection = exports.SmartEditSetPreview = exports.SmartEditSetValidSelection = exports.SmartEditCheckCellSelection = exports.SmartEditChangeOperation = exports.SmartEditChangeValue = exports.SystemStatusMessageInfoDeleteAll = exports.SystemStatusMessageInfoDelete = exports.SystemStatusMessageInfoAdd = exports.SystemFlashingCellDeleteAll = exports.SystemFlashingCellDelete = exports.SystemFlashingCellAdd = exports.SystemAlertRemoveRowHighlight = exports.SystemAlertRemoveCellHighlight = exports.SystemAlertDeleteAll = exports.SystemAlertDelete = exports.SystemAlertAdd = exports.SystemHighlightRowDeleteAll = exports.SystemHighlightRowsDelete = exports.SystemHighlightRowDelete = exports.SystemHighlightRowsAdd = exports.SystemHighlightRowAdd = exports.SystemHighlightCellDeleteAll = exports.SystemHighlightCellDelete = exports.SystemHighlightCellAdd = exports.SYSTEM_LAYOUT_SHOW_NOT_ASSOCIATED_OBJECTS = exports.SYSTEM_SETTINGS_PANEL_SET = exports.SYSTEM_DATA_CHANGE_HISTORY_RESUME = exports.SYSTEM_DATA_CHANGE_HISTORY_SUSPEND = exports.SYSTEM_DATA_CHANGE_HISTORY_DISABLE = exports.SYSTEM_DATA_CHANGE_HISTORY_ENABLE = exports.SYSTEM_DATA_CHANGE_HISTORY_UNDO = exports.SYSTEM_DATA_CHANGE_HISTORY_ADD = exports.SYSTEM_LICENSE_DISABLE_PERSISTENCE = exports.SYSTEM_LICENSE_SHOW_WATERMARK = exports.SYSTEM_PROGRESS_INDICATOR_HIDE = exports.SYSTEM_PROGRESS_INDICATOR_SHOW = exports.SYSTEM_CELL_SUMMARY_CHANGE_OPERATION = exports.SYSTEM_CACHED_QUERY_ADD = exports.SYSTEM_SET_LAST_APPLIED_SHORTCUT = exports.SYSTEM_SET_NEW_COLUMN_LIST_ORDER = exports.SYSTEM_HIGHLIGHT_ROW_DELETE_ALL = exports.SYSTEM_HIGHLIGHT_ROWS_DELETE = exports.SYSTEM_HIGHLIGHT_ROW_DELETE = exports.SYSTEM_HIGHLIGHT_ROWS_ADD = exports.SYSTEM_HIGHLIGHT_ROW_ADD = exports.SYSTEM_HIGHLIGHT_CELL_DELETE_ALL = exports.SYSTEM_HIGHLIGHT_CELL_DELETE = exports.SYSTEM_HIGHLIGHT_CELL_ADD = exports.SYSTEM_BULK_UPDATE_CHANGE_VALUE = exports.SYSTEM_BULK_UPDATE_SET_PREVIEW = exports.SYSTEM_BULK_UPDATE_SET_VALID_SELECTION = exports.SYSTEM_BULK_UPDATE_CHECK_CELL_SELECTION = exports.SYSTEM_SMART_EDIT_CHANGE_OPERATION = exports.SYSTEM_SMART_EDIT_CHANGE_VALUE = exports.SYSTEM_SMARTEDIT_SET_PREVIEW = exports.SYSTEM_SMARTEDIT_SET_VALID_SELECTION = exports.SYSTEM_SMARTEDIT_FETCH_PREVIEW = exports.SYSTEM_SMARTEDIT_CHECK_CELL_SELECTION = exports.SYSTEM_STATUS_MESSAGE_INFO_DELETE_ALL = exports.SYSTEM_STATUS_MESSAGE_INFO_DELETE = exports.SYSTEM_STATUS_MESSAGE_INFO_ADD = exports.SYSTEM_FLASHING_CELL_DELETE_ALL = exports.SYSTEM_FLASHING_CELL_DELETE = exports.SYSTEM_FLASHING_CELL_ADD = exports.SYSTEM_ALERT_REMOVE_ROW_HIGHLIGHT = exports.SYSTEM_ALERT_REMOVE_CELL_HIGHLIGHT = exports.SYSTEM_ALERT_DELETE_ALL = exports.SYSTEM_ALERT_DELETE = exports.SYSTEM_ALERT_ADD = exports.FLASHING_CELL_ROW_KEY = void 0;
|
|
4
4
|
const GeneralConstants_1 = require("../../Utilities/Constants/GeneralConstants");
|
|
5
5
|
const Enums_1 = require("../../PredefinedConfig/Common/Enums");
|
|
6
6
|
const Helper_1 = require("../../Utilities/Helpers/Helper");
|
|
@@ -68,6 +68,7 @@ exports.SYSTEM_DATA_CHANGE_HISTORY_SUSPEND = 'SYSTEM_DATA_CHANGE_HISTORY_SUSPEND
|
|
|
68
68
|
exports.SYSTEM_DATA_CHANGE_HISTORY_RESUME = 'SYSTEM_DATA_CHANGE_HISTORY_RESUME';
|
|
69
69
|
// Settings panel
|
|
70
70
|
exports.SYSTEM_SETTINGS_PANEL_SET = 'SYSTEM_SETTINGS_PANEL_SET';
|
|
71
|
+
exports.SYSTEM_LAYOUT_SHOW_NOT_ASSOCIATED_OBJECTS = 'SYSTEM_LAYOUT_SHOW_NOT_ASSOCIATED_OBJECTS';
|
|
71
72
|
exports.SystemHighlightCellAdd = (cellHighlightInfo) => ({
|
|
72
73
|
type: exports.SYSTEM_HIGHLIGHT_CELL_ADD,
|
|
73
74
|
cellHighlightInfo: cellHighlightInfo,
|
|
@@ -233,6 +234,10 @@ exports.SystemSettingsPanelSet = (name, settings) => ({
|
|
|
233
234
|
name,
|
|
234
235
|
settings,
|
|
235
236
|
});
|
|
237
|
+
exports.SystemLayoutShowNotAssociatedObjects = (showNotAssociatedObjects) => ({
|
|
238
|
+
type: exports.SYSTEM_LAYOUT_SHOW_NOT_ASSOCIATED_OBJECTS,
|
|
239
|
+
showNotAssociatedObjects,
|
|
240
|
+
});
|
|
236
241
|
const initialState = {
|
|
237
242
|
AdaptableAlerts: GeneralConstants_1.EMPTY_ARRAY,
|
|
238
243
|
AdaptableFlashingCells: {},
|
|
@@ -264,6 +269,7 @@ const initialState = {
|
|
|
264
269
|
suspendTime: null,
|
|
265
270
|
},
|
|
266
271
|
SettingsPanel: {},
|
|
272
|
+
ShowLayoutNotAssociatedObjects: false,
|
|
267
273
|
};
|
|
268
274
|
exports.SystemReducer = (state = initialState, action) => {
|
|
269
275
|
let alerts;
|
|
@@ -548,6 +554,10 @@ exports.SystemReducer = (state = initialState, action) => {
|
|
|
548
554
|
const setSettingsAction = action;
|
|
549
555
|
return Object.assign(Object.assign({}, state), { SettingsPanel: Object.assign(Object.assign({}, state === null || state === void 0 ? void 0 : state.SettingsPanel), { [setSettingsAction.name]: setSettingsAction.settings }) });
|
|
550
556
|
}
|
|
557
|
+
case exports.SYSTEM_LAYOUT_SHOW_NOT_ASSOCIATED_OBJECTS: {
|
|
558
|
+
const typedAction = action;
|
|
559
|
+
return Object.assign(Object.assign({}, state), { ShowLayoutNotAssociatedObjects: typedAction.showNotAssociatedObjects });
|
|
560
|
+
}
|
|
551
561
|
default:
|
|
552
562
|
return state;
|
|
553
563
|
}
|
|
@@ -39,6 +39,7 @@ export declare class AdaptableStore implements IAdaptableStore {
|
|
|
39
39
|
* @param isAgGridReady A promise which is resolved when AG Grid is ready for binding
|
|
40
40
|
*/
|
|
41
41
|
constructor(adaptable: IAdaptable, isAgGridReady: Promise<any>);
|
|
42
|
+
destroy(): void;
|
|
42
43
|
getCurrentStorageState(): AdaptableState;
|
|
43
44
|
saveStateNow(adaptable: IAdaptable): Promise<any>;
|
|
44
45
|
loadStore: (adaptable: IAdaptable, adaptableStateKey: string, predefinedConfig?: PredefinedConfig) => Promise<any>;
|
|
@@ -254,6 +254,11 @@ class AdaptableStore {
|
|
|
254
254
|
this.storageEngine = storageEngine;
|
|
255
255
|
this.loadStore(adaptable, adaptable.adaptableOptions.adaptableStateKey);
|
|
256
256
|
}
|
|
257
|
+
destroy() {
|
|
258
|
+
var _a;
|
|
259
|
+
(_a = this.emitter) === null || _a === void 0 ? void 0 : _a.clearListeners();
|
|
260
|
+
this.emitter = null;
|
|
261
|
+
}
|
|
257
262
|
getCurrentStorageState() {
|
|
258
263
|
return this.currentStorageState;
|
|
259
264
|
}
|
|
@@ -773,7 +778,7 @@ const adaptableMiddleware = (adaptable) => function (middlewareAPI) {
|
|
|
773
778
|
case ScheduleRedux.OPENFIN_SCHEDULE_UNSUSPEND: {
|
|
774
779
|
let returnAction = next(action);
|
|
775
780
|
let module = (adaptable.adaptableModules.get(ModuleConstants.ScheduleModuleId));
|
|
776
|
-
module.
|
|
781
|
+
module.setUpScheduleJobs();
|
|
777
782
|
return returnAction;
|
|
778
783
|
}
|
|
779
784
|
/*******************
|
|
@@ -11,4 +11,5 @@ export interface IAdaptableStore {
|
|
|
11
11
|
on: (eventName: string, callback: (data?: any) => any) => () => void;
|
|
12
12
|
onAny: (callback: (eventName: string, data?: any) => any) => () => void;
|
|
13
13
|
emit: (eventName: string, data: any) => Promise<any>;
|
|
14
|
+
destroy: () => void;
|
|
14
15
|
}
|
|
@@ -50,6 +50,11 @@ export declare abstract class AdaptableModuleBase implements IModule {
|
|
|
50
50
|
getModuleFreeTextColumnReferences(): FreeTextColumn[];
|
|
51
51
|
getTeamSharingReferences(adaptableObject: AdaptableObject): TeamSharingReferences;
|
|
52
52
|
getPopupMaxWidth(): number | undefined;
|
|
53
|
+
/**
|
|
54
|
+
* TRUE for objects of type {@link LayoutAssociatedObject}
|
|
55
|
+
*/
|
|
56
|
+
canBeAssociatedWithLayouts(): boolean;
|
|
57
|
+
showLayoutNotAssociatedObjects(): boolean;
|
|
53
58
|
private getFriendlyName;
|
|
54
59
|
private hasRequiredAccessLevel;
|
|
55
60
|
}
|
|
@@ -222,6 +222,15 @@ class AdaptableModuleBase {
|
|
|
222
222
|
// it allows every module to define a specific popup width
|
|
223
223
|
return undefined;
|
|
224
224
|
}
|
|
225
|
+
/**
|
|
226
|
+
* TRUE for objects of type {@link LayoutAssociatedObject}
|
|
227
|
+
*/
|
|
228
|
+
canBeAssociatedWithLayouts() {
|
|
229
|
+
return false;
|
|
230
|
+
}
|
|
231
|
+
showLayoutNotAssociatedObjects() {
|
|
232
|
+
return this.api.internalApi.showLayoutNotAssociatedObjects();
|
|
233
|
+
}
|
|
225
234
|
getFriendlyName(module, friendlyName) {
|
|
226
235
|
let returnValue = friendlyName;
|
|
227
236
|
let generalOptions = this.api.internalApi.getAdaptableOptions().generalOptions;
|
|
@@ -9,7 +9,9 @@ import { AdaptableObjectView, IModule } from './Interface/IModule';
|
|
|
9
9
|
import { AdaptableObject } from '../PredefinedConfig/Common/AdaptableObject';
|
|
10
10
|
export declare class AlertModule extends AdaptableModuleBase implements IModule {
|
|
11
11
|
constructor(api: AdaptableApi);
|
|
12
|
-
getModuleAdaptableObjects(
|
|
12
|
+
getModuleAdaptableObjects(config?: {
|
|
13
|
+
includeLayoutNotAssociatedObjects?: boolean;
|
|
14
|
+
}): AdaptableObject[];
|
|
13
15
|
getExplicitlyReferencedColumnIds(alertDefinition: AlertDefinition): string[];
|
|
14
16
|
getReferencedNamedQueryNames(alertDefinition: AlertDefinition): string[];
|
|
15
17
|
updateOldConfig(): void;
|
|
@@ -38,4 +40,5 @@ export declare class AlertModule extends AdaptableModuleBase implements IModule
|
|
|
38
40
|
view: () => JSX.Element;
|
|
39
41
|
};
|
|
40
42
|
};
|
|
43
|
+
canBeAssociatedWithLayouts(): boolean;
|
|
41
44
|
}
|
|
@@ -16,6 +16,7 @@ const getAlertPreviewViewItems_1 = require("./Utilities/getAlertPreviewViewItems
|
|
|
16
16
|
const getAlertBehaviourViewItems_1 = require("./Utilities/getAlertBehaviourViewItems");
|
|
17
17
|
const AlertEmptyView_1 = require("../View/Alert/AlertEmptyView");
|
|
18
18
|
const AlertStatusSubPanel_1 = require("../View/Alert/AlertStatusSubPanel");
|
|
19
|
+
const getObjectTagsViewItems_1 = require("./Utilities/getObjectTagsViewItems");
|
|
19
20
|
class AlertModule extends AdaptableModuleBase_1.AdaptableModuleBase {
|
|
20
21
|
constructor(api) {
|
|
21
22
|
super(ModuleConstants.AlertModuleId, 'Alert', 'alert', 'AlertPopup', 'Get notified when things happen in Adaptable that you need to know about', api);
|
|
@@ -50,8 +51,8 @@ class AlertModule extends AdaptableModuleBase_1.AdaptableModuleBase {
|
|
|
50
51
|
.getAlertService()
|
|
51
52
|
.onReactiveAlertTriggered((reactiveAlertInfo) => this.handleReactiveAlertTriggered(reactiveAlertInfo));
|
|
52
53
|
}
|
|
53
|
-
getModuleAdaptableObjects() {
|
|
54
|
-
return this.api.alertApi.getAlertDefinitions();
|
|
54
|
+
getModuleAdaptableObjects(config) {
|
|
55
|
+
return this.api.alertApi.getAlertDefinitions(config);
|
|
55
56
|
}
|
|
56
57
|
getExplicitlyReferencedColumnIds(alertDefinition) {
|
|
57
58
|
const queryExpression = this.api.queryLanguageApi.getAdaptableQueryExpression(alertDefinition.Rule);
|
|
@@ -154,6 +155,7 @@ class AlertModule extends AdaptableModuleBase_1.AdaptableModuleBase {
|
|
|
154
155
|
});
|
|
155
156
|
}
|
|
156
157
|
handleReactiveAlertTriggered(reactiveAlertInfo) {
|
|
158
|
+
// TODO - suppress Notification if alert is not relevant for layout
|
|
157
159
|
var _a;
|
|
158
160
|
// the row node data is most probably stale because the reactive queries buffer the changed data
|
|
159
161
|
// so we have to refresh it
|
|
@@ -247,14 +249,17 @@ class AlertModule extends AdaptableModuleBase_1.AdaptableModuleBase {
|
|
|
247
249
|
items: [
|
|
248
250
|
getScopeViewItems_1.getScopeViewItems(alert.Scope, this.api),
|
|
249
251
|
getRuleViewItems_1.getRuleViewItems(alert.Rule, this.api),
|
|
250
|
-
getAlertBehaviourViewItems_1.getAlertBehaviourViewItems(),
|
|
252
|
+
getAlertBehaviourViewItems_1.getAlertBehaviourViewItems(this.api),
|
|
251
253
|
getAlertPreviewViewItems_1.getAlertPreviewViewItems(alert, this.api),
|
|
254
|
+
getObjectTagsViewItems_1.getObjectTagsViewItems(alert, this.api),
|
|
252
255
|
],
|
|
253
256
|
abObject: alert,
|
|
254
257
|
};
|
|
255
258
|
}
|
|
256
259
|
toViewAll() {
|
|
257
|
-
return this.
|
|
260
|
+
return this.getModuleAdaptableObjects({
|
|
261
|
+
includeLayoutNotAssociatedObjects: this.showLayoutNotAssociatedObjects(),
|
|
262
|
+
}).map((alert) => this.toView(alert));
|
|
258
263
|
}
|
|
259
264
|
getViewProperties() {
|
|
260
265
|
return {
|
|
@@ -270,5 +275,8 @@ class AlertModule extends AdaptableModuleBase_1.AdaptableModuleBase {
|
|
|
270
275
|
},
|
|
271
276
|
};
|
|
272
277
|
}
|
|
278
|
+
canBeAssociatedWithLayouts() {
|
|
279
|
+
return true;
|
|
280
|
+
}
|
|
273
281
|
}
|
|
274
282
|
exports.AlertModule = AlertModule;
|
|
@@ -5,7 +5,7 @@ import { AdaptableMenuItem } from '../PredefinedConfig/Common/Menu';
|
|
|
5
5
|
import * as CalculatedColumnRedux from '../Redux/ActionsReducers/CalculatedColumnRedux';
|
|
6
6
|
import { TeamSharingImportInfo } from '../PredefinedConfig/TeamSharingState';
|
|
7
7
|
import { CalculatedColumn } from '../PredefinedConfig/CalculatedColumnState';
|
|
8
|
-
import { IModule } from './Interface/IModule';
|
|
8
|
+
import { AdaptableObjectItemView, IModule } from './Interface/IModule';
|
|
9
9
|
import { AdaptableApi } from '../Api/AdaptableApi';
|
|
10
10
|
import { AdaptableObject } from '../PredefinedConfig/Common/AdaptableObject';
|
|
11
11
|
export declare class CalculatedColumnModule extends AdaptableModuleBase implements IModule {
|
|
@@ -17,25 +17,11 @@ export declare class CalculatedColumnModule extends AdaptableModuleBase implemen
|
|
|
17
17
|
addColumnMenuItems(column: AdaptableColumn): AdaptableMenuItem[] | undefined;
|
|
18
18
|
getTeamSharingAction(): TeamSharingImportInfo<CalculatedColumn>;
|
|
19
19
|
toView(calculateColumn: CalculatedColumn): {
|
|
20
|
-
items:
|
|
21
|
-
name: string;
|
|
22
|
-
values: string[];
|
|
23
|
-
} | {
|
|
24
|
-
name: string;
|
|
25
|
-
label: string;
|
|
26
|
-
values: string[];
|
|
27
|
-
})[];
|
|
20
|
+
items: AdaptableObjectItemView[];
|
|
28
21
|
abObject: CalculatedColumn;
|
|
29
22
|
};
|
|
30
23
|
toViewAll(): {
|
|
31
|
-
items:
|
|
32
|
-
name: string;
|
|
33
|
-
values: string[];
|
|
34
|
-
} | {
|
|
35
|
-
name: string;
|
|
36
|
-
label: string;
|
|
37
|
-
values: string[];
|
|
38
|
-
})[];
|
|
24
|
+
items: AdaptableObjectItemView[];
|
|
39
25
|
abObject: CalculatedColumn;
|
|
40
26
|
}[];
|
|
41
27
|
getViewProperties(): {
|
|
@@ -10,6 +10,7 @@ const getExpressionViewItems_1 = require("./Utilities/getExpressionViewItems");
|
|
|
10
10
|
const CalculatedColumnWizard_1 = require("../View/CalculatedColumn/Wizard/CalculatedColumnWizard");
|
|
11
11
|
const getCalculatedColumnSettingTags_1 = require("../View/CalculatedColumn/Utilities/getCalculatedColumnSettingTags");
|
|
12
12
|
const ArrayExtensions_1 = tslib_1.__importDefault(require("../Utilities/Extensions/ArrayExtensions"));
|
|
13
|
+
const getObjectTagsViewItems_1 = require("./Utilities/getObjectTagsViewItems");
|
|
13
14
|
class CalculatedColumnModule extends AdaptableModuleBase_1.AdaptableModuleBase {
|
|
14
15
|
constructor(api) {
|
|
15
16
|
super(ModuleConstants.CalculatedColumnModuleId, 'Calculated Column', 'calculated-column', 'CalculatedColumnPopup', 'Create bespoke columns whose cell value is derived dynamically from an Expression', api);
|
|
@@ -84,6 +85,7 @@ class CalculatedColumnModule extends AdaptableModuleBase_1.AdaptableModuleBase {
|
|
|
84
85
|
values: settingsTags,
|
|
85
86
|
});
|
|
86
87
|
}
|
|
88
|
+
items.push(getObjectTagsViewItems_1.getObjectTagsViewItems(calculateColumn, this.api));
|
|
87
89
|
return {
|
|
88
90
|
items: items,
|
|
89
91
|
abObject: calculateColumn,
|
|
@@ -11,7 +11,9 @@ import { AdaptableObject } from '../PredefinedConfig/Common/AdaptableObject';
|
|
|
11
11
|
import { AdaptableObjectView } from './Interface/IModule';
|
|
12
12
|
export declare class ConditionalStyleModule extends AdaptableModuleBase implements IConditionalStyleModule {
|
|
13
13
|
constructor(api: AdaptableApi);
|
|
14
|
-
getModuleAdaptableObjects(
|
|
14
|
+
getModuleAdaptableObjects(config?: {
|
|
15
|
+
includeLayoutNotAssociatedObjects?: boolean;
|
|
16
|
+
}): AdaptableObject[];
|
|
15
17
|
getExplicitlyReferencedColumnIds(conditionalStyle: ConditionalStyle): string[];
|
|
16
18
|
getReferencedNamedQueryNames(conditionalStyle: ConditionalStyle): string[];
|
|
17
19
|
updateOldConfig(): void;
|
|
@@ -31,4 +33,5 @@ export declare class ConditionalStyleModule extends AdaptableModuleBase implemen
|
|
|
31
33
|
emptyView: string;
|
|
32
34
|
getEditWizard(): import("react").FunctionComponent<import("../View/ConditionalStyle/Wizard/ConditionalStyleWizard").ConditionalStyleWizardProps>;
|
|
33
35
|
};
|
|
36
|
+
canBeAssociatedWithLayouts(): boolean;
|
|
34
37
|
}
|
|
@@ -12,12 +12,13 @@ const getScopeViewItems_1 = require("./Utilities/getScopeViewItems");
|
|
|
12
12
|
const ConditionalStyleWizard_1 = require("../View/ConditionalStyle/Wizard/ConditionalStyleWizard");
|
|
13
13
|
const getRuleViewItems_1 = require("./Utilities/getRuleViewItems");
|
|
14
14
|
const getStyleViewItems_1 = require("./Utilities/getStyleViewItems");
|
|
15
|
+
const getObjectTagsViewItems_1 = require("./Utilities/getObjectTagsViewItems");
|
|
15
16
|
class ConditionalStyleModule extends AdaptableModuleBase_1.AdaptableModuleBase {
|
|
16
17
|
constructor(api) {
|
|
17
18
|
super(ModuleConstants.ConditionalStyleModuleId, 'Conditional Style', 'conditional-style', 'ConditionalStylePopup', 'Style columns and rows dynamically based on rules and cell values', api);
|
|
18
19
|
}
|
|
19
|
-
getModuleAdaptableObjects() {
|
|
20
|
-
return this.api.conditionalStyleApi.getAllConditionalStyle();
|
|
20
|
+
getModuleAdaptableObjects(config) {
|
|
21
|
+
return this.api.conditionalStyleApi.getAllConditionalStyle(config);
|
|
21
22
|
}
|
|
22
23
|
getExplicitlyReferencedColumnIds(conditionalStyle) {
|
|
23
24
|
if (conditionalStyle.Rule.BooleanExpression) {
|
|
@@ -37,7 +38,8 @@ class ConditionalStyleModule extends AdaptableModuleBase_1.AdaptableModuleBase {
|
|
|
37
38
|
return this.api.queryApi.getReferencedNamedQueryNames(conditionalStyle.Rule.BooleanExpression);
|
|
38
39
|
}
|
|
39
40
|
updateOldConfig() {
|
|
40
|
-
|
|
41
|
+
var _a;
|
|
42
|
+
const conditionalStyles = (_a = this.api.conditionalStyleApi.getConditionalStyleState().ConditionalStyles) !== null && _a !== void 0 ? _a : [];
|
|
41
43
|
let oldConditionalStyles = [];
|
|
42
44
|
conditionalStyles.forEach((cs) => {
|
|
43
45
|
if (cs) {
|
|
@@ -195,12 +197,15 @@ class ConditionalStyleModule extends AdaptableModuleBase_1.AdaptableModuleBase {
|
|
|
195
197
|
name: 'Settings',
|
|
196
198
|
values: [`Include grouped rows: ${conditionalStyle.IncludeGroupedRows ? 'Yes' : 'No'}`],
|
|
197
199
|
},
|
|
200
|
+
getObjectTagsViewItems_1.getObjectTagsViewItems(conditionalStyle, this.api),
|
|
198
201
|
],
|
|
199
202
|
abObject: conditionalStyle,
|
|
200
203
|
};
|
|
201
204
|
}
|
|
202
205
|
toViewAll() {
|
|
203
|
-
return this.getModuleAdaptableObjects(
|
|
206
|
+
return this.getModuleAdaptableObjects({
|
|
207
|
+
includeLayoutNotAssociatedObjects: this.showLayoutNotAssociatedObjects(),
|
|
208
|
+
}).map((conditionalStyle) => this.toView(conditionalStyle));
|
|
204
209
|
}
|
|
205
210
|
getViewProperties() {
|
|
206
211
|
return {
|
|
@@ -213,5 +218,8 @@ class ConditionalStyleModule extends AdaptableModuleBase_1.AdaptableModuleBase {
|
|
|
213
218
|
},
|
|
214
219
|
};
|
|
215
220
|
}
|
|
221
|
+
canBeAssociatedWithLayouts() {
|
|
222
|
+
return true;
|
|
223
|
+
}
|
|
216
224
|
}
|
|
217
225
|
exports.ConditionalStyleModule = ConditionalStyleModule;
|
|
@@ -10,7 +10,9 @@ import { AdaptableApi } from '../Api/AdaptableApi';
|
|
|
10
10
|
import { AdaptableObject } from '../PredefinedConfig/Common/AdaptableObject';
|
|
11
11
|
export declare class CustomSortModule extends AdaptableModuleBase implements IModule {
|
|
12
12
|
constructor(api: AdaptableApi);
|
|
13
|
-
getModuleAdaptableObjects(
|
|
13
|
+
getModuleAdaptableObjects(config?: {
|
|
14
|
+
includeLayoutNotAssociatedObjects?: boolean;
|
|
15
|
+
}): AdaptableObject[];
|
|
14
16
|
getExplicitlyReferencedColumnIds(customSort: CustomSort): string[];
|
|
15
17
|
hasNamedQueryReferences(): boolean;
|
|
16
18
|
addColumnMenuItems(column: AdaptableColumn): AdaptableMenuItem[] | undefined;
|
|
@@ -24,4 +26,5 @@ export declare class CustomSortModule extends AdaptableModuleBase implements IMo
|
|
|
24
26
|
emptyView: string;
|
|
25
27
|
getEditWizard(): (props: import("../View/CustomSort/Wizard/CustomSortWizard").CustomSortWizardProps) => JSX.Element;
|
|
26
28
|
};
|
|
29
|
+
canBeAssociatedWithLayouts(): boolean;
|
|
27
30
|
}
|
|
@@ -8,12 +8,13 @@ const CustomSortRedux = tslib_1.__importStar(require("../Redux/ActionsReducers/C
|
|
|
8
8
|
const CustomSortWizard_1 = require("../View/CustomSort/Wizard/CustomSortWizard");
|
|
9
9
|
const getCustomSortColumnViewItems_1 = require("./Utilities/getCustomSortColumnViewItems");
|
|
10
10
|
const getCustomSortSortOrderViewItems_1 = require("./Utilities/getCustomSortSortOrderViewItems");
|
|
11
|
+
const getObjectTagsViewItems_1 = require("./Utilities/getObjectTagsViewItems");
|
|
11
12
|
class CustomSortModule extends AdaptableModuleBase_1.AdaptableModuleBase {
|
|
12
13
|
constructor(api) {
|
|
13
14
|
super(ModuleConstants.CustomSortModuleId, 'Custom Sort', 'custom-sort', 'CustomSortPopup', 'Provide bespoke sorting information for Columns (in place of alphabetical sorting)', api);
|
|
14
15
|
}
|
|
15
|
-
getModuleAdaptableObjects() {
|
|
16
|
-
return this.api.customSortApi.getAllCustomSort();
|
|
16
|
+
getModuleAdaptableObjects(config) {
|
|
17
|
+
return this.api.customSortApi.getAllCustomSort(config);
|
|
17
18
|
}
|
|
18
19
|
getExplicitlyReferencedColumnIds(customSort) {
|
|
19
20
|
return [customSort.ColumnId];
|
|
@@ -54,12 +55,15 @@ class CustomSortModule extends AdaptableModuleBase_1.AdaptableModuleBase {
|
|
|
54
55
|
items: [
|
|
55
56
|
getCustomSortColumnViewItems_1.getCustomSortColumnViewItems(customSort, this.api),
|
|
56
57
|
getCustomSortSortOrderViewItems_1.getCustomSortSortOrderViewItems(customSort),
|
|
58
|
+
getObjectTagsViewItems_1.getObjectTagsViewItems(customSort, this.api),
|
|
57
59
|
],
|
|
58
60
|
abObject: customSort,
|
|
59
61
|
};
|
|
60
62
|
}
|
|
61
63
|
toViewAll() {
|
|
62
|
-
return this.getModuleAdaptableObjects(
|
|
64
|
+
return this.getModuleAdaptableObjects({
|
|
65
|
+
includeLayoutNotAssociatedObjects: this.showLayoutNotAssociatedObjects(),
|
|
66
|
+
}).map((customSort) => this.toView(customSort));
|
|
63
67
|
}
|
|
64
68
|
getViewProperties() {
|
|
65
69
|
return {
|
|
@@ -72,5 +76,8 @@ class CustomSortModule extends AdaptableModuleBase_1.AdaptableModuleBase {
|
|
|
72
76
|
},
|
|
73
77
|
};
|
|
74
78
|
}
|
|
79
|
+
canBeAssociatedWithLayouts() {
|
|
80
|
+
return true;
|
|
81
|
+
}
|
|
75
82
|
}
|
|
76
83
|
exports.CustomSortModule = CustomSortModule;
|
|
@@ -6,6 +6,7 @@ const AdaptableModuleBase_1 = require("./AdaptableModuleBase");
|
|
|
6
6
|
const ModuleConstants = tslib_1.__importStar(require("../Utilities/Constants/ModuleConstants"));
|
|
7
7
|
const DataSourceRedux = tslib_1.__importStar(require("../Redux/ActionsReducers/DataSourceRedux"));
|
|
8
8
|
const DataSourceWizard_1 = require("../View/DataSource/Wizard/DataSourceWizard");
|
|
9
|
+
const getObjectTagsViewItems_1 = require("./Utilities/getObjectTagsViewItems");
|
|
9
10
|
class DataSourceModule extends AdaptableModuleBase_1.AdaptableModuleBase {
|
|
10
11
|
constructor(api) {
|
|
11
12
|
super(ModuleConstants.DataSourceModuleId, 'Data Source', 'data-source', 'DataSourcePopup', 'Update the entire data set in AdapTable using pre-populated data sources', api);
|
|
@@ -37,6 +38,7 @@ class DataSourceModule extends AdaptableModuleBase_1.AdaptableModuleBase {
|
|
|
37
38
|
label: 'Description',
|
|
38
39
|
values: [(_a = dataSource.Description) !== null && _a !== void 0 ? _a : 'Not Specified'],
|
|
39
40
|
},
|
|
41
|
+
getObjectTagsViewItems_1.getObjectTagsViewItems(dataSource, this.api),
|
|
40
42
|
],
|
|
41
43
|
abObject: dataSource,
|
|
42
44
|
};
|
|
@@ -31,10 +31,12 @@ export declare class ExportModule extends AdaptableModuleBase implements IExport
|
|
|
31
31
|
toViewAll(): AdaptableObjectView[];
|
|
32
32
|
getViewProperties(): {
|
|
33
33
|
newTooltipText: string;
|
|
34
|
-
actions: import("
|
|
35
|
-
data: Report;
|
|
36
|
-
}>[];
|
|
34
|
+
actions: import("./Interface/IModule").AdaptableModuleViewAction[];
|
|
37
35
|
getDeleteAction: (report: Report) => ExportRedux.ReportDeleteAction;
|
|
38
36
|
getEditWizard(): (props: import("../View/Export/Wizard/NewReportWizard").NewReportWizardProps) => JSX.Element;
|
|
37
|
+
getStatusBarPanelProps: () => {
|
|
38
|
+
content: import("react").FunctionComponent<import("../View/Export/ExportSelector").ExportSelectorProps>;
|
|
39
|
+
triggerActionOnWrapperClick: boolean;
|
|
40
|
+
};
|
|
39
41
|
};
|
|
40
42
|
}
|
|
@@ -17,6 +17,8 @@ const NewReportWizard_1 = require("../View/Export/Wizard/NewReportWizard");
|
|
|
17
17
|
const getExportColumnsViewItems_1 = require("./Utilities/getExportColumnsViewItems");
|
|
18
18
|
const getExportRowsViewItems_1 = require("./Utilities/getExportRowsViewItems");
|
|
19
19
|
const ReportExportDropdown_1 = require("../View/Export/ReportExportDropdown");
|
|
20
|
+
const getObjectTagsViewItems_1 = require("./Utilities/getObjectTagsViewItems");
|
|
21
|
+
const ExportSelector_1 = require("../View/Export/ExportSelector");
|
|
20
22
|
class ExportModule extends AdaptableModuleBase_1.AdaptableModuleBase {
|
|
21
23
|
constructor(api) {
|
|
22
24
|
super(ModuleConstants.ExportModuleId, 'Export', 'export-data', 'ExportPopup', 'Export data from the Grid to numerous locations in numerous formatso', api);
|
|
@@ -212,6 +214,7 @@ class ExportModule extends AdaptableModuleBase_1.AdaptableModuleBase {
|
|
|
212
214
|
name: 'Report',
|
|
213
215
|
values: [report.Name],
|
|
214
216
|
},
|
|
217
|
+
getObjectTagsViewItems_1.getObjectTagsViewItems(report, this.api),
|
|
215
218
|
],
|
|
216
219
|
abObject: report,
|
|
217
220
|
};
|
|
@@ -224,6 +227,7 @@ class ExportModule extends AdaptableModuleBase_1.AdaptableModuleBase {
|
|
|
224
227
|
},
|
|
225
228
|
getExportColumnsViewItems_1.getExportColumnsViewItems(report, this.api),
|
|
226
229
|
getExportRowsViewItems_1.getExportRowsViewItems(report, this.api),
|
|
230
|
+
getObjectTagsViewItems_1.getObjectTagsViewItems(report, this.api),
|
|
227
231
|
],
|
|
228
232
|
abObject: report,
|
|
229
233
|
};
|
|
@@ -239,6 +243,12 @@ class ExportModule extends AdaptableModuleBase_1.AdaptableModuleBase {
|
|
|
239
243
|
getEditWizard() {
|
|
240
244
|
return NewReportWizard_1.NewReportWizard;
|
|
241
245
|
},
|
|
246
|
+
getStatusBarPanelProps: () => {
|
|
247
|
+
return {
|
|
248
|
+
content: ExportSelector_1.ExportSelector,
|
|
249
|
+
triggerActionOnWrapperClick: false,
|
|
250
|
+
};
|
|
251
|
+
},
|
|
242
252
|
};
|
|
243
253
|
}
|
|
244
254
|
}
|
|
@@ -11,7 +11,9 @@ import { AdaptableObject } from '../PredefinedConfig/Common/AdaptableObject';
|
|
|
11
11
|
import { FlashingCellDefinition } from '../PredefinedConfig/FlashingCellState';
|
|
12
12
|
export declare class FlashingCellModule extends AdaptableModuleBase implements IModule {
|
|
13
13
|
constructor(api: AdaptableApi);
|
|
14
|
-
getModuleAdaptableObjects(
|
|
14
|
+
getModuleAdaptableObjects(config?: {
|
|
15
|
+
includeLayoutNotAssociatedObjects?: boolean;
|
|
16
|
+
}): AdaptableObject[];
|
|
15
17
|
getExplicitlyReferencedColumnIds(alertDefinition: FlashingCellDefinition): string[];
|
|
16
18
|
getReferencedNamedQueryNames(alertDefinition: FlashingCellDefinition): string[];
|
|
17
19
|
addColumnMenuItems(column: AdaptableColumn): AdaptableMenuItem[] | undefined;
|
|
@@ -30,4 +32,5 @@ export declare class FlashingCellModule extends AdaptableModuleBase implements I
|
|
|
30
32
|
getDeleteAction: (flashingCellDefinition: FlashingCellDefinition) => FlashingCellRedux.FlashingCellDefinitionDeleteAction;
|
|
31
33
|
getEditWizard: () => (props: import("../View/FlashingCell/Wizard/FlashingCellWizard").FlashingCellWizardProps) => JSX.Element;
|
|
32
34
|
};
|
|
35
|
+
canBeAssociatedWithLayouts(): boolean;
|
|
33
36
|
}
|