@adaptabletools/adaptable 15.4.3 → 16.0.0-canary.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (278) 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 +3 -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 -7
  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 +1 -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/DataChangedScope.d.ts +9 -0
  181. package/src/PredefinedConfig/Common/Entitlement.d.ts +1 -1
  182. package/src/PredefinedConfig/LayoutState.d.ts +0 -6
  183. package/src/PredefinedConfig/SystemState.d.ts +1 -1
  184. package/src/PredefinedConfig/TeamSharingState.d.ts +1 -1
  185. package/src/PredefinedConfig/ThemeState.d.ts +3 -0
  186. package/src/Strategy/AdaptableModuleBase.js +3 -3
  187. package/src/Strategy/AlertModule.js +3 -3
  188. package/src/Strategy/CalculatedColumnModule.js +2 -2
  189. package/src/Strategy/CellSummaryModule.js +2 -0
  190. package/src/Strategy/DataSetModule.d.ts +1 -1
  191. package/src/Strategy/DataSetModule.js +1 -1
  192. package/src/Strategy/ExportModule.js +4 -0
  193. package/src/Strategy/FlashingCellModule.js +4 -4
  194. package/src/Strategy/FormatColumnModule.js +3 -3
  195. package/src/Strategy/QueryModule.js +1 -1
  196. package/src/Strategy/SmartEditModule.js +2 -0
  197. package/src/Utilities/Defaults/DefaultAdaptableOptions.js +24 -22
  198. package/src/Utilities/ExpressionFunctions/expressionFunctionUtils.js +4 -0
  199. package/src/Utilities/Helpers/AdaptableHelper.js +12 -6
  200. package/src/Utilities/Helpers/FormatHelper.js +7 -0
  201. package/src/Utilities/ObjectFactory.d.ts +2 -2
  202. package/src/Utilities/ObjectFactory.js +6 -4
  203. package/src/Utilities/Services/AlertService.js +1 -1
  204. package/src/Utilities/Services/CalculatedColumnExpressionService.js +2 -2
  205. package/src/Utilities/Services/ChartingService.js +2 -0
  206. package/src/Utilities/Services/EntitlementService.js +2 -2
  207. package/src/Utilities/Services/ModuleService.js +10 -10
  208. package/src/Utilities/Services/QueryLanguageService.js +16 -0
  209. package/src/Utilities/Services/ReportService.js +8 -6
  210. package/src/Utilities/Services/RowEditService.js +4 -2
  211. package/src/Utilities/Services/ValidationService.js +2 -0
  212. package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/UIOptions/UIOptionsActionColumnsForm.js +3 -3
  213. package/src/View/CalculatedColumn/Wizard/CalculatedColumnExpressionWizardSection.js +1 -1
  214. package/src/View/CellSummary/CellSummaryStatusPanel.js +1 -1
  215. package/src/View/Components/AdaptableIconSelector/index.d.ts +6 -0
  216. package/src/View/Components/AdaptableIconSelector/index.js +18 -0
  217. package/src/View/Components/AdaptableObjectList/AdaptableObjectList.js +2 -2
  218. package/src/View/Components/AdaptableViewIcon/index.d.ts +10 -0
  219. package/src/View/Components/AdaptableViewIcon/index.js +18 -0
  220. package/src/View/Components/EntityRulesEditor/Utilities.js +3 -3
  221. package/src/View/Components/ExternalRenderer.js +14 -2
  222. package/src/View/Components/FilterForm/QuickFilterForm.js +4 -0
  223. package/src/View/Components/Popups/AdaptablePopupAlert.js +2 -0
  224. package/src/View/Components/RangesComponent.d.ts +4 -4
  225. package/src/View/Components/RangesComponent.js +13 -22
  226. package/src/View/Components/ToolPanel/AdaptableToolPanel.js +2 -0
  227. package/src/View/Components/ToolPanel/CustomToolPanelContent.js +11 -1
  228. package/src/View/CustomSort/Wizard/CustomSortColumnWizardSection.js +1 -1
  229. package/src/View/Dashboard/CustomDashboardButton.js +2 -0
  230. package/src/View/Dashboard/CustomToolbarWrapper.js +13 -1
  231. package/src/View/DataChangeHistory/DataChangeHistoryGrid.js +5 -5
  232. package/src/View/DataChangeHistory/buildActionColumnButton.d.ts +2 -2
  233. package/src/View/DataChangeHistory/buildActionColumnButton.js +3 -2
  234. package/src/View/Export/ExportViewPanel.js +4 -4
  235. package/src/View/FormatColumn/Wizard/FormatColumnFormatWizardSection.js +3 -1
  236. package/src/View/GridInfo/GridInfoPopup.d.ts +0 -1
  237. package/src/View/GridInfo/GridInfoPopup.js +1 -2
  238. package/src/View/GridInfo/GridOptionsComponent.js +1 -1
  239. package/src/View/Layout/LayoutViewPanel.js +1 -1
  240. package/src/View/Layout/PivotDetailsPopoup.js +2 -0
  241. package/src/View/Layout/SaveLayoutButton.js +1 -1
  242. package/src/View/Layout/Wizard/LayoutWizard.js +1 -1
  243. package/src/View/Query/Wizard/NamedQueryExpressionWizardSection.js +1 -1
  244. package/src/View/Shortcut/Wizard/ShortcutSettingsWizard.js +1 -1
  245. package/src/View/StyledColumn/Wizard/StyledColumnBadgeSection.js +2 -2
  246. package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/Components/StyledColumnBadgePreview.js +8 -1
  247. package/src/agGrid/ActionColumnRenderer.d.ts +1 -1
  248. package/src/agGrid/ActionColumnRenderer.js +5 -1
  249. package/src/agGrid/Adaptable.d.ts +14 -3
  250. package/src/agGrid/Adaptable.js +129 -30
  251. package/src/agGrid/BadgeRenderer.js +10 -2
  252. package/src/agGrid/CheckboxRenderer.d.ts +1 -2
  253. package/src/agGrid/agGridHelper.js +4 -5
  254. package/src/agGrid/agGridMenuHelper.js +4 -0
  255. package/src/agGrid/attachAddaptableColumnTypes.d.ts +11 -11
  256. package/src/agGrid/editors/AdaptableDateEditor/index.js +2 -0
  257. package/src/agGrid/editors/AdaptableNumberEditor/index.js +2 -2
  258. package/src/components/AdaptableFormComponent/AdaptableFormComponent.js +6 -3
  259. package/src/components/AdaptableIconComponent/index.js +6 -3
  260. package/src/components/ExpressionEditor/BaseEditorInput.js +2 -0
  261. package/src/components/ExpressionEditor/index.js +1 -1
  262. package/src/components/IconSelector/IconSelector.d.ts +2 -0
  263. package/src/components/IconSelector/IconSelector.js +21 -5
  264. package/src/components/Input/NumberInput.d.ts +10 -0
  265. package/src/components/Input/NumberInput.js +46 -0
  266. package/src/metamodel/adaptable.metamodel.d.ts +230 -145
  267. package/src/metamodel/adaptable.metamodel.js +1 -1
  268. package/src/types.d.ts +13 -8
  269. package/version.d.ts +1 -1
  270. package/version.js +1 -1
  271. package/src/AdaptableOptions/GeneralOptions.d.ts +0 -159
  272. package/src/Api/Events/SearchChanged.d.ts +0 -12
  273. package/src/Api/Implementation/ActionApiImpl.d.ts +0 -14
  274. /package/src/AdaptableOptions/{ActionOptions.js → ActionColumnOptions.js} +0 -0
  275. /package/src/AdaptableOptions/{GeneralOptions.js → ActionRowOptions.js} +0 -0
  276. /package/src/{Api/ActionApi.js → AdaptableOptions/CalendarOptions.js} +0 -0
  277. /package/src/{Api/Events/SearchChanged.js → AdaptableOptions/CellSummaryOptions.js} +0 -0
  278. /package/src/{Api/QueryLanguageApi.js → AdaptableOptions/CustomSortOptions.js} +0 -0
@@ -78,23 +78,4 @@ export interface ThemeApi {
78
78
  * Get the name of the current AG Grid theme
79
79
  */
80
80
  getAgGridCurrentThemeName(): string;
81
- /**
82
- * TO BE REMOVED
83
- */
84
- /**
85
- * @deprecated use `getSystemThemes()` instead
86
- */
87
- getAllSystemTheme(): AdaptableTheme[];
88
- /**
89
- * @deprecated use `getUserThemes()` instead
90
- */
91
- getAllUserTheme(): AdaptableTheme[];
92
- /**
93
- * @deprecated use `getThemes()` instead
94
- */
95
- getAllTheme(): AdaptableTheme[];
96
- /**
97
- * @deprecated use `openThemeSettingsPanel()` instead
98
- */
99
- showThemePopup(): void;
100
81
  }
@@ -4,6 +4,7 @@ import { ColumnMenuContext, ContextMenuContext, UserMenuItem } from '../Predefin
4
4
  import { BulkUpdatePermittedValues, CustomSortPermittedValues, EditLookUpPermittedValues, FilterPermittedValues, PermittedValues } from '../AdaptableOptions/UserInterfaceOptions';
5
5
  import { GridCell } from '../PredefinedConfig/Selection/GridCell';
6
6
  import { AdaptableObjectTag } from '../PredefinedConfig/Common/AdaptableObject';
7
+ import { AdaptableIcon } from '../types';
7
8
  /**
8
9
  * Functions relating to User Interface section of Adaptable State
9
10
  */
@@ -75,14 +76,8 @@ export interface UserInterfaceApi {
75
76
  */
76
77
  getAdaptableObjectTags(): AdaptableObjectTag[] | undefined;
77
78
  /**
78
- * TO BE REMOVED
79
+ * Returns AdapTable Icon with given name
80
+ * @param name name of Icon
79
81
  */
80
- /**
81
- * @deprecated use `getPermittedValuesItems()` instead
82
- */
83
- getAllPermittedValuesItems(): PermittedValues[];
84
- /**
85
- * @deprecated use `getEditLookUpItems()` instead
86
- */
87
- getAllEditLookUpItems(): EditLookUpPermittedValues[];
82
+ getCustomIconDefinition(name: string): AdaptableIcon | undefined;
88
83
  }
@@ -37,7 +37,7 @@ export interface AlertDefinition extends SuspendableObject {
37
37
  */
38
38
  MessageType: AdaptableMessageType;
39
39
  /**
40
- * Title of dipslayed Alert Message
40
+ * Title of displayed Alert Message
41
41
  */
42
42
  MessageHeader?: string;
43
43
  /**
@@ -59,6 +59,9 @@ export interface AlertDefinition extends SuspendableObject {
59
59
  export declare type AlertButtonForm = Omit<AdaptableForm<AlertFormContext>, 'title' | 'buttons' | 'description'> & {
60
60
  Buttons?: AlertButton<AlertFormContext>[];
61
61
  };
62
+ /**
63
+ * Predicate used when creating a Predicate-based Rule for an Alert
64
+ */
62
65
  export interface AlertDefinitionPredicate extends AdaptableColumnPredicate {
63
66
  PredicateId: TypeHint<string, SystemAlertPredicateId>;
64
67
  }
@@ -19,7 +19,7 @@ export interface BaseFormatterOptions {
19
19
  */
20
20
  export interface NumberFormatterOptions extends BaseFormatterOptions {
21
21
  /**
22
- * Number of digits to show in fractions
22
+ * Number of digits to show in Fractions (up to 20)
23
23
  */
24
24
  FractionDigits?: number;
25
25
  /**
@@ -27,11 +27,11 @@ export interface NumberFormatterOptions extends BaseFormatterOptions {
27
27
  */
28
28
  FractionSeparator?: string;
29
29
  /**
30
- * Number of digits to show for integers
30
+ * Number of digits to show for Integers (up to 20)
31
31
  */
32
32
  IntegerDigits?: number;
33
33
  /**
34
- * Separator to use in integers
34
+ * Separator to use in Integers
35
35
  */
36
36
  IntegerSeparator?: string;
37
37
  /**
@@ -1,4 +1,5 @@
1
1
  import * as React from 'react';
2
+ import { TypeHint } from './Types';
2
3
  /**
3
4
  * Defines an icon to be used in AdapTable (e.g. in Dashboard Header, Buttons, Menu, etc.)
4
5
  */
@@ -9,8 +10,10 @@ export declare type AdaptableIcon = AdaptableInternalIcon | AdaptableExternalIco
9
10
  export interface AdaptableInternalIcon extends AdaptableBaseIcon {
10
11
  /**
11
12
  * The name of the icon to use (referencing the AdapTable Icon Library)
13
+ *
14
+ * The icon can be a adaptable icon or a custom one defined in `interfaceOptions.customIcons`
12
15
  */
13
- name: AdaptableInternalIconName;
16
+ name: TypeHint<string, AdaptableInternalIconName>;
14
17
  /**
15
18
  * The size (in pixels) of the SVG icon (defaults to `17px`)
16
19
  *
@@ -12,4 +12,7 @@ export interface WeightedAverageAggregation {
12
12
  */
13
13
  weightedColumnId: string;
14
14
  }
15
+ /**
16
+ * Defines which Columns in a Layout display Aggregated values when Row-Grouped
17
+ */
15
18
  export declare type AggregationColumns = Record<string, string | true | WeightedAverageAggregation>;
@@ -7,4 +7,12 @@ export interface BaseContext {
7
7
  * The Adaptable Api - included as a convenience
8
8
  */
9
9
  adaptableApi: AdaptableApi;
10
+ /**
11
+ * Name of Current User
12
+ */
13
+ userName: string;
14
+ /**
15
+ * Id of current AdapTable instance
16
+ */
17
+ adaptableId: string;
10
18
  }
@@ -1,4 +1,13 @@
1
+ /**
2
+ * Defines where a Data Change should be monitored
3
+ */
1
4
  export interface DataChangedScope {
5
+ /**
6
+ * Scopes every Column in the Row
7
+ */
2
8
  wholeRow: boolean;
9
+ /**
10
+ * Scopes a group of Column Ids
11
+ */
3
12
  columnIds: Set<string>;
4
13
  }
@@ -13,6 +13,6 @@ export interface Entitlement {
13
13
  accessLevel: AccessLevel;
14
14
  }
15
15
  /**
16
- * Defines Access Level for an Entitlement - can be `ReadOnly`, `Hidden` or `Full`
16
+ * Defines Access Level for an Entitlement: `ReadOnly`, `Hidden` or `Full`
17
17
  */
18
18
  export declare type AccessLevel = 'ReadOnly' | 'Hidden' | 'Full';
@@ -68,12 +68,6 @@ export interface Layout extends AdaptableObject {
68
68
  PinnedColumnsMap?: {
69
69
  [columnId: string]: 'left' | 'right';
70
70
  };
71
- /**
72
- * Whether Layout should automatically save or not - overrides `autoSaveLayouts` property in LayoutOptions
73
- *
74
- * @deprecated - use `autoSaveLayouts` property in LayoutOptions instead, will be removed in next major version
75
- */
76
- AutoSave?: boolean;
77
71
  /**
78
72
  * Set of custom header names for some (or all columns)
79
73
  */
@@ -87,7 +87,7 @@ export interface SystemState extends InternalState, IPushPullState, Glue42State,
87
87
  previousGroupedColumns: Record<string, Record<string, number>>;
88
88
  };
89
89
  /**
90
- * Equivalent of `GeneralOptions.disableDeleteConfirmation`
90
+ * Equivalent of `UserInterfaceOptions.disableDeleteConfirmation`
91
91
  * It will suppress the deletion confirmation dialog in the current session.
92
92
  */
93
93
  DisableDeleteConfirmation: boolean;
@@ -78,7 +78,7 @@ export interface AdaptableSharedEntity extends AdaptableObject {
78
78
  Type: SharedEntityType;
79
79
  }
80
80
  /**
81
- *
81
+ * Defines a Custom object that will be shared using Team Sharing
82
82
  */
83
83
  export interface CustomSharedEntity<T = any> {
84
84
  /**
@@ -38,5 +38,8 @@ export interface AdaptableTheme extends AdaptableObject {
38
38
  * Variables to be applied at runtime
39
39
  */
40
40
  CSSVariables?: Record<string, string>;
41
+ /**
42
+ * Whether theme is based on system Light or Dark Themes
43
+ */
41
44
  Variant?: 'light' | 'dark';
42
45
  }
@@ -244,9 +244,9 @@ class AdaptableModuleBase {
244
244
  }
245
245
  getFriendlyName(module, friendlyName) {
246
246
  let returnValue = friendlyName;
247
- let generalOptions = this.api.optionsApi.getGeneralOptions();
248
- if (generalOptions && ArrayExtensions_1.default.IsNotNullOrEmpty(generalOptions.alternativeModuleNames)) {
249
- generalOptions.alternativeModuleNames.forEach((af) => {
247
+ let userInterfaceOptions = this.api.optionsApi.getUserInterfaceOptions();
248
+ if (userInterfaceOptions && ArrayExtensions_1.default.IsNotNullOrEmpty(userInterfaceOptions.alternativeModuleNames)) {
249
+ userInterfaceOptions.alternativeModuleNames.forEach((af) => {
250
250
  if (module == af.adaptableModule) {
251
251
  returnValue = af.newName;
252
252
  }
@@ -58,9 +58,9 @@ class AlertModule extends AdaptableModuleBase_1.AdaptableModuleBase {
58
58
  return this.api.alertApi.getAlertDefinitions(config);
59
59
  }
60
60
  getExplicitlyReferencedColumnIds(alertDefinition) {
61
- const queryExpression = this.api.queryLanguageApi.getAdaptableQueryExpression(alertDefinition.Rule);
61
+ const queryExpression = this.api.expressionApi.getAdaptableQueryExpression(alertDefinition.Rule);
62
62
  if (queryExpression) {
63
- return this.api.queryLanguageApi.getColumnsFromExpression(queryExpression);
63
+ return this.api.expressionApi.getColumnsFromExpression(queryExpression);
64
64
  }
65
65
  else if (this.api.scopeApi.scopeHasColumns(alertDefinition.Scope)) {
66
66
  return this.api.scopeApi
@@ -70,7 +70,7 @@ class AlertModule extends AdaptableModuleBase_1.AdaptableModuleBase {
70
70
  return [];
71
71
  }
72
72
  getReferencedNamedQueryNames(alertDefinition) {
73
- const queryExpression = this.api.queryLanguageApi.getAdaptableQueryExpression(alertDefinition.Rule);
73
+ const queryExpression = this.api.expressionApi.getAdaptableQueryExpression(alertDefinition.Rule);
74
74
  if (!queryExpression) {
75
75
  return [];
76
76
  }
@@ -46,11 +46,11 @@ class CalculatedColumnModule extends AdaptableModuleBase_1.AdaptableModuleBase {
46
46
  }
47
47
  getExplicitlyReferencedColumnIds(calculatedColumn) {
48
48
  var _a;
49
- return ((_a = this.api.queryLanguageApi.getColumnsFromExpression(this.api.queryLanguageApi.getAdaptableQueryExpression(calculatedColumn.Query))) !== null && _a !== void 0 ? _a : []);
49
+ return ((_a = this.api.expressionApi.getColumnsFromExpression(this.api.expressionApi.getAdaptableQueryExpression(calculatedColumn.Query))) !== null && _a !== void 0 ? _a : []);
50
50
  }
51
51
  getReferencedNamedQueryNames(calculatedColumn) {
52
52
  var _a;
53
- return ((_a = this.api.queryApi.internalApi.getReferencedNamedQueryNames(this.api.queryLanguageApi.getAdaptableQueryExpression(calculatedColumn.Query))) !== null && _a !== void 0 ? _a : []);
53
+ return ((_a = this.api.queryApi.internalApi.getReferencedNamedQueryNames(this.api.expressionApi.getAdaptableQueryExpression(calculatedColumn.Query))) !== null && _a !== void 0 ? _a : []);
54
54
  }
55
55
  isCalculatedColumn(column) {
56
56
  return (column &&
@@ -105,6 +105,8 @@ class CellSummaryModule extends AdaptableModuleBase_1.AdaptableModuleBase {
105
105
  numericValues,
106
106
  numericColumns,
107
107
  adaptableApi: this.api,
108
+ userName: this.api.optionsApi.getUserName(),
109
+ adaptableId: this.api.optionsApi.getAdaptableId(),
108
110
  };
109
111
  selectedCellSummary[operation.operationName] = operation.operationFunction(cellSummaryOperationContext);
110
112
  }
@@ -2,7 +2,7 @@ import { AdaptableModuleBase } from './AdaptableModuleBase';
2
2
  import { AdaptableModuleView, AdaptableObjectView, IModule } from './Interface/IModule';
3
3
  import { AdaptableApi } from '../Api/AdaptableApi';
4
4
  import { AdaptableObject } from '../PredefinedConfig/Common/AdaptableObject';
5
- import { DataSet } from '../AdaptableOptions/GeneralOptions';
5
+ import { DataSet } from '../AdaptableOptions/DataSetOptions';
6
6
  export declare class DataSetModule extends AdaptableModuleBase implements IModule {
7
7
  constructor(api: AdaptableApi);
8
8
  handleAdaptableReady(): void;
@@ -21,7 +21,7 @@ class DataSetModule extends AdaptableModuleBase_1.AdaptableModuleBase {
21
21
  }
22
22
  getModuleAdaptableObjects() {
23
23
  var _a, _b;
24
- return (_b = (_a = this.api.optionsApi.getGeneralOptions()) === null || _a === void 0 ? void 0 : _a.dataSets) !== null && _b !== void 0 ? _b : [];
24
+ return (_b = (_a = this.api.optionsApi.getDataSetOptions()) === null || _a === void 0 ? void 0 : _a.dataSets) !== null && _b !== void 0 ? _b : [];
25
25
  }
26
26
  hasNamedQueryReferences() {
27
27
  return false;
@@ -178,6 +178,8 @@ class ExportModule extends AdaptableModuleBase_1.AdaptableModuleBase {
178
178
  report: report,
179
179
  reportData,
180
180
  adaptableApi: this.api,
181
+ userName: this.api.optionsApi.getUserName(),
182
+ adaptableId: this.api.optionsApi.getAdaptableId(),
181
183
  };
182
184
  customDestination.onExport(reportContext);
183
185
  }
@@ -215,6 +217,8 @@ class ExportModule extends AdaptableModuleBase_1.AdaptableModuleBase {
215
217
  return preProcessExportFn({
216
218
  report,
217
219
  adaptableApi: this.api,
220
+ userName: this.api.optionsApi.getUserName(),
221
+ adaptableId: this.api.optionsApi.getAdaptableId(),
218
222
  getReportColumns: (includePrimaryKey) => {
219
223
  return this.api.internalApi
220
224
  .getReportService()
@@ -59,9 +59,9 @@ class FlashingCellModule extends AdaptableModuleBase_1.AdaptableModuleBase {
59
59
  return this.api.flashingCellApi.getFlashingCellDefinitions(config);
60
60
  }
61
61
  getExplicitlyReferencedColumnIds(alertDefinition) {
62
- const queryExpression = this.api.queryLanguageApi.getAdaptableQueryExpression(alertDefinition.Rule);
62
+ const queryExpression = this.api.expressionApi.getAdaptableQueryExpression(alertDefinition.Rule);
63
63
  if (queryExpression) {
64
- return this.api.queryLanguageApi.getColumnsFromExpression(queryExpression);
64
+ return this.api.expressionApi.getColumnsFromExpression(queryExpression);
65
65
  }
66
66
  else if (this.api.scopeApi.scopeHasColumns(alertDefinition.Scope)) {
67
67
  return this.api.scopeApi
@@ -71,7 +71,7 @@ class FlashingCellModule extends AdaptableModuleBase_1.AdaptableModuleBase {
71
71
  return [];
72
72
  }
73
73
  getReferencedNamedQueryNames(alertDefinition) {
74
- const queryExpression = this.api.queryLanguageApi.getAdaptableQueryExpression(alertDefinition.Rule);
74
+ const queryExpression = this.api.expressionApi.getAdaptableQueryExpression(alertDefinition.Rule);
75
75
  if (!queryExpression) {
76
76
  return [];
77
77
  }
@@ -198,7 +198,7 @@ class FlashingCellModule extends AdaptableModuleBase_1.AdaptableModuleBase {
198
198
  if (!rowNode) {
199
199
  rowNode = this.api.gridApi.getRowNodeForPrimaryKey(dataChangedEvent.primaryKeyValue);
200
200
  }
201
- const isValidExpression = this.api.queryLanguageApi.isValidBooleanExpression(expression, this.moduleInfo.ModuleName, `Invalid Alert boolean expression '${expression}'`);
201
+ const isValidExpression = this.api.expressionApi.isValidBooleanExpression(expression, this.moduleInfo.ModuleName, `Invalid Alert boolean expression '${expression}'`);
202
202
  const isSatisfiedExpression = isValidExpression &&
203
203
  this.api.internalApi
204
204
  .getQueryLanguageService()
@@ -25,9 +25,9 @@ class FormatColumnModule extends AdaptableModuleBase_1.AdaptableModuleBase {
25
25
  return this.api.formatColumnApi.getFormatColumns(config);
26
26
  }
27
27
  getExplicitlyReferencedColumnIds(formatColumn) {
28
- const queryExpression = formatColumn.Rule && this.api.queryLanguageApi.getAdaptableQueryExpression(formatColumn.Rule);
28
+ const queryExpression = formatColumn.Rule && this.api.expressionApi.getAdaptableQueryExpression(formatColumn.Rule);
29
29
  if (queryExpression) {
30
- return this.api.queryLanguageApi.getColumnsFromExpression(queryExpression);
30
+ return this.api.expressionApi.getColumnsFromExpression(queryExpression);
31
31
  }
32
32
  else if (this.api.scopeApi.scopeHasColumns(formatColumn.Scope)) {
33
33
  return this.api.scopeApi
@@ -37,7 +37,7 @@ class FormatColumnModule extends AdaptableModuleBase_1.AdaptableModuleBase {
37
37
  return [];
38
38
  }
39
39
  getReferencedNamedQueryNames(formatColumn) {
40
- const queryExpression = formatColumn.Rule && this.api.queryLanguageApi.getAdaptableQueryExpression(formatColumn.Rule);
40
+ const queryExpression = formatColumn.Rule && this.api.expressionApi.getAdaptableQueryExpression(formatColumn.Rule);
41
41
  if (!queryExpression) {
42
42
  return [];
43
43
  }
@@ -23,7 +23,7 @@ class QueryModule extends AdaptableModuleBase_1.AdaptableModuleBase {
23
23
  };
24
24
  }
25
25
  getExplicitlyReferencedColumnIds(namedQuery) {
26
- return this.api.queryLanguageApi.getColumnsFromExpression(namedQuery.BooleanExpression);
26
+ return this.api.expressionApi.getColumnsFromExpression(namedQuery.BooleanExpression);
27
27
  }
28
28
  getReferencedNamedQueryNames(namedQuery) {
29
29
  return this.api.queryApi.internalApi.getReferencedNamedQueryNames(namedQuery.BooleanExpression);
@@ -127,6 +127,8 @@ class SmartEditModule extends AdaptableModuleBase_1.AdaptableModuleBase {
127
127
  smartEditValue: smartEditValue,
128
128
  currentCell: selectedCell,
129
129
  adaptableApi: this.api,
130
+ userName: this.api.optionsApi.getUserName(),
131
+ adaptableId: this.api.optionsApi.getAdaptableId(),
130
132
  };
131
133
  newValue = smartEditOperation.operation(context);
132
134
  }
@@ -26,6 +26,7 @@ exports.DefaultAdaptableOptions = {
26
26
  dataChangeDetectionPolicy: 'rawValue',
27
27
  actionHandlers: undefined,
28
28
  alertMessageText: undefined,
29
+ showMissingPrimaryKeyAlert: false,
29
30
  },
30
31
  notificationsOptions: {
31
32
  maxNotifications: 3,
@@ -56,9 +57,8 @@ exports.DefaultAdaptableOptions = {
56
57
  adaptableQLOptions: {
57
58
  caseSensitiveTextComparisons: false,
58
59
  evaluateAdaptableQLExternally: undefined,
59
- customPredicateDefs: [],
60
- displayColumnFriendlyNamesForExpressions: true,
61
60
  expressionOptions: {
61
+ displayColumnFriendlyNamesForExpressions: true,
62
62
  systemBooleanFunctions: undefined,
63
63
  systemScalarFunctions: undefined,
64
64
  systemObservableFunctions: undefined,
@@ -69,6 +69,7 @@ exports.DefaultAdaptableOptions = {
69
69
  maxTimeframeSize: 28800000, // 8 hours
70
70
  },
71
71
  predicateOptions: {
72
+ customPredicateDefs: [],
72
73
  systemFilterPredicates: AdaptablePredicate_1.SystemFilterPredicateIds,
73
74
  systemAlertPredicates: AdaptablePredicate_1.SystemAlertPredicateIds,
74
75
  systemFormatColumnPredicates: AdaptablePredicate_1.SystemFormatColumnPredicateIds,
@@ -76,6 +77,8 @@ exports.DefaultAdaptableOptions = {
76
77
  systemBadgeStylePredicates: AdaptablePredicate_1.SystemBadgeStylePredicateIds,
77
78
  },
78
79
  },
80
+ calendarOptions: { holidays: undefined },
81
+ cellSummaryOptions: { cellSummaryOperations: undefined },
79
82
  containerOptions: {
80
83
  adaptableContainer: 'adaptable',
81
84
  agGridContainer: 'grid',
@@ -89,7 +92,6 @@ exports.DefaultAdaptableOptions = {
89
92
  columnTypes: GeneralConstants_1.EMPTY_ARRAY,
90
93
  showMissingColumnsWarning: true,
91
94
  autoOrderGroupedColumns: true,
92
- hideColumnWhenGrouped: false,
93
95
  },
94
96
  dashboardOptions: {
95
97
  canFloat: true,
@@ -98,22 +100,24 @@ exports.DefaultAdaptableOptions = {
98
100
  customToolbars: undefined,
99
101
  buttonsLocation: 'right',
100
102
  },
101
- actionOptions: {
103
+ actionColumnOptions: {
102
104
  actionColumns: undefined,
105
+ },
106
+ actionRowOptions: {
103
107
  actionRowButtons: undefined,
108
+ autoHandle: true,
109
+ disableInlineEditing: false,
104
110
  actionRowButtonOptions: {
105
111
  customConfiguration: undefined,
106
112
  position: 'pinnedLeft',
107
- autoHandle: true,
108
113
  setPrimaryKeyValue: undefined,
109
- disableInlineEditing: false,
110
- actionRowFormOptions: {
111
- formTitle: undefined,
112
- formDescription: undefined,
113
- formFieldLabel: undefined,
114
- formButtons: undefined,
115
- onFormSubmit: undefined,
116
- },
114
+ },
115
+ actionRowFormOptions: {
116
+ formTitle: undefined,
117
+ formDescription: undefined,
118
+ formFieldLabel: undefined,
119
+ formButtons: undefined,
120
+ onFormSubmit: undefined,
117
121
  },
118
122
  },
119
123
  editOptions: {
@@ -130,7 +134,7 @@ exports.DefaultAdaptableOptions = {
130
134
  exportFormatType: 'rawValue',
131
135
  exportDateFormat: undefined,
132
136
  customDestinations: undefined,
133
- serverReports: undefined,
137
+ externalReports: undefined,
134
138
  appendFileTimestamp: false,
135
139
  systemExportDestinations: [
136
140
  Enums_1.ExportDestination.Excel,
@@ -147,17 +151,12 @@ exports.DefaultAdaptableOptions = {
147
151
  GeneralConstants.SELECTED_ROWS_REPORT,
148
152
  ],
149
153
  },
150
- generalOptions: {
151
- showMissingPrimaryKeyAlert: false,
152
- dataSets: GeneralConstants_1.EMPTY_ARRAY,
154
+ customSortOptions: { customSortComparers: undefined },
155
+ dataSetOptions: { dataSets: GeneralConstants_1.EMPTY_ARRAY },
156
+ groupingOptions: {
153
157
  showGroupingTotalsAsHeader: false,
154
- alternativeModuleNames: undefined,
155
- cellSummaryOperations: undefined,
156
- customSortComparers: undefined,
157
- englishVariant: 'GB',
158
158
  unbalancedGroupsKey: undefined,
159
159
  restoreUngroupedColumns: false,
160
- disableDeleteConfirmation: false,
161
160
  },
162
161
  layoutOptions: {
163
162
  displayRowGroups: 'closed',
@@ -245,8 +244,11 @@ exports.DefaultAdaptableOptions = {
245
244
  suppressOverrideConfigWarning: false,
246
245
  },
247
246
  userInterfaceOptions: {
247
+ alternativeModuleNames: undefined,
248
248
  applicationIcon: undefined,
249
249
  useCustomMacLikeScrollbars: false,
250
+ englishVariant: 'GB',
251
+ disableDeleteConfirmation: false,
250
252
  dateInputOptions: {
251
253
  useNativeInput: false,
252
254
  dateFormat: 'yyyy-MM-dd',
@@ -41,6 +41,8 @@ const handleWhereFunction = (args, context) => {
41
41
  // whereClauseResult
42
42
  return (0, evaluator_1.evaluateNode)(whereClauseExpressionNode, {
43
43
  node: rowNode,
44
+ userName: context.adaptableApi.optionsApi.getUserName(),
45
+ adaptableId: context.adaptableApi.optionsApi.getAdaptableId(),
44
46
  adaptableApi: context.adaptableApi,
45
47
  functions: context.whereClauseFunctions,
46
48
  evaluateCustomQueryVariable: context.adaptableApi.internalApi.getQueryLanguageService().evaluateCustomQueryVariable,
@@ -54,6 +56,8 @@ const evaluateExpressionNode = (expressionNode, context, filterFn = context.filt
54
56
  return (0, evaluator_1.evaluateNode)(expressionNode, {
55
57
  node: context.node,
56
58
  adaptableApi: context.adaptableApi,
59
+ userName: context.adaptableApi.optionsApi.getUserName(),
60
+ adaptableId: context.adaptableApi.optionsApi.getAdaptableId(),
57
61
  functions: context.functions,
58
62
  filterFn,
59
63
  evaluateCustomQueryVariable: context.adaptableApi.internalApi.getQueryLanguageService().evaluateCustomQueryVariable,
@@ -12,7 +12,11 @@ function assignAdaptableOptions(adaptableOptions) {
12
12
  returnedAdaptableOptions.adaptableStateKey =
13
13
  (_a = returnedAdaptableOptions.adaptableStateKey) !== null && _a !== void 0 ? _a : returnedAdaptableOptions.adaptableId;
14
14
  returnedAdaptableOptions.adaptableQLOptions = Object.assign({}, DefaultAdaptableOptions_1.DefaultAdaptableOptions.adaptableQLOptions, adaptableOptions.adaptableQLOptions);
15
+ returnedAdaptableOptions.calendarOptions = Object.assign({}, DefaultAdaptableOptions_1.DefaultAdaptableOptions.calendarOptions, adaptableOptions.calendarOptions);
15
16
  returnedAdaptableOptions.columnOptions = Object.assign({}, DefaultAdaptableOptions_1.DefaultAdaptableOptions.columnOptions, adaptableOptions.columnOptions);
17
+ returnedAdaptableOptions.customSortOptions = Object.assign({}, DefaultAdaptableOptions_1.DefaultAdaptableOptions.customSortOptions, adaptableOptions.customSortOptions);
18
+ returnedAdaptableOptions.dataSetOptions = Object.assign({}, DefaultAdaptableOptions_1.DefaultAdaptableOptions.dataSetOptions, adaptableOptions.dataSetOptions);
19
+ returnedAdaptableOptions.cellSummaryOptions = Object.assign({}, DefaultAdaptableOptions_1.DefaultAdaptableOptions.cellSummaryOptions, adaptableOptions.cellSummaryOptions);
16
20
  returnedAdaptableOptions.adaptableQLOptions.expressionOptions = Object.assign({}, DefaultAdaptableOptions_1.DefaultAdaptableOptions.adaptableQLOptions.expressionOptions, returnedAdaptableOptions.adaptableQLOptions.expressionOptions);
17
21
  returnedAdaptableOptions.adaptableQLOptions.predicateOptions = Object.assign({}, DefaultAdaptableOptions_1.DefaultAdaptableOptions.adaptableQLOptions.predicateOptions, returnedAdaptableOptions.adaptableQLOptions.predicateOptions);
18
22
  returnedAdaptableOptions.layoutOptions = Object.assign({}, DefaultAdaptableOptions_1.DefaultAdaptableOptions.layoutOptions, adaptableOptions.layoutOptions);
@@ -22,12 +26,14 @@ function assignAdaptableOptions(adaptableOptions) {
22
26
  returnedAdaptableOptions.entitlementOptions = Object.assign({}, DefaultAdaptableOptions_1.DefaultAdaptableOptions.entitlementOptions, adaptableOptions.entitlementOptions);
23
27
  returnedAdaptableOptions.dashboardOptions = Object.assign({}, DefaultAdaptableOptions_1.DefaultAdaptableOptions.dashboardOptions, adaptableOptions.dashboardOptions);
24
28
  returnedAdaptableOptions.editOptions = Object.assign({}, DefaultAdaptableOptions_1.DefaultAdaptableOptions.editOptions, adaptableOptions.editOptions);
25
- returnedAdaptableOptions.actionOptions = Object.assign({}, DefaultAdaptableOptions_1.DefaultAdaptableOptions.actionOptions, adaptableOptions.actionOptions);
26
- returnedAdaptableOptions.actionOptions.actionRowButtonOptions = Object.assign({}, DefaultAdaptableOptions_1.DefaultAdaptableOptions.actionOptions.actionRowButtonOptions, returnedAdaptableOptions.actionOptions.actionRowButtonOptions);
27
- returnedAdaptableOptions.actionOptions.actionRowButtonOptions.actionRowFormOptions =
28
- Object.assign({}, DefaultAdaptableOptions_1.DefaultAdaptableOptions.actionOptions.actionRowButtonOptions.actionRowFormOptions, returnedAdaptableOptions.actionOptions.actionRowButtonOptions.actionRowFormOptions);
29
+ returnedAdaptableOptions.actionColumnOptions = Object.assign({}, DefaultAdaptableOptions_1.DefaultAdaptableOptions.actionColumnOptions, adaptableOptions.actionColumnOptions);
30
+ // to do
31
+ returnedAdaptableOptions.actionRowOptions = Object.assign({}, DefaultAdaptableOptions_1.DefaultAdaptableOptions.actionRowOptions, adaptableOptions.actionRowOptions);
32
+ returnedAdaptableOptions.actionRowOptions.actionRowButtonOptions = Object.assign({}, DefaultAdaptableOptions_1.DefaultAdaptableOptions.actionRowOptions.actionRowButtonOptions, returnedAdaptableOptions.actionRowOptions.actionRowButtonOptions);
33
+ returnedAdaptableOptions.actionRowOptions.actionRowFormOptions =
34
+ Object.assign({}, DefaultAdaptableOptions_1.DefaultAdaptableOptions.actionRowOptions.actionRowFormOptions, returnedAdaptableOptions.actionRowOptions.actionRowFormOptions);
29
35
  returnedAdaptableOptions.containerOptions = Object.assign({}, DefaultAdaptableOptions_1.DefaultAdaptableOptions.containerOptions, adaptableOptions.containerOptions);
30
- returnedAdaptableOptions.generalOptions = Object.assign({}, DefaultAdaptableOptions_1.DefaultAdaptableOptions.generalOptions, adaptableOptions.generalOptions);
36
+ returnedAdaptableOptions.groupingOptions = Object.assign({}, DefaultAdaptableOptions_1.DefaultAdaptableOptions.groupingOptions, adaptableOptions.groupingOptions);
31
37
  returnedAdaptableOptions.searchOptions = Object.assign({}, DefaultAdaptableOptions_1.DefaultAdaptableOptions.searchOptions, adaptableOptions.searchOptions);
32
38
  returnedAdaptableOptions.filterOptions = Object.assign({}, DefaultAdaptableOptions_1.DefaultAdaptableOptions.filterOptions, adaptableOptions.filterOptions);
33
39
  returnedAdaptableOptions.userInterfaceOptions = Object.assign({}, DefaultAdaptableOptions_1.DefaultAdaptableOptions.userInterfaceOptions, adaptableOptions.userInterfaceOptions);
@@ -68,7 +74,7 @@ function checkValidPrimaryKey(adaptable) {
68
74
  const pkColumn = adaptable.api.columnApi.getColumnWithColumnId(adaptable.adaptableOptions.primaryKey);
69
75
  if (pkColumn == undefined && !adaptable.adaptableOptions.autogeneratePrimaryKey) {
70
76
  const errorMessage = `The Primary Key Column '${adaptable.adaptableOptions.primaryKey}' does not exist. This will affect many functions in Adaptable.`;
71
- if (adaptable.adaptableOptions.generalOptions.showMissingPrimaryKeyAlert == true) {
77
+ if (adaptable.adaptableOptions.alertOptions.showMissingPrimaryKeyAlert == true) {
72
78
  // show an alert if that is the option
73
79
  adaptable.api.alertApi.showAlertError('No Primary Key', errorMessage);
74
80
  }
@@ -36,6 +36,13 @@ function NumberFormatter(input, options = {}) {
36
36
  n *= multiplier;
37
37
  n = parseFloat(n.toFixed(12));
38
38
  }
39
+ // Set Integer and Fraction Digits to a max of 20
40
+ if (options.IntegerDigits > 20) {
41
+ options.IntegerDigits = 20;
42
+ }
43
+ if (options.FractionDigits > 20) {
44
+ options.FractionDigits = 20;
45
+ }
39
46
  if (options.Parentheses === true && preparedInput < 0) {
40
47
  n *= -1;
41
48
  n = parseFloat(n.toFixed(12));
@@ -39,7 +39,7 @@ export declare function CreateEmptyAlertDefinition(): AlertDefinition;
39
39
  export declare function CreateEmptyFlashingCellDefinition(): FlashingCellDefinition;
40
40
  export declare function CreateInternalAlertDefinitionForMessages(messageType: AdaptableMessageType, alertProperties?: AlertProperties): AlertDefinition;
41
41
  export declare function CreateEmptyReport(): Report;
42
- export declare function CreateServerReport(reportName: string): Report;
42
+ export declare function CreateExternalReport(reportName: string): Report;
43
43
  export declare function CreateEmptyBaseSchedule(scheduleType: ScheduleType): BaseSchedule;
44
44
  export declare function CreateEmptyReminderSchedule(): ReminderSchedule;
45
45
  export declare function CreateEmptyReportSchedule(): ReportSchedule;
@@ -85,7 +85,7 @@ export declare const ObjectFactory: {
85
85
  CreateEmptyAlertDefinition: typeof CreateEmptyAlertDefinition;
86
86
  CreateEmptyFlashingCellDefinition: typeof CreateEmptyFlashingCellDefinition;
87
87
  CreateInternalAlertDefinitionForMessages: typeof CreateInternalAlertDefinitionForMessages;
88
- CreateServerReport: typeof CreateServerReport;
88
+ CreateExternalReport: typeof CreateExternalReport;
89
89
  CreateEmptyReport: typeof CreateEmptyReport;
90
90
  CreateEmptyBaseSchedule: typeof CreateEmptyBaseSchedule;
91
91
  CreateEmptyReminderSchedule: typeof CreateEmptyReminderSchedule;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ObjectFactory = exports.CreateToastOptions = exports.CreateEmptyTheme = exports.CreateCustomDisplayFormatterContext = exports.CreateEmptyChartDefinition = exports.CreateDefaultStyledColumnBadge = exports.CreateEmptyStyledColumn = exports.CreateColumnFilter = exports.CreateEmptyCellSummmary = exports.CreateSystemStatusMessageInfo = exports.CreateEmptyStyle = exports.CreateEmptyLayout = exports.CreateEmptyFreeTextColumn = exports.CreateEmptyFormatColumn = exports.CreateEmptyShortcut = exports.CreateEmptySchedule = exports.CreateReportSchedule = exports.CreateGlue42Schedule = exports.CreateIPushPullSchedule = exports.CreateEmptyOpenFinSchedule = exports.CreateEmptyGlue42Schedule = exports.CreateEmptyIPushPullSchedule = exports.CreateEmptyOpenFinReport = exports.CreateEmptyGlue42Report = exports.CreateEmptyIPushPullReport = exports.CreateEmptyReportSchedule = exports.CreateEmptyReminderSchedule = exports.CreateEmptyBaseSchedule = exports.CreateServerReport = exports.CreateEmptyReport = exports.CreateInternalAlertDefinitionForMessages = exports.CreateEmptyFlashingCellDefinition = exports.CreateEmptyAlertDefinition = exports.CreateRowChangedAlert = exports.CreateCellChangedAlert = exports.CreateGenericAlert = exports.CreateEmptyPlusMinusNudge = exports.CreateEmptyNamedQuery = exports.CreateEmptyCalculatedColumn = exports.CreateEmptyCustomSort = void 0;
3
+ exports.ObjectFactory = exports.CreateToastOptions = exports.CreateEmptyTheme = exports.CreateCustomDisplayFormatterContext = exports.CreateEmptyChartDefinition = exports.CreateDefaultStyledColumnBadge = exports.CreateEmptyStyledColumn = exports.CreateColumnFilter = exports.CreateEmptyCellSummmary = exports.CreateSystemStatusMessageInfo = exports.CreateEmptyStyle = exports.CreateEmptyLayout = exports.CreateEmptyFreeTextColumn = exports.CreateEmptyFormatColumn = exports.CreateEmptyShortcut = exports.CreateEmptySchedule = exports.CreateReportSchedule = exports.CreateGlue42Schedule = exports.CreateIPushPullSchedule = exports.CreateEmptyOpenFinSchedule = exports.CreateEmptyGlue42Schedule = exports.CreateEmptyIPushPullSchedule = exports.CreateEmptyOpenFinReport = exports.CreateEmptyGlue42Report = exports.CreateEmptyIPushPullReport = exports.CreateEmptyReportSchedule = exports.CreateEmptyReminderSchedule = exports.CreateEmptyBaseSchedule = exports.CreateExternalReport = exports.CreateEmptyReport = exports.CreateInternalAlertDefinitionForMessages = exports.CreateEmptyFlashingCellDefinition = exports.CreateEmptyAlertDefinition = exports.CreateRowChangedAlert = exports.CreateCellChangedAlert = exports.CreateGenericAlert = exports.CreateEmptyPlusMinusNudge = exports.CreateEmptyNamedQuery = exports.CreateEmptyCalculatedColumn = exports.CreateEmptyCustomSort = void 0;
4
4
  const Enums_1 = require("../PredefinedConfig/Common/Enums");
5
5
  const GeneralConstants_1 = require("./Constants/GeneralConstants");
6
6
  const Uuid_1 = require("../PredefinedConfig/Uuid");
@@ -133,7 +133,7 @@ function CreateEmptyReport() {
133
133
  };
134
134
  }
135
135
  exports.CreateEmptyReport = CreateEmptyReport;
136
- function CreateServerReport(reportName) {
136
+ function CreateExternalReport(reportName) {
137
137
  return {
138
138
  Uuid: (0, Uuid_1.createUuid)(),
139
139
  Name: reportName,
@@ -143,7 +143,7 @@ function CreateServerReport(reportName) {
143
143
  Query: undefined,
144
144
  };
145
145
  }
146
- exports.CreateServerReport = CreateServerReport;
146
+ exports.CreateExternalReport = CreateExternalReport;
147
147
  function CreateEmptyBaseSchedule(scheduleType) {
148
148
  return {
149
149
  Uuid: (0, Uuid_1.createUuid)(),
@@ -388,6 +388,8 @@ function CreateCustomDisplayFormatterContext(value, node, abColumn, api) {
388
388
  cellValue: value,
389
389
  rowNode: node,
390
390
  adaptableApi: api,
391
+ userName: api.optionsApi.getUserName(),
392
+ adaptableId: api.optionsApi.getAdaptableId(),
391
393
  };
392
394
  }
393
395
  exports.CreateCustomDisplayFormatterContext = CreateCustomDisplayFormatterContext;
@@ -464,7 +466,7 @@ exports.ObjectFactory = {
464
466
  CreateEmptyAlertDefinition,
465
467
  CreateEmptyFlashingCellDefinition,
466
468
  CreateInternalAlertDefinitionForMessages,
467
- CreateServerReport,
469
+ CreateExternalReport,
468
470
  CreateEmptyReport,
469
471
  CreateEmptyBaseSchedule,
470
472
  CreateEmptyReminderSchedule,