@adaptabletools/adaptable-cjs 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} +4 -4
  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 +5 -5
  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 +2 -5
  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 +41 -0
  75. package/src/components/icons/collapse-all.d.ts +3 -0
  76. package/src/components/icons/collapse-all.js +7 -0
  77. package/src/components/icons/csv.d.ts +3 -0
  78. package/src/components/icons/csv.js +7 -0
  79. package/src/components/icons/data-object.d.ts +3 -0
  80. package/src/components/icons/data-object.js +7 -0
  81. package/src/components/icons/excel.d.ts +3 -0
  82. package/src/components/icons/excel.js +8 -0
  83. package/src/components/icons/expand-all.d.ts +3 -0
  84. package/src/components/icons/expand-all.js +7 -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.cjs.tsbuildinfo +1 -1
  90. /package/src/Api/{ScopeApi.js → ColumnScopeApi.js} +0 -0
@@ -61,8 +61,8 @@ class AlertModule extends AdaptableModuleBase_1.AdaptableModuleBase {
61
61
  if (queryExpression) {
62
62
  return this.api.expressionApi.getColumnsFromExpression(queryExpression);
63
63
  }
64
- else if (this.api.scopeApi.scopeHasColumns(alertDefinition.Scope)) {
65
- return this.api.scopeApi
64
+ else if (this.api.columnScopeApi.scopeHasColumns(alertDefinition.Scope)) {
65
+ return this.api.columnScopeApi
66
66
  .getColumnsForScope(alertDefinition.Scope)
67
67
  .map((adaptableColumn) => adaptableColumn.columnId);
68
68
  }
@@ -31,8 +31,8 @@ class ExportModule extends AdaptableModuleBase_1.AdaptableModuleBase {
31
31
  }
32
32
  getExplicitlyReferencedColumnIds(report) {
33
33
  if (report.ReportColumnScope === 'ScopeColumns' &&
34
- this.api.scopeApi.scopeHasColumns(report.Scope)) {
35
- return this.api.scopeApi
34
+ this.api.columnScopeApi.scopeHasColumns(report.Scope)) {
35
+ return this.api.columnScopeApi
36
36
  .getColumnsForScope(report.Scope)
37
37
  .map((adaptableColumn) => adaptableColumn.columnId);
38
38
  }
@@ -52,7 +52,7 @@ class ExportModule extends AdaptableModuleBase_1.AdaptableModuleBase {
52
52
  let returnMenuItems = [];
53
53
  const availableSystemReports = this.api.exportApi.getAvailableSystemReports();
54
54
  if (availableSystemReports.includes(GeneralConstants_1.VISUAL_DATA_REPORT)) {
55
- returnMenuItems.push(this.createMenuItemClickFunction('export-visual-data-excel', 'Excel', this.moduleInfo.Glyph, () => this.export(this.api.exportApi.getReportByName(GeneralConstants_1.VISUAL_DATA_REPORT), Enums_1.ExportDestination.Excel)));
55
+ returnMenuItems.push(this.createMenuItemClickFunction('export-visual-data-excel', 'Excel', 'excel', () => this.export(this.api.exportApi.getReportByName(GeneralConstants_1.VISUAL_DATA_REPORT), Enums_1.ExportDestination.Excel)));
56
56
  }
57
57
  if (availableSystemReports.includes(GeneralConstants_1.ALL_DATA_REPORT)) {
58
58
  const allDataReport = this.api.exportApi.getReportByName(GeneralConstants_1.ALL_DATA_REPORT);
@@ -92,9 +92,26 @@ class ExportModule extends AdaptableModuleBase_1.AdaptableModuleBase {
92
92
  const getMenuItemName = (reportName, destination) => {
93
93
  return `export-${adjustName(reportName)}-${adjustName(destination)}`;
94
94
  };
95
+ const getMenuItemIcon = (exportDestination) => {
96
+ // once we have icons for csv, clipboard etc then i would like to add them here one by one and use moduleinfo for custom
97
+ switch (exportDestination) {
98
+ case Enums_1.ExportDestination.Excel:
99
+ return 'excel';
100
+ case Enums_1.ExportDestination.Clipboard:
101
+ return 'clipboard';
102
+ case Enums_1.ExportDestination.CSV:
103
+ return 'csv';
104
+ case Enums_1.ExportDestination.JSON:
105
+ return 'json';
106
+ case Enums_1.ExportDestination.Table:
107
+ return 'grid';
108
+ }
109
+ return this.moduleInfo.Glyph;
110
+ };
95
111
  const menuItems = [];
96
112
  for (const destination of this.api.exportApi.getAvailableExportDestinations()) {
97
- menuItems.push(this.createMenuItemClickFunction(getMenuItemName(report.Name, destination), destination, this.moduleInfo.Glyph, () => this.export(report, destination)));
113
+ menuItems.push(this.createMenuItemClickFunction(getMenuItemName(report.Name, destination), destination, getMenuItemIcon(destination), // 'filter', // this.moduleInfo.Glyph,
114
+ () => this.export(report, destination)));
98
115
  }
99
116
  for (const customDestination of this.api.exportApi.getCustomDestinations()) {
100
117
  menuItems.push(this.createMenuItemClickFunction(getMenuItemName(report.Name, customDestination.name), customDestination.name, this.moduleInfo.Glyph, () => this.export(report, customDestination.name)));
@@ -50,8 +50,8 @@ class FlashingCellModule extends AdaptableModuleBase_1.AdaptableModuleBase {
50
50
  if (queryExpression) {
51
51
  return this.api.expressionApi.getColumnsFromExpression(queryExpression);
52
52
  }
53
- else if (this.api.scopeApi.scopeHasColumns(alertDefinition.Scope)) {
54
- return this.api.scopeApi
53
+ else if (this.api.columnScopeApi.scopeHasColumns(alertDefinition.Scope)) {
54
+ return this.api.columnScopeApi
55
55
  .getColumnsForScope(alertDefinition.Scope)
56
56
  .map((adaptableColumn) => adaptableColumn.columnId);
57
57
  }
@@ -69,7 +69,7 @@ class FlashingCellModule extends AdaptableModuleBase_1.AdaptableModuleBase {
69
69
  if (!this.api.columnApi.isCalculatedColumn(column.columnId)) {
70
70
  const flashingCellDefinitions = this.api.flashingCellApi.getFlashingCellDefinitions();
71
71
  const flashingCellForCurrentColumn = flashingCellDefinitions.find((flashingCellDefinition) => {
72
- return this.api.scopeApi.isColumnInScope(column, flashingCellDefinition.Scope);
72
+ return this.api.columnScopeApi.isColumnInScope(column, flashingCellDefinition.Scope);
73
73
  });
74
74
  if (flashingCellForCurrentColumn) {
75
75
  return [
@@ -169,7 +169,7 @@ class FlashingCellModule extends AdaptableModuleBase_1.AdaptableModuleBase {
169
169
  const definitions = this.api.flashingCellApi.getActiveFlashingCellDefinitions();
170
170
  const defaultNoPredicateReturn = false;
171
171
  let relatedFlashingCellsDefinitions = definitions
172
- .filter((v) => this.api.scopeApi.isColumnInScope(dataChangedEvent.column, v.Scope))
172
+ .filter((v) => this.api.columnScopeApi.isColumnInScope(dataChangedEvent.column, v.Scope))
173
173
  .filter((flashingCellDefinition) => !(0, AdaptableQuery_1.isReactiveQuery)(flashingCellDefinition.Rule));
174
174
  let triggeredFlashingCells = [];
175
175
  if (ArrayExtensions_1.ArrayExtensions.IsNotNullOrEmpty(relatedFlashingCellsDefinitions)) {
@@ -26,8 +26,8 @@ class FormatColumnModule extends AdaptableModuleBase_1.AdaptableModuleBase {
26
26
  if (queryExpression) {
27
27
  return this.api.expressionApi.getColumnsFromExpression(queryExpression);
28
28
  }
29
- else if (this.api.scopeApi.scopeHasColumns(formatColumn.Scope)) {
30
- return this.api.scopeApi
29
+ else if (this.api.columnScopeApi.scopeHasColumns(formatColumn.Scope)) {
30
+ return this.api.columnScopeApi
31
31
  .getColumnsForScope(formatColumn.Scope)
32
32
  .map((adaptableColumn) => adaptableColumn.columnId);
33
33
  }
@@ -15,7 +15,7 @@ class NoteModule extends AdaptableModuleBase_1.AdaptableModuleBase {
15
15
  return super.isModuleAvailable() && !this.api.optionsApi.getAutogeneratePrimaryKey();
16
16
  }
17
17
  createContextMenuItems(menuContext) {
18
- var _a, _b, _c;
18
+ var _a, _b;
19
19
  if (!this.isModuleAvailable()) {
20
20
  return;
21
21
  }
@@ -32,10 +32,10 @@ class NoteModule extends AdaptableModuleBase_1.AdaptableModuleBase {
32
32
  if (!isCellNotable) {
33
33
  return;
34
34
  }
35
- const [note] = (_c = this.adaptable.api.noteApi.getNotesForCell({
35
+ const note = this.adaptable.api.noteApi.getNoteForCell({
36
36
  PrimaryKeyValue: menuContext.primaryKeyValue,
37
37
  ColumnId: menuContext.adaptableColumn.columnId,
38
- })) !== null && _c !== void 0 ? _c : [];
38
+ });
39
39
  if (note) {
40
40
  return [
41
41
  this.createMenuItemClickFunction('note-remove', 'Remove Note', this.moduleInfo.Glyph, () => {
@@ -23,8 +23,8 @@ class PlusMinusModule extends AdaptableModuleBase_1.AdaptableModuleBase {
23
23
  return this.api.plusMinusApi.getAllPlusMinus(config);
24
24
  }
25
25
  getExplicitlyReferencedColumnIds(plusMinusNudge) {
26
- if (this.api.scopeApi.scopeHasColumns(plusMinusNudge.Scope)) {
27
- return this.api.scopeApi
26
+ if (this.api.columnScopeApi.scopeHasColumns(plusMinusNudge.Scope)) {
27
+ return this.api.columnScopeApi
28
28
  .getColumnsForScope(plusMinusNudge.Scope)
29
29
  .map((adaptableColumn) => adaptableColumn.columnId);
30
30
  }
@@ -96,7 +96,7 @@ class PlusMinusModule extends AdaptableModuleBase_1.AdaptableModuleBase {
96
96
  let replacementGridCell;
97
97
  plusMinusNudges.forEach((pmr) => {
98
98
  if (!foundRule) {
99
- if (this.api.scopeApi.isColumnInScope(gridCell.column, pmr.Scope)) {
99
+ if (this.api.columnScopeApi.isColumnInScope(gridCell.column, pmr.Scope)) {
100
100
  if (this.api.gridApi.isCellEditable(gridCell)) {
101
101
  //for aggrid as we are getting strings sometimes
102
102
  if (typeof gridCell.rawValue != 'number') {
@@ -50,7 +50,7 @@ class ShortcutModule extends AdaptableModuleBase_1.AdaptableModuleBase {
50
50
  const matchingShortcut = this.api.shortcutApi
51
51
  .getActiveShortcuts()
52
52
  .find((x) => keyDownEvent.key.toLowerCase() === x.ShortcutKey.toLowerCase() &&
53
- this.api.scopeApi.isColumnInScope(this.api.columnApi.getColumnWithColumnId(columnId), x.Scope));
53
+ this.api.columnScopeApi.isColumnInScope(this.api.columnApi.getColumnWithColumnId(columnId), x.Scope));
54
54
  if (!matchingShortcut || !matchingShortcut.ShortcutValue) {
55
55
  return;
56
56
  }
@@ -19,8 +19,8 @@ class StyledColumnModule extends AdaptableModuleBase_1.AdaptableModuleBase {
19
19
  return this.api.styledColumnApi.getStyledColumns(config);
20
20
  }
21
21
  getExplicitlyReferencedColumnIds(formatColumn) {
22
- if (this.api.scopeApi.scopeHasColumns(formatColumn.Scope)) {
23
- return this.api.scopeApi
22
+ if (this.api.columnScopeApi.scopeHasColumns(formatColumn.Scope)) {
23
+ return this.api.columnScopeApi
24
24
  .getColumnsForScope(formatColumn.Scope)
25
25
  .map((adaptableColumn) => adaptableColumn.columnId);
26
26
  }
@@ -108,7 +108,7 @@ class StyledColumnModule extends AdaptableModuleBase_1.AdaptableModuleBase {
108
108
  // Number
109
109
  // Create Styled Column - Gradient | Percent Bar | Badge
110
110
  case 'Number':
111
- const emptyRanges = this.api.scopeApi.createCellColorRangesForScope({
111
+ const emptyRanges = this.api.columnScopeApi.createCellColorRangesForScope({
112
112
  ColumnIds: [column.columnId],
113
113
  });
114
114
  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: {
@@ -181,7 +181,7 @@ class StyledColumnModule extends AdaptableModuleBase_1.AdaptableModuleBase {
181
181
  name: 'Settings',
182
182
  values: [
183
183
  `Data Rows: ${((_b = (_a = styledColumn.BadgeStyle) === null || _a === void 0 ? void 0 : _a.RowScope) === null || _b === void 0 ? void 0 : _b.ExcludeDataRows) ? 'No' : 'Yes'}`,
184
- `Grouped Rows: ${((_d = (_c = styledColumn.BadgeStyle) === null || _c === void 0 ? void 0 : _c.RowScope) === null || _d === void 0 ? void 0 : _d.ExcludeGroupedRows) ? 'No' : 'Yes'}`,
184
+ `Group Rows: ${((_d = (_c = styledColumn.BadgeStyle) === null || _c === void 0 ? void 0 : _c.RowScope) === null || _d === void 0 ? void 0 : _d.ExcludeGroupRows) ? 'No' : 'Yes'}`,
185
185
  `Summary Rows: ${((_f = (_e = styledColumn.BadgeStyle) === null || _e === void 0 ? void 0 : _e.RowScope) === null || _f === void 0 ? void 0 : _f.ExcludeSummaryRows) ? 'No' : 'Yes'}`,
186
186
  ],
187
187
  });
@@ -6,7 +6,7 @@ const getFormatColumnSettingsViewItems = (formatColumn) => {
6
6
  const values = [
7
7
  `Cell alignment: ${(_a = formatColumn.CellAlignment) !== null && _a !== void 0 ? _a : 'default'}`,
8
8
  `Data Rows: ${((_b = formatColumn.RowScope) === null || _b === void 0 ? void 0 : _b.ExcludeDataRows) ? 'Yes' : 'No'}`,
9
- `Grouped Rows: ${((_c = formatColumn.RowScope) === null || _c === void 0 ? void 0 : _c.ExcludeGroupedRows) ? 'Yes' : 'No'}`,
9
+ `Group Rows: ${((_c = formatColumn.RowScope) === null || _c === void 0 ? void 0 : _c.ExcludeGroupRows) ? 'Yes' : 'No'}`,
10
10
  `Row Summaries: ${((_d = formatColumn.RowScope) === null || _d === void 0 ? void 0 : _d.ExcludeSummaryRows) ? 'Yes' : 'No'}`,
11
11
  ].filter(Boolean);
12
12
  return {
@@ -78,9 +78,9 @@ class CellPopupService {
78
78
  this.hidePopup();
79
79
  return;
80
80
  }
81
- const cellNotes = this.adaptable.api.noteApi.getNotesForCell(cellPosition);
81
+ const cellNote = this.adaptable.api.noteApi.getNoteForCell(cellPosition);
82
82
  const cellComments = this.adaptable.api.commentApi.getCommentThread(cellPosition);
83
- const hasNotesOrComments = (cellNotes === null || cellNotes === void 0 ? void 0 : cellNotes.length) || cellComments;
83
+ const hasNotesOrComments = cellNote || cellComments;
84
84
  // call only if it is different
85
85
  if (CellPopupService.isSameAddress(openCellAddress, cellPosition)) {
86
86
  return;
@@ -96,9 +96,9 @@ class CellPopupService {
96
96
  return;
97
97
  }
98
98
  // if open but this has no note, close
99
- const cellNotes = this.adaptable.api.noteApi.getNotesForCell(cellAddress);
99
+ const cellNote = this.adaptable.api.noteApi.getNoteForCell(cellAddress);
100
100
  const cellComments = this.adaptable.api.commentApi.getCommentThread(cellAddress);
101
- const hasNotesOrComments = (cellNotes === null || cellNotes === void 0 ? void 0 : cellNotes.length) || cellComments;
101
+ const hasNotesOrComments = cellNote || cellComments;
102
102
  if (openCellAddress && !hasNotesOrComments) {
103
103
  // hide only if in edit mode
104
104
  // because if you select a cell and move the mouse fast over another cell
@@ -138,7 +138,7 @@ class ReportService {
138
138
  case 'SelectedColumns':
139
139
  return '[Selected Columns]';
140
140
  case 'ScopeColumns':
141
- return this.adaptableApi.scopeApi.getScopeDescription(report.Scope);
141
+ return this.adaptableApi.columnScopeApi.getScopeDescription(report.Scope);
142
142
  }
143
143
  }
144
144
  GetReportExpressionDescription(report, cols) {
@@ -201,7 +201,7 @@ class ReportService {
201
201
  reportColumns = report.Scope.ColumnIds.map((columnId) => this.adaptableApi.columnApi.getColumnWithColumnId(columnId)).filter((c) => c);
202
202
  }
203
203
  else {
204
- reportColumns = this.adaptableApi.scopeApi.getColumnsForScope(report.Scope);
204
+ reportColumns = this.adaptableApi.columnScopeApi.getColumnsForScope(report.Scope);
205
205
  }
206
206
  break;
207
207
  }
@@ -19,7 +19,7 @@ class ValidationService {
19
19
  }
20
20
  let editingRules = this.adaptableApi.alertApi.internalApi
21
21
  .getAlertDefinitionsWithPreventEdit()
22
- .filter((v) => this.adaptableApi.scopeApi.isColumnInScope(cellDataChangedInfo.column, v.Scope));
22
+ .filter((v) => this.adaptableApi.columnScopeApi.isColumnInScope(cellDataChangedInfo.column, v.Scope));
23
23
  let failedValidations = [];
24
24
  if (ArrayExtensions_1.ArrayExtensions.IsNotEmpty(editingRules)) {
25
25
  editingRules.forEach((alertDefinition) => {
@@ -131,7 +131,7 @@ class ValidationService {
131
131
  }
132
132
  createValidationDescription(alertDefinition) {
133
133
  var _a, _b;
134
- return (this.adaptableApi.scopeApi.getScopeDescription(alertDefinition.Scope) +
134
+ return (this.adaptableApi.columnScopeApi.getScopeDescription(alertDefinition.Scope) +
135
135
  ' ' +
136
136
  ((_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 ')));
137
137
  }
@@ -13,7 +13,7 @@ class AlertEntityRow extends React.Component {
13
13
  let alertDefinition = this.props.adaptableObject;
14
14
  let messageTypes = ['Info', 'Success', 'Warning', 'Error'];
15
15
  let colItems = (0, Helper_1.cloneObject)(this.props.colItems);
16
- colItems[0].Content = (React.createElement(EntityRowItem_1.EntityRowItem, { Content: this.props.api.scopeApi.getScopeToString(alertDefinition.Scope) }));
16
+ colItems[0].Content = (React.createElement(EntityRowItem_1.EntityRowItem, { Content: this.props.api.columnScopeApi.getScopeToString(alertDefinition.Scope) }));
17
17
  colItems[1].Content = (React.createElement(EntityRowItem_1.EntityRowItem, { Content: this.props.api.alertApi.internalApi.getAlertRuleDescription(alertDefinition) }));
18
18
  colItems[2].Content = (React.createElement("div", null,
19
19
  React.createElement(DropdownButton_1.default, { showClearButton: false, items: messageTypes.map((item) => ({
@@ -28,7 +28,7 @@ const AlertScopeWizardSection = (props) => {
28
28
  Predicates: [{ PredicateId: 'AnyChange' }],
29
29
  };
30
30
  }
31
- if (newData.Rule.ObservableExpression !== undefined && !api.scopeApi.scopeIsAll(Scope)) {
31
+ if (newData.Rule.ObservableExpression !== undefined && !api.columnScopeApi.scopeIsAll(Scope)) {
32
32
  // if it had observable expression and the scope is changed to partial
33
33
  // we need to reset to not be an observable expression, as observable is not supported
34
34
  // for partial scope
@@ -36,7 +36,7 @@ const AlertScopeWizardSection = (props) => {
36
36
  newData.Rule.BooleanExpression = '';
37
37
  }
38
38
  if (newData.Rule.AggregatedBooleanExpression !== undefined &&
39
- !api.scopeApi.scopeIsAll(Scope)) {
39
+ !api.columnScopeApi.scopeIsAll(Scope)) {
40
40
  // if it had aggregation expression and the scope is changed to partial
41
41
  // we need to reset to not be an aggregation expression, as aggregation is not supported
42
42
  // for partial scope
@@ -7,7 +7,7 @@ const rebass_1 = require("rebass");
7
7
  const OnePageAdaptableWizard_1 = require("../../Wizard/OnePageAdaptableWizard");
8
8
  const ValueSelector_1 = require("../../Components/ValueSelector");
9
9
  const renderScopeSummary = (data) => {
10
- const { api: { scopeApi }, } = (0, OnePageAdaptableWizard_1.useOnePageAdaptableWizardContext)();
10
+ const { api: { columnScopeApi: scopeApi }, } = (0, OnePageAdaptableWizard_1.useOnePageAdaptableWizardContext)();
11
11
  const columnsInScope = scopeApi.getColumnsForScope(data.Scope);
12
12
  return (React.createElement(React.Fragment, null,
13
13
  React.createElement(rebass_1.Box, null,
@@ -136,7 +136,7 @@ const ModuleView = (props) => {
136
136
  var _a;
137
137
  if ('Scope' in item.abObject) {
138
138
  const abColumn = adaptable.api.columnApi.getColumnWithColumnId(props.selectedColumnId);
139
- return adaptable.api.scopeApi.isColumnInScope(abColumn, item.abObject.Scope);
139
+ return adaptable.api.columnScopeApi.isColumnInScope(abColumn, item.abObject.Scope);
140
140
  }
141
141
  if ('ColumnId' in item.abObject) {
142
142
  return ((_a = item.abObject) === null || _a === void 0 ? void 0 : _a.ColumnId) === props.selectedColumnId;
@@ -47,7 +47,7 @@ const DATA_TYPES_MAP = {
47
47
  };
48
48
  const renderScopeSummary = (scope, labels) => {
49
49
  const adaptable = (0, AdaptableContext_1.useAdaptable)();
50
- const scopeApi = adaptable.api.scopeApi;
50
+ const scopeApi = adaptable.api.columnScopeApi;
51
51
  const columnsInScope = scopeApi.getColumnsForScope(scope);
52
52
  return (React.createElement(React.Fragment, null,
53
53
  React.createElement(rebass_1.Box, null,
@@ -64,7 +64,7 @@ const DATA_TYPES_OPTIONS = Object.values(DATA_TYPES_MAP);
64
64
  const NewScopeComponent = (props) => {
65
65
  var _a, _b;
66
66
  const { api } = (0, AdaptableContext_1.useAdaptable)();
67
- const { scopeApi, columnApi } = api;
67
+ const { columnScopeApi: scopeApi, columnApi } = api;
68
68
  const [columnsSearchText, setColumnsSearchText] = (0, react_1.useState)('');
69
69
  const scopeColumns = React.useMemo(() => {
70
70
  const allColumns = props.scopeColumns || columnApi.getColumns();
@@ -17,11 +17,8 @@ const ConnectedNoteEditor = ({ enableEditMode }) => {
17
17
  const editMode = (0, react_redux_1.useSelector)((state) => (0, SystemRedux_1.SystemCommentsAndNotesEditModeSelector)(state.System));
18
18
  const cellPopupService = api.internalApi.getCellPopupService();
19
19
  const cellAddress = (0, react_redux_1.useSelector)((state) => (0, SystemRedux_1.SystemCommentsAndNotesSelector)(state.System));
20
- const [
21
- // Only handle first note for now
22
- // Later we can handle multiple notes
23
- note,] = (0, react_redux_1.useSelector)((state) => {
24
- return cellAddress ? (0, NoteRedux_1.GetNotesSelector)(state.Note, cellAddress) : [];
20
+ const note = (0, react_redux_1.useSelector)((state) => {
21
+ return cellAddress ? (0, NoteRedux_1.GetNoteSelector)(state.Note, cellAddress) : null;
25
22
  });
26
23
  const handleNoteChange = React.useCallback((value) => {
27
24
  api.noteApi.updateNoteText(value, note);
@@ -118,7 +118,7 @@ class RangesComponent extends React.Component {
118
118
  this.props.updateColumnComparison(columnComparison);
119
119
  }
120
120
  else {
121
- const ranges = this.props.api.scopeApi.createCellColorRangesForScope(this.props.scope);
121
+ const ranges = this.props.api.columnScopeApi.createCellColorRangesForScope(this.props.scope);
122
122
  this.setState({
123
123
  rangesType: 'Standard',
124
124
  });
@@ -30,7 +30,7 @@ const CustomSortColumnWizardSection = (props) => {
30
30
  const columnSortComparers = api.optionsApi.getCustomSortOptions().customSortComparers || [];
31
31
  const usedColumnIds = [
32
32
  ...customSorts.map((customSort) => customSort.ColumnId),
33
- ...columnSortComparers.map((comparer) => api.scopeApi.getColumnIdsInScope(comparer.scope)),
33
+ ...columnSortComparers.map((comparer) => api.columnScopeApi.getColumnIdsInScope(comparer.scope)),
34
34
  ];
35
35
  // filter out used colum ids, but include the current one
36
36
  return sortableColumns.filter((column) => {
@@ -100,7 +100,7 @@ const buildAdaptableOptions = (mainAdaptableInstance, gridOptions, adaptableCont
100
100
  columnId: 'undoActionColumn',
101
101
  friendlyName: ' ',
102
102
  rowScope: {
103
- ExcludeGroupedRows: true,
103
+ ExcludeGroupRows: true,
104
104
  ExcludeSummaryRows: true,
105
105
  },
106
106
  actionColumnSettings: { suppressMenu: true, suppressMovable: true },
@@ -417,7 +417,7 @@ const FormatColumnFormatWizardSection = (props) => {
417
417
  update({ DisplayFormat });
418
418
  };
419
419
  const Type = data.DisplayFormat && data.DisplayFormat.Formatter;
420
- const customScopedFormatters = customDisplayFormatters.filter((displayFormatter) => adaptable.api.scopeApi.isScopeInScope(data.Scope, displayFormatter.scope));
420
+ const customScopedFormatters = customDisplayFormatters.filter((displayFormatter) => adaptable.api.columnScopeApi.isScopeInScope(data.Scope, displayFormatter.scope));
421
421
  if (Type === 'NumberFormatter') {
422
422
  return renderNumberFormat(data, update, setFormatOption, customScopedFormatters, formatColumnApi);
423
423
  }
@@ -9,7 +9,7 @@ function FormatColumnRuleWizardSection(props) {
9
9
  const { data, api, moduleInfo } = (0, OnePageAdaptableWizard_1.useOnePageAdaptableWizardContext)();
10
10
  return (React.createElement(EntityRulesEditor_1.EntityRulesEditor, { module: moduleInfo.ModuleName, defaultPredicateId: props.defaultPredicateId,
11
11
  // TODO see what is this
12
- 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: {
12
+ 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: {
13
13
  selectPredicate: 'Create a Format Column Rule - to be applied when data changes',
14
14
  useBooleanQuery: (React.createElement(React.Fragment, null,
15
15
  "Use an BooleanQuery if ",
@@ -22,7 +22,7 @@ const FormatColumnScopeWizardSection = (props) => {
22
22
  }, scope: data.Scope, updateScope: (Scope) => {
23
23
  var _a, _b;
24
24
  const newData = Object.assign(Object.assign({}, data), { Scope });
25
- const wholeRow = api.scopeApi.scopeIsAll(Scope);
25
+ const wholeRow = api.columnScopeApi.scopeIsAll(Scope);
26
26
  if ((_b = (_a = newData.Rule) === null || _a === void 0 ? void 0 : _a.Predicates) === null || _b === void 0 ? void 0 : _b.length) {
27
27
  if (wholeRow) {
28
28
  // if scope is whole row, a predicate cannot be present, so we set the rule
@@ -22,8 +22,8 @@ const renderFormatColumnSettingsSummary = (data) => {
22
22
  React.createElement(Tag_1.Tag, null, ((_b = data.RowScope) === null || _b === void 0 ? void 0 : _b.ExcludeDataRows) ? 'no' : 'yes')),
23
23
  ' ',
24
24
  React.createElement(rebass_1.Text, { mt: 3 },
25
- "Grouped Rows ",
26
- React.createElement(Tag_1.Tag, null, ((_c = data.RowScope) === null || _c === void 0 ? void 0 : _c.ExcludeGroupedRows) ? 'no' : 'yes')),
25
+ "Group Rows ",
26
+ React.createElement(Tag_1.Tag, null, ((_c = data.RowScope) === null || _c === void 0 ? void 0 : _c.ExcludeGroupRows) ? 'no' : 'yes')),
27
27
  React.createElement(rebass_1.Text, { mt: 3 },
28
28
  "Summary Rows ",
29
29
  React.createElement(Tag_1.Tag, null, ((_d = data.RowScope) === null || _d === void 0 ? void 0 : _d.ExcludeSummaryRows) ? 'no' : 'yes'))));
@@ -43,7 +43,7 @@ const FormatColumnSettingsWizardSection = (props) => {
43
43
  props.onChange(Object.assign(Object.assign({}, data), { RowScope: Object.assign(Object.assign({}, data.RowScope), { ExcludeDataRows }) }));
44
44
  };
45
45
  const onExcludeGroupedRowsChanged = (ExcludeGroupedRows) => {
46
- props.onChange(Object.assign(Object.assign({}, data), { RowScope: Object.assign(Object.assign({}, data.RowScope), { ExcludeGroupedRows }) }));
46
+ props.onChange(Object.assign(Object.assign({}, data), { RowScope: Object.assign(Object.assign({}, data.RowScope), { ExcludeGroupRows: ExcludeGroupedRows }) }));
47
47
  };
48
48
  const onExcludeSummaryRowsChanged = (ExcludeSummaryRows) => {
49
49
  props.onChange(Object.assign(Object.assign({}, data), { RowScope: Object.assign(Object.assign({}, data.RowScope), { ExcludeSummaryRows }) }));
@@ -67,9 +67,9 @@ const FormatColumnSettingsWizardSection = (props) => {
67
67
  React.createElement(FormLayout_1.FormRow, { label: "Exclude Data Rows:" },
68
68
  React.createElement(rebass_1.Flex, { alignItems: "center", marginLeft: 2 },
69
69
  React.createElement(CheckBox_1.CheckBox, { "data-name": "exclude-data-rows-checkbox", checked: (_a = data.RowScope) === null || _a === void 0 ? void 0 : _a.ExcludeDataRows, onChange: onExcludeDataRowsChanged, mr: 2 }))),
70
- React.createElement(FormLayout_1.FormRow, { label: "Exclude Grouped Rows:" },
70
+ React.createElement(FormLayout_1.FormRow, { label: "Exclude Group Rows:" },
71
71
  React.createElement(rebass_1.Flex, { alignItems: "center", marginLeft: 2 },
72
- React.createElement(CheckBox_1.CheckBox, { "data-name": "exclude-grouped-rows-checkbox", checked: (_b = data.RowScope) === null || _b === void 0 ? void 0 : _b.ExcludeGroupedRows, onChange: onExcludeGroupedRowsChanged, mr: 2 }))),
72
+ React.createElement(CheckBox_1.CheckBox, { "data-name": "exclude-grouped-rows-checkbox", checked: (_b = data.RowScope) === null || _b === void 0 ? void 0 : _b.ExcludeGroupRows, onChange: onExcludeGroupedRowsChanged, mr: 2 }))),
73
73
  React.createElement(FormLayout_1.FormRow, { label: "Exclude Row Summaries:" },
74
74
  React.createElement(rebass_1.Flex, { alignItems: "center", marginLeft: 2 },
75
75
  React.createElement(CheckBox_1.CheckBox, { "data-name": "exclude-summary-rows-checkbox", checked: (_c = data.RowScope) === null || _c === void 0 ? void 0 : _c.ExcludeSummaryRows, onChange: onExcludeSummaryRowsChanged, mr: 2 }))))))));
@@ -13,7 +13,7 @@ const isFormatColumnStyleValid = (data, api) => {
13
13
  UIHelper_1.default.IsEmptyStyle(data.Style) &&
14
14
  data.DisplayFormat === undefined &&
15
15
  data.CellAlignment === undefined &&
16
- !api.scopeApi.isSingleBooleanColumnScope(data.Scope)) {
16
+ !api.columnScopeApi.isSingleBooleanColumnScope(data.Scope)) {
17
17
  return 'No format applied';
18
18
  }
19
19
  return true;
@@ -48,7 +48,7 @@ const RowGroupingSection = (props) => {
48
48
  props.onChange(Object.assign(Object.assign({}, layout), { RowGroupedColumns: columnIds }));
49
49
  };
50
50
  return (React.createElement(Tabs_1.Tabs, { style: { height: '100%' } },
51
- React.createElement(Tabs_1.Tabs.Tab, null, "Grouped Rows"),
51
+ React.createElement(Tabs_1.Tabs.Tab, null, "Group Rows"),
52
52
  ((_a = layout.ExpandedRowGroupValues) === null || _a === void 0 ? void 0 : _a.length) && React.createElement(Tabs_1.Tabs.Tab, null, "Expanded Rows"),
53
53
  React.createElement(Tabs_1.Tabs.Content, null,
54
54
  React.createElement(ValueSelector_1.ValueSelector, { showFilterInput: true, showSelectedOnlyPosition: "top", filter: Utilities_1.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: () => {
@@ -23,12 +23,12 @@ class PlusMinusSummaryComponent extends React.Component {
23
23
  render() {
24
24
  let moduleSummaries = [];
25
25
  // title row
26
- let titleRow = (React.createElement(ModuleHeader_1.ModuleHeader, { key: this.props.moduleInfo.FriendlyName, moduleInfo: this.props.moduleInfo, moduleSummary: Helper_1.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 }));
26
+ let titleRow = (React.createElement(ModuleHeader_1.ModuleHeader, { key: this.props.moduleInfo.FriendlyName, moduleInfo: this.props.moduleInfo, moduleSummary: Helper_1.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 }));
27
27
  moduleSummaries.push(titleRow);
28
28
  // existing items
29
29
  this.props.PlusMinusNudges.map((item, index) => {
30
30
  var _a;
31
- if (this.props.api.scopeApi.isColumnInScopeColumns(this.props.summarisedColumn, item.Scope)) {
31
+ if (this.props.api.columnScopeApi.isColumnInScopeColumns(this.props.summarisedColumn, item.Scope)) {
32
32
  let detailRow = (React.createElement(ModuleDetail_1.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 }));
33
33
  moduleSummaries.push(detailRow);
34
34
  }
@@ -11,7 +11,6 @@ const HelpBlock_1 = tslib_1.__importDefault(require("../../../components/HelpBlo
11
11
  const SimpleButton_1 = tslib_1.__importDefault(require("../../../components/SimpleButton"));
12
12
  const Tabs_1 = require("../../../components/Tabs");
13
13
  const ObjectFactory_1 = tslib_1.__importDefault(require("../../../Utilities/ObjectFactory"));
14
- const AdaptablePopover_1 = require("../../AdaptablePopover");
15
14
  const AdaptableIconSelector_1 = require("../../Components/AdaptableIconSelector");
16
15
  const PredicateEditor_1 = require("../../Components/PredicateEditor/PredicateEditor");
17
16
  const StyleComponent_1 = require("../../Components/StyleComponent");
@@ -20,6 +19,7 @@ const StyledColumnBadgePreview_1 = require("./StyledColumnWizardStyleSection/Com
20
19
  const Badge_1 = require("../../Components/Badge");
21
20
  const AdaptableIconComponent_1 = require("../../Components/AdaptableIconComponent");
22
21
  const GeneralConstants_1 = require("../../../Utilities/Constants/GeneralConstants");
22
+ const Accordion_1 = require("../../../components/Accordion");
23
23
  const BadgeEditor = (props) => {
24
24
  var _a, _b;
25
25
  const { api } = (0, OnePageAdaptableWizard_1.useOnePageAdaptableWizardContext)();
@@ -40,12 +40,10 @@ const BadgeEditor = (props) => {
40
40
  React.createElement(FormLayout_1.FormRow, { label: "Style" },
41
41
  React.createElement(HelpBlock_1.default, { fontSize: 2, mb: 1, mt: 2 }, "Select the Style for the Badge"),
42
42
  ' ',
43
- React.createElement(AdaptablePopover_1.AdaptablePopover, { showEvent: "mouseenter", hideEvent: "mouseleave", showIcon: false, useButton: false, popoverMaxWidth: 700, bodyText: [
44
- React.createElement(StyleComponent_1.StyleComponent, { showFontSizeAs: "radio", headless: true, hidePreview: true, api: api, Style: (_a = badge.Style) !== null && _a !== void 0 ? _a : {}, UpdateStyle: (Style) => {
45
- onChange(Object.assign(Object.assign({}, badge), { Style }));
46
- } }),
47
- ] },
48
- React.createElement(SimpleButton_1.default, { variant: "raised" }, "Edit Badge Style"))),
43
+ React.createElement(Accordion_1.Accordion, { title: "Edit Badge Style" },
44
+ React.createElement(StyleComponent_1.StyleComponent, { showFontSizeAs: "radio", headless: true, hidePreview: true, api: api, Style: (_a = badge.Style) !== null && _a !== void 0 ? _a : {}, UpdateStyle: (Style) => {
45
+ onChange(Object.assign(Object.assign({}, badge), { Style }));
46
+ } }))),
49
47
  !api.columnApi.hasArrayDataType(columnId) && ( // dont show predicates for arrays
50
48
  (React.createElement(
51
49
  FormLayout_1.FormRow,
@@ -61,7 +61,7 @@ const StyledColumnWizardColumnSection = (props) => {
61
61
  }, [data]);
62
62
  const handleColumnsChange = (columnIds) => {
63
63
  const columnId = columnIds[0];
64
- const emptyRanges = api.scopeApi.createCellColorRangesForScope({
64
+ const emptyRanges = api.columnScopeApi.createCellColorRangesForScope({
65
65
  ColumnIds: [columnId],
66
66
  });
67
67
  const newStyledColumn = Object.assign(Object.assign({}, data), { ColumnId: columnId });
@@ -18,8 +18,8 @@ const renderStyledColumnWizardSettingsSummary = (data) => {
18
18
  React.createElement(Tag_1.Tag, null, ((_a = badgeStyle.RowScope) === null || _a === void 0 ? void 0 : _a.ExcludeDataRows) ? 'no' : 'yes')),
19
19
  ' ',
20
20
  React.createElement(rebass_1.Text, { mt: 3 },
21
- "Grouped Rows ",
22
- React.createElement(Tag_1.Tag, null, ((_b = badgeStyle.RowScope) === null || _b === void 0 ? void 0 : _b.ExcludeGroupedRows) ? 'no' : 'yes')),
21
+ "Group Rows ",
22
+ React.createElement(Tag_1.Tag, null, ((_b = badgeStyle.RowScope) === null || _b === void 0 ? void 0 : _b.ExcludeGroupRows) ? 'no' : 'yes')),
23
23
  React.createElement(rebass_1.Text, { mt: 3 },
24
24
  "Summary Rows ",
25
25
  React.createElement(Tag_1.Tag, null, ((_c = badgeStyle.RowScope) === null || _c === void 0 ? void 0 : _c.ExcludeSummaryRows) ? 'no' : 'yes'))));
@@ -32,7 +32,7 @@ const StyledColumnWizardSettingsSection = (props) => {
32
32
  props.onChange(Object.assign(Object.assign({}, data), { BadgeStyle: Object.assign(Object.assign({}, data.BadgeStyle), { RowScope: Object.assign(Object.assign({}, data.BadgeStyle.RowScope), { ExcludeDataRows }) }) }));
33
33
  };
34
34
  const onExcludeGroupedRowsChanged = (ExcludeGroupedRows) => {
35
- props.onChange(Object.assign(Object.assign({}, data), { BadgeStyle: Object.assign(Object.assign({}, data.BadgeStyle), { RowScope: Object.assign(Object.assign({}, data.BadgeStyle.RowScope), { ExcludeGroupedRows }) }) }));
35
+ props.onChange(Object.assign(Object.assign({}, data), { BadgeStyle: Object.assign(Object.assign({}, data.BadgeStyle), { RowScope: Object.assign(Object.assign({}, data.BadgeStyle.RowScope), { ExcludeGroupRows: ExcludeGroupedRows }) }) }));
36
36
  };
37
37
  const onExcludeSummaryRowsChanged = (ExcludeSummaryRows) => {
38
38
  props.onChange(Object.assign(Object.assign({}, data), { BadgeStyle: Object.assign(Object.assign({}, data.BadgeStyle), { RowScope: Object.assign(Object.assign({}, data.BadgeStyle.RowScope), { ExcludeSummaryRows }) }) }));
@@ -47,11 +47,11 @@ const StyledColumnWizardSettingsSection = (props) => {
47
47
  React.createElement(CheckBox_1.CheckBox, { "data-name": "exclude-data-rows-checkbox", checked:
48
48
  // @ts-ignore
49
49
  (_a = data.BadgeStyle.RowScope) === null || _a === void 0 ? void 0 : _a.ExcludeDataRows, onChange: onExcludeDataRowsChanged, mr: 2 }))),
50
- React.createElement(FormLayout_1.FormRow, { label: "Exclude Grouped Rows:" },
50
+ React.createElement(FormLayout_1.FormRow, { label: "Exclude Group Rows:" },
51
51
  React.createElement(rebass_1.Flex, { alignItems: "center", marginLeft: 2 },
52
52
  React.createElement(CheckBox_1.CheckBox, { "data-name": "exclude-grouped-rows-checkbox", checked:
53
53
  // @ts-ignore
54
- (_b = data.BadgeStyle.RowScope) === null || _b === void 0 ? void 0 : _b.ExcludeGroupedRows, onChange: onExcludeGroupedRowsChanged, mr: 2 }))),
54
+ (_b = data.BadgeStyle.RowScope) === null || _b === void 0 ? void 0 : _b.ExcludeGroupRows, onChange: onExcludeGroupedRowsChanged, mr: 2 }))),
55
55
  React.createElement(FormLayout_1.FormRow, { label: "Exclude Row Summaries:" },
56
56
  React.createElement(rebass_1.Flex, { alignItems: "center", marginLeft: 2 },
57
57
  React.createElement(CheckBox_1.CheckBox, { "data-name": "exclude-summary-rows-checkbox", checked:
@@ -210,7 +210,7 @@ const StyledColumnWizardStyleSection = (props) => {
210
210
  };
211
211
  const handleRangeValueTypeChange = React.useCallback((rangeValueType) => {
212
212
  const ranges = rangeValueType === 'Number'
213
- ? api.scopeApi.createCellColorRangesForScope(scope)
213
+ ? api.columnScopeApi.createCellColorRangesForScope(scope)
214
214
  : [
215
215
  {
216
216
  Min: 0,