@adaptabletools/adaptable-cjs 18.0.0-canary.2 → 18.0.0-canary.21

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 (369) hide show
  1. package/agGrid.d.ts +4 -21
  2. package/agGrid.js +5 -21
  3. package/base.css +22 -8
  4. package/base.css.map +1 -1
  5. package/index.css +101 -75
  6. package/index.css.map +1 -1
  7. package/package.json +4 -5
  8. package/src/AdaptableInterfaces/IAdaptable.d.ts +59 -108
  9. package/src/AdaptableOptions/AdaptableOptions.d.ts +7 -7
  10. package/src/AdaptableOptions/ColumnFilterOptions.d.ts +11 -4
  11. package/src/AdaptableOptions/ColumnOptions.d.ts +9 -4
  12. package/src/AdaptableOptions/CommentOptions.d.ts +33 -0
  13. package/src/AdaptableOptions/GroupingOptions.d.ts +0 -7
  14. package/src/AdaptableOptions/MenuOptions.d.ts +6 -54
  15. package/src/AdaptableOptions/MenuOptions.js +72 -75
  16. package/src/AdaptableOptions/{NotesOptions.d.ts → NoteOptions.d.ts} +7 -4
  17. package/src/AdaptableOptions/StateOptions.d.ts +6 -0
  18. package/src/AdaptableOptions/UserInterfaceOptions.d.ts +17 -0
  19. package/src/Api/AdaptableApi.d.ts +9 -4
  20. package/src/Api/BulkUpdateApi.d.ts +0 -5
  21. package/src/Api/ColumnApi.d.ts +4 -0
  22. package/src/Api/CommentApi.d.ts +13 -14
  23. package/src/Api/ConfigApi.d.ts +4 -5
  24. package/src/Api/EventApi.d.ts +7 -9
  25. package/src/Api/Events/AdaptableReady.d.ts +3 -3
  26. package/src/Api/Events/CommentChanged.d.ts +11 -0
  27. package/src/Api/Events/GridDataChanged.d.ts +4 -4
  28. package/src/Api/GridApi.d.ts +23 -13
  29. package/src/Api/Implementation/ActionColumnApiImpl.d.ts +2 -0
  30. package/src/Api/Implementation/ActionColumnApiImpl.js +30 -0
  31. package/src/Api/Implementation/AdaptableApiImpl.d.ts +3 -2
  32. package/src/Api/Implementation/AdaptableApiImpl.js +5 -2
  33. package/src/Api/Implementation/ApiBase.d.ts +5 -3
  34. package/src/Api/Implementation/ApiBase.js +8 -2
  35. package/src/Api/Implementation/BulkUpdateApiImpl.d.ts +0 -1
  36. package/src/Api/Implementation/BulkUpdateApiImpl.js +0 -4
  37. package/src/Api/Implementation/CellSummaryApiImpl.d.ts +0 -5
  38. package/src/Api/Implementation/CellSummaryApiImpl.js +2 -23
  39. package/src/Api/Implementation/ColumnApiImpl.d.ts +1 -0
  40. package/src/Api/Implementation/ColumnApiImpl.js +10 -0
  41. package/src/Api/Implementation/CommentsApiImpl.d.ts +5 -2
  42. package/src/Api/Implementation/CommentsApiImpl.js +7 -1
  43. package/src/Api/Implementation/ConfigApiImpl.d.ts +2 -2
  44. package/src/Api/Implementation/ConfigApiImpl.js +24 -13
  45. package/src/Api/Implementation/GridApiImpl.d.ts +6 -3
  46. package/src/Api/Implementation/GridApiImpl.js +51 -14
  47. package/src/Api/Implementation/LayoutApiImpl.d.ts +3 -0
  48. package/src/Api/Implementation/LayoutApiImpl.js +18 -0
  49. package/src/Api/Implementation/NoteApiImpl.d.ts +18 -0
  50. package/src/Api/Implementation/NoteApiImpl.js +45 -0
  51. package/src/Api/Implementation/OptionsApiImpl.d.ts +4 -4
  52. package/src/Api/Implementation/OptionsApiImpl.js +4 -4
  53. package/src/Api/Implementation/ScopeApiImpl.d.ts +2 -0
  54. package/src/Api/Implementation/ScopeApiImpl.js +20 -7
  55. package/src/Api/Implementation/StatusBarApiImpl.d.ts +0 -1
  56. package/src/Api/Implementation/StatusBarApiImpl.js +0 -3
  57. package/src/Api/Implementation/ToolPanelApiImpl.js +6 -6
  58. package/src/Api/Implementation/UserInterfaceApiImpl.d.ts +0 -3
  59. package/src/Api/Implementation/UserInterfaceApiImpl.js +0 -8
  60. package/src/Api/Internal/ActionRowInternalApi.d.ts +6 -1
  61. package/src/Api/Internal/ActionRowInternalApi.js +119 -1
  62. package/src/Api/Internal/AdaptableInternalApi.d.ts +6 -7
  63. package/src/Api/Internal/AdaptableInternalApi.js +21 -19
  64. package/src/Api/Internal/CalculatedColumnInternalApi.d.ts +2 -0
  65. package/src/Api/Internal/CalculatedColumnInternalApi.js +72 -0
  66. package/src/Api/Internal/ColumnFilterInternalApi.d.ts +2 -0
  67. package/src/Api/Internal/ColumnFilterInternalApi.js +23 -1
  68. package/src/Api/Internal/ColumnInternalApi.d.ts +4 -1
  69. package/src/Api/Internal/ColumnInternalApi.js +12 -0
  70. package/src/Api/Internal/CommentsInternalApi.d.ts +4 -0
  71. package/src/Api/Internal/CommentsInternalApi.js +18 -0
  72. package/src/Api/Internal/CustomSortInternalApi.d.ts +3 -2
  73. package/src/Api/Internal/CustomSortInternalApi.js +32 -1
  74. package/src/Api/Internal/DataSetInternalApi.js +1 -1
  75. package/src/Api/Internal/ExportInternalApi.d.ts +2 -1
  76. package/src/Api/Internal/ExportInternalApi.js +4 -1
  77. package/src/Api/Internal/Fdc3InternalApi.js +2 -2
  78. package/src/Api/Internal/FormatColumnInternalApi.js +3 -2
  79. package/src/Api/Internal/FreeTextColumnInternalApi.d.ts +2 -0
  80. package/src/Api/Internal/FreeTextColumnInternalApi.js +61 -0
  81. package/src/Api/Internal/GridFilterInternalApi.d.ts +5 -0
  82. package/src/Api/Internal/GridFilterInternalApi.js +7 -1
  83. package/src/Api/Internal/GridInternalApi.d.ts +23 -3
  84. package/src/Api/Internal/GridInternalApi.js +141 -7
  85. package/src/Api/Internal/LayoutInternalApi.d.ts +1 -0
  86. package/src/Api/Internal/LayoutInternalApi.js +16 -0
  87. package/src/Api/Internal/NoteInternalApi.d.ts +4 -0
  88. package/src/Api/Internal/NoteInternalApi.js +18 -0
  89. package/src/Api/Internal/TeamSharingInternalApi.js +1 -1
  90. package/src/Api/InteropioPluginApi.d.ts +2 -2
  91. package/src/Api/LayoutApi.d.ts +15 -0
  92. package/src/Api/NoteApi.d.ts +48 -0
  93. package/src/Api/OptionsApi.d.ts +8 -8
  94. package/src/Api/ScopeApi.d.ts +10 -0
  95. package/src/Api/UserInterfaceApi.d.ts +0 -11
  96. package/src/EnvVars.d.ts +3 -0
  97. package/src/EnvVars.js +8 -0
  98. package/src/PredefinedConfig/AdaptableState.d.ts +2 -2
  99. package/src/PredefinedConfig/CommentState.d.ts +27 -23
  100. package/src/PredefinedConfig/Common/AdaptableColumn.d.ts +4 -0
  101. package/src/PredefinedConfig/Common/AdaptableIcon.d.ts +1 -1
  102. package/src/PredefinedConfig/Common/AdaptableScope.d.ts +4 -1
  103. package/src/PredefinedConfig/Common/AggregationColumns.d.ts +1 -0
  104. package/src/PredefinedConfig/Common/AggregationColumns.js +5 -1
  105. package/src/PredefinedConfig/Common/DataUpdateConfig.d.ts +4 -0
  106. package/src/PredefinedConfig/Common/Enums.d.ts +2 -1
  107. package/src/PredefinedConfig/Common/Enums.js +1 -0
  108. package/src/PredefinedConfig/Common/Menu.d.ts +15 -1
  109. package/src/PredefinedConfig/Common/Menu.js +98 -0
  110. package/src/PredefinedConfig/Common/RowSummary.d.ts +21 -0
  111. package/src/PredefinedConfig/Common/RowSummary.js +20 -0
  112. package/src/PredefinedConfig/Common/TransposeConfig.d.ts +30 -0
  113. package/src/PredefinedConfig/Common/Types.d.ts +4 -4
  114. package/src/PredefinedConfig/Common/Types.js +4 -1
  115. package/src/PredefinedConfig/LayoutState.d.ts +5 -0
  116. package/src/PredefinedConfig/{NotesState.d.ts → NoteState.d.ts} +12 -22
  117. package/src/PredefinedConfig/PredefinedConfig.d.ts +3 -3
  118. package/src/PredefinedConfig/Selection/GridCell.d.ts +13 -0
  119. package/src/PredefinedConfig/SystemState.d.ts +9 -3
  120. package/src/Redux/ActionsReducers/LayoutRedux.d.ts +9 -0
  121. package/src/Redux/ActionsReducers/LayoutRedux.js +34 -11
  122. package/src/Redux/ActionsReducers/NoteRedux.d.ts +38 -0
  123. package/src/Redux/ActionsReducers/NoteRedux.js +89 -0
  124. package/src/Redux/ActionsReducers/SystemRedux.d.ts +6 -1
  125. package/src/Redux/ActionsReducers/SystemRedux.js +19 -6
  126. package/src/Redux/Store/AdaptableStore.d.ts +4 -6
  127. package/src/Redux/Store/AdaptableStore.js +66 -76
  128. package/src/Redux/Store/Interface/IAdaptableStore.d.ts +8 -2
  129. package/src/Strategy/AdaptableModuleBase.d.ts +8 -8
  130. package/src/Strategy/AdaptableModuleBase.js +13 -15
  131. package/src/Strategy/AlertModule.d.ts +1 -2
  132. package/src/Strategy/AlertModule.js +3 -56
  133. package/src/Strategy/BulkUpdateModule.js +1 -1
  134. package/src/Strategy/CalculatedColumnModule.d.ts +2 -3
  135. package/src/Strategy/CalculatedColumnModule.js +6 -26
  136. package/src/Strategy/CellSummaryModule.d.ts +8 -6
  137. package/src/Strategy/CellSummaryModule.js +78 -23
  138. package/src/Strategy/ChartingModule.d.ts +0 -1
  139. package/src/Strategy/ChartingModule.js +2 -22
  140. package/src/Strategy/ColumnFilterModule.d.ts +2 -3
  141. package/src/Strategy/ColumnFilterModule.js +44 -103
  142. package/src/Strategy/ColumnInfoModule.js +2 -0
  143. package/src/Strategy/{CommentsModule.d.ts → CommentModule.d.ts} +2 -5
  144. package/src/Strategy/{CommentsModule.js → CommentModule.js} +19 -25
  145. package/src/Strategy/CustomSortModule.js +3 -2
  146. package/src/Strategy/DashboardModule.d.ts +1 -2
  147. package/src/Strategy/DashboardModule.js +9 -15
  148. package/src/Strategy/DataChangeHistoryModule.d.ts +1 -0
  149. package/src/Strategy/DataChangeHistoryModule.js +3 -1
  150. package/src/Strategy/DataImportModule.d.ts +1 -1
  151. package/src/Strategy/DataImportModule.js +5 -5
  152. package/src/Strategy/DataSetModule.d.ts +1 -1
  153. package/src/Strategy/DataSetModule.js +1 -1
  154. package/src/Strategy/ExportModule.d.ts +1 -0
  155. package/src/Strategy/ExportModule.js +17 -2
  156. package/src/Strategy/Fdc3Module.js +3 -0
  157. package/src/Strategy/FlashingCellModule.d.ts +1 -2
  158. package/src/Strategy/FlashingCellModule.js +6 -19
  159. package/src/Strategy/FormatColumnModule.d.ts +0 -2
  160. package/src/Strategy/FormatColumnModule.js +6 -51
  161. package/src/Strategy/FreeTextColumnModule.d.ts +0 -1
  162. package/src/Strategy/FreeTextColumnModule.js +1 -31
  163. package/src/Strategy/GridFilterModule.d.ts +0 -1
  164. package/src/Strategy/GridFilterModule.js +0 -37
  165. package/src/Strategy/GridInfoModule.js +2 -0
  166. package/src/Strategy/Interface/IModule.d.ts +0 -1
  167. package/src/Strategy/LayoutModule.d.ts +9 -3
  168. package/src/Strategy/LayoutModule.js +148 -62
  169. package/src/Strategy/NamedQueryModule.d.ts +0 -1
  170. package/src/Strategy/NamedQueryModule.js +0 -19
  171. package/src/Strategy/{NotesModule.d.ts → NoteModule.d.ts} +2 -1
  172. package/src/Strategy/NoteModule.js +62 -0
  173. package/src/Strategy/PlusMinusModule.d.ts +1 -1
  174. package/src/Strategy/PlusMinusModule.js +2 -2
  175. package/src/Strategy/ScheduleModule.d.ts +1 -1
  176. package/src/Strategy/ScheduleModule.js +1 -1
  177. package/src/Strategy/SettingsPanelModule.js +3 -3
  178. package/src/Strategy/ShortcutModule.d.ts +1 -1
  179. package/src/Strategy/ShortcutModule.js +1 -1
  180. package/src/Strategy/SmartEditModule.js +1 -1
  181. package/src/Strategy/StyledColumnModule.d.ts +1 -1
  182. package/src/Strategy/StyledColumnModule.js +26 -26
  183. package/src/Strategy/SystemStatusModule.js +2 -2
  184. package/src/Strategy/TeamSharingModule.d.ts +1 -0
  185. package/src/Strategy/TeamSharingModule.js +5 -5
  186. package/src/Strategy/ToolPanelModule.d.ts +0 -1
  187. package/src/Strategy/ToolPanelModule.js +0 -23
  188. package/src/Strategy/Utilities/getScopeViewItems.js +3 -0
  189. package/src/Utilities/Constants/DocumentationLinkConstants.js +1 -1
  190. package/src/Utilities/Constants/GeneralConstants.d.ts +1 -0
  191. package/src/Utilities/Constants/GeneralConstants.js +3 -2
  192. package/src/Utilities/Constants/ModuleConstants.d.ts +6 -6
  193. package/src/Utilities/Constants/ModuleConstants.js +7 -7
  194. package/src/Utilities/Defaults/DefaultSettingsPanel.js +7 -6
  195. package/src/Utilities/ExpressionFunctions/aggregatedScalarExpressionFunctions.d.ts +3 -2
  196. package/src/Utilities/ExpressionFunctions/aggregatedScalarExpressionFunctions.js +430 -1
  197. package/src/Utilities/ExpressionFunctions/observableExpressionFunctions.js +3 -3
  198. package/src/Utilities/ExpressionFunctions/scalarAggregationHelper.js +1 -1
  199. package/src/Utilities/ExpressionFunctions/scalarExpressionFunctions.d.ts +1 -1
  200. package/src/Utilities/ExpressionFunctions/scalarExpressionFunctions.js +15 -0
  201. package/src/Utilities/Extensions/ArrayExtensions.d.ts +2 -0
  202. package/src/Utilities/Extensions/ArrayExtensions.js +6 -1
  203. package/src/Utilities/Helpers/AdaptableHelper.d.ts +3 -4
  204. package/src/Utilities/Helpers/AdaptableHelper.js +20 -60
  205. package/src/Utilities/Helpers/Helper.d.ts +2 -0
  206. package/src/Utilities/Helpers/Helper.js +6 -1
  207. package/src/Utilities/MenuItem.d.ts +7 -4
  208. package/src/Utilities/MenuItem.js +6 -3
  209. package/src/Utilities/ObjectFactory.d.ts +3 -3
  210. package/src/Utilities/ObjectFactory.js +4 -24
  211. package/src/Utilities/Services/AggregatedScalarLiveValue.d.ts +4 -2
  212. package/src/Utilities/Services/AggregatedScalarLiveValue.js +26 -19
  213. package/src/Utilities/Services/CellPopupService.js +2 -3
  214. package/src/Utilities/Services/Interface/IQueryLanguageService.d.ts +1 -1
  215. package/src/Utilities/Services/Interface/IReportService.d.ts +1 -4
  216. package/src/Utilities/Services/LicenseService/index.d.ts +3 -0
  217. package/src/Utilities/Services/LicenseService/index.js +1 -186
  218. package/src/Utilities/Services/MetamodelService.d.ts +1 -1
  219. package/src/Utilities/Services/MetamodelService.js +6 -3
  220. package/src/Utilities/Services/ModuleService.js +4 -0
  221. package/src/Utilities/Services/QueryLanguageService.d.ts +1 -1
  222. package/src/Utilities/Services/QueryLanguageService.js +4 -3
  223. package/src/Utilities/Services/ReportService.d.ts +7 -5
  224. package/src/Utilities/Services/ReportService.js +238 -22
  225. package/src/Utilities/Services/RowEditService.d.ts +3 -2
  226. package/src/Utilities/Services/RowEditService.js +3 -1
  227. package/src/Utilities/adaptableQlUtils.d.ts +2 -0
  228. package/src/Utilities/adaptableQlUtils.js +18 -0
  229. package/src/Utilities/license/decode.js +1 -70
  230. package/src/Utilities/license/hashing.js +1 -47
  231. package/src/View/AdaptableView.js +1 -3
  232. package/src/View/AdaptableViewFactory.js +2 -2
  233. package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/ConfigurationWizard.js +2 -2
  234. package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/UIOptions/UIOptionsStatusbarForm.js +1 -1
  235. package/src/View/BulkUpdate/BulkUpdatePopup.js +1 -1
  236. package/src/View/CalculatedColumn/Wizard/CalculatedColumnWizard.js +3 -3
  237. package/src/View/CalculatedColumn/utils.d.ts +1 -1
  238. package/src/View/CellSummary/CellSummaryPopup.js +1 -1
  239. package/src/View/Comments/CommentsEditor.js +24 -11
  240. package/src/View/Comments/CommentsPopup.js +20 -11
  241. package/src/View/Components/AdaptableDateInput/index.d.ts +1 -1
  242. package/src/View/Components/AdaptableInput/AdaptableDateInlineInput.d.ts +5 -0
  243. package/src/View/Components/AdaptableInput/AdaptableDateInlineInput.js +46 -0
  244. package/src/View/Components/AdaptableObjectList/AdaptableObjectList.js +5 -2
  245. package/src/View/Components/CellPopup/index.d.ts +1 -0
  246. package/src/View/Components/CellPopup/index.js +5 -2
  247. package/src/View/Components/FilterForm/FilterForm.js +20 -12
  248. package/src/View/Components/FilterForm/QuickFilterForm.js +15 -8
  249. package/src/View/Components/FilterForm/QuickFilterValues.js +39 -23
  250. package/src/View/Components/NewScopeComponent.js +34 -1
  251. package/src/View/Components/Popups/AdaptableLoadingScreen.d.ts +6 -5
  252. package/src/View/Components/Popups/AdaptableLoadingScreen.js +19 -9
  253. package/src/View/Components/Popups/AdaptableToaster.js +1 -1
  254. package/src/View/Components/Popups/GridCellPopup/GridCellPopup.js +7 -7
  255. package/src/View/Components/Popups/WindowPopups/windowFactory.d.ts +1 -0
  256. package/src/View/Components/Popups/WindowPopups/windowFactory.js +4 -1
  257. package/src/View/Components/Selectors/PermittedValuesSelector.js +2 -2
  258. package/src/View/Components/ValueSelector/index.d.ts +1 -0
  259. package/src/View/Components/ValueSelector/index.js +2 -2
  260. package/src/View/CustomSort/CustomSortSummary.js +1 -1
  261. package/src/View/DataChangeHistory/DataChangeHistoryGrid.js +8 -9
  262. package/src/View/FreeTextColumn/FreeTextColumnSummary.js +1 -1
  263. package/src/View/FreeTextColumn/Wizard/FreeTextColumnWizard.js +3 -1
  264. package/src/View/GridFilter/GridFilterViewPanel.js +9 -5
  265. package/src/View/GridFilter/useGridFilterExpressionEditor.js +1 -1
  266. package/src/View/GridInfo/GridInfoPopup/GridInfoPopup.js +2 -3
  267. package/src/View/Layout/LayoutViewPanel.js +2 -1
  268. package/src/View/Layout/TransposedPopup.d.ts +3 -0
  269. package/src/View/Layout/TransposedPopup.js +200 -0
  270. package/src/View/Layout/Wizard/LayoutWizard.js +36 -3
  271. package/src/View/Layout/Wizard/sections/ColumnsSection.js +1 -1
  272. package/src/View/Layout/Wizard/sections/RowSummarySection.d.ts +9 -0
  273. package/src/View/Layout/Wizard/sections/RowSummarySection.js +181 -0
  274. package/src/View/License/LicenseWatermark.js +1 -66
  275. package/src/View/Note/NotePopup.d.ts +2 -0
  276. package/src/View/{Notes/NotesPopup.js → Note/NotePopup.js} +19 -19
  277. package/src/View/SpecialColumnSettingsWizardStep.js +4 -4
  278. package/src/View/Theme/ThemeSelector.js +2 -2
  279. package/src/agGrid/ActionColumnRenderer.js +7 -6
  280. package/src/agGrid/Adaptable.d.ts +3 -455
  281. package/src/agGrid/Adaptable.js +7 -5291
  282. package/src/agGrid/AdaptableAgGrid.d.ts +354 -0
  283. package/src/agGrid/AdaptableAgGrid.js +3972 -0
  284. package/src/agGrid/AdaptableLogger.js +78 -13
  285. package/src/agGrid/AgGridAdapter.d.ts +64 -0
  286. package/src/agGrid/AgGridAdapter.js +590 -0
  287. package/src/agGrid/AgGridColumnAdapter.d.ts +56 -0
  288. package/src/agGrid/AgGridColumnAdapter.js +836 -0
  289. package/src/agGrid/AgGridMenuAdapter.d.ts +28 -0
  290. package/src/agGrid/AgGridMenuAdapter.js +282 -0
  291. package/src/agGrid/AgGridOptionsService.d.ts +15 -0
  292. package/src/agGrid/AgGridOptionsService.js +80 -0
  293. package/src/agGrid/BadgeRenderer.js +1 -1
  294. package/src/agGrid/CheckboxRenderer.js +1 -1
  295. package/src/agGrid/FilterWrapper.d.ts +2 -2
  296. package/src/agGrid/FilterWrapper.js +1 -1
  297. package/src/agGrid/attachAddaptableColumnTypes.d.ts +12 -12
  298. package/src/agGrid/defaultAdaptableOptions.d.ts +3 -0
  299. package/src/{Utilities/Defaults/DefaultAdaptableOptions.js → agGrid/defaultAdaptableOptions.js} +74 -18
  300. package/src/agGrid/editors/AdaptableDateEditor/index.d.ts +1 -1
  301. package/src/agGrid/editors/AdaptableDateEditor/index.js +3 -3
  302. package/src/agGrid/editors/AdaptableNumberEditor/index.d.ts +2 -2
  303. package/src/agGrid/editors/AdaptableNumberEditor/index.js +2 -2
  304. package/src/agGrid/weightedAverage.d.ts +0 -2
  305. package/src/agGrid/weightedAverage.js +1 -56
  306. package/src/components/ColorPicker/ColorPicker.d.ts +1 -1
  307. package/src/components/Datepicker/index.d.ts +1 -1
  308. package/src/components/Datepicker/index.js +10 -2
  309. package/src/components/ExpressionEditor/QueryBuilder/QueryPredicateBuilder.js +2 -1
  310. package/src/components/ExpressionEditor/QueryBuilder/utils.d.ts +0 -1
  311. package/src/components/ExpressionEditor/QueryBuilder/utils.js +3 -17
  312. package/src/components/InfiniteTable/index.js +2 -2
  313. package/src/components/Input/index.d.ts +1 -2
  314. package/src/components/List/ListGroupItem/index.d.ts +1 -1
  315. package/src/components/Modal/index.d.ts +1 -0
  316. package/src/components/Modal/index.js +6 -4
  317. package/src/components/Select/Select.d.ts +3 -1
  318. package/src/components/Select/Select.js +4 -2
  319. package/src/components/Textarea/index.d.ts +2 -2
  320. package/src/components/icons/index.js +2 -0
  321. package/src/components/icons/note.js +2 -2
  322. package/src/components/icons/rows.d.ts +3 -0
  323. package/src/components/icons/rows.js +7 -0
  324. package/src/env.js +2 -2
  325. package/src/metamodel/adaptable.metamodel.d.ts +179 -25
  326. package/src/metamodel/adaptable.metamodel.js +1 -9316
  327. package/src/migration/AdaptableUpgradeHelper.d.ts +38 -0
  328. package/src/migration/AdaptableUpgradeHelper.js +52 -0
  329. package/src/migration/VersionUpgrade.d.ts +8 -0
  330. package/src/migration/VersionUpgrade.js +15 -0
  331. package/src/migration/VersionUpgrade17.d.ts +18 -0
  332. package/src/migration/VersionUpgrade17.js +347 -0
  333. package/src/migration/VersionUpgrade18.d.ts +5 -0
  334. package/src/migration/VersionUpgrade18.js +10 -0
  335. package/src/parser/src/parser.js +117 -1257
  336. package/src/parser/src/predicate/mapExpressionToQlPredicate.js +1 -1
  337. package/src/parser/src/predicate/mapQlPredicateToExpression.js +2 -1
  338. package/src/parser/src/types.d.ts +7 -2
  339. package/src/types.d.ts +26 -19
  340. package/tsconfig.cjs.tsbuildinfo +1 -1
  341. package/src/AdaptableOptions/CommentsOptions.d.ts +0 -28
  342. package/src/Api/Events/CommentsChangedInfo.d.ts +0 -5
  343. package/src/Api/Implementation/NotesApiImpl.d.ts +0 -16
  344. package/src/Api/Implementation/NotesApiImpl.js +0 -44
  345. package/src/Api/NotesApi.d.ts +0 -48
  346. package/src/PredefinedConfig/CellAddress.d.ts +0 -13
  347. package/src/PredefinedConfig/CellAddress.js +0 -5
  348. package/src/Redux/ActionsReducers/NotesRedux.d.ts +0 -39
  349. package/src/Redux/ActionsReducers/NotesRedux.js +0 -87
  350. package/src/Strategy/NotesModule.js +0 -62
  351. package/src/Utilities/Defaults/DefaultAdaptableOptions.d.ts +0 -2
  352. package/src/Utilities/Services/Interface/IRowEditService.d.ts +0 -3
  353. package/src/View/Components/ScopeComponent.d.ts +0 -24
  354. package/src/View/Components/ScopeComponent.js +0 -138
  355. package/src/View/Export/Wizard/ReportScopeWizard.d.ts +0 -17
  356. package/src/View/Export/Wizard/ReportScopeWizard.js +0 -52
  357. package/src/View/Notes/NotesPopup.d.ts +0 -2
  358. package/src/agGrid/agGridHelper.d.ts +0 -57
  359. package/src/agGrid/agGridHelper.js +0 -691
  360. package/src/agGrid/agGridMenuHelper.d.ts +0 -46
  361. package/src/agGrid/agGridMenuHelper.js +0 -673
  362. /package/src/AdaptableOptions/{CommentsOptions.js → CommentOptions.js} +0 -0
  363. /package/src/AdaptableOptions/{NotesOptions.js → NoteOptions.js} +0 -0
  364. /package/src/Api/Events/{CommentsChangedInfo.js → CommentChanged.js} +0 -0
  365. /package/src/Api/{NotesApi.js → NoteApi.js} +0 -0
  366. /package/src/PredefinedConfig/{NotesState.js → Common/TransposeConfig.js} +0 -0
  367. /package/src/{Utilities/Services/Interface/IRowEditService.js → PredefinedConfig/NoteState.js} +0 -0
  368. /package/src/View/{Notes → Note}/NoteEditor.d.ts +0 -0
  369. /package/src/View/{Notes → Note}/NoteEditor.js +0 -0
@@ -0,0 +1,836 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.AgGridColumnAdapter = void 0;
4
+ const tslib_1 = require("tslib");
5
+ const core_1 = require("ag-grid-community");
6
+ const merge_1 = tslib_1.__importDefault(require("lodash/merge"));
7
+ const FilterWrapper_1 = require("./FilterWrapper");
8
+ const FloatingFilterWrapper_1 = require("./FloatingFilterWrapper");
9
+ const StyleHelper_1 = require("../Utilities/Helpers/StyleHelper");
10
+ const StringExtensions_1 = tslib_1.__importDefault(require("../Utilities/Extensions/StringExtensions"));
11
+ const ObjectFactory_1 = require("../Utilities/ObjectFactory");
12
+ const clamp_1 = tslib_1.__importDefault(require("lodash/clamp"));
13
+ const tinycolor2_1 = tslib_1.__importDefault(require("tinycolor2"));
14
+ const UIHelper_1 = tslib_1.__importDefault(require("../View/UIHelper"));
15
+ const PercentBarRenderer_1 = require("./PercentBarRenderer");
16
+ const BadgeRenderer_1 = require("./BadgeRenderer");
17
+ const Helper_1 = tslib_1.__importDefault(require("../Utilities/Helpers/Helper"));
18
+ const RowSummary_1 = require("../PredefinedConfig/Common/RowSummary");
19
+ class AgGridColumnAdapter {
20
+ constructor(adaptableInstance) {
21
+ this.adaptableInstance = adaptableInstance;
22
+ this.colDefPropertyCache = new Map();
23
+ }
24
+ destroy() {
25
+ this.adaptableInstance = null;
26
+ this.colDefPropertyCache.clear();
27
+ this.colDefPropertyCache = null;
28
+ }
29
+ get adaptableApi() {
30
+ return this.adaptableInstance.api;
31
+ }
32
+ get adaptableOptions() {
33
+ return this.adaptableInstance.adaptableOptions;
34
+ }
35
+ get agGridApi() {
36
+ return this.adaptableInstance.agGridAdapter.getAgGridApi();
37
+ }
38
+ setColDefProperty(col, propertyName, propertyGetter) {
39
+ var _a;
40
+ const colId = col.getColId();
41
+ const colDef = col.getColDef();
42
+ const colSetupInfo = {
43
+ col,
44
+ colDef,
45
+ colId,
46
+ };
47
+ const userKey = `user.${colId}.${propertyName}`;
48
+ const adaptableKey = `adaptable.${colId}.${propertyName}`;
49
+ const value = colDef[propertyName];
50
+ const isUserDefined = value !== this.colDefPropertyCache.get(adaptableKey);
51
+ if (isUserDefined) {
52
+ this.colDefPropertyCache.set(userKey, value);
53
+ }
54
+ const userValue = this.colDefPropertyCache.get(userKey);
55
+ const adaptableValue = propertyGetter(userValue);
56
+ if (adaptableValue != null) {
57
+ this.colDefPropertyCache.set(adaptableKey, adaptableValue);
58
+ }
59
+ let theValue = adaptableValue !== null && adaptableValue !== void 0 ? adaptableValue : userValue;
60
+ this.adaptableInstance.forPlugins((plugin) => {
61
+ if (plugin.interceptSetupColumnProperty) {
62
+ theValue = plugin.interceptSetupColumnProperty(colSetupInfo, propertyName, theValue, this.adaptableApi);
63
+ }
64
+ });
65
+ if (propertyName === 'aggFunc') {
66
+ if (colDef[propertyName] !== (theValue !== null && theValue !== void 0 ? theValue : null)) {
67
+ (_a = this.agGridApi) === null || _a === void 0 ? void 0 : _a.setColumnAggFunc(colId, theValue !== null && theValue !== void 0 ? theValue : null);
68
+ }
69
+ }
70
+ if (theValue === undefined && colDef[propertyName] === undefined) {
71
+ // already undefined, so don't set an own property to the same undefined value
72
+ return;
73
+ }
74
+ colDef[propertyName] = theValue;
75
+ }
76
+ getUserColDefProperty(columnId, propertyName) {
77
+ const userKey = `user.${columnId}.${propertyName}`;
78
+ return this.colDefPropertyCache.get(userKey);
79
+ }
80
+ setupColumns() {
81
+ const cols = this.agGridApi.getColumns();
82
+ // this needs to be here, before the other setup below
83
+ // so the setup methods below reference the correct columns in adaptable store
84
+ cols.forEach((col) => {
85
+ const colDef = col.getColDef();
86
+ const colId = col.getColId();
87
+ const abColumn = this.adaptableApi.columnApi.getColumnWithColumnId(colId);
88
+ const colSetupInfo = {
89
+ col,
90
+ colDef,
91
+ colId,
92
+ abColumn,
93
+ };
94
+ this.setupColumnCellRenderer(colSetupInfo);
95
+ this.setupColumnCellStyle(colSetupInfo);
96
+ this.setupColumnCellClass(colSetupInfo);
97
+ this.setupColumnTooltipValueGetter(colSetupInfo);
98
+ this.setupColumnValueGetter(colSetupInfo);
99
+ this.setupColumnFilter(colSetupInfo);
100
+ this.setupColumnFloatingFilter(colSetupInfo);
101
+ this.setupColumnValueFormatter(colSetupInfo);
102
+ this.setupColumnEditable(colSetupInfo);
103
+ this.setupColumnValueSetter(colSetupInfo);
104
+ this.setupColumnComparator(colSetupInfo);
105
+ this.setupColumnCellEditor(colSetupInfo);
106
+ this.setupColumnHeader(colSetupInfo);
107
+ this.setupColumnQuickFilerText(colSetupInfo);
108
+ this.setupColumnAllowedAggFuncs(colSetupInfo);
109
+ this.setupColumnKeyCreator(colSetupInfo);
110
+ // this is just to make sure that AG Grid does NOT infer the cellDataType
111
+ // https://github.com/AdaptableTools/adaptable/issues/2230 should render it obsolete
112
+ this.setupColumnCellDataType(colSetupInfo);
113
+ });
114
+ }
115
+ triggerSetupColumnKeyCreator(colId) {
116
+ const col = this.agGridApi.getColumn(colId);
117
+ const colDef = col.getColDef();
118
+ const abColumn = this.adaptableApi.columnApi.getColumnWithColumnId(colId);
119
+ const colSetupInfo = {
120
+ col,
121
+ colDef,
122
+ colId,
123
+ abColumn,
124
+ };
125
+ this.setupColumnKeyCreator(colSetupInfo);
126
+ }
127
+ setupColumnValueGetter({ col }) {
128
+ // need this here if we want plugins to intercept
129
+ this.setColDefProperty(col, 'valueGetter', (userValue) => {
130
+ return userValue;
131
+ });
132
+ }
133
+ setupColumnCellClass({ col, colId, abColumn }) {
134
+ this.setColDefProperty(col, 'cellClass', (userCellClass) => {
135
+ const formatColumns = this.adaptableApi.formatColumnApi.internalApi.getFormatColumnWithStyleClassNameForColumn(abColumn);
136
+ const quickSearchStyleClassName = this.adaptableApi.quickSearchApi.getQuickSearchStyle().ClassName;
137
+ const hasQuickSearchStyleClassName = StringExtensions_1.default.IsNotNullOrEmpty(quickSearchStyleClassName);
138
+ const cellClass = (params) => {
139
+ const gridCell = this.adaptableInstance.getGridCellFromRowNode(params.node, abColumn.columnId);
140
+ // if a Visual Data export is in progress, we are interested only in the Excel Style Class
141
+ if (this.adaptableApi.exportApi.internalApi.isVisualDataExportInProgress()) {
142
+ const userDefinedCellClass = typeof userCellClass === 'function' ? userCellClass(params) : userCellClass;
143
+ const cellClassKey = this.getExcelClassNameForCell(colId, gridCell.primaryKeyValue, userDefinedCellClass);
144
+ return this.adaptableApi.internalApi
145
+ .getReportService()
146
+ .getExcelStyleIdForCellClassKey(cellClassKey);
147
+ }
148
+ const isQuickSearchActive = hasQuickSearchStyleClassName && this.isQuickSearchActive(gridCell, params);
149
+ const editableClassName = this.getEditableCellClass(gridCell, params);
150
+ const readonlyClassName = this.getReadonlyCellClass(gridCell, params);
151
+ const highlightAlertClassName = this.getAlertCellClass(gridCell, params);
152
+ const flashingClassName = this.getFlashingCellClass(gridCell, params);
153
+ const styledColumn = this.adaptableApi.styledColumnApi.getStyledColumnForColumnId(colId);
154
+ const hasStyledColumn = !!styledColumn && !styledColumn.IsSuspended;
155
+ const noteClassName = this.getNoteCellClassName(gridCell, params);
156
+ const commentsClassName = this.getCommentCellClassName(gridCell, params);
157
+ const returnValue = [
158
+ typeof userCellClass === 'function' ? userCellClass(params) : userCellClass,
159
+ !hasStyledColumn && formatColumns.length
160
+ ? this.getFormatColumnCellClass(formatColumns, abColumn, params)
161
+ : null,
162
+ isQuickSearchActive ? quickSearchStyleClassName : null,
163
+ editableClassName,
164
+ readonlyClassName,
165
+ highlightAlertClassName,
166
+ flashingClassName,
167
+ noteClassName,
168
+ commentsClassName,
169
+ ]
170
+ // we flatten the array because some rules ('userCellClass' etc) might return a string[]
171
+ .flat()
172
+ .filter((x) => !!x);
173
+ const result = returnValue.length ? returnValue : undefined;
174
+ return result;
175
+ };
176
+ return cellClass;
177
+ });
178
+ }
179
+ setupColumnCellStyle({ col, colId, abColumn }) {
180
+ this.setColDefProperty(col, 'cellStyle', (userCellStyle) => {
181
+ const quickSearchStyle = this.getQuickSearchCellStyle();
182
+ const hasQuickSearchStyle = quickSearchStyle != undefined;
183
+ const cellStyle = (params) => {
184
+ const gridCell = this.adaptableInstance.getGridCellFromRowNode(params.node, abColumn.columnId);
185
+ const isQuickSearchActive = hasQuickSearchStyle && this.isQuickSearchActive(gridCell, params);
186
+ const userDefined = typeof userCellStyle === 'function' ? userCellStyle(params) : userCellStyle;
187
+ const result = Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, userDefined), this.getReadOnlyCellStyle(gridCell, params)), this.getEditableCellStyle(gridCell, params)), this.getFormatColumnAndStyledColumnCellStyle(gridCell, params)), (isQuickSearchActive ? quickSearchStyle : {})), this.getAlertCellStyle(gridCell, params)), this.getFlashingCellStyle(gridCell, params)), this.getCellHighlightStyle(gridCell, params));
188
+ return (0, StyleHelper_1.normalizeStyleForAgGrid)(result);
189
+ };
190
+ return cellStyle;
191
+ });
192
+ }
193
+ setupColumnCellEditor({ colId, col }) {
194
+ const adaptableColumn = this.adaptableApi.columnApi.getColumnWithColumnId(colId);
195
+ const editLookUpItem = this.adaptableApi.userInterfaceApi.getEditLookUpItemForColumn(adaptableColumn);
196
+ const hasRichSelectCellEditor = this.adaptableInstance.agGridAdapter.isModulePresent(core_1.ModuleNames.RichSelectModule);
197
+ this.setColDefProperty(col, 'cellEditor', () => {
198
+ if (editLookUpItem) {
199
+ return hasRichSelectCellEditor ? 'agRichSelectCellEditor' : 'agSelectCellEditor';
200
+ }
201
+ });
202
+ this.setColDefProperty(col, 'cellEditorPopup', () => {
203
+ // as specified in https://www.ag-grid.com/react-data-grid/provided-cell-editors/#rich-select-cell-editor
204
+ // agRichSelectCellEditor should always set cellEditorPopup=true. Otherwise the editor will be clipped to the cell contents
205
+ if (editLookUpItem && hasRichSelectCellEditor) {
206
+ return true;
207
+ }
208
+ });
209
+ this.setColDefProperty(col, 'cellEditorParams', (params) => {
210
+ if (editLookUpItem) {
211
+ return (params) => {
212
+ const gridCell = this.adaptableInstance.getGridCellFromRowNode(params === null || params === void 0 ? void 0 : params.node, colId);
213
+ return {
214
+ values: this.adaptableApi.userInterfaceApi.getEditLookUpValuesForEditLookUpItem(editLookUpItem, gridCell),
215
+ };
216
+ };
217
+ }
218
+ });
219
+ }
220
+ setupColumnCellRenderer({ col, colId, abColumn }) {
221
+ this.setColDefProperty(col, 'cellRenderer', () => {
222
+ const styledColumn = this.adaptableApi.styledColumnApi.getStyledColumnForColumnId(abColumn.columnId);
223
+ if (styledColumn && !styledColumn.IsSuspended) {
224
+ if (styledColumn.PercentBarStyle) {
225
+ return (0, PercentBarRenderer_1.getPercentBarRendererForColumn)(styledColumn, abColumn, this.adaptableApi);
226
+ }
227
+ if (styledColumn.BadgeStyle) {
228
+ return (0, BadgeRenderer_1.getBadgeRendererForColumn)(styledColumn, abColumn, this.adaptableApi);
229
+ }
230
+ if (styledColumn.SparkLineStyle) {
231
+ return 'agSparklineCellRenderer';
232
+ }
233
+ }
234
+ });
235
+ this.setColDefProperty(col, 'cellRendererParams', (userDefined) => {
236
+ const styledColumn = this.adaptableApi.styledColumnApi.getStyledColumnForColumnId(abColumn.columnId);
237
+ if (styledColumn && !styledColumn.IsSuspended) {
238
+ if (styledColumn.SparkLineStyle) {
239
+ const sparklineOptions = (0, merge_1.default)({}, userDefined === null || userDefined === void 0 ? void 0 : userDefined.sparklineOptions, styledColumn.SparkLineStyle.options);
240
+ return Object.assign(Object.assign({}, userDefined), { sparklineOptions });
241
+ }
242
+ }
243
+ });
244
+ }
245
+ setupColumnTooltipValueGetter({ col, colId, abColumn }) {
246
+ let hasTooptip = false;
247
+ this.setColDefProperty(col, 'tooltipValueGetter', () => {
248
+ const styledColumn = this.adaptableApi.styledColumnApi.getStyledColumnForColumnId(colId);
249
+ if (styledColumn &&
250
+ !styledColumn.IsSuspended &&
251
+ styledColumn.PercentBarStyle &&
252
+ styledColumn.PercentBarStyle.ToolTipText) {
253
+ hasTooptip = true;
254
+ if (styledColumn === null || styledColumn === void 0 ? void 0 : styledColumn.PercentBarStyle) {
255
+ return (params) => {
256
+ const min = this.adaptableApi.styledColumnApi.internalApi.getNumericStyleMinValue(styledColumn, abColumn, params.node, params.value);
257
+ const max = this.adaptableApi.styledColumnApi.internalApi.getNumericStyleMaxValue(styledColumn, abColumn, params.node, params.value);
258
+ const textOptions = styledColumn.PercentBarStyle.ToolTipText;
259
+ let returnValue = '';
260
+ if (textOptions.includes('CellValue')) {
261
+ returnValue = params.value;
262
+ }
263
+ if (textOptions.includes('PercentageValue')) {
264
+ const clampedValue = Helper_1.default.clamp(params.value, min, max);
265
+ const percentageValue = ((clampedValue - min) / (max - min)) * 100;
266
+ returnValue += ' ' + `(${percentageValue.toFixed(0)}%)`;
267
+ }
268
+ return returnValue ? returnValue : params.value;
269
+ };
270
+ }
271
+ }
272
+ });
273
+ }
274
+ setupColumnQuickFilerText({ col, abColumn }) {
275
+ this.setColDefProperty(col, 'getQuickFilterText', (userGetQuickFilterText) => {
276
+ if (userGetQuickFilterText) {
277
+ return userGetQuickFilterText;
278
+ }
279
+ return (params) => {
280
+ const visibleCoulmnsMap = this.adaptableApi.layoutApi.getCurrentVisibleColumnIdsMap();
281
+ const isVisible = visibleCoulmnsMap[abColumn.columnId];
282
+ if (!isVisible) {
283
+ return '';
284
+ }
285
+ return this.adaptableInstance.getDisplayValueFromRowNode(params.node, abColumn.columnId);
286
+ };
287
+ });
288
+ }
289
+ setupColumnAllowedAggFuncs({ col, abColumn }) {
290
+ this.setColDefProperty(col, 'allowedAggFuncs', () => {
291
+ return abColumn.availableAggregationFunctions;
292
+ });
293
+ }
294
+ setupColumnKeyCreator(columnSetupInfo) {
295
+ const { col, abColumn } = columnSetupInfo;
296
+ const adaptableOptions = this.adaptableOptions;
297
+ this.setColDefProperty(col, 'keyCreator', (userPropertyValue) => {
298
+ return (params) => {
299
+ var _a;
300
+ if (typeof userPropertyValue === 'function') {
301
+ return userPropertyValue(params);
302
+ }
303
+ const value = params.value;
304
+ if (this.adaptableInstance.agGridAdapter.getLiveGridOptions().groupAllowUnbalanced) {
305
+ return value;
306
+ }
307
+ const balancedGroupsKey = (_a = adaptableOptions.groupingOptions) === null || _a === void 0 ? void 0 : _a.balancedGroupsKey;
308
+ if (!balancedGroupsKey) {
309
+ return value;
310
+ }
311
+ let groupBalancedGroupsUnderKeyValue = typeof balancedGroupsKey === 'function'
312
+ ? balancedGroupsKey({
313
+ adaptableApi: this.adaptableApi,
314
+ userName: this.adaptableOptions.userName,
315
+ adaptableId: this.adaptableOptions.adaptableId,
316
+ adaptableColumn: abColumn,
317
+ params,
318
+ })
319
+ : balancedGroupsKey;
320
+ return value === null || value === undefined ? groupBalancedGroupsUnderKeyValue : value;
321
+ };
322
+ });
323
+ }
324
+ setupColumnCellDataType(columnSetupInfo) {
325
+ const { col } = columnSetupInfo;
326
+ // AG Grid introduced since v30.x an inferred cellDataType
327
+ // the problem is that it breaks the default value formatter and/or editor (especially for Date columns)
328
+ this.setColDefProperty(col, 'cellDataType', () => {
329
+ return false;
330
+ });
331
+ }
332
+ setupColumnHeader({ col, abColumn }) {
333
+ var _a, _b;
334
+ const previousColumnHeader = (_a = col === null || col === void 0 ? void 0 : col.getColDef()) === null || _a === void 0 ? void 0 : _a.headerName;
335
+ this.setColDefProperty(col, 'headerName', (userHeaderName) => {
336
+ var _a;
337
+ // set the default to the AG Grid provided values
338
+ // from https://github.com/ag-grid/ag-grid/blob/v26.1.0/community-modules/core/src/ts/columns/columnModel.ts#L2515
339
+ let resultHeaderName = userHeaderName !== null && userHeaderName !== void 0 ? userHeaderName : StringExtensions_1.default.CamelCaseToHumanText(col.getColDef().field);
340
+ const layoutCustomHeader = (_a = this.adaptableApi.layoutApi.getCurrentLayout().ColumnHeadersMap) === null || _a === void 0 ? void 0 : _a[col.getColId()];
341
+ if (layoutCustomHeader) {
342
+ resultHeaderName = layoutCustomHeader;
343
+ }
344
+ // required here for the initial layout rendering
345
+ // Removed by JW, 3 october 2023; i don't think we need it and it overrides stuff unnecessarily
346
+ // abColumn.friendlyName = resultHeaderName;
347
+ return resultHeaderName;
348
+ });
349
+ const newColumnHeader = (_b = col === null || col === void 0 ? void 0 : col.getColDef()) === null || _b === void 0 ? void 0 : _b.headerName;
350
+ return previousColumnHeader !== newColumnHeader;
351
+ }
352
+ setupColumnFilter({ col, colDef }) {
353
+ this.setColDefProperty(col, 'filter', () => {
354
+ if (!colDef.filter) {
355
+ return;
356
+ }
357
+ if (!this.adaptableOptions.columnFilterOptions.useAdaptableColumnFiltering) {
358
+ return;
359
+ }
360
+ this.agGridApi.destroyFilter(col);
361
+ return (0, FilterWrapper_1.FilterWrapperFactory)(this.adaptableInstance);
362
+ });
363
+ }
364
+ setupColumnFloatingFilter({ col, colDef }) {
365
+ const isFloatingFilterDisabled = !colDef.floatingFilter ||
366
+ !this.adaptableOptions.columnFilterOptions.useAdaptableColumnFiltering;
367
+ this.adaptableOptions.columnFilterOptions.quickFilterOptions.showQuickFilter;
368
+ this.setColDefProperty(col, 'floatingFilterComponent', () => {
369
+ if (isFloatingFilterDisabled) {
370
+ return;
371
+ }
372
+ return (0, FloatingFilterWrapper_1.FloatingFilterWrapperFactory)(this.adaptableInstance);
373
+ });
374
+ this.setColDefProperty(col, 'floatingFilter', (original_floatingFilter) => {
375
+ if (isFloatingFilterDisabled) {
376
+ return;
377
+ }
378
+ return (0, FloatingFilterWrapper_1.FloatingFilterWrapperFactory)(this.adaptableInstance);
379
+ });
380
+ this.setColDefProperty(col, 'suppressFloatingFilterButton', () => {
381
+ return !isFloatingFilterDisabled;
382
+ });
383
+ }
384
+ setupColumnValueFormatter({ col, abColumn }) {
385
+ this.setColDefProperty(col, 'valueFormatter', (userPropertyValue) => {
386
+ const activeFormatColumnsWithDisplayFormat = this.adaptableApi.formatColumnApi.internalApi.getFormatColumnsWithDisplayFormatForColumn(abColumn);
387
+ if (!activeFormatColumnsWithDisplayFormat.length) {
388
+ return;
389
+ }
390
+ return (params) => {
391
+ const { node, value } = params;
392
+ const mostRelevantFormatColumn = this.adaptableApi.formatColumnApi.internalApi.getMostRelevantFormatColumnForColumn(activeFormatColumnsWithDisplayFormat, abColumn, { node, value });
393
+ if (!mostRelevantFormatColumn) {
394
+ // ALL FormatColumns are conditional and NONE of them are relevant for this row
395
+ return value;
396
+ }
397
+ const options = mostRelevantFormatColumn.DisplayFormat.Options;
398
+ if (mostRelevantFormatColumn.DisplayFormat.Formatter === 'NumberFormatter') {
399
+ // change the Number format - if the scope allows it
400
+ if (this.adaptableApi.scopeApi.isColumnInNumericScope(abColumn, mostRelevantFormatColumn.Scope)) {
401
+ return this.adaptableApi.formatColumnApi.internalApi.getNumberFormattedValue(params.value, params.node, abColumn, options);
402
+ }
403
+ }
404
+ if (mostRelevantFormatColumn.DisplayFormat.Formatter === 'DateFormatter') {
405
+ // change the Date format - if the scope allows it
406
+ if (this.adaptableApi.scopeApi.isColumnInDateScope(abColumn, mostRelevantFormatColumn.Scope)) {
407
+ return this.adaptableApi.formatColumnApi.internalApi.getDateFormattedValue(params.value, params.node, abColumn, options);
408
+ }
409
+ }
410
+ if (mostRelevantFormatColumn.DisplayFormat.Formatter === 'StringFormatter') {
411
+ // change the String format - if the scope allows it
412
+ if (this.adaptableApi.scopeApi.isColumnInStringsScope(abColumn, mostRelevantFormatColumn.Scope)) {
413
+ return this.adaptableApi.formatColumnApi.internalApi.getStringFormattedValue(params.value, params.node, abColumn, options);
414
+ }
415
+ }
416
+ // should NEVER arrive at this line, but just to be sure
417
+ return value;
418
+ };
419
+ });
420
+ }
421
+ setupColumnEditable({ col }) {
422
+ this.setColDefProperty(col, 'editable', (userValue) => {
423
+ // if AG Grid defines the column as NOT editable, we don't mess with it
424
+ if (typeof userValue === 'boolean' && userValue === false) {
425
+ return userValue;
426
+ }
427
+ const cellEditableFn = this.adaptableOptions.editOptions.isCellEditable;
428
+ const editableCallback = (params) => {
429
+ // Adaptable Row Summarie rows are not editable
430
+ if (params.node.data[RowSummary_1.ROW_SUMMARY_ROW_ID]) {
431
+ return false;
432
+ }
433
+ if (!cellEditableFn) {
434
+ return typeof userValue === 'function' ? userValue(params) : userValue;
435
+ }
436
+ const gridCell = this.adaptableInstance.getGridCellFromRowNode(params.node, params.column.getColId());
437
+ const cellEditableContext = {
438
+ gridCell,
439
+ adaptableApi: this.adaptableApi,
440
+ userName: this.adaptableOptions.userName,
441
+ adaptableId: this.adaptableOptions.adaptableId,
442
+ };
443
+ return cellEditableFn(cellEditableContext);
444
+ };
445
+ return editableCallback;
446
+ });
447
+ }
448
+ setupColumnValueSetter({ col, colId, abColumn }) {
449
+ this.setColDefProperty(col, 'valueSetter', (userValueSetter) => {
450
+ var _a;
451
+ const preventEditAlertsForColumn = this.adaptableApi.alertApi.internalApi
452
+ .getAlertDefinitionsWithPreventEdit()
453
+ .filter((alertDefinition) => {
454
+ return this.adaptableApi.scopeApi.isColumnInScope(abColumn, alertDefinition.Scope);
455
+ });
456
+ const noValidations = !preventEditAlertsForColumn.length && !((_a = this.adaptableOptions.editOptions) === null || _a === void 0 ? void 0 : _a.validateOnServer);
457
+ if (noValidations) {
458
+ return;
459
+ }
460
+ const valueSetter = (params) => {
461
+ var _a;
462
+ const field = params.column.getColDef().field;
463
+ if (noValidations) {
464
+ //TODO also consider the case when userValueSetter is a string
465
+ if (typeof userValueSetter === 'function') {
466
+ return userValueSetter(params);
467
+ }
468
+ // we allowed it go reach this point
469
+ // just to run isCellEditable
470
+ // and since this has already run and we have no other validations
471
+ // just assign the new value and exit
472
+ if (field) {
473
+ params.data[field] = params.newValue;
474
+ }
475
+ return true;
476
+ }
477
+ const cellDataChangedInfo = this.adaptableApi.internalApi.buildDataChangedInfo({
478
+ oldValue: params.oldValue,
479
+ newValue: params.newValue,
480
+ column: this.adaptableApi.columnApi.getColumnWithColumnId(params.column.getColId()),
481
+ primaryKeyValue: this.adaptableInstance.getPrimaryKeyValueFromRowNode(params.node, params.api),
482
+ rowNode: params.node,
483
+ trigger: 'edit',
484
+ });
485
+ if (cellDataChangedInfo.oldValue === cellDataChangedInfo.newValue) {
486
+ return true;
487
+ }
488
+ /**
489
+ * Validate on the future row, with the new value.
490
+ * structuredClone fails, it contains functions.
491
+ */
492
+ const newRow = Object.assign(Object.assign({}, params.node), { data: Object.assign({}, params.node.data) });
493
+ newRow.data[field] = params.newValue;
494
+ const cellDataChangeInfoForSyncValidation = Object.assign(Object.assign({}, cellDataChangedInfo), { rowNode: newRow });
495
+ if (!this.adaptableInstance.ValidationService.performValidation(cellDataChangeInfoForSyncValidation)) {
496
+ return false;
497
+ }
498
+ const onServerValidationCompleted = () => { };
499
+ if ((_a = this.adaptableOptions.editOptions) === null || _a === void 0 ? void 0 : _a.validateOnServer) {
500
+ this.adaptableInstance.ValidationService.performServerValidation(cellDataChangedInfo, {
501
+ onServerValidationCompleted,
502
+ })();
503
+ }
504
+ //TODO also consider the case when userValueSetter is a string
505
+ if (typeof userValueSetter === 'function') {
506
+ return userValueSetter(params);
507
+ }
508
+ if (field) {
509
+ params.data[field] = params.newValue;
510
+ }
511
+ else {
512
+ throw `Cannot edit a column without a field - column id was ${colId}`;
513
+ }
514
+ return true;
515
+ };
516
+ return valueSetter;
517
+ });
518
+ }
519
+ setupColumnComparator({ col, colId, abColumn }) {
520
+ const customSort = this.adaptableApi.customSortApi.getCustomSortForColumn(colId);
521
+ const columnSortComparer = this.adaptableApi.customSortApi.internalApi.getCustomSortComparer(abColumn.columnId);
522
+ const comparatorGetter = (propName) => {
523
+ return () => {
524
+ return this.adaptableApi.columnApi.internalApi.getActiveColumnComparator(colId, customSort, columnSortComparer);
525
+ };
526
+ };
527
+ this.setColDefProperty(col, 'comparator', comparatorGetter('comparator'));
528
+ this.setColDefProperty(col, 'pivotComparator', comparatorGetter('pivotComparator'));
529
+ }
530
+ getExcelClassNameForCell(colId, primaryKeyValue, userDefinedCellClass) {
531
+ let excelClassName = `--excel-cell-${colId}-${primaryKeyValue}`;
532
+ if (excelClassName.indexOf(' ') > 0) {
533
+ excelClassName = excelClassName.replace(/\s/g, '_');
534
+ }
535
+ return userDefinedCellClass != null
536
+ ? `${excelClassName}-${Array.isArray(userDefinedCellClass)
537
+ ? userDefinedCellClass.join('-')
538
+ : userDefinedCellClass}`
539
+ : excelClassName;
540
+ }
541
+ isQuickSearchActive(gridCell, params) {
542
+ let quickSearchValue = this.adaptableApi.quickSearchApi.getQuickSearchValue();
543
+ if (StringExtensions_1.default.IsNullOrEmpty(quickSearchValue)) {
544
+ return false;
545
+ }
546
+ if (gridCell.column.isExcludedFromQuickSearch) {
547
+ return false;
548
+ }
549
+ if (!params.node) {
550
+ return false;
551
+ }
552
+ if (!gridCell.isPivotCell &&
553
+ !this.adaptableApi.optionsApi.getQuickSearchOptions().runQuickSearchOnRowGroups &&
554
+ params.node.group) {
555
+ return false;
556
+ }
557
+ if (!this.adaptableApi.optionsApi.getQuickSearchOptions().runQuickSearchOnPivotColumns &&
558
+ gridCell.isPivotCell) {
559
+ return false;
560
+ }
561
+ if (this.adaptableApi.optionsApi.getQuickSearchOptions().runQuickSearchOnPivotColumns &&
562
+ gridCell.isPivotCell) {
563
+ gridCell.displayValue = params.value;
564
+ }
565
+ const ignoreCase = !this.adaptableOptions.quickSearchOptions.runQuickSearchWithCaseSensitivity;
566
+ const displayValue = ignoreCase
567
+ ? String(gridCell.displayValue).toLocaleLowerCase()
568
+ : String(gridCell.displayValue);
569
+ const i = ignoreCase ? String(quickSearchValue).toLocaleLowerCase() : String(quickSearchValue);
570
+ const applyQuickSearchFunction = this.adaptableOptions.quickSearchOptions.runBespokeQuickSearch;
571
+ if (applyQuickSearchFunction) {
572
+ const quickSearchContext = Object.assign(Object.assign({}, (0, ObjectFactory_1.createBaseContext)(this.adaptableApi)), { gridCell, quickSearchValue: quickSearchValue });
573
+ return applyQuickSearchFunction(quickSearchContext);
574
+ }
575
+ return displayValue.indexOf(i) !== -1;
576
+ }
577
+ getEditableCellClass(gridCell, params) {
578
+ const editableCellStyle = this.adaptableApi.userInterfaceApi.getEditableCellStyle();
579
+ if (!(editableCellStyle === null || editableCellStyle === void 0 ? void 0 : editableCellStyle.ClassName)) {
580
+ return null;
581
+ }
582
+ const isCellEditable = this.adaptableApi.gridApi.isCellEditable(gridCell);
583
+ return isCellEditable ? editableCellStyle.ClassName : null;
584
+ }
585
+ getReadonlyCellClass(gridCell, params) {
586
+ const readonlyCellStyle = this.adaptableApi.userInterfaceApi.getReadOnlyCellStyle();
587
+ if (!(readonlyCellStyle === null || readonlyCellStyle === void 0 ? void 0 : readonlyCellStyle.ClassName)) {
588
+ return null;
589
+ }
590
+ const isCellReadonly = !this.adaptableApi.gridApi.isCellEditable(gridCell);
591
+ return isCellReadonly ? readonlyCellStyle.ClassName : null;
592
+ }
593
+ getAlertCellClass(gridCell, params) {
594
+ var _a, _b;
595
+ const alert = this.adaptableApi.alertApi.internalApi.getAdaptableAlertWithHighlightCell(gridCell.column.columnId, params.node);
596
+ const highlightCell = (_b = (_a = alert === null || alert === void 0 ? void 0 : alert.alertDefinition) === null || _a === void 0 ? void 0 : _a.AlertProperties) === null || _b === void 0 ? void 0 : _b.HighlightCell;
597
+ return typeof highlightCell === 'object' && (highlightCell === null || highlightCell === void 0 ? void 0 : highlightCell.ClassName)
598
+ ? highlightCell === null || highlightCell === void 0 ? void 0 : highlightCell.ClassName
599
+ : null;
600
+ }
601
+ getFlashingCellClass(gridcell, params) {
602
+ var _a, _b, _c;
603
+ const primaryKey = params.node.aggData ? params.node.id : gridcell.primaryKeyValue;
604
+ const flashingCell = this.adaptableApi.flashingCellApi.internalApi.getAdaptableFlashingCellFor(primaryKey, gridcell.column.columnId);
605
+ if (!flashingCell) {
606
+ return;
607
+ }
608
+ return flashingCell.direction === 'up'
609
+ ? (_a = flashingCell.flashingCellDefinition.UpChangeStyle) === null || _a === void 0 ? void 0 : _a.ClassName
610
+ : flashingCell.direction === 'down'
611
+ ? (_b = flashingCell.flashingCellDefinition.DownChangeStyle) === null || _b === void 0 ? void 0 : _b.ClassName
612
+ : flashingCell.direction === 'neutral'
613
+ ? (_c = flashingCell.flashingCellDefinition.NeutralChangeStyle) === null || _c === void 0 ? void 0 : _c.ClassName
614
+ : undefined;
615
+ }
616
+ getNoteCellClassName(gridCell, params) {
617
+ if (!this.adaptableApi.internalApi.getModuleService().isModuleAvailable('Note')) {
618
+ return;
619
+ }
620
+ if (!this.adaptableApi.noteApi.internalApi.areNotesAvailable()) {
621
+ return;
622
+ }
623
+ const cellPosition = {
624
+ PrimaryKeyValue: gridCell.primaryKeyValue,
625
+ ColumnId: gridCell.column.columnId,
626
+ };
627
+ const cellNotes = this.adaptableApi.noteApi.getNotesForCell(cellPosition);
628
+ if (!(cellNotes === null || cellNotes === void 0 ? void 0 : cellNotes.length)) {
629
+ return undefined;
630
+ }
631
+ return 'ab-Cell-Note';
632
+ }
633
+ getCommentCellClassName(gridCell, params) {
634
+ if (!this.adaptableApi.internalApi.getModuleService().isModuleAvailable('Comment')) {
635
+ return;
636
+ }
637
+ if (!this.adaptableApi.commentApi.internalApi.areCommentsAvailable()) {
638
+ return;
639
+ }
640
+ const position = {
641
+ PrimaryKeyValue: gridCell.primaryKeyValue,
642
+ ColumnId: gridCell.column.columnId,
643
+ };
644
+ const cellComments = this.adaptableApi.commentApi.getCommentThread(position);
645
+ if (!cellComments) {
646
+ return undefined;
647
+ }
648
+ return 'ab-Cell-Comment';
649
+ }
650
+ getFormatColumnCellClass(formatColumns, abColumn, params) {
651
+ const classNames = formatColumns
652
+ .map((formatColumn) => {
653
+ var _a, _b;
654
+ if (((_a = formatColumn.Style) === null || _a === void 0 ? void 0 : _a.ClassName) &&
655
+ this.adaptableApi.formatColumnApi.internalApi.isFormatColumnRelevantForColumn(formatColumn, abColumn, params)) {
656
+ return (_b = formatColumn.Style) === null || _b === void 0 ? void 0 : _b.ClassName;
657
+ }
658
+ })
659
+ .filter((x) => !!x);
660
+ return classNames;
661
+ }
662
+ getQuickSearchCellStyle() {
663
+ const quickSearchStyle = this.adaptableApi.quickSearchApi.getQuickSearchStyle();
664
+ if (!quickSearchStyle || StringExtensions_1.default.IsNotNullOrEmpty(quickSearchStyle.ClassName)) {
665
+ return undefined;
666
+ }
667
+ return (0, StyleHelper_1.convertAdaptableStyleToCSS)(quickSearchStyle);
668
+ }
669
+ getReadOnlyCellStyle(gridCell, params) {
670
+ const editableCellStyle = this.adaptableApi.userInterfaceApi.getReadOnlyCellStyle();
671
+ if (!editableCellStyle) {
672
+ return undefined;
673
+ }
674
+ if (gridCell) {
675
+ if (!this.adaptableApi.gridApi.isCellEditable(gridCell)) {
676
+ return (0, StyleHelper_1.convertAdaptableStyleToCSS)(editableCellStyle);
677
+ }
678
+ }
679
+ return undefined;
680
+ }
681
+ getEditableCellStyle(gridCell, params) {
682
+ const editableCellStyle = this.adaptableApi.userInterfaceApi.getEditableCellStyle();
683
+ if (!editableCellStyle) {
684
+ return undefined;
685
+ }
686
+ if (gridCell) {
687
+ if (this.adaptableApi.gridApi.isCellEditable(gridCell)) {
688
+ return (0, StyleHelper_1.convertAdaptableStyleToCSS)(editableCellStyle);
689
+ }
690
+ }
691
+ return undefined;
692
+ }
693
+ /**
694
+ * The combination of styled column and format cells
695
+ * This functiond decides when the two can be merged.
696
+ */
697
+ getFormatColumnAndStyledColumnCellStyle(gridCell, params) {
698
+ let styledColumn = this.adaptableApi.styledColumnApi.getStyledColumnForColumnId(gridCell.column.columnId);
699
+ let styledColumnStyle = {};
700
+ if (styledColumn && !(styledColumn === null || styledColumn === void 0 ? void 0 : styledColumn.IsSuspended)) {
701
+ const styledCellStyle = this.getStyledColumnStyle(styledColumn, gridCell.column, params);
702
+ // for percentbar we want to merge
703
+ if (styledColumn.PercentBarStyle || styledColumn.BadgeStyle) {
704
+ styledColumnStyle = styledCellStyle;
705
+ }
706
+ else {
707
+ // For other ones wo do not want to merge
708
+ return styledCellStyle;
709
+ }
710
+ }
711
+ const activeFormatColumnsWithStyle = this.adaptableApi.formatColumnApi.internalApi.getFormatColumnsWithStyleForColumn(gridCell.column);
712
+ return Object.assign(Object.assign({}, this.getFormatColumnCellStyle(gridCell.column, activeFormatColumnsWithStyle, params)), styledColumnStyle);
713
+ }
714
+ getStyledColumnStyle(styledColumn, abColumn, params) {
715
+ let style = {};
716
+ const gradientStyle = styledColumn === null || styledColumn === void 0 ? void 0 : styledColumn.GradientStyle;
717
+ if (params.value === undefined) {
718
+ return;
719
+ }
720
+ let colValue = params.value;
721
+ if (this.adaptableApi.gridApi.isGroupRowNode(params.node)) {
722
+ if (styledColumn.IncludeGroupedRows) {
723
+ const minColumnValue = this.adaptableApi.styledColumnApi.internalApi.getMinValueForNumericColumn(abColumn);
724
+ const maxColumnValue = this.adaptableApi.styledColumnApi.internalApi.getMaxValueForNumericColumn(abColumn);
725
+ /**
726
+ * Color should always be in bounds, it should not overflow.
727
+ * If the value is out of range, it shoul set the maximum/minimum color.
728
+ */
729
+ colValue = (0, clamp_1.default)(params.value, minColumnValue, maxColumnValue);
730
+ }
731
+ else {
732
+ return style;
733
+ }
734
+ }
735
+ if (gradientStyle) {
736
+ const min = this.adaptableApi.styledColumnApi.internalApi.getNumericStyleMinValue(styledColumn, abColumn, params.node, colValue);
737
+ const max = this.adaptableApi.styledColumnApi.internalApi.getNumericStyleMaxValue(styledColumn, abColumn, params.node, colValue);
738
+ let cellBackColor;
739
+ let reverseGradient = false;
740
+ if (gradientStyle.ColumnComparison) {
741
+ cellBackColor = gradientStyle.ColumnComparison.Color;
742
+ }
743
+ else {
744
+ const matchingRange = this.adaptableApi.styledColumnApi.internalApi.findRangeForColumn(gradientStyle.CellRanges, abColumn, gradientStyle.RangeValueType, colValue);
745
+ if (matchingRange) {
746
+ cellBackColor = matchingRange.Color;
747
+ reverseGradient = matchingRange.ReverseGradient;
748
+ }
749
+ }
750
+ const increase = Math.abs(max - min);
751
+ const percentage = ((colValue - min) / increase) * 100;
752
+ let alpha = Number((percentage / 100).toPrecision(2));
753
+ if (reverseGradient) {
754
+ alpha = 1 - alpha;
755
+ }
756
+ const preparedColor = (0, StyleHelper_1.getVariableColor)(cellBackColor);
757
+ // if no range match, do not apply color (black in this case)
758
+ if (cellBackColor) {
759
+ style.backgroundColor = (0, tinycolor2_1.default)(preparedColor).setAlpha(alpha).toRgbString();
760
+ }
761
+ }
762
+ if (styledColumn.PercentBarStyle && styledColumn.PercentBarStyle.CellText) {
763
+ style.paddingTop = 0;
764
+ style.paddingBottom = 0;
765
+ }
766
+ return style;
767
+ }
768
+ getFormatColumnCellStyle(abColumn, activeFormatColumnsWithStyle, params) {
769
+ if (!activeFormatColumnsWithStyle.length) {
770
+ return {};
771
+ }
772
+ const relevantFormatColumnsWithStyle = activeFormatColumnsWithStyle.filter((formatColumn) => {
773
+ return this.adaptableApi.formatColumnApi.internalApi.isFormatColumnRelevantForColumn(formatColumn, abColumn, params);
774
+ });
775
+ return this.getFormatColumnAdaptableStyle(relevantFormatColumnsWithStyle);
776
+ }
777
+ getFormatColumnAdaptableStyle(formatColumns) {
778
+ // first has more precedence, then they need to be applied in reverse order
779
+ return formatColumns.reduceRight((style, formatColumn) => {
780
+ const formatColumnStyle = formatColumn.Style
781
+ ? (0, StyleHelper_1.convertAdaptableStyleToCSS)(formatColumn.Style)
782
+ : {};
783
+ if (formatColumn.CellAlignment) {
784
+ switch (formatColumn.CellAlignment) {
785
+ case 'Left':
786
+ style.textAlign = 'left';
787
+ break;
788
+ case 'Right':
789
+ style.textAlign = 'right';
790
+ break;
791
+ case 'Center':
792
+ style.textAlign = 'center';
793
+ break;
794
+ }
795
+ }
796
+ return Object.assign(Object.assign({}, style), formatColumnStyle);
797
+ }, {});
798
+ }
799
+ getAlertCellStyle(gridCell, params) {
800
+ const alert = this.adaptableApi.alertApi.internalApi.getAdaptableAlertWithHighlightCell(gridCell.column.columnId, params.node);
801
+ if (alert) {
802
+ const highlightCell = alert.alertDefinition.AlertProperties.HighlightCell;
803
+ if (typeof highlightCell === 'object') {
804
+ return (0, StyleHelper_1.convertAdaptableStyleToCSS)(highlightCell);
805
+ }
806
+ return {
807
+ backgroundColor: UIHelper_1.default.getColorByMessageType(alert.alertDefinition.MessageType),
808
+ };
809
+ }
810
+ }
811
+ getFlashingCellStyle(gridCell, params) {
812
+ var _a;
813
+ const primaryKey = params.node.aggData ? params.node.id : gridCell.primaryKeyValue;
814
+ const flashingCell = this.adaptableApi.flashingCellApi.internalApi.getAdaptableFlashingCellFor(primaryKey, gridCell.column.columnId);
815
+ if (!flashingCell) {
816
+ return {};
817
+ }
818
+ return (0, StyleHelper_1.convertAdaptableStyleToCSS)((_a = (flashingCell.direction === 'up'
819
+ ? flashingCell.flashingCellDefinition.UpChangeStyle
820
+ : flashingCell.direction === 'down'
821
+ ? flashingCell.flashingCellDefinition.DownChangeStyle
822
+ : flashingCell.flashingCellDefinition.NeutralChangeStyle)) !== null && _a !== void 0 ? _a : {});
823
+ }
824
+ getCellHighlightStyle(gridCell, params) {
825
+ const cellHightlight = this.adaptableApi.internalApi
826
+ .getSystemState()
827
+ .HighlightedCells.find((cellHighlightInfo) => {
828
+ return (gridCell.column.columnId === cellHighlightInfo.columnId &&
829
+ cellHighlightInfo.primaryKeyValue === gridCell.primaryKeyValue);
830
+ });
831
+ if (cellHightlight) {
832
+ return (0, StyleHelper_1.convertAdaptableStyleToCSS)(cellHightlight.highlightStyle);
833
+ }
834
+ }
835
+ }
836
+ exports.AgGridColumnAdapter = AgGridColumnAdapter;