@adaptabletools/adaptable 11.0.0-canary.2 → 11.0.0-canary.6

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 (244) hide show
  1. package/agGrid.d.ts +1 -1
  2. package/agGrid.js +3 -3
  3. package/base.css +138 -68
  4. package/bundle.cjs.js +131 -127
  5. package/index.css +140 -68
  6. package/package.json +33 -33
  7. package/publishTimestamp.d.ts +1 -1
  8. package/publishTimestamp.js +1 -1
  9. package/src/AdaptableInterfaces/AdaptableNoCodeWizard.d.ts +7 -5
  10. package/src/AdaptableOptions/AdaptableFrameworkComponent.d.ts +1 -3
  11. package/src/AdaptableOptions/AdaptableOptions.d.ts +11 -2
  12. package/src/AdaptableOptions/AlertOptions.d.ts +82 -0
  13. package/src/AdaptableOptions/AlertOptions.js +2 -0
  14. package/src/AdaptableOptions/ContainerOptions.d.ts +2 -2
  15. package/src/AdaptableOptions/EntitlementOptions.d.ts +1 -1
  16. package/src/AdaptableOptions/FilterOptions.d.ts +1 -1
  17. package/src/AdaptableOptions/NotificationsOptions.d.ts +1 -78
  18. package/src/AdaptableOptions/QueryLanguageOptions.d.ts +3 -7
  19. package/src/AdaptableOptions/StateOptions.d.ts +2 -1
  20. package/src/AdaptableOptions/TeamSharingOptions.d.ts +2 -2
  21. package/src/AdaptableOptions/ToolPanelOptions.d.ts +0 -3
  22. package/src/AdaptableOptions/UserInterfaceOptions.d.ts +3 -3
  23. package/src/Api/AdaptableApi.d.ts +6 -0
  24. package/src/Api/AlertApi.d.ts +2 -3
  25. package/src/Api/ColumnApi.d.ts +0 -4
  26. package/src/Api/EventApi.d.ts +8 -3
  27. package/src/Api/Events/GridDataChanged.d.ts +4 -2
  28. package/src/Api/Events/SystemStatusMessageDisplayed.d.ts +1 -1
  29. package/src/Api/FreeTextColumnApi.d.ts +0 -12
  30. package/src/Api/GridApi.d.ts +5 -4
  31. package/src/Api/IPushPullApi.d.ts +1 -1
  32. package/src/Api/Implementation/AdaptableApiImpl.d.ts +2 -1
  33. package/src/Api/Implementation/AdaptableApiImpl.js +2 -0
  34. package/src/Api/Implementation/AlertApiImpl.d.ts +1 -2
  35. package/src/Api/Implementation/AlertApiImpl.js +19 -10
  36. package/src/Api/Implementation/ApiBase.d.ts +2 -0
  37. package/src/Api/Implementation/ApiBase.js +3 -0
  38. package/src/Api/Implementation/ColumnApiImpl.d.ts +0 -1
  39. package/src/Api/Implementation/ColumnApiImpl.js +0 -5
  40. package/src/Api/Implementation/DashboardApiImpl.js +1 -1
  41. package/src/Api/Implementation/FlashingCellApiImpl.js +2 -4
  42. package/src/Api/Implementation/FreeTextColumnApiImpl.d.ts +0 -5
  43. package/src/Api/Implementation/FreeTextColumnApiImpl.js +0 -9
  44. package/src/Api/Implementation/GridApiImpl.d.ts +5 -4
  45. package/src/Api/Implementation/GridApiImpl.js +4 -0
  46. package/src/Api/Implementation/InternalApiImpl.js +2 -2
  47. package/src/Api/Implementation/LayoutApiImpl.d.ts +2 -0
  48. package/src/Api/Implementation/LayoutApiImpl.js +12 -1
  49. package/src/Api/Implementation/QueryApiImpl.js +4 -1
  50. package/src/Api/Implementation/QueryLanguageApiImpl.d.ts +1 -1
  51. package/src/Api/Implementation/QueryLanguageApiImpl.js +6 -7
  52. package/src/Api/Implementation/SettingsPanelApiImpl.d.ts +7 -0
  53. package/src/Api/Implementation/SettingsPanelApiImpl.js +15 -0
  54. package/src/Api/LayoutApi.d.ts +7 -0
  55. package/src/Api/OpenFinApi.d.ts +5 -0
  56. package/src/Api/PluginsApi.d.ts +29 -0
  57. package/src/Api/QueryLanguageApi.d.ts +10 -10
  58. package/src/Api/SettingsPanelApi.d.ts +17 -0
  59. package/src/Api/SettingsPanelApi.js +2 -0
  60. package/src/Api/UserInterfaceApi.d.ts +5 -2
  61. package/src/PredefinedConfig/AlertState.d.ts +4 -6
  62. package/src/PredefinedConfig/CalculatedColumnState.d.ts +0 -1
  63. package/src/PredefinedConfig/Common/AdaptableQuery.d.ts +7 -4
  64. package/src/PredefinedConfig/Common/AdaptableQuery.js +3 -3
  65. package/src/PredefinedConfig/Common/CellHighlightInfo.d.ts +1 -12
  66. package/src/PredefinedConfig/Common/DataChangedInfo.d.ts +1 -1
  67. package/src/PredefinedConfig/Common/Enums.d.ts +0 -1
  68. package/src/PredefinedConfig/Common/Enums.js +0 -2
  69. package/src/PredefinedConfig/Common/FDC3Context.d.ts +4 -12
  70. package/src/PredefinedConfig/Common/RowHighlightInfo.d.ts +15 -0
  71. package/src/PredefinedConfig/Common/RowHighlightInfo.js +2 -0
  72. package/src/PredefinedConfig/Common/Types.d.ts +1 -1
  73. package/src/PredefinedConfig/CustomSortState.d.ts +0 -1
  74. package/src/PredefinedConfig/FlashingCellState.d.ts +5 -2
  75. package/src/PredefinedConfig/FreeTextColumnState.d.ts +1 -1
  76. package/src/PredefinedConfig/LayoutState.d.ts +0 -2
  77. package/src/PredefinedConfig/PredefinedConfig.d.ts +5 -2
  78. package/src/PredefinedConfig/SystemState.d.ts +2 -1
  79. package/src/Redux/ActionsReducers/ApplicationRedux.js +9 -3
  80. package/src/Redux/ActionsReducers/FlashingCellRedux.js +4 -8
  81. package/src/Redux/ActionsReducers/GridRedux.js +3 -1
  82. package/src/Redux/ActionsReducers/PopupRedux.js +13 -3
  83. package/src/Redux/ActionsReducers/QuickSearchRedux.js +3 -1
  84. package/src/Redux/ActionsReducers/SystemRedux.d.ts +6 -5
  85. package/src/Redux/ActionsReducers/SystemRedux.js +16 -14
  86. package/src/Redux/ActionsReducers/ThemeRedux.js +3 -1
  87. package/src/Redux/Store/AdaptableReduxLocalStorageEngine.js +1 -1
  88. package/src/Redux/Store/AdaptableReduxMerger.js +5 -5
  89. package/src/Redux/Store/AdaptableStore.js +18 -6
  90. package/src/Strategy/AlertModule.js +14 -4
  91. package/src/Strategy/ConditionalStyleModule.js +4 -0
  92. package/src/Strategy/DataChangeHistoryModule.js +1 -1
  93. package/src/Strategy/FlashingCellModule.d.ts +1 -1
  94. package/src/Strategy/FlashingCellModule.js +34 -18
  95. package/src/Strategy/FreeTextColumnModule.d.ts +2 -2
  96. package/src/Strategy/FreeTextColumnModule.js +10 -0
  97. package/src/Strategy/LayoutModule.js +1 -6
  98. package/src/Strategy/TeamSharingModule.js +1 -1
  99. package/src/Strategy/ToolPanelModule.js +5 -3
  100. package/src/Strategy/Utilities/getFlashingTargetViewItems.d.ts +1 -1
  101. package/src/Strategy/Utilities/getFlashingTargetViewItems.js +3 -1
  102. package/src/Strategy/Utilities/getFormatColumnSettingsViewItems.js +1 -1
  103. package/src/Strategy/Utilities/getRuleViewItems.d.ts +0 -1
  104. package/src/Strategy/Utilities/getRuleViewItems.js +0 -1
  105. package/src/Utilities/Defaults/DefaultAdaptableOptions.js +8 -6
  106. package/src/Utilities/ExpressionFunctions/{aggregationExpressionFunctions.d.ts → aggregatedBooleanExpressionFunctions.d.ts} +1 -1
  107. package/src/Utilities/ExpressionFunctions/{aggregationExpressionFunctions.js → aggregatedBooleanExpressionFunctions.js} +4 -4
  108. package/src/Utilities/ExpressionFunctions/aggregatedScalarExpressionFunctions.d.ts +7 -0
  109. package/src/Utilities/ExpressionFunctions/aggregatedScalarExpressionFunctions.js +42 -0
  110. package/src/Utilities/ExpressionFunctions/dateUtils.d.ts +1 -0
  111. package/src/Utilities/ExpressionFunctions/dateUtils.js +13 -0
  112. package/src/Utilities/ExpressionFunctions/deepMap.d.ts +35 -0
  113. package/src/Utilities/ExpressionFunctions/deepMap.js +283 -0
  114. package/src/Utilities/ExpressionFunctions/expressionFunctionUtils.js +1 -1
  115. package/src/Utilities/ExpressionFunctions/groupingMap.d.ts +36 -0
  116. package/src/Utilities/ExpressionFunctions/groupingMap.js +104 -0
  117. package/src/Utilities/ExpressionFunctions/observableExpressionFunctions.js +2 -3
  118. package/src/Utilities/ExpressionFunctions/scalarExpressionFunctions.js +13 -4
  119. package/src/Utilities/Extensions/StringExtensions.js +1 -1
  120. package/src/Utilities/Helpers/AdaptableHelper.js +3 -2
  121. package/src/Utilities/Helpers/CalendarHelper.js +220 -55
  122. package/src/Utilities/Interface/MessagePopups.d.ts +6 -2
  123. package/src/Utilities/ObjectFactory.js +5 -2
  124. package/src/Utilities/Services/AlertService.js +3 -3
  125. package/src/Utilities/Services/DataService.js +6 -1
  126. package/src/Utilities/Services/Interface/IQueryLanguageService.d.ts +2 -2
  127. package/src/Utilities/Services/LicenseService.js +1 -1
  128. package/src/Utilities/Services/QueryLanguageService.d.ts +2 -2
  129. package/src/Utilities/Services/QueryLanguageService.js +21 -16
  130. package/src/Utilities/Services/ReportService.js +7 -3
  131. package/src/Utilities/Services/TeamSharingService.js +5 -3
  132. package/src/View/AdaptablePopover/index.js +6 -1
  133. package/src/View/AdaptableView.js +1 -1
  134. package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/ColumnsList.js +5 -1
  135. package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/ConfigurationForm.js +5 -2
  136. package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/index.js +4 -1
  137. package/src/View/AdaptableWizardView/helper.js +5 -3
  138. package/src/View/Alert/Wizard/AlertButtonsEditor.d.ts +1 -1
  139. package/src/View/Alert/Wizard/AlertButtonsEditor.js +5 -1
  140. package/src/View/Alert/Wizard/AlertRulesWizardSection.d.ts +1 -1
  141. package/src/View/Alert/Wizard/AlertWizard.js +2 -2
  142. package/src/View/Alert/Wizard/BaseAlertRulesWizardSection.d.ts +2 -3
  143. package/src/View/Alert/Wizard/BaseAlertRulesWizardSection.js +3 -5
  144. package/src/View/Alert/Wizard/BaseAlertScopeWizardSection.js +3 -2
  145. package/src/View/Alert/Wizard/isValidAlertRules.js +3 -3
  146. package/src/View/CalculatedColumn/Wizard/CalculatedColumnWizard.js +17 -6
  147. package/src/View/CellSummary/CellSummaryViewPanel.js +1 -2
  148. package/src/View/Components/AdaptableObjectList/AdaptableObjectList.js +5 -2
  149. package/src/View/Components/EntityRulesEditor/index.js +9 -9
  150. package/src/View/Components/FilterForm/FilterForm.js +0 -2
  151. package/src/View/Components/FilterForm/QuickFilterForm.js +8 -7
  152. package/src/View/Components/FilterForm/getDefaultColumnFilterPredicate.d.ts +1 -1
  153. package/src/View/Components/ModuleValueSelector/index.js +1 -1
  154. package/src/View/Components/Panels/PanelWithImage.d.ts +1 -1
  155. package/src/View/Components/Popups/AdaptablePopup/AdaptablePopup.d.ts +0 -3
  156. package/src/View/Components/Popups/AdaptablePopup/AdaptablePopup.js +45 -87
  157. package/src/View/Components/Popups/AdaptablePopup/AdaptablePopupDialog.d.ts +11 -0
  158. package/src/View/Components/Popups/AdaptablePopup/AdaptablePopupDialog.js +78 -0
  159. package/src/View/Components/Popups/AdaptablePopup/AdaptablePopupModuleView.d.ts +3 -1
  160. package/src/View/Components/Popups/AdaptablePopup/AdaptablePopupModuleView.js +19 -6
  161. package/src/View/Components/Popups/AdaptablePopup/Navigation.d.ts +1 -3
  162. package/src/View/Components/Popups/AdaptablePopup/Navigation.js +5 -13
  163. package/src/View/Components/Popups/AdaptablePopup/TopBar.js +5 -4
  164. package/src/View/Components/Popups/AdaptablePopup/useMenuItems.d.ts +2 -0
  165. package/src/View/Components/Popups/AdaptablePopup/useMenuItems.js +44 -0
  166. package/src/View/Components/Popups/AdaptablePopupConfirmation.js +3 -1
  167. package/src/View/Components/Popups/AdaptablePopupPrompt.d.ts +5 -12
  168. package/src/View/Components/Popups/AdaptablePopupPrompt.js +38 -37
  169. package/src/View/Components/Popups/AdaptablePopupTeamSharing.js +4 -1
  170. package/src/View/Components/ScopeComponent.js +4 -1
  171. package/src/View/Components/SharedProps/ModuleViewPopupProps.d.ts +1 -1
  172. package/src/View/Components/ToolPanel/AdaptableToolPanel.js +1 -1
  173. package/src/View/Components/ToolPanel/CustomToolPanelContent.js +6 -2
  174. package/src/View/Components/ToolPanel/ToolPanelPopup.js +7 -5
  175. package/src/View/Components/ToolPanel/ToolPanelWrapper.js +1 -1
  176. package/src/View/Components/ValueSelector/index.d.ts +2 -1
  177. package/src/View/Components/ValueSelector/index.js +5 -5
  178. package/src/View/ConditionalStyle/Wizard/ConditionalStyleRuleWizardSection.js +2 -2
  179. package/src/View/ConditionalStyle/Wizard/ConditionalStyleSettingsWizardSettings.d.ts +8 -0
  180. package/src/View/ConditionalStyle/Wizard/ConditionalStyleSettingsWizardSettings.js +27 -0
  181. package/src/View/ConditionalStyle/Wizard/ConditionalStyleWizard.js +17 -5
  182. package/src/View/CustomSort/Wizard/CustomSortValuesWizardSection.js +3 -1
  183. package/src/View/CustomSort/Wizard/CustomSortWizard.js +17 -5
  184. package/src/View/Dashboard/CustomToolbarWrapper.js +5 -1
  185. package/src/View/Dashboard/Dashboard.js +5 -5
  186. package/src/View/Dashboard/DashboardPopup.js +8 -6
  187. package/src/View/DataChangeHistory/DataChangeHistoryGrid.js +2 -1
  188. package/src/View/Export/Wizard/NewReportWizard.js +13 -3
  189. package/src/View/Export/Wizard/ReportColumnTypeWizard.js +3 -1
  190. package/src/View/Export/Wizard/ReportRowTypeWizard.js +3 -1
  191. package/src/View/Filter/FilterViewPanel.d.ts +1 -4
  192. package/src/View/Filter/FilterViewPanel.js +1 -3
  193. package/src/View/FlashingCell/Wizard/FlashingCellRulesWizardSection.js +17 -26
  194. package/src/View/FlashingCell/Wizard/FlashingCellScopeWizardSection.js +19 -2
  195. package/src/View/FlashingCell/Wizard/FlashingCellSettingsWizardSection.js +20 -5
  196. package/src/View/FlashingCell/Wizard/FlashingCellWizard.js +2 -2
  197. package/src/View/FormatColumn/Wizard/FormatColumnFormatWizardSection.js +2 -2
  198. package/src/View/FormatColumn/Wizard/FormatColumnWizard.js +11 -6
  199. package/src/View/FreeTextColumn/FreeTextColumnSummary.js +1 -2
  200. package/src/View/FreeTextColumn/Wizard/FreeTextColumnWizard.js +12 -5
  201. package/src/View/GridInfo/AdaptableOptionsComponent.js +4 -1
  202. package/src/View/Layout/Wizard/LayoutEditor/index.js +5 -1
  203. package/src/View/Layout/Wizard/LayoutEditorWizard.js +7 -1
  204. package/src/View/PlusMinus/Wizard/PlusMinusWizard.js +8 -2
  205. package/src/View/Query/ExpandedQueryPopup.js +9 -2
  206. package/src/View/Query/QueryViewPanel.js +15 -10
  207. package/src/View/Query/Wizard/NamedQueryWizard.js +6 -4
  208. package/src/View/QuickSearch/QuickSearchPopup.js +3 -3
  209. package/src/View/QuickSearch/useQuickSearchDebounced.js +1 -1
  210. package/src/View/Schedule/Wizard/ScheduleSettingsWizard/ScheduleSettingsSummary.js +12 -2
  211. package/src/View/Schedule/Wizard/ScheduleWizard.js +14 -14
  212. package/src/View/SpecialColumnSettingsWizardStep.js +1 -1
  213. package/src/View/UIHelper.js +4 -1
  214. package/src/View/Wizard/AdaptableWizard.js +13 -4
  215. package/src/View/Wizard/Interface/IAdaptableWizard.d.ts +2 -0
  216. package/src/View/Wizard/OnePageAdaptableWizard.js +6 -2
  217. package/src/agGrid/Adaptable.d.ts +2 -5
  218. package/src/agGrid/Adaptable.js +127 -75
  219. package/src/agGrid/agGridHelper.js +3 -8
  220. package/src/agGrid/agGridMenuHelper.js +5 -9
  221. package/src/agGrid/editors/AdaptableDateEditor/index.js +1 -1
  222. package/src/agGrid/editors/AdaptableNumberEditor/index.js +1 -1
  223. package/src/components/ApplicationIcon.d.ts +1 -0
  224. package/src/components/ApplicationIcon.js +2 -2
  225. package/src/components/Dashboard/Dashboard.js +4 -1
  226. package/src/components/Dashboard/DashboardManager.d.ts +5 -3
  227. package/src/components/Dashboard/DashboardManager.js +33 -27
  228. package/src/components/Dropdown/index.js +8 -1
  229. package/src/components/DropdownButton/renderItem.js +1 -1
  230. package/src/components/ExpressionEditor/EditorInputReactive.d.ts +1 -1
  231. package/src/components/ExpressionEditor/EditorInputReactive.js +4 -2
  232. package/src/components/ExpressionEditor/ExpressionFunctionDocumentation.js +4 -1
  233. package/src/components/ExpressionEditor/index.d.ts +1 -1
  234. package/src/components/ExpressionEditor/index.js +12 -5
  235. package/src/components/FormLayout/index.js +1 -1
  236. package/src/components/OverlayTrigger/Overlay.js +1 -1
  237. package/src/components/SizedContainer/index.js +7 -1
  238. package/src/components/WindowModal/WindowModal.js +4 -1
  239. package/src/metamodel/adaptable.metamodel.d.ts +75 -24
  240. package/src/metamodel/adaptable.metamodel.js +223 -115
  241. package/src/types.d.ts +6 -3
  242. package/themes/dark.css +4 -4
  243. package/version.d.ts +1 -1
  244. package/version.js +1 -1
@@ -3,13 +3,13 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.bindAdaptableAgGrid = exports.AdaptableNoCodeWizard = exports.Adaptable = void 0;
4
4
  const tslib_1 = require("tslib");
5
5
  const all_modules_1 = require("@ag-grid-community/all-modules");
6
- const debounce_1 = tslib_1.__importDefault(require("lodash-es/debounce"));
7
- const isEqual_1 = tslib_1.__importDefault(require("lodash-es/isEqual"));
8
- const throttle_1 = tslib_1.__importDefault(require("lodash-es/throttle"));
9
- const uniqBy_1 = tslib_1.__importDefault(require("lodash-es/uniqBy"));
6
+ const debounce_1 = tslib_1.__importDefault(require("lodash/debounce"));
7
+ const isEqual_1 = tslib_1.__importDefault(require("lodash/isEqual"));
8
+ const throttle_1 = tslib_1.__importDefault(require("lodash/throttle"));
9
+ const uniqBy_1 = tslib_1.__importDefault(require("lodash/uniqBy"));
10
10
  const React = tslib_1.__importStar(require("react"));
11
11
  const ReactDOM = tslib_1.__importStar(require("react-dom"));
12
- const clamp_1 = tslib_1.__importDefault(require("lodash-es/clamp"));
12
+ const clamp_1 = tslib_1.__importDefault(require("lodash/clamp"));
13
13
  const AdaptableApiImpl_1 = require("../Api/Implementation/AdaptableApiImpl");
14
14
  const Enums_1 = require("../PredefinedConfig/Common/Enums");
15
15
  const Uuid_1 = require("../PredefinedConfig/Uuid");
@@ -291,7 +291,7 @@ class Adaptable {
291
291
  // the 'old' constructor which takes an Adaptable adaptable object
292
292
  // this is still used internally but should not be used externally as a preference
293
293
  async init(adaptableOptions, runtimeConfig, _staticInit) {
294
- var _a, _b, _c, _d, _e, _f, _g;
294
+ var _a, _b, _c, _d, _e, _f;
295
295
  if (!_staticInit) {
296
296
  LoggingHelper_1.ConsoleLogWarning(`
297
297
  !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
@@ -376,7 +376,6 @@ class Adaptable {
376
376
  abColDefDate: (_d = this.gridOptions.columnTypes.abColDefDate) !== null && _d !== void 0 ? _d : {},
377
377
  abColDefObject: (_e = this.gridOptions.columnTypes.abColDefObject) !== null && _e !== void 0 ? _e : {},
378
378
  abColDefCustom: (_f = this.gridOptions.columnTypes.abColDefCustom) !== null && _f !== void 0 ? _f : {},
379
- abColDefNumberArray: (_g = this.gridOptions.columnTypes.abColDefNumberArray) !== null && _g !== void 0 ? _g : {},
380
379
  });
381
380
  if (this.gridOptions.columnTypes.abColDefNumber.cellEditor === undefined) {
382
381
  this.gridOptions.columnTypes.abColDefNumber.cellEditor = AdaptableNumberEditor_1.AdaptableNumberEditor;
@@ -428,8 +427,16 @@ class Adaptable {
428
427
  ReactDOM.render(AdaptableView_1.AdaptableApp({ Adaptable: this }), this.abContainerElement);
429
428
  }
430
429
  // create debounce methods that take a time based on user settings
431
- this.throttleFilterOnEditDataChange = throttle_1.default(this.gridOptions.api.onFilterChanged, this.adaptableOptions.filterOptions.filterActionOnUserDataChange.throttleDelay);
432
- this.throttleFilterOnTickingDataChange = throttle_1.default(this.gridOptions.api.onFilterChanged, this.adaptableOptions.filterOptions.filterActionOnExternalDataChange.throttleDelay);
430
+ this.throttleFilterOnEditDataChange = throttle_1.default(
431
+ // the extra function is to make sure we have a reference to ag-grid-api
432
+ () => this.gridOptions.api.onFilterChanged(), this.adaptableOptions.filterOptions.filterActionOnUserDataChange.throttleDelay, {
433
+ trailing: true,
434
+ leading: false,
435
+ });
436
+ this.throttleFilterOnTickingDataChange = throttle_1.default(() => this.gridOptions.api.onFilterChanged(), this.adaptableOptions.filterOptions.filterActionOnExternalDataChange.throttleDelay, {
437
+ trailing: true,
438
+ leading: false,
439
+ });
433
440
  return this.api;
434
441
  });
435
442
  }
@@ -514,7 +521,7 @@ class Adaptable {
514
521
  this.gridOptions.columnDefs.forEach(assignColId);
515
522
  }
516
523
  if ((_a = this.adaptableOptions.generalOptions) === null || _a === void 0 ? void 0 : _a.hideEmptyGroupRows) {
517
- LoggingHelper_1.LogAdaptableWarning(`DEPRECATED: 'GeneralOptions.hideEmptyGroupRows' is deprecated and will no longer be evaluated!`);
524
+ LoggingHelper_1.ConsoleLogWarning(`DEPRECATED: 'GeneralOptions.hideEmptyGroupRows' is deprecated and will no longer be evaluated!`);
518
525
  // disabled due to showstopper starting with AG Grid v26
519
526
  // the internal implementation of AG Grids GroupCellRenderer has changed A LOT!
520
527
  // this.gridOptions.components = this.gridOptions.components || {};
@@ -730,12 +737,12 @@ class Adaptable {
730
737
  const groupsCount = {};
731
738
  const colsToGroups = columnGroupChildren.reduce((acc, columnGroup) => {
732
739
  var _a, _b, _c;
733
- if (!((_b = (_a = columnGroup.getOriginalColumnGroup) === null || _a === void 0 ? void 0 : _a.call(columnGroup)) === null || _b === void 0 ? void 0 : _b.getColGroupDef())) {
740
+ if (!((_b = (_a = columnGroup.getProvidedColumnGroup) === null || _a === void 0 ? void 0 : _a.call(columnGroup)) === null || _b === void 0 ? void 0 : _b.getColGroupDef())) {
734
741
  return acc;
735
742
  }
736
743
  const ColumnGroupId = columnGroup.getGroupId();
737
- const AllowGroupSplit = !columnGroup.getOriginalColumnGroup().getColGroupDef().marryChildren;
738
- const FriendlyName = (_c = columnGroup.getOriginalColumnGroup().getColGroupDef().headerName) !== null && _c !== void 0 ? _c : ColumnGroupId;
744
+ const AllowGroupSplit = !columnGroup.getProvidedColumnGroup().getColGroupDef().marryChildren;
745
+ const FriendlyName = (_c = columnGroup.getProvidedColumnGroup().getColGroupDef().headerName) !== null && _c !== void 0 ? _c : ColumnGroupId;
739
746
  const columnsInGroup = columnGroup.getLeafColumns();
740
747
  columnsInGroup.forEach((col) => {
741
748
  const group = {
@@ -903,13 +910,12 @@ class Adaptable {
903
910
  }
904
911
  return null;
905
912
  }
906
- getFlashingCellRowStyle(params) {
907
- const primaryKeyValue = this.getPrimaryKeyValueFromRowNode(params.node);
908
- return this.getFlashingCellStyleFor(primaryKeyValue);
909
- }
910
- getFlashingCellStyleFor(primaryKey, colId) {
913
+ getFlashingCellStyle(col, params) {
911
914
  var _a;
912
- const flashingCell = this.api.internalApi.getAdaptableFlashingCellFor(primaryKey, colId);
915
+ const primaryKey = params.node.aggData
916
+ ? params.node.id
917
+ : this.getPrimaryKeyValueFromRowNode(params.node);
918
+ const flashingCell = this.api.internalApi.getAdaptableFlashingCellFor(primaryKey, col.columnId);
913
919
  if (!flashingCell) {
914
920
  return {};
915
921
  }
@@ -919,10 +925,6 @@ class Adaptable {
919
925
  ? flashingCell.flashingCellDefinition.DownChangeStyle
920
926
  : flashingCell.flashingCellDefinition.NeutralChangeStyle)) !== null && _a !== void 0 ? _a : {});
921
927
  }
922
- getFlashingCellStyle(col, params) {
923
- const primaryKeyValue = this.getPrimaryKeyValueFromRowNode(params.node);
924
- return this.getFlashingCellStyleFor(primaryKeyValue, col.columnId);
925
- }
926
928
  getCellHighlightStyle(col, params) {
927
929
  const primaryKeyValue = this.getPrimaryKeyValueFromRowNode(params.node);
928
930
  const cellHightlight = this.api.internalApi
@@ -1111,7 +1113,10 @@ class Adaptable {
1111
1113
  }
1112
1114
  setColumnOrder(VisibleColumnList) {
1113
1115
  const newColumnState = this.getSortedColumnStateForVisibleColumns(VisibleColumnList);
1114
- this.gridOptions.columnApi.applyColumnState({ state: newColumnState, applyOrder: true });
1116
+ this.gridOptions.columnApi.applyColumnState({
1117
+ state: newColumnState,
1118
+ applyOrder: true,
1119
+ });
1115
1120
  this.updateColumnsIntoStore();
1116
1121
  }
1117
1122
  persistLayout(layout) {
@@ -1265,7 +1270,10 @@ class Adaptable {
1265
1270
  if (shouldUpdatePivoted) {
1266
1271
  this.gridOptions.columnApi.setPivotMode(pivoted);
1267
1272
  }
1268
- this.gridOptions.columnApi.applyColumnState({ state: newColState, applyOrder: true });
1273
+ this.gridOptions.columnApi.applyColumnState({
1274
+ state: newColState,
1275
+ applyOrder: true,
1276
+ });
1269
1277
  this.api.gridApi.setColumnSorts(layout.ColumnSorts);
1270
1278
  this.gridOptions.columnApi.setPivotColumns(layout.PivotColumns || []);
1271
1279
  // aggrid 25.1.0 introduced a bug such that a layout that has a grouped column, if the column has enableRowGroup: true but not rowGroup: true
@@ -1431,7 +1439,10 @@ class Adaptable {
1431
1439
  }
1432
1440
  });
1433
1441
  }
1434
- const selectedCellInfo = { columns: columns, gridCells: selectedCells };
1442
+ const selectedCellInfo = {
1443
+ columns: columns,
1444
+ gridCells: selectedCells,
1445
+ };
1435
1446
  this.api.internalApi.setSelectedCells(selectedCellInfo);
1436
1447
  this._emit('CellsSelected');
1437
1448
  this.agGridHelper.fireSelectionChangedEvent();
@@ -1681,18 +1692,15 @@ class Adaptable {
1681
1692
  let returnValue;
1682
1693
  if (this.useRowNodeLookUp) {
1683
1694
  const rowNode = this.gridOptions.api.getRowNode(id);
1684
- const gridCell = this.getGridCellFromRowNode(rowNode, columnId);
1685
- if (gridCell) {
1686
- returnValue = gridCell.displayValue;
1687
- }
1695
+ return this.getDisplayValueFromRowNode(rowNode, columnId);
1688
1696
  }
1689
1697
  else {
1690
1698
  let foundRow = false;
1691
1699
  this.gridOptions.api.getModel().forEachNode((rowNode) => {
1692
1700
  if (!foundRow) {
1693
- const gridCell = this.getGridCellFromRowNode(rowNode, columnId);
1694
- if (gridCell && id == gridCell.primaryKeyValue) {
1695
- returnValue = gridCell.displayValue;
1701
+ const primaryKeyValue = this.getPrimaryKeyValueFromRowNode(rowNode);
1702
+ if (id == primaryKeyValue) {
1703
+ returnValue = this.getDisplayValueFromRowNode(rowNode, columnId);
1696
1704
  }
1697
1705
  foundRow = true;
1698
1706
  }
@@ -1718,15 +1726,14 @@ class Adaptable {
1718
1726
  rowNode: rowNode,
1719
1727
  };
1720
1728
  }
1721
- getDisplayValueFromRowNode(row, columnId) {
1722
- const gridCell = this.getGridCellFromRowNode(row, columnId);
1723
- return gridCell ? gridCell.displayValue : undefined;
1724
- }
1725
- // same as getDisplayValueFromRawValue(), but without evaluating cell renderers (only valueGetters & valueFormatters)
1726
- getFormattedValueFromRawValue(rawValue, columnId) {
1727
- return this.getDisplayValueFromRawValue(columnId, rawValue, true);
1729
+ getDisplayValueFromRowNode(rowNode, columnId) {
1730
+ if (rowNode == null) {
1731
+ return undefined;
1732
+ }
1733
+ const rawValue = this.getRawValueFromRowNode(rowNode, columnId);
1734
+ return this.getDisplayValueFromRawValue(columnId, rawValue);
1728
1735
  }
1729
- getDisplayValueFromRawValue(columnId, rawValue, skipCellRenderers = false) {
1736
+ getDisplayValueFromRawValue(columnId, rawValue) {
1730
1737
  const abColumn = this.api.columnApi.getColumnFromId(columnId);
1731
1738
  const isRenderedColumn = this.api.columnApi.isFormatNumericStyleColumn(abColumn);
1732
1739
  if (isRenderedColumn) {
@@ -1744,14 +1751,17 @@ class Adaptable {
1744
1751
  if (colDef) {
1745
1752
  if (typeof colDef.valueFormatter == 'function') {
1746
1753
  const formattedValue = this.getFormattedValue(rawValue, columnId, colDef, colDef.valueFormatter);
1747
- if (colDef.cellRenderer && !skipCellRenderers) {
1748
- return this.agGridHelper.getRenderedValue(colDef, formattedValue);
1749
- }
1754
+ // Never use cellRenderer:
1755
+ // - when a string, you never know if it is HTML or a normal string
1756
+ // - when an object, cannot be used
1757
+ // if (colDef.cellRenderer && !skipCellRenderers) {
1758
+ // return this.agGridHelper.getRenderedValue(colDef, formattedValue);
1759
+ // }
1750
1760
  return formattedValue || '';
1751
1761
  }
1752
- if (colDef.cellRenderer && !skipCellRenderers) {
1753
- return this.agGridHelper.getRenderedValue(colDef, rawValue);
1754
- }
1762
+ // if (colDef.cellRenderer && !skipCellRenderers) {
1763
+ // return this.agGridHelper.getRenderedValue(colDef, rawValue);
1764
+ // }
1755
1765
  }
1756
1766
  return this.agGridHelper.getCleanValue(rawValue);
1757
1767
  }
@@ -1789,9 +1799,10 @@ class Adaptable {
1789
1799
  if (dataType === 'Boolean') {
1790
1800
  return typeof rawValue !== 'boolean' ? Boolean(rawValue) : returnValue;
1791
1801
  }
1792
- if (dataType === 'Date') {
1793
- return rawValue instanceof Date ? returnValue : new Date(rawValue);
1794
- }
1802
+ // Do not normalize dates to Date type
1803
+ // - breaks when rendering in filter-form
1804
+ // - breaks quick-search; the Date is transformed to string;
1805
+ // -- an incorrect comparison is made (new Date().toString).incudes('query)
1795
1806
  return returnValue;
1796
1807
  }
1797
1808
  getRawValueFromRowNode(rowNode, columnId) {
@@ -2530,10 +2541,9 @@ class Adaptable {
2530
2541
  const node = event.node;
2531
2542
  const result = RowNode_dispatchLocalEvent.apply(this, arguments);
2532
2543
  const extractGridApiFromRowNode = (rowNode) => {
2533
- var _a, _b, _c, _d;
2544
+ var _a, _b;
2534
2545
  // starting with AG Grid 26.1.0 the gridApi is wrapped in a Beans property
2535
- // while older versions than 26.1.0 had a direct property
2536
- const rowNodeApi = (_c = (_b = (_a = rowNode) === null || _a === void 0 ? void 0 : _a.beans) === null || _b === void 0 ? void 0 : _b.gridApi) !== null && _c !== void 0 ? _c : (_d = rowNode) === null || _d === void 0 ? void 0 : _d.gridApi;
2546
+ const rowNodeApi = (_b = (_a = rowNode) === null || _a === void 0 ? void 0 : _a.beans) === null || _b === void 0 ? void 0 : _b.gridApi;
2537
2547
  if (!rowNodeApi) {
2538
2548
  LoggingHelper_1.LogAdaptableWarning(`No GridAPI found in passed RowNode, this should never happen!`, rowNode);
2539
2549
  }
@@ -2643,7 +2653,7 @@ class Adaptable {
2643
2653
  try {
2644
2654
  // it is very important that this method is executed as soon as possible and BEFORE the updateColDefsForSpecialColumns() method
2645
2655
  // this will ensure that the columns are recreated as expected (see method implementation&comments for more details)
2646
- this.cleanupFloatingFilters_WORKAROUND();
2656
+ //this.cleanupFloatingFilters_WORKAROUND();
2647
2657
  this.updateColDefsForSpecialColumns();
2648
2658
  this.applyCurrentTheme();
2649
2659
  this.applyFinalRendering();
@@ -2804,16 +2814,18 @@ class Adaptable {
2804
2814
  readonlyClassName,
2805
2815
  highlightAlertClassName,
2806
2816
  ]
2807
- .filter((x) => !!x)
2808
- .join(' ');
2817
+ // we flatten the array because 'userCellClass' might return a string[]
2818
+ .flat()
2819
+ .filter((x) => !!x);
2820
+ const returnValueHash = returnValue.join(' ');
2809
2821
  const primaryKey = this.getPrimaryKeyValueFromRowNode(params.node);
2810
2822
  const key = `${primaryKey}:${params.colDef.colId}`;
2811
2823
  if (classNameMap[key] &&
2812
- classNameMap[key] !== returnValue &&
2824
+ classNameMap[key] !== returnValueHash &&
2813
2825
  // only hard-reset when removing class-names
2814
2826
  // ag-grid does not remove class-names, it accumulates them
2815
2827
  // https://www.ag-grid.com/javascript-data-grid/cell-styles/#refresh-of-styles
2816
- returnValue.length < ((_a = classNameMap[key]) === null || _a === void 0 ? void 0 : _a.length)) {
2828
+ returnValueHash.length < ((_a = classNameMap[key]) === null || _a === void 0 ? void 0 : _a.length)) {
2817
2829
  setTimeout(() => {
2818
2830
  /**
2819
2831
  * This is called inside a getter function, inside ag-grid.
@@ -2823,14 +2835,18 @@ class Adaptable {
2823
2835
  params.api.redrawRows({ rowNodes: [params.node] });
2824
2836
  }, 0);
2825
2837
  }
2826
- classNameMap[key] = returnValue;
2827
- return StringExtensions_1.StringExtensions.IsNotNullOrEmpty(returnValue) ? returnValue : undefined;
2838
+ classNameMap[key] = returnValueHash;
2839
+ return returnValue.length ? returnValue : undefined;
2828
2840
  };
2829
2841
  return cellClass;
2830
2842
  });
2831
2843
  }
2832
2844
  getExcelClassNameForCell(colId, primaryKeyValue) {
2833
- return `--excel-cell-${colId}-${primaryKeyValue}`;
2845
+ let primaryKeyString = `${primaryKeyValue}`;
2846
+ if (primaryKeyString.indexOf(' ') > 0) {
2847
+ primaryKeyString.replace(/\s/g, '_');
2848
+ }
2849
+ return `--excel-cell-${colId}-${primaryKeyString}`;
2834
2850
  }
2835
2851
  setupColumnCellEditor({ colId, col }) {
2836
2852
  const adaptableColumn = this.api.columnApi.getColumnFromId(colId);
@@ -2921,6 +2937,7 @@ class Adaptable {
2921
2937
  if (!layoutCustomHeader && (formatColumn === null || formatColumn === void 0 ? void 0 : formatColumn.HeaderName) && !formatColumn.IsSuspended) {
2922
2938
  // fallback to the formatColumn property if no Layout custom header is provided
2923
2939
  resultHeaderName = formatColumn.HeaderName;
2940
+ LoggingHelper_1.ConsoleLogWarning(`DEPRECATED: 'FormatColumn.HeaderName' is deprecated: use 'Layout.ColumnHeadersMap' instead`);
2924
2941
  }
2925
2942
  // required here for the initial layout rendering
2926
2943
  abColumn.friendlyName = resultHeaderName;
@@ -3155,14 +3172,30 @@ class Adaptable {
3155
3172
  if (oldValue == newValue) {
3156
3173
  return;
3157
3174
  }
3158
- const primaryKeyValue = this.getPrimaryKeyValueFromRowNode(rowNode);
3159
- if (!primaryKeyValue) {
3160
- return;
3161
- }
3162
3175
  const abColumn = this.api.columnApi.getColumnFromId(colId);
3163
3176
  if (!abColumn) {
3164
3177
  return;
3165
3178
  }
3179
+ if (this.isGroupRowNode(rowNode)) {
3180
+ const dataChangedInfo = this.api.internalApi.buildDataChangedInfo({
3181
+ oldValue: oldValue,
3182
+ newValue: newValue,
3183
+ column: abColumn,
3184
+ /**
3185
+ * A grouped row does not have an underling data item.
3186
+ * Because of this we use the rowNode.id as an identifier.
3187
+ */
3188
+ primaryKeyValue: rowNode.id,
3189
+ rowNode: rowNode,
3190
+ trigger: 'aggChange',
3191
+ });
3192
+ this.DataService.CreateDataChangedEvent(dataChangedInfo);
3193
+ return;
3194
+ }
3195
+ const primaryKeyValue = this.getPrimaryKeyValueFromRowNode(rowNode);
3196
+ if (!primaryKeyValue) {
3197
+ return;
3198
+ }
3166
3199
  const dataChangedInfo = this.api.internalApi.buildDataChangedInfo({
3167
3200
  oldValue: oldValue,
3168
3201
  newValue: newValue,
@@ -3482,7 +3515,10 @@ class Adaptable {
3482
3515
  }
3483
3516
  return state;
3484
3517
  });
3485
- this.gridOptions.columnApi.applyColumnState({ state: newColumnState, applyOrder: true });
3518
+ this.gridOptions.columnApi.applyColumnState({
3519
+ state: newColumnState,
3520
+ applyOrder: true,
3521
+ });
3486
3522
  this.gridOptions.api.onSortChanged();
3487
3523
  }
3488
3524
  clearColumnSort() {
@@ -3539,7 +3575,9 @@ class Adaptable {
3539
3575
  });
3540
3576
  }
3541
3577
  else {
3542
- const transaction = this.gridOptions.api.applyTransaction({ update: dataRows });
3578
+ const transaction = this.gridOptions.api.applyTransaction({
3579
+ update: dataRows,
3580
+ });
3543
3581
  return Promise.resolve(transaction === null || transaction === void 0 ? void 0 : transaction.update);
3544
3582
  }
3545
3583
  }
@@ -3580,7 +3618,9 @@ class Adaptable {
3580
3618
  });
3581
3619
  }
3582
3620
  else {
3583
- const transaction = this.gridOptions.api.applyTransaction({ remove: dataRows });
3621
+ const transaction = this.gridOptions.api.applyTransaction({
3622
+ remove: dataRows,
3623
+ });
3584
3624
  return Promise.resolve(transaction.remove);
3585
3625
  }
3586
3626
  }
@@ -3854,9 +3894,10 @@ import "@adaptabletools/adaptable/themes/${themeName}.css"`);
3854
3894
  alertHighlightClassName,
3855
3895
  this.getConditionalStyleRowClass(conditionalStyles.filter((cs) => StringExtensions_1.StringExtensions.IsNotNullOrEmpty(cs.Style.ClassName)), params),
3856
3896
  ]
3857
- .filter((x) => !!x)
3858
- .join(' ');
3859
- return StringExtensions_1.StringExtensions.IsNotNullOrEmpty(returnValue) ? returnValue : undefined;
3897
+ // we flatten it because 'userGetRowClass' might return a string[]
3898
+ .flat()
3899
+ .filter((x) => !!x);
3900
+ return (returnValue === null || returnValue === void 0 ? void 0 : returnValue.length) ? returnValue : undefined;
3860
3901
  };
3861
3902
  });
3862
3903
  }
@@ -3988,9 +4029,17 @@ import "@adaptabletools/adaptable/themes/${themeName}.css"`);
3988
4029
  const cellStyle = typeof colDef.cellStyle === 'function' ? colDef.cellStyle(cellParams) : {};
3989
4030
  const excelStyles = [];
3990
4031
  // add user defined excel styles
3991
- const userDefinedCellClass = this.getUserColDefProperty(column.getColId(), 'cellClass');
4032
+ let userColDefCellClass = this.getUserColDefProperty(column.getColId(), 'cellClass');
4033
+ const userDefinedCellClass = typeof userColDefCellClass === 'function'
4034
+ ? userColDefCellClass(cellParams)
4035
+ : userColDefCellClass;
3992
4036
  const userDefinedExcelStyle = userDefinedCellClass &&
3993
- userExcelStyles.find((excelStyle) => excelStyle.id === userDefinedCellClass);
4037
+ userExcelStyles.find((excelStyle) => {
4038
+ var _a;
4039
+ return typeof userDefinedCellClass === 'string'
4040
+ ? userDefinedCellClass === excelStyle.id
4041
+ : (_a = userDefinedCellClass === null || userDefinedCellClass === void 0 ? void 0 : userDefinedCellClass.includes) === null || _a === void 0 ? void 0 : _a.call(userDefinedCellClass, excelStyle.id);
4042
+ });
3994
4043
  if (userDefinedExcelStyle) {
3995
4044
  excelStyles.push(userDefinedExcelStyle);
3996
4045
  }
@@ -4008,9 +4057,10 @@ import "@adaptabletools/adaptable/themes/${themeName}.css"`);
4008
4057
  if (!excelStyles.length) {
4009
4058
  return;
4010
4059
  }
4011
- const cellClassId = typeof colDef.cellClass === 'function'
4060
+ const cellClass = typeof colDef.cellClass === 'function'
4012
4061
  ? colDef.cellClass(cellParams)
4013
4062
  : this.getExcelClassNameForCell(column.getId(), this.getPrimaryKeyValueFromRowNode(node));
4063
+ const cellClassId = Array.isArray(cellClass) ? cellClass.join(' ') : cellClass;
4014
4064
  const finalCellExcelStyle = Object.assign({}, ...excelStyles, {
4015
4065
  id: cellClassId,
4016
4066
  });
@@ -4159,7 +4209,9 @@ import "@adaptabletools/adaptable/themes/${themeName}.css"`);
4159
4209
  const globalObject = typeof globalThis !== 'undefined' ? globalThis : window;
4160
4210
  const licenseKey = globalObject.ADAPTABLE_LICENSE_KEY ||
4161
4211
  this.api.internalApi.getAdaptableOptions().licenseKey;
4162
- return new LicenseService_1.LicenseService(this, licenseKey, { publishedAt: publishTimestamp_1.default });
4212
+ return new LicenseService_1.LicenseService(this, licenseKey, {
4213
+ publishedAt: publishTimestamp_1.default,
4214
+ });
4163
4215
  }
4164
4216
  }
4165
4217
  exports.Adaptable = Adaptable;
@@ -2,7 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.agGridHelper = void 0;
4
4
  const tslib_1 = require("tslib");
5
- const clamp_1 = tslib_1.__importDefault(require("lodash-es/clamp"));
5
+ const clamp_1 = tslib_1.__importDefault(require("lodash/clamp"));
6
6
  const Enums_1 = require("../PredefinedConfig/Common/Enums");
7
7
  const Uuid_1 = require("../PredefinedConfig/Uuid");
8
8
  const AlertModule_1 = require("../Strategy/AlertModule");
@@ -248,8 +248,7 @@ class agGridHelper {
248
248
  }
249
249
  }
250
250
  // lets set this here one as the function cannot change the result so dont need to run it each time
251
- let excludeColumnFromQuickSearch = this.adaptable.adaptableOptions.searchOptions
252
- .excludeColumnFromQuickSearch;
251
+ let excludeColumnFromQuickSearch = this.adaptable.adaptableOptions.searchOptions.excludeColumnFromQuickSearch;
253
252
  if (excludeColumnFromQuickSearch) {
254
253
  if (excludeColumnFromQuickSearch(abColumn)) {
255
254
  abColumn.isExcludedFromQuickSearch = true;
@@ -495,7 +494,7 @@ class agGridHelper {
495
494
  dataType = Enums_1.DataType.Date;
496
495
  }
497
496
  else if (Array.isArray(value) && value.length && typeof value[0] === 'number') {
498
- dataType = Enums_1.DataType.NumberArray;
497
+ dataType = Enums_1.DataType.Unknown;
499
498
  }
500
499
  else {
501
500
  switch (typeof value) {
@@ -526,8 +525,6 @@ class agGridHelper {
526
525
  switch (colType) {
527
526
  case 'abColDefNumber':
528
527
  return Enums_1.DataType.Number;
529
- case 'abColDefNumberArray':
530
- return Enums_1.DataType.NumberArray;
531
528
  case 'abColDefString':
532
529
  return Enums_1.DataType.String;
533
530
  case 'abColDefBoolean':
@@ -553,8 +550,6 @@ class agGridHelper {
553
550
  return 'abColDefDate';
554
551
  case Enums_1.DataType.Number:
555
552
  return 'abColDefNumber';
556
- case Enums_1.DataType.NumberArray:
557
- return 'abColDefNumberArray';
558
553
  case Enums_1.DataType.Object:
559
554
  return 'abColDefObject';
560
555
  case Enums_1.DataType.String:
@@ -4,7 +4,7 @@ exports.agGridMenuHelper = void 0;
4
4
  const tslib_1 = require("tslib");
5
5
  const ArrayExtensions_1 = require("../Utilities/Extensions/ArrayExtensions");
6
6
  const icons_1 = require("../components/icons");
7
- const flatten_1 = tslib_1.__importDefault(require("lodash-es/flatten"));
7
+ const flatten_1 = tslib_1.__importDefault(require("lodash/flatten"));
8
8
  // tslint:disable-next-line: class-name
9
9
  class agGridMenuHelper {
10
10
  constructor(adaptable, gridOptions) {
@@ -21,8 +21,7 @@ class agGridMenuHelper {
21
21
  let userColumnMenuItems = [];
22
22
  //First get Ag Grid Column Items
23
23
  agGridColumnMenuItems.push(...this.createAgGridColumnMenuItems(originalgetMainMenuItems, params));
24
- let showAdaptableColumnMenu = this.adaptable.adaptableOptions.menuOptions
25
- .showAdaptableColumnMenu;
24
+ let showAdaptableColumnMenu = this.adaptable.adaptableOptions.menuOptions.showAdaptableColumnMenu;
26
25
  let hasAdaptableColumnMenuItems = showAdaptableColumnMenu == null || showAdaptableColumnMenu !== false;
27
26
  if (hasAdaptableColumnMenuItems) {
28
27
  agGridColumnMenuItems.push('separator');
@@ -56,8 +55,7 @@ class agGridMenuHelper {
56
55
  let agGridContextMenuItems = [];
57
56
  let adaptableContextMenuItems = [];
58
57
  let userContextMenuItems = [];
59
- let showAdaptableContextMenu = this.adaptable.adaptableOptions.menuOptions
60
- .showAdaptableContextMenu;
58
+ let showAdaptableContextMenu = this.adaptable.adaptableOptions.menuOptions.showAdaptableContextMenu;
61
59
  let hasAdaptableContextMenuItems = showAdaptableContextMenu == null || showAdaptableContextMenu !== false;
62
60
  let userDefinedContextMenuItems = this.adaptable.adaptableOptions.menuOptions.contextMenuItems;
63
61
  let hasUserDefinedContextMenuItems = ArrayExtensions_1.ArrayExtensions.IsNotNullOrEmpty(userDefinedContextMenuItems);
@@ -285,8 +283,7 @@ class agGridMenuHelper {
285
283
  // here we create agGrid Menu items based on Adaptable Menu Items
286
284
  // user has ability to decide whether to show or not
287
285
  let contextMenuItems = [];
288
- let showAdaptableContextMenu = this.adaptable.adaptableOptions.menuOptions
289
- .showAdaptableContextMenu;
286
+ let showAdaptableContextMenu = this.adaptable.adaptableOptions.menuOptions.showAdaptableContextMenu;
290
287
  if (showAdaptableContextMenu == null || showAdaptableContextMenu !== false) {
291
288
  adaptableMenuItems.forEach((adaptableMenuItem) => {
292
289
  if (adaptableMenuItem) {
@@ -321,8 +318,7 @@ class agGridMenuHelper {
321
318
  // method to get all the Adaptable Menu Items - together with running the function where user can choose whether or not to display
322
319
  getAdaptableMenuItemsColumnHeader(adaptableColumn, menuContext) {
323
320
  const adaptableMenuItems = [];
324
- let showAdaptableColumnMenu = this.adaptable.adaptableOptions.menuOptions
325
- .showAdaptableColumnMenu;
321
+ let showAdaptableColumnMenu = this.adaptable.adaptableOptions.menuOptions.showAdaptableColumnMenu;
326
322
  let runCheck = showAdaptableColumnMenu == null || showAdaptableColumnMenu !== false;
327
323
  // if (adaptableColumn != null) {
328
324
  this.adaptable.adaptableModules.forEach((s) => {
@@ -117,7 +117,7 @@ class AdaptableDateEditor {
117
117
  react_dom_1.unmountComponentAtNode(this.el);
118
118
  }
119
119
  shouldClearExistingValue(params) {
120
- return params.keyPress === all_modules_1.KeyCode.BACKSPACE || params.keyPress === all_modules_1.KeyCode.DELETE;
120
+ return params.key === all_modules_1.KeyCode.BACKSPACE || params.key === all_modules_1.KeyCode.DELETE;
121
121
  }
122
122
  }
123
123
  exports.AdaptableDateEditor = AdaptableDateEditor;
@@ -93,7 +93,7 @@ class AdaptableNumberEditor {
93
93
  react_dom_1.unmountComponentAtNode(this.el);
94
94
  }
95
95
  shouldClearExistingValue(params) {
96
- return params.keyPress === all_modules_1.KeyCode.BACKSPACE || params.keyPress === all_modules_1.KeyCode.DELETE;
96
+ return params.key === all_modules_1.KeyCode.BACKSPACE || params.key === all_modules_1.KeyCode.DELETE;
97
97
  }
98
98
  }
99
99
  exports.AdaptableNumberEditor = AdaptableNumberEditor;
@@ -2,4 +2,5 @@ import * as React from 'react';
2
2
  import { AdaptableIcon } from '../types';
3
3
  export declare const ApplicationIcon: React.FunctionComponent<{
4
4
  icon?: AdaptableIcon;
5
+ className?: string;
5
6
  }>;
@@ -3,11 +3,11 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.ApplicationIcon = void 0;
4
4
  const tslib_1 = require("tslib");
5
5
  const React = tslib_1.__importStar(require("react"));
6
- exports.ApplicationIcon = ({ icon }) => {
6
+ exports.ApplicationIcon = ({ icon, className }) => {
7
7
  if (!icon) {
8
8
  return null;
9
9
  }
10
10
  let width = icon.style && icon.style.width ? icon.style.width : 'var(--ab-cmp-simple-button__width)';
11
11
  let height = icon.style && icon.style.height ? icon.style.height : 'var(--ab-cmp-simple-button__height)';
12
- return (React.createElement("img", { className: "ab-Dashboard__application-icon", src: icon.src, style: { width: width, height: height } }));
12
+ return React.createElement("img", { className: className, src: icon.src, style: { width: width, height: height } });
13
13
  };
@@ -14,7 +14,10 @@ function Dashboard(props) {
14
14
  const [collapsed, setCollapsed] = useProperty_1.default(props, 'collapsed', false);
15
15
  const [floating, setFloating] = useProperty_1.default(props, 'floating', false);
16
16
  const [inline, setInline] = useProperty_1.default(props, 'inline', false);
17
- const [position, setPosition] = useProperty_1.default(props, 'position', { x: 0, y: 0 });
17
+ const [position, setPosition] = useProperty_1.default(props, 'position', {
18
+ x: 0,
19
+ y: 0,
20
+ });
18
21
  const expanded = !floating && !collapsed;
19
22
  const { handleRef, targetRef } = useDraggable_1.default({
20
23
  onDrop(dx, dy) {
@@ -1,4 +1,4 @@
1
- /// <reference types="react" />
1
+ import * as React from 'react';
2
2
  import { DashboardTab } from '../../PredefinedConfig/DashboardState';
3
3
  import { AdaptableDashboardToolbar } from '../../PredefinedConfig/Common/Types';
4
4
  import { AdaptableApi } from '../../Api/AdaptableApi';
@@ -6,10 +6,12 @@ export interface DashboardToolbar {
6
6
  Id: AdaptableDashboardToolbar | string;
7
7
  Title: string;
8
8
  }
9
- declare function DashboardManager({ tabs, onTabsChange, availableToolbars, api, }: {
9
+ interface DashboardManagerProps {
10
10
  tabs: DashboardTab[];
11
11
  onTabsChange: (tabs: DashboardTab[]) => void;
12
12
  availableToolbars: DashboardToolbar[];
13
13
  api: AdaptableApi;
14
- }): JSX.Element;
14
+ disabled: boolean;
15
+ }
16
+ declare const DashboardManager: React.FunctionComponent<DashboardManagerProps>;
15
17
  export default DashboardManager;