@adaptabletools/adaptable 16.0.8 → 16.0.10-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 (197) hide show
  1. package/base.css +14 -14
  2. package/base.css.map +1 -1
  3. package/bundle.cjs.js +169 -169
  4. package/index.css +14 -14
  5. package/index.css.map +1 -1
  6. package/package.json +1 -1
  7. package/publishTimestamp.d.ts +1 -1
  8. package/publishTimestamp.js +1 -1
  9. package/src/AdaptableOptions/AdaptableOptions.d.ts +2 -2
  10. package/src/AdaptableOptions/ChartingOptions.d.ts +40 -0
  11. package/src/AdaptableOptions/ColumnOptions.d.ts +17 -0
  12. package/src/AdaptableOptions/NotesOptions.d.ts +23 -0
  13. package/src/AdaptableOptions/QuickSearchOptions.d.ts +8 -0
  14. package/src/AdaptableOptions/UserInterfaceOptions.d.ts +2 -0
  15. package/src/Api/AdaptableApi.d.ts +3 -3
  16. package/src/Api/ChartingApi.d.ts +30 -0
  17. package/src/Api/ColumnApi.d.ts +5 -0
  18. package/src/Api/ConfigApi.d.ts +4 -3
  19. package/src/Api/Implementation/AdaptableApiImpl.d.ts +2 -2
  20. package/src/Api/Implementation/AdaptableApiImpl.js +2 -2
  21. package/src/Api/Implementation/ApiBase.d.ts +2 -2
  22. package/src/Api/Implementation/ApiBase.js +2 -2
  23. package/src/Api/Implementation/ChartingApiImpl.d.ts +8 -2
  24. package/src/Api/Implementation/ChartingApiImpl.js +64 -0
  25. package/src/Api/Implementation/ColumnApiImpl.d.ts +1 -0
  26. package/src/Api/Implementation/ColumnApiImpl.js +4 -0
  27. package/src/Api/Implementation/ConfigApiImpl.d.ts +3 -2
  28. package/src/Api/Implementation/ConfigApiImpl.js +9 -9
  29. package/src/Api/Implementation/NotesApiImpl.d.ts +20 -0
  30. package/src/Api/Implementation/NotesApiImpl.js +58 -0
  31. package/src/Api/Implementation/OptionsApiImpl.d.ts +2 -2
  32. package/src/Api/Implementation/OptionsApiImpl.js +2 -2
  33. package/src/Api/Implementation/UserInterfaceApiImpl.d.ts +2 -0
  34. package/src/Api/Implementation/UserInterfaceApiImpl.js +8 -0
  35. package/src/Api/Internal/AdaptableInternalApi.d.ts +0 -2
  36. package/src/Api/Internal/AdaptableInternalApi.js +0 -6
  37. package/src/Api/Internal/CalculatedColumnInternalApi.d.ts +2 -0
  38. package/src/Api/Internal/CalculatedColumnInternalApi.js +12 -0
  39. package/src/Api/Internal/ChartingInternalApi.d.ts +7 -0
  40. package/src/Api/Internal/ChartingInternalApi.js +45 -0
  41. package/src/Api/Internal/ColumnInternalApi.d.ts +3 -0
  42. package/src/Api/Internal/ColumnInternalApi.js +3 -0
  43. package/src/Api/NotesAPi.d.ts +50 -0
  44. package/src/Api/OptionsApi.d.ts +3 -3
  45. package/src/Api/UserInterfaceApi.d.ts +8 -0
  46. package/src/PredefinedConfig/AdaptableState.d.ts +2 -2
  47. package/src/PredefinedConfig/ChartingState.d.ts +22 -0
  48. package/src/PredefinedConfig/ChartingState.js +9 -0
  49. package/src/PredefinedConfig/Common/AdaptableColumn.d.ts +12 -0
  50. package/src/PredefinedConfig/Common/AdaptableIcon.d.ts +1 -1
  51. package/src/PredefinedConfig/Common/Menu.d.ts +1 -1
  52. package/src/PredefinedConfig/Common/Types.d.ts +2 -2
  53. package/src/PredefinedConfig/Common/Types.js +1 -1
  54. package/src/PredefinedConfig/NotesState.d.ts +59 -0
  55. package/src/PredefinedConfig/PredefinedConfig.d.ts +2 -2
  56. package/src/PredefinedConfig/SystemState.d.ts +5 -3
  57. package/src/Redux/ActionsReducers/ChartingRedux.d.ts +28 -3
  58. package/src/Redux/ActionsReducers/ChartingRedux.js +52 -5
  59. package/src/Redux/ActionsReducers/NotesRedux.d.ts +39 -0
  60. package/src/Redux/ActionsReducers/NotesRedux.js +88 -0
  61. package/src/Redux/ActionsReducers/SystemRedux.d.ts +10 -10
  62. package/src/Redux/ActionsReducers/SystemRedux.js +23 -22
  63. package/src/Redux/Store/AdaptableStore.js +19 -11
  64. package/src/Strategy/ChartingModule.d.ts +5 -2
  65. package/src/Strategy/ChartingModule.js +28 -7
  66. package/src/Strategy/ColumnInfoModule.d.ts +11 -0
  67. package/src/Strategy/ColumnInfoModule.js +47 -0
  68. package/src/Strategy/DataSetModule.js +1 -0
  69. package/src/Strategy/Fdc3Module.js +28 -26
  70. package/src/Strategy/FilterModule.js +5 -0
  71. package/src/Strategy/GridInfoModule.js +13 -82
  72. package/src/Strategy/Interface/IModule.d.ts +2 -0
  73. package/src/Strategy/{CommentsModule.d.ts → NotesModule.d.ts} +6 -6
  74. package/src/Strategy/{CommentsModule.js → NotesModule.js} +41 -41
  75. package/src/Strategy/Utilities/Layout/getLayoutFilterViewItems.d.ts +2 -0
  76. package/src/Strategy/Utilities/Layout/getLayoutFilterViewItems.js +20 -18
  77. package/src/Utilities/Constants/DocumentationLinkConstants.d.ts +1 -0
  78. package/src/Utilities/Constants/DocumentationLinkConstants.js +2 -1
  79. package/src/Utilities/Constants/ModuleConstants.d.ts +6 -3
  80. package/src/Utilities/Constants/ModuleConstants.js +8 -5
  81. package/src/Utilities/Defaults/DefaultAdaptableOptions.js +3 -1
  82. package/src/Utilities/Defaults/DefaultSettingsPanel.js +2 -1
  83. package/src/Utilities/ExpressionFunctions/aggregatedScalarExpressionFunctions.d.ts +3 -2
  84. package/src/Utilities/ExpressionFunctions/aggregatedScalarExpressionFunctions.js +36 -10
  85. package/src/Utilities/Extensions/ObjectExtensions.d.ts +1 -0
  86. package/src/Utilities/Extensions/ObjectExtensions.js +5 -1
  87. package/src/Utilities/ObjectFactory.d.ts +2 -1
  88. package/src/Utilities/ObjectFactory.js +10 -2
  89. package/src/Utilities/Services/Interface/IEntitlementService.d.ts +4 -0
  90. package/src/Utilities/Services/Interface/IQueryLanguageService.d.ts +1 -1
  91. package/src/Utilities/Services/QueryLanguageService.d.ts +1 -2
  92. package/src/Utilities/Services/QueryLanguageService.js +1 -6
  93. package/src/Utilities/Services/ValidationService.js +15 -5
  94. package/src/View/AdaptableView.js +2 -2
  95. package/src/View/AdaptableViewFactory.js +5 -3
  96. package/src/View/Alert/Wizard/AlertButtonsEditor.js +20 -4
  97. package/src/View/Alert/Wizard/AlertWizard.js +14 -7
  98. package/src/View/CalculatedColumn/CalculatedColumnSummary.d.ts +1 -1
  99. package/src/View/CalculatedColumn/Wizard/CalculatedColumnExpressionWizardSection.d.ts +2 -0
  100. package/src/View/CalculatedColumn/Wizard/CalculatedColumnExpressionWizardSection.js +25 -46
  101. package/src/View/CalculatedColumn/Wizard/CalculatedColumnTypeSection.d.ts +8 -0
  102. package/src/View/CalculatedColumn/Wizard/CalculatedColumnTypeSection.js +19 -0
  103. package/src/View/CalculatedColumn/Wizard/CalculatedColumnWizard.d.ts +2 -0
  104. package/src/View/CalculatedColumn/Wizard/CalculatedColumnWizard.js +44 -3
  105. package/src/View/CalculatedColumn/utils.d.ts +2 -0
  106. package/src/View/CalculatedColumn/utils.js +14 -0
  107. package/src/View/Charting/ChartingWizard/AgChargingWizard/AgChargingWizard.d.ts +6 -0
  108. package/src/View/Charting/ChartingWizard/AgChargingWizard/AgChargingWizard.js +47 -0
  109. package/src/View/Charting/ChartingWizard/{PreviewChartSection.d.ts → AgChargingWizard/PreviewChartSection.d.ts} +1 -1
  110. package/src/View/Charting/ChartingWizard/{PreviewChartSection.js → AgChargingWizard/PreviewChartSection.js} +2 -2
  111. package/src/View/Charting/ChartingWizard/{SettingsSection.d.ts → AgChargingWizard/SettingsSection.d.ts} +1 -1
  112. package/src/View/Charting/ChartingWizard/{SettingsSection.js → AgChargingWizard/SettingsSection.js} +4 -4
  113. package/src/View/Charting/ChartingWizard/AgChargingWizard/index.d.ts +1 -0
  114. package/src/View/Charting/ChartingWizard/AgChargingWizard/index.js +4 -0
  115. package/src/View/Charting/ChartingWizard/ChartingWizard.d.ts +4 -3
  116. package/src/View/Charting/ChartingWizard/ChartingWizard.js +12 -39
  117. package/src/View/Charting/ChartingWizard/ExternalChartingWizard/ExternalChartingWizard.d.ts +6 -0
  118. package/src/View/Charting/ChartingWizard/ExternalChartingWizard/ExternalChartingWizard.js +59 -0
  119. package/src/View/Charting/ChartingWizard/ExternalChartingWizard/SettingsSection.d.ts +9 -0
  120. package/src/View/Charting/ChartingWizard/ExternalChartingWizard/SettingsSection.js +25 -0
  121. package/src/View/Charting/ChartingWizard/ExternalChartingWizard/index.d.ts +1 -0
  122. package/src/View/Charting/ChartingWizard/ExternalChartingWizard/index.js +4 -0
  123. package/src/View/Charting/ChartingWizard/index.d.ts +1 -0
  124. package/src/View/Charting/ChartingWizard/index.js +4 -0
  125. package/src/View/Charting/DeleteChartButton.d.ts +2 -1
  126. package/src/View/Charting/DeleteChartButton.js +4 -2
  127. package/src/View/Charting/EditChartButton.d.ts +2 -1
  128. package/src/View/Charting/ShowChartButton.js +47 -16
  129. package/src/View/Charting/{useChartState.d.ts → useAgChartState.d.ts} +1 -1
  130. package/src/View/Charting/{useChartState.js → useAgChartState.js} +7 -7
  131. package/src/View/Charting/useChartingElements.d.ts +2 -1
  132. package/src/View/Charting/useChartingElements.js +36 -26
  133. package/src/View/Charting/useExternalChartState.d.ts +7 -0
  134. package/src/View/Charting/useExternalChartState.js +56 -0
  135. package/src/View/ColumnInfo/ColumnInfo.d.ts +5 -0
  136. package/src/View/ColumnInfo/ColumnInfo.js +185 -0
  137. package/src/View/ColumnInfo/ColumnInfoPopup.d.ts +3 -0
  138. package/src/View/ColumnInfo/ColumnInfoPopup.js +15 -0
  139. package/src/View/Components/AdaptableIconSelector/index.d.ts +1 -1
  140. package/src/View/Components/Selectors/ColumnSelector.js +1 -1
  141. package/src/View/FlashingCell/Wizard/FlashingCellWizard.js +6 -1
  142. package/src/View/FormatColumn/Wizard/FormatColumnWizard.js +9 -0
  143. package/src/View/GridInfo/{AdaptableObjectsSummary.js → GridInfoPopup/AdaptableObjectsSummary.js} +2 -2
  144. package/src/View/GridInfo/{AdaptableOptionsComponent.d.ts → GridInfoPopup/AdaptableOptionsComponent.d.ts} +1 -1
  145. package/src/View/GridInfo/{AdaptableOptionsComponent.js → GridInfoPopup/AdaptableOptionsComponent.js} +6 -6
  146. package/src/View/GridInfo/GridInfoPopup/GridInfoPopup.d.ts +6 -0
  147. package/src/View/GridInfo/GridInfoPopup/GridInfoPopup.js +82 -0
  148. package/src/View/GridInfo/GridInfoPopup/index.d.ts +1 -0
  149. package/src/View/GridInfo/GridInfoPopup/index.js +4 -0
  150. package/src/View/Layout/Wizard/sections/AggregationsSection.js +1 -1
  151. package/src/View/Layout/Wizard/sections/ColumnsSection.js +1 -1
  152. package/src/View/Notes/NotesListing.d.ts +2 -0
  153. package/src/View/{Comments/CommentListing.js → Notes/NotesListing.js} +13 -14
  154. package/src/View/Notes/NotesPopup.d.ts +2 -0
  155. package/src/View/{Comments/CommentPopup.js → Notes/NotesPopup.js} +21 -21
  156. package/src/View/Shortcut/Wizard/ShortcutWizard.js +6 -1
  157. package/src/View/StyledColumn/Wizard/StyledColumnWizard.js +14 -0
  158. package/src/agGrid/Adaptable.d.ts +1 -1
  159. package/src/agGrid/Adaptable.js +28 -16
  160. package/src/agGrid/agGridHelper.d.ts +3 -3
  161. package/src/agGrid/agGridHelper.js +56 -30
  162. package/src/agGrid/agGridMenuHelper.js +4 -2
  163. package/src/components/ExpressionEditor/EditorInput.d.ts +1 -1
  164. package/src/components/ExpressionEditor/EditorInput.js +15 -6
  165. package/src/components/ExpressionEditor/editorButtonsAggregatedScalar.js +5 -10
  166. package/src/components/ExpressionEditor/editorButtonsCumulativeAggregatedScalar.js +5 -5
  167. package/src/components/ExpressionEditor/editorButtonsQuantileAggregatedScalar.d.ts +2 -0
  168. package/src/components/ExpressionEditor/editorButtonsQuantileAggregatedScalar.js +25 -0
  169. package/src/components/ExpressionEditor/index.d.ts +1 -1
  170. package/src/components/ExpressionEditor/index.js +2 -1
  171. package/src/components/icons/index.js +2 -0
  172. package/src/components/icons/note.d.ts +3 -0
  173. package/src/components/icons/note.js +7 -0
  174. package/src/metamodel/adaptable.metamodel.d.ts +72 -59
  175. package/src/metamodel/adaptable.metamodel.js +1 -1
  176. package/src/types.d.ts +4 -4
  177. package/version.d.ts +1 -1
  178. package/version.js +1 -1
  179. package/src/AdaptableOptions/CommentsOptions.d.ts +0 -23
  180. package/src/Api/CommentsApi.d.ts +0 -50
  181. package/src/Api/Implementation/CommentsApiImpl.d.ts +0 -20
  182. package/src/Api/Implementation/CommentsApiImpl.js +0 -58
  183. package/src/PredefinedConfig/CommentsState.d.ts +0 -59
  184. package/src/Redux/ActionsReducers/CommentsRedux.d.ts +0 -39
  185. package/src/Redux/ActionsReducers/CommentsRedux.js +0 -92
  186. package/src/View/Comments/CommentListing.d.ts +0 -2
  187. package/src/View/Comments/CommentPopup.d.ts +0 -2
  188. package/src/View/GridInfo/ColumnInfoComponent.d.ts +0 -20
  189. package/src/View/GridInfo/ColumnInfoComponent.js +0 -176
  190. package/src/View/GridInfo/GridInfoPopup.d.ts +0 -16
  191. package/src/View/GridInfo/GridInfoPopup.js +0 -117
  192. package/src/View/GridInfo/GridOptionsComponent.d.ts +0 -16
  193. package/src/View/GridInfo/GridOptionsComponent.js +0 -36
  194. /package/src/AdaptableOptions/{CommentsOptions.js → NotesOptions.js} +0 -0
  195. /package/src/Api/{CommentsApi.js → NotesAPi.js} +0 -0
  196. /package/src/PredefinedConfig/{CommentsState.js → NotesState.js} +0 -0
  197. /package/src/View/GridInfo/{AdaptableObjectsSummary.d.ts → GridInfoPopup/AdaptableObjectsSummary.d.ts} +0 -0
@@ -1,8 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.SYSTEM_DISABLE_DELETE_CONFIRMATION = exports.SYSTEM_FILTER_FORM_HIDE = exports.SYSTEM_QUICK_FILTER_BAR_HIDE = exports.SYSTEM_QUICK_FILTER_BAR_SHOW = 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_CLEAR_ROW = 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_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_ROWS_DELETE = exports.SYSTEM_HIGHLIGHT_ROW_DELETE = exports.SYSTEM_HIGHLIGHT_ROWS_ADD = 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_CELL_DELETE_ALL = exports.SYSTEM_FLASHING_CELL_DELETE = exports.SYSTEM_FLASHING_CELL_ADD = exports.SYSTEM_ALERT_REMOVE_ROW_HIGHLIGHT = exports.SYSTEM_ALERT_REMOVE_CELL_HIGHLIGHT = exports.SYSTEM_ALERT_DELETE_ALL = exports.SYSTEM_ALERT_DELETE = exports.SYSTEM_ALERT_ADD = exports.FLASHING_CELL_ROW_KEY = void 0;
4
- exports.SystemDataChangeHistoryEnable = exports.SystemDataChangeHistoryClearRow = 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.SystemAlertRemoveRowHighlight = exports.SystemAlertRemoveCellHighlight = exports.SystemAlertDeleteAll = exports.SystemAlertDelete = exports.SystemAlertAdd = exports.SystemHighlightRowDeleteAll = exports.SystemHighlightRowsDelete = exports.SystemHighlightRowDelete = exports.SystemHighlightRowsAdd = exports.SystemHighlightRowAdd = exports.SystemHighlightCellDeleteAll = exports.SystemHighlightCellDelete = exports.SystemHighlightCellAdd = exports.SYSTEM_COMMENTS_HIDE = exports.SYSTEM_COMMENTS_SHOW = exports.SYSTEM_VISUAL_EXPORT_END = exports.SYSTEM_VISUAL_EXPORT_BEGIN = exports.SYSTEM_SET_QUICK_SEARCH_FLOATING_VISIBILITY = exports.SYSTEM_SET_PREVIOUS_GROUPED_COLUMN_INDEX = exports.SYSTEM_CHARTING_SET_CURRENT_CHART_MODELS = exports.SYSTEM_DATA_SET_SELECT = exports.DASHBOARD_REFRESH = exports.SYSTEM_LAYOUT_SHOW_NOT_ASSOCIATED_OBJECTS = void 0;
5
- exports.SystemReducer = exports.SystemCommentsEditModeSelector = exports.SystemCommentsSelector = exports.SystemQuickSearchFloatingVisibilitySelector = exports.SystemPreviousGroupedColumnsSelector = exports.SystemDisableDeleteConfirmationSelector = exports.SystemCommentsHide = exports.SystemCommentsShow = exports.SystemQuickSearchFloatingVisibility = exports.SystemVisualExportEnd = exports.SystemVisualExportBegin = exports.SystemDisableDeleteConfirmation = exports.SystemSetPreviousGroupedColumnsIndex = exports.SystemChartingCurrentChartModelsSelector = exports.SystemChartingSetCurrentChartModels = exports.SystemDataSetSelect = exports.SystemDashboardRefresh = exports.SystemLayoutShowNotAssociatedObjects = exports.SystemFilterFormHide = exports.SystemQuickFilterBarHide = exports.SystemQuickFilterBarShow = exports.SystemSettingsPanelSet = exports.SystemDataChangeHistoryResume = exports.SystemDataChangeHistorySuspend = exports.SystemDataChangeHistoryDisable = void 0;
4
+ exports.SystemDataChangeHistoryEnable = exports.SystemDataChangeHistoryClearRow = 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.SystemAlertRemoveRowHighlight = exports.SystemAlertRemoveCellHighlight = exports.SystemAlertDeleteAll = exports.SystemAlertDelete = exports.SystemAlertAdd = exports.SystemHighlightRowDeleteAll = exports.SystemHighlightRowsDelete = exports.SystemHighlightRowDelete = exports.SystemHighlightRowsAdd = exports.SystemHighlightRowAdd = exports.SystemHighlightCellDeleteAll = exports.SystemHighlightCellDelete = exports.SystemHighlightCellAdd = exports.SYSTEM_NOTS_HIDE = exports.SYSTEM_NOTESS_SHOW = exports.SYSTEM_VISUAL_EXPORT_END = exports.SYSTEM_VISUAL_EXPORT_BEGIN = exports.SYSTEM_SET_QUICK_SEARCH_FLOATING_VISIBILITY = exports.SYSTEM_SET_PREVIOUS_GROUPED_COLUMN_INDEX = exports.SYSTEM_CHARTING_SET_CURRENT_CHART_MODELS = exports.SYSTEM_DATA_SET_SELECT = exports.DASHBOARD_REFRESH = exports.SYSTEM_LAYOUT_SHOW_NOT_ASSOCIATED_OBJECTS = void 0;
5
+ exports.SystemReducer = exports.SystemNotesEditModeSelector = exports.SystemNotesSelector = exports.SystemQuickSearchFloatingVisibilitySelector = exports.SystemPreviousGroupedColumnsSelector = exports.SystemDisableDeleteConfirmationSelector = exports.SystemNoteHide = exports.SystemNotesShow = exports.SystemQuickSearchFloatingVisibility = exports.SystemVisualExportEnd = exports.SystemVisualExportBegin = exports.SystemDisableDeleteConfirmation = exports.SystemSetPreviousGroupedColumnsIndex = exports.SystemChartingCurrentChartModelsSelector = exports.SystemChartingSetCurrentChartModels = exports.SystemDataSetSelect = exports.SystemDashboardRefresh = exports.SystemLayoutShowNotAssociatedObjects = exports.SystemFilterFormHide = exports.SystemQuickFilterBarHide = exports.SystemQuickFilterBarShow = exports.SystemSettingsPanelSet = exports.SystemDataChangeHistoryResume = exports.SystemDataChangeHistorySuspend = exports.SystemDataChangeHistoryDisable = void 0;
6
6
  const GeneralConstants_1 = require("../../Utilities/Constants/GeneralConstants");
7
7
  const Enums_1 = require("../../PredefinedConfig/Common/Enums");
8
8
  const Helper_1 = require("../../Utilities/Helpers/Helper");
@@ -91,9 +91,9 @@ exports.SYSTEM_SET_QUICK_SEARCH_FLOATING_VISIBILITY = 'SYSTEM_SET_QUICK_SEARCH_F
91
91
  // Data Export (Report)
92
92
  exports.SYSTEM_VISUAL_EXPORT_BEGIN = 'SYSTEM_VISUAL_EXPORT_BEGIN';
93
93
  exports.SYSTEM_VISUAL_EXPORT_END = 'SYSTEM_VISUAL_EXPORT_END';
94
- // Comments
95
- exports.SYSTEM_COMMENTS_SHOW = 'SYSTEM_COMMENTS_SHOW';
96
- exports.SYSTEM_COMMENTS_HIDE = 'SYSTEM_COMMENTS_HIDE';
94
+ // Notes
95
+ exports.SYSTEM_NOTESS_SHOW = 'SYSTEM_NOTES_SHOW';
96
+ exports.SYSTEM_NOTS_HIDE = 'SYSTEM_NOTES_HIDE';
97
97
  const SystemHighlightCellAdd = (cellHighlightInfo) => ({
98
98
  type: exports.SYSTEM_HIGHLIGHT_CELL_ADD,
99
99
  cellHighlightInfo: cellHighlightInfo,
@@ -365,16 +365,16 @@ const SystemQuickSearchFloatingVisibility = (visible) => ({
365
365
  visible,
366
366
  });
367
367
  exports.SystemQuickSearchFloatingVisibility = SystemQuickSearchFloatingVisibility;
368
- const SystemCommentsShow = (cellPosition, editMode) => ({
369
- type: exports.SYSTEM_COMMENTS_SHOW,
368
+ const SystemNotesShow = (cellPosition, editMode) => ({
369
+ type: exports.SYSTEM_NOTESS_SHOW,
370
370
  editMode,
371
371
  cellPosition,
372
372
  });
373
- exports.SystemCommentsShow = SystemCommentsShow;
374
- const SystemCommentsHide = () => ({
375
- type: exports.SYSTEM_COMMENTS_HIDE,
373
+ exports.SystemNotesShow = SystemNotesShow;
374
+ const SystemNoteHide = () => ({
375
+ type: exports.SYSTEM_NOTS_HIDE,
376
376
  });
377
- exports.SystemCommentsHide = SystemCommentsHide;
377
+ exports.SystemNoteHide = SystemNoteHide;
378
378
  const SystemDisableDeleteConfirmationSelector = (state) => {
379
379
  return state.DisableDeleteConfirmation;
380
380
  };
@@ -388,16 +388,16 @@ const SystemQuickSearchFloatingVisibilitySelector = (state) => {
388
388
  return (_a = state === null || state === void 0 ? void 0 : state.QuickSearch) === null || _a === void 0 ? void 0 : _a.floatingVisible;
389
389
  };
390
390
  exports.SystemQuickSearchFloatingVisibilitySelector = SystemQuickSearchFloatingVisibilitySelector;
391
- const SystemCommentsSelector = (state) => {
391
+ const SystemNotesSelector = (state) => {
392
392
  var _a;
393
- return (_a = state === null || state === void 0 ? void 0 : state.Comments) === null || _a === void 0 ? void 0 : _a.popupPosition;
393
+ return (_a = state === null || state === void 0 ? void 0 : state.Notes) === null || _a === void 0 ? void 0 : _a.popupPosition;
394
394
  };
395
- exports.SystemCommentsSelector = SystemCommentsSelector;
396
- const SystemCommentsEditModeSelector = (state) => {
395
+ exports.SystemNotesSelector = SystemNotesSelector;
396
+ const SystemNotesEditModeSelector = (state) => {
397
397
  var _a;
398
- return (_a = state === null || state === void 0 ? void 0 : state.Comments) === null || _a === void 0 ? void 0 : _a.editMode;
398
+ return (_a = state === null || state === void 0 ? void 0 : state.Notes) === null || _a === void 0 ? void 0 : _a.editMode;
399
399
  };
400
- exports.SystemCommentsEditModeSelector = SystemCommentsEditModeSelector;
400
+ exports.SystemNotesEditModeSelector = SystemNotesEditModeSelector;
401
401
  const initialState = {
402
402
  AdaptableAlerts: GeneralConstants_1.EMPTY_ARRAY,
403
403
  AdaptableFlashingCells: {},
@@ -435,6 +435,7 @@ const initialState = {
435
435
  CurrentDataSet: GeneralConstants_1.EMPTY_STRING,
436
436
  Charting: {
437
437
  currentChartModels: [],
438
+ externalChartingDefinitions: [],
438
439
  },
439
440
  Layout: {
440
441
  previousGroupedColumns: {},
@@ -785,15 +786,15 @@ const SystemReducer = (state = initialState, action) => {
785
786
  const typedAction = action;
786
787
  return Object.assign(Object.assign({}, state), { QuickSearch: Object.assign(Object.assign({}, state.QuickSearch), { floatingVisible: typedAction.visible }) });
787
788
  }
788
- case exports.SYSTEM_COMMENTS_SHOW: {
789
+ case exports.SYSTEM_NOTESS_SHOW: {
789
790
  const typedAction = action;
790
- return Object.assign(Object.assign({}, state), { Comments: {
791
+ return Object.assign(Object.assign({}, state), { Notes: {
791
792
  editMode: typedAction.editMode,
792
- popupPosition: typedAction.cellPosition
793
+ popupPosition: typedAction.cellPosition,
793
794
  } });
794
795
  }
795
- case exports.SYSTEM_COMMENTS_HIDE: {
796
- return Object.assign(Object.assign({}, state), { Comments: {
796
+ case exports.SYSTEM_NOTS_HIDE: {
797
+ return Object.assign(Object.assign({}, state), { Notes: {
797
798
  popupPosition: null,
798
799
  } });
799
800
  }
@@ -25,7 +25,7 @@ const QuickSearchRedux = tslib_1.__importStar(require("../ActionsReducers/QuickS
25
25
  const ThemeRedux = tslib_1.__importStar(require("../ActionsReducers/ThemeRedux"));
26
26
  const FormatColumnRedux = tslib_1.__importStar(require("../ActionsReducers/FormatColumnRedux"));
27
27
  const StyledColumnRedux = tslib_1.__importStar(require("../ActionsReducers/StyledColumnRedux"));
28
- const CommentsRedux = tslib_1.__importStar(require("../ActionsReducers/CommentsRedux"));
28
+ const NotesRedux = tslib_1.__importStar(require("../ActionsReducers/NotesRedux"));
29
29
  const ApplicationRedux = tslib_1.__importStar(require("../ActionsReducers/ApplicationRedux"));
30
30
  const FreeTextColumnRedux = tslib_1.__importStar(require("../ActionsReducers/FreeTextColumnRedux"));
31
31
  const LayoutRedux = tslib_1.__importStar(require("../ActionsReducers/LayoutRedux"));
@@ -148,7 +148,7 @@ class AdaptableStore {
148
148
  Query: QueryRedux.QueryReducer,
149
149
  Charting: ChartingRedux.ChartingReducer,
150
150
  StyledColumn: StyledColumnRedux.StyledColumnReducer,
151
- Comments: CommentsRedux.CommentsReducer,
151
+ Notes: NotesRedux.NotesReducer,
152
152
  };
153
153
  // allow plugins to participate in the root reducer
154
154
  adaptable.forPlugins((plugin) => {
@@ -838,20 +838,20 @@ const adaptableMiddleware = (adaptable) => function (middlewareAPI) {
838
838
  return returnAction;
839
839
  }
840
840
  /*******************
841
- * Comments ACTIONS
841
+ * Note ACTIONS
842
842
  *******************/
843
843
  /**
844
- * Use Case: Comment has been edited/deleted/added
844
+ * Use Case: Comments has been edited/deleted/added
845
845
  * Action: Triangle can be removed/added
846
846
  */
847
- case CommentsRedux.COMMENTS_ADD:
848
- case CommentsRedux.COMMENTS_EDIT:
849
- case CommentsRedux.COMMENTS_DELETE: {
847
+ case NotesRedux.NOTES_ADD:
848
+ case NotesRedux.NOTES_EDIT:
849
+ case NotesRedux.NOTES_DELETE: {
850
850
  let returnAction = next(action);
851
- const node = adaptable.api.gridApi.getRowNodeForPrimaryKey(returnAction.adaptableComment.PrimaryKeyValue);
852
- adaptable.refreshCells([node], [returnAction.adaptableComment.ColumnId], true);
853
- if (action.type == CommentsRedux.COMMENTS_DELETE) {
854
- adaptable.api.commentsApi.hideComment();
851
+ const node = adaptable.api.gridApi.getRowNodeForPrimaryKey(returnAction.adaptableNote.PrimaryKeyValue);
852
+ adaptable.refreshCells([node], [returnAction.adaptableNote.ColumnId], true);
853
+ if (action.type == NotesRedux.NOTES_DELETE) {
854
+ adaptable.api.notesApi.hideNote();
855
855
  }
856
856
  return returnAction;
857
857
  }
@@ -1195,6 +1195,14 @@ const adaptableMiddleware = (adaptable) => function (middlewareAPI) {
1195
1195
  adaptable.ReportService.resetExcelStyleMemoization();
1196
1196
  return returnAction;
1197
1197
  }
1198
+ /*******************
1199
+ * CHARTING ACTIONS
1200
+ *******************/
1201
+ case ChartingRedux.CHARTING_DELETE_EXTERNAL_CHART: {
1202
+ const returnAction = next(action);
1203
+ adaptable.api.chartingApi.internalApi.onDeleteExternalChart(returnAction.chartDefinition);
1204
+ return returnAction;
1205
+ }
1198
1206
  /*******************
1199
1207
  * TEAM SHARING ACTIONS
1200
1208
  *******************/
@@ -2,12 +2,15 @@ import { AdaptableModuleView, AdaptableObjectView, IModule } from './Interface/I
2
2
  import { AdaptableModuleBase } from './AdaptableModuleBase';
3
3
  import { AdaptableApi } from '../Api/AdaptableApi';
4
4
  import { ChartDefinition } from '../types';
5
+ import { ExternalChartDefinition } from '../PredefinedConfig/ChartingState';
5
6
  export declare class ChartingModule extends AdaptableModuleBase implements IModule {
6
7
  constructor(api: AdaptableApi);
7
8
  updateOldConfig(): void;
8
9
  isModuleAvailable(): boolean;
9
- getModuleAdaptableObjects(): ChartDefinition[];
10
+ getModuleAdaptableObjects(): (ChartDefinition | ExternalChartDefinition)[];
10
11
  toViewAll(): AdaptableObjectView[];
11
- toView(chart: ChartDefinition): AdaptableObjectView;
12
+ toView(chart: ChartDefinition | ExternalChartDefinition): AdaptableObjectView;
13
+ toViewExternalChartDefinition(chart: ExternalChartDefinition): AdaptableObjectView;
14
+ toViewChartDefinition(chart: ChartDefinition): AdaptableObjectView;
12
15
  getViewProperties(): AdaptableModuleView;
13
16
  }
@@ -5,16 +5,17 @@ const tslib_1 = require("tslib");
5
5
  const AdaptableModuleBase_1 = require("./AdaptableModuleBase");
6
6
  const ModuleConstants = tslib_1.__importStar(require("../Utilities/Constants/ModuleConstants"));
7
7
  const ShowChartButton_1 = require("../View/Charting/ShowChartButton");
8
- const ChartingWizard_1 = require("../View/Charting/ChartingWizard/ChartingWizard");
8
+ const ChartingWizard_1 = require("../View/Charting/ChartingWizard");
9
9
  const ChartingRedux = tslib_1.__importStar(require("../Redux/ActionsReducers/ChartingRedux"));
10
10
  const ChartingStatusBarPopover_1 = require("../View/Charting/ChartingStatusBarPopover");
11
11
  const getObjectTagsViewItems_1 = require("./Utilities/getObjectTagsViewItems");
12
+ const ChartingState_1 = require("../PredefinedConfig/ChartingState");
12
13
  class ChartingModule extends AdaptableModuleBase_1.AdaptableModuleBase {
13
14
  constructor(api) {
14
15
  super(ModuleConstants.ChartingModuleId, ModuleConstants.ChartingFriendlyName, 'chart', 'ChartPopup', 'Create AG Grid Charts in order to see Adaptable Data visually', api);
15
16
  }
16
17
  updateOldConfig() {
17
- const allChartDefinitions = this.getModuleAdaptableObjects();
18
+ const allChartDefinitions = this.api.chartingApi.getChartDefinitions();
18
19
  const chartDefinitionsToUpdate = allChartDefinitions
19
20
  .filter((chartDefinition) => 'model' in chartDefinition || !('Name' in chartDefinition))
20
21
  .map((charDefinition) => {
@@ -34,16 +35,34 @@ class ChartingModule extends AdaptableModuleBase_1.AdaptableModuleBase {
34
35
  }
35
36
  }
36
37
  isModuleAvailable() {
37
- return this.api.chartingApi.isChartingEnabled() && super.isModuleAvailable();
38
- // return false;
38
+ const agChartsAvailable = this.api.chartingApi.isChartingEnabled() && super.isModuleAvailable();
39
+ const externalChartsAvailable = this.api.optionsApi.getChartingOptions().externalCharting;
40
+ return Boolean(agChartsAvailable || externalChartsAvailable);
39
41
  }
40
42
  getModuleAdaptableObjects() {
41
- return this.api.chartingApi.getChartDefinitions();
43
+ return [
44
+ ...this.api.chartingApi.getChartDefinitions(),
45
+ ...this.api.chartingApi.getExternalChartDefinitions(),
46
+ ];
42
47
  }
43
48
  toViewAll() {
44
- return this.getModuleAdaptableObjects().map((layout) => this.toView(layout));
49
+ return this.getModuleAdaptableObjects().map((chartDef) => this.toView(chartDef));
45
50
  }
46
51
  toView(chart) {
52
+ if ((0, ChartingState_1.isExternalChartDefinition)(chart)) {
53
+ return this.toViewExternalChartDefinition(chart);
54
+ }
55
+ else {
56
+ return this.toViewChartDefinition(chart);
57
+ }
58
+ }
59
+ toViewExternalChartDefinition(chart) {
60
+ return {
61
+ items: [{ name: 'Name', values: [chart.Name] }],
62
+ abObject: chart,
63
+ };
64
+ }
65
+ toViewChartDefinition(chart) {
47
66
  var _a;
48
67
  return {
49
68
  items: [
@@ -96,7 +115,9 @@ class ChartingModule extends AdaptableModuleBase_1.AdaptableModuleBase {
96
115
  // not sure if charts should be created via adaptable wizard
97
116
  hideNewButton: true,
98
117
  getDeleteAction: (chartDefinition) => {
99
- return ChartingRedux.ChartingDeleteChart(chartDefinition.Name);
118
+ return (0, ChartingState_1.isAgChartDefinition)(chartDefinition)
119
+ ? ChartingRedux.ChartingDeleteChart(chartDefinition)
120
+ : ChartingRedux.ChartingDeleteExternalChart(chartDefinition);
100
121
  },
101
122
  emptyView: 'To create a chart select a few cells and right click. Then select "Chart Range" from the context menu.',
102
123
  getStatusBarPanelProps: () => {
@@ -0,0 +1,11 @@
1
+ import { AdaptableModuleBase } from './AdaptableModuleBase';
2
+ import { IModule } from './Interface/IModule';
3
+ import { AdaptableApi } from '../Api/AdaptableApi';
4
+ import { AccessLevel } from '../PredefinedConfig/Common/Entitlement';
5
+ import { AdaptableColumn, AdaptableMenuItem, ContextMenuContext } from '../types';
6
+ export declare class ColumnInfoModule extends AdaptableModuleBase implements IModule {
7
+ constructor(api: AdaptableApi);
8
+ getViewAccessLevel(): AccessLevel;
9
+ addColumnMenuItems(column: AdaptableColumn): AdaptableMenuItem[] | undefined;
10
+ addContextMenuItems(menuContext: ContextMenuContext): AdaptableMenuItem[] | undefined;
11
+ }
@@ -0,0 +1,47 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ColumnInfoModule = void 0;
4
+ const tslib_1 = require("tslib");
5
+ const AdaptableModuleBase_1 = require("./AdaptableModuleBase");
6
+ const ModuleConstants = tslib_1.__importStar(require("../Utilities/Constants/ModuleConstants"));
7
+ class ColumnInfoModule extends AdaptableModuleBase_1.AdaptableModuleBase {
8
+ constructor(api) {
9
+ super(ModuleConstants.ColumnInfoModuleId, ModuleConstants.ColumnInfoFriendlyName, 'columns', 'ColumnInfoPopup', 'Display information about Columns', api);
10
+ }
11
+ getViewAccessLevel() {
12
+ return 'Full';
13
+ }
14
+ addColumnMenuItems(column) {
15
+ if (this.isModuleAvailable()) {
16
+ const columnPopUpParams = {
17
+ source: 'ColumnMenu',
18
+ column: column,
19
+ };
20
+ return [
21
+ this.createMainMenuItemShowPopup({
22
+ Label: 'Column Info',
23
+ ComponentName: this.moduleInfo.Popup,
24
+ Icon: this.moduleInfo.Glyph,
25
+ PopupParams: columnPopUpParams,
26
+ }),
27
+ ];
28
+ }
29
+ }
30
+ addContextMenuItems(menuContext) {
31
+ if (this.isModuleAvailable()) {
32
+ const columnPopUpParams = {
33
+ source: 'ColumnMenu',
34
+ column: menuContext.adaptableColumn,
35
+ };
36
+ return [
37
+ this.createMainMenuItemShowPopup({
38
+ Label: 'Column Info',
39
+ ComponentName: this.moduleInfo.Popup,
40
+ Icon: this.moduleInfo.Glyph,
41
+ PopupParams: columnPopUpParams,
42
+ }),
43
+ ];
44
+ }
45
+ }
46
+ }
47
+ exports.ColumnInfoModule = ColumnInfoModule;
@@ -51,6 +51,7 @@ class DataSetModule extends AdaptableModuleBase_1.AdaptableModuleBase {
51
51
  getViewProperties() {
52
52
  return {
53
53
  actions: [DataSetSelector_1.DataSetSelector],
54
+ emptyView: 'No DataSets are provided',
54
55
  getStatusBarPanelProps: () => {
55
56
  var _a, _b;
56
57
  const content = (_b = (_a = this.api.dataSetApi.getCurrentDataSet()) === null || _a === void 0 ? void 0 : _a.name) !== null && _b !== void 0 ? _b : this.moduleInfo.FriendlyName;
@@ -12,33 +12,35 @@ class Fdc3Module extends AdaptableModuleBase_1.AdaptableModuleBase {
12
12
  if (!this.isModuleAvailable()) {
13
13
  return;
14
14
  }
15
- const currentColumnId = menuContext.adaptableColumn.columnId;
16
- const currentRowNode = menuContext.rowNode;
17
- const contextMenuItems = [];
18
- this.getFdc3Api()
19
- .internalApi.getAllRaiseIntentConfigs()
20
- .filter((raiseIntentConfig) => { var _a; return (_a = raiseIntentConfig.contextMenu) === null || _a === void 0 ? void 0 : _a.columnIds.includes(currentColumnId); })
21
- .forEach((raiseIntentConfig) => {
22
- contextMenuItems.push(this.buildRaiseIntentMenuItem(raiseIntentConfig, currentRowNode));
23
- });
24
- this.getFdc3Api()
25
- .internalApi.getAllBroadcastContextConfigs()
26
- .filter((broadcastConfig) => { var _a; return (_a = broadcastConfig.contextMenu) === null || _a === void 0 ? void 0 : _a.columnIds.includes(currentColumnId); })
27
- .forEach((broadcastConfig) => {
28
- contextMenuItems.push(this.buildBroadcastMenuItem(broadcastConfig, currentRowNode));
29
- });
30
- if (contextMenuItems.length > 1) {
31
- const groupMenuItem = {
32
- label: 'FDC3',
33
- icon: {
34
- name: 'fdc3',
35
- },
36
- isVisible: true,
37
- subItems: contextMenuItems,
38
- };
39
- return [groupMenuItem];
15
+ if (menuContext.adaptableColumn && menuContext.rowNode) {
16
+ const currentColumnId = menuContext.adaptableColumn.columnId;
17
+ const currentRowNode = menuContext.rowNode;
18
+ const contextMenuItems = [];
19
+ this.getFdc3Api()
20
+ .internalApi.getAllRaiseIntentConfigs()
21
+ .filter((raiseIntentConfig) => { var _a; return (_a = raiseIntentConfig.contextMenu) === null || _a === void 0 ? void 0 : _a.columnIds.includes(currentColumnId); })
22
+ .forEach((raiseIntentConfig) => {
23
+ contextMenuItems.push(this.buildRaiseIntentMenuItem(raiseIntentConfig, currentRowNode));
24
+ });
25
+ this.getFdc3Api()
26
+ .internalApi.getAllBroadcastContextConfigs()
27
+ .filter((broadcastConfig) => { var _a; return (_a = broadcastConfig.contextMenu) === null || _a === void 0 ? void 0 : _a.columnIds.includes(currentColumnId); })
28
+ .forEach((broadcastConfig) => {
29
+ contextMenuItems.push(this.buildBroadcastMenuItem(broadcastConfig, currentRowNode));
30
+ });
31
+ if (contextMenuItems.length > 1) {
32
+ const groupMenuItem = {
33
+ label: 'FDC3',
34
+ icon: {
35
+ name: 'fdc3',
36
+ },
37
+ isVisible: true,
38
+ subItems: contextMenuItems,
39
+ };
40
+ return [groupMenuItem];
41
+ }
42
+ return contextMenuItems;
40
43
  }
41
- return contextMenuItems;
42
44
  }
43
45
  buildRaiseIntentMenuItem(intentConfig, rowNode) {
44
46
  var _a, _b, _c;
@@ -8,6 +8,7 @@ const ArrayExtensions_1 = tslib_1.__importDefault(require("../Utilities/Extensio
8
8
  const LayoutRedux = tslib_1.__importStar(require("../Redux/ActionsReducers/LayoutRedux"));
9
9
  const SystemRedux = tslib_1.__importStar(require("../Redux/ActionsReducers/SystemRedux"));
10
10
  const FilterStatusBarSubPanelPopover_1 = require("../View/Filter/FilterStatusBarSubPanelPopover");
11
+ const getLayoutFilterViewItems_1 = require("./Utilities/Layout/getLayoutFilterViewItems");
11
12
  class FilterModule extends AdaptableModuleBase_1.AdaptableModuleBase {
12
13
  constructor(api) {
13
14
  super(ModuleConstants.FilterModuleId, ModuleConstants.FilterFriendlyName, 'filter-list', 'FilterPopup', 'Advanced filtering capability allows users to see precisely the data they want', api);
@@ -97,6 +98,10 @@ class FilterModule extends AdaptableModuleBase_1.AdaptableModuleBase {
97
98
  name: 'Column',
98
99
  values: [this.api.columnApi.getFriendlyNameForColumnId(filter.ColumnId)],
99
100
  },
101
+ {
102
+ name: 'Filter',
103
+ values: [(0, getLayoutFilterViewItems_1.getFilterPreview)(filter, this.api)],
104
+ },
100
105
  ],
101
106
  abObject: filter,
102
107
  };
@@ -6,100 +6,31 @@ const AdaptableModuleBase_1 = require("./AdaptableModuleBase");
6
6
  const ModuleConstants = tslib_1.__importStar(require("../Utilities/Constants/ModuleConstants"));
7
7
  class GridInfoModule extends AdaptableModuleBase_1.AdaptableModuleBase {
8
8
  constructor(api) {
9
- super(ModuleConstants.GridInfoModuleId, ModuleConstants.GridInfoFriendlyName, 'info', 'GridInfoPopup', 'Display information about the Grid, the Options selected and all columns', api);
9
+ super(ModuleConstants.GridInfoModuleId, ModuleConstants.GridInfoFriendlyName, 'align-justify', 'GridInfoPopup', 'Display information about the Grid, the Options selected and all columns', api);
10
10
  }
11
11
  getViewAccessLevel() {
12
12
  return 'Full';
13
13
  }
14
14
  addColumnMenuItems(column) {
15
15
  if (this.isModuleAvailable()) {
16
- const showGridSection = this.api.internalApi
17
- .getEntitlementService()
18
- .isGridInfoSectionVisible('GridSummary');
19
- const showColumnInfoSection = this.api.internalApi
20
- .getEntitlementService()
21
- .isGridInfoSectionVisible('ColumnInfo');
22
- let selectMenuItems = [];
23
- if (showGridSection) {
24
- selectMenuItems.push(this.createMainMenuItemShowPopup({
25
- Label: 'Grid',
16
+ return [
17
+ this.createMainMenuItemShowPopup({
18
+ Label: 'Grid Info',
26
19
  ComponentName: this.moduleInfo.Popup,
27
- Icon: 'align-justify',
28
- }));
29
- }
30
- if (column && showColumnInfoSection) {
31
- selectMenuItems.push(this.createMainMenuItemShowPopup({
32
- Label: 'Column',
33
- ComponentName: this.moduleInfo.Popup,
34
- Icon: 'columns',
35
- PopupParams: {
36
- column: column,
37
- source: 'ColumnMenu',
38
- },
39
- }));
40
- }
41
- if (showGridSection || showColumnInfoSection) {
42
- return [
43
- {
44
- label: 'Show Info',
45
- module: this.moduleInfo.ModuleName,
46
- isVisible: true,
47
- icon: {
48
- name: this.moduleInfo.Glyph,
49
- },
50
- subItems: selectMenuItems,
51
- },
52
- ];
53
- }
20
+ Icon: this.moduleInfo.Glyph,
21
+ }),
22
+ ];
54
23
  }
55
24
  }
56
25
  addContextMenuItems(menuContext) {
57
26
  if (this.isModuleAvailable()) {
58
- let selectMenuItems = [];
59
- const showGridSection = this.api.internalApi
60
- .getEntitlementService()
61
- .isGridInfoSectionVisible('GridSummary');
62
- const showColumnInfoSection = this.api.internalApi
63
- .getEntitlementService()
64
- .isGridInfoSectionVisible('ColumnInfo');
65
- let gridPopUpParams = {
66
- source: 'ContextMenu',
67
- };
68
- if (showGridSection) {
69
- selectMenuItems.push(this.createMainMenuItemShowPopup({
70
- Label: 'Grid',
27
+ return [
28
+ this.createMainMenuItemShowPopup({
29
+ Label: 'Grid Info',
71
30
  ComponentName: this.moduleInfo.Popup,
72
- Icon: 'align-justify',
73
- PopupParams: gridPopUpParams,
74
- }));
75
- }
76
- if (showColumnInfoSection) {
77
- if (!menuContext.isRowGroupColumn) {
78
- let columnPopUpParams = {
79
- source: 'ContextMenu',
80
- column: menuContext.adaptableColumn,
81
- };
82
- selectMenuItems.push(this.createMainMenuItemShowPopup({
83
- Label: 'Column',
84
- ComponentName: this.moduleInfo.Popup,
85
- Icon: 'columns',
86
- PopupParams: columnPopUpParams,
87
- }));
88
- }
89
- }
90
- if (showGridSection || showColumnInfoSection) {
91
- return [
92
- {
93
- label: 'Show Info',
94
- module: this.moduleInfo.ModuleName,
95
- isVisible: true,
96
- icon: {
97
- name: this.moduleInfo.Glyph,
98
- },
99
- subItems: selectMenuItems,
100
- },
101
- ];
102
- }
31
+ Icon: this.moduleInfo.Glyph,
32
+ }),
33
+ ];
103
34
  }
104
35
  }
105
36
  }
@@ -113,6 +113,8 @@ export interface AdaptableModuleView {
113
113
  /**
114
114
  * Specifieds the types of objects the module manages.
115
115
  * When specified the new button will have these options.
116
+ * This is used for creating diffrent types of entites from the same module.
117
+ * E.g. Schedule
116
118
  */
117
119
  abObjectTypes?: {
118
120
  name: string;
@@ -1,23 +1,23 @@
1
1
  import { AdaptableApi } from '../Api/AdaptableApi';
2
2
  import { AdaptableMenuItem, ContextMenuContext } from '../PredefinedConfig/Common/Menu';
3
- import { CommentGridCell } from '../types';
3
+ import { NoteGridCell } from '../types';
4
4
  import { AdaptableModuleBase } from './AdaptableModuleBase';
5
5
  import { IModule } from './Interface/IModule';
6
6
  /**
7
- * In the first iteration a cell can have only one comment, the
8
- * comments is a list to allow further development.
7
+ * In the first iteration a cell can have only one note, the
8
+ * notes is a list to allow further development.
9
9
  */
10
- export declare class CommentsModule extends AdaptableModuleBase implements IModule {
10
+ export declare class NotesModule extends AdaptableModuleBase implements IModule {
11
11
  private adaptable;
12
12
  constructor(api: AdaptableApi);
13
13
  isModuleAvailable(): boolean;
14
14
  handleAdaptableReady(): void;
15
15
  addContextMenuItems(menuContext: ContextMenuContext): AdaptableMenuItem[] | undefined;
16
- private getAddRemoveCommentMenuItems;
16
+ private getAddRemoveNoteMenuItems;
17
17
  getCellPositionFromEvent(event: MouseEvent): null | {
18
18
  PrimaryKeyValue: string | number;
19
19
  ColumnId: string;
20
20
  };
21
21
  handleMouseEnter(event: MouseEvent): void;
22
- handleCellSelected(commentGridCell: CommentGridCell): void;
22
+ handleCellSelected(noteGridCell: NoteGridCell): void;
23
23
  }