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

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 (56) hide show
  1. package/package.json +1 -1
  2. package/src/Api/AdaptableApi.d.ts +2 -2
  3. package/src/Api/{ScopeApi.d.ts → ColumnScopeApi.d.ts} +2 -2
  4. package/src/Api/GridApi.d.ts +5 -0
  5. package/src/Api/Implementation/AdaptableApiImpl.d.ts +2 -2
  6. package/src/Api/Implementation/AdaptableApiImpl.js +3 -3
  7. package/src/Api/Implementation/AlertApiImpl.js +3 -3
  8. package/src/Api/Implementation/ApiBase.d.ts +2 -2
  9. package/src/Api/Implementation/ApiBase.js +2 -2
  10. package/src/Api/Implementation/ColumnFilterApiImpl.js +1 -1
  11. package/src/Api/Implementation/{ScopeApiImpl.d.ts → ColumnScopeApiImpl.d.ts} +2 -2
  12. package/src/Api/Implementation/{ScopeApiImpl.js → ColumnScopeApiImpl.js} +2 -2
  13. package/src/Api/Implementation/FlashingCellApiImpl.js +1 -1
  14. package/src/Api/Implementation/FormatColumnApiImpl.js +3 -3
  15. package/src/Api/Implementation/GridApiImpl.d.ts +1 -0
  16. package/src/Api/Implementation/GridApiImpl.js +5 -0
  17. package/src/Api/Implementation/UserInterfaceApiImpl.js +3 -3
  18. package/src/Api/Internal/AdaptableInternalApi.js +1 -1
  19. package/src/Api/Internal/AlertInternalApi.js +3 -3
  20. package/src/Api/Internal/CustomSortInternalApi.js +1 -1
  21. package/src/Api/Internal/ExportInternalApi.js +1 -1
  22. package/src/Api/Internal/ExpressionInternalApi.js +1 -1
  23. package/src/Api/Internal/FormatColumnInternalApi.js +12 -13
  24. package/src/Api/Internal/StyledColumnInternalApi.js +1 -1
  25. package/src/Strategy/AlertModule.js +2 -2
  26. package/src/Strategy/ExportModule.js +2 -2
  27. package/src/Strategy/FlashingCellModule.js +4 -4
  28. package/src/Strategy/FormatColumnModule.js +2 -2
  29. package/src/Strategy/PlusMinusModule.js +3 -3
  30. package/src/Strategy/ShortcutModule.js +1 -1
  31. package/src/Strategy/StyledColumnModule.js +3 -3
  32. package/src/Utilities/Services/ReportService.js +2 -2
  33. package/src/Utilities/Services/ValidationService.js +2 -2
  34. package/src/View/Alert/AlertEntityRow.js +1 -1
  35. package/src/View/Alert/Wizard/AlertScopeWizardSection.js +2 -2
  36. package/src/View/Alert/Wizard/BaseAlertScopeWizardSection.js +1 -1
  37. package/src/View/ColumnInfo/ColumnInfo.js +1 -1
  38. package/src/View/Components/NewScopeComponent.js +2 -2
  39. package/src/View/Components/RangesComponent.js +1 -1
  40. package/src/View/CustomSort/Wizard/CustomSortColumnWizardSection.js +1 -1
  41. package/src/View/FormatColumn/Wizard/FormatColumnFormatWizardSection.js +1 -1
  42. package/src/View/FormatColumn/Wizard/FormatColumnRuleWizardSection.js +1 -1
  43. package/src/View/FormatColumn/Wizard/FormatColumnScopeWizardSection.js +1 -1
  44. package/src/View/FormatColumn/Wizard/FormatColumnStyleWizardSection.js +1 -1
  45. package/src/View/PlusMinus/PlusMinusSummary.js +2 -2
  46. package/src/View/StyledColumn/Wizard/StyledColumnWizardColumnSection.js +1 -1
  47. package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/StyledColumnWizardStyleSection.js +1 -1
  48. package/src/agGrid/ActionColumnRenderer.js +10 -11
  49. package/src/agGrid/AdaptableAgGrid.js +2 -3
  50. package/src/agGrid/AgGridColumnAdapter.js +8 -8
  51. package/src/agGrid/BadgeRenderer.js +6 -7
  52. package/src/env.js +2 -2
  53. package/src/metamodel/adaptable.metamodel.js +1 -1
  54. package/src/types.d.ts +1 -1
  55. package/tsconfig.esm.tsbuildinfo +1 -1
  56. /package/src/Api/{ScopeApi.js → ColumnScopeApi.js} +0 -0
@@ -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();
@@ -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) => {
@@ -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
@@ -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;
@@ -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
  }
@@ -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 });
@@ -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,
@@ -2,7 +2,6 @@ import SimpleButton from '../components/SimpleButton';
2
2
  import * as React from 'react';
3
3
  import { useRerender } from '../components/utils/useRerender';
4
4
  import { renderWithAdaptableContext } from '../View/renderWithAdaptableContext';
5
- import { ROW_SUMMARY_ROW_ID } from '../PredefinedConfig/Common/RowSummary';
6
5
  const ActionButtons = (props) => {
7
6
  const { buttons, adaptableApi, context, rerender } = props;
8
7
  return (React.createElement(React.Fragment, null, buttons.map((button, index) => {
@@ -33,7 +32,7 @@ const ActionButtons = (props) => {
33
32
  })));
34
33
  };
35
34
  export const ReactActionColumnRenderer = (props) => {
36
- var _a, _b, _c, _d;
35
+ var _a, _b, _c;
37
36
  const rerender = useRerender();
38
37
  const adaptable = props.context.__adaptable;
39
38
  const { actionButtons, actionColumn } = adaptable.api.internalApi.getActionButtonsAndActionColumn(props.colDef);
@@ -41,20 +40,20 @@ export const ReactActionColumnRenderer = (props) => {
41
40
  return null;
42
41
  }
43
42
  const isGroupedRow = adaptable.api.gridApi.isGroupRowNode(props.node);
44
- const isSummaryRow = (_a = props === null || props === void 0 ? void 0 : props.data) === null || _a === void 0 ? void 0 : _a[ROW_SUMMARY_ROW_ID];
43
+ const isSummaryRow = adaptable.api.gridApi.isSummaryNode(props.node);
45
44
  let shouldRender = true;
46
45
  if (isGroupedRow) {
47
- if ((_b = actionColumn.rowScope) === null || _b === void 0 ? void 0 : _b.ExcludeGroupedRows) {
46
+ if ((_a = actionColumn.rowScope) === null || _a === void 0 ? void 0 : _a.ExcludeGroupedRows) {
48
47
  shouldRender = false;
49
48
  }
50
49
  }
51
50
  else if (isSummaryRow) {
52
- if ((_c = actionColumn.rowScope) === null || _c === void 0 ? void 0 : _c.ExcludeSummaryRows) {
51
+ if ((_b = actionColumn.rowScope) === null || _b === void 0 ? void 0 : _b.ExcludeSummaryRows) {
53
52
  shouldRender = false;
54
53
  }
55
54
  }
56
55
  else {
57
- if ((_d = actionColumn.rowScope) === null || _d === void 0 ? void 0 : _d.ExcludeDataRows) {
56
+ if ((_c = actionColumn.rowScope) === null || _c === void 0 ? void 0 : _c.ExcludeDataRows) {
58
57
  shouldRender = false;
59
58
  }
60
59
  }
@@ -77,7 +76,7 @@ export const ReactActionColumnRenderer = (props) => {
77
76
  export class ActionColumnRenderer {
78
77
  // gets called once before the renderer is used
79
78
  init(params) {
80
- var _a, _b, _c, _d;
79
+ var _a, _b, _c;
81
80
  const adaptable = params.context.__adaptable;
82
81
  const { actionButtons, actionColumn } = adaptable.api.internalApi.getActionButtonsAndActionColumn(params.colDef);
83
82
  if (!actionColumn || !actionButtons.length) {
@@ -87,20 +86,20 @@ export class ActionColumnRenderer {
87
86
  this.eGui = document.createElement('div');
88
87
  this.eGui.className = 'ab-ActionColumn';
89
88
  const isGroupedRow = adaptable.api.gridApi.isGroupRowNode(params.node);
90
- const isSummaryRow = (_a = params === null || params === void 0 ? void 0 : params.data) === null || _a === void 0 ? void 0 : _a[ROW_SUMMARY_ROW_ID];
89
+ const isSummaryRow = adaptable.api.gridApi.isSummaryNode(params.node);
91
90
  let shouldRender = true;
92
91
  if (isGroupedRow) {
93
- if ((_b = actionColumn.rowScope) === null || _b === void 0 ? void 0 : _b.ExcludeGroupedRows) {
92
+ if ((_a = actionColumn.rowScope) === null || _a === void 0 ? void 0 : _a.ExcludeGroupedRows) {
94
93
  shouldRender = false;
95
94
  }
96
95
  }
97
96
  else if (isSummaryRow) {
98
- if ((_c = actionColumn.rowScope) === null || _c === void 0 ? void 0 : _c.ExcludeSummaryRows) {
97
+ if ((_b = actionColumn.rowScope) === null || _b === void 0 ? void 0 : _b.ExcludeSummaryRows) {
99
98
  shouldRender = false;
100
99
  }
101
100
  }
102
101
  else {
103
- if ((_d = actionColumn.rowScope) === null || _d === void 0 ? void 0 : _d.ExcludeDataRows) {
102
+ if ((_c = actionColumn.rowScope) === null || _c === void 0 ? void 0 : _c.ExcludeDataRows) {
104
103
  shouldRender = false;
105
104
  }
106
105
  }
@@ -394,7 +394,6 @@ export class AdaptableAgGrid {
394
394
  adaptableApi: this.api,
395
395
  agGridApi: this.agGridAdapter.getAgGridApi(),
396
396
  });
397
- this.api.userInterfaceApi.hideLoadingScreen();
398
397
  perfInitAdaptableAgGrid.end();
399
398
  return Promise.resolve(this.api);
400
399
  }
@@ -3570,12 +3569,12 @@ export class AdaptableAgGrid {
3570
3569
  if (!dataChangedScope.wholeRow) {
3571
3570
  const columnIds = this.api.expressionApi.getColumnsFromExpression(styleModule.Rule.BooleanExpression);
3572
3571
  if (columnIds.includes(cellDataChangedInfo.column.columnId)) {
3573
- if (this.api.scopeApi.scopeIsAll(styleModule.Scope)) {
3572
+ if (this.api.columnScopeApi.scopeIsAll(styleModule.Scope)) {
3574
3573
  dataChangedScope.wholeRow = true;
3575
3574
  return;
3576
3575
  }
3577
3576
  else {
3578
- this.api.scopeApi
3577
+ this.api.columnScopeApi
3579
3578
  .getColumnsForScope(styleModule.Scope)
3580
3579
  .map((c) => c.columnId)
3581
3580
  .forEach((colId) => {
@@ -10,7 +10,6 @@ import UIHelper from '../View/UIHelper';
10
10
  import { getPercentBarRendererForColumn } from './PercentBarRenderer';
11
11
  import { getBadgeRendererForColumn } from './BadgeRenderer';
12
12
  import Helper from '../Utilities/Helpers/Helper';
13
- import { ROW_SUMMARY_ROW_ID } from '../PredefinedConfig/Common/RowSummary';
14
13
  export class AgGridColumnAdapter {
15
14
  constructor(adaptableInstance) {
16
15
  this.adaptableInstance = adaptableInstance;
@@ -349,19 +348,19 @@ export class AgGridColumnAdapter {
349
348
  const options = mostRelevantFormatColumn.DisplayFormat.Options;
350
349
  if (mostRelevantFormatColumn.DisplayFormat.Formatter === 'NumberFormatter') {
351
350
  // change the Number format - if the scope allows it
352
- if (this.adaptableApi.scopeApi.isColumnInNumericScope(abColumn, mostRelevantFormatColumn.Scope)) {
351
+ if (this.adaptableApi.columnScopeApi.isColumnInNumericScope(abColumn, mostRelevantFormatColumn.Scope)) {
353
352
  return this.adaptableApi.formatColumnApi.internalApi.getNumberFormattedValue(params.value, params.node, abColumn, options);
354
353
  }
355
354
  }
356
355
  if (mostRelevantFormatColumn.DisplayFormat.Formatter === 'DateFormatter') {
357
356
  // change the Date format - if the scope allows it
358
- if (this.adaptableApi.scopeApi.isColumnInDateScope(abColumn, mostRelevantFormatColumn.Scope)) {
357
+ if (this.adaptableApi.columnScopeApi.isColumnInDateScope(abColumn, mostRelevantFormatColumn.Scope)) {
359
358
  return this.adaptableApi.formatColumnApi.internalApi.getDateFormattedValue(params.value, params.node, abColumn, options);
360
359
  }
361
360
  }
362
361
  if (mostRelevantFormatColumn.DisplayFormat.Formatter === 'StringFormatter') {
363
362
  // change the String format - if the scope allows it
364
- if (this.adaptableApi.scopeApi.isColumnInStringsScope(abColumn, mostRelevantFormatColumn.Scope)) {
363
+ if (this.adaptableApi.columnScopeApi.isColumnInStringsScope(abColumn, mostRelevantFormatColumn.Scope)) {
365
364
  return this.adaptableApi.formatColumnApi.internalApi.getStringFormattedValue(params.value, params.node, abColumn, options);
366
365
  }
367
366
  }
@@ -379,7 +378,8 @@ export class AgGridColumnAdapter {
379
378
  const cellEditableFn = this.adaptableOptions.editOptions.isCellEditable;
380
379
  const editableCallback = (params) => {
381
380
  // Adaptable Row Summarie rows are not editable
382
- if (params.node.data[ROW_SUMMARY_ROW_ID]) {
381
+ // if (params.node.data[ROW_SUMMARY_ROW_ID]) {
382
+ if (this.adaptableApi.gridApi.isSummaryNode(params.node)) {
383
383
  return false;
384
384
  }
385
385
  if (!cellEditableFn) {
@@ -403,7 +403,7 @@ export class AgGridColumnAdapter {
403
403
  const preventEditAlertsForColumn = this.adaptableApi.alertApi.internalApi
404
404
  .getAlertDefinitionsWithPreventEdit()
405
405
  .filter((alertDefinition) => {
406
- return this.adaptableApi.scopeApi.isColumnInScope(abColumn, alertDefinition.Scope);
406
+ return this.adaptableApi.columnScopeApi.isColumnInScope(abColumn, alertDefinition.Scope);
407
407
  });
408
408
  const noValidations = !preventEditAlertsForColumn.length && !((_a = this.adaptableOptions.editOptions) === null || _a === void 0 ? void 0 : _a.validateOnServer);
409
409
  if (noValidations) {
@@ -664,7 +664,7 @@ export class AgGridColumnAdapter {
664
664
  return Object.assign(Object.assign({}, this.getFormatColumnCellStyle(gridCell.column, activeFormatColumnsWithStyle, params)), styledColumnStyle);
665
665
  }
666
666
  getStyledColumnStyle(styledColumn, abColumn, params) {
667
- var _a, _b, _c;
667
+ var _a;
668
668
  let style = {};
669
669
  const gradientStyle = styledColumn === null || styledColumn === void 0 ? void 0 : styledColumn.GradientStyle;
670
670
  if (params.value === undefined) {
@@ -689,7 +689,7 @@ export class AgGridColumnAdapter {
689
689
  }
690
690
  if (styledColumn.BadgeStyle &&
691
691
  !((_a = styledColumn.BadgeStyle.RowScope) === null || _a === void 0 ? void 0 : _a.ExcludeSummaryRows) &&
692
- ((_c = (_b = params === null || params === void 0 ? void 0 : params.node) === null || _b === void 0 ? void 0 : _b.data) === null || _c === void 0 ? void 0 : _c[ROW_SUMMARY_ROW_ID])) {
692
+ this.adaptableApi.gridApi.isSummaryNode(params === null || params === void 0 ? void 0 : params.node)) {
693
693
  return style;
694
694
  }
695
695
  if (gradientStyle) {
@@ -1,7 +1,6 @@
1
1
  import { Badge } from '../View/Components/Badge';
2
2
  import { renderWithAdaptableContext } from '../View/renderWithAdaptableContext';
3
3
  import * as React from 'react';
4
- import { ROW_SUMMARY_ROW_ID } from '../PredefinedConfig/Common/RowSummary';
5
4
  export const getBadgeRendererForColumn = (badgeStyle, abColumn, api) => {
6
5
  return class BadgetRenderer {
7
6
  getAdaptableInstance(params) {
@@ -9,31 +8,31 @@ export const getBadgeRendererForColumn = (badgeStyle, abColumn, api) => {
9
8
  return adaptable;
10
9
  }
11
10
  init(params) {
12
- var _a, _b, _c, _d, _e, _f, _g;
11
+ var _a, _b, _c, _d, _e, _f;
13
12
  const adaptable = this.getAdaptableInstance(params);
14
13
  const adapatableApi = adaptable.api;
15
14
  this.eGui = document.createElement('div');
16
15
  this.eGui.className = 'ab-Badge__wrapper';
17
16
  const isGroupedRow = params.node.group;
18
- const isSummaryRow = (_a = params === null || params === void 0 ? void 0 : params.data) === null || _a === void 0 ? void 0 : _a[ROW_SUMMARY_ROW_ID];
17
+ const isSummaryRow = adapatableApi.gridApi.isSummaryNode(params.node);
19
18
  let shouldRender = true;
20
19
  if (isGroupedRow) {
21
- if ((_b = badgeStyle.RowScope) === null || _b === void 0 ? void 0 : _b.ExcludeGroupedRows) {
20
+ if ((_a = badgeStyle.RowScope) === null || _a === void 0 ? void 0 : _a.ExcludeGroupedRows) {
22
21
  shouldRender = false;
23
22
  }
24
23
  }
25
24
  else if (isSummaryRow) {
26
- if ((_c = badgeStyle.RowScope) === null || _c === void 0 ? void 0 : _c.ExcludeSummaryRows) {
25
+ if ((_b = badgeStyle.RowScope) === null || _b === void 0 ? void 0 : _b.ExcludeSummaryRows) {
27
26
  shouldRender = false;
28
27
  }
29
28
  }
30
29
  else {
31
- if ((_d = badgeStyle.RowScope) === null || _d === void 0 ? void 0 : _d.ExcludeDataRows) {
30
+ if ((_c = badgeStyle.RowScope) === null || _c === void 0 ? void 0 : _c.ExcludeDataRows) {
32
31
  shouldRender = false;
33
32
  }
34
33
  }
35
34
  if (!shouldRender) {
36
- const formattedValue = (_g = (_f = (_e = params.formatValue) === null || _e === void 0 ? void 0 : _e.call(params, params.value)) !== null && _f !== void 0 ? _f : params.value) !== null && _g !== void 0 ? _g : '';
35
+ const formattedValue = (_f = (_e = (_d = params.formatValue) === null || _d === void 0 ? void 0 : _d.call(params, params.value)) !== null && _e !== void 0 ? _e : params.value) !== null && _f !== void 0 ? _f : '';
37
36
  this.eGui.innerHTML = formattedValue;
38
37
  return;
39
38
  }
package/src/env.js CHANGED
@@ -1,5 +1,5 @@
1
1
  export default {
2
2
  INFINITE_TABLE_LICENSE_KEY: "StartDate=2021-06-29|EndDate=2030-01-01|Owner=Adaptable|Type=distribution|TS=1624971462479|C=137829811,1004007071,2756196225,1839832928,3994409405,636616862" || '',
3
- PUBLISH_TIMESTAMP: 1712779308766 || Date.now(),
4
- VERSION: "18.0.0-canary.31" || '--current-version--',
3
+ PUBLISH_TIMESTAMP: 1712828124306 || Date.now(),
4
+ VERSION: "18.0.0-canary.32" || '--current-version--',
5
5
  };