@adaptabletools/adaptable-cjs 18.0.0-canary.25 → 18.0.0-canary.27

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 (136) hide show
  1. package/package.json +1 -1
  2. package/src/AdaptableInterfaces/IAdaptable.d.ts +1 -1
  3. package/src/AdaptableOptions/CommentOptions.d.ts +2 -2
  4. package/src/AdaptableOptions/MenuOptions.d.ts +11 -23
  5. package/src/AdaptableOptions/MenuOptions.js +0 -98
  6. package/src/Api/GridApi.d.ts +2 -1
  7. package/src/Api/Implementation/ActionRowApiImpl.js +3 -7
  8. package/src/Api/Implementation/AlertApiImpl.js +5 -10
  9. package/src/Api/Implementation/CalendarApiImpl.js +1 -6
  10. package/src/Api/Implementation/ChartingApiImpl.js +3 -3
  11. package/src/Api/Implementation/ColumnApiImpl.js +6 -6
  12. package/src/Api/Implementation/ColumnFilterApiImpl.js +7 -7
  13. package/src/Api/Implementation/CommentsApiImpl.js +1 -1
  14. package/src/Api/Implementation/ConfigApiImpl.js +11 -17
  15. package/src/Api/Implementation/DashboardApiImpl.js +1 -6
  16. package/src/Api/Implementation/ExportApiImpl.js +5 -10
  17. package/src/Api/Implementation/ExpressionApiImpl.js +8 -13
  18. package/src/Api/Implementation/Fdc3ApiImpl.js +1 -1
  19. package/src/Api/Implementation/FlashingCellApiImpl.js +3 -8
  20. package/src/Api/Implementation/FormatColumnApiImpl.js +4 -4
  21. package/src/Api/Implementation/FreeTextColumnApiImpl.js +1 -1
  22. package/src/Api/Implementation/GridApiImpl.d.ts +2 -1
  23. package/src/Api/Implementation/GridApiImpl.js +11 -8
  24. package/src/Api/Implementation/LayoutApiImpl.d.ts +0 -7
  25. package/src/Api/Implementation/LayoutApiImpl.js +0 -15
  26. package/src/Api/Implementation/PredicateApiImpl.js +2 -2
  27. package/src/Api/Implementation/ScheduleApiImpl.js +6 -6
  28. package/src/Api/Implementation/ScopeApiImpl.js +10 -10
  29. package/src/Api/Implementation/TeamSharingApiImpl.js +3 -15
  30. package/src/Api/Implementation/ThemeApiImpl.js +2 -7
  31. package/src/Api/Implementation/UserInterfaceApiImpl.js +4 -13
  32. package/src/Api/Internal/ActionRowInternalApi.js +7 -45
  33. package/src/Api/Internal/AdaptableInternalApi.js +2 -12
  34. package/src/Api/Internal/AlertInternalApi.js +4 -17
  35. package/src/Api/Internal/CalculatedColumnInternalApi.js +7 -14
  36. package/src/Api/Internal/ChartingInternalApi.js +13 -13
  37. package/src/Api/Internal/ColumnFilterInternalApi.js +18 -36
  38. package/src/Api/Internal/CommentsInternalApi.d.ts +1 -1
  39. package/src/Api/Internal/CommentsInternalApi.js +1 -1
  40. package/src/Api/Internal/CustomSortInternalApi.js +1 -1
  41. package/src/Api/Internal/DashboardInternalApi.js +4 -10
  42. package/src/Api/Internal/DataImportInternalApi.js +3 -9
  43. package/src/Api/Internal/DataSetInternalApi.js +2 -7
  44. package/src/Api/Internal/ExportInternalApi.js +4 -4
  45. package/src/Api/Internal/ExpressionInternalApi.js +2 -12
  46. package/src/Api/Internal/Fdc3InternalApi.js +1 -10
  47. package/src/Api/Internal/FormatColumnInternalApi.js +11 -20
  48. package/src/Api/Internal/FreeTextColumnInternalApi.js +1 -1
  49. package/src/Api/Internal/GridFilterInternalApi.js +2 -8
  50. package/src/Api/Internal/GridInternalApi.js +13 -40
  51. package/src/Api/Internal/LayoutInternalApi.d.ts +1 -0
  52. package/src/Api/Internal/LayoutInternalApi.js +10 -19
  53. package/src/Api/Internal/NoteInternalApi.d.ts +1 -1
  54. package/src/Api/Internal/NoteInternalApi.js +1 -1
  55. package/src/Api/Internal/PredicateInternalApi.js +5 -40
  56. package/src/Api/Internal/ScheduleInternalApi.js +1 -6
  57. package/src/Api/Internal/StyledColumnInternalApi.js +5 -5
  58. package/src/Api/Internal/SystemStatusInternalApi.js +1 -7
  59. package/src/Api/Internal/TeamSharingInternalApi.js +2 -7
  60. package/src/Api/Internal/ThemeInternalApi.js +1 -1
  61. package/src/Api/Internal/UserInterfaceInternalApi.js +1 -1
  62. package/src/Api/LayoutApi.d.ts +0 -11
  63. package/src/PredefinedConfig/Common/CellSummary.d.ts +5 -14
  64. package/src/PredefinedConfig/Common/Enums.d.ts +2 -0
  65. package/src/PredefinedConfig/Common/Enums.js +2 -0
  66. package/src/PredefinedConfig/Common/Menu.d.ts +4 -4
  67. package/src/PredefinedConfig/Common/Menu.js +17 -18
  68. package/src/PredefinedConfig/Common/RowSummary.d.ts +1 -1
  69. package/src/PredefinedConfig/Common/RowSummary.js +4 -4
  70. package/src/Strategy/AdaptableModuleBase.d.ts +3 -4
  71. package/src/Strategy/AdaptableModuleBase.js +5 -9
  72. package/src/Strategy/AlertModule.d.ts +1 -1
  73. package/src/Strategy/AlertModule.js +1 -1
  74. package/src/Strategy/BulkUpdateModule.d.ts +1 -1
  75. package/src/Strategy/BulkUpdateModule.js +3 -2
  76. package/src/Strategy/CalculatedColumnModule.d.ts +2 -2
  77. package/src/Strategy/CalculatedColumnModule.js +2 -2
  78. package/src/Strategy/CellSummaryModule.d.ts +2 -2
  79. package/src/Strategy/CellSummaryModule.js +56 -96
  80. package/src/Strategy/ColumnFilterModule.d.ts +2 -2
  81. package/src/Strategy/ColumnFilterModule.js +17 -42
  82. package/src/Strategy/ColumnInfoModule.d.ts +2 -2
  83. package/src/Strategy/ColumnInfoModule.js +2 -2
  84. package/src/Strategy/CommentModule.d.ts +1 -2
  85. package/src/Strategy/CommentModule.js +29 -30
  86. package/src/Strategy/CustomSortModule.d.ts +1 -1
  87. package/src/Strategy/CustomSortModule.js +1 -1
  88. package/src/Strategy/DashboardModule.d.ts +2 -2
  89. package/src/Strategy/DashboardModule.js +3 -14
  90. package/src/Strategy/DataImportModule.d.ts +3 -3
  91. package/src/Strategy/DataImportModule.js +3 -3
  92. package/src/Strategy/ExportModule.d.ts +1 -2
  93. package/src/Strategy/ExportModule.js +12 -41
  94. package/src/Strategy/Fdc3Module.d.ts +1 -1
  95. package/src/Strategy/Fdc3Module.js +1 -14
  96. package/src/Strategy/FlashingCellModule.d.ts +2 -2
  97. package/src/Strategy/FlashingCellModule.js +2 -2
  98. package/src/Strategy/FormatColumnModule.d.ts +1 -1
  99. package/src/Strategy/FormatColumnModule.js +28 -47
  100. package/src/Strategy/FreeTextColumnModule.d.ts +1 -1
  101. package/src/Strategy/FreeTextColumnModule.js +1 -1
  102. package/src/Strategy/GridInfoModule.d.ts +2 -2
  103. package/src/Strategy/GridInfoModule.js +2 -2
  104. package/src/Strategy/Interface/IModule.d.ts +3 -3
  105. package/src/Strategy/LayoutModule.d.ts +4 -4
  106. package/src/Strategy/LayoutModule.js +51 -72
  107. package/src/Strategy/NoteModule.d.ts +1 -2
  108. package/src/Strategy/NoteModule.js +28 -30
  109. package/src/Strategy/PlusMinusModule.d.ts +1 -1
  110. package/src/Strategy/PlusMinusModule.js +1 -1
  111. package/src/Strategy/SettingsPanelModule.d.ts +3 -3
  112. package/src/Strategy/SettingsPanelModule.js +3 -3
  113. package/src/Strategy/SmartEditModule.d.ts +1 -1
  114. package/src/Strategy/SmartEditModule.js +3 -2
  115. package/src/Strategy/StyledColumnModule.d.ts +1 -1
  116. package/src/Strategy/StyledColumnModule.js +10 -9
  117. package/src/Strategy/SystemStatusModule.d.ts +2 -2
  118. package/src/Strategy/SystemStatusModule.js +4 -3
  119. package/src/Utilities/ExpressionFunctions/aggregatedScalarExpressionFunctions.d.ts +1 -1
  120. package/src/Utilities/ExpressionFunctions/aggregatedScalarExpressionFunctions.js +19 -19
  121. package/src/Utilities/Helpers/AdaptableHelper.js +3 -2
  122. package/src/Utilities/ObjectFactory.js +2 -0
  123. package/src/Utilities/Services/ModuleService.js +2 -2
  124. package/src/View/Layout/Wizard/LayoutWizard.js +1 -0
  125. package/src/View/Layout/Wizard/sections/RowGroupingSection.js +17 -1
  126. package/src/View/Layout/Wizard/sections/RowSummarySection.js +5 -5
  127. package/src/agGrid/AdaptableAgGrid.d.ts +1 -1
  128. package/src/agGrid/AdaptableAgGrid.js +1 -1
  129. package/src/agGrid/AgGridAdapter.d.ts +1 -2
  130. package/src/agGrid/AgGridColumnAdapter.js +2 -2
  131. package/src/agGrid/AgGridMenuAdapter.d.ts +18 -8
  132. package/src/agGrid/AgGridMenuAdapter.js +240 -51
  133. package/src/env.js +2 -2
  134. package/src/metamodel/adaptable.metamodel.d.ts +8 -2
  135. package/src/metamodel/adaptable.metamodel.js +1 -1
  136. package/tsconfig.cjs.tsbuildinfo +1 -1
@@ -16,14 +16,9 @@ class GridInternalApi extends ApiBase_1.ApiBase {
16
16
  */
17
17
  fireGridSortedEvent() {
18
18
  if (this.adaptable.isReady) {
19
- const adaptableSortState = this.adaptable.api.configApi.getAdaptableSortState();
19
+ const adaptableSortState = this.getAdaptableApi().configApi.getAdaptableSortState();
20
20
  const adaptableApi = this.getAdaptableApi();
21
- const gridSortedInfo = {
22
- adaptableSortState: adaptableSortState,
23
- adaptableApi: adaptableApi,
24
- userName: adaptableApi.optionsApi.getUserName(),
25
- adaptableId: adaptableApi.optionsApi.getAdaptableId(),
26
- };
21
+ const gridSortedInfo = Object.assign({ adaptableSortState: adaptableSortState }, this.getAdaptableApi().internalApi.buildBaseContext());
27
22
  adaptableApi.eventApi.emit('GridSorted', gridSortedInfo);
28
23
  }
29
24
  }
@@ -32,13 +27,8 @@ class GridInternalApi extends ApiBase_1.ApiBase {
32
27
  */
33
28
  fireCellChangedEvent(cellDataChangedInfo) {
34
29
  if (this.adaptable.isReady) {
35
- const cellChangedInfo = {
36
- adaptableApi: this.adaptable.api,
37
- cellChange: cellDataChangedInfo,
38
- userName: this.adaptable.api.optionsApi.getUserName(),
39
- adaptableId: this.adaptable.api.optionsApi.getAdaptableId(),
40
- };
41
- this.adaptable.api.eventApi.emit('CellChanged', cellChangedInfo);
30
+ const cellChangedInfo = Object.assign(Object.assign({}, this.getAdaptableApi().internalApi.buildBaseContext()), { cellChange: cellDataChangedInfo });
31
+ this.getAdaptableApi().eventApi.emit('CellChanged', cellChangedInfo);
42
32
  }
43
33
  }
44
34
  /**
@@ -46,16 +36,10 @@ class GridInternalApi extends ApiBase_1.ApiBase {
46
36
  */
47
37
  fireGridDataChangedEvent(dataRows, rowNodes, rowTrigger) {
48
38
  if (this.adaptable.isReady) {
49
- const gridDataChangedInfo = {
50
- changedAt: Date.now(),
51
- adaptableApi: this.adaptable.api,
52
- rowTrigger,
39
+ const gridDataChangedInfo = Object.assign({ changedAt: Date.now(), rowTrigger,
53
40
  dataRows,
54
- rowNodes,
55
- userName: this.adaptable.api.optionsApi.getUserName(),
56
- adaptableId: this.adaptable.api.optionsApi.getAdaptableId(),
57
- };
58
- this.adaptable.api.eventApi.emit('GridDataChanged', gridDataChangedInfo);
41
+ rowNodes }, this.getAdaptableApi().internalApi.buildBaseContext());
42
+ this.getAdaptableApi().eventApi.emit('GridDataChanged', gridDataChangedInfo);
59
43
  this.adaptable.DataService.CreateGridChangedEvent(gridDataChangedInfo);
60
44
  }
61
45
  }
@@ -100,12 +84,7 @@ class GridInternalApi extends ApiBase_1.ApiBase {
100
84
  let shouldShowValuesCount = false;
101
85
  const showValuesCountFunction = this.getColumnFilterOptions().valuesFilterOptions.showValuesCount;
102
86
  if (showValuesCountFunction) {
103
- const columnFilterContext = {
104
- column: abColumn,
105
- adaptableApi: this.adaptable.api,
106
- userName: this.adaptable.api.optionsApi.getUserName(),
107
- adaptableId: this.adaptable.api.optionsApi.getAdaptableId(),
108
- };
87
+ const columnFilterContext = Object.assign({ column: abColumn }, this.getAdaptableApi().internalApi.buildBaseContext());
109
88
  shouldShowValuesCount = showValuesCountFunction(columnFilterContext);
110
89
  }
111
90
  if (shouldShowValuesCount) {
@@ -143,7 +122,7 @@ class GridInternalApi extends ApiBase_1.ApiBase {
143
122
  };
144
123
  let preparedPermittedValues = undefined;
145
124
  try {
146
- const filterPermittedValuesParams = Object.assign(Object.assign({}, (0, ObjectFactory_1.createBaseContext)(this.adaptable.api)), { column: column, searchFilter: filter });
125
+ const filterPermittedValuesParams = Object.assign(Object.assign({}, (0, ObjectFactory_1.createBaseContext)(this.getAdaptableApi())), { column: column, searchFilter: filter });
147
126
  preparedPermittedValues = await (filterPermittedValues === null || filterPermittedValues === void 0 ? void 0 : filterPermittedValues.values(filterPermittedValuesParams));
148
127
  }
149
128
  catch (error) {
@@ -176,7 +155,7 @@ class GridInternalApi extends ApiBase_1.ApiBase {
176
155
  const customSortPermittedValues = await this.getUserInterfaceApi().getCustomSortPermittedValuesForColumn(column);
177
156
  let preparedPermittedValues = undefined;
178
157
  try {
179
- const permittedValuesParams = Object.assign(Object.assign({}, (0, ObjectFactory_1.createBaseContext)(this.adaptable.api)), { column: column });
158
+ const permittedValuesParams = Object.assign(Object.assign({}, (0, ObjectFactory_1.createBaseContext)(this.getAdaptableApi())), { column: column });
180
159
  preparedPermittedValues = await (customSortPermittedValues === null || customSortPermittedValues === void 0 ? void 0 : customSortPermittedValues.values(permittedValuesParams));
181
160
  }
182
161
  catch (error) {
@@ -207,7 +186,7 @@ class GridInternalApi extends ApiBase_1.ApiBase {
207
186
  const bulkUpdatePermittedValues = await this.getUserInterfaceApi().getBulkUpdatePermittedValuesForColumn(column);
208
187
  let preparedPermittedValues = undefined;
209
188
  try {
210
- const bulkUpdatePermittedValuesParams = Object.assign(Object.assign({}, (0, ObjectFactory_1.createBaseContext)(this.adaptable.api)), { column: column, gridCells: selectedGridCells });
189
+ const bulkUpdatePermittedValuesParams = Object.assign(Object.assign({}, (0, ObjectFactory_1.createBaseContext)(this.getAdaptableApi())), { column: column, gridCells: selectedGridCells });
211
190
  preparedPermittedValues = await (bulkUpdatePermittedValues === null || bulkUpdatePermittedValues === void 0 ? void 0 : bulkUpdatePermittedValues.values(bulkUpdatePermittedValuesParams));
212
191
  }
213
192
  catch (error) {
@@ -284,7 +263,7 @@ class GridInternalApi extends ApiBase_1.ApiBase {
284
263
  // this does NOT into account Custom Sort - far too hard for now...
285
264
  let sortOrder = Enums_1.SortOrder.Asc;
286
265
  if (this.getColumnFilterOptions().valuesFilterOptions.sortValuesFilter) {
287
- let columnSort = this.adaptable.api.gridApi.getColumnSortForColumn(column.columnId);
266
+ let columnSort = this.getAdaptableApi().gridApi.getColumnSortForColumn(column.columnId);
288
267
  if (columnSort && columnSort.SortOrder == 'Desc') {
289
268
  sortOrder = Enums_1.SortOrder.Desc;
290
269
  }
@@ -319,13 +298,7 @@ class GridInternalApi extends ApiBase_1.ApiBase {
319
298
  let editLookUpValues = editLookUpItem.values;
320
299
  // first do the function then get hardcoded items
321
300
  if (editLookUpValues != null && typeof editLookUpValues === 'function') {
322
- const editLookUpContext = {
323
- adaptableApi: this.adaptable.api,
324
- userName: this.getOptions().userName,
325
- adaptableId: this.getOptions().adaptableId,
326
- column: column,
327
- gridCell,
328
- };
301
+ const editLookUpContext = Object.assign(Object.assign({}, this.getAdaptableApi().internalApi.buildBaseContext()), { column: column, gridCell });
329
302
  return editLookUpValues(editLookUpContext);
330
303
  }
331
304
  else {
@@ -41,6 +41,7 @@ export declare class LayoutInternalApi extends ApiBase {
41
41
  ColumnFilters: boolean;
42
42
  GridFilter: boolean;
43
43
  ColumnSorts: boolean;
44
+ RowSummaries: boolean;
44
45
  };
45
46
  updateCurrentDraftLayout(layout: Layout): void;
46
47
  hasLayoutSpecificObjects(): boolean;
@@ -17,19 +17,11 @@ class LayoutInternalApi extends ApiBase_1.ApiBase {
17
17
  * @param newState Layout State after change
18
18
  */
19
19
  fireLayoutChangedEvent(trigger, oldSate, newState, skipEqualityCheck) {
20
- const adaptableApi = this.getAdaptableApi();
21
- const layoutChangedInfo = {
22
- adaptableApi: adaptableApi,
23
- actionName: trigger,
24
- oldLayoutState: oldSate,
25
- newLayoutState: newState,
26
- userName: adaptableApi.optionsApi.getUserName(),
27
- adaptableId: adaptableApi.optionsApi.getAdaptableId(),
28
- };
20
+ const layoutChangedInfo = Object.assign({ actionName: trigger, oldLayoutState: oldSate, newLayoutState: newState }, this.getAdaptableApi().internalApi.buildBaseContext());
29
21
  if (!skipEqualityCheck && (0, isEqual_1.default)(oldSate, newState)) {
30
22
  return;
31
23
  }
32
- this.adaptable.api.eventApi.emit('LayoutChanged', layoutChangedInfo);
24
+ this.getAdaptableApi().eventApi.emit('LayoutChanged', layoutChangedInfo);
33
25
  }
34
26
  /**
35
27
  * Compares 2 Layouts for equality
@@ -70,7 +62,7 @@ class LayoutInternalApi extends ApiBase_1.ApiBase {
70
62
  if (!layoutState.Layouts || !isLayoutDefined(GeneralConstants_1.DEFAULT_LAYOUT)) {
71
63
  // augogroup columns are not in columns list
72
64
  // the code that adds column ok grid state explicitly ignores autoColumns
73
- const allGridColumns = this.adaptable.getAgGridAllGridColumns();
65
+ const allGridColumns = this.getAdaptableApi().gridApi.getAllGridColumns();
74
66
  let defaultLayout = ObjectFactory_1.default.CreateEmptyLayout({
75
67
  Name: GeneralConstants_1.DEFAULT_LAYOUT,
76
68
  Columns: defaultLayoutColumns.map((c) => c.columnId),
@@ -114,6 +106,7 @@ class LayoutInternalApi extends ApiBase_1.ApiBase {
114
106
  * This takes into account the data-source.
115
107
  */
116
108
  getLayoutSupportedFeatures() {
109
+ var _a, _b;
117
110
  const layoutSupportedFeatures = {
118
111
  RowGroupedColumns: true,
119
112
  AggregationColumns: true,
@@ -121,6 +114,7 @@ class LayoutInternalApi extends ApiBase_1.ApiBase {
121
114
  ColumnFilters: true,
122
115
  ColumnSorts: true,
123
116
  GridFilter: true,
117
+ RowSummaries: true,
124
118
  };
125
119
  if (this.getGridApi().getAgGridRowModelType() === 'viewport') {
126
120
  layoutSupportedFeatures.RowGroupedColumns = false;
@@ -134,6 +128,9 @@ class LayoutInternalApi extends ApiBase_1.ApiBase {
134
128
  if (this.getEntitlementApi().getEntitlementAccessLevelForModule(ModuleConstants_1.GridFilterModuleId) == 'Hidden') {
135
129
  layoutSupportedFeatures.GridFilter = false;
136
130
  }
131
+ if (((_b = (_a = this.adaptable) === null || _a === void 0 ? void 0 : _a.getAgGridRowModelType) === null || _b === void 0 ? void 0 : _b.call(_a)) !== 'clientSide') {
132
+ layoutSupportedFeatures.RowSummaries = false;
133
+ }
137
134
  return layoutSupportedFeatures;
138
135
  }
139
136
  updateCurrentDraftLayout(layout) {
@@ -159,14 +156,8 @@ class LayoutInternalApi extends ApiBase_1.ApiBase {
159
156
  if ((layoutTagOptions === null || layoutTagOptions === void 0 ? void 0 : layoutTagOptions.autoCheckTagsForLayouts) == true) {
160
157
  return ArrayExtensions_1.default.IsNullOrEmpty(object.Tags) ? true : (_a = object.Tags) === null || _a === void 0 ? void 0 : _a.includes(layout.Name);
161
158
  }
162
- const context = {
163
- adaptableObject: object,
164
- module,
165
- layout,
166
- adaptableApi: this.getAdaptableApi(),
167
- userName: this.getOptions().userName,
168
- adaptableId: this.getOptions().adaptableId,
169
- };
159
+ const context = Object.assign({ adaptableObject: object, module,
160
+ layout }, this.getAdaptableApi().internalApi.buildBaseContext());
170
161
  return layoutTagOptions === null || layoutTagOptions === void 0 ? void 0 : layoutTagOptions.isObjectAvailableInLayout(context);
171
162
  }
172
163
  showLayoutNotAssociatedObjects() {
@@ -1,4 +1,4 @@
1
1
  import { ApiBase } from '../Implementation/ApiBase';
2
2
  export declare class NoteInternalApi extends ApiBase {
3
- areNotesAvailable(): boolean;
3
+ areNotesSupported(): boolean;
4
4
  }
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.NoteInternalApi = void 0;
4
4
  const ApiBase_1 = require("../Implementation/ApiBase");
5
5
  class NoteInternalApi extends ApiBase_1.ApiBase {
6
- areNotesAvailable() {
6
+ areNotesSupported() {
7
7
  var _a;
8
8
  const currentLayout = this.getLayoutApi().getCurrentLayout();
9
9
  if (currentLayout.EnablePivot) {
@@ -21,14 +21,7 @@ class PredicateInternalApi extends ApiBase_1.ApiBase {
21
21
  getSystemFilterPredicateIds(scope) {
22
22
  const systemFilterPredicates = this.getPredicateOptions().systemFilterPredicates;
23
23
  if (typeof systemFilterPredicates === 'function') {
24
- const systemPredicateContext = {
25
- adaptableApi: this.adaptable.api,
26
- userName: this.getOptions().userName,
27
- adaptableId: this.getOptions().adaptableId,
28
- systemPredicateDefs: this.getPredicateApi().getSystemPredicateDefsByModuleScope('columnFilter'),
29
- moduleScope: 'columnFilter',
30
- columnScope: scope,
31
- };
24
+ const systemPredicateContext = Object.assign(Object.assign({}, this.getAdaptableApi().internalApi.buildBaseContext()), { systemPredicateDefs: this.getPredicateApi().getSystemPredicateDefsByModuleScope('columnFilter'), moduleScope: 'columnFilter', columnScope: scope });
32
25
  return systemFilterPredicates(systemPredicateContext);
33
26
  }
34
27
  return systemFilterPredicates;
@@ -43,14 +36,7 @@ class PredicateInternalApi extends ApiBase_1.ApiBase {
43
36
  getSystemAlertPredicateIds(scope) {
44
37
  const systemAlertPredicates = this.getPredicateOptions().systemAlertPredicates;
45
38
  if (typeof systemAlertPredicates === 'function') {
46
- const systemPredicateContext = {
47
- adaptableApi: this.adaptable.api,
48
- userName: this.getOptions().userName,
49
- adaptableId: this.getOptions().adaptableId,
50
- systemPredicateDefs: this.getPredicateApi().getSystemPredicateDefsByModuleScope('alert'),
51
- moduleScope: 'alert',
52
- columnScope: scope,
53
- };
39
+ const systemPredicateContext = Object.assign(Object.assign({}, this.getAdaptableApi().internalApi.buildBaseContext()), { systemPredicateDefs: this.getPredicateApi().getSystemPredicateDefsByModuleScope('alert'), moduleScope: 'alert', columnScope: scope });
54
40
  return systemAlertPredicates(systemPredicateContext);
55
41
  }
56
42
  return systemAlertPredicates;
@@ -58,14 +44,7 @@ class PredicateInternalApi extends ApiBase_1.ApiBase {
58
44
  getSystemBadgeStylePredicateIds(scope) {
59
45
  const systemBadgeStylePredicates = this.getPredicateOptions().systemBadgeStylePredicates;
60
46
  if (typeof systemBadgeStylePredicates === 'function') {
61
- const systemPredicateContext = {
62
- adaptableApi: this.adaptable.api,
63
- userName: this.getOptions().userName,
64
- adaptableId: this.getOptions().adaptableId,
65
- systemPredicateDefs: this.getPredicateApi().getSystemPredicateDefsByModuleScope('badgeStyle'),
66
- moduleScope: 'badgeStyle',
67
- columnScope: scope,
68
- };
47
+ const systemPredicateContext = Object.assign(Object.assign({}, this.getAdaptableApi().internalApi.buildBaseContext()), { systemPredicateDefs: this.getPredicateApi().getSystemPredicateDefsByModuleScope('badgeStyle'), moduleScope: 'badgeStyle', columnScope: scope });
69
48
  return systemBadgeStylePredicates(systemPredicateContext);
70
49
  }
71
50
  return systemBadgeStylePredicates;
@@ -80,14 +59,7 @@ class PredicateInternalApi extends ApiBase_1.ApiBase {
80
59
  getSystemFormatColumnPredicateIds(scope) {
81
60
  const systemFormatColumnPredicates = this.getPredicateOptions().systemFormatColumnPredicates;
82
61
  if (typeof systemFormatColumnPredicates === 'function') {
83
- const systemPredicateContext = {
84
- adaptableApi: this.adaptable.api,
85
- userName: this.getOptions().userName,
86
- adaptableId: this.getOptions().adaptableId,
87
- systemPredicateDefs: this.getPredicateApi().getSystemPredicateDefsByModuleScope('formatColumn'),
88
- moduleScope: 'formatColumn',
89
- columnScope: scope,
90
- };
62
+ const systemPredicateContext = Object.assign(Object.assign({}, this.getAdaptableApi().internalApi.buildBaseContext()), { systemPredicateDefs: this.getPredicateApi().getSystemPredicateDefsByModuleScope('formatColumn'), moduleScope: 'formatColumn', columnScope: scope });
91
63
  return systemFormatColumnPredicates(systemPredicateContext);
92
64
  }
93
65
  return systemFormatColumnPredicates;
@@ -102,14 +74,7 @@ class PredicateInternalApi extends ApiBase_1.ApiBase {
102
74
  getSystemFlashingCellPredicateIds(scope) {
103
75
  const systemFlashingCellPredicates = this.getPredicateOptions().systemFlashingCellPredicates;
104
76
  if (typeof systemFlashingCellPredicates === 'function') {
105
- const systemPredicateContext = {
106
- adaptableApi: this.adaptable.api,
107
- userName: this.getOptions().userName,
108
- adaptableId: this.getOptions().adaptableId,
109
- systemPredicateDefs: this.getPredicateApi().getSystemPredicateDefsByModuleScope('flashingcell'),
110
- moduleScope: 'flashingcell',
111
- columnScope: scope,
112
- };
77
+ const systemPredicateContext = Object.assign({ systemPredicateDefs: this.getPredicateApi().getSystemPredicateDefsByModuleScope('flashingcell'), moduleScope: 'flashingcell', columnScope: scope }, this.getAdaptableApi().internalApi.buildBaseContext());
113
78
  return systemFlashingCellPredicates(systemPredicateContext);
114
79
  }
115
80
  return systemFlashingCellPredicates;
@@ -8,12 +8,7 @@ class ScheduleInternalApi extends ApiBase_1.ApiBase {
8
8
  */
9
9
  fireScheduleTriggeredEvent(schedule) {
10
10
  const adaptableApi = this.getAdaptableApi();
11
- const scheduleTriggeredInfo = {
12
- adaptableApi: adaptableApi,
13
- userName: adaptableApi.optionsApi.getUserName(),
14
- adaptableId: adaptableApi.optionsApi.getAdaptableId(),
15
- schedule: schedule,
16
- };
11
+ const scheduleTriggeredInfo = Object.assign(Object.assign({}, this.getAdaptableApi().internalApi.buildBaseContext()), { schedule: schedule });
17
12
  adaptableApi.eventApi.emit('ScheduleTriggered', scheduleTriggeredInfo);
18
13
  }
19
14
  }
@@ -34,11 +34,11 @@ class StyledColumnInternalApi extends ApiBase_1.ApiBase {
34
34
  }
35
35
  else {
36
36
  let columnId = columnComparison.MinValue;
37
- if (!this.adaptable.api.columnApi.isColumnInGrid(columnId)) {
37
+ if (!this.getAdaptableApi().columnApi.isColumnInGrid(columnId)) {
38
38
  return 0;
39
39
  }
40
40
  else {
41
- return this.adaptable.api.gridApi.getRawValueFromRowNode(rowNode, columnId);
41
+ return this.getAdaptableApi().gridApi.getRawValueFromRowNode(rowNode, columnId);
42
42
  }
43
43
  }
44
44
  }
@@ -97,11 +97,11 @@ class StyledColumnInternalApi extends ApiBase_1.ApiBase {
97
97
  }
98
98
  else {
99
99
  let columnId = columnComparison.MaxValue;
100
- if (!this.adaptable.api.columnApi.isColumnInGrid(columnId)) {
100
+ if (!this.getAdaptableApi().columnApi.isColumnInGrid(columnId)) {
101
101
  return 0;
102
102
  }
103
103
  else {
104
- return this.adaptable.api.gridApi.getRawValueFromRowNode(rowNode, columnId);
104
+ return this.getAdaptableApi().gridApi.getRawValueFromRowNode(rowNode, columnId);
105
105
  }
106
106
  }
107
107
  }
@@ -279,7 +279,7 @@ class StyledColumnInternalApi extends ApiBase_1.ApiBase {
279
279
  };
280
280
  return this.getAdaptableApi()
281
281
  .predicateApi.internalApi.getBadgeStylePredicateDefs(scope)
282
- .filter((predicate) => this.adaptable.api.scopeApi.isColumnInScope(column, predicate.columnScope));
282
+ .filter((predicate) => this.getAdaptableApi().scopeApi.isColumnInScope(column, predicate.columnScope));
283
283
  }
284
284
  }
285
285
  exports.StyledColumnInternalApi = StyledColumnInternalApi;
@@ -10,13 +10,7 @@ class SystemStatusInternalApi extends ApiBase_1.ApiBase {
10
10
  * @param systemStatusMessageInfo Info about new System Status Message
11
11
  */
12
12
  fireSystemStatusMessageDisplayedEvent(systemStatusMessageInfo) {
13
- const adaptableApi = this.getAdaptableApi();
14
- const systemStatusMessageDisplayedInfo = {
15
- adaptableApi,
16
- systemStatusMessageInfo: systemStatusMessageInfo,
17
- userName: adaptableApi.optionsApi.getUserName(),
18
- adaptableId: adaptableApi.optionsApi.getAdaptableId(),
19
- };
13
+ const systemStatusMessageDisplayedInfo = Object.assign({ systemStatusMessageInfo: systemStatusMessageInfo }, this.getAdaptableApi().internalApi.buildBaseContext());
20
14
  this.getAdaptableApi().eventApi.emit('SystemStatusMessageDisplayed', systemStatusMessageDisplayedInfo);
21
15
  }
22
16
  addSystemStatusMessageInfo(systemStatusMessageInfo) {
@@ -9,12 +9,7 @@ class TeamSharingInternalApi extends ApiBase_1.ApiBase {
9
9
  */
10
10
  fireTeamSharingEntityChangedEvent(sharedEntity) {
11
11
  if (this.adaptable.isReady) {
12
- const teamSharingEntityChangedInfo = {
13
- adaptableApi: this.adaptable.api,
14
- sharedEntity: sharedEntity,
15
- userName: this.adaptable.api.optionsApi.getUserName(),
16
- adaptableId: this.adaptable.api.optionsApi.getAdaptableId(),
17
- };
12
+ const teamSharingEntityChangedInfo = Object.assign(Object.assign({}, this.getAdaptableApi().internalApi.buildBaseContext()), { sharedEntity: sharedEntity });
18
13
  this.getAdaptableApi().eventApi.emit('TeamSharingEntityChanged', teamSharingEntityChangedInfo);
19
14
  }
20
15
  }
@@ -41,7 +36,7 @@ class TeamSharingInternalApi extends ApiBase_1.ApiBase {
41
36
  reject(false);
42
37
  }, waitThreshold);
43
38
  // poll state for changes:
44
- const unsubscribe = this.adaptable.api.eventApi.on('AdaptableStateChanged', () => {
39
+ const unsubscribe = this.getAdaptableApi().eventApi.on('AdaptableStateChanged', () => {
45
40
  clearTimeout(pollTimer);
46
41
  pollTimer = setTimeout(() => {
47
42
  // state is stable, cleanup all subscriptions before returning
@@ -13,7 +13,7 @@ class ThemeInternalApi extends ApiBase_1.ApiBase {
13
13
  return `ab--theme-${theme}`;
14
14
  }
15
15
  openInWindow() {
16
- this.adaptable.api.internalApi.showPopupWindow({
16
+ this.getAdaptableApi().internalApi.showPopupWindow({
17
17
  id: windowFactory_1.SHOW_THEME_EDITOR,
18
18
  title: 'Theme',
19
19
  icon: 'theme',
@@ -6,7 +6,7 @@ class UserInterfaceInternalApi extends ApiBase_1.ApiBase {
6
6
  prepareAdaptableIconDef(icon) {
7
7
  if (icon && 'name' in icon) {
8
8
  let customIcon = icon && 'name' in icon
9
- ? this.adaptable.api.userInterfaceApi.getCustomIconDefinition(icon.name)
9
+ ? this.getAdaptableApi().userInterfaceApi.getCustomIconDefinition(icon.name)
10
10
  : null;
11
11
  if (customIcon) {
12
12
  icon = customIcon;
@@ -182,15 +182,4 @@ export interface LayoutApi {
182
182
  * @param columnId Column to add
183
183
  */
184
184
  addColumnToCurrentLayout(columnId: string): void;
185
- /**
186
- * Returns what the layout supports.
187
- * This takes into account the data-source.
188
- */
189
- getLayoutSupportedFeatures(): {
190
- RowGroupedColumns: boolean;
191
- AggregationColumns: boolean;
192
- PivotColumns: boolean;
193
- ColumnFilters: boolean;
194
- ColumnSorts: boolean;
195
- };
196
185
  }
@@ -1,4 +1,5 @@
1
1
  import { BaseContext } from '../../../types';
2
+ import { AdaptableColumn } from '../../types';
2
3
  import { SelectedCellInfo } from '../Selection/SelectedCellInfo';
3
4
  /**
4
5
  * Defines the Summary operations provides for Selected Cells
@@ -14,6 +15,8 @@ export interface CellSummmary {
14
15
  Count: number | undefined;
15
16
  Only: string | undefined;
16
17
  Std_Deviation: number | undefined;
18
+ Oldest: Date | undefined;
19
+ Newest: Date | undefined;
17
20
  [key: string]: any;
18
21
  }
19
22
  /**
@@ -38,19 +41,7 @@ export interface CellSummaryOperationContext<TData = any> extends BaseContext {
38
41
  */
39
42
  selectedCellInfo: SelectedCellInfo<TData>;
40
43
  /**
41
- * All values of selected cells
44
+ * Currently selected Column
42
45
  */
43
- allValues: any[];
44
- /**
45
- * Any numeric columns in current selection
46
- */
47
- numericColumns: string[];
48
- /**
49
- * Any numeric values in current selection
50
- */
51
- numericValues: number[];
52
- /**
53
- * Count of currently selected cells
54
- */
55
- distinctCount: number;
46
+ selectedColumn: AdaptableColumn;
56
47
  }
@@ -59,6 +59,8 @@ export declare enum SummaryOperation {
59
59
  Max = "Max",
60
60
  Min = "Min",
61
61
  Count = "Count",
62
+ Newest = "Newest",
63
+ Oldest = "Oldest",
62
64
  Std_Deviation = "Std Deviation",
63
65
  Only = "Only",
64
66
  Weighted_Average = "Weighted Avg"
@@ -76,6 +76,8 @@ var SummaryOperation;
76
76
  SummaryOperation["Max"] = "Max";
77
77
  SummaryOperation["Min"] = "Min";
78
78
  SummaryOperation["Count"] = "Count";
79
+ SummaryOperation["Newest"] = "Newest";
80
+ SummaryOperation["Oldest"] = "Oldest";
79
81
  SummaryOperation["Std_Deviation"] = "Std Deviation";
80
82
  SummaryOperation["Only"] = "Only";
81
83
  SummaryOperation["Weighted_Average"] = "Weighted Avg";
@@ -5,16 +5,16 @@ import { SelectedCellInfo } from '../Selection/SelectedCellInfo';
5
5
  import { SelectedRowInfo } from '../Selection/SelectedRowInfo';
6
6
  import { Column, IRowNode } from '@ag-grid-community/core';
7
7
  import { AdaptableIcon, BaseContext } from '../../types';
8
- export type AdaptableColumnMenuItemName = (typeof ADAPTABLE_COLUMN_MENU_ITEMS)[number];
9
- export type AdaptableContextMenuItemName = (typeof ADAPTABLE_CONTEXT_MENU_ITEMS)[number];
8
+ export type AdaptableColumnMenuItemName = typeof ADAPTABLE_COLUMN_MENU_ITEMS[number];
9
+ export type AdaptableContextMenuItemName = typeof ADAPTABLE_CONTEXT_MENU_ITEMS[number];
10
10
  /**
11
11
  * List of Shipped Adaptable Column Menu Items
12
12
  */
13
- export declare const ADAPTABLE_COLUMN_MENU_ITEMS: readonly ["calculated-column-edit", "cell-summary-show", "column-filter-parent", "column-filter-bar-hide", "column-filter-bar-show", "column-filter-clear", "column-filter-on-cell-value", "column-filter-suspend", "column-filter-unsuspend", "column-info-show", "custom-sort-add", "custom-sort-edit", "dashboard-parent", "dashboard-collapse", "dashboard-configure", "dashboard-dock", "dashboard-expand", "dashboard-float", "dashboard-hide", "dashboard-show", "data-import", "flashing-cell-add", "flashing-cell-delete", "format-column-parent", "format-column-add", "format-column-edit", "free-text-column-edit", "grid-info-show", "layout-column-caption-change", "layout-column-hide", "layout-column-select", "layout-column-select-preserve", "layout-column-select-reset", "layout-edit", "layout-grid-parent", "layout-select-parent", "layout-select-all", "plus-minus-add", "settings-panel-open", "styled-column-parent", "styled-column-badge-add", "styled-column-badge-edit", "styled-column-gradient-add", "styled-column-gradient-edit", "styled-column-percent-bar-add", "styled-column-percent-bar-edit", "styled-column-sparkline-add", "styled-column-sparkline-edit", "system-status-show", "internal"];
13
+ export declare const ADAPTABLE_COLUMN_MENU_ITEMS: readonly ["calculated-column-edit", "cell-summary-show", "column-filter-bar-hide", "column-filter-bar-show", "column-filter-clear", "column-filter-on-cell-value", "column-filter-suspend", "column-filter-unsuspend", "column-info-show", "custom-sort-add", "custom-sort-edit", "dashboard-collapse", "dashboard-configure", "dashboard-dock", "dashboard-expand", "dashboard-float", "dashboard-hide", "dashboard-show", "data-import", "flashing-cell-add", "flashing-cell-delete", "format-column-add", "format-column-edit", "free-text-column-edit", "grid-info-show", "layout-column-caption-change", "layout-column-hide", "layout-edit", "layout-select-actions", "layout-column-select", "layout-column-select-preserve", "layout-column-select-reset", "layout-select-all", "plus-minus-add", "settings-panel-open", "styled-column-badge-add", "styled-column-badge-edit", "styled-column-gradient-add", "styled-column-gradient-edit", "styled-column-percent-bar-add", "styled-column-percent-bar-edit", "styled-column-sparkline-add", "styled-column-sparkline-edit", "system-status-show", "_navbar"];
14
14
  /**
15
15
  * List of Shipped Adaptable Context Menu Items
16
16
  */
17
- export declare const ADAPTABLE_CONTEXT_MENU_ITEMS: readonly ["alert-clear", "bulk-update-apply", "calculated-column-edit", "cell-summary-show", "column-filter-parent", "column-filter-on-cell-value", "column-filter-clear", "column-filter-suspend", "column-filter-unsuspend", "column-info-show", "comment-add", "comment-remove", "dashboard-parent", "dashboard-collapse", "dashboard-configure", "dashboard-dock", "dashboard-expand", "dashboard-float", "dashboard-hide", "dashboard-show", "data-import", "export-parent", "export-clipboard", "export-csv", "export-excel", "export-json", "export-table", "export-custom-destination", "fdc3-parent", "fdc3-broadcast", "fdc3-raise-intent", "flashing-cell-clear", "flashing-row-clear", "grid-info-show", "layout-aggregated-view", "layout-auto-size", "layout-clear-selection", "layout-edit", "layout-select-all", "note-add", "note-remove", "settings-panel-open", "smart-edit-apply", "system-status-show"];
17
+ export declare const ADAPTABLE_CONTEXT_MENU_ITEMS: readonly ["menu-group-parent", "alert-clear", "bulk-update-apply", "calculated-column-edit", "cell-summary-show", "column-filter-on-cell-value", "column-filter-clear", "column-filter-suspend", "column-filter-unsuspend", "column-info-show", "comment-add", "comment-remove", "dashboard-collapse", "dashboard-configure", "dashboard-dock", "dashboard-expand", "dashboard-float", "dashboard-hide", "dashboard-show", "data-import", "export-cells-clipboard", "export-cells-csv", "export-cells-excel", "export-cells-json", "export-cells-table", "export-cells-custom-destination", "export-rows-clipboard", "export-rows-csv", "export-rows-excel", "export-rows-json", "export-rows-table", "export-rows-custom-destination", "fdc3-broadcast", "fdc3-raise-intent", "flashing-cell-clear", "flashing-row-clear", "grid-info-show", "layout-aggregated-view", "layout-auto-size", "layout-clear-selection", "layout-edit", "layout-select-all", "layout-grid-actions", "note-add", "note-remove", "settings-panel-open", "smart-edit-apply", "system-status-show"];
18
18
  /**
19
19
  * Menu item used by Adaptable in both Column and Context Menus
20
20
  */
@@ -7,7 +7,6 @@ exports.ADAPTABLE_CONTEXT_MENU_ITEMS = exports.ADAPTABLE_COLUMN_MENU_ITEMS = voi
7
7
  exports.ADAPTABLE_COLUMN_MENU_ITEMS = [
8
8
  'calculated-column-edit',
9
9
  'cell-summary-show',
10
- 'column-filter-parent',
11
10
  'column-filter-bar-hide',
12
11
  'column-filter-bar-show',
13
12
  'column-filter-clear',
@@ -17,7 +16,6 @@ exports.ADAPTABLE_COLUMN_MENU_ITEMS = [
17
16
  'column-info-show',
18
17
  'custom-sort-add',
19
18
  'custom-sort-edit',
20
- 'dashboard-parent',
21
19
  'dashboard-collapse',
22
20
  'dashboard-configure',
23
21
  'dashboard-dock',
@@ -28,23 +26,20 @@ exports.ADAPTABLE_COLUMN_MENU_ITEMS = [
28
26
  'data-import',
29
27
  'flashing-cell-add',
30
28
  'flashing-cell-delete',
31
- 'format-column-parent',
32
29
  'format-column-add',
33
30
  'format-column-edit',
34
31
  'free-text-column-edit',
35
32
  'grid-info-show',
36
33
  'layout-column-caption-change',
37
34
  'layout-column-hide',
35
+ 'layout-edit',
36
+ 'layout-select-actions',
38
37
  'layout-column-select',
39
38
  'layout-column-select-preserve',
40
39
  'layout-column-select-reset',
41
- 'layout-edit',
42
- 'layout-grid-parent',
43
- 'layout-select-parent',
44
40
  'layout-select-all',
45
41
  'plus-minus-add',
46
42
  'settings-panel-open',
47
- 'styled-column-parent',
48
43
  'styled-column-badge-add',
49
44
  'styled-column-badge-edit',
50
45
  'styled-column-gradient-add',
@@ -54,17 +49,17 @@ exports.ADAPTABLE_COLUMN_MENU_ITEMS = [
54
49
  'styled-column-sparkline-add',
55
50
  'styled-column-sparkline-edit',
56
51
  'system-status-show',
57
- 'internal', // used by AdapTable in Settings Panel
52
+ '_navbar', // used in SettingsPanel navigation bar and in Dashboard Module buttons
58
53
  ];
59
54
  /**
60
55
  * List of Shipped Adaptable Context Menu Items
61
56
  */
62
57
  exports.ADAPTABLE_CONTEXT_MENU_ITEMS = [
58
+ 'menu-group-parent',
63
59
  'alert-clear',
64
60
  'bulk-update-apply',
65
61
  'calculated-column-edit',
66
62
  'cell-summary-show',
67
- 'column-filter-parent',
68
63
  'column-filter-on-cell-value',
69
64
  'column-filter-clear',
70
65
  'column-filter-suspend',
@@ -72,7 +67,6 @@ exports.ADAPTABLE_CONTEXT_MENU_ITEMS = [
72
67
  'column-info-show',
73
68
  'comment-add',
74
69
  'comment-remove',
75
- 'dashboard-parent',
76
70
  'dashboard-collapse',
77
71
  'dashboard-configure',
78
72
  'dashboard-dock',
@@ -81,14 +75,18 @@ exports.ADAPTABLE_CONTEXT_MENU_ITEMS = [
81
75
  'dashboard-hide',
82
76
  'dashboard-show',
83
77
  'data-import',
84
- 'export-parent',
85
- 'export-clipboard',
86
- 'export-csv',
87
- 'export-excel',
88
- 'export-json',
89
- 'export-table',
90
- 'export-custom-destination',
91
- 'fdc3-parent',
78
+ 'export-cells-clipboard',
79
+ 'export-cells-csv',
80
+ 'export-cells-excel',
81
+ 'export-cells-json',
82
+ 'export-cells-table',
83
+ 'export-cells-custom-destination',
84
+ 'export-rows-clipboard',
85
+ 'export-rows-csv',
86
+ 'export-rows-excel',
87
+ 'export-rows-json',
88
+ 'export-rows-table',
89
+ 'export-rows-custom-destination',
92
90
  'fdc3-broadcast',
93
91
  'fdc3-raise-intent',
94
92
  'flashing-cell-clear',
@@ -99,6 +97,7 @@ exports.ADAPTABLE_CONTEXT_MENU_ITEMS = [
99
97
  'layout-clear-selection',
100
98
  'layout-edit',
101
99
  'layout-select-all',
100
+ 'layout-grid-actions',
102
101
  'note-add',
103
102
  'note-remove',
104
103
  'settings-panel-open',
@@ -1,6 +1,6 @@
1
1
  export declare const ROW_SUMMARY_ROW_ID = "__ROW_SUMMARY_ROW_ID";
2
2
  export declare const WEIGHTED_AVERAGE_AGGREATED_FUNCTION = "WEIGHTED_AVERAGE";
3
- export declare const summarySupportedExpressions: readonly ["SUM", "AVG", "MIN", "MAX", "COUNT", "MEDIAN", "MODE", "DISTINCT", "ONLY", "STD_DEVIATION", "OLDEST", "YOUNGEST", "WEIGHTED_AVERAGE"];
3
+ export declare const summarySupportedExpressions: readonly ["MIN", "MAX", "SUM", "AVG", "COUNT", "MEDIAN", "MODE", "DISTINCT", "ONLY", "OLDEST", "NEWEST", "STD_DEVIATION", "WEIGHTED_AVERAGE"];
4
4
  export type SummarySupportedExpression = (typeof summarySupportedExpressions)[number];
5
5
  /**
6
6
  * Position of Row Summary - 'Top' or 'Bottom'