@adaptabletools/adaptable 16.0.9 → 16.1.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 (260) hide show
  1. package/agGrid.d.ts +4 -0
  2. package/agGrid.js +4 -0
  3. package/base.css +16 -14
  4. package/base.css.map +1 -1
  5. package/bundle.cjs.js +171 -170
  6. package/index.css +18 -14
  7. package/index.css.map +1 -1
  8. package/package.json +1 -1
  9. package/publishTimestamp.d.ts +1 -1
  10. package/publishTimestamp.js +1 -1
  11. package/src/AdaptableOptions/AdaptableFrameworkComponent.d.ts +12 -1
  12. package/src/AdaptableOptions/AdaptableOptions.d.ts +7 -2
  13. package/src/AdaptableOptions/ChartingOptions.d.ts +48 -3
  14. package/src/AdaptableOptions/ColumnOptions.d.ts +17 -0
  15. package/src/AdaptableOptions/DataImportOptions.d.ts +57 -0
  16. package/src/AdaptableOptions/MenuOptions.d.ts +147 -8
  17. package/src/AdaptableOptions/MenuOptions.js +75 -0
  18. package/src/AdaptableOptions/NotesOptions.d.ts +23 -0
  19. package/src/AdaptableOptions/QuickSearchOptions.d.ts +8 -0
  20. package/src/AdaptableOptions/UserInterfaceOptions.d.ts +2 -0
  21. package/src/Api/AdaptableApi.d.ts +8 -3
  22. package/src/Api/ChartingApi.d.ts +30 -0
  23. package/src/Api/ColumnApi.d.ts +5 -0
  24. package/src/Api/ConfigApi.d.ts +4 -3
  25. package/src/Api/DataImportApi.d.ts +9 -0
  26. package/src/Api/Implementation/AdaptableApiImpl.d.ts +4 -2
  27. package/src/Api/Implementation/AdaptableApiImpl.js +4 -2
  28. package/src/Api/Implementation/ApiBase.d.ts +2 -2
  29. package/src/Api/Implementation/ApiBase.js +2 -2
  30. package/src/Api/Implementation/ChartingApiImpl.d.ts +8 -2
  31. package/src/Api/Implementation/ChartingApiImpl.js +64 -0
  32. package/src/Api/Implementation/ColumnApiImpl.d.ts +1 -0
  33. package/src/Api/Implementation/ColumnApiImpl.js +4 -0
  34. package/src/Api/Implementation/ConfigApiImpl.d.ts +3 -2
  35. package/src/Api/Implementation/ConfigApiImpl.js +9 -9
  36. package/src/Api/Implementation/DataImportApiImpl.d.ts +10 -0
  37. package/src/Api/Implementation/DataImportApiImpl.js +14 -0
  38. package/src/Api/Implementation/ExpressionApiImpl.js +1 -1
  39. package/src/Api/Implementation/NotesApiImpl.d.ts +20 -0
  40. package/src/Api/Implementation/NotesApiImpl.js +58 -0
  41. package/src/Api/Implementation/OptionsApiImpl.d.ts +3 -2
  42. package/src/Api/Implementation/OptionsApiImpl.js +5 -2
  43. package/src/Api/Implementation/UserInterfaceApiImpl.d.ts +7 -1
  44. package/src/Api/Implementation/UserInterfaceApiImpl.js +30 -0
  45. package/src/Api/Internal/AdaptableInternalApi.d.ts +0 -2
  46. package/src/Api/Internal/AdaptableInternalApi.js +0 -6
  47. package/src/Api/Internal/CalculatedColumnInternalApi.d.ts +2 -0
  48. package/src/Api/Internal/CalculatedColumnInternalApi.js +12 -0
  49. package/src/Api/Internal/ChartingInternalApi.d.ts +7 -0
  50. package/src/Api/Internal/ChartingInternalApi.js +45 -0
  51. package/src/Api/Internal/ColumnInternalApi.d.ts +3 -0
  52. package/src/Api/Internal/ColumnInternalApi.js +3 -0
  53. package/src/Api/Internal/DataImportInternalApi.d.ts +4 -0
  54. package/src/Api/Internal/DataImportInternalApi.js +49 -0
  55. package/src/Api/NotesAPi.d.ts +50 -0
  56. package/src/Api/NotesAPi.js +2 -0
  57. package/src/Api/OptionsApi.d.ts +8 -3
  58. package/src/Api/UserInterfaceApi.d.ts +22 -0
  59. package/src/PredefinedConfig/AdaptableState.d.ts +2 -2
  60. package/src/PredefinedConfig/ChartingState.d.ts +22 -0
  61. package/src/PredefinedConfig/ChartingState.js +9 -0
  62. package/src/PredefinedConfig/Common/AdaptableColumn.d.ts +12 -0
  63. package/src/PredefinedConfig/Common/AdaptableIcon.d.ts +1 -1
  64. package/src/PredefinedConfig/Common/Menu.d.ts +2 -7
  65. package/src/PredefinedConfig/Common/Types.d.ts +4 -4
  66. package/src/PredefinedConfig/Common/Types.js +3 -1
  67. package/src/PredefinedConfig/NotesState.d.ts +59 -0
  68. package/src/PredefinedConfig/NotesState.js +2 -0
  69. package/src/PredefinedConfig/PredefinedConfig.d.ts +2 -2
  70. package/src/PredefinedConfig/SystemState.d.ts +5 -3
  71. package/src/Redux/ActionsReducers/ChartingRedux.d.ts +28 -3
  72. package/src/Redux/ActionsReducers/ChartingRedux.js +52 -5
  73. package/src/Redux/ActionsReducers/NotesRedux.d.ts +39 -0
  74. package/src/Redux/ActionsReducers/NotesRedux.js +88 -0
  75. package/src/Redux/ActionsReducers/SystemRedux.d.ts +10 -10
  76. package/src/Redux/ActionsReducers/SystemRedux.js +23 -22
  77. package/src/Redux/Store/AdaptableStore.js +19 -11
  78. package/src/Strategy/ChartingModule.d.ts +5 -2
  79. package/src/Strategy/ChartingModule.js +28 -7
  80. package/src/Strategy/ColumnInfoModule.d.ts +11 -0
  81. package/src/Strategy/ColumnInfoModule.js +47 -0
  82. package/src/Strategy/DataImportModule.d.ts +11 -0
  83. package/src/Strategy/DataImportModule.js +36 -0
  84. package/src/Strategy/DataSetModule.js +1 -0
  85. package/src/Strategy/Fdc3Module.js +3 -2
  86. package/src/Strategy/FilterModule.js +5 -0
  87. package/src/Strategy/GridInfoModule.js +13 -82
  88. package/src/Strategy/Interface/IModule.d.ts +2 -0
  89. package/src/Strategy/LayoutModule.js +1 -0
  90. package/src/Strategy/{CommentsModule.d.ts → NotesModule.d.ts} +6 -6
  91. package/src/Strategy/{CommentsModule.js → NotesModule.js} +41 -41
  92. package/src/Strategy/Utilities/Layout/getLayoutFilterViewItems.d.ts +2 -0
  93. package/src/Strategy/Utilities/Layout/getLayoutFilterViewItems.js +20 -18
  94. package/src/Utilities/Constants/DocumentationLinkConstants.d.ts +1 -0
  95. package/src/Utilities/Constants/DocumentationLinkConstants.js +2 -1
  96. package/src/Utilities/Constants/ModuleConstants.d.ts +9 -3
  97. package/src/Utilities/Constants/ModuleConstants.js +11 -5
  98. package/src/Utilities/Defaults/DefaultAdaptableOptions.js +5 -1
  99. package/src/Utilities/Defaults/DefaultSettingsPanel.js +3 -1
  100. package/src/Utilities/ExpressionFunctions/aggregatedScalarExpressionFunctions.d.ts +3 -2
  101. package/src/Utilities/ExpressionFunctions/aggregatedScalarExpressionFunctions.js +36 -10
  102. package/src/Utilities/Extensions/ObjectExtensions.d.ts +1 -0
  103. package/src/Utilities/Extensions/ObjectExtensions.js +5 -1
  104. package/src/Utilities/Helpers/AdaptableHelper.js +2 -0
  105. package/src/Utilities/Interface/MessagePopups.d.ts +2 -2
  106. package/src/Utilities/ObjectFactory.d.ts +2 -1
  107. package/src/Utilities/ObjectFactory.js +10 -2
  108. package/src/Utilities/Services/Interface/IEntitlementService.d.ts +4 -0
  109. package/src/Utilities/Services/Interface/IQueryLanguageService.d.ts +1 -1
  110. package/src/Utilities/Services/ModuleService.js +2 -0
  111. package/src/Utilities/Services/QueryLanguageService.d.ts +1 -2
  112. package/src/Utilities/Services/QueryLanguageService.js +1 -6
  113. package/src/Utilities/Services/ValidationService.js +15 -5
  114. package/src/View/AdaptableView.js +2 -2
  115. package/src/View/AdaptableViewFactory.js +7 -3
  116. package/src/View/Alert/Wizard/AlertButtonsEditor.js +20 -4
  117. package/src/View/Alert/Wizard/AlertWizard.js +14 -7
  118. package/src/View/CalculatedColumn/CalculatedColumnSummary.d.ts +1 -1
  119. package/src/View/CalculatedColumn/Wizard/CalculatedColumnExpressionWizardSection.d.ts +2 -0
  120. package/src/View/CalculatedColumn/Wizard/CalculatedColumnExpressionWizardSection.js +25 -46
  121. package/src/View/CalculatedColumn/Wizard/CalculatedColumnTypeSection.d.ts +8 -0
  122. package/src/View/CalculatedColumn/Wizard/CalculatedColumnTypeSection.js +19 -0
  123. package/src/View/CalculatedColumn/Wizard/CalculatedColumnWizard.d.ts +2 -0
  124. package/src/View/CalculatedColumn/Wizard/CalculatedColumnWizard.js +44 -3
  125. package/src/View/CalculatedColumn/utils.d.ts +2 -0
  126. package/src/View/CalculatedColumn/utils.js +14 -0
  127. package/src/View/Charting/ChartingWizard/AgChargingWizard/AgChargingWizard.d.ts +6 -0
  128. package/src/View/Charting/ChartingWizard/AgChargingWizard/AgChargingWizard.js +47 -0
  129. package/src/View/Charting/ChartingWizard/{PreviewChartSection.d.ts → AgChargingWizard/PreviewChartSection.d.ts} +1 -1
  130. package/src/View/Charting/ChartingWizard/{PreviewChartSection.js → AgChargingWizard/PreviewChartSection.js} +2 -2
  131. package/src/View/Charting/ChartingWizard/{SettingsSection.d.ts → AgChargingWizard/SettingsSection.d.ts} +1 -1
  132. package/src/View/Charting/ChartingWizard/{SettingsSection.js → AgChargingWizard/SettingsSection.js} +4 -4
  133. package/src/View/Charting/ChartingWizard/AgChargingWizard/index.d.ts +1 -0
  134. package/src/View/Charting/ChartingWizard/AgChargingWizard/index.js +4 -0
  135. package/src/View/Charting/ChartingWizard/ChartingWizard.d.ts +4 -3
  136. package/src/View/Charting/ChartingWizard/ChartingWizard.js +12 -39
  137. package/src/View/Charting/ChartingWizard/ExternalChartingWizard/ExternalChartingWizard.d.ts +6 -0
  138. package/src/View/Charting/ChartingWizard/ExternalChartingWizard/ExternalChartingWizard.js +59 -0
  139. package/src/View/Charting/ChartingWizard/ExternalChartingWizard/SettingsSection.d.ts +9 -0
  140. package/src/View/Charting/ChartingWizard/ExternalChartingWizard/SettingsSection.js +25 -0
  141. package/src/View/Charting/ChartingWizard/ExternalChartingWizard/index.d.ts +1 -0
  142. package/src/View/Charting/ChartingWizard/ExternalChartingWizard/index.js +4 -0
  143. package/src/View/Charting/ChartingWizard/index.d.ts +1 -0
  144. package/src/View/Charting/ChartingWizard/index.js +4 -0
  145. package/src/View/Charting/DeleteChartButton.d.ts +2 -1
  146. package/src/View/Charting/DeleteChartButton.js +4 -2
  147. package/src/View/Charting/EditChartButton.d.ts +2 -1
  148. package/src/View/Charting/ShowChartButton.js +47 -16
  149. package/src/View/Charting/{useChartState.d.ts → useAgChartState.d.ts} +1 -1
  150. package/src/View/Charting/{useChartState.js → useAgChartState.js} +7 -7
  151. package/src/View/Charting/useChartingElements.d.ts +2 -1
  152. package/src/View/Charting/useChartingElements.js +36 -26
  153. package/src/View/Charting/useExternalChartState.d.ts +7 -0
  154. package/src/View/Charting/useExternalChartState.js +56 -0
  155. package/src/View/ColumnInfo/ColumnInfo.d.ts +5 -0
  156. package/src/View/ColumnInfo/ColumnInfo.js +185 -0
  157. package/src/View/ColumnInfo/ColumnInfoPopup.d.ts +3 -0
  158. package/src/View/ColumnInfo/ColumnInfoPopup.js +15 -0
  159. package/src/View/Components/AdaptableIconSelector/index.d.ts +1 -1
  160. package/src/View/Components/ExternalRenderer.d.ts +1 -0
  161. package/src/View/Components/ExternalRenderer.js +2 -1
  162. package/src/View/Components/Panels/PanelWithImage.js +3 -3
  163. package/src/View/Components/Popups/AdaptablePopup/AdaptablePopup.js +1 -1
  164. package/src/View/Components/Popups/AdaptablePopup/Navigation.js +4 -1
  165. package/src/View/Components/Popups/AdaptablePopup/useMenuItems.js +3 -0
  166. package/src/View/Components/Popups/WindowPopups/WindowPopups.d.ts +1 -0
  167. package/src/View/Components/Popups/WindowPopups/WindowPopups.js +12 -2
  168. package/src/View/Components/Selectors/ColumnSelector.js +1 -1
  169. package/src/View/DataImport/DataImportPopup.d.ts +6 -0
  170. package/src/View/DataImport/DataImportPopup.js +32 -0
  171. package/src/View/DataImport/DataImportWizard/DataImportWizard.d.ts +8 -0
  172. package/src/View/DataImport/DataImportWizard/DataImportWizard.js +176 -0
  173. package/src/View/DataImport/DataImportWizard/index.d.ts +1 -0
  174. package/src/View/DataImport/DataImportWizard/index.js +4 -0
  175. package/src/View/DataImport/DataImportWizard/sections/DataPreview.d.ts +10 -0
  176. package/src/View/DataImport/DataImportWizard/sections/DataPreview.js +154 -0
  177. package/src/View/DataImport/DataImportWizard/sections/ImportSection.d.ts +9 -0
  178. package/src/View/DataImport/DataImportWizard/sections/ImportSection.js +24 -0
  179. package/src/View/DataImport/DataImportWizard/sections/UploadSection/UploadFileSection.d.ts +8 -0
  180. package/src/View/DataImport/DataImportWizard/sections/UploadSection/UploadFileSection.js +11 -0
  181. package/src/View/DataImport/DataImportWizard/sections/UploadSection/UploadSection.d.ts +13 -0
  182. package/src/View/DataImport/DataImportWizard/sections/UploadSection/UploadSection.js +23 -0
  183. package/src/View/DataImport/DataImportWizard/sections/UploadSection/UploadTextSection.d.ts +8 -0
  184. package/src/View/DataImport/DataImportWizard/sections/UploadSection/UploadTextSection.js +13 -0
  185. package/src/View/DataImport/DataImportWizard/sections/UploadSection/index.d.ts +1 -0
  186. package/src/View/DataImport/DataImportWizard/sections/UploadSection/index.js +4 -0
  187. package/src/View/DataImport/DataImportWizard/sections/ValidationSection.d.ts +11 -0
  188. package/src/View/DataImport/DataImportWizard/sections/ValidationSection.js +35 -0
  189. package/src/View/DataImport/systemFileHandlers.d.ts +3 -0
  190. package/src/View/DataImport/systemFileHandlers.js +44 -0
  191. package/src/View/FlashingCell/Wizard/FlashingCellWizard.js +6 -1
  192. package/src/View/FormatColumn/Wizard/FormatColumnWizard.js +9 -0
  193. package/src/View/GridInfo/{AdaptableObjectsSummary.js → GridInfoPopup/AdaptableObjectsSummary.js} +2 -2
  194. package/src/View/GridInfo/{AdaptableOptionsComponent.d.ts → GridInfoPopup/AdaptableOptionsComponent.d.ts} +1 -1
  195. package/src/View/GridInfo/{AdaptableOptionsComponent.js → GridInfoPopup/AdaptableOptionsComponent.js} +6 -6
  196. package/src/View/GridInfo/GridInfoPopup/GridInfoPopup.d.ts +6 -0
  197. package/src/View/GridInfo/GridInfoPopup/GridInfoPopup.js +82 -0
  198. package/src/View/GridInfo/GridInfoPopup/index.d.ts +1 -0
  199. package/src/View/GridInfo/GridInfoPopup/index.js +4 -0
  200. package/src/View/Layout/Wizard/sections/AggregationsSection.js +1 -1
  201. package/src/View/Layout/Wizard/sections/ColumnsSection.js +1 -1
  202. package/src/View/Notes/NotesListing.d.ts +2 -0
  203. package/src/View/{Comments/CommentListing.js → Notes/NotesListing.js} +13 -14
  204. package/src/View/Notes/NotesPopup.d.ts +2 -0
  205. package/src/View/{Comments/CommentPopup.js → Notes/NotesPopup.js} +21 -21
  206. package/src/View/Shortcut/Wizard/ShortcutWizard.js +6 -1
  207. package/src/View/StyledColumn/Wizard/StyledColumnWizard.js +14 -0
  208. package/src/View/Wizard/OnePageAdaptableWizard.d.ts +1 -0
  209. package/src/View/Wizard/OnePageWizards.d.ts +1 -0
  210. package/src/View/Wizard/OnePageWizards.js +2 -2
  211. package/src/agGrid/Adaptable.d.ts +1 -1
  212. package/src/agGrid/Adaptable.js +28 -16
  213. package/src/agGrid/agGridHelper.d.ts +3 -3
  214. package/src/agGrid/agGridHelper.js +58 -30
  215. package/src/agGrid/agGridMenuHelper.d.ts +20 -9
  216. package/src/agGrid/agGridMenuHelper.js +292 -135
  217. package/src/components/ExpressionEditor/EditorInput.d.ts +1 -1
  218. package/src/components/ExpressionEditor/EditorInput.js +15 -6
  219. package/src/components/ExpressionEditor/editorButtonsAggregatedScalar.js +5 -10
  220. package/src/components/ExpressionEditor/editorButtonsCumulativeAggregatedScalar.js +5 -5
  221. package/src/components/ExpressionEditor/editorButtonsQuantileAggregatedScalar.d.ts +2 -0
  222. package/src/components/ExpressionEditor/editorButtonsQuantileAggregatedScalar.js +25 -0
  223. package/src/components/ExpressionEditor/index.d.ts +1 -1
  224. package/src/components/ExpressionEditor/index.js +2 -1
  225. package/src/components/FileDroppable/index.d.ts +2 -1
  226. package/src/components/FileDroppable/index.js +8 -7
  227. package/src/components/icons/import.d.ts +3 -0
  228. package/src/components/icons/import.js +7 -0
  229. package/src/components/icons/index.js +4 -0
  230. package/src/components/icons/note.d.ts +3 -0
  231. package/src/components/icons/note.js +7 -0
  232. package/src/metamodel/adaptable.metamodel.d.ts +243 -61
  233. package/src/metamodel/adaptable.metamodel.js +1 -1
  234. package/src/parser/src/index.d.ts +2 -2
  235. package/src/parser/src/index.js +4 -4
  236. package/src/parser/src/tokenizer.d.ts +1 -1
  237. package/src/parser/src/tokenizer.js +14 -6
  238. package/src/parser/src/types.d.ts +2 -2
  239. package/src/types.d.ts +9 -8
  240. package/version.d.ts +1 -1
  241. package/version.js +1 -1
  242. package/src/AdaptableOptions/CommentsOptions.d.ts +0 -23
  243. package/src/Api/CommentsApi.d.ts +0 -50
  244. package/src/Api/Implementation/CommentsApiImpl.d.ts +0 -20
  245. package/src/Api/Implementation/CommentsApiImpl.js +0 -58
  246. package/src/PredefinedConfig/CommentsState.d.ts +0 -59
  247. package/src/Redux/ActionsReducers/CommentsRedux.d.ts +0 -39
  248. package/src/Redux/ActionsReducers/CommentsRedux.js +0 -92
  249. package/src/View/Comments/CommentListing.d.ts +0 -2
  250. package/src/View/Comments/CommentPopup.d.ts +0 -2
  251. package/src/View/GridInfo/ColumnInfoComponent.d.ts +0 -20
  252. package/src/View/GridInfo/ColumnInfoComponent.js +0 -176
  253. package/src/View/GridInfo/GridInfoPopup.d.ts +0 -16
  254. package/src/View/GridInfo/GridInfoPopup.js +0 -117
  255. package/src/View/GridInfo/GridOptionsComponent.d.ts +0 -16
  256. package/src/View/GridInfo/GridOptionsComponent.js +0 -36
  257. /package/src/AdaptableOptions/{CommentsOptions.js → DataImportOptions.js} +0 -0
  258. /package/src/{Api/CommentsApi.js → AdaptableOptions/NotesOptions.js} +0 -0
  259. /package/src/{PredefinedConfig/CommentsState.js → Api/DataImportApi.js} +0 -0
  260. /package/src/View/GridInfo/{AdaptableObjectsSummary.d.ts → GridInfoPopup/AdaptableObjectsSummary.d.ts} +0 -0
@@ -1,12 +1,12 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.CommentsListing = void 0;
3
+ exports.NotesListing = void 0;
4
4
  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 rebass_1 = require("rebass");
8
8
  const InfiniteTable_1 = require("../../components/InfiniteTable");
9
- const CommentsRedux_1 = require("../../Redux/ActionsReducers/CommentsRedux");
9
+ const NotesRedux_1 = require("../../Redux/ActionsReducers/NotesRedux");
10
10
  const AdaptableContext_1 = require("../AdaptableContext");
11
11
  const AdaptableButton_1 = require("../Components/AdaptableButton");
12
12
  const tableDOMProps = {
@@ -16,11 +16,10 @@ const tableDOMProps = {
16
16
  minHeight: 600,
17
17
  },
18
18
  };
19
- const CommentsListing = () => {
19
+ const NotesListing = () => {
20
20
  const adaptable = (0, AdaptableContext_1.useAdaptable)();
21
21
  const primaryKeyHeader = adaptable.api.columnApi.getFriendlyNameForColumnId(adaptable.api.columnApi.getPrimaryKeyColumn().columnId);
22
- const columnHeader = adaptable.api.columnApi.getFriendlyNameForColumnId(adaptable.api.columnApi.getPrimaryKeyColumn().columnId);
23
- const allComments = (0, react_redux_1.useSelector)((state) => (0, CommentsRedux_1.GetCommentsSelector)(state.Comments));
22
+ const allNotes = (0, react_redux_1.useSelector)((state) => (0, NotesRedux_1.GetNotesSelector)(state.Notes));
24
23
  const columnsMap = React.useMemo(() => {
25
24
  const columns = {
26
25
  primaryKey: {
@@ -33,9 +32,9 @@ const CommentsListing = () => {
33
32
  return adaptable.api.columnApi.getFriendlyNameForColumnId(params.data.ColumnId);
34
33
  },
35
34
  },
36
- comment: {
35
+ note: {
37
36
  field: 'Value',
38
- header: 'Comment',
37
+ header: 'Note',
39
38
  defaultEditable: true,
40
39
  defaultFlex: 3,
41
40
  },
@@ -53,8 +52,8 @@ const CommentsListing = () => {
53
52
  defaultWidth: 50,
54
53
  render: (params) => {
55
54
  return (React.createElement(AdaptableButton_1.AdaptableButtonComponent, { variant: "text", icon: "delete", onClick: () => {
56
- const comment = adaptable.api.commentsApi.getCommentByUuid(params.data.Uuid);
57
- adaptable.api.commentsApi.deleteComment(comment);
55
+ const note = adaptable.api.notesApi.getNoteByUuid(params.data.Uuid);
56
+ adaptable.api.notesApi.deleteNote(note);
58
57
  } }));
59
58
  },
60
59
  },
@@ -62,15 +61,15 @@ const CommentsListing = () => {
62
61
  return columns;
63
62
  }, []);
64
63
  return (React.createElement(rebass_1.Box, { p: 2, style: { height: '100%', width: '100%' } },
65
- React.createElement(InfiniteTable_1.DataSource, { data: allComments, primaryKey: "Uuid", onDataMutations: (params) => {
64
+ React.createElement(InfiniteTable_1.DataSource, { data: allNotes, primaryKey: "Uuid", onDataMutations: (params) => {
66
65
  for (const mutation of params.mutations) {
67
66
  const [uuid, changes] = mutation;
68
67
  for (const change of changes) {
69
68
  if (change.type === 'update') {
70
69
  const data = change.data;
71
- const prevComment = allComments.find((x) => x.Uuid === uuid);
72
- if (prevComment.Value !== data.Value) {
73
- adaptable.api.commentsApi.updateCommentText(data.Value, prevComment);
70
+ const prevNote = allNotes.find((x) => x.Uuid === uuid);
71
+ if (prevNote.Value !== data.Value) {
72
+ adaptable.api.notesApi.updateNoteText(data.Value, prevNote);
74
73
  }
75
74
  }
76
75
  }
@@ -86,4 +85,4 @@ const CommentsListing = () => {
86
85
  alwaysReserveSpaceForSortIcon: false,
87
86
  }, rowHeight: 40, columnHeaderHeight: 65, domProps: tableDOMProps, columns: columnsMap }))));
88
87
  };
89
- exports.CommentsListing = CommentsListing;
88
+ exports.NotesListing = NotesListing;
@@ -0,0 +1,2 @@
1
+ /// <reference types="react" />
2
+ export declare const NotePopup: () => JSX.Element;
@@ -1,21 +1,21 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.CommentPopup = void 0;
3
+ exports.NotePopup = void 0;
4
4
  const tslib_1 = require("tslib");
5
5
  const lodash_1 = require("lodash");
6
6
  const React = tslib_1.__importStar(require("react"));
7
7
  const react_redux_1 = require("react-redux");
8
8
  const rebass_1 = require("rebass");
9
9
  const Textarea_1 = tslib_1.__importDefault(require("../../components/Textarea"));
10
- const CommentsRedux_1 = require("../../Redux/ActionsReducers/CommentsRedux");
10
+ const NotesRedux_1 = require("../../Redux/ActionsReducers/NotesRedux");
11
11
  const SystemRedux_1 = require("../../Redux/ActionsReducers/SystemRedux");
12
12
  const AdaptableContext_1 = require("../AdaptableContext");
13
13
  const CellPopup_1 = require("../Components/CellPopup");
14
- const CommentEditor = ({ comment, onCommentChange, onClose, editMode, isReadonly }) => {
14
+ const NoteEditor = ({ note, onNoteChange, onClose, editMode, isReadonly }) => {
15
15
  const textAreaRef = React.useRef(null);
16
- const [liveValue, setLiveValue] = React.useState(comment || '');
16
+ const [liveValue, setLiveValue] = React.useState(note || '');
17
17
  const throttledOnChange = React.useMemo(() => {
18
- const throttled = (0, lodash_1.throttle)((value) => onCommentChange(value), 300);
18
+ const throttled = (0, lodash_1.throttle)((value) => onNoteChange(value), 300);
19
19
  return (value) => {
20
20
  setLiveValue(value);
21
21
  throttled(value);
@@ -33,33 +33,33 @@ const CommentEditor = ({ comment, onCommentChange, onClose, editMode, isReadonly
33
33
  }
34
34
  }, onChange: (event) => throttledOnChange(event.target.value) }));
35
35
  };
36
- const CommentPopup = () => {
36
+ const NotePopup = () => {
37
37
  var _a;
38
38
  const { api } = (0, AdaptableContext_1.useAdaptable)();
39
39
  const cellPopupRef = React.useRef(null);
40
- const editMode = (0, react_redux_1.useSelector)((state) => (0, SystemRedux_1.SystemCommentsEditModeSelector)(state.System));
41
- const commentGridCell = (0, react_redux_1.useSelector)((state) => (0, SystemRedux_1.SystemCommentsSelector)(state.System));
40
+ const editMode = (0, react_redux_1.useSelector)((state) => (0, SystemRedux_1.SystemNotesEditModeSelector)(state.System));
41
+ const noteGridCell = (0, react_redux_1.useSelector)((state) => (0, SystemRedux_1.SystemNotesSelector)(state.System));
42
42
  const [
43
- // Only handle first comment for now
44
- // Later we can handle multiple comments
45
- comment,] = (0, react_redux_1.useSelector)((state) => {
46
- return commentGridCell ? (0, CommentsRedux_1.GetCommentsSelector)(state.Comments, commentGridCell) : [];
43
+ // Only handle first note for now
44
+ // Later we can handle multiple notes
45
+ note,] = (0, react_redux_1.useSelector)((state) => {
46
+ return noteGridCell ? (0, NotesRedux_1.GetNotesSelector)(state.Notes, noteGridCell) : [];
47
47
  });
48
- const handleCommentChange = (value) => {
49
- api.commentsApi.updateCommentText(value, comment);
48
+ const handleNoteChange = (value) => {
49
+ api.notesApi.updateNoteText(value, note);
50
50
  };
51
- const isReadonly = api.entitlementApi.isModuleReadOnlyEntitlement('Comments');
51
+ const isReadonly = api.entitlementApi.isModuleReadOnlyEntitlement('Notes');
52
52
  const enableEditMode = () => {
53
53
  if (!editMode) {
54
- api.commentsApi.showComment(commentGridCell, true);
54
+ api.notesApi.showNotes(noteGridCell, true);
55
55
  cellPopupRef === null || cellPopupRef === void 0 ? void 0 : cellPopupRef.current.refreshContent();
56
56
  }
57
57
  };
58
- if (!commentGridCell) {
58
+ if (!noteGridCell) {
59
59
  return React.createElement(React.Fragment, null);
60
60
  }
61
- return (React.createElement(CellPopup_1.CellPopup, { ref: cellPopupRef, key: `${commentGridCell.PrimaryKeyValue}-${commentGridCell.ColumnId}`, isOpen: true, primaryKeyValue: commentGridCell.PrimaryKeyValue, columnId: commentGridCell.ColumnId },
62
- React.createElement(rebass_1.Flex, { onClick: () => enableEditMode(), flexDirection: "column", className: "ab-CommentPopup" },
63
- React.createElement(CommentEditor, { isReadonly: isReadonly, editMode: editMode, key: comment === null || comment === void 0 ? void 0 : comment.Uuid, onClose: () => api.commentsApi.hideComment(), comment: (_a = comment === null || comment === void 0 ? void 0 : comment.Value) !== null && _a !== void 0 ? _a : '', onCommentChange: (value) => handleCommentChange(value) }))));
61
+ return (React.createElement(CellPopup_1.CellPopup, { ref: cellPopupRef, key: `${noteGridCell.PrimaryKeyValue}-${noteGridCell.ColumnId}`, isOpen: true, primaryKeyValue: noteGridCell.PrimaryKeyValue, columnId: noteGridCell.ColumnId },
62
+ React.createElement(rebass_1.Flex, { onClick: () => enableEditMode(), flexDirection: "column", className: "ab-NotesPopup" },
63
+ React.createElement(NoteEditor, { isReadonly: isReadonly, editMode: editMode, key: note === null || note === void 0 ? void 0 : note.Uuid, onClose: () => api.notesApi.hideNote(), note: (_a = note === null || note === void 0 ? void 0 : note.Value) !== null && _a !== void 0 ? _a : '', onNoteChange: (value) => handleNoteChange(value) }))));
64
64
  };
65
- exports.CommentPopup = CommentPopup;
65
+ exports.NotePopup = NotePopup;
@@ -17,9 +17,14 @@ const AdaptableContext_1 = require("../../AdaptableContext");
17
17
  const ObjectTagsWizardSection_1 = require("../../Wizard/ObjectTagsWizardSection");
18
18
  const ShortcutWizard = (props) => {
19
19
  const [shortcut, setShortcut] = React.useState(() => {
20
- var _a;
20
+ var _a, _b, _c;
21
21
  const shortcut = props.data ? (0, Helper_1.cloneObject)(props.data) : ObjectFactory_1.default.CreateEmptyShortcut();
22
22
  shortcut.Scope = (_a = shortcut.Scope) !== null && _a !== void 0 ? _a : { All: true };
23
+ if (((_b = props.popupParams) === null || _b === void 0 ? void 0 : _b.column) && ((_c = props.popupParams) === null || _c === void 0 ? void 0 : _c.action) === 'New') {
24
+ shortcut.Scope = {
25
+ ColumnIds: [props.popupParams.column.columnId],
26
+ };
27
+ }
23
28
  return shortcut;
24
29
  });
25
30
  const adaptable = (0, AdaptableContext_1.useAdaptable)();
@@ -23,11 +23,25 @@ const StyledColumnWizard = (props) => {
23
23
  const popupDefaultCurrentSectionName = (_e = (_d = (_c = props === null || props === void 0 ? void 0 : props.popupParams) === null || _c === void 0 ? void 0 : _c.config) === null || _d === void 0 ? void 0 : _d.defaultCurrentSectionName) !== null && _e !== void 0 ? _e : undefined;
24
24
  const defaultCurrentSectionName = (_f = props.defaultCurrentSectionName) !== null && _f !== void 0 ? _f : popupDefaultCurrentSectionName;
25
25
  const [styledColumn, setStyledColumn] = (0, react_1.useState)(() => {
26
+ var _a, _b;
26
27
  if (data) {
27
28
  return (0, Helper_1.cloneObject)(data);
28
29
  }
29
30
  const newData = ObjectFactory_1.default.CreateEmptyStyledColumn();
30
31
  newData.GradientStyle = {};
32
+ if (((_a = props.popupParams) === null || _a === void 0 ? void 0 : _a.column) && ((_b = props.popupParams) === null || _b === void 0 ? void 0 : _b.action) === 'New') {
33
+ newData.ColumnId = props.popupParams.column.columnId;
34
+ if (props.popupParams.column.dataType === 'String') {
35
+ newData.BadgeStyle = {
36
+ Badges: [ObjectFactory_1.default.CreateDefaultStyledColumnBadge()],
37
+ };
38
+ delete newData.GradientStyle;
39
+ }
40
+ else if (props.popupParams.column.dataType.includes('Array')) {
41
+ newData.SparkLineStyle = {};
42
+ delete newData.GradientStyle;
43
+ }
44
+ }
31
45
  return newData;
32
46
  });
33
47
  const dispatch = (0, react_redux_1.useDispatch)();
@@ -39,6 +39,7 @@ export interface OnePageAdaptableWizardProps<ENTITY> {
39
39
  titleContainerStyle?: CSSProperties;
40
40
  closeText?: React.ReactNode;
41
41
  closeTooltip?: string;
42
+ finishText?: React.ReactNode;
42
43
  }
43
44
  export declare const OnePageAdaptableWizard: <ENTITY extends unknown>(props: OnePageAdaptableWizardProps<ENTITY>) => JSX.Element;
44
45
  export declare const OnePageWizardSummary: <ENTITY extends unknown>() => JSX.Element;
@@ -34,5 +34,6 @@ export interface OnePageWizardProps<ENTITY> {
34
34
  titleContainerStyle?: CSSProperties;
35
35
  closeText?: React.ReactNode;
36
36
  closeTooltip?: string;
37
+ finishText?: React.ReactNode;
37
38
  }
38
39
  export declare const OnePageWizard: <ENTITY extends unknown>(props: OnePageWizardProps<ENTITY>) => JSX.Element;
@@ -30,7 +30,7 @@ function useOnePageWizardContext() {
30
30
  }
31
31
  exports.useOnePageWizardContext = useOnePageWizardContext;
32
32
  const OnePageWizard = (props) => {
33
- var _a, _b;
33
+ var _a, _b, _c;
34
34
  let defaultCurrentIndex = 0;
35
35
  if (props.defaultCurrentSectionName) {
36
36
  const candidate = props.sections.findIndex((section) => section !== '-' && (section === null || section === void 0 ? void 0 : section.title) === props.defaultCurrentSectionName);
@@ -188,6 +188,6 @@ const OnePageWizard = (props) => {
188
188
  color: 'var(--ab-color-error)',
189
189
  textAlign: 'end',
190
190
  } }, firstErrorMessage),
191
- React.createElement(SimpleButton_1.default, { tone: "accent", "data-name": "finish", variant: "raised", disabled: canFinish !== true, onClick: () => handleClickFinish(), icon: 'check', accessLevel: 'Full' }, "Finish")))))));
191
+ React.createElement(SimpleButton_1.default, { tone: "accent", "data-name": "finish", variant: "raised", disabled: canFinish !== true, onClick: () => handleClickFinish(), icon: 'check', accessLevel: 'Full' }, (_c = props.finishText) !== null && _c !== void 0 ? _c : 'Finish')))))));
192
192
  };
193
193
  exports.OnePageWizard = OnePageWizard;
@@ -183,7 +183,7 @@ export declare class Adaptable implements IAdaptable {
183
183
  private getAlertRowClass;
184
184
  private getAlertRowStyle;
185
185
  private getFlashingCellStyle;
186
- private getCommentCellClassName;
186
+ private getNoteCellClassName;
187
187
  private getFlashingCellClass;
188
188
  private getCellHighlightStyle;
189
189
  private getRowHighlightStyle;
@@ -509,9 +509,9 @@ class Adaptable {
509
509
  this.logger.error('Failed to Init Modules : ', e);
510
510
  // for now we initialize the grid even if initialising Modules has failed (perhaps revisit this?)
511
511
  this.initInternalGridLogic();
512
- this.api.internalApi.hideLoadingScreen(); // doesnt really help but at least clears the screen
512
+ this.api.userInterfaceApi.hideLoadingScreen(); // doesnt really help but at least clears the screen
513
513
  }).then(async () => {
514
- this.api.internalApi.hideLoadingScreen();
514
+ this.api.userInterfaceApi.hideLoadingScreen();
515
515
  this.isInitialised = true;
516
516
  this._adaptableReady = true;
517
517
  });
@@ -1154,19 +1154,19 @@ class Adaptable {
1154
1154
  ? flashingCell.flashingCellDefinition.DownChangeStyle
1155
1155
  : flashingCell.flashingCellDefinition.NeutralChangeStyle)) !== null && _a !== void 0 ? _a : {});
1156
1156
  }
1157
- getCommentCellClassName(col, params) {
1158
- if (!this.api.internalApi.getModuleService().isModuleAvailable('Comments')) {
1157
+ getNoteCellClassName(col, params) {
1158
+ if (!this.api.internalApi.getModuleService().isModuleAvailable('Notes')) {
1159
1159
  return;
1160
1160
  }
1161
1161
  const cellPosition = {
1162
1162
  PrimaryKeyValue: this.getPrimaryKeyValueFromRowNode(params.node),
1163
1163
  ColumnId: col.columnId,
1164
1164
  };
1165
- const cellComments = this.api.commentsApi.getCellComments(cellPosition);
1166
- if (!(cellComments === null || cellComments === void 0 ? void 0 : cellComments.length)) {
1165
+ const cellNotes = this.api.notesApi.getCellNotes(cellPosition);
1166
+ if (!(cellNotes === null || cellNotes === void 0 ? void 0 : cellNotes.length)) {
1167
1167
  return undefined;
1168
1168
  }
1169
- return 'ab-Cell-Comment';
1169
+ return 'ab-Cell-Note';
1170
1170
  }
1171
1171
  getFlashingCellClass(col, params) {
1172
1172
  var _a, _b, _c;
@@ -1271,22 +1271,32 @@ class Adaptable {
1271
1271
  return isCellReadonly ? readonlyCellStyle.ClassName : null;
1272
1272
  }
1273
1273
  isQuickSearchActive(abColumn, params) {
1274
- var _a;
1274
+ const isPivotColumn = this.api.columnApi.isAutoPivotColumn(
1275
+ // abColumn is the column that is based on, not the actual column
1276
+ params.column.getColId());
1275
1277
  if (abColumn.isExcludedFromQuickSearch) {
1276
1278
  return false;
1277
1279
  }
1278
1280
  if (!params.node) {
1279
1281
  return false;
1280
1282
  }
1281
- if (!this.api.optionsApi.getQuickSearchOptions().runQuickSearchOnRowGroups &&
1283
+ if (!isPivotColumn &&
1284
+ !this.api.optionsApi.getQuickSearchOptions().runQuickSearchOnRowGroups &&
1282
1285
  params.node.group) {
1283
1286
  return false;
1284
1287
  }
1288
+ if (!this.api.optionsApi.getQuickSearchOptions().runQuickSearchOnPivotColumns &&
1289
+ isPivotColumn) {
1290
+ return false;
1291
+ }
1285
1292
  let quickSearchValue = this.api.quickSearchApi.getQuickSearchValue();
1286
1293
  if (StringExtensions_1.StringExtensions.IsNullOrEmpty(quickSearchValue)) {
1287
1294
  return false;
1288
1295
  }
1289
- const displayValue = (_a = this.api.gridApi.getDisplayValueFromRowNode(params.node, abColumn.columnId)) !== null && _a !== void 0 ? _a : '';
1296
+ let displayValue = this.api.gridApi.getDisplayValueFromRowNode(params.node, abColumn.columnId);
1297
+ if (this.api.optionsApi.getQuickSearchOptions().runQuickSearchOnPivotColumns && isPivotColumn) {
1298
+ displayValue = params.value;
1299
+ }
1290
1300
  const ignoreCase = !this.adaptableOptions.quickSearchOptions.runQuickSearchWithCaseSensitivity;
1291
1301
  const v = ignoreCase ? String(displayValue).toLocaleLowerCase() : String(displayValue);
1292
1302
  const i = ignoreCase ? String(quickSearchValue).toLocaleLowerCase() : String(quickSearchValue);
@@ -2707,9 +2717,10 @@ class Adaptable {
2707
2717
  getFirstRowNode() {
2708
2718
  let startIndex = 0;
2709
2719
  let firstRowNode = this.gridOptions.api.getDisplayedRowAtIndex(startIndex);
2710
- while (firstRowNode && firstRowNode.group) {
2711
- startIndex++;
2712
- firstRowNode = this.gridOptions.api.getDisplayedRowAtIndex(startIndex);
2720
+ if (firstRowNode === null || firstRowNode === void 0 ? void 0 : firstRowNode.group) {
2721
+ // all groups may be closed so it is safer to get first leaf node
2722
+ // all groups must have at least one leafe node
2723
+ firstRowNode = firstRowNode.allLeafChildren[0];
2713
2724
  }
2714
2725
  if (!firstRowNode) {
2715
2726
  firstRowNode = this.gridOptions.api.getDisplayedRowAtIndex(0);
@@ -3439,7 +3450,7 @@ class Adaptable {
3439
3450
  const flashingClassName = this.getFlashingCellClass(abColumn, params);
3440
3451
  const styledColumn = this.api.styledColumnApi.getStyledColumnForColumnId(colId);
3441
3452
  const hasStyledColumn = !!styledColumn && !styledColumn.IsSuspended;
3442
- const commentClassName = this.getCommentCellClassName(abColumn, params);
3453
+ const noteClassName = this.getNoteCellClassName(abColumn, params);
3443
3454
  const returnValue = [
3444
3455
  typeof userCellClass === 'function' ? userCellClass(params) : userCellClass,
3445
3456
  !hasStyledColumn && formatColumns.length
@@ -3450,7 +3461,7 @@ class Adaptable {
3450
3461
  readonlyClassName,
3451
3462
  highlightAlertClassName,
3452
3463
  flashingClassName,
3453
- commentClassName,
3464
+ noteClassName,
3454
3465
  ]
3455
3466
  // we flatten the array because some rules ('userCellClass' etc) might return a string[]
3456
3467
  .flat()
@@ -3641,7 +3652,8 @@ class Adaptable {
3641
3652
  resultHeaderName = layoutCustomHeader;
3642
3653
  }
3643
3654
  // required here for the initial layout rendering
3644
- abColumn.friendlyName = resultHeaderName;
3655
+ // Removed by JW, 3 october 2023; i don't think we need it and it overrides stuff unnecessarily
3656
+ // abColumn.friendlyName = resultHeaderName;
3645
3657
  return resultHeaderName;
3646
3658
  });
3647
3659
  const newColumnHeader = (_b = col === null || col === void 0 ? void 0 : col.getColDef()) === null || _b === void 0 ? void 0 : _b.headerName;
@@ -3,9 +3,9 @@ import { IAdaptable } from '../AdaptableInterfaces/IAdaptable';
3
3
  import { AdaptableColumn, AdaptableColumnDataType, AdaptableColumnGroup } from '../PredefinedConfig/Common/AdaptableColumn';
4
4
  import { AdaptableNodeComparerFunction } from '../PredefinedConfig/Common/AdaptableComparerFunction';
5
5
  import { AdaptableColumnType, AdaptableModule } from '../PredefinedConfig/Common/Types';
6
+ import { StyledColumn } from '../PredefinedConfig/StyledColumnState';
6
7
  import { IModule } from '../Strategy/Interface/IModule';
7
8
  import { IPPStyle } from '../Utilities/Interface/IPPStyle';
8
- import { StyledColumn } from '../PredefinedConfig/StyledColumnState';
9
9
  /**
10
10
  * Adaptable AG Grid implementation is getting really big and unwieldy
11
11
  * So lets put some of the more obvious 'Helper' functions here
@@ -34,7 +34,7 @@ export declare class agGridHelper {
34
34
  fireSelectionChangedEvent(): void;
35
35
  private isColumnReadonly;
36
36
  private isColumnSortable;
37
- private isColumnGroupable;
37
+ private isColumnRowGroupable;
38
38
  private isColumnPivotable;
39
39
  private isColumnAggregetable;
40
40
  private getColumnAggregationFunctions;
@@ -45,7 +45,7 @@ export declare class agGridHelper {
45
45
  private isColumnFilterable;
46
46
  private getColumnPinnedPosition;
47
47
  private isColumnFixed;
48
- private isColumnGrouped;
48
+ private isColumnRowGrouped;
49
49
  private isColumnSparkline;
50
50
  private getColumnDataType;
51
51
  private getAbColDefValue;
@@ -7,11 +7,17 @@ const AlertModule_1 = require("../Strategy/AlertModule");
7
7
  const BulkUpdateModule_1 = require("../Strategy/BulkUpdateModule");
8
8
  const CalculatedColumnModule_1 = require("../Strategy/CalculatedColumnModule");
9
9
  const CellSummaryModule_1 = require("../Strategy/CellSummaryModule");
10
+ const ChartingModule_1 = require("../Strategy/ChartingModule");
11
+ const ColumnInfoModule_1 = require("../Strategy/ColumnInfoModule");
12
+ const NotesModule_1 = require("../Strategy/NotesModule");
10
13
  const CustomSortModule_1 = require("../Strategy/CustomSortModule");
11
14
  const DashboardModule_1 = require("../Strategy/DashboardModule");
15
+ const DataChangeHistoryModule_1 = require("../Strategy/DataChangeHistoryModule");
12
16
  const DataSetModule_1 = require("../Strategy/DataSetModule");
13
17
  const ExportModule_1 = require("../Strategy/ExportModule");
18
+ const Fdc3Module_1 = require("../Strategy/Fdc3Module");
14
19
  const FilterModule_1 = require("../Strategy/FilterModule");
20
+ const FlashingCellModule_1 = require("../Strategy/FlashingCellModule");
15
21
  const FormatColumnModule_1 = require("../Strategy/FormatColumnModule");
16
22
  const FreeTextColumnModule_1 = require("../Strategy/FreeTextColumnModule");
17
23
  const GridInfoModule_1 = require("../Strategy/GridInfoModule");
@@ -20,31 +26,27 @@ const PlusMinusModule_1 = require("../Strategy/PlusMinusModule");
20
26
  const QueryModule_1 = require("../Strategy/QueryModule");
21
27
  const QuickSearchModule_1 = require("../Strategy/QuickSearchModule");
22
28
  const ScheduleModule_1 = require("../Strategy/ScheduleModule");
29
+ const SettingsPanelModule_1 = require("../Strategy/SettingsPanelModule");
23
30
  const ShortcutModule_1 = require("../Strategy/ShortcutModule");
24
31
  const SmartEditModule_1 = require("../Strategy/SmartEditModule");
25
32
  const StateManagementModule_1 = require("../Strategy/StateManagementModule");
33
+ const StatusBarModule_1 = require("../Strategy/StatusBarModule");
34
+ const StyledColumnModule_1 = require("../Strategy/StyledColumnModule");
26
35
  const SystemStatusModule_1 = require("../Strategy/SystemStatusModule");
27
36
  const TeamSharingModule_1 = require("../Strategy/TeamSharingModule");
28
37
  const ThemeModule_1 = require("../Strategy/ThemeModule");
29
38
  const ToolPanelModule_1 = require("../Strategy/ToolPanelModule");
39
+ const GeneralConstants = tslib_1.__importStar(require("../Utilities/Constants/GeneralConstants"));
40
+ const GeneralConstants_1 = require("../Utilities/Constants/GeneralConstants");
30
41
  const ModuleConstants = tslib_1.__importStar(require("../Utilities/Constants/ModuleConstants"));
31
42
  const ArrayExtensions_1 = require("../Utilities/Extensions/ArrayExtensions");
32
43
  const StringExtensions_1 = require("../Utilities/Extensions/StringExtensions");
33
- const CheckboxRenderer_1 = require("./CheckboxRenderer");
34
- const DataChangeHistoryModule_1 = require("../Strategy/DataChangeHistoryModule");
35
- const FlashingCellModule_1 = require("../Strategy/FlashingCellModule");
36
- const SettingsPanelModule_1 = require("../Strategy/SettingsPanelModule");
37
- const ChartingModule_1 = require("../Strategy/ChartingModule");
38
- const CommentsModule_1 = require("../Strategy/CommentsModule");
39
- const PercentBarRenderer_1 = require("./PercentBarRenderer");
40
- const BadgeRenderer_1 = require("./BadgeRenderer");
41
44
  const Helper_1 = require("../Utilities/Helpers/Helper");
42
- const StatusBarModule_1 = require("../Strategy/StatusBarModule");
43
- const GeneralConstants = tslib_1.__importStar(require("../Utilities/Constants/GeneralConstants"));
44
- const GeneralConstants_1 = require("../Utilities/Constants/GeneralConstants");
45
45
  const UIHelper_1 = tslib_1.__importDefault(require("../View/UIHelper"));
46
- const StyledColumnModule_1 = require("../Strategy/StyledColumnModule");
47
- const Fdc3Module_1 = require("../Strategy/Fdc3Module");
46
+ const BadgeRenderer_1 = require("./BadgeRenderer");
47
+ const CheckboxRenderer_1 = require("./CheckboxRenderer");
48
+ const PercentBarRenderer_1 = require("./PercentBarRenderer");
49
+ const DataImportModule_1 = require("../Strategy/DataImportModule");
48
50
  const tinycolor = require('tinycolor2');
49
51
  /**
50
52
  * Adaptable AG Grid implementation is getting really big and unwieldy
@@ -84,6 +86,7 @@ class agGridHelper {
84
86
  modules.set(ModuleConstants.CellSummaryModuleId, new CellSummaryModule_1.CellSummaryModule(api));
85
87
  modules.set(ModuleConstants.CustomSortModuleId, new CustomSortModule_1.CustomSortModule(api));
86
88
  modules.set(ModuleConstants.DataChangeHistoryModuleId, new DataChangeHistoryModule_1.DataChangeHistoryModule(api));
89
+ modules.set(ModuleConstants.DataImportModuleId, new DataImportModule_1.DataImportModule(api));
87
90
  modules.set(ModuleConstants.DataSetModuleId, new DataSetModule_1.DataSetModule(api));
88
91
  modules.set(ModuleConstants.ExportModuleId, new ExportModule_1.ExportModule(api));
89
92
  modules.set(ModuleConstants.FilterModuleId, new FilterModule_1.FilterModule(api));
@@ -102,10 +105,11 @@ class agGridHelper {
102
105
  modules.set(ModuleConstants.SystemStatusModuleId, new SystemStatusModule_1.SystemStatusModule(api));
103
106
  modules.set(ModuleConstants.ThemeModuleId, new ThemeModule_1.ThemeModule(api));
104
107
  modules.set(ModuleConstants.GridInfoModuleId, new GridInfoModule_1.GridInfoModule(api));
108
+ modules.set(ModuleConstants.ColumnInfoModuleId, new ColumnInfoModule_1.ColumnInfoModule(api));
105
109
  modules.set(ModuleConstants.SettingsPanelModuleId, new SettingsPanelModule_1.SettingsPanelModule(api));
106
110
  modules.set(ModuleConstants.StatusBarModuleId, new StatusBarModule_1.StatusBarModule(api));
107
111
  modules.set(ModuleConstants.ChartingModuleId, new ChartingModule_1.ChartingModule(api));
108
- modules.set(ModuleConstants.CommentsModuleId, new CommentsModule_1.CommentsModule(api));
112
+ modules.set(ModuleConstants.NotesModuleId, new NotesModule_1.NotesModule(api));
109
113
  modules.set(ModuleConstants.StyledColumnModuleId, new StyledColumnModule_1.StyledColumnModule(api));
110
114
  modules.set(ModuleConstants.Fdc3ModuleId, new Fdc3Module_1.Fdc3Module(api));
111
115
  return modules;
@@ -176,23 +180,47 @@ class agGridHelper {
176
180
  createAdaptableColumnFromAgGridColumn(agGridColumn, colsToGroups) {
177
181
  const colId = agGridColumn.getColId();
178
182
  const colDef = agGridColumn.getColDef();
183
+ const ColumnId = colId;
184
+ const pkColumn = this.adaptable.adaptableOptions.primaryKey;
185
+ const ColumnGroup = colsToGroups === null || colsToGroups === void 0 ? void 0 : colsToGroups[ColumnId];
186
+ const isRealColumnGroup = ColumnGroup
187
+ ? ColumnGroup.columnGroupId !== ColumnGroup.friendlyName
188
+ : false;
179
189
  const isActionRowButtonColumn = this.adaptable.api.columnApi.internalApi.isActionRowButtonColumn(colId);
180
190
  const isFdc3MainActionColumn = this.adaptable.api.fdc3Api.internalApi.isFdc3MainActionColumn(colId);
181
- const columnFriendlyName = this.adaptable.adaptableOptions.columnOptions.columnFriendlyName;
182
- const customFriendlyName = typeof columnFriendlyName === 'function'
183
- ? columnFriendlyName({ colId: colId, agColumn: agGridColumn })
184
- : null;
185
- const friendlyName = customFriendlyName !== null && customFriendlyName !== void 0 ? customFriendlyName : (isActionRowButtonColumn
186
- ? GeneralConstants_1.ADAPTABLE_ROW_ACTION_BUTTONS_FRIENDLY_NAME
187
- : isFdc3MainActionColumn
188
- ? GeneralConstants_1.ADAPTABLE_FDC3_ACTION_COLUMN_FRIENDLY_NAME
189
- : this.gridOptions.columnApi.getDisplayNameForColumn(agGridColumn, 'header'));
191
+ let friendlyName;
192
+ const colExists = this.adaptable.api.columnApi.doesColumnExist(ColumnId);
193
+ if (colExists) {
194
+ friendlyName = this.adaptable.api.columnApi.getFriendlyNameForColumnId(ColumnId);
195
+ }
196
+ else {
197
+ const displayName = this.gridOptions.columnApi.getDisplayNameForColumn(agGridColumn, 'header');
198
+ const columnFriendlyName = this.adaptable.adaptableOptions.columnOptions.columnFriendlyName;
199
+ const customFriendlyName = typeof columnFriendlyName === 'function'
200
+ ? columnFriendlyName({
201
+ colId: colId,
202
+ agColumn: agGridColumn,
203
+ columnGroup: isRealColumnGroup ? ColumnGroup : undefined,
204
+ displayName: displayName,
205
+ })
206
+ : null;
207
+ friendlyName =
208
+ customFriendlyName !== null && customFriendlyName !== void 0 ? customFriendlyName : (isActionRowButtonColumn
209
+ ? GeneralConstants_1.ADAPTABLE_ROW_ACTION_BUTTONS_FRIENDLY_NAME
210
+ : isFdc3MainActionColumn
211
+ ? GeneralConstants_1.ADAPTABLE_FDC3_ACTION_COLUMN_FRIENDLY_NAME
212
+ : displayName);
213
+ // Add Column Group;s friendlyname to the Column Friendly Name if its in a legitimate Column Group
214
+ if (this.adaptable.adaptableOptions.columnOptions.addColumnGroupToColumnFriendlyName &&
215
+ colDef.columnGroupShow &&
216
+ ColumnGroup &&
217
+ ColumnGroup.columnGroupId !== ColumnGroup.friendlyName) {
218
+ friendlyName += ' [' + ColumnGroup.friendlyName + ']';
219
+ }
220
+ }
190
221
  if (!this.initialAgGridColDefs[colId]) {
191
222
  this.initialAgGridColDefs[colId] = Object.assign({}, agGridColumn.getUserProvidedColDef());
192
223
  }
193
- const ColumnId = colId;
194
- const pkColumn = this.adaptable.adaptableOptions.primaryKey;
195
- let ColumnGroup = colsToGroups === null || colsToGroups === void 0 ? void 0 : colsToGroups[ColumnId];
196
224
  const dataType = this.getColumnDataType(agGridColumn, false);
197
225
  const abColumn = {
198
226
  Uuid: (0, Uuid_1.createUuid)(),
@@ -206,7 +234,7 @@ class agGridHelper {
206
234
  columnGroup: ColumnGroup,
207
235
  sortable: this.isColumnSortable(colDef),
208
236
  filterable: this.isColumnFilterable(colDef),
209
- groupable: this.isColumnGroupable(colDef),
237
+ groupable: this.isColumnRowGroupable(colDef),
210
238
  pivotable: this.isColumnPivotable(colDef),
211
239
  aggregatable: this.isColumnAggregetable(colDef),
212
240
  availableAggregationFunctions: null,
@@ -215,7 +243,7 @@ class agGridHelper {
215
243
  hideable: this.isColumnHideable(colDef),
216
244
  queryable: this.isColumnQueryable(colDef, ColumnId, friendlyName, dataType),
217
245
  exportable: this.isColumnExportable(colDef, ColumnId, friendlyName, dataType),
218
- isGrouped: this.isColumnGrouped(colDef),
246
+ isGrouped: this.isColumnRowGrouped(colDef),
219
247
  isFixed: this.isColumnFixed(colDef),
220
248
  pinned: this.getColumnPinnedPosition(colDef),
221
249
  isExcludedFromQuickSearch: false,
@@ -297,7 +325,7 @@ class agGridHelper {
297
325
  }
298
326
  return false;
299
327
  }
300
- isColumnGroupable(colDef) {
328
+ isColumnRowGroupable(colDef) {
301
329
  if (colDef && colDef.enableRowGroup != null) {
302
330
  return colDef.enableRowGroup;
303
331
  }
@@ -391,7 +419,7 @@ class agGridHelper {
391
419
  }
392
420
  return false;
393
421
  }
394
- isColumnGrouped(colDef) {
422
+ isColumnRowGrouped(colDef) {
395
423
  if (!colDef) {
396
424
  return false;
397
425
  }
@@ -1,4 +1,4 @@
1
- import { GridOptions, MenuItemDef, GetContextMenuItemsParams, GetMainMenuItems, GetMainMenuItemsParams, GetContextMenuItems, Column } from '@ag-grid-community/core';
1
+ import { Column, GetContextMenuItems, GetContextMenuItemsParams, GetMainMenuItems, GetMainMenuItemsParams, GridOptions, MenuItemDef } from '@ag-grid-community/core';
2
2
  import { AdaptableMenuItem, ColumnMenuContext, ContextMenuContext, UserMenuItem } from '../PredefinedConfig/Common/Menu';
3
3
  import { AdaptableColumn } from '../PredefinedConfig/Common/AdaptableColumn';
4
4
  import { IAdaptable } from '../AdaptableInterfaces/IAdaptable';
@@ -7,22 +7,25 @@ export declare class agGridMenuHelper {
7
7
  private gridOptions;
8
8
  constructor(adaptable: IAdaptable, gridOptions: GridOptions);
9
9
  destroy(): void;
10
- buildColumnMenu(params: GetMainMenuItemsParams, originalgetMainMenuItems: GetMainMenuItems): (string | MenuItemDef)[];
11
- buildContextMenu(params: GetContextMenuItemsParams, originalgetContextMenuItems: GetContextMenuItems): (string | MenuItemDef)[];
12
- createRemoveGroupsMenuItem(x: AdaptableMenuItem): MenuItemDef;
13
- createAgGridMenuDefFromAdaptableMenu(adaptableMenuItem: AdaptableMenuItem): MenuItemDef;
10
+ buildColumnMenu(params: GetMainMenuItemsParams, originalGetMainMenuItems: GetMainMenuItems): (string | MenuItemDef)[];
11
+ buildContextMenu(params: GetContextMenuItemsParams, originalGetContextMenuItems: GetContextMenuItems): (string | MenuItemDef)[];
12
+ private createAdaptableColumnMenuItems;
13
+ private mapCustomMenuItemToAgGridMenuDefinition;
14
+ private mapAdaptableMenuItemToAgGridMenuDefinition;
15
+ private mapUserMenuItemToAgGridMenuDefinition;
16
+ private logMenuDeprecation;
17
+ private createAgGridMenuDefFromAdaptableMenu;
14
18
  createAgGridColumnMenuDefFromUserMenu(menuItem: UserMenuItem<ColumnMenuContext>, menuContext: ColumnMenuContext): MenuItemDef;
15
19
  createAgGridContextMenuDefFromUserMenu(menuItem: UserMenuItem<ContextMenuContext>, menuContext: ContextMenuContext): MenuItemDef;
16
20
  private mapAdaptableIconToAgGridIcon;
17
21
  createAdaptableColumnMenuItemFromUserMenu(menuItem: UserMenuItem<ColumnMenuContext>, menuContext: ColumnMenuContext): AdaptableMenuItem;
18
22
  createAgGridColumnMenuItems(originalgetMainMenuItems: GetMainMenuItems, params: GetMainMenuItemsParams): (string | MenuItemDef)[] | undefined;
19
- createGroupedColumnMenuItem(): MenuItemDef | undefined;
20
- createAdaptableColumnMenuItems(adaptableColumn: AdaptableColumn, menuContext: ColumnMenuContext): MenuItemDef[];
23
+ private createAdaptableColumnMenuItems_DEPRECATED;
21
24
  createUserColumnMenuItems(menuContext: ColumnMenuContext): MenuItemDef[];
22
25
  createColumnMenuContextObject(adaptableColumn: AdaptableColumn, agGridColumn: Column): ColumnMenuContext;
23
26
  createContextMenuContextObject(params: GetContextMenuItemsParams, adaptableColumn: AdaptableColumn): ContextMenuContext;
24
- createAgGridContextMenuItems(originalgetContextMenuItems: GetContextMenuItems, params: GetContextMenuItemsParams): (string | MenuItemDef)[] | undefined;
25
- createAdaptableContextMenuItems(menuContext: ContextMenuContext): AdaptableMenuItem[];
27
+ private createAgGridContextMenuItems;
28
+ private createAdaptableContextMenuItems;
26
29
  createAgGridAdaptableContextMenuItems(adaptableMenuItems: AdaptableMenuItem[], menuContext: ContextMenuContext): MenuItemDef[];
27
30
  createAgGridUserContextMenuItems(userContextMenuItems: UserMenuItem<ContextMenuContext>[], menuContext: ContextMenuContext): MenuItemDef[];
28
31
  private getAdaptableMenuItemsColumnHeader;
@@ -30,4 +33,12 @@ export declare class agGridMenuHelper {
30
33
  private getLabelFromUserContextMenuItem;
31
34
  private getUserMenuItemsColumnHeader;
32
35
  buildStandaloneColumnHeader(adaptableColumn: AdaptableColumn): AdaptableMenuItem[];
36
+ /**
37
+ * !!! This should be deleted once MenuOptions loses all the deprecated options
38
+ */
39
+ private buildContextMenuDeprecated;
40
+ /**
41
+ * !!! This should be deleted once MenuOptions loses all the deprecated options
42
+ */
43
+ private buildColumnMenuDeprecated;
33
44
  }