@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
@@ -1,8 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.THEME_STYLE = exports.SELECTED_ROWS_REPORT = exports.SELECTED_CELLS_REPORT = exports.CURRENT_DATA_REPORT = exports.ALL_DATA_REPORT = exports.VISUAL_DATA_REPORT = exports.SYSTEM_THEMES = exports.SMART_EDIT_MATH_OPERATION_STATE_PROPERTY = exports.SMART_EDIT_VALUE_STATE_PROPERTY = exports.QUICK_SEARCH_STYLE_STATE_PROPERTY = exports.QUICK_SEARCH_TEXT_STATE_PROPERTY = exports.CURRENT_THEME_STATE_PROPERTY = exports.FLASHING_CELL_DEFAULT_DURATION_STATE_PROPERTY = exports.FLASHING_CELL_DEFAULT_DOWN_COLOR_STATE_PROPERTY = exports.FLASHING_CELL_DEFAULT_UP_COLOR_STATE_PROPERTY = exports.CURRENT_REPORT_STATE_PROPERTY = exports.CURRENT_DATA_SOURCE_STATE_PROPERTY = exports.CURRENT_LAYOUT_STATE_PROPERTY = exports.SUMMARY_OPERATION_STATE_PROPERTY = exports.CURRENT_CHART_NAME_STATE_PROPERTY = exports.ALERT_DEFAULT_LOG_TO_CONSOLE = exports.ALERT_DEFAULT_HIGHLIGHT_ROW = exports.ALERT_DEFAULT_HIGHLIGHT_CELL = exports.ALERT_DEFAULT_SHOW_POPUP = exports.ALERT_DEFAULT_MESSAGE_TYPE = exports.ALERT_DEFAULT_RANGE_OPERAND_TYPE = exports.PLUS_MINUS_DEFAULT_NUDGE_VALUE = exports.CHART_DEFAULT_YAXIS_TOTAL = exports.DEFAULT_LIVE_REPORT_THROTTLE_TIME = exports.THEME_DEFAULT_CURRENT_THEME = exports.SYSTEM_DEFAULT_SYSTEM_STATUS_TYPE = exports.SYSTEM_DEFAULT_CHART_VISIBILITY = exports.CELL_SUMMARY_DEFAULT_OPERATION = exports.QUICK_SEARCH_DEBOUNCE_TIME = exports.QUICK_SEARCH_DEFAULT_FORE_COLOR = exports.QUICK_SEARCH_DEFAULT_BACK_COLOR = exports.CHART_DEFAULT_REFRESH_RATE = exports.SYSTEM_STATUS_DEFAULT_MAX_MESSAGES_IN_STORE = exports.AG_GRID_GROUPED_COLUMN = exports.HALF_SECOND = exports.AB_SPECIAL_COLUMN = exports.EMPTY_ARRAY = exports.EMPTY_STRING = exports.FILTER_THROTTLE = exports.FILTER_NEVER = exports.FILTER_ALWAYS = exports.ALL_COLUMN_VALUES = exports.READ_ONLY_STYLE = exports.MENU_PREFIX = exports.ADAPTABLE = exports.ADAPTABLE_ID = exports.USER_NAME = exports.DARK_THEME = exports.LIGHT_THEME = exports.DEFAULT_LAYOUT = exports.MISSING_COLUMN = exports.AUTOGENERATED_PK_COLUMN = void 0;
3
+ exports.THEME_STYLE = exports.SELECTED_ROWS_REPORT = exports.SELECTED_CELLS_REPORT = exports.CURRENT_DATA_REPORT = exports.ALL_DATA_REPORT = exports.VISUAL_DATA_REPORT = exports.SYSTEM_THEMES = exports.SMART_EDIT_MATH_OPERATION_STATE_PROPERTY = exports.SMART_EDIT_VALUE_STATE_PROPERTY = exports.QUICK_SEARCH_STYLE_STATE_PROPERTY = exports.QUICK_SEARCH_TEXT_STATE_PROPERTY = exports.CURRENT_THEME_STATE_PROPERTY = exports.FLASHING_CELL_DEFAULT_DURATION_STATE_PROPERTY = exports.FLASHING_CELL_DEFAULT_DOWN_COLOR_STATE_PROPERTY = exports.FLASHING_CELL_DEFAULT_UP_COLOR_STATE_PROPERTY = exports.CURRENT_REPORT_STATE_PROPERTY = exports.CURRENT_DATA_SOURCE_STATE_PROPERTY = exports.CURRENT_LAYOUT_STATE_PROPERTY = exports.SUMMARY_OPERATION_STATE_PROPERTY = exports.ALERT_DEFAULT_SHOW_POPUP = exports.ALERT_DEFAULT_MESSAGE_TYPE = exports.PLUS_MINUS_DEFAULT_NUDGE_VALUE = exports.DEFAULT_LIVE_REPORT_THROTTLE_TIME = exports.THEME_DEFAULT_CURRENT_THEME = exports.SYSTEM_DEFAULT_SYSTEM_STATUS_TYPE = exports.CELL_SUMMARY_DEFAULT_OPERATION = exports.QUICK_SEARCH_DEBOUNCE_TIME = exports.QUICK_SEARCH_DEFAULT_FORE_COLOR = exports.QUICK_SEARCH_DEFAULT_BACK_COLOR = exports.SYSTEM_STATUS_DEFAULT_MAX_MESSAGES_IN_STORE = exports.AG_GRID_GROUPED_COLUMN = exports.HALF_SECOND = exports.AB_SPECIAL_COLUMN = exports.EMPTY_ARRAY = exports.EMPTY_STRING = exports.FILTER_THROTTLE = exports.FILTER_NEVER = exports.FILTER_ALWAYS = exports.ALL_COLUMN_VALUES = exports.READ_ONLY_STYLE = exports.MENU_PREFIX = exports.ADAPTABLE = exports.ADAPTABLE_ID = exports.USER_NAME = exports.DARK_THEME = exports.LIGHT_THEME = exports.DEFAULT_LAYOUT = exports.MISSING_COLUMN = exports.AUTOGENERATED_PK_COLUMN = void 0;
4
4
  const Enums_1 = require("../../PredefinedConfig/Common/Enums");
5
- const ChartEnums_1 = require("../../PredefinedConfig/Common/ChartEnums");
6
5
  const UIHelper_1 = require("../../View/UIHelper");
7
6
  exports.AUTOGENERATED_PK_COLUMN = '__ADAPTABLE_PK__';
8
7
  exports.MISSING_COLUMN = ' [MISSING]';
@@ -30,16 +29,12 @@ Please!!!
30
29
  */
31
30
  //System Status
32
31
  exports.SYSTEM_STATUS_DEFAULT_MAX_MESSAGES_IN_STORE = 100;
33
- // Charts
34
- exports.CHART_DEFAULT_REFRESH_RATE = 3; // refresh the chart every 3 seconds if stuff chnanges
35
32
  // Quick Search
36
33
  exports.QUICK_SEARCH_DEFAULT_BACK_COLOR = UIHelper_1.getHexForName(UIHelper_1.LIGHT_YELLOW);
37
34
  exports.QUICK_SEARCH_DEFAULT_FORE_COLOR = UIHelper_1.getHexForName(UIHelper_1.BLACK);
38
35
  exports.QUICK_SEARCH_DEBOUNCE_TIME = 350;
39
36
  // Cells Summary
40
37
  exports.CELL_SUMMARY_DEFAULT_OPERATION = Enums_1.SummaryOperation.Sum;
41
- // system
42
- exports.SYSTEM_DEFAULT_CHART_VISIBILITY = ChartEnums_1.ChartVisibility.Hidden;
43
38
  // export const SYSTEM_DEFAULT_SYSTEM_STATUS_COLOUR: 'Red' | 'Amber' | 'Green' | 'Blue' =
44
39
  // StatusColour.Green;
45
40
  exports.SYSTEM_DEFAULT_SYSTEM_STATUS_TYPE = 'Info';
@@ -50,18 +45,12 @@ exports.DEFAULT_LIVE_REPORT_THROTTLE_TIME = 2000;
50
45
  /**
51
46
  * Object Factory
52
47
  */
53
- exports.CHART_DEFAULT_YAXIS_TOTAL = ChartEnums_1.AxisTotal.Sum;
54
48
  exports.PLUS_MINUS_DEFAULT_NUDGE_VALUE = 1;
55
- exports.ALERT_DEFAULT_RANGE_OPERAND_TYPE = 'Column';
56
49
  exports.ALERT_DEFAULT_MESSAGE_TYPE = 'Error';
57
50
  exports.ALERT_DEFAULT_SHOW_POPUP = true;
58
- exports.ALERT_DEFAULT_HIGHLIGHT_CELL = true;
59
- exports.ALERT_DEFAULT_HIGHLIGHT_ROW = true;
60
- exports.ALERT_DEFAULT_LOG_TO_CONSOLE = true;
61
51
  /**
62
52
  * Constants for State (primarily for audit property events) - good idea?
63
53
  */
64
- exports.CURRENT_CHART_NAME_STATE_PROPERTY = 'CurrentChartName';
65
54
  exports.SUMMARY_OPERATION_STATE_PROPERTY = 'SummaryOperation';
66
55
  exports.CURRENT_LAYOUT_STATE_PROPERTY = 'CurrentLayout';
67
56
  exports.CURRENT_DATA_SOURCE_STATE_PROPERTY = 'CurrentDataSource';
@@ -4,7 +4,7 @@ export declare const FlashingCellModuleId: ModuleConstants;
4
4
  export declare const BulkUpdateModuleId: ModuleConstants;
5
5
  export declare const CalculatedColumnModuleId: ModuleConstants;
6
6
  export declare const CellSummaryModuleId: ModuleConstants;
7
- export declare const ChartModuleId: ModuleConstants;
7
+ export declare const ChartingModuleId: ModuleConstants;
8
8
  export declare const ConditionalStyleModuleId: ModuleConstants;
9
9
  export declare const CustomSortModuleId: ModuleConstants;
10
10
  export declare const DashboardModuleId: ModuleConstants;
@@ -25,7 +25,6 @@ export declare const QuickSearchModuleId: ModuleConstants;
25
25
  export declare const ScheduleModuleId: ModuleConstants;
26
26
  export declare const ShortcutModuleId: ModuleConstants;
27
27
  export declare const SmartEditModuleId: ModuleConstants;
28
- export declare const SparklineColumnModuleId: ModuleConstants;
29
28
  export declare const StateManagementModuleId: ModuleConstants;
30
29
  export declare const SystemStatusModuleId: ModuleConstants;
31
30
  export declare const TeamSharingModuleId: ModuleConstants;
@@ -1,12 +1,12 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.SettingsPanelModuleId = exports.ToolPanelModuleId = exports.ThemeModuleId = exports.TeamSharingModuleId = exports.SystemStatusModuleId = exports.StateManagementModuleId = exports.SparklineColumnModuleId = exports.SmartEditModuleId = exports.ShortcutModuleId = exports.ScheduleModuleId = exports.QuickSearchModuleId = exports.QueryModuleId = exports.PlusMinusModuleId = exports.OpenFinModuleId = exports.LayoutModuleId = exports.IPushPullModuleId = exports.GridInfoModuleId = exports.Glue42ModuleId = exports.FreeTextColumnModuleId = exports.FormatColumnModuleId = exports.FilterModuleId = exports.ExportModuleId = exports.DataSourceModuleId = exports.DataChangeHistoryModuleId = exports.DashboardModuleId = exports.CustomSortModuleId = exports.ConditionalStyleModuleId = exports.ChartModuleId = exports.CellSummaryModuleId = exports.CalculatedColumnModuleId = exports.BulkUpdateModuleId = exports.FlashingCellModuleId = exports.AlertModuleId = void 0;
3
+ exports.SettingsPanelModuleId = exports.ToolPanelModuleId = exports.ThemeModuleId = exports.TeamSharingModuleId = exports.SystemStatusModuleId = exports.StateManagementModuleId = exports.SmartEditModuleId = exports.ShortcutModuleId = exports.ScheduleModuleId = exports.QuickSearchModuleId = exports.QueryModuleId = exports.PlusMinusModuleId = exports.OpenFinModuleId = exports.LayoutModuleId = exports.IPushPullModuleId = exports.GridInfoModuleId = exports.Glue42ModuleId = exports.FreeTextColumnModuleId = exports.FormatColumnModuleId = exports.FilterModuleId = exports.ExportModuleId = exports.DataSourceModuleId = exports.DataChangeHistoryModuleId = exports.DashboardModuleId = exports.CustomSortModuleId = exports.ConditionalStyleModuleId = exports.ChartingModuleId = exports.CellSummaryModuleId = exports.CalculatedColumnModuleId = exports.BulkUpdateModuleId = exports.FlashingCellModuleId = exports.AlertModuleId = void 0;
4
4
  exports.AlertModuleId = 'Alert';
5
5
  exports.FlashingCellModuleId = 'FlashingCell';
6
6
  exports.BulkUpdateModuleId = 'BulkUpdate';
7
7
  exports.CalculatedColumnModuleId = 'CalculatedColumn';
8
8
  exports.CellSummaryModuleId = 'CellSummary';
9
- exports.ChartModuleId = 'Chart';
9
+ exports.ChartingModuleId = 'Charting';
10
10
  exports.ConditionalStyleModuleId = 'ConditionalStyle';
11
11
  exports.CustomSortModuleId = 'CustomSort';
12
12
  exports.DashboardModuleId = 'Dashboard';
@@ -27,7 +27,6 @@ exports.QuickSearchModuleId = 'QuickSearch';
27
27
  exports.ScheduleModuleId = 'Schedule';
28
28
  exports.ShortcutModuleId = 'Shortcut';
29
29
  exports.SmartEditModuleId = 'SmartEdit';
30
- exports.SparklineColumnModuleId = 'SparklineColumn';
31
30
  exports.StateManagementModuleId = 'StateManagement';
32
31
  exports.SystemStatusModuleId = 'SystemStatus';
33
32
  exports.TeamSharingModuleId = 'TeamSharing';
@@ -14,7 +14,7 @@ const Enums_1 = require("../../PredefinedConfig/Common/Enums");
14
14
  exports.DefaultAdaptableOptions = {
15
15
  adaptableId: GeneralConstants.ADAPTABLE_ID,
16
16
  adaptableStateKey: undefined,
17
- agGridOptions: null,
17
+ gridOptions: null,
18
18
  primaryKey: '',
19
19
  autogeneratePrimaryKey: false,
20
20
  userName: GeneralConstants.USER_NAME,
@@ -34,36 +34,36 @@ exports.DefaultAdaptableOptions = {
34
34
  transition: 'Slide',
35
35
  actionHandlers: undefined,
36
36
  showApplicationIcon: false,
37
- flashingCellDefaultProperties: {
38
- FlashDuration: 500,
39
- DownChangeStyle: {
40
- BackColor: UIHelper_1.getHexForName(UIHelper_1.RED),
41
- },
42
- UpChangeStyle: {
43
- BackColor: UIHelper_1.getHexForName(UIHelper_1.GREEN),
44
- },
45
- NeutralChangeStyle: {
46
- BackColor: UIHelper_1.getHexForName(UIHelper_1.GRAY),
47
- },
48
- },
49
37
  showSystemStatusMessageNotifications: false,
50
38
  maxSystemMessagesInStore: 100,
51
39
  },
40
+ flashingCellOptions: {
41
+ defaultFlashDuration: 500,
42
+ defaultFlashTarget: 'cell',
43
+ defaultDownChangeStyle: {
44
+ BackColor: UIHelper_1.getHexForName(UIHelper_1.RED),
45
+ },
46
+ defaultUpChangeStyle: {
47
+ BackColor: UIHelper_1.getHexForName(UIHelper_1.GREEN),
48
+ },
49
+ defaultNeutralChangeStyle: {
50
+ BackColor: UIHelper_1.getHexForName(UIHelper_1.GRAY),
51
+ },
52
+ },
52
53
  containerOptions: {
53
54
  adaptableContainer: 'adaptable',
54
55
  agGridContainer: 'grid',
55
56
  agGridContainerWaitTimeout: 60000,
56
57
  modalContainer: undefined,
57
- chartContainer: undefined,
58
58
  systemStatusContainer: undefined,
59
59
  alertContainer: undefined,
60
60
  },
61
61
  dashboardOptions: {
62
62
  canFloat: true,
63
- showSettingsPanel: true,
64
63
  showQuickSearchInHeader: true,
65
64
  customDashboardButtons: undefined,
66
65
  customToolbars: undefined,
66
+ buttonsLocation: 'right',
67
67
  },
68
68
  editOptions: {
69
69
  validateOnServer: undefined,
@@ -187,6 +187,7 @@ exports.DefaultAdaptableOptions = {
187
187
  editableCellStyle: undefined,
188
188
  readOnlyCellStyle: undefined,
189
189
  styleClassNames: GeneralConstants_1.EMPTY_ARRAY,
190
+ columnTypes: GeneralConstants_1.EMPTY_ARRAY,
190
191
  permittedValues: undefined,
191
192
  editLookUpItems: undefined,
192
193
  actionColumns: undefined,
@@ -196,9 +197,7 @@ exports.DefaultAdaptableOptions = {
196
197
  toolPanelOptions: {
197
198
  showAdaptableToolPanel: true,
198
199
  adaptableToolPanelTitle: GeneralConstants.ADAPTABLE,
199
- showModulesDropdown: true,
200
200
  showToolPanelsDropdown: true,
201
- showColumnsDropdown: true,
202
201
  customToolPanelButtons: undefined,
203
202
  customToolPanels: undefined,
204
203
  iconKey: 'menu',
@@ -223,9 +222,11 @@ exports.DefaultAdaptableOptions = {
223
222
  },
224
223
  customPredicateDefs: [],
225
224
  settingsPanelOptions: {
226
- type: 'window',
225
+ popupType: 'window',
227
226
  title: 'Settings Panel',
228
227
  icon: 'ConfigurationIcon',
229
228
  navigation: {},
229
+ alwaysShowInDashboard: false,
230
+ alwaysShowInToolPanel: false,
230
231
  },
231
232
  };
@@ -1,6 +1,7 @@
1
+ import { AdaptableSettingsPanel } from '../../PredefinedConfig/Common/Types';
1
2
  import { AdaptableModule } from '../../types';
2
3
  export declare const ACTION_POPUPS: AdaptableModule[];
3
4
  /**
4
5
  * This constants determines the order and the items that appear in the navigation.
5
6
  */
6
- export declare const DEFAULT_NAVIGATION_ITEMS: (AdaptableModule | '-')[];
7
+ export declare const DEFAULT_NAVIGATION_ITEMS: (AdaptableSettingsPanel | '-')[];
@@ -8,13 +8,13 @@ const LoggingHelper_1 = require("./LoggingHelper");
8
8
  const Uuid_1 = require("../../PredefinedConfig/Uuid");
9
9
  const DefaultAdaptableOptions_1 = require("../Defaults/DefaultAdaptableOptions");
10
10
  function assignAdaptableOptions(adaptableOptions) {
11
- var _a, _b;
11
+ var _a;
12
12
  const returnedAdaptableOptions = Object.assign({}, DefaultAdaptableOptions_1.DefaultAdaptableOptions, adaptableOptions);
13
13
  returnedAdaptableOptions.adaptableStateKey = (_a = returnedAdaptableOptions.adaptableStateKey) !== null && _a !== void 0 ? _a : returnedAdaptableOptions.adaptableId;
14
14
  returnedAdaptableOptions.layoutOptions = Object.assign({}, DefaultAdaptableOptions_1.DefaultAdaptableOptions.layoutOptions, adaptableOptions.layoutOptions);
15
15
  returnedAdaptableOptions.notificationsOptions = Object.assign({}, DefaultAdaptableOptions_1.DefaultAdaptableOptions.notificationsOptions, adaptableOptions.notificationsOptions);
16
+ returnedAdaptableOptions.flashingCellOptions = Object.assign({}, DefaultAdaptableOptions_1.DefaultAdaptableOptions.flashingCellOptions, adaptableOptions.flashingCellOptions);
16
17
  returnedAdaptableOptions.entitlementOptions = Object.assign({}, DefaultAdaptableOptions_1.DefaultAdaptableOptions.entitlementOptions, adaptableOptions.entitlementOptions);
17
- returnedAdaptableOptions.notificationsOptions.flashingCellDefaultProperties = Object.assign({}, DefaultAdaptableOptions_1.DefaultAdaptableOptions.notificationsOptions.flashingCellDefaultProperties, (_b = adaptableOptions.notificationsOptions) === null || _b === void 0 ? void 0 : _b.flashingCellDefaultProperties);
18
18
  returnedAdaptableOptions.dashboardOptions = Object.assign({}, DefaultAdaptableOptions_1.DefaultAdaptableOptions.dashboardOptions, adaptableOptions.dashboardOptions);
19
19
  returnedAdaptableOptions.editOptions = Object.assign({}, DefaultAdaptableOptions_1.DefaultAdaptableOptions.editOptions, adaptableOptions.editOptions);
20
20
  returnedAdaptableOptions.containerOptions = Object.assign({}, DefaultAdaptableOptions_1.DefaultAdaptableOptions.containerOptions, adaptableOptions.containerOptions);
@@ -30,9 +30,6 @@ export interface ScreenPopup {
30
30
  [key: string]: any;
31
31
  };
32
32
  }
33
- export interface ChartPopup {
34
- ShowChartPopup: boolean;
35
- }
36
33
  export interface LoadingPopup {
37
34
  ShowLoadingPopup: boolean;
38
35
  }
@@ -1,7 +1,6 @@
1
1
  import { ScheduleType } from '../PredefinedConfig/Common/Enums';
2
2
  import { CustomSort } from '../PredefinedConfig/CustomSortState';
3
3
  import { DataSource } from '../PredefinedConfig/DataSourceState';
4
- import { PieChartDefinition, CategoryChartDefinition, SparklinesChartDefinition } from '../PredefinedConfig/ChartState';
5
4
  import { CalculatedColumn } from '../PredefinedConfig/CalculatedColumnState';
6
5
  import { PlusMinusNudge } from '../PredefinedConfig/PlusMinusState';
7
6
  import { AlertDefinition, AlertProperties } from '../PredefinedConfig/AlertState';
@@ -14,7 +13,6 @@ import { ConditionalStyle } from '../PredefinedConfig/ConditionalStyleState';
14
13
  import { FormatColumn } from '../PredefinedConfig/FormatColumnState';
15
14
  import { FreeTextColumn } from '../PredefinedConfig/FreeTextColumnState';
16
15
  import { AdaptableStyle } from '../PredefinedConfig/Common/AdaptableStyle';
17
- import { SparklineColumn } from '../PredefinedConfig/SparklineColumnState';
18
16
  import { DataChangedInfo } from '../PredefinedConfig/Common/DataChangedInfo';
19
17
  import { Glue42Report, Glue42Schedule } from '../PredefinedConfig/Glue42State';
20
18
  import { IPushPullReport } from '../PredefinedConfig/SystemState';
@@ -32,9 +30,6 @@ import { FlashingCellDefinition } from '../types';
32
30
  import { ToastOptions } from 'react-toastify';
33
31
  export declare function CreateEmptyCustomSort(): CustomSort;
34
32
  export declare function CreateEmptyDataSource(): DataSource;
35
- export declare function CreateEmptyPieChartDefinition(): PieChartDefinition;
36
- export declare function CreateEmptySparklinesChartDefinition(): SparklinesChartDefinition;
37
- export declare function CreateEmptyCategoryChartDefinition(): CategoryChartDefinition;
38
33
  export declare function CreateEmptyCalculatedColumn(isFilterable: boolean): CalculatedColumn;
39
34
  export declare function CreateEmptyNamedQuery(expression?: string): NamedQuery;
40
35
  export declare function CreateEmptyPlusMinusNudge(): PlusMinusNudge;
@@ -43,7 +38,6 @@ export declare function CreateAlert(alertHeader: string, alertMessage: string, a
43
38
  export declare function CreateEmptyAlertDefinition(): AlertDefinition;
44
39
  export declare function CreateEmptyFlashingCellDefinition(): FlashingCellDefinition;
45
40
  export declare function CreateInternalAlertDefinitionForMessages(messageType: AdaptableMessageType, alertProperties?: AlertProperties): AlertDefinition;
46
- export declare function CreateEmptySparklineColumn(): SparklineColumn;
47
41
  export declare function CreateEmptyReport(): Report;
48
42
  export declare function CreateEmptyBaseSchedule(scheduleType: ScheduleType): BaseSchedule;
49
43
  export declare function CreateEmptyReminderSchedule(): ReminderSchedule;
@@ -75,9 +69,6 @@ export declare function CreateToastOptions(notificationsOptions: NotificationsOp
75
69
  export declare const ObjectFactory: {
76
70
  CreateEmptyCustomSort: typeof CreateEmptyCustomSort;
77
71
  CreateEmptyDataSource: typeof CreateEmptyDataSource;
78
- CreateEmptyPieChartDefinition: typeof CreateEmptyPieChartDefinition;
79
- CreateEmptySparklinesChartDefinition: typeof CreateEmptySparklinesChartDefinition;
80
- CreateEmptyCategoryChartDefinition: typeof CreateEmptyCategoryChartDefinition;
81
72
  CreateEmptyCalculatedColumn: typeof CreateEmptyCalculatedColumn;
82
73
  CreateEmptyNamedQuery: typeof CreateEmptyNamedQuery;
83
74
  CreateEmptyPlusMinusNudge: typeof CreateEmptyPlusMinusNudge;
@@ -86,7 +77,6 @@ export declare const ObjectFactory: {
86
77
  CreateEmptyAlertDefinition: typeof CreateEmptyAlertDefinition;
87
78
  CreateEmptyFlashingCellDefinition: typeof CreateEmptyFlashingCellDefinition;
88
79
  CreateInternalAlertDefinitionForMessages: typeof CreateInternalAlertDefinitionForMessages;
89
- CreateEmptySparklineColumn: typeof CreateEmptySparklineColumn;
90
80
  CreateEmptyReport: typeof CreateEmptyReport;
91
81
  CreateEmptyBaseSchedule: typeof CreateEmptyBaseSchedule;
92
82
  CreateEmptyReminderSchedule: typeof CreateEmptyReminderSchedule;
@@ -1,13 +1,9 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ObjectFactory = exports.CreateToastOptions = exports.CreateColumnFilter = exports.CreateEmptyCellSummmary = exports.CreateSystemStatusMessageInfo = exports.CreateEmptyStyle = exports.CreateEmptyLayout = exports.CreateEmptyFreeTextColumn = exports.CreateEmptyFormatColumn = exports.CreateEmptyConditionalStyle = exports.CreateEmptyShortcut = exports.CreateEmptySchedule = exports.CreateReportSchedule = exports.CreateGlue42Schedule = exports.CreateIPushPullSchedule = exports.CreateEmptyOpenFinSchedule = exports.CreateEmptyGlue42Schedule = exports.CreateEmptyIPushPullSchedule = exports.CreateEmptyOpenFinReport = exports.CreateEmptyGlue42Report = exports.CreateEmptyIPushPullReport = exports.CreateEmptyReportSchedule = exports.CreateEmptyReminderSchedule = exports.CreateEmptyBaseSchedule = exports.CreateEmptyReport = exports.CreateEmptySparklineColumn = exports.CreateInternalAlertDefinitionForMessages = exports.CreateEmptyFlashingCellDefinition = exports.CreateEmptyAlertDefinition = exports.CreateAlert = exports.CreateEmptyAlert = exports.CreateEmptyPlusMinusNudge = exports.CreateEmptyNamedQuery = exports.CreateEmptyCalculatedColumn = exports.CreateEmptyCategoryChartDefinition = exports.CreateEmptySparklinesChartDefinition = exports.CreateEmptyPieChartDefinition = exports.CreateEmptyDataSource = exports.CreateEmptyCustomSort = void 0;
3
+ exports.ObjectFactory = exports.CreateToastOptions = exports.CreateColumnFilter = exports.CreateEmptyCellSummmary = exports.CreateSystemStatusMessageInfo = exports.CreateEmptyStyle = exports.CreateEmptyLayout = exports.CreateEmptyFreeTextColumn = exports.CreateEmptyFormatColumn = exports.CreateEmptyConditionalStyle = exports.CreateEmptyShortcut = exports.CreateEmptySchedule = exports.CreateReportSchedule = exports.CreateGlue42Schedule = exports.CreateIPushPullSchedule = exports.CreateEmptyOpenFinSchedule = exports.CreateEmptyGlue42Schedule = exports.CreateEmptyIPushPullSchedule = exports.CreateEmptyOpenFinReport = exports.CreateEmptyGlue42Report = exports.CreateEmptyIPushPullReport = exports.CreateEmptyReportSchedule = exports.CreateEmptyReminderSchedule = exports.CreateEmptyBaseSchedule = exports.CreateEmptyReport = exports.CreateInternalAlertDefinitionForMessages = exports.CreateEmptyFlashingCellDefinition = exports.CreateEmptyAlertDefinition = exports.CreateAlert = exports.CreateEmptyAlert = exports.CreateEmptyPlusMinusNudge = exports.CreateEmptyNamedQuery = exports.CreateEmptyCalculatedColumn = exports.CreateEmptyDataSource = exports.CreateEmptyCustomSort = void 0;
4
4
  const Enums_1 = require("../PredefinedConfig/Common/Enums");
5
5
  const GeneralConstants_1 = require("./Constants/GeneralConstants");
6
- const ChartEnums_1 = require("../PredefinedConfig/Common/ChartEnums");
7
- const DefaultPieChartProperties_1 = require("./Defaults/DefaultPieChartProperties");
8
- const DefaultCategoryChartProperties_1 = require("./Defaults/DefaultCategoryChartProperties");
9
6
  const Uuid_1 = require("../PredefinedConfig/Uuid");
10
- const DefaultSparklinesChartProperties_1 = require("./Defaults/DefaultSparklinesChartProperties");
11
7
  const react_toastify_1 = require("react-toastify");
12
8
  function CreateEmptyCustomSort() {
13
9
  return { Uuid: Uuid_1.createUuid(), ColumnId: GeneralConstants_1.EMPTY_STRING, SortedValues: [] };
@@ -17,48 +13,6 @@ function CreateEmptyDataSource() {
17
13
  return { Uuid: Uuid_1.createUuid(), Name: GeneralConstants_1.EMPTY_STRING, Description: GeneralConstants_1.EMPTY_STRING };
18
14
  }
19
15
  exports.CreateEmptyDataSource = CreateEmptyDataSource;
20
- function CreateEmptyPieChartDefinition() {
21
- return {
22
- Uuid: Uuid_1.createUuid(),
23
- Name: GeneralConstants_1.EMPTY_STRING,
24
- Description: GeneralConstants_1.EMPTY_STRING,
25
- PrimaryColumnId: GeneralConstants_1.EMPTY_STRING,
26
- SecondaryColumnId: undefined,
27
- SecondaryColumnOperation: ChartEnums_1.SecondaryColumnOperation.Count,
28
- ChartProperties: DefaultPieChartProperties_1.DefaultPieChartProperties,
29
- ChartType: ChartEnums_1.ChartType.PieChart,
30
- VisibleRowsOnly: true,
31
- };
32
- }
33
- exports.CreateEmptyPieChartDefinition = CreateEmptyPieChartDefinition;
34
- function CreateEmptySparklinesChartDefinition() {
35
- return {
36
- Uuid: Uuid_1.createUuid(),
37
- Name: GeneralConstants_1.EMPTY_STRING,
38
- Description: GeneralConstants_1.EMPTY_STRING,
39
- ColumnId: GeneralConstants_1.EMPTY_STRING,
40
- Expression: undefined,
41
- ChartProperties: DefaultSparklinesChartProperties_1.DefaultSparklinesChartProperties,
42
- ChartType: ChartEnums_1.ChartType.SparklinesChart,
43
- VisibleRowsOnly: true,
44
- };
45
- }
46
- exports.CreateEmptySparklinesChartDefinition = CreateEmptySparklinesChartDefinition;
47
- function CreateEmptyCategoryChartDefinition() {
48
- return {
49
- Uuid: Uuid_1.createUuid(),
50
- Name: GeneralConstants_1.EMPTY_STRING,
51
- Description: GeneralConstants_1.EMPTY_STRING,
52
- YAxisColumnIds: [],
53
- YAxisTotal: GeneralConstants_1.CHART_DEFAULT_YAXIS_TOTAL,
54
- XAxisColumnId: GeneralConstants_1.EMPTY_STRING,
55
- XAxisExpression: undefined,
56
- ChartProperties: DefaultCategoryChartProperties_1.DefaultCategoryChartProperties,
57
- ChartType: ChartEnums_1.ChartType.CategoryChart,
58
- VisibleRowsOnly: true,
59
- };
60
- }
61
- exports.CreateEmptyCategoryChartDefinition = CreateEmptyCategoryChartDefinition;
62
16
  function CreateEmptyCalculatedColumn(isFilterable) {
63
17
  return {
64
18
  Uuid: Uuid_1.createUuid(),
@@ -124,9 +78,7 @@ function CreateEmptyAlertDefinition() {
124
78
  Predicate: undefined,
125
79
  },
126
80
  MessageType: GeneralConstants_1.ALERT_DEFAULT_MESSAGE_TYPE,
127
- AlertProperties: {
128
- LogToConsole: GeneralConstants_1.ALERT_DEFAULT_LOG_TO_CONSOLE,
129
- },
81
+ AlertProperties: {},
130
82
  };
131
83
  }
132
84
  exports.CreateEmptyAlertDefinition = CreateEmptyAlertDefinition;
@@ -155,17 +107,6 @@ function CreateInternalAlertDefinitionForMessages(messageType, alertProperties)
155
107
  };
156
108
  }
157
109
  exports.CreateInternalAlertDefinitionForMessages = CreateInternalAlertDefinitionForMessages;
158
- function CreateEmptySparklineColumn() {
159
- return {
160
- Uuid: Uuid_1.createUuid(),
161
- ColumnId: GeneralConstants_1.EMPTY_STRING,
162
- MaximumValue: undefined,
163
- MinimumValue: undefined,
164
- ShowToolTip: true,
165
- LineColor: DefaultSparklinesChartProperties_1.DefaultSparklinesChartProperties.Brush,
166
- };
167
- }
168
- exports.CreateEmptySparklineColumn = CreateEmptySparklineColumn;
169
110
  function CreateEmptyReport() {
170
111
  return {
171
112
  Uuid: Uuid_1.createUuid(),
@@ -456,9 +397,6 @@ function getToastTransition(transition) {
456
397
  exports.ObjectFactory = {
457
398
  CreateEmptyCustomSort,
458
399
  CreateEmptyDataSource,
459
- CreateEmptyPieChartDefinition,
460
- CreateEmptySparklinesChartDefinition,
461
- CreateEmptyCategoryChartDefinition,
462
400
  CreateEmptyCalculatedColumn,
463
401
  CreateEmptyNamedQuery,
464
402
  CreateEmptyPlusMinusNudge,
@@ -467,7 +405,6 @@ exports.ObjectFactory = {
467
405
  CreateEmptyAlertDefinition,
468
406
  CreateEmptyFlashingCellDefinition,
469
407
  CreateInternalAlertDefinitionForMessages,
470
- CreateEmptySparklineColumn,
471
408
  CreateEmptyReport,
472
409
  CreateEmptyBaseSchedule,
473
410
  CreateEmptyReminderSchedule,
@@ -7,7 +7,7 @@ class EntitlementService {
7
7
  this.adaptable = adaptable;
8
8
  }
9
9
  setModulesEntitlements() {
10
- this.adaptable.modules.forEach((module) => {
10
+ this.adaptable.adaptableModules.forEach((module) => {
11
11
  module.setModuleEntitlement();
12
12
  });
13
13
  }
@@ -12,7 +12,7 @@ class ModuleService {
12
12
  createModuleMenus() {
13
13
  const dropdownMenuItems = [];
14
14
  const buttonMenuItems = [];
15
- this.adaptable.modules.forEach((module) => {
15
+ this.adaptable.adaptableModules.forEach((module) => {
16
16
  const dropdownMenuItem = module.addModuleMenuItem('ModuleMenu');
17
17
  if (Helper_1.default.objectExists(dropdownMenuItem)) {
18
18
  if (dropdownMenuItems.findIndex((m) => m.module == dropdownMenuItem.module) == -1) {
@@ -31,35 +31,35 @@ class ModuleService {
31
31
  this.adaptable.api.internalApi.setModuleButtonMenuItems(buttonMenuItems);
32
32
  }
33
33
  isModuleAvailable(adaptableModule) {
34
- let module = this.adaptable.modules.get(adaptableModule);
34
+ let module = this.adaptable.adaptableModules.get(adaptableModule);
35
35
  if (!module) {
36
36
  return false;
37
37
  }
38
38
  return module.isModuleAvailable();
39
39
  }
40
40
  isModuleEditable(adaptableModule) {
41
- let module = this.adaptable.modules.get(adaptableModule);
41
+ let module = this.adaptable.adaptableModules.get(adaptableModule);
42
42
  if (!module) {
43
43
  return false;
44
44
  }
45
45
  return module.isModuleEditable();
46
46
  }
47
47
  getTeamSharingAction(adaptableModule) {
48
- let module = this.adaptable.modules.get(adaptableModule);
48
+ let module = this.adaptable.adaptableModules.get(adaptableModule);
49
49
  if (!module) {
50
50
  return undefined;
51
51
  }
52
52
  return module.getTeamSharingAction();
53
53
  }
54
54
  getModuleById(adaptableModule) {
55
- return this.adaptable.modules.get(adaptableModule);
55
+ return this.adaptable.adaptableModules.get(adaptableModule);
56
56
  }
57
57
  getModuleInfoByModule(adaptableModule) {
58
58
  const module = this.getModuleById(adaptableModule);
59
59
  return module ? module.moduleInfo : undefined;
60
60
  }
61
61
  getModuleInfoByFriendlyName(friendlyName) {
62
- for (let module of this.adaptable.modules.values()) {
62
+ for (let module of this.adaptable.adaptableModules.values()) {
63
63
  let moduleInfo = module.moduleInfo;
64
64
  if (moduleInfo && moduleInfo.FriendlyName == friendlyName) {
65
65
  return moduleInfo;
@@ -72,7 +72,7 @@ class ModuleService {
72
72
  return (_a = this.getModuleById(adaptableModule)) === null || _a === void 0 ? void 0 : _a.getPopupMaxWidth();
73
73
  }
74
74
  getModuleCollection() {
75
- return this.adaptable.modules;
75
+ return this.adaptable.adaptableModules;
76
76
  }
77
77
  getModuleDocumentationPageByModule(adaptableModule) {
78
78
  let url = `${DocumentationLinkConstants_1.HOST_URL_DOCS}/`;
@@ -139,10 +139,6 @@ class ModuleService {
139
139
  return userInterfaceUrl + 'tool-panel';
140
140
  case 'DataChangeHistory':
141
141
  return editingUrl + 'change-history-module';
142
- case 'Chart':
143
- return pluginUrl + 'chart/chart-plugin';
144
- case 'SparklineColumn':
145
- return pluginUrl + 'chart/sparkline-column-module';
146
142
  case 'Glue42':
147
143
  return pluginUrl + 'glue42/glue42-plugin';
148
144
  case 'IPushPull':
@@ -5,13 +5,10 @@ const tslib_1 = require("tslib");
5
5
  const React = tslib_1.__importStar(require("react"));
6
6
  const react_redux_1 = require("react-redux");
7
7
  const PopupRedux = tslib_1.__importStar(require("../Redux/ActionsReducers/PopupRedux"));
8
- const SystemRedux = tslib_1.__importStar(require("../Redux/ActionsReducers/SystemRedux"));
9
8
  const AdaptablePopup_1 = require("./Components/Popups/AdaptablePopup");
10
9
  const AdaptablePopupPrompt_1 = require("./Components/Popups/AdaptablePopupPrompt");
11
10
  const Dashboard_1 = require("./Dashboard/Dashboard");
12
11
  const AdaptablePopupConfirmation_1 = require("./Components/Popups/AdaptablePopupConfirmation");
13
- const AdaptableChart_1 = require("./Components/Popups/AdaptableChart");
14
- const ChartEnums_1 = require("../PredefinedConfig/Common/ChartEnums");
15
12
  const AdaptableLoadingScreen_1 = require("./Components/Popups/AdaptableLoadingScreen");
16
13
  const renderWithAdaptableContext_1 = require("./renderWithAdaptableContext");
17
14
  const License_1 = require("./License");
@@ -20,11 +17,10 @@ const ProgressIndicator_1 = require("../components/ProgressIndicator/ProgressInd
20
17
  const react_toastify_1 = require("react-toastify");
21
18
  class AdaptableView extends React.Component {
22
19
  render() {
23
- var _a, _b, _c, _d, _e;
20
+ var _a, _b, _c, _d;
24
21
  const watermark = (_d = (_c = (_b = (_a = this.props.AdaptableApi) === null || _a === void 0 ? void 0 : _a.internalApi) === null || _b === void 0 ? void 0 : _b.getSystemState()) === null || _c === void 0 ? void 0 : _c.License) === null || _d === void 0 ? void 0 : _d.watermark;
25
22
  return (React.createElement("div", null,
26
23
  this.props.AdaptableApi.internalApi.getModuleService().isModuleAvailable('Dashboard') && (React.createElement(Dashboard_1.Dashboard, { api: this.props.AdaptableApi })),
27
- this.props.SystemState.ChartVisibility != ChartEnums_1.ChartVisibility.Hidden && (React.createElement(AdaptableChart_1.AdaptableChart, { api: this.props.AdaptableApi, onClose: this.props.onCloseChartPopup, showChart: this.props.SystemState.ChartVisibility == ChartEnums_1.ChartVisibility.Maximised, showModal: (_e = this.props.AdaptableApi.pluginsApi.getChartsPluginApi()) === null || _e === void 0 ? void 0 : _e.getPluginOptions().showModal })),
28
24
  React.createElement(AdaptableLoadingScreen_1.AdaptableLoadingScreen, { onClose: this.props.onCloseLoadingPopup, showLoadingScreen: this.props.PopupState.LoadingPopup.ShowLoadingPopup }),
29
25
  React.createElement(AdaptablePopupPrompt_1.AdaptablePopupPrompt, { message: this.props.PopupState.PromptPopup.Message, header: this.props.PopupState.PromptPopup.Header, onClose: this.props.onClosePromptPopup, onConfirm: this.props.onConfirmPromptPopup, showPopup: this.props.PopupState.PromptPopup.ShowPromptPopup }),
30
26
  React.createElement(AdaptablePopupConfirmation_1.AdaptablePopupConfirmation, { header: this.props.PopupState.ConfirmationPopup.Header, messsage: this.props.PopupState.ConfirmationPopup.Msg, showPopup: this.props.PopupState.ConfirmationPopup.ShowConfirmationPopup, cancelButtonText: this.props.PopupState.ConfirmationPopup.CancelButtonText, confirmButtonText: this.props.PopupState.ConfirmationPopup.ConfirmButtonText, onCancel: this.props.onCancelConfirmationPopup, onConfirm: this.props.onConfirmConfirmationPopup, showInputBox: this.props.PopupState.ConfirmationPopup.ShowInputBox, messageType: this.props.PopupState.ConfirmationPopup.MessageType, api: this.props.AdaptableApi }),
@@ -40,7 +36,6 @@ function mapStateToProps(state, ownProps) {
40
36
  return {
41
37
  PopupState: state.Popup,
42
38
  SystemState: state.System,
43
- ChartState: state.Chart,
44
39
  AdaptableApi: ownProps.Adaptable.api,
45
40
  };
46
41
  }
@@ -48,7 +43,6 @@ function mapDispatchToProps(dispatch) {
48
43
  return {
49
44
  onCloseScreenPopup: () => dispatch(PopupRedux.PopupHideScreen()),
50
45
  onCloseAlertPopup: () => dispatch(PopupRedux.PopupHideAlert()),
51
- onCloseChartPopup: () => dispatch(SystemRedux.ChartSetChartVisibility(ChartEnums_1.ChartVisibility.Hidden)),
52
46
  onClosePromptPopup: () => dispatch(PopupRedux.PopupHidePrompt()),
53
47
  onConfirmPromptPopup: (inputText) => dispatch(PopupRedux.PopupConfirmPrompt(inputText)),
54
48
  onConfirmConfirmationPopup: (comment) => dispatch(PopupRedux.PopupConfirmConfirmation(comment)),
@@ -1,7 +1,8 @@
1
1
  import * as React from 'react';
2
- interface Column {
3
- field: string;
4
- type: string;
2
+ import { ColDef } from '@ag-grid-community/all-modules';
3
+ interface Column extends Partial<ColDef> {
4
+ field?: string;
5
+ type?: string | string[];
5
6
  caption?: string;
6
7
  }
7
8
  declare const _default: React.MemoExoticComponent<({ columns: cols, handle, onValidityChange, }: {
@@ -216,6 +216,7 @@ const ColumnsList = ({ columns: cols, handle, onValidityChange, }) => {
216
216
  },
217
217
  ];
218
218
  const items = columns.map((col) => {
219
+ var _a;
219
220
  const isPrimaryKey = col.field === primaryKeyField;
220
221
  const cItems = colItems.map((c) => (Object.assign({}, c)));
221
222
  cItems[0].Content = (React.createElement(Radio_1.default, { checked: isPrimaryKey, onChange: (checked) => {
@@ -235,7 +236,7 @@ const ColumnsList = ({ columns: cols, handle, onValidityChange, }) => {
235
236
  cItems[2].Content = (React.createElement(Input_1.default, { style: inputStyle, defaultValue: col.caption != undefined ? col.caption : humanized, placeholder: humanized, onChange: (event) => {
236
237
  setColumnCaption(event.target.value, col.field);
237
238
  } }));
238
- cItems[3].Content = (React.createElement(Dropdown_1.default, { style: inputStyle, showClearButton: false, options: dataTypes, value: col.type, onChange: onColumnTypeChange.bind(null, col) }));
239
+ cItems[3].Content = (React.createElement(Dropdown_1.default, { style: inputStyle, showClearButton: false, options: dataTypes, value: (_a = col === null || col === void 0 ? void 0 : col.type) !== null && _a !== void 0 ? _a : '', onChange: onColumnTypeChange.bind(null, col) }));
239
240
  cItems[4].Content = (React.createElement(CheckBox_1.CheckBox, { checked: isSortableColumn(col.field), onChange: (sortable) => {
240
241
  sortable ? setSortableColumn(col.field) : setUnsortableColumn(col.field);
241
242
  } }));
@@ -16,7 +16,7 @@ const ConfigurationForm = (props) => {
16
16
  const searchOptions = Object.assign(Object.assign({}, DefaultAdaptableOptions_1.DefaultAdaptableOptions.searchOptions), abOptions.searchOptions);
17
17
  const filterOptions = Object.assign(Object.assign({}, DefaultAdaptableOptions_1.DefaultAdaptableOptions.filterOptions), abOptions.filterOptions);
18
18
  // we are 'hard-coding' this to use AG Grid but so does helper so ok for now and we can refactor when Adaptable Grid is ready
19
- const gridOptions = Object.assign(Object.assign({}, DefaultAdaptableOptions_1.DefaultAdaptableOptions.agGridOptions), abOptions.agGridOptions);
19
+ const gridOptions = Object.assign(Object.assign({}, DefaultAdaptableOptions_1.DefaultAdaptableOptions.gridOptions), abOptions.gridOptions);
20
20
  return (React.createElement(React.Fragment, null,
21
21
  React.createElement(HelpBlock_1.default, null, "General Options"),
22
22
  React.createElement(FormLayout_1.default, { margin: 2, columns: [{ name: 'children' }, { name: 'label', style: { textAlign: 'start' } }] },
@@ -32,29 +32,29 @@ const ConfigurationForm = (props) => {
32
32
  React.createElement(FormLayout_1.FormRow, { label: "Enable Range Selection" },
33
33
  React.createElement(CheckBox_1.CheckBox, { checked: gridOptions.enableRangeSelection, onChange: (enableRangeSelection) => {
34
34
  abOptions = Object.assign({}, abOptions);
35
- abOptions.agGridOptions = Object.assign({}, abOptions.agGridOptions);
36
- abOptions.agGridOptions.enableRangeSelection = enableRangeSelection;
35
+ abOptions.gridOptions = Object.assign({}, abOptions.gridOptions);
36
+ abOptions.gridOptions.enableRangeSelection = enableRangeSelection;
37
37
  props.onChangeadaptableOptions(abOptions);
38
38
  } })),
39
39
  React.createElement(FormLayout_1.FormRow, { label: "Show Quick Filter" },
40
40
  React.createElement(CheckBox_1.CheckBox, { checked: gridOptions.floatingFilter, onChange: (floatingFilter) => {
41
41
  abOptions = Object.assign({}, abOptions);
42
- abOptions.agGridOptions = Object.assign({}, abOptions.agGridOptions);
43
- abOptions.agGridOptions.floatingFilter = floatingFilter;
42
+ abOptions.gridOptions = Object.assign({}, abOptions.gridOptions);
43
+ abOptions.gridOptions.floatingFilter = floatingFilter;
44
44
  props.onChangeadaptableOptions(abOptions);
45
45
  } })),
46
46
  React.createElement(FormLayout_1.FormRow, { label: "Suppress Column Virtualisation" },
47
47
  React.createElement(CheckBox_1.CheckBox, { checked: gridOptions.suppressColumnVirtualisation, onChange: (suppressColumnVirtualisation) => {
48
48
  abOptions = Object.assign({}, abOptions);
49
- abOptions.agGridOptions = Object.assign({}, abOptions.agGridOptions);
50
- abOptions.agGridOptions.suppressColumnVirtualisation = suppressColumnVirtualisation;
49
+ abOptions.gridOptions = Object.assign({}, abOptions.gridOptions);
50
+ abOptions.gridOptions.suppressColumnVirtualisation = suppressColumnVirtualisation;
51
51
  props.onChangeadaptableOptions(abOptions);
52
52
  } })),
53
53
  React.createElement(FormLayout_1.FormRow, { label: "Show Column Menu Button" },
54
54
  React.createElement(CheckBox_1.CheckBox, { checked: gridOptions.suppressMenuHide, onChange: (suppressMenuHide) => {
55
55
  abOptions = Object.assign({}, abOptions);
56
- abOptions.agGridOptions = Object.assign({}, abOptions.agGridOptions);
57
- abOptions.agGridOptions.suppressMenuHide = suppressMenuHide;
56
+ abOptions.gridOptions = Object.assign({}, abOptions.gridOptions);
57
+ abOptions.gridOptions.suppressMenuHide = suppressMenuHide;
58
58
  props.onChangeadaptableOptions(abOptions);
59
59
  } }))),
60
60
  React.createElement(HelpBlock_1.default, null, "Layout Options"),
@@ -29,8 +29,8 @@ const ConfigurationDialog = (props) => {
29
29
  };
30
30
  const onFinish = () => {
31
31
  const newABOptions = Object.assign({}, abOptions);
32
- newABOptions.agGridOptions = Object.assign({}, abOptions.agGridOptions);
33
- newABOptions.agGridOptions.columnDefs = columnsHandle.current.getColumns().map((c) => {
32
+ newABOptions.gridOptions = Object.assign({}, abOptions.gridOptions);
33
+ newABOptions.gridOptions.columnDefs = columnsHandle.current.getColumns().map((c) => {
34
34
  const col = Object.assign(Object.assign({}, c), { headerName: c.caption || StringExtensions_1.default.Humanize(c.field) });
35
35
  delete col.caption;
36
36
  return col;
@@ -50,7 +50,7 @@ const ConfigurationDialog = (props) => {
50
50
  React.createElement(Input_1.default, { value: abOptions.adaptableId, onChange: onadaptableIdChange, style: { minWidth: '20rem' } })))),
51
51
  React.createElement(ColumnsList_1.default, { handle: columnsHandle, onValidityChange: (valid) => {
52
52
  setFinishEnabled(valid);
53
- }, columns: abOptions.agGridOptions.columnDefs }))));
53
+ }, columns: abOptions.gridOptions.columnDefs }))));
54
54
  const stepTwo = (React.createElement(React.Fragment, null,
55
55
  React.createElement(Panel_1.default, { header: 'Configure AdapTable', border: "none", style: { flex: 1, overflow: 'auto' } },
56
56
  React.createElement(ConfigurationForm_1.default, { adaptableOptions: abOptions, onChangeadaptableOptions: (abOptions) => {
@@ -65,7 +65,7 @@ const Wizard = (props) => {
65
65
  const gridOptions = helper_1.prepareGridOptions(dataSourceInfo);
66
66
  const adaptableOptions = Object.assign({}, props.adaptableOptions);
67
67
  adaptableOptions.adaptableId = adaptableOptions.adaptableId || (file ? file.name : '');
68
- adaptableOptions.agGridOptions = gridOptions;
68
+ adaptableOptions.gridOptions = gridOptions;
69
69
  if (dataSourceInfo.primaryKey) {
70
70
  adaptableOptions.primaryKey = dataSourceInfo.primaryKey;
71
71
  }
@@ -11,6 +11,6 @@ exports.AlertEmptyView = (props) => {
11
11
  .getEntitlementAccessLevelForModule(props.module.moduleInfo.ModuleName);
12
12
  const text = accessLevel == 'ReadOnly'
13
13
  ? 'You have no Alert Definitions.'
14
- : "Click 'New' to start creating Alert Definitions. An alert will be triggered whenever an edit - or external data change - matches the condition in the Alert Definition.";
14
+ : "Click 'New' to start creating Alert Definitions. An Alert is triggered whenever an edit - or external data change - matches the Rule in the Alert Definition.";
15
15
  return React.createElement(React.Fragment, null, text);
16
16
  };