@adaptabletools/adaptable 15.4.3 → 16.0.0-canary.1

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 (290) hide show
  1. package/base.css +1 -1
  2. package/base.css.map +1 -1
  3. package/bundle.cjs.js +234 -228
  4. package/index.css +1 -1
  5. package/index.css.map +1 -1
  6. package/package.json +2 -2
  7. package/publishTimestamp.d.ts +1 -1
  8. package/publishTimestamp.js +1 -1
  9. package/src/AdaptableInterfaces/IAdaptable.d.ts +8 -2
  10. package/src/AdaptableOptions/ActionColumnOptions.d.ts +82 -0
  11. package/src/AdaptableOptions/{ActionOptions.d.ts → ActionRowOptions.d.ts} +15 -90
  12. package/src/AdaptableOptions/AdaptableOptions.d.ts +32 -12
  13. package/src/AdaptableOptions/AdaptableQLOptions.d.ts +1 -12
  14. package/src/AdaptableOptions/AlertOptions.d.ts +9 -0
  15. package/src/AdaptableOptions/CalendarOptions.d.ts +11 -0
  16. package/src/AdaptableOptions/CellSummaryOptions.d.ts +10 -0
  17. package/src/AdaptableOptions/ColumnOptions.d.ts +0 -4
  18. package/src/AdaptableOptions/CustomSortOptions.d.ts +24 -0
  19. package/src/AdaptableOptions/DataChangeHistoryOptions.d.ts +5 -1
  20. package/src/AdaptableOptions/DataSetOptions.d.ts +41 -0
  21. package/src/AdaptableOptions/DataSetOptions.js +2 -0
  22. package/src/AdaptableOptions/EditOptions.d.ts +4 -4
  23. package/src/AdaptableOptions/EntitlementOptions.d.ts +0 -16
  24. package/src/AdaptableOptions/ExportOptions.d.ts +2 -4
  25. package/src/AdaptableOptions/ExpressionOptions.d.ts +7 -0
  26. package/src/AdaptableOptions/FinancePluginOptions.d.ts +1 -1
  27. package/src/AdaptableOptions/GroupingOptions.d.ts +50 -0
  28. package/src/AdaptableOptions/GroupingOptions.js +2 -0
  29. package/src/AdaptableOptions/MasterDetailPluginOptions.d.ts +9 -0
  30. package/src/AdaptableOptions/PredicateOptions.d.ts +4 -0
  31. package/src/AdaptableOptions/TeamSharingOptions.d.ts +0 -8
  32. package/src/AdaptableOptions/UserInterfaceOptions.d.ts +30 -1
  33. package/src/Api/ActionColumnApi.d.ts +10 -0
  34. package/src/Api/ActionColumnApi.js +2 -0
  35. package/src/Api/{ActionApi.d.ts → ActionRowApi.d.ts} +4 -15
  36. package/src/Api/ActionRowApi.js +2 -0
  37. package/src/Api/AdaptableApi.d.ts +11 -6
  38. package/src/Api/AlertApi.d.ts +2 -111
  39. package/src/Api/BulkUpdateApi.d.ts +0 -7
  40. package/src/Api/CalculatedColumnApi.d.ts +0 -31
  41. package/src/Api/CalendarApi.d.ts +1 -1
  42. package/src/Api/CellSummaryApi.d.ts +0 -7
  43. package/src/Api/ChartingApi.d.ts +0 -7
  44. package/src/Api/ColumnApi.d.ts +1 -131
  45. package/src/Api/ConfigApi.d.ts +1 -7
  46. package/src/Api/CustomSortApi.d.ts +0 -25
  47. package/src/Api/DashboardApi.d.ts +0 -16
  48. package/src/Api/DataChangeHistoryApi.d.ts +0 -7
  49. package/src/Api/DataSetApi.d.ts +1 -16
  50. package/src/Api/EventApi.d.ts +1 -9
  51. package/src/Api/Events/AdaptableStateChanged.d.ts +0 -8
  52. package/src/Api/Events/AdaptableStateReloaded.d.ts +0 -4
  53. package/src/Api/Events/BaseEventInfo.d.ts +9 -1
  54. package/src/Api/Events/LiveDataChanged.d.ts +3 -7
  55. package/src/Api/ExportApi.d.ts +7 -31
  56. package/src/Api/{QueryLanguageApi.d.ts → ExpressionApi.d.ts} +2 -2
  57. package/src/Api/ExpressionApi.js +2 -0
  58. package/src/Api/FilterApi.d.ts +1 -59
  59. package/src/Api/FlashingCellApi.d.ts +0 -15
  60. package/src/Api/FormatColumnApi.d.ts +1 -91
  61. package/src/Api/FreeTextColumnApi.d.ts +0 -39
  62. package/src/Api/GridApi.d.ts +0 -31
  63. package/src/Api/Implementation/ActionColumnApiImpl.d.ts +7 -0
  64. package/src/Api/Implementation/ActionColumnApiImpl.js +14 -0
  65. package/src/Api/Implementation/ActionRowApiImpl.d.ts +12 -0
  66. package/src/Api/Implementation/{ActionApiImpl.js → ActionRowApiImpl.js} +8 -15
  67. package/src/Api/Implementation/AdaptableApiImpl.d.ts +6 -4
  68. package/src/Api/Implementation/AdaptableApiImpl.js +7 -5
  69. package/src/Api/Implementation/AlertApiImpl.d.ts +1 -43
  70. package/src/Api/Implementation/AlertApiImpl.js +4 -94
  71. package/src/Api/Implementation/ApiBase.d.ts +15 -5
  72. package/src/Api/Implementation/ApiBase.js +26 -8
  73. package/src/Api/Implementation/CalculatedColumnApiImpl.d.ts +0 -7
  74. package/src/Api/Implementation/CalculatedColumnApiImpl.js +0 -32
  75. package/src/Api/Implementation/CalendarApiImpl.d.ts +1 -0
  76. package/src/Api/Implementation/CalendarApiImpl.js +20 -17
  77. package/src/Api/Implementation/CellSummaryApiImpl.d.ts +0 -1
  78. package/src/Api/Implementation/CellSummaryApiImpl.js +3 -6
  79. package/src/Api/Implementation/ChartingApiImpl.d.ts +0 -1
  80. package/src/Api/Implementation/ChartingApiImpl.js +0 -5
  81. package/src/Api/Implementation/ColumnApiImpl.d.ts +0 -35
  82. package/src/Api/Implementation/ColumnApiImpl.js +1 -138
  83. package/src/Api/Implementation/ConfigApiImpl.js +2 -1
  84. package/src/Api/Implementation/CustomSortApiImpl.d.ts +1 -5
  85. package/src/Api/Implementation/CustomSortApiImpl.js +0 -16
  86. package/src/Api/Implementation/DashboardApiImpl.d.ts +0 -4
  87. package/src/Api/Implementation/DashboardApiImpl.js +2 -24
  88. package/src/Api/Implementation/DataChangeHistoryApiImpl.d.ts +0 -1
  89. package/src/Api/Implementation/DataChangeHistoryApiImpl.js +0 -5
  90. package/src/Api/Implementation/DataSetApiImpl.d.ts +1 -4
  91. package/src/Api/Implementation/DataSetApiImpl.js +1 -14
  92. package/src/Api/Implementation/ExportApiImpl.d.ts +4 -10
  93. package/src/Api/Implementation/ExportApiImpl.js +15 -34
  94. package/src/Api/Implementation/{QueryLanguageApiImpl.d.ts → ExpressionApiImpl.d.ts} +4 -4
  95. package/src/Api/Implementation/{QueryLanguageApiImpl.js → ExpressionApiImpl.js} +7 -5
  96. package/src/Api/Implementation/FilterApiImpl.d.ts +1 -17
  97. package/src/Api/Implementation/FilterApiImpl.js +0 -53
  98. package/src/Api/Implementation/FlashingCellApiImpl.d.ts +0 -3
  99. package/src/Api/Implementation/FlashingCellApiImpl.js +2 -13
  100. package/src/Api/Implementation/FormatColumnApiImpl.d.ts +2 -34
  101. package/src/Api/Implementation/FormatColumnApiImpl.js +0 -73
  102. package/src/Api/Implementation/FreeTextColumnApiImpl.d.ts +0 -8
  103. package/src/Api/Implementation/FreeTextColumnApiImpl.js +0 -29
  104. package/src/Api/Implementation/GridApiImpl.d.ts +0 -7
  105. package/src/Api/Implementation/GridApiImpl.js +3 -32
  106. package/src/Api/Implementation/LayoutApiImpl.d.ts +1 -6
  107. package/src/Api/Implementation/LayoutApiImpl.js +2 -27
  108. package/src/Api/Implementation/OptionsApiImpl.d.ts +10 -5
  109. package/src/Api/Implementation/OptionsApiImpl.js +19 -7
  110. package/src/Api/Implementation/PlusMinusApiImpl.d.ts +0 -1
  111. package/src/Api/Implementation/PlusMinusApiImpl.js +0 -5
  112. package/src/Api/Implementation/PredicateApiImpl.d.ts +1 -8
  113. package/src/Api/Implementation/PredicateApiImpl.js +2 -30
  114. package/src/Api/Implementation/QueryApiImpl.d.ts +0 -5
  115. package/src/Api/Implementation/QueryApiImpl.js +0 -21
  116. package/src/Api/Implementation/QuickSearchApiImpl.d.ts +0 -1
  117. package/src/Api/Implementation/QuickSearchApiImpl.js +0 -5
  118. package/src/Api/Implementation/ScheduleApiImpl.d.ts +1 -18
  119. package/src/Api/Implementation/ScheduleApiImpl.js +0 -69
  120. package/src/Api/Implementation/ScopeApiImpl.js +1 -1
  121. package/src/Api/Implementation/SettingsPanelApiImpl.d.ts +0 -2
  122. package/src/Api/Implementation/SettingsPanelApiImpl.js +0 -9
  123. package/src/Api/Implementation/ShortcutApiImpl.d.ts +1 -6
  124. package/src/Api/Implementation/ShortcutApiImpl.js +0 -21
  125. package/src/Api/Implementation/SmartEditApiImpl.d.ts +0 -1
  126. package/src/Api/Implementation/SmartEditApiImpl.js +0 -5
  127. package/src/Api/Implementation/StyledColumnApiImpl.d.ts +1 -5
  128. package/src/Api/Implementation/StyledColumnApiImpl.js +2 -17
  129. package/src/Api/Implementation/SystemStatusApiImpl.d.ts +0 -2
  130. package/src/Api/Implementation/SystemStatusApiImpl.js +0 -9
  131. package/src/Api/Implementation/TeamSharingApiImpl.d.ts +0 -5
  132. package/src/Api/Implementation/TeamSharingApiImpl.js +0 -21
  133. package/src/Api/Implementation/ThemeApiImpl.d.ts +0 -4
  134. package/src/Api/Implementation/ThemeApiImpl.js +2 -17
  135. package/src/Api/Implementation/ToolPanelApiImpl.js +2 -2
  136. package/src/Api/Implementation/UserInterfaceApiImpl.d.ts +4 -2
  137. package/src/Api/Implementation/UserInterfaceApiImpl.js +17 -10
  138. package/src/Api/Internal/{ActionInternalApi.d.ts → ActionRowInternalApi.d.ts} +2 -2
  139. package/src/Api/Internal/{ActionInternalApi.js → ActionRowInternalApi.js} +12 -5
  140. package/src/Api/Internal/AdaptableInternalApi.d.ts +1 -10
  141. package/src/Api/Internal/AdaptableInternalApi.js +9 -20
  142. package/src/Api/Internal/AlertInternalApi.js +9 -6
  143. package/src/Api/Internal/CalculatedColumnInternalApi.js +2 -2
  144. package/src/Api/Internal/CustomSortInternalApi.d.ts +1 -1
  145. package/src/Api/Internal/CustomSortInternalApi.js +1 -1
  146. package/src/Api/Internal/DashboardInternalApi.js +2 -0
  147. package/src/Api/Internal/DataSetInternalApi.d.ts +1 -1
  148. package/src/Api/Internal/DataSetInternalApi.js +2 -1
  149. package/src/Api/Internal/ExportInternalApi.js +1 -1
  150. package/src/Api/Internal/{QueryLanguageInternalApi.d.ts → ExpressionnternalApi.d.ts} +1 -1
  151. package/src/Api/Internal/{QueryLanguageInternalApi.js → ExpressionnternalApi.js} +9 -5
  152. package/src/Api/Internal/FilterInternalApi.js +4 -1
  153. package/src/Api/Internal/FormatColumnInternalApi.js +1 -1
  154. package/src/Api/Internal/GridInternalApi.js +8 -0
  155. package/src/Api/Internal/LayoutInternalApi.js +6 -1
  156. package/src/Api/Internal/PredicateInternalApi.js +10 -0
  157. package/src/Api/Internal/QueryInternalApi.js +3 -1
  158. package/src/Api/Internal/SystemStatusInternalApi.js +4 -1
  159. package/src/Api/Internal/TeamSharingInternalApi.js +2 -0
  160. package/src/Api/LayoutApi.d.ts +3 -27
  161. package/src/Api/OptionsApi.d.ts +28 -10
  162. package/src/Api/PlusMinusApi.d.ts +0 -7
  163. package/src/Api/PredicateApi.d.ts +1 -32
  164. package/src/Api/QueryApi.d.ts +0 -23
  165. package/src/Api/QuickSearchApi.d.ts +0 -4
  166. package/src/Api/ScheduleApi.d.ts +0 -81
  167. package/src/Api/SettingsPanelApi.d.ts +0 -11
  168. package/src/Api/ShortcutApi.d.ts +0 -25
  169. package/src/Api/SmartEditApi.d.ts +0 -7
  170. package/src/Api/StyledColumnApi.d.ts +0 -21
  171. package/src/Api/SystemStatusApi.d.ts +0 -11
  172. package/src/Api/TeamSharingApi.d.ts +0 -23
  173. package/src/Api/ThemeApi.d.ts +0 -19
  174. package/src/Api/UserInterfaceApi.d.ts +4 -9
  175. package/src/PredefinedConfig/AlertState.d.ts +4 -1
  176. package/src/PredefinedConfig/Common/AdaptableFormat.d.ts +3 -3
  177. package/src/PredefinedConfig/Common/AdaptableIcon.d.ts +4 -1
  178. package/src/PredefinedConfig/Common/AggregationColumns.d.ts +3 -0
  179. package/src/PredefinedConfig/Common/BaseContext.d.ts +8 -0
  180. package/src/PredefinedConfig/Common/CellSummary.d.ts +1 -0
  181. package/src/PredefinedConfig/Common/DataChangedScope.d.ts +9 -0
  182. package/src/PredefinedConfig/Common/Entitlement.d.ts +1 -1
  183. package/src/PredefinedConfig/Common/Enums.d.ts +2 -1
  184. package/src/PredefinedConfig/Common/Enums.js +1 -0
  185. package/src/PredefinedConfig/LayoutState.d.ts +0 -6
  186. package/src/PredefinedConfig/SystemState.d.ts +1 -1
  187. package/src/PredefinedConfig/TeamSharingState.d.ts +1 -1
  188. package/src/PredefinedConfig/ThemeState.d.ts +3 -0
  189. package/src/Strategy/AdaptableModuleBase.js +3 -3
  190. package/src/Strategy/AlertModule.js +3 -3
  191. package/src/Strategy/CalculatedColumnModule.js +2 -2
  192. package/src/Strategy/CellSummaryModule.js +3 -0
  193. package/src/Strategy/DataSetModule.d.ts +1 -1
  194. package/src/Strategy/DataSetModule.js +1 -1
  195. package/src/Strategy/ExportModule.js +4 -0
  196. package/src/Strategy/FlashingCellModule.js +4 -4
  197. package/src/Strategy/FormatColumnModule.js +3 -3
  198. package/src/Strategy/QueryModule.js +1 -1
  199. package/src/Strategy/SmartEditModule.js +2 -0
  200. package/src/Utilities/Defaults/DefaultAdaptableOptions.js +25 -23
  201. package/src/Utilities/ExpressionFunctions/expressionFunctionUtils.js +4 -0
  202. package/src/Utilities/Helpers/AdaptableHelper.js +12 -6
  203. package/src/Utilities/Helpers/FormatHelper.js +7 -0
  204. package/src/Utilities/ObjectFactory.d.ts +2 -2
  205. package/src/Utilities/ObjectFactory.js +7 -4
  206. package/src/Utilities/Services/AlertService.js +1 -1
  207. package/src/Utilities/Services/CalculatedColumnExpressionService.js +2 -2
  208. package/src/Utilities/Services/ChartingService.js +2 -0
  209. package/src/Utilities/Services/EntitlementService.js +2 -2
  210. package/src/Utilities/Services/MetamodelService.js +4 -0
  211. package/src/Utilities/Services/ModuleService.js +10 -10
  212. package/src/Utilities/Services/QueryLanguageService.js +16 -0
  213. package/src/Utilities/Services/ReportService.js +8 -6
  214. package/src/Utilities/Services/RowEditService.js +4 -2
  215. package/src/Utilities/Services/ValidationService.js +2 -0
  216. package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/ConfigurationWizard.js +5 -5
  217. package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/ConfigurationWizardColumnsStep.js +1 -1
  218. package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/FinanceForm/FinanceForm.js +1 -1
  219. package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/GridOptionsForm.js +9 -9
  220. package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/UIOptions/UIOptionsActionColumnsForm.js +3 -3
  221. package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/UIOptions/UIOptionsSidebarForm.js +4 -4
  222. package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/UIOptions/UIOptionsStatusbarForm.js +3 -3
  223. package/src/View/AdaptableWizardView/Wizard.js +2 -2
  224. package/src/View/CalculatedColumn/Wizard/CalculatedColumnExpressionWizardSection.js +1 -1
  225. package/src/View/CellSummary/CellSummaryStatusPanel.js +1 -1
  226. package/src/View/Components/AdaptableIconSelector/index.d.ts +6 -0
  227. package/src/View/Components/AdaptableIconSelector/index.js +18 -0
  228. package/src/View/Components/AdaptableObjectList/AdaptableObjectList.js +2 -2
  229. package/src/View/Components/AdaptableViewIcon/index.d.ts +10 -0
  230. package/src/View/Components/AdaptableViewIcon/index.js +18 -0
  231. package/src/View/Components/EntityRulesEditor/Utilities.js +3 -3
  232. package/src/View/Components/ExternalRenderer.js +14 -2
  233. package/src/View/Components/FilterForm/QuickFilterForm.js +4 -0
  234. package/src/View/Components/Popups/AdaptablePopupAlert.js +2 -0
  235. package/src/View/Components/RangesComponent.d.ts +4 -4
  236. package/src/View/Components/RangesComponent.js +13 -22
  237. package/src/View/Components/ToolPanel/AdaptableToolPanel.js +2 -0
  238. package/src/View/Components/ToolPanel/CustomToolPanelContent.js +11 -1
  239. package/src/View/CustomSort/Wizard/CustomSortColumnWizardSection.js +1 -1
  240. package/src/View/Dashboard/CustomDashboardButton.js +2 -0
  241. package/src/View/Dashboard/CustomToolbarWrapper.js +13 -1
  242. package/src/View/DataChangeHistory/DataChangeHistoryGrid.js +11 -7
  243. package/src/View/DataChangeHistory/buildActionColumnButton.d.ts +2 -2
  244. package/src/View/DataChangeHistory/buildActionColumnButton.js +3 -2
  245. package/src/View/Export/ExportViewPanel.d.ts +1 -1
  246. package/src/View/Export/ExportViewPanel.js +4 -4
  247. package/src/View/FormatColumn/Wizard/FormatColumnFormatWizardSection.js +3 -1
  248. package/src/View/GridInfo/GridInfoPopup.d.ts +0 -1
  249. package/src/View/GridInfo/GridInfoPopup.js +1 -2
  250. package/src/View/GridInfo/GridOptionsComponent.js +1 -1
  251. package/src/View/Layout/LayoutViewPanel.js +1 -1
  252. package/src/View/Layout/PivotDetailsPopoup.js +2 -0
  253. package/src/View/Layout/SaveLayoutButton.js +1 -1
  254. package/src/View/Layout/Wizard/LayoutWizard.js +1 -1
  255. package/src/View/Query/Wizard/NamedQueryExpressionWizardSection.js +1 -1
  256. package/src/View/Shortcut/Wizard/ShortcutSettingsWizard.js +1 -1
  257. package/src/View/StyledColumn/Wizard/StyledColumnBadgeSection.js +2 -2
  258. package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/Components/StyledColumnBadgePreview.js +8 -1
  259. package/src/agGrid/ActionColumnRenderer.d.ts +1 -1
  260. package/src/agGrid/ActionColumnRenderer.js +5 -1
  261. package/src/agGrid/Adaptable.d.ts +21 -10
  262. package/src/agGrid/Adaptable.js +164 -63
  263. package/src/agGrid/BadgeRenderer.js +10 -2
  264. package/src/agGrid/CheckboxRenderer.d.ts +1 -2
  265. package/src/agGrid/agGridHelper.js +4 -5
  266. package/src/agGrid/agGridMenuHelper.js +4 -0
  267. package/src/agGrid/attachAddaptableColumnTypes.d.ts +11 -11
  268. package/src/agGrid/editors/AdaptableDateEditor/index.js +2 -0
  269. package/src/agGrid/editors/AdaptableNumberEditor/index.js +2 -2
  270. package/src/components/AdaptableFormComponent/AdaptableFormComponent.js +6 -3
  271. package/src/components/AdaptableIconComponent/index.js +6 -3
  272. package/src/components/ExpressionEditor/BaseEditorInput.js +2 -0
  273. package/src/components/ExpressionEditor/index.js +1 -1
  274. package/src/components/IconSelector/IconSelector.d.ts +2 -0
  275. package/src/components/IconSelector/IconSelector.js +21 -5
  276. package/src/components/Input/NumberInput.d.ts +10 -0
  277. package/src/components/Input/NumberInput.js +46 -0
  278. package/src/metamodel/adaptable.metamodel.d.ts +230 -145
  279. package/src/metamodel/adaptable.metamodel.js +1 -1
  280. package/src/types.d.ts +14 -8
  281. package/version.d.ts +1 -1
  282. package/version.js +1 -1
  283. package/src/AdaptableOptions/GeneralOptions.d.ts +0 -159
  284. package/src/Api/Events/SearchChanged.d.ts +0 -12
  285. package/src/Api/Implementation/ActionApiImpl.d.ts +0 -14
  286. /package/src/AdaptableOptions/{ActionOptions.js → ActionColumnOptions.js} +0 -0
  287. /package/src/AdaptableOptions/{GeneralOptions.js → ActionRowOptions.js} +0 -0
  288. /package/src/{Api/ActionApi.js → AdaptableOptions/CalendarOptions.js} +0 -0
  289. /package/src/{Api/Events/SearchChanged.js → AdaptableOptions/CellSummaryOptions.js} +0 -0
  290. /package/src/{Api/QueryLanguageApi.js → AdaptableOptions/CustomSortOptions.js} +0 -0
@@ -5,7 +5,6 @@ const tslib_1 = require("tslib");
5
5
  const ModuleConstants = tslib_1.__importStar(require("../../Utilities/Constants/ModuleConstants"));
6
6
  const CustomSortRedux = tslib_1.__importStar(require("../../Redux/ActionsReducers/CustomSortRedux"));
7
7
  const ApiBase_1 = require("./ApiBase");
8
- const logDeprecation_1 = require("../../Utilities/logDeprecation");
9
8
  const CustomSortInternalApi_1 = require("../Internal/CustomSortInternalApi");
10
9
  class CustomSortApiImpl extends ApiBase_1.ApiBase {
11
10
  constructor(adaptable) {
@@ -15,10 +14,6 @@ class CustomSortApiImpl extends ApiBase_1.ApiBase {
15
14
  getCustomSortState() {
16
15
  return this.getAdaptableState().CustomSort;
17
16
  }
18
- getAllCustomSort(config) {
19
- (0, logDeprecation_1.logDeprecation)(this.adaptable.logger, 'CustomSortApi', 'getAllCustomSort', 'getCustomSorts');
20
- return this.getCustomSorts(config);
21
- }
22
17
  getCustomSorts(config) {
23
18
  var _a;
24
19
  return ((_a = this.handleLayoutAssociatedObjects(this.getCustomSortState().CustomSorts, 'CustomSort', config)) !== null && _a !== void 0 ? _a : []);
@@ -26,17 +21,9 @@ class CustomSortApiImpl extends ApiBase_1.ApiBase {
26
21
  getCustomSortById(id) {
27
22
  return this.getCustomSorts().find((customSort) => customSort.Uuid === id);
28
23
  }
29
- getAllActiveCustomSort() {
30
- (0, logDeprecation_1.logDeprecation)(this.adaptable.logger, 'CustomSortApi', 'getAllActiveCustomSort', 'getActiveCustomSorts');
31
- return this.getActiveCustomSorts();
32
- }
33
24
  getActiveCustomSorts(config) {
34
25
  return this.getCustomSorts(config).filter((customSort) => !customSort.IsSuspended);
35
26
  }
36
- getAllSuspendedCustomSort() {
37
- (0, logDeprecation_1.logDeprecation)(this.adaptable.logger, 'CustomSortApi', 'getAllSuspendedCustomSort', 'getSuspendedCustomSorts');
38
- return this.getSuspendedCustomSorts();
39
- }
40
27
  getSuspendedCustomSorts(config) {
41
28
  return this.getCustomSorts(config).filter((customSort) => customSort.IsSuspended);
42
29
  }
@@ -77,9 +64,6 @@ class CustomSortApiImpl extends ApiBase_1.ApiBase {
77
64
  this.dispatchAction(CustomSortRedux.CustomSortUnSuspend(customSort));
78
65
  return this.getCustomSortById(customSort.Uuid);
79
66
  }
80
- showCustomSortPopup() {
81
- (0, logDeprecation_1.logDeprecation)(this.adaptable.logger, 'CustomSortApi', 'showCustomSortPopup', 'openCustomSortSettingsPanel');
82
- }
83
67
  openCustomSortSettingsPanel() {
84
68
  this.showModulePopup(ModuleConstants.CustomSortModuleId);
85
69
  }
@@ -2,7 +2,6 @@ import { ApiBase } from './ApiBase';
2
2
  import { DashboardApi } from '../DashboardApi';
3
3
  import { DashboardState, DashboardTab } from '../../PredefinedConfig/DashboardState';
4
4
  import { AdaptableDashboardToolbar, AdaptableDashboardToolbars, AdaptableModuleButtons } from '../../PredefinedConfig/Common/Types';
5
- import { DashboardChangedInfo } from '../Events/DashboardChanged';
6
5
  import { AdaptableButton } from '../../PredefinedConfig/Common/AdaptableButton';
7
6
  import { DashboardButtonContext } from '../../types';
8
7
  import { CustomToolbar } from '../../AdaptableOptions/DashboardOptions';
@@ -34,10 +33,7 @@ export declare class DashboardApiImpl extends ApiBase implements DashboardApi {
34
33
  setActiveTabIndex(tabIndex: number): void;
35
34
  setActiveTab(tabName: string): void;
36
35
  getCurrentToolbars(): AdaptableDashboardToolbars | string[] | undefined;
37
- fireDashboardChangedEvent: (trigger: string, oldDashboardState: DashboardState, newDashboardState: DashboardState) => void;
38
- showDashboardPopup(): void;
39
36
  openDashboardSettingsPanel(): void;
40
- hasCustomToolbarChanged(dashboardChangedInfo: DashboardChangedInfo, customToolbarName: string): 'hidden' | 'visible' | 'none';
41
37
  isDashboardCollapsed(): boolean;
42
38
  isDashboardExpanded(): boolean;
43
39
  isDashboardFloating(): boolean;
@@ -8,17 +8,9 @@ const ModuleConstants = tslib_1.__importStar(require("../../Utilities/Constants/
8
8
  const React = tslib_1.__importStar(require("react"));
9
9
  const SystemRedux_1 = require("../../Redux/ActionsReducers/SystemRedux");
10
10
  const DashboardInternalApi_1 = require("../Internal/DashboardInternalApi");
11
- const logDeprecation_1 = require("../../Utilities/logDeprecation");
12
11
  class DashboardApiImpl extends ApiBase_1.ApiBase {
13
12
  constructor(adaptable) {
14
13
  super(adaptable);
15
- // it's called synchronously by DASHBOARD_SET_ACTIVE_TAB & DASHBOARD_SET_IS_COLLAPSED,
16
- // both firing the same events, thus this function being called twice;
17
- // so we debounced to only get tha latest call
18
- this.fireDashboardChangedEvent = (trigger, oldDashboardState, newDashboardState) => {
19
- (0, logDeprecation_1.logDeprecationInternal)(this.adaptable.logger, 'DashboardApi', 'fireDashboardChangedEvent');
20
- this.internalApi.fireDashboardChangedEvent(trigger, oldDashboardState, newDashboardState);
21
- };
22
14
  this.internalApi = new DashboardInternalApi_1.DashboardInternalApi(adaptable);
23
15
  }
24
16
  getDashboardState() {
@@ -34,6 +26,8 @@ class DashboardApiImpl extends ApiBase_1.ApiBase {
34
26
  const api = this.getAdaptableApi();
35
27
  const dashboardContext = {
36
28
  adaptableApi: api,
29
+ userName: this.getOptions().userName,
30
+ adaptableId: this.getOptions().adaptableId,
37
31
  dashboardState: api.dashboardApi.getDashboardState(),
38
32
  };
39
33
  return this.getDashboardOptions().customDashboardButtons.find((cb) => {
@@ -118,25 +112,9 @@ class DashboardApiImpl extends ApiBase_1.ApiBase {
118
112
  }
119
113
  return currentTab.Toolbars;
120
114
  }
121
- showDashboardPopup() {
122
- (0, logDeprecation_1.logDeprecation)(this.adaptable.logger, 'DashboardApi', 'showDashboardPopup', 'openDashboardSettingsPanel');
123
- this.openDashboardSettingsPanel();
124
- }
125
115
  openDashboardSettingsPanel() {
126
116
  this.showModulePopup(ModuleConstants.DashboardModuleId);
127
117
  }
128
- hasCustomToolbarChanged(dashboardChangedInfo, customToolbarName) {
129
- (0, logDeprecation_1.logDeprecation)(this.adaptable.logger, 'DashboardApi', 'hasCustomToolbarChanged', null, 'Use instead the information provided in the DashboardChanged event.');
130
- const visibleInNewState = this.internalApi.isToolbarInActiveTab(customToolbarName, dashboardChangedInfo.newDashboardState);
131
- const visibleInOldState = this.internalApi.isToolbarInActiveTab(customToolbarName, dashboardChangedInfo.oldDashboardState);
132
- if (visibleInNewState && !visibleInOldState) {
133
- return 'visible';
134
- }
135
- if (visibleInOldState && !visibleInNewState) {
136
- return 'hidden';
137
- }
138
- return 'none';
139
- }
140
118
  isDashboardCollapsed() {
141
119
  return this.getDashboardState().IsCollapsed;
142
120
  }
@@ -8,6 +8,5 @@ export declare class DataChangeHistoryApiImpl extends ApiBase implements DataCha
8
8
  suspendDataChangeHistory(): void;
9
9
  getDataChangeHistoryLog(): CellDataChangedInfo[];
10
10
  undoDataChangeHistoryEntry(dataChangeInfo: CellDataChangedInfo): void;
11
- showDataChangeHistoryPopup(): void;
12
11
  openDataChangeHistorySettingsPanel(): void;
13
12
  }
@@ -5,7 +5,6 @@ const tslib_1 = require("tslib");
5
5
  const ApiBase_1 = require("./ApiBase");
6
6
  const SystemRedux_1 = require("../../Redux/ActionsReducers/SystemRedux");
7
7
  const ModuleConstants = tslib_1.__importStar(require("../../Utilities/Constants/ModuleConstants"));
8
- const logDeprecation_1 = require("../../Utilities/logDeprecation");
9
8
  class DataChangeHistoryApiImpl extends ApiBase_1.ApiBase {
10
9
  getDataChangeHistoryMode() {
11
10
  return this.getAdaptableState().System.DataChangeHistory.currentMode;
@@ -41,10 +40,6 @@ class DataChangeHistoryApiImpl extends ApiBase_1.ApiBase {
41
40
  undoDataChangeHistoryEntry(dataChangeInfo) {
42
41
  this.dispatchAction((0, SystemRedux_1.SystemDataChangeHistoryUndo)(dataChangeInfo));
43
42
  }
44
- showDataChangeHistoryPopup() {
45
- (0, logDeprecation_1.logDeprecation)(this.adaptable.logger, 'DataChangeHistoryApi', 'showDataChangeHistoryPopup', 'openDataChangeHistorySettingsPanel');
46
- this.openDataChangeHistorySettingsPanel();
47
- }
48
43
  openDataChangeHistorySettingsPanel() {
49
44
  this.showModulePopup(ModuleConstants.DataChangeHistoryModuleId);
50
45
  }
@@ -1,18 +1,15 @@
1
1
  import { ApiBase } from './ApiBase';
2
2
  import { DataSetApi } from '../DataSetApi';
3
- import { DataSet } from '../../AdaptableOptions/GeneralOptions';
3
+ import { DataSet } from '../../AdaptableOptions/DataSetOptions';
4
4
  import { IAdaptable } from '../../AdaptableInterfaces/IAdaptable';
5
5
  import { DataSetInternalApi } from '../Internal/DataSetInternalApi';
6
6
  export declare class DataSetApiImpl extends ApiBase implements DataSetApi {
7
7
  internalApi: DataSetInternalApi;
8
8
  constructor(adaptable: IAdaptable);
9
- getAllDataSets(): DataSet[];
10
9
  getDataSets(): DataSet[];
11
10
  getCurrentDataSet(): DataSet | undefined;
12
11
  getDataSetByName(dataSetName: string): DataSet | undefined;
13
12
  setDataSet(dataSetName: string): void;
14
13
  clearCurrentDataSet(): void;
15
- showDataSetPopup(): void;
16
14
  openDataSetSettingsPanel(): void;
17
- fireDataSetSelectedEvent(dataSet: DataSet): void;
18
15
  }
@@ -6,19 +6,14 @@ const ModuleConstants = tslib_1.__importStar(require("../../Utilities/Constants/
6
6
  const SystemRedux = tslib_1.__importStar(require("../../Redux/ActionsReducers/SystemRedux"));
7
7
  const ApiBase_1 = require("./ApiBase");
8
8
  const DataSetInternalApi_1 = require("../Internal/DataSetInternalApi");
9
- const logDeprecation_1 = require("../../Utilities/logDeprecation");
10
9
  class DataSetApiImpl extends ApiBase_1.ApiBase {
11
10
  constructor(adaptable) {
12
11
  super(adaptable);
13
12
  this.internalApi = new DataSetInternalApi_1.DataSetInternalApi(adaptable);
14
13
  }
15
- getAllDataSets() {
16
- (0, logDeprecation_1.logDeprecation)(this.adaptable.logger, 'DataSetApi', 'getAllDataSets', 'getDataSets');
17
- return this.getDataSets();
18
- }
19
14
  getDataSets() {
20
15
  var _a, _b, _c;
21
- return (_c = (_b = (_a = this.adaptable.adaptableOptions) === null || _a === void 0 ? void 0 : _a.generalOptions) === null || _b === void 0 ? void 0 : _b.dataSets) !== null && _c !== void 0 ? _c : [];
16
+ return (_c = (_b = (_a = this.adaptable.adaptableOptions) === null || _a === void 0 ? void 0 : _a.dataSetOptions) === null || _b === void 0 ? void 0 : _b.dataSets) !== null && _c !== void 0 ? _c : [];
22
17
  }
23
18
  getCurrentDataSet() {
24
19
  let currentDataSetName = this.getAdaptableState().System.CurrentDataSet;
@@ -36,16 +31,8 @@ class DataSetApiImpl extends ApiBase_1.ApiBase {
36
31
  clearCurrentDataSet() {
37
32
  this.dispatchAction(SystemRedux.SystemDataSetSelect(null));
38
33
  }
39
- showDataSetPopup() {
40
- (0, logDeprecation_1.logDeprecation)(this.adaptable.logger, 'DataSetApi', 'showDataSetPopup', 'openDataSetSettingsPanel');
41
- this.openDataSetSettingsPanel();
42
- }
43
34
  openDataSetSettingsPanel() {
44
35
  this.showModulePopup(ModuleConstants.DataSetModuleId);
45
36
  }
46
- fireDataSetSelectedEvent(dataSet) {
47
- (0, logDeprecation_1.logDeprecationInternal)(this.adaptable.logger, 'DataSetApi', 'fireDataSetSelectedEvent');
48
- this.internalApi.fireDataSetSelectedEvent(dataSet);
49
- }
50
37
  }
51
38
  exports.DataSetApiImpl = DataSetApiImpl;
@@ -2,8 +2,7 @@ import { ExportApi } from '../ExportApi';
2
2
  import { ExportState, Report, ReportData, ReportSchedule, SystemReportNames } from '../../PredefinedConfig/ExportState';
3
3
  import { ApiBase } from './ApiBase';
4
4
  import { AdaptableForm } from '../../PredefinedConfig/Common/AdaptableForm';
5
- import { CellDataChangedInfo } from '../../PredefinedConfig/Common/CellDataChangedInfo';
6
- import { AdaptableReportColumn, CustomDestination, ExportFormContext, ServerReport } from '../../AdaptableOptions/ExportOptions';
5
+ import { AdaptableReportColumn, CustomDestination, ExportFormContext, ExternalReport } from '../../AdaptableOptions/ExportOptions';
7
6
  import { ExportDestination } from '../../PredefinedConfig/Common/Enums';
8
7
  import { IAdaptable } from '../../AdaptableInterfaces/IAdaptable';
9
8
  import { ExportInternalApi } from '../Internal/ExportInternalApi';
@@ -19,28 +18,23 @@ export declare class ExportApiImpl extends ApiBase implements ExportApi {
19
18
  getCurrentDestination(): ExportDestination | CustomDestination;
20
19
  getAvailableSystemReports(): SystemReportNames;
21
20
  getAvailableExportDestinations(): ExportDestination[];
22
- getAllReports(): Report[];
23
21
  getReports(): Report[];
24
22
  getReportSchedules(): ReportSchedule[];
25
23
  sendReport(reportName: string, destination: 'Excel' | 'CSV' | 'Clipboard' | 'JSON' | string): void;
26
24
  selectReport(reportName: string): void;
27
25
  selectDestination(destinationName: string): void;
28
- getAllCustomDestination(): CustomDestination[];
29
26
  getCustomDestinations(): CustomDestination[];
30
27
  isExportDestinationCustom(destinationName: string): boolean;
31
28
  getExportDestinationForm(destinationName: string): AdaptableForm<ExportFormContext> | undefined;
32
29
  canExportToExcel(): boolean;
33
30
  exportDataToExcel(reportData: ReportData, fileName: string): void;
34
- showExportPopup(): void;
35
31
  openExportSettingsPanel(): void;
36
32
  editReport(report: Report): Report;
37
33
  editReports(reports: Report[]): Report[];
38
- isDataChangeInReport(cellDataChangedInfo: CellDataChangedInfo, report: Report): boolean;
39
34
  exportVisualDataToExcel(): void;
40
- getAllServerReports(): ServerReport[] | undefined;
41
- getServerReports(): ServerReport[];
42
- isServerReport(report: Report): boolean;
43
- runServerReport(serverReportName: string): ReportData | undefined;
35
+ getExternalReports(): ExternalReport[];
36
+ isExternalReport(report: Report): boolean;
37
+ runExternalReport(externalReportName: string): ReportData | undefined;
44
38
  getReportDataForReport(reportName: string): ReportData | undefined;
45
39
  isColumnExportable(adaptableColumn: AdaptableReportColumn): boolean;
46
40
  }
@@ -9,7 +9,6 @@ const Enums_1 = require("../../PredefinedConfig/Common/Enums");
9
9
  const ObjectFactory_1 = tslib_1.__importDefault(require("../../Utilities/ObjectFactory"));
10
10
  const ArrayExtensions_1 = tslib_1.__importDefault(require("../../Utilities/Extensions/ArrayExtensions"));
11
11
  const ExportInternalApi_1 = require("../Internal/ExportInternalApi");
12
- const logDeprecation_1 = require("../../Utilities/logDeprecation");
13
12
  class ExportApiImpl extends ApiBase_1.ApiBase {
14
13
  constructor(adaptable) {
15
14
  super(adaptable);
@@ -62,18 +61,14 @@ class ExportApiImpl extends ApiBase_1.ApiBase {
62
61
  });
63
62
  return systemDestinations;
64
63
  }
65
- getAllReports() {
66
- (0, logDeprecation_1.logDeprecation)(this.adaptable.logger, 'ExportApi', 'getAllReports', 'getReports');
67
- return this.getReports();
68
- }
69
64
  getReports() {
70
65
  const reports = this.getAvailableSystemReports()
71
66
  .map((s) => this.getReportByName(s))
72
67
  .concat(this.getExportState().Reports);
73
- const serverReports = this.getServerReports();
74
- if (ArrayExtensions_1.default.IsNotNullOrEmpty(serverReports)) {
75
- reports.push(...serverReports.map((c) => {
76
- return ObjectFactory_1.default.CreateServerReport(c.name);
68
+ const externalReports = this.getExternalReports();
69
+ if (ArrayExtensions_1.default.IsNotNullOrEmpty(externalReports)) {
70
+ reports.push(...externalReports.map((c) => {
71
+ return ObjectFactory_1.default.CreateExternalReport(c.name);
77
72
  }));
78
73
  }
79
74
  return reports;
@@ -93,10 +88,6 @@ class ExportApiImpl extends ApiBase_1.ApiBase {
93
88
  selectDestination(destinationName) {
94
89
  this.dispatchAction(ExportRedux.DestinationSelect(destinationName));
95
90
  }
96
- getAllCustomDestination() {
97
- (0, logDeprecation_1.logDeprecation)(this.adaptable.logger, 'ExportApi', 'getAllCustomDestination', 'getCustomDestinations');
98
- return this.getCustomDestinations();
99
- }
100
91
  getCustomDestinations() {
101
92
  var _a;
102
93
  return (_a = this.getExportOptions().customDestinations) !== null && _a !== void 0 ? _a : [];
@@ -114,10 +105,6 @@ class ExportApiImpl extends ApiBase_1.ApiBase {
114
105
  exportDataToExcel(reportData, fileName) {
115
106
  this.adaptable.exportToExcel(reportData, fileName);
116
107
  }
117
- showExportPopup() {
118
- (0, logDeprecation_1.logDeprecation)(this.adaptable.logger, 'ExportApi', 'showExportPopup', 'openExportSettingsPanel');
119
- this.openExportSettingsPanel();
120
- }
121
108
  openExportSettingsPanel() {
122
109
  this.showModulePopup(ModuleConstants.ExportModuleId);
123
110
  }
@@ -131,33 +118,25 @@ class ExportApiImpl extends ApiBase_1.ApiBase {
131
118
  });
132
119
  return reports === null || reports === void 0 ? void 0 : reports.map((report) => this.getReportById(report.Uuid));
133
120
  }
134
- isDataChangeInReport(cellDataChangedInfo, report) {
135
- (0, logDeprecation_1.logDeprecationInternal)(this.adaptable.logger, 'ExportApi', 'isDataChangeInReport');
136
- return this.internalApi.isDataChangeInReport(cellDataChangedInfo, report);
137
- }
138
121
  exportVisualDataToExcel() {
139
122
  this.adaptable.exportVisualDataToExcel();
140
123
  }
141
- getAllServerReports() {
142
- (0, logDeprecation_1.logDeprecation)(this.adaptable.logger, 'ExportApi', 'getAllServerReports', 'getServerReports');
143
- return this.getServerReports();
144
- }
145
- getServerReports() {
124
+ getExternalReports() {
146
125
  var _a;
147
- return (_a = this.getExportOptions().serverReports) !== null && _a !== void 0 ? _a : [];
126
+ return (_a = this.getExportOptions().externalReports) !== null && _a !== void 0 ? _a : [];
148
127
  }
149
- isServerReport(report) {
128
+ isExternalReport(report) {
150
129
  var _a;
151
- return ((_a = this.getServerReports()) === null || _a === void 0 ? void 0 : _a.find((cr) => cr.name == report.Name)) != null;
130
+ return ((_a = this.getExternalReports()) === null || _a === void 0 ? void 0 : _a.find((cr) => cr.name == report.Name)) != null;
152
131
  }
153
- runServerReport(serverReportName) {
132
+ runExternalReport(externalReportName) {
154
133
  var _a;
155
- const serverReport = (_a = this.getServerReports()) === null || _a === void 0 ? void 0 : _a.find((cr) => cr.name == serverReportName);
156
- if (!serverReport) {
157
- this.logWarn(`Server Report '${serverReportName}' not found!`);
134
+ const externalReport = (_a = this.getExternalReports()) === null || _a === void 0 ? void 0 : _a.find((cr) => cr.name == externalReportName);
135
+ if (!externalReport) {
136
+ this.logWarn(`External Report '${externalReportName}' not found!`);
158
137
  return undefined;
159
138
  }
160
- return serverReport.onRunReport();
139
+ return externalReport.onRunReport();
161
140
  }
162
141
  getReportDataForReport(reportName) {
163
142
  const report = this.getReportByName(reportName);
@@ -172,6 +151,8 @@ class ExportApiImpl extends ApiBase_1.ApiBase {
172
151
  if (typeof isExportableFn === 'function') {
173
152
  return isExportableFn({
174
153
  adaptableApi: this.adaptable.api,
154
+ userName: this.getOptions().userName,
155
+ adaptableId: this.getOptions().adaptableId,
175
156
  adaptableColumn,
176
157
  });
177
158
  }
@@ -1,12 +1,12 @@
1
1
  import { ApiBase } from './ApiBase';
2
2
  import { AdaptableModule } from '../../PredefinedConfig/Common/Types';
3
- import { QueryLanguageApi } from '../QueryLanguageApi';
3
+ import { ExpressionApi } from '../ExpressionApi';
4
4
  import { AdaptableQuery } from '../../PredefinedConfig/Common/AdaptableQuery';
5
5
  import { AdaptableColumnBase } from '../../PredefinedConfig/Common/AdaptableColumn';
6
6
  import { IAdaptable } from '../../AdaptableInterfaces/IAdaptable';
7
- import { QueryLanguageInternalApi } from '../Internal/QueryLanguageInternalApi';
8
- export declare class QueryLanguageApiImpl extends ApiBase implements QueryLanguageApi {
9
- internalApi: QueryLanguageInternalApi;
7
+ import { ExpressionInternalApi } from '../Internal/ExpressionnternalApi';
8
+ export declare class ExpressionApiImpl extends ApiBase implements ExpressionApi {
9
+ internalApi: ExpressionInternalApi;
10
10
  constructor(adaptable: IAdaptable);
11
11
  isValidBooleanExpression(query: string, module: AdaptableModule, validationErrorMessage?: string): boolean;
12
12
  isValidObservableExpression(expression: string, module: AdaptableModule, validationErrorMessage?: string): boolean;
@@ -1,14 +1,14 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.QueryLanguageApiImpl = void 0;
3
+ exports.ExpressionApiImpl = void 0;
4
4
  const tslib_1 = require("tslib");
5
5
  const ApiBase_1 = require("./ApiBase");
6
6
  const parser = tslib_1.__importStar(require("../../parser/src"));
7
- const QueryLanguageInternalApi_1 = require("../Internal/QueryLanguageInternalApi");
8
- class QueryLanguageApiImpl extends ApiBase_1.ApiBase {
7
+ const ExpressionnternalApi_1 = require("../Internal/ExpressionnternalApi");
8
+ class ExpressionApiImpl extends ApiBase_1.ApiBase {
9
9
  constructor(adaptable) {
10
10
  super(adaptable);
11
- this.internalApi = new QueryLanguageInternalApi_1.QueryLanguageInternalApi(adaptable);
11
+ this.internalApi = new ExpressionnternalApi_1.ExpressionInternalApi(adaptable);
12
12
  }
13
13
  isValidBooleanExpression(query, module, validationErrorMessage) {
14
14
  const { isValid, errorMessage } = this.adaptable.api.internalApi
@@ -76,6 +76,8 @@ class QueryLanguageApiImpl extends ApiBase_1.ApiBase {
76
76
  const queryableColumnContext = {
77
77
  adaptableColumn: adaptableColumnBase,
78
78
  adaptableApi: this.getAdaptableApi(),
79
+ userName: this.getOptions().userName,
80
+ adaptableId: this.getOptions().adaptableId,
79
81
  };
80
82
  return queryableColumnFn(queryableColumnContext);
81
83
  }
@@ -91,4 +93,4 @@ class QueryLanguageApiImpl extends ApiBase_1.ApiBase {
91
93
  .getExpressionWithColumnFriendlyNames(this.getAdaptableQueryExpression(query));
92
94
  }
93
95
  }
94
- exports.QueryLanguageApiImpl = QueryLanguageApiImpl;
96
+ exports.ExpressionApiImpl = ExpressionApiImpl;
@@ -1,17 +1,13 @@
1
- import * as Redux from 'redux';
2
- import * as LayoutRedux from '../../Redux/ActionsReducers/LayoutRedux';
3
1
  import { ApiBase } from './ApiBase';
4
2
  import { FilterApi } from '../FilterApi';
5
3
  import { AdaptablePredicateDef, ColumnFilterDef } from '../../PredefinedConfig/Common/AdaptablePredicate';
6
4
  import { AdaptableColumn } from '../../PredefinedConfig/Common/AdaptableColumn';
7
- import { ColumnFilter, GridCell } from '../../types';
8
- import { IRowNode } from '@ag-grid-community/core';
5
+ import { ColumnFilter } from '../../types';
9
6
  import { IAdaptable } from '../../AdaptableInterfaces/IAdaptable';
10
7
  import { FilterInternalApi } from '../Internal/FilterInternalApi';
11
8
  export declare class FilterApiImpl extends ApiBase implements FilterApi {
12
9
  internalApi: FilterInternalApi;
13
10
  constructor(adaptable: IAdaptable);
14
- findPredicateDefByShortcut(shortcut: string, column: AdaptableColumn): AdaptablePredicateDef;
15
11
  getFilterPredicateDefsForColumn(column: AdaptableColumn): AdaptablePredicateDef[];
16
12
  getFilterPredicateDefsForColumnId(columnId: string): AdaptablePredicateDef[] | undefined;
17
13
  showQuickFilterBar(): void;
@@ -22,22 +18,13 @@ export declare class FilterApiImpl extends ApiBase implements FilterApi {
22
18
  getActiveColumnFilters(): ColumnFilter[];
23
19
  getColumnFilterDefs(): ColumnFilterDef[];
24
20
  getColumnFiltersForLayout(layoutName: string): ColumnFilter[];
25
- setColumnFilter(columnFilters: ColumnFilter[]): ColumnFilter[] | null;
26
21
  setColumnFilters(columnFilters: ColumnFilter[]): ColumnFilter[] | null;
27
22
  clearColumnFilter(columnFilter: ColumnFilter): void;
28
- clearColumnFilterByColumns(columns: string[]): void;
29
23
  clearColumnFiltersForColumns(columns: string[]): void;
30
- clearColumnFilterByColumn(column: string): void;
31
24
  clearColumnFilters(): void;
32
- clearAndSetColumnFilter(columnFilters: ColumnFilter[]): void;
33
25
  clearAndSetColumnFilters(columnFilters: ColumnFilter[]): void;
34
- getAllColumnFilterForColumn(column: string): ColumnFilter[];
35
- getColumnFilter(columnId: string): ColumnFilter | undefined;
36
- createValuesColumnFilterForCells(gridCells: GridCell[]): ColumnFilter | null;
37
- createEqualityColumnFilterForCell(gridCell: GridCell): ColumnFilter | null;
38
26
  columnFilterToString(columnFilter: ColumnFilter): string;
39
27
  columnFiltersToString(columnFilters: ColumnFilter[]): string;
40
- evaluateColumnFilter(columnFilter: ColumnFilter, node: IRowNode): boolean;
41
28
  private getColumnFilterById;
42
29
  /**
43
30
  * Checks if a filter is applied. It is applied when:
@@ -47,9 +34,6 @@ export declare class FilterApiImpl extends ApiBase implements FilterApi {
47
34
  * @param filter
48
35
  */
49
36
  isFilterActive(filter: ColumnFilter): boolean;
50
- shouldNewColumnFilterTriggerGridFiltering(action: LayoutRedux.LayoutColumnFilterAction | Redux.Action): boolean;
51
- areColumnFiltersDifferent(oldFilters: ColumnFilter[], newFilters: ColumnFilter[]): boolean;
52
- fireFilterAppliedEvent(): void;
53
37
  suspendColumnFilter(columnFilter: ColumnFilter): void;
54
38
  unSuspendColumnFilter(columnFilter: ColumnFilter): void;
55
39
  suspendAllColumnFilters(): void;
@@ -7,16 +7,11 @@ const LayoutRedux = tslib_1.__importStar(require("../../Redux/ActionsReducers/La
7
7
  const ApiBase_1 = require("./ApiBase");
8
8
  const ArrayExtensions_1 = tslib_1.__importDefault(require("../../Utilities/Extensions/ArrayExtensions"));
9
9
  const FilterInternalApi_1 = require("../Internal/FilterInternalApi");
10
- const logDeprecation_1 = require("../../Utilities/logDeprecation");
11
10
  class FilterApiImpl extends ApiBase_1.ApiBase {
12
11
  constructor(adaptable) {
13
12
  super(adaptable);
14
13
  this.internalApi = new FilterInternalApi_1.FilterInternalApi(adaptable);
15
14
  }
16
- findPredicateDefByShortcut(shortcut, column) {
17
- (0, logDeprecation_1.logDeprecationInternal)(this.adaptable.logger, 'FilterApi', 'findPredicateDefByShortcut');
18
- return this.internalApi.findPredicateDefByShortcut(shortcut, column);
19
- }
20
15
  getFilterPredicateDefsForColumn(column) {
21
16
  const scope = {
22
17
  ColumnIds: [column.columnId]
@@ -67,10 +62,6 @@ class FilterApiImpl extends ApiBase_1.ApiBase {
67
62
  const layout = this.adaptable.api.layoutApi.getLayoutByName(layoutName);
68
63
  return (_a = layout.ColumnFilters) !== null && _a !== void 0 ? _a : [];
69
64
  }
70
- setColumnFilter(columnFilters) {
71
- (0, logDeprecation_1.logDeprecation)(this.adaptable.logger, 'FilterApi', 'setColumnFilter', 'setColumnFilters');
72
- return this.setColumnFilters(columnFilters);
73
- }
74
65
  setColumnFilters(columnFilters) {
75
66
  columnFilters.forEach((columnFilter) => {
76
67
  if (!columnFilter.Predicate) {
@@ -97,57 +88,25 @@ class FilterApiImpl extends ApiBase_1.ApiBase {
97
88
  clearColumnFilter(columnFilter) {
98
89
  this.dispatchAction(LayoutRedux.LayoutColumnFilterClear(columnFilter));
99
90
  }
100
- clearColumnFilterByColumns(columns) {
101
- (0, logDeprecation_1.logDeprecation)(this.adaptable.logger, 'FilterApi', 'clearColumnFilterByColumns', 'clearColumnFiltersForColumns');
102
- this.clearColumnFiltersForColumns(columns);
103
- }
104
91
  clearColumnFiltersForColumns(columns) {
105
92
  columns.forEach((c) => {
106
93
  this.clearColumnFilterForColumn(c);
107
94
  });
108
95
  }
109
- clearColumnFilterByColumn(column) {
110
- (0, logDeprecation_1.logDeprecation)(this.adaptable.logger, 'FilterApi', 'clearColumnFilterByColumn', 'clearColumnFilterForColumn');
111
- this.clearColumnFilterForColumn(column);
112
- }
113
96
  clearColumnFilters() {
114
97
  this.dispatchAction(LayoutRedux.LayoutColumnFilterClearAll());
115
98
  this.adaptable.clearGridFiltering();
116
99
  }
117
- clearAndSetColumnFilter(columnFilters) {
118
- (0, logDeprecation_1.logDeprecation)(this.adaptable.logger, 'FilterApi', 'clearAndSetColumnFilter', 'clearAndSetColumnFilters');
119
- this.clearAndSetColumnFilters(columnFilters);
120
- }
121
100
  clearAndSetColumnFilters(columnFilters) {
122
101
  this.clearColumnFilters();
123
102
  this.setColumnFilters(columnFilters);
124
103
  }
125
- getAllColumnFilterForColumn(column) {
126
- (0, logDeprecation_1.logDeprecation)(this.adaptable.logger, 'FilterApi', 'getAllColumnFilterForColumn', 'getColumnFilterForColumn', 'One Column may have at most one ColumnFilter applied!');
127
- return [this.getColumnFilterForColumn(column)];
128
- }
129
- getColumnFilter(columnId) {
130
- (0, logDeprecation_1.logDeprecation)(this.adaptable.logger, 'FilterApi', 'getColumnFilter', 'getColumnFilterForColumn');
131
- return this.getColumnFilterForColumn(columnId);
132
- }
133
- createValuesColumnFilterForCells(gridCells) {
134
- (0, logDeprecation_1.logDeprecationInternal)(this.adaptable.logger, 'FilterApi', 'createValuesColumnFilterForCells');
135
- return this.internalApi.createValuesColumnFilterForCells(gridCells);
136
- }
137
- createEqualityColumnFilterForCell(gridCell) {
138
- (0, logDeprecation_1.logDeprecationInternal)(this.adaptable.logger, 'FilterApi', 'createEqualityColumnFilterForCell');
139
- return this.internalApi.createEqualityColumnFilterForCell(gridCell);
140
- }
141
104
  columnFilterToString(columnFilter) {
142
105
  return this.internalApi.columnFilterToString(columnFilter);
143
106
  }
144
107
  columnFiltersToString(columnFilters) {
145
108
  return this.internalApi.columnFiltersToString(columnFilters);
146
109
  }
147
- evaluateColumnFilter(columnFilter, node) {
148
- (0, logDeprecation_1.logDeprecationInternal)(this.adaptable.logger, 'FilterApi', 'evaluateColumnFilter');
149
- return this.internalApi.evaluateColumnFilter(columnFilter, node);
150
- }
151
110
  getColumnFilterById(id) {
152
111
  var _a;
153
112
  return (_a = this.getColumnFilters()) === null || _a === void 0 ? void 0 : _a.find((columnFilter) => columnFilter.Uuid === id);
@@ -179,18 +138,6 @@ class FilterApiImpl extends ApiBase_1.ApiBase {
179
138
  });
180
139
  return allInputsHaveValues;
181
140
  }
182
- shouldNewColumnFilterTriggerGridFiltering(action) {
183
- (0, logDeprecation_1.logDeprecationInternal)(this.adaptable.logger, 'FilterApi', 'shouldNewColumnFilterTriggerGridFiltering');
184
- return this.internalApi.shouldNewColumnFilterTriggerGridFiltering(action);
185
- }
186
- areColumnFiltersDifferent(oldFilters, newFilters) {
187
- (0, logDeprecation_1.logDeprecationInternal)(this.adaptable.logger, 'FilterApi', 'areColumnFiltersDifferent');
188
- return this.internalApi.areColumnFiltersDifferent(oldFilters, newFilters);
189
- }
190
- fireFilterAppliedEvent() {
191
- (0, logDeprecation_1.logDeprecationInternal)(this.adaptable.logger, 'FilterApi', 'fireFilterAppliedEvent');
192
- this.internalApi.fireFilterAppliedEvent();
193
- }
194
141
  suspendColumnFilter(columnFilter) {
195
142
  this.dispatchAction(LayoutRedux.LayoutColumnFilterSuspend(columnFilter));
196
143
  }
@@ -12,7 +12,6 @@ export declare class FlashingCellApiImpl extends ApiBase implements FlashingCell
12
12
  constructor(adaptable: IAdaptable);
13
13
  getFlashingCellState(): FlashingCellState;
14
14
  getFlashingCellDefinitions(config?: LayoutAssociatedObjectLoadConfig): FlashingCellDefinition[];
15
- mergeFlashingCellDefinitionWithDefaults(flashingCellDefinition: FlashingCellDefinition): FlashingCellDefinition;
16
15
  getFlashingCellDefinitionById(id: FlashingCellDefinition['Uuid']): FlashingCellDefinition;
17
16
  getActiveFlashingCellDefinitions(): FlashingCellDefinition[];
18
17
  getFlashingCellFlashTarget(flashingCellDefinition: FlashingCellDefinition): FlashingCellDefinition['FlashTarget'];
@@ -25,9 +24,7 @@ export declare class FlashingCellApiImpl extends ApiBase implements FlashingCell
25
24
  addFlashingCellDefinitions(flashingCellDefinitions: FlashingCellDefinition[]): FlashingCellDefinition[];
26
25
  editFlashingCellDefinitions(flashingCellDefinitions: FlashingCellDefinition[]): FlashingCellDefinition[];
27
26
  getFlashingCellPredicateDefsForScope(scope: AdaptableScope): AdaptablePredicateDef[];
28
- clearGridFlashing(): void;
29
27
  clearAllFlashingCells(): void;
30
- areCellsCurrentlyFlashed(): boolean;
31
28
  isAnyFlashingCellActive(): boolean;
32
29
  findFlashingCellDefinitions(criteria: AdaptableObjectLookupCriteria): FlashingCellDefinition[];
33
30
  }
@@ -6,7 +6,6 @@ const SystemRedux = tslib_1.__importStar(require("../../Redux/ActionsReducers/Sy
6
6
  const FlashingCellRedux = tslib_1.__importStar(require("../../Redux/ActionsReducers/FlashingCellRedux"));
7
7
  const ApiBase_1 = require("./ApiBase");
8
8
  const FlashingCellInternalApi_1 = require("../Internal/FlashingCellInternalApi");
9
- const logDeprecation_1 = require("../../Utilities/logDeprecation");
10
9
  class FlashingCellApiImpl extends ApiBase_1.ApiBase {
11
10
  constructor(adaptable) {
12
11
  super(adaptable);
@@ -22,10 +21,6 @@ class FlashingCellApiImpl extends ApiBase_1.ApiBase {
22
21
  return this.internalApi.mergeFlashingCellDefinitionWithDefaults(flashingCellDefinition);
23
22
  });
24
23
  }
25
- mergeFlashingCellDefinitionWithDefaults(flashingCellDefinition) {
26
- (0, logDeprecation_1.logDeprecationInternal)(this.adaptable.logger, 'FlashingCellApi', 'mergeFlashingCellDefinitionWithDefaults');
27
- return this.internalApi.mergeFlashingCellDefinitionWithDefaults(flashingCellDefinition);
28
- }
29
24
  getFlashingCellDefinitionById(id) {
30
25
  var _a;
31
26
  return (_a = this.getFlashingCellDefinitions()) === null || _a === void 0 ? void 0 : _a.find((fc) => (fc === null || fc === void 0 ? void 0 : fc.Uuid) === id);
@@ -42,6 +37,8 @@ class FlashingCellApiImpl extends ApiBase_1.ApiBase {
42
37
  const flashingCellFiredInfo = {
43
38
  adaptableApi: this.adaptable.api,
44
39
  flashingCell: flashingCellToShow,
40
+ userName: this.adaptable.api.optionsApi.getUserName(),
41
+ adaptableId: this.adaptable.api.optionsApi.getAdaptableId(),
45
42
  };
46
43
  const results = this.adaptable.api.eventApi.emitSync('FlashingCellDisplayed', flashingCellFiredInfo);
47
44
  const shouldShow = results.reduce((endResult, aResult) => {
@@ -93,17 +90,9 @@ class FlashingCellApiImpl extends ApiBase_1.ApiBase {
93
90
  .predicateApi.internalApi.getFlashingCellPredicateDefs(scope)
94
91
  .filter((predicateDef) => this.adaptable.api.scopeApi.isScopeInScope(scope, predicateDef.columnScope));
95
92
  }
96
- clearGridFlashing() {
97
- (0, logDeprecation_1.logDeprecation)(this.adaptable.logger, 'FlashingCellApi', 'clearGridFlashing', 'clearAllFlashingCells');
98
- this.clearAllFlashingCells();
99
- }
100
93
  clearAllFlashingCells() {
101
94
  this.dispatchAction(SystemRedux.SystemFlashingCellDeleteAll());
102
95
  }
103
- areCellsCurrentlyFlashed() {
104
- (0, logDeprecation_1.logDeprecation)(this.adaptable.logger, 'FlashingCellApi', 'areCellsCurrentlyFlashed', 'isAnyFlashingCellActive');
105
- return this.isAnyFlashingCellActive();
106
- }
107
96
  isAnyFlashingCellActive() {
108
97
  const currentFlashingCells = this.getAdaptableState().System.AdaptableFlashingCells;
109
98
  return currentFlashingCells.keys != null;