@adaptabletools/adaptable 10.0.4-canary.5 → 11.0.0-canary.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (179) hide show
  1. package/base.css +1 -5
  2. package/bundle.cjs.js +115 -113
  3. package/index.css +1 -7
  4. package/package.json +2 -2
  5. package/publishTimestamp.d.ts +1 -1
  6. package/publishTimestamp.js +1 -1
  7. package/src/AdaptableInterfaces/IAdaptable.d.ts +9 -3
  8. package/src/AdaptableOptions/AdaptableOptions.d.ts +13 -2
  9. package/src/AdaptableOptions/ContainerOptions.d.ts +0 -7
  10. package/src/AdaptableOptions/DashboardOptions.d.ts +4 -7
  11. package/src/AdaptableOptions/FlashingCellOptions.d.ts +31 -0
  12. package/src/AdaptableOptions/{ChartPluginOptions.js → FlashingCellOptions.js} +0 -0
  13. package/src/AdaptableOptions/GeneralOptions.d.ts +1 -1
  14. package/src/AdaptableOptions/MenuOptions.d.ts +2 -2
  15. package/src/AdaptableOptions/NotificationsOptions.d.ts +0 -7
  16. package/src/AdaptableOptions/SettingsPanelOptions.d.ts +14 -2
  17. package/src/AdaptableOptions/ToolPanelOptions.d.ts +0 -14
  18. package/src/AdaptableOptions/UserInterfaceOptions.d.ts +5 -0
  19. package/src/Api/AdaptableApi.d.ts +6 -6
  20. package/src/Api/ChartingApi.d.ts +9 -0
  21. package/src/Api/{ChartApi.js → ChartingApi.js} +0 -0
  22. package/src/Api/ColumnApi.d.ts +11 -1
  23. package/src/Api/ConfigApi.d.ts +0 -12
  24. package/src/Api/EventApi.d.ts +3 -3
  25. package/src/Api/Events/AdaptableReady.d.ts +1 -1
  26. package/src/Api/Events/FlashingCellDisplayed.d.ts +2 -2
  27. package/src/Api/FlashingCellApi.d.ts +35 -24
  28. package/src/Api/Implementation/AdaptableApiImpl.d.ts +2 -2
  29. package/src/Api/Implementation/AdaptableApiImpl.js +2 -2
  30. package/src/Api/Implementation/CalculatedColumnApiImpl.js +1 -1
  31. package/src/Api/Implementation/ChartingApiImpl.d.ts +5 -0
  32. package/src/Api/Implementation/ChartingApiImpl.js +10 -0
  33. package/src/Api/Implementation/ColumnApiImpl.d.ts +3 -1
  34. package/src/Api/Implementation/ColumnApiImpl.js +9 -3
  35. package/src/Api/Implementation/ConfigApiImpl.d.ts +0 -4
  36. package/src/Api/Implementation/ConfigApiImpl.js +0 -16
  37. package/src/Api/Implementation/FlashingCellApiImpl.d.ts +8 -4
  38. package/src/Api/Implementation/FlashingCellApiImpl.js +39 -24
  39. package/src/Api/Implementation/FreeTextColumnApiImpl.js +1 -1
  40. package/src/Api/Implementation/GridApiImpl.js +1 -1
  41. package/src/Api/Implementation/InternalApiImpl.d.ts +0 -4
  42. package/src/Api/Implementation/InternalApiImpl.js +1 -7
  43. package/src/Api/Implementation/PluginsApiImpl.d.ts +0 -2
  44. package/src/Api/Implementation/PluginsApiImpl.js +0 -6
  45. package/src/Api/Implementation/PlusMinusApiImpl.js +1 -1
  46. package/src/Api/Implementation/QueryApiImpl.js +1 -1
  47. package/src/Api/Implementation/ToolPanelApiImpl.js +2 -2
  48. package/src/Api/InternalApi.d.ts +0 -4
  49. package/src/Api/PluginsApi.d.ts +0 -2
  50. package/src/PredefinedConfig/AdaptableState.d.ts +0 -4
  51. package/src/PredefinedConfig/Common/AdaptablePredicate.d.ts +4 -4
  52. package/src/PredefinedConfig/Common/AdaptablePredicate.js +38 -38
  53. package/src/PredefinedConfig/Common/Enums.js +1 -0
  54. package/src/PredefinedConfig/Common/Menu.d.ts +15 -19
  55. package/src/PredefinedConfig/Common/SpecialColumnSettings.d.ts +4 -0
  56. package/src/PredefinedConfig/Common/Types.d.ts +5 -5
  57. package/src/PredefinedConfig/Common/Types.js +0 -2
  58. package/src/PredefinedConfig/FlashingCellState.d.ts +14 -19
  59. package/src/PredefinedConfig/PredefinedConfig.d.ts +0 -10
  60. package/src/PredefinedConfig/SystemState.d.ts +0 -4
  61. package/src/PredefinedConfig/ThemeState.d.ts +2 -1
  62. package/src/Redux/ActionsReducers/DashboardRedux.js +1 -1
  63. package/src/Redux/ActionsReducers/PopupRedux.d.ts +0 -2
  64. package/src/Redux/ActionsReducers/SystemRedux.d.ts +0 -12
  65. package/src/Redux/ActionsReducers/SystemRedux.js +1 -21
  66. package/src/Redux/ActionsReducers/ToolPanelRedux.js +1 -2
  67. package/src/Redux/Store/AdaptableStore.js +10 -20
  68. package/src/Strategy/AdaptableModuleBase.d.ts +1 -1
  69. package/src/Strategy/AdaptableModuleBase.js +0 -3
  70. package/src/Strategy/AlertModule.js +1 -1
  71. package/src/Strategy/CalculatedColumnModule.js +17 -12
  72. package/src/Strategy/ChartingModule.d.ts +7 -0
  73. package/src/Strategy/ChartingModule.js +15 -0
  74. package/src/Strategy/ConditionalStyleModule.js +1 -1
  75. package/src/Strategy/FilterModule.js +3 -2
  76. package/src/Strategy/FlashingCellModule.js +4 -4
  77. package/src/Strategy/FormatColumnModule.js +2 -2
  78. package/src/Strategy/Interface/IModule.d.ts +0 -1
  79. package/src/Strategy/LayoutModule.js +15 -3
  80. package/src/Strategy/QueryModule.d.ts +1 -1
  81. package/src/Strategy/QueryModule.js +1 -3
  82. package/src/Strategy/SetingsPanelModule.d.ts +1 -0
  83. package/src/Strategy/SetingsPanelModule.js +7 -1
  84. package/src/Strategy/Utilities/getFlashingTargetViewItems.d.ts +5 -0
  85. package/src/Strategy/Utilities/getFlashingTargetViewItems.js +9 -0
  86. package/src/Strategy/Utilities/getFormatColumnStyleViewItems.d.ts +3 -0
  87. package/src/Strategy/Utilities/getFormatColumnStyleViewItems.js +10 -0
  88. package/src/Utilities/Constants/ConfigConstants.d.ts +0 -1
  89. package/src/Utilities/Constants/ConfigConstants.js +1 -2
  90. package/src/Utilities/Constants/GeneralConstants.d.ts +0 -9
  91. package/src/Utilities/Constants/GeneralConstants.js +1 -12
  92. package/src/Utilities/Constants/ModuleConstants.d.ts +1 -2
  93. package/src/Utilities/Constants/ModuleConstants.js +2 -3
  94. package/src/Utilities/Defaults/DefaultAdaptableOptions.js +19 -18
  95. package/src/Utilities/Defaults/DefaultSettingsPanel.d.ts +2 -1
  96. package/src/Utilities/Helpers/AdaptableHelper.js +2 -2
  97. package/src/Utilities/Interface/MessagePopups.d.ts +0 -3
  98. package/src/Utilities/ObjectFactory.d.ts +0 -10
  99. package/src/Utilities/ObjectFactory.js +2 -65
  100. package/src/Utilities/Services/EntitlementService.js +1 -1
  101. package/src/Utilities/Services/ModuleService.js +7 -11
  102. package/src/View/AdaptableView.js +1 -7
  103. package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/ColumnsList.d.ts +4 -3
  104. package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/ColumnsList.js +2 -1
  105. package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/ConfigurationForm.js +9 -9
  106. package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/index.js +3 -3
  107. package/src/View/AdaptableWizardView/index.js +1 -1
  108. package/src/View/Alert/AlertEmptyView.js +1 -1
  109. package/src/View/Alert/Wizard/AlertRulesWizardSection.d.ts +1 -0
  110. package/src/View/Alert/Wizard/AlertWizard.js +3 -3
  111. package/src/View/Alert/Wizard/BaseAlertRulesWizardSection.d.ts +1 -0
  112. package/src/View/Alert/Wizard/BaseAlertRulesWizardSection.js +4 -1
  113. package/src/View/CalculatedColumn/Utilities/getCalculatedColumnSettingTags.js +0 -1
  114. package/src/View/CalculatedColumn/Wizard/CalculatedColumnSettingsWizardSection.d.ts +1 -0
  115. package/src/View/CalculatedColumn/Wizard/CalculatedColumnSettingsWizardSection.js +1 -1
  116. package/src/View/CalculatedColumn/Wizard/CalculatedColumnWizard.js +2 -1
  117. package/src/View/Components/ModuleValueSelector/index.d.ts +3 -1
  118. package/src/View/Components/ModuleValueSelector/index.js +1 -1
  119. package/src/View/Components/NewScopeComponent.js +1 -1
  120. package/src/View/Components/Popups/AdaptablePopup/AdaptablePopup.js +5 -4
  121. package/src/View/Components/ToolPanel/AdaptableToolPanel.js +45 -80
  122. package/src/View/Components/ToolPanel/ToolPanelPopup.js +8 -1
  123. package/src/View/Components/ValueSelector/index.d.ts +1 -0
  124. package/src/View/Components/ValueSelector/index.js +2 -2
  125. package/src/View/Dashboard/Dashboard.js +11 -34
  126. package/src/View/Dashboard/DashboardPopup.js +22 -14
  127. package/src/View/DataChangeHistory/DataChangeHistoryGrid.js +3 -2
  128. package/src/View/FlashingCell/Wizard/FlashingCellDurationWizardSection.js +1 -1
  129. package/src/View/FlashingCell/Wizard/FlashingCellRulesWizardSection.js +6 -6
  130. package/src/View/FlashingCell/Wizard/FlashingCellWizard.js +1 -3
  131. package/src/View/FlashingCell/Wizard/isValidFlashingCellRules.js +1 -1
  132. package/src/View/GridInfo/GridInfoPopup.js +3 -2
  133. package/src/View/Query/Wizard/NamedQueryWizard.js +10 -7
  134. package/src/View/QuickSearch/QuickSearchPopup.js +1 -1
  135. package/src/View/Shortcut/shortcutKeys.js +0 -1
  136. package/src/View/UIHelper.d.ts +0 -4
  137. package/src/View/UIHelper.js +1 -34
  138. package/src/agGrid/Adaptable.d.ts +10 -5
  139. package/src/agGrid/Adaptable.js +59 -49
  140. package/src/agGrid/agGridHelper.d.ts +1 -2
  141. package/src/agGrid/agGridHelper.js +7 -4
  142. package/src/agGrid/agGridMenuHelper.js +11 -7
  143. package/src/components/ApplicationIcon.d.ts +1 -1
  144. package/src/components/icons/column-add.d.ts +3 -0
  145. package/src/components/icons/column-add.js +10 -0
  146. package/src/components/icons/index.js +2 -0
  147. package/src/metamodel/adaptable.metamodel.d.ts +58 -91
  148. package/src/metamodel/adaptable.metamodel.js +239 -288
  149. package/src/types.d.ts +4 -7
  150. package/version.d.ts +1 -1
  151. package/version.js +1 -1
  152. package/src/AdaptableOptions/ChartPluginOptions.d.ts +0 -20
  153. package/src/Api/ChartApi.d.ts +0 -20
  154. package/src/Api/Implementation/SparklineColumnApiImpl.d.ts +0 -9
  155. package/src/Api/Implementation/SparklineColumnApiImpl.js +0 -24
  156. package/src/Api/SparklineColumnApi.d.ts +0 -23
  157. package/src/Api/SparklineColumnApi.js +0 -2
  158. package/src/PredefinedConfig/ChartState.d.ts +0 -144
  159. package/src/PredefinedConfig/ChartState.js +0 -2
  160. package/src/PredefinedConfig/Common/ChartEnums.d.ts +0 -123
  161. package/src/PredefinedConfig/Common/ChartEnums.js +0 -152
  162. package/src/PredefinedConfig/SparklineColumnState.d.ts +0 -40
  163. package/src/PredefinedConfig/SparklineColumnState.js +0 -2
  164. package/src/Redux/ActionsReducers/SparklineColumnRedux.d.ts +0 -35
  165. package/src/Redux/ActionsReducers/SparklineColumnRedux.js +0 -70
  166. package/src/Utilities/Defaults/DefaultCategoryChartProperties.d.ts +0 -2
  167. package/src/Utilities/Defaults/DefaultCategoryChartProperties.js +0 -56
  168. package/src/Utilities/Defaults/DefaultPieChartProperties.d.ts +0 -2
  169. package/src/Utilities/Defaults/DefaultPieChartProperties.js +0 -13
  170. package/src/Utilities/Defaults/DefaultSparklinesChartProperties.d.ts +0 -2
  171. package/src/Utilities/Defaults/DefaultSparklinesChartProperties.js +0 -25
  172. package/src/View/Components/Panels/PanelWithIImageThreeButtons.d.ts +0 -11
  173. package/src/View/Components/Panels/PanelWithIImageThreeButtons.js +0 -28
  174. package/src/View/Components/Popups/AdaptableChart.d.ts +0 -18
  175. package/src/View/Components/Popups/AdaptableChart.js +0 -40
  176. package/src/View/Components/SharedProps/ChartDisplayPopupPropsBase.d.ts +0 -7
  177. package/src/View/Components/SharedProps/ChartDisplayPopupPropsBase.js +0 -2
  178. package/src/components/ChartContainer/index.d.ts +0 -15
  179. package/src/components/ChartContainer/index.js +0 -22
@@ -23,7 +23,6 @@ const PlusMinusApiImpl_1 = require("./PlusMinusApiImpl");
23
23
  const QuickSearchApiImpl_1 = require("./QuickSearchApiImpl");
24
24
  const ShortcutApiImpl_1 = require("./ShortcutApiImpl");
25
25
  const SmartEditApiImpl_1 = require("./SmartEditApiImpl");
26
- const SparklineColumnApiImpl_1 = require("./SparklineColumnApiImpl");
27
26
  const FilterApiImpl_1 = require("./FilterApiImpl");
28
27
  const SystemStatusApiImpl_1 = require("./SystemStatusApiImpl");
29
28
  const ThemeApiImpl_1 = require("./ThemeApiImpl");
@@ -38,6 +37,7 @@ const ScopeApiImpl_1 = require("./ScopeApiImpl");
38
37
  const DataChangeHistoryApiImpl_1 = require("./DataChangeHistoryApiImpl");
39
38
  const QueryLanguageApiImpl_1 = require("./QueryLanguageApiImpl");
40
39
  const FlashingCellApiImpl_1 = require("./FlashingCellApiImpl");
40
+ const ChartingApiImpl_1 = require("./ChartingApiImpl");
41
41
  class AdaptableApiImpl {
42
42
  constructor(adaptable) {
43
43
  this.adaptable = adaptable;
@@ -67,7 +67,6 @@ class AdaptableApiImpl {
67
67
  this.scheduleApi = new ScheduleApiImpl_1.ScheduleApiImpl(adaptable);
68
68
  this.shortcutApi = new ShortcutApiImpl_1.ShortcutApiImpl(adaptable);
69
69
  this.smartEditApi = new SmartEditApiImpl_1.SmartEditApiImpl(adaptable);
70
- this.sparklineColumnApi = new SparklineColumnApiImpl_1.SparklineColumnApiImpl(adaptable);
71
70
  this.filterApi = new FilterApiImpl_1.FilterApiImpl(adaptable);
72
71
  this.systemStatusApi = new SystemStatusApiImpl_1.SystemStatusApiImpl(adaptable);
73
72
  this.themeApi = new ThemeApiImpl_1.ThemeApiImpl(adaptable);
@@ -78,6 +77,7 @@ class AdaptableApiImpl {
78
77
  this.teamSharingApi = new TeamSharingApiImpl_1.TeamSharingApiImpl(adaptable);
79
78
  this.scopeApi = new ScopeApiImpl_1.ScopeApiImpl(adaptable);
80
79
  this.dataChangeHistoryApi = new DataChangeHistoryApiImpl_1.DataChangeHistoryApiImpl(adaptable);
80
+ this.chartingApi = new ChartingApiImpl_1.ChartingApiImpl(adaptable);
81
81
  this.internalApi = new InternalApiImpl_1.InternalApiImpl(adaptable);
82
82
  }
83
83
  destroy(config) {
@@ -51,7 +51,7 @@ class CalculatedColumnApiImpl extends ApiBase_1.ApiBase {
51
51
  }
52
52
  getCalculatedColumnModuleReferences(calculatedColumn) {
53
53
  const references = [];
54
- this.adaptable.modules.forEach((module) => {
54
+ this.adaptable.adaptableModules.forEach((module) => {
55
55
  if (module
56
56
  .getModuleCalculatedColumnReferences()
57
57
  .some((moduleReference) => moduleReference.Uuid === calculatedColumn.Uuid)) {
@@ -0,0 +1,5 @@
1
+ import { ChartingApi } from '../ChartingApi';
2
+ import { ApiBase } from './ApiBase';
3
+ export declare class ChartingApiImpl extends ApiBase implements ChartingApi {
4
+ isChartingEnabled(): boolean;
5
+ }
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ChartingApiImpl = void 0;
4
+ const ApiBase_1 = require("./ApiBase");
5
+ class ChartingApiImpl extends ApiBase_1.ApiBase {
6
+ isChartingEnabled() {
7
+ return this.adaptable.canGenerateCharts();
8
+ }
9
+ }
10
+ exports.ChartingApiImpl = ChartingApiImpl;
@@ -8,11 +8,13 @@ export declare class ColumnApiImpl extends ApiBase implements ColumnApi {
8
8
  getColumns(): AdaptableColumn[];
9
9
  getVisibleColumns(): AdaptableColumn[];
10
10
  selectColumn(columnId: string): void;
11
+ selectColumns(columnIds: string[]): void;
12
+ addColumnToSelection(columnId: string): void;
13
+ addColumnsToSelection(columnIds: string[]): void;
11
14
  selectAllColumns(): void;
12
15
  autosizeColumn(columnId: string): void;
13
16
  autosizeColumns(columnIds: string[]): void;
14
17
  autosizeAllColumns(): void;
15
- selectColumns(columnIds: string[]): void;
16
18
  hideColumn(columnId: string): void;
17
19
  showColumn(columnId: string): void;
18
20
  getAgGridColumnType(columnId: string): string | string[];
@@ -23,6 +23,15 @@ class ColumnApiImpl extends ApiBase_1.ApiBase {
23
23
  selectColumn(columnId) {
24
24
  this.adaptable.selectColumn(columnId);
25
25
  }
26
+ selectColumns(columnIds) {
27
+ this.adaptable.selectColumns(columnIds);
28
+ }
29
+ addColumnToSelection(columnId) {
30
+ this.adaptable.selectColumn(columnId, { keepExistingSelection: true });
31
+ }
32
+ addColumnsToSelection(columnIds) {
33
+ this.adaptable.selectColumns(columnIds, { keepExistingSelection: true });
34
+ }
26
35
  selectAllColumns() {
27
36
  this.adaptable.selectAll();
28
37
  }
@@ -35,9 +44,6 @@ class ColumnApiImpl extends ApiBase_1.ApiBase {
35
44
  autosizeAllColumns() {
36
45
  this.adaptable.autoSizeAllColumns();
37
46
  }
38
- selectColumns(columnIds) {
39
- this.adaptable.selectColumns(columnIds);
40
- }
41
47
  hideColumn(columnId) {
42
48
  this.adaptable.hideColumn(columnId);
43
49
  }
@@ -1,4 +1,3 @@
1
- import { ChartState } from '../../PredefinedConfig/ChartState';
2
1
  import { ThemeState } from '../../PredefinedConfig/ThemeState';
3
2
  import { ShortcutState } from '../../PredefinedConfig/ShortcutState';
4
3
  import { QuickSearchState } from '../../PredefinedConfig/QuickSearchState';
@@ -16,7 +15,6 @@ import { ConfigState } from '../../PredefinedConfig/ConfigState';
16
15
  import { AdaptableState } from '../../PredefinedConfig/AdaptableState';
17
16
  import { ApiBase } from './ApiBase';
18
17
  import { ApplicationState } from '../../PredefinedConfig/ApplicationState';
19
- import { SparklineColumnState } from '../../PredefinedConfig/SparklineColumnState';
20
18
  import { FreeTextColumnState } from '../../PredefinedConfig/FreeTextColumnState';
21
19
  import { FilterState } from '../../PredefinedConfig/FilterState';
22
20
  import { ToolPanelState } from '../../PredefinedConfig/ToolPanelState';
@@ -51,7 +49,6 @@ export declare class ConfigApiImpl extends ApiBase implements ConfigApi {
51
49
  getAlertState(returnJson?: boolean): AlertState;
52
50
  getApplicationState(returnJson?: boolean): ApplicationState;
53
51
  getCalculatedColumnState(returnJson?: boolean): CalculatedColumnState;
54
- getChartState(returnJson?: boolean): ChartState;
55
52
  getConditionalStyleState(returnJson?: boolean): ConditionalStyleState;
56
53
  getCustomSortState(returnJson?: boolean): CustomSortState;
57
54
  getDashboardState(returnJson?: boolean): DashboardState;
@@ -66,7 +63,6 @@ export declare class ConfigApiImpl extends ApiBase implements ConfigApi {
66
63
  getQuickSearchState(returnJson?: boolean): QuickSearchState;
67
64
  getScheduleState(returnJson?: boolean): ScheduleState;
68
65
  getShortcutState(returnJson?: boolean): ShortcutState;
69
- getSparklineColumnState(returnJson?: boolean): SparklineColumnState;
70
66
  getThemeState(returnJson?: boolean): ThemeState;
71
67
  getToolPanelState(returnJson?: boolean): ToolPanelState;
72
68
  dispatchStateReadyAction(module: AdaptableModule): void;
@@ -77,7 +77,6 @@ class ConfigApiImpl extends ApiBase_1.ApiBase {
77
77
  'Alert',
78
78
  'Application',
79
79
  'CalculatedColumn',
80
- 'Chart',
81
80
  'ConditionalStyle',
82
81
  'CustomSort',
83
82
  'Dashboard',
@@ -92,7 +91,6 @@ class ConfigApiImpl extends ApiBase_1.ApiBase {
92
91
  'Query',
93
92
  'QuickSearch',
94
93
  'Shortcut',
95
- 'SparklineColumn',
96
94
  'Theme',
97
95
  'ToolPanel',
98
96
  ];
@@ -178,10 +176,6 @@ class ConfigApiImpl extends ApiBase_1.ApiBase {
178
176
  return returnJson
179
177
  ? JSON.stringify(this.getAdaptableState().CalculatedColumn)
180
178
  : this.getAdaptableState().CalculatedColumn;
181
- case 'Chart':
182
- return returnJson
183
- ? JSON.stringify(this.getAdaptableState().Chart)
184
- : this.getAdaptableState().Chart;
185
179
  case 'ConditionalStyle':
186
180
  return returnJson
187
181
  ? JSON.stringify(this.getAdaptableState().ConditionalStyle)
@@ -238,10 +232,6 @@ class ConfigApiImpl extends ApiBase_1.ApiBase {
238
232
  return returnJson
239
233
  ? JSON.stringify(this.getAdaptableState().Shortcut)
240
234
  : this.getAdaptableState().Shortcut;
241
- case 'SparklineColumn':
242
- return returnJson
243
- ? JSON.stringify(this.getAdaptableState().SparklineColumn)
244
- : this.getAdaptableState().SparklineColumn;
245
235
  case 'Theme':
246
236
  return returnJson
247
237
  ? JSON.stringify(this.getAdaptableState().Theme)
@@ -266,9 +256,6 @@ class ConfigApiImpl extends ApiBase_1.ApiBase {
266
256
  getCalculatedColumnState(returnJson = false) {
267
257
  return this.getUserStateByStateKey('CalculatedColumn', returnJson);
268
258
  }
269
- getChartState(returnJson = false) {
270
- return this.getUserStateByStateKey('Chart', returnJson);
271
- }
272
259
  getConditionalStyleState(returnJson = false) {
273
260
  return this.getUserStateByStateKey('ConditionalStyle', returnJson);
274
261
  }
@@ -311,9 +298,6 @@ class ConfigApiImpl extends ApiBase_1.ApiBase {
311
298
  getShortcutState(returnJson = false) {
312
299
  return this.getUserStateByStateKey('Shortcut', returnJson);
313
300
  }
314
- getSparklineColumnState(returnJson = false) {
315
- return this.getUserStateByStateKey('SparklineColumn', returnJson);
316
- }
317
301
  getThemeState(returnJson = false) {
318
302
  return this.getUserStateByStateKey('Theme', returnJson);
319
303
  }
@@ -2,19 +2,23 @@ import { ApiBase } from './ApiBase';
2
2
  import { AdaptableFlashingCell } from '../../PredefinedConfig/Common/AdaptableFlashingCell';
3
3
  import { FlashingCellApi } from '../FlashingCellApi';
4
4
  import { FlashingCellDefinition, FlashingCellState } from '../../PredefinedConfig/FlashingCellState';
5
+ import { AdaptablePredicateDef } from '../../PredefinedConfig/Common/AdaptablePredicate';
6
+ import { AdaptableScope } from '../../PredefinedConfig/Common/AdaptableScope';
5
7
  export declare class FlashingCellApiImpl extends ApiBase implements FlashingCellApi {
6
8
  getFlashingCellState(): FlashingCellState;
9
+ mergeFlashingCellDefinitionWithDefaults(flashingCellDefinition: FlashingCellDefinition): FlashingCellDefinition;
7
10
  getFlashingCellDefinitions(): FlashingCellDefinition[];
8
11
  getFlashingCellDefinitionById(id: FlashingCellDefinition['Uuid']): FlashingCellDefinition;
9
- getNonReactiveFlashingCellDefinitions(): FlashingCellDefinition[];
10
- getActiveNonReactiveFlashingCellDefinitions(): FlashingCellDefinition[];
12
+ getActiveFlashingCellDefinitions(): FlashingCellDefinition[];
11
13
  getFlashingCellFlashTarget(flashingCellDefinition: FlashingCellDefinition): FlashingCellDefinition['FlashTarget'];
12
- showFlashingCell(alertToShow: AdaptableFlashingCell): void;
14
+ showFlashingCell(flashingCellToShow: AdaptableFlashingCell): void;
13
15
  addFlashingCellDefinition(flashingCellDefinition: FlashingCellDefinition): FlashingCellDefinition;
14
- setFlashingCellDefinition(flashingCellDefinitions: FlashingCellDefinition[]): void;
16
+ setFlashingCellDefinitions(flashingCellDefinitions: FlashingCellDefinition[]): void;
15
17
  editFlashingCellDefinition(flashingCellDefinition: FlashingCellDefinition): FlashingCellDefinition;
16
18
  suspendFlashingCellDefinition(flashingCellDefinition: FlashingCellDefinition): FlashingCellDefinition;
17
19
  unSuspendFlashingCellDefinition(flashingCellDefinition: FlashingCellDefinition): FlashingCellDefinition;
18
20
  addFlashingCellDefinitions(flashingCellDefinitions: FlashingCellDefinition[]): FlashingCellDefinition[];
19
21
  editFlashingCellDefinitions(flashingCellDefinitions: FlashingCellDefinition[]): FlashingCellDefinition[];
22
+ getFlashingCellPredicateDefs(): AdaptablePredicateDef[];
23
+ getFlashingCellPredicateDefsForScope(scope: AdaptableScope): AdaptablePredicateDef[];
20
24
  }
@@ -5,58 +5,67 @@ const tslib_1 = require("tslib");
5
5
  const SystemRedux = tslib_1.__importStar(require("../../Redux/ActionsReducers/SystemRedux"));
6
6
  const FlashingCellRedux = tslib_1.__importStar(require("../../Redux/ActionsReducers/FlashingCellRedux"));
7
7
  const ApiBase_1 = require("./ApiBase");
8
- const AdaptableQuery_1 = require("../../PredefinedConfig/Common/AdaptableQuery");
9
8
  class FlashingCellApiImpl extends ApiBase_1.ApiBase {
10
9
  getFlashingCellState() {
11
10
  return this.getAdaptableState().FlashingCell;
12
11
  }
12
+ mergeFlashingCellDefinitionWithDefaults(flashingCellDefinition) {
13
+ const flashingDefaults = this.adaptable.adaptableOptions.flashingCellOptions;
14
+ if (!flashingDefaults) {
15
+ return flashingCellDefinition;
16
+ }
17
+ if (!flashingCellDefinition.DownChangeStyle && flashingDefaults.defaultDownChangeStyle) {
18
+ flashingCellDefinition.DownChangeStyle = flashingDefaults.defaultDownChangeStyle;
19
+ }
20
+ if (!flashingCellDefinition.UpChangeStyle && flashingDefaults.defaultUpChangeStyle) {
21
+ flashingCellDefinition.UpChangeStyle = flashingDefaults.defaultUpChangeStyle;
22
+ }
23
+ if (!flashingCellDefinition.NeutralChangeStyle && flashingDefaults.defaultNeutralChangeStyle) {
24
+ flashingCellDefinition.NeutralChangeStyle = flashingDefaults.defaultNeutralChangeStyle;
25
+ }
26
+ if (!flashingCellDefinition.FlashDuration && flashingDefaults.defaultFlashDuration) {
27
+ flashingCellDefinition.FlashDuration = flashingDefaults.defaultFlashDuration;
28
+ }
29
+ if (!flashingCellDefinition.FlashTarget && flashingDefaults.defaultFlashTarget) {
30
+ flashingCellDefinition.FlashTarget = flashingDefaults.defaultFlashTarget;
31
+ }
32
+ return flashingCellDefinition;
33
+ }
13
34
  getFlashingCellDefinitions() {
14
- var _a, _b;
15
35
  const flashingCellDefinitions = this.getFlashingCellState().FlashingCellDefinitions;
16
- const flashingDefaults = (_b = (_a = this.adaptable.adaptableOptions.notificationsOptions) === null || _a === void 0 ? void 0 : _a.flashingCellDefaultProperties) !== null && _b !== void 0 ? _b : {};
17
36
  return flashingCellDefinitions.map((flashingCellDefinition) => {
18
- return Object.assign(Object.assign({}, flashingDefaults), flashingCellDefinition);
37
+ return this.mergeFlashingCellDefinitionWithDefaults(flashingCellDefinition);
19
38
  });
20
39
  }
21
40
  getFlashingCellDefinitionById(id) {
22
41
  var _a;
23
- return (_a = this.getFlashingCellDefinitions()) === null || _a === void 0 ? void 0 : _a.find((alert) => (alert === null || alert === void 0 ? void 0 : alert.Uuid) === id);
24
- }
25
- getNonReactiveFlashingCellDefinitions() {
26
- var _a, _b;
27
- const flashingCellDefinitions = this.getFlashingCellState().FlashingCellDefinitions.filter((alertDef) => !AdaptableQuery_1.isReactiveQuery(alertDef.Rule));
28
- const flashingDefaults = (_b = (_a = this.adaptable.adaptableOptions.notificationsOptions) === null || _a === void 0 ? void 0 : _a.flashingCellDefaultProperties) !== null && _b !== void 0 ? _b : {};
29
- return flashingCellDefinitions.map((flashingCellDefinition) => {
30
- return Object.assign(Object.assign({}, flashingDefaults), flashingCellDefinition);
31
- });
42
+ return (_a = this.getFlashingCellDefinitions()) === null || _a === void 0 ? void 0 : _a.find((fc) => (fc === null || fc === void 0 ? void 0 : fc.Uuid) === id);
32
43
  }
33
- getActiveNonReactiveFlashingCellDefinitions() {
34
- return this.getNonReactiveFlashingCellDefinitions().filter((alertDef) => !alertDef.IsSuspended);
44
+ getActiveFlashingCellDefinitions() {
45
+ return this.getFlashingCellDefinitions().filter((fc) => !fc.IsSuspended);
35
46
  }
36
47
  getFlashingCellFlashTarget(flashingCellDefinition) {
37
- // const scopeApi = this.adaptable.api.scopeApi;
38
- // const isScopeAll = scopeApi.scopeIsAll(flashingCellDefinition.Scope);
39
48
  const flashTarget = flashingCellDefinition.FlashTarget === 'cell' || !flashingCellDefinition.FlashTarget
40
49
  ? 'cell'
41
50
  : 'row';
42
51
  return flashTarget;
43
52
  }
44
- showFlashingCell(alertToShow) {
45
- this.addUidToAdaptableObject(alertToShow);
53
+ showFlashingCell(flashingCellToShow) {
54
+ this.addUidToAdaptableObject(flashingCellToShow);
46
55
  const flashingCellFiredInfo = {
47
56
  adaptableApi: this.adaptable.api,
48
- flashingCell: alertToShow,
57
+ flashingCell: flashingCellToShow,
49
58
  };
50
59
  const results = this.adaptable.api.eventApi.emitSync('FlashingCellDisplayed', flashingCellFiredInfo);
51
60
  const shouldShow = results.reduce((endResult, aResult) => {
52
61
  return endResult && aResult !== false;
53
62
  }, true);
54
63
  if (shouldShow) {
55
- this.dispatchAction(SystemRedux.SystemFlashingCellAdd(alertToShow));
56
- const { FlashDuration } = alertToShow.flashingCellDefinition;
64
+ this.dispatchAction(SystemRedux.SystemFlashingCellAdd(flashingCellToShow));
65
+ const { FlashDuration: FlashDuration } = flashingCellToShow.flashingCellDefinition;
57
66
  if (FlashDuration && FlashDuration !== 'always') {
58
67
  setTimeout(() => {
59
- this.dispatchAction(SystemRedux.SystemFlashingCellDelete(alertToShow));
68
+ this.dispatchAction(SystemRedux.SystemFlashingCellDelete(flashingCellToShow));
60
69
  }, FlashDuration);
61
70
  }
62
71
  }
@@ -65,7 +74,7 @@ class FlashingCellApiImpl extends ApiBase_1.ApiBase {
65
74
  this.dispatchAction(FlashingCellRedux.FlashingCellDefinitionAdd(flashingCellDefinition));
66
75
  return this.getFlashingCellDefinitionById(flashingCellDefinition.Uuid);
67
76
  }
68
- setFlashingCellDefinition(flashingCellDefinitions) {
77
+ setFlashingCellDefinitions(flashingCellDefinitions) {
69
78
  this.dispatchAction(FlashingCellRedux.FlashingCellDefinitionSet(flashingCellDefinitions));
70
79
  }
71
80
  editFlashingCellDefinition(flashingCellDefinition) {
@@ -92,5 +101,11 @@ class FlashingCellApiImpl extends ApiBase_1.ApiBase {
92
101
  });
93
102
  return flashingCellDefinitions === null || flashingCellDefinitions === void 0 ? void 0 : flashingCellDefinitions.map((flashingCell) => this.getFlashingCellDefinitionById(flashingCell === null || flashingCell === void 0 ? void 0 : flashingCell.Uuid));
94
103
  }
104
+ getFlashingCellPredicateDefs() {
105
+ return this.adaptable.api.predicateApi.getPredicateDefsByModuleScope('flashingcell');
106
+ }
107
+ getFlashingCellPredicateDefsForScope(scope) {
108
+ return this.getFlashingCellPredicateDefs().filter((predicateDef) => this.adaptable.api.scopeApi.isScopeInScope(scope, predicateDef.columnScope));
109
+ }
95
110
  }
96
111
  exports.FlashingCellApiImpl = FlashingCellApiImpl;
@@ -121,7 +121,7 @@ class FreeTextColumnApiImpl extends ApiBase_1.ApiBase {
121
121
  }
122
122
  getFreeTextColumnModuleReferences(freeTextColumn) {
123
123
  const references = [];
124
- this.adaptable.modules.forEach((module) => {
124
+ this.adaptable.adaptableModules.forEach((module) => {
125
125
  if (module
126
126
  .getModuleFreeTextColumnReferences()
127
127
  .some((moduleReference) => moduleReference.Uuid === freeTextColumn.Uuid)) {
@@ -89,7 +89,7 @@ class GridApiImpl extends ApiBase_1.ApiBase {
89
89
  this.adaptable.api.filterApi.clearAllColumnFilter();
90
90
  }
91
91
  getAgGridInstance() {
92
- return this.adaptable.adaptableOptions.agGridOptions;
92
+ return this.adaptable.adaptableOptions.gridOptions;
93
93
  }
94
94
  getColumnSorts() {
95
95
  return this.getAdaptableState().Grid.ColumnSorts;
@@ -2,8 +2,6 @@ import { ApiBase } from './ApiBase';
2
2
  import { InternalApi } from '../InternalApi';
3
3
  import { UIConfirmation } from '../../Utilities/Interface/MessagePopups';
4
4
  import { SystemState } from '../../PredefinedConfig/SystemState';
5
- import { ChartData } from '../../PredefinedConfig/ChartState';
6
- import { ChartVisibility } from '../../PredefinedConfig/Common/ChartEnums';
7
5
  import { Action } from 'redux';
8
6
  import { ModuleParams } from '../../View/Components/SharedProps/ModuleViewPopupProps';
9
7
  import { AdaptableColumn } from '../../PredefinedConfig/Common/AdaptableColumn';
@@ -37,13 +35,11 @@ import { AdaptableFrameworkComponent } from '../../AdaptableOptions/AdaptableFra
37
35
  import { IMetamodelService } from '../../Utilities/Services/Interface/IMetamodelService';
38
36
  export declare class InternalApiImpl extends ApiBase implements InternalApi {
39
37
  getSystemState(): SystemState;
40
- setChartData(chartData: ChartData): void;
41
38
  getAdaptableFormFromAlertForm(alertForm: string | AlertButtonForm, context: any, defaultMessageType?: AdaptableMessageType): (Omit<AdaptableForm<AlertButtonContext>, 'buttons'> & {
42
39
  buttons?: (Omit<AdaptableButton<AlertButtonContext>, 'buttonStyle'> & {
43
40
  buttonStyle?: ButtonStyle;
44
41
  })[];
45
42
  }) | undefined;
46
- setChartVisibility(chartVisbility: ChartVisibility): void;
47
43
  getAdaptableAlerts(): AdaptableAlert[];
48
44
  getAdaptableFlashingCellFor(primaryKey: string, columnId?: string): AdaptableFlashingCell | null;
49
45
  addSystemStatusMessageInfo(systemStatusMessageInfo: SystemStatusMessageInfo): void;
@@ -20,9 +20,6 @@ class InternalApiImpl extends ApiBase_1.ApiBase {
20
20
  getSystemState() {
21
21
  return this.getAdaptableState().System;
22
22
  }
23
- setChartData(chartData) {
24
- this.dispatchAction(SystemRedux.ChartSetChartData(chartData));
25
- }
26
23
  getAdaptableFormFromAlertForm(alertForm, context, defaultMessageType) {
27
24
  var _a, _b;
28
25
  const api = this.adaptable.api;
@@ -63,9 +60,6 @@ class InternalApiImpl extends ApiBase_1.ApiBase {
63
60
  }
64
61
  return adaptableAlertForm;
65
62
  }
66
- setChartVisibility(chartVisbility) {
67
- this.dispatchAction(SystemRedux.ChartSetChartVisibility(chartVisbility));
68
- }
69
63
  getAdaptableAlerts() {
70
64
  return this.getSystemState().AdaptableAlerts;
71
65
  }
@@ -207,7 +201,7 @@ class InternalApiImpl extends ApiBase_1.ApiBase {
207
201
  return this.adaptable;
208
202
  }
209
203
  getAgGridInstance() {
210
- return this.adaptable.adaptableOptions.agGridOptions;
204
+ return this.adaptable.adaptableOptions.gridOptions;
211
205
  }
212
206
  getPredefinedConfig() {
213
207
  return this.adaptable.adaptableOptions.predefinedConfig;
@@ -4,7 +4,6 @@ import { PluginsState } from '../../Redux/ActionsReducers/PluginsRedux';
4
4
  import { IPushPullApi } from '../IPushPullApi';
5
5
  import { Glue42Api } from '../Glue42Api';
6
6
  import { OpenFinApi } from '../OpenFinApi';
7
- import { ChartApi } from '../ChartApi';
8
7
  import { FinanceApi } from '../FinanceApi';
9
8
  export declare class PluginsApiImpl extends ApiBase implements PluginsApi {
10
9
  getPluginsState(): PluginsState;
@@ -15,6 +14,5 @@ export declare class PluginsApiImpl extends ApiBase implements PluginsApi {
15
14
  getipushpullPluginApi(): IPushPullApi;
16
15
  getGlue42PluginApi(): Glue42Api;
17
16
  getOpenFinPluginApi(): OpenFinApi;
18
- getChartsPluginApi(): ChartApi;
19
17
  getFinancePluginApi(): FinanceApi;
20
18
  }
@@ -32,9 +32,6 @@ class PluginsApiImpl extends ApiBase_1.ApiBase {
32
32
  if (pluginId === 'openfin') {
33
33
  return api;
34
34
  }
35
- if (pluginId === 'charts') {
36
- return api;
37
- }
38
35
  return api;
39
36
  }
40
37
  catch (ex) {
@@ -50,9 +47,6 @@ class PluginsApiImpl extends ApiBase_1.ApiBase {
50
47
  getOpenFinPluginApi() {
51
48
  return this.getPluginApi('openfin');
52
49
  }
53
- getChartsPluginApi() {
54
- return this.getPluginApi('charts');
55
- }
56
50
  getFinancePluginApi() {
57
51
  return this.getPluginApi('finance');
58
52
  }
@@ -27,7 +27,7 @@ class PlusMinusApiImpl extends ApiBase_1.ApiBase {
27
27
  return this.getAllPlusMinus().filter((plusMinusNudge) => plusMinusNudge.IsSuspended);
28
28
  }
29
29
  runPlusMinusNudge(plusMinusNudge, cellsToUpdate, direction) {
30
- let plusMinusModule = (this.adaptable.modules.get(ModuleConstants.PlusMinusModuleId));
30
+ let plusMinusModule = (this.adaptable.adaptableModules.get(ModuleConstants.PlusMinusModuleId));
31
31
  plusMinusModule.applyPlusMinus([plusMinusNudge], cellsToUpdate, direction);
32
32
  }
33
33
  applyPlusMinus(gridCells) {
@@ -64,7 +64,7 @@ class QueryApiImpl extends ApiBase_1.ApiBase {
64
64
  }
65
65
  getNamedQueryModuleReferences(namedQueryName) {
66
66
  const references = [];
67
- this.adaptable.modules.forEach((module) => {
67
+ this.adaptable.adaptableModules.forEach((module) => {
68
68
  if (module
69
69
  .getModuleNamedQueryReferences()
70
70
  .some((moduleReference) => moduleReference === namedQueryName)) {
@@ -13,13 +13,13 @@ class ToolPanelApiImpl extends ApiBase_1.ApiBase {
13
13
  this.showModulePopup(ModuleConstants.ToolPanelModuleId, popupParams);
14
14
  }
15
15
  openAdapTableToolPanel() {
16
- let gridOptions = this.getOptions().agGridOptions;
16
+ let gridOptions = this.getOptions().gridOptions;
17
17
  if (gridOptions) {
18
18
  gridOptions.api.openToolPanel('adaptable');
19
19
  }
20
20
  }
21
21
  closeAdapTableToolPanel() {
22
- let gridOptions = this.getOptions().agGridOptions;
22
+ let gridOptions = this.getOptions().gridOptions;
23
23
  if (gridOptions) {
24
24
  gridOptions.api.closeToolPanel();
25
25
  }
@@ -1,7 +1,5 @@
1
1
  import { UIConfirmation } from '../Utilities/Interface/MessagePopups';
2
2
  import { SystemState } from '../PredefinedConfig/SystemState';
3
- import { ChartData } from '../PredefinedConfig/ChartState';
4
- import { ChartVisibility } from '../PredefinedConfig/Common/ChartEnums';
5
3
  import { Action } from 'redux';
6
4
  import { ModuleParams } from '../View/Components/SharedProps/ModuleViewPopupProps';
7
5
  import { AdaptableColumn } from '../PredefinedConfig/Common/AdaptableColumn';
@@ -46,8 +44,6 @@ export interface InternalApi {
46
44
  buttonStyle?: ButtonStyle;
47
45
  })[];
48
46
  };
49
- setChartData(chartData: ChartData): void;
50
- setChartVisibility(chartVisbility: ChartVisibility): void;
51
47
  getAdaptableAlerts(): AdaptableAlert[];
52
48
  showPopupConfirmation(confirmation: UIConfirmation): void;
53
49
  getAdaptableFlashingCellFor(primaryKey: string, columnId?: string): AdaptableFlashingCell | null;
@@ -2,7 +2,6 @@ import { PluginsState } from '../Redux/ActionsReducers/PluginsRedux';
2
2
  import { IPushPullApi } from './IPushPullApi';
3
3
  import { Glue42Api } from './Glue42Api';
4
4
  import { OpenFinApi } from './OpenFinApi';
5
- import { ChartApi } from './ChartApi';
6
5
  import { FinanceApi } from './FinanceApi';
7
6
  /**
8
7
  * API methods dealing with AdapTable plugins
@@ -15,6 +14,5 @@ export interface PluginsApi {
15
14
  getipushpullPluginApi(): IPushPullApi;
16
15
  getGlue42PluginApi(): Glue42Api;
17
16
  getOpenFinPluginApi(): OpenFinApi;
18
- getChartsPluginApi(): ChartApi;
19
17
  getFinancePluginApi(): FinanceApi;
20
18
  }
@@ -3,7 +3,6 @@ import { GridState } from './GridState';
3
3
  import { SystemState } from './SystemState';
4
4
  import { AlertState } from './AlertState';
5
5
  import { CalculatedColumnState } from './CalculatedColumnState';
6
- import { ChartState } from './ChartState';
7
6
  import { ConditionalStyleState } from './ConditionalStyleState';
8
7
  import { CustomSortState } from './CustomSortState';
9
8
  import { DashboardState } from './DashboardState';
@@ -20,7 +19,6 @@ import { TeamSharingState } from './TeamSharingState';
20
19
  import { ThemeState } from './ThemeState';
21
20
  import { ConfigState } from './ConfigState';
22
21
  import { FilterState } from './FilterState';
23
- import { SparklineColumnState } from './SparklineColumnState';
24
22
  import { ApplicationState } from './ApplicationState';
25
23
  import { ToolPanelState } from './ToolPanelState';
26
24
  import { QueryState } from './QueryState';
@@ -37,11 +35,9 @@ export interface AdaptableState {
37
35
  [key: string]: any;
38
36
  };
39
37
  Application: ApplicationState;
40
- SparklineColumn: SparklineColumnState;
41
38
  Alert: AlertState;
42
39
  FlashingCell: FlashingCellState;
43
40
  CalculatedColumn: CalculatedColumnState;
44
- Chart: ChartState;
45
41
  ConditionalStyle: ConditionalStyleState;
46
42
  CustomSort: CustomSortState;
47
43
  Dashboard: DashboardState;
@@ -32,7 +32,7 @@ export interface AdaptablePredicateDef {
32
32
  */
33
33
  columnScope: AdaptableScope;
34
34
  /**
35
- * Modules where Predicate can run: 'filter', 'alert', 'conditionalstyle'
35
+ * Modules where the Predicate can run
36
36
  */
37
37
  moduleScope: ModuleScope[];
38
38
  /**
@@ -86,7 +86,7 @@ export interface PredicateDefHandlerParams {
86
86
  */
87
87
  displayValue: any;
88
88
  /**
89
- * Row node which contains the cell
89
+ * AG Grid Row node which contains the cell
90
90
  */
91
91
  node: RowNode;
92
92
  /**
@@ -94,7 +94,7 @@ export interface PredicateDefHandlerParams {
94
94
  */
95
95
  inputs: any[];
96
96
  /**
97
- * Column which contains the cell
97
+ * Adaptable Column which contains the cell
98
98
  */
99
99
  column: AdaptableColumn;
100
100
  /**
@@ -105,7 +105,7 @@ export interface PredicateDefHandlerParams {
105
105
  export interface PredicateDefToStringParams {
106
106
  inputs: any[];
107
107
  }
108
- export declare type ModuleScope = 'filter' | 'alert' | 'conditionalstyle';
108
+ export declare type ModuleScope = 'filter' | 'alert' | 'conditionalstyle' | 'flashingcell';
109
109
  /**
110
110
  * Array of Predicate Defs which are shipped by AdapTable
111
111
  */