@adaptabletools/adaptable-cjs 17.0.0-canary.3 → 18.0.0-canary.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (288) hide show
  1. package/base.css +1264 -1202
  2. package/base.css.map +1 -1
  3. package/index.css +2099 -22
  4. package/index.css.map +1 -1
  5. package/package.json +5 -4
  6. package/src/AdaptableInterfaces/IAdaptable.d.ts +3 -0
  7. package/src/AdaptableOptions/AdaptableOptions.d.ts +5 -0
  8. package/src/AdaptableOptions/AlertOptions.d.ts +7 -7
  9. package/src/AdaptableOptions/ColumnFilterOptions.d.ts +9 -9
  10. package/src/AdaptableOptions/CommentsOptions.d.ts +28 -0
  11. package/src/AdaptableOptions/EditOptions.d.ts +6 -6
  12. package/src/AdaptableOptions/GridFilterOptions.d.ts +13 -8
  13. package/src/AdaptableOptions/GroupingOptions.d.ts +9 -9
  14. package/src/AdaptableOptions/InteropioPluginOptions.d.ts +10 -0
  15. package/src/AdaptableOptions/MenuOptions.d.ts +18 -4
  16. package/src/AdaptableOptions/MenuOptions.js +14 -6
  17. package/src/AdaptableOptions/NotesOptions.d.ts +2 -9
  18. package/src/Api/AdaptableApi.d.ts +6 -1
  19. package/src/Api/CommentApi.d.ts +58 -0
  20. package/src/Api/EventApi.d.ts +48 -12
  21. package/src/Api/Events/CalculatedColumnChanged.d.ts +19 -0
  22. package/src/Api/Events/CellSelectionChanged.d.ts +11 -0
  23. package/src/Api/Events/CommentsChangedInfo.d.ts +5 -0
  24. package/src/Api/Events/LiveDataChanged.d.ts +3 -3
  25. package/src/Api/Events/RowSelectionChanged.d.ts +11 -0
  26. package/src/Api/GridApi.d.ts +0 -6
  27. package/src/Api/GridFilterApi.d.ts +2 -2
  28. package/src/Api/Implementation/AdaptableApiImpl.d.ts +6 -6
  29. package/src/Api/Implementation/AdaptableApiImpl.js +2 -0
  30. package/src/Api/Implementation/CommentsApiImpl.d.ts +15 -0
  31. package/src/Api/Implementation/CommentsApiImpl.js +46 -0
  32. package/src/Api/Implementation/ExpressionApiImpl.d.ts +1 -1
  33. package/src/Api/Implementation/ExpressionApiImpl.js +3 -4
  34. package/src/Api/Implementation/GridApiImpl.d.ts +0 -1
  35. package/src/Api/Implementation/GridApiImpl.js +0 -4
  36. package/src/Api/Implementation/GridFilterApiImpl.d.ts +1 -1
  37. package/src/Api/Implementation/GridFilterApiImpl.js +1 -1
  38. package/src/Api/Implementation/NotesApiImpl.d.ts +2 -6
  39. package/src/Api/Implementation/NotesApiImpl.js +1 -15
  40. package/src/Api/Implementation/OptionsApiImpl.d.ts +2 -0
  41. package/src/Api/Implementation/OptionsApiImpl.js +3 -0
  42. package/src/Api/Implementation/PluginsApiImpl.d.ts +2 -6
  43. package/src/Api/Implementation/PluginsApiImpl.js +3 -15
  44. package/src/Api/Implementation/ScheduleApiImpl.d.ts +1 -12
  45. package/src/Api/Implementation/ScheduleApiImpl.js +0 -36
  46. package/src/Api/Implementation/ThemeApiImpl.d.ts +1 -0
  47. package/src/Api/Implementation/ThemeApiImpl.js +3 -0
  48. package/src/Api/Internal/ActionRowInternalApi.js +1 -1
  49. package/src/Api/Internal/AdaptableInternalApi.d.ts +2 -0
  50. package/src/Api/Internal/AdaptableInternalApi.js +3 -0
  51. package/src/Api/Internal/CalculatedColumnInternalApi.d.ts +2 -0
  52. package/src/Api/Internal/CalculatedColumnInternalApi.js +16 -0
  53. package/src/Api/Internal/DashboardInternalApi.d.ts +1 -0
  54. package/src/Api/Internal/DashboardInternalApi.js +5 -0
  55. package/src/Api/Internal/DataImportInternalApi.js +2 -0
  56. package/src/Api/Internal/DataSetInternalApi.js +2 -1
  57. package/src/Api/Internal/GridInternalApi.d.ts +3 -1
  58. package/src/Api/Internal/GridInternalApi.js +32 -9
  59. package/src/Api/Internal/LayoutInternalApi.d.ts +2 -2
  60. package/src/Api/Internal/LayoutInternalApi.js +11 -11
  61. package/src/Api/InteropioPluginApi.d.ts +10 -0
  62. package/src/Api/{NotesAPi.d.ts → NotesApi.d.ts} +19 -21
  63. package/src/Api/OptionsApi.d.ts +5 -0
  64. package/src/Api/PluginsApi.d.ts +3 -13
  65. package/src/Api/ScheduleApi.d.ts +1 -48
  66. package/src/Api/ThemeApi.d.ts +5 -0
  67. package/src/PredefinedConfig/AdaptableState.d.ts +4 -2
  68. package/src/PredefinedConfig/CellAddress.d.ts +13 -0
  69. package/src/PredefinedConfig/CellAddress.js +5 -0
  70. package/src/PredefinedConfig/CommentState.d.ts +48 -0
  71. package/src/PredefinedConfig/CommentState.js +2 -0
  72. package/src/PredefinedConfig/Common/AdaptableIcon.d.ts +1 -1
  73. package/src/PredefinedConfig/Common/AdaptablePredicate.js +2 -1
  74. package/src/PredefinedConfig/Common/Enums.d.ts +0 -1
  75. package/src/PredefinedConfig/Common/Enums.js +0 -1
  76. package/src/PredefinedConfig/Common/Schedule.d.ts +1 -1
  77. package/src/PredefinedConfig/Common/Types.d.ts +5 -5
  78. package/src/PredefinedConfig/Common/Types.js +0 -2
  79. package/src/PredefinedConfig/NotesState.d.ts +0 -13
  80. package/src/PredefinedConfig/PredefinedConfig.d.ts +3 -0
  81. package/src/PredefinedConfig/ScheduleState.d.ts +0 -5
  82. package/src/PredefinedConfig/SystemState.d.ts +5 -6
  83. package/src/PredefinedConfig/ThemeState.d.ts +1 -1
  84. package/src/Redux/ActionsReducers/CommentsRedux.d.ts +79 -0
  85. package/src/Redux/ActionsReducers/CommentsRedux.js +189 -0
  86. package/src/Redux/ActionsReducers/NotesRedux.js +1 -2
  87. package/src/Redux/ActionsReducers/PluginsRedux.d.ts +0 -48
  88. package/src/Redux/ActionsReducers/PluginsRedux.js +1 -49
  89. package/src/Redux/ActionsReducers/PlusMinusRedux.d.ts +16 -0
  90. package/src/Redux/ActionsReducers/PlusMinusRedux.js +47 -1
  91. package/src/Redux/ActionsReducers/ScheduleRedux.d.ts +0 -53
  92. package/src/Redux/ActionsReducers/ScheduleRedux.js +2 -90
  93. package/src/Redux/ActionsReducers/SystemRedux.d.ts +23 -12
  94. package/src/Redux/ActionsReducers/SystemRedux.js +55 -23
  95. package/src/Redux/Store/AdaptableStore.d.ts +2 -2
  96. package/src/Redux/Store/AdaptableStore.js +107 -46
  97. package/src/Strategy/CommentsModule.d.ts +16 -0
  98. package/src/Strategy/CommentsModule.js +82 -0
  99. package/src/Strategy/LayoutModule.d.ts +12 -4
  100. package/src/Strategy/LayoutModule.js +19 -14
  101. package/src/Strategy/NotesModule.d.ts +0 -13
  102. package/src/Strategy/NotesModule.js +9 -88
  103. package/src/Strategy/PlusMinusModule.js +2 -0
  104. package/src/Strategy/ScheduleModule.js +0 -23
  105. package/src/Strategy/Utilities/Export/getExportRowsViewItems.d.ts +2 -1
  106. package/src/Strategy/Utilities/Export/getExportRowsViewItems.js +14 -5
  107. package/src/Strategy/Utilities/getExpressionViewItems.js +8 -2
  108. package/src/Utilities/Constants/ConfigConstants.d.ts +1 -0
  109. package/src/Utilities/Constants/ConfigConstants.js +2 -1
  110. package/src/Utilities/Constants/GeneralConstants.d.ts +1 -0
  111. package/src/Utilities/Constants/GeneralConstants.js +8 -3
  112. package/src/Utilities/Constants/ModuleConstants.d.ts +3 -3
  113. package/src/Utilities/Constants/ModuleConstants.js +4 -4
  114. package/src/Utilities/Defaults/DefaultAdaptableOptions.js +3 -3
  115. package/src/Utilities/Defaults/DefaultSettingsPanel.js +1 -0
  116. package/src/Utilities/ExpressionFunctions/aggregatedBooleanExpressionFunctions.js +7 -1
  117. package/src/Utilities/ExpressionFunctions/booleanExpressionFunctions.js +6 -0
  118. package/src/Utilities/ExpressionFunctions/dateUtils.d.ts +1 -0
  119. package/src/Utilities/ExpressionFunctions/dateUtils.js +18 -1
  120. package/src/Utilities/ExpressionFunctions/scalarExpressionFunctions.d.ts +1 -1
  121. package/src/Utilities/ExpressionFunctions/scalarExpressionFunctions.js +12 -12
  122. package/src/Utilities/Extensions/ArrayExtensions.d.ts +2 -0
  123. package/src/Utilities/Extensions/ArrayExtensions.js +8 -1
  124. package/src/Utilities/Helpers/PreviewHelper.js +5 -2
  125. package/src/Utilities/ObjectFactory.d.ts +19 -22
  126. package/src/Utilities/ObjectFactory.js +51 -60
  127. package/src/Utilities/Services/CellPopupService.d.ts +23 -0
  128. package/src/Utilities/Services/CellPopupService.js +138 -0
  129. package/src/Utilities/Services/Interface/IReportService.d.ts +1 -1
  130. package/src/Utilities/Services/Interface/IThemeService.d.ts +8 -0
  131. package/src/Utilities/Services/ModuleService.js +1 -3
  132. package/src/Utilities/Services/ReportService.d.ts +1 -1
  133. package/src/Utilities/Services/ThemeService.d.ts +3 -0
  134. package/src/Utilities/Services/ThemeService.js +33 -1
  135. package/src/Utilities/Services/ValidationService.js +11 -11
  136. package/src/View/AdaptableView.js +3 -3
  137. package/src/View/AdaptableViewFactory.js +4 -2
  138. package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/ColumnsList.js +2 -2
  139. package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/EntitlementsForm.js +1 -1
  140. package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/FinanceForm/FinanceForm.js +1 -1
  141. package/src/View/Alert/Wizard/AlertButtonsEditor.js +2 -2
  142. package/src/View/Alert/Wizard/AlertRulesWizardSection.d.ts +1 -1
  143. package/src/View/Alert/Wizard/AlertRulesWizardSection.js +4 -3
  144. package/src/View/CalculatedColumn/Wizard/CalculatedColumnExpressionWizardSection.js +1 -1
  145. package/src/View/CalculatedColumn/Wizard/CalculatedColumnWizard.js +1 -1
  146. package/src/View/Charting/useChartingElements.js +8 -3
  147. package/src/View/Comments/CommentsEditor.d.ts +7 -0
  148. package/src/View/Comments/CommentsEditor.js +100 -0
  149. package/src/View/Comments/CommentsPopup.d.ts +2 -0
  150. package/src/View/Comments/CommentsPopup.js +87 -0
  151. package/src/View/Components/AdaptableObjectList/AdaptableObjectList.js +2 -1
  152. package/src/View/Components/CellPopup/index.js +1 -1
  153. package/src/View/Components/FilterForm/FilterForm.js +8 -2
  154. package/src/View/Components/FilterForm/ListBoxFilterForm.js +1 -3
  155. package/src/View/Components/FilterForm/QuickFilterForm.js +5 -4
  156. package/src/View/Components/FilterForm/QuickFilterValues.d.ts +2 -2
  157. package/src/View/Components/FilterForm/QuickFilterValues.js +4 -3
  158. package/src/View/Components/Popups/GridCellPopup/GridCellPopup.d.ts +5 -0
  159. package/src/View/Components/Popups/GridCellPopup/GridCellPopup.js +67 -0
  160. package/src/View/Components/Popups/GridCellPopup/index.d.ts +1 -0
  161. package/src/View/Components/Popups/GridCellPopup/index.js +5 -0
  162. package/src/View/Components/Selectors/ColumnSelector.d.ts +1 -0
  163. package/src/View/Components/Selectors/ColumnSelector.js +2 -1
  164. package/src/View/Components/Selectors/PermittedValuesSelector.d.ts +5 -4
  165. package/src/View/Components/Selectors/PermittedValuesSelector.js +25 -3
  166. package/src/View/Components/ToolPanel/ToolPanelWrapper.js +1 -4
  167. package/src/View/Dashboard/ModuleToolbarWrapper.js +1 -1
  168. package/src/View/Dashboard/PinnedDashboard.js +2 -1
  169. package/src/View/DataImport/DataImportWizard/sections/DataPreview.js +2 -2
  170. package/src/View/Export/Wizard/ReportRowsWizardSection.js +3 -1
  171. package/src/View/GridFilter/GridFilterExpressionEditor.js +1 -1
  172. package/src/View/GridFilter/GridFilterPopup.js +10 -8
  173. package/src/View/GridFilter/GridFilterViewPanel.js +14 -11
  174. package/src/View/GridFilter/NamedQuerySelector.js +1 -1
  175. package/src/View/GridFilter/useGridFilterExpressionEditor.d.ts +3 -0
  176. package/src/View/GridFilter/useGridFilterExpressionEditor.js +17 -6
  177. package/src/View/GridFilter/useGridFilterOptionsForExpressionEditor.js +5 -23
  178. package/src/View/GridInfo/GridInfoPopup/GridInfoPopup.js +3 -2
  179. package/src/View/Layout/Wizard/getGridFilterPreview.d.ts +6 -0
  180. package/src/View/Layout/Wizard/getGridFilterPreview.js +16 -0
  181. package/src/View/Layout/Wizard/sections/FilterSection.js +1 -1
  182. package/src/View/Layout/Wizard/sections/GridFilterSection.js +4 -4
  183. package/src/View/NamedQuery/EditCurrentQueryButton.js +1 -1
  184. package/src/View/NamedQuery/Wizard/NamedQueryExpressionWizardSection.js +1 -1
  185. package/src/View/Notes/NoteEditor.d.ts +8 -0
  186. package/src/View/Notes/NoteEditor.js +33 -0
  187. package/src/View/Notes/NotesPopup.d.ts +2 -2
  188. package/src/View/Notes/NotesPopup.js +78 -55
  189. package/src/View/PlusMinus/MovePlusMinus.d.ts +7 -0
  190. package/src/View/PlusMinus/MovePlusMinus.js +27 -0
  191. package/src/View/Schedule/Wizard/ScheduleSettingsWizard/ScheduleSettingsSummary.js +0 -9
  192. package/src/View/Schedule/Wizard/ScheduleSettingsWizard/ScheduleSettingsWizard.js +0 -4
  193. package/src/View/Schedule/Wizard/ScheduleSettingsWizard/isSettingsValid.js +2 -8
  194. package/src/View/Schedule/Wizard/ScheduleWizard.js +0 -8
  195. package/src/View/StyledColumn/Wizard/StyledColumnBadgeSection.js +3 -1
  196. package/src/View/StyledColumn/Wizard/StyledColumnWizard.js +1 -2
  197. package/src/agGrid/Adaptable.d.ts +7 -0
  198. package/src/agGrid/Adaptable.js +49 -35
  199. package/src/agGrid/BadgeRenderer.js +9 -5
  200. package/src/agGrid/agGridHelper.d.ts +2 -1
  201. package/src/agGrid/agGridHelper.js +15 -3
  202. package/src/agGrid/agGridMenuHelper.d.ts +2 -0
  203. package/src/agGrid/agGridMenuHelper.js +73 -25
  204. package/src/components/Datepicker/index.js +4 -4
  205. package/src/components/ExpressionEditor/ExpressionPreview.d.ts +7 -0
  206. package/src/components/ExpressionEditor/ExpressionPreview.js +25 -0
  207. package/src/components/ExpressionEditor/QueryBuilder/QueryBuilder.js +2 -2
  208. package/src/components/ExpressionEditor/QueryBuilder/QueryBuilderInputs.d.ts +6 -0
  209. package/src/components/ExpressionEditor/QueryBuilder/QueryBuilderInputs.js +40 -11
  210. package/src/components/ExpressionEditor/QueryBuilder/QueryPredicateBuilder.js +14 -2
  211. package/src/components/ExpressionEditor/QueryBuilder/booleanExpressions.js +1 -0
  212. package/src/components/ExpressionEditor/QueryBuilder/utils.js +1 -1
  213. package/src/components/ExpressionEditor/index.js +4 -7
  214. package/src/components/InputGroup/InputGroup.d.ts +7 -0
  215. package/src/components/InputGroup/InputGroup.js +12 -0
  216. package/src/components/InputGroup/index.d.ts +1 -0
  217. package/src/components/InputGroup/index.js +4 -0
  218. package/src/components/OverlayTrigger/index.js +7 -2
  219. package/src/components/Select/Select.d.ts +1 -2
  220. package/src/components/Select/Select.js +63 -23
  221. package/src/components/Toastify/index.d.ts +2 -2
  222. package/src/components/Toastify/index.js +1 -1
  223. package/src/components/icons/comments.d.ts +3 -0
  224. package/src/components/icons/comments.js +7 -0
  225. package/src/components/icons/index.js +3 -1
  226. package/src/env.d.ts +3 -1
  227. package/src/env.js +3 -1
  228. package/src/metamodel/adaptable.metamodel.d.ts +72 -158
  229. package/src/metamodel/adaptable.metamodel.js +128 -260
  230. package/src/parser/src/parser.d.ts +2 -0
  231. package/src/parser/src/parser.js +1880 -705
  232. package/src/parser/src/predicate/mapQlPredicateToExpression.js +5 -2
  233. package/src/parser/src/predicate/types.d.ts +1 -1
  234. package/src/parser/src/types.d.ts +1 -1
  235. package/src/renderReactRoot.js +15 -0
  236. package/src/themes/index.js +4 -0
  237. package/src/types.d.ts +10 -13
  238. package/themes/dark.css +4 -4
  239. package/themes/dark.css.map +1 -1
  240. package/themes/light.css +1 -1
  241. package/themes/light.css.map +1 -1
  242. package/tsconfig.cjs.tsbuildinfo +1 -1
  243. package/src/AdaptableOptions/FinsemblePluginOptions.d.ts +0 -35
  244. package/src/AdaptableOptions/Glue42PluginOptions.d.ts +0 -25
  245. package/src/AdaptableOptions/Glue42WebPluginOptions.d.ts +0 -10
  246. package/src/Api/Events/SelectionChanged.d.ts +0 -16
  247. package/src/Api/FinsembleApi.d.ts +0 -10
  248. package/src/Api/Glue42Api.d.ts +0 -75
  249. package/src/Api/Glue42WebApi.d.ts +0 -10
  250. package/src/PredefinedConfig/Glue42State.d.ts +0 -46
  251. package/src/View/Notes/NotesListing.d.ts +0 -2
  252. package/src/View/Notes/NotesListing.js +0 -88
  253. package/src/View/Schedule/Wizard/ScheduleSettingsWizard/ScheduleSettingsGlue42.d.ts +0 -9
  254. package/src/View/Schedule/Wizard/ScheduleSettingsWizard/ScheduleSettingsGlue42.js +0 -25
  255. package/src/bundle-dependencies/bundles/react-toastify/components/CloseButton.d.ts +0 -9
  256. package/src/bundle-dependencies/bundles/react-toastify/components/Icons.d.ts +0 -24
  257. package/src/bundle-dependencies/bundles/react-toastify/components/ProgressBar.d.ts +0 -59
  258. package/src/bundle-dependencies/bundles/react-toastify/components/Toast.d.ts +0 -3
  259. package/src/bundle-dependencies/bundles/react-toastify/components/ToastContainer.d.ts +0 -3
  260. package/src/bundle-dependencies/bundles/react-toastify/components/Transitions.d.ts +0 -6
  261. package/src/bundle-dependencies/bundles/react-toastify/components/index.d.ts +0 -6
  262. package/src/bundle-dependencies/bundles/react-toastify/core/eventManager.d.ts +0 -39
  263. package/src/bundle-dependencies/bundles/react-toastify/core/index.d.ts +0 -2
  264. package/src/bundle-dependencies/bundles/react-toastify/core/toast.d.ts +0 -41
  265. package/src/bundle-dependencies/bundles/react-toastify/hooks/index.d.ts +0 -2
  266. package/src/bundle-dependencies/bundles/react-toastify/hooks/useToast.d.ts +0 -10
  267. package/src/bundle-dependencies/bundles/react-toastify/hooks/useToastContainer.d.ts +0 -23
  268. package/src/bundle-dependencies/bundles/react-toastify/index.d.ts +0 -5
  269. package/src/bundle-dependencies/bundles/react-toastify/index.js +0 -1
  270. package/src/bundle-dependencies/bundles/react-toastify/inject-style.d.ts +0 -8
  271. package/src/bundle-dependencies/bundles/react-toastify/types/index.d.ts +0 -269
  272. package/src/bundle-dependencies/bundles/react-toastify/utils/collapseToast.d.ts +0 -5
  273. package/src/bundle-dependencies/bundles/react-toastify/utils/constant.d.ts +0 -23
  274. package/src/bundle-dependencies/bundles/react-toastify/utils/cssTransition.d.ts +0 -43
  275. package/src/bundle-dependencies/bundles/react-toastify/utils/index.d.ts +0 -5
  276. package/src/bundle-dependencies/bundles/react-toastify/utils/mapper.d.ts +0 -2
  277. package/src/bundle-dependencies/bundles/react-toastify/utils/propValidator.d.ts +0 -9
  278. /package/src/AdaptableOptions/{FinsemblePluginOptions.js → CommentsOptions.js} +0 -0
  279. /package/src/AdaptableOptions/{Glue42PluginOptions.js → InteropioPluginOptions.js} +0 -0
  280. /package/src/{AdaptableOptions/Glue42WebPluginOptions.js → Api/CommentApi.js} +0 -0
  281. /package/src/Api/Events/{SelectionChanged.js → CalculatedColumnChanged.js} +0 -0
  282. /package/src/Api/{FinsembleApi.js → Events/CellSelectionChanged.js} +0 -0
  283. /package/src/Api/{Glue42Api.js → Events/CommentsChangedInfo.js} +0 -0
  284. /package/src/Api/{Glue42WebApi.js → Events/RowSelectionChanged.js} +0 -0
  285. /package/src/Api/Internal/{ExpressionnternalApi.d.ts → ExpressionInternalApi.d.ts} +0 -0
  286. /package/src/Api/Internal/{ExpressionnternalApi.js → ExpressionInternalApi.js} +0 -0
  287. /package/src/Api/{NotesAPi.js → InteropioPluginApi.js} +0 -0
  288. /package/src/{PredefinedConfig/Glue42State.js → Api/NotesApi.js} +0 -0
@@ -54,4 +54,4 @@ export interface AdaptableBaseIcon {
54
54
  /**
55
55
  * All AdapTable System Icon names
56
56
  */
57
- export type AdaptableSystemIconName = 'add' | 'alert' | 'building' | 'laptop' | 'arrow-down' | 'arrow-left' | 'arrow-right' | 'arrow-up' | 'arrow-up-long' | 'arrow-down-long' | 'arrow-expand' | 'paperclip' | 'unfilled-circle' | 'boolean-list' | 'broadcast' | 'brush' | 'spanner' | 'edit-table' | 'chart-and-grid' | 'calendar' | 'call' | 'cells' | 'fdc3' | 'flag' | 'chart' | 'chat' | 'check' | 'check-circle' | 'checked' | 'clone' | 'close' | 'cloud-upload' | 'collapse' | 'column-add' | 'columns' | 'filter-list' | 'comment' | 'contains' | 'dashboard' | 'data-set' | 'date-range' | 'delete' | 'division' | 'dock' | 'dollar' | 'drag' | 'edit' | 'ends-with' | 'equals' | 'equation' | 'error' | 'expand' | 'exponent' | 'export' | 'export-data' | 'fast-backward' | 'fast-forward' | 'filter' | 'lightning' | 'folder' | 'folder-open' | 'folder-shared' | 'color-palette' | 'horizontal-lines' | 'function' | 'greater-than' | 'greater-than-or-equal' | 'history' | 'home' | 'import-export' | 'info' | 'brain' | 'download' | 'grid' | 'interactions' | 'less-than' | 'less-than-or-equal' | 'list' | 'logout' | 'mail' | 'menu' | 'minus' | 'multiplication' | 'money' | 'newpage' | 'news' | 'filled-circle' | 'not-contains' | 'not-equal' | 'open-in-new' | 'order' | 'organisation' | 'pause' | 'percent' | 'percent-tag' | 'person' | 'contact' | 'pie-chart' | 'play' | 'plus' | 'add-circle' | 'search' | 'search-table' | 'quote' | 'refresh' | 'regex' | 'reminder' | 'save' | 'schedule' | 'science' | 'settings' | 'link' | 'sort-asc' | 'sort-desc' | 'spark-line' | 'resume' | 'starts-with' | 'assignment' | 'statusbar' | 'stop' | 'traffic-lights' | 'tab-unselected' | 'theme' | 'clipboard' | 'target' | 'triangle-down' | 'triangle-up' | 'unchecked' | 'undo' | 'downloaded' | 'upload' | 'warning' | 'gradient' | 'badge' | 'italic' | 'bold' | 'align-left' | 'align-right' | 'align-center' | 'align-justify' | 'underline' | 'strikethrough' | 'overline' | 'case-upper' | 'case-lower' | 'case-sentence' | 'visibility-on' | 'visibility-off' | 'visibility-off-bold' | 'visibility-on-bold' | 'note' | 'import' | 'grid-filter';
57
+ export type AdaptableSystemIconName = 'add' | 'alert' | 'building' | 'laptop' | 'arrow-down' | 'arrow-left' | 'arrow-right' | 'arrow-up' | 'arrow-up-long' | 'arrow-down-long' | 'arrow-expand' | 'paperclip' | 'unfilled-circle' | 'boolean-list' | 'broadcast' | 'brush' | 'spanner' | 'edit-table' | 'chart-and-grid' | 'calendar' | 'call' | 'cells' | 'fdc3' | 'flag' | 'chart' | 'chat' | 'check' | 'check-circle' | 'checked' | 'clone' | 'close' | 'cloud-upload' | 'collapse' | 'column-add' | 'columns' | 'filter-list' | 'comment' | 'comments' | 'contains' | 'dashboard' | 'data-set' | 'date-range' | 'delete' | 'division' | 'dock' | 'dollar' | 'drag' | 'edit' | 'ends-with' | 'equals' | 'equation' | 'error' | 'expand' | 'exponent' | 'export' | 'export-data' | 'fast-backward' | 'fast-forward' | 'filter' | 'lightning' | 'folder' | 'folder-open' | 'folder-shared' | 'color-palette' | 'horizontal-lines' | 'function' | 'greater-than' | 'greater-than-or-equal' | 'history' | 'home' | 'import-export' | 'info' | 'brain' | 'download' | 'grid' | 'interactions' | 'less-than' | 'less-than-or-equal' | 'list' | 'logout' | 'mail' | 'menu' | 'minus' | 'multiplication' | 'money' | 'newpage' | 'news' | 'filled-circle' | 'not-contains' | 'not-equal' | 'open-in-new' | 'order' | 'organisation' | 'pause' | 'percent' | 'percent-tag' | 'person' | 'contact' | 'pie-chart' | 'play' | 'plus' | 'add-circle' | 'search' | 'search-table' | 'quote' | 'refresh' | 'regex' | 'reminder' | 'save' | 'schedule' | 'science' | 'settings' | 'link' | 'sort-asc' | 'sort-desc' | 'spark-line' | 'resume' | 'starts-with' | 'assignment' | 'statusbar' | 'stop' | 'traffic-lights' | 'tab-unselected' | 'theme' | 'clipboard' | 'target' | 'triangle-down' | 'triangle-up' | 'unchecked' | 'undo' | 'downloaded' | 'upload' | 'warning' | 'gradient' | 'badge' | 'italic' | 'bold' | 'align-left' | 'align-right' | 'align-center' | 'align-justify' | 'underline' | 'strikethrough' | 'overline' | 'case-upper' | 'case-lower' | 'case-sentence' | 'visibility-on' | 'visibility-off' | 'visibility-off-bold' | 'visibility-on-bold' | 'note' | 'import' | 'grid-filter';
@@ -38,7 +38,8 @@ exports.SystemPredicateDefs = [
38
38
  }
39
39
  if (column.dataType === 'Date') {
40
40
  return inputs.some((input) => {
41
- if (adaptableApi.optionsApi.getColumnFilterOptions().valuesFilterOptions.filterValuesUsingTime) {
41
+ if (adaptableApi.optionsApi.getColumnFilterOptions().valuesFilterOptions
42
+ .filterValuesUsingTime) {
42
43
  return (0, isEqual_1.default)(input, value);
43
44
  }
44
45
  else {
@@ -14,7 +14,6 @@ export declare enum ExportDestination {
14
14
  export declare enum ScheduleType {
15
15
  Report = "Report",
16
16
  ipushpull = "ipushpull",
17
- Glue42 = "Glue42",
18
17
  Reminder = "Reminder",
19
18
  OpenFin = "OpenFin"
20
19
  }
@@ -22,7 +22,6 @@ var ScheduleType;
22
22
  (function (ScheduleType) {
23
23
  ScheduleType["Report"] = "Report";
24
24
  ScheduleType["ipushpull"] = "ipushpull";
25
- ScheduleType["Glue42"] = "Glue42";
26
25
  ScheduleType["Reminder"] = "Reminder";
27
26
  ScheduleType["OpenFin"] = "OpenFin";
28
27
  })(ScheduleType = exports.ScheduleType || (exports.ScheduleType = {}));
@@ -32,7 +32,7 @@ export interface BaseSchedule extends SuspendableObject {
32
32
  /**
33
33
  * The type of Schedule
34
34
  */
35
- ScheduleType: 'Report' | 'ipushpull' | 'Glue42' | 'Reminder' | 'OpenFin';
35
+ ScheduleType: 'Report' | 'ipushpull' | 'Reminder' | 'OpenFin';
36
36
  }
37
37
  export type Weekdays = Weekday[];
38
38
  export type Weekday = 'Sunday' | 'Monday' | 'Tuesday' | 'Wednesday' | 'Thursday' | 'Friday' | 'Saturday';
@@ -6,7 +6,7 @@ export type AdaptableDashboardToolbars = AdaptableDashboardToolbar[];
6
6
  /**
7
7
  * List of all the Toolbars that Adaptable provides
8
8
  */
9
- export type AdaptableDashboardToolbar = 'Alert' | 'BulkUpdate' | 'CellSummary' | 'Charting' | 'DataChangeHistory' | 'DataSet' | 'Export' | 'ColumnFilter' | 'Glue42' | 'IPushPull' | 'Layout' | 'GridFilter' | 'OpenFin' | 'QuickSearch' | 'SmartEdit' | 'StateManagement' | 'SystemStatus' | 'Theme';
9
+ export type AdaptableDashboardToolbar = 'Alert' | 'BulkUpdate' | 'CellSummary' | 'Charting' | 'DataChangeHistory' | 'DataSet' | 'Export' | 'ColumnFilter' | 'IPushPull' | 'Layout' | 'GridFilter' | 'OpenFin' | 'QuickSearch' | 'SmartEdit' | 'StateManagement' | 'SystemStatus' | 'Theme';
10
10
  export declare const ALL_TOOLBARS: AdaptableDashboardToolbar[];
11
11
  /**
12
12
  * Modules which can appear in the AdapTable Status Bar
@@ -28,18 +28,18 @@ export type AdaptableModuleButtons = AdaptableModuleButton[];
28
28
  /**
29
29
  * List of all the Module buttons Adaptable provides - each Module has a popup for which this is a shortcut button
30
30
  */
31
- export type AdaptableModuleButton = 'Alert' | 'BulkUpdate' | 'CalculatedColumn' | 'CellSummary' | 'CustomSort' | 'Dashboard' | 'DataChangeHistory' | 'DataImport' | 'DataSet' | 'Export' | 'ColumnFilter' | 'GridFilter' | 'NamedQuery' | 'FlashingCell' | 'FormatColumn' | 'FreeTextColumn' | 'Glue42' | 'GridInfo' | 'Layout' | 'OpenFin' | 'PlusMinus' | 'QuickSearch' | 'Schedule' | 'SettingsPanel' | 'Shortcut' | 'SmartEdit' | 'StyledColumn' | 'StateManagement' | 'StatusBar' | 'SystemStatus' | 'TeamSharing' | 'Theme';
31
+ export type AdaptableModuleButton = 'Alert' | 'BulkUpdate' | 'CalculatedColumn' | 'CellSummary' | 'CustomSort' | 'Dashboard' | 'DataChangeHistory' | 'DataImport' | 'DataSet' | 'Export' | 'ColumnFilter' | 'GridFilter' | 'NamedQuery' | 'FlashingCell' | 'FormatColumn' | 'FreeTextColumn' | 'GridInfo' | 'Layout' | 'OpenFin' | 'PlusMinus' | 'QuickSearch' | 'Schedule' | 'SettingsPanel' | 'Shortcut' | 'SmartEdit' | 'StyledColumn' | 'StateManagement' | 'StatusBar' | 'SystemStatus' | 'TeamSharing' | 'Theme';
32
32
  export type AdaptableStateKeys = AdaptableStateKey[];
33
- export type AdaptableStateKey = keyof AdaptablePersistentState | 'OpenFin' | 'Glue42' | 'IPushPull';
33
+ export type AdaptableStateKey = keyof AdaptablePersistentState | 'OpenFin' | 'IPushPull';
34
34
  /**
35
35
  * Modules provided by AdapTable, subject to Entitlements and usually have Predefined Config
36
36
  */
37
- export type AdaptableModule = 'Alert' | 'BulkUpdate' | 'CalculatedColumn' | 'CellSummary' | 'Charting' | 'CustomSort' | 'Dashboard' | 'DataChangeHistory' | 'DataSet' | 'Export' | 'Fdc3' | 'ColumnFilter' | 'FlashingCell' | 'FormatColumn' | 'FreeTextColumn' | 'Glue42' | 'GridInfo' | 'ColumnInfo' | 'IPushPull' | 'Layout' | 'OpenFin' | 'PlusMinus' | 'QuickSearch' | 'Schedule' | 'SettingsPanel' | 'Shortcut' | 'SmartEdit' | 'StyledColumn' | 'StateManagement' | 'StatusBar' | 'SystemStatus' | 'TeamSharing' | 'Theme' | 'ToolPanel' | 'Notes' | 'DataImport' | 'GridFilter' | 'NamedQuery';
37
+ export type AdaptableModule = 'Alert' | 'BulkUpdate' | 'CalculatedColumn' | 'CellSummary' | 'Charting' | 'CustomSort' | 'Dashboard' | 'DataChangeHistory' | 'DataSet' | 'Export' | 'Fdc3' | 'ColumnFilter' | 'FlashingCell' | 'FormatColumn' | 'FreeTextColumn' | 'GridInfo' | 'ColumnInfo' | 'IPushPull' | 'Layout' | 'OpenFin' | 'PlusMinus' | 'QuickSearch' | 'Schedule' | 'SettingsPanel' | 'Shortcut' | 'SmartEdit' | 'StyledColumn' | 'StateManagement' | 'StatusBar' | 'SystemStatus' | 'TeamSharing' | 'Theme' | 'ToolPanel' | 'Notes' | 'DataImport' | 'GridFilter' | 'NamedQuery' | 'Comments';
38
38
  export declare const ALL_MODULES: AdaptableModule[];
39
39
  /**
40
40
  * Modules which can appear in the Settings Panel
41
41
  */
42
- export type AdaptableSettingsPanel = 'Alert' | 'CalculatedColumn' | 'Charting' | 'CustomSort' | 'Dashboard' | 'DataChangeHistory' | 'DataSet' | 'Export' | 'ColumnFilter' | 'FlashingCell' | 'FormatColumn' | 'FreeTextColumn' | 'GridInfo' | 'ColumnInfo' | 'Layout' | 'PlusMinus' | 'QuickSearch' | 'Schedule' | 'Shortcut' | 'StateManagement' | 'StatusBar' | 'StyledColumn' | 'SystemStatus' | 'TeamSharing' | 'Theme' | 'ToolPanel' | 'Notes' | 'DataImport' | 'GridFilter' | 'NamedQuery';
42
+ export type AdaptableSettingsPanel = 'Alert' | 'CalculatedColumn' | 'Charting' | 'CustomSort' | 'Dashboard' | 'DataChangeHistory' | 'DataSet' | 'Export' | 'ColumnFilter' | 'FlashingCell' | 'FormatColumn' | 'FreeTextColumn' | 'GridInfo' | 'ColumnInfo' | 'Layout' | 'PlusMinus' | 'QuickSearch' | 'Schedule' | 'Shortcut' | 'StateManagement' | 'StatusBar' | 'StyledColumn' | 'SystemStatus' | 'TeamSharing' | 'Theme' | 'ToolPanel' | 'Notes' | 'DataImport' | 'GridFilter' | 'NamedQuery' | 'Comments';
43
43
  export type TypeHint<Base, Literals> = (Base & {
44
44
  __subType?: true;
45
45
  }) | Literals;
@@ -14,7 +14,6 @@ exports.ALL_TOOLBARS = [
14
14
  'DataChangeHistory',
15
15
  'DataSet',
16
16
  'Export',
17
- 'Glue42',
18
17
  'IPushPull',
19
18
  'Layout',
20
19
  'ColumnFilter',
@@ -93,7 +92,6 @@ exports.ALL_MODULES = [
93
92
  ModuleConstants.FlashingCellModuleId,
94
93
  ModuleConstants.FormatColumnModuleId,
95
94
  ModuleConstants.FreeTextColumnModuleId,
96
- ModuleConstants.Glue42ModuleId,
97
95
  ModuleConstants.GridInfoModuleId,
98
96
  ModuleConstants.IPushPullModuleId,
99
97
  ModuleConstants.LayoutModuleId,
@@ -44,16 +44,3 @@ export interface NotesState extends ConfigState {
44
44
  */
45
45
  Notes?: AdaptableNotes;
46
46
  }
47
- /**
48
- * Cell that contains a Note
49
- */
50
- export type NoteGridCell = {
51
- /**
52
- * Value in Primary Key Column
53
- */
54
- PrimaryKeyValue: string | number;
55
- /**
56
- * Id of Column containing the Note
57
- */
58
- ColumnId: string;
59
- };
@@ -43,6 +43,9 @@ export interface PredefinedConfig {
43
43
  * Supplies a collection of *Custom Sort* objects to allow some columns to be sorted in non-standard (e.g. non alphabetical) ways
44
44
  */
45
45
  CustomSort?: CustomSortState;
46
+ /**
47
+ * Collection of notes that can be edited on cell level
48
+ */
46
49
  Notes?: NotesState;
47
50
  /**
48
51
  * Large series of properties to give users full control over the look and feel of the *Dashboard* - the section above the grid with toolbars and buttons
@@ -1,5 +1,4 @@
1
1
  import { ConfigState } from './ConfigState';
2
- import { Glue42Schedule } from './Glue42State';
3
2
  import { IPushPullSchedule } from './IPushPullState';
4
3
  import { OpenFinSchedule } from './OpenFinState';
5
4
  import { AdaptableMessageType, ReportSchedule } from '../types';
@@ -21,10 +20,6 @@ export interface ScheduleState extends ConfigState {
21
20
  * Schedules connected to ipushpull Reports - available if ipushpull plugin is running
22
21
  */
23
22
  IPushPullSchedules?: IPushPullSchedule[];
24
- /**
25
- * Schedules connected to Glue42 exports - available if Glue42 plugin is running
26
- */
27
- Glue42Schedules?: Glue42Schedule[];
28
23
  /**
29
24
  * Schedules connected to OpenFin exports - available if OpenFin plugin is running
30
25
  */
@@ -3,7 +3,6 @@ import { InternalState } from './InternalState';
3
3
  import { BulkUpdateValidationResult } from '../Strategy/Interface/IBulkUpdateModule';
4
4
  import { CellDataChangedInfo, GridCell, SmartEditOperation } from '../types';
5
5
  import type { IPushPullState, IPushPullReport, IPushPullDomain } from './IPushPullState';
6
- import { Glue42State, Glue42Report } from './Glue42State';
7
6
  import { OpenFinState, OpenFinReport } from './OpenFinState';
8
7
  import { AdaptableAlert } from './Common/AdaptableAlert';
9
8
  import { CellHighlightInfo } from './Common/CellHighlightInfo';
@@ -13,11 +12,10 @@ import { AdaptableFlashingCell } from './Common/AdaptableFlashingCell';
13
12
  import { TypeUuid } from './Uuid';
14
13
  import { SummaryOperation } from './Common/Enums';
15
14
  import { ChartModel } from '@ag-grid-community/core';
16
- import { NoteGridCell } from './NotesState';
15
+ import { CellAddress } from './CellAddress';
17
16
  import { ExternalChartDefinition } from './ChartingState';
18
17
  import { CachedQuery } from './NamedQueryState';
19
18
  export type { IPushPullReport, IPushPullDomain };
20
- export type { Glue42Report };
21
19
  export type { OpenFinReport };
22
20
  type ROW_PRIMARY_KEY = string;
23
21
  type COLUMN_ID_OR_WHOLE_ROW_LABEL = string;
@@ -25,7 +23,7 @@ export type DataChangeHistoryMode = 'ACTIVE' | 'INACTIVE' | 'SUSPENDED';
25
23
  /**
26
24
  * Internal state, used by Adaptable during a session; none of it is provided through Predefined Config, nor is it persisted
27
25
  */
28
- export interface SystemState extends InternalState, IPushPullState, Glue42State, OpenFinState {
26
+ export interface SystemState extends InternalState, IPushPullState, OpenFinState {
29
27
  AdaptableAlerts: AdaptableAlert[];
30
28
  AdaptableFlashingCells: Record<ROW_PRIMARY_KEY, Record<COLUMN_ID_OR_WHOLE_ROW_LABEL, TypeUuid>>;
31
29
  AdaptableFlashingCellsMap: Record<TypeUuid, AdaptableFlashingCell>;
@@ -100,9 +98,10 @@ export interface SystemState extends InternalState, IPushPullState, Glue42State,
100
98
  QuickSearch?: {
101
99
  floatingVisible?: boolean;
102
100
  };
103
- Notes?: {
101
+ NotesAndComments?: {
104
102
  editMode?: boolean;
105
- popupPosition?: NoteGridCell | null;
103
+ focusedEntity?: 'Note' | 'Comment';
104
+ popupPosition?: CellAddress | null;
106
105
  };
107
106
  }
108
107
  export interface ProgressIndicator {
@@ -8,7 +8,7 @@ export interface ThemeState extends ConfigState {
8
8
  /**
9
9
  * Name of current theme (or theme to set at startup); leave blank if using 'Light Theme', set to 'dark' for 'Dark Theme' or provide name of Custom Theme
10
10
  */
11
- CurrentTheme?: TypeHint<string, 'light' | 'dark'>;
11
+ CurrentTheme?: TypeHint<string, 'light' | 'dark' | 'os'>;
12
12
  /**
13
13
  * Which, if any, of the 2 themes shipped by Adaptable should be available; leave unset to provide both, or an empty array to provide neither.
14
14
  */
@@ -0,0 +1,79 @@
1
+ import * as Redux from 'redux';
2
+ import { CommentThread, AdaptableComment, CommentState } from '../../PredefinedConfig/CommentState';
3
+ import { CellAddress } from '../../types';
4
+ /**
5
+ * @ReduxAction A Comments has been added
6
+ */
7
+ export declare const COMMENTS_ADD = "COMMENTS_ADD";
8
+ /**
9
+ * @ReduxAction Cell Comments has been added
10
+ */
11
+ export declare const COMMENTS_CELL_ADD = "COMMENTS_CELL_ADD";
12
+ /**
13
+ * @ReduxAction Cell comments have been removed
14
+ */
15
+ export declare const COMMENTS_CELL_DELETE = "COMMENTS_CELL_DELETE";
16
+ /**
17
+ * @ReduxAction A Comments has been edited
18
+ */
19
+ export declare const COMMENTS_EDIT = "COMMENTS_EDIT";
20
+ /**
21
+ * @ReduxAction A Comments has been deleted
22
+ */
23
+ export declare const COMMENTS_DELETE = "COMMENTS_DELETE";
24
+ /**
25
+ * @ReduxAction Comments Module is ready
26
+ */
27
+ export declare const COMMENTS_READY = "COMMENTS_READY";
28
+ export declare const COMMENTS_LOAD = "COMMENTS_LOAD";
29
+ export interface AdaptableCommentAction extends Redux.Action {
30
+ comment: AdaptableComment;
31
+ cellAddress: CellAddress;
32
+ }
33
+ export interface AdaptableCommentsAddAction extends AdaptableCommentAction {
34
+ }
35
+ export interface AdaptableCommentsCellAddAction extends Redux.Action {
36
+ commentThread: CommentThread;
37
+ }
38
+ export interface AdaptableCommentsSetAction extends Redux.Action {
39
+ commentThread: CommentThread[];
40
+ }
41
+ export interface AdaptableCommentsCellDeleteAction extends Redux.Action {
42
+ cellAddress: CellAddress;
43
+ }
44
+ export interface AdaptableCommentsEditAction extends AdaptableCommentAction {
45
+ }
46
+ export interface AdaptableCommentsDeleteAction extends Redux.Action {
47
+ commentUuid: AdaptableComment['Uuid'];
48
+ cellAddress: CellAddress;
49
+ }
50
+ export interface NoteReadyAction extends Redux.Action {
51
+ commentState: CommentState;
52
+ }
53
+ export declare const CommentsSet: ({ commentThread, }: {
54
+ commentThread: CommentThread[];
55
+ }) => AdaptableCommentsSetAction;
56
+ export declare const CommentsAdd: ({ comment, cellAddress, }: {
57
+ comment: AdaptableComment;
58
+ cellAddress: CellAddress;
59
+ }) => AdaptableCommentsAddAction;
60
+ export declare const CommentsCellAdd: ({ commentThread, }: {
61
+ commentThread: CommentThread;
62
+ }) => AdaptableCommentsCellAddAction;
63
+ export declare const CommentsCellDelete: ({ cellAddress: cellAddress, }: {
64
+ cellAddress: CellAddress;
65
+ }) => AdaptableCommentsCellDeleteAction;
66
+ export declare const CommentsEdit: ({ comment, cellAddress, }: {
67
+ comment: AdaptableComment;
68
+ cellAddress: CellAddress;
69
+ }) => AdaptableCommentsEditAction;
70
+ export declare const CommentsDelete: ({ commentUuid, cellAddress, }: {
71
+ commentUuid: AdaptableComment['Uuid'];
72
+ cellAddress: CellAddress;
73
+ }) => AdaptableCommentsDeleteAction;
74
+ export declare const CommentsReady: (commentstate: CommentState) => NoteReadyAction;
75
+ export declare const GetGridCellCommentsSelector: (state: CommentState, address: CellAddress) => CommentThread;
76
+ export declare const GetCommentsSelector: (state: CommentState, address: CellAddress) => AdaptableComment[] | undefined;
77
+ export declare const GetGetCommentsByUuidSelector: (state: CommentState, uuid: string) => AdaptableComment | undefined;
78
+ export declare const GetCellCommentSelector: (state: CommentState, address: CellAddress) => CommentThread | undefined;
79
+ export declare const CommentsReducer: Redux.Reducer<CommentState>;
@@ -0,0 +1,189 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CommentsReducer = exports.GetCellCommentSelector = exports.GetGetCommentsByUuidSelector = exports.GetCommentsSelector = exports.GetGridCellCommentsSelector = exports.CommentsReady = exports.CommentsDelete = exports.CommentsEdit = exports.CommentsCellDelete = exports.CommentsCellAdd = exports.CommentsAdd = exports.CommentsSet = exports.COMMENTS_LOAD = exports.COMMENTS_READY = exports.COMMENTS_DELETE = exports.COMMENTS_EDIT = exports.COMMENTS_CELL_DELETE = exports.COMMENTS_CELL_ADD = exports.COMMENTS_ADD = void 0;
4
+ const tslib_1 = require("tslib");
5
+ const GeneralConstants_1 = require("../../Utilities/Constants/GeneralConstants");
6
+ const ObjectFactory_1 = tslib_1.__importDefault(require("../../Utilities/ObjectFactory"));
7
+ const CellPopupService_1 = require("../../Utilities/Services/CellPopupService");
8
+ /**
9
+ * @ReduxAction A Comments has been added
10
+ */
11
+ exports.COMMENTS_ADD = 'COMMENTS_ADD';
12
+ /**
13
+ * @ReduxAction Cell Comments has been added
14
+ */
15
+ exports.COMMENTS_CELL_ADD = 'COMMENTS_CELL_ADD';
16
+ /**
17
+ * @ReduxAction Cell comments have been removed
18
+ */
19
+ exports.COMMENTS_CELL_DELETE = 'COMMENTS_CELL_DELETE';
20
+ /**
21
+ * @ReduxAction A Comments has been edited
22
+ */
23
+ exports.COMMENTS_EDIT = 'COMMENTS_EDIT';
24
+ /**
25
+ * @ReduxAction A Comments has been deleted
26
+ */
27
+ exports.COMMENTS_DELETE = 'COMMENTS_DELETE';
28
+ /**
29
+ * @ReduxAction Comments Module is ready
30
+ */
31
+ exports.COMMENTS_READY = 'COMMENTS_READY';
32
+ exports.COMMENTS_LOAD = 'COMMENTS_LOAD';
33
+ const CommentsSet = ({ commentThread, }) => ({
34
+ type: exports.COMMENTS_LOAD,
35
+ commentThread,
36
+ });
37
+ exports.CommentsSet = CommentsSet;
38
+ const CommentsAdd = ({ comment, cellAddress, }) => ({
39
+ type: exports.COMMENTS_ADD,
40
+ comment,
41
+ cellAddress,
42
+ });
43
+ exports.CommentsAdd = CommentsAdd;
44
+ const CommentsCellAdd = ({ commentThread, }) => ({
45
+ type: exports.COMMENTS_CELL_ADD,
46
+ commentThread,
47
+ });
48
+ exports.CommentsCellAdd = CommentsCellAdd;
49
+ const CommentsCellDelete = ({ cellAddress: cellAddress, }) => ({
50
+ type: exports.COMMENTS_CELL_DELETE,
51
+ cellAddress: cellAddress,
52
+ });
53
+ exports.CommentsCellDelete = CommentsCellDelete;
54
+ const CommentsEdit = ({ comment, cellAddress, }) => ({
55
+ type: exports.COMMENTS_EDIT,
56
+ comment,
57
+ cellAddress,
58
+ });
59
+ exports.CommentsEdit = CommentsEdit;
60
+ const CommentsDelete = ({ commentUuid, cellAddress, }) => ({
61
+ type: exports.COMMENTS_DELETE,
62
+ cellAddress,
63
+ commentUuid,
64
+ });
65
+ exports.CommentsDelete = CommentsDelete;
66
+ const CommentsReady = (commentstate) => ({
67
+ type: exports.COMMENTS_READY,
68
+ commentState: commentstate,
69
+ });
70
+ exports.CommentsReady = CommentsReady;
71
+ const GetGridCellCommentsSelector = (state, address) => {
72
+ var _a;
73
+ if (!address) {
74
+ return null;
75
+ }
76
+ return ((_a = state === null || state === void 0 ? void 0 : state.CommentThreads) !== null && _a !== void 0 ? _a : []).find((cellComments) => {
77
+ return CellPopupService_1.CellPopupService.isSameAddress(cellComments, address);
78
+ });
79
+ };
80
+ exports.GetGridCellCommentsSelector = GetGridCellCommentsSelector;
81
+ const GetCommentsSelector = (state, address) => {
82
+ var _a, _b;
83
+ if (!address) {
84
+ return [];
85
+ }
86
+ const comments = (_b = ((_a = state === null || state === void 0 ? void 0 : state.CommentThreads) !== null && _a !== void 0 ? _a : []).find((cellComments) => {
87
+ return CellPopupService_1.CellPopupService.isSameAddress(cellComments, address);
88
+ })) === null || _b === void 0 ? void 0 : _b.Comments;
89
+ return comments;
90
+ };
91
+ exports.GetCommentsSelector = GetCommentsSelector;
92
+ const GetGetCommentsByUuidSelector = (state, uuid) => {
93
+ var _a;
94
+ for (const commentThread of (_a = state.CommentThreads) !== null && _a !== void 0 ? _a : []) {
95
+ for (const comment of commentThread.Comments) {
96
+ if (comment.Uuid === uuid) {
97
+ return comment;
98
+ }
99
+ }
100
+ }
101
+ return undefined;
102
+ };
103
+ exports.GetGetCommentsByUuidSelector = GetGetCommentsByUuidSelector;
104
+ const GetCellCommentSelector = (state, address) => {
105
+ var _a;
106
+ if (!address) {
107
+ return undefined;
108
+ }
109
+ return ((_a = state === null || state === void 0 ? void 0 : state.CommentThreads) !== null && _a !== void 0 ? _a : []).find((commentThread) => {
110
+ return CellPopupService_1.CellPopupService.isSameAddress(commentThread, address);
111
+ });
112
+ };
113
+ exports.GetCellCommentSelector = GetCellCommentSelector;
114
+ const initialState = {
115
+ CommentThreads: GeneralConstants_1.EMPTY_ARRAY,
116
+ };
117
+ const CommentsReducer = (state = initialState, action) => {
118
+ var _a, _b, _c, _d, _e;
119
+ switch (action.type) {
120
+ case exports.COMMENTS_ADD: {
121
+ const addAction = action;
122
+ const commentThread = (_a = state.CommentThreads) !== null && _a !== void 0 ? _a : [];
123
+ const cellCommentIndex = commentThread.findIndex((cellComments) => {
124
+ return CellPopupService_1.CellPopupService.isSameAddress(cellComments, addAction.cellAddress);
125
+ });
126
+ let comments = [...commentThread];
127
+ if (cellCommentIndex === -1) {
128
+ // new comments
129
+ comments.push(Object.assign(Object.assign({}, ObjectFactory_1.default.CreateEmptyCommentThread(addAction.cellAddress)), { Comments: [addAction.comment] }));
130
+ }
131
+ else {
132
+ const existing = Object.assign(Object.assign({}, commentThread[cellCommentIndex]), { Comments: [...commentThread[cellCommentIndex].Comments, addAction.comment] });
133
+ comments[cellCommentIndex] = existing;
134
+ }
135
+ return Object.assign(Object.assign({}, state), { CommentThreads: comments });
136
+ }
137
+ case exports.COMMENTS_CELL_ADD: {
138
+ return Object.assign(Object.assign({}, state), { CommentThreads: [
139
+ ...((_b = state.CommentThreads) !== null && _b !== void 0 ? _b : []),
140
+ action.commentThread,
141
+ ] });
142
+ }
143
+ case exports.COMMENTS_CELL_DELETE: {
144
+ const deleteAction = action;
145
+ return Object.assign(Object.assign({}, state), { CommentThreads: ((_c = state.CommentThreads) !== null && _c !== void 0 ? _c : []).filter((cellComments) => !CellPopupService_1.CellPopupService.isSameAddress(cellComments, deleteAction.cellAddress)) });
146
+ }
147
+ case exports.COMMENTS_EDIT: {
148
+ const editAction = action;
149
+ let edited = false;
150
+ const adaptableCellComments = ((_d = state.CommentThreads) !== null && _d !== void 0 ? _d : []).map((cellComments) => {
151
+ if (CellPopupService_1.CellPopupService.isSameAddress(cellComments, editAction.cellAddress)) {
152
+ // found the place
153
+ edited = true;
154
+ return Object.assign(Object.assign({}, cellComments), { Comments: cellComments.Comments.map((comment) => {
155
+ if (comment.Uuid === editAction.comment.Uuid) {
156
+ return editAction.comment;
157
+ }
158
+ return comment;
159
+ }) });
160
+ }
161
+ });
162
+ return Object.assign(Object.assign({}, state), { CommentThreads: adaptableCellComments });
163
+ }
164
+ case exports.COMMENTS_DELETE: {
165
+ const deleteAction = action;
166
+ const adaptableCellComments = ((_e = state.CommentThreads) !== null && _e !== void 0 ? _e : [])
167
+ .map((cellComments) => {
168
+ if (CellPopupService_1.CellPopupService.isSameAddress(cellComments, deleteAction.cellAddress)) {
169
+ // found the place
170
+ const newComments = cellComments.Comments.filter((comment) => comment.Uuid !== deleteAction.commentUuid);
171
+ if (newComments.length === 0) {
172
+ return null;
173
+ }
174
+ const newCellComments = Object.assign(Object.assign({}, cellComments), { Comments: newComments });
175
+ return newCellComments;
176
+ }
177
+ return cellComments;
178
+ })
179
+ .filter((cellComments) => cellComments !== null);
180
+ return Object.assign(Object.assign({}, state), { CommentThreads: adaptableCellComments });
181
+ }
182
+ case exports.COMMENTS_LOAD: {
183
+ return Object.assign(Object.assign({}, state), { CommentThreads: action.commentThread });
184
+ }
185
+ default:
186
+ return state;
187
+ }
188
+ };
189
+ exports.CommentsReducer = CommentsReducer;
@@ -69,8 +69,7 @@ const NotesReducer = (state = initialState, action) => {
69
69
  case exports.NOTES_ADD: {
70
70
  const note = action.adaptableNote;
71
71
  AdaptableHelper_1.default.addUuidAndSource(note);
72
- adaptableNotes = [].concat(state.Notes);
73
- adaptableNotes.push(note);
72
+ adaptableNotes = [...state.Notes, note];
74
73
  return Object.assign(Object.assign({}, state), { Notes: adaptableNotes });
75
74
  }
76
75
  case exports.NOTES_EDIT: {
@@ -127,54 +127,6 @@ export declare const OPENFIN_SET_RUNNING_OFF = "OPENFIN_SET_RUNNING_OFF";
127
127
  * @ReduxAction set current(selected) report name
128
128
  */
129
129
  export declare const OPENFIN_SET_CURRENT_REPORTNAME = "OPENFIN_SET_CURRENT_REPORTNAME";
130
- /**
131
- * @ReduxAction Logged in to Glue42
132
- */
133
- export declare const GLUE42_LOGIN = "GLUE42_LOGIN";
134
- /**
135
- * @ReduxAction Error message set from failed login
136
- */
137
- export declare const GLUE42_SET_LOGIN_ERROR_MESSAGE = "GLUE42_SET_LOGIN_ERROR_MESSAGE";
138
- /**
139
- * @ReduxAction Throttle time for live reports has been set
140
- */
141
- export declare const GLUE42_SET_THROTTLE_TIME = "GLUE42_SET_THROTTLE_TIME";
142
- /**
143
- * @ReduxAction A snapshot report has been sent
144
- */
145
- export declare const GLUE42_SEND_SNAPSHOT = "GLUE42_SEND_SNAPSHOT";
146
- /**
147
- * @ReduxAction Live data has been sent to Glue42
148
- */
149
- export declare const GLUE42_START_LIVE_DATA = "GLUE42_START_LIVE_DATA";
150
- /**
151
- * @ReduxAction Live data is not longer sent to Glue42
152
- */
153
- export declare const GLUE42_STOP_LIVE_DATA = "GLUE42_STOP_LIVE_DATA";
154
- /**
155
- * @ReduxAction A Glue42 live report has started
156
- */
157
- export declare const GLUE42_LIVE_REPORT_SET = "GLUE42_LIVE_REPORT_SET";
158
- /**
159
- * @ReduxAction A Glue42 live report has stopped
160
- */
161
- export declare const GLUE42_LIVE_REPORT_CLEAR = "GLUE42_LIVE_REPORT_CLEAR";
162
- /**
163
- * @ReduxAction Glue43 is now available
164
- */
165
- export declare const GLUE42_SET_AVAILABLE_ON = "GLUE42_SET_AVAILABLE_ON";
166
- /**
167
- * @ReduxAction Glue43 is no longer available
168
- */
169
- export declare const GLUE42_SET_AVAILABLE_OFF = "GLUE42_SET_AVAILABLE_OFF";
170
- /**
171
- * @ReduxAction Glue43 is now running
172
- */
173
- export declare const GLUE42_SET_RUNNING_ON = "GLUE42_SET_RUNNING_ON";
174
- /**
175
- * @ReduxAction Glue43 is no longer running
176
- */
177
- export declare const GLUE42_SET_RUNNING_OFF = "SET_GLGLUE42_SET_RUNNING_OFFUE42_RUNNING_OFF";
178
130
  export interface PluginsAction extends Redux.Action {
179
131
  pluginState: any;
180
132
  pluginId: string;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.PluginsReducer = exports.PluginsSetPluginState = exports.GLUE42_SET_RUNNING_OFF = exports.GLUE42_SET_RUNNING_ON = exports.GLUE42_SET_AVAILABLE_OFF = exports.GLUE42_SET_AVAILABLE_ON = exports.GLUE42_LIVE_REPORT_CLEAR = exports.GLUE42_LIVE_REPORT_SET = exports.GLUE42_STOP_LIVE_DATA = exports.GLUE42_START_LIVE_DATA = exports.GLUE42_SEND_SNAPSHOT = exports.GLUE42_SET_THROTTLE_TIME = exports.GLUE42_SET_LOGIN_ERROR_MESSAGE = exports.GLUE42_LOGIN = exports.OPENFIN_SET_CURRENT_REPORTNAME = exports.OPENFIN_SET_RUNNING_OFF = exports.OPENFIN_SET_RUNNING_ON = exports.OPENFIN_SET_AVAILABLE_OFF = exports.OPENFIN_SET_AVAILABLE_ON = exports.OPENFIN_LIVE_REPORT_CLEAR = exports.OPENFIN_LIVE_REPORT_SET = exports.OPENFIN_STOP_LIVE_DATA = exports.OPENFIN_START_LIVE_DATA = exports.IPUSHPULL_SET_CURRENT_AVAILABLE_PAGES = exports.IPUSHPULL_SET_CURRENT_PAGE = exports.IPUSHPULL_SET_CURRENT_FOLDER = exports.IPUSHPULL_SET_CURRENT_REPORTNAME = exports.IPUSHPULL_DOMAIN_PAGES_CLEAR = exports.IPUSHPULL_DOMAIN_PAGES_SET = exports.IPUSHPULL_LIVE_REPORT_CLEAR = exports.IPUSHPULL_LIVE_REPORT_SET = exports.IPUSHPULL_SET_RUNNING_OFF = exports.IPUSHPULL_SET_RUNNING_ON = exports.IPUSHPULL_SET_AVAILABLE_OFF = exports.IPUSHPULL_SET_AVAILABLE_ON = exports.IPUSHPULL_SET_LOGIN_DETAILS = exports.IPUSHPULL_SET_LOGIN_ERROR_MESSAGE = exports.IPUSHPULL_LOGOUT = exports.IPUSHPULL_LOGIN = exports.IPUSHPULL_ADD_PAGE = exports.IPUSHPULL_STOP_LIVE_DATA = exports.IPUSHPULL_START_LIVE_DATA = exports.IPUSHPULL_REPORT_SELECT = exports.IPUSHPULL_SEND_SNAPSHOT = exports.IPUSHPULL_SET_THROTTLE_TIME = exports.PLUGINS_SET_PLUGIN_STATE = void 0;
3
+ exports.PluginsReducer = exports.PluginsSetPluginState = exports.OPENFIN_SET_CURRENT_REPORTNAME = exports.OPENFIN_SET_RUNNING_OFF = exports.OPENFIN_SET_RUNNING_ON = exports.OPENFIN_SET_AVAILABLE_OFF = exports.OPENFIN_SET_AVAILABLE_ON = exports.OPENFIN_LIVE_REPORT_CLEAR = exports.OPENFIN_LIVE_REPORT_SET = exports.OPENFIN_STOP_LIVE_DATA = exports.OPENFIN_START_LIVE_DATA = exports.IPUSHPULL_SET_CURRENT_AVAILABLE_PAGES = exports.IPUSHPULL_SET_CURRENT_PAGE = exports.IPUSHPULL_SET_CURRENT_FOLDER = exports.IPUSHPULL_SET_CURRENT_REPORTNAME = exports.IPUSHPULL_DOMAIN_PAGES_CLEAR = exports.IPUSHPULL_DOMAIN_PAGES_SET = exports.IPUSHPULL_LIVE_REPORT_CLEAR = exports.IPUSHPULL_LIVE_REPORT_SET = exports.IPUSHPULL_SET_RUNNING_OFF = exports.IPUSHPULL_SET_RUNNING_ON = exports.IPUSHPULL_SET_AVAILABLE_OFF = exports.IPUSHPULL_SET_AVAILABLE_ON = exports.IPUSHPULL_SET_LOGIN_DETAILS = exports.IPUSHPULL_SET_LOGIN_ERROR_MESSAGE = exports.IPUSHPULL_LOGOUT = exports.IPUSHPULL_LOGIN = exports.IPUSHPULL_ADD_PAGE = exports.IPUSHPULL_STOP_LIVE_DATA = exports.IPUSHPULL_START_LIVE_DATA = exports.IPUSHPULL_REPORT_SELECT = exports.IPUSHPULL_SEND_SNAPSHOT = exports.IPUSHPULL_SET_THROTTLE_TIME = exports.PLUGINS_SET_PLUGIN_STATE = void 0;
4
4
  /**
5
5
  * @ReduxAction Plugins have been instantiated
6
6
  */
@@ -129,54 +129,6 @@ exports.OPENFIN_SET_RUNNING_OFF = 'OPENFIN_SET_RUNNING_OFF';
129
129
  * @ReduxAction set current(selected) report name
130
130
  */
131
131
  exports.OPENFIN_SET_CURRENT_REPORTNAME = 'OPENFIN_SET_CURRENT_REPORTNAME';
132
- /**
133
- * @ReduxAction Logged in to Glue42
134
- */
135
- exports.GLUE42_LOGIN = 'GLUE42_LOGIN';
136
- /**
137
- * @ReduxAction Error message set from failed login
138
- */
139
- exports.GLUE42_SET_LOGIN_ERROR_MESSAGE = 'GLUE42_SET_LOGIN_ERROR_MESSAGE';
140
- /**
141
- * @ReduxAction Throttle time for live reports has been set
142
- */
143
- exports.GLUE42_SET_THROTTLE_TIME = 'GLUE42_SET_THROTTLE_TIME';
144
- /**
145
- * @ReduxAction A snapshot report has been sent
146
- */
147
- exports.GLUE42_SEND_SNAPSHOT = 'GLUE42_SEND_SNAPSHOT';
148
- /**
149
- * @ReduxAction Live data has been sent to Glue42
150
- */
151
- exports.GLUE42_START_LIVE_DATA = 'GLUE42_START_LIVE_DATA';
152
- /**
153
- * @ReduxAction Live data is not longer sent to Glue42
154
- */
155
- exports.GLUE42_STOP_LIVE_DATA = 'GLUE42_STOP_LIVE_DATA';
156
- /**
157
- * @ReduxAction A Glue42 live report has started
158
- */
159
- exports.GLUE42_LIVE_REPORT_SET = 'GLUE42_LIVE_REPORT_SET';
160
- /**
161
- * @ReduxAction A Glue42 live report has stopped
162
- */
163
- exports.GLUE42_LIVE_REPORT_CLEAR = 'GLUE42_LIVE_REPORT_CLEAR';
164
- /**
165
- * @ReduxAction Glue43 is now available
166
- */
167
- exports.GLUE42_SET_AVAILABLE_ON = 'GLUE42_SET_AVAILABLE_ON';
168
- /**
169
- * @ReduxAction Glue43 is no longer available
170
- */
171
- exports.GLUE42_SET_AVAILABLE_OFF = 'GLUE42_SET_AVAILABLE_OFF';
172
- /**
173
- * @ReduxAction Glue43 is now running
174
- */
175
- exports.GLUE42_SET_RUNNING_ON = 'GLUE42_SET_RUNNING_ON';
176
- /**
177
- * @ReduxAction Glue43 is no longer running
178
- */
179
- exports.GLUE42_SET_RUNNING_OFF = 'SET_GLGLUE42_SET_RUNNING_OFFUE42_RUNNING_OFF';
180
132
  const PluginsSetPluginState = (pluginId, pluginState) => ({
181
133
  type: exports.PLUGINS_SET_PLUGIN_STATE,
182
134
  pluginId,
@@ -33,6 +33,14 @@ export declare const PLUS_MINUS_RULE_SUSPEND_ALL = "PLUS_MINUS_RULE_SUSPEND_ALL"
33
33
  * @ReduxAction All Plus Minus Rules have been unsuspended
34
34
  */
35
35
  export declare const PLUS_MINUS_RULE_UNSUSPEND_ALL = "PLUS_MINUS_RULE_UNSUSPEND_ALL";
36
+ /**
37
+ * @ReduxAction A Plus Minus Rule has been moved up
38
+ */
39
+ export declare const PLUS_MINUS_RULE_MOVE_UP = "PLUS_MINUS_RULE_MOVE_UP";
40
+ /**
41
+ * @ReduxAction A Plus Minus Rule has been moved down
42
+ */
43
+ export declare const PLUS_MINUS_RULE_MOVE_DOWN = "PLUS_MINUS_RULE_MOVE_DOWN";
36
44
  /**
37
45
  * @ReduxAction PlusMinus Module is ready
38
46
  */
@@ -57,6 +65,12 @@ export interface PlusMinusNudgeSuspendAllAction extends Redux.Action {
57
65
  }
58
66
  export interface PlusMinusNudgeUnSuspendAllAction extends Redux.Action {
59
67
  }
68
+ export interface PlusMinusMoveUpAction extends Redux.Action {
69
+ plusMinusNudge: PlusMinusNudge;
70
+ }
71
+ export interface PlusMinusMoveDownAction extends Redux.Action {
72
+ plusMinusNudge: PlusMinusNudge;
73
+ }
60
74
  export interface PlusMinusReadyAction extends Redux.Action {
61
75
  plusMinusState: PlusMinusState;
62
76
  }
@@ -68,5 +82,7 @@ export declare const PlusMinusNudgeSuspend: (plusMinusNudge: PlusMinusNudge) =>
68
82
  export declare const PlusMinusNudgeUnSuspend: (plusMinusNudge: PlusMinusNudge) => PlusMinusNudgeUnSuspendAction;
69
83
  export declare const PlusMinusNudgeSuspendAll: () => PlusMinusNudgeSuspendAllAction;
70
84
  export declare const PlusMinusNudgeUnSuspendAll: () => PlusMinusNudgeUnSuspendAllAction;
85
+ export declare const PlusMinusMoveUp: (plusMinusNudge: PlusMinusNudge) => PlusMinusMoveUpAction;
86
+ export declare const PlusMinusMoveDown: (plusMinusNudge: PlusMinusNudge) => PlusMinusMoveDownAction;
71
87
  export declare const PlusMinusReady: (plusMinusState: PlusMinusState) => PlusMinusReadyAction;
72
88
  export declare const PlusMinusReducer: Redux.Reducer<PlusMinusState>;