@adaptabletools/adaptable 18.0.0-canary.31 → 18.0.0-canary.33

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 (90) hide show
  1. package/package.json +1 -1
  2. package/src/AdaptableOptions/QuickSearchOptions.d.ts +1 -1
  3. package/src/Api/AdaptableApi.d.ts +2 -2
  4. package/src/Api/{ScopeApi.d.ts → ColumnScopeApi.d.ts} +2 -2
  5. package/src/Api/GridApi.d.ts +6 -1
  6. package/src/Api/Implementation/AdaptableApiImpl.d.ts +2 -2
  7. package/src/Api/Implementation/AdaptableApiImpl.js +3 -3
  8. package/src/Api/Implementation/AlertApiImpl.js +3 -3
  9. package/src/Api/Implementation/ApiBase.d.ts +2 -2
  10. package/src/Api/Implementation/ApiBase.js +2 -2
  11. package/src/Api/Implementation/ColumnFilterApiImpl.js +1 -1
  12. package/src/Api/Implementation/{ScopeApiImpl.d.ts → ColumnScopeApiImpl.d.ts} +2 -2
  13. package/src/Api/Implementation/{ScopeApiImpl.js → ColumnScopeApiImpl.js} +2 -2
  14. package/src/Api/Implementation/FlashingCellApiImpl.js +1 -1
  15. package/src/Api/Implementation/FormatColumnApiImpl.js +3 -3
  16. package/src/Api/Implementation/GridApiImpl.d.ts +1 -0
  17. package/src/Api/Implementation/GridApiImpl.js +5 -0
  18. package/src/Api/Implementation/NoteApiImpl.d.ts +1 -1
  19. package/src/Api/Implementation/NoteApiImpl.js +2 -2
  20. package/src/Api/Implementation/UserInterfaceApiImpl.js +3 -3
  21. package/src/Api/Internal/AdaptableInternalApi.js +1 -1
  22. package/src/Api/Internal/AlertInternalApi.js +3 -3
  23. package/src/Api/Internal/CustomSortInternalApi.js +1 -1
  24. package/src/Api/Internal/ExportInternalApi.js +1 -1
  25. package/src/Api/Internal/ExpressionInternalApi.js +1 -1
  26. package/src/Api/Internal/FormatColumnInternalApi.js +12 -13
  27. package/src/Api/Internal/StyledColumnInternalApi.js +1 -1
  28. package/src/Api/NoteApi.d.ts +1 -1
  29. package/src/PredefinedConfig/Common/AdaptableIcon.d.ts +1 -1
  30. package/src/PredefinedConfig/Common/RowScope.d.ts +2 -2
  31. package/src/PredefinedConfig/FormatColumnState.d.ts +1 -1
  32. package/src/PredefinedConfig/LayoutState.d.ts +1 -1
  33. package/src/Redux/ActionsReducers/NoteRedux.d.ts +1 -1
  34. package/src/Redux/ActionsReducers/NoteRedux.js +3 -3
  35. package/src/Strategy/AlertModule.js +2 -2
  36. package/src/Strategy/ExportModule.js +21 -4
  37. package/src/Strategy/FlashingCellModule.js +4 -4
  38. package/src/Strategy/FormatColumnModule.js +2 -2
  39. package/src/Strategy/NoteModule.js +3 -3
  40. package/src/Strategy/PlusMinusModule.js +3 -3
  41. package/src/Strategy/ShortcutModule.js +1 -1
  42. package/src/Strategy/StyledColumnModule.js +4 -4
  43. package/src/Strategy/Utilities/FormatColumn/getFormatColumnSettingsViewItems.js +1 -1
  44. package/src/Utilities/Services/CellPopupService.js +4 -4
  45. package/src/Utilities/Services/ReportService.js +2 -2
  46. package/src/Utilities/Services/ValidationService.js +2 -2
  47. package/src/View/Alert/AlertEntityRow.js +1 -1
  48. package/src/View/Alert/Wizard/AlertScopeWizardSection.js +2 -2
  49. package/src/View/Alert/Wizard/BaseAlertScopeWizardSection.js +1 -1
  50. package/src/View/ColumnInfo/ColumnInfo.js +1 -1
  51. package/src/View/Components/NewScopeComponent.js +2 -2
  52. package/src/View/Components/Popups/GridCellPopup/GridCellPopup.js +3 -6
  53. package/src/View/Components/RangesComponent.js +1 -1
  54. package/src/View/CustomSort/Wizard/CustomSortColumnWizardSection.js +1 -1
  55. package/src/View/DataChangeHistory/DataChangeHistoryGrid.js +1 -1
  56. package/src/View/FormatColumn/Wizard/FormatColumnFormatWizardSection.js +1 -1
  57. package/src/View/FormatColumn/Wizard/FormatColumnRuleWizardSection.js +1 -1
  58. package/src/View/FormatColumn/Wizard/FormatColumnScopeWizardSection.js +1 -1
  59. package/src/View/FormatColumn/Wizard/FormatColumnSettingsWizardSection.js +5 -5
  60. package/src/View/FormatColumn/Wizard/FormatColumnStyleWizardSection.js +1 -1
  61. package/src/View/Layout/Wizard/sections/RowGroupingSection.js +1 -1
  62. package/src/View/PlusMinus/PlusMinusSummary.js +2 -2
  63. package/src/View/StyledColumn/Wizard/StyledColumnBadgeSection.js +5 -7
  64. package/src/View/StyledColumn/Wizard/StyledColumnWizardColumnSection.js +1 -1
  65. package/src/View/StyledColumn/Wizard/StyledColumnWizardSettingsSection.js +5 -5
  66. package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/StyledColumnWizardStyleSection.js +1 -1
  67. package/src/agGrid/ActionColumnRenderer.js +10 -11
  68. package/src/agGrid/AdaptableAgGrid.js +2 -3
  69. package/src/agGrid/AgGridColumnAdapter.js +10 -10
  70. package/src/agGrid/AgGridMenuAdapter.js +5 -5
  71. package/src/agGrid/BadgeRenderer.js +6 -7
  72. package/src/agGrid/PercentBarRenderer.js +1 -1
  73. package/src/components/Accordion.d.ts +7 -0
  74. package/src/components/Accordion.js +36 -0
  75. package/src/components/icons/collapse-all.d.ts +3 -0
  76. package/src/components/icons/collapse-all.js +4 -0
  77. package/src/components/icons/csv.d.ts +3 -0
  78. package/src/components/icons/csv.js +4 -0
  79. package/src/components/icons/data-object.d.ts +3 -0
  80. package/src/components/icons/data-object.js +4 -0
  81. package/src/components/icons/excel.d.ts +3 -0
  82. package/src/components/icons/excel.js +5 -0
  83. package/src/components/icons/expand-all.d.ts +3 -0
  84. package/src/components/icons/expand-all.js +4 -0
  85. package/src/components/icons/index.js +10 -0
  86. package/src/env.js +2 -2
  87. package/src/metamodel/adaptable.metamodel.js +1 -1
  88. package/src/types.d.ts +1 -1
  89. package/tsconfig.esm.tsbuildinfo +1 -1
  90. /package/src/Api/{ScopeApi.js → ColumnScopeApi.js} +0 -0
@@ -27,8 +27,8 @@ export class ExportModule extends AdaptableModuleBase {
27
27
  }
28
28
  getExplicitlyReferencedColumnIds(report) {
29
29
  if (report.ReportColumnScope === 'ScopeColumns' &&
30
- this.api.scopeApi.scopeHasColumns(report.Scope)) {
31
- return this.api.scopeApi
30
+ this.api.columnScopeApi.scopeHasColumns(report.Scope)) {
31
+ return this.api.columnScopeApi
32
32
  .getColumnsForScope(report.Scope)
33
33
  .map((adaptableColumn) => adaptableColumn.columnId);
34
34
  }
@@ -48,7 +48,7 @@ export class ExportModule extends AdaptableModuleBase {
48
48
  let returnMenuItems = [];
49
49
  const availableSystemReports = this.api.exportApi.getAvailableSystemReports();
50
50
  if (availableSystemReports.includes(VISUAL_DATA_REPORT)) {
51
- returnMenuItems.push(this.createMenuItemClickFunction('export-visual-data-excel', 'Excel', this.moduleInfo.Glyph, () => this.export(this.api.exportApi.getReportByName(VISUAL_DATA_REPORT), ExportDestination.Excel)));
51
+ returnMenuItems.push(this.createMenuItemClickFunction('export-visual-data-excel', 'Excel', 'excel', () => this.export(this.api.exportApi.getReportByName(VISUAL_DATA_REPORT), ExportDestination.Excel)));
52
52
  }
53
53
  if (availableSystemReports.includes(ALL_DATA_REPORT)) {
54
54
  const allDataReport = this.api.exportApi.getReportByName(ALL_DATA_REPORT);
@@ -88,9 +88,26 @@ export class ExportModule extends AdaptableModuleBase {
88
88
  const getMenuItemName = (reportName, destination) => {
89
89
  return `export-${adjustName(reportName)}-${adjustName(destination)}`;
90
90
  };
91
+ const getMenuItemIcon = (exportDestination) => {
92
+ // once we have icons for csv, clipboard etc then i would like to add them here one by one and use moduleinfo for custom
93
+ switch (exportDestination) {
94
+ case ExportDestination.Excel:
95
+ return 'excel';
96
+ case ExportDestination.Clipboard:
97
+ return 'clipboard';
98
+ case ExportDestination.CSV:
99
+ return 'csv';
100
+ case ExportDestination.JSON:
101
+ return 'json';
102
+ case ExportDestination.Table:
103
+ return 'grid';
104
+ }
105
+ return this.moduleInfo.Glyph;
106
+ };
91
107
  const menuItems = [];
92
108
  for (const destination of this.api.exportApi.getAvailableExportDestinations()) {
93
- menuItems.push(this.createMenuItemClickFunction(getMenuItemName(report.Name, destination), destination, this.moduleInfo.Glyph, () => this.export(report, destination)));
109
+ menuItems.push(this.createMenuItemClickFunction(getMenuItemName(report.Name, destination), destination, getMenuItemIcon(destination), // 'filter', // this.moduleInfo.Glyph,
110
+ () => this.export(report, destination)));
94
111
  }
95
112
  for (const customDestination of this.api.exportApi.getCustomDestinations()) {
96
113
  menuItems.push(this.createMenuItemClickFunction(getMenuItemName(report.Name, customDestination.name), customDestination.name, this.moduleInfo.Glyph, () => this.export(report, customDestination.name)));
@@ -46,8 +46,8 @@ export class FlashingCellModule extends AdaptableModuleBase {
46
46
  if (queryExpression) {
47
47
  return this.api.expressionApi.getColumnsFromExpression(queryExpression);
48
48
  }
49
- else if (this.api.scopeApi.scopeHasColumns(alertDefinition.Scope)) {
50
- return this.api.scopeApi
49
+ else if (this.api.columnScopeApi.scopeHasColumns(alertDefinition.Scope)) {
50
+ return this.api.columnScopeApi
51
51
  .getColumnsForScope(alertDefinition.Scope)
52
52
  .map((adaptableColumn) => adaptableColumn.columnId);
53
53
  }
@@ -65,7 +65,7 @@ export class FlashingCellModule extends AdaptableModuleBase {
65
65
  if (!this.api.columnApi.isCalculatedColumn(column.columnId)) {
66
66
  const flashingCellDefinitions = this.api.flashingCellApi.getFlashingCellDefinitions();
67
67
  const flashingCellForCurrentColumn = flashingCellDefinitions.find((flashingCellDefinition) => {
68
- return this.api.scopeApi.isColumnInScope(column, flashingCellDefinition.Scope);
68
+ return this.api.columnScopeApi.isColumnInScope(column, flashingCellDefinition.Scope);
69
69
  });
70
70
  if (flashingCellForCurrentColumn) {
71
71
  return [
@@ -165,7 +165,7 @@ export class FlashingCellModule extends AdaptableModuleBase {
165
165
  const definitions = this.api.flashingCellApi.getActiveFlashingCellDefinitions();
166
166
  const defaultNoPredicateReturn = false;
167
167
  let relatedFlashingCellsDefinitions = definitions
168
- .filter((v) => this.api.scopeApi.isColumnInScope(dataChangedEvent.column, v.Scope))
168
+ .filter((v) => this.api.columnScopeApi.isColumnInScope(dataChangedEvent.column, v.Scope))
169
169
  .filter((flashingCellDefinition) => !isReactiveQuery(flashingCellDefinition.Rule));
170
170
  let triggeredFlashingCells = [];
171
171
  if (ArrayExtensions.IsNotNullOrEmpty(relatedFlashingCellsDefinitions)) {
@@ -22,8 +22,8 @@ export class FormatColumnModule extends AdaptableModuleBase {
22
22
  if (queryExpression) {
23
23
  return this.api.expressionApi.getColumnsFromExpression(queryExpression);
24
24
  }
25
- else if (this.api.scopeApi.scopeHasColumns(formatColumn.Scope)) {
26
- return this.api.scopeApi
25
+ else if (this.api.columnScopeApi.scopeHasColumns(formatColumn.Scope)) {
26
+ return this.api.columnScopeApi
27
27
  .getColumnsForScope(formatColumn.Scope)
28
28
  .map((adaptableColumn) => adaptableColumn.columnId);
29
29
  }
@@ -11,7 +11,7 @@ export class NoteModule extends AdaptableModuleBase {
11
11
  return super.isModuleAvailable() && !this.api.optionsApi.getAutogeneratePrimaryKey();
12
12
  }
13
13
  createContextMenuItems(menuContext) {
14
- var _a, _b, _c;
14
+ var _a, _b;
15
15
  if (!this.isModuleAvailable()) {
16
16
  return;
17
17
  }
@@ -28,10 +28,10 @@ export class NoteModule extends AdaptableModuleBase {
28
28
  if (!isCellNotable) {
29
29
  return;
30
30
  }
31
- const [note] = (_c = this.adaptable.api.noteApi.getNotesForCell({
31
+ const note = this.adaptable.api.noteApi.getNoteForCell({
32
32
  PrimaryKeyValue: menuContext.primaryKeyValue,
33
33
  ColumnId: menuContext.adaptableColumn.columnId,
34
- })) !== null && _c !== void 0 ? _c : [];
34
+ });
35
35
  if (note) {
36
36
  return [
37
37
  this.createMenuItemClickFunction('note-remove', 'Remove Note', this.moduleInfo.Glyph, () => {
@@ -19,8 +19,8 @@ export class PlusMinusModule extends AdaptableModuleBase {
19
19
  return this.api.plusMinusApi.getAllPlusMinus(config);
20
20
  }
21
21
  getExplicitlyReferencedColumnIds(plusMinusNudge) {
22
- if (this.api.scopeApi.scopeHasColumns(plusMinusNudge.Scope)) {
23
- return this.api.scopeApi
22
+ if (this.api.columnScopeApi.scopeHasColumns(plusMinusNudge.Scope)) {
23
+ return this.api.columnScopeApi
24
24
  .getColumnsForScope(plusMinusNudge.Scope)
25
25
  .map((adaptableColumn) => adaptableColumn.columnId);
26
26
  }
@@ -92,7 +92,7 @@ export class PlusMinusModule extends AdaptableModuleBase {
92
92
  let replacementGridCell;
93
93
  plusMinusNudges.forEach((pmr) => {
94
94
  if (!foundRule) {
95
- if (this.api.scopeApi.isColumnInScope(gridCell.column, pmr.Scope)) {
95
+ if (this.api.columnScopeApi.isColumnInScope(gridCell.column, pmr.Scope)) {
96
96
  if (this.api.gridApi.isCellEditable(gridCell)) {
97
97
  //for aggrid as we are getting strings sometimes
98
98
  if (typeof gridCell.rawValue != 'number') {
@@ -46,7 +46,7 @@ export class ShortcutModule extends AdaptableModuleBase {
46
46
  const matchingShortcut = this.api.shortcutApi
47
47
  .getActiveShortcuts()
48
48
  .find((x) => keyDownEvent.key.toLowerCase() === x.ShortcutKey.toLowerCase() &&
49
- this.api.scopeApi.isColumnInScope(this.api.columnApi.getColumnWithColumnId(columnId), x.Scope));
49
+ this.api.columnScopeApi.isColumnInScope(this.api.columnApi.getColumnWithColumnId(columnId), x.Scope));
50
50
  if (!matchingShortcut || !matchingShortcut.ShortcutValue) {
51
51
  return;
52
52
  }
@@ -15,8 +15,8 @@ export class StyledColumnModule extends AdaptableModuleBase {
15
15
  return this.api.styledColumnApi.getStyledColumns(config);
16
16
  }
17
17
  getExplicitlyReferencedColumnIds(formatColumn) {
18
- if (this.api.scopeApi.scopeHasColumns(formatColumn.Scope)) {
19
- return this.api.scopeApi
18
+ if (this.api.columnScopeApi.scopeHasColumns(formatColumn.Scope)) {
19
+ return this.api.columnScopeApi
20
20
  .getColumnsForScope(formatColumn.Scope)
21
21
  .map((adaptableColumn) => adaptableColumn.columnId);
22
22
  }
@@ -104,7 +104,7 @@ export class StyledColumnModule extends AdaptableModuleBase {
104
104
  // Number
105
105
  // Create Styled Column - Gradient | Percent Bar | Badge
106
106
  case 'Number':
107
- const emptyRanges = this.api.scopeApi.createCellColorRangesForScope({
107
+ const emptyRanges = this.api.columnScopeApi.createCellColorRangesForScope({
108
108
  ColumnIds: [column.columnId],
109
109
  });
110
110
  const newGrandientButton = this.createMenuItemShowPopup('styled-column-gradient-add', 'Create Gradient Column', this.moduleInfo.Popup, 'gradient', Object.assign(Object.assign({}, popupParam), { value: Object.assign(Object.assign({}, newStyledColumn), { GradientStyle: {
@@ -177,7 +177,7 @@ export class StyledColumnModule extends AdaptableModuleBase {
177
177
  name: 'Settings',
178
178
  values: [
179
179
  `Data Rows: ${((_b = (_a = styledColumn.BadgeStyle) === null || _a === void 0 ? void 0 : _a.RowScope) === null || _b === void 0 ? void 0 : _b.ExcludeDataRows) ? 'No' : 'Yes'}`,
180
- `Grouped Rows: ${((_d = (_c = styledColumn.BadgeStyle) === null || _c === void 0 ? void 0 : _c.RowScope) === null || _d === void 0 ? void 0 : _d.ExcludeGroupedRows) ? 'No' : 'Yes'}`,
180
+ `Group Rows: ${((_d = (_c = styledColumn.BadgeStyle) === null || _c === void 0 ? void 0 : _c.RowScope) === null || _d === void 0 ? void 0 : _d.ExcludeGroupRows) ? 'No' : 'Yes'}`,
181
181
  `Summary Rows: ${((_f = (_e = styledColumn.BadgeStyle) === null || _e === void 0 ? void 0 : _e.RowScope) === null || _f === void 0 ? void 0 : _f.ExcludeSummaryRows) ? 'No' : 'Yes'}`,
182
182
  ],
183
183
  });
@@ -3,7 +3,7 @@ export const getFormatColumnSettingsViewItems = (formatColumn) => {
3
3
  const values = [
4
4
  `Cell alignment: ${(_a = formatColumn.CellAlignment) !== null && _a !== void 0 ? _a : 'default'}`,
5
5
  `Data Rows: ${((_b = formatColumn.RowScope) === null || _b === void 0 ? void 0 : _b.ExcludeDataRows) ? 'Yes' : 'No'}`,
6
- `Grouped Rows: ${((_c = formatColumn.RowScope) === null || _c === void 0 ? void 0 : _c.ExcludeGroupedRows) ? 'Yes' : 'No'}`,
6
+ `Group Rows: ${((_c = formatColumn.RowScope) === null || _c === void 0 ? void 0 : _c.ExcludeGroupRows) ? 'Yes' : 'No'}`,
7
7
  `Row Summaries: ${((_d = formatColumn.RowScope) === null || _d === void 0 ? void 0 : _d.ExcludeSummaryRows) ? 'Yes' : 'No'}`,
8
8
  ].filter(Boolean);
9
9
  return {
@@ -74,9 +74,9 @@ export class CellPopupService {
74
74
  this.hidePopup();
75
75
  return;
76
76
  }
77
- const cellNotes = this.adaptable.api.noteApi.getNotesForCell(cellPosition);
77
+ const cellNote = this.adaptable.api.noteApi.getNoteForCell(cellPosition);
78
78
  const cellComments = this.adaptable.api.commentApi.getCommentThread(cellPosition);
79
- const hasNotesOrComments = (cellNotes === null || cellNotes === void 0 ? void 0 : cellNotes.length) || cellComments;
79
+ const hasNotesOrComments = cellNote || cellComments;
80
80
  // call only if it is different
81
81
  if (CellPopupService.isSameAddress(openCellAddress, cellPosition)) {
82
82
  return;
@@ -92,9 +92,9 @@ export class CellPopupService {
92
92
  return;
93
93
  }
94
94
  // if open but this has no note, close
95
- const cellNotes = this.adaptable.api.noteApi.getNotesForCell(cellAddress);
95
+ const cellNote = this.adaptable.api.noteApi.getNoteForCell(cellAddress);
96
96
  const cellComments = this.adaptable.api.commentApi.getCommentThread(cellAddress);
97
- const hasNotesOrComments = (cellNotes === null || cellNotes === void 0 ? void 0 : cellNotes.length) || cellComments;
97
+ const hasNotesOrComments = cellNote || cellComments;
98
98
  if (openCellAddress && !hasNotesOrComments) {
99
99
  // hide only if in edit mode
100
100
  // because if you select a cell and move the mouse fast over another cell
@@ -134,7 +134,7 @@ export class ReportService {
134
134
  case 'SelectedColumns':
135
135
  return '[Selected Columns]';
136
136
  case 'ScopeColumns':
137
- return this.adaptableApi.scopeApi.getScopeDescription(report.Scope);
137
+ return this.adaptableApi.columnScopeApi.getScopeDescription(report.Scope);
138
138
  }
139
139
  }
140
140
  GetReportExpressionDescription(report, cols) {
@@ -197,7 +197,7 @@ export class ReportService {
197
197
  reportColumns = report.Scope.ColumnIds.map((columnId) => this.adaptableApi.columnApi.getColumnWithColumnId(columnId)).filter((c) => c);
198
198
  }
199
199
  else {
200
- reportColumns = this.adaptableApi.scopeApi.getColumnsForScope(report.Scope);
200
+ reportColumns = this.adaptableApi.columnScopeApi.getColumnsForScope(report.Scope);
201
201
  }
202
202
  break;
203
203
  }
@@ -15,7 +15,7 @@ export class ValidationService {
15
15
  }
16
16
  let editingRules = this.adaptableApi.alertApi.internalApi
17
17
  .getAlertDefinitionsWithPreventEdit()
18
- .filter((v) => this.adaptableApi.scopeApi.isColumnInScope(cellDataChangedInfo.column, v.Scope));
18
+ .filter((v) => this.adaptableApi.columnScopeApi.isColumnInScope(cellDataChangedInfo.column, v.Scope));
19
19
  let failedValidations = [];
20
20
  if (ArrayExtensions.IsNotEmpty(editingRules)) {
21
21
  editingRules.forEach((alertDefinition) => {
@@ -127,7 +127,7 @@ export class ValidationService {
127
127
  }
128
128
  createValidationDescription(alertDefinition) {
129
129
  var _a, _b;
130
- return (this.adaptableApi.scopeApi.getScopeDescription(alertDefinition.Scope) +
130
+ return (this.adaptableApi.columnScopeApi.getScopeDescription(alertDefinition.Scope) +
131
131
  ' ' +
132
132
  ((_b = (_a = alertDefinition.Rule) === null || _a === void 0 ? void 0 : _a.Predicates) === null || _b === void 0 ? void 0 : _b.map((predicate) => this.adaptableApi.predicateApi.predicateToString(predicate)).join(' AND ')));
133
133
  }
@@ -9,7 +9,7 @@ export class AlertEntityRow extends React.Component {
9
9
  let alertDefinition = this.props.adaptableObject;
10
10
  let messageTypes = ['Info', 'Success', 'Warning', 'Error'];
11
11
  let colItems = cloneObject(this.props.colItems);
12
- colItems[0].Content = (React.createElement(EntityRowItem, { Content: this.props.api.scopeApi.getScopeToString(alertDefinition.Scope) }));
12
+ colItems[0].Content = (React.createElement(EntityRowItem, { Content: this.props.api.columnScopeApi.getScopeToString(alertDefinition.Scope) }));
13
13
  colItems[1].Content = (React.createElement(EntityRowItem, { Content: this.props.api.alertApi.internalApi.getAlertRuleDescription(alertDefinition) }));
14
14
  colItems[2].Content = (React.createElement("div", null,
15
15
  React.createElement(DropdownButton, { showClearButton: false, items: messageTypes.map((item) => ({
@@ -24,7 +24,7 @@ export const AlertScopeWizardSection = (props) => {
24
24
  Predicates: [{ PredicateId: 'AnyChange' }],
25
25
  };
26
26
  }
27
- if (newData.Rule.ObservableExpression !== undefined && !api.scopeApi.scopeIsAll(Scope)) {
27
+ if (newData.Rule.ObservableExpression !== undefined && !api.columnScopeApi.scopeIsAll(Scope)) {
28
28
  // if it had observable expression and the scope is changed to partial
29
29
  // we need to reset to not be an observable expression, as observable is not supported
30
30
  // for partial scope
@@ -32,7 +32,7 @@ export const AlertScopeWizardSection = (props) => {
32
32
  newData.Rule.BooleanExpression = '';
33
33
  }
34
34
  if (newData.Rule.AggregatedBooleanExpression !== undefined &&
35
- !api.scopeApi.scopeIsAll(Scope)) {
35
+ !api.columnScopeApi.scopeIsAll(Scope)) {
36
36
  // if it had aggregation expression and the scope is changed to partial
37
37
  // we need to reset to not be an aggregation expression, as aggregation is not supported
38
38
  // for partial scope
@@ -3,7 +3,7 @@ import { Box, Text } from 'rebass';
3
3
  import { useOnePageAdaptableWizardContext } from '../../Wizard/OnePageAdaptableWizard';
4
4
  import { ValueOptionsTags } from '../../Components/ValueSelector';
5
5
  export const renderScopeSummary = (data) => {
6
- const { api: { scopeApi }, } = useOnePageAdaptableWizardContext();
6
+ const { api: { columnScopeApi: scopeApi }, } = useOnePageAdaptableWizardContext();
7
7
  const columnsInScope = scopeApi.getColumnsForScope(data.Scope);
8
8
  return (React.createElement(React.Fragment, null,
9
9
  React.createElement(Box, null,
@@ -132,7 +132,7 @@ const ModuleView = (props) => {
132
132
  var _a;
133
133
  if ('Scope' in item.abObject) {
134
134
  const abColumn = adaptable.api.columnApi.getColumnWithColumnId(props.selectedColumnId);
135
- return adaptable.api.scopeApi.isColumnInScope(abColumn, item.abObject.Scope);
135
+ return adaptable.api.columnScopeApi.isColumnInScope(abColumn, item.abObject.Scope);
136
136
  }
137
137
  if ('ColumnId' in item.abObject) {
138
138
  return ((_a = item.abObject) === null || _a === void 0 ? void 0 : _a.ColumnId) === props.selectedColumnId;
@@ -42,7 +42,7 @@ const DATA_TYPES_MAP = {
42
42
  };
43
43
  export const renderScopeSummary = (scope, labels) => {
44
44
  const adaptable = useAdaptable();
45
- const scopeApi = adaptable.api.scopeApi;
45
+ const scopeApi = adaptable.api.columnScopeApi;
46
46
  const columnsInScope = scopeApi.getColumnsForScope(scope);
47
47
  return (React.createElement(React.Fragment, null,
48
48
  React.createElement(Box, null,
@@ -58,7 +58,7 @@ const DATA_TYPES_OPTIONS = Object.values(DATA_TYPES_MAP);
58
58
  export const NewScopeComponent = (props) => {
59
59
  var _a, _b;
60
60
  const { api } = useAdaptable();
61
- const { scopeApi, columnApi } = api;
61
+ const { columnScopeApi: scopeApi, columnApi } = api;
62
62
  const [columnsSearchText, setColumnsSearchText] = useState('');
63
63
  const scopeColumns = React.useMemo(() => {
64
64
  const allColumns = props.scopeColumns || columnApi.getColumns();
@@ -1,7 +1,7 @@
1
1
  import * as React from 'react';
2
2
  import { useSelector } from 'react-redux';
3
3
  import { Flex } from 'rebass';
4
- import { GetNotesSelector } from '../../../../Redux/ActionsReducers/NoteRedux';
4
+ import { GetNoteSelector } from '../../../../Redux/ActionsReducers/NoteRedux';
5
5
  import { SystemCommentsAndNotesEditModeSelector, SystemCommentsAndNotesFocusedEntitySelector, SystemCommentsAndNotesSelector, } from '../../../../Redux/ActionsReducers/SystemRedux';
6
6
  import { useAdaptable } from '../../../AdaptableContext';
7
7
  import { CommentsEditor } from '../../../Comments/CommentsEditor';
@@ -13,11 +13,8 @@ const ConnectedNoteEditor = ({ enableEditMode }) => {
13
13
  const editMode = useSelector((state) => SystemCommentsAndNotesEditModeSelector(state.System));
14
14
  const cellPopupService = api.internalApi.getCellPopupService();
15
15
  const cellAddress = useSelector((state) => SystemCommentsAndNotesSelector(state.System));
16
- const [
17
- // Only handle first note for now
18
- // Later we can handle multiple notes
19
- note,] = useSelector((state) => {
20
- return cellAddress ? GetNotesSelector(state.Note, cellAddress) : [];
16
+ const note = useSelector((state) => {
17
+ return cellAddress ? GetNoteSelector(state.Note, cellAddress) : null;
21
18
  });
22
19
  const handleNoteChange = React.useCallback((value) => {
23
20
  api.noteApi.updateNoteText(value, note);
@@ -114,7 +114,7 @@ export class RangesComponent extends React.Component {
114
114
  this.props.updateColumnComparison(columnComparison);
115
115
  }
116
116
  else {
117
- const ranges = this.props.api.scopeApi.createCellColorRangesForScope(this.props.scope);
117
+ const ranges = this.props.api.columnScopeApi.createCellColorRangesForScope(this.props.scope);
118
118
  this.setState({
119
119
  rangesType: 'Standard',
120
120
  });
@@ -24,7 +24,7 @@ export const CustomSortColumnWizardSection = (props) => {
24
24
  const columnSortComparers = api.optionsApi.getCustomSortOptions().customSortComparers || [];
25
25
  const usedColumnIds = [
26
26
  ...customSorts.map((customSort) => customSort.ColumnId),
27
- ...columnSortComparers.map((comparer) => api.scopeApi.getColumnIdsInScope(comparer.scope)),
27
+ ...columnSortComparers.map((comparer) => api.columnScopeApi.getColumnIdsInScope(comparer.scope)),
28
28
  ];
29
29
  // filter out used colum ids, but include the current one
30
30
  return sortableColumns.filter((column) => {
@@ -95,7 +95,7 @@ const buildAdaptableOptions = (mainAdaptableInstance, gridOptions, adaptableCont
95
95
  columnId: 'undoActionColumn',
96
96
  friendlyName: ' ',
97
97
  rowScope: {
98
- ExcludeGroupedRows: true,
98
+ ExcludeGroupRows: true,
99
99
  ExcludeSummaryRows: true,
100
100
  },
101
101
  actionColumnSettings: { suppressMenu: true, suppressMovable: true },
@@ -410,7 +410,7 @@ export const FormatColumnFormatWizardSection = (props) => {
410
410
  update({ DisplayFormat });
411
411
  };
412
412
  const Type = data.DisplayFormat && data.DisplayFormat.Formatter;
413
- const customScopedFormatters = customDisplayFormatters.filter((displayFormatter) => adaptable.api.scopeApi.isScopeInScope(data.Scope, displayFormatter.scope));
413
+ const customScopedFormatters = customDisplayFormatters.filter((displayFormatter) => adaptable.api.columnScopeApi.isScopeInScope(data.Scope, displayFormatter.scope));
414
414
  if (Type === 'NumberFormatter') {
415
415
  return renderNumberFormat(data, update, setFormatOption, customScopedFormatters, formatColumnApi);
416
416
  }
@@ -5,7 +5,7 @@ export function FormatColumnRuleWizardSection(props) {
5
5
  const { data, api, moduleInfo } = useOnePageAdaptableWizardContext();
6
6
  return (React.createElement(EntityRulesEditor, { module: moduleInfo.ModuleName, defaultPredicateId: props.defaultPredicateId,
7
7
  // TODO see what is this
8
- predicateDefs: api.formatColumnApi.internalApi.getFormatColumnDefsForScope(data.Scope), getPredicateDefsForColId: (colId) => api.formatColumnApi.internalApi.getFormatColumnDefsForScope({ ColumnIds: [colId] }), showNoRule: true, showBoolean: true, showAggregation: false, showObservable: false, showPredicate: !api.scopeApi.scopeIsAll(data.Scope), data: data, onChange: (formatColumn) => props.onChange(formatColumn), descriptions: {
8
+ predicateDefs: api.formatColumnApi.internalApi.getFormatColumnDefsForScope(data.Scope), getPredicateDefsForColId: (colId) => api.formatColumnApi.internalApi.getFormatColumnDefsForScope({ ColumnIds: [colId] }), showNoRule: true, showBoolean: true, showAggregation: false, showObservable: false, showPredicate: !api.columnScopeApi.scopeIsAll(data.Scope), data: data, onChange: (formatColumn) => props.onChange(formatColumn), descriptions: {
9
9
  selectPredicate: 'Create a Format Column Rule - to be applied when data changes',
10
10
  useBooleanQuery: (React.createElement(React.Fragment, null,
11
11
  "Use an BooleanQuery if ",
@@ -17,7 +17,7 @@ export const FormatColumnScopeWizardSection = (props) => {
17
17
  }, scope: data.Scope, updateScope: (Scope) => {
18
18
  var _a, _b;
19
19
  const newData = Object.assign(Object.assign({}, data), { Scope });
20
- const wholeRow = api.scopeApi.scopeIsAll(Scope);
20
+ const wholeRow = api.columnScopeApi.scopeIsAll(Scope);
21
21
  if ((_b = (_a = newData.Rule) === null || _a === void 0 ? void 0 : _a.Predicates) === null || _b === void 0 ? void 0 : _b.length) {
22
22
  if (wholeRow) {
23
23
  // if scope is whole row, a predicate cannot be present, so we set the rule
@@ -18,8 +18,8 @@ export const renderFormatColumnSettingsSummary = (data) => {
18
18
  React.createElement(Tag, null, ((_b = data.RowScope) === null || _b === void 0 ? void 0 : _b.ExcludeDataRows) ? 'no' : 'yes')),
19
19
  ' ',
20
20
  React.createElement(Text, { mt: 3 },
21
- "Grouped Rows ",
22
- React.createElement(Tag, null, ((_c = data.RowScope) === null || _c === void 0 ? void 0 : _c.ExcludeGroupedRows) ? 'no' : 'yes')),
21
+ "Group Rows ",
22
+ React.createElement(Tag, null, ((_c = data.RowScope) === null || _c === void 0 ? void 0 : _c.ExcludeGroupRows) ? 'no' : 'yes')),
23
23
  React.createElement(Text, { mt: 3 },
24
24
  "Summary Rows ",
25
25
  React.createElement(Tag, null, ((_d = data.RowScope) === null || _d === void 0 ? void 0 : _d.ExcludeSummaryRows) ? 'no' : 'yes'))));
@@ -38,7 +38,7 @@ export const FormatColumnSettingsWizardSection = (props) => {
38
38
  props.onChange(Object.assign(Object.assign({}, data), { RowScope: Object.assign(Object.assign({}, data.RowScope), { ExcludeDataRows }) }));
39
39
  };
40
40
  const onExcludeGroupedRowsChanged = (ExcludeGroupedRows) => {
41
- props.onChange(Object.assign(Object.assign({}, data), { RowScope: Object.assign(Object.assign({}, data.RowScope), { ExcludeGroupedRows }) }));
41
+ props.onChange(Object.assign(Object.assign({}, data), { RowScope: Object.assign(Object.assign({}, data.RowScope), { ExcludeGroupRows: ExcludeGroupedRows }) }));
42
42
  };
43
43
  const onExcludeSummaryRowsChanged = (ExcludeSummaryRows) => {
44
44
  props.onChange(Object.assign(Object.assign({}, data), { RowScope: Object.assign(Object.assign({}, data.RowScope), { ExcludeSummaryRows }) }));
@@ -62,9 +62,9 @@ export const FormatColumnSettingsWizardSection = (props) => {
62
62
  React.createElement(FormRow, { label: "Exclude Data Rows:" },
63
63
  React.createElement(Flex, { alignItems: "center", marginLeft: 2 },
64
64
  React.createElement(CheckBox, { "data-name": "exclude-data-rows-checkbox", checked: (_a = data.RowScope) === null || _a === void 0 ? void 0 : _a.ExcludeDataRows, onChange: onExcludeDataRowsChanged, mr: 2 }))),
65
- React.createElement(FormRow, { label: "Exclude Grouped Rows:" },
65
+ React.createElement(FormRow, { label: "Exclude Group Rows:" },
66
66
  React.createElement(Flex, { alignItems: "center", marginLeft: 2 },
67
- React.createElement(CheckBox, { "data-name": "exclude-grouped-rows-checkbox", checked: (_b = data.RowScope) === null || _b === void 0 ? void 0 : _b.ExcludeGroupedRows, onChange: onExcludeGroupedRowsChanged, mr: 2 }))),
67
+ React.createElement(CheckBox, { "data-name": "exclude-grouped-rows-checkbox", checked: (_b = data.RowScope) === null || _b === void 0 ? void 0 : _b.ExcludeGroupRows, onChange: onExcludeGroupedRowsChanged, mr: 2 }))),
68
68
  React.createElement(FormRow, { label: "Exclude Row Summaries:" },
69
69
  React.createElement(Flex, { alignItems: "center", marginLeft: 2 },
70
70
  React.createElement(CheckBox, { "data-name": "exclude-summary-rows-checkbox", checked: (_c = data.RowScope) === null || _c === void 0 ? void 0 : _c.ExcludeSummaryRows, onChange: onExcludeSummaryRowsChanged, mr: 2 }))))))));
@@ -9,7 +9,7 @@ export const isFormatColumnStyleValid = (data, api) => {
9
9
  UIHelper.IsEmptyStyle(data.Style) &&
10
10
  data.DisplayFormat === undefined &&
11
11
  data.CellAlignment === undefined &&
12
- !api.scopeApi.isSingleBooleanColumnScope(data.Scope)) {
12
+ !api.columnScopeApi.isSingleBooleanColumnScope(data.Scope)) {
13
13
  return 'No format applied';
14
14
  }
15
15
  return true;
@@ -43,7 +43,7 @@ export const RowGroupingSection = (props) => {
43
43
  props.onChange(Object.assign(Object.assign({}, layout), { RowGroupedColumns: columnIds }));
44
44
  };
45
45
  return (React.createElement(Tabs, { style: { height: '100%' } },
46
- React.createElement(Tabs.Tab, null, "Grouped Rows"),
46
+ React.createElement(Tabs.Tab, null, "Group Rows"),
47
47
  ((_a = layout.ExpandedRowGroupValues) === null || _a === void 0 ? void 0 : _a.length) && React.createElement(Tabs.Tab, null, "Expanded Rows"),
48
48
  React.createElement(Tabs.Content, null,
49
49
  React.createElement(ValueSelector, { showFilterInput: true, showSelectedOnlyPosition: "top", filter: columnFilter, toIdentifier: (option) => `${option.columnId}`, toLabel: (option) => { var _a; return (_a = option.friendlyName) !== null && _a !== void 0 ? _a : option.columnId; }, options: sortedGroupableColumns, value: (_b = layout.RowGroupedColumns) !== null && _b !== void 0 ? _b : [], allowReorder: true, xSelectedLabel: () => {
@@ -19,12 +19,12 @@ export class PlusMinusSummaryComponent extends React.Component {
19
19
  render() {
20
20
  let moduleSummaries = [];
21
21
  // title row
22
- let titleRow = (React.createElement(ModuleHeader, { key: this.props.moduleInfo.FriendlyName, moduleInfo: this.props.moduleInfo, moduleSummary: Helper.returnItemCount(this.props.PlusMinusNudges.filter((item) => this.props.api.scopeApi.isColumnInScopeColumns(this.props.summarisedColumn, item.Scope)), this.props.moduleInfo.FriendlyName), onNew: () => this.onNew(), newButtonTooltip: 'Plus / Minus Rule', accessLevel: this.props.accessLevel }));
22
+ let titleRow = (React.createElement(ModuleHeader, { key: this.props.moduleInfo.FriendlyName, moduleInfo: this.props.moduleInfo, moduleSummary: Helper.returnItemCount(this.props.PlusMinusNudges.filter((item) => this.props.api.columnScopeApi.isColumnInScopeColumns(this.props.summarisedColumn, item.Scope)), this.props.moduleInfo.FriendlyName), onNew: () => this.onNew(), newButtonTooltip: 'Plus / Minus Rule', accessLevel: this.props.accessLevel }));
23
23
  moduleSummaries.push(titleRow);
24
24
  // existing items
25
25
  this.props.PlusMinusNudges.map((item, index) => {
26
26
  var _a;
27
- if (this.props.api.scopeApi.isColumnInScopeColumns(this.props.summarisedColumn, item.Scope)) {
27
+ if (this.props.api.columnScopeApi.isColumnInScopeColumns(this.props.summarisedColumn, item.Scope)) {
28
28
  let detailRow = (React.createElement(ModuleDetail, { key: 'PM' + index, item1: 'Nudge Value: ' + item.NudgeValue, item2: ((_a = item.Rule) === null || _a === void 0 ? void 0 : _a.BooleanExpression) ? item.Rule.BooleanExpression : 'Always', configEnity: item, showShare: this.props.teamSharingActivated, moduleInfo: this.props.moduleInfo, onEdit: () => this.onEdit(item), onShare: (config) => this.props.onShare(item, config), onDelete: PlusMinusRedux.PlusMinusNudgeDelete(item), accessLevel: this.props.accessLevel }));
29
29
  moduleSummaries.push(detailRow);
30
30
  }
@@ -7,7 +7,6 @@ import HelpBlock from '../../../components/HelpBlock';
7
7
  import SimpleButton from '../../../components/SimpleButton';
8
8
  import { Tabs } from '../../../components/Tabs';
9
9
  import ObjectFactory from '../../../Utilities/ObjectFactory';
10
- import { AdaptablePopover } from '../../AdaptablePopover';
11
10
  import { AdaptableIconSelector } from '../../Components/AdaptableIconSelector';
12
11
  import { PredicateEditor } from '../../Components/PredicateEditor/PredicateEditor';
13
12
  import { StyleComponent } from '../../Components/StyleComponent';
@@ -16,6 +15,7 @@ import { StyledColumnBadgePreview } from './StyledColumnWizardStyleSection/Compo
16
15
  import { Badge } from '../../Components/Badge';
17
16
  import { AdaptableIconComponent } from '../../Components/AdaptableIconComponent';
18
17
  import { DEFAULT_INTEGER_DISPLAY_VALUE, DEFAULT_STRING_DISPLAY_VALUE, } from '../../../Utilities/Constants/GeneralConstants';
18
+ import { Accordion } from '../../../components/Accordion';
19
19
  const BadgeEditor = (props) => {
20
20
  var _a, _b;
21
21
  const { api } = useOnePageAdaptableWizardContext();
@@ -36,12 +36,10 @@ const BadgeEditor = (props) => {
36
36
  React.createElement(FormRow, { label: "Style" },
37
37
  React.createElement(HelpBlock, { fontSize: 2, mb: 1, mt: 2 }, "Select the Style for the Badge"),
38
38
  ' ',
39
- React.createElement(AdaptablePopover, { showEvent: "mouseenter", hideEvent: "mouseleave", showIcon: false, useButton: false, popoverMaxWidth: 700, bodyText: [
40
- React.createElement(StyleComponent, { showFontSizeAs: "radio", headless: true, hidePreview: true, api: api, Style: (_a = badge.Style) !== null && _a !== void 0 ? _a : {}, UpdateStyle: (Style) => {
41
- onChange(Object.assign(Object.assign({}, badge), { Style }));
42
- } }),
43
- ] },
44
- React.createElement(SimpleButton, { variant: "raised" }, "Edit Badge Style"))),
39
+ React.createElement(Accordion, { title: "Edit Badge Style" },
40
+ React.createElement(StyleComponent, { showFontSizeAs: "radio", headless: true, hidePreview: true, api: api, Style: (_a = badge.Style) !== null && _a !== void 0 ? _a : {}, UpdateStyle: (Style) => {
41
+ onChange(Object.assign(Object.assign({}, badge), { Style }));
42
+ } }))),
45
43
  !api.columnApi.hasArrayDataType(columnId) && ( // dont show predicates for arrays
46
44
  (React.createElement(
47
45
  FormRow,
@@ -55,7 +55,7 @@ export const StyledColumnWizardColumnSection = (props) => {
55
55
  }, [data]);
56
56
  const handleColumnsChange = (columnIds) => {
57
57
  const columnId = columnIds[0];
58
- const emptyRanges = api.scopeApi.createCellColorRangesForScope({
58
+ const emptyRanges = api.columnScopeApi.createCellColorRangesForScope({
59
59
  ColumnIds: [columnId],
60
60
  });
61
61
  const newStyledColumn = Object.assign(Object.assign({}, data), { ColumnId: columnId });
@@ -14,8 +14,8 @@ export const renderStyledColumnWizardSettingsSummary = (data) => {
14
14
  React.createElement(Tag, null, ((_a = badgeStyle.RowScope) === null || _a === void 0 ? void 0 : _a.ExcludeDataRows) ? 'no' : 'yes')),
15
15
  ' ',
16
16
  React.createElement(Text, { mt: 3 },
17
- "Grouped Rows ",
18
- React.createElement(Tag, null, ((_b = badgeStyle.RowScope) === null || _b === void 0 ? void 0 : _b.ExcludeGroupedRows) ? 'no' : 'yes')),
17
+ "Group Rows ",
18
+ React.createElement(Tag, null, ((_b = badgeStyle.RowScope) === null || _b === void 0 ? void 0 : _b.ExcludeGroupRows) ? 'no' : 'yes')),
19
19
  React.createElement(Text, { mt: 3 },
20
20
  "Summary Rows ",
21
21
  React.createElement(Tag, null, ((_c = badgeStyle.RowScope) === null || _c === void 0 ? void 0 : _c.ExcludeSummaryRows) ? 'no' : 'yes'))));
@@ -27,7 +27,7 @@ export const StyledColumnWizardSettingsSection = (props) => {
27
27
  props.onChange(Object.assign(Object.assign({}, data), { BadgeStyle: Object.assign(Object.assign({}, data.BadgeStyle), { RowScope: Object.assign(Object.assign({}, data.BadgeStyle.RowScope), { ExcludeDataRows }) }) }));
28
28
  };
29
29
  const onExcludeGroupedRowsChanged = (ExcludeGroupedRows) => {
30
- props.onChange(Object.assign(Object.assign({}, data), { BadgeStyle: Object.assign(Object.assign({}, data.BadgeStyle), { RowScope: Object.assign(Object.assign({}, data.BadgeStyle.RowScope), { ExcludeGroupedRows }) }) }));
30
+ props.onChange(Object.assign(Object.assign({}, data), { BadgeStyle: Object.assign(Object.assign({}, data.BadgeStyle), { RowScope: Object.assign(Object.assign({}, data.BadgeStyle.RowScope), { ExcludeGroupRows: ExcludeGroupedRows }) }) }));
31
31
  };
32
32
  const onExcludeSummaryRowsChanged = (ExcludeSummaryRows) => {
33
33
  props.onChange(Object.assign(Object.assign({}, data), { BadgeStyle: Object.assign(Object.assign({}, data.BadgeStyle), { RowScope: Object.assign(Object.assign({}, data.BadgeStyle.RowScope), { ExcludeSummaryRows }) }) }));
@@ -42,11 +42,11 @@ export const StyledColumnWizardSettingsSection = (props) => {
42
42
  React.createElement(CheckBox, { "data-name": "exclude-data-rows-checkbox", checked:
43
43
  // @ts-ignore
44
44
  (_a = data.BadgeStyle.RowScope) === null || _a === void 0 ? void 0 : _a.ExcludeDataRows, onChange: onExcludeDataRowsChanged, mr: 2 }))),
45
- React.createElement(FormRow, { label: "Exclude Grouped Rows:" },
45
+ React.createElement(FormRow, { label: "Exclude Group Rows:" },
46
46
  React.createElement(Flex, { alignItems: "center", marginLeft: 2 },
47
47
  React.createElement(CheckBox, { "data-name": "exclude-grouped-rows-checkbox", checked:
48
48
  // @ts-ignore
49
- (_b = data.BadgeStyle.RowScope) === null || _b === void 0 ? void 0 : _b.ExcludeGroupedRows, onChange: onExcludeGroupedRowsChanged, mr: 2 }))),
49
+ (_b = data.BadgeStyle.RowScope) === null || _b === void 0 ? void 0 : _b.ExcludeGroupRows, onChange: onExcludeGroupedRowsChanged, mr: 2 }))),
50
50
  React.createElement(FormRow, { label: "Exclude Row Summaries:" },
51
51
  React.createElement(Flex, { alignItems: "center", marginLeft: 2 },
52
52
  React.createElement(CheckBox, { "data-name": "exclude-summary-rows-checkbox", checked:
@@ -204,7 +204,7 @@ export const StyledColumnWizardStyleSection = (props) => {
204
204
  };
205
205
  const handleRangeValueTypeChange = React.useCallback((rangeValueType) => {
206
206
  const ranges = rangeValueType === 'Number'
207
- ? api.scopeApi.createCellColorRangesForScope(scope)
207
+ ? api.columnScopeApi.createCellColorRangesForScope(scope)
208
208
  : [
209
209
  {
210
210
  Min: 0,