@adaptabletools/adaptable-cjs 23.0.4 → 23.0.5-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 (441) hide show
  1. package/agGrid.js +0 -31
  2. package/index.js +0 -31
  3. package/package.json +1 -1
  4. package/src/AdaptableInterfaces/IAdaptable.d.ts +0 -2
  5. package/src/AdaptableOptions/AdaptablePlugin.js +1 -9
  6. package/src/AdaptableOptions/DefaultAdaptableOptions.js +3 -39
  7. package/src/AdaptableOptions/SettingsPanelOptions.d.ts +44 -16
  8. package/src/AdaptableState/Aggregations/only.js +0 -11
  9. package/src/AdaptableState/Aggregations/weightedAverage.js +0 -26
  10. package/src/AdaptableState/Common/AdaptableColumn.js +0 -1
  11. package/src/AdaptableState/Common/AdaptableForm.js +0 -49
  12. package/src/AdaptableState/Common/AdaptableFormatPresets.js +0 -13
  13. package/src/AdaptableState/Common/AdaptablePredicate.js +3 -125
  14. package/src/AdaptableState/Common/AggregationColumns.js +0 -10
  15. package/src/AdaptableState/Common/Enums.js +0 -3
  16. package/src/AdaptableState/Common/Menu.js +1 -7
  17. package/src/AdaptableState/Common/MenuItem.js +0 -2
  18. package/src/AdaptableState/Common/Types.js +2 -5
  19. package/src/AdaptableState/StatusBarState.js +0 -3
  20. package/src/AdaptableState/StyledColumns/BadgeStyle.js +0 -1
  21. package/src/AdaptableState/StyledColumns/Common/BarStyleProperties.js +0 -4
  22. package/src/AdaptableState/StyledColumns/Common/CellTextOptions.js +0 -5
  23. package/src/AdaptableState/StyledColumns/Common/NumericStyledColumn.js +0 -8
  24. package/src/AdaptableState/Uuid.js +0 -1
  25. package/src/Api/Implementation/AdaptableApiImpl.js +0 -4
  26. package/src/Api/Implementation/AlertApiImpl.js +0 -21
  27. package/src/Api/Implementation/ApiBase.js +0 -24
  28. package/src/Api/Implementation/CalculatedColumnApiImpl.js +0 -1
  29. package/src/Api/Implementation/ChartingApiImpl.js +0 -3
  30. package/src/Api/Implementation/ColumnApiImpl.js +1 -15
  31. package/src/Api/Implementation/ColumnFilterApiImpl.js +0 -9
  32. package/src/Api/Implementation/ColumnScopeApiImpl.js +0 -21
  33. package/src/Api/Implementation/DashboardApiImpl.js +0 -1
  34. package/src/Api/Implementation/EntitlementApiImpl.js +0 -1
  35. package/src/Api/Implementation/ExportApiImpl.js +0 -10
  36. package/src/Api/Implementation/ExpressionApiImpl.js +0 -1
  37. package/src/Api/Implementation/FormatColumnApiImpl.js +0 -3
  38. package/src/Api/Implementation/FreeTextColumnApiImpl.js +0 -2
  39. package/src/Api/Implementation/GridApiImpl.js +1 -22
  40. package/src/Api/Implementation/GridFilterApiImpl.js +0 -2
  41. package/src/Api/Implementation/LayoutApiImpl.js +0 -18
  42. package/src/Api/Implementation/LayoutHelpers.js +0 -16
  43. package/src/Api/Implementation/NamedQueryApiImpl.js +0 -1
  44. package/src/Api/Implementation/PredicateApiImpl.js +0 -5
  45. package/src/Api/Implementation/RowFormApiImpl.js +0 -2
  46. package/src/Api/Implementation/StateApiImpl.js +0 -7
  47. package/src/Api/Implementation/SystemStatusApiImpl.js +0 -2
  48. package/src/Api/Implementation/TeamSharingApiImpl.js +0 -3
  49. package/src/Api/Implementation/UserInterfaceApiImpl.js +0 -1
  50. package/src/Api/Internal/ActionColumnInternalApi.js +0 -1
  51. package/src/Api/Internal/AdaptableInternalApi.d.ts +0 -2
  52. package/src/Api/Internal/AdaptableInternalApi.js +1 -39
  53. package/src/Api/Internal/AlertInternalApi.js +1 -102
  54. package/src/Api/Internal/CalculatedColumnInternalApi.js +0 -17
  55. package/src/Api/Internal/ChartingInternalApi.js +0 -1
  56. package/src/Api/Internal/ColumnFilterInternalApi.js +0 -52
  57. package/src/Api/Internal/ColumnInternalApi.js +0 -32
  58. package/src/Api/Internal/CustomSortInternalApi.js +0 -5
  59. package/src/Api/Internal/DashboardInternalApi.js +0 -23
  60. package/src/Api/Internal/DataImportInternalApi.js +0 -1
  61. package/src/Api/Internal/EventInternalApi.js +0 -2
  62. package/src/Api/Internal/ExportInternalApi.js +1 -16
  63. package/src/Api/Internal/ExpressionInternalApi.js +0 -23
  64. package/src/Api/Internal/Fdc3InternalApi.js +0 -9
  65. package/src/Api/Internal/FlashingCellInternalApi.js +0 -5
  66. package/src/Api/Internal/FormatColumnInternalApi.js +5 -107
  67. package/src/Api/Internal/FreeTextColumnInternalApi.js +0 -8
  68. package/src/Api/Internal/GridFilterInternalApi.js +0 -3
  69. package/src/Api/Internal/GridInternalApi.js +0 -37
  70. package/src/Api/Internal/LayoutInternalApi.js +0 -18
  71. package/src/Api/Internal/NamedQueryInternalApi.js +0 -9
  72. package/src/Api/Internal/PredicateInternalApi.js +0 -23
  73. package/src/Api/Internal/RowFormInternalApi.js +0 -18
  74. package/src/Api/Internal/StateInternalApi.js +0 -25
  75. package/src/Api/Internal/StyledColumnInternalApi.js +0 -62
  76. package/src/Api/Internal/TeamSharingInternalApi.js +0 -9
  77. package/src/Redux/ActionsReducers/AlertRedux.js +0 -24
  78. package/src/Redux/ActionsReducers/ApplicationRedux.js +0 -9
  79. package/src/Redux/ActionsReducers/BulkUpdateRedux.js +0 -6
  80. package/src/Redux/ActionsReducers/CalculatedColumnRedux.js +1 -16
  81. package/src/Redux/ActionsReducers/ChartingRedux.js +0 -24
  82. package/src/Redux/ActionsReducers/CommentsRedux.js +0 -24
  83. package/src/Redux/ActionsReducers/CustomSortRedux.js +0 -24
  84. package/src/Redux/ActionsReducers/DashboardRedux.js +0 -33
  85. package/src/Redux/ActionsReducers/ExportRedux.js +0 -36
  86. package/src/Redux/ActionsReducers/FlashingCellRedux.js +0 -24
  87. package/src/Redux/ActionsReducers/FormatColumnRedux.js +0 -36
  88. package/src/Redux/ActionsReducers/FreeTextColumnRedux.js +1 -20
  89. package/src/Redux/ActionsReducers/InternalRedux.js +0 -42
  90. package/src/Redux/ActionsReducers/LayoutRedux.js +1 -67
  91. package/src/Redux/ActionsReducers/NamedQueryRedux.js +0 -15
  92. package/src/Redux/ActionsReducers/NoteRedux.js +0 -14
  93. package/src/Redux/ActionsReducers/PluginsRedux.js +0 -3
  94. package/src/Redux/ActionsReducers/PlusMinusRedux.js +0 -34
  95. package/src/Redux/ActionsReducers/PopupRedux.js +2 -6
  96. package/src/Redux/ActionsReducers/QuickSearchRedux.js +0 -15
  97. package/src/Redux/ActionsReducers/ShortcutRedux.js +0 -24
  98. package/src/Redux/ActionsReducers/SmartEditRedux.js +0 -6
  99. package/src/Redux/ActionsReducers/StatusBarRedux.js +0 -6
  100. package/src/Redux/ActionsReducers/StyledColumnRedux.js +0 -27
  101. package/src/Redux/ActionsReducers/SystemStatusRedux.js +0 -6
  102. package/src/Redux/ActionsReducers/TeamSharingRedux.js +0 -1
  103. package/src/Redux/ActionsReducers/ThemeRedux.js +0 -26
  104. package/src/Redux/ActionsReducers/ToolPanelRedux.js +0 -22
  105. package/src/Redux/ActionsReducers/UserInterfaceRedux.js +0 -3
  106. package/src/Redux/ActionsReducers/utils.js +0 -6
  107. package/src/Redux/Store/AdaptableReduxLocalStorageEngine.js +0 -1
  108. package/src/Redux/Store/AdaptableReduxMerger.js +0 -25
  109. package/src/Redux/Store/AdaptableStore.js +5 -301
  110. package/src/Strategy/AdaptableModuleBase.js +0 -35
  111. package/src/Strategy/AlertModule.js +0 -9
  112. package/src/Strategy/CellSummaryModule.js +0 -12
  113. package/src/Strategy/ChartingModule.js +0 -1
  114. package/src/Strategy/ColumnFilterModule.js +1 -11
  115. package/src/Strategy/CommentModule.js +0 -2
  116. package/src/Strategy/DashboardModule.js +0 -4
  117. package/src/Strategy/ExportModule.js +0 -1
  118. package/src/Strategy/FlashingCellModule.js +0 -8
  119. package/src/Strategy/FormatColumnModule.js +0 -3
  120. package/src/Strategy/FreeTextColumnModule.js +0 -3
  121. package/src/Strategy/LayoutModule.js +0 -26
  122. package/src/Strategy/NoteModule.js +0 -3
  123. package/src/Strategy/PlusMinusModule.js +0 -3
  124. package/src/Strategy/SettingsPanelModule.js +0 -1
  125. package/src/Strategy/ShortcutModule.js +0 -1
  126. package/src/Strategy/SmartEditModule.js +0 -5
  127. package/src/Strategy/StatusBarModule.js +0 -7
  128. package/src/Strategy/StyledColumnModule.js +1 -16
  129. package/src/Strategy/TeamSharingModule.js +0 -9
  130. package/src/Strategy/Utilities/Layout/columnsSummaryHelpers.js +0 -5
  131. package/src/Utilities/Constants/DocumentationLinkConstants.js +0 -1
  132. package/src/Utilities/Constants/GeneralConstants.js +0 -10
  133. package/src/Utilities/Constants/ObjectDefaultConstants.js +0 -3
  134. package/src/Utilities/Constants/ReduxConstants.js +4 -8
  135. package/src/Utilities/Emitter.js +0 -9
  136. package/src/Utilities/ExpressionFunctions/aggregatedBooleanExpressionFunctions.js +0 -8
  137. package/src/Utilities/ExpressionFunctions/aggregatedScalarExpressionFunctions.js +0 -15
  138. package/src/Utilities/ExpressionFunctions/booleanExpressionFunctions.js +0 -3
  139. package/src/Utilities/ExpressionFunctions/deepMap.js +0 -16
  140. package/src/Utilities/ExpressionFunctions/expressionFunctionUtils.js +0 -9
  141. package/src/Utilities/ExpressionFunctions/groupingMap.js +0 -9
  142. package/src/Utilities/ExpressionFunctions/observableExpressionFunctions.js +7 -78
  143. package/src/Utilities/ExpressionFunctions/scalarAggregationHelper.js +0 -9
  144. package/src/Utilities/ExpressionFunctions/scalarExpressionFunctions.js +2 -16
  145. package/src/Utilities/Extensions/ArrayExtensions.js +1 -63
  146. package/src/Utilities/Extensions/NumberExtensions.js +0 -27
  147. package/src/Utilities/Extensions/ObjectExtensions.js +0 -36
  148. package/src/Utilities/Extensions/StringExtensions.js +0 -27
  149. package/src/Utilities/Helpers/ActionColumnHelper.js +0 -4
  150. package/src/Utilities/Helpers/AdaptableHelper.js +0 -8
  151. package/src/Utilities/Helpers/DateHelper.js +0 -10
  152. package/src/Utilities/Helpers/DisplayFormatHelper.js +0 -8
  153. package/src/Utilities/Helpers/Helper.js +3 -9
  154. package/src/Utilities/Helpers/PlusMinusHelper.js +0 -20
  155. package/src/Utilities/Helpers/QuickSearchHelper.js +0 -5
  156. package/src/Utilities/Helpers/Scheduling/CronExpression.js +0 -43
  157. package/src/Utilities/Helpers/Scheduling/ScheduledReportHelper.js +0 -4
  158. package/src/Utilities/Helpers/SettingsPanelHelper.js +40 -4
  159. package/src/Utilities/Helpers/StyleHelper.js +0 -56
  160. package/src/Utilities/Helpers/StyledColumns/BarStylesHelper.js +0 -46
  161. package/src/Utilities/Helpers/StyledColumns/GradientStyleHelper.js +0 -38
  162. package/src/Utilities/Helpers/StyledColumns/IconStyleHelper.js +0 -39
  163. package/src/Utilities/Helpers/StyledColumns/PercentBarStyleHelper.js +0 -1
  164. package/src/Utilities/Helpers/StyledColumns/SparklineStyleHelper.js +0 -5
  165. package/src/Utilities/Helpers/StyledColumns/StyledColumnHelper.js +0 -37
  166. package/src/Utilities/Helpers/TimingHelper.js +0 -13
  167. package/src/Utilities/ObjectFactory.js +2 -4
  168. package/src/Utilities/Services/AggregatedScalarLiveValue.js +0 -7
  169. package/src/Utilities/Services/AlertService.js +0 -1
  170. package/src/Utilities/Services/AnnotationsService.js +0 -22
  171. package/src/Utilities/Services/CalculatedColumnExpressionService.js +0 -8
  172. package/src/Utilities/Services/ChartingService.js +0 -9
  173. package/src/Utilities/Services/DataService.js +0 -11
  174. package/src/Utilities/Services/Fdc3Service.js +0 -3
  175. package/src/Utilities/Services/FlashingCellService.js +0 -6
  176. package/src/Utilities/Services/ModuleService.js +0 -8
  177. package/src/Utilities/Services/QueryLanguageService.js +2 -25
  178. package/src/Utilities/Services/RowFormService.js +0 -1
  179. package/src/Utilities/Services/RowSummaryService.js +1 -20
  180. package/src/Utilities/Services/TeamSharingService.js +0 -15
  181. package/src/Utilities/Services/ThemeService.js +0 -7
  182. package/src/Utilities/Services/ValidationService.js +0 -21
  183. package/src/Utilities/createAgStatusPanelComponent.js +0 -3
  184. package/src/Utilities/getExpressionViewItems.js +0 -2
  185. package/src/Utilities/getObjectTagsViewItems.js +0 -1
  186. package/src/Utilities/getScrollbarSize.js +0 -1
  187. package/src/Utilities/logDeprecation.js +0 -3
  188. package/src/Utilities/resolveContainerElement.js +0 -21
  189. package/src/Utilities/runIfNotResolvedIn.js +0 -7
  190. package/src/Utilities/sortColumnStateForVisibleColumns.js +2 -12
  191. package/src/Utilities/waitForTimeout.js +0 -1
  192. package/src/Utilities/wizardSelection.js +0 -2
  193. package/src/View/AdaptablePopover/index.js +1 -1
  194. package/src/View/AdaptableView.js +1 -5
  195. package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/ColumnsList.js +0 -4
  196. package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/ConfigurationWizard.js +0 -23
  197. package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/EntitlementsForm.js +0 -2
  198. package/src/View/AdaptableWizardView/Wizard.js +0 -12
  199. package/src/View/AdaptableWizardView/helper.js +0 -11
  200. package/src/View/Alert/ActiveAlertsPanel.js +0 -2
  201. package/src/View/Alert/AlertStatusSubPanel.js +0 -8
  202. package/src/View/Alert/Utilities/getAlertType.js +0 -7
  203. package/src/View/Alert/Utilities/getDefaultAlertDefinition.js +0 -5
  204. package/src/View/Alert/Utilities/mapAlertDefinition.js +0 -3
  205. package/src/View/Alert/Wizard/AlertWizard.js +0 -2
  206. package/src/View/Alert/Wizard/isValidAlertRules.js +0 -1
  207. package/src/View/BulkUpdate/BulkUpdatePopup.js +0 -1
  208. package/src/View/CalculatedColumn/Wizard/CalculatedColumnSettingsWizardSection.js +1 -3
  209. package/src/View/CalculatedColumn/Wizard/CalculatedColumnWizard.js +0 -1
  210. package/src/View/CalculatedColumn/utils.d.ts +1 -1
  211. package/src/View/CellSummary/CellSummaryPopup.js +0 -3
  212. package/src/View/CellSummary/CellSummaryStatusBarSubPanelPopover.js +1 -7
  213. package/src/View/Charting/EditChartButton.js +1 -4
  214. package/src/View/Charting/ShowChartButton.js +0 -3
  215. package/src/View/Charting/useAgChartState.js +0 -5
  216. package/src/View/Charting/useChartingElements.js +0 -4
  217. package/src/View/Charting/useExternalChartState.js +0 -6
  218. package/src/View/ColumnInfo/ColumnInfo.js +7 -17
  219. package/src/View/Comments/CommentsEditor.js +1 -16
  220. package/src/View/Components/AdaptableButton/AdaptableButtonComponent.js +0 -1
  221. package/src/View/Components/AdaptableButton/AdaptableButtonView.js +0 -3
  222. package/src/View/Components/AdaptableDateInput/index.js +2 -9
  223. package/src/View/Components/AdaptableIconComponent/index.js +0 -4
  224. package/src/View/Components/AdaptableIconSelector/index.js +0 -3
  225. package/src/View/Components/AdaptableInput/index.js +0 -2
  226. package/src/View/Components/Badge/index.js +0 -8
  227. package/src/View/Components/Buttons/ButtonNewPage.js +1 -2
  228. package/src/View/Components/Buttons/EntityListActionButtons.js +0 -1
  229. package/src/View/Components/CellPopup/index.js +1 -2
  230. package/src/View/Components/ColumnFilter/AdaptableColumnFilter.js +0 -4
  231. package/src/View/Components/ColumnFilter/AdaptableFloatingFilter.js +0 -4
  232. package/src/View/Components/ColumnFilter/ColumnFilter.js +3 -46
  233. package/src/View/Components/ColumnFilter/ColumnFilterWindow.js +0 -2
  234. package/src/View/Components/ColumnFilter/FloatingFilter.js +1 -20
  235. package/src/View/Components/ColumnFilter/components/ColumnFilterInput.js +2 -16
  236. package/src/View/Components/ColumnFilter/components/ColumnFilterInputList.js +1 -4
  237. package/src/View/Components/ColumnFilter/components/ColumnFilterMenu.js +0 -1
  238. package/src/View/Components/ColumnFilter/components/FloatingFilterInputList.js +1 -6
  239. package/src/View/Components/ColumnFilter/components/FloatingFilterValues.js +0 -20
  240. package/src/View/Components/ColumnFilter/useAdaptableFilterWrapper.js +0 -5
  241. package/src/View/Components/ColumnFilter/utils.js +2 -9
  242. package/src/View/Components/EntityRulesEditor/EntityRulePredicatesEditor/EntityRulePredicateEditor.js +0 -2
  243. package/src/View/Components/EntityRulesEditor/EntityRulePredicatesEditor/EntityRulePredicatesEditor.js +0 -1
  244. package/src/View/Components/EntityRulesEditor/index.js +1 -11
  245. package/src/View/Components/ExternalRenderer.js +1 -3
  246. package/src/View/Components/FilterForm/ListBoxFilterForm.js +1 -52
  247. package/src/View/Components/ModuleValueSelector/index.js +0 -2
  248. package/src/View/Components/Panels/PanelWithImage.js +1 -5
  249. package/src/View/Components/Panels/PanelWithRow.js +0 -3
  250. package/src/View/Components/Popups/AdaptablePopup/AdaptablePopup.js +0 -6
  251. package/src/View/Components/Popups/AdaptablePopup/AdaptablePopupBody.js +0 -3
  252. package/src/View/Components/Popups/AdaptablePopup/AdaptablePopupModuleView.js +0 -6
  253. package/src/View/Components/Popups/AdaptablePopup/PopupPanel.js +1 -2
  254. package/src/View/Components/Popups/AdaptablePopup/useMenuItems.js +0 -1
  255. package/src/View/Components/Popups/AdaptablePopupAlert.js +0 -3
  256. package/src/View/Components/Popups/AdaptableToaster.js +0 -2
  257. package/src/View/Components/Popups/WindowPopups/WindowPopups.js +0 -8
  258. package/src/View/Components/RangesComponent.js +0 -57
  259. package/src/View/Components/Selectors/BulkUpdateValueSelector.js +0 -3
  260. package/src/View/Components/Selectors/PermittedValuesSelector.js +1 -6
  261. package/src/View/Components/ToolPanel/AdaptableToolPanel.js +1 -18
  262. package/src/View/Components/ToolPanel/ToolPanelPopupSections.js +0 -4
  263. package/src/View/Components/ToolPanel/ToolPanelWrapper.js +1 -4
  264. package/src/View/Components/ValueSelector/index.js +0 -4
  265. package/src/View/Components/wizardColumnListStyles.js +0 -5
  266. package/src/View/Dashboard/CustomToolbar.js +1 -25
  267. package/src/View/Dashboard/PinnedToolbarsSelector.js +0 -1
  268. package/src/View/DataImport/DataImportWizard/DataImportWizard.js +1 -22
  269. package/src/View/DataImport/DataImportWizard/sections/DataPreview.js +0 -1
  270. package/src/View/DataImport/systemFileHandlers.js +1 -1
  271. package/src/View/FlashingCell/Wizard/isValidFlashingCellRules.js +0 -1
  272. package/src/View/FormatColumn/Wizard/FormatColumnFormatWizardSection.js +0 -27
  273. package/src/View/FormatColumn/Wizard/FormatColumnPreview.js +0 -1
  274. package/src/View/FormatColumn/Wizard/FormatColumnScopeWizardSection.js +0 -7
  275. package/src/View/FormatColumn/Wizard/FormatColumnSettingsWizardSection.js +0 -12
  276. package/src/View/FormatColumn/Wizard/FormatColumnWizard.js +0 -10
  277. package/src/View/GridFilter/GridFilterPopup.js +0 -1
  278. package/src/View/GridFilter/useGridFilterExpressionEditor.js +0 -2
  279. package/src/View/GridInfo/GridInfoPopup/GridInfoPopup.js +1 -31
  280. package/src/View/Layout/LayoutViewPanel.js +0 -2
  281. package/src/View/Layout/PivotDetailsPopoup.js +0 -2
  282. package/src/View/Layout/TransposedPopup.js +0 -7
  283. package/src/View/Layout/Wizard/LayoutWizard.js +1 -6
  284. package/src/View/Layout/Wizard/sections/AggregationsSection.js +0 -2
  285. package/src/View/Layout/Wizard/sections/ColumnsSection.js +1 -32
  286. package/src/View/Layout/Wizard/sections/RowSummarySection.js +0 -3
  287. package/src/View/Layout/Wizard/sections/columnLayoutHelpers.js +0 -2
  288. package/src/View/Layout/Wizard/sections/layoutWizardColumns.js +0 -4
  289. package/src/View/Note/NotePopup.js +0 -1
  290. package/src/View/QuickSearch/QuickSearchPopup.js +0 -1
  291. package/src/View/StatusBar/AdaptableStatusBar.js +0 -4
  292. package/src/View/StatusBar/StatusBarPanel.js +0 -8
  293. package/src/View/StatusBar/StatusBarPopup.js +0 -2
  294. package/src/View/StyledColumn/Wizard/BadgePillStyleEditor.js +0 -11
  295. package/src/View/StyledColumn/Wizard/StyledColumnSliceStyleEditors.js +0 -28
  296. package/src/View/StyledColumn/Wizard/StyledColumnSparklineSettingsSection.js +0 -13
  297. package/src/View/StyledColumn/Wizard/StyledColumnWizard.js +1 -25
  298. package/src/View/StyledColumn/Wizard/StyledColumnWizardBulletSection.js +0 -26
  299. package/src/View/StyledColumn/Wizard/StyledColumnWizardGradientSection.js +0 -3
  300. package/src/View/StyledColumn/Wizard/StyledColumnWizardIconSection.js +0 -40
  301. package/src/View/StyledColumn/Wizard/StyledColumnWizardRangeBarSection.js +0 -55
  302. package/src/View/StyledColumn/Wizard/StyledColumnWizardRatingSection.js +0 -15
  303. package/src/View/StyledColumn/Wizard/StyledColumnWizardScopeSection.js +0 -21
  304. package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/Components/BarStyleCellTextPreview.js +0 -10
  305. package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/Components/GradientSummaryPreview.js +0 -5
  306. package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/Components/PercentBarStylePreview.js +0 -4
  307. package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/Components/StyledColumnBadgePreview.js +0 -5
  308. package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/Components/StyledColumnBulletPreview.js +0 -3
  309. package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/Components/StyledColumnChartListPreviews.js +0 -13
  310. package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/Components/StyledColumnRangeBarPreview.js +0 -1
  311. package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/Components/StyledColumnRatingPreview.js +0 -1
  312. package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/Components/StyledColumnSparklinePreview.js +0 -1
  313. package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/StyledColumnWizardRangesSection.js +0 -13
  314. package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/StyledColumnWizardStyleSection.js +1 -13
  315. package/src/View/StyledColumn/Wizard/StyledColumnWizardTypeSection.js +0 -21
  316. package/src/View/SystemStatus/SystemStatusPopup.js +0 -1
  317. package/src/View/TeamSharing/SharedEntityObjectView.js +0 -1
  318. package/src/View/Theme/ThemeSelector.js +0 -1
  319. package/src/View/UIHelper.js +0 -6
  320. package/src/View/UIInterfaces.js +0 -1
  321. package/src/View/Wizard/CollapsibleWizardCard.js +1 -8
  322. package/src/View/Wizard/OnePageWizards.js +2 -9
  323. package/src/View/Wizard/SummaryColorTag.js +0 -1
  324. package/src/View/Wizard/useKeyboardNavigation.js +1 -3
  325. package/src/agGrid/Adaptable.js +0 -12
  326. package/src/agGrid/AdaptableAgGrid.d.ts +0 -2
  327. package/src/agGrid/AdaptableAgGrid.js +3 -482
  328. package/src/agGrid/AdaptableFilterHandler.js +0 -5
  329. package/src/agGrid/AdaptableLogger.js +0 -6
  330. package/src/agGrid/AgGridAdapter.js +3 -90
  331. package/src/agGrid/AgGridColumnAdapter.js +6 -168
  332. package/src/agGrid/AgGridExportAdapter.js +4 -106
  333. package/src/agGrid/AgGridFilterAdapter.js +0 -5
  334. package/src/agGrid/AgGridFloatingFilterAdapter.js +0 -10
  335. package/src/agGrid/AgGridMenuAdapter.js +0 -143
  336. package/src/agGrid/AgGridModulesAdapter.js +0 -2
  337. package/src/agGrid/AgGridOptionsService.js +0 -2
  338. package/src/agGrid/AgGridThemeAdapter.js +0 -7
  339. package/src/agGrid/agGridDataTypeDefinitions.js +0 -8
  340. package/src/agGrid/cellRenderers/BadgeRenderer.js +0 -10
  341. package/src/agGrid/cellRenderers/BulletChartRenderer.js +1 -96
  342. package/src/agGrid/cellRenderers/IconRenderer.js +0 -55
  343. package/src/agGrid/cellRenderers/PercentBarRenderer.js +0 -51
  344. package/src/agGrid/cellRenderers/RangeBarRenderer.js +1 -50
  345. package/src/agGrid/cellRenderers/RatingRenderer.js +0 -40
  346. package/src/agGrid/editors/AdaptableDateEditor/index.js +0 -18
  347. package/src/agGrid/editors/AdaptableNumberEditor/InternalAdaptableNumberEditor.js +0 -3
  348. package/src/agGrid/editors/AdaptableNumberEditor/index.js +0 -11
  349. package/src/agGrid/editors/AdaptablePercentageEditor/index.js +0 -9
  350. package/src/agGrid/index.js +0 -6
  351. package/src/components/AdaptableFormComponent/AdaptableFormComponent.js +1 -73
  352. package/src/components/ColorPicker/ColorPicker.js +0 -6
  353. package/src/components/Combobox/VirtualizedList.js +0 -5
  354. package/src/components/Combobox/index.js +5 -63
  355. package/src/components/Dashboard/Dashboard.js +1 -4
  356. package/src/components/Datepicker/index.js +2 -97
  357. package/src/components/DragAndDropContext/TabList.js +2 -6
  358. package/src/components/Drawer/index.js +0 -7
  359. package/src/components/Dropdown/index.js +0 -1
  360. package/src/components/DropdownButton/index.js +0 -1
  361. package/src/components/ExpressionEditor/BaseEditorInput.js +1 -16
  362. package/src/components/ExpressionEditor/EditorButton.js +0 -1
  363. package/src/components/ExpressionEditor/EditorInput.js +1 -7
  364. package/src/components/ExpressionEditor/EditorInputWithWhereClause.js +0 -1
  365. package/src/components/ExpressionEditor/ExpressionPreview.js +4 -14
  366. package/src/components/ExpressionEditor/NamedQueryContext.js +0 -1
  367. package/src/components/ExpressionEditor/QueryBuilder/QueryBuilderInputs.js +1 -6
  368. package/src/components/ExpressionEditor/QueryBuilder/QueryPredicateBuilder.js +0 -12
  369. package/src/components/ExpressionEditor/QueryBuilder/utils.js +0 -4
  370. package/src/components/ExpressionEditor/index.js +5 -14
  371. package/src/components/Icon/index.js +0 -2
  372. package/src/components/Input/NumberInput.js +0 -10
  373. package/src/components/Modal/Backdrop.js +0 -1
  374. package/src/components/OverlayTrigger/Overlay.js +0 -1
  375. package/src/components/OverlayTrigger/index.js +3 -15
  376. package/src/components/ProgressIndicator/ProgressIndicator.js +3 -16
  377. package/src/components/ResizeObserver/index.js +0 -7
  378. package/src/components/SelectableList/index.js +0 -7
  379. package/src/components/SimpleButton/index.js +2 -16
  380. package/src/components/Tabs/index.js +0 -3
  381. package/src/components/Tag/Tag.js +0 -1
  382. package/src/components/Tag/columnScopeTagHelpers.js +0 -2
  383. package/src/components/Textarea/index.js +1 -8
  384. package/src/components/Toggle/Toggle.js +1 -5
  385. package/src/components/Toggle/ToggleGroup.js +1 -3
  386. package/src/components/ToggleButton/index.js +1 -3
  387. package/src/components/Tree/TreeDropdown/index.js +2 -130
  388. package/src/components/Tree/treeUtils.js +0 -4
  389. package/src/components/WindowModal/WindowModal.js +1 -14
  390. package/src/components/WindowModal/useStacking.js +0 -7
  391. package/src/components/icons/bullet-chart.js +0 -4
  392. package/src/components/icons/icon-style.js +0 -4
  393. package/src/components/icons/index.js +26 -36
  394. package/src/components/icons/range-bar.js +0 -5
  395. package/src/components/icons/star.js +0 -1
  396. package/src/components/twUtils.js +3 -12
  397. package/src/components/ui/calendar.js +1 -9
  398. package/src/components/ui/combobox.js +0 -4
  399. package/src/components/utils/captureTabNavigation/getFocusableChildren.js +0 -1
  400. package/src/components/utils/useDraggable.js +0 -4
  401. package/src/components/utils/useProperty.js +0 -18
  402. package/src/devTools/index.js +0 -1
  403. package/src/env.js +2 -2
  404. package/src/layout-manager/src/LMEmitter.js +0 -5
  405. package/src/layout-manager/src/destructurePivotColumnId.js +0 -19
  406. package/src/layout-manager/src/index.js +2 -182
  407. package/src/layout-manager/src/isLayoutEqual.js +0 -1
  408. package/src/layout-manager/src/isPivotColumnTotal.js +0 -2
  409. package/src/layout-manager/src/normalizeLayoutModel.js +0 -27
  410. package/src/layout-manager/src/simplifyLayoutModel.js +0 -11
  411. package/src/layout-manager/src/sortColumnIdsByOrder.js +2 -12
  412. package/src/lib/utils.js +0 -1
  413. package/src/migration/AdaptableUpgradeHelper.js +0 -2
  414. package/src/migration/VersionUpgrade17.js +0 -33
  415. package/src/migration/VersionUpgrade20.js +1 -21
  416. package/src/migration/VersionUpgrade21.js +0 -3
  417. package/src/migration/VersionUpgrade22.js +0 -11
  418. package/src/migration/VersionUpgrade23.js +0 -73
  419. package/src/parser/src/evaluator.js +0 -1
  420. package/src/parser/src/index.js +0 -1
  421. package/src/parser/src/parser.js +4 -103
  422. package/src/parser/src/predicate/mapExpressionToQlPredicate.js +0 -5
  423. package/src/parser/src/predicate/mapQlPredicateToExpression.js +0 -2
  424. package/src/parser/src/tokenizer.js +0 -2
  425. package/src/parser/src/utils.js +0 -1
  426. package/src/renderReactRoot.js +0 -12
  427. package/src/setupDevTools.js +0 -6
  428. package/src/twMerge.js +0 -1
  429. package/src/types.d.ts +1 -1
  430. package/src/types.js +0 -2
  431. package/tsconfig.cjs.tsbuildinfo +1 -1
  432. package/src/Utilities/Services/Interface/IMetamodelService.d.ts +0 -20
  433. package/src/Utilities/Services/Interface/IMetamodelService.js +0 -2
  434. package/src/Utilities/Services/MetamodelService.d.ts +0 -17
  435. package/src/Utilities/Services/MetamodelService.js +0 -167
  436. package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/AdaptableOptionsForm.d.ts +0 -6
  437. package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/AdaptableOptionsForm.js +0 -104
  438. package/src/metamodel/adaptable-metamodel-model.d.ts +0 -26
  439. package/src/metamodel/adaptable-metamodel-model.js +0 -2
  440. package/src/metamodel/adaptable.metamodel.d.ts +0 -6244
  441. package/src/metamodel/adaptable.metamodel.js +0 -1
@@ -7,15 +7,6 @@ const icons_1 = require("../components/icons");
7
7
  const ArrayExtensions_1 = tslib_1.__importDefault(require("../Utilities/Extensions/ArrayExtensions"));
8
8
  const GeneralConstants_1 = require("../Utilities/Constants/GeneralConstants");
9
9
  const AggregationColumns_1 = require("../AdaptableState/Common/AggregationColumns");
10
- /**
11
- * Creates an AG Grid icon element for the given icon name.
12
- *
13
- * Mimics AG Grid's internal icon creation, producing a
14
- * `<span class="ag-icon ag-icon-{name}" role="presentation" unselectable="on">`
15
- * so the icon picks up AG Grid's own icon font/theme styling.
16
- *
17
- * @see https://github.com/ag-grid/ag-grid/blob/5ca14e73188f6f52fd7d545d595c067bf1b72168/packages/ag-grid-community/src/utils/icon.ts#L139
18
- */
19
10
  function createAgGridIcon(name) {
20
11
  const element = document.createElement('span');
21
12
  element.className = `ag-icon ag-icon-${name}`;
@@ -32,21 +23,6 @@ const toFuncLabel = (funcName) => {
32
23
  }
33
24
  return funcName ? funcName.charAt(0).toUpperCase() + funcName.slice(1) : funcName;
34
25
  };
35
- /**
36
- * Builds the replacement for AG Grid's built-in `valueAggSubMenu` column menu item.
37
- *
38
- * AG Grid does not allow customizing the built-in submenu, so we rebuild an
39
- * equivalent one: the column's existing aggregation functions plus a
40
- * `Weighted Average` item whose submenu lists the numeric columns that can be
41
- * used as the weight parameter.
42
- *
43
- * Both standard and weighted selections persist through the current Layout
44
- * (`updateCurrentLayout`), so the existing `weightedAvg` aggFunc can read the
45
- * chosen `weightedColumnId` back from the Layout.
46
- *
47
- * Weighted Average is never used in Pivot Layouts, so this only deals with the
48
- * Table Layout aggregations and the caller skips it entirely in Pivot mode.
49
- */
50
26
  function buildValueAggregationMenuItem(adaptableApi, menuContext) {
51
27
  const column = menuContext.adaptableColumn;
52
28
  const columnId = column.columnId;
@@ -90,7 +66,6 @@ function buildValueAggregationMenuItem(adaptableApi, menuContext) {
90
66
  };
91
67
  });
92
68
  };
93
- // 'None' clears any aggregation for the column and is checked when none is set
94
69
  const subMenu = [
95
70
  {
96
71
  name: 'None',
@@ -98,11 +73,7 @@ function buildValueAggregationMenuItem(adaptableApi, menuContext) {
98
73
  action: () => removeAggregation(),
99
74
  },
100
75
  ];
101
- // getDisplayAggFuncNames already positions weightedAvg right after 'avg'
102
- // (and only includes it when the column is eligible)
103
76
  const aggFuncItems = (0, AggregationColumns_1.getDisplayAggFuncNames)(column).map((funcName) => {
104
- // Weighted Average needs a weight column parameter, so instead of a plain
105
- // action it gets a submenu listing the numeric columns usable as the weight.
106
77
  if (funcName === AggregationColumns_1.WEIGHTED_AVERAGE_AGG_FN_NAME) {
107
78
  const weightColumnItems = adaptableApi.columnApi
108
79
  .getNumericColumns()
@@ -150,23 +121,17 @@ class AgGridMenuAdapter {
150
121
  buildColumnMenu(params, originalGetMainMenuItems) {
151
122
  const agGridMenuItems = (params.defaultItems ? [...params.defaultItems] : []);
152
123
  if (!params.column) {
153
- // return only AG Grid context if the Adaptable column is not found (should not happen)
154
124
  return agGridMenuItems;
155
125
  }
156
- // If Adaptable UI is hidden, return only AG Grid default items
157
126
  if (!this.adaptableApi.userInterfaceApi.isAdaptableUIVisible()) {
158
127
  return agGridMenuItems;
159
128
  }
160
129
  const columnMenuOptions = this.adaptableOptions.columnMenuOptions;
161
130
  const adaptableColumn = this.adaptableApi.columnApi.getColumnWithColumnId(params.column?.getColId());
162
131
  const menuContext = this.createColumnMenuContextObject(adaptableColumn, params.column);
163
- /**
164
- * AG Grid items
165
- */
166
132
  const agGridDefaultStructure = agGridMenuItems.map((itemName) => this.mapAgGridItemTypeToAgGridMenuItem(itemName));
167
133
  const adaptableMenuItems = this.createAdaptableColumnMenuItems(menuContext);
168
134
  const defaultColumnMenuStructure = this.buildColumnMenuDefaultStructure(adaptableMenuItems, menuContext);
169
- // 1. first check if there is a custom column menu defined
170
135
  if (typeof columnMenuOptions.customColumnMenu === 'function') {
171
136
  const defaultAgGridMenuItems = agGridMenuItems.map((itemName) => this.mapAgGridItemTypeToAgGridMenuItem(itemName));
172
137
  const defaultAdaptableMenuItems = adaptableMenuItems.map((adaptableItem) => ({ menuType: 'Adaptable', ...adaptableItem }));
@@ -183,12 +148,6 @@ class AgGridMenuAdapter {
183
148
  .map((customMenuItem) => this.mapCustomMenuItemToAgGridMenuDefinition(customMenuItem, menuContext))
184
149
  .filter(Boolean);
185
150
  }
186
- // 2. if not, return the default context menu
187
- // AG Grid does not allow customizing the built-in `valueAggSubMenu`, so we
188
- // replace it with an Adaptable-built equivalent that also offers a Weighted
189
- // Average aggregation (with a submenu to pick the weight column).
190
- // Weighted Average is never used in Pivot Layouts, so we leave the AG Grid
191
- // default item untouched there.
192
151
  const isPivotLayout = this.adaptableApi.layoutApi.isCurrentLayoutPivot();
193
152
  const mappedAgGridMenuItems = agGridMenuItems.map((itemName) => itemName === 'valueAggSubMenu' && !isPivotLayout
194
153
  ? {
@@ -207,23 +166,16 @@ class AgGridMenuAdapter {
207
166
  if (!params.column) {
208
167
  return [];
209
168
  }
210
- // If Adaptable UI is hidden, return only AG Grid default items
211
169
  if (!this.adaptableApi.userInterfaceApi.isAdaptableUIVisible()) {
212
170
  return (params.defaultItems ? [...params.defaultItems] : []);
213
171
  }
214
- // we do this in order to refresh the internal state of selected cells (technically query the AG Grid cellRanges)
215
- // (right-click selected the current cell, but this was not reflected in the internal state of the selected cells)
216
172
  this._adaptableInstance.refreshSelectedCellsState();
217
173
  const contextMenuOptions = this.adaptableOptions.contextMenuOptions;
218
174
  const adaptableColumn = this.adaptableApi.columnApi.getColumnWithColumnId(params.column?.getColId());
219
175
  const menuContext = this.createContextMenuContextObject(params, adaptableColumn);
220
- /**
221
- * AG Grid Items
222
- */
223
176
  const agGridMenuItems = (params.defaultItems ? [...params.defaultItems] : []);
224
177
  const agGridCopyItems = agGridMenuItems.filter((item) => ['copy', 'copyWithHeaders', 'copyWithGroupHeaders', 'cut', 'paste'].includes(item));
225
178
  const otherAgGridItems = agGridMenuItems.filter((item) => !agGridCopyItems.includes(item) &&
226
- // we provide Adaptable exports in the context menu
227
179
  !['export', 'csvExport', 'excelExport'].includes(item));
228
180
  const agGridDefaultStructure = [
229
181
  {
@@ -238,15 +190,8 @@ class AgGridMenuAdapter {
238
190
  .filter((itemName) => itemName !== 'separator')
239
191
  .map((itemName) => this.mapAgGridItemTypeToAgGridMenuItem(itemName)),
240
192
  ];
241
- /**
242
- * Adaptable Items
243
- */
244
193
  const adaptableMenuItems = this.createAdaptableContextMenuItems(menuContext);
245
194
  const adaptableDefaultStructure = this.buildContextMenuDefaultStructure(adaptableMenuItems, menuContext);
246
- /**
247
- * Build the context menu
248
- */
249
- // 1. first check if there is a custom context menu defined
250
195
  if (typeof contextMenuOptions.customContextMenu === 'function') {
251
196
  const defaultAgGridMenuItems = agGridMenuItems.map((itemName) => this.mapAgGridItemTypeToAgGridMenuItem(itemName));
252
197
  const defaultAdaptableMenuItems = adaptableMenuItems.map((adaptableItem) => ({ menuType: 'Adaptable', ...adaptableItem }));
@@ -265,7 +210,6 @@ class AgGridMenuAdapter {
265
210
  .map((customMenuItem) => this.mapCustomMenuItemToAgGridMenuDefinition(customMenuItem, menuContext))
266
211
  .filter(Boolean);
267
212
  }
268
- // 2. if not, return the default context menu
269
213
  const defaultContextMenu = [
270
214
  ...agGridDefaultStructure.map((agGridItem) => this.mapCustomMenuItemToAgGridMenuDefinition(agGridItem, menuContext)),
271
215
  'separator',
@@ -279,7 +223,6 @@ class AgGridMenuAdapter {
279
223
  name: itemName,
280
224
  };
281
225
  }
282
- // due to entitlements or other reasons, some menu items might be hidden, leading to consecutive separators
283
226
  removeConsecutiveSeparators(menuItems, separator = 'separator') {
284
227
  return menuItems.reduce((acc, item, index, array) => {
285
228
  if (item === separator && array[index + 1] === separator) {
@@ -312,11 +255,9 @@ class AgGridMenuAdapter {
312
255
  return contextMenuItems;
313
256
  }
314
257
  createContextMenuContextObject(params, adaptableColumn) {
315
- // lets build a picture of what has been right clicked. Will take time to get right but lets start
316
258
  let isSingleSelectedColumn = false;
317
259
  let isSelectedCell = false;
318
260
  let isSelectedRow = false;
319
- // row group columns dont provide an AdapTable Column so return bare minimum
320
261
  if (!adaptableColumn) {
321
262
  return {
322
263
  ...this.adaptableApi.internalApi.buildBaseContext(),
@@ -431,22 +372,13 @@ class AgGridMenuAdapter {
431
372
  })
432
373
  .filter(Boolean),
433
374
  };
434
- // If a framework component is supplied, attach it so AG Grid renders the
435
- // menu row content via its own framework adapter. React, Vue and Angular
436
- // variants are supported; for other variants we silently fall back to
437
- // the default name/icon/action rendering.
438
375
  if (userMenuItem.frameworkComponent) {
439
376
  const variant = this.adaptableApi.gridApi.getVariant();
440
377
  let menuItemComponent;
441
378
  if (variant === 'react') {
442
- // React function components are passed through as-is; AG Grid's
443
- // React adapter will instantiate them with `CustomMenuItemProps`.
444
379
  menuItemComponent = userMenuItem.frameworkComponent;
445
380
  }
446
381
  else if (variant === 'vue') {
447
- // Vue framework components are factories of shape
448
- // `({ adaptableApi }) => Component`; invoke once to obtain the
449
- // component options object that AG Grid Vue's adapter expects.
450
382
  try {
451
383
  menuItemComponent = userMenuItem.frameworkComponent({
452
384
  adaptableApi: this.adaptableApi,
@@ -458,12 +390,6 @@ class AgGridMenuAdapter {
458
390
  }
459
391
  }
460
392
  else if (variant === 'angular') {
461
- // Angular framework components have shape `{ type: ComponentClass }`;
462
- // hand the class to AG Grid Angular which uses its own
463
- // `viewContainerRef.createComponent` to instantiate it. The optional
464
- // `onSetup` field is intentionally NOT honoured here because AG Grid
465
- // owns the lifecycle - menu-item Angular components should consume
466
- // `menuItemParams` (or AG Grid's `agInit`) to receive `adaptableApi`.
467
393
  const angularComponent = userMenuItem.frameworkComponent;
468
394
  menuItemComponent = angularComponent.type;
469
395
  }
@@ -479,45 +405,24 @@ class AgGridMenuAdapter {
479
405
  return menuItemDef;
480
406
  }
481
407
  buildContextMenuDefaultStructure(availableMenuItems, menuContext) {
482
- // Alert
483
408
  const alertMenuItems = this.getModuleSpecificStructure('Alert', availableMenuItems);
484
- // BulkUpdate
485
409
  const bulkUpdateMenuItems = this.getModuleSpecificStructure('BulkUpdate', availableMenuItems);
486
- // CalculatedColumn
487
410
  const calculatedColumnMenuItems = this.getModuleSpecificStructure('CalculatedColumn', availableMenuItems);
488
- // CellSummary
489
411
  const cellSummaryMenuItems = this.getModuleSpecificStructure('CellSummary', availableMenuItems);
490
- // ColumnFilter
491
412
  const columnFilterMenuItems = this.getModuleSpecificStructure('ColumnFilter', availableMenuItems, 'column-filter-group');
492
- // ColumnInfo
493
413
  const columnInfoMenuItems = this.getModuleSpecificStructure('ColumnInfo', availableMenuItems);
494
- // Comment
495
414
  const commentMenuItems = this.getModuleSpecificStructure('Comment', availableMenuItems);
496
- // Dashboard
497
415
  const dashboardMenuItems = this.getModuleSpecificStructure('Dashboard', availableMenuItems, 'dashboard-group');
498
- // DataImport
499
416
  const dataImportMenuItems = this.getModuleSpecificStructure('DataImport', availableMenuItems);
500
- // Export
501
417
  const exportMenuItems = this.getModuleSpecificStructure('Export', availableMenuItems, 'export-group');
502
- // FDC3
503
418
  const fdc3MenuItems = this.getModuleSpecificStructure('Fdc3', availableMenuItems);
504
- // FlashingCell
505
419
  const flashingCellMenuItems = this.getModuleSpecificStructure('FlashingCell', availableMenuItems);
506
- // GridInfo
507
420
  const gridInfoMenuItems = this.getModuleSpecificStructure('GridInfo', availableMenuItems);
508
- // Layout
509
421
  const [gridActionItems, otherLayoutItems] = this.getLayoutContextMenuStructure(availableMenuItems);
510
- // Note
511
422
  const noteMenuItems = this.getModuleSpecificStructure('Note', availableMenuItems);
512
- // SettingsPanel
513
423
  const settingsPanelMenuItems = this.getModuleSpecificStructure('SettingsPanel', availableMenuItems);
514
- // SmartEdit
515
424
  const smartEditMenuItems = this.getModuleSpecificStructure('SmartEdit', availableMenuItems);
516
- // SystemStatus
517
425
  const systemStatusMenuItems = this.getModuleSpecificStructure('SystemStatus', availableMenuItems);
518
- /**
519
- * Custom structures
520
- */
521
426
  const gridMenuItem = {
522
427
  name: 'grid-group',
523
428
  label: 'Grid',
@@ -565,9 +470,6 @@ class AgGridMenuAdapter {
565
470
  ...columnInfoMenuItems,
566
471
  ], '-');
567
472
  }
568
- /**
569
- * Hide menu group with no subitems or elevate single subitem to parent level
570
- */
571
473
  normalizeMenuGroup(menuItem) {
572
474
  if (!menuItem.subItems?.length) {
573
475
  return [];
@@ -577,9 +479,6 @@ class AgGridMenuAdapter {
577
479
  }
578
480
  return [menuItem];
579
481
  }
580
- /**
581
- * Default strategy for menu items: return as is if there is only one item, otherwise group them under a parent item
582
- */
583
482
  getModuleSpecificStructure(module, menuItems, groupName) {
584
483
  const moduleItems = menuItems.filter((menuItem) => menuItem.category === module);
585
484
  if (moduleItems.length > 1) {
@@ -620,44 +519,24 @@ class AgGridMenuAdapter {
620
519
  };
621
520
  }
622
521
  buildColumnMenuDefaultStructure(availableMenuItems, menuContext) {
623
- // CalculatedColumn
624
522
  const calculatedColumnMenuItems = this.getModuleSpecificStructure('CalculatedColumn', availableMenuItems);
625
- // CellSummary
626
523
  const cellSummaryMenuItems = this.getModuleSpecificStructure('CellSummary', availableMenuItems);
627
- // Chart
628
524
  const chartMenuItems = this.getModuleSpecificStructure('Charting', availableMenuItems);
629
- // ColumnFilter
630
525
  const [columnFilterGroup, filterVisibilityItems] = this.getColumnFilterColumnMenuStructure(availableMenuItems);
631
- // ColumnInfo
632
526
  const columnInfoMenuItems = this.getModuleSpecificStructure('ColumnInfo', availableMenuItems);
633
- // CustomSort
634
527
  const customSortMenuItems = this.getModuleSpecificStructure('CustomSort', availableMenuItems);
635
- // Dashboard
636
528
  const dashboardMenuItems = this.getModuleSpecificStructure('Dashboard', availableMenuItems, 'dashboard-group');
637
- // DataImport
638
529
  const dataImportMenuItems = this.getModuleSpecificStructure('DataImport', availableMenuItems);
639
- // FlashingCell
640
530
  const flashingCellMenuItems = this.getModuleSpecificStructure('FlashingCell', availableMenuItems);
641
- // FormatColumn
642
531
  const formatColumnMenuItems = this.getModuleSpecificStructure('FormatColumn', availableMenuItems);
643
- // FreeTextColumn
644
532
  const freeTextColumnMenuItems = this.getModuleSpecificStructure('FreeTextColumn', availableMenuItems);
645
- // GridInfo
646
533
  const gridInfoMenuItems = this.getModuleSpecificStructure('GridInfo', availableMenuItems);
647
- // Layout
648
534
  const [gridSelectItems, columnSelectItems, columnActionGroup, otherLayoutItems] = this.getLayoutColumnMenuStructure(availableMenuItems);
649
535
  const selectionMenuItems = this.buildSelectColumnMenuGroup(gridSelectItems, columnSelectItems);
650
- // PlusMinus
651
536
  const plusMinusMenuItems = this.getModuleSpecificStructure('PlusMinus', availableMenuItems);
652
- // SettingsPanel
653
537
  const settingsPanelMenuItems = this.getModuleSpecificStructure('SettingsPanel', availableMenuItems);
654
- // StyledColumn
655
538
  const styledColumnMenuItems = this.getStyledColumnColumnMenuStructure(availableMenuItems);
656
- // SystemStatus
657
539
  const systemStatusMenuItems = this.getModuleSpecificStructure('SystemStatus', availableMenuItems);
658
- /**
659
- * Custom structures
660
- */
661
540
  const gridMenuItem = {
662
541
  name: 'grid-group',
663
542
  label: 'Grid',
@@ -677,20 +556,6 @@ class AgGridMenuAdapter {
677
556
  ...gridInfoMenuItems,
678
557
  ],
679
558
  };
680
- /*
681
- const calculatedColumnMenuItem: AdaptableMenuItem = {
682
- name: 'calculated-column-group',
683
- label: 'Calculated Column',
684
- module: 'CalculatedColumn',
685
- isVisible: true,
686
- icon: {
687
- name: 'columns',
688
- },
689
- subItems: [
690
- ...calculatedColumnMenuItems,
691
- ],
692
- };
693
- */
694
559
  const columnMenuItem = {
695
560
  name: 'column-group',
696
561
  label: 'Column',
@@ -814,7 +679,6 @@ class AgGridMenuAdapter {
814
679
  if (menuItem === '-') {
815
680
  return menuItem;
816
681
  }
817
- // @ts-ignore
818
682
  const subItems = this.mapAdaptableMenuItemToSystemMenuItems(menuItem.subItems);
819
683
  return {
820
684
  ...menuItem,
@@ -833,7 +697,6 @@ class AgGridMenuAdapter {
833
697
  });
834
698
  return columnMenuItems;
835
699
  }
836
- // TODO AFL MIG: pretty sure this logic is duplicated in several other places
837
700
  mapAdaptableIconToAgGridIcon(adaptableIcon, style) {
838
701
  const icon = this.adaptableApi.userInterfaceApi.internalApi.prepareAdaptableIconDef(adaptableIcon);
839
702
  if ((0, Icon_1.isAdaptableElementIcon)(icon)) {
@@ -841,8 +704,6 @@ class AgGridMenuAdapter {
841
704
  if (typeof element === 'string') {
842
705
  return element;
843
706
  }
844
- // THe element neets to be cloned.
845
- // when it is used in more than one plce the element is removed from the DOM
846
707
  return element.cloneNode(true);
847
708
  }
848
709
  else {
@@ -851,10 +712,6 @@ class AgGridMenuAdapter {
851
712
  });
852
713
  }
853
714
  }
854
- /**
855
- * The output of this function is used to build the column header menu if the AG Grid Menu Module is NOT present
856
- * This is controlled by the AdaptableAgGrid.embedColumnMenu property
857
- */
858
715
  buildStandaloneColumnHeader(adaptableColumn) {
859
716
  const agGridColumn = this._adaptableInstance.getAgGridColumnForColumnId(adaptableColumn.columnId);
860
717
  const menuContext = this.createColumnMenuContextObject(adaptableColumn, agGridColumn);
@@ -22,8 +22,6 @@ class AgGridModulesAdapter {
22
22
  isAgGridModuleRegistered(moduleName) {
23
23
  let isModuleRegistered = this.agGridApi.isModuleRegistered(moduleName);
24
24
  if (!isModuleRegistered) {
25
- // SSRM module comes with its own implementations of Pivot, MasterDetail and TreeData
26
- // #ssrm_pivot_module
27
25
  const serverSideDependencies = [
28
26
  'PivotModule',
29
27
  'MasterDetailModule',
@@ -32,7 +32,6 @@ class AgGridOptionsService {
32
32
  let adaptableValue = propertyGetter(userValue);
33
33
  if (typeof adaptableValue === 'function') {
34
34
  const previousValue = adaptableValue;
35
- // @ts-ignore we know that adaptableValue is a function
36
35
  adaptableValue = (...args) => {
37
36
  if (this.adaptableInstance.isDestroyed) {
38
37
  return;
@@ -58,7 +57,6 @@ class AgGridOptionsService {
58
57
  }
59
58
  revertGridOptionsPropertiesToUserValue(gridOptions, propertyNames) {
60
59
  for (const propertyName of propertyNames) {
61
- // see this.setGridOptionsProperty(...)
62
60
  const userKey = `user.${propertyName}`;
63
61
  const userValue = this.gridOptionsPropertyCache.get(userKey);
64
62
  gridOptions[propertyName] = userValue;
@@ -54,7 +54,6 @@ class AgGridThemeAdapter {
54
54
  }
55
55
  }
56
56
  if (!adaptableTheme.AgGridClassName) {
57
- // default AG Grid to its light theme
58
57
  adaptableTheme.AgGridClassName = getAgGridLightThemeName();
59
58
  }
60
59
  if (agGridContainer != null) {
@@ -65,7 +64,6 @@ class AgGridThemeAdapter {
65
64
  }
66
65
  });
67
66
  }
68
- // also remove all AG Grid theme class names
69
67
  const agGridClassNamesToRemove = [];
70
68
  agGridContainer.classList.forEach((x) => {
71
69
  if (x && x.indexOf('ag-theme-') === 0) {
@@ -86,19 +84,16 @@ class AgGridThemeAdapter {
86
84
  if (currentAgGridTheme === 'legacy') {
87
85
  return this.legacy_getAgGridCurrentThemeClassNames();
88
86
  }
89
- // @ts-ignore no other way than to use internals
90
87
  const currentAgGridTheme__cssClassCache = currentAgGridTheme?._cssClassCache;
91
88
  return currentAgGridTheme__cssClassCache ?? '';
92
89
  }
93
90
  getAgGridLightThemeName() {
94
91
  const container = this.getAgGridContainerElement();
95
92
  if (container && container.classList) {
96
- // we detect the ag theme class
97
93
  const classList = container.classList;
98
94
  for (let i = 0, len = classList.length; i < len; i++) {
99
95
  const cls = classList[i];
100
96
  if (cls.indexOf('ag-theme-') === 0) {
101
- // even if dark theme is included, we compute the light theme name out of it
102
97
  return cls.replace('-dark', '');
103
98
  }
104
99
  }
@@ -107,13 +102,11 @@ class AgGridThemeAdapter {
107
102
  this.logger.warn('AG Grid container not found. Defaulting to ag-theme-balham for the light theme.');
108
103
  }
109
104
  this.logger.warn('No ag-theme-* class found on the grid container. Defaulting to ag-theme-balham.');
110
- // fallback to the default light theme
111
105
  return 'ag-theme-balham';
112
106
  }
113
107
  legacy_getAgGridCurrentThemeClassNames() {
114
108
  const container = this.getAgGridContainerElement();
115
109
  if (container && container.classList) {
116
- // we detect the ag theme class
117
110
  const classList = container.classList;
118
111
  for (let i = 0, len = classList.length; i < len; i++) {
119
112
  const cls = classList[i];
@@ -17,13 +17,10 @@ exports.ALL_ADAPTABLE_DATA_TYPES = [
17
17
  exports.OBJECT_ARRAY_DATA_TYPE,
18
18
  'unknown',
19
19
  ];
20
- // #agGridDataTypeDefinitions
21
20
  exports.agGridDataTypeDefinitions = {
22
- // AG Grid default types
23
21
  number: {
24
22
  baseDataType: 'number',
25
23
  extendsDataType: 'number',
26
- // suppress AG Grid editor, we provide our own
27
24
  suppressDefaultProperties: true,
28
25
  },
29
26
  date: {
@@ -33,11 +30,6 @@ exports.agGridDataTypeDefinitions = {
33
30
  valueFormatter: null,
34
31
  suppressDefaultProperties: true,
35
32
  },
36
- // dateString is force-cast to date in AdapTable, see #data_type_dateString
37
- // text: is kept as is
38
- // boolean: is kept as is
39
- // object: is kept as is
40
- // Adaptable specific types
41
33
  unknown: {
42
34
  baseDataType: 'text',
43
35
  extendsDataType: 'text',
@@ -11,11 +11,6 @@ const OVERFLOW_CLASS = {
11
11
  Wrap: 'ab-Badge__wrapper--wrap',
12
12
  Scroll: 'ab-Badge__wrapper--scroll',
13
13
  };
14
- /**
15
- * Maps a column-level `BadgeStyle.Font.Alignment` to the flex
16
- * `justify-content` value for the badge row. Returns `null` to mean
17
- * "leave the wrapper alone" so the default flex layout applies.
18
- */
19
14
  const resolveBadgeRowJustify = (alignment) => {
20
15
  switch (alignment) {
21
16
  case 'Center':
@@ -47,12 +42,9 @@ const getBadgeRendererForColumn = (styledColumn, abColumn, api) => {
47
42
  this.eGui = document.createElement('div');
48
43
  this.eGui.className = wrapperClassName;
49
44
  if (spacing != null) {
50
- // Set the inter-badge gap directly so it doesn't depend on theme CSS.
51
45
  this.eGui.style.setProperty('--ab-cmp-badge__spacing', `${spacing}px`);
52
46
  }
53
47
  if (rowJustify) {
54
- // Position the badge row within the cell. `width: 100%` is needed so
55
- // `justify-content` has room to act on an `inline-flex` container.
56
48
  this.eGui.style.setProperty('justify-content', rowJustify);
57
49
  this.eGui.style.setProperty('width', '100%');
58
50
  }
@@ -114,7 +106,6 @@ const getBadgeRendererForColumn = (styledColumn, abColumn, api) => {
114
106
  };
115
107
  const badge = api.styledColumnApi.internalApi.getApplicableBadge(badgeStyle, predicateDefHandlerContext);
116
108
  const isNullValue = formattedValue === '' || formattedValue === null || formattedValue === undefined;
117
- // Return if empty values or no badge
118
109
  if (isNullValue || !badge) {
119
110
  this.eGui.innerHTML = formattedValue;
120
111
  return;
@@ -161,7 +152,6 @@ const getBadgeRendererForColumn = (styledColumn, abColumn, api) => {
161
152
  this.unmountReactRoot?.();
162
153
  }
163
154
  refresh(params) {
164
- // by returning FALSE we force a re-render every time the cell value changes
165
155
  return false;
166
156
  }
167
157
  };