@adaptabletools/adaptable-cjs 22.0.0-canary.12 → 22.0.0-canary.14

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 (53) hide show
  1. package/index.css +9 -6
  2. package/index.css.map +1 -1
  3. package/index.d.ts +8 -8
  4. package/index.js +8 -8
  5. package/package.json +1 -1
  6. package/src/AdaptableOptions/UserInterfaceOptions.d.ts +2 -2
  7. package/src/AdaptableState/Common/AdaptableColumn.d.ts +3 -3
  8. package/src/AdaptableState/Common/AggregationColumns.d.ts +1 -0
  9. package/src/AdaptableState/Common/AggregationColumns.js +2 -1
  10. package/src/AdaptableState/Common/TransposeConfig.d.ts +0 -5
  11. package/src/AdaptableState/InitialState.d.ts +1 -1
  12. package/src/Api/ColumnApi.d.ts +1 -1
  13. package/src/Api/Implementation/ColumnApiImpl.d.ts +1 -1
  14. package/src/Api/Implementation/ColumnApiImpl.js +4 -4
  15. package/src/Api/Implementation/GridApiImpl.js +0 -2
  16. package/src/Api/Internal/ColumnInternalApi.d.ts +1 -1
  17. package/src/Api/Internal/ColumnInternalApi.js +4 -2
  18. package/src/Strategy/FormatColumnModule.js +2 -2
  19. package/src/Strategy/StyledColumnModule.js +14 -6
  20. package/src/Strategy/Utilities/FormatColumn/{getFormatColumnSettingsTargetItems.d.ts → getFormatColumnRowTargetItems.d.ts} +1 -1
  21. package/src/Strategy/Utilities/FormatColumn/getFormatColumnRowTargetItems.js +26 -0
  22. package/src/Strategy/Utilities/FormatColumn/getFormatColumnSettingsViewItems.js +5 -13
  23. package/src/Utilities/ExpressionFunctions/aggregatedScalarExpressionFunctions.js +1 -1
  24. package/src/Utilities/getScopeViewItems.js +1 -1
  25. package/src/Utilities/only.d.ts +15 -0
  26. package/src/Utilities/only.js +58 -0
  27. package/src/View/Components/ValueSelector/index.js +7 -2
  28. package/src/View/Export/Wizard/NewReportWizard.js +8 -8
  29. package/src/View/FlashingCell/Wizard/FlashingCellSettingsWizardSection.js +19 -10
  30. package/src/View/FlashingCell/Wizard/FlashingCellWizard.js +1 -1
  31. package/src/View/FormatColumn/Wizard/FormatColumnRowScopeWizardSection.d.ts +8 -0
  32. package/src/View/FormatColumn/Wizard/FormatColumnRowScopeWizardSection.js +86 -0
  33. package/src/View/FormatColumn/Wizard/FormatColumnSettingsWizardSection.js +22 -61
  34. package/src/View/FormatColumn/Wizard/FormatColumnWizard.js +22 -10
  35. package/src/View/Layout/TransposedPopup.js +0 -1
  36. package/src/View/Layout/Wizard/sections/ColumnsSection.js +1 -1
  37. package/src/View/StyledColumn/Wizard/StyledColumnBadgeRowsSection.d.ts +8 -0
  38. package/src/View/StyledColumn/Wizard/{StyledColumnWizardSettingsSection.js → StyledColumnBadgeRowsSection.js} +22 -22
  39. package/src/View/StyledColumn/Wizard/StyledColumnWizard.js +10 -11
  40. package/src/agGrid/AdaptableAgGrid.js +16 -0
  41. package/src/agGrid/AgGridAdapter.js +4 -4
  42. package/src/agGrid/AgGridExportAdapter.d.ts +2 -2
  43. package/src/agGrid/AgGridExportAdapter.js +7 -6
  44. package/src/env.js +2 -2
  45. package/src/metamodel/adaptable.metamodel.js +1 -1
  46. package/src/migration/VersionUpgrade22.js +8 -0
  47. package/tsconfig.cjs.tsbuildinfo +1 -1
  48. package/src/Strategy/Utilities/FormatColumn/getFormatColumnSettingsTargetItems.js +0 -16
  49. package/src/View/FormatColumn/Wizard/FormatColumnTargetWizardSection.d.ts +0 -8
  50. package/src/View/FormatColumn/Wizard/FormatColumnTargetWizardSection.js +0 -37
  51. package/src/View/StyledColumn/Wizard/StyledColumnWizardSettingsSection.d.ts +0 -8
  52. /package/src/View/FormatColumn/Wizard/{FormatColumnScopeWizardSection.d.ts → FormatColumnColumnScopeWizardSection.d.ts} +0 -0
  53. /package/src/View/FormatColumn/Wizard/{FormatColumnScopeWizardSection.js → FormatColumnColumnScopeWizardSection.js} +0 -0
@@ -6,7 +6,8 @@ const React = tslib_1.__importStar(require("react"));
6
6
  const react_1 = require("react");
7
7
  const OnePageAdaptableWizard_1 = require("../../Wizard/OnePageAdaptableWizard");
8
8
  const Helper_1 = require("../../../Utilities/Helpers/Helper");
9
- const FormatColumnScopeWizardSection_1 = require("./FormatColumnScopeWizardSection");
9
+ const FormatColumnColumnScopeWizardSection_1 = require("./FormatColumnColumnScopeWizardSection");
10
+ const FormatColumnRowScopeWizardSection_1 = require("./FormatColumnRowScopeWizardSection");
10
11
  const FormatColumnStyleWizardSection_1 = require("./FormatColumnStyleWizardSection");
11
12
  const FormatColumnFormatWizardSection_1 = require("./FormatColumnFormatWizardSection");
12
13
  const AdaptableContext_1 = require("../../AdaptableContext");
@@ -21,11 +22,22 @@ const Utilities_1 = require("../../Components/EntityRulesEditor/Utilities");
21
22
  const FormatColumnRuleWizardSection_1 = require("./FormatColumnRuleWizardSection");
22
23
  const constants_1 = require("./constants");
23
24
  const ObjectExtensions_1 = require("../../../Utilities/Extensions/ObjectExtensions");
24
- const FormatColumnTargetWizardSection_1 = require("./FormatColumnTargetWizardSection");
25
25
  const Flex_1 = require("../../../components/Flex");
26
26
  const adjustDisplayFormat = (fc, api) => {
27
27
  const formatColumn = { ...fc };
28
28
  let formatDataType = (0, FormatColumnFormatWizardSection_1.getFormatDisplayTypeForScope)(formatColumn.Scope, api);
29
+ // Add RowScope and Target defaults for Format Columns that have been created in Initial State
30
+ if (!formatColumn.RowScope) {
31
+ formatColumn.RowScope = {
32
+ ExcludeDataRows: false,
33
+ ExcludeGroupRows: false,
34
+ ExcludeSummaryRows: false,
35
+ ExcludeTotalRows: false,
36
+ };
37
+ }
38
+ if (!formatColumn.Target) {
39
+ formatColumn.Target = 'cell';
40
+ }
29
41
  if (formatColumn.Target === 'columnHeader') {
30
42
  // Column Headers are always text
31
43
  formatDataType = 'text';
@@ -100,7 +112,7 @@ function FormatColumnWizard(props) {
100
112
  return (React.createElement(OnePageAdaptableWizard_1.OnePageAdaptableWizard, { defaultCurrentSectionName: props.defaultCurrentSectionName, moduleInfo: props.moduleInfo, modal: props.modal, data: formatColumn, onHide: props.onCloseWizard, onFinish: handleFinish, sections: [
101
113
  {
102
114
  title: 'Settings',
103
- details: 'Enter Name and set Additional Properties',
115
+ details: 'Enter Name and other Properties',
104
116
  isValid: (formatColumnData) => {
105
117
  if (!formatColumnData.Name) {
106
118
  return 'Format Column Name cannot be blank';
@@ -117,22 +129,22 @@ function FormatColumnWizard(props) {
117
129
  },
118
130
  },
119
131
  {
120
- title: 'Scope',
132
+ title: 'Columns',
121
133
  details: 'Select which Columns will be formatted',
122
134
  isValid: NewScopeComponent_1.isScopeValid,
123
- renderSummary: FormatColumnScopeWizardSection_1.renderFormatColumnScopeSummary,
135
+ renderSummary: FormatColumnColumnScopeWizardSection_1.renderFormatColumnScopeSummary,
124
136
  render: () => {
125
137
  return (React.createElement(Flex_1.Flex, { flexDirection: "column", className: "twa:p-2 twa:h-full" },
126
- React.createElement(FormatColumnScopeWizardSection_1.FormatColumnScopeWizardSection, { onChange: setFormatColumn })));
138
+ React.createElement(FormatColumnColumnScopeWizardSection_1.FormatColumnScopeWizardSection, { onChange: setFormatColumn })));
127
139
  },
128
140
  },
129
141
  {
130
- title: 'Target',
131
- details: 'Select which Columns Elements will be formatted',
132
- renderSummary: FormatColumnTargetWizardSection_1.renderFormatColumnTargetSummary,
142
+ title: 'Rows',
143
+ details: 'Select which Rows will be formatted',
144
+ renderSummary: FormatColumnRowScopeWizardSection_1.renderFormatColumnRowScopeSummary,
133
145
  render: () => {
134
146
  return (React.createElement(Flex_1.Flex, { flexDirection: "column", className: "twa:p-2 twa:h-full" },
135
- React.createElement(FormatColumnTargetWizardSection_1.FormatColumnTargetWizardSection, { onChange: setFormatColumn })));
147
+ React.createElement(FormatColumnRowScopeWizardSection_1.FormatColumnRowScopeWizardSection, { onChange: setFormatColumn })));
136
148
  },
137
149
  },
138
150
  {
@@ -84,7 +84,6 @@ const TransposedPopup = (props) => {
84
84
  const transposeConfig = {
85
85
  transposedColumnId: rawConfig.transposedColumnId ?? primaryKey,
86
86
  hideTransposedColumn: rawConfig.hideTransposedColumn ?? true,
87
- autosize: rawConfig.autosize ?? true,
88
87
  columnsToTranspose: rawConfig.columnsToTranspose,
89
88
  rowsToTranspose: rawConfig.rowsToTranspose,
90
89
  };
@@ -370,7 +370,7 @@ const ColumnsSection = (props) => {
370
370
  const visibleIds = layout.TableColumns.filter((colId) => {
371
371
  return (layout.ColumnVisibility?.[colId] !== false &&
372
372
  adaptable.api.columnApi.isSelectionColumn(colId) === false &&
373
- !adaptable.api.columnApi.internalApi.isAlwaysHiddenColumn(colId));
373
+ !adaptable.api.columnApi.internalApi.isColumnUIHidden(colId));
374
374
  });
375
375
  const currentlyDisplayedColumnIds = searchInputValue
376
376
  ? currentOrder
@@ -0,0 +1,8 @@
1
+ import * as React from 'react';
2
+ import { StyledColumn } from '../../../types';
3
+ type StyledColumnBadgeRowsSectionProps = {
4
+ onChange: (data: StyledColumn) => void;
5
+ };
6
+ export declare const renderStyledColumnBadgeRowsSummary: (data: StyledColumn) => React.JSX.Element;
7
+ export declare const StyledColumnBadgeRowsSection: (props: StyledColumnBadgeRowsSectionProps) => React.JSX.Element;
8
+ export {};
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.StyledColumnWizardSettingsSection = exports.renderStyledColumnWizardSettingsSummary = void 0;
3
+ exports.StyledColumnBadgeRowsSection = exports.renderStyledColumnBadgeRowsSummary = void 0;
4
4
  const tslib_1 = require("tslib");
5
5
  const React = tslib_1.__importStar(require("react"));
6
6
  const CheckBox_1 = require("../../../components/CheckBox");
@@ -9,7 +9,7 @@ const Tabs_1 = require("../../../components/Tabs");
9
9
  const Tag_1 = require("../../../components/Tag");
10
10
  const OnePageAdaptableWizard_1 = require("../../Wizard/OnePageAdaptableWizard");
11
11
  const Flex_1 = require("../../../components/Flex");
12
- const renderStyledColumnWizardSettingsSummary = (data) => {
12
+ const renderStyledColumnBadgeRowsSummary = (data) => {
13
13
  const badgeStyle = data;
14
14
  return (React.createElement(Flex_1.Box, { className: "twa:p-2" },
15
15
  React.createElement(Flex_1.Box, { className: "twa:mt-3" },
@@ -26,82 +26,82 @@ const renderStyledColumnWizardSettingsSummary = (data) => {
26
26
  "Total Rows ",
27
27
  React.createElement(Tag_1.Tag, null, badgeStyle.RowScope?.ExcludeTotalRows ? 'no' : 'yes'))));
28
28
  };
29
- exports.renderStyledColumnWizardSettingsSummary = renderStyledColumnWizardSettingsSummary;
30
- const StyledColumnWizardSettingsSection = (props) => {
29
+ exports.renderStyledColumnBadgeRowsSummary = renderStyledColumnBadgeRowsSummary;
30
+ const StyledColumnBadgeRowsSection = (props) => {
31
31
  const { data } = (0, OnePageAdaptableWizard_1.useOnePageAdaptableWizardContext)();
32
- const onExcludeDataRowsChanged = (ExcludeDataRows) => {
32
+ const onExcludeDataRowsChanged = (includeDataRows) => {
33
33
  props.onChange({
34
34
  ...data,
35
35
  BadgeStyle: {
36
36
  ...data.BadgeStyle,
37
37
  RowScope: {
38
38
  ...data.BadgeStyle.RowScope,
39
- ExcludeDataRows,
39
+ ExcludeDataRows: !includeDataRows,
40
40
  },
41
41
  },
42
42
  });
43
43
  };
44
- const onExcludeGroupedRowsChanged = (ExcludeGroupedRows) => {
44
+ const onExcludeGroupedRowsChanged = (includeGroupedRows) => {
45
45
  props.onChange({
46
46
  ...data,
47
47
  BadgeStyle: {
48
48
  ...data.BadgeStyle,
49
49
  RowScope: {
50
50
  ...data.BadgeStyle.RowScope,
51
- ExcludeGroupRows: ExcludeGroupedRows,
51
+ ExcludeGroupRows: !includeGroupedRows,
52
52
  },
53
53
  },
54
54
  });
55
55
  };
56
- const onExcludeSummaryRowsChanged = (ExcludeSummaryRows) => {
56
+ const onExcludeSummaryRowsChanged = (includeSummaryRows) => {
57
57
  props.onChange({
58
58
  ...data,
59
59
  BadgeStyle: {
60
60
  ...data.BadgeStyle,
61
61
  RowScope: {
62
62
  ...data.BadgeStyle.RowScope,
63
- ExcludeSummaryRows,
63
+ ExcludeSummaryRows: !includeSummaryRows,
64
64
  },
65
65
  },
66
66
  });
67
67
  };
68
- const onExcludeTotalRowsChanged = (ExcludeTotalRows) => {
68
+ const onExcludeTotalRowsChanged = (includeTotalRows) => {
69
69
  props.onChange({
70
70
  ...data,
71
71
  BadgeStyle: {
72
72
  ...data.BadgeStyle,
73
73
  RowScope: {
74
74
  ...data.BadgeStyle.RowScope,
75
- ExcludeTotalRows,
75
+ ExcludeTotalRows: !includeTotalRows,
76
76
  },
77
77
  },
78
78
  });
79
79
  };
80
80
  return (React.createElement(Tabs_1.Tabs, null,
81
- React.createElement(Tabs_1.Tabs.Tab, null, "Settings"),
81
+ React.createElement(Tabs_1.Tabs.Tab, null, "Row Types"),
82
82
  React.createElement(Tabs_1.Tabs.Content, null,
83
83
  React.createElement(Flex_1.Flex, { flexDirection: "row" },
84
84
  React.createElement(FormLayout_1.default, null,
85
- React.createElement(FormLayout_1.FormRow, { label: "Exclude Data Rows:" },
85
+ React.createElement(FormLayout_1.FormRow, { label: "Data (leaf) Rows:" },
86
86
  React.createElement(Flex_1.Flex, { alignItems: "center", className: "twa:ml-2" },
87
87
  React.createElement(CheckBox_1.CheckBox, { "data-name": "exclude-data-rows-checkbox", className: "twa:mr-2", checked:
88
88
  // @ts-ignore
89
- data.BadgeStyle.RowScope?.ExcludeDataRows, onChange: onExcludeDataRowsChanged }))),
90
- React.createElement(FormLayout_1.FormRow, { label: "Exclude Group Rows:" },
89
+ !data.BadgeStyle.RowScope?.ExcludeDataRows, onChange: onExcludeDataRowsChanged }))),
90
+ React.createElement(FormLayout_1.FormRow, { label: "Group Rows:" },
91
91
  React.createElement(Flex_1.Flex, { alignItems: "center", className: "twa:ml-2" },
92
92
  React.createElement(CheckBox_1.CheckBox, { className: "twa:mr-2", "data-name": "exclude-grouped-rows-checkbox", checked:
93
93
  // @ts-ignore
94
- data.BadgeStyle.RowScope?.ExcludeGroupRows, onChange: onExcludeGroupedRowsChanged }))),
95
- React.createElement(FormLayout_1.FormRow, { label: "Exclude Row Summaries:" },
94
+ !data.BadgeStyle.RowScope?.ExcludeGroupRows, onChange: onExcludeGroupedRowsChanged }))),
95
+ React.createElement(FormLayout_1.FormRow, { label: "Summary Rows:" },
96
96
  React.createElement(Flex_1.Flex, { alignItems: "center", className: "twa:ml-2" },
97
97
  React.createElement(CheckBox_1.CheckBox, { "data-name": "exclude-summary-rows-checkbox", className: "twa:mr-2", checked:
98
98
  // @ts-ignore
99
- data.BadgeStyle.RowScope?.ExcludeSummaryRows, onChange: onExcludeSummaryRowsChanged }))),
99
+ !data.BadgeStyle.RowScope?.ExcludeSummaryRows, onChange: onExcludeSummaryRowsChanged }))),
100
100
  ' ',
101
- React.createElement(FormLayout_1.FormRow, { label: "Exclude Total Rows:" },
101
+ React.createElement(FormLayout_1.FormRow, { label: "Total Rows:" },
102
102
  React.createElement(Flex_1.Flex, { alignItems: "center", className: "twa:ml-2" },
103
103
  React.createElement(CheckBox_1.CheckBox, { "data-name": "exclude-total-rows-checkbox", className: "twa:mr-2", checked:
104
104
  // @ts-ignore
105
- data.BadgeStyle.RowScope?.ExcludeTotalRows, onChange: onExcludeTotalRowsChanged }))))))));
105
+ !data.BadgeStyle.RowScope?.ExcludeTotalRows, onChange: onExcludeTotalRowsChanged }))))))));
106
106
  };
107
- exports.StyledColumnWizardSettingsSection = StyledColumnWizardSettingsSection;
107
+ exports.StyledColumnBadgeRowsSection = StyledColumnBadgeRowsSection;
@@ -12,7 +12,7 @@ const StyledColumnWizardTypeSection_1 = require("./StyledColumnWizardTypeSection
12
12
  const StyledColumnWizardColumnSection_1 = require("./StyledColumnWizardColumnSection");
13
13
  const StyledColumnWizardStyleSection_1 = require("./StyledColumnWizardStyleSection");
14
14
  const Helper_1 = require("../../../Utilities/Helpers/Helper");
15
- const StyledColumnWizardSettingsSection_1 = require("./StyledColumnWizardSettingsSection");
15
+ const StyledColumnBadgeRowsSection_1 = require("./StyledColumnBadgeRowsSection");
16
16
  const StyledColumnSparklineSettingsSection_1 = require("./StyledColumnSparklineSettingsSection");
17
17
  const ObjectTagsWizardSection_1 = require("../../Wizard/ObjectTagsWizardSection");
18
18
  const StyledColumnBadgeSection_1 = require("./StyledColumnBadgeSection");
@@ -52,15 +52,6 @@ const StyledColumnWizard = (props) => {
52
52
  }
53
53
  props.onFinishWizard(styledColumn);
54
54
  };
55
- const AdditionalSettingSection = {
56
- details: 'Apply Additional Settings',
57
- renderSummary: StyledColumnWizardSettingsSection_1.renderStyledColumnWizardSettingsSummary,
58
- render: () => {
59
- return (React.createElement(Flex_1.Box, { className: "twa:p-2" },
60
- React.createElement(StyledColumnWizardSettingsSection_1.StyledColumnWizardSettingsSection, { onChange: setStyledColumn })));
61
- },
62
- title: 'Settings',
63
- };
64
55
  const specificSteps = [];
65
56
  if (styledColumn.SparklineStyle) {
66
57
  specificSteps.push({
@@ -97,6 +88,15 @@ const StyledColumnWizard = (props) => {
97
88
  );
98
89
  }
99
90
  else if (styledColumn.BadgeStyle) {
91
+ specificSteps.push({
92
+ details: 'Select the Rows where the Badge will be applied',
93
+ renderSummary: StyledColumnBadgeRowsSection_1.renderStyledColumnBadgeRowsSummary,
94
+ render: () => {
95
+ return (React.createElement(Flex_1.Box, { className: "twa:p-2" },
96
+ React.createElement(StyledColumnBadgeRowsSection_1.StyledColumnBadgeRowsSection, { onChange: setStyledColumn })));
97
+ },
98
+ title: 'Rows',
99
+ });
100
100
  specificSteps.push({
101
101
  title: 'Badges',
102
102
  details: 'Create Badge Styles',
@@ -114,7 +114,6 @@ const StyledColumnWizard = (props) => {
114
114
  render: () => (React.createElement(Flex_1.Box, { className: "twa:p-2" },
115
115
  React.createElement(StyledColumnBadgeSection_1.StyledColumnBadgeSection, { onChange: setStyledColumn }))),
116
116
  });
117
- specificSteps.push(AdditionalSettingSection);
118
117
  }
119
118
  return (React.createElement(OnePageAdaptableWizard_1.OnePageAdaptableWizard, { defaultCurrentSectionName: defaultCurrentSectionName, moduleInfo: props.moduleInfo, data: styledColumn, onFinish: handleFinish, onHide: props.onCloseWizard, sections: [
120
119
  {
@@ -91,6 +91,7 @@ const Modal_1 = require("../components/Modal");
91
91
  const AdaptableLoadingScreen_1 = require("../View/Components/Popups/AdaptableLoadingScreen");
92
92
  const react_1 = require("react");
93
93
  const createAgStatusPanelComponent_1 = require("../Utilities/createAgStatusPanelComponent");
94
+ const only_1 = require("../Utilities/only");
94
95
  const weightedAverage_1 = require("../Utilities/weightedAverage");
95
96
  const RowSummary_1 = require("../AdaptableState/Common/RowSummary");
96
97
  const FlashingCellService_1 = require("../Utilities/Services/FlashingCellService");
@@ -1084,6 +1085,9 @@ class AdaptableAgGrid {
1084
1085
  */
1085
1086
  this.agGridOptionsService.setGridOptionsProperty(gridOptions, 'aggFuncs', (original_aggFuncs) => {
1086
1087
  const aggregationFunctions = original_aggFuncs || {};
1088
+ aggregationFunctions[AggregationColumns_1.ONLY_AGG_FN_NAME] = (params) => {
1089
+ return (0, only_1.only)(params, params.column.getColId());
1090
+ };
1087
1091
  aggregationFunctions[AggregationColumns_1.WEIGHTED_AVERAGE_AGG_FN_NAME] = (params) => {
1088
1092
  const columnId = params.column.getColId();
1089
1093
  const adaptableAggFunc = this.getActiveAdaptableAggFuncForCol(columnId);
@@ -1466,6 +1470,18 @@ class AdaptableAgGrid {
1466
1470
  caseSensitive: !!this.adaptableOptions.quickSearchOptions.isQuickSearchCaseSensitive,
1467
1471
  };
1468
1472
  });
1473
+ /**
1474
+ * suppressOverlays
1475
+ */
1476
+ this.agGridOptionsService.setGridOptionsProperty(gridOptions, 'suppressOverlays', (original_suppressOverlays) => {
1477
+ // we want to suppress the exporting overlay because having it enabled will turn api.exportDataAsExcel() and api.exportDataAsCsv() into async operations,
1478
+ // see #export_data_synchronously
1479
+ let suppressOverlays = original_suppressOverlays || [];
1480
+ if (!suppressOverlays.includes('exporting')) {
1481
+ suppressOverlays.push('exporting');
1482
+ }
1483
+ return suppressOverlays;
1484
+ });
1469
1485
  }
1470
1486
  /**
1471
1487
  * Either initializes the AG Grid instance or delegates it to the framework wrappers (React/Anglar)
@@ -475,8 +475,8 @@ class AgGridAdapter {
475
475
  ? 'number'
476
476
  : this.deriveAdaptableColumnDataType(agGridColumn, false);
477
477
  const isTreeColumn = this.isTreeColumn(isGeneratedRowGroupColumn);
478
- const alwaysHidden = this.adaptableApi.columnApi.internalApi.isAlwaysHiddenColumn(colDef);
479
- const visible = !alwaysHidden || agGridColumn.isVisible();
478
+ const isUIHiddenColumn = this.adaptableApi.columnApi.internalApi.isColumnUIHidden(colDef);
479
+ const visible = !isUIHiddenColumn || agGridColumn.isVisible();
480
480
  const isGenerated = isGeneratedRowGroupColumn || isGeneratedPivotResultColumn || isGeneratedSelectionColumn;
481
481
  const abColumn = {
482
482
  Uuid: (0, Uuid_1.createUuid)(),
@@ -486,9 +486,9 @@ class AgGridAdapter {
486
486
  resizable: colDef.resizable !== false,
487
487
  friendlyName: friendlyName,
488
488
  isPrimaryKey: ColumnId === pkColumn,
489
- dataType: dataType,
489
+ dataType,
490
490
  visible,
491
- alwaysHidden,
491
+ isUIHiddenColumn,
492
492
  readOnly: this.isColumnReadonly(colDef),
493
493
  columnGroup: ColumnGroup,
494
494
  fieldOnly: isGenerated ? false : this.isColumnFieldonly(colDef),
@@ -1,8 +1,8 @@
1
- import { AdaptableAgGrid } from './AdaptableAgGrid';
2
- import { Report, ReportFormatType } from '../AdaptableState/ExportState';
3
1
  import { CsvExportParams, ExcelExportParams, ExcelStyle } from 'ag-grid-enterprise';
4
2
  import { CustomExportParams, ExportDestinationType, ExportResultData } from '../AdaptableOptions/ExportOptions';
3
+ import { Report, ReportFormatType } from '../AdaptableState/ExportState';
5
4
  import { Layout } from '../AdaptableState/LayoutState';
5
+ import { AdaptableAgGrid } from './AdaptableAgGrid';
6
6
  export interface ExportConfig {
7
7
  report: Report;
8
8
  format: ReportFormatType;
@@ -2,15 +2,15 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.AgGridExportAdapter = void 0;
4
4
  const tslib_1 = require("tslib");
5
- const ModuleConstants_1 = require("../Utilities/Constants/ModuleConstants");
6
- const waitForTimeout_1 = require("../Utilities/waitForTimeout");
7
- const StyleHelper_1 = require("../Utilities/Helpers/StyleHelper");
8
- const FormatHelper_1 = tslib_1.__importStar(require("../Utilities/Helpers/FormatHelper"));
9
5
  const tinycolor2_1 = tslib_1.__importDefault(require("tinycolor2"));
10
- const StringExtensions_1 = tslib_1.__importDefault(require("../Utilities/Extensions/StringExtensions"));
11
- const Uuid_1 = require("../AdaptableState/Uuid");
12
6
  const udsv_1 = require("udsv");
7
+ const Uuid_1 = require("../AdaptableState/Uuid");
13
8
  const GeneralConstants_1 = require("../Utilities/Constants/GeneralConstants");
9
+ const ModuleConstants_1 = require("../Utilities/Constants/ModuleConstants");
10
+ const StringExtensions_1 = tslib_1.__importDefault(require("../Utilities/Extensions/StringExtensions"));
11
+ const FormatHelper_1 = tslib_1.__importStar(require("../Utilities/Helpers/FormatHelper"));
12
+ const StyleHelper_1 = require("../Utilities/Helpers/StyleHelper");
13
+ const waitForTimeout_1 = require("../Utilities/waitForTimeout");
14
14
  class AgGridExportAdapter {
15
15
  _adaptableInstance;
16
16
  /**
@@ -91,6 +91,7 @@ class AgGridExportAdapter {
91
91
  this.patchExcelStyles(exportContext);
92
92
  excelStylesWerePatched = true;
93
93
  }
94
+ // see #export_data_synchronously
94
95
  // 1. easiest case, we download the file using AG Grid
95
96
  // these methods will automatically handle the file download
96
97
  if (exportContext.destination === 'Download' && exportContext.isExcelReport) {
package/src/env.js CHANGED
@@ -2,6 +2,6 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.default = {
4
4
  NEXT_PUBLIC_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" || '',
5
- PUBLISH_TIMESTAMP: 1771235615659 || Date.now(),
6
- VERSION: "22.0.0-canary.12" || '--current-version--',
5
+ PUBLISH_TIMESTAMP: 1771515655455 || Date.now(),
6
+ VERSION: "22.0.0-canary.14" || '--current-version--',
7
7
  };