@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
@@ -2,9 +2,7 @@ import * as Redux from 'redux';
2
2
  import { SystemState } from '../../PredefinedConfig/SystemState';
3
3
  import { CellHighlightInfo, RowHighlightInfo } from '../../PredefinedConfig/Common/CellHighlightInfo';
4
4
  import { PreviewInfo } from '../../Utilities/Interface/Preview';
5
- import { ChartVisibility } from '../../PredefinedConfig/Common/ChartEnums';
6
5
  import { ExportCustomDestinationPopup, Report } from '../../PredefinedConfig/ExportState';
7
- import { ChartData } from '../../PredefinedConfig/ChartState';
8
6
  import { BulkUpdateValidationResult } from '../../Strategy/Interface/IBulkUpdateModule';
9
7
  import { GridCell } from '../../PredefinedConfig/Selection/GridCell';
10
8
  import { AdaptableAlert } from '../../PredefinedConfig/Common/AdaptableAlert';
@@ -34,8 +32,6 @@ export declare const SYSTEM_BULK_UPDATE_CHECK_CELL_SELECTION = "SYSTEM_BULK_UPDA
34
32
  export declare const SYSTEM_BULK_UPDATE_SET_VALID_SELECTION = "SYSTEM_BULK_UPDATE_SET_VALID_SELECTION";
35
33
  export declare const SYSTEM_BULK_UPDATE_SET_PREVIEW = "SYSTEM_BULK_UPDATE_SET_PREVIEW";
36
34
  export declare const SYSTEM_BULK_UPDATE_CHANGE_VALUE = "SYSTEM_BULK_UPDATE_CHANGE_VALUE";
37
- export declare const SYSTEM_CHART_SET_CHART_DATA = "SYSTEM_CHART_SET_CHART_DATA";
38
- export declare const SYSTEM_CHART_SET_CHART_VISIBILITY = "SYSTEM_CHART_SET_CHART_VISIBILITY";
39
35
  export declare const SYSTEM_HIGHLIGHT_CELL_ADD = "SYSTEM_HIGHLIGHT_CELL_ADD";
40
36
  export declare const SYSTEM_HIGHLIGHT_CELL_DELETE = "SYSTEM_HIGHLIGHT_CELL_DELETE";
41
37
  export declare const SYSTEM_HIGHLIGHT_CELL_DELETE_ALL = "SYSTEM_HIGHLIGHT_CELL_DELETE_ALL";
@@ -153,12 +149,6 @@ export interface BulkUpdateChangeValueAction extends Redux.Action {
153
149
  export interface BulkUpdateSetValidSelectionAction extends Redux.Action {
154
150
  bulkUpdateValidationResult: BulkUpdateValidationResult;
155
151
  }
156
- export interface ChartSetChartDataAction extends Redux.Action {
157
- chartData: ChartData;
158
- }
159
- export interface ChartSetChartVisibiityAction extends Redux.Action {
160
- chartVisibility: ChartVisibility;
161
- }
162
152
  export interface CalculatedColumnSetErrorMessageAction extends Redux.Action {
163
153
  errorMsg: string;
164
154
  }
@@ -239,8 +229,6 @@ export declare const BulkUpdateCheckCellSelection: () => BulkUpdateCheckCellSele
239
229
  export declare const BulkUpdateSetValidSelection: (bulkUpdateValidationResult: BulkUpdateValidationResult) => BulkUpdateSetValidSelectionAction;
240
230
  export declare const BulkUpdateSetPreview: (BulkUpdatePreviewInfo: PreviewInfo) => BulkUpdateSetPreviewAction;
241
231
  export declare const BulkUpdateChangeValue: (bulkUpdateValue: string) => BulkUpdateChangeValueAction;
242
- export declare const ChartSetChartData: (chartData: ChartData) => ChartSetChartDataAction;
243
- export declare const ChartSetChartVisibility: (ChartVisibility: ChartVisibility) => ChartSetChartVisibiityAction;
244
232
  export declare const SetNewColumnListOrder: (VisibleColumnList: string[]) => SetNewColumnListOrderAction;
245
233
  export declare const SetLastAppliedShortcut: (gridCell: GridCell | undefined) => SetLastAppliedShortcutAction;
246
234
  export declare const SystemCachedQueryAdd: (cachedQuery: CachedQuery) => SystemCachedQueryAddAction;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.SystemReducer = exports.getSystemExportCustomDestinationPopups = exports.SystemSettingsPanelSet = exports.SystemExportCustomDestinationPopupHide = exports.SystemExportCustomDestinationPopupShow = exports.SystemDataChangeHistoryResume = exports.SystemDataChangeHistorySuspend = exports.SystemDataChangeHistoryDisable = exports.SystemDataChangeHistoryEnable = exports.SystemDataChangeHistoryUndo = exports.SystemDataChangeHistoryAdd = exports.SystemLicenseDisablePersistence = exports.SystemLicenseShowWatermark = exports.SystemProgressIndicatorHide = exports.SystemProgressIndicatorShow = exports.SystemCellSummaryChangeOperation = exports.SystemCachedQueryAdd = exports.SetLastAppliedShortcut = exports.SetNewColumnListOrder = exports.ChartSetChartVisibility = exports.ChartSetChartData = exports.BulkUpdateChangeValue = exports.BulkUpdateSetPreview = exports.BulkUpdateSetValidSelection = exports.BulkUpdateCheckCellSelection = exports.SmartEditSetPreview = exports.SmartEditSetValidSelection = exports.SmartEditCheckCellSelection = exports.SmartEditChangeOperation = exports.SmartEditChangeValue = exports.SystemStatusMessageInfoDeleteAll = exports.SystemStatusMessageInfoDelete = exports.SystemStatusMessageInfoAdd = exports.SystemFlashingCellDeleteAll = exports.SystemFlashingCellDelete = exports.SystemFlashingCellAdd = exports.SystemAlertRemoveHighlight = exports.SystemAlertDeleteAll = exports.SystemAlertDelete = exports.SystemAlertAdd = exports.SystemHighlightRowDeleteAll = exports.SystemHighlightRowDelete = exports.SystemHighlightRowAdd = exports.SystemHighlightCellDeleteAll = exports.SystemHighlightCellDelete = exports.SystemHighlightCellAdd = exports.SYSTEM_SETTINGS_PANEL_SET = exports.SYSTEM_DATA_CHANGE_HISTORY_RESUME = exports.SYSTEM_DATA_CHANGE_HISTORY_SUSPEND = exports.SYSTEM_DATA_CHANGE_HISTORY_DISABLE = exports.SYSTEM_DATA_CHANGE_HISTORY_ENABLE = exports.SYSTEM_DATA_CHANGE_HISTORY_UNDO = exports.SYSTEM_DATA_CHANGE_HISTORY_ADD = exports.SYSTEM_LICENSE_DISABLE_PERSISTENCE = exports.SYSTEM_LICENSE_SHOW_WATERMARK = exports.SYSTEM_PROGRESS_INDICATOR_HIDE = exports.SYSTEM_PROGRESS_INDICATOR_SHOW = exports.SYSTEM_EXPORT_CUSTOM_DESTINATION_POPUP_HIDE = exports.SYSTEM_EXPORT_CUSTOM_DESTINATION_POPUP_SHOW = exports.SYSTEM_CELL_SUMMARY_CHANGE_OPERATION = exports.SYSTEM_CACHED_QUERY_ADD = exports.SYSTEM_SET_LAST_APPLIED_SHORTCUT = exports.SYSTEM_SET_NEW_COLUMN_LIST_ORDER = exports.SYSTEM_HIGHLIGHT_ROW_DELETE_ALL = exports.SYSTEM_HIGHLIGHT_ROW_DELETE = exports.SYSTEM_HIGHLIGHT_ROW_ADD = exports.SYSTEM_HIGHLIGHT_CELL_DELETE_ALL = exports.SYSTEM_HIGHLIGHT_CELL_DELETE = exports.SYSTEM_HIGHLIGHT_CELL_ADD = exports.SYSTEM_CHART_SET_CHART_VISIBILITY = exports.SYSTEM_CHART_SET_CHART_DATA = exports.SYSTEM_BULK_UPDATE_CHANGE_VALUE = exports.SYSTEM_BULK_UPDATE_SET_PREVIEW = exports.SYSTEM_BULK_UPDATE_SET_VALID_SELECTION = exports.SYSTEM_BULK_UPDATE_CHECK_CELL_SELECTION = exports.SYSTEM_SMART_EDIT_CHANGE_OPERATION = exports.SYSTEM_SMART_EDIT_CHANGE_VALUE = exports.SYSTEM_SMARTEDIT_SET_PREVIEW = exports.SYSTEM_SMARTEDIT_SET_VALID_SELECTION = exports.SYSTEM_SMARTEDIT_FETCH_PREVIEW = exports.SYSTEM_SMARTEDIT_CHECK_CELL_SELECTION = exports.SYSTEM_STATUS_MESSAGE_INFO_DELETE_ALL = exports.SYSTEM_STATUS_MESSAGE_INFO_DELETE = exports.SYSTEM_STATUS_MESSAGE_INFO_ADD = exports.SYSTEM_FLASHING_ALERT_DELETE_ALL = exports.SYSTEM_FLASHING_ALERT_DELETE = exports.SYSTEM_FLASHING_ALERT_ADD = exports.SYSTEM_ALERT_REMOVE_HIGHLIGHT = exports.SYSTEM_ALERT_DELETE_ALL = exports.SYSTEM_ALERT_DELETE = exports.SYSTEM_ALERT_ADD = exports.FLASHING_ALERT_ROW_KEY = void 0;
3
+ exports.SystemReducer = exports.getSystemExportCustomDestinationPopups = exports.SystemSettingsPanelSet = exports.SystemExportCustomDestinationPopupHide = exports.SystemExportCustomDestinationPopupShow = exports.SystemDataChangeHistoryResume = exports.SystemDataChangeHistorySuspend = exports.SystemDataChangeHistoryDisable = exports.SystemDataChangeHistoryEnable = exports.SystemDataChangeHistoryUndo = exports.SystemDataChangeHistoryAdd = exports.SystemLicenseDisablePersistence = exports.SystemLicenseShowWatermark = exports.SystemProgressIndicatorHide = exports.SystemProgressIndicatorShow = exports.SystemCellSummaryChangeOperation = exports.SystemCachedQueryAdd = exports.SetLastAppliedShortcut = exports.SetNewColumnListOrder = exports.BulkUpdateChangeValue = exports.BulkUpdateSetPreview = exports.BulkUpdateSetValidSelection = exports.BulkUpdateCheckCellSelection = exports.SmartEditSetPreview = exports.SmartEditSetValidSelection = exports.SmartEditCheckCellSelection = exports.SmartEditChangeOperation = exports.SmartEditChangeValue = exports.SystemStatusMessageInfoDeleteAll = exports.SystemStatusMessageInfoDelete = exports.SystemStatusMessageInfoAdd = exports.SystemFlashingCellDeleteAll = exports.SystemFlashingCellDelete = exports.SystemFlashingCellAdd = exports.SystemAlertRemoveHighlight = exports.SystemAlertDeleteAll = exports.SystemAlertDelete = exports.SystemAlertAdd = exports.SystemHighlightRowDeleteAll = exports.SystemHighlightRowDelete = exports.SystemHighlightRowAdd = exports.SystemHighlightCellDeleteAll = exports.SystemHighlightCellDelete = exports.SystemHighlightCellAdd = exports.SYSTEM_SETTINGS_PANEL_SET = exports.SYSTEM_DATA_CHANGE_HISTORY_RESUME = exports.SYSTEM_DATA_CHANGE_HISTORY_SUSPEND = exports.SYSTEM_DATA_CHANGE_HISTORY_DISABLE = exports.SYSTEM_DATA_CHANGE_HISTORY_ENABLE = exports.SYSTEM_DATA_CHANGE_HISTORY_UNDO = exports.SYSTEM_DATA_CHANGE_HISTORY_ADD = exports.SYSTEM_LICENSE_DISABLE_PERSISTENCE = exports.SYSTEM_LICENSE_SHOW_WATERMARK = exports.SYSTEM_PROGRESS_INDICATOR_HIDE = exports.SYSTEM_PROGRESS_INDICATOR_SHOW = exports.SYSTEM_EXPORT_CUSTOM_DESTINATION_POPUP_HIDE = exports.SYSTEM_EXPORT_CUSTOM_DESTINATION_POPUP_SHOW = exports.SYSTEM_CELL_SUMMARY_CHANGE_OPERATION = exports.SYSTEM_CACHED_QUERY_ADD = exports.SYSTEM_SET_LAST_APPLIED_SHORTCUT = exports.SYSTEM_SET_NEW_COLUMN_LIST_ORDER = exports.SYSTEM_HIGHLIGHT_ROW_DELETE_ALL = exports.SYSTEM_HIGHLIGHT_ROW_DELETE = exports.SYSTEM_HIGHLIGHT_ROW_ADD = exports.SYSTEM_HIGHLIGHT_CELL_DELETE_ALL = exports.SYSTEM_HIGHLIGHT_CELL_DELETE = exports.SYSTEM_HIGHLIGHT_CELL_ADD = exports.SYSTEM_BULK_UPDATE_CHANGE_VALUE = exports.SYSTEM_BULK_UPDATE_SET_PREVIEW = exports.SYSTEM_BULK_UPDATE_SET_VALID_SELECTION = exports.SYSTEM_BULK_UPDATE_CHECK_CELL_SELECTION = exports.SYSTEM_SMART_EDIT_CHANGE_OPERATION = exports.SYSTEM_SMART_EDIT_CHANGE_VALUE = exports.SYSTEM_SMARTEDIT_SET_PREVIEW = exports.SYSTEM_SMARTEDIT_SET_VALID_SELECTION = exports.SYSTEM_SMARTEDIT_FETCH_PREVIEW = exports.SYSTEM_SMARTEDIT_CHECK_CELL_SELECTION = exports.SYSTEM_STATUS_MESSAGE_INFO_DELETE_ALL = exports.SYSTEM_STATUS_MESSAGE_INFO_DELETE = exports.SYSTEM_STATUS_MESSAGE_INFO_ADD = exports.SYSTEM_FLASHING_ALERT_DELETE_ALL = exports.SYSTEM_FLASHING_ALERT_DELETE = exports.SYSTEM_FLASHING_ALERT_ADD = exports.SYSTEM_ALERT_REMOVE_HIGHLIGHT = exports.SYSTEM_ALERT_DELETE_ALL = exports.SYSTEM_ALERT_DELETE = exports.SYSTEM_ALERT_ADD = exports.FLASHING_ALERT_ROW_KEY = void 0;
4
4
  const GeneralConstants_1 = require("../../Utilities/Constants/GeneralConstants");
5
5
  const Helper_1 = require("../../Utilities/Helpers/Helper");
6
6
  /*
@@ -34,9 +34,6 @@ exports.SYSTEM_BULK_UPDATE_CHECK_CELL_SELECTION = 'SYSTEM_BULK_UPDATE_CHECK_CELL
34
34
  exports.SYSTEM_BULK_UPDATE_SET_VALID_SELECTION = 'SYSTEM_BULK_UPDATE_SET_VALID_SELECTION';
35
35
  exports.SYSTEM_BULK_UPDATE_SET_PREVIEW = 'SYSTEM_BULK_UPDATE_SET_PREVIEW';
36
36
  exports.SYSTEM_BULK_UPDATE_CHANGE_VALUE = 'SYSTEM_BULK_UPDATE_CHANGE_VALUE';
37
- // Chart Management
38
- exports.SYSTEM_CHART_SET_CHART_DATA = 'SYSTEM_CHART_SET_CHART_DATA';
39
- exports.SYSTEM_CHART_SET_CHART_VISIBILITY = 'SYSTEM_CHART_SET_CHART_VISIBILITY';
40
37
  // Cell Highlight
41
38
  exports.SYSTEM_HIGHLIGHT_CELL_ADD = 'SYSTEM_HIGHLIGHT_CELL_ADD';
42
39
  exports.SYSTEM_HIGHLIGHT_CELL_DELETE = 'SYSTEM_HIGHLIGHT_CELL_DELETE';
@@ -173,14 +170,6 @@ exports.BulkUpdateChangeValue = (bulkUpdateValue) => ({
173
170
  type: exports.SYSTEM_BULK_UPDATE_CHANGE_VALUE,
174
171
  bulkUpdateValue,
175
172
  });
176
- exports.ChartSetChartData = (chartData) => ({
177
- type: exports.SYSTEM_CHART_SET_CHART_DATA,
178
- chartData,
179
- });
180
- exports.ChartSetChartVisibility = (ChartVisibility) => ({
181
- type: exports.SYSTEM_CHART_SET_CHART_VISIBILITY,
182
- chartVisibility: ChartVisibility,
183
- });
184
173
  exports.SetNewColumnListOrder = (VisibleColumnList) => ({
185
174
  type: exports.SYSTEM_SET_NEW_COLUMN_LIST_ORDER,
186
175
  visibleColumnList: VisibleColumnList,
@@ -259,8 +248,6 @@ const initialState = {
259
248
  SmartEditPreviewInfo: null,
260
249
  BulkUpdateValidationResult: { IsValid: false, Column: null },
261
250
  BulkUpdatePreviewInfo: null,
262
- ChartData: null,
263
- ChartVisibility: GeneralConstants_1.SYSTEM_DEFAULT_CHART_VISIBILITY,
264
251
  CalculatedColumnErrorMessage: GeneralConstants_1.EMPTY_STRING,
265
252
  ReportErrorMessage: GeneralConstants_1.EMPTY_STRING,
266
253
  LastAppliedShortCut: null,
@@ -448,13 +435,6 @@ exports.SystemReducer = (state = initialState, action) => {
448
435
  return Object.assign({}, state, {
449
436
  BulkUpdateValue: action.bulkUpdateValue,
450
437
  });
451
- // Chart Actions
452
- case exports.SYSTEM_CHART_SET_CHART_DATA:
453
- return Object.assign({}, state, { ChartData: action.chartData });
454
- case exports.SYSTEM_CHART_SET_CHART_VISIBILITY:
455
- return Object.assign({}, state, {
456
- ChartVisibility: action.chartVisibility,
457
- });
458
438
  case exports.SYSTEM_SET_LAST_APPLIED_SHORTCUT: {
459
439
  return Object.assign({}, state, {
460
440
  LastAppliedShortCut: action.gridCell,
@@ -1,7 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.ToolPanelReducer = exports.ToolPanelReady = exports.ToolPanelSetModuleButtons = exports.ToolPanelCollapseToolPanel = exports.ToolPanelExpandToolPanel = exports.ToolPanelHideToolPanel = exports.ToolPanelShowToolPanel = exports.ToolPanelSetToolPanels = exports.TOOLPANEL_READY = exports.TOOLPANEL_SET_MODULE_BUTTONS = exports.TOOLPANEL_COLLAPSE_TOOLPANEL = exports.TOOLPANEL_EXPAND_TOOLPANEL = exports.TOOLPANEL_HIDE_TOOLPANEL = exports.TOOLPANEL_SHOW_TOOLPANEL = exports.TOOLPANEL_SET_TOOLPANELS = void 0;
4
- const GeneralConstants_1 = require("../../Utilities/Constants/GeneralConstants");
5
4
  /**
6
5
  * @ReduxAction Tool Panels have been set in AdapTable ToolPanel Component
7
6
  */
@@ -61,7 +60,7 @@ exports.ToolPanelReady = (toolPanelState) => ({
61
60
  const initialState = {
62
61
  // default ToolPanels are set in ToolPanelModule.updateOldConfig() because we have to evaluate the ToolPanelOptions (for CustomToolPanel)
63
62
  ToolPanels: undefined,
64
- ModuleButtons: GeneralConstants_1.EMPTY_ARRAY,
63
+ ModuleButtons: ['SettingsPanel'],
65
64
  };
66
65
  exports.ToolPanelReducer = (state = initialState, action) => {
67
66
  var _a, _b, _c, _d;
@@ -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,
@@ -192,7 +186,6 @@ class AdaptableStore {
192
186
  ConfigConstants.GRID,
193
187
  ConfigConstants.POPUP,
194
188
  ConfigConstants.PLUGINS,
195
- ConfigConstants.SPARKLINE_COLUMN,
196
189
  ];
197
190
  // this is now VERY BADLY NAMED!
198
191
  let rootReducer = AdaptableReduxMerger_1.mergeReducer(rootReducerWithResetManagement, exports.LOAD_STATE);
@@ -551,9 +544,6 @@ const adaptableMiddleware = (adaptable) => function (middlewareAPI) {
551
544
  * Action: We set up all columns again
552
545
  */
553
546
  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
547
  case FormatColumnRedux.FORMAT_COLUMN_ADD:
558
548
  case FormatColumnRedux.FORMAT_COLUMN_EDIT:
559
549
  case FormatColumnRedux.FORMAT_COLUMN_DELETE:
@@ -688,7 +678,7 @@ const adaptableMiddleware = (adaptable) => function (middlewareAPI) {
688
678
  case ScheduleRedux.OPENFIN_SCHEDULE_SUSPEND:
689
679
  case ScheduleRedux.OPENFIN_SCHEDULE_UN_SUSPEND: {
690
680
  let returnAction = next(action);
691
- let module = adaptable.modules.get(ModuleConstants.ScheduleModuleId);
681
+ let module = (adaptable.adaptableModules.get(ModuleConstants.ScheduleModuleId));
692
682
  module.setUpSechduleJobs();
693
683
  return returnAction;
694
684
  }
@@ -767,7 +757,7 @@ const adaptableMiddleware = (adaptable) => function (middlewareAPI) {
767
757
  * Action (4): Set the Preview Values (this will populate the preview screen)
768
758
  */
769
759
  case SystemRedux.SYSTEM_SMARTEDIT_CHECK_CELL_SELECTION: {
770
- let module = adaptable.modules.get(ModuleConstants.SmartEditModuleId);
760
+ let module = (adaptable.adaptableModules.get(ModuleConstants.SmartEditModuleId));
771
761
  let state = middlewareAPI.getState();
772
762
  let returnAction = next(action);
773
763
  let apiReturn = module.CheckCorrectCellSelection();
@@ -805,7 +795,7 @@ const adaptableMiddleware = (adaptable) => function (middlewareAPI) {
805
795
  //all our logic needs to be executed AFTER the main reducers
806
796
  //so our state is up to date which allow us not to care about the data within each different action
807
797
  let returnAction = next(action);
808
- let module = adaptable.modules.get(ModuleConstants.SmartEditModuleId);
798
+ let module = (adaptable.adaptableModules.get(ModuleConstants.SmartEditModuleId));
809
799
  let state = middlewareAPI.getState();
810
800
  let apiReturn = module.BuildPreviewValues(state.System.SmartEditValue, state.System.SmartEditOperation);
811
801
  middlewareAPI.dispatch(SystemRedux.SmartEditSetPreview(apiReturn));
@@ -817,7 +807,7 @@ const adaptableMiddleware = (adaptable) => function (middlewareAPI) {
817
807
  * Action (2): Sends these new values to the Smart Edit module (which will, in turn, apply them to Adaptable)
818
808
  */
819
809
  case SmartEditRedux.SMART_EDIT_COMPLETE: {
820
- let module = adaptable.modules.get(ModuleConstants.SmartEditModuleId);
810
+ let module = (adaptable.adaptableModules.get(ModuleConstants.SmartEditModuleId));
821
811
  const actionTyped = action;
822
812
  let thePreview = middlewareAPI.getState().System.SmartEditPreviewInfo;
823
813
  let newValues = PreviewHelper_1.PreviewHelper.GetCellInfosFromPreview(thePreview, actionTyped.bypassValidationWarnings);
@@ -839,7 +829,7 @@ const adaptableMiddleware = (adaptable) => function (middlewareAPI) {
839
829
  * BULK UPDATE ACTIONS
840
830
  *******************/
841
831
  case SystemRedux.SYSTEM_BULK_UPDATE_CHECK_CELL_SELECTION: {
842
- let module = (adaptable.modules.get(ModuleConstants.BulkUpdateModuleId));
832
+ let module = (adaptable.adaptableModules.get(ModuleConstants.BulkUpdateModuleId));
843
833
  let state = middlewareAPI.getState();
844
834
  let returnAction = next(action);
845
835
  let apiReturn = module.checkCorrectCellSelection();
@@ -866,7 +856,7 @@ const adaptableMiddleware = (adaptable) => function (middlewareAPI) {
866
856
  //all our logic needs to be executed AFTER the main reducers
867
857
  //so our state is up to date which allow us not to care about the data within each different action
868
858
  let returnAction = next(action);
869
- let module = (adaptable.modules.get(ModuleConstants.BulkUpdateModuleId));
859
+ let module = (adaptable.adaptableModules.get(ModuleConstants.BulkUpdateModuleId));
870
860
  let state = middlewareAPI.getState();
871
861
  let apiReturn = module.buildPreviewValues(state.System.BulkUpdateValue);
872
862
  middlewareAPI.dispatch(SystemRedux.BulkUpdateSetPreview(apiReturn));
@@ -897,7 +887,7 @@ const adaptableMiddleware = (adaptable) => function (middlewareAPI) {
897
887
  case PlusMinusRedux.PLUS_MINUS_RULE_EDIT:
898
888
  case PlusMinusRedux.PLUS_MINUS_RULE_DELETE: {
899
889
  let returnAction = next(action);
900
- let module = adaptable.modules.get(ModuleConstants.PlusMinusModuleId);
890
+ let module = (adaptable.adaptableModules.get(ModuleConstants.PlusMinusModuleId));
901
891
  if (module) {
902
892
  module.checkListenToKeyDown();
903
893
  }
@@ -924,7 +914,7 @@ const adaptableMiddleware = (adaptable) => function (middlewareAPI) {
924
914
  case ShortcutRedux.SHORTCUT_EDIT:
925
915
  case ShortcutRedux.SHORTCUT_DELETE: {
926
916
  let returnAction = next(action);
927
- let module = adaptable.modules.get(ModuleConstants.ShortcutModuleId);
917
+ let module = (adaptable.adaptableModules.get(ModuleConstants.ShortcutModuleId));
928
918
  if (module) {
929
919
  module.checkListenToKeyDown();
930
920
  }
@@ -945,7 +935,7 @@ const adaptableMiddleware = (adaptable) => function (middlewareAPI) {
945
935
  return returnAction;
946
936
  }
947
937
  case ExportRedux.EXPORT_APPLY: {
948
- let module = adaptable.modules.get(ModuleConstants.ExportModuleId);
938
+ let module = (adaptable.adaptableModules.get(ModuleConstants.ExportModuleId));
949
939
  const actionTyped = action;
950
940
  module.export(actionTyped.Report, actionTyped.ExportDestination);
951
941
  return next(action);
@@ -1222,7 +1212,7 @@ const adaptableMiddleware = (adaptable) => function (middlewareAPI) {
1222
1212
  * GRID (INTERNAL) ACTIONS
1223
1213
  *******************/
1224
1214
  case GridRedux.GRID_CREATE_CELLS_SUMMARY: {
1225
- let module = (adaptable.modules.get(ModuleConstants.CellSummaryModuleId));
1215
+ let module = (adaptable.adaptableModules.get(ModuleConstants.CellSummaryModuleId));
1226
1216
  let returnAction = next(action);
1227
1217
  let selectedCellInfo = middlewareAPI.getState().Grid.SelectedCellInfo;
1228
1218
  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
  }
@@ -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
  },
@@ -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
  }
@@ -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);
@@ -141,9 +142,7 @@ class FlashingCellModule extends AdaptableModuleBase_1.AdaptableModuleBase {
141
142
  });
142
143
  }
143
144
  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);
145
+ return this.getBaseAlertDefinitionsForDataChange(dataChangedEvent, this.api.flashingCellApi.getActiveFlashingCellDefinitions(), true);
147
146
  }
148
147
  getBaseAlertDefinitionsForDataChange(dataChangedEvent, definitions, defaultNoPredicateReturn = false) {
149
148
  let relatedAlertDefinitions = definitions
@@ -194,9 +193,10 @@ class FlashingCellModule extends AdaptableModuleBase_1.AdaptableModuleBase {
194
193
  toView(flashingCell) {
195
194
  return {
196
195
  items: [
197
- getScopeViewItems_1.getScopeViewItems(flashingCell.Scope),
196
+ Object.assign(Object.assign({}, getScopeViewItems_1.getScopeViewItems(flashingCell.Scope)), { label: 'Trigger' }),
198
197
  getRuleViewItems_1.getRuleViewItems(flashingCell.Rule, this.api),
199
198
  getFlashingCellDurationViewItems_1.getFlashingCellDurationViewItems(flashingCell),
199
+ getFlashingTargetViewItems_1.getFlashingTargetViewItems(flashingCell),
200
200
  getFlashingCellStyleViewItems_1.getFlashingCellStyleViewItems(),
201
201
  ],
202
202
  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;
@@ -0,0 +1,5 @@
1
+ import { FlashingCellDefinition } from '../../../types';
2
+ export declare const getFlashingTargetViewItems: (flashingCell: FlashingCellDefinition) => {
3
+ name: string;
4
+ values: ("cell" | "row")[];
5
+ };
@@ -0,0 +1,9 @@
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: [flashingCell.FlashTarget],
8
+ };
9
+ };
@@ -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';
@@ -1,5 +1,4 @@
1
1
  import { SummaryOperation } from '../../PredefinedConfig/Common/Enums';
2
- import { ChartVisibility, AxisTotal } from '../../PredefinedConfig/Common/ChartEnums';
3
2
  import { AdaptableTheme } from '../../PredefinedConfig/ThemeState';
4
3
  import { AdaptableMessageType } from '../../PredefinedConfig/Common/AdaptableMessageType';
5
4
  export declare const AUTOGENERATED_PK_COLUMN: string;
@@ -22,30 +21,22 @@ export declare const AB_SPECIAL_COLUMN = "abSpecialColumn";
22
21
  export declare const HALF_SECOND: number;
23
22
  export declare const AG_GRID_GROUPED_COLUMN: string;
24
23
  export declare const SYSTEM_STATUS_DEFAULT_MAX_MESSAGES_IN_STORE: number;
25
- export declare const CHART_DEFAULT_REFRESH_RATE: number;
26
24
  export declare const QUICK_SEARCH_DEFAULT_BACK_COLOR: string;
27
25
  export declare const QUICK_SEARCH_DEFAULT_FORE_COLOR: string;
28
26
  export declare const QUICK_SEARCH_DEBOUNCE_TIME: number;
29
27
  export declare const CELL_SUMMARY_DEFAULT_OPERATION: SummaryOperation | string;
30
- export declare const SYSTEM_DEFAULT_CHART_VISIBILITY: ChartVisibility;
31
28
  export declare const SYSTEM_DEFAULT_SYSTEM_STATUS_TYPE: AdaptableMessageType;
32
29
  export declare const THEME_DEFAULT_CURRENT_THEME: string;
33
30
  export declare const DEFAULT_LIVE_REPORT_THROTTLE_TIME: number;
34
31
  /**
35
32
  * Object Factory
36
33
  */
37
- export declare const CHART_DEFAULT_YAXIS_TOTAL: AxisTotal;
38
34
  export declare const PLUS_MINUS_DEFAULT_NUDGE_VALUE: number;
39
- export declare const ALERT_DEFAULT_RANGE_OPERAND_TYPE: 'Value' | 'Column';
40
35
  export declare const ALERT_DEFAULT_MESSAGE_TYPE: AdaptableMessageType;
41
36
  export declare const ALERT_DEFAULT_SHOW_POPUP: boolean;
42
- export declare const ALERT_DEFAULT_HIGHLIGHT_CELL: boolean;
43
- export declare const ALERT_DEFAULT_HIGHLIGHT_ROW: boolean;
44
- export declare const ALERT_DEFAULT_LOG_TO_CONSOLE: boolean;
45
37
  /**
46
38
  * Constants for State (primarily for audit property events) - good idea?
47
39
  */
48
- export declare const CURRENT_CHART_NAME_STATE_PROPERTY: string;
49
40
  export declare const SUMMARY_OPERATION_STATE_PROPERTY: string;
50
41
  export declare const CURRENT_LAYOUT_STATE_PROPERTY: string;
51
42
  export declare const CURRENT_DATA_SOURCE_STATE_PROPERTY: string;