@adaptabletools/adaptable 11.1.15 → 11.2.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.
Files changed (196) hide show
  1. package/base.css +2 -0
  2. package/bundle.cjs.js +98 -98
  3. package/index.css +3 -0
  4. package/package.json +2 -2
  5. package/publishTimestamp.d.ts +1 -1
  6. package/publishTimestamp.js +1 -1
  7. package/src/AdaptableOptions/AlertOptions.d.ts +8 -2
  8. package/src/AdaptableOptions/DashboardOptions.d.ts +4 -3
  9. package/src/AdaptableOptions/ExportOptions.d.ts +2 -2
  10. package/src/AdaptableOptions/FilterOptions.d.ts +5 -4
  11. package/src/AdaptableOptions/LayoutOptions.d.ts +56 -10
  12. package/src/AdaptableOptions/ToolPanelOptions.d.ts +4 -3
  13. package/src/AdaptableOptions/UserInterfaceOptions.d.ts +18 -16
  14. package/src/Api/AdaptableApi.d.ts +10 -0
  15. package/src/Api/AlertApi.d.ts +3 -1
  16. package/src/Api/ConditionalStyleApi.d.ts +3 -1
  17. package/src/Api/ConfigApi.d.ts +3 -3
  18. package/src/Api/CustomSortApi.d.ts +3 -1
  19. package/src/Api/EventApi.d.ts +14 -0
  20. package/src/Api/Events/LayoutChanged.d.ts +1 -1
  21. package/src/Api/ExportApi.d.ts +16 -0
  22. package/src/Api/FinanceApi.d.ts +104 -3
  23. package/src/Api/FlashingCellApi.d.ts +3 -1
  24. package/src/Api/FormatColumnApi.d.ts +3 -1
  25. package/src/Api/Implementation/AdaptableApiImpl.d.ts +6 -0
  26. package/src/Api/Implementation/AdaptableApiImpl.js +53 -0
  27. package/src/Api/Implementation/AlertApiImpl.d.ts +3 -1
  28. package/src/Api/Implementation/AlertApiImpl.js +7 -6
  29. package/src/Api/Implementation/ApiBase.d.ts +1 -1
  30. package/src/Api/Implementation/ApiBase.js +5 -2
  31. package/src/Api/Implementation/ConditionalStyleApiImpl.d.ts +3 -1
  32. package/src/Api/Implementation/ConditionalStyleApiImpl.js +5 -4
  33. package/src/Api/Implementation/ConfigApiImpl.js +5 -1
  34. package/src/Api/Implementation/CustomSortApiImpl.d.ts +3 -1
  35. package/src/Api/Implementation/CustomSortApiImpl.js +6 -5
  36. package/src/Api/Implementation/EventApiImpl.d.ts +1 -0
  37. package/src/Api/Implementation/EventApiImpl.js +4 -0
  38. package/src/Api/Implementation/ExportApiImpl.d.ts +3 -0
  39. package/src/Api/Implementation/ExportApiImpl.js +10 -0
  40. package/src/Api/Implementation/FlashingCellApiImpl.d.ts +3 -1
  41. package/src/Api/Implementation/FlashingCellApiImpl.js +8 -6
  42. package/src/Api/Implementation/FormatColumnApiImpl.d.ts +3 -1
  43. package/src/Api/Implementation/FormatColumnApiImpl.js +7 -6
  44. package/src/Api/Implementation/InternalApiImpl.d.ts +14 -5
  45. package/src/Api/Implementation/InternalApiImpl.js +75 -3
  46. package/src/Api/Implementation/PlusMinusApiImpl.d.ts +3 -1
  47. package/src/Api/Implementation/PlusMinusApiImpl.js +6 -8
  48. package/src/Api/Implementation/ScheduleApiImpl.d.ts +17 -6
  49. package/src/Api/Implementation/ScheduleApiImpl.js +25 -12
  50. package/src/Api/Implementation/ShortcutApiImpl.d.ts +3 -1
  51. package/src/Api/Implementation/ShortcutApiImpl.js +5 -4
  52. package/src/Api/Implementation/ToolPanelApiImpl.d.ts +1 -2
  53. package/src/Api/Implementation/ToolPanelApiImpl.js +2 -2
  54. package/src/Api/Implementation/UserInterfaceApiImpl.js +2 -2
  55. package/src/Api/InternalApi.d.ts +14 -7
  56. package/src/Api/LayoutApi.d.ts +4 -6
  57. package/src/Api/PlusMinusApi.d.ts +3 -1
  58. package/src/Api/ScheduleApi.d.ts +20 -6
  59. package/src/Api/ShortcutApi.d.ts +3 -1
  60. package/src/Api/ToolPanelApi.d.ts +1 -2
  61. package/src/PredefinedConfig/AlertState.d.ts +3 -3
  62. package/src/PredefinedConfig/Common/AdaptableButton.d.ts +2 -5
  63. package/src/PredefinedConfig/Common/AdaptableComparerFunction.d.ts +2 -1
  64. package/src/PredefinedConfig/Common/AdaptableForm.d.ts +4 -3
  65. package/src/PredefinedConfig/Common/AdaptableObject.d.ts +18 -1
  66. package/src/PredefinedConfig/Common/AdaptablePredicate.js +9 -0
  67. package/src/PredefinedConfig/Common/BaseContext.d.ts +10 -0
  68. package/src/PredefinedConfig/Common/BaseContext.js +2 -0
  69. package/src/PredefinedConfig/Common/CellSummary.d.ts +3 -3
  70. package/src/PredefinedConfig/Common/FDC3Context.d.ts +9 -9
  71. package/src/PredefinedConfig/Common/Menu.d.ts +4 -13
  72. package/src/PredefinedConfig/Common/SpecialColumnSettings.d.ts +4 -0
  73. package/src/PredefinedConfig/DataSourceState.d.ts +2 -2
  74. package/src/PredefinedConfig/FilterState.d.ts +1 -1
  75. package/src/PredefinedConfig/SystemState.d.ts +1 -0
  76. package/src/Redux/ActionsReducers/PopupRedux.d.ts +5 -5
  77. package/src/Redux/ActionsReducers/SystemRedux.d.ts +5 -0
  78. package/src/Redux/ActionsReducers/SystemRedux.js +11 -1
  79. package/src/Redux/Store/AdaptableStore.d.ts +1 -0
  80. package/src/Redux/Store/AdaptableStore.js +6 -1
  81. package/src/Redux/Store/Interface/IAdaptableStore.d.ts +1 -0
  82. package/src/Strategy/AdaptableModuleBase.d.ts +5 -0
  83. package/src/Strategy/AdaptableModuleBase.js +9 -0
  84. package/src/Strategy/AlertModule.d.ts +4 -1
  85. package/src/Strategy/AlertModule.js +12 -4
  86. package/src/Strategy/CalculatedColumnModule.d.ts +3 -17
  87. package/src/Strategy/CalculatedColumnModule.js +2 -0
  88. package/src/Strategy/ConditionalStyleModule.d.ts +4 -1
  89. package/src/Strategy/ConditionalStyleModule.js +12 -4
  90. package/src/Strategy/CustomSortModule.d.ts +4 -1
  91. package/src/Strategy/CustomSortModule.js +10 -3
  92. package/src/Strategy/DataSourceModule.js +2 -0
  93. package/src/Strategy/ExportModule.d.ts +5 -3
  94. package/src/Strategy/ExportModule.js +10 -0
  95. package/src/Strategy/FlashingCellModule.d.ts +4 -1
  96. package/src/Strategy/FlashingCellModule.js +10 -5
  97. package/src/Strategy/FormatColumnModule.d.ts +4 -1
  98. package/src/Strategy/FormatColumnModule.js +10 -3
  99. package/src/Strategy/FreeTextColumnModule.js +2 -0
  100. package/src/Strategy/Interface/IModule.d.ts +6 -3
  101. package/src/Strategy/Interface/IScheduleModule.d.ts +1 -1
  102. package/src/Strategy/LayoutModule.d.ts +2 -1
  103. package/src/Strategy/LayoutModule.js +35 -2
  104. package/src/Strategy/PlusMinusModule.d.ts +4 -1
  105. package/src/Strategy/PlusMinusModule.js +15 -7
  106. package/src/Strategy/QueryModule.d.ts +2 -8
  107. package/src/Strategy/QueryModule.js +2 -0
  108. package/src/Strategy/ScheduleModule.d.ts +8 -4
  109. package/src/Strategy/ScheduleModule.js +16 -9
  110. package/src/Strategy/ShortcutModule.d.ts +4 -1
  111. package/src/Strategy/ShortcutModule.js +14 -4
  112. package/src/Strategy/StatusBarModule.d.ts +2 -1
  113. package/src/Strategy/StatusBarModule.js +2 -3
  114. package/src/Strategy/Utilities/getAlertBehaviourViewItems.d.ts +2 -2
  115. package/src/Strategy/Utilities/getAlertBehaviourViewItems.js +2 -2
  116. package/src/Strategy/Utilities/getObjectTagsViewItems.d.ts +4 -0
  117. package/src/Strategy/Utilities/getObjectTagsViewItems.js +13 -0
  118. package/src/Utilities/Defaults/DefaultAdaptableOptions.js +2 -1
  119. package/src/Utilities/Emitter.d.ts +1 -0
  120. package/src/Utilities/Emitter.js +14 -0
  121. package/src/Utilities/Extensions/TypeExtensions.d.ts +2 -0
  122. package/src/Utilities/Interface/MessagePopups.d.ts +3 -3
  123. package/src/Utilities/ObjectFactory.d.ts +2 -2
  124. package/src/Utilities/Services/AlertService.js +1 -1
  125. package/src/Utilities/Services/DataService.js +1 -1
  126. package/src/Utilities/Services/Interface/IModuleService.d.ts +1 -1
  127. package/src/Utilities/Services/ModuleService.d.ts +1 -1
  128. package/src/Utilities/Services/ModuleService.js +1 -0
  129. package/src/View/Alert/AlertStatusSubPanel.js +2 -1
  130. package/src/View/Alert/Wizard/AlertWizard.js +9 -0
  131. package/src/View/CalculatedColumn/Wizard/CalculatedColumnSettingsWizardSection.js +9 -4
  132. package/src/View/CalculatedColumn/Wizard/CalculatedColumnWizard.js +9 -0
  133. package/src/View/ColorPicker.d.ts +1 -1
  134. package/src/View/Components/AdaptableDateInput/index.d.ts +1 -1
  135. package/src/View/Components/AdaptableInput/index.d.ts +1 -1
  136. package/src/View/Components/AdaptableObjectList/AdaptableObjectList.js +1 -0
  137. package/src/View/Components/Buttons/ButtonDelete.d.ts +1 -1
  138. package/src/View/Components/FilterForm/FilterForm.js +1 -1
  139. package/src/View/Components/FilterForm/QuickFilterForm.js +11 -7
  140. package/src/View/Components/FilterForm/getDefaultColumnFilterPredicate.d.ts +1 -1
  141. package/src/View/Components/Forms/AdaptableFormControlTextClear.d.ts +1 -1
  142. package/src/View/Components/Panels/PanelWithImage.d.ts +3 -3
  143. package/src/View/Components/Popups/AdaptablePopup/AdaptablePopupModuleView.js +22 -0
  144. package/src/View/Components/Popups/AdaptableToaster.js +12 -1
  145. package/src/View/Components/Popups/FormPopups/FormPopups.d.ts +3 -3
  146. package/src/View/Components/TagValueSelector/index.d.ts +13 -0
  147. package/src/View/Components/TagValueSelector/index.js +22 -0
  148. package/src/View/Components/ToolPanel/AdaptableToolPanel.js +2 -2
  149. package/src/View/ConditionalStyle/Wizard/ConditionalStyleWizard.js +9 -0
  150. package/src/View/CustomSort/Wizard/CustomSortWizard.js +9 -0
  151. package/src/View/DataSource/Wizard/DataSourceSettingsWizard.js +1 -1
  152. package/src/View/DataSource/Wizard/DataSourceWizard.js +10 -0
  153. package/src/View/Export/ExportSelector.d.ts +4 -0
  154. package/src/View/Export/ExportSelector.js +75 -0
  155. package/src/View/Export/ExportViewPanel.js +6 -7
  156. package/src/View/Export/ReportExportDropdown.d.ts +2 -5
  157. package/src/View/Export/Wizard/NewReportWizard.js +9 -0
  158. package/src/View/Export/constants.d.ts +2 -0
  159. package/src/View/Export/constants.js +5 -0
  160. package/src/View/FlashingCell/Wizard/FlashingCellWizard.js +9 -0
  161. package/src/View/FormatColumn/Wizard/FormatColumnWizard.js +9 -0
  162. package/src/View/FreeTextColumn/Wizard/FreeTextColumnWizard.js +9 -0
  163. package/src/View/GridInfo/GridOptionsComponent.d.ts +0 -1
  164. package/src/View/GridInfo/GridOptionsComponent.js +0 -1
  165. package/src/View/Layout/LayoutCloneButton.d.ts +6 -0
  166. package/src/View/Layout/LayoutCloneButton.js +15 -0
  167. package/src/View/Layout/LayoutRadioSelector.d.ts +2 -1
  168. package/src/View/Layout/LayoutRadioSelector.js +1 -1
  169. package/src/View/Layout/LayoutStatusBarSubPanelPopover.js +6 -1
  170. package/src/View/Layout/Wizard/LayoutEditorWizard.d.ts +1 -0
  171. package/src/View/PlusMinus/Wizard/PlusMinusWizard.js +9 -0
  172. package/src/View/Query/Wizard/NamedQueryWizard.js +9 -0
  173. package/src/View/Schedule/Wizard/ScheduleWizard.js +10 -0
  174. package/src/View/Shortcut/Wizard/ShortcutWizard.js +10 -0
  175. package/src/View/SpecialColumnSettingsWizardStep.js +1 -1
  176. package/src/View/StatusBar/StatusBarPopup.js +1 -1
  177. package/src/View/Wizard/ObjectTagsWizardSection.d.ts +8 -0
  178. package/src/View/Wizard/ObjectTagsWizardSection.js +22 -0
  179. package/src/View/Wizard/OnePageAdaptableWizard.d.ts +1 -0
  180. package/src/View/Wizard/OnePageAdaptableWizard.js +12 -5
  181. package/src/agGrid/Adaptable.d.ts +14 -1
  182. package/src/agGrid/Adaptable.js +103 -68
  183. package/src/agGrid/agGridHelper.js +2 -1
  184. package/src/agGrid/createAgStatusPanelComponent.js +1 -0
  185. package/src/components/AdaptableFormComponent/AdaptableFormComponent.d.ts +8 -7
  186. package/src/components/Datepicker/index.d.ts +1 -1
  187. package/src/components/ExpressionEditor/index.js +5 -2
  188. package/src/components/Input/index.d.ts +1 -1
  189. package/src/components/List/ListGroupItem/index.d.ts +1 -1
  190. package/src/components/PopupWithFooter.d.ts +1 -1
  191. package/src/components/Textarea/index.d.ts +1 -1
  192. package/src/metamodel/adaptable.metamodel.d.ts +44 -2
  193. package/src/metamodel/adaptable.metamodel.js +235 -21
  194. package/src/types.d.ts +6 -5
  195. package/version.d.ts +1 -1
  196. package/version.js +1 -1
@@ -34,7 +34,7 @@ export interface InstrumentContext extends FDC3Context {
34
34
  /**
35
35
  * Context type is always `instrument`
36
36
  */
37
- type: 'instrument';
37
+ type: 'fdc3.instrument';
38
38
  /**
39
39
  * Free text name of the Instrument
40
40
  */
@@ -62,7 +62,7 @@ export interface InstrumentListContext extends FDC3Context {
62
62
  /**
63
63
  * Context type is always `instrumentList`
64
64
  */
65
- type: 'instrumentList';
65
+ type: 'fdc3.instrumentList';
66
66
  /**
67
67
  * Free text name of list of Instruments (not set by AdapTable)
68
68
  */
@@ -83,7 +83,7 @@ export interface PositionContext extends FDC3Context {
83
83
  /**
84
84
  * Context type is always `position`
85
85
  */
86
- type: 'position';
86
+ type: 'fdc3.position';
87
87
  /**
88
88
  * The `InstrumentContext` of the relevant Instrument
89
89
  */
@@ -108,7 +108,7 @@ export interface PortfolioContext extends FDC3Context {
108
108
  /**
109
109
  * Context type is always `portfolio`
110
110
  */
111
- type: 'portfolio';
111
+ type: 'fdc3.portfolio';
112
112
  /**
113
113
  * Free text name of portfolio
114
114
  */
@@ -129,7 +129,7 @@ export interface ContactContext extends FDC3Context {
129
129
  /**
130
130
  * Context type is always `contact`
131
131
  */
132
- type: 'contact';
132
+ type: 'fdc3.contact';
133
133
  /**
134
134
  * Free text name of Contact
135
135
  */
@@ -151,7 +151,7 @@ export interface ContactListContext extends FDC3Context {
151
151
  /**
152
152
  * Context type is always `contactList`
153
153
  */
154
- type: 'contactList';
154
+ type: 'fdc3.contactList';
155
155
  /**
156
156
  * Free text name of Contact list
157
157
  */
@@ -172,7 +172,7 @@ export interface OrganizationContext extends FDC3Context {
172
172
  /**
173
173
  * Context type is always `organization`
174
174
  */
175
- type: 'organization';
175
+ type: 'fdc3.organization';
176
176
  /**
177
177
  * Free text name of Organization
178
178
  */
@@ -195,7 +195,7 @@ export interface CountryContext extends FDC3Context {
195
195
  /**
196
196
  * Context type is always `country`
197
197
  */
198
- type: 'country';
198
+ type: 'fdc3.country';
199
199
  /**
200
200
  * Free text name of Country
201
201
  */
@@ -227,4 +227,4 @@ export interface AdaptableFDC3EventInfo extends BaseEventInfo {
227
227
  */
228
228
  context: FDC3Context;
229
229
  }
230
- export declare type ContextType = 'instrument' | 'instrumentList' | 'position' | 'portfolio' | 'contact' | 'contactList' | 'organization' | 'country';
230
+ export declare type ContextType = 'fdc3.instrument' | 'fdc3.instrumentList' | 'fdc3.position' | 'fdc3.portfolio' | 'fdc3.contact' | 'fdc3.contactList' | 'fdc3.organization' | 'fdc3.country';
@@ -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 BaseMenuContext> {
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 BaseMenuContext {
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 BaseMenuContext {
91
+ export interface ContextMenuContext extends BaseContext {
101
92
  /**
102
93
  * Cell that has been clicked; contains cell value
103
94
  */
@@ -50,4 +50,8 @@ export interface SpecialColumnSettings {
50
50
  * Custom column types to be added to AG Grid Column Types when object is created
51
51
  */
52
52
  ColumnTypes?: string[];
53
+ /**
54
+ * Tooltip to show in the Column Header (not cells)
55
+ */
56
+ HeaderToolTip?: string;
53
57
  }
@@ -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 { ButtonContext } from './Common/AdaptableButton';
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<ButtonContext>;
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';
@@ -68,6 +68,7 @@ export interface SystemState extends InternalState, IPushPullState, Glue42State,
68
68
  };
69
69
  };
70
70
  };
71
+ ShowLayoutNotAssociatedObjects: boolean;
71
72
  }
72
73
  export interface ProgressIndicator {
73
74
  active: boolean;
@@ -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, ButtonContext } from '../../types';
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<ButtonContext>;
46
+ Form: AdaptableForm<BaseContext>;
47
47
  FormProps: any;
48
- prepareContext?: (context: ButtonContext) => Promise<ButtonContext> | ButtonContext;
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<ButtonContext>;
92
+ Form: AdaptableForm<BaseContext>;
93
93
  FormProps?: any;
94
- prepareContext?: (context: ButtonContext) => Promise<ButtonContext> | ButtonContext;
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.setUpSechduleJobs();
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(): AdaptableObject[];
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.api.alertApi.getAlertDefinitions().map((alert) => this.toView(alert));
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(): AdaptableObject[];
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
- const conditionalStyles = this.api.conditionalStyleApi.getAllConditionalStyle();
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().map((conditionalStyle) => this.toView(conditionalStyle));
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(): AdaptableObject[];
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().map((customSort) => this.toView(customSort));
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
  };