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

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 (233) hide show
  1. package/base.css +19 -15
  2. package/bundle.cjs.js +121 -115
  3. package/index.css +20 -17
  4. package/package.json +32 -32
  5. package/publishTimestamp.d.ts +1 -1
  6. package/publishTimestamp.js +1 -1
  7. package/src/AdaptableInterfaces/IAdaptable.d.ts +9 -4
  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 +7 -9
  11. package/src/AdaptableOptions/EntitlementOptions.d.ts +1 -1
  12. package/src/AdaptableOptions/FlashingCellOptions.d.ts +31 -0
  13. package/src/AdaptableOptions/{ChartPluginOptions.js → FlashingCellOptions.js} +0 -0
  14. package/src/AdaptableOptions/GeneralOptions.d.ts +1 -1
  15. package/src/AdaptableOptions/MenuOptions.d.ts +2 -2
  16. package/src/AdaptableOptions/NotificationsOptions.d.ts +0 -7
  17. package/src/AdaptableOptions/SettingsPanelOptions.d.ts +14 -2
  18. package/src/AdaptableOptions/TeamSharingOptions.d.ts +1 -1
  19. package/src/AdaptableOptions/ToolPanelOptions.d.ts +0 -15
  20. package/src/AdaptableOptions/UserInterfaceOptions.d.ts +5 -0
  21. package/src/Api/AdaptableApi.d.ts +6 -6
  22. package/src/Api/ChartingApi.d.ts +9 -0
  23. package/src/Api/{ChartApi.js → ChartingApi.js} +0 -0
  24. package/src/Api/ColumnApi.d.ts +11 -1
  25. package/src/Api/ConfigApi.d.ts +0 -12
  26. package/src/Api/EventApi.d.ts +3 -3
  27. package/src/Api/Events/AdaptableReady.d.ts +1 -1
  28. package/src/Api/Events/FlashingCellDisplayed.d.ts +2 -2
  29. package/src/Api/Events/SearchChanged.d.ts +1 -1
  30. package/src/Api/FlashingCellApi.d.ts +35 -24
  31. package/src/Api/GridApi.d.ts +3 -3
  32. package/src/Api/Implementation/AdaptableApiImpl.d.ts +2 -2
  33. package/src/Api/Implementation/AdaptableApiImpl.js +2 -2
  34. package/src/Api/Implementation/CalculatedColumnApiImpl.js +1 -1
  35. package/src/Api/Implementation/ChartingApiImpl.d.ts +5 -0
  36. package/src/Api/Implementation/ChartingApiImpl.js +10 -0
  37. package/src/Api/Implementation/ColumnApiImpl.d.ts +3 -1
  38. package/src/Api/Implementation/ColumnApiImpl.js +9 -3
  39. package/src/Api/Implementation/ConfigApiImpl.d.ts +0 -4
  40. package/src/Api/Implementation/ConfigApiImpl.js +0 -16
  41. package/src/Api/Implementation/DashboardApiImpl.js +1 -1
  42. package/src/Api/Implementation/FlashingCellApiImpl.d.ts +8 -4
  43. package/src/Api/Implementation/FlashingCellApiImpl.js +42 -29
  44. package/src/Api/Implementation/FreeTextColumnApiImpl.js +1 -1
  45. package/src/Api/Implementation/GridApiImpl.d.ts +3 -3
  46. package/src/Api/Implementation/GridApiImpl.js +5 -1
  47. package/src/Api/Implementation/InternalApiImpl.d.ts +0 -5
  48. package/src/Api/Implementation/InternalApiImpl.js +1 -15
  49. package/src/Api/Implementation/LayoutApiImpl.js +1 -1
  50. package/src/Api/Implementation/PluginsApiImpl.d.ts +0 -2
  51. package/src/Api/Implementation/PluginsApiImpl.js +0 -6
  52. package/src/Api/Implementation/PlusMinusApiImpl.js +1 -1
  53. package/src/Api/Implementation/QueryApiImpl.js +1 -1
  54. package/src/Api/Implementation/ToolPanelApiImpl.js +2 -2
  55. package/src/Api/InternalApi.d.ts +0 -5
  56. package/src/Api/PluginsApi.d.ts +0 -2
  57. package/src/PredefinedConfig/AdaptableState.d.ts +0 -4
  58. package/src/PredefinedConfig/Common/AdaptablePredicate.d.ts +4 -4
  59. package/src/PredefinedConfig/Common/AdaptablePredicate.js +38 -38
  60. package/src/PredefinedConfig/Common/DataChangedInfo.d.ts +1 -1
  61. package/src/PredefinedConfig/Common/Enums.js +1 -0
  62. package/src/PredefinedConfig/Common/Menu.d.ts +15 -19
  63. package/src/PredefinedConfig/Common/SpecialColumnSettings.d.ts +4 -0
  64. package/src/PredefinedConfig/Common/Types.d.ts +5 -5
  65. package/src/PredefinedConfig/Common/Types.js +0 -2
  66. package/src/PredefinedConfig/DashboardState.d.ts +4 -4
  67. package/src/PredefinedConfig/FlashingCellState.d.ts +16 -20
  68. package/src/PredefinedConfig/PredefinedConfig.d.ts +0 -10
  69. package/src/PredefinedConfig/SystemState.d.ts +0 -4
  70. package/src/PredefinedConfig/ThemeState.d.ts +2 -1
  71. package/src/Redux/ActionsReducers/DashboardRedux.d.ts +0 -7
  72. package/src/Redux/ActionsReducers/DashboardRedux.js +2 -12
  73. package/src/Redux/ActionsReducers/PopupRedux.d.ts +0 -2
  74. package/src/Redux/ActionsReducers/SystemRedux.d.ts +0 -12
  75. package/src/Redux/ActionsReducers/SystemRedux.js +1 -21
  76. package/src/Redux/ActionsReducers/ToolPanelRedux.js +1 -2
  77. package/src/Redux/Store/AdaptableReduxLocalStorageEngine.js +1 -1
  78. package/src/Redux/Store/AdaptableReduxMerger.js +5 -5
  79. package/src/Redux/Store/AdaptableStore.js +21 -21
  80. package/src/Strategy/AdaptableModuleBase.d.ts +1 -1
  81. package/src/Strategy/AdaptableModuleBase.js +0 -3
  82. package/src/Strategy/AlertModule.js +2 -2
  83. package/src/Strategy/CalculatedColumnModule.js +17 -12
  84. package/src/Strategy/ChartingModule.d.ts +7 -0
  85. package/src/Strategy/ChartingModule.js +15 -0
  86. package/src/Strategy/ConditionalStyleModule.js +1 -1
  87. package/src/Strategy/DataChangeHistoryModule.js +1 -1
  88. package/src/Strategy/FilterModule.js +3 -2
  89. package/src/Strategy/FlashingCellModule.d.ts +1 -1
  90. package/src/Strategy/FlashingCellModule.js +35 -19
  91. package/src/Strategy/FormatColumnModule.js +2 -2
  92. package/src/Strategy/Interface/IModule.d.ts +0 -1
  93. package/src/Strategy/LayoutModule.js +15 -3
  94. package/src/Strategy/QueryModule.d.ts +1 -1
  95. package/src/Strategy/QueryModule.js +1 -3
  96. package/src/Strategy/SetingsPanelModule.d.ts +1 -0
  97. package/src/Strategy/SetingsPanelModule.js +7 -1
  98. package/src/Strategy/TeamSharingModule.js +1 -1
  99. package/src/Strategy/Utilities/getFlashingTargetViewItems.d.ts +5 -0
  100. package/src/Strategy/Utilities/getFlashingTargetViewItems.js +11 -0
  101. package/src/Strategy/Utilities/getFormatColumnStyleViewItems.d.ts +3 -0
  102. package/src/Strategy/Utilities/getFormatColumnStyleViewItems.js +10 -0
  103. package/src/Utilities/Constants/ConfigConstants.d.ts +0 -1
  104. package/src/Utilities/Constants/ConfigConstants.js +1 -2
  105. package/src/Utilities/Constants/GeneralConstants.d.ts +0 -9
  106. package/src/Utilities/Constants/GeneralConstants.js +1 -12
  107. package/src/Utilities/Constants/ModuleConstants.d.ts +1 -2
  108. package/src/Utilities/Constants/ModuleConstants.js +2 -3
  109. package/src/Utilities/Defaults/DefaultAdaptableOptions.js +19 -18
  110. package/src/Utilities/Defaults/DefaultSettingsPanel.d.ts +2 -1
  111. package/src/Utilities/ExpressionFunctions/aggregationExpressionFunctions.js +1 -1
  112. package/src/Utilities/ExpressionFunctions/expressionFunctionUtils.js +1 -1
  113. package/src/Utilities/ExpressionFunctions/observableExpressionFunctions.js +1 -1
  114. package/src/Utilities/Extensions/StringExtensions.js +1 -1
  115. package/src/Utilities/Helpers/AdaptableHelper.js +4 -4
  116. package/src/Utilities/Interface/MessagePopups.d.ts +0 -3
  117. package/src/Utilities/ObjectFactory.d.ts +0 -10
  118. package/src/Utilities/ObjectFactory.js +6 -67
  119. package/src/Utilities/Services/EntitlementService.js +1 -1
  120. package/src/Utilities/Services/LicenseService.js +1 -1
  121. package/src/Utilities/Services/ModuleService.js +7 -11
  122. package/src/Utilities/Services/ReportService.js +1 -1
  123. package/src/View/AdaptableView.js +2 -8
  124. package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/ColumnsList.d.ts +4 -3
  125. package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/ColumnsList.js +2 -1
  126. package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/ConfigurationForm.js +9 -9
  127. package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/index.js +3 -3
  128. package/src/View/AdaptableWizardView/index.js +1 -1
  129. package/src/View/Alert/AlertEmptyView.js +1 -1
  130. package/src/View/Alert/Wizard/AlertRulesWizardSection.d.ts +1 -0
  131. package/src/View/Alert/Wizard/AlertWizard.js +3 -3
  132. package/src/View/Alert/Wizard/BaseAlertRulesWizardSection.d.ts +2 -2
  133. package/src/View/Alert/Wizard/BaseAlertRulesWizardSection.js +2 -1
  134. package/src/View/CalculatedColumn/Utilities/getCalculatedColumnSettingTags.js +0 -1
  135. package/src/View/CalculatedColumn/Wizard/CalculatedColumnSettingsWizardSection.d.ts +1 -0
  136. package/src/View/CalculatedColumn/Wizard/CalculatedColumnSettingsWizardSection.js +11 -24
  137. package/src/View/CalculatedColumn/Wizard/CalculatedColumnWizard.js +16 -4
  138. package/src/View/Components/FilterForm/QuickFilterForm.js +2 -2
  139. package/src/View/Components/ModuleValueSelector/index.d.ts +3 -1
  140. package/src/View/Components/ModuleValueSelector/index.js +1 -1
  141. package/src/View/Components/NewScopeComponent.js +1 -1
  142. package/src/View/Components/Popups/AdaptablePopup/AdaptablePopup.js +9 -7
  143. package/src/View/Components/Popups/AdaptablePopup/AdaptablePopupModuleView.d.ts +3 -1
  144. package/src/View/Components/Popups/AdaptablePopup/AdaptablePopupModuleView.js +19 -6
  145. package/src/View/Components/Popups/AdaptablePopup/Navigation.js +1 -1
  146. package/src/View/Components/SharedProps/ModuleViewPopupProps.d.ts +1 -1
  147. package/src/View/Components/ToolPanel/AdaptableToolPanel.js +46 -81
  148. package/src/View/Components/ToolPanel/CustomToolPanelContent.js +1 -1
  149. package/src/View/Components/ToolPanel/ToolPanelPopup.js +11 -4
  150. package/src/View/Components/ValueSelector/index.d.ts +2 -0
  151. package/src/View/Components/ValueSelector/index.js +5 -5
  152. package/src/View/ConditionalStyle/Wizard/ConditionalStyleWizard.js +10 -5
  153. package/src/View/CustomSort/Wizard/CustomSortWizard.js +16 -4
  154. package/src/View/Dashboard/Dashboard.js +14 -36
  155. package/src/View/Dashboard/DashboardPopup.js +24 -16
  156. package/src/View/DataChangeHistory/DataChangeHistoryGrid.js +3 -2
  157. package/src/View/Export/Wizard/NewReportWizard.js +13 -3
  158. package/src/View/FlashingCell/Wizard/FlashingCellRulesWizardSection.js +17 -26
  159. package/src/View/FlashingCell/Wizard/FlashingCellScopeWizardSection.js +19 -2
  160. package/src/View/FlashingCell/Wizard/{FlashingCellDurationWizardSection.d.ts → FlashingCellSettingsWizardSection.d.ts} +3 -3
  161. package/src/View/FlashingCell/Wizard/FlashingCellSettingsWizardSection.js +81 -0
  162. package/src/View/FlashingCell/Wizard/FlashingCellWizard.js +6 -8
  163. package/src/View/FlashingCell/Wizard/isValidFlashingCellRules.js +1 -1
  164. package/src/View/FormatColumn/Wizard/FormatColumnFormatWizardSection.js +2 -2
  165. package/src/View/FormatColumn/Wizard/FormatColumnWizard.js +10 -5
  166. package/src/View/FreeTextColumn/Wizard/FreeTextColumnSettingsWizardSection.js +8 -3
  167. package/src/View/FreeTextColumn/Wizard/FreeTextColumnWizard.js +13 -5
  168. package/src/View/GridInfo/GridInfoPopup.js +3 -2
  169. package/src/View/PlusMinus/Wizard/PlusMinusWizard.js +8 -2
  170. package/src/View/Query/QueryViewPanel.js +12 -9
  171. package/src/View/Query/Wizard/NamedQueryWizard.js +13 -8
  172. package/src/View/QuickSearch/QuickSearchPopup.js +1 -1
  173. package/src/View/QuickSearch/useQuickSearchDebounced.js +1 -1
  174. package/src/View/Schedule/Wizard/ScheduleWizard.js +14 -14
  175. package/src/View/Shortcut/shortcutKeys.js +0 -1
  176. package/src/View/SpecialColumnSettingsWizardStep.d.ts +9 -0
  177. package/src/View/SpecialColumnSettingsWizardStep.js +63 -0
  178. package/src/View/UIHelper.d.ts +0 -4
  179. package/src/View/UIHelper.js +1 -34
  180. package/src/View/Wizard/AdaptableWizard.js +1 -1
  181. package/src/View/Wizard/Interface/IAdaptableWizard.d.ts +2 -0
  182. package/src/View/Wizard/OnePageAdaptableWizard.js +1 -1
  183. package/src/agGrid/Adaptable.d.ts +10 -7
  184. package/src/agGrid/Adaptable.js +80 -57
  185. package/src/agGrid/agGridHelper.d.ts +1 -2
  186. package/src/agGrid/agGridHelper.js +8 -5
  187. package/src/agGrid/agGridMenuHelper.js +12 -8
  188. package/src/components/ApplicationIcon.d.ts +1 -1
  189. package/src/components/Dashboard/Dashboard.js +1 -1
  190. package/src/components/Dashboard/DashboardManager.d.ts +5 -3
  191. package/src/components/Dashboard/DashboardManager.js +33 -27
  192. package/src/components/DropdownButton/renderItem.js +1 -1
  193. package/src/components/FormLayout/index.js +1 -1
  194. package/src/components/OverlayTrigger/Overlay.js +1 -1
  195. package/src/components/WindowModal/WindowModal.js +17 -2
  196. package/src/components/icons/column-add.d.ts +3 -0
  197. package/src/components/icons/column-add.js +10 -0
  198. package/src/components/icons/index.js +2 -0
  199. package/src/components/utils/useDraggable.js +2 -1
  200. package/src/metamodel/adaptable.metamodel.d.ts +58 -91
  201. package/src/metamodel/adaptable.metamodel.js +248 -297
  202. package/src/types.d.ts +4 -7
  203. package/version.d.ts +1 -1
  204. package/version.js +1 -1
  205. package/src/AdaptableOptions/ChartPluginOptions.d.ts +0 -20
  206. package/src/Api/ChartApi.d.ts +0 -20
  207. package/src/Api/Implementation/SparklineColumnApiImpl.d.ts +0 -9
  208. package/src/Api/Implementation/SparklineColumnApiImpl.js +0 -24
  209. package/src/Api/SparklineColumnApi.d.ts +0 -23
  210. package/src/Api/SparklineColumnApi.js +0 -2
  211. package/src/PredefinedConfig/ChartState.d.ts +0 -144
  212. package/src/PredefinedConfig/ChartState.js +0 -2
  213. package/src/PredefinedConfig/Common/ChartEnums.d.ts +0 -123
  214. package/src/PredefinedConfig/Common/ChartEnums.js +0 -152
  215. package/src/PredefinedConfig/SparklineColumnState.d.ts +0 -40
  216. package/src/PredefinedConfig/SparklineColumnState.js +0 -2
  217. package/src/Redux/ActionsReducers/SparklineColumnRedux.d.ts +0 -35
  218. package/src/Redux/ActionsReducers/SparklineColumnRedux.js +0 -70
  219. package/src/Utilities/Defaults/DefaultCategoryChartProperties.d.ts +0 -2
  220. package/src/Utilities/Defaults/DefaultCategoryChartProperties.js +0 -56
  221. package/src/Utilities/Defaults/DefaultPieChartProperties.d.ts +0 -2
  222. package/src/Utilities/Defaults/DefaultPieChartProperties.js +0 -13
  223. package/src/Utilities/Defaults/DefaultSparklinesChartProperties.d.ts +0 -2
  224. package/src/Utilities/Defaults/DefaultSparklinesChartProperties.js +0 -25
  225. package/src/View/Components/Panels/PanelWithIImageThreeButtons.d.ts +0 -11
  226. package/src/View/Components/Panels/PanelWithIImageThreeButtons.js +0 -28
  227. package/src/View/Components/Popups/AdaptableChart.d.ts +0 -18
  228. package/src/View/Components/Popups/AdaptableChart.js +0 -40
  229. package/src/View/Components/SharedProps/ChartDisplayPopupPropsBase.d.ts +0 -7
  230. package/src/View/Components/SharedProps/ChartDisplayPopupPropsBase.js +0 -2
  231. package/src/View/FlashingCell/Wizard/FlashingCellDurationWizardSection.js +0 -60
  232. package/src/components/ChartContainer/index.d.ts +0 -15
  233. package/src/components/ChartContainer/index.js +0 -22
@@ -27,7 +27,6 @@ const FilterRedux = tslib_1.__importStar(require("../ActionsReducers/FilterRedux
27
27
  const ThemeRedux = tslib_1.__importStar(require("../ActionsReducers/ThemeRedux"));
28
28
  const FormatColumnRedux = tslib_1.__importStar(require("../ActionsReducers/FormatColumnRedux"));
29
29
  const ApplicationRedux = tslib_1.__importStar(require("../ActionsReducers/ApplicationRedux"));
30
- const SparklineColumnRedux = tslib_1.__importStar(require("../ActionsReducers/SparklineColumnRedux"));
31
30
  const FreeTextColumnRedux = tslib_1.__importStar(require("../ActionsReducers/FreeTextColumnRedux"));
32
31
  const LayoutRedux = tslib_1.__importStar(require("../ActionsReducers/LayoutRedux"));
33
32
  const DashboardRedux = tslib_1.__importStar(require("../ActionsReducers/DashboardRedux"));
@@ -122,16 +121,11 @@ class AdaptableStore {
122
121
  Popup: PopupRedux.PopupReducer,
123
122
  System: SystemRedux.SystemReducer,
124
123
  Plugins: PluginsRedux.PluginsReducer,
125
- SparklineColumn: SparklineColumnRedux.SparklineColumnReducer,
126
124
  // Reducers for Persisted State
127
125
  Alert: AlertRedux.AlertReducer,
128
126
  FlashingCell: FlashingCellRedux.FlashingCellReducer,
129
127
  Application: ApplicationRedux.ApplicationReducer,
130
128
  CalculatedColumn: CalculatedColumnRedux.CalculatedColumnReducer,
131
- // replaced by `charts` plugin
132
- Chart: (state) => {
133
- return state !== null && state !== void 0 ? state : null;
134
- },
135
129
  ConditionalStyle: ConditionalStyleRedux.ConditionalStyleReducer,
136
130
  CustomSort: CustomSortRedux.CustomSortReducer,
137
131
  Dashboard: DashboardRedux.DashboardReducer,
@@ -166,6 +160,17 @@ class AdaptableStore {
166
160
  case exports.LOAD_STATE:
167
161
  const { State } = action;
168
162
  Object.keys(State).forEach((key) => {
163
+ // this check should be removed in version 12 !!!
164
+ if (key === 'Chart') {
165
+ LoggingHelper_1.ConsoleLogWarning(`DEPRECATED: AdapTable Charts Plugin is deprecated! AG Grid built-in charts are fully supported & integrated in AdapTable.
166
+
167
+ Please contact 'support@adaptabletools.com' if you require any charting features that are not currently available.`);
168
+ }
169
+ if (key === 'SparklineColumn') {
170
+ LoggingHelper_1.ConsoleLogWarning(`DEPRECATED: AdapTable SparklineColumn is deprecated! AG Grid built-in Sparklines are fully supported & integrated in AdapTable.
171
+
172
+ Please contact 'support@adaptabletools.com' if you require any sparklines features that are not currently available.`);
173
+ }
169
174
  state[key] = State[key];
170
175
  });
171
176
  break;
@@ -192,7 +197,6 @@ class AdaptableStore {
192
197
  ConfigConstants.GRID,
193
198
  ConfigConstants.POPUP,
194
199
  ConfigConstants.PLUGINS,
195
- ConfigConstants.SPARKLINE_COLUMN,
196
200
  ];
197
201
  // this is now VERY BADLY NAMED!
198
202
  let rootReducer = AdaptableReduxMerger_1.mergeReducer(rootReducerWithResetManagement, exports.LOAD_STATE);
@@ -551,9 +555,6 @@ const adaptableMiddleware = (adaptable) => function (middlewareAPI) {
551
555
  * Action: We set up all columns again
552
556
  */
553
557
  case QuickSearchRedux.QUICK_SEARCH_SET_STYLE:
554
- case SparklineColumnRedux.SPARKLINE_COLUMNS_ADD:
555
- case SparklineColumnRedux.SPARKLINE_COLUMNS_EDIT:
556
- case SparklineColumnRedux.SPARKLINE_COLUMNS_DELETE:
557
558
  case FormatColumnRedux.FORMAT_COLUMN_ADD:
558
559
  case FormatColumnRedux.FORMAT_COLUMN_EDIT:
559
560
  case FormatColumnRedux.FORMAT_COLUMN_DELETE:
@@ -688,7 +689,7 @@ const adaptableMiddleware = (adaptable) => function (middlewareAPI) {
688
689
  case ScheduleRedux.OPENFIN_SCHEDULE_SUSPEND:
689
690
  case ScheduleRedux.OPENFIN_SCHEDULE_UN_SUSPEND: {
690
691
  let returnAction = next(action);
691
- let module = adaptable.modules.get(ModuleConstants.ScheduleModuleId);
692
+ let module = (adaptable.adaptableModules.get(ModuleConstants.ScheduleModuleId));
692
693
  module.setUpSechduleJobs();
693
694
  return returnAction;
694
695
  }
@@ -703,7 +704,6 @@ const adaptableMiddleware = (adaptable) => function (middlewareAPI) {
703
704
  case DashboardRedux.DASHBOARD_SET_IS_HIDDEN:
704
705
  case DashboardRedux.DASHBOARD_SET_FLOATING_POSITION:
705
706
  case DashboardRedux.DASHBOARD_SET_TABS:
706
- case DashboardRedux.DASHBOARD_CREATE_DEFAULT_TAB:
707
707
  case DashboardRedux.DASHBOARD_CLOSE_TOOLBAR: {
708
708
  const oldDashboardState = middlewareAPI.getState().Dashboard;
709
709
  let returnAction = next(action);
@@ -767,7 +767,7 @@ const adaptableMiddleware = (adaptable) => function (middlewareAPI) {
767
767
  * Action (4): Set the Preview Values (this will populate the preview screen)
768
768
  */
769
769
  case SystemRedux.SYSTEM_SMARTEDIT_CHECK_CELL_SELECTION: {
770
- let module = adaptable.modules.get(ModuleConstants.SmartEditModuleId);
770
+ let module = (adaptable.adaptableModules.get(ModuleConstants.SmartEditModuleId));
771
771
  let state = middlewareAPI.getState();
772
772
  let returnAction = next(action);
773
773
  let apiReturn = module.CheckCorrectCellSelection();
@@ -805,7 +805,7 @@ const adaptableMiddleware = (adaptable) => function (middlewareAPI) {
805
805
  //all our logic needs to be executed AFTER the main reducers
806
806
  //so our state is up to date which allow us not to care about the data within each different action
807
807
  let returnAction = next(action);
808
- let module = adaptable.modules.get(ModuleConstants.SmartEditModuleId);
808
+ let module = (adaptable.adaptableModules.get(ModuleConstants.SmartEditModuleId));
809
809
  let state = middlewareAPI.getState();
810
810
  let apiReturn = module.BuildPreviewValues(state.System.SmartEditValue, state.System.SmartEditOperation);
811
811
  middlewareAPI.dispatch(SystemRedux.SmartEditSetPreview(apiReturn));
@@ -817,7 +817,7 @@ const adaptableMiddleware = (adaptable) => function (middlewareAPI) {
817
817
  * Action (2): Sends these new values to the Smart Edit module (which will, in turn, apply them to Adaptable)
818
818
  */
819
819
  case SmartEditRedux.SMART_EDIT_COMPLETE: {
820
- let module = adaptable.modules.get(ModuleConstants.SmartEditModuleId);
820
+ let module = (adaptable.adaptableModules.get(ModuleConstants.SmartEditModuleId));
821
821
  const actionTyped = action;
822
822
  let thePreview = middlewareAPI.getState().System.SmartEditPreviewInfo;
823
823
  let newValues = PreviewHelper_1.PreviewHelper.GetCellInfosFromPreview(thePreview, actionTyped.bypassValidationWarnings);
@@ -839,7 +839,7 @@ const adaptableMiddleware = (adaptable) => function (middlewareAPI) {
839
839
  * BULK UPDATE ACTIONS
840
840
  *******************/
841
841
  case SystemRedux.SYSTEM_BULK_UPDATE_CHECK_CELL_SELECTION: {
842
- let module = (adaptable.modules.get(ModuleConstants.BulkUpdateModuleId));
842
+ let module = (adaptable.adaptableModules.get(ModuleConstants.BulkUpdateModuleId));
843
843
  let state = middlewareAPI.getState();
844
844
  let returnAction = next(action);
845
845
  let apiReturn = module.checkCorrectCellSelection();
@@ -866,7 +866,7 @@ const adaptableMiddleware = (adaptable) => function (middlewareAPI) {
866
866
  //all our logic needs to be executed AFTER the main reducers
867
867
  //so our state is up to date which allow us not to care about the data within each different action
868
868
  let returnAction = next(action);
869
- let module = (adaptable.modules.get(ModuleConstants.BulkUpdateModuleId));
869
+ let module = (adaptable.adaptableModules.get(ModuleConstants.BulkUpdateModuleId));
870
870
  let state = middlewareAPI.getState();
871
871
  let apiReturn = module.buildPreviewValues(state.System.BulkUpdateValue);
872
872
  middlewareAPI.dispatch(SystemRedux.BulkUpdateSetPreview(apiReturn));
@@ -897,7 +897,7 @@ const adaptableMiddleware = (adaptable) => function (middlewareAPI) {
897
897
  case PlusMinusRedux.PLUS_MINUS_RULE_EDIT:
898
898
  case PlusMinusRedux.PLUS_MINUS_RULE_DELETE: {
899
899
  let returnAction = next(action);
900
- let module = adaptable.modules.get(ModuleConstants.PlusMinusModuleId);
900
+ let module = (adaptable.adaptableModules.get(ModuleConstants.PlusMinusModuleId));
901
901
  if (module) {
902
902
  module.checkListenToKeyDown();
903
903
  }
@@ -924,7 +924,7 @@ const adaptableMiddleware = (adaptable) => function (middlewareAPI) {
924
924
  case ShortcutRedux.SHORTCUT_EDIT:
925
925
  case ShortcutRedux.SHORTCUT_DELETE: {
926
926
  let returnAction = next(action);
927
- let module = adaptable.modules.get(ModuleConstants.ShortcutModuleId);
927
+ let module = (adaptable.adaptableModules.get(ModuleConstants.ShortcutModuleId));
928
928
  if (module) {
929
929
  module.checkListenToKeyDown();
930
930
  }
@@ -945,7 +945,7 @@ const adaptableMiddleware = (adaptable) => function (middlewareAPI) {
945
945
  return returnAction;
946
946
  }
947
947
  case ExportRedux.EXPORT_APPLY: {
948
- let module = adaptable.modules.get(ModuleConstants.ExportModuleId);
948
+ let module = (adaptable.adaptableModules.get(ModuleConstants.ExportModuleId));
949
949
  const actionTyped = action;
950
950
  module.export(actionTyped.Report, actionTyped.ExportDestination);
951
951
  return next(action);
@@ -1222,7 +1222,7 @@ const adaptableMiddleware = (adaptable) => function (middlewareAPI) {
1222
1222
  * GRID (INTERNAL) ACTIONS
1223
1223
  *******************/
1224
1224
  case GridRedux.GRID_CREATE_CELLS_SUMMARY: {
1225
- let module = (adaptable.modules.get(ModuleConstants.CellSummaryModuleId));
1225
+ let module = (adaptable.adaptableModules.get(ModuleConstants.CellSummaryModuleId));
1226
1226
  let returnAction = next(action);
1227
1227
  let selectedCellInfo = middlewareAPI.getState().Grid.SelectedCellInfo;
1228
1228
  let apiSummaryReturn = module.createCellSummary(selectedCellInfo);
@@ -43,7 +43,7 @@ export declare abstract class AdaptableModuleBase implements IModule {
43
43
  createColumnMenuItemClickFunction(Label: string, Icon: string, ClickFunction: () => void): MenuItemDoClickFunction;
44
44
  createColumnMenuItemReduxAction(Label: string, Icon: string, Action: Action): MenuItemDoReduxAction;
45
45
  createColumnMenuItemShowPopup(Label: string, ComponentName: string, Icon: string, PopupParams?: ModuleParams): MenuItemShowPopup;
46
- canCreateColumnMenuItem(column: AdaptableColumn, minimumAccessLevel: AccessLevel, functionType?: 'sort' | 'editable' | 'style' | 'sparkline' | 'filter' | 'quickfilter' | 'numeric'): boolean;
46
+ canCreateColumnMenuItem(column: AdaptableColumn, minimumAccessLevel: AccessLevel, functionType?: 'sort' | 'editable' | 'style' | 'filter' | 'quickfilter' | 'numeric'): boolean;
47
47
  getTeamSharingAction(): TeamSharingImportInfo<AdaptableObject> | undefined;
48
48
  getModuleNamedQueryReferences(): string[];
49
49
  getModuleCalculatedColumnReferences(): CalculatedColumn[];
@@ -127,9 +127,6 @@ class AdaptableModuleBase {
127
127
  else if (functionType == 'style') {
128
128
  return !column.isSparkline;
129
129
  }
130
- else if (functionType == 'sparkline') {
131
- return column.isSparkline;
132
- }
133
130
  else if (functionType == 'numeric') {
134
131
  return column.dataType == Enums_1.DataType.Number;
135
132
  }
@@ -19,7 +19,7 @@ class AlertModule extends AdaptableModuleBase_1.AdaptableModuleBase {
19
19
  constructor(api) {
20
20
  super(ModuleConstants.AlertModuleId, 'Alert', 'alert', 'AlertPopup', 'Get notified when things happen in Adaptable that you need to know about', api);
21
21
  this.api.internalApi.getDataService().on('DataChanged', (dataChangedInfo) => {
22
- if (dataChangedInfo.trigger === 'undo') {
22
+ if (dataChangedInfo.trigger === 'undo' || dataChangedInfo.trigger === 'aggChange') {
23
23
  // do NOT handle reverted changes
24
24
  return;
25
25
  }
@@ -68,7 +68,7 @@ class AlertModule extends AdaptableModuleBase_1.AdaptableModuleBase {
68
68
  const flashingCellDefinitions = this.api.flashingCellApi.getFlashingCellDefinitions();
69
69
  if (ArrayExtensions_1.ArrayExtensions.IsEmpty(flashingCellDefinitions) &&
70
70
  ArrayExtensions_1.ArrayExtensions.IsNotNullOrEmpty(flashingAlertDefinitions)) {
71
- this.api.flashingCellApi.setFlashingCellDefinition(flashingAlertDefinitions);
71
+ this.api.flashingCellApi.setFlashingCellDefinitions(flashingAlertDefinitions);
72
72
  // TODO: state does not clear
73
73
  this.api.internalApi.clearFlashingCellState();
74
74
  }
@@ -9,6 +9,7 @@ const LoggingHelper_1 = require("../Utilities/Helpers/LoggingHelper");
9
9
  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
+ const ArrayExtensions_1 = tslib_1.__importDefault(require("../Utilities/Extensions/ArrayExtensions"));
12
13
  class CalculatedColumnModule extends AdaptableModuleBase_1.AdaptableModuleBase {
13
14
  constructor(api) {
14
15
  super(ModuleConstants.CalculatedColumnModuleId, 'Calculated Column', 'calculated-column', 'CalculatedColumnPopup', 'Create bespoke columns whose cell value is derived dynamically from an Expression', api);
@@ -63,19 +64,23 @@ class CalculatedColumnModule extends AdaptableModuleBase_1.AdaptableModuleBase {
63
64
  };
64
65
  }
65
66
  toView(calculateColumn) {
67
+ const settingsTags = getCalculatedColumnSettingTags_1.getCalculatedColumnSettingTags(calculateColumn.CalculatedColumnSettings);
68
+ let items = [
69
+ {
70
+ name: 'Settings',
71
+ label: 'Column Id',
72
+ values: [calculateColumn.ColumnId],
73
+ },
74
+ getExpressionViewItems_1.getExpressionViewItems(calculateColumn.Query),
75
+ ];
76
+ if (ArrayExtensions_1.default.IsNotNullOrEmpty(settingsTags)) {
77
+ items.push({
78
+ name: 'Settings',
79
+ values: settingsTags,
80
+ });
81
+ }
66
82
  return {
67
- items: [
68
- {
69
- name: 'Settings',
70
- label: 'Column Id',
71
- values: [calculateColumn.ColumnId],
72
- },
73
- getExpressionViewItems_1.getExpressionViewItems(calculateColumn.Query),
74
- {
75
- name: 'Settings',
76
- values: getCalculatedColumnSettingTags_1.getCalculatedColumnSettingTags(calculateColumn.CalculatedColumnSettings),
77
- },
78
- ],
83
+ items: items,
79
84
  abObject: calculateColumn,
80
85
  };
81
86
  }
@@ -0,0 +1,7 @@
1
+ import { AdaptableModuleBase } from '@adaptabletools/adaptable/src/Strategy/AdaptableModuleBase';
2
+ import { IModule } from '@adaptabletools/adaptable/src/Strategy/Interface/IModule';
3
+ import { AdaptableApi } from '@adaptabletools/adaptable/src/Api/AdaptableApi';
4
+ export declare class ChartingModule extends AdaptableModuleBase implements IModule {
5
+ constructor(api: AdaptableApi);
6
+ isModuleAvailable(): boolean;
7
+ }
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ChartingModule = void 0;
4
+ const tslib_1 = require("tslib");
5
+ const AdaptableModuleBase_1 = require("@adaptabletools/adaptable/src/Strategy/AdaptableModuleBase");
6
+ const ModuleConstants = tslib_1.__importStar(require("@adaptabletools/adaptable/src/Utilities/Constants/ModuleConstants"));
7
+ class ChartingModule extends AdaptableModuleBase_1.AdaptableModuleBase {
8
+ constructor(api) {
9
+ super(ModuleConstants.ChartingModuleId, 'Charts', 'chart', 'ChartPopup', 'Create Charts in order to see Adaptable Data visually', api);
10
+ }
11
+ isModuleAvailable() {
12
+ return this.api.chartingApi.isChartingEnabled() && super.isModuleAvailable();
13
+ }
14
+ }
15
+ exports.ChartingModule = ChartingModule;
@@ -203,7 +203,7 @@ class ConditionalStyleModule extends AdaptableModuleBase_1.AdaptableModuleBase {
203
203
  getDeleteAction: (conditionalStyle) => ConditionalStyleRedux.ConditionalStyleDelete(conditionalStyle),
204
204
  getSuspendAction: (conditionalStyle) => ConditionalStyleRedux.ConditionalStyleSuspend(conditionalStyle),
205
205
  getUnSuspendAction: (conditionalStyle) => ConditionalStyleRedux.ConditionalStyleUnSuspend(conditionalStyle),
206
- emptyView: "Click 'New' to create a new conditional style to be applied at row or column level when a rule set by you is met.",
206
+ emptyView: "Click 'New' to create a new Conditional Style Rule. When this is met, row or cells in the Conditional Style's scope will be styled appropriately.",
207
207
  getEditWizard() {
208
208
  return ConditionalStyleWizard_1.ConditionalStyleWizard;
209
209
  },
@@ -9,7 +9,7 @@ class DataChangeHistoryModule extends AdaptableModuleBase_1.AdaptableModuleBase
9
9
  constructor(api) {
10
10
  super(ModuleConstants.DataChangeHistoryModuleId, 'Data Changes', 'track-changes', 'DataChangeHistoryPopup', 'Provides an overview of all previous changes, giving the possibility to undo specific changes', api);
11
11
  this.api.internalApi.getDataService().on('DataChanged', (dataChangedInfo) => {
12
- if (dataChangedInfo.trigger !== 'undo') {
12
+ if (dataChangedInfo.trigger !== 'undo' && dataChangedInfo.trigger !== 'aggChange') {
13
13
  if (this.shouldLogDataChange(dataChangedInfo)) {
14
14
  this.api.internalApi.dispatchReduxAction(SystemRedux_1.SystemDataChangeHistoryAdd(dataChangedInfo));
15
15
  }
@@ -98,8 +98,9 @@ class FilterModule extends AdaptableModuleBase_1.AdaptableModuleBase {
98
98
  return {
99
99
  getDeleteAction: FilterRedux.ColumnFilterClear,
100
100
  emptyView: `
101
- There are currently no column filters applied.
102
- Create column filters by using the filter dropdown in each column header.
101
+ There are currently no column filters applied. \n
102
+
103
+ Create column filters by using the filter dropdown the Quick Filter Bar or the Filter Form in the Column Header Menu.
103
104
  `,
104
105
  };
105
106
  }
@@ -18,8 +18,8 @@ export declare class FlashingCellModule extends AdaptableModuleBase implements I
18
18
  addContextMenuItems(menuContext: ContextMenuContext): AdaptableMenuItem[] | undefined;
19
19
  protected handleDataSourceChanged(dataChangedInfo: DataChangedInfo): void;
20
20
  private showFlashingCellsForDefinitions;
21
+ private isFlashingTargetOnlyAggChange;
21
22
  private getFlashingCellDefinitionsForDataChange;
22
- private getBaseAlertDefinitionsForDataChange;
23
23
  private isAlertPredicateTriggered;
24
24
  getTeamSharingAction(): TeamSharingImportInfo<FlashingCellDefinition>;
25
25
  toView(flashingCell: FlashingCellDefinition): AdaptableObjectView;
@@ -13,6 +13,7 @@ const getRuleViewItems_1 = require("./Utilities/getRuleViewItems");
13
13
  const getFlashingCellDurationViewItems_1 = require("./Utilities/getFlashingCellDurationViewItems");
14
14
  const getFlashingCellStyleViewItems_1 = require("./Utilities/getFlashingCellStyleViewItems");
15
15
  const FlashingCellWizard_1 = require("../View/FlashingCell/Wizard/FlashingCellWizard");
16
+ const getFlashingTargetViewItems_1 = require("./Utilities/getFlashingTargetViewItems");
16
17
  class FlashingCellModule extends AdaptableModuleBase_1.AdaptableModuleBase {
17
18
  constructor(api) {
18
19
  super(ModuleConstants.FlashingCellModuleId, 'Flashing Cell', 'flashing-cell', 'FlashingAlert', 'Flash cells when they change', api);
@@ -122,9 +123,13 @@ class FlashingCellModule extends AdaptableModuleBase_1.AdaptableModuleBase {
122
123
  direction = up ? 'up' : down ? 'down' : 'neutral';
123
124
  }
124
125
  flashingCellDefinitions.forEach((flashingCellDefinition) => {
125
- const flashTarget = this.api.flashingCellApi.getFlashingCellFlashTarget(flashingCellDefinition);
126
+ var _a;
127
+ let flashTarget = this.api.flashingCellApi.getFlashingCellFlashTarget(flashingCellDefinition);
126
128
  const flashColumnIds = { [dataChangedInfo.column.columnId]: true };
127
- if (flashTarget === 'row') {
129
+ /**
130
+ * When flashing a row, all columns in that row are marked to flash.
131
+ */
132
+ if (flashTarget === 'row' || ((_a = flashTarget === null || flashTarget === void 0 ? void 0 : flashTarget.includes) === null || _a === void 0 ? void 0 : _a.call(flashTarget, 'row'))) {
128
133
  allColumnIds.forEach((colId) => {
129
134
  flashColumnIds[colId] = true;
130
135
  });
@@ -140,20 +145,30 @@ class FlashingCellModule extends AdaptableModuleBase_1.AdaptableModuleBase {
140
145
  });
141
146
  });
142
147
  }
143
- getFlashingCellDefinitionsForDataChange(dataChangedEvent) {
144
- return this.getBaseAlertDefinitionsForDataChange(dataChangedEvent,
145
- // reactive flashing alert definitions are excluded as they are handled separately (asynchronously)
146
- this.api.flashingCellApi.getActiveNonReactiveFlashingCellDefinitions(), true);
148
+ isFlashingTargetOnlyAggChange(flashingCellDefinition) {
149
+ if (flashingCellDefinition.FlashTarget === 'aggFuncCell') {
150
+ return true;
151
+ }
152
+ return (Array.isArray(flashingCellDefinition.FlashTarget) &&
153
+ flashingCellDefinition.FlashTarget.length === 1 &&
154
+ flashingCellDefinition.FlashTarget.includes('aggFuncCell'));
147
155
  }
148
- getBaseAlertDefinitionsForDataChange(dataChangedEvent, definitions, defaultNoPredicateReturn = false) {
149
- let relatedAlertDefinitions = definitions
156
+ getFlashingCellDefinitionsForDataChange(dataChangedEvent) {
157
+ const definitions = this.api.flashingCellApi.getActiveFlashingCellDefinitions();
158
+ const defaultNoPredicateReturn = false;
159
+ let relatedFlashingCellsDefinitions = definitions
150
160
  .filter((v) => this.api.scopeApi.isColumnInScope(dataChangedEvent.column, v.Scope))
151
161
  .filter((flashingCellDefinition) => !AdaptableQuery_1.isReactiveQuery(flashingCellDefinition.Rule));
152
- let triggeredAlerts = [];
153
- if (ArrayExtensions_1.ArrayExtensions.IsNotNullOrEmpty(relatedAlertDefinitions)) {
154
- relatedAlertDefinitions.forEach((alertDefinition) => {
155
- if (alertDefinition.Rule.BooleanExpression) {
156
- let expression = alertDefinition.Rule.BooleanExpression;
162
+ let triggeredFlashingCells = [];
163
+ if (ArrayExtensions_1.ArrayExtensions.IsNotNullOrEmpty(relatedFlashingCellsDefinitions)) {
164
+ relatedFlashingCellsDefinitions.forEach((flashingCellDefinition) => {
165
+ // for aggregation the data-change needs to be aggChange
166
+ if (dataChangedEvent.trigger !== 'aggChange' &&
167
+ this.isFlashingTargetOnlyAggChange(flashingCellDefinition)) {
168
+ return;
169
+ }
170
+ if (flashingCellDefinition.Rule.BooleanExpression) {
171
+ let expression = flashingCellDefinition.Rule.BooleanExpression;
157
172
  let rowNode = dataChangedEvent.rowNode;
158
173
  if (!rowNode) {
159
174
  rowNode = this.api.gridApi.getRowNodeForPrimaryKey(dataChangedEvent.primaryKeyValue);
@@ -164,15 +179,15 @@ class FlashingCellModule extends AdaptableModuleBase_1.AdaptableModuleBase {
164
179
  .getQueryLanguageService()
165
180
  .evaluateBooleanExpression(expression, this.moduleInfo.ModuleName, rowNode);
166
181
  if (isSatisfiedExpression) {
167
- triggeredAlerts.push(alertDefinition);
182
+ triggeredFlashingCells.push(flashingCellDefinition);
168
183
  }
169
184
  }
170
- else if (this.isAlertPredicateTriggered(alertDefinition, dataChangedEvent, defaultNoPredicateReturn)) {
171
- triggeredAlerts.push(alertDefinition);
185
+ else if (this.isAlertPredicateTriggered(flashingCellDefinition, dataChangedEvent, defaultNoPredicateReturn)) {
186
+ triggeredFlashingCells.push(flashingCellDefinition);
172
187
  }
173
188
  });
174
189
  }
175
- return triggeredAlerts;
190
+ return triggeredFlashingCells;
176
191
  }
177
192
  isAlertPredicateTriggered(alert, dataChangedEvent, defaultNoPredicateReturn = false) {
178
193
  return this.api.predicateApi.handlePredicate(alert.Rule.Predicate, {
@@ -194,9 +209,10 @@ class FlashingCellModule extends AdaptableModuleBase_1.AdaptableModuleBase {
194
209
  toView(flashingCell) {
195
210
  return {
196
211
  items: [
197
- getScopeViewItems_1.getScopeViewItems(flashingCell.Scope),
198
- getRuleViewItems_1.getRuleViewItems(flashingCell.Rule, this.api),
212
+ Object.assign(Object.assign({}, getScopeViewItems_1.getScopeViewItems(flashingCell.Scope)), { label: 'Trigger' }),
213
+ Object.assign(Object.assign({}, getRuleViewItems_1.getRuleViewItems(flashingCell.Rule, this.api)), { label: 'Rule', name: 'Rule' }),
199
214
  getFlashingCellDurationViewItems_1.getFlashingCellDurationViewItems(flashingCell),
215
+ getFlashingTargetViewItems_1.getFlashingTargetViewItems(flashingCell),
200
216
  getFlashingCellStyleViewItems_1.getFlashingCellStyleViewItems(),
201
217
  ],
202
218
  abObject: flashingCell,
@@ -9,9 +9,9 @@ const FormatColumnRedux = tslib_1.__importStar(require("../Redux/ActionsReducers
9
9
  const LoggingHelper_1 = require("../Utilities/Helpers/LoggingHelper");
10
10
  const FormatColumnWizard_1 = require("../View/FormatColumn/Wizard/FormatColumnWizard");
11
11
  const getScopeViewItems_1 = require("./Utilities/getScopeViewItems");
12
- const FormatColumnStyleWizardSection_1 = require("../View/FormatColumn/Wizard/FormatColumnStyleWizardSection");
13
12
  const FormatColumnFormatWizardSection_1 = require("../View/FormatColumn/Wizard/FormatColumnFormatWizardSection");
14
13
  const getFormatColumnSettingsViewItems_1 = require("./Utilities/getFormatColumnSettingsViewItems");
14
+ const getFormatColumnStyleViewItems_1 = require("./Utilities/getFormatColumnStyleViewItems");
15
15
  class FormatColumnModule extends AdaptableModuleBase_1.AdaptableModuleBase {
16
16
  constructor(api) {
17
17
  super(ModuleConstants.FormatColumnModuleId, 'Format Column', 'format-column', 'FormatColumnPopup', 'Create a column style, display format or cell alignment', api);
@@ -221,7 +221,7 @@ class FormatColumnModule extends AdaptableModuleBase_1.AdaptableModuleBase {
221
221
  getScopeViewItems_1.getScopeViewItems(formatColumn.Scope),
222
222
  {
223
223
  name: 'Style',
224
- view: () => FormatColumnStyleWizardSection_1.renderFormatColumnStyleSummary(formatColumn, this.api),
224
+ view: () => getFormatColumnStyleViewItems_1.getFormatColumnStyleViewItems(formatColumn, this.api),
225
225
  },
226
226
  {
227
227
  name: 'Display Format',
@@ -18,7 +18,6 @@ import { SuspendableObject } from '../../../types';
18
18
  * Application
19
19
  * GridInfo
20
20
  * StateManagement
21
- * Piechart
22
21
  * TeamSharing
23
22
  */
24
23
  export interface ModuleInfo {
@@ -36,6 +36,7 @@ class LayoutModule extends AdaptableModuleBase_1.AdaptableModuleBase {
36
36
  });
37
37
  }
38
38
  addColumnMenuItems(column) {
39
+ var _a, _b;
39
40
  let returnColumnMenuItems = [];
40
41
  if (this.isModuleEditable()) {
41
42
  const isReadOnlyLayout = this.api.layoutApi.isCurrentLayoutReadOnly();
@@ -62,9 +63,20 @@ class LayoutModule extends AdaptableModuleBase_1.AdaptableModuleBase {
62
63
  }
63
64
  let selectMenuItems = [];
64
65
  if (column) {
65
- selectMenuItems.push(this.createColumnMenuItemClickFunction('Column', 'column-chooser', () => {
66
- this.api.columnApi.selectColumn(column.columnId);
67
- }));
66
+ const hasExistingSelection = (_b = (_a = this.api.gridApi.getSelectedCellInfo()) === null || _a === void 0 ? void 0 : _a.gridCells) === null || _b === void 0 ? void 0 : _b.length;
67
+ if (hasExistingSelection) {
68
+ selectMenuItems.push(this.createColumnMenuItemClickFunction('Column (Preserve Selection)', 'column-add', () => {
69
+ this.api.columnApi.addColumnToSelection(column.columnId);
70
+ }));
71
+ selectMenuItems.push(this.createColumnMenuItemClickFunction('Column (Reset Selection)', 'column-chooser', () => {
72
+ this.api.columnApi.selectColumn(column.columnId);
73
+ }));
74
+ }
75
+ else {
76
+ selectMenuItems.push(this.createColumnMenuItemClickFunction('Column', 'column-chooser', () => {
77
+ this.api.columnApi.selectColumn(column.columnId);
78
+ }));
79
+ }
68
80
  }
69
81
  selectMenuItems.push(this.createColumnMenuItemClickFunction('Whole Grid', this.moduleInfo.Glyph, () => {
70
82
  this.api.gridApi.selectAll();
@@ -28,6 +28,6 @@ export declare class QueryModule extends AdaptableModuleBase implements IModule
28
28
  }[];
29
29
  getViewProperties(): {
30
30
  getDeleteAction: (namedQuery: NamedQuery) => QueryRedux.NamedQueryDeleteAction;
31
- getEditWizard(): typeof NamedQueryWizard;
31
+ getEditWizard: () => typeof NamedQueryWizard;
32
32
  };
33
33
  }
@@ -47,9 +47,7 @@ class QueryModule extends AdaptableModuleBase_1.AdaptableModuleBase {
47
47
  getViewProperties() {
48
48
  return {
49
49
  getDeleteAction: QueryRedux.NamedQueryDelete,
50
- getEditWizard() {
51
- return NamedQueryWizard_1.NamedQueryWizard;
52
- },
50
+ getEditWizard: () => NamedQueryWizard_1.NamedQueryWizard,
53
51
  };
54
52
  }
55
53
  }
@@ -7,4 +7,5 @@ export declare class SettingsPanelModule extends AdaptableModuleBase implements
7
7
  constructor(api: AdaptableApi);
8
8
  addColumnMenuItems(column: AdaptableColumn): AdaptableMenuItem[] | undefined;
9
9
  addContextMenuItems(menuContext: ContextMenuContext): AdaptableMenuItem[] | undefined;
10
+ addModuleMenuItem(source: 'ModuleMenu' | 'ModuleButton'): AdaptableMenuItem | undefined;
10
11
  }
@@ -7,7 +7,8 @@ const AdaptableModuleBase_1 = require("./AdaptableModuleBase");
7
7
  const PopupRedux = tslib_1.__importStar(require("../Redux/ActionsReducers/PopupRedux"));
8
8
  class SettingsPanelModule extends AdaptableModuleBase_1.AdaptableModuleBase {
9
9
  constructor(api) {
10
- super(ModuleConstants.SettingsPanelModuleId, 'Settings Panel', 'settings', null, 'Manage all Adaptable Settings', api);
10
+ const friendlyName = api.internalApi.getAdaptableOptions().settingsPanelOptions.title;
11
+ super(ModuleConstants.SettingsPanelModuleId, friendlyName, 'settings', null, 'Manage all Adaptable Settings', api);
11
12
  }
12
13
  addColumnMenuItems(column) {
13
14
  return [
@@ -20,5 +21,10 @@ class SettingsPanelModule extends AdaptableModuleBase_1.AdaptableModuleBase {
20
21
  this.createColumnMenuItemReduxAction('Open ' + this.moduleInfo.FriendlyName, this.moduleInfo.Glyph, PopupRedux.PopupShowScreen()),
21
22
  ];
22
23
  }
24
+ addModuleMenuItem(source) {
25
+ if (this.isModuleAvailable()) {
26
+ return this.createColumnMenuItemReduxAction('Open ' + this.moduleInfo.FriendlyName, this.moduleInfo.Glyph, PopupRedux.PopupShowScreen());
27
+ }
28
+ }
23
29
  }
24
30
  exports.SettingsPanelModule = SettingsPanelModule;
@@ -7,7 +7,7 @@ const ModuleConstants = tslib_1.__importStar(require("../Utilities/Constants/Mod
7
7
  const isAdaptableObject_1 = require("../Utilities/isAdaptableObject");
8
8
  const TeamSharingRedux_1 = require("../Redux/ActionsReducers/TeamSharingRedux");
9
9
  const TeamSharingRedux = tslib_1.__importStar(require("../Redux/ActionsReducers/TeamSharingRedux"));
10
- const isEqual_1 = tslib_1.__importDefault(require("lodash-es/isEqual"));
10
+ const isEqual_1 = tslib_1.__importDefault(require("lodash/isEqual"));
11
11
  const LayoutRedux_1 = require("../Redux/ActionsReducers/LayoutRedux");
12
12
  class TeamSharingModule extends AdaptableModuleBase_1.AdaptableModuleBase {
13
13
  constructor(api) {
@@ -0,0 +1,5 @@
1
+ import { FlashingCellDefinition } from '../../../types';
2
+ export declare const getFlashingTargetViewItems: (flashingCell: FlashingCellDefinition) => {
3
+ name: string;
4
+ values: import("../../PredefinedConfig/FlashingCellState").FlashTargetTypes[];
5
+ };
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getFlashingTargetViewItems = void 0;
4
+ exports.getFlashingTargetViewItems = (flashingCell) => {
5
+ return {
6
+ name: 'Target',
7
+ values: Array.isArray(flashingCell.FlashTarget)
8
+ ? flashingCell.FlashTarget
9
+ : [flashingCell.FlashTarget],
10
+ };
11
+ };
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ import { AdaptableApi, FormatColumn } from '../../../types';
3
+ export declare const getFormatColumnStyleViewItems: (formatColumn: FormatColumn, api: AdaptableApi) => JSX.Element;
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getFormatColumnStyleViewItems = void 0;
4
+ const tslib_1 = require("tslib");
5
+ const React = tslib_1.__importStar(require("react"));
6
+ const rebass_1 = require("rebass");
7
+ const FormatColumnStyleWizardSection_1 = require("../../View/FormatColumn/Wizard/FormatColumnStyleWizardSection");
8
+ exports.getFormatColumnStyleViewItems = (formatColumn, api) => {
9
+ return React.createElement(rebass_1.Box, { mt: 2 }, FormatColumnStyleWizardSection_1.renderFormatColumnStyleSummary(formatColumn, api));
10
+ };
@@ -4,7 +4,6 @@ export declare const POPUP = "Popup";
4
4
  export declare const TEAM_SHARING = "TeamSharing";
5
5
  export declare const BULK_UPDATE = "BulkUpdate";
6
6
  export declare const APPLICATION = "Application";
7
- export declare const SPARKLINE_COLUMN = "SparklineColumn";
8
7
  export declare const CELL_SUMMARY = "CellSummary";
9
8
  export declare const SYSTEM_FILTER = "SystemFilter";
10
9
  export declare const PLUGINS = "Plugins";
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.PLUGINS = exports.SYSTEM_FILTER = exports.CELL_SUMMARY = exports.SPARKLINE_COLUMN = exports.APPLICATION = exports.BULK_UPDATE = exports.TEAM_SHARING = exports.POPUP = exports.GRID = exports.SYSTEM = void 0;
3
+ exports.PLUGINS = exports.SYSTEM_FILTER = exports.CELL_SUMMARY = exports.APPLICATION = exports.BULK_UPDATE = exports.TEAM_SHARING = exports.POPUP = exports.GRID = exports.SYSTEM = void 0;
4
4
  // constants used in Config
5
5
  exports.SYSTEM = 'System';
6
6
  exports.GRID = 'Grid';
@@ -8,7 +8,6 @@ exports.POPUP = 'Popup';
8
8
  exports.TEAM_SHARING = 'TeamSharing';
9
9
  exports.BULK_UPDATE = 'BulkUpdate';
10
10
  exports.APPLICATION = 'Application';
11
- exports.SPARKLINE_COLUMN = 'SparklineColumn';
12
11
  exports.CELL_SUMMARY = 'CellSummary';
13
12
  exports.SYSTEM_FILTER = 'SystemFilter';
14
13
  exports.PLUGINS = 'Plugins';