@adaptabletools/adaptable-cjs 20.2.5 → 20.2.6
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.
- package/package.json +1 -1
- package/src/AdaptableOptions/AdaptableOptions.d.ts +4 -4
- package/src/AdaptableOptions/DataSetOptions.d.ts +1 -1
- package/src/AdaptableState/Common/AdaptableColumn.d.ts +4 -0
- package/src/AdaptableState/ExportState.d.ts +2 -2
- package/src/AdaptableState/FormatColumnState.d.ts +3 -3
- package/src/Api/AdaptableApi.d.ts +42 -42
- package/src/Api/EventApi.d.ts +1 -1
- package/src/Api/Implementation/ColumnApiImpl.js +1 -0
- package/src/Api/OptionsApi.d.ts +1 -7
- package/src/Strategy/TeamSharingModule.js +2 -2
- package/src/View/Dashboard/Dashboard.js +1 -1
- package/src/View/Layout/Wizard/sections/ColumnsSection.js +1 -1
- package/src/View/QuickSearch/QuickSearchInput.d.ts +1 -0
- package/src/View/QuickSearch/QuickSearchInput.js +1 -1
- package/src/View/QuickSearch/QuickSearchStatusBarContent.js +2 -9
- package/src/agGrid/AdaptableAgGrid.js +1 -0
- package/src/agGrid/AgGridAdapter.js +1 -0
- package/src/agGrid/AgGridColumnAdapter.js +4 -3
- package/src/agGrid/AgGridExportAdapter.js +1 -1
- package/src/env.js +2 -2
- package/src/layout-manager/src/index.js +3 -1
- package/src/metamodel/adaptable.metamodel.js +1 -1
- package/tsconfig.cjs.tsbuildinfo +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@adaptabletools/adaptable-cjs",
|
|
3
|
-
"version": "20.2.
|
|
3
|
+
"version": "20.2.6",
|
|
4
4
|
"description": "Powerful data-agnostic HTML5 AG Grid extension which provides advanced, cutting-edge functionality to meet all DataGrid requirements",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"web-components",
|
|
@@ -92,10 +92,6 @@ export interface AdaptableOptions<TData = any, TContext = Record<string, any>> {
|
|
|
92
92
|
* Options for managing Action Columns
|
|
93
93
|
*/
|
|
94
94
|
actionColumnOptions?: ActionColumnOptions<TData>;
|
|
95
|
-
/**
|
|
96
|
-
* Options for managing Row Forms
|
|
97
|
-
*/
|
|
98
|
-
rowFormOptions?: RowFormOptions<TData>;
|
|
99
95
|
/**
|
|
100
96
|
* Options for managing Alerts in AdapTable
|
|
101
97
|
*
|
|
@@ -237,6 +233,10 @@ export interface AdaptableOptions<TData = any, TContext = Record<string, any>> {
|
|
|
237
233
|
* @noCodeContainer
|
|
238
234
|
*/
|
|
239
235
|
quickSearchOptions?: QuickSearchOptions<TData>;
|
|
236
|
+
/**
|
|
237
|
+
* Options for managing Row Forms
|
|
238
|
+
*/
|
|
239
|
+
rowFormOptions?: RowFormOptions<TData>;
|
|
240
240
|
/**
|
|
241
241
|
* Setting panel options
|
|
242
242
|
*
|
|
@@ -5,7 +5,7 @@ import { FormContext } from '../AdaptableState/Common/FormContext';
|
|
|
5
5
|
*/
|
|
6
6
|
export interface DataSetOptions<TData = any> {
|
|
7
7
|
/**
|
|
8
|
-
* Collection of Data Sets to provide
|
|
8
|
+
* Collection of Data Sets to provide data to AdapTable
|
|
9
9
|
*/
|
|
10
10
|
dataSets?: DataSet[];
|
|
11
11
|
}
|
|
@@ -95,6 +95,10 @@ export interface AdaptableColumn<TData = any> extends AdaptableColumnBase {
|
|
|
95
95
|
* Is Column editable; returns FALSE if Column has conditional/dynamic editability, assuming some rows are editable
|
|
96
96
|
*/
|
|
97
97
|
readOnly: boolean;
|
|
98
|
+
/**
|
|
99
|
+
* Is Column resizable
|
|
100
|
+
*/
|
|
101
|
+
resizable: boolean;
|
|
98
102
|
/**
|
|
99
103
|
* Is Column currently visible
|
|
100
104
|
*/
|
|
@@ -32,11 +32,11 @@ export interface Report extends AdaptableObject {
|
|
|
32
32
|
*/
|
|
33
33
|
Name: ReportNameType;
|
|
34
34
|
/**
|
|
35
|
-
* Columns to display:
|
|
35
|
+
* Columns to display: `AllColumns`, `VisibleColumns`, `SelectedColumns`, `ScopeColumns`
|
|
36
36
|
*/
|
|
37
37
|
ReportColumnScope: ReportColumnScope;
|
|
38
38
|
/**
|
|
39
|
-
* Rows to export:
|
|
39
|
+
* Rows to export: `AllRows`, `VisibleRows`, `SelectedRows`, `ExpressionRows`
|
|
40
40
|
*/
|
|
41
41
|
ReportRowScope: ReportRowScope;
|
|
42
42
|
/**
|
|
@@ -22,11 +22,11 @@ export interface FormatColumnState extends BaseState {
|
|
|
22
22
|
*/
|
|
23
23
|
export interface FormatColumn extends SuspendableObject {
|
|
24
24
|
/**
|
|
25
|
-
* Where Format will be applied
|
|
25
|
+
* Where Format will be applied: whole Row, some Columns, or Columns of DataType
|
|
26
26
|
*/
|
|
27
27
|
Scope: ColumnScope;
|
|
28
28
|
/**
|
|
29
|
-
* Rule
|
|
29
|
+
* Rule to decide whether to apply Format; if undefined Format is always applied
|
|
30
30
|
*/
|
|
31
31
|
Rule?: FormatColumnRule;
|
|
32
32
|
/**
|
|
@@ -46,7 +46,7 @@ export interface FormatColumn extends SuspendableObject {
|
|
|
46
46
|
*/
|
|
47
47
|
RowScope?: RowScope;
|
|
48
48
|
/**
|
|
49
|
-
* When to format Columns in Column Groups (
|
|
49
|
+
* When to format Columns in Column Groups ('Expanded', 'Collapsed' or 'Both')
|
|
50
50
|
*
|
|
51
51
|
*/
|
|
52
52
|
ColumnGroupScope?: ColumnGroupScope;
|
|
@@ -72,14 +72,14 @@ export interface AdaptableApi {
|
|
|
72
72
|
* Provides access to the Bulk Update Module
|
|
73
73
|
*/
|
|
74
74
|
bulkUpdateApi: BulkUpdateApi;
|
|
75
|
-
/**
|
|
76
|
-
* Functions for managing Holidays
|
|
77
|
-
*/
|
|
78
|
-
calendarApi: CalendarApi;
|
|
79
75
|
/**
|
|
80
76
|
* Provides access to the Calculated Column Module
|
|
81
77
|
*/
|
|
82
78
|
calculatedColumnApi: CalculatedColumnApi;
|
|
79
|
+
/**
|
|
80
|
+
* Functions for managing Holidays
|
|
81
|
+
*/
|
|
82
|
+
calendarApi: CalendarApi;
|
|
83
83
|
/**
|
|
84
84
|
* Provides access to the Cell Summary Module
|
|
85
85
|
*/
|
|
@@ -93,9 +93,21 @@ export interface AdaptableApi {
|
|
|
93
93
|
*/
|
|
94
94
|
columnApi: ColumnApi;
|
|
95
95
|
/**
|
|
96
|
-
*
|
|
96
|
+
* Provides access to Column Menu
|
|
97
97
|
*/
|
|
98
|
-
|
|
98
|
+
columnMenuApi: ColumnMenuApi;
|
|
99
|
+
/**
|
|
100
|
+
* Provides access to Context Menu
|
|
101
|
+
*/
|
|
102
|
+
contextMenuApi: ContextMenuApi;
|
|
103
|
+
/**
|
|
104
|
+
* Provides access to the Comment Module
|
|
105
|
+
*/
|
|
106
|
+
commentApi: CommentApi;
|
|
107
|
+
/**
|
|
108
|
+
* Manages the `Scope` object - used widely to determine where objects are applied
|
|
109
|
+
*/
|
|
110
|
+
columnScopeApi: ColumnScopeApi;
|
|
99
111
|
/**
|
|
100
112
|
* Provides access to the Custom Sort Module
|
|
101
113
|
*/
|
|
@@ -108,6 +120,10 @@ export interface AdaptableApi {
|
|
|
108
120
|
* Provides run-time access to the Data Changes Module
|
|
109
121
|
**/
|
|
110
122
|
dataChangeHistoryApi: DataChangeHistoryApi;
|
|
123
|
+
/**
|
|
124
|
+
* Provides access to the Data Import Module
|
|
125
|
+
*/
|
|
126
|
+
dataImportApi: DataImportApi;
|
|
111
127
|
/**
|
|
112
128
|
* Provides access to Data Sets
|
|
113
129
|
*/
|
|
@@ -124,6 +140,14 @@ export interface AdaptableApi {
|
|
|
124
140
|
* Provides access to the Export Module and Reports
|
|
125
141
|
*/
|
|
126
142
|
exportApi: ExportApi;
|
|
143
|
+
/**
|
|
144
|
+
* Manages AdapTableQL Expressions
|
|
145
|
+
*/
|
|
146
|
+
expressionApi: ExpressionApi;
|
|
147
|
+
/**
|
|
148
|
+
* Manages the FDC3 capabilities of AdapTable
|
|
149
|
+
*/
|
|
150
|
+
fdc3Api: Fdc3Api;
|
|
127
151
|
/**
|
|
128
152
|
* Provides access to Filtering in AdapTable
|
|
129
153
|
*/
|
|
@@ -148,6 +172,14 @@ export interface AdaptableApi {
|
|
|
148
172
|
* Provides access to the Layout Module
|
|
149
173
|
*/
|
|
150
174
|
layoutApi: LayoutApi;
|
|
175
|
+
/**
|
|
176
|
+
* Provides access to the Named Query Module
|
|
177
|
+
*/
|
|
178
|
+
namedQueryApi: NamedQueryApi;
|
|
179
|
+
/**
|
|
180
|
+
* Provides access to the Note Module
|
|
181
|
+
*/
|
|
182
|
+
noteApi: NoteApi;
|
|
151
183
|
/**
|
|
152
184
|
* Provides access to Adaptable Options
|
|
153
185
|
*/
|
|
@@ -164,14 +196,6 @@ export interface AdaptableApi {
|
|
|
164
196
|
* Manages the Predicate - a boolean-return function used in Filters and Alerts
|
|
165
197
|
*/
|
|
166
198
|
predicateApi: PredicateApi;
|
|
167
|
-
/**
|
|
168
|
-
* Provides access to the Named Query Module
|
|
169
|
-
*/
|
|
170
|
-
namedQueryApi: NamedQueryApi;
|
|
171
|
-
/**
|
|
172
|
-
* Manages AdapTableQL Expressions
|
|
173
|
-
*/
|
|
174
|
-
expressionApi: ExpressionApi;
|
|
175
199
|
/**
|
|
176
200
|
* Provides access to the Quick Search Module
|
|
177
201
|
*/
|
|
@@ -188,10 +212,6 @@ export interface AdaptableApi {
|
|
|
188
212
|
* Provides access to the Settings Panel
|
|
189
213
|
*/
|
|
190
214
|
settingsPanelApi: SettingsPanelApi;
|
|
191
|
-
/**
|
|
192
|
-
* Manages the `Scope` object - used widely to determine where objects are applied
|
|
193
|
-
*/
|
|
194
|
-
columnScopeApi: ColumnScopeApi;
|
|
195
215
|
/**
|
|
196
216
|
* Provides access to the Shortcut Module
|
|
197
217
|
*/
|
|
@@ -200,6 +220,10 @@ export interface AdaptableApi {
|
|
|
200
220
|
* Provides access to the Smart Edit Module
|
|
201
221
|
*/
|
|
202
222
|
smartEditApi: SmartEditApi;
|
|
223
|
+
/**
|
|
224
|
+
* Methods giving access to Adaptable State
|
|
225
|
+
*/
|
|
226
|
+
stateApi: StateApi;
|
|
203
227
|
/**
|
|
204
228
|
* Provides run-time access to the AdapTable Status Bar
|
|
205
229
|
*/
|
|
@@ -228,30 +252,6 @@ export interface AdaptableApi {
|
|
|
228
252
|
* Manages User Interface Options where colours, styles and custom column values are configured
|
|
229
253
|
*/
|
|
230
254
|
userInterfaceApi: UserInterfaceApi;
|
|
231
|
-
/**
|
|
232
|
-
* Provides access to the Note Module
|
|
233
|
-
*/
|
|
234
|
-
noteApi: NoteApi;
|
|
235
|
-
/**
|
|
236
|
-
* Provides access to Column Menu
|
|
237
|
-
*/
|
|
238
|
-
columnMenuApi: ColumnMenuApi;
|
|
239
|
-
/**
|
|
240
|
-
* Provides access to Context Menu
|
|
241
|
-
*/
|
|
242
|
-
contextMenuApi: ContextMenuApi;
|
|
243
|
-
/**
|
|
244
|
-
* Provides access to the Comment Module
|
|
245
|
-
*/
|
|
246
|
-
commentApi: CommentApi;
|
|
247
|
-
/**
|
|
248
|
-
* Provides access to the Data Import Module
|
|
249
|
-
*/
|
|
250
|
-
dataImportApi: DataImportApi;
|
|
251
|
-
/**
|
|
252
|
-
* Manages the FDC3 capabilities of AdapTable
|
|
253
|
-
*/
|
|
254
|
-
fdc3Api: Fdc3Api;
|
|
255
255
|
/**
|
|
256
256
|
* Cleanup method - call only for vanilla JavaScript components, as framework components handle cleanup on destroy/unmount. By default, it unmounts the Adaptable component and destroys the AG Grid instance.
|
|
257
257
|
* @param config - optional configuration object
|
package/src/Api/EventApi.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AdaptableReadyInfo, AdaptableStateChangedInfo, AdaptableStateReloadedInfo, AlertFiredInfo, CalculatedColumnChangedInfo, CellChangedInfo, CellSelectionChangedInfo, ChartChangedInfo, ColumnFilterAppliedInfo, CommentChangedInfo, CustomToolbarConfiguredInfo, DashboardChangedInfo, DataImportedInfo, DataSetSelectedInfo, Fdc3MessageInfo, FlashingCellDisplayedInfo,
|
|
1
|
+
import { AdaptableReadyInfo, AdaptableStateChangedInfo, AdaptableStateReloadedInfo, AlertFiredInfo, CalculatedColumnChangedInfo, CellChangedInfo, CellSelectionChangedInfo, ChartChangedInfo, ColumnFilterAppliedInfo, CommentChangedInfo, CustomToolbarConfiguredInfo, DashboardChangedInfo, DataImportedInfo, DataSetSelectedInfo, Fdc3MessageInfo, FlashingCellDisplayedInfo, GridFilterAppliedInfo, GridSortedInfo, LayoutChangedInfo, LiveDataChangedInfo, RowChangedInfo, RowFormSubmittedInfo, RowSelectionChangedInfo, ScheduleTriggeredInfo, SystemStatusMessageDisplayedInfo, TeamSharingEntityChangedInfo, ThemeChangedInfo } from '../types';
|
|
2
2
|
/**
|
|
3
3
|
* Responsible for publishing the many Events that AdapTable fires
|
|
4
4
|
*/
|
package/src/Api/OptionsApi.d.ts
CHANGED
|
@@ -1,10 +1,4 @@
|
|
|
1
|
-
import { CustomSortOptions } from '../
|
|
2
|
-
import { DataSetOptions } from '../AdaptableOptions/DataSetOptions';
|
|
3
|
-
import { ActionColumnOptions, AdaptableOptions, AlertOptions, CalendarOptions, CellSummaryOptions, ChartingOptions, ColumnMenuOptions, ColumnOptions, ContainerOptions, ContextMenuOptions, DashboardOptions, DataChangeHistoryOptions, EditOptions, EntitlementOptions, ExportOptions, FilterOptions, FlashingCellOptions, FormatColumnOptions, LayoutOptions, NoteOptions, NotificationsOptions, PredicateOptions, QuickSearchOptions, RowFormOptions, SettingsPanelOptions, StateOptions, TeamSharingOptions, ToolPanelOptions, UserInterfaceOptions } from '../types';
|
|
4
|
-
import { Fdc3Options } from '../AdaptableOptions/Fdc3Options';
|
|
5
|
-
import { ExpressionOptions } from '../AdaptableOptions/ExpressionOptions';
|
|
6
|
-
import { DataImportOptions } from '../AdaptableOptions/DataImportOptions';
|
|
7
|
-
import { CommentOptions } from '../AdaptableOptions/CommentOptions';
|
|
1
|
+
import { ActionColumnOptions, AdaptableOptions, AlertOptions, CalendarOptions, CellSummaryOptions, ChartingOptions, ColumnMenuOptions, ColumnOptions, CommentOptions, ContainerOptions, ContextMenuOptions, CustomSortOptions, DashboardOptions, DataChangeHistoryOptions, DataImportOptions, DataSetOptions, EditOptions, EntitlementOptions, ExportOptions, ExpressionOptions, Fdc3Options, FilterOptions, FlashingCellOptions, FormatColumnOptions, LayoutOptions, NoteOptions, NotificationsOptions, PredicateOptions, QuickSearchOptions, RowFormOptions, SettingsPanelOptions, StateOptions, TeamSharingOptions, ToolPanelOptions, UserInterfaceOptions } from '../types';
|
|
8
2
|
/**
|
|
9
3
|
* Range of functions to access Adaptable Options
|
|
10
4
|
*/
|
|
@@ -29,9 +29,9 @@ class TeamSharingModule extends AdaptableModuleBase_1.AdaptableModuleBase {
|
|
|
29
29
|
];
|
|
30
30
|
}
|
|
31
31
|
onAdaptableReady() {
|
|
32
|
-
// make sure there is no zombie import process remaining (in case a previous import crashed)
|
|
33
|
-
this.api.internalApi.dispatchReduxAction(TeamSharingRedux.TeamSharingCommitImport());
|
|
34
32
|
if (this.api.teamSharingApi.isTeamSharingAvailable()) {
|
|
33
|
+
// make sure there is no zombie import process remaining (in case a previous import crashed)
|
|
34
|
+
this.api.internalApi.dispatchReduxAction(TeamSharingRedux.TeamSharingCommitImport());
|
|
35
35
|
this.api.teamSharingApi.refreshTeamSharing();
|
|
36
36
|
}
|
|
37
37
|
this.api.eventApi.on('AdaptableStateChanged', (adaptableStateChangedInfo) => this.handleStateChanged(adaptableStateChangedInfo));
|
|
@@ -91,7 +91,7 @@ const DashboardComponent = (props) => {
|
|
|
91
91
|
};
|
|
92
92
|
const renderQuickSearch = () => {
|
|
93
93
|
return (React.createElement(rebass_1.Box, { ml: 2 },
|
|
94
|
-
React.createElement(QuickSearchInput_1.QuickSearchInput, { width: '7rem' })));
|
|
94
|
+
React.createElement(QuickSearchInput_1.QuickSearchInput, { width: '7rem', className: "ab-DashboardToolbar__QuickSearch__text" })));
|
|
95
95
|
};
|
|
96
96
|
let instanceName = props.api.internalApi.getToolbarTitle();
|
|
97
97
|
let dashboardOptions = props.api.optionsApi.getDashboardOptions();
|
|
@@ -189,7 +189,7 @@ const ColumnRow = (props) => {
|
|
|
189
189
|
props.onColumnNameChange(props.column.columnId, event.target.value);
|
|
190
190
|
}, value: customHeader })),
|
|
191
191
|
React.createElement(FormLayout_1.FormRow, { label: "Width" },
|
|
192
|
-
React.createElement(Input_1.default, { "data-name": "column-width", className: "ab-Layout-Wizard__ColumnRow__Input", type: "number", placeholder: "Column width", onChange: (event) => {
|
|
192
|
+
React.createElement(Input_1.default, { "data-name": "column-width", className: "ab-Layout-Wizard__ColumnRow__Input", type: "number", placeholder: "Column width", disabled: !props.column.resizable, onChange: (event) => {
|
|
193
193
|
let value = parseFloat(event.target.value);
|
|
194
194
|
value = typeof value === 'number' && !isNaN(value) ? value : void 0;
|
|
195
195
|
props.onColumnWidthChange(props.column.columnId, value);
|
|
@@ -21,7 +21,7 @@ const QuickSearchInput = (props) => {
|
|
|
21
21
|
QuickSearchText,
|
|
22
22
|
onRunQuickSearch,
|
|
23
23
|
});
|
|
24
|
-
return (react_1.default.createElement(AdaptableFormControlTextClear_1.AdaptableFormControlTextClear, { "aria-label": 'Quick Search', type: "text", autoFocus: props.autoFocus, placeholder: adaptable.api.optionsApi.getQuickSearchOptions().quickSearchPlaceholder, className: (0, join_1.default)('ab-
|
|
24
|
+
return (react_1.default.createElement(AdaptableFormControlTextClear_1.AdaptableFormControlTextClear, { onClick: props.onClick, "aria-label": 'Quick Search', type: "text", autoFocus: props.autoFocus, placeholder: adaptable.api.optionsApi.getQuickSearchOptions().quickSearchPlaceholder, className: (0, join_1.default)('ab-QuickSearch__control', props.className), value: searchText, OnTextChange: search, style: { height: '100%' }, inputStyle: { width: props.width ?? '10rem' }, actionTools: isServerSideRowModel ? null : (react_1.default.createElement(rebass_1.Box, { display: "flex", flexDirection: "row", alignItems: "center", flex: 'none' },
|
|
25
25
|
react_1.default.createElement(SimpleButton_1.default, { "aria-label": 'Previous Match', icon: "arrow-up", px: 0, py: 0, mr: 1, disabled: !searchText, variant: "text", onClick: () => adaptable.api.quickSearchApi.gotoPreviousMatch() }),
|
|
26
26
|
react_1.default.createElement(SimpleButton_1.default, { "aria-label": 'Next Match', icon: "arrow-down", px: 0, py: 0, mr: 1, disabled: !searchText, variant: "text", onClick: () => adaptable.api.quickSearchApi.gotoNextMatch() }))) }));
|
|
27
27
|
};
|
|
@@ -3,15 +3,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.QuickSearchStatusBarContent = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
const React = tslib_1.__importStar(require("react"));
|
|
6
|
-
const
|
|
7
|
-
const AdaptableContext_1 = require("../AdaptableContext");
|
|
8
|
-
const AdaptableFormControlTextClear_1 = require("../Components/Forms/AdaptableFormControlTextClear");
|
|
9
|
-
const QuickSearchRedux = tslib_1.__importStar(require("../../Redux/ActionsReducers/QuickSearchRedux"));
|
|
6
|
+
const QuickSearchInput_1 = require("./QuickSearchInput");
|
|
10
7
|
const QuickSearchStatusBarContent = () => {
|
|
11
|
-
|
|
12
|
-
const dispatch = (0, react_redux_1.useDispatch)();
|
|
13
|
-
const adaptable = (0, AdaptableContext_1.useAdaptable)();
|
|
14
|
-
const handleTextChange = React.useCallback((text) => dispatch(QuickSearchRedux.QuickSearchRun(text)), []);
|
|
15
|
-
return (React.createElement(AdaptableFormControlTextClear_1.AdaptableFormControlTextClear, { onClick: (event) => event.stopPropagation(), type: "text", inputStyle: { padding: '2px 3px', width: 90 }, placeholder: adaptable.api.optionsApi.getQuickSearchOptions().quickSearchPlaceholder, value: text, OnTextChange: handleTextChange }));
|
|
8
|
+
return React.createElement(QuickSearchInput_1.QuickSearchInput, { onClick: (event) => event.stopPropagation() });
|
|
16
9
|
};
|
|
17
10
|
exports.QuickSearchStatusBarContent = QuickSearchStatusBarContent;
|
|
@@ -438,6 +438,7 @@ class AdaptableAgGrid {
|
|
|
438
438
|
this.refreshHeader();
|
|
439
439
|
const currentLayout = this.api.layoutApi.getCurrentLayout();
|
|
440
440
|
(0, LayoutHelpers_1.checkForDuplicateColumns)(currentLayout);
|
|
441
|
+
this._prevLayout = currentLayout;
|
|
441
442
|
this.__prevLayoutForRefresh = currentLayout;
|
|
442
443
|
if ((0, LayoutHelpers_1.isPivotLayout)(currentLayout)) {
|
|
443
444
|
// this is very very strange!
|
|
@@ -114,9 +114,10 @@ class AgGridColumnAdapter {
|
|
|
114
114
|
this.agGridApi.getAllGridColumns();
|
|
115
115
|
if (pivotMode) {
|
|
116
116
|
const pivotResultColumns = this.agGridApi.getPivotResultColumns() || [];
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
117
|
+
const autoGroupColumns = this.agGridApi
|
|
118
|
+
.getAllGridColumns()
|
|
119
|
+
.filter((column) => this.adaptableApi.columnApi.isAutoRowGroupColumn(column.getColId()));
|
|
120
|
+
cols = [...autoGroupColumns, ...cols, ...pivotResultColumns];
|
|
120
121
|
}
|
|
121
122
|
// this needs to be here, before the other setup below
|
|
122
123
|
// so the setup methods below reference the correct columns in adaptable store
|
|
@@ -423,7 +423,7 @@ class AgGridExportAdapter {
|
|
|
423
423
|
let rawValue = rowNode.key;
|
|
424
424
|
return { columnId, rawValue };
|
|
425
425
|
}
|
|
426
|
-
if (
|
|
426
|
+
if (!!rowNode.aggData) {
|
|
427
427
|
const columnId = agColumn.getColId();
|
|
428
428
|
const rawValue = rowNode.aggData?.[columnId];
|
|
429
429
|
return { columnId, rawValue };
|
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:
|
|
6
|
-
VERSION: "20.2.
|
|
5
|
+
PUBLISH_TIMESTAMP: 1751633664670 || Date.now(),
|
|
6
|
+
VERSION: "20.2.6" || '--current-version--',
|
|
7
7
|
};
|
|
@@ -1019,7 +1019,9 @@ class LayoutManager extends LMEmitter_1.LMEmitter {
|
|
|
1019
1019
|
acc[colId] = index;
|
|
1020
1020
|
return acc;
|
|
1021
1021
|
}, {});
|
|
1022
|
-
|
|
1022
|
+
// having this set to true will change pivot column order when there is sorting
|
|
1023
|
+
// and we don't want that to happen #keep-sorted-columns-in-same-order-as-unsorted
|
|
1024
|
+
// columnState.applyOrder = true;
|
|
1023
1025
|
const columnIds = getColumnOrderIdsForAllColDefs([
|
|
1024
1026
|
...layout.PivotColumns,
|
|
1025
1027
|
...(layout.PivotAggregationColumns || []).map((col) => col.ColumnId),
|