@adaptabletools/adaptable 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 +1 -9
  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.esm.tsbuildinfo +1 -1
  432. package/src/Utilities/Services/Interface/IMetamodelService.d.ts +0 -20
  433. package/src/Utilities/Services/Interface/IMetamodelService.js +0 -1
  434. package/src/Utilities/Services/MetamodelService.d.ts +0 -17
  435. package/src/Utilities/Services/MetamodelService.js +0 -162
  436. package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/AdaptableOptionsForm.d.ts +0 -6
  437. package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/AdaptableOptionsForm.js +0 -99
  438. package/src/metamodel/adaptable-metamodel-model.d.ts +0 -26
  439. package/src/metamodel/adaptable-metamodel-model.js +0 -1
  440. package/src/metamodel/adaptable.metamodel.d.ts +0 -6244
  441. package/src/metamodel/adaptable.metamodel.js +0 -1
@@ -135,13 +135,6 @@ export class ColumnFilterApiImpl extends ApiBase {
135
135
  const columnFilter = this.getColumnFilterForColumn(columnId);
136
136
  return columnFilter ? this.isColumnFilterActive(columnFilter) : false;
137
137
  }
138
- /**
139
- * Checks if a filter is applied. It is applied when:
140
- * - has no inputs
141
- * - has inputs and inputs have values
142
- *
143
- * @param filter
144
- */
145
138
  isColumnFilterActive(filter) {
146
139
  if (!filter || !filter.Predicates?.length) {
147
140
  return false;
@@ -152,7 +145,6 @@ export class ColumnFilterApiImpl extends ApiBase {
152
145
  return filter.Predicates.some((predicate) => {
153
146
  const predicateDef = this.getPredicateApi().getPredicateDefById(predicate.PredicateId);
154
147
  if (ArrayExtensions.IsNull(predicateDef.inputs) &&
155
- // In and NotIn predicates ave no inputs in the definition
156
148
  !this.getPredicateApi().internalApi.IsInOrNotInPredicate(predicate)) {
157
149
  return true;
158
150
  }
@@ -160,7 +152,6 @@ export class ColumnFilterApiImpl extends ApiBase {
160
152
  if (ArrayExtensions.IsEmpty(inputs)) {
161
153
  return false;
162
154
  }
163
- // all values in the array need to be non-empty (e.g. between has two values, [min, max])
164
155
  const allInputsHaveValues = inputs.every((value) => {
165
156
  return value !== undefined && value !== null && value !== '';
166
157
  });
@@ -7,7 +7,6 @@ export class ColumnScopeApiImpl extends ApiBase {
7
7
  return false;
8
8
  }
9
9
  if ('All' in scope) {
10
- // do we need a true check here?
11
10
  return true;
12
11
  }
13
12
  if ('DataTypes' in scope) {
@@ -47,7 +46,6 @@ export class ColumnScopeApiImpl extends ApiBase {
47
46
  return 'Nothing';
48
47
  }
49
48
  if ('All' in scope) {
50
- // do we need a true check here?
51
49
  return 'Columns: All';
52
50
  }
53
51
  if ('ColumnTypes' in scope) {
@@ -169,19 +167,15 @@ export class ColumnScopeApiImpl extends ApiBase {
169
167
  return undefined;
170
168
  }
171
169
  isColumnInNumericScope(column, scope) {
172
- // if column is not even numeric then return false
173
170
  if (column == null || column == undefined || column.dataType !== 'number') {
174
171
  return false;
175
172
  }
176
- // if no scope then return false
177
173
  if (scope == undefined) {
178
174
  return false;
179
175
  }
180
- // check if the scope has ColumnIds and whether this column is contained
181
176
  if ('ColumnIds' in scope && scope.ColumnIds.includes(column.columnId)) {
182
177
  return true;
183
178
  }
184
- // check if the scope has ColumnIds and whether this column is contained
185
179
  if ('DataTypes' in scope && scope.DataTypes.includes('number')) {
186
180
  return true;
187
181
  }
@@ -192,19 +186,15 @@ export class ColumnScopeApiImpl extends ApiBase {
192
186
  return false;
193
187
  }
194
188
  isColumnInTextScope(column, scope) {
195
- // if column is not even string then return false
196
189
  if (column == null || column == undefined || column.dataType !== 'text') {
197
190
  return false;
198
191
  }
199
- // if no scope then return false
200
192
  if (scope == undefined) {
201
193
  return false;
202
194
  }
203
- // check if the scope has ColumnIds and whether this column is contained
204
195
  if ('ColumnIds' in scope && scope.ColumnIds.includes(column.columnId)) {
205
196
  return true;
206
197
  }
207
- // check if the scope has ColumnIds and whether this column is contained
208
198
  if ('DataTypes' in scope && scope.DataTypes.includes('text')) {
209
199
  return true;
210
200
  }
@@ -215,19 +205,15 @@ export class ColumnScopeApiImpl extends ApiBase {
215
205
  return false;
216
206
  }
217
207
  isColumnInDateScope(column, scope) {
218
- // if column is not even numeric then return false
219
208
  if (column == null || column == undefined || column.dataType !== 'date') {
220
209
  return false;
221
210
  }
222
- // if no scope then return false
223
211
  if (scope == undefined) {
224
212
  return false;
225
213
  }
226
- // check if the scope has ColumnIds and whether this column is contained
227
214
  if ('ColumnIds' in scope && scope.ColumnIds.includes(column.columnId)) {
228
215
  return true;
229
216
  }
230
- // check if the scope has ColumnIds and whether this column is contained
231
217
  if ('DataTypes' in scope && scope.DataTypes.includes('date')) {
232
218
  return true;
233
219
  }
@@ -238,8 +224,6 @@ export class ColumnScopeApiImpl extends ApiBase {
238
224
  return false;
239
225
  }
240
226
  isScopeInScope(a, b) {
241
- // AFL: Scope:'All' for object 'a' is NOT handled
242
- // this is probably wrong, but we will touch it when a bug is filed
243
227
  if ('All' in b) {
244
228
  return true;
245
229
  }
@@ -265,11 +249,9 @@ export class ColumnScopeApiImpl extends ApiBase {
265
249
  a.ColumnTypes.every((columnType) => b.ColumnTypes.includes(columnType))) {
266
250
  return true;
267
251
  }
268
- // check if each colum in a has column types in b
269
252
  if ('ColumnIds' in a && 'ColumnTypes' in b) {
270
253
  const inScope = a.ColumnIds.every((columnId) => {
271
254
  const column = this.getColumnApi().getColumnWithColumnId(columnId);
272
- // check if at least one column-type is in scope
273
255
  return column.columnTypes.some((columnColumnType) => b.ColumnTypes.includes(columnColumnType));
274
256
  });
275
257
  if (inScope) {
@@ -280,9 +262,6 @@ export class ColumnScopeApiImpl extends ApiBase {
280
262
  }
281
263
  createCellColorRangesForScope(scope) {
282
264
  const distinctColumnsValues = this.getGridApi().internalApi.getDistinctRawValuesForColumn(this.getSingleColumnInScope(scope));
283
- // One neutral band by default — same gray as RangesComponent "Add New Range".
284
- // Users who want a diverging negative/positive scale should use Zero Centred
285
- // (Gradient) or add/split ranges manually.
286
265
  if (this.distinctColumnValuesAreEmpty(distinctColumnsValues)) {
287
266
  return [
288
267
  {
@@ -123,7 +123,6 @@ export class DashboardApiImpl extends ApiBase {
123
123
  }
124
124
  }
125
125
  getCurrentToolbars() {
126
- // if hidden or collapsed return fasle
127
126
  if (this.getDashboardState().IsCollapsed == true || this.getDashboardState().IsHidden == true) {
128
127
  return [];
129
128
  }
@@ -32,7 +32,6 @@ export class EntitlementApiImpl extends ApiBase {
32
32
  }
33
33
  }
34
34
  }
35
- // if still here then return their default Access Level
36
35
  return defaultAccessLevel;
37
36
  }
38
37
  return ACCESS_LEVEL_FULL;
@@ -24,7 +24,6 @@ export class ExportApiImpl extends ApiBase {
24
24
  return this.getReportByName(reportName);
25
25
  }
26
26
  getReportByName(reportName) {
27
- // if system report then create
28
27
  if (this.internalApi.isSystemReport(reportName)) {
29
28
  return this.internalApi.createSystemReport(reportName);
30
29
  }
@@ -64,11 +63,9 @@ export class ExportApiImpl extends ApiBase {
64
63
  })
65
64
  : systemReportFormatsOption;
66
65
  return reportFormats.filter((format) => {
67
- // JSON format doesn't support Master Detail Grid
68
66
  if (this.getGridApi().isMasterDetailGrid()) {
69
67
  return format !== 'JSON';
70
68
  }
71
- // PivotLayout & AllData can't be exported as VisualExcel
72
69
  if (this.getExportApi().getCurrentReportName() === ALL_DATA_REPORT &&
73
70
  this.getLayoutApi().isCurrentLayoutPivot()) {
74
71
  return format !== 'VisualExcel';
@@ -113,7 +110,6 @@ export class ExportApiImpl extends ApiBase {
113
110
  return destinationItems;
114
111
  }
115
112
  getAllFormats() {
116
- // FIXME AFL: add here custom formats when available
117
113
  return this.getAvailableSystemFormats();
118
114
  }
119
115
  getAllReports() {
@@ -213,7 +209,6 @@ export class ExportApiImpl extends ApiBase {
213
209
  return this.getExportApi()
214
210
  .getAllExportDestinations()
215
211
  .filter((destination) => {
216
- // can NOT export BLOBs to Clipboard
217
212
  if (reportFormat === 'Excel' || reportFormat === 'VisualExcel') {
218
213
  return destination !== 'Clipboard';
219
214
  }
@@ -227,12 +222,10 @@ export class ExportApiImpl extends ApiBase {
227
222
  }
228
223
  this.logInfo(`Start Export of ${reportName} in format ${format} to ${destination}`);
229
224
  const processExportResult = await this.processExport(report, format, destination);
230
- // if FALSE, cancel export
231
225
  if (!processExportResult) {
232
226
  this.logInfo(`Cancel Export of ${reportName}`);
233
227
  return;
234
228
  }
235
- // if TRUE, continue with standard export
236
229
  if (processExportResult === true) {
237
230
  const exportedReport = await this._adaptable.agGridExportAdapter.exportData({
238
231
  report,
@@ -242,13 +235,11 @@ export class ExportApiImpl extends ApiBase {
242
235
  customExportParams: exportConfig?.exportParams,
243
236
  });
244
237
  if (!exportedReport) {
245
- // for destination 'Download' and format 'Excel', 'VisualExcel' or 'Csv', AG Grid handles the download as well
246
238
  return;
247
239
  }
248
240
  this.internalApi.sendReportToDestination(exportedReport, report, format, destination);
249
241
  }
250
242
  else {
251
- // in this case the user has returned a custom ExportResultData object
252
243
  const userProcessedExportResult = processExportResult;
253
244
  if (!userProcessedExportResult) {
254
245
  this.logWarn(`Processing of Export ${reportName} to ${destination} returned null or undefined`);
@@ -266,7 +257,6 @@ export class ExportApiImpl extends ApiBase {
266
257
  this.logInfo(`Start getting Report Data for ${reportName} in format ${format}`);
267
258
  const processExportResult = await this.processExport(report, format, 'Clipboard');
268
259
  let reportData;
269
- // handle Export processing
270
260
  if (typeof processExportResult?.type === 'string') {
271
261
  reportData = processExportResult;
272
262
  }
@@ -61,7 +61,6 @@ export class ExpressionApiImpl extends ApiBase {
61
61
  return Array.from(new Set(columnIds));
62
62
  }
63
63
  catch (error) {
64
- // defensive programing, this should happen only if someone botched Initial Adaptable State
65
64
  this.logWarn(`QueryApi.getColumnsFromExpressionInvalid received an invalid expression: ${expression}
66
65
  Error: ${error}`);
67
66
  return [];
@@ -31,9 +31,6 @@ export class FormatColumnApiImpl extends ApiBase {
31
31
  return undefined;
32
32
  }
33
33
  const formatColumn = formatColumns.find((fc) => fc.DisplayFormat != undefined);
34
- // Resolve numeric preset names (e.g. 'Dollar') into the concrete
35
- // AdaptableFormat object so external callers always receive a fully
36
- // structured format.
37
34
  return formatColumn ? resolveDisplayFormat(formatColumn.DisplayFormat) : undefined;
38
35
  }
39
36
  getSuspendedFormatColumns(config) {
@@ -52,7 +52,6 @@ export class FreeTextColumnApiImpl extends ApiBase {
52
52
  })
53
53
  : [];
54
54
  storedValues.forEach((sv) => {
55
- // do summat
56
55
  const isExistingPKValue = existingPKValues.find((epk) => epk == sv.PrimaryKey);
57
56
  if (isExistingPKValue) {
58
57
  if (replaceAction == 'Conflicting') {
@@ -66,7 +65,6 @@ export class FreeTextColumnApiImpl extends ApiBase {
66
65
  }
67
66
  }
68
67
  else {
69
- // no existing value so just add it
70
68
  freeTextColumn.FreeTextStoredValues.push(sv);
71
69
  }
72
70
  });
@@ -22,10 +22,6 @@ export class GridApiImpl extends ApiBase {
22
22
  return this.getAdaptableState().Internal;
23
23
  }
24
24
  loadGridData(dataSource) {
25
- // we intentionally set an initial empty array,
26
- // to prevent `cellchanged` events from being triggered for rows that have
27
- // the same primary key with existing rows
28
- // see #testprevent_cellchanged_event_on_load_grid_data
29
25
  this._adaptable.agGridAdapter.setGridOption('rowData', []);
30
26
  this._adaptable.setGridData(dataSource);
31
27
  const allRowNodes = this.getAllRowNodes();
@@ -102,11 +98,10 @@ export class GridApiImpl extends ApiBase {
102
98
  return rowNodes;
103
99
  }
104
100
  undoCellEdit(cellDataChangedInfo) {
105
- // for the reason of this hacky solution see the comments in DataService
106
101
  this.getAdaptableInternalApi().getDataService().logUndoChange(cellDataChangedInfo);
107
102
  const cellUpdateRequest = {
108
103
  columnId: cellDataChangedInfo.column.columnId,
109
- newValue: cellDataChangedInfo.oldValue, // need old value as we are undoing
104
+ newValue: cellDataChangedInfo.oldValue,
110
105
  primaryKeyValue: cellDataChangedInfo.primaryKeyValue,
111
106
  rowNode: cellDataChangedInfo.rowNode,
112
107
  };
@@ -169,7 +164,6 @@ export class GridApiImpl extends ApiBase {
169
164
  this._adaptable.applyFiltering();
170
165
  }
171
166
  clearFiltering() {
172
- // slightly round the houses but we have to call ColumnFilterAPI as it does it properly
173
167
  this.getColumnFilterApi().clearColumnFilters();
174
168
  }
175
169
  getColumnSorts() {
@@ -268,7 +262,6 @@ export class GridApiImpl extends ApiBase {
268
262
  }
269
263
  }
270
264
  else {
271
- // include all row
272
265
  this._adaptable.forAllRowNodesDo((rowNode) => {
273
266
  isRowNodeInQuery(rowNode) && filteredRowNodes.push(rowNode);
274
267
  });
@@ -278,29 +271,21 @@ export class GridApiImpl extends ApiBase {
278
271
  }
279
272
  let preapredGridCellRange = gridCellRange;
280
273
  if (!preapredGridCellRange) {
281
- /**
282
- * Select all rows and all columns
283
- */
284
274
  const currentLayout = this.getLayoutApi().getCurrentLayout();
285
275
  preapredGridCellRange = {
286
276
  columnIds: currentLayout.TableColumns,
287
277
  };
288
278
  }
289
- // ranges of row with consecutive indexes
290
279
  const rowRanges = filteredRowNodes.reduce((acc, rowNode, index, collection) => {
291
- // add start if there is none
292
280
  const prevRange = acc[acc.length - 1];
293
281
  if (prevRange.startNode === undefined) {
294
282
  prevRange.startNode = rowNode;
295
283
  }
296
- // add end if next is not consecutive
297
284
  const nextNode = collection[index + 1];
298
285
  if (nextNode && nextNode.rowIndex - 1 !== rowNode.rowIndex) {
299
286
  prevRange.endNode = rowNode;
300
- // start a new one
301
287
  acc.push({});
302
288
  }
303
- // if at the end close last range
304
289
  if (index === collection.length - 1) {
305
290
  prevRange.endNode = rowNode;
306
291
  }
@@ -308,7 +293,6 @@ export class GridApiImpl extends ApiBase {
308
293
  }, [{}]);
309
294
  let preparedClearSelection = clearSelection;
310
295
  rowRanges.forEach((range) => {
311
- // clear only on first range selection
312
296
  this._adaptable.selectCells(preapredGridCellRange.columnIds, range.startNode, range.endNode, preparedClearSelection);
313
297
  preparedClearSelection = false;
314
298
  });
@@ -559,7 +543,6 @@ export class GridApiImpl extends ApiBase {
559
543
  this._adaptable.redrawRows(rowNodes);
560
544
  }
561
545
  refreshGroupRowNodes() {
562
- // see https://www.ag-grid.com/javascript-data-grid/client-side-row-stages/#refreshing-the-client-side-model
563
546
  this.getAgGridApi().refreshClientSideRowModel('group');
564
547
  this._adaptable.updateRowGroupsAndColumnGroupsExpandedState();
565
548
  }
@@ -567,7 +550,6 @@ export class GridApiImpl extends ApiBase {
567
550
  this._adaptable.refreshGridHeader();
568
551
  }
569
552
  isCellEditable(gridCell) {
570
- // If not Grid Cell or Column then return false - GridCell.column may be undefined for cells from synthetic columns created by AG Grid (ex. autoGroup columns)
571
553
  if (!gridCell || !gridCell.column || !gridCell.rowNode) {
572
554
  return false;
573
555
  }
@@ -575,7 +557,6 @@ export class GridApiImpl extends ApiBase {
575
557
  return false;
576
558
  }
577
559
  const agGridColumn = this.getColumnApi().internalApi.getAgGridColumnForAdaptableColumn(gridCell.column.columnId);
578
- // this will invoke the colDef.editable callback where we check both AdapTable and AG Grid editability
579
560
  return agGridColumn?.isCellEditable(gridCell.rowNode);
580
561
  }
581
562
  isCellEdited(gridCell) {
@@ -696,7 +677,6 @@ export class GridApiImpl extends ApiBase {
696
677
  const newColDef = newColumnDefinitions.find((c) => c.colId === colDef.colId);
697
678
  return newColDef ? { ...colDef, ...newColDef } : colDef;
698
679
  });
699
- // find out new columns which are not in the current column definitions
700
680
  const currentColIds = [];
701
681
  this._adaptable.agGridAdapter.traverseColDefs(currentColDefs, (colDef) => {
702
682
  currentColIds.push(colDef.colId);
@@ -726,7 +706,6 @@ export class GridApiImpl extends ApiBase {
726
706
  }
727
707
  addAgGridColumnDefinition(newColumnDefinition) {
728
708
  const currentColDefs = this.getAgGridColumnDefs();
729
- // just in case check of there is not already an existing column with the same id and eliminate it
730
709
  const sanitizedColDefs = this._adaptable.agGridAdapter
731
710
  .traverseColDefs(currentColDefs, (colDef) => {
732
711
  return colDef.colId === newColumnDefinition.colId ? null : colDef;
@@ -26,8 +26,6 @@ export class GridFilterApiImpl extends ApiBase {
26
26
  return gridFilter.Expression;
27
27
  }
28
28
  setGridFilterExpression(filter) {
29
- // A blank / nullish expression has no meaningful AST and would otherwise
30
- // explode the parser inside LayoutGridFilterSet. Treat it as "clear".
31
29
  if (filter == null || filter.trim() === '') {
32
30
  this.clearGridFilter();
33
31
  return;
@@ -97,7 +97,6 @@ export class LayoutApiImpl extends ApiBase {
97
97
  const config = {
98
98
  includeLayoutNotExtendedObjects: true,
99
99
  };
100
- // Alerts
101
100
  const alertExtensions = extendedLayoutInfo.Extensions.filter((e) => {
102
101
  return e.Module == 'Alert';
103
102
  });
@@ -108,7 +107,6 @@ export class LayoutApiImpl extends ApiBase {
108
107
  this.getAlertApi().addAlertDefinition(alertDefinition);
109
108
  }
110
109
  });
111
- // Custom Sorts
112
110
  const customSortExtensions = extendedLayoutInfo.Extensions.filter((e) => {
113
111
  return e.Module == 'CustomSort';
114
112
  });
@@ -119,7 +117,6 @@ export class LayoutApiImpl extends ApiBase {
119
117
  this.getCustomSortApi().addCustomSort(customSort);
120
118
  }
121
119
  });
122
- // Flashing Cells
123
120
  const flashingCellExtensions = extendedLayoutInfo.Extensions.filter((e) => {
124
121
  return e.Module == 'FlashingCell';
125
122
  });
@@ -130,7 +127,6 @@ export class LayoutApiImpl extends ApiBase {
130
127
  this.getFlashingCellApi().addFlashingCellDefinition(flashingCellDefinition);
131
128
  }
132
129
  });
133
- // FormatColumns
134
130
  const formatColumnExtensions = extendedLayoutInfo.Extensions.filter((e) => {
135
131
  return e.Module == 'FormatColumn';
136
132
  });
@@ -141,7 +137,6 @@ export class LayoutApiImpl extends ApiBase {
141
137
  this.getFormatColumnApi().addFormatColumn(formatColumn);
142
138
  }
143
139
  });
144
- // Plus Minus
145
140
  const plusMinusExtensions = extendedLayoutInfo.Extensions.filter((e) => {
146
141
  return e.Module == 'PlusMinus';
147
142
  });
@@ -152,7 +147,6 @@ export class LayoutApiImpl extends ApiBase {
152
147
  this.getPlusMinusApi().addPlusMinusNudge(plusMinusNudge);
153
148
  }
154
149
  });
155
- // Schedule
156
150
  const exportExtensions = extendedLayoutInfo.Extensions.filter((e) => e.Module === 'Export');
157
151
  exportExtensions.forEach((le) => {
158
152
  const raw = le.Object;
@@ -164,7 +158,6 @@ export class LayoutApiImpl extends ApiBase {
164
158
  this.getExportApi().addScheduledReport(schedule);
165
159
  }
166
160
  });
167
- // StyledColumn
168
161
  const styledColumnExtensions = extendedLayoutInfo.Extensions.filter((e) => {
169
162
  return e.Module == 'StyledColumn';
170
163
  });
@@ -186,7 +179,6 @@ export class LayoutApiImpl extends ApiBase {
186
179
  includeLayoutNotExtendedObjects: false,
187
180
  extendedLayoutName: layoutName,
188
181
  };
189
- // cannot see a better way than to go through this module by module...
190
182
  let extensions = [];
191
183
  this.getAlertApi()
192
184
  .getAlertDefinitions(config)
@@ -229,19 +221,16 @@ export class LayoutApiImpl extends ApiBase {
229
221
  };
230
222
  }
231
223
  cloneExtendedLayout(extendedLayoutToClone, layoutName) {
232
- // first clone the underlying Layout
233
224
  const clonedLayout = this.cloneLayout(extendedLayoutToClone.Layout, layoutName);
234
225
  if (clonedLayout == false) {
235
226
  return false;
236
227
  }
237
- // Alerts
238
228
  const alertExtensions = extendedLayoutToClone.Extensions.filter((e) => e.Module == 'Alert');
239
229
  alertExtensions.forEach((le) => {
240
230
  const alertDef = le.Object;
241
231
  alertDef.Tags?.push(layoutName);
242
232
  this.getAlertApi().editAlertDefinition(alertDef);
243
233
  });
244
- // Custom Sorts
245
234
  const customSortExtensions = extendedLayoutToClone.Extensions.filter((e) => {
246
235
  return e.Module == 'CustomSort';
247
236
  });
@@ -250,7 +239,6 @@ export class LayoutApiImpl extends ApiBase {
250
239
  customSort.Tags?.push(layoutName);
251
240
  this.getCustomSortApi().editCustomSort(customSort);
252
241
  });
253
- // Flashing Cells
254
242
  const flashingCellExtensions = extendedLayoutToClone.Extensions.filter((e) => {
255
243
  return e.Module == 'FlashingCell';
256
244
  });
@@ -259,14 +247,12 @@ export class LayoutApiImpl extends ApiBase {
259
247
  flashingCellDef.Tags?.push(layoutName);
260
248
  this.getFlashingCellApi().editFlashingCellDefinition(flashingCellDef);
261
249
  });
262
- // FormatColumns
263
250
  const formatColumnExtensions = extendedLayoutToClone.Extensions.filter((e) => e.Module == 'FormatColumn');
264
251
  formatColumnExtensions.forEach((le) => {
265
252
  const formatCol = le.Object;
266
253
  formatCol.Tags?.push(layoutName);
267
254
  this.getFormatColumnApi().editFormatColumn(formatCol);
268
255
  });
269
- // Plus Minus
270
256
  const plusMinusExtensions = extendedLayoutToClone.Extensions.filter((e) => {
271
257
  return e.Module == 'PlusMinus';
272
258
  });
@@ -275,7 +261,6 @@ export class LayoutApiImpl extends ApiBase {
275
261
  plusMinusNudge.Tags?.push(layoutName);
276
262
  this.getPlusMinusApi().editPlusMinusNudge(plusMinusNudge);
277
263
  });
278
- // Export
279
264
  const exportCloneExtensions = extendedLayoutToClone.Extensions.filter((e) => e.Module === 'Export');
280
265
  exportCloneExtensions.forEach((le) => {
281
266
  const raw = le.Object;
@@ -285,7 +270,6 @@ export class LayoutApiImpl extends ApiBase {
285
270
  schedule.Tags?.push(layoutName);
286
271
  this.getExportApi().editScheduledReport(schedule);
287
272
  });
288
- // Shortcut
289
273
  const shortCutExtensions = extendedLayoutToClone.Extensions.filter((e) => {
290
274
  return e.Module == 'Shortcut';
291
275
  });
@@ -294,7 +278,6 @@ export class LayoutApiImpl extends ApiBase {
294
278
  shortcut.Tags?.push(layoutName);
295
279
  this.getShortcutApi().editShortcut(shortcut);
296
280
  });
297
- // StyledColumn
298
281
  const styledColumnExtensions = extendedLayoutToClone.Extensions.filter((e) => {
299
282
  return e.Module == 'StyledColumn';
300
283
  });
@@ -303,7 +286,6 @@ export class LayoutApiImpl extends ApiBase {
303
286
  styledColumn.Tags?.push(layoutName);
304
287
  this.getStyledColumnApi().editStyledColumn(styledColumn);
305
288
  });
306
- // now create the new Extended Layout with the same extensions
307
289
  const extendedLayout = {
308
290
  Layout: clonedLayout,
309
291
  Extensions: extendedLayoutToClone.Extensions,
@@ -29,12 +29,9 @@ function cleanupAdaptableObjectPrimitives(layout) {
29
29
  const l = layout;
30
30
  for (const key in l) {
31
31
  if (key === 'ColumnFilters') {
32
- // we don't want to cleanup ColumnFilters
33
- // as we rely on the Uuids for identifying the filters
34
32
  if (Array.isArray(l[key])) {
35
33
  l[key].forEach((item) => {
36
34
  if (typeof item === 'object') {
37
- // but we do want to cleanup further down - eg: predicates in the filter
38
35
  for (const k in item) {
39
36
  if (typeof item[k] === 'object') {
40
37
  removeAdaptableObjectPrimitivesInlineDeep(item[k]);
@@ -50,11 +47,6 @@ function cleanupAdaptableObjectPrimitives(layout) {
50
47
  }
51
48
  }
52
49
  }
53
- /**
54
- * Compares 2 Layouts for equality
55
- * @param layout1 First Layout
56
- * @param layout2 Second Layout
57
- */
58
50
  export const areLayoutsEqual = (layout1, layout2) => {
59
51
  if (!layout1 && !layout2) {
60
52
  return true;
@@ -83,7 +75,6 @@ export const normalizePivotLayout = (pivotLayout) => {
83
75
  return pivotLayout;
84
76
  };
85
77
  const errorOnceMessages = new Map();
86
- /** Clears module-scoped dedupe state when a new Adaptable instance starts (e.g. Playwright retries). */
87
78
  export const resetLayoutHelperErrorOnceMessages = () => {
88
79
  errorOnceMessages.clear();
89
80
  };
@@ -173,7 +164,6 @@ export const checkForDuplicateColumns = (layout) => {
173
164
  layout.TableColumns.reduce((acc, col) => {
174
165
  acc[col] = (acc[col] || 0) + 1;
175
166
  if (acc[col] > 1) {
176
- // if you change this message, make sure you also update the associated test error-on-duplicate-column.spec.ts
177
167
  errorOnce(`Duplicate column "${col}" in layout "${layout.Name}"!`);
178
168
  }
179
169
  return acc;
@@ -392,9 +382,7 @@ export const tableLayoutModelToTableLayout = (layoutModel) => {
392
382
  if (layoutModel.Ignore_OpenCharts) {
393
383
  tableLayout.OpenCharts = layoutModel.Ignore_OpenCharts;
394
384
  }
395
- // if (layoutModel.RowGroupDisplayType) {
396
385
  tableLayout.RowGroupDisplayType = layoutModel.RowGroupDisplayType ?? 'single';
397
- // }
398
386
  if (layoutModel.RowGroupedColumns) {
399
387
  tableLayout.RowGroupedColumns = layoutModel.RowGroupedColumns;
400
388
  }
@@ -420,7 +408,6 @@ export const tableLayoutModelToTableLayout = (layoutModel) => {
420
408
  if ((layoutModel.ColumnGroupValues.ColumnGroupDisplay === 'collapsed' ||
421
409
  layoutModel.ColumnGroupValues.ColumnGroupDisplay === 'expanded') &&
422
410
  layoutModel.ColumnGroupValues.Values) {
423
- // @ts-ignore
424
411
  tableLayout.ColumnGroupValues.ExceptionGroupKeys = layoutModel.ColumnGroupValues.Values;
425
412
  }
426
413
  }
@@ -556,13 +543,10 @@ export const pivotLayoutModelToPivotLayout = (layoutModel) => {
556
543
  if ((layoutModel.ColumnGroupValues.ColumnGroupDisplay === 'collapsed' ||
557
544
  layoutModel.ColumnGroupValues.ColumnGroupDisplay === 'expanded') &&
558
545
  layoutModel.ColumnGroupValues.Values) {
559
- // @ts-ignore
560
546
  pivotLayout.ColumnGroupValues.ExceptionGroupKeys = layoutModel.ColumnGroupValues.Values;
561
547
  }
562
548
  }
563
- // if (layoutModel.RowGroupDisplayType) {
564
549
  pivotLayout.RowGroupDisplayType = layoutModel.RowGroupDisplayType ?? 'single';
565
- // }
566
550
  if (layoutModel.RowSelection != null) {
567
551
  pivotLayout.RowSelection = layoutModel.RowSelection;
568
552
  }
@@ -28,7 +28,6 @@ export class NamedQueryApiImpl extends ApiBase {
28
28
  if (IsNullOrEmptyOrWhiteSpace(namedQuery?.Name)) {
29
29
  return { valid: false, message: 'A name is required for the Named Query.' };
30
30
  }
31
- // check that there is no other existing named query with the same name
32
31
  const duplicate = this.getNamedQueries().find((q) => q.Name === namedQuery.Name && q.Uuid !== namedQuery.Uuid);
33
32
  if (duplicate) {
34
33
  return {
@@ -106,7 +106,6 @@ export class PredicateApiImpl extends ApiBase {
106
106
  if (!adaptablePredicateDef) {
107
107
  return false;
108
108
  }
109
- // not perfect but if there are no inputs - and there should be some - we treat the filter as invalid
110
109
  if (adaptablePredicateDef.inputs) {
111
110
  if (ArrayExtensions.IsNullOrEmpty(predicate.Inputs) ||
112
111
  StringExtensions.IsNullOrEmpty(predicate.Inputs[0])) {
@@ -126,7 +125,6 @@ export class PredicateApiImpl extends ApiBase {
126
125
  const paramsForColumn = {
127
126
  ...context,
128
127
  column: this.getColumnApi().getColumnWithColumnId(predicate.ColumnId),
129
- // value: params?.node?.data?.[predicate.ColumnId],
130
128
  value: this.getGridApi().getRawValueFromRowNode(context.node, predicate.ColumnId),
131
129
  };
132
130
  if ('oldValue' in paramsForColumn) {
@@ -141,9 +139,6 @@ export class PredicateApiImpl extends ApiBase {
141
139
  if (!predicate) {
142
140
  return defaultReturn;
143
141
  }
144
- // memoization to avoid repeated lookups
145
- // during filtering of large datasets
146
- // see #column_filter_predicates_evaluation
147
142
  let predicateDef = predicateDefMap_MEMO.get(predicate.PredicateId);
148
143
  if (predicateDef === undefined) {
149
144
  predicateDef = this.getPredicateDefById(predicate.PredicateId);
@@ -17,7 +17,6 @@ export class RowFormApiImpl extends ApiBase {
17
17
  this.dispatchAction(PopupShowForm({
18
18
  Id: 'edit_row_form',
19
19
  Form: editForm,
20
- // formProps are added to the formContext
21
20
  FormProps: {
22
21
  rowNode,
23
22
  },
@@ -40,7 +39,6 @@ export class RowFormApiImpl extends ApiBase {
40
39
  this.dispatchAction(PopupShowForm({
41
40
  Id: 'create_row_form',
42
41
  Form: createForm,
43
- // formProps are added to the formContext
44
42
  FormProps: {
45
43
  clonedRowNode: rowNode,
46
44
  },