@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.
Files changed (198) 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 +1 -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 +3 -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/PredefinedConfig/Uuid.js +1 -0
  77. package/src/Redux/ActionsReducers/PopupRedux.d.ts +5 -5
  78. package/src/Redux/ActionsReducers/SystemRedux.d.ts +5 -0
  79. package/src/Redux/ActionsReducers/SystemRedux.js +11 -1
  80. package/src/Redux/Store/AdaptableStore.d.ts +1 -0
  81. package/src/Redux/Store/AdaptableStore.js +6 -1
  82. package/src/Redux/Store/Interface/IAdaptableStore.d.ts +1 -0
  83. package/src/Strategy/AdaptableModuleBase.d.ts +5 -0
  84. package/src/Strategy/AdaptableModuleBase.js +9 -0
  85. package/src/Strategy/AlertModule.d.ts +4 -1
  86. package/src/Strategy/AlertModule.js +12 -4
  87. package/src/Strategy/CalculatedColumnModule.d.ts +3 -17
  88. package/src/Strategy/CalculatedColumnModule.js +2 -0
  89. package/src/Strategy/ConditionalStyleModule.d.ts +4 -1
  90. package/src/Strategy/ConditionalStyleModule.js +12 -4
  91. package/src/Strategy/CustomSortModule.d.ts +4 -1
  92. package/src/Strategy/CustomSortModule.js +10 -3
  93. package/src/Strategy/DataSourceModule.js +2 -0
  94. package/src/Strategy/ExportModule.d.ts +5 -3
  95. package/src/Strategy/ExportModule.js +10 -0
  96. package/src/Strategy/FlashingCellModule.d.ts +4 -1
  97. package/src/Strategy/FlashingCellModule.js +10 -5
  98. package/src/Strategy/FormatColumnModule.d.ts +4 -1
  99. package/src/Strategy/FormatColumnModule.js +10 -3
  100. package/src/Strategy/FreeTextColumnModule.js +2 -0
  101. package/src/Strategy/Interface/IModule.d.ts +6 -3
  102. package/src/Strategy/Interface/IScheduleModule.d.ts +1 -1
  103. package/src/Strategy/LayoutModule.d.ts +2 -1
  104. package/src/Strategy/LayoutModule.js +35 -2
  105. package/src/Strategy/PlusMinusModule.d.ts +4 -1
  106. package/src/Strategy/PlusMinusModule.js +15 -7
  107. package/src/Strategy/QueryModule.d.ts +2 -8
  108. package/src/Strategy/QueryModule.js +2 -0
  109. package/src/Strategy/ScheduleModule.d.ts +8 -4
  110. package/src/Strategy/ScheduleModule.js +16 -9
  111. package/src/Strategy/ShortcutModule.d.ts +4 -1
  112. package/src/Strategy/ShortcutModule.js +14 -4
  113. package/src/Strategy/StatusBarModule.d.ts +2 -1
  114. package/src/Strategy/StatusBarModule.js +2 -3
  115. package/src/Strategy/Utilities/getAlertBehaviourViewItems.d.ts +2 -2
  116. package/src/Strategy/Utilities/getAlertBehaviourViewItems.js +2 -2
  117. package/src/Strategy/Utilities/getObjectTagsViewItems.d.ts +4 -0
  118. package/src/Strategy/Utilities/getObjectTagsViewItems.js +13 -0
  119. package/src/Utilities/Defaults/DefaultAdaptableOptions.js +2 -1
  120. package/src/Utilities/Emitter.d.ts +1 -0
  121. package/src/Utilities/Emitter.js +9 -0
  122. package/src/Utilities/Extensions/TypeExtensions.d.ts +2 -0
  123. package/src/Utilities/Interface/MessagePopups.d.ts +3 -3
  124. package/src/Utilities/ObjectFactory.d.ts +2 -2
  125. package/src/Utilities/Services/AlertService.js +1 -1
  126. package/src/Utilities/Services/DataService.js +1 -1
  127. package/src/Utilities/Services/Interface/IModuleService.d.ts +1 -1
  128. package/src/Utilities/Services/ModuleService.d.ts +1 -1
  129. package/src/Utilities/Services/ModuleService.js +1 -0
  130. package/src/View/Alert/AlertStatusSubPanel.js +2 -1
  131. package/src/View/Alert/Wizard/AlertWizard.js +9 -0
  132. package/src/View/CalculatedColumn/Wizard/CalculatedColumnSettingsWizardSection.js +9 -4
  133. package/src/View/CalculatedColumn/Wizard/CalculatedColumnWizard.js +9 -0
  134. package/src/View/ColorPicker.d.ts +1 -1
  135. package/src/View/Components/AdaptableDateInput/index.d.ts +1 -1
  136. package/src/View/Components/AdaptableInput/index.d.ts +1 -1
  137. package/src/View/Components/AdaptableObjectList/AdaptableObjectList.js +1 -0
  138. package/src/View/Components/Buttons/ButtonDelete.d.ts +1 -1
  139. package/src/View/Components/FilterForm/FilterForm.js +1 -1
  140. package/src/View/Components/FilterForm/QuickFilterForm.js +11 -7
  141. package/src/View/Components/FilterForm/getDefaultColumnFilterPredicate.d.ts +1 -1
  142. package/src/View/Components/Forms/AdaptableFormControlTextClear.d.ts +1 -1
  143. package/src/View/Components/Panels/PanelWithImage.d.ts +3 -3
  144. package/src/View/Components/Popups/AdaptablePopup/AdaptablePopupModuleView.js +22 -0
  145. package/src/View/Components/Popups/AdaptableToaster.js +3 -1
  146. package/src/View/Components/Popups/FormPopups/FormPopups.d.ts +3 -3
  147. package/src/View/Components/TagValueSelector/index.d.ts +13 -0
  148. package/src/View/Components/TagValueSelector/index.js +22 -0
  149. package/src/View/Components/ToolPanel/AdaptableToolPanel.js +2 -2
  150. package/src/View/ConditionalStyle/Wizard/ConditionalStyleWizard.js +9 -0
  151. package/src/View/CustomSort/Wizard/CustomSortWizard.js +9 -0
  152. package/src/View/DataSource/Wizard/DataSourceSettingsWizard.js +1 -1
  153. package/src/View/DataSource/Wizard/DataSourceWizard.js +10 -0
  154. package/src/View/Export/ExportSelector.d.ts +4 -0
  155. package/src/View/Export/ExportSelector.js +75 -0
  156. package/src/View/Export/ExportViewPanel.js +6 -7
  157. package/src/View/Export/ReportExportDropdown.d.ts +2 -5
  158. package/src/View/Export/Wizard/NewReportWizard.js +9 -0
  159. package/src/View/Export/constants.d.ts +2 -0
  160. package/src/View/Export/constants.js +5 -0
  161. package/src/View/FlashingCell/Wizard/FlashingCellWizard.js +9 -0
  162. package/src/View/FormatColumn/Wizard/FormatColumnWizard.js +9 -0
  163. package/src/View/FreeTextColumn/Wizard/FreeTextColumnWizard.js +9 -0
  164. package/src/View/GridInfo/GridOptionsComponent.d.ts +0 -1
  165. package/src/View/GridInfo/GridOptionsComponent.js +0 -1
  166. package/src/View/Layout/LayoutCloneButton.d.ts +6 -0
  167. package/src/View/Layout/LayoutCloneButton.js +15 -0
  168. package/src/View/Layout/LayoutRadioSelector.d.ts +2 -1
  169. package/src/View/Layout/LayoutRadioSelector.js +1 -1
  170. package/src/View/Layout/LayoutStatusBarSubPanelPopover.js +6 -1
  171. package/src/View/Layout/Wizard/LayoutEditorWizard.d.ts +1 -0
  172. package/src/View/PlusMinus/Wizard/PlusMinusWizard.js +9 -0
  173. package/src/View/Query/Wizard/NamedQueryWizard.js +9 -0
  174. package/src/View/Schedule/Wizard/ScheduleWizard.js +10 -0
  175. package/src/View/Shortcut/Wizard/ShortcutWizard.js +10 -0
  176. package/src/View/SpecialColumnSettingsWizardStep.js +1 -1
  177. package/src/View/StatusBar/StatusBarPopup.js +1 -1
  178. package/src/View/Wizard/ObjectTagsWizardSection.d.ts +8 -0
  179. package/src/View/Wizard/ObjectTagsWizardSection.js +22 -0
  180. package/src/View/Wizard/OnePageAdaptableWizard.d.ts +1 -0
  181. package/src/View/Wizard/OnePageAdaptableWizard.js +12 -5
  182. package/src/agGrid/Adaptable.d.ts +14 -1
  183. package/src/agGrid/Adaptable.js +103 -68
  184. package/src/agGrid/agGridHelper.js +2 -1
  185. package/src/agGrid/createAgStatusPanelComponent.js +1 -0
  186. package/src/components/AdaptableFormComponent/AdaptableFormComponent.d.ts +8 -7
  187. package/src/components/Datepicker/index.d.ts +1 -1
  188. package/src/components/ExpressionEditor/index.js +5 -2
  189. package/src/components/Input/index.d.ts +1 -1
  190. package/src/components/List/ListGroupItem/index.d.ts +1 -1
  191. package/src/components/PopupWithFooter.d.ts +1 -1
  192. package/src/components/Textarea/index.d.ts +1 -1
  193. package/src/components/WindowModal/useStacking.js +2 -2
  194. package/src/metamodel/adaptable.metamodel.d.ts +44 -2
  195. package/src/metamodel/adaptable.metamodel.js +229 -21
  196. package/src/types.d.ts +6 -5
  197. package/version.d.ts +1 -1
  198. package/version.js +1 -1
@@ -14,6 +14,7 @@ const getFlashingCellDurationViewItems_1 = require("./Utilities/getFlashingCellD
14
14
  const getFlashingCellStyleViewItems_1 = require("./Utilities/getFlashingCellStyleViewItems");
15
15
  const FlashingCellWizard_1 = require("../View/FlashingCell/Wizard/FlashingCellWizard");
16
16
  const getFlashingTargetViewItems_1 = require("./Utilities/getFlashingTargetViewItems");
17
+ const getObjectTagsViewItems_1 = require("./Utilities/getObjectTagsViewItems");
17
18
  class FlashingCellModule extends AdaptableModuleBase_1.AdaptableModuleBase {
18
19
  constructor(api) {
19
20
  super(ModuleConstants.FlashingCellModuleId, 'Flashing Cell', 'flashing-cell', 'FlashingAlert', 'Flash cells when they change', api);
@@ -40,8 +41,8 @@ class FlashingCellModule extends AdaptableModuleBase_1.AdaptableModuleBase {
40
41
  this.handleDataSourceChanged(cellDataChangedInfo);
41
42
  });
42
43
  }
43
- getModuleAdaptableObjects() {
44
- return this.api.flashingCellApi.getFlashingCellDefinitions();
44
+ getModuleAdaptableObjects(config) {
45
+ return this.api.flashingCellApi.getFlashingCellDefinitions(config);
45
46
  }
46
47
  getExplicitlyReferencedColumnIds(alertDefinition) {
47
48
  const queryExpression = this.api.queryLanguageApi.getAdaptableQueryExpression(alertDefinition.Rule);
@@ -220,14 +221,15 @@ class FlashingCellModule extends AdaptableModuleBase_1.AdaptableModuleBase {
220
221
  getFlashingCellDurationViewItems_1.getFlashingCellDurationViewItems(flashingCell),
221
222
  getFlashingTargetViewItems_1.getFlashingTargetViewItems(flashingCell),
222
223
  getFlashingCellStyleViewItems_1.getFlashingCellStyleViewItems(),
224
+ getObjectTagsViewItems_1.getObjectTagsViewItems(flashingCell, this.api),
223
225
  ],
224
226
  abObject: flashingCell,
225
227
  };
226
228
  }
227
229
  toViewAll() {
228
- return this.api.flashingCellApi
229
- .getFlashingCellDefinitions()
230
- .map((flashingCell) => this.toView(flashingCell));
230
+ return this.getModuleAdaptableObjects({
231
+ includeLayoutNotAssociatedObjects: this.showLayoutNotAssociatedObjects(),
232
+ }).map((flashingCell) => this.toView(flashingCell));
231
233
  }
232
234
  getViewProperties() {
233
235
  return {
@@ -237,5 +239,8 @@ class FlashingCellModule extends AdaptableModuleBase_1.AdaptableModuleBase {
237
239
  getEditWizard: () => FlashingCellWizard_1.FlashingCellWizard,
238
240
  };
239
241
  }
242
+ canBeAssociatedWithLayouts() {
243
+ return true;
244
+ }
240
245
  }
241
246
  exports.FlashingCellModule = FlashingCellModule;
@@ -10,7 +10,9 @@ import { AdaptableObject } from '../PredefinedConfig/Common/AdaptableObject';
10
10
  import { FormatColumnWizard } from '../View/FormatColumn/Wizard/FormatColumnWizard';
11
11
  export declare class FormatColumnModule extends AdaptableModuleBase implements IModule {
12
12
  constructor(api: AdaptableApi);
13
- getModuleAdaptableObjects(): AdaptableObject[];
13
+ getModuleAdaptableObjects(config?: {
14
+ includeLayoutNotAssociatedObjects?: boolean;
15
+ }): AdaptableObject[];
14
16
  getExplicitlyReferencedColumnIds(formatColumn: FormatColumn): string[];
15
17
  hasNamedQueryReferences(): boolean;
16
18
  updateOldConfig(): void;
@@ -25,4 +27,5 @@ export declare class FormatColumnModule extends AdaptableModuleBase implements I
25
27
  getUnSuspendAction: (formatColumn: FormatColumn) => FormatColumnRedux.FormatColumnSuspendAction;
26
28
  getEditWizard(): typeof FormatColumnWizard;
27
29
  };
30
+ canBeAssociatedWithLayouts(): boolean;
28
31
  }
@@ -12,6 +12,7 @@ const getScopeViewItems_1 = require("./Utilities/getScopeViewItems");
12
12
  const FormatColumnFormatWizardSection_1 = require("../View/FormatColumn/Wizard/FormatColumnFormatWizardSection");
13
13
  const getFormatColumnSettingsViewItems_1 = require("./Utilities/getFormatColumnSettingsViewItems");
14
14
  const getFormatColumnStyleViewItems_1 = require("./Utilities/getFormatColumnStyleViewItems");
15
+ const getObjectTagsViewItems_1 = require("./Utilities/getObjectTagsViewItems");
15
16
  class FormatColumnModule extends AdaptableModuleBase_1.AdaptableModuleBase {
16
17
  constructor(api) {
17
18
  super(ModuleConstants.FormatColumnModuleId, 'Format Column', 'format-column', 'FormatColumnPopup', 'Create a column style, display format or cell alignment', api);
@@ -37,8 +38,8 @@ class FormatColumnModule extends AdaptableModuleBase_1.AdaptableModuleBase {
37
38
  }
38
39
  });
39
40
  }
40
- getModuleAdaptableObjects() {
41
- return this.api.formatColumnApi.getAllFormatColumn();
41
+ getModuleAdaptableObjects(config) {
42
+ return this.api.formatColumnApi.getAllFormatColumn(config);
42
43
  }
43
44
  getExplicitlyReferencedColumnIds(formatColumn) {
44
45
  if (this.api.scopeApi.scopeHasColumns(formatColumn.Scope)) {
@@ -249,11 +250,14 @@ class FormatColumnModule extends AdaptableModuleBase_1.AdaptableModuleBase {
249
250
  values: [FormatColumnFormatWizardSection_1.getFormatColumnFormatSummaryValue(formatColumn)],
250
251
  },
251
252
  getFormatColumnSettingsViewItems_1.getFormatColumnSettingsViewItems(formatColumn),
253
+ getObjectTagsViewItems_1.getObjectTagsViewItems(formatColumn, this.api),
252
254
  ],
253
255
  };
254
256
  }
255
257
  toViewAll() {
256
- return this.getModuleAdaptableObjects().map((formatColumn) => this.toView(formatColumn));
258
+ return this.getModuleAdaptableObjects({
259
+ includeLayoutNotAssociatedObjects: this.showLayoutNotAssociatedObjects(),
260
+ }).map((formatColumn) => this.toView(formatColumn));
257
261
  }
258
262
  getViewProperties() {
259
263
  return {
@@ -265,5 +269,8 @@ class FormatColumnModule extends AdaptableModuleBase_1.AdaptableModuleBase {
265
269
  },
266
270
  };
267
271
  }
272
+ canBeAssociatedWithLayouts() {
273
+ return true;
274
+ }
268
275
  }
269
276
  exports.FormatColumnModule = FormatColumnModule;
@@ -6,6 +6,7 @@ const AdaptableModuleBase_1 = require("./AdaptableModuleBase");
6
6
  const ModuleConstants = tslib_1.__importStar(require("../Utilities/Constants/ModuleConstants"));
7
7
  const FreeTextColumnRedux = tslib_1.__importStar(require("../Redux/ActionsReducers/FreeTextColumnRedux"));
8
8
  const FreeTextColumnWizard_1 = require("../View/FreeTextColumn/Wizard/FreeTextColumnWizard");
9
+ const getObjectTagsViewItems_1 = require("./Utilities/getObjectTagsViewItems");
9
10
  class FreeTextColumnModule extends AdaptableModuleBase_1.AdaptableModuleBase {
10
11
  constructor(api) {
11
12
  super(ModuleConstants.FreeTextColumnModuleId, 'Free Text Column', 'freetext-column', 'FreeTextColumnPopup', 'Dynamic column showing custom content (stored in state and not with grid data)', api);
@@ -85,6 +86,7 @@ class FreeTextColumnModule extends AdaptableModuleBase_1.AdaptableModuleBase {
85
86
  label: 'Editor',
86
87
  values: [freeTextColumn.TextEditor],
87
88
  },
89
+ getObjectTagsViewItems_1.getObjectTagsViewItems(freeTextColumn, this.api),
88
90
  ].filter(Boolean),
89
91
  };
90
92
  }
@@ -62,14 +62,16 @@ export interface AdaptableObjectView {
62
62
  */
63
63
  abObject: AdaptableObject;
64
64
  }
65
+ export declare type AdaptableModuleViewAction = React.FunctionComponent<{
66
+ data: AdaptableObject;
67
+ accessLevel: AccessLevel;
68
+ }>;
65
69
  export interface AdaptableModuleView {
66
70
  /**
67
71
  * List of actions.
68
72
  * Allows to add custom actions.
69
73
  */
70
- actions?: React.FunctionComponent<{
71
- data: AdaptableObject;
72
- }>[];
74
+ actions?: AdaptableModuleViewAction[];
73
75
  onOpenEditPopup?: (abObject?: AdaptableObject) => void;
74
76
  getDeleteAction?: (abObject: AdaptableObject) => Redux.Action;
75
77
  getSuspendAction?: (abObject: AdaptableObject) => Redux.Action;
@@ -120,6 +122,7 @@ export interface IModule {
120
122
  getModuleCalculatedColumnReferences(): CalculatedColumn[];
121
123
  getModuleFreeTextColumnReferences(): FreeTextColumn[];
122
124
  getPopupMaxWidth(): number | undefined;
125
+ canBeAssociatedWithLayouts(): boolean;
123
126
  updateOldConfig(): void;
124
127
  /**
125
128
  * The following view options are used to render adaptable objects and
@@ -1,4 +1,4 @@
1
1
  import { IModule } from './IModule';
2
2
  export interface IScheduleModule extends IModule {
3
- setUpSechduleJobs(): void;
3
+ setUpScheduleJobs(): void;
4
4
  }
@@ -35,7 +35,7 @@ export declare class LayoutModule extends AdaptableModuleBase implements IModule
35
35
  getViewProperties(): {
36
36
  actions: import("react").FunctionComponent<{
37
37
  data: Layout;
38
- id?: string;
38
+ accessLevel: import("../types").AccessLevel;
39
39
  }>[];
40
40
  getDeleteAction: (layout: Layout) => LayoutRedux.LayoutDeleteAction;
41
41
  onOpenEditPopup: (layout?: Layout) => void;
@@ -46,4 +46,5 @@ export declare class LayoutModule extends AdaptableModuleBase implements IModule
46
46
  extraActions: import("react").FunctionComponent<{}>[];
47
47
  };
48
48
  };
49
+ handleLayoutChange(): void;
49
50
  }
@@ -9,9 +9,17 @@ const ArrayExtensions_1 = tslib_1.__importDefault(require("../Utilities/Extensio
9
9
  const LayoutRadioSelector_1 = require("../View/Layout/LayoutRadioSelector");
10
10
  const LayoutStatusBarSubPanelPopover_1 = require("../View/Layout/LayoutStatusBarSubPanelPopover");
11
11
  const EditCurrentLayoutButton_1 = require("../View/Layout/EditCurrentLayoutButton");
12
+ const LayoutCloneButton_1 = require("../View/Layout/LayoutCloneButton");
12
13
  class LayoutModule extends AdaptableModuleBase_1.AdaptableModuleBase {
13
14
  constructor(api) {
14
15
  super(ModuleConstants.LayoutModuleId, 'Layout', 'layout', 'LayoutPopup', 'Named sets of column visibility, order, groupings, aggregation, pivots etc.', api);
16
+ this.api.eventApi.on('LayoutChanged', (layoutChangedInfo) => {
17
+ var _a;
18
+ if (layoutChangedInfo.newLayoutState.CurrentLayout !== ((_a = layoutChangedInfo.oldLayoutState) === null || _a === void 0 ? void 0 : _a.CurrentLayout)) {
19
+ // we are interested only if current layout was changed (is different from the previous one)
20
+ this.handleLayoutChange();
21
+ }
22
+ });
15
23
  }
16
24
  getModuleAdaptableObjects() {
17
25
  return this.api.layoutApi.getAllLayout();
@@ -136,7 +144,7 @@ class LayoutModule extends AdaptableModuleBase_1.AdaptableModuleBase {
136
144
  }
137
145
  toView(layout) {
138
146
  var _a, _b, _c, _d, _e, _f, _g;
139
- const maxColumnsToDisplay = (_d = (_c = (_b = (_a = this.api.internalApi.getAdaptableOptions()) === null || _a === void 0 ? void 0 : _a.layoutOptions) === null || _b === void 0 ? void 0 : _b.view) === null || _c === void 0 ? void 0 : _c.maxColumnsToDisplay) !== null && _d !== void 0 ? _d : 10;
147
+ const maxColumnsToDisplay = (_d = (_c = (_b = (_a = this.api.internalApi.getAdaptableOptions()) === null || _a === void 0 ? void 0 : _a.layoutOptions) === null || _b === void 0 ? void 0 : _b.viewOptions) === null || _c === void 0 ? void 0 : _c.maxColumnsToDisplay) !== null && _d !== void 0 ? _d : 10;
140
148
  const columnIdToFriendlyName = (columnId) => {
141
149
  return this.api.columnApi.getFriendlyNameFromColumnId(columnId);
142
150
  };
@@ -181,7 +189,7 @@ class LayoutModule extends AdaptableModuleBase_1.AdaptableModuleBase {
181
189
  }
182
190
  getViewProperties() {
183
191
  return {
184
- actions: [LayoutRadioSelector_1.LayoutRadioSelector],
192
+ actions: [LayoutRadioSelector_1.LayoutRadioSelector, LayoutCloneButton_1.LayoutCloneButton],
185
193
  getDeleteAction: (layout) => {
186
194
  // make sure we do not delete the last layout
187
195
  if (this.getModuleAdaptableObjects().length === 1) {
@@ -211,5 +219,30 @@ class LayoutModule extends AdaptableModuleBase_1.AdaptableModuleBase {
211
219
  },
212
220
  };
213
221
  }
222
+ handleLayoutChange() {
223
+ // update objects associated with the current layout via the LayoutOptions.isObjectAssociatedWithLayout() method
224
+ if (!this.api.internalApi.getAdaptableOptions().layoutOptions.isObjectAvailableInLayout) {
225
+ // no need if no callback implementation is provided
226
+ return;
227
+ }
228
+ // PlusMinus
229
+ this.api.internalApi
230
+ .getModuleService()
231
+ .getModuleById('PlusMinus')
232
+ .checkListenToKeyDown();
233
+ // Shortcut
234
+ this.api.internalApi
235
+ .getModuleService()
236
+ .getModuleById('Shortcut')
237
+ .checkListenToKeyDown();
238
+ // Schedule
239
+ this.api.internalApi
240
+ .getModuleService()
241
+ .getModuleById('Schedule')
242
+ .setUpScheduleJobs();
243
+ // ConditionalStyle, CustomSort, FlashingCell, FormatColumn
244
+ // we need to refresh the column defs, as some configs may have changed
245
+ this.api.internalApi.getAdaptableInstance().setupColumns();
246
+ }
214
247
  }
215
248
  exports.LayoutModule = LayoutModule;
@@ -14,7 +14,9 @@ export declare class PlusMinusModule extends AdaptableModuleBase implements IPlu
14
14
  private shouldHandleKeyDown;
15
15
  private adaptable;
16
16
  constructor(api: AdaptableApi);
17
- getModuleAdaptableObjects(): AdaptableObject[];
17
+ getModuleAdaptableObjects(config?: {
18
+ includeLayoutNotAssociatedObjects?: boolean;
19
+ }): AdaptableObject[];
18
20
  getExplicitlyReferencedColumnIds(plusMinusNudge: PlusMinusNudge): string[];
19
21
  getReferencedNamedQueryNames(plusMinusNudge: PlusMinusNudge): string[];
20
22
  handleAdaptableReady(): void;
@@ -34,4 +36,5 @@ export declare class PlusMinusModule extends AdaptableModuleBase implements IPlu
34
36
  getUnSuspendAction: (plusMinusNudge: PlusMinusNudge) => PlusMinusRedux.PlusMinusNudgeUnSuspendAction;
35
37
  getEditWizard(): import("react").FunctionComponent<import("../View/PlusMinus/Wizard/PlusMinusWizard").PlusMinusWizardProps>;
36
38
  };
39
+ canBeAssociatedWithLayouts(): boolean;
37
40
  }
@@ -12,14 +12,15 @@ const ModuleConstants_1 = require("../Utilities/Constants/ModuleConstants");
12
12
  const getScopeViewItems_1 = require("./Utilities/getScopeViewItems");
13
13
  const PlusMinusWizard_1 = require("../View/PlusMinus/Wizard/PlusMinusWizard");
14
14
  const getRuleViewItems_1 = require("./Utilities/getRuleViewItems");
15
+ const getObjectTagsViewItems_1 = require("./Utilities/getObjectTagsViewItems");
15
16
  class PlusMinusModule extends AdaptableModuleBase_1.AdaptableModuleBase {
16
17
  constructor(api) {
17
18
  super(ModuleConstants.PlusMinusModuleId, 'Plus Minus', 'plus-minus', 'PlusMinusPopup', 'Configure how a cell value will edit when the + or - keys are pressed', api);
18
19
  this.shouldHandleKeyDown = false;
19
20
  this.adaptable = api.internalApi.getAdaptableInstance();
20
21
  }
21
- getModuleAdaptableObjects() {
22
- return this.api.plusMinusApi.getAllPlusMinus();
22
+ getModuleAdaptableObjects(config) {
23
+ return this.api.plusMinusApi.getAllPlusMinus(config);
23
24
  }
24
25
  getExplicitlyReferencedColumnIds(plusMinusNudge) {
25
26
  if (this.api.scopeApi.scopeHasColumns(plusMinusNudge.Scope)) {
@@ -46,13 +47,14 @@ class PlusMinusModule extends AdaptableModuleBase_1.AdaptableModuleBase {
46
47
  }
47
48
  }
48
49
  checkListenToKeyDown() {
49
- if (!this.shouldHandleKeyDown) {
50
+ const oldShouldHandleKeyDown = this.shouldHandleKeyDown;
51
+ const newShouldHandleKeyDown = ArrayExtensions_1.ArrayExtensions.IsNotNullOrEmpty(this.api.plusMinusApi.getAllPlusMinus());
52
+ if (!oldShouldHandleKeyDown && newShouldHandleKeyDown) {
50
53
  this.adaptable._on('KeyDown', (keyDownEvent) => {
51
54
  this.handleKeyDown(keyDownEvent);
52
55
  });
53
56
  }
54
- let plusMinusNudges = this.api.plusMinusApi.getAllPlusMinus();
55
- this.shouldHandleKeyDown = ArrayExtensions_1.ArrayExtensions.IsNotNullOrEmpty(plusMinusNudges);
57
+ this.shouldHandleKeyDown = newShouldHandleKeyDown;
56
58
  }
57
59
  addColumnMenuItems(column) {
58
60
  if (column && this.isModuleEditable() && column.dataType == 'Number') {
@@ -68,7 +70,7 @@ class PlusMinusModule extends AdaptableModuleBase_1.AdaptableModuleBase {
68
70
  }
69
71
  handleKeyDown(keyEvent) {
70
72
  if (this.shouldHandleKeyDown) {
71
- //it's a speacial key so we handle the string representation of the key '
73
+ //it's a special key so we handle the string representation of the key '
72
74
  let keyEventString = Helper_1.Helper.getStringRepresentionFromKey(keyEvent);
73
75
  if (keyEventString == '-' || keyEventString == '+') {
74
76
  let plusMinusNudges = this.api.plusMinusApi.getAllActivePlusMinus();
@@ -197,11 +199,14 @@ class PlusMinusModule extends AdaptableModuleBase_1.AdaptableModuleBase {
197
199
  label: 'Nudge Value',
198
200
  values: [plusMinus.NudgeValue],
199
201
  },
202
+ getObjectTagsViewItems_1.getObjectTagsViewItems(plusMinus, this.api),
200
203
  ].filter(Boolean),
201
204
  };
202
205
  }
203
206
  toViewAll() {
204
- return this.getModuleAdaptableObjects().map((plusMinus) => this.toView(plusMinus));
207
+ return this.getModuleAdaptableObjects({
208
+ includeLayoutNotAssociatedObjects: this.showLayoutNotAssociatedObjects(),
209
+ }).map((plusMinus) => this.toView(plusMinus));
205
210
  }
206
211
  getViewProperties() {
207
212
  return {
@@ -213,5 +218,8 @@ class PlusMinusModule extends AdaptableModuleBase_1.AdaptableModuleBase {
213
218
  },
214
219
  };
215
220
  }
221
+ canBeAssociatedWithLayouts() {
222
+ return true;
223
+ }
216
224
  }
217
225
  exports.PlusMinusModule = PlusMinusModule;
@@ -15,17 +15,11 @@ export declare class QueryModule extends AdaptableModuleBase implements IModule
15
15
  getReferencedNamedQueryNames(namedQuery: NamedQuery): string[];
16
16
  toView(query: NamedQuery): {
17
17
  abObject: NamedQuery;
18
- items: {
19
- name: string;
20
- values: string[];
21
- }[];
18
+ items: import("./Interface/IModule").AdaptableObjectItemView[];
22
19
  };
23
20
  toViewAll(): {
24
21
  abObject: NamedQuery;
25
- items: {
26
- name: string;
27
- values: string[];
28
- }[];
22
+ items: import("./Interface/IModule").AdaptableObjectItemView[];
29
23
  }[];
30
24
  getViewProperties(): {
31
25
  getDeleteAction: (namedQuery: NamedQuery) => QueryRedux.NamedQueryDeleteAction;
@@ -7,6 +7,7 @@ const ModuleConstants = tslib_1.__importStar(require("../Utilities/Constants/Mod
7
7
  const QueryRedux = tslib_1.__importStar(require("../Redux/ActionsReducers/QueryRedux"));
8
8
  const NamedQueryWizard_1 = require("../View/Query/Wizard/NamedQueryWizard");
9
9
  const EditCurrentQueryButton_1 = require("../View/Query/EditCurrentQueryButton");
10
+ const getObjectTagsViewItems_1 = require("./Utilities/getObjectTagsViewItems");
10
11
  class QueryModule extends AdaptableModuleBase_1.AdaptableModuleBase {
11
12
  constructor(api) {
12
13
  super(ModuleConstants.QueryModuleId, 'Query', 'query', 'QueryPopup', 'Run real-time text-based queries using a wealth of powerful functions and operators', api);
@@ -39,6 +40,7 @@ class QueryModule extends AdaptableModuleBase_1.AdaptableModuleBase {
39
40
  name: 'Expression',
40
41
  values: [query.BooleanExpression],
41
42
  },
43
+ getObjectTagsViewItems_1.getObjectTagsViewItems(query, this.api),
42
44
  ],
43
45
  };
44
46
  }
@@ -1,19 +1,22 @@
1
1
  /// <reference types="react" />
2
2
  import { AdaptableModuleBase } from './AdaptableModuleBase';
3
- import { AdaptableObjectView, IModule } from './Interface/IModule';
3
+ import { AdaptableObjectView } from './Interface/IModule';
4
4
  import { AdaptableApi } from '../Api/AdaptableApi';
5
5
  import { BaseSchedule } from '../PredefinedConfig/Common/Schedule';
6
6
  import * as ScheduleRedux from '../Redux/ActionsReducers/ScheduleRedux';
7
- export declare class ScheduleModule extends AdaptableModuleBase implements IModule {
7
+ import { IScheduleModule } from './Interface/IScheduleModule';
8
+ export declare class ScheduleModule extends AdaptableModuleBase implements IScheduleModule {
8
9
  private scheduleJobs;
9
10
  constructor(api: AdaptableApi);
10
11
  handleAdaptableReady(): void;
11
- setUpSechduleJobs(): void;
12
+ setUpScheduleJobs(): void;
12
13
  private addSchedule;
13
14
  private addMidnightRefreshSchedule;
14
15
  private getDateFromSchedule;
15
16
  private clearAllJobs;
16
- getModuleAdaptableObjects(): BaseSchedule[];
17
+ getModuleAdaptableObjects(config?: {
18
+ includeLayoutNotAssociatedObjects?: boolean;
19
+ }): BaseSchedule[];
17
20
  toView(schedule: BaseSchedule): AdaptableObjectView;
18
21
  toViewAll(): AdaptableObjectView[];
19
22
  getViewProperties(): {
@@ -26,4 +29,5 @@ export declare class ScheduleModule extends AdaptableModuleBase implements IModu
26
29
  getUnSuspendAction: (schedule: BaseSchedule) => ScheduleRedux.Glue42ScheduleUnSuspendAction | ScheduleRedux.OpenFinScheduleUnSuspendAction | ScheduleRedux.IPushPullScheduleUnSuspendAction | ScheduleRedux.ReminderScheduleUnSuspendAction | ScheduleRedux.ReportScheduleUnSuspendAction;
27
30
  getEditWizard(): import("react").FunctionComponent<import("../View/Schedule/Wizard/ScheduleWizard").ScheduleWizardProps>;
28
31
  };
32
+ canBeAssociatedWithLayouts(): boolean;
29
33
  }
@@ -10,6 +10,7 @@ const ScheduleWizard_1 = require("../View/Schedule/Wizard/ScheduleWizard");
10
10
  const ScheduleSettingsSummary_1 = require("../View/Schedule/Wizard/ScheduleSettingsWizard/ScheduleSettingsSummary");
11
11
  const UIHelper_1 = tslib_1.__importDefault(require("../View/UIHelper"));
12
12
  const ScheduleRedux = tslib_1.__importStar(require("../Redux/ActionsReducers/ScheduleRedux"));
13
+ const getObjectTagsViewItems_1 = require("./Utilities/getObjectTagsViewItems");
13
14
  const dateTimeouts = {};
14
15
  const NodeSchedule = {
15
16
  scheduleJob: (date, fn) => {
@@ -39,9 +40,9 @@ class ScheduleModule extends AdaptableModuleBase_1.AdaptableModuleBase {
39
40
  this.addMidnightRefreshSchedule();
40
41
  }
41
42
  handleAdaptableReady() {
42
- this.setUpSechduleJobs();
43
+ this.setUpScheduleJobs();
43
44
  }
44
- setUpSechduleJobs() {
45
+ setUpScheduleJobs() {
45
46
  this.clearAllJobs();
46
47
  //add schedules
47
48
  this.api.scheduleApi
@@ -120,20 +121,20 @@ class ScheduleModule extends AdaptableModuleBase_1.AdaptableModuleBase {
120
121
  });
121
122
  this.scheduleJobs = [];
122
123
  }
123
- getModuleAdaptableObjects() {
124
+ getModuleAdaptableObjects(config) {
124
125
  const entitlementService = this.api.internalApi.getEntitlementService();
125
126
  const accessLevel = entitlementService.getEntitlementAccessLevelForModule(this.moduleInfo.ModuleName);
126
127
  const exportAcessLevel = entitlementService.getEntitlementAccessLevelForModule(ModuleConstants.ExportModuleId);
127
128
  let allSchedules = [];
128
129
  if (accessLevel !== 'Hidden') {
129
- allSchedules.push(...this.api.scheduleApi.getAllReminderSchedule());
130
+ allSchedules.push(...this.api.scheduleApi.getAllReminderSchedule(config));
130
131
  }
131
132
  if (exportAcessLevel !== 'Hidden') {
132
- allSchedules.push(...this.api.scheduleApi.getAllReportSchedule());
133
+ allSchedules.push(...this.api.scheduleApi.getAllReportSchedule(config));
133
134
  }
134
- allSchedules.push(...this.api.scheduleApi.getAllIPushPullSchedule());
135
- allSchedules.push(...this.api.scheduleApi.getAllGlue42Schedule());
136
- allSchedules.push(...this.api.scheduleApi.getAllOpenFinSchedule());
135
+ allSchedules.push(...this.api.scheduleApi.getAllIPushPullSchedule(config));
136
+ allSchedules.push(...this.api.scheduleApi.getAllGlue42Schedule(config));
137
+ allSchedules.push(...this.api.scheduleApi.getAllOpenFinSchedule(config));
137
138
  return allSchedules;
138
139
  }
139
140
  toView(schedule) {
@@ -148,11 +149,14 @@ class ScheduleModule extends AdaptableModuleBase_1.AdaptableModuleBase {
148
149
  name: 'Schedule',
149
150
  values: [UIHelper_1.default.getScheduleDescription(schedule.Schedule)],
150
151
  },
152
+ getObjectTagsViewItems_1.getObjectTagsViewItems(schedule, this.api),
151
153
  ],
152
154
  };
153
155
  }
154
156
  toViewAll() {
155
- return this.getModuleAdaptableObjects().map((schedule) => this.toView(schedule));
157
+ return this.getModuleAdaptableObjects({
158
+ includeLayoutNotAssociatedObjects: this.showLayoutNotAssociatedObjects(),
159
+ }).map((schedule) => this.toView(schedule));
156
160
  }
157
161
  getViewProperties() {
158
162
  const entitlementService = this.api.internalApi.getEntitlementService();
@@ -262,5 +266,8 @@ class ScheduleModule extends AdaptableModuleBase_1.AdaptableModuleBase {
262
266
  },
263
267
  };
264
268
  }
269
+ canBeAssociatedWithLayouts() {
270
+ return true;
271
+ }
265
272
  }
266
273
  exports.ScheduleModule = ScheduleModule;
@@ -11,7 +11,9 @@ export declare class ShortcutModule extends AdaptableModuleBase implements IShor
11
11
  private shouldHandleKeyDown;
12
12
  private adaptable;
13
13
  constructor(api: AdaptableApi);
14
- getModuleAdaptableObjects(): AdaptableObject[];
14
+ getModuleAdaptableObjects(config?: {
15
+ includeLayoutNotAssociatedObjects?: boolean;
16
+ }): AdaptableObject[];
15
17
  hasNamedQueryReferences(): boolean;
16
18
  getTeamSharingAction(): TeamSharingImportInfo<Shortcut>;
17
19
  handleAdaptableReady(): void;
@@ -26,4 +28,5 @@ export declare class ShortcutModule extends AdaptableModuleBase implements IShor
26
28
  getUnSuspendAction: (shortcut: Shortcut) => ShortcutRedux.ShortcutDeleteAction;
27
29
  getEditWizard(): import("react").FunctionComponent<import("../View/Shortcut/Wizard/ShortcutWizard").ShortcutWizardProps>;
28
30
  };
31
+ canBeAssociatedWithLayouts(): boolean;
29
32
  }
@@ -11,14 +11,15 @@ const StringExtensions_1 = tslib_1.__importDefault(require("../Utilities/Extensi
11
11
  const ShortcutWizard_1 = require("../View/Shortcut/Wizard/ShortcutWizard");
12
12
  const getScopeViewItems_1 = require("./Utilities/getScopeViewItems");
13
13
  const getShortcutSettingsViewItems_1 = require("./Utilities/getShortcutSettingsViewItems");
14
+ const getObjectTagsViewItems_1 = require("./Utilities/getObjectTagsViewItems");
14
15
  class ShortcutModule extends AdaptableModuleBase_1.AdaptableModuleBase {
15
16
  constructor(api) {
16
17
  super(ModuleConstants.ShortcutModuleId, 'Shortcut', 'shortcut', 'ShortcutPopup', 'Set up rules so cells update mathematically when keys are pressed in numeric cells', api);
17
18
  this.shouldHandleKeyDown = false;
18
19
  this.adaptable = api.internalApi.getAdaptableInstance();
19
20
  }
20
- getModuleAdaptableObjects() {
21
- return this.api.shortcutApi.getAllShortcut();
21
+ getModuleAdaptableObjects(config) {
22
+ return this.api.shortcutApi.getAllShortcut(config);
22
23
  }
23
24
  hasNamedQueryReferences() {
24
25
  return false;
@@ -74,11 +75,17 @@ class ShortcutModule extends AdaptableModuleBase_1.AdaptableModuleBase {
74
75
  toView(shortcut) {
75
76
  return {
76
77
  abObject: shortcut,
77
- items: [getScopeViewItems_1.getScopeViewItems(shortcut.Scope, this.api), getShortcutSettingsViewItems_1.getShortcutSettingsViewItems(shortcut)],
78
+ items: [
79
+ getScopeViewItems_1.getScopeViewItems(shortcut.Scope, this.api),
80
+ getShortcutSettingsViewItems_1.getShortcutSettingsViewItems(shortcut),
81
+ getObjectTagsViewItems_1.getObjectTagsViewItems(shortcut, this.api),
82
+ ],
78
83
  };
79
84
  }
80
85
  toViewAll() {
81
- return this.getModuleAdaptableObjects().map((shortcut) => this.toView(shortcut));
86
+ return this.getModuleAdaptableObjects({
87
+ includeLayoutNotAssociatedObjects: this.showLayoutNotAssociatedObjects(),
88
+ }).map((shortcut) => this.toView(shortcut));
82
89
  }
83
90
  getViewProperties() {
84
91
  return {
@@ -90,5 +97,8 @@ class ShortcutModule extends AdaptableModuleBase_1.AdaptableModuleBase {
90
97
  },
91
98
  };
92
99
  }
100
+ canBeAssociatedWithLayouts() {
101
+ return true;
102
+ }
93
103
  }
94
104
  exports.ShortcutModule = ShortcutModule;
@@ -1,8 +1,9 @@
1
1
  import { AdaptableModuleBase } from './AdaptableModuleBase';
2
2
  import { IModule } from './Interface/IModule';
3
3
  import { AdaptableApi } from '../Api/AdaptableApi';
4
+ import { GridOptions } from '@ag-grid-community/all-modules';
4
5
  export declare class StatusBarModule extends AdaptableModuleBase implements IModule {
5
6
  constructor(api: AdaptableApi);
6
- syncStateWithOptions(): void;
7
+ syncStateWithOptions(agGridAdaptablePanels: GridOptions['statusBar']['statusPanels']): void;
7
8
  isModuleAvailable(): boolean;
8
9
  }
@@ -8,8 +8,7 @@ class StatusBarModule extends AdaptableModuleBase_1.AdaptableModuleBase {
8
8
  constructor(api) {
9
9
  super(ModuleConstants.StatusBarModuleId, 'Status Bar', 'statusbar', 'StatusBarPopup', 'Configure AdapTable Status Bar', api);
10
10
  }
11
- syncStateWithOptions() {
12
- const agGridStatusPanels = this.api.statusBarApi.getAgGridStatusPanels();
11
+ syncStateWithOptions(agGridAdaptablePanels) {
13
12
  const statusPanelsState = this.api.statusBarApi.getStatusPanels();
14
13
  /**
15
14
  * Grid config determines how many adaptable status panels are rendered.
@@ -17,7 +16,7 @@ class StatusBarModule extends AdaptableModuleBase_1.AdaptableModuleBase {
17
16
  * - if a status panel is removed from ag-grid, it's sub-panels are made available;
18
17
  * - if a new status panel is added it is added to state with an empty list
19
18
  */
20
- const newStatusPanelsState = agGridStatusPanels.map((agGridStatusPanel) => {
19
+ const newStatusPanelsState = agGridAdaptablePanels.map((agGridStatusPanel) => {
21
20
  let statusPanelState = statusPanelsState.find((statusPanel) => statusPanel.Key === agGridStatusPanel.key);
22
21
  // no state found
23
22
  if (!statusPanelState) {
@@ -1,6 +1,6 @@
1
1
  import * as React from 'react';
2
- import { AlertDefinition } from '../../../types';
3
- export declare const getAlertBehaviourViewItems: () => {
2
+ import { AdaptableApi, AlertDefinition } from '../../../types';
3
+ export declare const getAlertBehaviourViewItems: (api: AdaptableApi) => {
4
4
  name: string;
5
5
  view: React.FunctionComponent<{
6
6
  data: AlertDefinition;
@@ -7,9 +7,9 @@ const BehaviourView = (props) => {
7
7
  const adaptable = AdaptableContext_1.useAdaptable();
8
8
  return AlertBehaviourWizardSection_1.renderAlertBehaviourSummary(props.data, adaptable.api, true);
9
9
  };
10
- exports.getAlertBehaviourViewItems = () => {
10
+ exports.getAlertBehaviourViewItems = (api) => {
11
11
  return {
12
- name: AdaptableContext_1.useAdaptable().api.internalApi.getCorrectEnglishVariant('Behaviour'),
12
+ name: api.internalApi.getCorrectEnglishVariant('Behaviour'),
13
13
  view: BehaviourView,
14
14
  };
15
15
  };
@@ -0,0 +1,4 @@
1
+ import { AdaptableObject } from '../../PredefinedConfig/Common/AdaptableObject';
2
+ import { AdaptableApi } from '../../Api/AdaptableApi';
3
+ import { AdaptableObjectItemView } from '../Interface/IModule';
4
+ export declare const getObjectTagsViewItems: (object: AdaptableObject, api: AdaptableApi) => AdaptableObjectItemView;
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getObjectTagsViewItems = void 0;
4
+ exports.getObjectTagsViewItems = (object, api) => {
5
+ var _a;
6
+ if (!api.internalApi.shouldDisplayTagSections()) {
7
+ return;
8
+ }
9
+ return {
10
+ name: 'Tags',
11
+ values: (_a = object === null || object === void 0 ? void 0 : object.Tags) === null || _a === void 0 ? void 0 : _a.map((tag) => tag.label),
12
+ };
13
+ };
@@ -25,6 +25,7 @@ exports.DefaultAdaptableOptions = {
25
25
  maxAlertsInStore: 20,
26
26
  cellHighlightDuration: 2000,
27
27
  rowHighlightDuration: 4000,
28
+ statusbarHighlightDuration: 2000,
28
29
  dataChangeDetectionPolicy: 'rawValue',
29
30
  actionHandlers: undefined,
30
31
  },
@@ -133,7 +134,7 @@ exports.DefaultAdaptableOptions = {
133
134
  autoSizeColumnsInLayout: false,
134
135
  autoSizeColumnsInPivotLayout: false,
135
136
  createDefaultLayout: false,
136
- view: {
137
+ viewOptions: {
137
138
  maxColumnsToDisplay: 10,
138
139
  },
139
140
  },
@@ -4,6 +4,7 @@ export declare type EmitterAnyCallback = (eventName: string, data?: any) => any;
4
4
  declare class Emittery {
5
5
  static mixin(emitteryPropertyName: string, methodNames: string[]): (target: any) => any;
6
6
  constructor();
7
+ destroy(): void;
7
8
  on(eventName: string, listener: EmitterCallback): any;
8
9
  off(eventName: string, listener: EmitterCallback): void;
9
10
  once(eventName: string): Promise<unknown>;